metascope 0.8.2 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/cli.js CHANGED
@@ -103,7 +103,7 @@ fi
103
103
  `)}`:``;d.fail(te(`Missing required argument: %s`,`Missing required arguments: %s`,Object.keys(m).length,Object.keys(m).join(`, `)+f))}},re.unknownArguments=function(f,m,ie,ae,oe=!0){var se;let ce=l.getInternalMethods().getCommandInstance().getCommands(),le=[],ue=l.getInternalMethods().getContext();if(Object.keys(f).forEach(d=>{!specialKeys.includes(d)&&!Object.prototype.hasOwnProperty.call(ie,d)&&!Object.prototype.hasOwnProperty.call(l.getInternalMethods().getParseContext(),d)&&!re.isValidAndSomeAliasIsNotNew(d,m)&&le.push(d)}),oe&&(ue.commands.length>0||ce.length>0||ae)&&f._.slice(ue.commands.length).forEach(l=>{ce.includes(``+l)||le.push(``+l)}),oe){let d=l.getDemandedCommands()._?.max||0,m=ue.commands.length+d;m<f._.length&&f._.slice(m).forEach(l=>{l=String(l),!ue.commands.includes(l)&&!le.includes(l)&&le.push(l)})}le.length&&d.fail(te(`Unknown argument: %s`,`Unknown arguments: %s`,le.length,le.map(l=>l.trim()?l:`"${l}"`).join(`, `)))},re.unknownCommands=function(f){let m=l.getInternalMethods().getCommandInstance().getCommands(),re=[],ie=l.getInternalMethods().getContext();return(ie.commands.length>0||m.length>0)&&f._.slice(ie.commands.length).forEach(l=>{m.includes(``+l)||re.push(``+l)}),re.length>0?(d.fail(te(`Unknown command: %s`,`Unknown commands: %s`,re.length,re.join(`, `))),!0):!1},re.isValidAndSomeAliasIsNotNew=function(d,f){if(!Object.prototype.hasOwnProperty.call(f,d))return!1;let m=l.parsed.newAliases;return[d,...f[d]].some(l=>!Object.prototype.hasOwnProperty.call(m,l)||!m[d])},re.limitedChoices=function(f){let te=l.getOptions(),re={};if(!Object.keys(te.choices).length)return;Object.keys(f).forEach(l=>{specialKeys.indexOf(l)===-1&&Object.prototype.hasOwnProperty.call(te.choices,l)&&[].concat(f[l]).forEach(d=>{te.choices[l].indexOf(d)===-1&&d!==void 0&&(re[l]=(re[l]||[]).concat(d))})});let ie=Object.keys(re);if(!ie.length)return;let ae=m(`Invalid values:`);ie.forEach(l=>{ae+=`\n ${m(`Argument: %s, Given: %s, Choices: %s`,l,d.stringifiedValues(re[l]),d.stringifiedValues(te.choices[l]))}`}),d.fail(ae)};let ie={};re.implies=function(d,m){argsert(`<string|object> [array|number|string]`,[d,m],arguments.length),typeof d==`object`?Object.keys(d).forEach(l=>{re.implies(l,d[l])}):(l.global(d),ie[d]||(ie[d]=[]),Array.isArray(m)?m.forEach(l=>re.implies(d,l)):(assertNotStrictEqual(m,void 0,f),ie[d].push(m)))},re.getImplied=function(){return ie};function ae(l,d){let f=Number(d);return d=isNaN(f)?d:f,typeof d==`number`?d=l._.length>=d:d.match(/^--no-.+/)?(d=d.match(/^--no-(.+)/)[1],d=!Object.prototype.hasOwnProperty.call(l,d)):d=Object.prototype.hasOwnProperty.call(l,d),d}re.implications=function(l){let f=[];if(Object.keys(ie).forEach(d=>{let m=d;(ie[d]||[]).forEach(d=>{let te=m,re=d;te=ae(l,te),d=ae(l,d),te&&!d&&f.push(` ${m} -> ${re}`)})}),f.length){let l=`${m(`Implications failed:`)}\n`;f.forEach(d=>{l+=d}),d.fail(l)}};let oe={};re.conflicts=function(d,f){argsert(`<string|object> [array|string]`,[d,f],arguments.length),typeof d==`object`?Object.keys(d).forEach(l=>{re.conflicts(l,d[l])}):(l.global(d),oe[d]||(oe[d]=[]),Array.isArray(f)?f.forEach(l=>re.conflicts(d,l)):oe[d].push(f))},re.getConflicting=()=>oe,re.conflicting=function(te){Object.keys(te).forEach(l=>{oe[l]&&oe[l].forEach(f=>{f&&te[l]!==void 0&&te[f]!==void 0&&d.fail(m(`Arguments %s and %s are mutually exclusive`,l,f))})}),l.getInternalMethods().getParserConfiguration()[`strip-dashed`]&&Object.keys(oe).forEach(l=>{oe[l].forEach(re=>{re&&te[f.Parser.camelCase(l)]!==void 0&&te[f.Parser.camelCase(re)]!==void 0&&d.fail(m(`Arguments %s and %s are mutually exclusive`,l,re))})})},re.recommendCommands=function(l,f){let te=3;f=f.sort((l,d)=>d.length-l.length);let re=null,ie=1/0;for(let d=0,m;(m=f[d])!==void 0;d++){let d=levenshtein(l,m);d<=3&&d<ie&&(ie=d,re=m)}re&&d.fail(m(`Did you mean %s?`,re))},re.reset=function(l){return ie=objFilter(ie,d=>!l[d]),oe=objFilter(oe,d=>!l[d]),re};let se=[];return re.freeze=function(){se.push({implied:ie,conflicting:oe})},re.unfreeze=function(){let l=se.pop();assertNotStrictEqual(l,void 0,f),{implied:ie,conflicting:oe}=l},re}let previouslyVisitedConfigs=[],shim;function applyExtends(l,d,f,m){shim=m;let te={};if(Object.prototype.hasOwnProperty.call(l,`extends`)){if(typeof l.extends!=`string`)return te;let re=/\.json|\..*rc$/.test(l.extends),ie=null;if(re)ie=getPathToDefaultConfig(d,l.extends);else try{ie=import.meta.resolve(l.extends)}catch{return l}checkForCircularExtends(ie),previouslyVisitedConfigs.push(ie),te=re?JSON.parse(shim.readFileSync(ie,`utf8`)):m.require(l.extends),delete l.extends,te=applyExtends(te,shim.path.dirname(ie),f,shim)}return previouslyVisitedConfigs=[],f?mergeDeep$1(te,l):Object.assign({},te,l)}function checkForCircularExtends(l){if(previouslyVisitedConfigs.indexOf(l)>-1)throw new YError(`Circular extended configurations: '${l}'.`)}function getPathToDefaultConfig(l,d){return shim.path.resolve(l,d)}function mergeDeep$1(l,d){let f={};function m(l){return l&&typeof l==`object`&&!Array.isArray(l)}Object.assign(f,l);for(let te of Object.keys(d))m(d[te])&&m(f[te])?f[te]=mergeDeep$1(l[te],d[te]):f[te]=d[te];return f}var __classPrivateFieldSet=function(l,d,f,m,te){if(m===`m`)throw TypeError(`Private method is not writable`);if(m===`a`&&!te)throw TypeError(`Private accessor was defined without a setter`);if(typeof d==`function`?l!==d||!te:!d.has(l))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return m===`a`?te.call(l,f):te?te.value=f:d.set(l,f),f},__classPrivateFieldGet=function(l,d,f,m){if(f===`a`&&!m)throw TypeError(`Private accessor was defined without a getter`);if(typeof d==`function`?l!==d||!m:!d.has(l))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return f===`m`?m:f===`a`?m.call(l):m?m.value:d.get(l)},_YargsInstance_command,_YargsInstance_cwd,_YargsInstance_context,_YargsInstance_completion,_YargsInstance_completionCommand,_YargsInstance_defaultShowHiddenOpt,_YargsInstance_exitError,_YargsInstance_detectLocale,_YargsInstance_emittedWarnings,_YargsInstance_exitProcess,_YargsInstance_frozens,_YargsInstance_globalMiddleware,_YargsInstance_groups,_YargsInstance_hasOutput,_YargsInstance_helpOpt,_YargsInstance_isGlobalContext,_YargsInstance_logger,_YargsInstance_output,_YargsInstance_options,_YargsInstance_parentRequire,_YargsInstance_parserConfig,_YargsInstance_parseFn,_YargsInstance_parseContext,_YargsInstance_pkgs,_YargsInstance_preservedGroups,_YargsInstance_processArgs,_YargsInstance_recommendCommands,_YargsInstance_shim,_YargsInstance_strict,_YargsInstance_strictCommands,_YargsInstance_strictOptions,_YargsInstance_usage,_YargsInstance_usageConfig,_YargsInstance_versionOpt,_YargsInstance_validation;function YargsFactory(l){return(d=[],f=l.process.cwd(),m)=>{let te=new YargsInstance(d,f,m,l);return Object.defineProperty(te,"argv",{get:()=>te.parse(),enumerable:!0}),te.help(),te.version(),te}}const kCopyDoubleDash=Symbol(`copyDoubleDash`),kCreateLogger=Symbol(`copyDoubleDash`),kDeleteFromParserHintObject=Symbol(`deleteFromParserHintObject`),kEmitWarning=Symbol(`emitWarning`),kFreeze=Symbol(`freeze`),kGetDollarZero=Symbol(`getDollarZero`),kGetParserConfiguration=Symbol(`getParserConfiguration`),kGetUsageConfiguration=Symbol(`getUsageConfiguration`),kGuessLocale=Symbol(`guessLocale`),kGuessVersion=Symbol(`guessVersion`),kParsePositionalNumbers=Symbol(`parsePositionalNumbers`),kPkgUp=Symbol(`pkgUp`),kPopulateParserHintArray=Symbol(`populateParserHintArray`),kPopulateParserHintSingleValueDictionary=Symbol(`populateParserHintSingleValueDictionary`),kPopulateParserHintArrayDictionary=Symbol(`populateParserHintArrayDictionary`),kPopulateParserHintDictionary=Symbol(`populateParserHintDictionary`),kSanitizeKey=Symbol(`sanitizeKey`),kSetKey=Symbol(`setKey`),kUnfreeze=Symbol(`unfreeze`),kValidateAsync=Symbol(`validateAsync`),kGetCommandInstance=Symbol(`getCommandInstance`),kGetContext=Symbol(`getContext`),kGetHasOutput=Symbol(`getHasOutput`),kGetLoggerInstance=Symbol(`getLoggerInstance`),kGetParseContext=Symbol(`getParseContext`),kGetUsageInstance=Symbol(`getUsageInstance`),kGetValidationInstance=Symbol(`getValidationInstance`),kHasParseCallback=Symbol(`hasParseCallback`),kIsGlobalContext=Symbol(`isGlobalContext`),kPostProcess=Symbol(`postProcess`),kRebase=Symbol(`rebase`),kReset=Symbol(`reset`),kRunYargsParserAndExecuteCommands=Symbol(`runYargsParserAndExecuteCommands`),kRunValidation=Symbol(`runValidation`),kSetHasOutput=Symbol(`setHasOutput`),kTrackManuallySetKeys=Symbol(`kTrackManuallySetKeys`),DEFAULT_LOCALE=`en_US`;var YargsInstance=class{constructor(l=[],d,f,m){this.customScriptName=!1,this.parsed=!1,_YargsInstance_command.set(this,void 0),_YargsInstance_cwd.set(this,void 0),_YargsInstance_context.set(this,{commands:[],fullCommands:[]}),_YargsInstance_completion.set(this,null),_YargsInstance_completionCommand.set(this,null),_YargsInstance_defaultShowHiddenOpt.set(this,`show-hidden`),_YargsInstance_exitError.set(this,null),_YargsInstance_detectLocale.set(this,!0),_YargsInstance_emittedWarnings.set(this,{}),_YargsInstance_exitProcess.set(this,!0),_YargsInstance_frozens.set(this,[]),_YargsInstance_globalMiddleware.set(this,void 0),_YargsInstance_groups.set(this,{}),_YargsInstance_hasOutput.set(this,!1),_YargsInstance_helpOpt.set(this,null),_YargsInstance_isGlobalContext.set(this,!0),_YargsInstance_logger.set(this,void 0),_YargsInstance_output.set(this,``),_YargsInstance_options.set(this,void 0),_YargsInstance_parentRequire.set(this,void 0),_YargsInstance_parserConfig.set(this,{}),_YargsInstance_parseFn.set(this,null),_YargsInstance_parseContext.set(this,null),_YargsInstance_pkgs.set(this,{}),_YargsInstance_preservedGroups.set(this,{}),_YargsInstance_processArgs.set(this,void 0),_YargsInstance_recommendCommands.set(this,!1),_YargsInstance_shim.set(this,void 0),_YargsInstance_strict.set(this,!1),_YargsInstance_strictCommands.set(this,!1),_YargsInstance_strictOptions.set(this,!1),_YargsInstance_usage.set(this,void 0),_YargsInstance_usageConfig.set(this,{}),_YargsInstance_versionOpt.set(this,null),_YargsInstance_validation.set(this,void 0),__classPrivateFieldSet(this,_YargsInstance_shim,m,`f`),__classPrivateFieldSet(this,_YargsInstance_processArgs,l,`f`),__classPrivateFieldSet(this,_YargsInstance_cwd,d,`f`),__classPrivateFieldSet(this,_YargsInstance_parentRequire,f,`f`),__classPrivateFieldSet(this,_YargsInstance_globalMiddleware,new GlobalMiddleware(this),`f`),this.$0=this[kGetDollarZero](),this[kReset](),__classPrivateFieldSet(this,_YargsInstance_command,__classPrivateFieldGet(this,_YargsInstance_command,`f`),`f`),__classPrivateFieldSet(this,_YargsInstance_usage,__classPrivateFieldGet(this,_YargsInstance_usage,`f`),`f`),__classPrivateFieldSet(this,_YargsInstance_validation,__classPrivateFieldGet(this,_YargsInstance_validation,`f`),`f`),__classPrivateFieldSet(this,_YargsInstance_options,__classPrivateFieldGet(this,_YargsInstance_options,`f`),`f`),__classPrivateFieldGet(this,_YargsInstance_options,`f`).showHiddenOpt=__classPrivateFieldGet(this,_YargsInstance_defaultShowHiddenOpt,`f`),__classPrivateFieldSet(this,_YargsInstance_logger,this[kCreateLogger](),`f`),__classPrivateFieldGet(this,_YargsInstance_shim,`f`).y18n.setLocale(DEFAULT_LOCALE)}addHelpOpt(l,d){let f=`help`;return argsert(`[string|boolean] [string]`,[l,d],arguments.length),__classPrivateFieldGet(this,_YargsInstance_helpOpt,`f`)&&(this[kDeleteFromParserHintObject](__classPrivateFieldGet(this,_YargsInstance_helpOpt,`f`)),__classPrivateFieldSet(this,_YargsInstance_helpOpt,null,`f`)),l===!1&&d===void 0?this:(__classPrivateFieldSet(this,_YargsInstance_helpOpt,typeof l==`string`?l:`help`,`f`),this.boolean(__classPrivateFieldGet(this,_YargsInstance_helpOpt,`f`)),this.describe(__classPrivateFieldGet(this,_YargsInstance_helpOpt,`f`),d||__classPrivateFieldGet(this,_YargsInstance_usage,`f`).deferY18nLookup(`Show help`)),this)}help(l,d){return this.addHelpOpt(l,d)}addShowHiddenOpt(l,d){if(argsert(`[string|boolean] [string]`,[l,d],arguments.length),l===!1&&d===void 0)return this;let f=typeof l==`string`?l:__classPrivateFieldGet(this,_YargsInstance_defaultShowHiddenOpt,`f`);return this.boolean(f),this.describe(f,d||__classPrivateFieldGet(this,_YargsInstance_usage,`f`).deferY18nLookup(`Show hidden options`)),__classPrivateFieldGet(this,_YargsInstance_options,`f`).showHiddenOpt=f,this}showHidden(l,d){return this.addShowHiddenOpt(l,d)}alias(l,d){return argsert(`<object|string|array> [string|array]`,[l,d],arguments.length),this[kPopulateParserHintArrayDictionary](this.alias.bind(this),`alias`,l,d),this}array(l){return argsert(`<array|string>`,[l],arguments.length),this[kPopulateParserHintArray](`array`,l),this[kTrackManuallySetKeys](l),this}boolean(l){return argsert(`<array|string>`,[l],arguments.length),this[kPopulateParserHintArray](`boolean`,l),this[kTrackManuallySetKeys](l),this}check(l,d){return argsert(`<function> [boolean]`,[l,d],arguments.length),this.middleware((d,f)=>maybeAsyncResult(()=>l(d,f.getOptions()),f=>(f?(typeof f==`string`||f instanceof Error)&&__classPrivateFieldGet(this,_YargsInstance_usage,`f`).fail(f.toString(),f):__classPrivateFieldGet(this,_YargsInstance_usage,`f`).fail(__classPrivateFieldGet(this,_YargsInstance_shim,`f`).y18n.__(`Argument check failed: %s`,l.toString())),d),l=>(__classPrivateFieldGet(this,_YargsInstance_usage,`f`).fail(l.message?l.message:l.toString(),l),d)),!1,d),this}choices(l,d){return argsert(`<object|string|array> [string|array]`,[l,d],arguments.length),this[kPopulateParserHintArrayDictionary](this.choices.bind(this),`choices`,l,d),this}coerce(l,d){if(argsert(`<object|string|array> [function]`,[l,d],arguments.length),Array.isArray(l)){if(!d)throw new YError(`coerce callback must be provided`);for(let f of l)this.coerce(f,d);return this}else if(typeof l==`object`){for(let d of Object.keys(l))this.coerce(d,l[d]);return this}if(!d)throw new YError(`coerce callback must be provided`);let f=l;return __classPrivateFieldGet(this,_YargsInstance_options,`f`).key[f]=!0,__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).addCoerceMiddleware((l,m)=>{var te;let re=[f,...m.getAliases()[f]??[]].filter(d=>Object.prototype.hasOwnProperty.call(l,d));return re.length===0?l:maybeAsyncResult(()=>d(l[re[0]]),d=>(re.forEach(f=>{l[f]=d}),l),l=>{throw new YError(l.message)})},f),this}conflicts(l,d){return argsert(`<string|object> [string|array]`,[l,d],arguments.length),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).conflicts(l,d),this}config(l=`config`,d,f){return argsert(`[object|string] [string|function] [function]`,[l,d,f],arguments.length),typeof l==`object`&&!Array.isArray(l)?(l=applyExtends(l,__classPrivateFieldGet(this,_YargsInstance_cwd,`f`),this[kGetParserConfiguration]()[`deep-merge-config`]||!1,__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),__classPrivateFieldGet(this,_YargsInstance_options,`f`).configObjects=(__classPrivateFieldGet(this,_YargsInstance_options,`f`).configObjects||[]).concat(l),this):(typeof d==`function`&&(f=d,d=void 0),this.describe(l,d||__classPrivateFieldGet(this,_YargsInstance_usage,`f`).deferY18nLookup(`Path to JSON config file`)),(Array.isArray(l)?l:[l]).forEach(l=>{__classPrivateFieldGet(this,_YargsInstance_options,`f`).config[l]=f||!0}),this)}completion(l,d,f){return argsert(`[string] [string|boolean|function] [function]`,[l,d,f],arguments.length),typeof d==`function`&&(f=d,d=void 0),__classPrivateFieldSet(this,_YargsInstance_completionCommand,l||__classPrivateFieldGet(this,_YargsInstance_completionCommand,`f`)||`completion`,`f`),!d&&d!==!1&&(d=`generate completion script`),this.command(__classPrivateFieldGet(this,_YargsInstance_completionCommand,`f`),d),f&&__classPrivateFieldGet(this,_YargsInstance_completion,`f`).registerFunction(f),this}command(l,d,f,m,te,re){return argsert(`<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]`,[l,d,f,m,te,re],arguments.length),__classPrivateFieldGet(this,_YargsInstance_command,`f`).addHandler(l,d,f,m,te,re),this}commands(l,d,f,m,te,re){return this.command(l,d,f,m,te,re)}commandDir(l,d){argsert(`<string> [object]`,[l,d],arguments.length);let f=__classPrivateFieldGet(this,_YargsInstance_parentRequire,`f`)||__classPrivateFieldGet(this,_YargsInstance_shim,`f`).require;return __classPrivateFieldGet(this,_YargsInstance_command,`f`).addDirectory(l,f,__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getCallerFile(),d),this}count(l){return argsert(`<array|string>`,[l],arguments.length),this[kPopulateParserHintArray](`count`,l),this[kTrackManuallySetKeys](l),this}default(l,d,f){return argsert(`<object|string|array> [*] [string]`,[l,d,f],arguments.length),f&&(assertSingleKey(l,__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),__classPrivateFieldGet(this,_YargsInstance_options,`f`).defaultDescription[l]=f),typeof d==`function`&&(assertSingleKey(l,__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),__classPrivateFieldGet(this,_YargsInstance_options,`f`).defaultDescription[l]||(__classPrivateFieldGet(this,_YargsInstance_options,`f`).defaultDescription[l]=__classPrivateFieldGet(this,_YargsInstance_usage,`f`).functionDescription(d)),d=d.call()),this[kPopulateParserHintSingleValueDictionary](this.default.bind(this),`default`,l,d),this}defaults(l,d,f){return this.default(l,d,f)}demandCommand(l=1,d,f,m){return argsert(`[number] [number|string] [string|null|undefined] [string|null|undefined]`,[l,d,f,m],arguments.length),typeof d!=`number`&&(f=d,d=1/0),this.global(`_`,!1),__classPrivateFieldGet(this,_YargsInstance_options,`f`).demandedCommands._={min:l,max:d,minMsg:f,maxMsg:m},this}demand(l,d,f){return Array.isArray(d)?(d.forEach(l=>{assertNotStrictEqual(f,!0,__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),this.demandOption(l,f)}),d=1/0):typeof d!=`number`&&(f=d,d=1/0),typeof l==`number`?(assertNotStrictEqual(f,!0,__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),this.demandCommand(l,d,f,f)):Array.isArray(l)?l.forEach(l=>{assertNotStrictEqual(f,!0,__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),this.demandOption(l,f)}):typeof f==`string`?this.demandOption(l,f):(f===!0||f===void 0)&&this.demandOption(l),this}demandOption(l,d){return argsert(`<object|string|array> [string]`,[l,d],arguments.length),this[kPopulateParserHintSingleValueDictionary](this.demandOption.bind(this),`demandedOptions`,l,d),this}deprecateOption(l,d){return argsert(`<string> [string|boolean]`,[l,d],arguments.length),__classPrivateFieldGet(this,_YargsInstance_options,`f`).deprecatedOptions[l]=d,this}describe(l,d){return argsert(`<object|string|array> [string]`,[l,d],arguments.length),this[kSetKey](l,!0),__classPrivateFieldGet(this,_YargsInstance_usage,`f`).describe(l,d),this}detectLocale(l){return argsert(`<boolean>`,[l],arguments.length),__classPrivateFieldSet(this,_YargsInstance_detectLocale,l,`f`),this}env(l){return argsert(`[string|boolean]`,[l],arguments.length),l===!1?delete __classPrivateFieldGet(this,_YargsInstance_options,`f`).envPrefix:__classPrivateFieldGet(this,_YargsInstance_options,`f`).envPrefix=l||``,this}epilogue(l){return argsert(`<string>`,[l],arguments.length),__classPrivateFieldGet(this,_YargsInstance_usage,`f`).epilog(l),this}epilog(l){return this.epilogue(l)}example(l,d){return argsert(`<string|array> [string]`,[l,d],arguments.length),Array.isArray(l)?l.forEach(l=>this.example(...l)):__classPrivateFieldGet(this,_YargsInstance_usage,`f`).example(l,d),this}exit(l,d){__classPrivateFieldSet(this,_YargsInstance_hasOutput,!0,`f`),__classPrivateFieldSet(this,_YargsInstance_exitError,d,`f`),__classPrivateFieldGet(this,_YargsInstance_exitProcess,`f`)&&__classPrivateFieldGet(this,_YargsInstance_shim,`f`).process.exit(l)}exitProcess(l=!0){return argsert(`[boolean]`,[l],arguments.length),__classPrivateFieldSet(this,_YargsInstance_exitProcess,l,`f`),this}fail(l){if(argsert(`<function|boolean>`,[l],arguments.length),typeof l==`boolean`&&l!==!1)throw new YError(`Invalid first argument. Expected function or boolean 'false'`);return __classPrivateFieldGet(this,_YargsInstance_usage,`f`).failFn(l),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(l,d){return argsert(`<array> [function]`,[l,d],arguments.length),d?__classPrivateFieldGet(this,_YargsInstance_completion,`f`).getCompletion(l,d):new Promise((d,f)=>{__classPrivateFieldGet(this,_YargsInstance_completion,`f`).getCompletion(l,(l,m)=>{l?f(l):d(m)})})}getDemandedOptions(){return argsert([],0),__classPrivateFieldGet(this,_YargsInstance_options,`f`).demandedOptions}getDemandedCommands(){return argsert([],0),__classPrivateFieldGet(this,_YargsInstance_options,`f`).demandedCommands}getDeprecatedOptions(){return argsert([],0),__classPrivateFieldGet(this,_YargsInstance_options,`f`).deprecatedOptions}getDetectLocale(){return __classPrivateFieldGet(this,_YargsInstance_detectLocale,`f`)}getExitProcess(){return __classPrivateFieldGet(this,_YargsInstance_exitProcess,`f`)}getGroups(){return Object.assign({},__classPrivateFieldGet(this,_YargsInstance_groups,`f`),__classPrivateFieldGet(this,_YargsInstance_preservedGroups,`f`))}getHelp(){if(__classPrivateFieldSet(this,_YargsInstance_hasOutput,!0,`f`),!__classPrivateFieldGet(this,_YargsInstance_usage,`f`).hasCachedHelpMessage()){if(!this.parsed){let l=this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet(this,_YargsInstance_processArgs,`f`),void 0,void 0,0,!0);if(isPromise$1(l))return l.then(()=>__classPrivateFieldGet(this,_YargsInstance_usage,`f`).help())}let l=__classPrivateFieldGet(this,_YargsInstance_command,`f`).runDefaultBuilderOn(this);if(isPromise$1(l))return l.then(()=>__classPrivateFieldGet(this,_YargsInstance_usage,`f`).help())}return Promise.resolve(__classPrivateFieldGet(this,_YargsInstance_usage,`f`).help())}getOptions(){return __classPrivateFieldGet(this,_YargsInstance_options,`f`)}getStrict(){return __classPrivateFieldGet(this,_YargsInstance_strict,`f`)}getStrictCommands(){return __classPrivateFieldGet(this,_YargsInstance_strictCommands,`f`)}getStrictOptions(){return __classPrivateFieldGet(this,_YargsInstance_strictOptions,`f`)}global(l,d){return argsert(`<string|array> [boolean]`,[l,d],arguments.length),l=[].concat(l),d===!1?l.forEach(l=>{__classPrivateFieldGet(this,_YargsInstance_options,`f`).local.includes(l)||__classPrivateFieldGet(this,_YargsInstance_options,`f`).local.push(l)}):__classPrivateFieldGet(this,_YargsInstance_options,`f`).local=__classPrivateFieldGet(this,_YargsInstance_options,`f`).local.filter(d=>l.indexOf(d)===-1),this}group(l,d){argsert(`<string|array> <string>`,[l,d],arguments.length);let f=__classPrivateFieldGet(this,_YargsInstance_preservedGroups,`f`)[d]||__classPrivateFieldGet(this,_YargsInstance_groups,`f`)[d];__classPrivateFieldGet(this,_YargsInstance_preservedGroups,`f`)[d]&&delete __classPrivateFieldGet(this,_YargsInstance_preservedGroups,`f`)[d];let m={};return __classPrivateFieldGet(this,_YargsInstance_groups,`f`)[d]=(f||[]).concat(l).filter(l=>m[l]?!1:m[l]=!0),this}hide(l){return argsert(`<string>`,[l],arguments.length),__classPrivateFieldGet(this,_YargsInstance_options,`f`).hiddenOptions.push(l),this}implies(l,d){return argsert(`<string|object> [number|string|array]`,[l,d],arguments.length),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).implies(l,d),this}locale(l){return argsert(`[string]`,[l],arguments.length),l===void 0?(this[kGuessLocale](),__classPrivateFieldGet(this,_YargsInstance_shim,`f`).y18n.getLocale()):(__classPrivateFieldSet(this,_YargsInstance_detectLocale,!1,`f`),__classPrivateFieldGet(this,_YargsInstance_shim,`f`).y18n.setLocale(l),this)}middleware(l,d,f){return __classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).addMiddleware(l,!!d,f)}nargs(l,d){return argsert(`<string|object|array> [number]`,[l,d],arguments.length),this[kPopulateParserHintSingleValueDictionary](this.nargs.bind(this),`narg`,l,d),this}normalize(l){return argsert(`<array|string>`,[l],arguments.length),this[kPopulateParserHintArray](`normalize`,l),this}number(l){return argsert(`<array|string>`,[l],arguments.length),this[kPopulateParserHintArray](`number`,l),this[kTrackManuallySetKeys](l),this}option(l,d){if(argsert(`<string|object> [object]`,[l,d],arguments.length),typeof l==`object`)Object.keys(l).forEach(d=>{this.options(d,l[d])});else{typeof d!=`object`&&(d={}),this[kTrackManuallySetKeys](l),__classPrivateFieldGet(this,_YargsInstance_versionOpt,`f`)&&(l===`version`||d?.alias===`version`)&&this[kEmitWarning]([`"version" is a reserved word.`,`Please do one of the following:`,'- Disable version with `yargs.version(false)` if using "version" as an option',"- Use the built-in `yargs.version` method instead (if applicable)",`- Use a different option key`,`https://yargs.js.org/docs/#api-reference-version`].join(`
104
104
  `),void 0,`versionWarning`),__classPrivateFieldGet(this,_YargsInstance_options,`f`).key[l]=!0,d.alias&&this.alias(l,d.alias);let f=d.deprecate||d.deprecated;f&&this.deprecateOption(l,f);let m=d.demand||d.required||d.require;m&&this.demand(l,m),d.demandOption&&this.demandOption(l,typeof d.demandOption==`string`?d.demandOption:void 0),d.conflicts&&this.conflicts(l,d.conflicts),`default`in d&&this.default(l,d.default),d.implies!==void 0&&this.implies(l,d.implies),d.nargs!==void 0&&this.nargs(l,d.nargs),d.config&&this.config(l,d.configParser),d.normalize&&this.normalize(l),d.choices&&this.choices(l,d.choices),d.coerce&&this.coerce(l,d.coerce),d.group&&this.group(l,d.group),(d.boolean||d.type===`boolean`)&&(this.boolean(l),d.alias&&this.boolean(d.alias)),(d.array||d.type===`array`)&&(this.array(l),d.alias&&this.array(d.alias)),(d.number||d.type===`number`)&&(this.number(l),d.alias&&this.number(d.alias)),(d.string||d.type===`string`)&&(this.string(l),d.alias&&this.string(d.alias)),(d.count||d.type===`count`)&&this.count(l),typeof d.global==`boolean`&&this.global(l,d.global),d.defaultDescription&&(__classPrivateFieldGet(this,_YargsInstance_options,`f`).defaultDescription[l]=d.defaultDescription),d.skipValidation&&this.skipValidation(l);let te=d.describe||d.description||d.desc,re=__classPrivateFieldGet(this,_YargsInstance_usage,`f`).getDescriptions();(!Object.prototype.hasOwnProperty.call(re,l)||typeof te==`string`)&&this.describe(l,te),d.hidden&&this.hide(l),d.requiresArg&&this.requiresArg(l)}return this}options(l,d){return this.option(l,d)}parse(l,d,f){argsert(`[string|array] [function|boolean|object] [function]`,[l,d,f],arguments.length),this[kFreeze](),l===void 0&&(l=__classPrivateFieldGet(this,_YargsInstance_processArgs,`f`)),typeof d==`object`&&(__classPrivateFieldSet(this,_YargsInstance_parseContext,d,`f`),d=f),typeof d==`function`&&(__classPrivateFieldSet(this,_YargsInstance_parseFn,d,`f`),d=!1),d||__classPrivateFieldSet(this,_YargsInstance_processArgs,l,`f`),__classPrivateFieldGet(this,_YargsInstance_parseFn,`f`)&&__classPrivateFieldSet(this,_YargsInstance_exitProcess,!1,`f`);let m=this[kRunYargsParserAndExecuteCommands](l,!!d),te=this.parsed;return __classPrivateFieldGet(this,_YargsInstance_completion,`f`).setParsed(this.parsed),isPromise$1(m)?m.then(l=>(__classPrivateFieldGet(this,_YargsInstance_parseFn,`f`)&&__classPrivateFieldGet(this,_YargsInstance_parseFn,`f`).call(this,__classPrivateFieldGet(this,_YargsInstance_exitError,`f`),l,__classPrivateFieldGet(this,_YargsInstance_output,`f`)),l)).catch(l=>{throw __classPrivateFieldGet(this,_YargsInstance_parseFn,`f`)&&__classPrivateFieldGet(this,_YargsInstance_parseFn,`f`)(l,this.parsed.argv,__classPrivateFieldGet(this,_YargsInstance_output,`f`)),l}).finally(()=>{this[kUnfreeze](),this.parsed=te}):(__classPrivateFieldGet(this,_YargsInstance_parseFn,`f`)&&__classPrivateFieldGet(this,_YargsInstance_parseFn,`f`).call(this,__classPrivateFieldGet(this,_YargsInstance_exitError,`f`),m,__classPrivateFieldGet(this,_YargsInstance_output,`f`)),this[kUnfreeze](),this.parsed=te,m)}parseAsync(l,d,f){let m=this.parse(l,d,f);return isPromise$1(m)?m:Promise.resolve(m)}parseSync(l,d,f){let m=this.parse(l,d,f);if(isPromise$1(m))throw new YError(`.parseSync() must not be used with asynchronous builders, handlers, or middleware`);return m}parserConfiguration(l){return argsert(`<object>`,[l],arguments.length),__classPrivateFieldSet(this,_YargsInstance_parserConfig,l,`f`),this}pkgConf(l,d){argsert(`<string> [string]`,[l,d],arguments.length);let f=null,m=this[kPkgUp](d||__classPrivateFieldGet(this,_YargsInstance_cwd,`f`));return m[l]&&typeof m[l]==`object`&&(f=applyExtends(m[l],d||__classPrivateFieldGet(this,_YargsInstance_cwd,`f`),this[kGetParserConfiguration]()[`deep-merge-config`]||!1,__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),__classPrivateFieldGet(this,_YargsInstance_options,`f`).configObjects=(__classPrivateFieldGet(this,_YargsInstance_options,`f`).configObjects||[]).concat(f)),this}positional(l,d){argsert(`<string> <object>`,[l,d],arguments.length);let f=[`default`,`defaultDescription`,`implies`,`normalize`,`choices`,`conflicts`,`coerce`,`type`,`describe`,`desc`,`description`,`alias`];d=objFilter(d,(l,d)=>l===`type`&&![`string`,`number`,`boolean`].includes(d)?!1:f.includes(l));let m=__classPrivateFieldGet(this,_YargsInstance_context,`f`).fullCommands[__classPrivateFieldGet(this,_YargsInstance_context,`f`).fullCommands.length-1],te=m?__classPrivateFieldGet(this,_YargsInstance_command,`f`).cmdToParseOptions(m):{array:[],alias:{},default:{},demand:{}};return objectKeys(te).forEach(f=>{let m=te[f];Array.isArray(m)?m.indexOf(l)!==-1&&(d[f]=!0):m[l]&&!(f in d)&&(d[f]=m[l])}),this.group(l,__classPrivateFieldGet(this,_YargsInstance_usage,`f`).getPositionalGroupName()),this.option(l,d)}recommendCommands(l=!0){return argsert(`[boolean]`,[l],arguments.length),__classPrivateFieldSet(this,_YargsInstance_recommendCommands,l,`f`),this}required(l,d,f){return this.demand(l,d,f)}require(l,d,f){return this.demand(l,d,f)}requiresArg(l){return argsert(`<array|string|object> [number]`,[l],arguments.length),typeof l==`string`&&__classPrivateFieldGet(this,_YargsInstance_options,`f`).narg[l]||this[kPopulateParserHintSingleValueDictionary](this.requiresArg.bind(this),`narg`,l,NaN),this}showCompletionScript(l,d){return argsert(`[string] [string]`,[l,d],arguments.length),l||=this.$0,__classPrivateFieldGet(this,_YargsInstance_logger,`f`).log(__classPrivateFieldGet(this,_YargsInstance_completion,`f`).generateCompletionScript(l,d||__classPrivateFieldGet(this,_YargsInstance_completionCommand,`f`)||`completion`)),this}showHelp(l){if(argsert(`[string|function]`,[l],arguments.length),__classPrivateFieldSet(this,_YargsInstance_hasOutput,!0,`f`),!__classPrivateFieldGet(this,_YargsInstance_usage,`f`).hasCachedHelpMessage()){if(!this.parsed){let d=this[kRunYargsParserAndExecuteCommands](__classPrivateFieldGet(this,_YargsInstance_processArgs,`f`),void 0,void 0,0,!0);if(isPromise$1(d))return d.then(()=>{__classPrivateFieldGet(this,_YargsInstance_usage,`f`).showHelp(l)}),this}let d=__classPrivateFieldGet(this,_YargsInstance_command,`f`).runDefaultBuilderOn(this);if(isPromise$1(d))return d.then(()=>{__classPrivateFieldGet(this,_YargsInstance_usage,`f`).showHelp(l)}),this}return __classPrivateFieldGet(this,_YargsInstance_usage,`f`).showHelp(l),this}scriptName(l){return this.customScriptName=!0,this.$0=l,this}showHelpOnFail(l,d){return argsert(`[boolean|string] [string]`,[l,d],arguments.length),__classPrivateFieldGet(this,_YargsInstance_usage,`f`).showHelpOnFail(l,d),this}showVersion(l){return argsert(`[string|function]`,[l],arguments.length),__classPrivateFieldGet(this,_YargsInstance_usage,`f`).showVersion(l),this}skipValidation(l){return argsert(`<array|string>`,[l],arguments.length),this[kPopulateParserHintArray](`skipValidation`,l),this}strict(l){return argsert(`[boolean]`,[l],arguments.length),__classPrivateFieldSet(this,_YargsInstance_strict,l!==!1,`f`),this}strictCommands(l){return argsert(`[boolean]`,[l],arguments.length),__classPrivateFieldSet(this,_YargsInstance_strictCommands,l!==!1,`f`),this}strictOptions(l){return argsert(`[boolean]`,[l],arguments.length),__classPrivateFieldSet(this,_YargsInstance_strictOptions,l!==!1,`f`),this}string(l){return argsert(`<array|string>`,[l],arguments.length),this[kPopulateParserHintArray](`string`,l),this[kTrackManuallySetKeys](l),this}terminalWidth(){return argsert([],0),__classPrivateFieldGet(this,_YargsInstance_shim,`f`).process.stdColumns}updateLocale(l){return this.updateStrings(l)}updateStrings(l){return argsert(`<object>`,[l],arguments.length),__classPrivateFieldSet(this,_YargsInstance_detectLocale,!1,`f`),__classPrivateFieldGet(this,_YargsInstance_shim,`f`).y18n.updateLocale(l),this}usage(l,d,f,m){if(argsert(`<string|null|undefined> [string|boolean] [function|object] [function]`,[l,d,f,m],arguments.length),d!==void 0){if(assertNotStrictEqual(l,null,__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),(l||``).match(/^\$0( |$)/))return this.command(l,d,f,m);throw new YError(`.usage() description must start with $0 if being used as alias for .command()`)}else return __classPrivateFieldGet(this,_YargsInstance_usage,`f`).usage(l),this}usageConfiguration(l){return argsert(`<object>`,[l],arguments.length),__classPrivateFieldSet(this,_YargsInstance_usageConfig,l,`f`),this}version(l,d,f){let m=`version`;if(argsert(`[boolean|string] [string] [string]`,[l,d,f],arguments.length),__classPrivateFieldGet(this,_YargsInstance_versionOpt,`f`)&&(this[kDeleteFromParserHintObject](__classPrivateFieldGet(this,_YargsInstance_versionOpt,`f`)),__classPrivateFieldGet(this,_YargsInstance_usage,`f`).version(void 0),__classPrivateFieldSet(this,_YargsInstance_versionOpt,null,`f`)),arguments.length===0)f=this[kGuessVersion](),l=m;else if(arguments.length===1){if(l===!1)return this;f=l,l=m}else arguments.length===2&&(f=d,d=void 0);return __classPrivateFieldSet(this,_YargsInstance_versionOpt,typeof l==`string`?l:m,`f`),d||=__classPrivateFieldGet(this,_YargsInstance_usage,`f`).deferY18nLookup(`Show version number`),__classPrivateFieldGet(this,_YargsInstance_usage,`f`).version(f||void 0),this.boolean(__classPrivateFieldGet(this,_YargsInstance_versionOpt,`f`)),this.describe(__classPrivateFieldGet(this,_YargsInstance_versionOpt,`f`),d),this}wrap(l){return argsert(`<number|null|undefined>`,[l],arguments.length),__classPrivateFieldGet(this,_YargsInstance_usage,`f`).wrap(l),this}[(_YargsInstance_command=new WeakMap,_YargsInstance_cwd=new WeakMap,_YargsInstance_context=new WeakMap,_YargsInstance_completion=new WeakMap,_YargsInstance_completionCommand=new WeakMap,_YargsInstance_defaultShowHiddenOpt=new WeakMap,_YargsInstance_exitError=new WeakMap,_YargsInstance_detectLocale=new WeakMap,_YargsInstance_emittedWarnings=new WeakMap,_YargsInstance_exitProcess=new WeakMap,_YargsInstance_frozens=new WeakMap,_YargsInstance_globalMiddleware=new WeakMap,_YargsInstance_groups=new WeakMap,_YargsInstance_hasOutput=new WeakMap,_YargsInstance_helpOpt=new WeakMap,_YargsInstance_isGlobalContext=new WeakMap,_YargsInstance_logger=new WeakMap,_YargsInstance_output=new WeakMap,_YargsInstance_options=new WeakMap,_YargsInstance_parentRequire=new WeakMap,_YargsInstance_parserConfig=new WeakMap,_YargsInstance_parseFn=new WeakMap,_YargsInstance_parseContext=new WeakMap,_YargsInstance_pkgs=new WeakMap,_YargsInstance_preservedGroups=new WeakMap,_YargsInstance_processArgs=new WeakMap,_YargsInstance_recommendCommands=new WeakMap,_YargsInstance_shim=new WeakMap,_YargsInstance_strict=new WeakMap,_YargsInstance_strictCommands=new WeakMap,_YargsInstance_strictOptions=new WeakMap,_YargsInstance_usage=new WeakMap,_YargsInstance_usageConfig=new WeakMap,_YargsInstance_versionOpt=new WeakMap,_YargsInstance_validation=new WeakMap,kCopyDoubleDash)](l){if(!l._||!l[`--`])return l;l._.push.apply(l._,l[`--`]);try{delete l[`--`]}catch{}return l}[kCreateLogger](){return{log:(...l)=>{this[kHasParseCallback]()||console.log(...l),__classPrivateFieldSet(this,_YargsInstance_hasOutput,!0,`f`),__classPrivateFieldGet(this,_YargsInstance_output,`f`).length&&__classPrivateFieldSet(this,_YargsInstance_output,__classPrivateFieldGet(this,_YargsInstance_output,`f`)+`
105
105
  `,`f`),__classPrivateFieldSet(this,_YargsInstance_output,__classPrivateFieldGet(this,_YargsInstance_output,`f`)+l.join(` `),`f`)},error:(...l)=>{this[kHasParseCallback]()||console.error(...l),__classPrivateFieldSet(this,_YargsInstance_hasOutput,!0,`f`),__classPrivateFieldGet(this,_YargsInstance_output,`f`).length&&__classPrivateFieldSet(this,_YargsInstance_output,__classPrivateFieldGet(this,_YargsInstance_output,`f`)+`
106
- `,`f`),__classPrivateFieldSet(this,_YargsInstance_output,__classPrivateFieldGet(this,_YargsInstance_output,`f`)+l.join(` `),`f`)}}}[kDeleteFromParserHintObject](l){objectKeys(__classPrivateFieldGet(this,_YargsInstance_options,`f`)).forEach(d=>{if((l=>l===`configObjects`)(d))return;let f=__classPrivateFieldGet(this,_YargsInstance_options,`f`)[d];Array.isArray(f)?f.includes(l)&&f.splice(f.indexOf(l),1):typeof f==`object`&&delete f[l]}),delete __classPrivateFieldGet(this,_YargsInstance_usage,`f`).getDescriptions()[l]}[kEmitWarning](l,d,f){__classPrivateFieldGet(this,_YargsInstance_emittedWarnings,`f`)[f]||(__classPrivateFieldGet(this,_YargsInstance_shim,`f`).process.emitWarning(l,d),__classPrivateFieldGet(this,_YargsInstance_emittedWarnings,`f`)[f]=!0)}[kFreeze](){__classPrivateFieldGet(this,_YargsInstance_frozens,`f`).push({options:__classPrivateFieldGet(this,_YargsInstance_options,`f`),configObjects:__classPrivateFieldGet(this,_YargsInstance_options,`f`).configObjects.slice(0),exitProcess:__classPrivateFieldGet(this,_YargsInstance_exitProcess,`f`),groups:__classPrivateFieldGet(this,_YargsInstance_groups,`f`),strict:__classPrivateFieldGet(this,_YargsInstance_strict,`f`),strictCommands:__classPrivateFieldGet(this,_YargsInstance_strictCommands,`f`),strictOptions:__classPrivateFieldGet(this,_YargsInstance_strictOptions,`f`),completionCommand:__classPrivateFieldGet(this,_YargsInstance_completionCommand,`f`),output:__classPrivateFieldGet(this,_YargsInstance_output,`f`),exitError:__classPrivateFieldGet(this,_YargsInstance_exitError,`f`),hasOutput:__classPrivateFieldGet(this,_YargsInstance_hasOutput,`f`),parsed:this.parsed,parseFn:__classPrivateFieldGet(this,_YargsInstance_parseFn,`f`),parseContext:__classPrivateFieldGet(this,_YargsInstance_parseContext,`f`)}),__classPrivateFieldGet(this,_YargsInstance_usage,`f`).freeze(),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).freeze(),__classPrivateFieldGet(this,_YargsInstance_command,`f`).freeze(),__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).freeze()}[kGetDollarZero](){let l=``,d;return d=/\b(node|iojs|electron)(\.exe)?$/.test(__classPrivateFieldGet(this,_YargsInstance_shim,`f`).process.argv()[0])?__classPrivateFieldGet(this,_YargsInstance_shim,`f`).process.argv().slice(1,2):__classPrivateFieldGet(this,_YargsInstance_shim,`f`).process.argv().slice(0,1),l=d.map(l=>{let d=this[kRebase](__classPrivateFieldGet(this,_YargsInstance_cwd,`f`),l);return l.match(/^(\/|([a-zA-Z]:)?\\)/)&&d.length<l.length?d:l}).join(` `).trim(),__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`_`)&&__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getProcessArgvBin()===__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`_`)&&(l=__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`_`).replace(`${__classPrivateFieldGet(this,_YargsInstance_shim,`f`).path.dirname(__classPrivateFieldGet(this,_YargsInstance_shim,`f`).process.execPath())}/`,``)),l}[kGetParserConfiguration](){return __classPrivateFieldGet(this,_YargsInstance_parserConfig,`f`)}[kGetUsageConfiguration](){return __classPrivateFieldGet(this,_YargsInstance_usageConfig,`f`)}[kGuessLocale](){if(!__classPrivateFieldGet(this,_YargsInstance_detectLocale,`f`))return;let l=__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`LC_ALL`)||__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`LC_MESSAGES`)||__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`LANG`)||__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(l.replace(/[.:].*/,``))}[kGuessVersion](){return this[kPkgUp]().version||`unknown`}[kParsePositionalNumbers](l){let d=l[`--`]?l[`--`]:l._;for(let l=0,f;(f=d[l])!==void 0;l++)__classPrivateFieldGet(this,_YargsInstance_shim,`f`).Parser.looksLikeNumber(f)&&Number.isSafeInteger(Math.floor(parseFloat(`${f}`)))&&(d[l]=Number(f));return l}[kPkgUp](l){let d=l||`*`;if(__classPrivateFieldGet(this,_YargsInstance_pkgs,`f`)[d])return __classPrivateFieldGet(this,_YargsInstance_pkgs,`f`)[d];let f={};try{let d=l||__classPrivateFieldGet(this,_YargsInstance_shim,`f`).mainFilename;__classPrivateFieldGet(this,_YargsInstance_shim,`f`).path.extname(d)&&(d=__classPrivateFieldGet(this,_YargsInstance_shim,`f`).path.dirname(d));let m=__classPrivateFieldGet(this,_YargsInstance_shim,`f`).findUp(d,(l,d)=>{if(d.includes(`package.json`))return`package.json`});assertNotStrictEqual(m,void 0,__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),f=JSON.parse(__classPrivateFieldGet(this,_YargsInstance_shim,`f`).readFileSync(m,`utf8`))}catch{}return __classPrivateFieldGet(this,_YargsInstance_pkgs,`f`)[d]=f||{},__classPrivateFieldGet(this,_YargsInstance_pkgs,`f`)[d]}[kPopulateParserHintArray](l,d){d=[].concat(d),d.forEach(d=>{d=this[kSanitizeKey](d),__classPrivateFieldGet(this,_YargsInstance_options,`f`)[l].push(d)})}[kPopulateParserHintSingleValueDictionary](l,d,f,m){this[kPopulateParserHintDictionary](l,d,f,m,(l,d,f)=>{__classPrivateFieldGet(this,_YargsInstance_options,`f`)[l][d]=f})}[kPopulateParserHintArrayDictionary](l,d,f,m){this[kPopulateParserHintDictionary](l,d,f,m,(l,d,f)=>{__classPrivateFieldGet(this,_YargsInstance_options,`f`)[l][d]=(__classPrivateFieldGet(this,_YargsInstance_options,`f`)[l][d]||[]).concat(f)})}[kPopulateParserHintDictionary](l,d,f,m,te){if(Array.isArray(f))f.forEach(d=>{l(d,m)});else if((l=>typeof l==`object`)(f))for(let d of objectKeys(f))l(d,f[d]);else te(d,this[kSanitizeKey](f),m)}[kSanitizeKey](l){return l===`__proto__`?`___proto___`:l}[kSetKey](l,d){return this[kPopulateParserHintSingleValueDictionary](this[kSetKey].bind(this),`key`,l,d),this}[kUnfreeze](){var l,d,f,m,te,re,ie,ae,oe,se,ce,le;let ue=__classPrivateFieldGet(this,_YargsInstance_frozens,`f`).pop();assertNotStrictEqual(ue,void 0,__classPrivateFieldGet(this,_YargsInstance_shim,`f`));let de;l=this,d=this,f=this,m=this,te=this,re=this,ie=this,ae=this,oe=this,se=this,ce=this,le=this,{options:{set value(d){__classPrivateFieldSet(l,_YargsInstance_options,d,`f`)}}.value,configObjects:de,exitProcess:{set value(l){__classPrivateFieldSet(d,_YargsInstance_exitProcess,l,`f`)}}.value,groups:{set value(l){__classPrivateFieldSet(f,_YargsInstance_groups,l,`f`)}}.value,output:{set value(l){__classPrivateFieldSet(m,_YargsInstance_output,l,`f`)}}.value,exitError:{set value(l){__classPrivateFieldSet(te,_YargsInstance_exitError,l,`f`)}}.value,hasOutput:{set value(l){__classPrivateFieldSet(re,_YargsInstance_hasOutput,l,`f`)}}.value,parsed:this.parsed,strict:{set value(l){__classPrivateFieldSet(ie,_YargsInstance_strict,l,`f`)}}.value,strictCommands:{set value(l){__classPrivateFieldSet(ae,_YargsInstance_strictCommands,l,`f`)}}.value,strictOptions:{set value(l){__classPrivateFieldSet(oe,_YargsInstance_strictOptions,l,`f`)}}.value,completionCommand:{set value(l){__classPrivateFieldSet(se,_YargsInstance_completionCommand,l,`f`)}}.value,parseFn:{set value(l){__classPrivateFieldSet(ce,_YargsInstance_parseFn,l,`f`)}}.value,parseContext:{set value(l){__classPrivateFieldSet(le,_YargsInstance_parseContext,l,`f`)}}.value}=ue,__classPrivateFieldGet(this,_YargsInstance_options,`f`).configObjects=de,__classPrivateFieldGet(this,_YargsInstance_usage,`f`).unfreeze(),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).unfreeze(),__classPrivateFieldGet(this,_YargsInstance_command,`f`).unfreeze(),__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).unfreeze()}[kValidateAsync](l,d){return maybeAsyncResult(d,d=>(l(d),d))}getInternalMethods(){return{getCommandInstance:this[kGetCommandInstance].bind(this),getContext:this[kGetContext].bind(this),getHasOutput:this[kGetHasOutput].bind(this),getLoggerInstance:this[kGetLoggerInstance].bind(this),getParseContext:this[kGetParseContext].bind(this),getParserConfiguration:this[kGetParserConfiguration].bind(this),getUsageConfiguration:this[kGetUsageConfiguration].bind(this),getUsageInstance:this[kGetUsageInstance].bind(this),getValidationInstance:this[kGetValidationInstance].bind(this),hasParseCallback:this[kHasParseCallback].bind(this),isGlobalContext:this[kIsGlobalContext].bind(this),postProcess:this[kPostProcess].bind(this),reset:this[kReset].bind(this),runValidation:this[kRunValidation].bind(this),runYargsParserAndExecuteCommands:this[kRunYargsParserAndExecuteCommands].bind(this),setHasOutput:this[kSetHasOutput].bind(this)}}[kGetCommandInstance](){return __classPrivateFieldGet(this,_YargsInstance_command,`f`)}[kGetContext](){return __classPrivateFieldGet(this,_YargsInstance_context,`f`)}[kGetHasOutput](){return __classPrivateFieldGet(this,_YargsInstance_hasOutput,`f`)}[kGetLoggerInstance](){return __classPrivateFieldGet(this,_YargsInstance_logger,`f`)}[kGetParseContext](){return __classPrivateFieldGet(this,_YargsInstance_parseContext,`f`)||{}}[kGetUsageInstance](){return __classPrivateFieldGet(this,_YargsInstance_usage,`f`)}[kGetValidationInstance](){return __classPrivateFieldGet(this,_YargsInstance_validation,`f`)}[kHasParseCallback](){return!!__classPrivateFieldGet(this,_YargsInstance_parseFn,`f`)}[kIsGlobalContext](){return __classPrivateFieldGet(this,_YargsInstance_isGlobalContext,`f`)}[kPostProcess](l,d,f,m){return f||isPromise$1(l)?l:(d||(l=this[kCopyDoubleDash](l)),(this[kGetParserConfiguration]()[`parse-positional-numbers`]||this[kGetParserConfiguration]()[`parse-positional-numbers`]===void 0)&&(l=this[kParsePositionalNumbers](l)),m&&(l=applyMiddleware(l,this,__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).getMiddleware(),!1)),l)}[kReset](l={}){__classPrivateFieldSet(this,_YargsInstance_options,__classPrivateFieldGet(this,_YargsInstance_options,`f`)||{},`f`);let d={};d.local=__classPrivateFieldGet(this,_YargsInstance_options,`f`).local||[],d.configObjects=__classPrivateFieldGet(this,_YargsInstance_options,`f`).configObjects||[];let f={};return d.local.forEach(d=>{f[d]=!0,(l[d]||[]).forEach(l=>{f[l]=!0})}),Object.assign(__classPrivateFieldGet(this,_YargsInstance_preservedGroups,`f`),Object.keys(__classPrivateFieldGet(this,_YargsInstance_groups,`f`)).reduce((l,d)=>{let m=__classPrivateFieldGet(this,_YargsInstance_groups,`f`)[d].filter(l=>!(l in f));return m.length>0&&(l[d]=m),l},{})),__classPrivateFieldSet(this,_YargsInstance_groups,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(l=>{d[l]=(__classPrivateFieldGet(this,_YargsInstance_options,`f`)[l]||[]).filter(l=>!f[l])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(l=>{d[l]=objFilter(__classPrivateFieldGet(this,_YargsInstance_options,`f`)[l],l=>!f[l])}),d.envPrefix=__classPrivateFieldGet(this,_YargsInstance_options,`f`).envPrefix,__classPrivateFieldSet(this,_YargsInstance_options,d,`f`),__classPrivateFieldSet(this,_YargsInstance_usage,__classPrivateFieldGet(this,_YargsInstance_usage,`f`)?__classPrivateFieldGet(this,_YargsInstance_usage,`f`).reset(f):usage(this,__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),`f`),__classPrivateFieldSet(this,_YargsInstance_validation,__classPrivateFieldGet(this,_YargsInstance_validation,`f`)?__classPrivateFieldGet(this,_YargsInstance_validation,`f`).reset(f):validation(this,__classPrivateFieldGet(this,_YargsInstance_usage,`f`),__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),`f`),__classPrivateFieldSet(this,_YargsInstance_command,__classPrivateFieldGet(this,_YargsInstance_command,`f`)?__classPrivateFieldGet(this,_YargsInstance_command,`f`).reset():command(__classPrivateFieldGet(this,_YargsInstance_usage,`f`),__classPrivateFieldGet(this,_YargsInstance_validation,`f`),__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`),__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),`f`),__classPrivateFieldGet(this,_YargsInstance_completion,`f`)||__classPrivateFieldSet(this,_YargsInstance_completion,completion(this,__classPrivateFieldGet(this,_YargsInstance_usage,`f`),__classPrivateFieldGet(this,_YargsInstance_command,`f`),__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),`f`),__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).reset(),__classPrivateFieldSet(this,_YargsInstance_completionCommand,null,`f`),__classPrivateFieldSet(this,_YargsInstance_output,``,`f`),__classPrivateFieldSet(this,_YargsInstance_exitError,null,`f`),__classPrivateFieldSet(this,_YargsInstance_hasOutput,!1,`f`),this.parsed=!1,this}[kRebase](l,d){return __classPrivateFieldGet(this,_YargsInstance_shim,`f`).path.relative(l,d)}[kRunYargsParserAndExecuteCommands](l,d,f,m=0,te=!1){var re,ie,ae,oe;let se=!!f||te;l||=__classPrivateFieldGet(this,_YargsInstance_processArgs,`f`),__classPrivateFieldGet(this,_YargsInstance_options,`f`).__=__classPrivateFieldGet(this,_YargsInstance_shim,`f`).y18n.__,__classPrivateFieldGet(this,_YargsInstance_options,`f`).configuration=this[kGetParserConfiguration]();let ce=!!__classPrivateFieldGet(this,_YargsInstance_options,`f`).configuration[`populate--`],le=Object.assign({},__classPrivateFieldGet(this,_YargsInstance_options,`f`).configuration,{"populate--":!0}),ue=__classPrivateFieldGet(this,_YargsInstance_shim,`f`).Parser.detailed(l,Object.assign({},__classPrivateFieldGet(this,_YargsInstance_options,`f`),{configuration:{"parse-positional-numbers":!1,...le}})),de=Object.assign(ue.argv,__classPrivateFieldGet(this,_YargsInstance_parseContext,`f`)),fe,pe=ue.aliases,me=!1,he=!1;Object.keys(de).forEach(l=>{l===__classPrivateFieldGet(this,_YargsInstance_helpOpt,`f`)&&de[l]?me=!0:l===__classPrivateFieldGet(this,_YargsInstance_versionOpt,`f`)&&de[l]&&(he=!0)}),de.$0=this.$0,this.parsed=ue,m===0&&__classPrivateFieldGet(this,_YargsInstance_usage,`f`).clearCachedHelpMessage();try{if(this[kGuessLocale](),d)return this[kPostProcess](de,ce,!!f,!1);__classPrivateFieldGet(this,_YargsInstance_helpOpt,`f`)&&[__classPrivateFieldGet(this,_YargsInstance_helpOpt,`f`)].concat(pe[__classPrivateFieldGet(this,_YargsInstance_helpOpt,`f`)]||[]).filter(l=>l.length>1).includes(``+de._[de._.length-1])&&(de._.pop(),me=!0),__classPrivateFieldSet(this,_YargsInstance_isGlobalContext,!1,`f`);let re=__classPrivateFieldGet(this,_YargsInstance_command,`f`).getCommands(),ie=__classPrivateFieldGet(this,_YargsInstance_completion,`f`)?.completionKey?[__classPrivateFieldGet(this,_YargsInstance_completion,`f`)?.completionKey,...this.getAliases()[__classPrivateFieldGet(this,_YargsInstance_completion,`f`)?.completionKey]??[]].some(l=>Object.prototype.hasOwnProperty.call(de,l)):!1,ae=me||ie||te;if(de._.length){if(re.length){let l;for(let d=m||0,ie;de._[d]!==void 0;d++)if(ie=String(de._[d]),re.includes(ie)&&ie!==__classPrivateFieldGet(this,_YargsInstance_completionCommand,`f`)){let l=__classPrivateFieldGet(this,_YargsInstance_command,`f`).runCommand(ie,this,ue,d+1,te,me||he||te);return this[kPostProcess](l,ce,!!f,!1)}else if(!l&&ie!==__classPrivateFieldGet(this,_YargsInstance_completionCommand,`f`)){l=ie;break}!__classPrivateFieldGet(this,_YargsInstance_command,`f`).hasDefaultCommand()&&__classPrivateFieldGet(this,_YargsInstance_recommendCommands,`f`)&&l&&!ae&&__classPrivateFieldGet(this,_YargsInstance_validation,`f`).recommendCommands(l,re)}__classPrivateFieldGet(this,_YargsInstance_completionCommand,`f`)&&de._.includes(__classPrivateFieldGet(this,_YargsInstance_completionCommand,`f`))&&!ie&&(__classPrivateFieldGet(this,_YargsInstance_exitProcess,`f`)&&setBlocking(!0),this.showCompletionScript(),this.exit(0))}if(__classPrivateFieldGet(this,_YargsInstance_command,`f`).hasDefaultCommand()&&!ae){let l=__classPrivateFieldGet(this,_YargsInstance_command,`f`).runCommand(null,this,ue,0,te,me||he||te);return this[kPostProcess](l,ce,!!f,!1)}if(ie){__classPrivateFieldGet(this,_YargsInstance_exitProcess,`f`)&&setBlocking(!0),l=[].concat(l);let d=l.slice(l.indexOf(`--${__classPrivateFieldGet(this,_YargsInstance_completion,`f`).completionKey}`)+1);return __classPrivateFieldGet(this,_YargsInstance_completion,`f`).getCompletion(d,(l,d)=>{if(l)throw new YError(l.message);(d||[]).forEach(l=>{__classPrivateFieldGet(this,_YargsInstance_logger,`f`).log(l)}),this.exit(0)}),this[kPostProcess](de,!ce,!!f,!1)}if(__classPrivateFieldGet(this,_YargsInstance_hasOutput,`f`)||(me?(__classPrivateFieldGet(this,_YargsInstance_exitProcess,`f`)&&setBlocking(!0),se=!0,this.showHelp(l=>{__classPrivateFieldGet(this,_YargsInstance_logger,`f`).log(l),this.exit(0)})):he&&(__classPrivateFieldGet(this,_YargsInstance_exitProcess,`f`)&&setBlocking(!0),se=!0,__classPrivateFieldGet(this,_YargsInstance_usage,`f`).showVersion(`log`),this.exit(0))),!se&&__classPrivateFieldGet(this,_YargsInstance_options,`f`).skipValidation.length>0&&(se=Object.keys(de).some(l=>__classPrivateFieldGet(this,_YargsInstance_options,`f`).skipValidation.indexOf(l)>=0&&de[l]===!0)),!se){if(ue.error)throw new YError(ue.error.message);if(!ie){let l=this[kRunValidation](pe,{},ue.error);f||(fe=applyMiddleware(de,this,__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).getMiddleware(),!0)),fe=this[kValidateAsync](l,fe??de),isPromise$1(fe)&&!f&&(fe=fe.then(()=>applyMiddleware(de,this,__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).getMiddleware(),!1)))}}}catch(l){if(l instanceof YError)__classPrivateFieldGet(this,_YargsInstance_usage,`f`).fail(l.message,l);else throw l}return this[kPostProcess](fe??de,ce,!!f,!0)}[kRunValidation](l,d,f,m){let te={...this.getDemandedOptions()};return re=>{if(f)throw new YError(f.message);__classPrivateFieldGet(this,_YargsInstance_validation,`f`).nonOptionCount(re),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).requiredArguments(re,te);let ie=!1;__classPrivateFieldGet(this,_YargsInstance_strictCommands,`f`)&&(ie=__classPrivateFieldGet(this,_YargsInstance_validation,`f`).unknownCommands(re)),__classPrivateFieldGet(this,_YargsInstance_strict,`f`)&&!ie?__classPrivateFieldGet(this,_YargsInstance_validation,`f`).unknownArguments(re,l,d,!!m):__classPrivateFieldGet(this,_YargsInstance_strictOptions,`f`)&&__classPrivateFieldGet(this,_YargsInstance_validation,`f`).unknownArguments(re,l,{},!1,!1),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).limitedChoices(re),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).implications(re),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).conflicting(re)}}[kSetHasOutput](){__classPrivateFieldSet(this,_YargsInstance_hasOutput,!0,`f`)}[kTrackManuallySetKeys](l){if(typeof l==`string`)__classPrivateFieldGet(this,_YargsInstance_options,`f`).key[l]=!0;else for(let d of l)__classPrivateFieldGet(this,_YargsInstance_options,`f`).key[d]=!0}};function isYargsInstance(l){return!!l&&typeof l.getInternalMethods==`function`}const Yargs=YargsFactory(esm_default);function charAt(l,d){return l.charAt(d)}function join$4(l,d=``){return l.join(d)}function replaceAll(l,d,f=``){if(typeof l.replaceAll==`function`)return l.replaceAll(d,f);let m=new RegExp(d,`g`);return l.replace(m,f)}function slice(l,d=0,f=void 0){return l.slice(d,f)}function toLowerCase(l){return l.toLowerCase()}function toUpperCase(l){return l.toUpperCase()}function removeApostrophe(l){return replaceAll(l,`'`,``)}function capitalize(l){return join$4([toUpperCase(charAt(l,0)??``),slice(l,1)])}function pascalCaseAll(l){return l.map(l=>capitalize(toLowerCase(l)))}var UNESCAPED_SEPARATORS=[`[`,`]`,`{`,`}`,`(`,`)`,`|`,`/`,`-`,`\\`],SEPARATORS=[...UNESCAPED_SEPARATORS,` `,`_`,`.`];function escapeChar(l){return UNESCAPED_SEPARATORS.includes(l)?`\\${l}`:l}var SEPARATOR_REGEX=RegExp(`[${SEPARATORS.map(escapeChar).join(``)}]`,`g`);function words(l){return l.replace(SEPARATOR_REGEX,` `).replace(/([a-zA-Z])([0-9])/g,`$1 $2`).replace(/([0-9])([a-zA-Z])/g,`$1 $2`).replace(/([a-zA-Z0-9_\-./])([^a-zA-Z0-9_\-./'])/g,`$1 $2`).replace(/([^a-zA-Z0-9_\-./'])([a-zA-Z0-9_\-./])/g,`$1 $2`).replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/([A-Z])([A-Z][a-z])/g,`$1 $2`).trim().split(/\s+/g)}function pascalCase(l){return join$4(pascalCaseAll(words(removeApostrophe(l))))}function delimiterCase(l,d){return join$4(words(removeApostrophe(l)),d)}function kebabCase(l){return toLowerCase(delimiterCase(removeApostrophe(l),`-`))}function titleCase(l){return delimiterCase(pascalCase(l),` `)}var name=`metascope`,version$1=`0.8.2`,bin={metascope:`dist/bin/cli.js`};function isPlainObject$8(l){if(typeof l!=`object`||!l)return!1;let d=Object.getPrototypeOf(l);return d!==null&&d!==Object.prototype&&Object.getPrototypeOf(d)!==null||Symbol.iterator in l?!1:Symbol.toStringTag in l?Object.prototype.toString.call(l)===`[object Module]`:!0}function _defu(l,d,f=`.`,m){if(!isPlainObject$8(d))return _defu(l,{},f,m);let te={...d};for(let d of Object.keys(l)){if(d===`__proto__`||d===`constructor`)continue;let re=l[d];re!=null&&(m&&m(te,d,re,f)||(Array.isArray(re)&&Array.isArray(te[d])?te[d]=[...re,...te[d]]:isPlainObject$8(re)&&isPlainObject$8(te[d])?te[d]=_defu(re,te[d],(f?`${f}.`:``)+d.toString(),m):te[d]=re))}return te}function createDefu(l){return(...d)=>d.reduce((d,f)=>_defu(d,f,``,l),{})}const defu=createDefu(),defuFn=createDefu((l,d,f)=>{if(l[d]!==void 0&&typeof f==`function`)return l[d]=f(l[d]),!0}),defuArrayFn=createDefu((l,d,f)=>{if(Array.isArray(l[d])&&typeof f==`function`)return l[d]=f(l[d]),!0});let LogLevel=function(l){return l.info=`info`,l.warn=`warn`,l.error=`error`,l.debug=`debug`,l.trace=`trace`,l.fatal=`fatal`,l}({});const LogLevelPriority={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},LAZY_SYMBOL=Symbol.for(`loglayer.lazy`),LAZY_EVAL_ERROR=`[LazyEvalError]`;function isLazy(l){return typeof l==`object`&&!!l&&LAZY_SYMBOL in l}function countLazyValues(l){let d=0;for(let f of Object.keys(l))isLazy(l[f])&&d++;return d}function resolveLazyValues(l){let d=!1;for(let f of Object.keys(l))if(isLazy(l[f])){d=!0;break}if(!d)return{resolved:l,errors:null};let f={},m=null;for(let d of Object.keys(l)){let te=l[d];if(isLazy(te))try{f[d]=te[LAZY_SYMBOL]()}catch(l){f[d]=LAZY_EVAL_ERROR,m||=[],m.push({key:d,error:l})}else f[d]=te}return{resolved:f,errors:m}}function hasPromiseValues(l){for(let d of Object.keys(l))if(l[d]instanceof Promise)return!0;return!1}function replacePromiseValues(l){let d=null,f={};for(let m of Object.keys(l))l[m]instanceof Promise?(f[m]=LAZY_EVAL_ERROR,d||=[],d.push(m)):f[m]=l[m];return d?{resolved:f,asyncKeys:d}:{resolved:l,asyncKeys:null}}async function resolvePromiseValues(l){let d=Object.keys(l),f=await Promise.allSettled(d.map(d=>Promise.resolve(l[d]))),m={},te=null;for(let l=0;l<d.length;l++){let re=f[l];re.status===`fulfilled`?m[d[l]]=re.value:(m[d[l]]=LAZY_EVAL_ERROR,te||=[],te.push({key:d[l],error:re.reason}))}return{resolved:m,errors:te}}function resolveMessages(l){let d=l[0];if(Array.isArray(d)&&d.raw!==void 0){let f=d,m=l.slice(1),te=``;for(let l=0;l<f.length;l++)te+=f[l],l<m.length&&(te+=String(m[l]));return[te]}return l}let PluginCallbackType=function(l){return l.transformLogLevel=`transformLogLevel`,l.onBeforeDataOut=`onBeforeDataOut`,l.shouldSendToLogger=`shouldSendToLogger`,l.onMetadataCalled=`onMetadataCalled`,l.onBeforeMessageOut=`onBeforeMessageOut`,l.onContextCalled=`onContextCalled`,l}({});var DefaultContextManager=class l{context={};hasContext=!1;setContext(l){if(!l){this.context={},this.hasContext=!1;return}this.context=l,this.hasContext=!0}appendContext(l){this.context={...this.context,...l},this.hasContext=!0}getContext(){return this.context}hasContextData(){return this.hasContext}clearContext(l){if(l===void 0){this.context={},this.hasContext=!1;return}let d=Array.isArray(l)?l:[l];for(let l of d)delete this.context[l];this.hasContext=Object.keys(this.context).length>0}onChildLoggerCreated({parentContextManager:l,childContextManager:d}){if(l.hasContextData()){let f=l.getContext();d.setContext({...f})}}clone(){let d=new l;return d.setContext({...this.context}),d.hasContext=this.hasContext,d}},MockContextManager=class l{setContext(l){}appendContext(l){}getContext(){return{}}hasContextData(){return!1}clearContext(l){}onChildLoggerCreated(l){}clone(){return new l}},DefaultLogLevelManager=class l{logLevelEnabledStatus={info:!0,warn:!0,error:!0,debug:!0,trace:!0,fatal:!0};setLevel(l){let d=LogLevelPriority[l];for(let l of Object.values(LogLevel)){let f=l,m=LogLevelPriority[l];this.logLevelEnabledStatus[f]=m>=d}}enableIndividualLevel(l){let d=l;d in this.logLevelEnabledStatus&&(this.logLevelEnabledStatus[d]=!0)}disableIndividualLevel(l){let d=l;d in this.logLevelEnabledStatus&&(this.logLevelEnabledStatus[d]=!1)}isLevelEnabled(l){let d=l;return this.logLevelEnabledStatus[d]}enableLogging(){for(let l of Object.keys(this.logLevelEnabledStatus))this.logLevelEnabledStatus[l]=!0}disableLogging(){for(let l of Object.keys(this.logLevelEnabledStatus))this.logLevelEnabledStatus[l]=!1}onChildLoggerCreated({parentLogLevelManager:d,childLogLevelManager:f}){let m=d.logLevelEnabledStatus;f instanceof l&&(f.logLevelEnabledStatus={...m})}clone(){let d=new l;return d.logLevelEnabledStatus={...this.logLevelEnabledStatus},d}},MockLogLevelManager=class l{setLevel(l){}enableIndividualLevel(l){}disableIndividualLevel(l){}isLevelEnabled(l){return!0}enableLogging(){}disableLogging(){}onChildLoggerCreated(l){}clone(){return new l}},BaseTransport=class{id;logger;enabled;consoleDebug;level;constructor(l){this.id=l.id??Date.now().toString()+Math.random().toString(),this.logger=l.logger,this.enabled=l.enabled??!0,this.consoleDebug=l.consoleDebug??!1,this.level=l.level??`trace`}_sendToLogger(l){if(!this.enabled||LogLevelPriority[l.logLevel]<LogLevelPriority[this.level])return;let d=this.shipToLogger(l);if(this.consoleDebug)switch(l.logLevel){case LogLevel.info:console.info(...d);break;case LogLevel.warn:console.warn(...d);break;case LogLevel.error:console.error(...d);break;case LogLevel.trace:console.debug(...d);break;case LogLevel.debug:console.debug(...d);break;case LogLevel.fatal:console.debug(...d);break;default:console.log(...d)}}getLoggerInstance(){return this.logger}},LoggerlessTransport=class{id;enabled;level;consoleDebug;constructor(l){this.id=l.id??Date.now().toString()+Math.random().toString(),this.enabled=l.enabled??!0,this.consoleDebug=l.consoleDebug??!1,this.level=l.level??`trace`}_sendToLogger(l){if(!this.enabled||LogLevelPriority[l.logLevel]<LogLevelPriority[this.level])return;let d=this.shipToLogger(l);if(this.consoleDebug)switch(l.logLevel){case LogLevel.info:console.info(...d);break;case LogLevel.warn:console.warn(...d);break;case LogLevel.error:console.error(...d);break;case LogLevel.trace:console.debug(...d);break;case LogLevel.debug:console.debug(...d);break;case LogLevel.fatal:console.debug(...d);break;default:console.log(...d)}}getLoggerInstance(){throw Error(`This transport does not have a logger instance`)}};const CALLBACK_LIST=[PluginCallbackType.onBeforeDataOut,PluginCallbackType.onMetadataCalled,PluginCallbackType.onBeforeMessageOut,PluginCallbackType.transformLogLevel,PluginCallbackType.shouldSendToLogger,PluginCallbackType.onContextCalled];var PluginManager=class{idToPlugin;transformLogLevel=[];onBeforeDataOut=[];shouldSendToLogger=[];onMetadataCalled=[];onBeforeMessageOut=[];onContextCalled=[];constructor(l){this.idToPlugin={},this.mapPlugins(l),this.indexPlugins()}mapPlugins(l){for(let d of l){if(d.id||=Date.now().toString()+Math.random().toString(),this.idToPlugin[d.id])throw Error(`[LogLayer] Plugin with id ${d.id} already exists.`);d.registeredAt=Date.now(),this.idToPlugin[d.id]=d}}indexPlugins(){this.transformLogLevel=[],this.onBeforeDataOut=[],this.shouldSendToLogger=[],this.onMetadataCalled=[],this.onBeforeMessageOut=[],this.onContextCalled=[];let l=Object.values(this.idToPlugin).sort((l,d)=>l.registeredAt-d.registeredAt);for(let d of l){if(d.disabled)return;for(let l of CALLBACK_LIST)d[l]&&d.id&&this[l].push(d.id)}}hasPlugins(l){return this[l].length>0}countPlugins(l){return l?this[l].length:Object.keys(this.idToPlugin).length}addPlugins(l){this.mapPlugins(l),this.indexPlugins()}enablePlugin(l){let d=this.idToPlugin[l];d&&(d.disabled=!1),this.indexPlugins()}disablePlugin(l){let d=this.idToPlugin[l];d&&(d.disabled=!0),this.indexPlugins()}removePlugin(l){delete this.idToPlugin[l],this.indexPlugins()}runTransformLogLevel(l,d){let f=null;for(let m of this.transformLogLevel){let te=this.idToPlugin[m];if(te.transformLogLevel){let m=te.transformLogLevel({data:l.data,logLevel:l.logLevel,messages:l.messages,error:l.error,metadata:l.metadata,context:l.context,groups:l.groups,schema:l.schema,prefix:l.prefix},d);m!=null&&m!==!1&&(f=m)}}return f!=null&&f!==!1?f:l.logLevel}runOnBeforeDataOut(l,d){let f={...l},m=f.data;for(let l of this.onBeforeDataOut){let te=this.idToPlugin[l];if(te.onBeforeDataOut){let l=te.onBeforeDataOut({data:f.data,logLevel:f.logLevel,error:f.error,metadata:f.metadata,context:f.context,groups:f.groups,schema:f.schema,prefix:f.prefix},d);l&&(f.data||={},l!==m&&Object.assign(f.data,l))}}return f.data}runShouldSendToLogger(l,d){return!this.shouldSendToLogger.some(f=>!this.idToPlugin[f].shouldSendToLogger?.(l,d))}runOnMetadataCalled(l,d){let f={...l};for(let l of this.onMetadataCalled){let m=this.idToPlugin[l].onMetadataCalled?.(f,d);if(m)f=m;else return null}return f}runOnBeforeMessageOut(l,d){let f=[...l.messages];for(let m of this.onBeforeMessageOut){let te=this.idToPlugin[m].onBeforeMessageOut?.({messages:f,logLevel:l.logLevel,groups:l.groups,schema:l.schema,prefix:l.prefix},d);te&&(f=te)}return f}runOnContextCalled(l,d){let f={...l};for(let l of this.onContextCalled){let m=this.idToPlugin[l].onContextCalled?.(f,d);if(m)f=m;else return null}return f}},LogLayer=class l{pluginManager;idToTransport;hasMultipleTransports;singleTransport;contextManager;logLevelManager;_isLoggingLazyError=!1;_lazyContextCount=0;_assignedGroups=null;_groupsConfig=null;_activeGroups=null;_ungroupedBehavior=`all`;_config;constructor(l){this._config={...l,enabled:l.enabled??!0},this.contextManager=new DefaultContextManager,this.logLevelManager=new DefaultLogLevelManager,this._config.enabled||this.disableLogging();let d=[...l.plugins||[],...mixinRegistry.pluginsToInit];this.pluginManager=new PluginManager(d),this._config.errorFieldName||(this._config.errorFieldName=`err`),this._config.copyMsgOnOnlyError||(this._config.copyMsgOnOnlyError=!1),this._initializeTransports(this._config.transport),this._groupsConfig=l.groups?{...l.groups}:null,this._ungroupedBehavior=l.ungroupedBehavior??`all`,this._activeGroups=l.activeGroups?new Set(l.activeGroups):null,this._parseEnvGroups(),mixinRegistry.logLayerHandlers.length>0&&mixinRegistry.logLayerHandlers.forEach(d=>{d.onConstruct&&d.onConstruct(this,l)})}withContextManager(l){return this.contextManager&&typeof this.contextManager[Symbol.dispose]==`function`&&this.contextManager[Symbol.dispose](),this.contextManager=l,this._lazyContextCount=l.hasContextData()?countLazyValues(l.getContext()):0,this}getContextManager(){return this.contextManager}withLogLevelManager(l){return this.logLevelManager&&typeof this.logLevelManager[Symbol.dispose]==`function`&&this.logLevelManager[Symbol.dispose](),this.logLevelManager=l,this}getLogLevelManager(){return this.logLevelManager}getConfig(){return this._config}_initializeTransports(l){if(this.idToTransport)for(let l in this.idToTransport)this.idToTransport[l]&&typeof this.idToTransport[l][Symbol.dispose]==`function`&&this.idToTransport[l][Symbol.dispose]();this.hasMultipleTransports=Array.isArray(l)&&l.length>1,this.singleTransport=this.hasMultipleTransports?null:Array.isArray(l)?l[0]:l,Array.isArray(l)?this.idToTransport=l.reduce((l,d)=>(l[d.id]=d,l),{}):this.idToTransport={[l.id]:l}}withPrefix(l){let d=this.child();return d._config.prefix=l,d}withGroup(l){let d=this.child(),f=Array.isArray(l)?l:[l];if(d._assignedGroups){let l=new Set([...d._assignedGroups,...f]);d._assignedGroups=Array.from(l)}else d._assignedGroups=[...f];return d}addGroup(l,d){return this._groupsConfig||={},this._groupsConfig[l]={...d},this}removeGroup(l){return this._groupsConfig&&(delete this._groupsConfig[l],Object.keys(this._groupsConfig).length===0&&(this._groupsConfig=null)),this}enableGroup(l){return this._groupsConfig?.[l]&&(this._groupsConfig[l]={...this._groupsConfig[l],enabled:!0}),this}disableGroup(l){return this._groupsConfig?.[l]&&(this._groupsConfig[l]={...this._groupsConfig[l],enabled:!1}),this}setGroupLevel(l,d){return this._groupsConfig?.[l]&&(this._groupsConfig[l]={...this._groupsConfig[l],level:d}),this}setActiveGroups(l){return this._activeGroups=l?new Set(l):null,this}getGroups(){return this._groupsConfig?{...this._groupsConfig}:{}}withContext(l){let d=l;if(!l)return this._config.consoleDebug&&console.debug(`[LogLayer] withContext was called with no context; dropping.`),this;if(this.pluginManager.hasPlugins(PluginCallbackType.onContextCalled)&&(d=this.pluginManager.runOnContextCalled(l,this),!d))return this._config.consoleDebug&&console.debug(`[LogLayer] Context was dropped due to plugin returning falsy value.`),this;let f=this.contextManager.getContext();for(let l of Object.keys(d)){let m=l in f&&isLazy(f[l]),te=isLazy(d[l]);!m&&te?this._lazyContextCount++:m&&!te&&this._lazyContextCount--}return this.contextManager.appendContext(d),this}clearContext(l){if(l!==void 0&&this._lazyContextCount>0){let d=this.contextManager.getContext(),f=Array.isArray(l)?l:[l];for(let l of f)l in d&&isLazy(d[l])&&this._lazyContextCount--}else l===void 0&&(this._lazyContextCount=0);return this.contextManager.clearContext(l),this}getContext(l){let d=this.contextManager.getContext();if(l?.raw||this._lazyContextCount===0)return d;let{resolved:f,errors:m}=resolveLazyValues(d);m&&this._logLazyEvalErrors(m,`context`);let{resolved:te,asyncKeys:re}=replacePromiseValues(f);return re&&this._logAsyncLazyContextErrors(re),te}addPlugins(l){this.pluginManager.addPlugins(l)}enablePlugin(l){this.pluginManager.enablePlugin(l)}disablePlugin(l){this.pluginManager.disablePlugin(l)}removePlugin(l){this.pluginManager.removePlugin(l)}withMetadata(l){return new LogBuilder(this).withMetadata(l)}withError(l){return new LogBuilder(this).withError(l)}child(){let d=new l({...this._config,transport:Array.isArray(this._config.transport)?[...this._config.transport]:this._config.transport}).withPluginManager(this.pluginManager).withContextManager(this.contextManager.clone()).withLogLevelManager(this.logLevelManager.clone());return this.contextManager.onChildLoggerCreated({parentContextManager:this.contextManager,childContextManager:d.contextManager,parentLogger:this,childLogger:d}),this.logLevelManager.onChildLoggerCreated({parentLogLevelManager:this.logLevelManager,childLogLevelManager:d.logLevelManager,parentLogger:this,childLogger:d}),d._lazyContextCount=d.contextManager.hasContextData()?countLazyValues(d.contextManager.getContext()):0,d._groupsConfig=this._groupsConfig,d._activeGroups=this._activeGroups,d._ungroupedBehavior=this._ungroupedBehavior,d._assignedGroups=this._assignedGroups?[...this._assignedGroups]:null,d}withFreshTransports(l){return this._config.transport=l,this._initializeTransports(l),this}addTransport(l){let d=Array.isArray(l)?l:[l],f=Array.isArray(this._config.transport)?this._config.transport:[this._config.transport],m=new Set(d.map(l=>l.id));for(let l of d){let d=this.idToTransport[l.id];d&&typeof d[Symbol.dispose]==`function`&&d[Symbol.dispose]()}let te=[...f.filter(l=>!m.has(l.id)),...d];this._config.transport=te;for(let l of d)this.idToTransport[l.id]=l;return this.hasMultipleTransports=te.length>1,this.singleTransport=this.hasMultipleTransports?null:te[0],this}removeTransport(l){let d=this.idToTransport[l];if(!d)return!1;typeof d[Symbol.dispose]==`function`&&d[Symbol.dispose](),delete this.idToTransport[l];let f=(Array.isArray(this._config.transport)?this._config.transport:[this._config.transport]).filter(d=>d.id!==l);return this._config.transport=f.length===1?f[0]:f,this.hasMultipleTransports=f.length>1,this.singleTransport=this.hasMultipleTransports?null:f[0]||null,!0}withFreshPlugins(l){return this._config.plugins=l,this.pluginManager=new PluginManager(l),this}withPluginManager(l){return this.pluginManager=l,this}errorOnly(l,d){let f=d?.logLevel||LogLevel.error;if(!this.isLevelEnabled(f))return;let{copyMsgOnOnlyError:m}=this._config,te={logLevel:f,err:l};(m&&d?.copyMsg!==!1||d?.copyMsg===!0)&&l?.message&&(te.params=[l.message]),this._formatLog(te)}metadataOnly(l,d=LogLevel.info){if(!this.isLevelEnabled(d))return;let{muteMetadata:f,consoleDebug:m}=this._config;if(f)return;if(!l){m&&console.debug(`[LogLayer] metadataOnly was called with no metadata; dropping.`);return}let te=l;if(this.pluginManager.hasPlugins(PluginCallbackType.onMetadataCalled)&&(te=this.pluginManager.runOnMetadataCalled(l,this),!te)){m&&console.debug(`[LogLayer] Metadata was dropped due to plugin returning falsy value.`);return}let re={logLevel:d,metadata:te};return this._formatLog(re)}info(...l){if(!this.isLevelEnabled(LogLevel.info))return;let d=resolveMessages(l);this._formatMessage(d),this._formatLog({logLevel:LogLevel.info,params:d})}warn(...l){if(!this.isLevelEnabled(LogLevel.warn))return;let d=resolveMessages(l);this._formatMessage(d),this._formatLog({logLevel:LogLevel.warn,params:d})}error(...l){if(!this.isLevelEnabled(LogLevel.error))return;let d=resolveMessages(l);this._formatMessage(d),this._formatLog({logLevel:LogLevel.error,params:d})}debug(...l){if(!this.isLevelEnabled(LogLevel.debug))return;let d=resolveMessages(l);this._formatMessage(d),this._formatLog({logLevel:LogLevel.debug,params:d})}trace(...l){if(!this.isLevelEnabled(LogLevel.trace))return;let d=resolveMessages(l);this._formatMessage(d),this._formatLog({logLevel:LogLevel.trace,params:d})}fatal(...l){if(!this.isLevelEnabled(LogLevel.fatal))return;let d=resolveMessages(l);this._formatMessage(d),this._formatLog({logLevel:LogLevel.fatal,params:d})}raw(l){if(!this.isLevelEnabled(l.logLevel))return;let d={logLevel:l.logLevel,params:l.messages,metadata:l.metadata,rootData:l.rootData,err:l.error,context:l.context};return this._formatMessage(l.messages),this._formatLog(d)}disableLogging(){return this.logLevelManager.disableLogging(),this}enableLogging(){return this.logLevelManager.enableLogging(),this}muteContext(){return this._config.muteContext=!0,this}unMuteContext(){return this._config.muteContext=!1,this}muteMetadata(){return this._config.muteMetadata=!0,this}unMuteMetadata(){return this._config.muteMetadata=!1,this}enableIndividualLevel(l){return this.logLevelManager.enableIndividualLevel(l),this}disableIndividualLevel(l){return this.logLevelManager.disableIndividualLevel(l),this}setLevel(l){return this.logLevelManager.setLevel(l),this}isLevelEnabled(l){return this.logLevelManager.isLevelEnabled(l)}formatContext(l){let{contextFieldName:d,muteContext:f}=this._config;return l&&Object.keys(l).length>0&&!f?d?{[d]:{...l}}:{...l}:{}}formatMetadata(l=null){let{metadataFieldName:d,muteMetadata:f}=this._config;return l&&!f?d?{[d]:{...l}}:{...l}:{}}getLoggerInstance(l){let d=this.idToTransport[l];if(d)return d.getLoggerInstance()}_parseEnvGroups(){let l=typeof process<`u`?process.env?.LOGLAYER_GROUPS:void 0;if(!l)return;let d=l.split(`,`).map(l=>l.trim()).filter(Boolean),f=[];for(let l of d){let d=l.indexOf(`:`);if(d>0){let m=l.slice(0,d),te=l.slice(d+1);f.push(m),this._groupsConfig?.[m]&&(this._groupsConfig[m]={...this._groupsConfig[m],level:te})}else f.push(l)}this._activeGroups=new Set(f)}_mergeGroups(l){if(this._assignedGroups&&l){let d=new Set([...this._assignedGroups,...l]);return Array.from(d)}return l||this._assignedGroups}_applyUngroupedRules(l){return this._ungroupedBehavior===`all`?!0:this._ungroupedBehavior===`none`?!1:this._ungroupedBehavior.includes(l)}_shouldTransportReceiveLog(l,d,f){if(!this._groupsConfig)return!0;let m=this._mergeGroups(f);if(!m||m.length===0)return this._applyUngroupedRules(l);let te=!1;for(let f of m){let m=this._groupsConfig[f];if(m&&(te=!0,m.enabled!==!1&&!(this._activeGroups&&!this._activeGroups.has(f)))){if(m.level){let l=LogLevelPriority[m.level];if(LogLevelPriority[d]<l)continue}if(m.transports.includes(l))return!0}}return te?!1:this._applyUngroupedRules(l)}_formatMessage(l=[]){let{prefix:d}=this._config;d&&typeof l[0]==`string`&&(l[0]=`${d} ${l[0]}`)}_formatLog({logLevel:l,params:d=[],metadata:f=null,rootData:m=null,err:te,context:re=null,groups:ie=null}){let ae=re===null?this.contextManager.getContext():re,oe;if(this._lazyContextCount>0||re!==null){let l=resolveLazyValues(ae);l.errors&&this._logLazyEvalErrors(l.errors,`context`);let{resolved:d,asyncKeys:f}=replacePromiseValues(l.resolved);f&&this._logAsyncLazyContextErrors(f),oe=d}else oe=ae;let se=null;if(f){let l=resolveLazyValues(f);f=l.resolved,se=l.errors}if(se&&this._logLazyEvalErrors(se,`metadata`),f&&hasPromiseValues(f))return this._resolveAsyncAndProcess(l,d,oe,f,m,te,re,ie);this._processLog(l,d,oe,f,m,te,re,ie)}async _resolveAsyncAndProcess(l,d,f,m,te,re,ie,ae){let oe=null;if(m){let l=await resolvePromiseValues(m);oe=l.resolved,l.errors&&this._logLazyEvalErrors(l.errors,`metadata`)}this._processLog(l,d,f,oe,te,re,ie,ae)}_logLazyEvalErrors(l,d){if(this._isLoggingLazyError){for(let f of l)console.error(`[LogLayer] Lazy evaluation error in ${d} key "${f.key}":`,f.error);return}this._isLoggingLazyError=!0;try{for(let f of l){let l=f.error instanceof Error?f.error.message:String(f.error);this._processLog(LogLevel.error,[`[LogLayer] Lazy evaluation failed for ${d} key "${f.key}": ${l}`],{},null,null,f.error instanceof Error?f.error:void 0,{})}}finally{this._isLoggingLazyError=!1}}_logAsyncLazyContextErrors(l){if(this._isLoggingLazyError){for(let d of l)console.error(`[LogLayer] Async lazy values are not supported in context (key "${d}"). Use async lazy only in metadata.`);return}this._isLoggingLazyError=!0;try{for(let d of l)this._processLog(LogLevel.error,[`[LogLayer] Async lazy values are not supported in context (key "${d}"). Use async lazy only in metadata.`],{},null,null,void 0,{})}finally{this._isLoggingLazyError=!1}}_processLog(l,d,f,m,te,re,ie,ae=null){let{errorSerializer:oe,errorFieldInMetadata:se,muteContext:ce,contextFieldName:le,metadataFieldName:ue,errorFieldName:de,prefix:fe}=this._config,pe={contextFieldName:le??void 0,metadataFieldName:ue??void 0,errorFieldName:de??`err`},me=this._mergeGroups(ae)??void 0,he=!!m||(ce?!1:ie===null?this.contextManager.hasContextData():Object.keys(ie).length>0),ge={};if(he)if(le&&le===ue){let l=this.formatContext(f)[le],d=this.formatMetadata(m)[ue];ge={[le]:{...l,...d}}}else ge={...this.formatContext(f),...this.formatMetadata(m)};if(re){let l=oe?oe(re):re;se&&m&&ue?ge?.[ue]?ge[ue][de]=l:ge={...ge,[ue]:{[de]:l}}:ge=se&&!m&&ue?{...ge,[ue]:{[de]:l}}:{...ge,[de]:l},he=!0}te&&Object.keys(te).length>0&&(ge={...ge,...te},he=!0),this.pluginManager.hasPlugins(PluginCallbackType.onBeforeDataOut)&&(ge=this.pluginManager.runOnBeforeDataOut({data:he?ge:void 0,logLevel:l,error:re,metadata:m,context:f,groups:me,schema:pe,prefix:fe},this),ge&&!he&&(he=!0)),this.pluginManager.hasPlugins(PluginCallbackType.onBeforeMessageOut)&&(d=this.pluginManager.runOnBeforeMessageOut({messages:[...d],logLevel:l,groups:me,schema:pe,prefix:fe},this)),this.pluginManager.hasPlugins(PluginCallbackType.transformLogLevel)&&(l=this.pluginManager.runTransformLogLevel({data:he?ge:void 0,logLevel:l,messages:[...d],error:re,metadata:m,context:f,groups:me,schema:pe,prefix:fe},this));let _e={data:he?ge:void 0,error:re,metadata:m,context:f,groups:me,schema:pe,prefix:fe};if(this.hasMultipleTransports){let f=this._config.transport.filter(d=>!(!d.enabled||!this._shouldTransportReceiveLog(d.id,l,me))).map(async f=>{let m=l;if(!(this.pluginManager.hasPlugins(PluginCallbackType.shouldSendToLogger)&&!this.pluginManager.runShouldSendToLogger({messages:[...d],logLevel:m,transportId:f.id,..._e},this)))return f._sendToLogger({logLevel:m,messages:[...d],hasData:he,..._e})});Promise.all(f).catch(l=>{this._config.consoleDebug&&console.error(`[LogLayer] Error executing transports:`,l)})}else{if(!this.singleTransport?.enabled||!this._shouldTransportReceiveLog(this.singleTransport.id,l,me)||this.pluginManager.hasPlugins(PluginCallbackType.shouldSendToLogger)&&!this.pluginManager.runShouldSendToLogger({messages:[...d],logLevel:l,transportId:this.singleTransport.id,..._e},this))return;this.singleTransport._sendToLogger({logLevel:l,messages:[...d],hasData:he,..._e})}}},MockLogBuilder=class{debug(...l){}error(...l){}info(...l){}trace(...l){}warn(...l){}fatal(...l){}enableLogging(){return this}disableLogging(){return this}withMetadata(l){return this}withError(l){return this}withGroup(l){return this}},MockLogLayer=class{mockLogBuilder=new MockLogBuilder;mockContextManager=new MockContextManager;mockLogLevelManager=new MockLogLevelManager;info(...l){}warn(...l){}error(...l){}debug(...l){}trace(...l){}fatal(...l){}raw(l){}getLoggerInstance(l){}errorOnly(l,d){}metadataOnly(l,d){}addPlugins(l){}removePlugin(l){}enablePlugin(l){}disablePlugin(l){}withPrefix(l){return this}withGroup(l){return this}addGroup(l,d){return this}removeGroup(l){return this}enableGroup(l){return this}disableGroup(l){return this}setGroupLevel(l,d){return this}setActiveGroups(l){return this}getGroups(){return{}}withContext(l){return this}withError(l){return this.mockLogBuilder.withError(l)}withMetadata(l){return this.mockLogBuilder.withMetadata(l)}getContext(l){return{}}clearContext(l){return this}enableLogging(){return this}disableLogging(){return this}child(){return this}muteContext(){return this}unMuteContext(){return this}muteMetadata(){return this}unMuteMetadata(){return this}withFreshTransports(l){return this}addTransport(l){return this}removeTransport(l){return!0}withFreshPlugins(l){return this}withContextManager(l){return this}getContextManager(){return this.mockContextManager}withLogLevelManager(l){return this}getLogLevelManager(){return this.mockLogLevelManager}getConfig(){return{}}setMockLogBuilder(l){this.mockLogBuilder=l}enableIndividualLevel(l){return this}disableIndividualLevel(l){return this}setLevel(l){return this}isLevelEnabled(l){return!0}getMockLogBuilder(){return this.mockLogBuilder}resetMockLogBuilder(){this.mockLogBuilder=new MockLogBuilder}};const mixinRegistry={logLayerHandlers:[],pluginsToInit:[],logBuilderHandlers:[]};var LogBuilder=class{err;metadata;structuredLogger;hasMetadata;pluginManager;_groups=null;constructor(l){this.err=null,this.metadata={},this.structuredLogger=l,this.hasMetadata=!1,this.pluginManager=l.pluginManager,mixinRegistry.logBuilderHandlers.length>0&&mixinRegistry.logBuilderHandlers.forEach(d=>{d.onConstruct&&d.onConstruct(this,l)})}withMetadata(l){let{pluginManager:d,structuredLogger:{_config:{consoleDebug:f}}}=this;if(!l)return f&&console.debug(`[LogLayer] withMetadata was called with no metadata; dropping.`),this;let m=l;return d.hasPlugins(PluginCallbackType.onMetadataCalled)&&(m=d.runOnMetadataCalled(l,this.structuredLogger),!m)?(f&&console.debug(`[LogLayer] Metadata was dropped due to plugin returning falsy value.`),this):(this.metadata={...this.metadata,...m},this.hasMetadata=!0,this)}withError(l){return this.err=l,this}withGroup(l){let d=Array.isArray(l)?l:[l];if(this._groups){let l=new Set([...this._groups,...d]);this._groups=Array.from(l)}else this._groups=[...d];return this}info(...l){if(!this.structuredLogger.isLevelEnabled(LogLevel.info))return;let d=resolveMessages(l);return this.structuredLogger._formatMessage(d),this.formatLog(LogLevel.info,d)}warn(...l){if(!this.structuredLogger.isLevelEnabled(LogLevel.warn))return;let d=resolveMessages(l);return this.structuredLogger._formatMessage(d),this.formatLog(LogLevel.warn,d)}error(...l){if(!this.structuredLogger.isLevelEnabled(LogLevel.error))return;let d=resolveMessages(l);return this.structuredLogger._formatMessage(d),this.formatLog(LogLevel.error,d)}debug(...l){if(!this.structuredLogger.isLevelEnabled(LogLevel.debug))return;let d=resolveMessages(l);return this.structuredLogger._formatMessage(d),this.formatLog(LogLevel.debug,d)}trace(...l){if(!this.structuredLogger.isLevelEnabled(LogLevel.trace))return;let d=resolveMessages(l);return this.structuredLogger._formatMessage(d),this.formatLog(LogLevel.trace,d)}fatal(...l){if(!this.structuredLogger.isLevelEnabled(LogLevel.fatal))return;let d=resolveMessages(l);return this.structuredLogger._formatMessage(d),this.formatLog(LogLevel.fatal,d)}disableLogging(){return this.structuredLogger.disableLogging(),this}enableLogging(){return this.structuredLogger.enableLogging(),this}formatLog(l,d){let{muteMetadata:f}=this.structuredLogger._config,m=f?!1:this.hasMetadata;return this.structuredLogger._formatLog({logLevel:l,params:d,metadata:m?this.metadata:null,err:this.err,groups:this._groups})}};const isNonErrorSymbol=Symbol(`isNonError`);function defineProperty(l,d,f){Object.defineProperty(l,d,{value:f,writable:!1,enumerable:!1,configurable:!1})}function stringify$3(l){if(l===void 0)return`undefined`;if(l===null)return`null`;if(typeof l==`string`)return l;if(typeof l==`number`||typeof l==`boolean`)return String(l);if(typeof l==`bigint`)return`${l}n`;if(typeof l==`symbol`)return l.toString();if(typeof l==`function`)return`[Function${l.name?` ${l.name}`:` (anonymous)`}]`;if(l instanceof Error)try{return String(l)}catch{return`<Unserializable error>`}try{return JSON.stringify(l)}catch{try{return String(l)}catch{return`<Unserializable value>`}}}var NonError$1=class l extends Error{constructor(d,{superclass:f=Error}={}){if(l.isNonError(d))return d;if(d instanceof Error)throw TypeError(`Do not pass Error instances to NonError. Throw the error directly instead.`);super(`Non-error value: ${stringify$3(d)}`),f!==Error&&Object.setPrototypeOf(this,f.prototype),defineProperty(this,`name`,`NonError`),defineProperty(this,isNonErrorSymbol,!0),defineProperty(this,`isNonError`,!0),defineProperty(this,`value`,d)}static isNonError(l){return l?.[isNonErrorSymbol]===!0}static#e(d,f){try{let m=d(...f);return m&&typeof m.then==`function`?(async()=>{try{return await m}catch(d){throw d instanceof Error?d:new l(d)}})():m}catch(d){throw d instanceof Error?d:new l(d)}}static try(d){return l.#e(d,[])}static wrap(d){return(...f)=>l.#e(d,f)}static[Symbol.hasInstance](d){return l.isNonError(d)}};const list$1=[Error,EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,AggregateError,globalThis.DOMException,globalThis.AssertionError,globalThis.SystemError].filter(Boolean).map(l=>[l.name,l]),errorConstructors=new Map(list$1),errorFactories=new Map,errorProperties=[{property:`name`,enumerable:!1},{property:`message`,enumerable:!1},{property:`stack`,enumerable:!1},{property:`code`,enumerable:!0},{property:`cause`,enumerable:!1},{property:`errors`,enumerable:!1}],toJsonWasCalled=new WeakSet,toJSON=l=>{toJsonWasCalled.add(l);let d=l.toJSON();return toJsonWasCalled.delete(l),d},newError=l=>{if(l===`NonError`)return new NonError$1;let d=errorFactories.get(l);if(d)return d();let f=errorConstructors.get(l)??Error;return f===AggregateError?new f([]):new f},destroyCircular=({from:l,seen:d,to:f,forceEnumerable:m,maxDepth:te,depth:re,useToJSON:ie,serialize:ae})=>{if(f||=Array.isArray(l)?[]:!ae&&isErrorLike(l)?newError(l.name):{},d.add(l),re>=te)return d.delete(l),f;if(ie&&typeof l.toJSON==`function`&&!toJsonWasCalled.has(l))return d.delete(l),toJSON(l);let oe=l=>destroyCircular({from:l,seen:d,forceEnumerable:m,maxDepth:te,depth:re+1,useToJSON:ie,serialize:ae});for(let m of Object.keys(l)){let te=l[m];if(te&&te instanceof Uint8Array&&te.constructor.name===`Buffer`){f[m]=ae?`[object Buffer]`:te;continue}if(typeof te==`object`&&te&&typeof te.pipe==`function`){f[m]=ae?`[object Stream]`:te;continue}if(typeof te==`function`){ae||(f[m]=te);continue}if(ae&&typeof te==`bigint`){f[m]=`${te}n`;continue}if(!te||typeof te!=`object`){try{f[m]=te}catch{}continue}if(!d.has(te)){f[m]=oe(te);continue}f[m]=`[Circular]`}if(ae||f instanceof Error)for(let{property:te,enumerable:re}of errorProperties){let ie=l[te];if(ie==null||Object.getOwnPropertyDescriptor(f,te)?.configurable===!1)continue;let ae=ie;typeof ie==`object`&&(ae=d.has(ie)?`[Circular]`:oe(ie)),Object.defineProperty(f,te,{value:ae,enumerable:m||re,configurable:!0,writable:!0})}return d.delete(l),f};function serializeError(l,d={}){let{maxDepth:f=1/0,useToJSON:m=!0}=d;return typeof l==`object`&&l?destroyCircular({from:l,seen:new Set,forceEnumerable:!0,maxDepth:f,depth:0,useToJSON:m,serialize:!0}):(typeof l==`function`&&(l=`<Function>`),destroyCircular({from:new NonError$1(l),seen:new Set,forceEnumerable:!0,maxDepth:f,depth:0,useToJSON:m,serialize:!0}))}function isErrorLike(l){return!!l&&typeof l==`object`&&typeof l.name==`string`&&typeof l.message==`string`&&typeof l.stack==`string`}var require_safe_stable_stringify=__commonJSMin(((l,d)=>{let{hasOwnProperty:f}=Object.prototype,m=he();m.configure=he,m.stringify=m,m.default=m,l.stringify=m,l.configure=he,d.exports=m;let te=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function re(l){return l.length<5e3&&!te.test(l)?`"${l}"`:JSON.stringify(l)}function ie(l,d){if(l.length>200||d)return l.sort(d);for(let d=1;d<l.length;d++){let f=l[d],m=d;for(;m!==0&&l[m-1]>f;)l[m]=l[m-1],m--;l[m]=f}return l}let ae=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function oe(l){return ae.call(l)!==void 0&&l.length!==0}function se(l,d,f){l.length<f&&(f=l.length);let m=d===`,`?``:` `,te=`"0":${m}${l[0]}`;for(let re=1;re<f;re++)te+=`${d}"${re}":${m}${l[re]}`;return te}function ce(l){if(f.call(l,`circularValue`)){let d=l.circularValue;if(typeof d==`string`)return`"${d}"`;if(d==null)return d;if(d===Error||d===TypeError)return{toString(){throw TypeError(`Converting circular structure to JSON`)}};throw TypeError(`The "circularValue" argument must be of type string or the value null or undefined`)}return`"[Circular]"`}function le(l){let d;if(f.call(l,`deterministic`)&&(d=l.deterministic,typeof d!=`boolean`&&typeof d!=`function`))throw TypeError(`The "deterministic" argument must be of type boolean or comparator function`);return d===void 0?!0:d}function ue(l,d){let m;if(f.call(l,d)&&(m=l[d],typeof m!=`boolean`))throw TypeError(`The "${d}" argument must be of type boolean`);return m===void 0?!0:m}function de(l,d){let m;if(f.call(l,d)){if(m=l[d],typeof m!=`number`)throw TypeError(`The "${d}" argument must be of type number`);if(!Number.isInteger(m))throw TypeError(`The "${d}" argument must be an integer`);if(m<1)throw RangeError(`The "${d}" argument must be >= 1`)}return m===void 0?1/0:m}function fe(l){return l===1?`1 item`:`${l} items`}function pe(l){let d=new Set;for(let f of l)(typeof f==`string`||typeof f==`number`)&&d.add(String(f));return d}function me(l){if(f.call(l,`strict`)){let d=l.strict;if(typeof d!=`boolean`)throw TypeError(`The "strict" argument must be of type boolean`);if(d)return l=>{let d=`Object can not safely be stringified. Received type ${typeof l}`;throw typeof l!=`function`&&(d+=` (${l.toString()})`),Error(d)}}}function he(l){l={...l};let d=me(l);d&&(l.bigint===void 0&&(l.bigint=!1),`circularValue`in l||(l.circularValue=Error));let f=ce(l),m=ue(l,`bigint`),te=le(l),ae=typeof te==`function`?te:void 0,he=de(l,`maximumDepth`),ge=de(l,`maximumBreadth`);function _e(l,se,ce,le,ue,de){let pe=se[l];switch(typeof pe==`object`&&pe&&typeof pe.toJSON==`function`&&(pe=pe.toJSON(l)),pe=le.call(se,l,pe),typeof pe){case`string`:return re(pe);case`object`:{if(pe===null)return`null`;if(ce.indexOf(pe)!==-1)return f;let l=``,d=`,`,m=de;if(Array.isArray(pe)){if(pe.length===0)return`[]`;if(he<ce.length+1)return`"[Array]"`;ce.push(pe),ue!==``&&(de+=ue,l+=`\n${de}`,d=`,\n${de}`);let f=Math.min(pe.length,ge),te=0;for(;te<f-1;te++){let f=_e(String(te),pe,ce,le,ue,de);l+=f===void 0?`null`:f,l+=d}let re=_e(String(te),pe,ce,le,ue,de);if(l+=re===void 0?`null`:re,pe.length-1>ge){let f=pe.length-ge-1;l+=`${d}"... ${fe(f)} not stringified"`}return ue!==``&&(l+=`\n${m}`),ce.pop(),`[${l}]`}let se=Object.keys(pe),me=se.length;if(me===0)return`{}`;if(he<ce.length+1)return`"[Object]"`;let ve=``,ye=``;ue!==``&&(de+=ue,d=`,\n${de}`,ve=` `);let be=Math.min(me,ge);te&&!oe(pe)&&(se=ie(se,ae)),ce.push(pe);for(let f=0;f<be;f++){let m=se[f],te=_e(m,pe,ce,le,ue,de);te!==void 0&&(l+=`${ye}${re(m)}:${ve}${te}`,ye=d)}if(me>ge){let f=me-ge;l+=`${ye}"...":${ve}"${fe(f)} not stringified"`,ye=d}return ue!==``&&ye.length>1&&(l=`\n${de}${l}\n${m}`),ce.pop(),`{${l}}`}case`number`:return isFinite(pe)?String(pe):d?d(pe):`null`;case`boolean`:return pe===!0?`true`:`false`;case`undefined`:return;case`bigint`:if(m)return String(pe);default:return d?d(pe):void 0}}function ve(l,te,ie,ae,oe,se){switch(typeof te==`object`&&te&&typeof te.toJSON==`function`&&(te=te.toJSON(l)),typeof te){case`string`:return re(te);case`object`:{if(te===null)return`null`;if(ie.indexOf(te)!==-1)return f;let l=se,d=``,m=`,`;if(Array.isArray(te)){if(te.length===0)return`[]`;if(he<ie.length+1)return`"[Array]"`;ie.push(te),oe!==``&&(se+=oe,d+=`\n${se}`,m=`,\n${se}`);let f=Math.min(te.length,ge),re=0;for(;re<f-1;re++){let l=ve(String(re),te[re],ie,ae,oe,se);d+=l===void 0?`null`:l,d+=m}let ce=ve(String(re),te[re],ie,ae,oe,se);if(d+=ce===void 0?`null`:ce,te.length-1>ge){let l=te.length-ge-1;d+=`${m}"... ${fe(l)} not stringified"`}return oe!==``&&(d+=`\n${l}`),ie.pop(),`[${d}]`}ie.push(te);let ce=``;oe!==``&&(se+=oe,m=`,\n${se}`,ce=` `);let le=``;for(let l of ae){let f=ve(l,te[l],ie,ae,oe,se);f!==void 0&&(d+=`${le}${re(l)}:${ce}${f}`,le=m)}return oe!==``&&le.length>1&&(d=`\n${se}${d}\n${l}`),ie.pop(),`{${d}}`}case`number`:return isFinite(te)?String(te):d?d(te):`null`;case`boolean`:return te===!0?`true`:`false`;case`undefined`:return;case`bigint`:if(m)return String(te);default:return d?d(te):void 0}}function ye(l,ce,le,ue,de){switch(typeof ce){case`string`:return re(ce);case`object`:{if(ce===null)return`null`;if(typeof ce.toJSON==`function`){if(ce=ce.toJSON(l),typeof ce!=`object`)return ye(l,ce,le,ue,de);if(ce===null)return`null`}if(le.indexOf(ce)!==-1)return f;let d=de;if(Array.isArray(ce)){if(ce.length===0)return`[]`;if(he<le.length+1)return`"[Array]"`;le.push(ce),de+=ue;let l=`\n${de}`,f=`,\n${de}`,m=Math.min(ce.length,ge),te=0;for(;te<m-1;te++){let d=ye(String(te),ce[te],le,ue,de);l+=d===void 0?`null`:d,l+=f}let re=ye(String(te),ce[te],le,ue,de);if(l+=re===void 0?`null`:re,ce.length-1>ge){let d=ce.length-ge-1;l+=`${f}"... ${fe(d)} not stringified"`}return l+=`\n${d}`,le.pop(),`[${l}]`}let m=Object.keys(ce),pe=m.length;if(pe===0)return`{}`;if(he<le.length+1)return`"[Object]"`;de+=ue;let me=`,\n${de}`,_e=``,ve=``,be=Math.min(pe,ge);oe(ce)&&(_e+=se(ce,me,ge),m=m.slice(ce.length),be-=ce.length,ve=me),te&&(m=ie(m,ae)),le.push(ce);for(let l=0;l<be;l++){let d=m[l],f=ye(d,ce[d],le,ue,de);f!==void 0&&(_e+=`${ve}${re(d)}: ${f}`,ve=me)}if(pe>ge){let l=pe-ge;_e+=`${ve}"...": "${fe(l)} not stringified"`,ve=me}return ve!==``&&(_e=`\n${de}${_e}\n${d}`),le.pop(),`{${_e}}`}case`number`:return isFinite(ce)?String(ce):d?d(ce):`null`;case`boolean`:return ce===!0?`true`:`false`;case`undefined`:return;case`bigint`:if(m)return String(ce);default:return d?d(ce):void 0}}function be(l,ce,le){switch(typeof ce){case`string`:return re(ce);case`object`:{if(ce===null)return`null`;if(typeof ce.toJSON==`function`){if(ce=ce.toJSON(l),typeof ce!=`object`)return be(l,ce,le);if(ce===null)return`null`}if(le.indexOf(ce)!==-1)return f;let d=``,m=ce.length!==void 0;if(m&&Array.isArray(ce)){if(ce.length===0)return`[]`;if(he<le.length+1)return`"[Array]"`;le.push(ce);let l=Math.min(ce.length,ge),f=0;for(;f<l-1;f++){let l=be(String(f),ce[f],le);d+=l===void 0?`null`:l,d+=`,`}let m=be(String(f),ce[f],le);if(d+=m===void 0?`null`:m,ce.length-1>ge){let l=ce.length-ge-1;d+=`,"... ${fe(l)} not stringified"`}return le.pop(),`[${d}]`}let ue=Object.keys(ce),de=ue.length;if(de===0)return`{}`;if(he<le.length+1)return`"[Object]"`;let pe=``,me=Math.min(de,ge);m&&oe(ce)&&(d+=se(ce,`,`,ge),ue=ue.slice(ce.length),me-=ce.length,pe=`,`),te&&(ue=ie(ue,ae)),le.push(ce);for(let l=0;l<me;l++){let f=ue[l],m=be(f,ce[f],le);m!==void 0&&(d+=`${pe}${re(f)}:${m}`,pe=`,`)}if(de>ge){let l=de-ge;d+=`${pe}"...":"${fe(l)} not stringified"`}return le.pop(),`{${d}}`}case`number`:return isFinite(ce)?String(ce):d?d(ce):`null`;case`boolean`:return ce===!0?`true`:`false`;case`undefined`:return;case`bigint`:if(m)return String(ce);default:return d?d(ce):void 0}}function xe(l,d,f){if(arguments.length>1){let m=``;if(typeof f==`number`?m=` `.repeat(Math.min(f,10)):typeof f==`string`&&(m=f.slice(0,10)),d!=null){if(typeof d==`function`)return _e(``,{"":l},[],d,m,``);if(Array.isArray(d))return ve(``,l,[],pe(d),m,``)}if(m.length!==0)return ye(``,l,[],m,``)}return be(``,l,[])}return xe}})),import_safe_stable_stringify=__toESM(require_safe_stable_stringify());const configure$1=import_safe_stable_stringify.configure,stringify=import_safe_stable_stringify.default;var require_symbols=__commonJSMin(((l,d)=>{let f=typeof process<`u`&&process.env.TERM_PROGRAM===`Hyper`,m=typeof process<`u`&&process.platform===`win32`,te=typeof process<`u`&&process.platform===`linux`,re={ballotDisabled:`☒`,ballotOff:`☐`,ballotOn:`☑`,bullet:`•`,bulletWhite:`◦`,fullBlock:`█`,heart:`❤`,identicalTo:`≡`,line:`─`,mark:`※`,middot:`·`,minus:`-`,multiplication:`×`,obelus:`÷`,pencilDownRight:`✎`,pencilRight:`✏`,pencilUpRight:`✐`,percent:`%`,pilcrow2:`❡`,pilcrow:`¶`,plusMinus:`±`,question:`?`,section:`§`,starsOff:`☆`,starsOn:`★`,upDownArrow:`↕`},ie=Object.assign({},re,{check:`√`,cross:`×`,ellipsisLarge:`...`,ellipsis:`...`,info:`i`,questionSmall:`?`,pointer:`>`,pointerSmall:`»`,radioOff:`( )`,radioOn:`(*)`,warning:`‼`}),ae=Object.assign({},re,{ballotCross:`✘`,check:`✔`,cross:`✖`,ellipsisLarge:`⋯`,ellipsis:`…`,info:`ℹ`,questionFull:`?`,questionSmall:`﹖`,pointer:te?`▸`:`❯`,pointerSmall:te?`‣`:`›`,radioOff:`◯`,radioOn:`◉`,warning:`⚠`});d.exports=m&&!f?ie:ae,Reflect.defineProperty(d.exports,"common",{enumerable:!1,value:re}),Reflect.defineProperty(d.exports,"windows",{enumerable:!1,value:ie}),Reflect.defineProperty(d.exports,"other",{enumerable:!1,value:ae})})),require_ansi_colors=__commonJSMin(((l,d)=>{let f=l=>typeof l==`object`&&!!l&&!Array.isArray(l),m=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,te=()=>typeof process<`u`?process.env.FORCE_COLOR!==`0`:!1,re=()=>{let l={enabled:te(),visible:!0,styles:{},keys:{}},d=l=>{let d=l.open=`\u001b[${l.codes[0]}m`,f=l.close=`\u001b[${l.codes[1]}m`,m=l.regex=RegExp(`\\u001b\\[${l.codes[1]}m`,`g`);return l.wrap=(l,te)=>{l.includes(f)&&(l=l.replace(m,f+d));let re=d+l+f;return te?re.replace(/\r*\n/g,`${f}$&${d}`):re},l},re=(l,d,f)=>typeof l==`function`?l(d):l.wrap(d,f),ie=(d,f)=>{if(d===``||d==null)return``;if(l.enabled===!1)return d;if(l.visible===!1)return``;let m=``+d,te=m.includes(`
106
+ `,`f`),__classPrivateFieldSet(this,_YargsInstance_output,__classPrivateFieldGet(this,_YargsInstance_output,`f`)+l.join(` `),`f`)}}}[kDeleteFromParserHintObject](l){objectKeys(__classPrivateFieldGet(this,_YargsInstance_options,`f`)).forEach(d=>{if((l=>l===`configObjects`)(d))return;let f=__classPrivateFieldGet(this,_YargsInstance_options,`f`)[d];Array.isArray(f)?f.includes(l)&&f.splice(f.indexOf(l),1):typeof f==`object`&&delete f[l]}),delete __classPrivateFieldGet(this,_YargsInstance_usage,`f`).getDescriptions()[l]}[kEmitWarning](l,d,f){__classPrivateFieldGet(this,_YargsInstance_emittedWarnings,`f`)[f]||(__classPrivateFieldGet(this,_YargsInstance_shim,`f`).process.emitWarning(l,d),__classPrivateFieldGet(this,_YargsInstance_emittedWarnings,`f`)[f]=!0)}[kFreeze](){__classPrivateFieldGet(this,_YargsInstance_frozens,`f`).push({options:__classPrivateFieldGet(this,_YargsInstance_options,`f`),configObjects:__classPrivateFieldGet(this,_YargsInstance_options,`f`).configObjects.slice(0),exitProcess:__classPrivateFieldGet(this,_YargsInstance_exitProcess,`f`),groups:__classPrivateFieldGet(this,_YargsInstance_groups,`f`),strict:__classPrivateFieldGet(this,_YargsInstance_strict,`f`),strictCommands:__classPrivateFieldGet(this,_YargsInstance_strictCommands,`f`),strictOptions:__classPrivateFieldGet(this,_YargsInstance_strictOptions,`f`),completionCommand:__classPrivateFieldGet(this,_YargsInstance_completionCommand,`f`),output:__classPrivateFieldGet(this,_YargsInstance_output,`f`),exitError:__classPrivateFieldGet(this,_YargsInstance_exitError,`f`),hasOutput:__classPrivateFieldGet(this,_YargsInstance_hasOutput,`f`),parsed:this.parsed,parseFn:__classPrivateFieldGet(this,_YargsInstance_parseFn,`f`),parseContext:__classPrivateFieldGet(this,_YargsInstance_parseContext,`f`)}),__classPrivateFieldGet(this,_YargsInstance_usage,`f`).freeze(),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).freeze(),__classPrivateFieldGet(this,_YargsInstance_command,`f`).freeze(),__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).freeze()}[kGetDollarZero](){let l=``,d;return d=/\b(node|iojs|electron)(\.exe)?$/.test(__classPrivateFieldGet(this,_YargsInstance_shim,`f`).process.argv()[0])?__classPrivateFieldGet(this,_YargsInstance_shim,`f`).process.argv().slice(1,2):__classPrivateFieldGet(this,_YargsInstance_shim,`f`).process.argv().slice(0,1),l=d.map(l=>{let d=this[kRebase](__classPrivateFieldGet(this,_YargsInstance_cwd,`f`),l);return l.match(/^(\/|([a-zA-Z]:)?\\)/)&&d.length<l.length?d:l}).join(` `).trim(),__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`_`)&&__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getProcessArgvBin()===__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`_`)&&(l=__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`_`).replace(`${__classPrivateFieldGet(this,_YargsInstance_shim,`f`).path.dirname(__classPrivateFieldGet(this,_YargsInstance_shim,`f`).process.execPath())}/`,``)),l}[kGetParserConfiguration](){return __classPrivateFieldGet(this,_YargsInstance_parserConfig,`f`)}[kGetUsageConfiguration](){return __classPrivateFieldGet(this,_YargsInstance_usageConfig,`f`)}[kGuessLocale](){if(!__classPrivateFieldGet(this,_YargsInstance_detectLocale,`f`))return;let l=__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`LC_ALL`)||__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`LC_MESSAGES`)||__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`LANG`)||__classPrivateFieldGet(this,_YargsInstance_shim,`f`).getEnv(`LANGUAGE`)||`en_US`;this.locale(l.replace(/[.:].*/,``))}[kGuessVersion](){return this[kPkgUp]().version||`unknown`}[kParsePositionalNumbers](l){let d=l[`--`]?l[`--`]:l._;for(let l=0,f;(f=d[l])!==void 0;l++)__classPrivateFieldGet(this,_YargsInstance_shim,`f`).Parser.looksLikeNumber(f)&&Number.isSafeInteger(Math.floor(parseFloat(`${f}`)))&&(d[l]=Number(f));return l}[kPkgUp](l){let d=l||`*`;if(__classPrivateFieldGet(this,_YargsInstance_pkgs,`f`)[d])return __classPrivateFieldGet(this,_YargsInstance_pkgs,`f`)[d];let f={};try{let d=l||__classPrivateFieldGet(this,_YargsInstance_shim,`f`).mainFilename;__classPrivateFieldGet(this,_YargsInstance_shim,`f`).path.extname(d)&&(d=__classPrivateFieldGet(this,_YargsInstance_shim,`f`).path.dirname(d));let m=__classPrivateFieldGet(this,_YargsInstance_shim,`f`).findUp(d,(l,d)=>{if(d.includes(`package.json`))return`package.json`});assertNotStrictEqual(m,void 0,__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),f=JSON.parse(__classPrivateFieldGet(this,_YargsInstance_shim,`f`).readFileSync(m,`utf8`))}catch{}return __classPrivateFieldGet(this,_YargsInstance_pkgs,`f`)[d]=f||{},__classPrivateFieldGet(this,_YargsInstance_pkgs,`f`)[d]}[kPopulateParserHintArray](l,d){d=[].concat(d),d.forEach(d=>{d=this[kSanitizeKey](d),__classPrivateFieldGet(this,_YargsInstance_options,`f`)[l].push(d)})}[kPopulateParserHintSingleValueDictionary](l,d,f,m){this[kPopulateParserHintDictionary](l,d,f,m,(l,d,f)=>{__classPrivateFieldGet(this,_YargsInstance_options,`f`)[l][d]=f})}[kPopulateParserHintArrayDictionary](l,d,f,m){this[kPopulateParserHintDictionary](l,d,f,m,(l,d,f)=>{__classPrivateFieldGet(this,_YargsInstance_options,`f`)[l][d]=(__classPrivateFieldGet(this,_YargsInstance_options,`f`)[l][d]||[]).concat(f)})}[kPopulateParserHintDictionary](l,d,f,m,te){if(Array.isArray(f))f.forEach(d=>{l(d,m)});else if((l=>typeof l==`object`)(f))for(let d of objectKeys(f))l(d,f[d]);else te(d,this[kSanitizeKey](f),m)}[kSanitizeKey](l){return l===`__proto__`?`___proto___`:l}[kSetKey](l,d){return this[kPopulateParserHintSingleValueDictionary](this[kSetKey].bind(this),`key`,l,d),this}[kUnfreeze](){var l,d,f,m,te,re,ie,ae,oe,se,ce,le;let ue=__classPrivateFieldGet(this,_YargsInstance_frozens,`f`).pop();assertNotStrictEqual(ue,void 0,__classPrivateFieldGet(this,_YargsInstance_shim,`f`));let de;l=this,d=this,f=this,m=this,te=this,re=this,ie=this,ae=this,oe=this,se=this,ce=this,le=this,{options:{set value(d){__classPrivateFieldSet(l,_YargsInstance_options,d,`f`)}}.value,configObjects:de,exitProcess:{set value(l){__classPrivateFieldSet(d,_YargsInstance_exitProcess,l,`f`)}}.value,groups:{set value(l){__classPrivateFieldSet(f,_YargsInstance_groups,l,`f`)}}.value,output:{set value(l){__classPrivateFieldSet(m,_YargsInstance_output,l,`f`)}}.value,exitError:{set value(l){__classPrivateFieldSet(te,_YargsInstance_exitError,l,`f`)}}.value,hasOutput:{set value(l){__classPrivateFieldSet(re,_YargsInstance_hasOutput,l,`f`)}}.value,parsed:this.parsed,strict:{set value(l){__classPrivateFieldSet(ie,_YargsInstance_strict,l,`f`)}}.value,strictCommands:{set value(l){__classPrivateFieldSet(ae,_YargsInstance_strictCommands,l,`f`)}}.value,strictOptions:{set value(l){__classPrivateFieldSet(oe,_YargsInstance_strictOptions,l,`f`)}}.value,completionCommand:{set value(l){__classPrivateFieldSet(se,_YargsInstance_completionCommand,l,`f`)}}.value,parseFn:{set value(l){__classPrivateFieldSet(ce,_YargsInstance_parseFn,l,`f`)}}.value,parseContext:{set value(l){__classPrivateFieldSet(le,_YargsInstance_parseContext,l,`f`)}}.value}=ue,__classPrivateFieldGet(this,_YargsInstance_options,`f`).configObjects=de,__classPrivateFieldGet(this,_YargsInstance_usage,`f`).unfreeze(),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).unfreeze(),__classPrivateFieldGet(this,_YargsInstance_command,`f`).unfreeze(),__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).unfreeze()}[kValidateAsync](l,d){return maybeAsyncResult(d,d=>(l(d),d))}getInternalMethods(){return{getCommandInstance:this[kGetCommandInstance].bind(this),getContext:this[kGetContext].bind(this),getHasOutput:this[kGetHasOutput].bind(this),getLoggerInstance:this[kGetLoggerInstance].bind(this),getParseContext:this[kGetParseContext].bind(this),getParserConfiguration:this[kGetParserConfiguration].bind(this),getUsageConfiguration:this[kGetUsageConfiguration].bind(this),getUsageInstance:this[kGetUsageInstance].bind(this),getValidationInstance:this[kGetValidationInstance].bind(this),hasParseCallback:this[kHasParseCallback].bind(this),isGlobalContext:this[kIsGlobalContext].bind(this),postProcess:this[kPostProcess].bind(this),reset:this[kReset].bind(this),runValidation:this[kRunValidation].bind(this),runYargsParserAndExecuteCommands:this[kRunYargsParserAndExecuteCommands].bind(this),setHasOutput:this[kSetHasOutput].bind(this)}}[kGetCommandInstance](){return __classPrivateFieldGet(this,_YargsInstance_command,`f`)}[kGetContext](){return __classPrivateFieldGet(this,_YargsInstance_context,`f`)}[kGetHasOutput](){return __classPrivateFieldGet(this,_YargsInstance_hasOutput,`f`)}[kGetLoggerInstance](){return __classPrivateFieldGet(this,_YargsInstance_logger,`f`)}[kGetParseContext](){return __classPrivateFieldGet(this,_YargsInstance_parseContext,`f`)||{}}[kGetUsageInstance](){return __classPrivateFieldGet(this,_YargsInstance_usage,`f`)}[kGetValidationInstance](){return __classPrivateFieldGet(this,_YargsInstance_validation,`f`)}[kHasParseCallback](){return!!__classPrivateFieldGet(this,_YargsInstance_parseFn,`f`)}[kIsGlobalContext](){return __classPrivateFieldGet(this,_YargsInstance_isGlobalContext,`f`)}[kPostProcess](l,d,f,m){return f||isPromise$1(l)?l:(d||(l=this[kCopyDoubleDash](l)),(this[kGetParserConfiguration]()[`parse-positional-numbers`]||this[kGetParserConfiguration]()[`parse-positional-numbers`]===void 0)&&(l=this[kParsePositionalNumbers](l)),m&&(l=applyMiddleware(l,this,__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).getMiddleware(),!1)),l)}[kReset](l={}){__classPrivateFieldSet(this,_YargsInstance_options,__classPrivateFieldGet(this,_YargsInstance_options,`f`)||{},`f`);let d={};d.local=__classPrivateFieldGet(this,_YargsInstance_options,`f`).local||[],d.configObjects=__classPrivateFieldGet(this,_YargsInstance_options,`f`).configObjects||[];let f={};return d.local.forEach(d=>{f[d]=!0,(l[d]||[]).forEach(l=>{f[l]=!0})}),Object.assign(__classPrivateFieldGet(this,_YargsInstance_preservedGroups,`f`),Object.keys(__classPrivateFieldGet(this,_YargsInstance_groups,`f`)).reduce((l,d)=>{let m=__classPrivateFieldGet(this,_YargsInstance_groups,`f`)[d].filter(l=>!(l in f));return m.length>0&&(l[d]=m),l},{})),__classPrivateFieldSet(this,_YargsInstance_groups,{},`f`),[`array`,`boolean`,`string`,`skipValidation`,`count`,`normalize`,`number`,`hiddenOptions`].forEach(l=>{d[l]=(__classPrivateFieldGet(this,_YargsInstance_options,`f`)[l]||[]).filter(l=>!f[l])}),[`narg`,`key`,`alias`,`default`,`defaultDescription`,`config`,`choices`,`demandedOptions`,`demandedCommands`,`deprecatedOptions`].forEach(l=>{d[l]=objFilter(__classPrivateFieldGet(this,_YargsInstance_options,`f`)[l],l=>!f[l])}),d.envPrefix=__classPrivateFieldGet(this,_YargsInstance_options,`f`).envPrefix,__classPrivateFieldSet(this,_YargsInstance_options,d,`f`),__classPrivateFieldSet(this,_YargsInstance_usage,__classPrivateFieldGet(this,_YargsInstance_usage,`f`)?__classPrivateFieldGet(this,_YargsInstance_usage,`f`).reset(f):usage(this,__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),`f`),__classPrivateFieldSet(this,_YargsInstance_validation,__classPrivateFieldGet(this,_YargsInstance_validation,`f`)?__classPrivateFieldGet(this,_YargsInstance_validation,`f`).reset(f):validation(this,__classPrivateFieldGet(this,_YargsInstance_usage,`f`),__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),`f`),__classPrivateFieldSet(this,_YargsInstance_command,__classPrivateFieldGet(this,_YargsInstance_command,`f`)?__classPrivateFieldGet(this,_YargsInstance_command,`f`).reset():command(__classPrivateFieldGet(this,_YargsInstance_usage,`f`),__classPrivateFieldGet(this,_YargsInstance_validation,`f`),__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`),__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),`f`),__classPrivateFieldGet(this,_YargsInstance_completion,`f`)||__classPrivateFieldSet(this,_YargsInstance_completion,completion(this,__classPrivateFieldGet(this,_YargsInstance_usage,`f`),__classPrivateFieldGet(this,_YargsInstance_command,`f`),__classPrivateFieldGet(this,_YargsInstance_shim,`f`)),`f`),__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).reset(),__classPrivateFieldSet(this,_YargsInstance_completionCommand,null,`f`),__classPrivateFieldSet(this,_YargsInstance_output,``,`f`),__classPrivateFieldSet(this,_YargsInstance_exitError,null,`f`),__classPrivateFieldSet(this,_YargsInstance_hasOutput,!1,`f`),this.parsed=!1,this}[kRebase](l,d){return __classPrivateFieldGet(this,_YargsInstance_shim,`f`).path.relative(l,d)}[kRunYargsParserAndExecuteCommands](l,d,f,m=0,te=!1){var re,ie,ae,oe;let se=!!f||te;l||=__classPrivateFieldGet(this,_YargsInstance_processArgs,`f`),__classPrivateFieldGet(this,_YargsInstance_options,`f`).__=__classPrivateFieldGet(this,_YargsInstance_shim,`f`).y18n.__,__classPrivateFieldGet(this,_YargsInstance_options,`f`).configuration=this[kGetParserConfiguration]();let ce=!!__classPrivateFieldGet(this,_YargsInstance_options,`f`).configuration[`populate--`],le=Object.assign({},__classPrivateFieldGet(this,_YargsInstance_options,`f`).configuration,{"populate--":!0}),ue=__classPrivateFieldGet(this,_YargsInstance_shim,`f`).Parser.detailed(l,Object.assign({},__classPrivateFieldGet(this,_YargsInstance_options,`f`),{configuration:{"parse-positional-numbers":!1,...le}})),de=Object.assign(ue.argv,__classPrivateFieldGet(this,_YargsInstance_parseContext,`f`)),fe,pe=ue.aliases,me=!1,he=!1;Object.keys(de).forEach(l=>{l===__classPrivateFieldGet(this,_YargsInstance_helpOpt,`f`)&&de[l]?me=!0:l===__classPrivateFieldGet(this,_YargsInstance_versionOpt,`f`)&&de[l]&&(he=!0)}),de.$0=this.$0,this.parsed=ue,m===0&&__classPrivateFieldGet(this,_YargsInstance_usage,`f`).clearCachedHelpMessage();try{if(this[kGuessLocale](),d)return this[kPostProcess](de,ce,!!f,!1);__classPrivateFieldGet(this,_YargsInstance_helpOpt,`f`)&&[__classPrivateFieldGet(this,_YargsInstance_helpOpt,`f`)].concat(pe[__classPrivateFieldGet(this,_YargsInstance_helpOpt,`f`)]||[]).filter(l=>l.length>1).includes(``+de._[de._.length-1])&&(de._.pop(),me=!0),__classPrivateFieldSet(this,_YargsInstance_isGlobalContext,!1,`f`);let re=__classPrivateFieldGet(this,_YargsInstance_command,`f`).getCommands(),ie=__classPrivateFieldGet(this,_YargsInstance_completion,`f`)?.completionKey?[__classPrivateFieldGet(this,_YargsInstance_completion,`f`)?.completionKey,...this.getAliases()[__classPrivateFieldGet(this,_YargsInstance_completion,`f`)?.completionKey]??[]].some(l=>Object.prototype.hasOwnProperty.call(de,l)):!1,ae=me||ie||te;if(de._.length){if(re.length){let l;for(let d=m||0,ie;de._[d]!==void 0;d++)if(ie=String(de._[d]),re.includes(ie)&&ie!==__classPrivateFieldGet(this,_YargsInstance_completionCommand,`f`)){let l=__classPrivateFieldGet(this,_YargsInstance_command,`f`).runCommand(ie,this,ue,d+1,te,me||he||te);return this[kPostProcess](l,ce,!!f,!1)}else if(!l&&ie!==__classPrivateFieldGet(this,_YargsInstance_completionCommand,`f`)){l=ie;break}!__classPrivateFieldGet(this,_YargsInstance_command,`f`).hasDefaultCommand()&&__classPrivateFieldGet(this,_YargsInstance_recommendCommands,`f`)&&l&&!ae&&__classPrivateFieldGet(this,_YargsInstance_validation,`f`).recommendCommands(l,re)}__classPrivateFieldGet(this,_YargsInstance_completionCommand,`f`)&&de._.includes(__classPrivateFieldGet(this,_YargsInstance_completionCommand,`f`))&&!ie&&(__classPrivateFieldGet(this,_YargsInstance_exitProcess,`f`)&&setBlocking(!0),this.showCompletionScript(),this.exit(0))}if(__classPrivateFieldGet(this,_YargsInstance_command,`f`).hasDefaultCommand()&&!ae){let l=__classPrivateFieldGet(this,_YargsInstance_command,`f`).runCommand(null,this,ue,0,te,me||he||te);return this[kPostProcess](l,ce,!!f,!1)}if(ie){__classPrivateFieldGet(this,_YargsInstance_exitProcess,`f`)&&setBlocking(!0),l=[].concat(l);let d=l.slice(l.indexOf(`--${__classPrivateFieldGet(this,_YargsInstance_completion,`f`).completionKey}`)+1);return __classPrivateFieldGet(this,_YargsInstance_completion,`f`).getCompletion(d,(l,d)=>{if(l)throw new YError(l.message);(d||[]).forEach(l=>{__classPrivateFieldGet(this,_YargsInstance_logger,`f`).log(l)}),this.exit(0)}),this[kPostProcess](de,!ce,!!f,!1)}if(__classPrivateFieldGet(this,_YargsInstance_hasOutput,`f`)||(me?(__classPrivateFieldGet(this,_YargsInstance_exitProcess,`f`)&&setBlocking(!0),se=!0,this.showHelp(l=>{__classPrivateFieldGet(this,_YargsInstance_logger,`f`).log(l),this.exit(0)})):he&&(__classPrivateFieldGet(this,_YargsInstance_exitProcess,`f`)&&setBlocking(!0),se=!0,__classPrivateFieldGet(this,_YargsInstance_usage,`f`).showVersion(`log`),this.exit(0))),!se&&__classPrivateFieldGet(this,_YargsInstance_options,`f`).skipValidation.length>0&&(se=Object.keys(de).some(l=>__classPrivateFieldGet(this,_YargsInstance_options,`f`).skipValidation.indexOf(l)>=0&&de[l]===!0)),!se){if(ue.error)throw new YError(ue.error.message);if(!ie){let l=this[kRunValidation](pe,{},ue.error);f||(fe=applyMiddleware(de,this,__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).getMiddleware(),!0)),fe=this[kValidateAsync](l,fe??de),isPromise$1(fe)&&!f&&(fe=fe.then(()=>applyMiddleware(de,this,__classPrivateFieldGet(this,_YargsInstance_globalMiddleware,`f`).getMiddleware(),!1)))}}}catch(l){if(l instanceof YError)__classPrivateFieldGet(this,_YargsInstance_usage,`f`).fail(l.message,l);else throw l}return this[kPostProcess](fe??de,ce,!!f,!0)}[kRunValidation](l,d,f,m){let te={...this.getDemandedOptions()};return re=>{if(f)throw new YError(f.message);__classPrivateFieldGet(this,_YargsInstance_validation,`f`).nonOptionCount(re),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).requiredArguments(re,te);let ie=!1;__classPrivateFieldGet(this,_YargsInstance_strictCommands,`f`)&&(ie=__classPrivateFieldGet(this,_YargsInstance_validation,`f`).unknownCommands(re)),__classPrivateFieldGet(this,_YargsInstance_strict,`f`)&&!ie?__classPrivateFieldGet(this,_YargsInstance_validation,`f`).unknownArguments(re,l,d,!!m):__classPrivateFieldGet(this,_YargsInstance_strictOptions,`f`)&&__classPrivateFieldGet(this,_YargsInstance_validation,`f`).unknownArguments(re,l,{},!1,!1),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).limitedChoices(re),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).implications(re),__classPrivateFieldGet(this,_YargsInstance_validation,`f`).conflicting(re)}}[kSetHasOutput](){__classPrivateFieldSet(this,_YargsInstance_hasOutput,!0,`f`)}[kTrackManuallySetKeys](l){if(typeof l==`string`)__classPrivateFieldGet(this,_YargsInstance_options,`f`).key[l]=!0;else for(let d of l)__classPrivateFieldGet(this,_YargsInstance_options,`f`).key[d]=!0}};function isYargsInstance(l){return!!l&&typeof l.getInternalMethods==`function`}const Yargs=YargsFactory(esm_default);function charAt(l,d){return l.charAt(d)}function join$4(l,d=``){return l.join(d)}function replaceAll(l,d,f=``){if(typeof l.replaceAll==`function`)return l.replaceAll(d,f);let m=new RegExp(d,`g`);return l.replace(m,f)}function slice(l,d=0,f=void 0){return l.slice(d,f)}function toLowerCase(l){return l.toLowerCase()}function toUpperCase(l){return l.toUpperCase()}function removeApostrophe(l){return replaceAll(l,`'`,``)}function capitalize(l){return join$4([toUpperCase(charAt(l,0)??``),slice(l,1)])}function pascalCaseAll(l){return l.map(l=>capitalize(toLowerCase(l)))}var UNESCAPED_SEPARATORS=[`[`,`]`,`{`,`}`,`(`,`)`,`|`,`/`,`-`,`\\`],SEPARATORS=[...UNESCAPED_SEPARATORS,` `,`_`,`.`];function escapeChar(l){return UNESCAPED_SEPARATORS.includes(l)?`\\${l}`:l}var SEPARATOR_REGEX=RegExp(`[${SEPARATORS.map(escapeChar).join(``)}]`,`g`);function words(l){return l.replace(SEPARATOR_REGEX,` `).replace(/([a-zA-Z])([0-9])/g,`$1 $2`).replace(/([0-9])([a-zA-Z])/g,`$1 $2`).replace(/([a-zA-Z0-9_\-./])([^a-zA-Z0-9_\-./'])/g,`$1 $2`).replace(/([^a-zA-Z0-9_\-./'])([a-zA-Z0-9_\-./])/g,`$1 $2`).replace(/([a-z])([A-Z])/g,`$1 $2`).replace(/([A-Z])([A-Z][a-z])/g,`$1 $2`).trim().split(/\s+/g)}function pascalCase(l){return join$4(pascalCaseAll(words(removeApostrophe(l))))}function delimiterCase(l,d){return join$4(words(removeApostrophe(l)),d)}function kebabCase(l){return toLowerCase(delimiterCase(removeApostrophe(l),`-`))}function titleCase(l){return delimiterCase(pascalCase(l),` `)}var name=`metascope`,version$1=`0.8.3`,bin={metascope:`dist/bin/cli.js`};function isPlainObject$8(l){if(typeof l!=`object`||!l)return!1;let d=Object.getPrototypeOf(l);return d!==null&&d!==Object.prototype&&Object.getPrototypeOf(d)!==null||Symbol.iterator in l?!1:Symbol.toStringTag in l?Object.prototype.toString.call(l)===`[object Module]`:!0}function _defu(l,d,f=`.`,m){if(!isPlainObject$8(d))return _defu(l,{},f,m);let te={...d};for(let d of Object.keys(l)){if(d===`__proto__`||d===`constructor`)continue;let re=l[d];re!=null&&(m&&m(te,d,re,f)||(Array.isArray(re)&&Array.isArray(te[d])?te[d]=[...re,...te[d]]:isPlainObject$8(re)&&isPlainObject$8(te[d])?te[d]=_defu(re,te[d],(f?`${f}.`:``)+d.toString(),m):te[d]=re))}return te}function createDefu(l){return(...d)=>d.reduce((d,f)=>_defu(d,f,``,l),{})}const defu=createDefu(),defuFn=createDefu((l,d,f)=>{if(l[d]!==void 0&&typeof f==`function`)return l[d]=f(l[d]),!0}),defuArrayFn=createDefu((l,d,f)=>{if(Array.isArray(l[d])&&typeof f==`function`)return l[d]=f(l[d]),!0});let LogLevel=function(l){return l.info=`info`,l.warn=`warn`,l.error=`error`,l.debug=`debug`,l.trace=`trace`,l.fatal=`fatal`,l}({});const LogLevelPriority={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},LAZY_SYMBOL=Symbol.for(`loglayer.lazy`),LAZY_EVAL_ERROR=`[LazyEvalError]`;function isLazy(l){return typeof l==`object`&&!!l&&LAZY_SYMBOL in l}function countLazyValues(l){let d=0;for(let f of Object.keys(l))isLazy(l[f])&&d++;return d}function resolveLazyValues(l){let d=!1;for(let f of Object.keys(l))if(isLazy(l[f])){d=!0;break}if(!d)return{resolved:l,errors:null};let f={},m=null;for(let d of Object.keys(l)){let te=l[d];if(isLazy(te))try{f[d]=te[LAZY_SYMBOL]()}catch(l){f[d]=LAZY_EVAL_ERROR,m||=[],m.push({key:d,error:l})}else f[d]=te}return{resolved:f,errors:m}}function hasPromiseValues(l){for(let d of Object.keys(l))if(l[d]instanceof Promise)return!0;return!1}function replacePromiseValues(l){let d=null,f={};for(let m of Object.keys(l))l[m]instanceof Promise?(f[m]=LAZY_EVAL_ERROR,d||=[],d.push(m)):f[m]=l[m];return d?{resolved:f,asyncKeys:d}:{resolved:l,asyncKeys:null}}async function resolvePromiseValues(l){let d=Object.keys(l),f=await Promise.allSettled(d.map(d=>Promise.resolve(l[d]))),m={},te=null;for(let l=0;l<d.length;l++){let re=f[l];re.status===`fulfilled`?m[d[l]]=re.value:(m[d[l]]=LAZY_EVAL_ERROR,te||=[],te.push({key:d[l],error:re.reason}))}return{resolved:m,errors:te}}function resolveMessages(l){let d=l[0];if(Array.isArray(d)&&d.raw!==void 0){let f=d,m=l.slice(1),te=``;for(let l=0;l<f.length;l++)te+=f[l],l<m.length&&(te+=String(m[l]));return[te]}return l}let PluginCallbackType=function(l){return l.transformLogLevel=`transformLogLevel`,l.onBeforeDataOut=`onBeforeDataOut`,l.shouldSendToLogger=`shouldSendToLogger`,l.onMetadataCalled=`onMetadataCalled`,l.onBeforeMessageOut=`onBeforeMessageOut`,l.onContextCalled=`onContextCalled`,l}({});var DefaultContextManager=class l{context={};hasContext=!1;setContext(l){if(!l){this.context={},this.hasContext=!1;return}this.context=l,this.hasContext=!0}appendContext(l){this.context={...this.context,...l},this.hasContext=!0}getContext(){return this.context}hasContextData(){return this.hasContext}clearContext(l){if(l===void 0){this.context={},this.hasContext=!1;return}let d=Array.isArray(l)?l:[l];for(let l of d)delete this.context[l];this.hasContext=Object.keys(this.context).length>0}onChildLoggerCreated({parentContextManager:l,childContextManager:d}){if(l.hasContextData()){let f=l.getContext();d.setContext({...f})}}clone(){let d=new l;return d.setContext({...this.context}),d.hasContext=this.hasContext,d}},MockContextManager=class l{setContext(l){}appendContext(l){}getContext(){return{}}hasContextData(){return!1}clearContext(l){}onChildLoggerCreated(l){}clone(){return new l}},DefaultLogLevelManager=class l{logLevelEnabledStatus={info:!0,warn:!0,error:!0,debug:!0,trace:!0,fatal:!0};setLevel(l){let d=LogLevelPriority[l];for(let l of Object.values(LogLevel)){let f=l,m=LogLevelPriority[l];this.logLevelEnabledStatus[f]=m>=d}}enableIndividualLevel(l){let d=l;d in this.logLevelEnabledStatus&&(this.logLevelEnabledStatus[d]=!0)}disableIndividualLevel(l){let d=l;d in this.logLevelEnabledStatus&&(this.logLevelEnabledStatus[d]=!1)}isLevelEnabled(l){let d=l;return this.logLevelEnabledStatus[d]}enableLogging(){for(let l of Object.keys(this.logLevelEnabledStatus))this.logLevelEnabledStatus[l]=!0}disableLogging(){for(let l of Object.keys(this.logLevelEnabledStatus))this.logLevelEnabledStatus[l]=!1}onChildLoggerCreated({parentLogLevelManager:d,childLogLevelManager:f}){let m=d.logLevelEnabledStatus;f instanceof l&&(f.logLevelEnabledStatus={...m})}clone(){let d=new l;return d.logLevelEnabledStatus={...this.logLevelEnabledStatus},d}},MockLogLevelManager=class l{setLevel(l){}enableIndividualLevel(l){}disableIndividualLevel(l){}isLevelEnabled(l){return!0}enableLogging(){}disableLogging(){}onChildLoggerCreated(l){}clone(){return new l}},BaseTransport=class{id;logger;enabled;consoleDebug;level;constructor(l){this.id=l.id??Date.now().toString()+Math.random().toString(),this.logger=l.logger,this.enabled=l.enabled??!0,this.consoleDebug=l.consoleDebug??!1,this.level=l.level??`trace`}_sendToLogger(l){if(!this.enabled||LogLevelPriority[l.logLevel]<LogLevelPriority[this.level])return;let d=this.shipToLogger(l);if(this.consoleDebug)switch(l.logLevel){case LogLevel.info:console.info(...d);break;case LogLevel.warn:console.warn(...d);break;case LogLevel.error:console.error(...d);break;case LogLevel.trace:console.debug(...d);break;case LogLevel.debug:console.debug(...d);break;case LogLevel.fatal:console.debug(...d);break;default:console.log(...d)}}getLoggerInstance(){return this.logger}},LoggerlessTransport=class{id;enabled;level;consoleDebug;constructor(l){this.id=l.id??Date.now().toString()+Math.random().toString(),this.enabled=l.enabled??!0,this.consoleDebug=l.consoleDebug??!1,this.level=l.level??`trace`}_sendToLogger(l){if(!this.enabled||LogLevelPriority[l.logLevel]<LogLevelPriority[this.level])return;let d=this.shipToLogger(l);if(this.consoleDebug)switch(l.logLevel){case LogLevel.info:console.info(...d);break;case LogLevel.warn:console.warn(...d);break;case LogLevel.error:console.error(...d);break;case LogLevel.trace:console.debug(...d);break;case LogLevel.debug:console.debug(...d);break;case LogLevel.fatal:console.debug(...d);break;default:console.log(...d)}}getLoggerInstance(){throw Error(`This transport does not have a logger instance`)}};const CALLBACK_LIST=[PluginCallbackType.onBeforeDataOut,PluginCallbackType.onMetadataCalled,PluginCallbackType.onBeforeMessageOut,PluginCallbackType.transformLogLevel,PluginCallbackType.shouldSendToLogger,PluginCallbackType.onContextCalled];var PluginManager=class{idToPlugin;transformLogLevel=[];onBeforeDataOut=[];shouldSendToLogger=[];onMetadataCalled=[];onBeforeMessageOut=[];onContextCalled=[];constructor(l){this.idToPlugin={},this.mapPlugins(l),this.indexPlugins()}mapPlugins(l){for(let d of l){if(d.id||=Date.now().toString()+Math.random().toString(),this.idToPlugin[d.id])throw Error(`[LogLayer] Plugin with id ${d.id} already exists.`);d.registeredAt=Date.now(),this.idToPlugin[d.id]=d}}indexPlugins(){this.transformLogLevel=[],this.onBeforeDataOut=[],this.shouldSendToLogger=[],this.onMetadataCalled=[],this.onBeforeMessageOut=[],this.onContextCalled=[];let l=Object.values(this.idToPlugin).sort((l,d)=>l.registeredAt-d.registeredAt);for(let d of l){if(d.disabled)return;for(let l of CALLBACK_LIST)d[l]&&d.id&&this[l].push(d.id)}}hasPlugins(l){return this[l].length>0}countPlugins(l){return l?this[l].length:Object.keys(this.idToPlugin).length}addPlugins(l){this.mapPlugins(l),this.indexPlugins()}enablePlugin(l){let d=this.idToPlugin[l];d&&(d.disabled=!1),this.indexPlugins()}disablePlugin(l){let d=this.idToPlugin[l];d&&(d.disabled=!0),this.indexPlugins()}removePlugin(l){delete this.idToPlugin[l],this.indexPlugins()}runTransformLogLevel(l,d){let f=null;for(let m of this.transformLogLevel){let te=this.idToPlugin[m];if(te.transformLogLevel){let m=te.transformLogLevel({data:l.data,logLevel:l.logLevel,messages:l.messages,error:l.error,metadata:l.metadata,context:l.context,groups:l.groups,schema:l.schema,prefix:l.prefix},d);m!=null&&m!==!1&&(f=m)}}return f!=null&&f!==!1?f:l.logLevel}runOnBeforeDataOut(l,d){let f={...l},m=f.data;for(let l of this.onBeforeDataOut){let te=this.idToPlugin[l];if(te.onBeforeDataOut){let l=te.onBeforeDataOut({data:f.data,logLevel:f.logLevel,error:f.error,metadata:f.metadata,context:f.context,groups:f.groups,schema:f.schema,prefix:f.prefix},d);l&&(f.data||={},l!==m&&Object.assign(f.data,l))}}return f.data}runShouldSendToLogger(l,d){return!this.shouldSendToLogger.some(f=>!this.idToPlugin[f].shouldSendToLogger?.(l,d))}runOnMetadataCalled(l,d){let f={...l};for(let l of this.onMetadataCalled){let m=this.idToPlugin[l].onMetadataCalled?.(f,d);if(m)f=m;else return null}return f}runOnBeforeMessageOut(l,d){let f=[...l.messages];for(let m of this.onBeforeMessageOut){let te=this.idToPlugin[m].onBeforeMessageOut?.({messages:f,logLevel:l.logLevel,groups:l.groups,schema:l.schema,prefix:l.prefix},d);te&&(f=te)}return f}runOnContextCalled(l,d){let f={...l};for(let l of this.onContextCalled){let m=this.idToPlugin[l].onContextCalled?.(f,d);if(m)f=m;else return null}return f}},LogLayer=class l{pluginManager;idToTransport;hasMultipleTransports;singleTransport;contextManager;logLevelManager;_isLoggingLazyError=!1;_lazyContextCount=0;_assignedGroups=null;_groupsConfig=null;_activeGroups=null;_ungroupedBehavior=`all`;_config;constructor(l){this._config={...l,enabled:l.enabled??!0},this.contextManager=new DefaultContextManager,this.logLevelManager=new DefaultLogLevelManager,this._config.enabled||this.disableLogging();let d=[...l.plugins||[],...mixinRegistry.pluginsToInit];this.pluginManager=new PluginManager(d),this._config.errorFieldName||(this._config.errorFieldName=`err`),this._config.copyMsgOnOnlyError||(this._config.copyMsgOnOnlyError=!1),this._initializeTransports(this._config.transport),this._groupsConfig=l.groups?{...l.groups}:null,this._ungroupedBehavior=l.ungroupedBehavior??`all`,this._activeGroups=l.activeGroups?new Set(l.activeGroups):null,this._parseEnvGroups(),mixinRegistry.logLayerHandlers.length>0&&mixinRegistry.logLayerHandlers.forEach(d=>{d.onConstruct&&d.onConstruct(this,l)})}withContextManager(l){return this.contextManager&&typeof this.contextManager[Symbol.dispose]==`function`&&this.contextManager[Symbol.dispose](),this.contextManager=l,this._lazyContextCount=l.hasContextData()?countLazyValues(l.getContext()):0,this}getContextManager(){return this.contextManager}withLogLevelManager(l){return this.logLevelManager&&typeof this.logLevelManager[Symbol.dispose]==`function`&&this.logLevelManager[Symbol.dispose](),this.logLevelManager=l,this}getLogLevelManager(){return this.logLevelManager}getConfig(){return this._config}_initializeTransports(l){if(this.idToTransport)for(let l in this.idToTransport)this.idToTransport[l]&&typeof this.idToTransport[l][Symbol.dispose]==`function`&&this.idToTransport[l][Symbol.dispose]();this.hasMultipleTransports=Array.isArray(l)&&l.length>1,this.singleTransport=this.hasMultipleTransports?null:Array.isArray(l)?l[0]:l,Array.isArray(l)?this.idToTransport=l.reduce((l,d)=>(l[d.id]=d,l),{}):this.idToTransport={[l.id]:l}}withPrefix(l){let d=this.child();return d._config.prefix=l,d}withGroup(l){let d=this.child(),f=Array.isArray(l)?l:[l];if(d._assignedGroups){let l=new Set([...d._assignedGroups,...f]);d._assignedGroups=Array.from(l)}else d._assignedGroups=[...f];return d}addGroup(l,d){return this._groupsConfig||={},this._groupsConfig[l]={...d},this}removeGroup(l){return this._groupsConfig&&(delete this._groupsConfig[l],Object.keys(this._groupsConfig).length===0&&(this._groupsConfig=null)),this}enableGroup(l){return this._groupsConfig?.[l]&&(this._groupsConfig[l]={...this._groupsConfig[l],enabled:!0}),this}disableGroup(l){return this._groupsConfig?.[l]&&(this._groupsConfig[l]={...this._groupsConfig[l],enabled:!1}),this}setGroupLevel(l,d){return this._groupsConfig?.[l]&&(this._groupsConfig[l]={...this._groupsConfig[l],level:d}),this}setActiveGroups(l){return this._activeGroups=l?new Set(l):null,this}getGroups(){return this._groupsConfig?{...this._groupsConfig}:{}}withContext(l){let d=l;if(!l)return this._config.consoleDebug&&console.debug(`[LogLayer] withContext was called with no context; dropping.`),this;if(this.pluginManager.hasPlugins(PluginCallbackType.onContextCalled)&&(d=this.pluginManager.runOnContextCalled(l,this),!d))return this._config.consoleDebug&&console.debug(`[LogLayer] Context was dropped due to plugin returning falsy value.`),this;let f=this.contextManager.getContext();for(let l of Object.keys(d)){let m=l in f&&isLazy(f[l]),te=isLazy(d[l]);!m&&te?this._lazyContextCount++:m&&!te&&this._lazyContextCount--}return this.contextManager.appendContext(d),this}clearContext(l){if(l!==void 0&&this._lazyContextCount>0){let d=this.contextManager.getContext(),f=Array.isArray(l)?l:[l];for(let l of f)l in d&&isLazy(d[l])&&this._lazyContextCount--}else l===void 0&&(this._lazyContextCount=0);return this.contextManager.clearContext(l),this}getContext(l){let d=this.contextManager.getContext();if(l?.raw||this._lazyContextCount===0)return d;let{resolved:f,errors:m}=resolveLazyValues(d);m&&this._logLazyEvalErrors(m,`context`);let{resolved:te,asyncKeys:re}=replacePromiseValues(f);return re&&this._logAsyncLazyContextErrors(re),te}addPlugins(l){this.pluginManager.addPlugins(l)}enablePlugin(l){this.pluginManager.enablePlugin(l)}disablePlugin(l){this.pluginManager.disablePlugin(l)}removePlugin(l){this.pluginManager.removePlugin(l)}withMetadata(l){return new LogBuilder(this).withMetadata(l)}withError(l){return new LogBuilder(this).withError(l)}child(){let d=new l({...this._config,transport:Array.isArray(this._config.transport)?[...this._config.transport]:this._config.transport}).withPluginManager(this.pluginManager).withContextManager(this.contextManager.clone()).withLogLevelManager(this.logLevelManager.clone());return this.contextManager.onChildLoggerCreated({parentContextManager:this.contextManager,childContextManager:d.contextManager,parentLogger:this,childLogger:d}),this.logLevelManager.onChildLoggerCreated({parentLogLevelManager:this.logLevelManager,childLogLevelManager:d.logLevelManager,parentLogger:this,childLogger:d}),d._lazyContextCount=d.contextManager.hasContextData()?countLazyValues(d.contextManager.getContext()):0,d._groupsConfig=this._groupsConfig,d._activeGroups=this._activeGroups,d._ungroupedBehavior=this._ungroupedBehavior,d._assignedGroups=this._assignedGroups?[...this._assignedGroups]:null,d}withFreshTransports(l){return this._config.transport=l,this._initializeTransports(l),this}addTransport(l){let d=Array.isArray(l)?l:[l],f=Array.isArray(this._config.transport)?this._config.transport:[this._config.transport],m=new Set(d.map(l=>l.id));for(let l of d){let d=this.idToTransport[l.id];d&&typeof d[Symbol.dispose]==`function`&&d[Symbol.dispose]()}let te=[...f.filter(l=>!m.has(l.id)),...d];this._config.transport=te;for(let l of d)this.idToTransport[l.id]=l;return this.hasMultipleTransports=te.length>1,this.singleTransport=this.hasMultipleTransports?null:te[0],this}removeTransport(l){let d=this.idToTransport[l];if(!d)return!1;typeof d[Symbol.dispose]==`function`&&d[Symbol.dispose](),delete this.idToTransport[l];let f=(Array.isArray(this._config.transport)?this._config.transport:[this._config.transport]).filter(d=>d.id!==l);return this._config.transport=f.length===1?f[0]:f,this.hasMultipleTransports=f.length>1,this.singleTransport=this.hasMultipleTransports?null:f[0]||null,!0}withFreshPlugins(l){return this._config.plugins=l,this.pluginManager=new PluginManager(l),this}withPluginManager(l){return this.pluginManager=l,this}errorOnly(l,d){let f=d?.logLevel||LogLevel.error;if(!this.isLevelEnabled(f))return;let{copyMsgOnOnlyError:m}=this._config,te={logLevel:f,err:l};(m&&d?.copyMsg!==!1||d?.copyMsg===!0)&&l?.message&&(te.params=[l.message]),this._formatLog(te)}metadataOnly(l,d=LogLevel.info){if(!this.isLevelEnabled(d))return;let{muteMetadata:f,consoleDebug:m}=this._config;if(f)return;if(!l){m&&console.debug(`[LogLayer] metadataOnly was called with no metadata; dropping.`);return}let te=l;if(this.pluginManager.hasPlugins(PluginCallbackType.onMetadataCalled)&&(te=this.pluginManager.runOnMetadataCalled(l,this),!te)){m&&console.debug(`[LogLayer] Metadata was dropped due to plugin returning falsy value.`);return}let re={logLevel:d,metadata:te};return this._formatLog(re)}info(...l){if(!this.isLevelEnabled(LogLevel.info))return;let d=resolveMessages(l);this._formatMessage(d),this._formatLog({logLevel:LogLevel.info,params:d})}warn(...l){if(!this.isLevelEnabled(LogLevel.warn))return;let d=resolveMessages(l);this._formatMessage(d),this._formatLog({logLevel:LogLevel.warn,params:d})}error(...l){if(!this.isLevelEnabled(LogLevel.error))return;let d=resolveMessages(l);this._formatMessage(d),this._formatLog({logLevel:LogLevel.error,params:d})}debug(...l){if(!this.isLevelEnabled(LogLevel.debug))return;let d=resolveMessages(l);this._formatMessage(d),this._formatLog({logLevel:LogLevel.debug,params:d})}trace(...l){if(!this.isLevelEnabled(LogLevel.trace))return;let d=resolveMessages(l);this._formatMessage(d),this._formatLog({logLevel:LogLevel.trace,params:d})}fatal(...l){if(!this.isLevelEnabled(LogLevel.fatal))return;let d=resolveMessages(l);this._formatMessage(d),this._formatLog({logLevel:LogLevel.fatal,params:d})}raw(l){if(!this.isLevelEnabled(l.logLevel))return;let d={logLevel:l.logLevel,params:l.messages,metadata:l.metadata,rootData:l.rootData,err:l.error,context:l.context};return this._formatMessage(l.messages),this._formatLog(d)}disableLogging(){return this.logLevelManager.disableLogging(),this}enableLogging(){return this.logLevelManager.enableLogging(),this}muteContext(){return this._config.muteContext=!0,this}unMuteContext(){return this._config.muteContext=!1,this}muteMetadata(){return this._config.muteMetadata=!0,this}unMuteMetadata(){return this._config.muteMetadata=!1,this}enableIndividualLevel(l){return this.logLevelManager.enableIndividualLevel(l),this}disableIndividualLevel(l){return this.logLevelManager.disableIndividualLevel(l),this}setLevel(l){return this.logLevelManager.setLevel(l),this}isLevelEnabled(l){return this.logLevelManager.isLevelEnabled(l)}formatContext(l){let{contextFieldName:d,muteContext:f}=this._config;return l&&Object.keys(l).length>0&&!f?d?{[d]:{...l}}:{...l}:{}}formatMetadata(l=null){let{metadataFieldName:d,muteMetadata:f}=this._config;return l&&!f?d?{[d]:{...l}}:{...l}:{}}getLoggerInstance(l){let d=this.idToTransport[l];if(d)return d.getLoggerInstance()}_parseEnvGroups(){let l=typeof process<`u`?process.env?.LOGLAYER_GROUPS:void 0;if(!l)return;let d=l.split(`,`).map(l=>l.trim()).filter(Boolean),f=[];for(let l of d){let d=l.indexOf(`:`);if(d>0){let m=l.slice(0,d),te=l.slice(d+1);f.push(m),this._groupsConfig?.[m]&&(this._groupsConfig[m]={...this._groupsConfig[m],level:te})}else f.push(l)}this._activeGroups=new Set(f)}_mergeGroups(l){if(this._assignedGroups&&l){let d=new Set([...this._assignedGroups,...l]);return Array.from(d)}return l||this._assignedGroups}_applyUngroupedRules(l){return this._ungroupedBehavior===`all`?!0:this._ungroupedBehavior===`none`?!1:this._ungroupedBehavior.includes(l)}_shouldTransportReceiveLog(l,d,f){if(!this._groupsConfig)return!0;let m=this._mergeGroups(f);if(!m||m.length===0)return this._applyUngroupedRules(l);let te=!1;for(let f of m){let m=this._groupsConfig[f];if(m&&(te=!0,m.enabled!==!1&&!(this._activeGroups&&!this._activeGroups.has(f)))){if(m.level){let l=LogLevelPriority[m.level];if(LogLevelPriority[d]<l)continue}if(m.transports.includes(l))return!0}}return te?!1:this._applyUngroupedRules(l)}_formatMessage(l=[]){let{prefix:d}=this._config;d&&typeof l[0]==`string`&&(l[0]=`${d} ${l[0]}`)}_formatLog({logLevel:l,params:d=[],metadata:f=null,rootData:m=null,err:te,context:re=null,groups:ie=null}){let ae=re===null?this.contextManager.getContext():re,oe;if(this._lazyContextCount>0||re!==null){let l=resolveLazyValues(ae);l.errors&&this._logLazyEvalErrors(l.errors,`context`);let{resolved:d,asyncKeys:f}=replacePromiseValues(l.resolved);f&&this._logAsyncLazyContextErrors(f),oe=d}else oe=ae;let se=null;if(f){let l=resolveLazyValues(f);f=l.resolved,se=l.errors}if(se&&this._logLazyEvalErrors(se,`metadata`),f&&hasPromiseValues(f))return this._resolveAsyncAndProcess(l,d,oe,f,m,te,re,ie);this._processLog(l,d,oe,f,m,te,re,ie)}async _resolveAsyncAndProcess(l,d,f,m,te,re,ie,ae){let oe=null;if(m){let l=await resolvePromiseValues(m);oe=l.resolved,l.errors&&this._logLazyEvalErrors(l.errors,`metadata`)}this._processLog(l,d,f,oe,te,re,ie,ae)}_logLazyEvalErrors(l,d){if(this._isLoggingLazyError){for(let f of l)console.error(`[LogLayer] Lazy evaluation error in ${d} key "${f.key}":`,f.error);return}this._isLoggingLazyError=!0;try{for(let f of l){let l=f.error instanceof Error?f.error.message:String(f.error);this._processLog(LogLevel.error,[`[LogLayer] Lazy evaluation failed for ${d} key "${f.key}": ${l}`],{},null,null,f.error instanceof Error?f.error:void 0,{})}}finally{this._isLoggingLazyError=!1}}_logAsyncLazyContextErrors(l){if(this._isLoggingLazyError){for(let d of l)console.error(`[LogLayer] Async lazy values are not supported in context (key "${d}"). Use async lazy only in metadata.`);return}this._isLoggingLazyError=!0;try{for(let d of l)this._processLog(LogLevel.error,[`[LogLayer] Async lazy values are not supported in context (key "${d}"). Use async lazy only in metadata.`],{},null,null,void 0,{})}finally{this._isLoggingLazyError=!1}}_processLog(l,d,f,m,te,re,ie,ae=null){let{errorSerializer:oe,errorFieldInMetadata:se,muteContext:ce,contextFieldName:le,metadataFieldName:ue,errorFieldName:de,prefix:fe}=this._config,pe={contextFieldName:le??void 0,metadataFieldName:ue??void 0,errorFieldName:de??`err`},me=this._mergeGroups(ae)??void 0,he=!!m||(ce?!1:ie===null?this.contextManager.hasContextData():Object.keys(ie).length>0),ge={};if(he)if(le&&le===ue){let l=this.formatContext(f)[le],d=this.formatMetadata(m)[ue];ge={[le]:{...l,...d}}}else ge={...this.formatContext(f),...this.formatMetadata(m)};if(re){let l=oe?oe(re):re;se&&m&&ue?ge?.[ue]?ge[ue][de]=l:ge={...ge,[ue]:{[de]:l}}:ge=se&&!m&&ue?{...ge,[ue]:{[de]:l}}:{...ge,[de]:l},he=!0}te&&Object.keys(te).length>0&&(ge={...ge,...te},he=!0),this.pluginManager.hasPlugins(PluginCallbackType.onBeforeDataOut)&&(ge=this.pluginManager.runOnBeforeDataOut({data:he?ge:void 0,logLevel:l,error:re,metadata:m,context:f,groups:me,schema:pe,prefix:fe},this),ge&&!he&&(he=!0)),this.pluginManager.hasPlugins(PluginCallbackType.onBeforeMessageOut)&&(d=this.pluginManager.runOnBeforeMessageOut({messages:[...d],logLevel:l,groups:me,schema:pe,prefix:fe},this)),this.pluginManager.hasPlugins(PluginCallbackType.transformLogLevel)&&(l=this.pluginManager.runTransformLogLevel({data:he?ge:void 0,logLevel:l,messages:[...d],error:re,metadata:m,context:f,groups:me,schema:pe,prefix:fe},this));let _e={data:he?ge:void 0,error:re,metadata:m,context:f,groups:me,schema:pe,prefix:fe};if(this.hasMultipleTransports){let f=this._config.transport.filter(d=>!(!d.enabled||!this._shouldTransportReceiveLog(d.id,l,me))).map(async f=>{let m=l;if(!(this.pluginManager.hasPlugins(PluginCallbackType.shouldSendToLogger)&&!this.pluginManager.runShouldSendToLogger({messages:[...d],logLevel:m,transportId:f.id,..._e},this)))return f._sendToLogger({logLevel:m,messages:[...d],hasData:he,..._e})});Promise.all(f).catch(l=>{this._config.consoleDebug&&console.error(`[LogLayer] Error executing transports:`,l)})}else{if(!this.singleTransport?.enabled||!this._shouldTransportReceiveLog(this.singleTransport.id,l,me)||this.pluginManager.hasPlugins(PluginCallbackType.shouldSendToLogger)&&!this.pluginManager.runShouldSendToLogger({messages:[...d],logLevel:l,transportId:this.singleTransport.id,..._e},this))return;this.singleTransport._sendToLogger({logLevel:l,messages:[...d],hasData:he,..._e})}}},MockLogBuilder=class{debug(...l){}error(...l){}info(...l){}trace(...l){}warn(...l){}fatal(...l){}enableLogging(){return this}disableLogging(){return this}withMetadata(l){return this}withError(l){return this}withGroup(l){return this}},MockLogLayer=class{mockLogBuilder=new MockLogBuilder;mockContextManager=new MockContextManager;mockLogLevelManager=new MockLogLevelManager;info(...l){}warn(...l){}error(...l){}debug(...l){}trace(...l){}fatal(...l){}raw(l){}getLoggerInstance(l){}errorOnly(l,d){}metadataOnly(l,d){}addPlugins(l){}removePlugin(l){}enablePlugin(l){}disablePlugin(l){}withPrefix(l){return this}withGroup(l){return this}addGroup(l,d){return this}removeGroup(l){return this}enableGroup(l){return this}disableGroup(l){return this}setGroupLevel(l,d){return this}setActiveGroups(l){return this}getGroups(){return{}}withContext(l){return this}withError(l){return this.mockLogBuilder.withError(l)}withMetadata(l){return this.mockLogBuilder.withMetadata(l)}getContext(l){return{}}clearContext(l){return this}enableLogging(){return this}disableLogging(){return this}child(){return this}muteContext(){return this}unMuteContext(){return this}muteMetadata(){return this}unMuteMetadata(){return this}withFreshTransports(l){return this}addTransport(l){return this}removeTransport(l){return!0}withFreshPlugins(l){return this}withContextManager(l){return this}getContextManager(){return this.mockContextManager}withLogLevelManager(l){return this}getLogLevelManager(){return this.mockLogLevelManager}getConfig(){return{}}setMockLogBuilder(l){this.mockLogBuilder=l}enableIndividualLevel(l){return this}disableIndividualLevel(l){return this}setLevel(l){return this}isLevelEnabled(l){return!0}getMockLogBuilder(){return this.mockLogBuilder}resetMockLogBuilder(){this.mockLogBuilder=new MockLogBuilder}};const mixinRegistry={logLayerHandlers:[],pluginsToInit:[],logBuilderHandlers:[]};var LogBuilder=class{err;metadata;structuredLogger;hasMetadata;pluginManager;_groups=null;constructor(l){this.err=null,this.metadata={},this.structuredLogger=l,this.hasMetadata=!1,this.pluginManager=l.pluginManager,mixinRegistry.logBuilderHandlers.length>0&&mixinRegistry.logBuilderHandlers.forEach(d=>{d.onConstruct&&d.onConstruct(this,l)})}withMetadata(l){let{pluginManager:d,structuredLogger:{_config:{consoleDebug:f}}}=this;if(!l)return f&&console.debug(`[LogLayer] withMetadata was called with no metadata; dropping.`),this;let m=l;return d.hasPlugins(PluginCallbackType.onMetadataCalled)&&(m=d.runOnMetadataCalled(l,this.structuredLogger),!m)?(f&&console.debug(`[LogLayer] Metadata was dropped due to plugin returning falsy value.`),this):(this.metadata={...this.metadata,...m},this.hasMetadata=!0,this)}withError(l){return this.err=l,this}withGroup(l){let d=Array.isArray(l)?l:[l];if(this._groups){let l=new Set([...this._groups,...d]);this._groups=Array.from(l)}else this._groups=[...d];return this}info(...l){if(!this.structuredLogger.isLevelEnabled(LogLevel.info))return;let d=resolveMessages(l);return this.structuredLogger._formatMessage(d),this.formatLog(LogLevel.info,d)}warn(...l){if(!this.structuredLogger.isLevelEnabled(LogLevel.warn))return;let d=resolveMessages(l);return this.structuredLogger._formatMessage(d),this.formatLog(LogLevel.warn,d)}error(...l){if(!this.structuredLogger.isLevelEnabled(LogLevel.error))return;let d=resolveMessages(l);return this.structuredLogger._formatMessage(d),this.formatLog(LogLevel.error,d)}debug(...l){if(!this.structuredLogger.isLevelEnabled(LogLevel.debug))return;let d=resolveMessages(l);return this.structuredLogger._formatMessage(d),this.formatLog(LogLevel.debug,d)}trace(...l){if(!this.structuredLogger.isLevelEnabled(LogLevel.trace))return;let d=resolveMessages(l);return this.structuredLogger._formatMessage(d),this.formatLog(LogLevel.trace,d)}fatal(...l){if(!this.structuredLogger.isLevelEnabled(LogLevel.fatal))return;let d=resolveMessages(l);return this.structuredLogger._formatMessage(d),this.formatLog(LogLevel.fatal,d)}disableLogging(){return this.structuredLogger.disableLogging(),this}enableLogging(){return this.structuredLogger.enableLogging(),this}formatLog(l,d){let{muteMetadata:f}=this.structuredLogger._config,m=f?!1:this.hasMetadata;return this.structuredLogger._formatLog({logLevel:l,params:d,metadata:m?this.metadata:null,err:this.err,groups:this._groups})}};const isNonErrorSymbol=Symbol(`isNonError`);function defineProperty(l,d,f){Object.defineProperty(l,d,{value:f,writable:!1,enumerable:!1,configurable:!1})}function stringify$3(l){if(l===void 0)return`undefined`;if(l===null)return`null`;if(typeof l==`string`)return l;if(typeof l==`number`||typeof l==`boolean`)return String(l);if(typeof l==`bigint`)return`${l}n`;if(typeof l==`symbol`)return l.toString();if(typeof l==`function`)return`[Function${l.name?` ${l.name}`:` (anonymous)`}]`;if(l instanceof Error)try{return String(l)}catch{return`<Unserializable error>`}try{return JSON.stringify(l)}catch{try{return String(l)}catch{return`<Unserializable value>`}}}var NonError$1=class l extends Error{constructor(d,{superclass:f=Error}={}){if(l.isNonError(d))return d;if(d instanceof Error)throw TypeError(`Do not pass Error instances to NonError. Throw the error directly instead.`);super(`Non-error value: ${stringify$3(d)}`),f!==Error&&Object.setPrototypeOf(this,f.prototype),defineProperty(this,`name`,`NonError`),defineProperty(this,isNonErrorSymbol,!0),defineProperty(this,`isNonError`,!0),defineProperty(this,`value`,d)}static isNonError(l){return l?.[isNonErrorSymbol]===!0}static#e(d,f){try{let m=d(...f);return m&&typeof m.then==`function`?(async()=>{try{return await m}catch(d){throw d instanceof Error?d:new l(d)}})():m}catch(d){throw d instanceof Error?d:new l(d)}}static try(d){return l.#e(d,[])}static wrap(d){return(...f)=>l.#e(d,f)}static[Symbol.hasInstance](d){return l.isNonError(d)}};const list$1=[Error,EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,AggregateError,globalThis.DOMException,globalThis.AssertionError,globalThis.SystemError].filter(Boolean).map(l=>[l.name,l]),errorConstructors=new Map(list$1),errorFactories=new Map,errorProperties=[{property:`name`,enumerable:!1},{property:`message`,enumerable:!1},{property:`stack`,enumerable:!1},{property:`code`,enumerable:!0},{property:`cause`,enumerable:!1},{property:`errors`,enumerable:!1}],toJsonWasCalled=new WeakSet,toJSON=l=>{toJsonWasCalled.add(l);let d=l.toJSON();return toJsonWasCalled.delete(l),d},newError=l=>{if(l===`NonError`)return new NonError$1;let d=errorFactories.get(l);if(d)return d();let f=errorConstructors.get(l)??Error;return f===AggregateError?new f([]):new f},destroyCircular=({from:l,seen:d,to:f,forceEnumerable:m,maxDepth:te,depth:re,useToJSON:ie,serialize:ae})=>{if(f||=Array.isArray(l)?[]:!ae&&isErrorLike(l)?newError(l.name):{},d.add(l),re>=te)return d.delete(l),f;if(ie&&typeof l.toJSON==`function`&&!toJsonWasCalled.has(l))return d.delete(l),toJSON(l);let oe=l=>destroyCircular({from:l,seen:d,forceEnumerable:m,maxDepth:te,depth:re+1,useToJSON:ie,serialize:ae});for(let m of Object.keys(l)){let te=l[m];if(te&&te instanceof Uint8Array&&te.constructor.name===`Buffer`){f[m]=ae?`[object Buffer]`:te;continue}if(typeof te==`object`&&te&&typeof te.pipe==`function`){f[m]=ae?`[object Stream]`:te;continue}if(typeof te==`function`){ae||(f[m]=te);continue}if(ae&&typeof te==`bigint`){f[m]=`${te}n`;continue}if(!te||typeof te!=`object`){try{f[m]=te}catch{}continue}if(!d.has(te)){f[m]=oe(te);continue}f[m]=`[Circular]`}if(ae||f instanceof Error)for(let{property:te,enumerable:re}of errorProperties){let ie=l[te];if(ie==null||Object.getOwnPropertyDescriptor(f,te)?.configurable===!1)continue;let ae=ie;typeof ie==`object`&&(ae=d.has(ie)?`[Circular]`:oe(ie)),Object.defineProperty(f,te,{value:ae,enumerable:m||re,configurable:!0,writable:!0})}return d.delete(l),f};function serializeError(l,d={}){let{maxDepth:f=1/0,useToJSON:m=!0}=d;return typeof l==`object`&&l?destroyCircular({from:l,seen:new Set,forceEnumerable:!0,maxDepth:f,depth:0,useToJSON:m,serialize:!0}):(typeof l==`function`&&(l=`<Function>`),destroyCircular({from:new NonError$1(l),seen:new Set,forceEnumerable:!0,maxDepth:f,depth:0,useToJSON:m,serialize:!0}))}function isErrorLike(l){return!!l&&typeof l==`object`&&typeof l.name==`string`&&typeof l.message==`string`&&typeof l.stack==`string`}var require_safe_stable_stringify=__commonJSMin(((l,d)=>{let{hasOwnProperty:f}=Object.prototype,m=he();m.configure=he,m.stringify=m,m.default=m,l.stringify=m,l.configure=he,d.exports=m;let te=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function re(l){return l.length<5e3&&!te.test(l)?`"${l}"`:JSON.stringify(l)}function ie(l,d){if(l.length>200||d)return l.sort(d);for(let d=1;d<l.length;d++){let f=l[d],m=d;for(;m!==0&&l[m-1]>f;)l[m]=l[m-1],m--;l[m]=f}return l}let ae=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function oe(l){return ae.call(l)!==void 0&&l.length!==0}function se(l,d,f){l.length<f&&(f=l.length);let m=d===`,`?``:` `,te=`"0":${m}${l[0]}`;for(let re=1;re<f;re++)te+=`${d}"${re}":${m}${l[re]}`;return te}function ce(l){if(f.call(l,`circularValue`)){let d=l.circularValue;if(typeof d==`string`)return`"${d}"`;if(d==null)return d;if(d===Error||d===TypeError)return{toString(){throw TypeError(`Converting circular structure to JSON`)}};throw TypeError(`The "circularValue" argument must be of type string or the value null or undefined`)}return`"[Circular]"`}function le(l){let d;if(f.call(l,`deterministic`)&&(d=l.deterministic,typeof d!=`boolean`&&typeof d!=`function`))throw TypeError(`The "deterministic" argument must be of type boolean or comparator function`);return d===void 0?!0:d}function ue(l,d){let m;if(f.call(l,d)&&(m=l[d],typeof m!=`boolean`))throw TypeError(`The "${d}" argument must be of type boolean`);return m===void 0?!0:m}function de(l,d){let m;if(f.call(l,d)){if(m=l[d],typeof m!=`number`)throw TypeError(`The "${d}" argument must be of type number`);if(!Number.isInteger(m))throw TypeError(`The "${d}" argument must be an integer`);if(m<1)throw RangeError(`The "${d}" argument must be >= 1`)}return m===void 0?1/0:m}function fe(l){return l===1?`1 item`:`${l} items`}function pe(l){let d=new Set;for(let f of l)(typeof f==`string`||typeof f==`number`)&&d.add(String(f));return d}function me(l){if(f.call(l,`strict`)){let d=l.strict;if(typeof d!=`boolean`)throw TypeError(`The "strict" argument must be of type boolean`);if(d)return l=>{let d=`Object can not safely be stringified. Received type ${typeof l}`;throw typeof l!=`function`&&(d+=` (${l.toString()})`),Error(d)}}}function he(l){l={...l};let d=me(l);d&&(l.bigint===void 0&&(l.bigint=!1),`circularValue`in l||(l.circularValue=Error));let f=ce(l),m=ue(l,`bigint`),te=le(l),ae=typeof te==`function`?te:void 0,he=de(l,`maximumDepth`),ge=de(l,`maximumBreadth`);function _e(l,se,ce,le,ue,de){let pe=se[l];switch(typeof pe==`object`&&pe&&typeof pe.toJSON==`function`&&(pe=pe.toJSON(l)),pe=le.call(se,l,pe),typeof pe){case`string`:return re(pe);case`object`:{if(pe===null)return`null`;if(ce.indexOf(pe)!==-1)return f;let l=``,d=`,`,m=de;if(Array.isArray(pe)){if(pe.length===0)return`[]`;if(he<ce.length+1)return`"[Array]"`;ce.push(pe),ue!==``&&(de+=ue,l+=`\n${de}`,d=`,\n${de}`);let f=Math.min(pe.length,ge),te=0;for(;te<f-1;te++){let f=_e(String(te),pe,ce,le,ue,de);l+=f===void 0?`null`:f,l+=d}let re=_e(String(te),pe,ce,le,ue,de);if(l+=re===void 0?`null`:re,pe.length-1>ge){let f=pe.length-ge-1;l+=`${d}"... ${fe(f)} not stringified"`}return ue!==``&&(l+=`\n${m}`),ce.pop(),`[${l}]`}let se=Object.keys(pe),me=se.length;if(me===0)return`{}`;if(he<ce.length+1)return`"[Object]"`;let ve=``,ye=``;ue!==``&&(de+=ue,d=`,\n${de}`,ve=` `);let be=Math.min(me,ge);te&&!oe(pe)&&(se=ie(se,ae)),ce.push(pe);for(let f=0;f<be;f++){let m=se[f],te=_e(m,pe,ce,le,ue,de);te!==void 0&&(l+=`${ye}${re(m)}:${ve}${te}`,ye=d)}if(me>ge){let f=me-ge;l+=`${ye}"...":${ve}"${fe(f)} not stringified"`,ye=d}return ue!==``&&ye.length>1&&(l=`\n${de}${l}\n${m}`),ce.pop(),`{${l}}`}case`number`:return isFinite(pe)?String(pe):d?d(pe):`null`;case`boolean`:return pe===!0?`true`:`false`;case`undefined`:return;case`bigint`:if(m)return String(pe);default:return d?d(pe):void 0}}function ve(l,te,ie,ae,oe,se){switch(typeof te==`object`&&te&&typeof te.toJSON==`function`&&(te=te.toJSON(l)),typeof te){case`string`:return re(te);case`object`:{if(te===null)return`null`;if(ie.indexOf(te)!==-1)return f;let l=se,d=``,m=`,`;if(Array.isArray(te)){if(te.length===0)return`[]`;if(he<ie.length+1)return`"[Array]"`;ie.push(te),oe!==``&&(se+=oe,d+=`\n${se}`,m=`,\n${se}`);let f=Math.min(te.length,ge),re=0;for(;re<f-1;re++){let l=ve(String(re),te[re],ie,ae,oe,se);d+=l===void 0?`null`:l,d+=m}let ce=ve(String(re),te[re],ie,ae,oe,se);if(d+=ce===void 0?`null`:ce,te.length-1>ge){let l=te.length-ge-1;d+=`${m}"... ${fe(l)} not stringified"`}return oe!==``&&(d+=`\n${l}`),ie.pop(),`[${d}]`}ie.push(te);let ce=``;oe!==``&&(se+=oe,m=`,\n${se}`,ce=` `);let le=``;for(let l of ae){let f=ve(l,te[l],ie,ae,oe,se);f!==void 0&&(d+=`${le}${re(l)}:${ce}${f}`,le=m)}return oe!==``&&le.length>1&&(d=`\n${se}${d}\n${l}`),ie.pop(),`{${d}}`}case`number`:return isFinite(te)?String(te):d?d(te):`null`;case`boolean`:return te===!0?`true`:`false`;case`undefined`:return;case`bigint`:if(m)return String(te);default:return d?d(te):void 0}}function ye(l,ce,le,ue,de){switch(typeof ce){case`string`:return re(ce);case`object`:{if(ce===null)return`null`;if(typeof ce.toJSON==`function`){if(ce=ce.toJSON(l),typeof ce!=`object`)return ye(l,ce,le,ue,de);if(ce===null)return`null`}if(le.indexOf(ce)!==-1)return f;let d=de;if(Array.isArray(ce)){if(ce.length===0)return`[]`;if(he<le.length+1)return`"[Array]"`;le.push(ce),de+=ue;let l=`\n${de}`,f=`,\n${de}`,m=Math.min(ce.length,ge),te=0;for(;te<m-1;te++){let d=ye(String(te),ce[te],le,ue,de);l+=d===void 0?`null`:d,l+=f}let re=ye(String(te),ce[te],le,ue,de);if(l+=re===void 0?`null`:re,ce.length-1>ge){let d=ce.length-ge-1;l+=`${f}"... ${fe(d)} not stringified"`}return l+=`\n${d}`,le.pop(),`[${l}]`}let m=Object.keys(ce),pe=m.length;if(pe===0)return`{}`;if(he<le.length+1)return`"[Object]"`;de+=ue;let me=`,\n${de}`,_e=``,ve=``,be=Math.min(pe,ge);oe(ce)&&(_e+=se(ce,me,ge),m=m.slice(ce.length),be-=ce.length,ve=me),te&&(m=ie(m,ae)),le.push(ce);for(let l=0;l<be;l++){let d=m[l],f=ye(d,ce[d],le,ue,de);f!==void 0&&(_e+=`${ve}${re(d)}: ${f}`,ve=me)}if(pe>ge){let l=pe-ge;_e+=`${ve}"...": "${fe(l)} not stringified"`,ve=me}return ve!==``&&(_e=`\n${de}${_e}\n${d}`),le.pop(),`{${_e}}`}case`number`:return isFinite(ce)?String(ce):d?d(ce):`null`;case`boolean`:return ce===!0?`true`:`false`;case`undefined`:return;case`bigint`:if(m)return String(ce);default:return d?d(ce):void 0}}function be(l,ce,le){switch(typeof ce){case`string`:return re(ce);case`object`:{if(ce===null)return`null`;if(typeof ce.toJSON==`function`){if(ce=ce.toJSON(l),typeof ce!=`object`)return be(l,ce,le);if(ce===null)return`null`}if(le.indexOf(ce)!==-1)return f;let d=``,m=ce.length!==void 0;if(m&&Array.isArray(ce)){if(ce.length===0)return`[]`;if(he<le.length+1)return`"[Array]"`;le.push(ce);let l=Math.min(ce.length,ge),f=0;for(;f<l-1;f++){let l=be(String(f),ce[f],le);d+=l===void 0?`null`:l,d+=`,`}let m=be(String(f),ce[f],le);if(d+=m===void 0?`null`:m,ce.length-1>ge){let l=ce.length-ge-1;d+=`,"... ${fe(l)} not stringified"`}return le.pop(),`[${d}]`}let ue=Object.keys(ce),de=ue.length;if(de===0)return`{}`;if(he<le.length+1)return`"[Object]"`;let pe=``,me=Math.min(de,ge);m&&oe(ce)&&(d+=se(ce,`,`,ge),ue=ue.slice(ce.length),me-=ce.length,pe=`,`),te&&(ue=ie(ue,ae)),le.push(ce);for(let l=0;l<me;l++){let f=ue[l],m=be(f,ce[f],le);m!==void 0&&(d+=`${pe}${re(f)}:${m}`,pe=`,`)}if(de>ge){let l=de-ge;d+=`${pe}"...":"${fe(l)} not stringified"`}return le.pop(),`{${d}}`}case`number`:return isFinite(ce)?String(ce):d?d(ce):`null`;case`boolean`:return ce===!0?`true`:`false`;case`undefined`:return;case`bigint`:if(m)return String(ce);default:return d?d(ce):void 0}}function xe(l,d,f){if(arguments.length>1){let m=``;if(typeof f==`number`?m=` `.repeat(Math.min(f,10)):typeof f==`string`&&(m=f.slice(0,10)),d!=null){if(typeof d==`function`)return _e(``,{"":l},[],d,m,``);if(Array.isArray(d))return ve(``,l,[],pe(d),m,``)}if(m.length!==0)return ye(``,l,[],m,``)}return be(``,l,[])}return xe}})),import_safe_stable_stringify=__toESM(require_safe_stable_stringify());const configure$1=import_safe_stable_stringify.configure,stringify=import_safe_stable_stringify.default;var require_symbols=__commonJSMin(((l,d)=>{let f=typeof process<`u`&&process.env.TERM_PROGRAM===`Hyper`,m=typeof process<`u`&&process.platform===`win32`,te=typeof process<`u`&&process.platform===`linux`,re={ballotDisabled:`☒`,ballotOff:`☐`,ballotOn:`☑`,bullet:`•`,bulletWhite:`◦`,fullBlock:`█`,heart:`❤`,identicalTo:`≡`,line:`─`,mark:`※`,middot:`·`,minus:`-`,multiplication:`×`,obelus:`÷`,pencilDownRight:`✎`,pencilRight:`✏`,pencilUpRight:`✐`,percent:`%`,pilcrow2:`❡`,pilcrow:`¶`,plusMinus:`±`,question:`?`,section:`§`,starsOff:`☆`,starsOn:`★`,upDownArrow:`↕`},ie=Object.assign({},re,{check:`√`,cross:`×`,ellipsisLarge:`...`,ellipsis:`...`,info:`i`,questionSmall:`?`,pointer:`>`,pointerSmall:`»`,radioOff:`( )`,radioOn:`(*)`,warning:`‼`}),ae=Object.assign({},re,{ballotCross:`✘`,check:`✔`,cross:`✖`,ellipsisLarge:`⋯`,ellipsis:`…`,info:`ℹ`,questionFull:`?`,questionSmall:`﹖`,pointer:te?`▸`:`❯`,pointerSmall:te?`‣`:`›`,radioOff:`◯`,radioOn:`◉`,warning:`⚠`});d.exports=m&&!f?ie:ae,Reflect.defineProperty(d.exports,"common",{enumerable:!1,value:re}),Reflect.defineProperty(d.exports,"windows",{enumerable:!1,value:ie}),Reflect.defineProperty(d.exports,"other",{enumerable:!1,value:ae})})),require_ansi_colors=__commonJSMin(((l,d)=>{let f=l=>typeof l==`object`&&!!l&&!Array.isArray(l),m=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,te=()=>typeof process<`u`?process.env.FORCE_COLOR!==`0`:!1,re=()=>{let l={enabled:te(),visible:!0,styles:{},keys:{}},d=l=>{let d=l.open=`\u001b[${l.codes[0]}m`,f=l.close=`\u001b[${l.codes[1]}m`,m=l.regex=RegExp(`\\u001b\\[${l.codes[1]}m`,`g`);return l.wrap=(l,te)=>{l.includes(f)&&(l=l.replace(m,f+d));let re=d+l+f;return te?re.replace(/\r*\n/g,`${f}$&${d}`):re},l},re=(l,d,f)=>typeof l==`function`?l(d):l.wrap(d,f),ie=(d,f)=>{if(d===``||d==null)return``;if(l.enabled===!1)return d;if(l.visible===!1)return``;let m=``+d,te=m.includes(`
107
107
  `),ie=f.length;for(ie>0&&f.includes(`unstyle`)&&(f=[...new Set([`unstyle`,...f])].reverse());ie-- >0;)m=re(l.styles[f[ie]],m,te);return m},ae=(f,m,te)=>{l.styles[f]=d({name:f,codes:m}),(l.keys[te]||(l.keys[te]=[])).push(f),Reflect.defineProperty(l,f,{configurable:!0,enumerable:!0,set(d){l.alias(f,d)},get(){let d=l=>ie(l,d.stack);return Reflect.setPrototypeOf(d,l),d.stack=this.stack?this.stack.concat(f):[f],d}})};return ae(`reset`,[0,0],`modifier`),ae(`bold`,[1,22],`modifier`),ae(`dim`,[2,22],`modifier`),ae(`italic`,[3,23],`modifier`),ae(`underline`,[4,24],`modifier`),ae(`inverse`,[7,27],`modifier`),ae(`hidden`,[8,28],`modifier`),ae(`strikethrough`,[9,29],`modifier`),ae(`black`,[30,39],`color`),ae(`red`,[31,39],`color`),ae(`green`,[32,39],`color`),ae(`yellow`,[33,39],`color`),ae(`blue`,[34,39],`color`),ae(`magenta`,[35,39],`color`),ae(`cyan`,[36,39],`color`),ae(`white`,[37,39],`color`),ae(`gray`,[90,39],`color`),ae(`grey`,[90,39],`color`),ae(`bgBlack`,[40,49],`bg`),ae(`bgRed`,[41,49],`bg`),ae(`bgGreen`,[42,49],`bg`),ae(`bgYellow`,[43,49],`bg`),ae(`bgBlue`,[44,49],`bg`),ae(`bgMagenta`,[45,49],`bg`),ae(`bgCyan`,[46,49],`bg`),ae(`bgWhite`,[47,49],`bg`),ae(`blackBright`,[90,39],`bright`),ae(`redBright`,[91,39],`bright`),ae(`greenBright`,[92,39],`bright`),ae(`yellowBright`,[93,39],`bright`),ae(`blueBright`,[94,39],`bright`),ae(`magentaBright`,[95,39],`bright`),ae(`cyanBright`,[96,39],`bright`),ae(`whiteBright`,[97,39],`bright`),ae(`bgBlackBright`,[100,49],`bgBright`),ae(`bgRedBright`,[101,49],`bgBright`),ae(`bgGreenBright`,[102,49],`bgBright`),ae(`bgYellowBright`,[103,49],`bgBright`),ae(`bgBlueBright`,[104,49],`bgBright`),ae(`bgMagentaBright`,[105,49],`bgBright`),ae(`bgCyanBright`,[106,49],`bgBright`),ae(`bgWhiteBright`,[107,49],`bgBright`),l.ansiRegex=m,l.hasColor=l.hasAnsi=d=>(l.ansiRegex.lastIndex=0,typeof d==`string`&&d!==``&&l.ansiRegex.test(d)),l.alias=(d,f)=>{let m=typeof f==`string`?l[f]:f;if(typeof m!=`function`)throw TypeError(`Expected alias to be the name of an existing color (string) or a function`);m.stack||=(Reflect.defineProperty(m,"name",{value:d}),l.styles[d]=m,[d]),Reflect.defineProperty(l,d,{configurable:!0,enumerable:!0,set(f){l.alias(d,f)},get(){let d=l=>ie(l,d.stack);return Reflect.setPrototypeOf(d,l),d.stack=this.stack?this.stack.concat(m.stack):m.stack,d}})},l.theme=d=>{if(!f(d))throw TypeError(`Expected theme to be an object`);for(let f of Object.keys(d))l.alias(f,d[f]);return l},l.alias(`unstyle`,d=>typeof d==`string`&&d!==``?(l.ansiRegex.lastIndex=0,d.replace(l.ansiRegex,``)):``),l.alias(`noop`,l=>l),l.none=l.clear=l.noop,l.stripColor=l.unstyle,l.symbols=require_symbols(),l.define=ae,l};d.exports=re(),d.exports.create=re})),import_ansi_colors=__toESM(require_ansi_colors(),1);const segmenter$2=new Intl.Segmenter,zeroWidthClusterRegex=/^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Mark}|\p{Surrogate})+$/v,leadingNonPrintingRegex=/^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v,rgiEmojiRegex=/^\p{RGI_Emoji}$/v,unqualifiedKeycapRegex=/^[\d#*]\u20E3$/,extendedPictographicRegex=/\p{Extended_Pictographic}/gu;function isDoubleWidthNonRgiEmojiSequence(l){if(l.length>50)return!1;if(unqualifiedKeycapRegex.test(l))return!0;if(l.includes(`‍`)){let d=l.match(extendedPictographicRegex);return d!==null&&d.length>=2}return!1}function baseVisible(l){return l.replace(leadingNonPrintingRegex,``)}function isZeroWidthCluster(l){return zeroWidthClusterRegex.test(l)}function isHangulLeadingJamo(l){return l>=4352&&l<=4447||l>=43360&&l<=43388}function isHangulVowelJamo(l){return l>=4448&&l<=4519||l>=55216&&l<=55238}function isHangulTrailingJamo(l){return l>=4520&&l<=4607||l>=55243&&l<=55291}function isHangulJamo(l){return isHangulLeadingJamo(l)||isHangulVowelJamo(l)||isHangulTrailingJamo(l)}function hangulClusterWidth(l,d){let f=[];for(let d of l)zeroWidthClusterRegex.test(d)||f.push(d.codePointAt(0));if(f.length===0)return;let m=0;for(let l=0;l<f.length;l++){let te=f[l];if(!isHangulJamo(te)){if(m===0)return;for(let te=l;te<f.length;te++)m+=eastAsianWidth(f[te],d);return m}if(isHangulLeadingJamo(te)&&isHangulVowelJamo(f[l+1])){m+=2,l+=isHangulTrailingJamo(f[l+2])?2:1;continue}m+=eastAsianWidth(te,d)}return m}function trailingHalfwidthWidth(l,d){let f=0,m=!0;for(let te of l){if(m){m=!1;continue}te>=`＀`&&te<=`￯`&&(f+=eastAsianWidth(te.codePointAt(0),d))}return f}function stringWidth(l,d={}){if(typeof l!=`string`||l.length===0)return 0;let{ambiguousIsNarrow:f=!0,countAnsiEscapeCodes:m=!1}=d,te=l;if(!m&&(te.includes(`\x1B`)||te.includes(`›`))&&(te=stripAnsi(te)),te.length===0)return 0;if(/^[\u0020-\u007E]*$/.test(te))return te.length;let re=0,ie={ambiguousAsWide:!f};for(let{segment:l}of segmenter$2.segment(te)){if(isZeroWidthCluster(l))continue;if(rgiEmojiRegex.test(l)||isDoubleWidthNonRgiEmojiSequence(l)){re+=2;continue}let d=baseVisible(l),f=hangulClusterWidth(d,ie);if(f!==void 0){re+=f;continue}let m=d.codePointAt(0);re+=eastAsianWidth(m,ie),re+=trailingHalfwidthWidth(d,ie)}return re}const ANSI_ESCAPE=`\x1B`,ANSI_ESCAPE_CSI=`›`,ESCAPES=new Set([ANSI_ESCAPE,ANSI_ESCAPE_CSI]),ANSI_ESCAPE_BELL=`\x07`,ANSI_CSI=`[`,ANSI_OSC=`]`,ANSI_SGR_TERMINATOR=`m`,ANSI_SGR_RESET=0,ANSI_SGR_RESET_FOREGROUND=39,ANSI_SGR_RESET_BACKGROUND=49,ANSI_SGR_RESET_UNDERLINE_COLOR=59,ANSI_SGR_FOREGROUND_EXTENDED=38,ANSI_SGR_BACKGROUND_EXTENDED=48,ANSI_SGR_UNDERLINE_COLOR_EXTENDED=58,ANSI_SGR_COLOR_MODE_256=5,ANSI_SGR_COLOR_MODE_RGB=2,ANSI_ESCAPE_LINK=`${ANSI_OSC}8;;`,ANSI_ESCAPE_REGEX=RegExp(`^\\u001B(?:\\${ANSI_CSI}(?<sgr>[0-9;]*)${ANSI_SGR_TERMINATOR}|${ANSI_ESCAPE_LINK}(?<uri>[^\\u0007\\u001B]*)(?:\\u0007|\\u001B\\\\))`),ANSI_ESCAPE_CSI_REGEX=RegExp(`^\\u009B(?<sgr>[0-9;]*)${ANSI_SGR_TERMINATOR}`),ANSI_SGR_MODIFIER_CLOSE_CODES=new Set(ansiStyles.codes.values());ANSI_SGR_MODIFIER_CLOSE_CODES.delete(ANSI_SGR_RESET);const segmenter$1=new Intl.Segmenter,getGraphemes=l=>Array.from(segmenter$1.segment(l),({segment:l})=>l),TAB_SIZE=8,wrapAnsiCode=l=>`${ANSI_ESCAPE}${ANSI_CSI}${l}${ANSI_SGR_TERMINATOR}`,wrapAnsiHyperlink=l=>`${ANSI_ESCAPE}${ANSI_ESCAPE_LINK}${l}${ANSI_ESCAPE_BELL}`,getSgrTokens=l=>{let d=l.split(`;`).map(l=>l===``?ANSI_SGR_RESET:Number.parseInt(l,10)),f=[];for(let l=0;l<d.length;l++){let m=d[l];if(Number.isFinite(m)){if(m===ANSI_SGR_FOREGROUND_EXTENDED||m===ANSI_SGR_BACKGROUND_EXTENDED||m===ANSI_SGR_UNDERLINE_COLOR_EXTENDED){if(l+1>=d.length)break;let te=d[l+1];if(te===ANSI_SGR_COLOR_MODE_256&&Number.isFinite(d[l+2])){f.push([m,te,d[l+2]]),l+=2;continue}let re=d[l+2],ie=d[l+3],ae=d[l+4];if(te===ANSI_SGR_COLOR_MODE_RGB&&Number.isFinite(re)&&Number.isFinite(ie)&&Number.isFinite(ae)){f.push([m,te,re,ie,ae]),l+=4;continue}break}f.push([m])}}return f},removeActiveStyle=(l,d)=>{let f=l.findIndex(l=>l.family===d);f!==-1&&l.splice(f,1)},upsertActiveStyle=(l,d)=>{removeActiveStyle(l,d.family),l.push(d)},removeModifierStylesByClose=(l,d)=>{for(let f=l.length-1;f>=0;f--){let m=l[f];m.family.startsWith(`modifier-`)&&m.close===d&&l.splice(f,1)}},getColorStyle=(l,d)=>{if(l>=30&&l<=37||l>=90&&l<=97||l===ANSI_SGR_FOREGROUND_EXTENDED&&d.length>1)return{family:`foreground`,open:d.join(`;`),close:ANSI_SGR_RESET_FOREGROUND};if(l>=40&&l<=47||l>=100&&l<=107||l===ANSI_SGR_BACKGROUND_EXTENDED&&d.length>1)return{family:`background`,open:d.join(`;`),close:ANSI_SGR_RESET_BACKGROUND};if(l===ANSI_SGR_UNDERLINE_COLOR_EXTENDED&&d.length>1)return{family:`underlineColor`,open:d.join(`;`),close:ANSI_SGR_RESET_UNDERLINE_COLOR}},applySgrResetCode=(l,d)=>l===ANSI_SGR_RESET?(d.length=0,!0):l===ANSI_SGR_RESET_FOREGROUND?(removeActiveStyle(d,`foreground`),!0):l===ANSI_SGR_RESET_BACKGROUND?(removeActiveStyle(d,`background`),!0):l===ANSI_SGR_RESET_UNDERLINE_COLOR?(removeActiveStyle(d,`underlineColor`),!0):ANSI_SGR_MODIFIER_CLOSE_CODES.has(l)?(removeModifierStylesByClose(d,l),!0):!1,applySgrToken=(l,d)=>{let[f]=l;if(applySgrResetCode(f,d))return;let m=getColorStyle(f,l);if(m){upsertActiveStyle(d,m);return}let te=ansiStyles.codes.get(f);te!==void 0&&te!==ANSI_SGR_RESET&&upsertActiveStyle(d,{family:`modifier-${f}`,open:l.join(`;`),close:te})},applySgrParameters=(l,d)=>{for(let f of getSgrTokens(l))applySgrToken(f,d)},applySgrResets=(l,d)=>{for(let f of getSgrTokens(l)){let[l]=f;applySgrResetCode(l,d)}},applyLeadingSgrResets=(l,d)=>{let f=l;for(;f.length>0;){if(f.startsWith(ANSI_ESCAPE)&&f[1]!==`\\`){let l=ANSI_ESCAPE_REGEX.exec(f);if(!l)break;l.groups.sgr!==void 0&&applySgrResets(l.groups.sgr,d),f=f.slice(l[0].length);continue}if(f.startsWith(ANSI_ESCAPE_CSI)){let l=ANSI_ESCAPE_CSI_REGEX.exec(f);if(!l||l.groups.sgr===void 0)break;applySgrResets(l.groups.sgr,d),f=f.slice(l[0].length);continue}break}},getClosingSgrSequence=l=>[...l].reverse().map(l=>wrapAnsiCode(l.close)).join(``),getOpeningSgrSequence=l=>l.map(l=>wrapAnsiCode(l.open)).join(``),wordLengths=l=>l.split(` `).map(l=>stringWidth(l)),wrapWord=(l,d,f)=>{let m=getGraphemes(d),te=!1,re=!1,ie=stringWidth(stripAnsi(l.at(-1)));for(let[d,ae]of m.entries()){let oe=stringWidth(ae);if(ie+oe<=f?l[l.length-1]+=ae:(l.push(ae),ie=0),ESCAPES.has(ae)&&!(re&&ae===ANSI_ESCAPE&&m[d+1]===`\\`)&&(te=!0,re=m.slice(d+1,d+1+ANSI_ESCAPE_LINK.length).join(``)===ANSI_ESCAPE_LINK),te){re?(ae===ANSI_ESCAPE_BELL||ae===`\\`&&d>0&&m[d-1]===ANSI_ESCAPE)&&(te=!1,re=!1):ae===ANSI_SGR_TERMINATOR&&(te=!1);continue}ie+=oe,ie===f&&d<m.length-1&&(l.push(``),ie=0)}!ie&&l.at(-1).length>0&&l.length>1&&(l[l.length-2]+=l.pop())},stringVisibleTrimSpacesRight=l=>{let d=l.split(` `),f=d.length;for(;f>0&&!(stringWidth(d[f-1])>0);)f--;return f===d.length?l:d.slice(0,f).join(` `)+d.slice(f).join(``)},expandTabs=l=>{if(!l.includes(` `))return l;let d=l.split(` `),f=0,m=``;for(let[l,te]of d.entries())if(m+=te,f+=stringWidth(te),l<d.length-1){let l=TAB_SIZE-f%TAB_SIZE;m+=` `.repeat(l),f+=l}return m},exec$1=(l,d,f={})=>{if(f.trim!==!1&&l.trim()===``)return``;let m=``,te,re=[],ie=wordLengths(l),ae=[``];for(let[m,te]of l.split(` `).entries()){f.trim!==!1&&(ae[ae.length-1]=ae.at(-1).trimStart());let l=stringWidth(ae.at(-1));if(m!==0&&(l>=d&&(f.wordWrap===!1||f.trim===!1)&&(ae.push(``),l=0),(l>0||f.trim===!1)&&(ae[ae.length-1]+=` `,l++)),f.hard&&f.wordWrap!==!1&&ie[m]>d){let f=d-l,re=1+Math.floor((ie[m]-f-1)/d);Math.floor((ie[m]-1)/d)<re&&ae.push(``),wrapWord(ae,te,d);continue}if(l+ie[m]>d&&l>0&&ie[m]>0){if(f.wordWrap===!1&&l<d){wrapWord(ae,te,d);continue}ae.push(``)}if(l+ie[m]>d&&f.wordWrap===!1){wrapWord(ae,te,d);continue}ae[ae.length-1]+=te}f.trim!==!1&&(ae=ae.map(l=>stringVisibleTrimSpacesRight(l)));let oe=ae.join(`
108
108
  `),se=getGraphemes(oe),ce=0;for(let[l,d]of se.entries()){if(m+=d,d===ANSI_ESCAPE&&se[l+1]!==`\\`){let{groups:l}=ANSI_ESCAPE_REGEX.exec(oe.slice(ce))||{groups:{}};l.sgr===void 0?l.uri!==void 0&&(te=l.uri.length===0?void 0:l.uri):applySgrParameters(l.sgr,re)}else if(d===ANSI_ESCAPE_CSI){let{groups:l}=ANSI_ESCAPE_CSI_REGEX.exec(oe.slice(ce))||{groups:{}};l.sgr!==void 0&&applySgrParameters(l.sgr,re)}if(se[l+1]===`
109
109
  `)te&&(m+=wrapAnsiHyperlink(``)),m+=getClosingSgrSequence(re);else if(d===`
@@ -111,12 +111,12 @@ fi
111
111
  `,`
112
112
  `).split(`
113
113
  `).map(l=>exec$1(expandTabs(l),d,f)).join(`
114
- `)}function filenameReservedRegex(){return/[<>:"/\\|?*\u0000-\u001F]|[. ]$/g}function windowsReservedNameRegex(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}const MAX_FILENAME_LENGTH=100,reRelativePath=/^\.+(\\|\/)|^\.+$/,reTrailingDotsAndSpaces=/[. ]+$/,reControlChars=/[\p{Control}\p{Format}\p{Zl}\p{Zp}\uFFF0-\uFFFF]/gu,reControlCharsTest=/[\p{Control}\p{Format}\p{Zl}\p{Zp}\uFFF0-\uFFFF]/u,isZeroWidthJoiner=l=>l===`‍`,reRepeatedReservedCharacters=/([<>:"/\\|?*\u0000-\u001F]){2,}/g,reReplacementReservedCharacters=/[<>:"/\\|?*\u0000-\u001F]/,reUnicodeWhitespace=/[\t\n\r\u00A0\u1680\u2000-\u200A\u202F\u205F\u3000]+/g;let segmenter;function getSegmenter(){return segmenter??=new Intl.Segmenter(void 0,{granularity:`grapheme`}),segmenter}function truncateFilename(l,d){if(l.length<=d)return l;let f=l.lastIndexOf(`.`);if(f===-1)return truncateByGraphemeBudget(l,d);let m=l.slice(0,f),te=l.slice(f);return truncateByGraphemeBudget(m,Math.max(0,d-te.length)).replace(/ +$/,``)+te}function filenamify(l,d={}){if(typeof l!=`string`)throw TypeError(`Expected a string`);let f=d.replacement??`!`,m=reReplacementReservedCharacters.test(f),te=[...f].some(l=>reControlCharsTest.test(l)&&!isZeroWidthJoiner(l));if(m||te)throw Error(`Replacement string cannot contain reserved filename characters`);l=l.normalize(`NFC`),l=l.replaceAll(reUnicodeWhitespace,` `),f.length>0&&(l=l.replaceAll(reRepeatedReservedCharacters,`$1`)),l=l.replace(reTrailingDotsAndSpaces,``),l=l.replace(reRelativePath,f),l=l.replace(filenameReservedRegex(),f),l=l.replaceAll(reControlChars,l=>isZeroWidthJoiner(l)?l:f),l=l.replace(reTrailingDotsAndSpaces,``),l.length===0&&(l=f.replace(reTrailingDotsAndSpaces,``),l.length===0&&f.length>0&&(l=`!`));let re=typeof d.maxLength==`number`?d.maxLength:MAX_FILENAME_LENGTH;return l=truncateFilename(l,re),l=l.replace(reTrailingDotsAndSpaces,``),windowsReservedNameRegex().test(l)&&(l+=f),l}function truncateByGraphemeBudget(l,d){if(l.length<=d)return l;let f=0,m=``;for(let{segment:te}of getSegmenter().segment(l)){let l=f+te.length;if(l>d)break;m+=te,f=l}return m}const toPath$2=l=>l instanceof URL?fileURLToPath$1(l):l;function findUpSync(l,{cwd:d=process$1.cwd(),type:f=`file`,stopAt:m}={}){let te=path.resolve(toPath$2(d)??``),{root:re}=path.parse(te);m=path.resolve(te,toPath$2(m)??re);let ie=path.isAbsolute(l);for(;te;){let d=ie?l:path.join(te,l);try{let l=fs.statSync(d,{throwIfNoEntry:!1});if(f===`file`&&l?.isFile()||f===`directory`&&l?.isDirectory())return d}catch{}if(te===m||te===re)break;te=path.dirname(te)}}var require_picocolors=__commonJSMin(((l,d)=>{let f=process||{},m=f.argv||[],te=f.env||{},re=!(te.NO_COLOR||m.includes(`--no-color`))&&(!!te.FORCE_COLOR||m.includes(`--color`)||f.platform===`win32`||(f.stdout||{}).isTTY&&te.TERM!==`dumb`||!!te.CI),ie=(l,d,f=l)=>m=>{let te=``+m,re=te.indexOf(d,l.length);return~re?l+ae(te,d,f,re)+d:l+te+d},ae=(l,d,f,m)=>{let te=``,re=0;do te+=l.substring(re,m)+f,re=m+d.length,m=l.indexOf(d,re);while(~m);return te+l.substring(re)},oe=(l=re)=>{let d=l?ie:()=>String;return{isColorSupported:l,reset:d(`\x1B[0m`,`\x1B[0m`),bold:d(`\x1B[1m`,`\x1B[22m`,`\x1B[22m\x1B[1m`),dim:d(`\x1B[2m`,`\x1B[22m`,`\x1B[22m\x1B[2m`),italic:d(`\x1B[3m`,`\x1B[23m`),underline:d(`\x1B[4m`,`\x1B[24m`),inverse:d(`\x1B[7m`,`\x1B[27m`),hidden:d(`\x1B[8m`,`\x1B[28m`),strikethrough:d(`\x1B[9m`,`\x1B[29m`),black:d(`\x1B[30m`,`\x1B[39m`),red:d(`\x1B[31m`,`\x1B[39m`),green:d(`\x1B[32m`,`\x1B[39m`),yellow:d(`\x1B[33m`,`\x1B[39m`),blue:d(`\x1B[34m`,`\x1B[39m`),magenta:d(`\x1B[35m`,`\x1B[39m`),cyan:d(`\x1B[36m`,`\x1B[39m`),white:d(`\x1B[37m`,`\x1B[39m`),gray:d(`\x1B[90m`,`\x1B[39m`),bgBlack:d(`\x1B[40m`,`\x1B[49m`),bgRed:d(`\x1B[41m`,`\x1B[49m`),bgGreen:d(`\x1B[42m`,`\x1B[49m`),bgYellow:d(`\x1B[43m`,`\x1B[49m`),bgBlue:d(`\x1B[44m`,`\x1B[49m`),bgMagenta:d(`\x1B[45m`,`\x1B[49m`),bgCyan:d(`\x1B[46m`,`\x1B[49m`),bgWhite:d(`\x1B[47m`,`\x1B[49m`),blackBright:d(`\x1B[90m`,`\x1B[39m`),redBright:d(`\x1B[91m`,`\x1B[39m`),greenBright:d(`\x1B[92m`,`\x1B[39m`),yellowBright:d(`\x1B[93m`,`\x1B[39m`),blueBright:d(`\x1B[94m`,`\x1B[39m`),magentaBright:d(`\x1B[95m`,`\x1B[39m`),cyanBright:d(`\x1B[96m`,`\x1B[39m`),whiteBright:d(`\x1B[97m`,`\x1B[39m`),bgBlackBright:d(`\x1B[100m`,`\x1B[49m`),bgRedBright:d(`\x1B[101m`,`\x1B[49m`),bgGreenBright:d(`\x1B[102m`,`\x1B[49m`),bgYellowBright:d(`\x1B[103m`,`\x1B[49m`),bgBlueBright:d(`\x1B[104m`,`\x1B[49m`),bgMagentaBright:d(`\x1B[105m`,`\x1B[49m`),bgCyanBright:d(`\x1B[106m`,`\x1B[49m`),bgWhiteBright:d(`\x1B[107m`,`\x1B[49m`)}};d.exports=oe(),d.exports.createColors=oe})),require_js_tokens=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,l.matchToToken=function(l){var d={type:`invalid`,value:l[0],closed:void 0};return l[1]?(d.type=`string`,d.closed=!!(l[3]||l[4])):l[5]?d.type=`comment`:l[6]?(d.type=`comment`,d.closed=!!l[7]):l[8]?d.type=`regex`:l[9]?d.type=`number`:l[10]?d.type=`name`:l[11]?d.type=`punctuator`:l[12]&&(d.type=`whitespace`),d}})),require_identifier=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.isIdentifierChar=se,l.isIdentifierName=ce,l.isIdentifierStart=oe;let d=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,f=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,m=RegExp(`[`+d+`]`),te=RegExp(`[`+d+f+`]`);d=f=null;let re=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],ie=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function ae(l,d){let f=65536;for(let m=0,te=d.length;m<te;m+=2){if(f+=d[m],f>l)return!1;if(f+=d[m+1],f>=l)return!0}return!1}function oe(l){return l<65?l===36:l<=90?!0:l<97?l===95:l<=122?!0:l<=65535?l>=170&&m.test(String.fromCharCode(l)):ae(l,re)}function se(l){return l<48?l===36:l<58?!0:l<65?!1:l<=90?!0:l<97?l===95:l<=122?!0:l<=65535?l>=170&&te.test(String.fromCharCode(l)):ae(l,re)||ae(l,ie)}function ce(l){let d=!0;for(let f=0;f<l.length;f++){let m=l.charCodeAt(f);if((m&64512)==55296&&f+1<l.length){let d=l.charCodeAt(++f);(d&64512)==56320&&(m=65536+((m&1023)<<10)+(d&1023))}if(d){if(d=!1,!oe(m))return!1}else if(!se(m))return!1}return!d}})),require_keyword=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.isKeyword=se,l.isReservedWord=re,l.isStrictBindOnlyReservedWord=ae,l.isStrictBindReservedWord=oe,l.isStrictReservedWord=ie;let d={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`],strictBind:[`eval`,`arguments`]},f=new Set(d.keyword),m=new Set(d.strict),te=new Set(d.strictBind);function re(l,d){return d&&l===`await`||l===`enum`}function ie(l,d){return re(l,d)||m.has(l)}function ae(l){return te.has(l)}function oe(l,d){return ie(l,d)||ae(l)}function se(l){return f.has(l)}})),require_lib$12=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"isIdentifierChar",{enumerable:!0,get:function(){return d.isIdentifierChar}}),Object.defineProperty(l,"isIdentifierName",{enumerable:!0,get:function(){return d.isIdentifierName}}),Object.defineProperty(l,"isIdentifierStart",{enumerable:!0,get:function(){return d.isIdentifierStart}}),Object.defineProperty(l,"isKeyword",{enumerable:!0,get:function(){return f.isKeyword}}),Object.defineProperty(l,"isReservedWord",{enumerable:!0,get:function(){return f.isReservedWord}}),Object.defineProperty(l,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return f.isStrictBindOnlyReservedWord}}),Object.defineProperty(l,"isStrictBindReservedWord",{enumerable:!0,get:function(){return f.isStrictBindReservedWord}}),Object.defineProperty(l,"isStrictReservedWord",{enumerable:!0,get:function(){return f.isStrictReservedWord}});var d=require_identifier(),f=require_keyword()})),require_lib$11=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0});var d=require_picocolors(),f=require_js_tokens(),m=require_lib$12();function te(){return typeof process==`object`&&(process.env.FORCE_COLOR===`0`||process.env.FORCE_COLOR===`false`)?!1:d.isColorSupported}let re=(l,d)=>f=>l(d(f));function ie(l){return{keyword:l.cyan,capitalized:l.yellow,jsxIdentifier:l.yellow,punctuator:l.yellow,number:l.magenta,string:l.green,regex:l.magenta,comment:l.gray,invalid:re(re(l.white,l.bgRed),l.bold),gutter:l.gray,marker:re(l.red,l.bold),message:re(l.red,l.bold),reset:l.reset}}let ae=ie(d.createColors(!0)),oe=ie(d.createColors(!1));function se(l){return l?ae:oe}let ce=new Set([`as`,`async`,`from`,`get`,`of`,`set`]),le=/\r\n|[\n\r\u2028\u2029]/,ue=/^[()[\]{}]$/,de,fe=/^[a-z][\w-]*$/i,pe=function(l,d,f){if(l.type===`name`){let te=l.value;if(m.isKeyword(te)||m.isStrictReservedWord(te,!0)||ce.has(te))return`keyword`;if(fe.test(te)&&(f[d-1]===`<`||f.slice(d-2,d)===`</`))return`jsxIdentifier`;let re=String.fromCodePoint(te.codePointAt(0));if(re!==re.toLowerCase())return`capitalized`}return l.type===`punctuator`&&ue.test(l.value)?`bracket`:l.type===`invalid`&&(l.value===`@`||l.value===`#`)?`punctuator`:l.type};de=function*(l){let d;for(;d=f.default.exec(l);){let m=f.matchToToken(d);yield{type:pe(m,d.index,l),value:m.value}}};function me(l){if(l===``)return``;let d=se(!0),f=``;for(let{type:m,value:te}of de(l))m in d?f+=te.split(le).map(l=>d[m](l)).join(`
114
+ `)}function filenameReservedRegex(){return/[<>:"/\\|?*\u0000-\u001F]|[. ]$/g}function windowsReservedNameRegex(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}const MAX_FILENAME_LENGTH=100,reRelativePath=/^\.+(\\|\/)|^\.+$/,reTrailingDotsAndSpaces=/[. ]+$/,reControlChars=/[\p{Control}\p{Format}\p{Zl}\p{Zp}\uFFF0-\uFFFF]/gu,reControlCharsTest=/[\p{Control}\p{Format}\p{Zl}\p{Zp}\uFFF0-\uFFFF]/u,isZeroWidthJoiner=l=>l===`‍`,reRepeatedReservedCharacters=/([<>:"/\\|?*\u0000-\u001F]){2,}/g,reReplacementReservedCharacters=/[<>:"/\\|?*\u0000-\u001F]/,reUnicodeWhitespace=/[\t\n\r\u00A0\u1680\u2000-\u200A\u202F\u205F\u3000]+/g;let segmenter;function getSegmenter(){return segmenter??=new Intl.Segmenter(void 0,{granularity:`grapheme`}),segmenter}function truncateFilename(l,d){if(l.length<=d)return l;let f=l.lastIndexOf(`.`);if(f===-1)return truncateByGraphemeBudget(l,d);let m=l.slice(0,f),te=l.slice(f);return truncateByGraphemeBudget(m,Math.max(0,d-te.length)).replace(/ +$/,``)+te}function filenamify(l,d={}){if(typeof l!=`string`)throw TypeError(`Expected a string`);let f=d.replacement??`!`,m=reReplacementReservedCharacters.test(f),te=[...f].some(l=>reControlCharsTest.test(l)&&!isZeroWidthJoiner(l));if(m||te)throw Error(`Replacement string cannot contain reserved filename characters`);l=l.normalize(`NFC`),l=l.replaceAll(reUnicodeWhitespace,` `),f.length>0&&(l=l.replaceAll(reRepeatedReservedCharacters,`$1`)),l=l.replace(reTrailingDotsAndSpaces,``),l=l.replace(reRelativePath,f),l=l.replace(filenameReservedRegex(),f),l=l.replaceAll(reControlChars,l=>isZeroWidthJoiner(l)?l:f),l=l.replace(reTrailingDotsAndSpaces,``),l.length===0&&(l=f.replace(reTrailingDotsAndSpaces,``),l.length===0&&f.length>0&&(l=`!`));let re=typeof d.maxLength==`number`?d.maxLength:MAX_FILENAME_LENGTH;return l=truncateFilename(l,re),l=l.replace(reTrailingDotsAndSpaces,``),windowsReservedNameRegex().test(l)&&(l+=f),l}function truncateByGraphemeBudget(l,d){if(l.length<=d)return l;let f=0,m=``;for(let{segment:te}of getSegmenter().segment(l)){let l=f+te.length;if(l>d)break;m+=te,f=l}return m}const toPath$2=l=>l instanceof URL?fileURLToPath$1(l):l;function findUpSync(l,{cwd:d=process$1.cwd(),type:f=`file`,stopAt:m}={}){let te=path.resolve(toPath$2(d)??``),{root:re}=path.parse(te);m=path.resolve(te,toPath$2(m)??re);let ie=path.isAbsolute(l);for(;te;){let d=ie?l:path.join(te,l);try{let l=fs.statSync(d,{throwIfNoEntry:!1});if(f===`file`&&l?.isFile()||f===`directory`&&l?.isDirectory())return d}catch{}if(te===m||te===re)break;te=path.dirname(te)}}var require_picocolors=__commonJSMin(((l,d)=>{let f=process||{},m=f.argv||[],te=f.env||{},re=!(te.NO_COLOR||m.includes(`--no-color`))&&(!!te.FORCE_COLOR||m.includes(`--color`)||f.platform===`win32`||(f.stdout||{}).isTTY&&te.TERM!==`dumb`||!!te.CI),ie=(l,d,f=l)=>m=>{let te=``+m,re=te.indexOf(d,l.length);return~re?l+ae(te,d,f,re)+d:l+te+d},ae=(l,d,f,m)=>{let te=``,re=0;do te+=l.substring(re,m)+f,re=m+d.length,m=l.indexOf(d,re);while(~m);return te+l.substring(re)},oe=(l=re)=>{let d=l?ie:()=>String;return{isColorSupported:l,reset:d(`\x1B[0m`,`\x1B[0m`),bold:d(`\x1B[1m`,`\x1B[22m`,`\x1B[22m\x1B[1m`),dim:d(`\x1B[2m`,`\x1B[22m`,`\x1B[22m\x1B[2m`),italic:d(`\x1B[3m`,`\x1B[23m`),underline:d(`\x1B[4m`,`\x1B[24m`),inverse:d(`\x1B[7m`,`\x1B[27m`),hidden:d(`\x1B[8m`,`\x1B[28m`),strikethrough:d(`\x1B[9m`,`\x1B[29m`),black:d(`\x1B[30m`,`\x1B[39m`),red:d(`\x1B[31m`,`\x1B[39m`),green:d(`\x1B[32m`,`\x1B[39m`),yellow:d(`\x1B[33m`,`\x1B[39m`),blue:d(`\x1B[34m`,`\x1B[39m`),magenta:d(`\x1B[35m`,`\x1B[39m`),cyan:d(`\x1B[36m`,`\x1B[39m`),white:d(`\x1B[37m`,`\x1B[39m`),gray:d(`\x1B[90m`,`\x1B[39m`),bgBlack:d(`\x1B[40m`,`\x1B[49m`),bgRed:d(`\x1B[41m`,`\x1B[49m`),bgGreen:d(`\x1B[42m`,`\x1B[49m`),bgYellow:d(`\x1B[43m`,`\x1B[49m`),bgBlue:d(`\x1B[44m`,`\x1B[49m`),bgMagenta:d(`\x1B[45m`,`\x1B[49m`),bgCyan:d(`\x1B[46m`,`\x1B[49m`),bgWhite:d(`\x1B[47m`,`\x1B[49m`),blackBright:d(`\x1B[90m`,`\x1B[39m`),redBright:d(`\x1B[91m`,`\x1B[39m`),greenBright:d(`\x1B[92m`,`\x1B[39m`),yellowBright:d(`\x1B[93m`,`\x1B[39m`),blueBright:d(`\x1B[94m`,`\x1B[39m`),magentaBright:d(`\x1B[95m`,`\x1B[39m`),cyanBright:d(`\x1B[96m`,`\x1B[39m`),whiteBright:d(`\x1B[97m`,`\x1B[39m`),bgBlackBright:d(`\x1B[100m`,`\x1B[49m`),bgRedBright:d(`\x1B[101m`,`\x1B[49m`),bgGreenBright:d(`\x1B[102m`,`\x1B[49m`),bgYellowBright:d(`\x1B[103m`,`\x1B[49m`),bgBlueBright:d(`\x1B[104m`,`\x1B[49m`),bgMagentaBright:d(`\x1B[105m`,`\x1B[49m`),bgCyanBright:d(`\x1B[106m`,`\x1B[49m`),bgWhiteBright:d(`\x1B[107m`,`\x1B[49m`)}};d.exports=oe(),d.exports.createColors=oe})),require_js_tokens=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,l.matchToToken=function(l){var d={type:`invalid`,value:l[0],closed:void 0};return l[1]?(d.type=`string`,d.closed=!!(l[3]||l[4])):l[5]?d.type=`comment`:l[6]?(d.type=`comment`,d.closed=!!l[7]):l[8]?d.type=`regex`:l[9]?d.type=`number`:l[10]?d.type=`name`:l[11]?d.type=`punctuator`:l[12]&&(d.type=`whitespace`),d}})),require_identifier=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.isIdentifierChar=se,l.isIdentifierName=ce,l.isIdentifierStart=oe;let d=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,f=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,m=RegExp(`[`+d+`]`),te=RegExp(`[`+d+f+`]`);d=f=null;let re=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],ie=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function ae(l,d){let f=65536;for(let m=0,te=d.length;m<te;m+=2){if(f+=d[m],f>l)return!1;if(f+=d[m+1],f>=l)return!0}return!1}function oe(l){return l<65?l===36:l<=90?!0:l<97?l===95:l<=122?!0:l<=65535?l>=170&&m.test(String.fromCharCode(l)):ae(l,re)}function se(l){return l<48?l===36:l<58?!0:l<65?!1:l<=90?!0:l<97?l===95:l<=122?!0:l<=65535?l>=170&&te.test(String.fromCharCode(l)):ae(l,re)||ae(l,ie)}function ce(l){let d=!0;for(let f=0;f<l.length;f++){let m=l.charCodeAt(f);if((m&64512)==55296&&f+1<l.length){let d=l.charCodeAt(++f);(d&64512)==56320&&(m=65536+((m&1023)<<10)+(d&1023))}if(d){if(d=!1,!oe(m))return!1}else if(!se(m))return!1}return!d}})),require_keyword=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.isKeyword=se,l.isReservedWord=re,l.isStrictBindOnlyReservedWord=ae,l.isStrictBindReservedWord=oe,l.isStrictReservedWord=ie;let d={keyword:`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`],strictBind:[`eval`,`arguments`]},f=new Set(d.keyword),m=new Set(d.strict),te=new Set(d.strictBind);function re(l,d){return d&&l===`await`||l===`enum`}function ie(l,d){return re(l,d)||m.has(l)}function ae(l){return te.has(l)}function oe(l,d){return ie(l,d)||ae(l)}function se(l){return f.has(l)}})),require_lib$11=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"isIdentifierChar",{enumerable:!0,get:function(){return d.isIdentifierChar}}),Object.defineProperty(l,"isIdentifierName",{enumerable:!0,get:function(){return d.isIdentifierName}}),Object.defineProperty(l,"isIdentifierStart",{enumerable:!0,get:function(){return d.isIdentifierStart}}),Object.defineProperty(l,"isKeyword",{enumerable:!0,get:function(){return f.isKeyword}}),Object.defineProperty(l,"isReservedWord",{enumerable:!0,get:function(){return f.isReservedWord}}),Object.defineProperty(l,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return f.isStrictBindOnlyReservedWord}}),Object.defineProperty(l,"isStrictBindReservedWord",{enumerable:!0,get:function(){return f.isStrictBindReservedWord}}),Object.defineProperty(l,"isStrictReservedWord",{enumerable:!0,get:function(){return f.isStrictReservedWord}});var d=require_identifier(),f=require_keyword()})),require_lib$10=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0});var d=require_picocolors(),f=require_js_tokens(),m=require_lib$11();function te(){return typeof process==`object`&&(process.env.FORCE_COLOR===`0`||process.env.FORCE_COLOR===`false`)?!1:d.isColorSupported}let re=(l,d)=>f=>l(d(f));function ie(l){return{keyword:l.cyan,capitalized:l.yellow,jsxIdentifier:l.yellow,punctuator:l.yellow,number:l.magenta,string:l.green,regex:l.magenta,comment:l.gray,invalid:re(re(l.white,l.bgRed),l.bold),gutter:l.gray,marker:re(l.red,l.bold),message:re(l.red,l.bold),reset:l.reset}}let ae=ie(d.createColors(!0)),oe=ie(d.createColors(!1));function se(l){return l?ae:oe}let ce=new Set([`as`,`async`,`from`,`get`,`of`,`set`]),le=/\r\n|[\n\r\u2028\u2029]/,ue=/^[()[\]{}]$/,de,fe=/^[a-z][\w-]*$/i,pe=function(l,d,f){if(l.type===`name`){let te=l.value;if(m.isKeyword(te)||m.isStrictReservedWord(te,!0)||ce.has(te))return`keyword`;if(fe.test(te)&&(f[d-1]===`<`||f.slice(d-2,d)===`</`))return`jsxIdentifier`;let re=String.fromCodePoint(te.codePointAt(0));if(re!==re.toLowerCase())return`capitalized`}return l.type===`punctuator`&&ue.test(l.value)?`bracket`:l.type===`invalid`&&(l.value===`@`||l.value===`#`)?`punctuator`:l.type};de=function*(l){let d;for(;d=f.default.exec(l);){let m=f.matchToToken(d);yield{type:pe(m,d.index,l),value:m.value}}};function me(l){if(l===``)return``;let d=se(!0),f=``;for(let{type:m,value:te}of de(l))m in d?f+=te.split(le).map(l=>d[m](l)).join(`
115
115
  `):f+=te;return f}let he=/\r\n|[\n\r\u2028\u2029]/;function ge(l,d,f,m){let te=Object.assign({column:0,line:-1},l.start),re=Object.assign({},te,l.end),{linesAbove:ie=2,linesBelow:ae=3}=f||{},oe=te.line-m,se=te.column,ce=re.line-m,le=re.column,ue=Math.max(oe-(ie+1),0),de=Math.min(d.length,ce+ae);oe===-1&&(ue=0),ce===-1&&(de=d.length);let fe=ce-oe,pe={};if(fe)for(let l=0;l<=fe;l++){let f=l+oe;se?l===0?pe[f]=[se,d[f-1].length-se+1]:l===fe?pe[f]=[0,le]:pe[f]=[0,d[f-l].length]:pe[f]=!0}else se===le?se?pe[oe]=[se,0]:pe[oe]=!0:pe[oe]=[se,le-se];return{start:ue,end:de,markerLines:pe}}function _e(l,d,f={}){let m=f.forceColor||te()&&f.highlightCode,re=(f.startLine||1)-1,ie=se(m),{start:ae,end:oe,markerLines:ce}=ge(d,l.split(he),f,re),le=d.start&&typeof d.start.column==`number`,ue=String(oe+re).length,de=(m?me(l):l).split(he,oe).slice(ae,oe).map((l,d)=>{let m=ae+1+d,te=` ${` ${m+re}`.slice(-ue)} |`,oe=ce[m],se=!ce[m+1];if(oe){let d=``;if(Array.isArray(oe)){let m=l.slice(0,Math.max(oe[0]-1,0)).replace(/[^\t]/g,` `),re=oe[1]||1;d=[`
116
116
  `,ie.gutter(te.replace(/\d/g,` `)),` `,m,ie.marker(`^`).repeat(re)].join(``),se&&f.message&&(d+=` `+ie.message(f.message))}return[ie.marker(`>`),ie.gutter(te),l.length>0?` ${l}`:``,d].join(``)}else return` ${ie.gutter(te)}${l.length>0?` ${l}`:``}`}).join(`
117
- `);return f.message&&!le&&(de=`${` `.repeat(ue+1)}${f.message}\n${de}`),m?ie.reset(de):de}l.codeFrameColumns=_e})),import_lib$4=require_lib$11();const getOffsets=({oneBased:l,oneBasedLine:d=l,oneBasedColumn:f=l}={})=>[+!!d,+!!f];function getPosition(l,d,f){let m=d===0?-1:l.lastIndexOf(`
118
- `,d-1),[te,re]=getOffsets(f);return{line:m===-1?te:l.slice(0,m+1).match(/\n/g).length+te,column:d-m-1+re}}function indexToPosition(l,d,f){if(typeof l!=`string`)throw TypeError(`Text parameter should be a string`);if(!Number.isInteger(d))throw TypeError(`Index parameter should be an integer`);if(d<0||d>l.length)throw RangeError(`Index out of bounds`);return getPosition(l,d,f)}const getCodePoint=l=>`\\u{${l.codePointAt(0).toString(16)}}`;var JSONError=class l extends Error{name=`JSONError`;fileName;#e;#t;#n;#r;#i;constructor(d){if(typeof d==`string`)super(),this.#n=d;else{let{jsonParseError:l,fileName:f,input:m}=d;super(void 0,{cause:l}),this.#e=m,this.#t=l,this.fileName=f}Error.captureStackTrace?.(this,l)}get message(){this.#n??=`${addCodePointToUnexpectedToken(this.#t.message)}${this.#e===``?` while parsing empty string`:``}`;let{codeFrame:l}=this;return`${this.#n}${this.fileName?` in ${this.fileName}`:``}${l?`\n\n${l}\n`:``}`}set message(l){this.#n=l}#a(l){if(!this.#t)return;let d=this.#e,f=getErrorLocation(d,this.#t.message);if(f)return(0,import_lib$4.codeFrameColumns)(d,{start:f},{highlightCode:l})}get codeFrame(){return this.#r??=this.#a(!0),this.#r}get rawCodeFrame(){return this.#i??=this.#a(!1),this.#i}};const getErrorLocation=(l,d)=>{let f=d.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!f)return;let{index:m,line:te,column:re}=f.groups;return te&&re?{line:Number(te),column:Number(re)}:indexToPosition(l,Number(m),{oneBased:!0})},addCodePointToUnexpectedToken=l=>l.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(l,d,f)=>`"${f}"(${getCodePoint(f)})`);function parseJson(l,d,f){typeof d==`string`&&(f=d,d=void 0);try{return JSON.parse(l,d)}catch(d){throw new JSONError({jsonParseError:d,fileName:f,input:l})}}var require_debug=__commonJSMin(((l,d)=>{d.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...l)=>console.error(`SEMVER`,...l):()=>{}})),require_constants$5=__commonJSMin(((l,d)=>{let f=`2.0.0`,m=256,te=2**53-1||9007199254740991,re=16,ie=250;d.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:te,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),require_re=__commonJSMin(((l,d)=>{let{MAX_SAFE_COMPONENT_LENGTH:f,MAX_SAFE_BUILD_LENGTH:m,MAX_LENGTH:te}=require_constants$5(),re=require_debug();l=d.exports={};let ie=l.re=[],ae=l.safeRe=[],oe=l.src=[],se=l.safeSrc=[],ce=l.t={},le=0,ue=`[a-zA-Z0-9-]`,de=[[`\\s`,1],[`\\d`,te],[ue,m]],fe=l=>{for(let[d,f]of de)l=l.split(`${d}*`).join(`${d}{0,${f}}`).split(`${d}+`).join(`${d}{1,${f}}`);return l},pe=(l,d,f)=>{let m=fe(d),te=le++;re(l,te,d),ce[l]=te,oe[te]=d,se[te]=m,ie[te]=new RegExp(d,f?`g`:void 0),ae[te]=new RegExp(m,f?`g`:void 0)};pe(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),pe(`NUMERICIDENTIFIERLOOSE`,`\\d+`),pe(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${ue}*`),pe(`MAINVERSION`,`(${oe[ce.NUMERICIDENTIFIER]})\\.(${oe[ce.NUMERICIDENTIFIER]})\\.(${oe[ce.NUMERICIDENTIFIER]})`),pe(`MAINVERSIONLOOSE`,`(${oe[ce.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ce.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ce.NUMERICIDENTIFIERLOOSE]})`),pe(`PRERELEASEIDENTIFIER`,`(?:${oe[ce.NONNUMERICIDENTIFIER]}|${oe[ce.NUMERICIDENTIFIER]})`),pe(`PRERELEASEIDENTIFIERLOOSE`,`(?:${oe[ce.NONNUMERICIDENTIFIER]}|${oe[ce.NUMERICIDENTIFIERLOOSE]})`),pe(`PRERELEASE`,`(?:-(${oe[ce.PRERELEASEIDENTIFIER]}(?:\\.${oe[ce.PRERELEASEIDENTIFIER]})*))`),pe(`PRERELEASELOOSE`,`(?:-?(${oe[ce.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${oe[ce.PRERELEASEIDENTIFIERLOOSE]})*))`),pe(`BUILDIDENTIFIER`,`${ue}+`),pe(`BUILD`,`(?:\\+(${oe[ce.BUILDIDENTIFIER]}(?:\\.${oe[ce.BUILDIDENTIFIER]})*))`),pe(`FULLPLAIN`,`v?${oe[ce.MAINVERSION]}${oe[ce.PRERELEASE]}?${oe[ce.BUILD]}?`),pe(`FULL`,`^${oe[ce.FULLPLAIN]}$`),pe(`LOOSEPLAIN`,`[v=\\s]*${oe[ce.MAINVERSIONLOOSE]}${oe[ce.PRERELEASELOOSE]}?${oe[ce.BUILD]}?`),pe(`LOOSE`,`^${oe[ce.LOOSEPLAIN]}$`),pe(`GTLT`,`((?:<|>)?=?)`),pe(`XRANGEIDENTIFIERLOOSE`,`${oe[ce.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),pe(`XRANGEIDENTIFIER`,`${oe[ce.NUMERICIDENTIFIER]}|x|X|\\*`),pe(`XRANGEPLAIN`,`[v=\\s]*(${oe[ce.XRANGEIDENTIFIER]})(?:\\.(${oe[ce.XRANGEIDENTIFIER]})(?:\\.(${oe[ce.XRANGEIDENTIFIER]})(?:${oe[ce.PRERELEASE]})?${oe[ce.BUILD]}?)?)?`),pe(`XRANGEPLAINLOOSE`,`[v=\\s]*(${oe[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ce.XRANGEIDENTIFIERLOOSE]})(?:${oe[ce.PRERELEASELOOSE]})?${oe[ce.BUILD]}?)?)?`),pe(`XRANGE`,`^${oe[ce.GTLT]}\\s*${oe[ce.XRANGEPLAIN]}$`),pe(`XRANGELOOSE`,`^${oe[ce.GTLT]}\\s*${oe[ce.XRANGEPLAINLOOSE]}$`),pe(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${f}})(?:\\.(\\d{1,${f}}))?(?:\\.(\\d{1,${f}}))?`),pe(`COERCE`,`${oe[ce.COERCEPLAIN]}(?:$|[^\\d])`),pe(`COERCEFULL`,oe[ce.COERCEPLAIN]+`(?:${oe[ce.PRERELEASE]})?(?:${oe[ce.BUILD]})?(?:$|[^\\d])`),pe(`COERCERTL`,oe[ce.COERCE],!0),pe(`COERCERTLFULL`,oe[ce.COERCEFULL],!0),pe(`LONETILDE`,`(?:~>?)`),pe(`TILDETRIM`,`(\\s*)${oe[ce.LONETILDE]}\\s+`,!0),l.tildeTrimReplace=`$1~`,pe(`TILDE`,`^${oe[ce.LONETILDE]}${oe[ce.XRANGEPLAIN]}$`),pe(`TILDELOOSE`,`^${oe[ce.LONETILDE]}${oe[ce.XRANGEPLAINLOOSE]}$`),pe(`LONECARET`,`(?:\\^)`),pe(`CARETTRIM`,`(\\s*)${oe[ce.LONECARET]}\\s+`,!0),l.caretTrimReplace=`$1^`,pe(`CARET`,`^${oe[ce.LONECARET]}${oe[ce.XRANGEPLAIN]}$`),pe(`CARETLOOSE`,`^${oe[ce.LONECARET]}${oe[ce.XRANGEPLAINLOOSE]}$`),pe(`COMPARATORLOOSE`,`^${oe[ce.GTLT]}\\s*(${oe[ce.LOOSEPLAIN]})$|^$`),pe(`COMPARATOR`,`^${oe[ce.GTLT]}\\s*(${oe[ce.FULLPLAIN]})$|^$`),pe(`COMPARATORTRIM`,`(\\s*)${oe[ce.GTLT]}\\s*(${oe[ce.LOOSEPLAIN]}|${oe[ce.XRANGEPLAIN]})`,!0),l.comparatorTrimReplace=`$1$2$3`,pe(`HYPHENRANGE`,`^\\s*(${oe[ce.XRANGEPLAIN]})\\s+-\\s+(${oe[ce.XRANGEPLAIN]})\\s*$`),pe(`HYPHENRANGELOOSE`,`^\\s*(${oe[ce.XRANGEPLAINLOOSE]})\\s+-\\s+(${oe[ce.XRANGEPLAINLOOSE]})\\s*$`),pe(`STAR`,`(<|>)?=?\\s*\\*`),pe(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),pe(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),require_parse_options=__commonJSMin(((l,d)=>{let f=Object.freeze({loose:!0}),m=Object.freeze({});d.exports=l=>l?typeof l==`object`?l:f:m})),require_identifiers=__commonJSMin(((l,d)=>{let f=/^[0-9]+$/,m=(l,d)=>{if(typeof l==`number`&&typeof d==`number`)return l===d?0:l<d?-1:1;let m=f.test(l),te=f.test(d);return m&&te&&(l=+l,d=+d),l===d?0:m&&!te?-1:te&&!m?1:l<d?-1:1};d.exports={compareIdentifiers:m,rcompareIdentifiers:(l,d)=>m(d,l)}})),require_semver$1=__commonJSMin(((l,d)=>{let f=require_debug(),{MAX_LENGTH:m,MAX_SAFE_INTEGER:te}=require_constants$5(),{safeRe:re,t:ie}=require_re(),ae=require_parse_options(),{compareIdentifiers:oe}=require_identifiers(),se=(l,d)=>{let f=d.split(`.`);if(f.length>l.length)return!1;for(let d=0;d<f.length;d++)if(oe(l[d],f[d])!==0)return!1;return!0};d.exports=class l{constructor(d,oe){if(oe=ae(oe),d instanceof l){if(d.loose===!!oe.loose&&d.includePrerelease===!!oe.includePrerelease)return d;d=d.version}else if(typeof d!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof d}".`);if(d.length>m)throw TypeError(`version is longer than ${m} characters`);f(`SemVer`,d,oe),this.options=oe,this.loose=!!oe.loose,this.includePrerelease=!!oe.includePrerelease;let se=d.trim().match(oe.loose?re[ie.LOOSE]:re[ie.FULL]);if(!se)throw TypeError(`Invalid Version: ${d}`);if(this.raw=d,this.major=+se[1],this.minor=+se[2],this.patch=+se[3],this.major>te||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>te||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>te||this.patch<0)throw TypeError(`Invalid patch version`);se[4]?this.prerelease=se[4].split(`.`).map(l=>{if(/^[0-9]+$/.test(l)){let d=+l;if(d>=0&&d<te)return d}return l}):this.prerelease=[],this.build=se[5]?se[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(d){if(f(`SemVer.compare`,this.version,this.options,d),!(d instanceof l)){if(typeof d==`string`&&d===this.version)return 0;d=new l(d,this.options)}return d.version===this.version?0:this.compareMain(d)||this.comparePre(d)}compareMain(d){return d instanceof l||(d=new l(d,this.options)),this.major<d.major?-1:this.major>d.major?1:this.minor<d.minor?-1:this.minor>d.minor?1:this.patch<d.patch?-1:+(this.patch>d.patch)}comparePre(d){if(d instanceof l||(d=new l(d,this.options)),this.prerelease.length&&!d.prerelease.length)return-1;if(!this.prerelease.length&&d.prerelease.length)return 1;if(!this.prerelease.length&&!d.prerelease.length)return 0;let m=0;do{let l=this.prerelease[m],te=d.prerelease[m];if(f(`prerelease compare`,m,l,te),l===void 0&&te===void 0)return 0;if(te===void 0)return 1;if(l===void 0)return-1;if(l===te)continue;return oe(l,te)}while(++m)}compareBuild(d){d instanceof l||(d=new l(d,this.options));let m=0;do{let l=this.build[m],te=d.build[m];if(f(`build compare`,m,l,te),l===void 0&&te===void 0)return 0;if(te===void 0)return 1;if(l===void 0)return-1;if(l===te)continue;return oe(l,te)}while(++m)}inc(l,d,f){if(l.startsWith(`pre`)){if(!d&&f===!1)throw Error(`invalid increment argument: identifier is empty`);if(d){let l=`-${d}`.match(this.options.loose?re[ie.PRERELEASELOOSE]:re[ie.PRERELEASE]);if(!l||l[1]!==d)throw Error(`invalid identifier: ${d}`)}}switch(l){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,d,f);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,d,f);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,d,f),this.inc(`pre`,d,f);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,d,f),this.inc(`pre`,d,f);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let l=+!!Number(f);if(this.prerelease.length===0)this.prerelease=[l];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]==`number`&&(this.prerelease[m]++,m=-2);if(m===-1){if(d===this.prerelease.join(`.`)&&f===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(l)}}if(d){let m=[d,l];if(f===!1&&(m=[d]),se(this.prerelease,d)){let l=this.prerelease[d.split(`.`).length];isNaN(l)&&(this.prerelease=m)}else this.prerelease=m}break}default:throw Error(`invalid increment argument: ${l}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),require_parse$5=__commonJSMin(((l,d)=>{let f=require_semver$1();d.exports=(l,d,m=!1)=>{if(l instanceof f)return l;try{return new f(l,d)}catch(l){if(!m)return null;throw l}}})),require_valid$1=__commonJSMin(((l,d)=>{let f=require_parse$5();d.exports=(l,d)=>{let m=f(l,d);return m?m.version:null}})),require_clean=__commonJSMin(((l,d)=>{let f=require_parse$5();d.exports=(l,d)=>{let m=f(l.trim().replace(/^[=v]+/,``),d);return m?m.version:null}})),require_spdx_license_ids=__commonJSMin(((l,d)=>{d.exports=`0BSD,3D-Slicer-1.0,AAL,ADSL,AFL-1.1,AFL-1.2,AFL-2.0,AFL-2.1,AFL-3.0,AGPL-1.0-only,AGPL-1.0-or-later,AGPL-3.0-only,AGPL-3.0-or-later,ALGLIB-Documentation,AMD-newlib,AMDPLPA,AML,AML-glslang,AMPAS,ANTLR-PD,ANTLR-PD-fallback,APAFML,APL-1.0,APSL-1.0,APSL-1.1,APSL-1.2,APSL-2.0,ASWF-Digital-Assets-1.0,ASWF-Digital-Assets-1.1,Abstyles,AdaCore-doc,Adobe-2006,Adobe-Display-PostScript,Adobe-Glyph,Adobe-Utopia,Advanced-Cryptics-Dictionary,Afmparse,Aladdin,Apache-1.0,Apache-1.1,Apache-2.0,App-s2p,Arphic-1999,Artistic-1.0,Artistic-1.0-Perl,Artistic-1.0-cl8,Artistic-2.0,Artistic-dist,Aspell-RU,BOLA-1.1,BSD-1-Clause,BSD-2-Clause,BSD-2-Clause-Darwin,BSD-2-Clause-Patent,BSD-2-Clause-Views,BSD-2-Clause-first-lines,BSD-2-Clause-pkgconf-disclaimer,BSD-3-Clause,BSD-3-Clause-Attribution,BSD-3-Clause-Clear,BSD-3-Clause-HP,BSD-3-Clause-LBNL,BSD-3-Clause-Modification,BSD-3-Clause-No-Military-License,BSD-3-Clause-No-Nuclear-License,BSD-3-Clause-No-Nuclear-License-2014,BSD-3-Clause-No-Nuclear-Warranty,BSD-3-Clause-Open-MPI,BSD-3-Clause-Sun,BSD-3-Clause-Tso,BSD-3-Clause-acpica,BSD-3-Clause-flex,BSD-4-Clause,BSD-4-Clause-Shortened,BSD-4-Clause-UC,BSD-4.3RENO,BSD-4.3TAHOE,BSD-Advertising-Acknowledgement,BSD-Attribution-HPND-disclaimer,BSD-Inferno-Nettverk,BSD-Mark-Modifications,BSD-Protection,BSD-Source-Code,BSD-Source-beginning-file,BSD-Systemics,BSD-Systemics-W3Works,BSL-1.0,BUSL-1.1,Baekmuk,Bahyph,Barr,Beerware,BitTorrent-1.0,BitTorrent-1.1,Bitstream-Charter,Bitstream-Vera,BlueOak-1.0.0,Boehm-GC,Boehm-GC-without-fee,Borceux,Brian-Gladman-2-Clause,Brian-Gladman-3-Clause,Buddy,C-UDA-1.0,CAL-1.0,CAL-1.0-Combined-Work-Exception,CAPEC-tou,CATOSL-1.1,CC-BY-1.0,CC-BY-2.0,CC-BY-2.5,CC-BY-2.5-AU,CC-BY-3.0,CC-BY-3.0-AT,CC-BY-3.0-AU,CC-BY-3.0-DE,CC-BY-3.0-IGO,CC-BY-3.0-NL,CC-BY-3.0-US,CC-BY-4.0,CC-BY-NC-1.0,CC-BY-NC-2.0,CC-BY-NC-2.5,CC-BY-NC-3.0,CC-BY-NC-3.0-DE,CC-BY-NC-4.0,CC-BY-NC-ND-1.0,CC-BY-NC-ND-2.0,CC-BY-NC-ND-2.5,CC-BY-NC-ND-3.0,CC-BY-NC-ND-3.0-DE,CC-BY-NC-ND-3.0-IGO,CC-BY-NC-ND-4.0,CC-BY-NC-SA-1.0,CC-BY-NC-SA-2.0,CC-BY-NC-SA-2.0-DE,CC-BY-NC-SA-2.0-FR,CC-BY-NC-SA-2.0-UK,CC-BY-NC-SA-2.5,CC-BY-NC-SA-3.0,CC-BY-NC-SA-3.0-DE,CC-BY-NC-SA-3.0-IGO,CC-BY-NC-SA-4.0,CC-BY-ND-1.0,CC-BY-ND-2.0,CC-BY-ND-2.5,CC-BY-ND-3.0,CC-BY-ND-3.0-DE,CC-BY-ND-4.0,CC-BY-SA-1.0,CC-BY-SA-2.0,CC-BY-SA-2.0-UK,CC-BY-SA-2.1-JP,CC-BY-SA-2.5,CC-BY-SA-3.0,CC-BY-SA-3.0-AT,CC-BY-SA-3.0-DE,CC-BY-SA-3.0-IGO,CC-BY-SA-4.0,CC-PDDC,CC-PDM-1.0,CC-SA-1.0,CC0-1.0,CDDL-1.0,CDDL-1.1,CDL-1.0,CDLA-Permissive-1.0,CDLA-Permissive-2.0,CDLA-Sharing-1.0,CECILL-1.0,CECILL-1.1,CECILL-2.0,CECILL-2.1,CECILL-B,CECILL-C,CERN-OHL-1.1,CERN-OHL-1.2,CERN-OHL-P-2.0,CERN-OHL-S-2.0,CERN-OHL-W-2.0,CFITSIO,CMU-Mach,CMU-Mach-nodoc,CNRI-Jython,CNRI-Python,CNRI-Python-GPL-Compatible,COIL-1.0,CPAL-1.0,CPL-1.0,CPOL-1.02,CUA-OPL-1.0,Caldera,Caldera-no-preamble,Catharon,ClArtistic,Clips,Community-Spec-1.0,Condor-1.1,Cornell-Lossless-JPEG,Cronyx,Crossword,CryptoSwift,CrystalStacker,Cube,D-FSL-1.0,DEC-3-Clause,DL-DE-BY-2.0,DL-DE-ZERO-2.0,DOC,DRL-1.0,DRL-1.1,DSDP,DocBook-DTD,DocBook-Schema,DocBook-Stylesheet,DocBook-XML,Dotseqn,ECL-1.0,ECL-2.0,EFL-1.0,EFL-2.0,EPICS,EPL-1.0,EPL-2.0,ESA-PL-permissive-2.4,ESA-PL-strong-copyleft-2.4,ESA-PL-weak-copyleft-2.4,EUDatagrid,EUPL-1.0,EUPL-1.1,EUPL-1.2,Elastic-2.0,Entessa,ErlPL-1.1,Eurosym,FBM,FDK-AAC,FSFAP,FSFAP-no-warranty-disclaimer,FSFUL,FSFULLR,FSFULLRSD,FSFULLRWD,FSL-1.1-ALv2,FSL-1.1-MIT,FTL,Fair,Ferguson-Twofish,Frameworx-1.0,FreeBSD-DOC,FreeImage,Furuseth,GCR-docs,GD,GFDL-1.1-invariants-only,GFDL-1.1-invariants-or-later,GFDL-1.1-no-invariants-only,GFDL-1.1-no-invariants-or-later,GFDL-1.1-only,GFDL-1.1-or-later,GFDL-1.2-invariants-only,GFDL-1.2-invariants-or-later,GFDL-1.2-no-invariants-only,GFDL-1.2-no-invariants-or-later,GFDL-1.2-only,GFDL-1.2-or-later,GFDL-1.3-invariants-only,GFDL-1.3-invariants-or-later,GFDL-1.3-no-invariants-only,GFDL-1.3-no-invariants-or-later,GFDL-1.3-only,GFDL-1.3-or-later,GL2PS,GLWTPL,GPL-1.0-only,GPL-1.0-or-later,GPL-2.0-only,GPL-2.0-or-later,GPL-3.0-only,GPL-3.0-or-later,Game-Programming-Gems,Giftware,Glide,Glulxe,Graphics-Gems,Gutmann,HDF5,HIDAPI,HP-1986,HP-1989,HPND,HPND-DEC,HPND-Fenneberg-Livingston,HPND-INRIA-IMAG,HPND-Intel,HPND-Kevlin-Henney,HPND-MIT-disclaimer,HPND-Markus-Kuhn,HPND-Netrek,HPND-Pbmplus,HPND-SMC,HPND-UC,HPND-UC-export-US,HPND-doc,HPND-doc-sell,HPND-export-US,HPND-export-US-acknowledgement,HPND-export-US-modify,HPND-export2-US,HPND-merchantability-variant,HPND-sell-MIT-disclaimer-xserver,HPND-sell-regexpr,HPND-sell-variant,HPND-sell-variant-MIT-disclaimer,HPND-sell-variant-MIT-disclaimer-rev,HPND-sell-variant-critical-systems,HTMLTIDY,HaskellReport,Hippocratic-2.1,IBM-pibs,ICU,IEC-Code-Components-EULA,IJG,IJG-short,IPA,IPL-1.0,ISC,ISC-Veillard,ISO-permission,ImageMagick,Imlib2,Info-ZIP,Inner-Net-2.0,InnoSetup,Intel,Intel-ACPI,Interbase-1.0,JPL-image,JPNIC,JSON,Jam,JasPer-2.0,Kastrup,Kazlib,Knuth-CTAN,LAL-1.2,LAL-1.3,LGPL-2.0-only,LGPL-2.0-or-later,LGPL-2.1-only,LGPL-2.1-or-later,LGPL-3.0-only,LGPL-3.0-or-later,LGPLLR,LOOP,LPD-document,LPL-1.0,LPL-1.02,LPPL-1.0,LPPL-1.1,LPPL-1.2,LPPL-1.3a,LPPL-1.3c,LZMA-SDK-9.11-to-9.20,LZMA-SDK-9.22,Latex2e,Latex2e-translated-notice,Leptonica,LiLiQ-P-1.1,LiLiQ-R-1.1,LiLiQ-Rplus-1.1,Libpng,Linux-OpenIB,Linux-man-pages-1-para,Linux-man-pages-copyleft,Linux-man-pages-copyleft-2-para,Linux-man-pages-copyleft-var,Lucida-Bitmap-Fonts,MIPS,MIT,MIT-0,MIT-CMU,MIT-Click,MIT-Festival,MIT-Khronos-old,MIT-Modern-Variant,MIT-STK,MIT-Wu,MIT-advertising,MIT-enna,MIT-feh,MIT-open-group,MIT-testregex,MITNFA,MMIXware,MMPL-1.0.1,MPEG-SSG,MPL-1.0,MPL-1.1,MPL-2.0,MPL-2.0-no-copyleft-exception,MS-LPL,MS-PL,MS-RL,MTLL,Mackerras-3-Clause,Mackerras-3-Clause-acknowledgment,MakeIndex,Martin-Birgmeier,McPhee-slideshow,Minpack,MirOS,Motosoto,MulanPSL-1.0,MulanPSL-2.0,Multics,Mup,NAIST-2003,NASA-1.3,NBPL-1.0,NCBI-PD,NCGL-UK-2.0,NCL,NCSA,NGPL,NICTA-1.0,NIST-PD,NIST-PD-TNT,NIST-PD-fallback,NIST-Software,NLOD-1.0,NLOD-2.0,NLPL,NOSL,NPL-1.0,NPL-1.1,NPOSL-3.0,NRL,NTIA-PD,NTP,NTP-0,Naumen,NetCDF,Newsletr,Nokia,Noweb,O-UDA-1.0,OAR,OCCT-PL,OCLC-2.0,ODC-By-1.0,ODbL-1.0,OFFIS,OFL-1.0,OFL-1.0-RFN,OFL-1.0-no-RFN,OFL-1.1,OFL-1.1-RFN,OFL-1.1-no-RFN,OGC-1.0,OGDL-Taiwan-1.0,OGL-Canada-2.0,OGL-UK-1.0,OGL-UK-2.0,OGL-UK-3.0,OGTSL,OLDAP-1.1,OLDAP-1.2,OLDAP-1.3,OLDAP-1.4,OLDAP-2.0,OLDAP-2.0.1,OLDAP-2.1,OLDAP-2.2,OLDAP-2.2.1,OLDAP-2.2.2,OLDAP-2.3,OLDAP-2.4,OLDAP-2.5,OLDAP-2.6,OLDAP-2.7,OLDAP-2.8,OLFL-1.3,OML,OPL-1.0,OPL-UK-3.0,OPUBL-1.0,OSC-1.0,OSET-PL-2.1,OSL-1.0,OSL-1.1,OSL-2.0,OSL-2.1,OSL-3.0,OSSP,OpenMDW-1.0,OpenPBS-2.3,OpenSSL,OpenSSL-standalone,OpenVision,PADL,PDDL-1.0,PHP-3.0,PHP-3.01,PPL,PSF-2.0,ParaType-Free-Font-1.3,Parity-6.0.0,Parity-7.0.0,Pixar,Plexus,PolyForm-Noncommercial-1.0.0,PolyForm-Small-Business-1.0.0,PostgreSQL,Python-2.0,Python-2.0.1,QPL-1.0,QPL-1.0-INRIA-2004,Qhull,RHeCos-1.1,RPL-1.1,RPL-1.5,RPSL-1.0,RSA-MD,RSCPL,Rdisc,Ruby,Ruby-pty,SAX-PD,SAX-PD-2.0,SCEA,SGI-B-1.0,SGI-B-1.1,SGI-B-2.0,SGI-OpenGL,SGMLUG-PM,SGP4,SHL-0.5,SHL-0.51,SISSL,SISSL-1.2,SL,SMAIL-GPL,SMLNJ,SMPPL,SNIA,SOFA,SPL-1.0,SSH-OpenSSH,SSH-short,SSLeay-standalone,SSPL-1.0,SUL-1.0,SWL,Saxpath,SchemeReport,Sendmail,Sendmail-8.23,Sendmail-Open-Source-1.1,SimPL-2.0,Sleepycat,Soundex,Spencer-86,Spencer-94,Spencer-99,SugarCRM-1.1.3,Sun-PPP,Sun-PPP-2000,SunPro,Symlinks,TAPR-OHL-1.0,TCL,TCP-wrappers,TGPPL-1.0,TMate,TORQUE-1.1,TOSL,TPDL,TPL-1.0,TTWL,TTYP0,TU-Berlin-1.0,TU-Berlin-2.0,TekHVC,TermReadKey,ThirdEye,TrustedQSL,UCAR,UCL-1.0,UMich-Merit,UPL-1.0,URT-RLE,Ubuntu-font-1.0,UnRAR,Unicode-3.0,Unicode-DFS-2015,Unicode-DFS-2016,Unicode-TOU,UnixCrypt,Unlicense,Unlicense-libtelnet,Unlicense-libwhirlpool,VOSTROM,VSL-1.0,Vim,Vixie-Cron,W3C,W3C-19980720,W3C-20150513,WTFNMFPL,WTFPL,Watcom-1.0,Widget-Workshop,WordNet,Wsuipa,X11,X11-distribute-modifications-variant,X11-no-permit-persons,X11-swapped,XFree86-1.1,XSkat,Xdebug-1.03,Xerox,Xfig,Xnet,YPL-1.0,YPL-1.1,ZPL-1.1,ZPL-2.0,ZPL-2.1,Zed,Zeeff,Zend-2.0,Zimbra-1.3,Zimbra-1.4,Zlib,any-OSI,any-OSI-perl-modules,bcrypt-Solar-Designer,blessing,bzip2-1.0.6,check-cvs,checkmk,copyleft-next-0.3.0,copyleft-next-0.3.1,curl,cve-tou,diffmark,dtoa,dvipdfm,eGenix,etalab-2.0,fwlw,gSOAP-1.3b,generic-xts,gnuplot,gtkbook,hdparm,hyphen-bulgarian,iMatix,jove,libpng-1.6.35,libpng-2.0,libselinux-1.0,libtiff,libutil-David-Nugent,lsof,magaz,mailprio,man2html,metamail,mpi-permissive,mpich2,mplus,ngrep,pkgconf,pnmstitch,psfrag,psutils,python-ldap,radvd,snprintf,softSurfer,ssh-keyscan,swrule,threeparttable,ulem,w3m,wwl,xinetd,xkeyboard-config-Zinoviev,xlock,xpp,xzoom,zlib-acknowledgement`.split(`,`)})),require_deprecated=__commonJSMin(((l,d)=>{d.exports=`AGPL-1.0,AGPL-3.0,BSD-2-Clause-FreeBSD,BSD-2-Clause-NetBSD,GFDL-1.1,GFDL-1.2,GFDL-1.3,GPL-1.0,GPL-2.0,GPL-2.0-with-GCC-exception,GPL-2.0-with-autoconf-exception,GPL-2.0-with-bison-exception,GPL-2.0-with-classpath-exception,GPL-2.0-with-font-exception,GPL-3.0,GPL-3.0-with-GCC-exception,GPL-3.0-with-autoconf-exception,LGPL-2.0,LGPL-2.1,LGPL-3.0,Net-SNMP,Nunit,StandardML-NJ,bzip2-1.0.5,eCos-2.0,wxWindows`.split(`,`)})),require_spdx_exceptions=__commonJSMin(((l,d)=>{d.exports=`389-exception,Asterisk-exception,Autoconf-exception-2.0,Autoconf-exception-3.0,Autoconf-exception-generic,Autoconf-exception-generic-3.0,Autoconf-exception-macro,Bison-exception-1.24,Bison-exception-2.2,Bootloader-exception,Classpath-exception-2.0,CLISP-exception-2.0,cryptsetup-OpenSSL-exception,DigiRule-FOSS-exception,eCos-exception-2.0,Fawkes-Runtime-exception,FLTK-exception,fmt-exception,Font-exception-2.0,freertos-exception-2.0,GCC-exception-2.0,GCC-exception-2.0-note,GCC-exception-3.1,Gmsh-exception,GNAT-exception,GNOME-examples-exception,GNU-compiler-exception,gnu-javamail-exception,GPL-3.0-interface-exception,GPL-3.0-linking-exception,GPL-3.0-linking-source-exception,GPL-CC-1.0,GStreamer-exception-2005,GStreamer-exception-2008,i2p-gpl-java-exception,KiCad-libraries-exception,LGPL-3.0-linking-exception,libpri-OpenH323-exception,Libtool-exception,Linux-syscall-note,LLGPL,LLVM-exception,LZMA-exception,mif-exception,OCaml-LGPL-linking-exception,OCCT-exception-1.0,OpenJDK-assembly-exception-1.0,openvpn-openssl-exception,PS-or-PDF-font-exception-20170817,QPL-1.0-INRIA-2004-exception,Qt-GPL-exception-1.0,Qt-LGPL-exception-1.1,Qwt-exception-1.0,SANE-exception,SHL-2.0,SHL-2.1,stunnel-exception,SWI-exception,Swift-exception,Texinfo-exception,u-boot-exception-2.0,UBDL-exception,Universal-FOSS-exception-1.0,vsftpd-openssl-exception,WxWindows-exception-3.1,x11vnc-openssl-exception`.split(`,`)})),require_scan$2=__commonJSMin(((l,d)=>{var f=[].concat(require_spdx_license_ids(),require_deprecated()),m=require_spdx_exceptions();d.exports=function(l){var d=0;function te(){return d<l.length}function re(f){if(f instanceof RegExp){var m=l.slice(d).match(f);if(m)return d+=m[0].length,m[0]}else if(l.indexOf(f,d)===d)return d+=f.length,f}function ie(){re(/[ ]*/)}function ae(){for(var f,m=[`WITH`,`AND`,`OR`,`(`,`)`,`:`,`+`],te=0;te<m.length&&(f=re(m[te]),!f);te++);if(f===`+`&&d>1&&l[d-2]===` `)throw Error("Space before `+`");return f&&{type:`OPERATOR`,string:f}}function oe(){return re(/[A-Za-z0-9-.]+/)}function se(){var l=oe();if(!l)throw Error(`Expected idstring at offset `+d);return l}function ce(){if(re(`DocumentRef-`))return{type:`DOCUMENTREF`,string:se()}}function le(){if(re(`LicenseRef-`))return{type:`LICENSEREF`,string:se()}}function ue(){var l=d,te=oe();if(f.indexOf(te)!==-1)return{type:`LICENSE`,string:te};if(m.indexOf(te)!==-1)return{type:`EXCEPTION`,string:te};d=l}function de(){return ae()||ce()||le()||ue()}for(var fe=[];te()&&(ie(),te());){var pe=de();if(!pe)throw Error("Unexpected `"+l[d]+"` at offset "+d);fe.push(pe)}return fe}})),require_parse$4=__commonJSMin(((l,d)=>{d.exports=function(l){var d=0;function f(){return d<l.length}function m(){return f()?l[d]:null}function te(){if(!f())throw Error();d++}function re(l){var d=m();if(d&&d.type===`OPERATOR`&&l===d.string)return te(),d.string}function ie(){if(re(`WITH`)){var l=m();if(l&&l.type===`EXCEPTION`)return te(),l.string;throw Error("Expected exception after `WITH`")}}function ae(){var l=d,f=``,ie=m();if(ie.type===`DOCUMENTREF`&&(te(),f+=`DocumentRef-`+ie.string+`:`,!re(`:`)))throw Error("Expected `:` after `DocumentRef-...`");if(ie=m(),ie.type===`LICENSEREF`)return te(),f+=`LicenseRef-`+ie.string,{license:f};d=l}function oe(){var l=m();if(l&&l.type===`LICENSE`){te();var d={license:l.string};re(`+`)&&(d.plus=!0);var f=ie();return f&&(d.exception=f),d}}function se(){if(re(`(`)){var l=ue();if(!re(`)`))throw Error("Expected `)`");return l}}function ce(){return se()||ae()||oe()}function le(l,d){return function f(){var m=d();if(m){if(!re(l))return m;var te=f();if(!te)throw Error(`Expected expression`);return{left:m,conjunction:l.toLowerCase(),right:te}}}}var ue=le(`OR`,le(`AND`,ce)),de=ue();if(!de||f())throw Error(`Syntax error`);return de}})),require_spdx_expression_parse=__commonJSMin(((l,d)=>{var f=require_scan$2(),m=require_parse$4();d.exports=function(l){return m(f(l))}})),require_spdx_correct=__commonJSMin(((l,d)=>{var f=require_spdx_expression_parse(),m=require_spdx_license_ids();function te(l){try{return f(l),!0}catch{return!1}}function re(l,d){var f=d[0].length-l[0].length;return f===0?l[0].toUpperCase().localeCompare(d[0].toUpperCase()):f}var ie=[[`APGL`,`AGPL`],[`Gpl`,`GPL`],[`GLP`,`GPL`],[`APL`,`Apache`],[`ISD`,`ISC`],[`GLP`,`GPL`],[`IST`,`ISC`],[`Claude`,`Clause`],[` or later`,`+`],[` International`,``],[`GNU`,`GPL`],[`GUN`,`GPL`],[`+`,``],[`GNU GPL`,`GPL`],[`GNU LGPL`,`LGPL`],[`GNU/GPL`,`GPL`],[`GNU GLP`,`GPL`],[`GNU LESSER GENERAL PUBLIC LICENSE`,`LGPL`],[`GNU Lesser General Public License`,`LGPL`],[`GNU LESSER GENERAL PUBLIC LICENSE`,`LGPL-2.1`],[`GNU Lesser General Public License`,`LGPL-2.1`],[`LESSER GENERAL PUBLIC LICENSE`,`LGPL`],[`Lesser General Public License`,`LGPL`],[`LESSER GENERAL PUBLIC LICENSE`,`LGPL-2.1`],[`Lesser General Public License`,`LGPL-2.1`],[`GNU General Public License`,`GPL`],[`Gnu public license`,`GPL`],[`GNU Public License`,`GPL`],[`GNU GENERAL PUBLIC LICENSE`,`GPL`],[`MTI`,`MIT`],[`Mozilla Public License`,`MPL`],[`Universal Permissive License`,`UPL`],[`WTH`,`WTF`],[`WTFGPL`,`WTFPL`],[`-License`,``]].sort(re),ae=0,oe=1,se=[function(l){return l.toUpperCase()},function(l){return l.trim()},function(l){return l.replace(/\./g,``)},function(l){return l.replace(/\s+/g,``)},function(l){return l.replace(/\s+/g,`-`)},function(l){return l.replace(`v`,`-`)},function(l){return l.replace(/,?\s*(\d)/,`-$1`)},function(l){return l.replace(/,?\s*(\d)/,`-$1.0`)},function(l){return l.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,`-$2`)},function(l){return l.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,`-$2.0`)},function(l){return l[0].toUpperCase()+l.slice(1)},function(l){return l.replace(`/`,`-`)},function(l){return l.replace(/\s*V\s*(\d)/,`-$1`).replace(/(\d)$/,`$1.0`)},function(l){return l.indexOf(`3.0`)===-1?l+`-only`:l+`-or-later`},function(l){return l+`only`},function(l){return l.replace(/(\d)$/,`-$1.0`)},function(l){return l.replace(/(-| )?(\d)$/,`-$2-Clause`)},function(l){return l.replace(/(-| )clause(-| )(\d)/,`-$3-Clause`)},function(l){return l.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,`BSD-3-Clause`)},function(l){return l.replace(/\bSimplified(-| )?BSD((-| )License)?/i,`BSD-2-Clause`)},function(l){return l.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,`BSD-2-Clause-$1BSD`)},function(l){return l.replace(/\bClear(-| )?BSD((-| )License)?/i,`BSD-3-Clause-Clear`)},function(l){return l.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,`BSD-4-Clause`)},function(l){return`CC-`+l},function(l){return`CC-`+l+`-4.0`},function(l){return l.replace(`Attribution`,`BY`).replace(`NonCommercial`,`NC`).replace(`NoDerivatives`,`ND`).replace(/ (\d)/,`-$1`).replace(/ ?International/,``)},function(l){return`CC-`+l.replace(`Attribution`,`BY`).replace(`NonCommercial`,`NC`).replace(`NoDerivatives`,`ND`).replace(/ (\d)/,`-$1`).replace(/ ?International/,``)+`-4.0`}],ce=m.map(function(l){var d=/^(.*)-\d+\.\d+$/.exec(l);return d?[d[0],d[1]]:[l,null]}).reduce(function(l,d){var f=d[1];return l[f]=l[f]||[],l[f].push(d[0]),l},{}),le=Object.keys(ce).map(function(l){return[l,ce[l]]}).filter(function(l){return l[1].length===1&&l[0]!==null&&l[0]!==`APL`}).map(function(l){return[l[0],l[1][0]]});ce=void 0;var ue=[[`UNLI`,`Unlicense`],[`WTF`,`WTFPL`],[`2 CLAUSE`,`BSD-2-Clause`],[`2-CLAUSE`,`BSD-2-Clause`],[`3 CLAUSE`,`BSD-3-Clause`],[`3-CLAUSE`,`BSD-3-Clause`],[`AFFERO`,`AGPL-3.0-or-later`],[`AGPL`,`AGPL-3.0-or-later`],[`APACHE`,`Apache-2.0`],[`ARTISTIC`,`Artistic-2.0`],[`Affero`,`AGPL-3.0-or-later`],[`BEER`,`Beerware`],[`BOOST`,`BSL-1.0`],[`BSD`,`BSD-2-Clause`],[`CDDL`,`CDDL-1.1`],[`ECLIPSE`,`EPL-1.0`],[`FUCK`,`WTFPL`],[`GNU`,`GPL-3.0-or-later`],[`LGPL`,`LGPL-3.0-or-later`],[`GPLV1`,`GPL-1.0-only`],[`GPL-1`,`GPL-1.0-only`],[`GPLV2`,`GPL-2.0-only`],[`GPL-2`,`GPL-2.0-only`],[`GPL`,`GPL-3.0-or-later`],[`MIT +NO-FALSE-ATTRIBS`,`MITNFA`],[`MIT`,`MIT`],[`MPL`,`MPL-2.0`],[`X11`,`X11`],[`ZLIB`,`Zlib`]].concat(le).sort(re),de=0,fe=1,pe=function(l){for(var d=0;d<se.length;d++){var f=se[d](l).trim();if(f!==l&&te(f))return f}return null},me=function(l){for(var d=l.toUpperCase(),f=0;f<ue.length;f++){var m=ue[f];if(d.indexOf(m[de])>-1)return m[fe]}return null},he=function(l,d){for(var f=0;f<ie.length;f++){var m=ie[f],te=m[ae];if(l.indexOf(te)>-1){var re=d(l.replace(te,m[oe]));if(re!==null)return re}}return null};d.exports=function(l,d){d||={};var f=d.upgrade===void 0?!0:!!d.upgrade;function m(l){return f?ge(l):l}if(!(typeof l==`string`&&l.trim().length!==0))throw Error(`Invalid argument. Expected non-empty string.`);if(l=l.trim(),te(l))return m(l);var re=l.replace(/\+$/,``).trim();if(te(re))return m(re);var ie=pe(l);return ie!==null||(ie=he(l,function(l){return te(l)?l:pe(l)}),ie!==null)||(ie=me(l),ie!==null)||(ie=he(l,me),ie!==null)?m(ie):null};function ge(l){return[`GPL-1.0`,`LGPL-1.0`,`AGPL-1.0`,`GPL-2.0`,`LGPL-2.0`,`AGPL-2.0`,`LGPL-2.1`].indexOf(l)===-1?[`GPL-1.0+`,`GPL-2.0+`,`GPL-3.0+`,`LGPL-2.0+`,`LGPL-2.1+`,`LGPL-3.0+`,`AGPL-1.0+`,`AGPL-3.0+`].indexOf(l)===-1?[`GPL-3.0`,`LGPL-3.0`,`AGPL-3.0`].indexOf(l)===-1?l:l+`-or-later`:l.replace(/\+$/,`-or-later`):l+`-only`}})),require_validate_npm_package_license=__commonJSMin(((l,d)=>{var f=require_spdx_expression_parse(),m=require_spdx_correct(),te=`license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"`,re=/^SEE LICEN[CS]E IN (.+)$/;function ie(l,d){return d.slice(0,l.length)===l}function ae(l){if(l.hasOwnProperty(`license`)){var d=l.license;return ie(`LicenseRef`,d)||ie(`DocumentRef`,d)}else return ae(l.left)||ae(l.right)}d.exports=function(l){var d;try{d=f(l)}catch{var ie;if(l===`UNLICENSED`||l===`UNLICENCED`)return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(ie=re.exec(l))return{validForOldPackages:!0,validForNewPackages:!0,inFile:ie[1]};var oe={validForOldPackages:!1,validForNewPackages:!1,warnings:[te]};if(l.trim().length!==0){var se=m(l);se&&oe.warnings.push(`license is similar to the valid expression "`+se+`"`)}return oe}return ae(d)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[te]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}})),require_index_min=__commonJSMin((l=>{var d=(l,d)=>()=>(d||l((d={exports:{}}).exports,d),d.exports),f=d(l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.tracing=l.metrics=void 0;var d=__require$1(`node:diagnostics_channel`);l.metrics=(0,d.channel)(`lru-cache:metrics`),l.tracing=(0,d.tracingChannel)(`lru-cache`)}),m=d(l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.defaultPerf=void 0,l.defaultPerf=typeof performance==`object`&&performance&&typeof performance.now==`function`?performance:Date});Object.defineProperty(l,"__esModule",{value:!0}),l.LRUCache=void 0;var te=f(),re=m(),ie=()=>te.metrics.hasSubscribers||te.tracing.hasSubscribers,ae=new Set,oe=typeof process==`object`&&process?process:{},se=(l,d,f,m)=>{typeof oe.emitWarning==`function`?oe.emitWarning(l,d,f,m):console.error(`[${f}] ${d}: ${l}`)},ce=l=>!ae.has(l),le=l=>!!l&&l===Math.floor(l)&&l>0&&isFinite(l),ue=l=>le(l)?l<=2**8?Uint8Array:l<=2**16?Uint16Array:l<=2**32?Uint32Array:l<=2**53-1?de:null:null,de=class extends Array{constructor(l){super(l),this.fill(0)}},fe=class l{heap;length;static#e=!1;static create(d){let f=ue(d);if(!f)return[];l.#e=!0;let m=new l(d,f);return l.#e=!1,m}constructor(d,f){if(!l.#e)throw TypeError(`instantiate Stack using Stack.create(n)`);this.heap=new f(d),this.length=0}push(l){this.heap[this.length++]=l}pop(){return this.heap[--this.length]}};l.LRUCache=class l{#e;#t;#n;#r;#i;#a;#o;#s;get perf(){return this.#s}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;backgroundFetchSize;#c;#l;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y;#b;#x;#S;#C;#w;#T;#E;static unsafeExposeInternals(l){return{starts:l.#b,ttls:l.#x,autopurgeTimers:l.#S,sizes:l.#y,keyMap:l.#u,keyList:l.#d,valList:l.#f,next:l.#p,prev:l.#m,get head(){return l.#h},get tail(){return l.#g},free:l.#_,isBackgroundFetch:d=>l.#W(d),backgroundFetch:(d,f,m,te)=>l.#U(d,f,m,te),moveToTail:d=>l.#X(d),indexes:d=>l.#I(d),rindexes:d=>l.#L(d),isStale:d=>l.#j(d)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#a}get memoMethod(){return this.#o}get dispose(){return this.#n}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(d){let{max:f=0,ttl:m,ttlResolution:te=1,ttlAutopurge:ie,updateAgeOnGet:oe,updateAgeOnHas:de,allowStale:pe,dispose:me,onInsert:he,disposeAfter:ge,noDisposeOnSet:_e,noUpdateTTL:ve,maxSize:ye=0,maxEntrySize:be=0,sizeCalculation:xe,fetchMethod:Se,memoMethod:Ce,noDeleteOnFetchRejection:we,noDeleteOnStaleGet:Te,allowStaleOnFetchRejection:Ee,allowStaleOnFetchAbort:De,ignoreFetchAbort:Oe,backgroundFetchSize:ke=1,perf:Ae}=d;if(this.backgroundFetchSize=ke,Ae!==void 0&&typeof Ae?.now!=`function`)throw TypeError(`perf option must have a now() method if specified`);if(this.#s=Ae??re.defaultPerf,f!==0&&!le(f))throw TypeError(`max option must be a nonnegative integer`);let je=f?ue(f):Array;if(!je)throw Error(`invalid max value: `+f);if(this.#e=f,this.#t=ye,this.maxEntrySize=be||this.#t,this.sizeCalculation=xe,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw TypeError(`cannot set sizeCalculation without setting maxSize or maxEntrySize`);if(typeof this.sizeCalculation!=`function`)throw TypeError(`sizeCalculation set to non-function`)}if(Ce!==void 0&&typeof Ce!=`function`)throw TypeError(`memoMethod must be a function if defined`);if(this.#o=Ce,Se!==void 0&&typeof Se!=`function`)throw TypeError(`fetchMethod must be a function if specified`);if(this.#a=Se,this.#w=!!Se,this.#u=new Map,this.#d=Array.from({length:f}).fill(void 0),this.#f=Array.from({length:f}).fill(void 0),this.#p=new je(f),this.#m=new je(f),this.#h=0,this.#g=0,this.#_=fe.create(f),this.#c=0,this.#l=0,typeof me==`function`&&(this.#n=me),typeof he==`function`&&(this.#r=he),typeof ge==`function`?(this.#i=ge,this.#v=[]):(this.#i=void 0,this.#v=void 0),this.#C=!!this.#n,this.#E=!!this.#r,this.#T=!!this.#i,this.noDisposeOnSet=!!_e,this.noUpdateTTL=!!ve,this.noDeleteOnFetchRejection=!!we,this.allowStaleOnFetchRejection=!!Ee,this.allowStaleOnFetchAbort=!!De,this.ignoreFetchAbort=!!Oe,this.maxEntrySize!==0){if(this.#t!==0&&!le(this.#t))throw TypeError(`maxSize must be a positive integer if specified`);if(!le(this.maxEntrySize))throw TypeError(`maxEntrySize must be a positive integer if specified`);this.#M()}if(this.allowStale=!!pe,this.noDeleteOnStaleGet=!!Te,this.updateAgeOnGet=!!oe,this.updateAgeOnHas=!!de,this.ttlResolution=le(te)||te===0?te:1,this.ttlAutopurge=!!ie,this.ttl=m||0,this.ttl){if(!le(this.ttl))throw TypeError(`ttl must be a positive integer if specified`);this.#D()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw TypeError(`At least one of max, maxSize, or ttl is required`);if(!this.ttlAutopurge&&!this.#e&&!this.#t){let d=`LRU_CACHE_UNBOUNDED`;ce(d)&&(ae.add(d),se(`TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.`,`UnboundedCacheWarning`,d,l))}}getRemainingTTL(l){return this.#u.has(l)?1/0:0}#D(){let l=new de(this.#e),d=new de(this.#e);this.#x=l,this.#b=d;let f=this.ttlAutopurge?Array.from({length:this.#e}):void 0;this.#S=f,this.#A=(f,te,re=this.#s.now())=>{d[f]=te===0?0:re,l[f]=te,m(f,te)},this.#O=f=>{d[f]=l[f]===0?0:this.#s.now(),m(f,l[f])};let m=this.ttlAutopurge?(l,d)=>{if(f?.[l]&&(clearTimeout(f[l]),f[l]=void 0),d&&d!==0&&f){let m=setTimeout(()=>{this.#j(l)&&this.#Z(this.#d[l],`expire`)},d+1);m.unref&&m.unref(),f[l]=m}}:()=>{};this.#k=(f,m)=>{if(l[m]){let ie=l[m],ae=d[m];if(!ie||!ae)return;f.ttl=ie,f.start=ae,f.now=te||re(),f.remainingTTL=ie-(f.now-ae)}};let te=0,re=()=>{let l=this.#s.now();if(this.ttlResolution>0){te=l;let d=setTimeout(()=>te=0,this.ttlResolution);d.unref&&d.unref()}return l};this.getRemainingTTL=f=>{let m=this.#u.get(f);if(m===void 0)return 0;let ie=l[m],ae=d[m];return!ie||!ae?1/0:ie-((te||re())-ae)},this.#j=f=>{let m=d[f],ie=l[f];return!!ie&&!!m&&(te||re())-m>ie}}#O=()=>{};#k=()=>{};#A=()=>{};#j=()=>!1;#M(){let l=new de(this.#e);this.#l=0,this.#y=l,this.#N=d=>{this.#l-=l[d],l[d]=0},this.#F=(l,d,f,m)=>{if(!le(f)){if(this.#W(d))return this.backgroundFetchSize;if(m){if(typeof m!=`function`)throw TypeError(`sizeCalculation must be a function`);if(f=m(d,l),!le(f))throw TypeError(`sizeCalculation return invalid (expect positive integer)`)}else throw TypeError(`invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.`)}return f},this.#P=(d,f,m)=>{if(l[d]=f,this.#t){let f=this.#t-l[d];for(;this.#l>f;)this.#B(!0)}this.#l+=l[d],m&&(m.entrySize=f,m.totalCalculatedSize=this.#l)}}#N=l=>{};#P=(l,d,f)=>{};#F=(l,d,f,m)=>{if(f||m)throw TypeError(`cannot set size without setting maxSize or maxEntrySize on cache`);return 0};*#I({allowStale:l=this.allowStale}={}){if(this.#c)for(let d=this.#g;this.#R(d)&&((l||!this.#j(d))&&(yield d),d!==this.#h);)d=this.#m[d]}*#L({allowStale:l=this.allowStale}={}){if(this.#c)for(let d=this.#h;this.#R(d)&&((l||!this.#j(d))&&(yield d),d!==this.#g);)d=this.#p[d]}#R(l){return l!==void 0&&this.#u.get(this.#d[l])===l}*entries(){for(let l of this.#I())this.#f[l]!==void 0&&this.#d[l]!==void 0&&!this.#W(this.#f[l])&&(yield[this.#d[l],this.#f[l]])}*rentries(){for(let l of this.#L())this.#f[l]!==void 0&&this.#d[l]!==void 0&&!this.#W(this.#f[l])&&(yield[this.#d[l],this.#f[l]])}*keys(){for(let l of this.#I()){let d=this.#d[l];d!==void 0&&!this.#W(this.#f[l])&&(yield d)}}*rkeys(){for(let l of this.#L()){let d=this.#d[l];d!==void 0&&!this.#W(this.#f[l])&&(yield d)}}*values(){for(let l of this.#I())this.#f[l]!==void 0&&!this.#W(this.#f[l])&&(yield this.#f[l])}*rvalues(){for(let l of this.#L())this.#f[l]!==void 0&&!this.#W(this.#f[l])&&(yield this.#f[l])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]=`LRUCache`;find(l,d={}){for(let f of this.#I()){let m=this.#f[f],te=this.#W(m)?m.__staleWhileFetching:m;if(te!==void 0&&l(te,this.#d[f],this))return this.#J(this.#d[f],d)}}forEach(l,d=this){for(let f of this.#I()){let m=this.#f[f],te=this.#W(m)?m.__staleWhileFetching:m;te!==void 0&&l.call(d,te,this.#d[f],this)}}rforEach(l,d=this){for(let f of this.#L()){let m=this.#f[f],te=this.#W(m)?m.__staleWhileFetching:m;te!==void 0&&l.call(d,te,this.#d[f],this)}}purgeStale(){let l=!1;for(let d of this.#L({allowStale:!0}))this.#j(d)&&(this.#Z(this.#d[d],`expire`),l=!0);return l}info(l){let d=this.#u.get(l);if(d===void 0)return;let f=this.#f[d],m=this.#W(f)?f.__staleWhileFetching:f;if(m===void 0)return;let te={value:m};if(this.#x&&this.#b){let l=this.#x[d],f=this.#b[d];l&&f&&(te.ttl=l-(this.#s.now()-f),te.start=Date.now())}return this.#y&&(te.size=this.#y[d]),te}dump(){let l=[];for(let d of this.#I({allowStale:!0})){let f=this.#d[d],m=this.#f[d],te=this.#W(m)?m.__staleWhileFetching:m;if(te===void 0||f===void 0)continue;let re={value:te};if(this.#x&&this.#b){re.ttl=this.#x[d];let l=this.#s.now()-this.#b[d];re.start=Math.floor(Date.now()-l)}this.#y&&(re.size=this.#y[d]),l.unshift([f,re])}return l}load(l){this.clear();for(let[d,f]of l){if(f.start){let l=Date.now()-f.start;f.start=this.#s.now()-l}this.#z(d,f.value,f)}}set(l,d,f={}){let{status:m=te.metrics.hasSubscribers?{}:void 0}=f;f.status=m,m&&(m.op=`set`,m.key=l,d!==void 0&&(m.value=d),m.cache=this);let re=this.#z(l,d,f);return m&&te.metrics.hasSubscribers&&te.metrics.publish(m),re}#z(l,d,f,m){let{ttl:te=this.ttl,start:re,noDisposeOnSet:ie=this.noDisposeOnSet,sizeCalculation:ae=this.sizeCalculation,status:oe}=f,se=this.#W(d);if(d===void 0)return oe&&(oe.set=`deleted`),this.delete(l),this;let{noUpdateTTL:ce=this.noUpdateTTL}=f;oe&&!se&&(oe.value=d);let le=this.#F(l,d,f.size||0,ae,oe);if(this.maxEntrySize&&le>this.maxEntrySize)return this.#Z(l,`set`),oe&&(oe.set=`miss`,oe.maxEntrySizeExceeded=!0),this;let ue=this.#c===0?void 0:this.#u.get(l);if(ue===void 0)ue=this.#c===0?this.#g:this.#_.length===0?this.#c===this.#e?this.#B(!1):this.#c:this.#_.pop(),this.#d[ue]=l,this.#f[ue]=d,this.#u.set(l,ue),this.#p[this.#g]=ue,this.#m[ue]=this.#g,this.#g=ue,this.#c++,this.#P(ue,le,oe),oe&&(oe.set=`add`),ce=!1,this.#E&&!se&&this.#r?.(d,l,`add`);else{this.#X(ue);let f=this.#f[ue];if(d!==f){if(!ie)if(this.#W(f)){f!==m&&f.__abortController.abort(Error(`replaced`));let{__staleWhileFetching:te}=f;te!==void 0&&te!==d&&(this.#C&&this.#n?.(te,l,`set`),this.#T&&this.#v?.push([te,l,`set`]))}else this.#C&&this.#n?.(f,l,`set`),this.#T&&this.#v?.push([f,l,`set`]);if(this.#N(ue),this.#P(ue,le,oe),this.#f[ue]=d,!se){let m=f&&this.#W(f)?f.__staleWhileFetching:f,te=m===void 0?`add`:d===m?`update`:`replace`;oe&&(oe.set=te,m!==void 0&&(oe.oldValue=m)),this.#E&&this.onInsert?.(d,l,te)}}else se||(oe&&(oe.set=`update`),this.#E&&this.onInsert?.(d,l,`update`))}if(te!==0&&!this.#x&&this.#D(),this.#x&&(ce||this.#A(ue,te,re),oe&&this.#k(oe,ue)),!ie&&this.#T&&this.#v){let l=this.#v,d;for(;d=l?.shift();)this.#i?.(...d)}return this}pop(){try{for(;this.#c;){let l=this.#f[this.#h];if(this.#B(!0),this.#W(l)){if(l.__staleWhileFetching)return l.__staleWhileFetching}else if(l!==void 0)return l}}finally{if(this.#T&&this.#v){let l=this.#v,d;for(;d=l?.shift();)this.#i?.(...d)}}}#B(l){let d=this.#h,f=this.#d[d],m=this.#f[d],te=this.#W(m);te&&m.__abortController.abort(Error(`evicted`));let re=te?m.__staleWhileFetching:m;return(this.#C||this.#T)&&re!==void 0&&(this.#C&&this.#n?.(re,f,`evict`),this.#T&&this.#v?.push([re,f,`evict`])),this.#N(d),this.#S?.[d]&&(clearTimeout(this.#S[d]),this.#S[d]=void 0),l&&(this.#d[d]=void 0,this.#f[d]=void 0,this.#_.push(d)),this.#c===1?(this.#h=this.#g=0,this.#_.length=0):this.#h=this.#p[d],this.#u.delete(f),this.#c--,d}has(l,d={}){let{status:f=te.metrics.hasSubscribers?{}:void 0}=d;d.status=f,f&&(f.op=`has`,f.key=l,f.cache=this);let m=this.#V(l,d);return te.metrics.hasSubscribers&&te.metrics.publish(f),m}#V(l,d={}){let{updateAgeOnHas:f=this.updateAgeOnHas,status:m}=d,te=this.#u.get(l);if(te!==void 0){let l=this.#f[te];if(this.#W(l)&&l.__staleWhileFetching===void 0)return!1;if(this.#j(te))m&&(m.has=`stale`,this.#k(m,te));else return f&&this.#O(te),m&&(m.has=`hit`,this.#k(m,te)),!0}else m&&(m.has=`miss`);return!1}peek(l,d={}){let{status:f=ie()?{}:void 0}=d;f&&(f.op=`peek`,f.key=l,f.cache=this),d.status=f;let m=this.#H(l,d);return te.metrics.hasSubscribers&&te.metrics.publish(f),m}#H(l,d){let{status:f,allowStale:m=this.allowStale}=d,te=this.#u.get(l);if(te===void 0||!m&&this.#j(te)){f&&(f.peek=te===void 0?`miss`:`stale`);return}let re=this.#f[te],ie=this.#W(re)?re.__staleWhileFetching:re;return f&&(ie===void 0?f.peek=`miss`:(f.peek=`hit`,f.value=ie)),ie}#U(l,d,f,m){let te=d===void 0?void 0:this.#f[d];if(this.#W(te))return te;let re=new AbortController,{signal:ie}=f;ie?.addEventListener(`abort`,()=>re.abort(ie.reason),{signal:re.signal});let ae={signal:re.signal,options:f,context:m},oe=(m,te=!1)=>{let{aborted:ie}=re.signal,oe=f.ignoreFetchAbort&&m!==void 0,se=f.ignoreFetchAbort||!!(f.allowStaleOnFetchAbort&&m!==void 0);if(f.status&&(ie&&!te?(f.status.fetchAborted=!0,f.status.fetchError=re.signal.reason,oe&&(f.status.fetchAbortIgnored=!0)):f.status.fetchResolved=!0),ie&&!oe&&!te)return ce(re.signal.reason,se);let le=ue,de=this.#f[d];return(de===ue||de===void 0&&oe&&te)&&(m===void 0?le.__staleWhileFetching===void 0?this.#Z(l,`fetch`):this.#f[d]=le.__staleWhileFetching:(f.status&&(f.status.fetchUpdated=!0),this.#z(l,m,ae.options,le))),m},se=l=>(f.status&&(f.status.fetchRejected=!0,f.status.fetchError=l),ce(l,!1)),ce=(m,te)=>{let{aborted:ie}=re.signal,ae=ie&&f.allowStaleOnFetchAbort,oe=ae||f.allowStaleOnFetchRejection,se=oe||f.noDeleteOnFetchRejection,ce=ue;if(this.#f[d]===ue&&(!se||!te&&ce.__staleWhileFetching===void 0?this.#Z(l,`fetch`):ae||(this.#f[d]=ce.__staleWhileFetching)),oe)return f.status&&ce.__staleWhileFetching!==void 0&&(f.status.returnedStale=!0),ce.__staleWhileFetching;if(ce.__returned===ce)throw m},le=(d,m)=>{let ie=this.#a?.(l,te,ae);re.signal.addEventListener(`abort`,()=>{(!f.ignoreFetchAbort||f.allowStaleOnFetchAbort)&&(d(void 0),f.allowStaleOnFetchAbort&&(d=l=>oe(l,!0)))}),ie&&ie instanceof Promise?ie.then(l=>d(l===void 0?void 0:l),m):ie!==void 0&&d(ie)};f.status&&(f.status.fetchDispatched=!0);let ue=new Promise(le).then(oe,se),de=Object.assign(ue,{__abortController:re,__staleWhileFetching:te,__returned:void 0});return d===void 0?(this.#z(l,de,{...ae.options,status:void 0}),d=this.#u.get(l)):this.#f[d]=de,de}#W(l){if(!this.#w)return!1;let d=l;return!!d&&d instanceof Promise&&d.hasOwnProperty(`__staleWhileFetching`)&&d.__abortController instanceof AbortController}fetch(l,d={}){let f=te.tracing.hasSubscribers,{status:m=ie()?{}:void 0}=d;d.status=m,m&&d.context&&(m.context=d.context);let re=this.#G(l,d);return m&&f&&(m.trace=!0,te.tracing.tracePromise(()=>re,m).catch(()=>{})),re}async#G(l,d={}){let{allowStale:f=this.allowStale,updateAgeOnGet:m=this.updateAgeOnGet,noDeleteOnStaleGet:te=this.noDeleteOnStaleGet,ttl:re=this.ttl,noDisposeOnSet:ie=this.noDisposeOnSet,size:ae=0,sizeCalculation:oe=this.sizeCalculation,noUpdateTTL:se=this.noUpdateTTL,noDeleteOnFetchRejection:ce=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:le=this.allowStaleOnFetchRejection,ignoreFetchAbort:ue=this.ignoreFetchAbort,allowStaleOnFetchAbort:de=this.allowStaleOnFetchAbort,context:fe,forceRefresh:pe=!1,status:me,signal:he}=d;if(me&&(me.op=`fetch`,me.key=l,pe&&(me.forceRefresh=!0),me.cache=this),!this.#w)return me&&(me.fetch=`get`),this.#J(l,{allowStale:f,updateAgeOnGet:m,noDeleteOnStaleGet:te,status:me});let ge={allowStale:f,updateAgeOnGet:m,noDeleteOnStaleGet:te,ttl:re,noDisposeOnSet:ie,size:ae,sizeCalculation:oe,noUpdateTTL:se,noDeleteOnFetchRejection:ce,allowStaleOnFetchRejection:le,allowStaleOnFetchAbort:de,ignoreFetchAbort:ue,status:me,signal:he},_e=this.#u.get(l);if(_e===void 0){me&&(me.fetch=`miss`);let d=this.#U(l,_e,ge,fe);return d.__returned=d}else{let d=this.#f[_e];if(this.#W(d)){let l=f&&d.__staleWhileFetching!==void 0;return me&&(me.fetch=`inflight`,l&&(me.returnedStale=!0)),l?d.__staleWhileFetching:d.__returned=d}let te=this.#j(_e);if(!pe&&!te)return me&&(me.fetch=`hit`),this.#X(_e),m&&this.#O(_e),me&&this.#k(me,_e),d;let re=this.#U(l,_e,ge,fe),ie=re.__staleWhileFetching!==void 0&&f;return me&&(me.fetch=te?`stale`:`refresh`,ie&&te&&(me.returnedStale=!0)),ie?re.__staleWhileFetching:re.__returned=re}}forceFetch(l,d={}){let f=te.tracing.hasSubscribers,{status:m=ie()?{}:void 0}=d;d.status=m,m&&d.context&&(m.context=d.context);let re=this.#K(l,d);return m&&f&&(m.trace=!0,te.tracing.tracePromise(()=>re,m).catch(()=>{})),re}async#K(l,d={}){let f=await this.#G(l,d);if(f===void 0)throw Error(`fetch() returned undefined`);return f}memo(l,d={}){let{status:f=te.metrics.hasSubscribers?{}:void 0}=d;d.status=f,f&&(f.op=`memo`,f.key=l,d.context&&(f.context=d.context),f.cache=this);let m=this.#q(l,d);return f&&(f.value=m),te.metrics.hasSubscribers&&te.metrics.publish(f),m}#q(l,d={}){let f=this.#o;if(!f)throw Error(`no memoMethod provided to constructor`);let{context:m,status:te,forceRefresh:re,...ie}=d;te&&re&&(te.forceRefresh=!0);let ae=this.#J(l,ie),oe=re||ae===void 0;if(te&&(te.memo=oe?`miss`:`hit`,oe||(te.value=ae)),!oe)return ae;let se=f(l,ae,{options:ie,context:m});return te&&(te.value=se),this.#z(l,se,ie),se}get(l,d={}){let{status:f=te.metrics.hasSubscribers?{}:void 0}=d;d.status=f,f&&(f.op=`get`,f.key=l,f.cache=this);let m=this.#J(l,d);return f&&(m!==void 0&&(f.value=m),te.metrics.hasSubscribers&&te.metrics.publish(f)),m}#J(l,d={}){let{allowStale:f=this.allowStale,updateAgeOnGet:m=this.updateAgeOnGet,noDeleteOnStaleGet:te=this.noDeleteOnStaleGet,status:re}=d,ie=this.#u.get(l);if(ie===void 0){re&&(re.get=`miss`);return}let ae=this.#f[ie],oe=this.#W(ae);return re&&this.#k(re,ie),this.#j(ie)?oe?(re&&(re.get=`stale-fetching`),f&&ae.__staleWhileFetching!==void 0?(re&&(re.returnedStale=!0),ae.__staleWhileFetching):void 0):(te||this.#Z(l,`expire`),re&&(re.get=`stale`),f?(re&&(re.returnedStale=!0),ae):void 0):(re&&(re.get=oe?`fetching`:`hit`),this.#X(ie),m&&this.#O(ie),oe?ae.__staleWhileFetching:ae)}#Y(l,d){this.#m[d]=l,this.#p[l]=d}#X(l){l!==this.#g&&(l===this.#h?this.#h=this.#p[l]:this.#Y(this.#m[l],this.#p[l]),this.#Y(this.#g,l),this.#g=l)}delete(l){return this.#Z(l,`delete`)}#Z(l,d){te.metrics.hasSubscribers&&te.metrics.publish({op:`delete`,delete:d,key:l,cache:this});let f=!1;if(this.#c!==0){let m=this.#u.get(l);if(m!==void 0)if(this.#S?.[m]&&(clearTimeout(this.#S?.[m]),this.#S[m]=void 0),f=!0,this.#c===1)this.#Q(d);else{this.#N(m);let f=this.#f[m];if(this.#W(f)?f.__abortController.abort(Error(`deleted`)):(this.#C||this.#T)&&(this.#C&&this.#n?.(f,l,d),this.#T&&this.#v?.push([f,l,d])),this.#u.delete(l),this.#d[m]=void 0,this.#f[m]=void 0,m===this.#g)this.#g=this.#m[m];else if(m===this.#h)this.#h=this.#p[m];else{let l=this.#m[m];this.#p[l]=this.#p[m];let d=this.#p[m];this.#m[d]=this.#m[m]}this.#c--,this.#_.push(m)}}if(this.#T&&this.#v?.length){let l=this.#v,d;for(;d=l?.shift();)this.#i?.(...d)}return f}clear(){return this.#Q(`delete`)}#Q(l){for(let d of this.#L({allowStale:!0})){let f=this.#f[d];if(this.#W(f))f.__abortController.abort(Error(`deleted`));else{let m=this.#d[d];this.#C&&this.#n?.(f,m,l),this.#T&&this.#v?.push([f,m,l])}}if(this.#u.clear(),this.#f.fill(void 0),this.#d.fill(void 0),this.#x&&this.#b){this.#x.fill(0),this.#b.fill(0);for(let l of this.#S??[])l!==void 0&&clearTimeout(l);this.#S?.fill(void 0)}if(this.#y&&this.#y.fill(0),this.#h=0,this.#g=0,this.#_.length=0,this.#l=0,this.#c=0,this.#T&&this.#v){let l=this.#v,d;for(;d=l?.shift();)this.#i?.(...d)}}}})),require_hosts=__commonJSMin(((l,d)=>{let f=(...l)=>l.every(l=>l)?l.join(``):``,m=l=>l?encodeURIComponent(l):``,te=l=>l.toLowerCase().replace(/^\W+/g,``).replace(/(?<!\W)\W+$/,``).replace(/\//g,``).replace(/\W+/g,`-`),re={sshtemplate:({domain:l,user:d,project:m,committish:te})=>`git@${l}:${d}/${m}.git${f(`#`,te)}`,sshurltemplate:({domain:l,user:d,project:m,committish:te})=>`git+ssh://git@${l}/${d}/${m}.git${f(`#`,te)}`,edittemplate:({domain:l,user:d,project:te,committish:re,editpath:ie,path:ae})=>`https://${l}/${d}/${te}${f(`/`,ie,`/`,m(re||`HEAD`),`/`,ae)}`,browsetemplate:({domain:l,user:d,project:te,committish:re,treepath:ie})=>`https://${l}/${d}/${te}${f(`/`,ie,`/`,m(re))}`,browsetreetemplate:({domain:l,user:d,project:te,committish:re,treepath:ie,path:ae,fragment:oe,hashformat:se})=>`https://${l}/${d}/${te}/${ie}/${m(re||`HEAD`)}/${ae}${f(`#`,se(oe||``))}`,browseblobtemplate:({domain:l,user:d,project:te,committish:re,blobpath:ie,path:ae,fragment:oe,hashformat:se})=>`https://${l}/${d}/${te}/${ie}/${m(re||`HEAD`)}/${ae}${f(`#`,se(oe||``))}`,docstemplate:({domain:l,user:d,project:te,treepath:re,committish:ie})=>`https://${l}/${d}/${te}${f(`/`,re,`/`,m(ie))}#readme`,httpstemplate:({auth:l,domain:d,user:m,project:te,committish:re})=>`git+https://${f(l,`@`)}${d}/${m}/${te}.git${f(`#`,re)}`,filetemplate:({domain:l,user:d,project:f,committish:te,path:re})=>`https://${l}/${d}/${f}/raw/${m(te||`HEAD`)}/${re}`,shortcuttemplate:({type:l,user:d,project:m,committish:te})=>`${l}:${d}/${m}${f(`#`,te)}`,pathtemplate:({user:l,project:d,committish:m})=>`${l}/${d}${f(`#`,m)}`,bugstemplate:({domain:l,user:d,project:f})=>`https://${l}/${d}/${f}/issues`,hashformat:te},ie={};ie.github={protocols:[`git:`,`http:`,`git+ssh:`,`git+https:`,`ssh:`,`https:`],domain:`github.com`,treepath:`tree`,blobpath:`blob`,editpath:`edit`,filetemplate:({auth:l,user:d,project:te,committish:re,path:ie})=>`https://${f(l,`@`)}raw.githubusercontent.com/${d}/${te}/${m(re||`HEAD`)}/${ie}`,gittemplate:({auth:l,domain:d,user:m,project:te,committish:re})=>`git://${f(l,`@`)}${d}/${m}/${te}.git${f(`#`,re)}`,tarballtemplate:({domain:l,user:d,project:f,committish:te})=>`https://codeload.${l}/${d}/${f}/tar.gz/${m(te||`HEAD`)}`,extract:l=>{let[,d,f,m,te]=l.pathname.split(`/`,5);if(!(m&&m!==`tree`)&&(m||(te=l.hash.slice(1)),f&&f.endsWith(`.git`)&&(f=f.slice(0,-4)),!(!d||!f)))return{user:d,project:f,committish:te}}},ie.bitbucket={protocols:[`git+ssh:`,`git+https:`,`ssh:`,`https:`],domain:`bitbucket.org`,treepath:`src`,blobpath:`src`,editpath:`?mode=edit`,edittemplate:({domain:l,user:d,project:te,committish:re,treepath:ie,path:ae,editpath:oe})=>`https://${l}/${d}/${te}${f(`/`,ie,`/`,m(re||`HEAD`),`/`,ae,oe)}`,tarballtemplate:({domain:l,user:d,project:f,committish:te})=>`https://${l}/${d}/${f}/get/${m(te||`HEAD`)}.tar.gz`,extract:l=>{let[,d,f,m]=l.pathname.split(`/`,4);if(![`get`].includes(m)&&(f&&f.endsWith(`.git`)&&(f=f.slice(0,-4)),!(!d||!f)))return{user:d,project:f,committish:l.hash.slice(1)}}},ie.gitlab={protocols:[`git+ssh:`,`git+https:`,`ssh:`,`https:`],domain:`gitlab.com`,treepath:`tree`,blobpath:`tree`,editpath:`-/edit`,tarballtemplate:({domain:l,user:d,project:f,committish:te})=>`https://${l}/api/v4/projects/${m(d+`/`+f)}/repository/archive.tar.gz?sha=${m(te||`HEAD`)}`,extract:l=>{let d=l.pathname.slice(1);if(d.includes(`/-/`)||d.includes(`/archive.tar.gz`))return;let f=d.split(`/`),m=f.pop();m.endsWith(`.git`)&&(m=m.slice(0,-4));let te=f.join(`/`);if(!(!te||!m))return{user:te,project:m,committish:l.hash.slice(1)}}},ie.gist={protocols:[`git:`,`git+ssh:`,`git+https:`,`ssh:`,`https:`],domain:`gist.github.com`,editpath:`edit`,sshtemplate:({domain:l,project:d,committish:m})=>`git@${l}:${d}.git${f(`#`,m)}`,sshurltemplate:({domain:l,project:d,committish:m})=>`git+ssh://git@${l}/${d}.git${f(`#`,m)}`,edittemplate:({domain:l,user:d,project:te,committish:re,editpath:ie})=>`https://${l}/${d}/${te}${f(`/`,m(re))}/${ie}`,browsetemplate:({domain:l,project:d,committish:te})=>`https://${l}/${d}${f(`/`,m(te))}`,browsetreetemplate:({domain:l,project:d,committish:te,path:re,hashformat:ie})=>`https://${l}/${d}${f(`/`,m(te))}${f(`#`,ie(re))}`,browseblobtemplate:({domain:l,project:d,committish:te,path:re,hashformat:ie})=>`https://${l}/${d}${f(`/`,m(te))}${f(`#`,ie(re))}`,docstemplate:({domain:l,project:d,committish:te})=>`https://${l}/${d}${f(`/`,m(te))}`,httpstemplate:({domain:l,project:d,committish:m})=>`git+https://${l}/${d}.git${f(`#`,m)}`,filetemplate:({user:l,project:d,committish:te,path:re})=>`https://gist.githubusercontent.com/${l}/${d}/raw${f(`/`,m(te))}/${re}`,shortcuttemplate:({type:l,project:d,committish:m})=>`${l}:${d}${f(`#`,m)}`,pathtemplate:({project:l,committish:d})=>`${l}${f(`#`,d)}`,bugstemplate:({domain:l,project:d})=>`https://${l}/${d}`,gittemplate:({domain:l,project:d,committish:m})=>`git://${l}/${d}.git${f(`#`,m)}`,tarballtemplate:({project:l,committish:d})=>`https://codeload.github.com/gist/${l}/tar.gz/${m(d||`HEAD`)}`,extract:l=>{let[,d,f,m]=l.pathname.split(`/`,4);if(m!==`raw`){if(!f){if(!d)return;f=d,d=null}return f.endsWith(`.git`)&&(f=f.slice(0,-4)),{user:d,project:f,committish:l.hash.slice(1)}}},hashformat:function(l){return l&&`file-`+te(l)}},ie.sourcehut={protocols:[`git+ssh:`,`https:`],domain:`git.sr.ht`,treepath:`tree`,blobpath:`tree`,filetemplate:({domain:l,user:d,project:f,committish:te,path:re})=>`https://${l}/${d}/${f}/blob/${m(te)||`HEAD`}/${re}`,httpstemplate:({domain:l,user:d,project:m,committish:te})=>`https://${l}/${d}/${m}${f(`#`,te)}`,tarballtemplate:({domain:l,user:d,project:f,committish:te})=>`https://${l}/${d}/${f}/archive/${m(te)||`HEAD`}.tar.gz`,bugstemplate:()=>null,extract:l=>{let[,d,f,m]=l.pathname.split(`/`,4);if(![`archive`].includes(m)&&(f&&f.endsWith(`.git`)&&(f=f.slice(0,-4)),!(!d||!f)))return{user:d,project:f,committish:l.hash.slice(1)}}};for(let[l,d]of Object.entries(ie))ie[l]=Object.assign({},re,d);d.exports=ie})),require_parse_url=__commonJSMin(((l,d)=>{let f=__require$1(`url`),m=(l,d,f)=>{let m=l.indexOf(f);return l.lastIndexOf(d,m>-1?m:1/0)},te=l=>{try{return new f.URL(l)}catch{}},re=(l,d)=>{let f=l.indexOf(`:`),m=l.slice(0,f+1);if(Object.prototype.hasOwnProperty.call(d,m)||l.substr(f,3)===`://`)return l;let te=l.indexOf(`@`);return te>-1?te>f?`git+ssh://${l}`:l:`${l.slice(0,f+1)}//${l.slice(f+1)}`},ie=l=>{let d=m(l,`@`,`#`),f=m(l,`:`,`#`);return f>d&&(l=l.slice(0,f)+`/`+l.slice(f+1)),m(l,`:`,`#`)===-1&&l.indexOf(`//`)===-1&&(l=`git+ssh://${l}`),l};d.exports=(l,d)=>{let f=d?re(l,d):l;return te(f)||te(ie(f))}})),require_from_url=__commonJSMin(((l,d)=>{let f=require_parse_url(),m=l=>{let d=l.indexOf(`#`),f=l.indexOf(`/`),m=l.indexOf(`/`,f+1),te=l.indexOf(`:`),re=/\s/.exec(l),ie=l.indexOf(`@`),ae=!re||d>-1&&re.index>d,oe=ie===-1||d>-1&&ie>d,se=te===-1||d>-1&&te>d,ce=m===-1||d>-1&&m>d,le=f>0,ue=d>-1?l[d-1]!==`/`:!l.endsWith(`/`),de=!l.startsWith(`.`);return ae&&le&&ue&&de&&oe&&se&&ce};d.exports=(l,d,{gitHosts:te,protocols:re})=>{if(!l)return;let ie=f(m(l)?`github:${l}`:l,re);if(!ie)return;let ae=te.byShortcut[ie.protocol],oe=te.byDomain[ie.hostname.startsWith(`www.`)?ie.hostname.slice(4):ie.hostname],se=ae||oe;if(!se)return;let ce=te[ae||oe],le=null;re[ie.protocol]?.auth&&(ie.username||ie.password)&&(le=`${ie.username}${ie.password?`:`+ie.password:``}`);let ue=null,de=null,fe=null,pe=null;try{if(ae){let l=ie.pathname.startsWith(`/`)?ie.pathname.slice(1):ie.pathname,d=l.indexOf(`@`);d>-1&&(l=l.slice(d+1));let f=l.lastIndexOf(`/`);f>-1?(de=decodeURIComponent(l.slice(0,f)),de||=null,fe=decodeURIComponent(l.slice(f+1))):fe=decodeURIComponent(l),fe.endsWith(`.git`)&&(fe=fe.slice(0,-4)),ie.hash&&(ue=decodeURIComponent(ie.hash.slice(1))),pe=`shortcut`}else{if(!ce.protocols.includes(ie.protocol))return;let l=ce.extract(ie);if(!l)return;de=l.user&&decodeURIComponent(l.user),fe=decodeURIComponent(l.project),ue=decodeURIComponent(l.committish),pe=re[ie.protocol]?.name||ie.protocol.slice(0,-1)}}catch(l){if(l instanceof URIError)return;throw l}return[se,de,le,fe,ue,pe,d]}})),require_lib$10=__commonJSMin(((l,d)=>{let{LRUCache:f}=require_index_min(),m=require_hosts(),te=require_from_url(),re=require_parse_url(),ie=new f({max:1e3});function ae(l){try{let{protocol:d,hostname:f,pathname:m}=new URL(l);return f?`${/(?:git\+)http:$/.test(d)?`http:`:`https:`}//${f}${m.replace(/\.git$/,``)}`:null}catch{return null}}var oe=class l{constructor(d,f,m,te,re,ie,ae={}){Object.assign(this,l.#e[d],{type:d,user:f,auth:m,project:te,committish:re,default:ie,opts:ae})}static#e={byShortcut:{},byDomain:{}};static#t={"git+ssh:":{name:`sshurl`},"ssh:":{name:`sshurl`},"git+https:":{name:`https`,auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(d,f){l.#e[d]=f,l.#e.byDomain[f.domain]=d,l.#e.byShortcut[`${d}:`]=d,l.#t[`${d}:`]={name:d}}static fromUrl(d,f){if(typeof d!=`string`)return;let m=d+JSON.stringify(f||{});if(!ie.has(m)){let re=te(d,f,{gitHosts:l.#e,protocols:l.#t});ie.set(m,re?new l(...re):void 0)}return ie.get(m)}static fromManifest(d,f={}){if(!d||typeof d!=`object`)return;let m=d.repository,te=m&&(typeof m==`string`?m:typeof m==`object`&&typeof m.url==`string`?m.url:null);if(!te)throw Error(`no repository`);let re=te&&l.fromUrl(te.replace(/^git\+/,``),f)||null;if(re)return re;let ie=ae(te);return l.fromUrl(ie,f)||ie}static parseUrl(l){return re(l)}#n(l,d){if(typeof l!=`function`)return null;let f={...this,...this.opts,...d};f.path||=``,f.path.startsWith(`/`)&&(f.path=f.path.slice(1)),f.noCommittish&&(f.committish=null);let m=l(f);return f.noGitPlus&&m.startsWith(`git+`)?m.slice(4):m}hash(){return this.committish?`#${this.committish}`:``}ssh(l){return this.#n(this.sshtemplate,l)}sshurl(l){return this.#n(this.sshurltemplate,l)}browse(l,...d){return typeof l==`string`?typeof d[0]==`string`?this.#n(this.browsetreetemplate,{...d[1],fragment:d[0],path:l}):this.#n(this.browsetreetemplate,{...d[0],path:l}):this.#n(this.browsetemplate,l)}browseFile(l,...d){return typeof d[0]==`string`?this.#n(this.browseblobtemplate,{...d[1],fragment:d[0],path:l}):this.#n(this.browseblobtemplate,{...d[0],path:l})}docs(l){return this.#n(this.docstemplate,l)}bugs(l){return this.#n(this.bugstemplate,l)}https(l){return this.#n(this.httpstemplate,l)}git(l){return this.#n(this.gittemplate,l)}shortcut(l){return this.#n(this.shortcuttemplate,l)}path(l){return this.#n(this.pathtemplate,l)}tarball(l){return this.#n(this.tarballtemplate,{...l,noCommittish:!1})}file(l,d){return this.#n(this.filetemplate,{...d,path:l})}edit(l,d){return this.#n(this.edittemplate,{...d,path:l})}getDefaultRepresentation(){return this.default}toString(l){return this.default&&typeof this[this.default]==`function`?this[this.default](l):this.sshurl(l)}};for(let[l,d]of Object.entries(m))oe.addHost(l,d);d.exports=oe})),require_extract_description=__commonJSMin(((l,d)=>{d.exports=f;function f(l){if(!l||l===`ERROR: No README data found!`)return;l=l.trim().split(`
119
- `);let d=0;for(;l[d]&&l[d].trim().match(/^(#|$)/);)d++;let f=l.length,m=d+1;for(;m<f&&l[m].trim();)m++;return l.slice(d,m).join(` `).trim()}})),require_typos=__commonJSMin(((l,d)=>{d.exports={topLevel:{dependancies:`dependencies`,dependecies:`dependencies`,depdenencies:`dependencies`,devEependencies:`devDependencies`,depends:`dependencies`,"dev-dependencies":`devDependencies`,devDependences:`devDependencies`,devDepenencies:`devDependencies`,devdependencies:`devDependencies`,repostitory:`repository`,repo:`repository`,prefereGlobal:`preferGlobal`,hompage:`homepage`,hampage:`homepage`,autohr:`author`,autor:`author`,contributers:`contributors`,publicationConfig:`publishConfig`,script:`scripts`},bugs:{web:`url`,name:`url`},script:{server:`start`,tests:`test`}}})),require_fixer=__commonJSMin(((l,d)=>{var{URL:f}=__require$1(`node:url`),m=require_valid$1(),te=require_clean(),re=require_validate_npm_package_license(),ie=require_lib$10(),{isBuiltin:ae}=__require$1(`node:module`),oe=[`dependencies`,`devDependencies`,`optionalDependencies`],se=require_extract_description(),ce=require_typos(),le=l=>l.includes(`@`)&&l.indexOf(`@`)<l.lastIndexOf(`.`);d.exports={warn:function(){},fixRepositoryField:function(l){if(l.repositories&&(this.warn(`repositories`),l.repository=l.repositories[0]),!l.repository)return this.warn(`missingRepository`);typeof l.repository==`string`&&(l.repository={type:`git`,url:l.repository});var d=l.repository.url||``;if(d){var f=ie.fromUrl(d);f&&(d=l.repository.url=f.getDefaultRepresentation()===`shortcut`?f.https():f.toString())}d.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn(`brokenGitUrl`,d)},fixTypos:function(l){Object.keys(ce.topLevel).forEach(function(d){Object.prototype.hasOwnProperty.call(l,d)&&this.warn(`typo`,d,ce.topLevel[d])},this)},fixScriptsField:function(l){if(l.scripts){if(typeof l.scripts!=`object`){this.warn(`nonObjectScripts`),delete l.scripts;return}Object.keys(l.scripts).forEach(function(d){typeof l.scripts[d]==`string`?ce.script[d]&&!l.scripts[ce.script[d]]&&this.warn(`typo`,d,ce.script[d],`scripts`):(this.warn(`nonStringScript`),delete l.scripts[d])},this)}},fixFilesField:function(l){var d=l.files;d&&!Array.isArray(d)?(this.warn(`nonArrayFiles`),delete l.files):l.files&&=l.files.filter(function(l){return!l||typeof l!=`string`?(this.warn(`invalidFilename`,l),!1):!0},this)},fixBinField:function(l){if(l.bin&&typeof l.bin==`string`){var d={},f;(f=l.name.match(/^@[^/]+[/](.*)$/))?d[f[1]]=l.bin:d[l.name]=l.bin,l.bin=d}},fixManField:function(l){l.man&&typeof l.man==`string`&&(l.man=[l.man])},fixBundleDependenciesField:function(l){var d=`bundledDependencies`,f=`bundleDependencies`;l[d]&&!l[f]&&(l[f]=l[d],delete l[d]),l[f]&&!Array.isArray(l[f])?(this.warn(`nonArrayBundleDependencies`),delete l[f]):l[f]&&(l[f]=l[f].filter(function(d){return!d||typeof d!=`string`?(this.warn(`nonStringBundleDependency`,d),!1):(l.dependencies||={},Object.prototype.hasOwnProperty.call(l.dependencies,d)||(this.warn(`nonDependencyBundleDependency`,d),l.dependencies[d]=`*`),!0)},this))},fixDependencies:function(l){ve(l,this.warn),ge(l,this.warn),this.fixBundleDependenciesField(l),[`dependencies`,`devDependencies`].forEach(function(d){if(d in l){if(!l[d]||typeof l[d]!=`object`){this.warn(`nonObjectDependencies`,d),delete l[d];return}Object.keys(l[d]).forEach(function(f){var m=l[d][f];typeof m!=`string`&&(this.warn(`nonStringDependency`,f,JSON.stringify(m)),delete l[d][f]);var te=ie.fromUrl(l[d][f]);te&&(l[d][f]=te.toString())},this)}},this)},fixModulesField:function(l){l.modules&&(this.warn(`deprecatedModules`),delete l.modules)},fixKeywordsField:function(l){typeof l.keywords==`string`&&(l.keywords=l.keywords.split(/,\s+/)),l.keywords&&!Array.isArray(l.keywords)?(delete l.keywords,this.warn(`nonArrayKeywords`)):l.keywords&&=l.keywords.filter(function(l){return typeof l!=`string`||!l?(this.warn(`nonStringKeyword`),!1):!0},this)},fixVersionField:function(l,d){var f=!d;if(!l.version)return l.version=``,!0;if(!m(l.version,f))throw Error(`Invalid version: "`+l.version+`"`);return l.version=te(l.version,f),!0},fixPeople:function(l){pe(l,me),pe(l,he)},fixNameField:function(l,d){typeof d==`boolean`?d={strict:d}:d===void 0&&(d={});var f=d.strict;if(!l.name&&!f){l.name=``;return}if(typeof l.name!=`string`)throw Error(`name field must be a string.`);f||(l.name=l.name.trim()),fe(l.name,f,d.allowLegacyCase),ae(l.name)&&this.warn(`conflictingName`,l.name)},fixDescriptionField:function(l){l.description&&typeof l.description!=`string`&&(this.warn(`nonStringDescription`),delete l.description),l.readme&&!l.description&&(l.description=se(l.readme)),l.description===void 0&&delete l.description,l.description||this.warn(`missingDescription`)},fixReadmeField:function(l){l.readme||=(this.warn(`missingReadme`),`ERROR: No README data found!`)},fixBugsField:function(l){if(!l.bugs&&l.repository&&l.repository.url){var d=ie.fromUrl(l.repository.url);d&&d.bugs()&&(l.bugs={url:d.bugs()})}else if(l.bugs){if(typeof l.bugs==`string`)le(l.bugs)?l.bugs={email:l.bugs}:f.canParse(l.bugs)?l.bugs={url:l.bugs}:this.warn(`nonEmailUrlBugsString`);else{ye(l.bugs,this.warn);var m=l.bugs;l.bugs={},m.url&&(f.canParse(m.url)?l.bugs.url=m.url:this.warn(`nonUrlBugsUrlField`)),m.email&&(typeof m.email==`string`&&le(m.email)?l.bugs.email=m.email:this.warn(`nonEmailBugsEmailField`))}!l.bugs.email&&!l.bugs.url&&(delete l.bugs,this.warn(`emptyNormalizedBugs`))}},fixHomepageField:function(l){if(!l.homepage&&l.repository&&l.repository.url){var d=ie.fromUrl(l.repository.url);d&&d.docs()&&(l.homepage=d.docs())}if(l.homepage){if(typeof l.homepage!=`string`)return this.warn(`nonUrlHomepage`),delete l.homepage;f.canParse(l.homepage)||(l.homepage=`http://`+l.homepage)}},fixLicenseField:function(l){let d=l.license||l.licence;if(!d)return this.warn(`missingLicense`);if(typeof d!=`string`||d.length<1||d.trim()===``||!re(d).validForNewPackages)return this.warn(`invalidLicense`)}};function ue(l){if(l.charAt(0)!==`@`)return!1;var d=l.slice(1).split(`/`);return d.length===2?d[0]&&d[1]&&d[0]===encodeURIComponent(d[0])&&d[1]===encodeURIComponent(d[1]):!1}function de(l){return!l.match(/[/@\s+%:]/)&&l===encodeURIComponent(l)}function fe(l,d,f){if(l.charAt(0)===`.`||!(ue(l)||de(l))||d&&!f&&l!==l.toLowerCase()||l.toLowerCase()===`node_modules`||l.toLowerCase()===`favicon.ico`)throw Error(`Invalid name: `+JSON.stringify(l))}function pe(l,d){return l.author&&=d(l.author),[`maintainers`,`contributors`].forEach(function(f){Array.isArray(l[f])&&(l[f]=l[f].map(d))}),l}function me(l){if(typeof l==`string`)return l;var d=l.name||``,f=l.url||l.web,m=f?` (`+f+`)`:``,te=l.email||l.mail;return d+(te?` <`+te+`>`:``)+m}function he(l){if(typeof l!=`string`)return l;var d=l.match(/^([^(<]+)/),f=l.match(/\(([^()]+)\)/),m=l.match(/<([^<>]+)>/),te={};return d&&d[0].trim()&&(te.name=d[0].trim()),m&&(te.email=m[1]),f&&(te.url=f[1]),te}function ge(l){var d=l.optionalDependencies;if(d){var f=l.dependencies||{};Object.keys(d).forEach(function(l){f[l]=d[l]}),l.dependencies=f}}function _e(l,d,f){if(!l)return{};if(typeof l==`string`&&(l=l.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(l))return l;f(`deprecatedArrayDependencies`,d);var m={};return l.filter(function(l){return typeof l==`string`}).forEach(function(l){l=l.trim().split(/(:?[@\s><=])/);var d=l.shift(),f=l.join(``);f=f.trim(),f=f.replace(/^@/,``),m[d]=f}),m}function ve(l,d){oe.forEach(function(f){l[f]&&(l[f]=_e(l[f],f,d))})}function ye(l,d){l&&Object.keys(l).forEach(function(f){ce.bugs[f]&&(d(`typo`,f,ce.bugs[f],`bugs`),l[ce.bugs[f]]=l[f],delete l[f])})}})),require_warning_messages=__commonJSMin(((l,d)=>{d.exports={repositories:`'repositories' (plural) Not supported. Please pick one as the 'repository' field`,missingRepository:`No repository field.`,brokenGitUrl:`Probably broken git url: %s`,nonObjectScripts:`scripts must be an object`,nonStringScript:`script values must be string commands`,nonArrayFiles:`Invalid 'files' member`,invalidFilename:`Invalid filename in 'files' list: %s`,nonArrayBundleDependencies:`Invalid 'bundleDependencies' list. Must be array of package names`,nonStringBundleDependency:`Invalid bundleDependencies member: %s`,nonDependencyBundleDependency:`Non-dependency in bundleDependencies: %s`,nonObjectDependencies:`%s field must be an object`,nonStringDependency:`Invalid dependency: %s %s`,deprecatedArrayDependencies:`specifying %s as array is deprecated`,deprecatedModules:`modules field is deprecated`,nonArrayKeywords:`keywords should be an array of strings`,nonStringKeyword:`keywords should be an array of strings`,conflictingName:`%s is also the name of a node core module.`,nonStringDescription:`'description' field should be a string`,missingDescription:`No description`,missingReadme:`No README data`,missingLicense:`No license field.`,nonEmailUrlBugsString:`Bug string field must be url, email, or {email,url}`,nonUrlBugsUrlField:`bugs.url field must be a string url. Deleted.`,nonEmailBugsEmailField:`bugs.email field must be a string email. Deleted.`,emptyNormalizedBugs:`Normalized value of bugs field is an empty object. Deleted.`,nonUrlHomepage:`homepage field must be a string url. Deleted.`,invalidLicense:`license should be a valid SPDX license expression`,typo:`%s should probably be %s.`}})),require_make_warning=__commonJSMin(((l,d)=>{var f=__require$1(`util`),m=require_warning_messages();d.exports=function(){var l=Array.prototype.slice.call(arguments,0),d=l.shift();if(d===`typo`)return te.apply(null,l);var re=m[d]?m[d]:d+`: '%s'`;return l.unshift(re),f.format.apply(null,l)};function te(l,d,te){return te&&(l=te+`['`+l+`']`,d=te+`['`+d+`']`),f.format(m.typo,l,d)}})),require_normalize=__commonJSMin(((l,d)=>{d.exports=ae;var f=require_fixer();ae.fixer=f;var m=require_make_warning(),te=[`name`,`version`,`description`,`repository`,`modules`,`scripts`,`files`,`bin`,`man`,`bugs`,`keywords`,`readme`,`homepage`,`license`],re=[`dependencies`,`people`,`typos`],ie=te.map(function(l){return oe(l)+`Field`});ie=ie.concat(re);function ae(l,d,te){d===!0&&(d=null,te=!0),te||=!1,(!d||l.private)&&(d=function(){}),l.scripts&&l.scripts.install===`node-gyp rebuild`&&!l.scripts.preinstall&&(l.gypfile=!0),f.warn=function(){d(m.apply(null,arguments))},ie.forEach(function(d){f[`fix`+oe(d)](l,te)}),l._id=l.name+`@`+l.version}function oe(l){return l.charAt(0).toUpperCase()+l.slice(1)}})),import_normalize=__toESM(require_normalize(),1);const execFileOriginal=promisify(execFile);function toPath$1(l){return l instanceof URL?fileURLToPath$1(l):l}const getPackagePath=l=>path.resolve(toPath$1(l)??`.`,`package.json`),_readPackage=(l,d)=>{let f=typeof l==`string`?parseJson(l):l;return d&&(0,import_normalize.default)(f),f};function readPackageSync({cwd:l,normalize:d=!0}={}){return _readPackage(fs.readFileSync(getPackagePath(l),`utf8`),d)}function parsePackage(l,{normalize:d=!0}={}){let f=typeof l==`object`&&!!l&&!Array.isArray(l);if(!f&&typeof l!=`string`)throw TypeError("`packageFile` should be either an `object` or a `string`.");return _readPackage(f?structuredClone(l):l,d)}function readPackageUpSync(l){let d=findUpSync(`package.json`,l);if(d)return{packageJson:readPackageSync({...l,cwd:path.dirname(d)}),path:d}}const defaultColumns=80,defaultRows=24,exec=(l,d,{shell:f,env:m}={})=>execFileSync(l,d,{encoding:`utf8`,stdio:[`ignore`,`pipe`,`ignore`],timeout:500,shell:f,env:m}).trim(),create=(l,d)=>({columns:Number.parseInt(l,10),rows:Number.parseInt(d,10)}),createIfNotDefault=(l,d)=>{let{columns:f,rows:m}=create(l,d);if(!(Number.isNaN(f)||Number.isNaN(m))&&!(f===defaultColumns&&m===defaultRows))return{columns:f,rows:m}},isForegroundProcess=()=>{if(process$1.platform!==`linux`)return!0;try{let l=fs.readFileSync(`/proc/self/stat`,`utf8`),d=l.lastIndexOf(`) `);if(d===-1)return!1;let f=l.slice(d+2).trim().split(/\s+/),m=Number.parseInt(f[2],10),te=Number.parseInt(f[5],10);return Number.isNaN(m)||Number.isNaN(te)||te<=0?!1:m===te}catch{return!1}};function terminalSize(){let{env:l,stdout:d,stderr:f}=process$1;if(d?.columns&&d?.rows)return create(d.columns,d.rows);if(f?.columns&&f?.rows)return create(f.columns,f.rows);if(l.COLUMNS&&l.LINES)return create(l.COLUMNS,l.LINES);let m={columns:defaultColumns,rows:defaultRows};return process$1.platform===`win32`?tput()??m:process$1.platform===`darwin`?devTty()??tput()??m:devTty()??tput()??resize()??m}const devTty=()=>{try{let l=process$1.platform===`darwin`?fs.constants.O_EVTONLY|fs.constants.O_NONBLOCK:fs.constants.O_NONBLOCK,{columns:d,rows:f}=tty.WriteStream(fs.openSync(`/dev/tty`,l));return{columns:d,rows:f}}catch{}},tput=()=>{try{let l=exec(`tput`,[`cols`],{env:{TERM:`dumb`,...process$1.env}}),d=exec(`tput`,[`lines`],{env:{TERM:`dumb`,...process$1.env}});if(l&&d)return createIfNotDefault(l,d)}catch{}},resize=()=>{try{if(!isForegroundProcess())return;let l=exec(`resize`,[`-u`]).match(/\d+/g);if(l.length===2)return createIfNotDefault(l[0],l[1])}catch{}};let homeDirectory,currentUser;function untildify(l){if(typeof l!=`string`)throw TypeError(`Expected a string, got ${typeof l}`);if(homeDirectory===void 0&&(homeDirectory=os.homedir()),homeDirectory&&/^~(?=$|\/|\\)/.test(l))return l.replace(/^~/,homeDirectory);let d=l.match(/^~([^/\\]+)(.*)/);if(d&&(currentUser===void 0&&(currentUser=os.userInfo().username),currentUser)){let l=d[1],f=d[2];if(l===currentUser)return homeDirectory+f}return l}var require_enums=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Frequency=l.KeepLogFiles=void 0,(function(l){l[l.days=1]=`days`,l[l.fileCount=2]=`fileCount`})(l.KeepLogFiles||={}),(function(l){l[l.daily=1]=`daily`,l[l.minutes=2]=`minutes`,l[l.hours=3]=`hours`,l[l.date=4]=`date`,l[l.none=5]=`none`})(l.Frequency||={})})),require_DefaultOptions=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0});let d=require_enums();l.default=class{static fileStreamRotatorOptions(l){return Object.assign(Object.assign({},{filename:``,verbose:!1,end_stream:!1,utc:!1,create_symlink:!1,symlink_name:`current.log`}),l)}static fileOptions(l){return Object.assign(Object.assign({},{flags:`a`}),l)}static auditSettings(l){let f={keepSettings:{type:d.KeepLogFiles.fileCount,amount:10},auditFilename:`audit.json`,hashType:`md5`,extension:``,files:[]};return Object.assign(Object.assign({},f),l)}static rotationSettings(l){let f={filename:``,frequency:d.Frequency.none,utc:!1};return Object.assign(Object.assign({},f),l)}static extractParam(l,d=!0){let f=l.toString().match(/(\w)$/),m={number:0};f?.length==2&&(m.letter=f[1].toLowerCase());let te=l.toString().match(/^(\d+)/);return te?.length==2&&(m.number=Number(te[1])),m}}})),require_helper=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Logger=l.makeDirectory=void 0;let d=__require$1(`fs`),f=__require$1(`path`);function m(l){if(l.trim()!==``){var m=f.dirname(l);try{d.mkdirSync(m,{recursive:!0})}catch(l){if(l.code!==`EEXIST`)throw l}}}l.makeDirectory=m,l.Logger=class l{constructor(){this.isVerbose=!1,this.allowDebug=!1}static getInstance(d,f){return l.instance||(l.instance=new l,l.instance.isVerbose=d??!1,l.instance.allowDebug=f??!1),l.instance}static verbose(...d){l.getInstance().isVerbose&&console.log.apply(null,[new Date,`[FileStreamRotator:VERBOSE]`,...d])}static log(...l){console.log.apply(null,[new Date,`[FileStreamRotator]`,...l])}static debug(...d){l.getInstance().allowDebug&&console.debug.apply(null,[new Date,`[FileStreamRotator:DEBUG]`,...d])}}})),require_Rotator=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0});let d=__require$1(`fs`),f=require_enums(),m=require_helper();l.default=class l{constructor(l,d){var te;switch(this.currentSize=0,this.lastDate=``,this.fileIndx=0,this.settings=l,this.settings.frequency){case f.Frequency.hours:this.settings.amount&&this.settings.amount<13?this.settings.amount&&this.settings.amount>0||(this.settings.amount=1):this.settings.amount=12,this.isFormatValidForHour()||(m.Logger.log(`Date format not suitable for X hours rotation. Changing date format to 'YMDHm'`),this.settings.format=`YMDHm`);break;case f.Frequency.minutes:this.settings.amount&&this.settings.amount<31?this.settings.amount&&this.settings.amount>0||(this.settings.amount=1):this.settings.amount=30,this.isFormatValidForMinutes()||(this.settings.format=`YMDHm`,m.Logger.log(`Date format not suitable for X minutes rotation. Changing date format to 'YMDHm'`));break;case f.Frequency.daily:this.isFormatValidForDaily()||(this.settings.format=`YMD`,m.Logger.log(`Date format not suitable for daily rotation. Changing date format to 'YMD'`));break}if(this.settings.frequency!==f.Frequency.none&&!this.settings.filename.match(`%DATE%`)&&(this.settings.filename+=`.%DATE%`,m.Logger.log(`Appending date to the end of the filename`)),this.lastDate=this.getDateString(),this.settings.maxSize&&d){let l=new Date(d.date),f=this.settings.extension??``;if(m.Logger.debug(this.getDateString(l)==this.getDateString(new Date),this.getDateString(l),this.getDateString(new Date)),this.getDateString(l)==this.getDateString(new Date)){let te=d.name.match(RegExp(`(\\d+)`+f.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)));te&&(this.fileIndx=Number(te[1]));var re=this.getSizeForFile(this.getNewFilename());re&&(this.currentSize=re),this.lastDate=this.getDateString(l),m.Logger.debug(`LOADED LAST ENTRY`,this.currentSize,this.lastDate,this.fileIndx)}else{var re=this.getSizeForFile(this.getNewFilename());re&&(this.currentSize=re),m.Logger.debug(`CURRENT FILE:`,this.getNewFilename(),this.currentSize)}}}getSizeForFile(l){try{if(d.existsSync(l)){var f=d.statSync(this.getNewFilename());if(f)return f.size}}catch{return}}hasMaxSizeReached(){return this.settings.maxSize?this.currentSize>this.settings.maxSize:!1}shouldRotate(){let l=this.hasMaxSizeReached();switch(this.settings.frequency){case f.Frequency.none:return l;case f.Frequency.hours:case f.Frequency.minutes:case f.Frequency.date:case f.Frequency.daily:default:let d=this.getDateString();return this.lastDate==d?l:!0}}isFormatValidForDaily(){let l=new Date(2022,2,20,1,2,3),d=new Date(2022,2,20,23,55,45),f=new Date(2022,2,21,2,55,45);return this.getDateString(l)===this.getDateString(d)&&this.getDateString(l)!==this.getDateString(f)}isFormatValidForHour(){if(!this.settings.amount||this.settings.frequency!=f.Frequency.hours)return!1;let l=new Date(2022,2,20,1,2,3),d=new Date(2022,2,20,2+this.settings.amount,55,45);return this.getDateString(l)!==this.getDateString(d)}isFormatValidForMinutes(){if(!this.settings.amount||this.settings.frequency!=f.Frequency.minutes)return!1;let l=new Date(2022,2,20,1,2,3),d=new Date(2022,2,20,1,2+this.settings.amount,45);return this.getDateString(l)!==this.getDateString(d)}getDateString(d){let m=d||new Date,te=l.getDateComponents(m,this.settings.utc),re=this.settings.format;if(re){switch(this.settings.frequency){case f.Frequency.hours:this.settings.amount&&(te.hour=Math.floor(te.hour/this.settings.amount)*this.settings.amount,te.minute=0,te.second=0);case f.Frequency.minutes:this.settings.amount&&(te.minute=Math.floor(te.minute/this.settings.amount)*this.settings.amount,te.second=0)}return re?.replace(/D+/,te.day.toString().padStart(2,`0`)).replace(/M+/,te.month.toString().padStart(2,`0`)).replace(/Y+/,te.year.toString()).replace(/H+/,te.hour.toString().padStart(2,`0`)).replace(/m+/,te.minute.toString().padStart(2,`0`)).replace(/s+/,te.second.toString().padStart(2,`0`)).replace(/A+/,te.hour>11?`PM`:`AM`)}return``}getFilename(l,d){return l.replace(`%DATE%`,this.lastDate)+(this.settings.maxSize||this.fileIndx>0?`.`+this.fileIndx:``)+(d||``)}getNewFilename(){return this.getFilename(this.settings.filename,this.settings.extension)}addBytes(l){this.currentSize+=l}rotate(l=!1){return l?(this.fileIndx+=1,this.currentSize=0,this.lastDate=this.getDateString()):this.shouldRotate()&&(this.hasMaxSizeReached()?this.fileIndx+=1:this.fileIndx=0,this.currentSize=0,this.lastDate=this.getDateString()),this.getNewFilename()}static getDateComponents(l,d){return d?{day:l.getUTCDate(),month:l.getUTCMonth()+1,year:l.getUTCFullYear(),hour:l.getUTCHours(),minute:l.getUTCMinutes(),second:l.getUTCSeconds(),utc:d,source:l}:{day:l.getDate(),month:l.getMonth()+1,year:l.getFullYear(),hour:l.getHours(),minute:l.getMinutes(),second:l.getSeconds(),utc:d,source:l}}static createDate(l,d){return d&&new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second)),new Date(l.year,l.month,l.day,l.hour,l.minute,l.second)}}})),require_AuditManager=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0});let d=__require$1(`fs`),f=__require$1(`path`),m=require_enums(),te=require_helper(),re=__require$1(`crypto`);l.default=class{constructor(l,d){this.config=l,this.emitter=d,this.loadLog()}loadLog(){var l;if(!this.config.keepSettings||this.config.keepSettings?.amount==0||!this.config.auditFilename||this.config.auditFilename==``){te.Logger.verbose(`no existing audit settings found`,this.config);return}try{let l=f.resolve(this.config.auditFilename),m=JSON.parse(d.readFileSync(l,{encoding:`utf-8`}));this.config.files=m.files}catch(l){if(l.code!==`ENOENT`){te.Logger.log(`Failed to load config file`,l);return}}}writeLog(){if(this.config.auditFilename)try{(0,te.makeDirectory)(this.config.auditFilename),d.writeFileSync(this.config.auditFilename,JSON.stringify(this.config,null,4))}catch(l){te.Logger.verbose(`ERROR: Failed to store log audit`,l)}}addLog(l){var d;if(!this.config.keepSettings||this.config.keepSettings?.amount==0||!this.config.auditFilename||this.config.auditFilename==``){te.Logger.verbose(`audit log missing`);return}if(this.config.files.findIndex(d=>d.name===l)!==-1){te.Logger.debug(`file already in the log`,l);return}var f=Date.now();if(this.config.files.push({date:f,name:l,hash:re.createHash(this.config.hashType).update(l+`LOG_FILE`+f).digest(`hex`)}),te.Logger.debug(`added file ${l} to log`),this.config.keepSettings&&this.config.keepSettings.amount){if(this.config.keepSettings.type==m.KeepLogFiles.days){let l=Date.now()-86400*this.config.keepSettings.amount*1e3,d=this.config.files.filter(d=>{if(d.date>=l)return!0;this.removeLog(d)});this.config.files=d}else if(this.config.files.length>this.config.keepSettings.amount){var ie=this.config.files.splice(-this.config.keepSettings.amount);this.config.files.length>0&&this.config.files.filter(l=>(this.removeLog(l),!1)),this.config.files=ie}}this.writeLog()}removeLog(l){if(l.hash===re.createHash(this.config.hashType).update(l.name+`LOG_FILE`+l.date).digest(`hex`))try{d.existsSync(l.name)&&(te.Logger.debug(`removing log file`,l.name),d.unlinkSync(l.name),this.emitter.emit(`logRemoved`,l.name))}catch{te.Logger.verbose(`Could not remove old log file: `,l.name)}else te.Logger.debug(`incorrect hash`,l.name,l.hash,re.createHash(this.config.hashType).update(l.name+`LOG_FILE`+l.date).digest(`hex`))}}})),require_FileStreamRotator=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0});let d=__require$1(`node:stream`),f=__require$1(`fs`),m=__require$1(`path`),te=require_enums(),re=require_DefaultOptions(),ie=require_Rotator(),ae=require_AuditManager(),oe=require_helper();l.default=class l extends d.EventEmitter{constructor(l,d=!1){var f,m;super(),this.config={},this.config=this.parseOptions(l),oe.Logger.getInstance(l.verbose,d),this.auditManager=new ae.default(this.config.auditSettings??re.default.auditSettings({}),this);let te=this.auditManager.config.files.slice(-1).shift();this.rotator=new ie.default(this.config.rotationSettings??re.default.rotationSettings({}),te),this.rotate()}static getStream(d){return new l(d)}parseOptions(l){var d,f,m,ae;let oe={};oe.options=re.default.fileStreamRotatorOptions(l),oe.fileOptions=re.default.fileOptions(l.file_options??{});let se=re.default.auditSettings({});if(l.audit_file&&(se.auditFilename=l.audit_file),l.audit_hash_type&&(se.hashType=l.audit_hash_type),l.extension&&(se.extension=l.extension),l.max_logs){let d=re.default.extractParam(l.max_logs);se.keepSettings={type:d.letter?.toLowerCase()==`d`?te.KeepLogFiles.days:te.KeepLogFiles.fileCount,amount:d.number}}switch(oe.auditSettings=se,oe.rotationSettings=re.default.rotationSettings({filename:l.filename,extension:l.extension}),l.date_format&&!l.frequency?oe.rotationSettings.frequency=te.Frequency.date:oe.rotationSettings.frequency=te.Frequency.none,l.date_format&&(oe.rotationSettings.format=l.date_format),oe.rotationSettings.utc=l.utc??!1,l.frequency){case`daily`:oe.rotationSettings.frequency=te.Frequency.daily;break;case`custom`:case`date`:oe.rotationSettings.frequency=te.Frequency.date;break;case`test`:oe.rotationSettings.frequency=te.Frequency.minutes,oe.rotationSettings.amount=1;break;default:if(l.frequency){let d=re.default.extractParam(l.frequency);d.letter?.match(/^([mh])$/)&&(oe.rotationSettings.frequency=d.letter==`h`?te.Frequency.hours:te.Frequency.minutes,oe.rotationSettings.amount=d.number)}}if(l.size){let d=re.default.extractParam(l.size);switch(d.letter){case`k`:oe.rotationSettings.maxSize=d.number*1024;break;case`m`:oe.rotationSettings.maxSize=d.number*1024*1024;break;case`g`:oe.rotationSettings.maxSize=d.number*1024*1024*1024;break}}return this.rotator=new ie.default(oe.rotationSettings),this.rotator.getNewFilename(),oe}rotate(l=!1){var d;let f=this.currentFile;this.rotator.rotate(l),this.currentFile=this.rotator.getNewFilename(),this.currentFile!=f&&(this.fs&&(this.config.options?.end_stream===!0?this.fs.end():this.fs.destroy()),f&&this.auditManager.addLog(f),this.createNewLog(this.currentFile),this.emit(`new`,this.currentFile),this.emit(`rotate`,f,this.currentFile,l))}createNewLog(l){var d;(0,oe.makeDirectory)(l),this.auditManager.addLog(l);let m={};this.config.fileOptions&&(m=this.config.fileOptions),this.fs=f.createWriteStream(l,m),this.bubbleEvents(this.fs,l),this.config.options?.create_symlink&&this.createCurrentSymLink(l)}write(l,d){this.fs&&(this.rotator.shouldRotate()&&this.rotate(),this.fs.write(l,d??`utf8`),this.rotator.addBytes(Buffer.byteLength(l,d)),this.rotator.hasMaxSizeReached()&&this.rotate())}end(l){this.fs&&=(this.fs.end(l),void 0)}bubbleEvents(l,d){l.on(`close`,()=>{this.emit(`close`)}),l.on(`finish`,()=>{this.emit(`finish`)}),l.on(`error`,l=>{this.emit(`error`,l)}),l.on(`open`,l=>{this.emit(`open`,d)})}createCurrentSymLink(l){var d,te;if(!l)return;let re=this.config.options?.symlink_name??`current.log`,ie=m.dirname(l),ae=m.basename(l),se=ie+m.sep+re;try{if(f.existsSync(se)){if(f.lstatSync(se).isSymbolicLink()){f.unlinkSync(se),f.symlinkSync(ae,se);return}oe.Logger.verbose(`Could not create symlink file as file with the same name exists: `,se)}else f.symlinkSync(ae,se)}catch(l){oe.Logger.verbose(`[Could not create symlink file: `,se,` -> `,ae),oe.Logger.debug(`error creating sym link`,se,l)}}test(){return{config:this.config,rotator:this.rotator}}}})),require_lib$9=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.getStream=void 0;let d=require_FileStreamRotator();function f(l){return new d.default(l)}l.getStream=f})),import_lib$3=__toESM(require_lib$9(),1),LogFileRotationTransport=class l extends LoggerlessTransport{static activeFilenames=new Set;stream;fieldNames;delimiter;timestampFn;levelMap;compressOnRotate;isCompressing;filename;staticData;batchEnabled;batchSize;batchTimeout;batchQueue;batchTimer;isDisposing;callbacks;frequency;verbose;dateFormat;size;maxLogs;auditFile;extension;createSymlink;symlinkName;utc;auditHashType;fileOptions;fileMode;getRotatorOptions(){return{filename:this.filename,frequency:this.frequency,verbose:this.verbose??!1,date_format:this.dateFormat,size:this.size,max_logs:this.maxLogs?.toString(),audit_file:this.auditFile||void 0,end_stream:!0,extension:this.extension,create_symlink:this.createSymlink,symlink_name:this.symlinkName,utc:this.utc,audit_hash_type:this.auditHashType,file_options:{flags:`a`,encoding:`utf8`,mode:this.fileMode??416,...this.fileOptions}}}constructor(d){if(super(d),l.activeFilenames.has(d.filename))throw Error(`LogFileRotationTransport: Filename "${d.filename}" is already in use by another instance. To use the same file for multiple loggers, share the same transport instance between them.`);if(this.filename=d.filename,l.activeFilenames.add(this.filename),this.fieldNames={level:d.fieldNames?.level??`level`,message:d.fieldNames?.message??`message`,timestamp:d.fieldNames?.timestamp??`timestamp`},this.delimiter=d.delimiter??`
117
+ `);return f.message&&!le&&(de=`${` `.repeat(ue+1)}${f.message}\n${de}`),m?ie.reset(de):de}l.codeFrameColumns=_e})),import_lib$4=require_lib$10();const getOffsets=({oneBased:l,oneBasedLine:d=l,oneBasedColumn:f=l}={})=>[+!!d,+!!f];function getPosition(l,d,f){let m=d===0?-1:l.lastIndexOf(`
118
+ `,d-1),[te,re]=getOffsets(f);return{line:m===-1?te:l.slice(0,m+1).match(/\n/g).length+te,column:d-m-1+re}}function indexToPosition(l,d,f){if(typeof l!=`string`)throw TypeError(`Text parameter should be a string`);if(!Number.isInteger(d))throw TypeError(`Index parameter should be an integer`);if(d<0||d>l.length)throw RangeError(`Index out of bounds`);return getPosition(l,d,f)}const getCodePoint=l=>`\\u{${l.codePointAt(0).toString(16)}}`;var JSONError=class l extends Error{name=`JSONError`;fileName;#e;#t;#n;#r;#i;constructor(d){if(typeof d==`string`)super(),this.#n=d;else{let{jsonParseError:l,fileName:f,input:m}=d;super(void 0,{cause:l}),this.#e=m,this.#t=l,this.fileName=f}Error.captureStackTrace?.(this,l)}get message(){this.#n??=`${addCodePointToUnexpectedToken(this.#t.message)}${this.#e===``?` while parsing empty string`:``}`;let{codeFrame:l}=this;return`${this.#n}${this.fileName?` in ${this.fileName}`:``}${l?`\n\n${l}\n`:``}`}set message(l){this.#n=l}#a(l){if(!this.#t)return;let d=this.#e,f=getErrorLocation(d,this.#t.message);if(f)return(0,import_lib$4.codeFrameColumns)(d,{start:f},{highlightCode:l})}get codeFrame(){return this.#r??=this.#a(!0),this.#r}get rawCodeFrame(){return this.#i??=this.#a(!1),this.#i}};const getErrorLocation=(l,d)=>{let f=d.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!f)return;let{index:m,line:te,column:re}=f.groups;return te&&re?{line:Number(te),column:Number(re)}:indexToPosition(l,Number(m),{oneBased:!0})},addCodePointToUnexpectedToken=l=>l.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(l,d,f)=>`"${f}"(${getCodePoint(f)})`);function parseJson(l,d,f){typeof d==`string`&&(f=d,d=void 0);try{return JSON.parse(l,d)}catch(d){throw new JSONError({jsonParseError:d,fileName:f,input:l})}}var require_debug=__commonJSMin(((l,d)=>{d.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...l)=>console.error(`SEMVER`,...l):()=>{}})),require_constants$5=__commonJSMin(((l,d)=>{let f=`2.0.0`,m=256,te=2**53-1||9007199254740991,re=16,ie=250;d.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:te,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),require_re=__commonJSMin(((l,d)=>{let{MAX_SAFE_COMPONENT_LENGTH:f,MAX_SAFE_BUILD_LENGTH:m,MAX_LENGTH:te}=require_constants$5(),re=require_debug();l=d.exports={};let ie=l.re=[],ae=l.safeRe=[],oe=l.src=[],se=l.safeSrc=[],ce=l.t={},le=0,ue=`[a-zA-Z0-9-]`,de=[[`\\s`,1],[`\\d`,te],[ue,m]],fe=l=>{for(let[d,f]of de)l=l.split(`${d}*`).join(`${d}{0,${f}}`).split(`${d}+`).join(`${d}{1,${f}}`);return l},pe=(l,d,f)=>{let m=fe(d),te=le++;re(l,te,d),ce[l]=te,oe[te]=d,se[te]=m,ie[te]=new RegExp(d,f?`g`:void 0),ae[te]=new RegExp(m,f?`g`:void 0)};pe(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),pe(`NUMERICIDENTIFIERLOOSE`,`\\d+`),pe(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${ue}*`),pe(`MAINVERSION`,`(${oe[ce.NUMERICIDENTIFIER]})\\.(${oe[ce.NUMERICIDENTIFIER]})\\.(${oe[ce.NUMERICIDENTIFIER]})`),pe(`MAINVERSIONLOOSE`,`(${oe[ce.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ce.NUMERICIDENTIFIERLOOSE]})\\.(${oe[ce.NUMERICIDENTIFIERLOOSE]})`),pe(`PRERELEASEIDENTIFIER`,`(?:${oe[ce.NONNUMERICIDENTIFIER]}|${oe[ce.NUMERICIDENTIFIER]})`),pe(`PRERELEASEIDENTIFIERLOOSE`,`(?:${oe[ce.NONNUMERICIDENTIFIER]}|${oe[ce.NUMERICIDENTIFIERLOOSE]})`),pe(`PRERELEASE`,`(?:-(${oe[ce.PRERELEASEIDENTIFIER]}(?:\\.${oe[ce.PRERELEASEIDENTIFIER]})*))`),pe(`PRERELEASELOOSE`,`(?:-?(${oe[ce.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${oe[ce.PRERELEASEIDENTIFIERLOOSE]})*))`),pe(`BUILDIDENTIFIER`,`${ue}+`),pe(`BUILD`,`(?:\\+(${oe[ce.BUILDIDENTIFIER]}(?:\\.${oe[ce.BUILDIDENTIFIER]})*))`),pe(`FULLPLAIN`,`v?${oe[ce.MAINVERSION]}${oe[ce.PRERELEASE]}?${oe[ce.BUILD]}?`),pe(`FULL`,`^${oe[ce.FULLPLAIN]}$`),pe(`LOOSEPLAIN`,`[v=\\s]*${oe[ce.MAINVERSIONLOOSE]}${oe[ce.PRERELEASELOOSE]}?${oe[ce.BUILD]}?`),pe(`LOOSE`,`^${oe[ce.LOOSEPLAIN]}$`),pe(`GTLT`,`((?:<|>)?=?)`),pe(`XRANGEIDENTIFIERLOOSE`,`${oe[ce.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),pe(`XRANGEIDENTIFIER`,`${oe[ce.NUMERICIDENTIFIER]}|x|X|\\*`),pe(`XRANGEPLAIN`,`[v=\\s]*(${oe[ce.XRANGEIDENTIFIER]})(?:\\.(${oe[ce.XRANGEIDENTIFIER]})(?:\\.(${oe[ce.XRANGEIDENTIFIER]})(?:${oe[ce.PRERELEASE]})?${oe[ce.BUILD]}?)?)?`),pe(`XRANGEPLAINLOOSE`,`[v=\\s]*(${oe[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ce.XRANGEIDENTIFIERLOOSE]})(?:\\.(${oe[ce.XRANGEIDENTIFIERLOOSE]})(?:${oe[ce.PRERELEASELOOSE]})?${oe[ce.BUILD]}?)?)?`),pe(`XRANGE`,`^${oe[ce.GTLT]}\\s*${oe[ce.XRANGEPLAIN]}$`),pe(`XRANGELOOSE`,`^${oe[ce.GTLT]}\\s*${oe[ce.XRANGEPLAINLOOSE]}$`),pe(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${f}})(?:\\.(\\d{1,${f}}))?(?:\\.(\\d{1,${f}}))?`),pe(`COERCE`,`${oe[ce.COERCEPLAIN]}(?:$|[^\\d])`),pe(`COERCEFULL`,oe[ce.COERCEPLAIN]+`(?:${oe[ce.PRERELEASE]})?(?:${oe[ce.BUILD]})?(?:$|[^\\d])`),pe(`COERCERTL`,oe[ce.COERCE],!0),pe(`COERCERTLFULL`,oe[ce.COERCEFULL],!0),pe(`LONETILDE`,`(?:~>?)`),pe(`TILDETRIM`,`(\\s*)${oe[ce.LONETILDE]}\\s+`,!0),l.tildeTrimReplace=`$1~`,pe(`TILDE`,`^${oe[ce.LONETILDE]}${oe[ce.XRANGEPLAIN]}$`),pe(`TILDELOOSE`,`^${oe[ce.LONETILDE]}${oe[ce.XRANGEPLAINLOOSE]}$`),pe(`LONECARET`,`(?:\\^)`),pe(`CARETTRIM`,`(\\s*)${oe[ce.LONECARET]}\\s+`,!0),l.caretTrimReplace=`$1^`,pe(`CARET`,`^${oe[ce.LONECARET]}${oe[ce.XRANGEPLAIN]}$`),pe(`CARETLOOSE`,`^${oe[ce.LONECARET]}${oe[ce.XRANGEPLAINLOOSE]}$`),pe(`COMPARATORLOOSE`,`^${oe[ce.GTLT]}\\s*(${oe[ce.LOOSEPLAIN]})$|^$`),pe(`COMPARATOR`,`^${oe[ce.GTLT]}\\s*(${oe[ce.FULLPLAIN]})$|^$`),pe(`COMPARATORTRIM`,`(\\s*)${oe[ce.GTLT]}\\s*(${oe[ce.LOOSEPLAIN]}|${oe[ce.XRANGEPLAIN]})`,!0),l.comparatorTrimReplace=`$1$2$3`,pe(`HYPHENRANGE`,`^\\s*(${oe[ce.XRANGEPLAIN]})\\s+-\\s+(${oe[ce.XRANGEPLAIN]})\\s*$`),pe(`HYPHENRANGELOOSE`,`^\\s*(${oe[ce.XRANGEPLAINLOOSE]})\\s+-\\s+(${oe[ce.XRANGEPLAINLOOSE]})\\s*$`),pe(`STAR`,`(<|>)?=?\\s*\\*`),pe(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),pe(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),require_parse_options=__commonJSMin(((l,d)=>{let f=Object.freeze({loose:!0}),m=Object.freeze({});d.exports=l=>l?typeof l==`object`?l:f:m})),require_identifiers=__commonJSMin(((l,d)=>{let f=/^[0-9]+$/,m=(l,d)=>{if(typeof l==`number`&&typeof d==`number`)return l===d?0:l<d?-1:1;let m=f.test(l),te=f.test(d);return m&&te&&(l=+l,d=+d),l===d?0:m&&!te?-1:te&&!m?1:l<d?-1:1};d.exports={compareIdentifiers:m,rcompareIdentifiers:(l,d)=>m(d,l)}})),require_semver$1=__commonJSMin(((l,d)=>{let f=require_debug(),{MAX_LENGTH:m,MAX_SAFE_INTEGER:te}=require_constants$5(),{safeRe:re,t:ie}=require_re(),ae=require_parse_options(),{compareIdentifiers:oe}=require_identifiers(),se=(l,d)=>{let f=d.split(`.`);if(f.length>l.length)return!1;for(let d=0;d<f.length;d++)if(oe(l[d],f[d])!==0)return!1;return!0};d.exports=class l{constructor(d,oe){if(oe=ae(oe),d instanceof l){if(d.loose===!!oe.loose&&d.includePrerelease===!!oe.includePrerelease)return d;d=d.version}else if(typeof d!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof d}".`);if(d.length>m)throw TypeError(`version is longer than ${m} characters`);f(`SemVer`,d,oe),this.options=oe,this.loose=!!oe.loose,this.includePrerelease=!!oe.includePrerelease;let se=d.trim().match(oe.loose?re[ie.LOOSE]:re[ie.FULL]);if(!se)throw TypeError(`Invalid Version: ${d}`);if(this.raw=d,this.major=+se[1],this.minor=+se[2],this.patch=+se[3],this.major>te||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>te||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>te||this.patch<0)throw TypeError(`Invalid patch version`);se[4]?this.prerelease=se[4].split(`.`).map(l=>{if(/^[0-9]+$/.test(l)){let d=+l;if(d>=0&&d<te)return d}return l}):this.prerelease=[],this.build=se[5]?se[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(d){if(f(`SemVer.compare`,this.version,this.options,d),!(d instanceof l)){if(typeof d==`string`&&d===this.version)return 0;d=new l(d,this.options)}return d.version===this.version?0:this.compareMain(d)||this.comparePre(d)}compareMain(d){return d instanceof l||(d=new l(d,this.options)),this.major<d.major?-1:this.major>d.major?1:this.minor<d.minor?-1:this.minor>d.minor?1:this.patch<d.patch?-1:+(this.patch>d.patch)}comparePre(d){if(d instanceof l||(d=new l(d,this.options)),this.prerelease.length&&!d.prerelease.length)return-1;if(!this.prerelease.length&&d.prerelease.length)return 1;if(!this.prerelease.length&&!d.prerelease.length)return 0;let m=0;do{let l=this.prerelease[m],te=d.prerelease[m];if(f(`prerelease compare`,m,l,te),l===void 0&&te===void 0)return 0;if(te===void 0)return 1;if(l===void 0)return-1;if(l===te)continue;return oe(l,te)}while(++m)}compareBuild(d){d instanceof l||(d=new l(d,this.options));let m=0;do{let l=this.build[m],te=d.build[m];if(f(`build compare`,m,l,te),l===void 0&&te===void 0)return 0;if(te===void 0)return 1;if(l===void 0)return-1;if(l===te)continue;return oe(l,te)}while(++m)}inc(l,d,f){if(l.startsWith(`pre`)){if(!d&&f===!1)throw Error(`invalid increment argument: identifier is empty`);if(d){let l=`-${d}`.match(this.options.loose?re[ie.PRERELEASELOOSE]:re[ie.PRERELEASE]);if(!l||l[1]!==d)throw Error(`invalid identifier: ${d}`)}}switch(l){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,d,f);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,d,f);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,d,f),this.inc(`pre`,d,f);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,d,f),this.inc(`pre`,d,f);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let l=+!!Number(f);if(this.prerelease.length===0)this.prerelease=[l];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]==`number`&&(this.prerelease[m]++,m=-2);if(m===-1){if(d===this.prerelease.join(`.`)&&f===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(l)}}if(d){let m=[d,l];if(f===!1&&(m=[d]),se(this.prerelease,d)){let l=this.prerelease[d.split(`.`).length];isNaN(l)&&(this.prerelease=m)}else this.prerelease=m}break}default:throw Error(`invalid increment argument: ${l}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),require_parse$5=__commonJSMin(((l,d)=>{let f=require_semver$1();d.exports=(l,d,m=!1)=>{if(l instanceof f)return l;try{return new f(l,d)}catch(l){if(!m)return null;throw l}}})),require_valid$1=__commonJSMin(((l,d)=>{let f=require_parse$5();d.exports=(l,d)=>{let m=f(l,d);return m?m.version:null}})),require_clean=__commonJSMin(((l,d)=>{let f=require_parse$5();d.exports=(l,d)=>{let m=f(l.trim().replace(/^[=v]+/,``),d);return m?m.version:null}})),require_spdx_license_ids=__commonJSMin(((l,d)=>{d.exports=`0BSD,3D-Slicer-1.0,AAL,ADSL,AFL-1.1,AFL-1.2,AFL-2.0,AFL-2.1,AFL-3.0,AGPL-1.0-only,AGPL-1.0-or-later,AGPL-3.0-only,AGPL-3.0-or-later,ALGLIB-Documentation,AMD-newlib,AMDPLPA,AML,AML-glslang,AMPAS,ANTLR-PD,ANTLR-PD-fallback,APAFML,APL-1.0,APSL-1.0,APSL-1.1,APSL-1.2,APSL-2.0,ASWF-Digital-Assets-1.0,ASWF-Digital-Assets-1.1,Abstyles,AdaCore-doc,Adobe-2006,Adobe-Display-PostScript,Adobe-Glyph,Adobe-Utopia,Advanced-Cryptics-Dictionary,Afmparse,Aladdin,Apache-1.0,Apache-1.1,Apache-2.0,App-s2p,Arphic-1999,Artistic-1.0,Artistic-1.0-Perl,Artistic-1.0-cl8,Artistic-2.0,Artistic-dist,Aspell-RU,BOLA-1.1,BSD-1-Clause,BSD-2-Clause,BSD-2-Clause-Darwin,BSD-2-Clause-Patent,BSD-2-Clause-Views,BSD-2-Clause-first-lines,BSD-2-Clause-pkgconf-disclaimer,BSD-3-Clause,BSD-3-Clause-Attribution,BSD-3-Clause-Clear,BSD-3-Clause-HP,BSD-3-Clause-LBNL,BSD-3-Clause-Modification,BSD-3-Clause-No-Military-License,BSD-3-Clause-No-Nuclear-License,BSD-3-Clause-No-Nuclear-License-2014,BSD-3-Clause-No-Nuclear-Warranty,BSD-3-Clause-Open-MPI,BSD-3-Clause-Sun,BSD-3-Clause-Tso,BSD-3-Clause-acpica,BSD-3-Clause-flex,BSD-4-Clause,BSD-4-Clause-Shortened,BSD-4-Clause-UC,BSD-4.3RENO,BSD-4.3TAHOE,BSD-Advertising-Acknowledgement,BSD-Attribution-HPND-disclaimer,BSD-Inferno-Nettverk,BSD-Mark-Modifications,BSD-Protection,BSD-Source-Code,BSD-Source-beginning-file,BSD-Systemics,BSD-Systemics-W3Works,BSL-1.0,BUSL-1.1,Baekmuk,Bahyph,Barr,Beerware,BitTorrent-1.0,BitTorrent-1.1,Bitstream-Charter,Bitstream-Vera,BlueOak-1.0.0,Boehm-GC,Boehm-GC-without-fee,Borceux,Brian-Gladman-2-Clause,Brian-Gladman-3-Clause,Buddy,C-UDA-1.0,CAL-1.0,CAL-1.0-Combined-Work-Exception,CAPEC-tou,CATOSL-1.1,CC-BY-1.0,CC-BY-2.0,CC-BY-2.5,CC-BY-2.5-AU,CC-BY-3.0,CC-BY-3.0-AT,CC-BY-3.0-AU,CC-BY-3.0-DE,CC-BY-3.0-IGO,CC-BY-3.0-NL,CC-BY-3.0-US,CC-BY-4.0,CC-BY-NC-1.0,CC-BY-NC-2.0,CC-BY-NC-2.5,CC-BY-NC-3.0,CC-BY-NC-3.0-DE,CC-BY-NC-4.0,CC-BY-NC-ND-1.0,CC-BY-NC-ND-2.0,CC-BY-NC-ND-2.5,CC-BY-NC-ND-3.0,CC-BY-NC-ND-3.0-DE,CC-BY-NC-ND-3.0-IGO,CC-BY-NC-ND-4.0,CC-BY-NC-SA-1.0,CC-BY-NC-SA-2.0,CC-BY-NC-SA-2.0-DE,CC-BY-NC-SA-2.0-FR,CC-BY-NC-SA-2.0-UK,CC-BY-NC-SA-2.5,CC-BY-NC-SA-3.0,CC-BY-NC-SA-3.0-DE,CC-BY-NC-SA-3.0-IGO,CC-BY-NC-SA-4.0,CC-BY-ND-1.0,CC-BY-ND-2.0,CC-BY-ND-2.5,CC-BY-ND-3.0,CC-BY-ND-3.0-DE,CC-BY-ND-4.0,CC-BY-SA-1.0,CC-BY-SA-2.0,CC-BY-SA-2.0-UK,CC-BY-SA-2.1-JP,CC-BY-SA-2.5,CC-BY-SA-3.0,CC-BY-SA-3.0-AT,CC-BY-SA-3.0-DE,CC-BY-SA-3.0-IGO,CC-BY-SA-4.0,CC-PDDC,CC-PDM-1.0,CC-SA-1.0,CC0-1.0,CDDL-1.0,CDDL-1.1,CDL-1.0,CDLA-Permissive-1.0,CDLA-Permissive-2.0,CDLA-Sharing-1.0,CECILL-1.0,CECILL-1.1,CECILL-2.0,CECILL-2.1,CECILL-B,CECILL-C,CERN-OHL-1.1,CERN-OHL-1.2,CERN-OHL-P-2.0,CERN-OHL-S-2.0,CERN-OHL-W-2.0,CFITSIO,CMU-Mach,CMU-Mach-nodoc,CNRI-Jython,CNRI-Python,CNRI-Python-GPL-Compatible,COIL-1.0,CPAL-1.0,CPL-1.0,CPOL-1.02,CUA-OPL-1.0,Caldera,Caldera-no-preamble,Catharon,ClArtistic,Clips,Community-Spec-1.0,Condor-1.1,Cornell-Lossless-JPEG,Cronyx,Crossword,CryptoSwift,CrystalStacker,Cube,D-FSL-1.0,DEC-3-Clause,DL-DE-BY-2.0,DL-DE-ZERO-2.0,DOC,DRL-1.0,DRL-1.1,DSDP,DocBook-DTD,DocBook-Schema,DocBook-Stylesheet,DocBook-XML,Dotseqn,ECL-1.0,ECL-2.0,EFL-1.0,EFL-2.0,EPICS,EPL-1.0,EPL-2.0,ESA-PL-permissive-2.4,ESA-PL-strong-copyleft-2.4,ESA-PL-weak-copyleft-2.4,EUDatagrid,EUPL-1.0,EUPL-1.1,EUPL-1.2,Elastic-2.0,Entessa,ErlPL-1.1,Eurosym,FBM,FDK-AAC,FSFAP,FSFAP-no-warranty-disclaimer,FSFUL,FSFULLR,FSFULLRSD,FSFULLRWD,FSL-1.1-ALv2,FSL-1.1-MIT,FTL,Fair,Ferguson-Twofish,Frameworx-1.0,FreeBSD-DOC,FreeImage,Furuseth,GCR-docs,GD,GFDL-1.1-invariants-only,GFDL-1.1-invariants-or-later,GFDL-1.1-no-invariants-only,GFDL-1.1-no-invariants-or-later,GFDL-1.1-only,GFDL-1.1-or-later,GFDL-1.2-invariants-only,GFDL-1.2-invariants-or-later,GFDL-1.2-no-invariants-only,GFDL-1.2-no-invariants-or-later,GFDL-1.2-only,GFDL-1.2-or-later,GFDL-1.3-invariants-only,GFDL-1.3-invariants-or-later,GFDL-1.3-no-invariants-only,GFDL-1.3-no-invariants-or-later,GFDL-1.3-only,GFDL-1.3-or-later,GL2PS,GLWTPL,GPL-1.0-only,GPL-1.0-or-later,GPL-2.0-only,GPL-2.0-or-later,GPL-3.0-only,GPL-3.0-or-later,Game-Programming-Gems,Giftware,Glide,Glulxe,Graphics-Gems,Gutmann,HDF5,HIDAPI,HP-1986,HP-1989,HPND,HPND-DEC,HPND-Fenneberg-Livingston,HPND-INRIA-IMAG,HPND-Intel,HPND-Kevlin-Henney,HPND-MIT-disclaimer,HPND-Markus-Kuhn,HPND-Netrek,HPND-Pbmplus,HPND-SMC,HPND-UC,HPND-UC-export-US,HPND-doc,HPND-doc-sell,HPND-export-US,HPND-export-US-acknowledgement,HPND-export-US-modify,HPND-export2-US,HPND-merchantability-variant,HPND-sell-MIT-disclaimer-xserver,HPND-sell-regexpr,HPND-sell-variant,HPND-sell-variant-MIT-disclaimer,HPND-sell-variant-MIT-disclaimer-rev,HPND-sell-variant-critical-systems,HTMLTIDY,HaskellReport,Hippocratic-2.1,IBM-pibs,ICU,IEC-Code-Components-EULA,IJG,IJG-short,IPA,IPL-1.0,ISC,ISC-Veillard,ISO-permission,ImageMagick,Imlib2,Info-ZIP,Inner-Net-2.0,InnoSetup,Intel,Intel-ACPI,Interbase-1.0,JPL-image,JPNIC,JSON,Jam,JasPer-2.0,Kastrup,Kazlib,Knuth-CTAN,LAL-1.2,LAL-1.3,LGPL-2.0-only,LGPL-2.0-or-later,LGPL-2.1-only,LGPL-2.1-or-later,LGPL-3.0-only,LGPL-3.0-or-later,LGPLLR,LOOP,LPD-document,LPL-1.0,LPL-1.02,LPPL-1.0,LPPL-1.1,LPPL-1.2,LPPL-1.3a,LPPL-1.3c,LZMA-SDK-9.11-to-9.20,LZMA-SDK-9.22,Latex2e,Latex2e-translated-notice,Leptonica,LiLiQ-P-1.1,LiLiQ-R-1.1,LiLiQ-Rplus-1.1,Libpng,Linux-OpenIB,Linux-man-pages-1-para,Linux-man-pages-copyleft,Linux-man-pages-copyleft-2-para,Linux-man-pages-copyleft-var,Lucida-Bitmap-Fonts,MIPS,MIT,MIT-0,MIT-CMU,MIT-Click,MIT-Festival,MIT-Khronos-old,MIT-Modern-Variant,MIT-STK,MIT-Wu,MIT-advertising,MIT-enna,MIT-feh,MIT-open-group,MIT-testregex,MITNFA,MMIXware,MMPL-1.0.1,MPEG-SSG,MPL-1.0,MPL-1.1,MPL-2.0,MPL-2.0-no-copyleft-exception,MS-LPL,MS-PL,MS-RL,MTLL,Mackerras-3-Clause,Mackerras-3-Clause-acknowledgment,MakeIndex,Martin-Birgmeier,McPhee-slideshow,Minpack,MirOS,Motosoto,MulanPSL-1.0,MulanPSL-2.0,Multics,Mup,NAIST-2003,NASA-1.3,NBPL-1.0,NCBI-PD,NCGL-UK-2.0,NCL,NCSA,NGPL,NICTA-1.0,NIST-PD,NIST-PD-TNT,NIST-PD-fallback,NIST-Software,NLOD-1.0,NLOD-2.0,NLPL,NOSL,NPL-1.0,NPL-1.1,NPOSL-3.0,NRL,NTIA-PD,NTP,NTP-0,Naumen,NetCDF,Newsletr,Nokia,Noweb,O-UDA-1.0,OAR,OCCT-PL,OCLC-2.0,ODC-By-1.0,ODbL-1.0,OFFIS,OFL-1.0,OFL-1.0-RFN,OFL-1.0-no-RFN,OFL-1.1,OFL-1.1-RFN,OFL-1.1-no-RFN,OGC-1.0,OGDL-Taiwan-1.0,OGL-Canada-2.0,OGL-UK-1.0,OGL-UK-2.0,OGL-UK-3.0,OGTSL,OLDAP-1.1,OLDAP-1.2,OLDAP-1.3,OLDAP-1.4,OLDAP-2.0,OLDAP-2.0.1,OLDAP-2.1,OLDAP-2.2,OLDAP-2.2.1,OLDAP-2.2.2,OLDAP-2.3,OLDAP-2.4,OLDAP-2.5,OLDAP-2.6,OLDAP-2.7,OLDAP-2.8,OLFL-1.3,OML,OPL-1.0,OPL-UK-3.0,OPUBL-1.0,OSC-1.0,OSET-PL-2.1,OSL-1.0,OSL-1.1,OSL-2.0,OSL-2.1,OSL-3.0,OSSP,OpenMDW-1.0,OpenPBS-2.3,OpenSSL,OpenSSL-standalone,OpenVision,PADL,PDDL-1.0,PHP-3.0,PHP-3.01,PPL,PSF-2.0,ParaType-Free-Font-1.3,Parity-6.0.0,Parity-7.0.0,Pixar,Plexus,PolyForm-Noncommercial-1.0.0,PolyForm-Small-Business-1.0.0,PostgreSQL,Python-2.0,Python-2.0.1,QPL-1.0,QPL-1.0-INRIA-2004,Qhull,RHeCos-1.1,RPL-1.1,RPL-1.5,RPSL-1.0,RSA-MD,RSCPL,Rdisc,Ruby,Ruby-pty,SAX-PD,SAX-PD-2.0,SCEA,SGI-B-1.0,SGI-B-1.1,SGI-B-2.0,SGI-OpenGL,SGMLUG-PM,SGP4,SHL-0.5,SHL-0.51,SISSL,SISSL-1.2,SL,SMAIL-GPL,SMLNJ,SMPPL,SNIA,SOFA,SPL-1.0,SSH-OpenSSH,SSH-short,SSLeay-standalone,SSPL-1.0,SUL-1.0,SWL,Saxpath,SchemeReport,Sendmail,Sendmail-8.23,Sendmail-Open-Source-1.1,SimPL-2.0,Sleepycat,Soundex,Spencer-86,Spencer-94,Spencer-99,SugarCRM-1.1.3,Sun-PPP,Sun-PPP-2000,SunPro,Symlinks,TAPR-OHL-1.0,TCL,TCP-wrappers,TGPPL-1.0,TMate,TORQUE-1.1,TOSL,TPDL,TPL-1.0,TTWL,TTYP0,TU-Berlin-1.0,TU-Berlin-2.0,TekHVC,TermReadKey,ThirdEye,TrustedQSL,UCAR,UCL-1.0,UMich-Merit,UPL-1.0,URT-RLE,Ubuntu-font-1.0,UnRAR,Unicode-3.0,Unicode-DFS-2015,Unicode-DFS-2016,Unicode-TOU,UnixCrypt,Unlicense,Unlicense-libtelnet,Unlicense-libwhirlpool,VOSTROM,VSL-1.0,Vim,Vixie-Cron,W3C,W3C-19980720,W3C-20150513,WTFNMFPL,WTFPL,Watcom-1.0,Widget-Workshop,WordNet,Wsuipa,X11,X11-distribute-modifications-variant,X11-no-permit-persons,X11-swapped,XFree86-1.1,XSkat,Xdebug-1.03,Xerox,Xfig,Xnet,YPL-1.0,YPL-1.1,ZPL-1.1,ZPL-2.0,ZPL-2.1,Zed,Zeeff,Zend-2.0,Zimbra-1.3,Zimbra-1.4,Zlib,any-OSI,any-OSI-perl-modules,bcrypt-Solar-Designer,blessing,bzip2-1.0.6,check-cvs,checkmk,copyleft-next-0.3.0,copyleft-next-0.3.1,curl,cve-tou,diffmark,dtoa,dvipdfm,eGenix,etalab-2.0,fwlw,gSOAP-1.3b,generic-xts,gnuplot,gtkbook,hdparm,hyphen-bulgarian,iMatix,jove,libpng-1.6.35,libpng-2.0,libselinux-1.0,libtiff,libutil-David-Nugent,lsof,magaz,mailprio,man2html,metamail,mpi-permissive,mpich2,mplus,ngrep,pkgconf,pnmstitch,psfrag,psutils,python-ldap,radvd,snprintf,softSurfer,ssh-keyscan,swrule,threeparttable,ulem,w3m,wwl,xinetd,xkeyboard-config-Zinoviev,xlock,xpp,xzoom,zlib-acknowledgement`.split(`,`)})),require_deprecated=__commonJSMin(((l,d)=>{d.exports=`AGPL-1.0,AGPL-3.0,BSD-2-Clause-FreeBSD,BSD-2-Clause-NetBSD,GFDL-1.1,GFDL-1.2,GFDL-1.3,GPL-1.0,GPL-2.0,GPL-2.0-with-GCC-exception,GPL-2.0-with-autoconf-exception,GPL-2.0-with-bison-exception,GPL-2.0-with-classpath-exception,GPL-2.0-with-font-exception,GPL-3.0,GPL-3.0-with-GCC-exception,GPL-3.0-with-autoconf-exception,LGPL-2.0,LGPL-2.1,LGPL-3.0,Net-SNMP,Nunit,StandardML-NJ,bzip2-1.0.5,eCos-2.0,wxWindows`.split(`,`)})),require_spdx_exceptions=__commonJSMin(((l,d)=>{d.exports=`389-exception,Asterisk-exception,Autoconf-exception-2.0,Autoconf-exception-3.0,Autoconf-exception-generic,Autoconf-exception-generic-3.0,Autoconf-exception-macro,Bison-exception-1.24,Bison-exception-2.2,Bootloader-exception,Classpath-exception-2.0,CLISP-exception-2.0,cryptsetup-OpenSSL-exception,DigiRule-FOSS-exception,eCos-exception-2.0,Fawkes-Runtime-exception,FLTK-exception,fmt-exception,Font-exception-2.0,freertos-exception-2.0,GCC-exception-2.0,GCC-exception-2.0-note,GCC-exception-3.1,Gmsh-exception,GNAT-exception,GNOME-examples-exception,GNU-compiler-exception,gnu-javamail-exception,GPL-3.0-interface-exception,GPL-3.0-linking-exception,GPL-3.0-linking-source-exception,GPL-CC-1.0,GStreamer-exception-2005,GStreamer-exception-2008,i2p-gpl-java-exception,KiCad-libraries-exception,LGPL-3.0-linking-exception,libpri-OpenH323-exception,Libtool-exception,Linux-syscall-note,LLGPL,LLVM-exception,LZMA-exception,mif-exception,OCaml-LGPL-linking-exception,OCCT-exception-1.0,OpenJDK-assembly-exception-1.0,openvpn-openssl-exception,PS-or-PDF-font-exception-20170817,QPL-1.0-INRIA-2004-exception,Qt-GPL-exception-1.0,Qt-LGPL-exception-1.1,Qwt-exception-1.0,SANE-exception,SHL-2.0,SHL-2.1,stunnel-exception,SWI-exception,Swift-exception,Texinfo-exception,u-boot-exception-2.0,UBDL-exception,Universal-FOSS-exception-1.0,vsftpd-openssl-exception,WxWindows-exception-3.1,x11vnc-openssl-exception`.split(`,`)})),require_scan$2=__commonJSMin(((l,d)=>{var f=[].concat(require_spdx_license_ids(),require_deprecated()),m=require_spdx_exceptions();d.exports=function(l){var d=0;function te(){return d<l.length}function re(f){if(f instanceof RegExp){var m=l.slice(d).match(f);if(m)return d+=m[0].length,m[0]}else if(l.indexOf(f,d)===d)return d+=f.length,f}function ie(){re(/[ ]*/)}function ae(){for(var f,m=[`WITH`,`AND`,`OR`,`(`,`)`,`:`,`+`],te=0;te<m.length&&(f=re(m[te]),!f);te++);if(f===`+`&&d>1&&l[d-2]===` `)throw Error("Space before `+`");return f&&{type:`OPERATOR`,string:f}}function oe(){return re(/[A-Za-z0-9-.]+/)}function se(){var l=oe();if(!l)throw Error(`Expected idstring at offset `+d);return l}function ce(){if(re(`DocumentRef-`))return{type:`DOCUMENTREF`,string:se()}}function le(){if(re(`LicenseRef-`))return{type:`LICENSEREF`,string:se()}}function ue(){var l=d,te=oe();if(f.indexOf(te)!==-1)return{type:`LICENSE`,string:te};if(m.indexOf(te)!==-1)return{type:`EXCEPTION`,string:te};d=l}function de(){return ae()||ce()||le()||ue()}for(var fe=[];te()&&(ie(),te());){var pe=de();if(!pe)throw Error("Unexpected `"+l[d]+"` at offset "+d);fe.push(pe)}return fe}})),require_parse$4=__commonJSMin(((l,d)=>{d.exports=function(l){var d=0;function f(){return d<l.length}function m(){return f()?l[d]:null}function te(){if(!f())throw Error();d++}function re(l){var d=m();if(d&&d.type===`OPERATOR`&&l===d.string)return te(),d.string}function ie(){if(re(`WITH`)){var l=m();if(l&&l.type===`EXCEPTION`)return te(),l.string;throw Error("Expected exception after `WITH`")}}function ae(){var l=d,f=``,ie=m();if(ie.type===`DOCUMENTREF`&&(te(),f+=`DocumentRef-`+ie.string+`:`,!re(`:`)))throw Error("Expected `:` after `DocumentRef-...`");if(ie=m(),ie.type===`LICENSEREF`)return te(),f+=`LicenseRef-`+ie.string,{license:f};d=l}function oe(){var l=m();if(l&&l.type===`LICENSE`){te();var d={license:l.string};re(`+`)&&(d.plus=!0);var f=ie();return f&&(d.exception=f),d}}function se(){if(re(`(`)){var l=ue();if(!re(`)`))throw Error("Expected `)`");return l}}function ce(){return se()||ae()||oe()}function le(l,d){return function f(){var m=d();if(m){if(!re(l))return m;var te=f();if(!te)throw Error(`Expected expression`);return{left:m,conjunction:l.toLowerCase(),right:te}}}}var ue=le(`OR`,le(`AND`,ce)),de=ue();if(!de||f())throw Error(`Syntax error`);return de}})),require_spdx_expression_parse=__commonJSMin(((l,d)=>{var f=require_scan$2(),m=require_parse$4();d.exports=function(l){return m(f(l))}})),require_spdx_correct=__commonJSMin(((l,d)=>{var f=require_spdx_expression_parse(),m=require_spdx_license_ids();function te(l){try{return f(l),!0}catch{return!1}}function re(l,d){var f=d[0].length-l[0].length;return f===0?l[0].toUpperCase().localeCompare(d[0].toUpperCase()):f}var ie=[[`APGL`,`AGPL`],[`Gpl`,`GPL`],[`GLP`,`GPL`],[`APL`,`Apache`],[`ISD`,`ISC`],[`GLP`,`GPL`],[`IST`,`ISC`],[`Claude`,`Clause`],[` or later`,`+`],[` International`,``],[`GNU`,`GPL`],[`GUN`,`GPL`],[`+`,``],[`GNU GPL`,`GPL`],[`GNU LGPL`,`LGPL`],[`GNU/GPL`,`GPL`],[`GNU GLP`,`GPL`],[`GNU LESSER GENERAL PUBLIC LICENSE`,`LGPL`],[`GNU Lesser General Public License`,`LGPL`],[`GNU LESSER GENERAL PUBLIC LICENSE`,`LGPL-2.1`],[`GNU Lesser General Public License`,`LGPL-2.1`],[`LESSER GENERAL PUBLIC LICENSE`,`LGPL`],[`Lesser General Public License`,`LGPL`],[`LESSER GENERAL PUBLIC LICENSE`,`LGPL-2.1`],[`Lesser General Public License`,`LGPL-2.1`],[`GNU General Public License`,`GPL`],[`Gnu public license`,`GPL`],[`GNU Public License`,`GPL`],[`GNU GENERAL PUBLIC LICENSE`,`GPL`],[`MTI`,`MIT`],[`Mozilla Public License`,`MPL`],[`Universal Permissive License`,`UPL`],[`WTH`,`WTF`],[`WTFGPL`,`WTFPL`],[`-License`,``]].sort(re),ae=0,oe=1,se=[function(l){return l.toUpperCase()},function(l){return l.trim()},function(l){return l.replace(/\./g,``)},function(l){return l.replace(/\s+/g,``)},function(l){return l.replace(/\s+/g,`-`)},function(l){return l.replace(`v`,`-`)},function(l){return l.replace(/,?\s*(\d)/,`-$1`)},function(l){return l.replace(/,?\s*(\d)/,`-$1.0`)},function(l){return l.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,`-$2`)},function(l){return l.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,`-$2.0`)},function(l){return l[0].toUpperCase()+l.slice(1)},function(l){return l.replace(`/`,`-`)},function(l){return l.replace(/\s*V\s*(\d)/,`-$1`).replace(/(\d)$/,`$1.0`)},function(l){return l.indexOf(`3.0`)===-1?l+`-only`:l+`-or-later`},function(l){return l+`only`},function(l){return l.replace(/(\d)$/,`-$1.0`)},function(l){return l.replace(/(-| )?(\d)$/,`-$2-Clause`)},function(l){return l.replace(/(-| )clause(-| )(\d)/,`-$3-Clause`)},function(l){return l.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,`BSD-3-Clause`)},function(l){return l.replace(/\bSimplified(-| )?BSD((-| )License)?/i,`BSD-2-Clause`)},function(l){return l.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,`BSD-2-Clause-$1BSD`)},function(l){return l.replace(/\bClear(-| )?BSD((-| )License)?/i,`BSD-3-Clause-Clear`)},function(l){return l.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,`BSD-4-Clause`)},function(l){return`CC-`+l},function(l){return`CC-`+l+`-4.0`},function(l){return l.replace(`Attribution`,`BY`).replace(`NonCommercial`,`NC`).replace(`NoDerivatives`,`ND`).replace(/ (\d)/,`-$1`).replace(/ ?International/,``)},function(l){return`CC-`+l.replace(`Attribution`,`BY`).replace(`NonCommercial`,`NC`).replace(`NoDerivatives`,`ND`).replace(/ (\d)/,`-$1`).replace(/ ?International/,``)+`-4.0`}],ce=m.map(function(l){var d=/^(.*)-\d+\.\d+$/.exec(l);return d?[d[0],d[1]]:[l,null]}).reduce(function(l,d){var f=d[1];return l[f]=l[f]||[],l[f].push(d[0]),l},{}),le=Object.keys(ce).map(function(l){return[l,ce[l]]}).filter(function(l){return l[1].length===1&&l[0]!==null&&l[0]!==`APL`}).map(function(l){return[l[0],l[1][0]]});ce=void 0;var ue=[[`UNLI`,`Unlicense`],[`WTF`,`WTFPL`],[`2 CLAUSE`,`BSD-2-Clause`],[`2-CLAUSE`,`BSD-2-Clause`],[`3 CLAUSE`,`BSD-3-Clause`],[`3-CLAUSE`,`BSD-3-Clause`],[`AFFERO`,`AGPL-3.0-or-later`],[`AGPL`,`AGPL-3.0-or-later`],[`APACHE`,`Apache-2.0`],[`ARTISTIC`,`Artistic-2.0`],[`Affero`,`AGPL-3.0-or-later`],[`BEER`,`Beerware`],[`BOOST`,`BSL-1.0`],[`BSD`,`BSD-2-Clause`],[`CDDL`,`CDDL-1.1`],[`ECLIPSE`,`EPL-1.0`],[`FUCK`,`WTFPL`],[`GNU`,`GPL-3.0-or-later`],[`LGPL`,`LGPL-3.0-or-later`],[`GPLV1`,`GPL-1.0-only`],[`GPL-1`,`GPL-1.0-only`],[`GPLV2`,`GPL-2.0-only`],[`GPL-2`,`GPL-2.0-only`],[`GPL`,`GPL-3.0-or-later`],[`MIT +NO-FALSE-ATTRIBS`,`MITNFA`],[`MIT`,`MIT`],[`MPL`,`MPL-2.0`],[`X11`,`X11`],[`ZLIB`,`Zlib`]].concat(le).sort(re),de=0,fe=1,pe=function(l){for(var d=0;d<se.length;d++){var f=se[d](l).trim();if(f!==l&&te(f))return f}return null},me=function(l){for(var d=l.toUpperCase(),f=0;f<ue.length;f++){var m=ue[f];if(d.indexOf(m[de])>-1)return m[fe]}return null},he=function(l,d){for(var f=0;f<ie.length;f++){var m=ie[f],te=m[ae];if(l.indexOf(te)>-1){var re=d(l.replace(te,m[oe]));if(re!==null)return re}}return null};d.exports=function(l,d){d||={};var f=d.upgrade===void 0?!0:!!d.upgrade;function m(l){return f?ge(l):l}if(!(typeof l==`string`&&l.trim().length!==0))throw Error(`Invalid argument. Expected non-empty string.`);if(l=l.trim(),te(l))return m(l);var re=l.replace(/\+$/,``).trim();if(te(re))return m(re);var ie=pe(l);return ie!==null||(ie=he(l,function(l){return te(l)?l:pe(l)}),ie!==null)||(ie=me(l),ie!==null)||(ie=he(l,me),ie!==null)?m(ie):null};function ge(l){return[`GPL-1.0`,`LGPL-1.0`,`AGPL-1.0`,`GPL-2.0`,`LGPL-2.0`,`AGPL-2.0`,`LGPL-2.1`].indexOf(l)===-1?[`GPL-1.0+`,`GPL-2.0+`,`GPL-3.0+`,`LGPL-2.0+`,`LGPL-2.1+`,`LGPL-3.0+`,`AGPL-1.0+`,`AGPL-3.0+`].indexOf(l)===-1?[`GPL-3.0`,`LGPL-3.0`,`AGPL-3.0`].indexOf(l)===-1?l:l+`-or-later`:l.replace(/\+$/,`-or-later`):l+`-only`}})),require_validate_npm_package_license=__commonJSMin(((l,d)=>{var f=require_spdx_expression_parse(),m=require_spdx_correct(),te=`license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"`,re=/^SEE LICEN[CS]E IN (.+)$/;function ie(l,d){return d.slice(0,l.length)===l}function ae(l){if(l.hasOwnProperty(`license`)){var d=l.license;return ie(`LicenseRef`,d)||ie(`DocumentRef`,d)}else return ae(l.left)||ae(l.right)}d.exports=function(l){var d;try{d=f(l)}catch{var ie;if(l===`UNLICENSED`||l===`UNLICENCED`)return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(ie=re.exec(l))return{validForOldPackages:!0,validForNewPackages:!0,inFile:ie[1]};var oe={validForOldPackages:!1,validForNewPackages:!1,warnings:[te]};if(l.trim().length!==0){var se=m(l);se&&oe.warnings.push(`license is similar to the valid expression "`+se+`"`)}return oe}return ae(d)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[te]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}})),require_index_min=__commonJSMin((l=>{var d=(l,d)=>()=>(d||l((d={exports:{}}).exports,d),d.exports),f=d(l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.tracing=l.metrics=void 0;var d=__require$1(`node:diagnostics_channel`);l.metrics=(0,d.channel)(`lru-cache:metrics`),l.tracing=(0,d.tracingChannel)(`lru-cache`)}),m=d(l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.defaultPerf=void 0,l.defaultPerf=typeof performance==`object`&&performance&&typeof performance.now==`function`?performance:Date});Object.defineProperty(l,"__esModule",{value:!0}),l.LRUCache=void 0;var te=f(),re=m(),ie=()=>te.metrics.hasSubscribers||te.tracing.hasSubscribers,ae=new Set,oe=typeof process==`object`&&process?process:{},se=(l,d,f,m)=>{typeof oe.emitWarning==`function`?oe.emitWarning(l,d,f,m):console.error(`[${f}] ${d}: ${l}`)},ce=l=>!ae.has(l),le=l=>!!l&&l===Math.floor(l)&&l>0&&isFinite(l),ue=l=>le(l)?l<=2**8?Uint8Array:l<=2**16?Uint16Array:l<=2**32?Uint32Array:l<=2**53-1?de:null:null,de=class extends Array{constructor(l){super(l),this.fill(0)}},fe=class l{heap;length;static#e=!1;static create(d){let f=ue(d);if(!f)return[];l.#e=!0;let m=new l(d,f);return l.#e=!1,m}constructor(d,f){if(!l.#e)throw TypeError(`instantiate Stack using Stack.create(n)`);this.heap=new f(d),this.length=0}push(l){this.heap[this.length++]=l}pop(){return this.heap[--this.length]}};l.LRUCache=class l{#e;#t;#n;#r;#i;#a;#o;#s;get perf(){return this.#s}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;backgroundFetchSize;#c;#l;#u;#d;#f;#p;#m;#h;#g;#_;#v;#y;#b;#x;#S;#C;#w;#T;#E;static unsafeExposeInternals(l){return{starts:l.#b,ttls:l.#x,autopurgeTimers:l.#S,sizes:l.#y,keyMap:l.#u,keyList:l.#d,valList:l.#f,next:l.#p,prev:l.#m,get head(){return l.#h},get tail(){return l.#g},free:l.#_,isBackgroundFetch:d=>l.#W(d),backgroundFetch:(d,f,m,te)=>l.#U(d,f,m,te),moveToTail:d=>l.#X(d),indexes:d=>l.#I(d),rindexes:d=>l.#L(d),isStale:d=>l.#j(d)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#a}get memoMethod(){return this.#o}get dispose(){return this.#n}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(d){let{max:f=0,ttl:m,ttlResolution:te=1,ttlAutopurge:ie,updateAgeOnGet:oe,updateAgeOnHas:de,allowStale:pe,dispose:me,onInsert:he,disposeAfter:ge,noDisposeOnSet:_e,noUpdateTTL:ve,maxSize:ye=0,maxEntrySize:be=0,sizeCalculation:xe,fetchMethod:Se,memoMethod:Ce,noDeleteOnFetchRejection:we,noDeleteOnStaleGet:Te,allowStaleOnFetchRejection:Ee,allowStaleOnFetchAbort:De,ignoreFetchAbort:Oe,backgroundFetchSize:ke=1,perf:Ae}=d;if(this.backgroundFetchSize=ke,Ae!==void 0&&typeof Ae?.now!=`function`)throw TypeError(`perf option must have a now() method if specified`);if(this.#s=Ae??re.defaultPerf,f!==0&&!le(f))throw TypeError(`max option must be a nonnegative integer`);let je=f?ue(f):Array;if(!je)throw Error(`invalid max value: `+f);if(this.#e=f,this.#t=ye,this.maxEntrySize=be||this.#t,this.sizeCalculation=xe,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw TypeError(`cannot set sizeCalculation without setting maxSize or maxEntrySize`);if(typeof this.sizeCalculation!=`function`)throw TypeError(`sizeCalculation set to non-function`)}if(Ce!==void 0&&typeof Ce!=`function`)throw TypeError(`memoMethod must be a function if defined`);if(this.#o=Ce,Se!==void 0&&typeof Se!=`function`)throw TypeError(`fetchMethod must be a function if specified`);if(this.#a=Se,this.#w=!!Se,this.#u=new Map,this.#d=Array.from({length:f}).fill(void 0),this.#f=Array.from({length:f}).fill(void 0),this.#p=new je(f),this.#m=new je(f),this.#h=0,this.#g=0,this.#_=fe.create(f),this.#c=0,this.#l=0,typeof me==`function`&&(this.#n=me),typeof he==`function`&&(this.#r=he),typeof ge==`function`?(this.#i=ge,this.#v=[]):(this.#i=void 0,this.#v=void 0),this.#C=!!this.#n,this.#E=!!this.#r,this.#T=!!this.#i,this.noDisposeOnSet=!!_e,this.noUpdateTTL=!!ve,this.noDeleteOnFetchRejection=!!we,this.allowStaleOnFetchRejection=!!Ee,this.allowStaleOnFetchAbort=!!De,this.ignoreFetchAbort=!!Oe,this.maxEntrySize!==0){if(this.#t!==0&&!le(this.#t))throw TypeError(`maxSize must be a positive integer if specified`);if(!le(this.maxEntrySize))throw TypeError(`maxEntrySize must be a positive integer if specified`);this.#M()}if(this.allowStale=!!pe,this.noDeleteOnStaleGet=!!Te,this.updateAgeOnGet=!!oe,this.updateAgeOnHas=!!de,this.ttlResolution=le(te)||te===0?te:1,this.ttlAutopurge=!!ie,this.ttl=m||0,this.ttl){if(!le(this.ttl))throw TypeError(`ttl must be a positive integer if specified`);this.#D()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw TypeError(`At least one of max, maxSize, or ttl is required`);if(!this.ttlAutopurge&&!this.#e&&!this.#t){let d=`LRU_CACHE_UNBOUNDED`;ce(d)&&(ae.add(d),se(`TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.`,`UnboundedCacheWarning`,d,l))}}getRemainingTTL(l){return this.#u.has(l)?1/0:0}#D(){let l=new de(this.#e),d=new de(this.#e);this.#x=l,this.#b=d;let f=this.ttlAutopurge?Array.from({length:this.#e}):void 0;this.#S=f,this.#A=(f,te,re=this.#s.now())=>{d[f]=te===0?0:re,l[f]=te,m(f,te)},this.#O=f=>{d[f]=l[f]===0?0:this.#s.now(),m(f,l[f])};let m=this.ttlAutopurge?(l,d)=>{if(f?.[l]&&(clearTimeout(f[l]),f[l]=void 0),d&&d!==0&&f){let m=setTimeout(()=>{this.#j(l)&&this.#Z(this.#d[l],`expire`)},d+1);m.unref&&m.unref(),f[l]=m}}:()=>{};this.#k=(f,m)=>{if(l[m]){let ie=l[m],ae=d[m];if(!ie||!ae)return;f.ttl=ie,f.start=ae,f.now=te||re(),f.remainingTTL=ie-(f.now-ae)}};let te=0,re=()=>{let l=this.#s.now();if(this.ttlResolution>0){te=l;let d=setTimeout(()=>te=0,this.ttlResolution);d.unref&&d.unref()}return l};this.getRemainingTTL=f=>{let m=this.#u.get(f);if(m===void 0)return 0;let ie=l[m],ae=d[m];return!ie||!ae?1/0:ie-((te||re())-ae)},this.#j=f=>{let m=d[f],ie=l[f];return!!ie&&!!m&&(te||re())-m>ie}}#O=()=>{};#k=()=>{};#A=()=>{};#j=()=>!1;#M(){let l=new de(this.#e);this.#l=0,this.#y=l,this.#N=d=>{this.#l-=l[d],l[d]=0},this.#F=(l,d,f,m)=>{if(!le(f)){if(this.#W(d))return this.backgroundFetchSize;if(m){if(typeof m!=`function`)throw TypeError(`sizeCalculation must be a function`);if(f=m(d,l),!le(f))throw TypeError(`sizeCalculation return invalid (expect positive integer)`)}else throw TypeError(`invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.`)}return f},this.#P=(d,f,m)=>{if(l[d]=f,this.#t){let f=this.#t-l[d];for(;this.#l>f;)this.#B(!0)}this.#l+=l[d],m&&(m.entrySize=f,m.totalCalculatedSize=this.#l)}}#N=l=>{};#P=(l,d,f)=>{};#F=(l,d,f,m)=>{if(f||m)throw TypeError(`cannot set size without setting maxSize or maxEntrySize on cache`);return 0};*#I({allowStale:l=this.allowStale}={}){if(this.#c)for(let d=this.#g;this.#R(d)&&((l||!this.#j(d))&&(yield d),d!==this.#h);)d=this.#m[d]}*#L({allowStale:l=this.allowStale}={}){if(this.#c)for(let d=this.#h;this.#R(d)&&((l||!this.#j(d))&&(yield d),d!==this.#g);)d=this.#p[d]}#R(l){return l!==void 0&&this.#u.get(this.#d[l])===l}*entries(){for(let l of this.#I())this.#f[l]!==void 0&&this.#d[l]!==void 0&&!this.#W(this.#f[l])&&(yield[this.#d[l],this.#f[l]])}*rentries(){for(let l of this.#L())this.#f[l]!==void 0&&this.#d[l]!==void 0&&!this.#W(this.#f[l])&&(yield[this.#d[l],this.#f[l]])}*keys(){for(let l of this.#I()){let d=this.#d[l];d!==void 0&&!this.#W(this.#f[l])&&(yield d)}}*rkeys(){for(let l of this.#L()){let d=this.#d[l];d!==void 0&&!this.#W(this.#f[l])&&(yield d)}}*values(){for(let l of this.#I())this.#f[l]!==void 0&&!this.#W(this.#f[l])&&(yield this.#f[l])}*rvalues(){for(let l of this.#L())this.#f[l]!==void 0&&!this.#W(this.#f[l])&&(yield this.#f[l])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]=`LRUCache`;find(l,d={}){for(let f of this.#I()){let m=this.#f[f],te=this.#W(m)?m.__staleWhileFetching:m;if(te!==void 0&&l(te,this.#d[f],this))return this.#J(this.#d[f],d)}}forEach(l,d=this){for(let f of this.#I()){let m=this.#f[f],te=this.#W(m)?m.__staleWhileFetching:m;te!==void 0&&l.call(d,te,this.#d[f],this)}}rforEach(l,d=this){for(let f of this.#L()){let m=this.#f[f],te=this.#W(m)?m.__staleWhileFetching:m;te!==void 0&&l.call(d,te,this.#d[f],this)}}purgeStale(){let l=!1;for(let d of this.#L({allowStale:!0}))this.#j(d)&&(this.#Z(this.#d[d],`expire`),l=!0);return l}info(l){let d=this.#u.get(l);if(d===void 0)return;let f=this.#f[d],m=this.#W(f)?f.__staleWhileFetching:f;if(m===void 0)return;let te={value:m};if(this.#x&&this.#b){let l=this.#x[d],f=this.#b[d];l&&f&&(te.ttl=l-(this.#s.now()-f),te.start=Date.now())}return this.#y&&(te.size=this.#y[d]),te}dump(){let l=[];for(let d of this.#I({allowStale:!0})){let f=this.#d[d],m=this.#f[d],te=this.#W(m)?m.__staleWhileFetching:m;if(te===void 0||f===void 0)continue;let re={value:te};if(this.#x&&this.#b){re.ttl=this.#x[d];let l=this.#s.now()-this.#b[d];re.start=Math.floor(Date.now()-l)}this.#y&&(re.size=this.#y[d]),l.unshift([f,re])}return l}load(l){this.clear();for(let[d,f]of l){if(f.start){let l=Date.now()-f.start;f.start=this.#s.now()-l}this.#z(d,f.value,f)}}set(l,d,f={}){let{status:m=te.metrics.hasSubscribers?{}:void 0}=f;f.status=m,m&&(m.op=`set`,m.key=l,d!==void 0&&(m.value=d),m.cache=this);let re=this.#z(l,d,f);return m&&te.metrics.hasSubscribers&&te.metrics.publish(m),re}#z(l,d,f,m){let{ttl:te=this.ttl,start:re,noDisposeOnSet:ie=this.noDisposeOnSet,sizeCalculation:ae=this.sizeCalculation,status:oe}=f,se=this.#W(d);if(d===void 0)return oe&&(oe.set=`deleted`),this.delete(l),this;let{noUpdateTTL:ce=this.noUpdateTTL}=f;oe&&!se&&(oe.value=d);let le=this.#F(l,d,f.size||0,ae,oe);if(this.maxEntrySize&&le>this.maxEntrySize)return this.#Z(l,`set`),oe&&(oe.set=`miss`,oe.maxEntrySizeExceeded=!0),this;let ue=this.#c===0?void 0:this.#u.get(l);if(ue===void 0)ue=this.#c===0?this.#g:this.#_.length===0?this.#c===this.#e?this.#B(!1):this.#c:this.#_.pop(),this.#d[ue]=l,this.#f[ue]=d,this.#u.set(l,ue),this.#p[this.#g]=ue,this.#m[ue]=this.#g,this.#g=ue,this.#c++,this.#P(ue,le,oe),oe&&(oe.set=`add`),ce=!1,this.#E&&!se&&this.#r?.(d,l,`add`);else{this.#X(ue);let f=this.#f[ue];if(d!==f){if(!ie)if(this.#W(f)){f!==m&&f.__abortController.abort(Error(`replaced`));let{__staleWhileFetching:te}=f;te!==void 0&&te!==d&&(this.#C&&this.#n?.(te,l,`set`),this.#T&&this.#v?.push([te,l,`set`]))}else this.#C&&this.#n?.(f,l,`set`),this.#T&&this.#v?.push([f,l,`set`]);if(this.#N(ue),this.#P(ue,le,oe),this.#f[ue]=d,!se){let m=f&&this.#W(f)?f.__staleWhileFetching:f,te=m===void 0?`add`:d===m?`update`:`replace`;oe&&(oe.set=te,m!==void 0&&(oe.oldValue=m)),this.#E&&this.onInsert?.(d,l,te)}}else se||(oe&&(oe.set=`update`),this.#E&&this.onInsert?.(d,l,`update`))}if(te!==0&&!this.#x&&this.#D(),this.#x&&(ce||this.#A(ue,te,re),oe&&this.#k(oe,ue)),!ie&&this.#T&&this.#v){let l=this.#v,d;for(;d=l?.shift();)this.#i?.(...d)}return this}pop(){try{for(;this.#c;){let l=this.#f[this.#h];if(this.#B(!0),this.#W(l)){if(l.__staleWhileFetching)return l.__staleWhileFetching}else if(l!==void 0)return l}}finally{if(this.#T&&this.#v){let l=this.#v,d;for(;d=l?.shift();)this.#i?.(...d)}}}#B(l){let d=this.#h,f=this.#d[d],m=this.#f[d],te=this.#W(m);te&&m.__abortController.abort(Error(`evicted`));let re=te?m.__staleWhileFetching:m;return(this.#C||this.#T)&&re!==void 0&&(this.#C&&this.#n?.(re,f,`evict`),this.#T&&this.#v?.push([re,f,`evict`])),this.#N(d),this.#S?.[d]&&(clearTimeout(this.#S[d]),this.#S[d]=void 0),l&&(this.#d[d]=void 0,this.#f[d]=void 0,this.#_.push(d)),this.#c===1?(this.#h=this.#g=0,this.#_.length=0):this.#h=this.#p[d],this.#u.delete(f),this.#c--,d}has(l,d={}){let{status:f=te.metrics.hasSubscribers?{}:void 0}=d;d.status=f,f&&(f.op=`has`,f.key=l,f.cache=this);let m=this.#V(l,d);return te.metrics.hasSubscribers&&te.metrics.publish(f),m}#V(l,d={}){let{updateAgeOnHas:f=this.updateAgeOnHas,status:m}=d,te=this.#u.get(l);if(te!==void 0){let l=this.#f[te];if(this.#W(l)&&l.__staleWhileFetching===void 0)return!1;if(this.#j(te))m&&(m.has=`stale`,this.#k(m,te));else return f&&this.#O(te),m&&(m.has=`hit`,this.#k(m,te)),!0}else m&&(m.has=`miss`);return!1}peek(l,d={}){let{status:f=ie()?{}:void 0}=d;f&&(f.op=`peek`,f.key=l,f.cache=this),d.status=f;let m=this.#H(l,d);return te.metrics.hasSubscribers&&te.metrics.publish(f),m}#H(l,d){let{status:f,allowStale:m=this.allowStale}=d,te=this.#u.get(l);if(te===void 0||!m&&this.#j(te)){f&&(f.peek=te===void 0?`miss`:`stale`);return}let re=this.#f[te],ie=this.#W(re)?re.__staleWhileFetching:re;return f&&(ie===void 0?f.peek=`miss`:(f.peek=`hit`,f.value=ie)),ie}#U(l,d,f,m){let te=d===void 0?void 0:this.#f[d];if(this.#W(te))return te;let re=new AbortController,{signal:ie}=f;ie?.addEventListener(`abort`,()=>re.abort(ie.reason),{signal:re.signal});let ae={signal:re.signal,options:f,context:m},oe=(m,te=!1)=>{let{aborted:ie}=re.signal,oe=f.ignoreFetchAbort&&m!==void 0,se=f.ignoreFetchAbort||!!(f.allowStaleOnFetchAbort&&m!==void 0);if(f.status&&(ie&&!te?(f.status.fetchAborted=!0,f.status.fetchError=re.signal.reason,oe&&(f.status.fetchAbortIgnored=!0)):f.status.fetchResolved=!0),ie&&!oe&&!te)return ce(re.signal.reason,se);let le=ue,de=this.#f[d];return(de===ue||de===void 0&&oe&&te)&&(m===void 0?le.__staleWhileFetching===void 0?this.#Z(l,`fetch`):this.#f[d]=le.__staleWhileFetching:(f.status&&(f.status.fetchUpdated=!0),this.#z(l,m,ae.options,le))),m},se=l=>(f.status&&(f.status.fetchRejected=!0,f.status.fetchError=l),ce(l,!1)),ce=(m,te)=>{let{aborted:ie}=re.signal,ae=ie&&f.allowStaleOnFetchAbort,oe=ae||f.allowStaleOnFetchRejection,se=oe||f.noDeleteOnFetchRejection,ce=ue;if(this.#f[d]===ue&&(!se||!te&&ce.__staleWhileFetching===void 0?this.#Z(l,`fetch`):ae||(this.#f[d]=ce.__staleWhileFetching)),oe)return f.status&&ce.__staleWhileFetching!==void 0&&(f.status.returnedStale=!0),ce.__staleWhileFetching;if(ce.__returned===ce)throw m},le=(d,m)=>{let ie=this.#a?.(l,te,ae);re.signal.addEventListener(`abort`,()=>{(!f.ignoreFetchAbort||f.allowStaleOnFetchAbort)&&(d(void 0),f.allowStaleOnFetchAbort&&(d=l=>oe(l,!0)))}),ie&&ie instanceof Promise?ie.then(l=>d(l===void 0?void 0:l),m):ie!==void 0&&d(ie)};f.status&&(f.status.fetchDispatched=!0);let ue=new Promise(le).then(oe,se),de=Object.assign(ue,{__abortController:re,__staleWhileFetching:te,__returned:void 0});return d===void 0?(this.#z(l,de,{...ae.options,status:void 0}),d=this.#u.get(l)):this.#f[d]=de,de}#W(l){if(!this.#w)return!1;let d=l;return!!d&&d instanceof Promise&&d.hasOwnProperty(`__staleWhileFetching`)&&d.__abortController instanceof AbortController}fetch(l,d={}){let f=te.tracing.hasSubscribers,{status:m=ie()?{}:void 0}=d;d.status=m,m&&d.context&&(m.context=d.context);let re=this.#G(l,d);return m&&f&&(m.trace=!0,te.tracing.tracePromise(()=>re,m).catch(()=>{})),re}async#G(l,d={}){let{allowStale:f=this.allowStale,updateAgeOnGet:m=this.updateAgeOnGet,noDeleteOnStaleGet:te=this.noDeleteOnStaleGet,ttl:re=this.ttl,noDisposeOnSet:ie=this.noDisposeOnSet,size:ae=0,sizeCalculation:oe=this.sizeCalculation,noUpdateTTL:se=this.noUpdateTTL,noDeleteOnFetchRejection:ce=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:le=this.allowStaleOnFetchRejection,ignoreFetchAbort:ue=this.ignoreFetchAbort,allowStaleOnFetchAbort:de=this.allowStaleOnFetchAbort,context:fe,forceRefresh:pe=!1,status:me,signal:he}=d;if(me&&(me.op=`fetch`,me.key=l,pe&&(me.forceRefresh=!0),me.cache=this),!this.#w)return me&&(me.fetch=`get`),this.#J(l,{allowStale:f,updateAgeOnGet:m,noDeleteOnStaleGet:te,status:me});let ge={allowStale:f,updateAgeOnGet:m,noDeleteOnStaleGet:te,ttl:re,noDisposeOnSet:ie,size:ae,sizeCalculation:oe,noUpdateTTL:se,noDeleteOnFetchRejection:ce,allowStaleOnFetchRejection:le,allowStaleOnFetchAbort:de,ignoreFetchAbort:ue,status:me,signal:he},_e=this.#u.get(l);if(_e===void 0){me&&(me.fetch=`miss`);let d=this.#U(l,_e,ge,fe);return d.__returned=d}else{let d=this.#f[_e];if(this.#W(d)){let l=f&&d.__staleWhileFetching!==void 0;return me&&(me.fetch=`inflight`,l&&(me.returnedStale=!0)),l?d.__staleWhileFetching:d.__returned=d}let te=this.#j(_e);if(!pe&&!te)return me&&(me.fetch=`hit`),this.#X(_e),m&&this.#O(_e),me&&this.#k(me,_e),d;let re=this.#U(l,_e,ge,fe),ie=re.__staleWhileFetching!==void 0&&f;return me&&(me.fetch=te?`stale`:`refresh`,ie&&te&&(me.returnedStale=!0)),ie?re.__staleWhileFetching:re.__returned=re}}forceFetch(l,d={}){let f=te.tracing.hasSubscribers,{status:m=ie()?{}:void 0}=d;d.status=m,m&&d.context&&(m.context=d.context);let re=this.#K(l,d);return m&&f&&(m.trace=!0,te.tracing.tracePromise(()=>re,m).catch(()=>{})),re}async#K(l,d={}){let f=await this.#G(l,d);if(f===void 0)throw Error(`fetch() returned undefined`);return f}memo(l,d={}){let{status:f=te.metrics.hasSubscribers?{}:void 0}=d;d.status=f,f&&(f.op=`memo`,f.key=l,d.context&&(f.context=d.context),f.cache=this);let m=this.#q(l,d);return f&&(f.value=m),te.metrics.hasSubscribers&&te.metrics.publish(f),m}#q(l,d={}){let f=this.#o;if(!f)throw Error(`no memoMethod provided to constructor`);let{context:m,status:te,forceRefresh:re,...ie}=d;te&&re&&(te.forceRefresh=!0);let ae=this.#J(l,ie),oe=re||ae===void 0;if(te&&(te.memo=oe?`miss`:`hit`,oe||(te.value=ae)),!oe)return ae;let se=f(l,ae,{options:ie,context:m});return te&&(te.value=se),this.#z(l,se,ie),se}get(l,d={}){let{status:f=te.metrics.hasSubscribers?{}:void 0}=d;d.status=f,f&&(f.op=`get`,f.key=l,f.cache=this);let m=this.#J(l,d);return f&&(m!==void 0&&(f.value=m),te.metrics.hasSubscribers&&te.metrics.publish(f)),m}#J(l,d={}){let{allowStale:f=this.allowStale,updateAgeOnGet:m=this.updateAgeOnGet,noDeleteOnStaleGet:te=this.noDeleteOnStaleGet,status:re}=d,ie=this.#u.get(l);if(ie===void 0){re&&(re.get=`miss`);return}let ae=this.#f[ie],oe=this.#W(ae);return re&&this.#k(re,ie),this.#j(ie)?oe?(re&&(re.get=`stale-fetching`),f&&ae.__staleWhileFetching!==void 0?(re&&(re.returnedStale=!0),ae.__staleWhileFetching):void 0):(te||this.#Z(l,`expire`),re&&(re.get=`stale`),f?(re&&(re.returnedStale=!0),ae):void 0):(re&&(re.get=oe?`fetching`:`hit`),this.#X(ie),m&&this.#O(ie),oe?ae.__staleWhileFetching:ae)}#Y(l,d){this.#m[d]=l,this.#p[l]=d}#X(l){l!==this.#g&&(l===this.#h?this.#h=this.#p[l]:this.#Y(this.#m[l],this.#p[l]),this.#Y(this.#g,l),this.#g=l)}delete(l){return this.#Z(l,`delete`)}#Z(l,d){te.metrics.hasSubscribers&&te.metrics.publish({op:`delete`,delete:d,key:l,cache:this});let f=!1;if(this.#c!==0){let m=this.#u.get(l);if(m!==void 0)if(this.#S?.[m]&&(clearTimeout(this.#S?.[m]),this.#S[m]=void 0),f=!0,this.#c===1)this.#Q(d);else{this.#N(m);let f=this.#f[m];if(this.#W(f)?f.__abortController.abort(Error(`deleted`)):(this.#C||this.#T)&&(this.#C&&this.#n?.(f,l,d),this.#T&&this.#v?.push([f,l,d])),this.#u.delete(l),this.#d[m]=void 0,this.#f[m]=void 0,m===this.#g)this.#g=this.#m[m];else if(m===this.#h)this.#h=this.#p[m];else{let l=this.#m[m];this.#p[l]=this.#p[m];let d=this.#p[m];this.#m[d]=this.#m[m]}this.#c--,this.#_.push(m)}}if(this.#T&&this.#v?.length){let l=this.#v,d;for(;d=l?.shift();)this.#i?.(...d)}return f}clear(){return this.#Q(`delete`)}#Q(l){for(let d of this.#L({allowStale:!0})){let f=this.#f[d];if(this.#W(f))f.__abortController.abort(Error(`deleted`));else{let m=this.#d[d];this.#C&&this.#n?.(f,m,l),this.#T&&this.#v?.push([f,m,l])}}if(this.#u.clear(),this.#f.fill(void 0),this.#d.fill(void 0),this.#x&&this.#b){this.#x.fill(0),this.#b.fill(0);for(let l of this.#S??[])l!==void 0&&clearTimeout(l);this.#S?.fill(void 0)}if(this.#y&&this.#y.fill(0),this.#h=0,this.#g=0,this.#_.length=0,this.#l=0,this.#c=0,this.#T&&this.#v){let l=this.#v,d;for(;d=l?.shift();)this.#i?.(...d)}}}})),require_hosts=__commonJSMin(((l,d)=>{let f=(...l)=>l.every(l=>l)?l.join(``):``,m=l=>l?encodeURIComponent(l):``,te=l=>l.toLowerCase().replace(/^\W+/g,``).replace(/(?<!\W)\W+$/,``).replace(/\//g,``).replace(/\W+/g,`-`),re={sshtemplate:({domain:l,user:d,project:m,committish:te})=>`git@${l}:${d}/${m}.git${f(`#`,te)}`,sshurltemplate:({domain:l,user:d,project:m,committish:te})=>`git+ssh://git@${l}/${d}/${m}.git${f(`#`,te)}`,edittemplate:({domain:l,user:d,project:te,committish:re,editpath:ie,path:ae})=>`https://${l}/${d}/${te}${f(`/`,ie,`/`,m(re||`HEAD`),`/`,ae)}`,browsetemplate:({domain:l,user:d,project:te,committish:re,treepath:ie})=>`https://${l}/${d}/${te}${f(`/`,ie,`/`,m(re))}`,browsetreetemplate:({domain:l,user:d,project:te,committish:re,treepath:ie,path:ae,fragment:oe,hashformat:se})=>`https://${l}/${d}/${te}/${ie}/${m(re||`HEAD`)}/${ae}${f(`#`,se(oe||``))}`,browseblobtemplate:({domain:l,user:d,project:te,committish:re,blobpath:ie,path:ae,fragment:oe,hashformat:se})=>`https://${l}/${d}/${te}/${ie}/${m(re||`HEAD`)}/${ae}${f(`#`,se(oe||``))}`,docstemplate:({domain:l,user:d,project:te,treepath:re,committish:ie})=>`https://${l}/${d}/${te}${f(`/`,re,`/`,m(ie))}#readme`,httpstemplate:({auth:l,domain:d,user:m,project:te,committish:re})=>`git+https://${f(l,`@`)}${d}/${m}/${te}.git${f(`#`,re)}`,filetemplate:({domain:l,user:d,project:f,committish:te,path:re})=>`https://${l}/${d}/${f}/raw/${m(te||`HEAD`)}/${re}`,shortcuttemplate:({type:l,user:d,project:m,committish:te})=>`${l}:${d}/${m}${f(`#`,te)}`,pathtemplate:({user:l,project:d,committish:m})=>`${l}/${d}${f(`#`,m)}`,bugstemplate:({domain:l,user:d,project:f})=>`https://${l}/${d}/${f}/issues`,hashformat:te},ie={};ie.github={protocols:[`git:`,`http:`,`git+ssh:`,`git+https:`,`ssh:`,`https:`],domain:`github.com`,treepath:`tree`,blobpath:`blob`,editpath:`edit`,filetemplate:({auth:l,user:d,project:te,committish:re,path:ie})=>`https://${f(l,`@`)}raw.githubusercontent.com/${d}/${te}/${m(re||`HEAD`)}/${ie}`,gittemplate:({auth:l,domain:d,user:m,project:te,committish:re})=>`git://${f(l,`@`)}${d}/${m}/${te}.git${f(`#`,re)}`,tarballtemplate:({domain:l,user:d,project:f,committish:te})=>`https://codeload.${l}/${d}/${f}/tar.gz/${m(te||`HEAD`)}`,extract:l=>{let[,d,f,m,te]=l.pathname.split(`/`,5);if(!(m&&m!==`tree`)&&(m||(te=l.hash.slice(1)),f&&f.endsWith(`.git`)&&(f=f.slice(0,-4)),!(!d||!f)))return{user:d,project:f,committish:te}}},ie.bitbucket={protocols:[`git+ssh:`,`git+https:`,`ssh:`,`https:`],domain:`bitbucket.org`,treepath:`src`,blobpath:`src`,editpath:`?mode=edit`,edittemplate:({domain:l,user:d,project:te,committish:re,treepath:ie,path:ae,editpath:oe})=>`https://${l}/${d}/${te}${f(`/`,ie,`/`,m(re||`HEAD`),`/`,ae,oe)}`,tarballtemplate:({domain:l,user:d,project:f,committish:te})=>`https://${l}/${d}/${f}/get/${m(te||`HEAD`)}.tar.gz`,extract:l=>{let[,d,f,m]=l.pathname.split(`/`,4);if(![`get`].includes(m)&&(f&&f.endsWith(`.git`)&&(f=f.slice(0,-4)),!(!d||!f)))return{user:d,project:f,committish:l.hash.slice(1)}}},ie.gitlab={protocols:[`git+ssh:`,`git+https:`,`ssh:`,`https:`],domain:`gitlab.com`,treepath:`tree`,blobpath:`tree`,editpath:`-/edit`,tarballtemplate:({domain:l,user:d,project:f,committish:te})=>`https://${l}/api/v4/projects/${m(d+`/`+f)}/repository/archive.tar.gz?sha=${m(te||`HEAD`)}`,extract:l=>{let d=l.pathname.slice(1);if(d.includes(`/-/`)||d.includes(`/archive.tar.gz`))return;let f=d.split(`/`),m=f.pop();m.endsWith(`.git`)&&(m=m.slice(0,-4));let te=f.join(`/`);if(!(!te||!m))return{user:te,project:m,committish:l.hash.slice(1)}}},ie.gist={protocols:[`git:`,`git+ssh:`,`git+https:`,`ssh:`,`https:`],domain:`gist.github.com`,editpath:`edit`,sshtemplate:({domain:l,project:d,committish:m})=>`git@${l}:${d}.git${f(`#`,m)}`,sshurltemplate:({domain:l,project:d,committish:m})=>`git+ssh://git@${l}/${d}.git${f(`#`,m)}`,edittemplate:({domain:l,user:d,project:te,committish:re,editpath:ie})=>`https://${l}/${d}/${te}${f(`/`,m(re))}/${ie}`,browsetemplate:({domain:l,project:d,committish:te})=>`https://${l}/${d}${f(`/`,m(te))}`,browsetreetemplate:({domain:l,project:d,committish:te,path:re,hashformat:ie})=>`https://${l}/${d}${f(`/`,m(te))}${f(`#`,ie(re))}`,browseblobtemplate:({domain:l,project:d,committish:te,path:re,hashformat:ie})=>`https://${l}/${d}${f(`/`,m(te))}${f(`#`,ie(re))}`,docstemplate:({domain:l,project:d,committish:te})=>`https://${l}/${d}${f(`/`,m(te))}`,httpstemplate:({domain:l,project:d,committish:m})=>`git+https://${l}/${d}.git${f(`#`,m)}`,filetemplate:({user:l,project:d,committish:te,path:re})=>`https://gist.githubusercontent.com/${l}/${d}/raw${f(`/`,m(te))}/${re}`,shortcuttemplate:({type:l,project:d,committish:m})=>`${l}:${d}${f(`#`,m)}`,pathtemplate:({project:l,committish:d})=>`${l}${f(`#`,d)}`,bugstemplate:({domain:l,project:d})=>`https://${l}/${d}`,gittemplate:({domain:l,project:d,committish:m})=>`git://${l}/${d}.git${f(`#`,m)}`,tarballtemplate:({project:l,committish:d})=>`https://codeload.github.com/gist/${l}/tar.gz/${m(d||`HEAD`)}`,extract:l=>{let[,d,f,m]=l.pathname.split(`/`,4);if(m!==`raw`){if(!f){if(!d)return;f=d,d=null}return f.endsWith(`.git`)&&(f=f.slice(0,-4)),{user:d,project:f,committish:l.hash.slice(1)}}},hashformat:function(l){return l&&`file-`+te(l)}},ie.sourcehut={protocols:[`git+ssh:`,`https:`],domain:`git.sr.ht`,treepath:`tree`,blobpath:`tree`,filetemplate:({domain:l,user:d,project:f,committish:te,path:re})=>`https://${l}/${d}/${f}/blob/${m(te)||`HEAD`}/${re}`,httpstemplate:({domain:l,user:d,project:m,committish:te})=>`https://${l}/${d}/${m}${f(`#`,te)}`,tarballtemplate:({domain:l,user:d,project:f,committish:te})=>`https://${l}/${d}/${f}/archive/${m(te)||`HEAD`}.tar.gz`,bugstemplate:()=>null,extract:l=>{let[,d,f,m]=l.pathname.split(`/`,4);if(![`archive`].includes(m)&&(f&&f.endsWith(`.git`)&&(f=f.slice(0,-4)),!(!d||!f)))return{user:d,project:f,committish:l.hash.slice(1)}}};for(let[l,d]of Object.entries(ie))ie[l]=Object.assign({},re,d);d.exports=ie})),require_parse_url=__commonJSMin(((l,d)=>{let f=__require$1(`url`),m=(l,d,f)=>{let m=l.indexOf(f);return l.lastIndexOf(d,m>-1?m:1/0)},te=l=>{try{return new f.URL(l)}catch{}},re=(l,d)=>{let f=l.indexOf(`:`),m=l.slice(0,f+1);if(Object.prototype.hasOwnProperty.call(d,m)||l.substr(f,3)===`://`)return l;let te=l.indexOf(`@`);return te>-1?te>f?`git+ssh://${l}`:l:`${l.slice(0,f+1)}//${l.slice(f+1)}`},ie=l=>{let d=m(l,`@`,`#`),f=m(l,`:`,`#`);return f>d&&(l=l.slice(0,f)+`/`+l.slice(f+1)),m(l,`:`,`#`)===-1&&l.indexOf(`//`)===-1&&(l=`git+ssh://${l}`),l};d.exports=(l,d)=>{let f=d?re(l,d):l;return te(f)||te(ie(f))}})),require_from_url=__commonJSMin(((l,d)=>{let f=require_parse_url(),m=l=>{let d=l.indexOf(`#`),f=l.indexOf(`/`),m=l.indexOf(`/`,f+1),te=l.indexOf(`:`),re=/\s/.exec(l),ie=l.indexOf(`@`),ae=!re||d>-1&&re.index>d,oe=ie===-1||d>-1&&ie>d,se=te===-1||d>-1&&te>d,ce=m===-1||d>-1&&m>d,le=f>0,ue=d>-1?l[d-1]!==`/`:!l.endsWith(`/`),de=!l.startsWith(`.`);return ae&&le&&ue&&de&&oe&&se&&ce};d.exports=(l,d,{gitHosts:te,protocols:re})=>{if(!l)return;let ie=f(m(l)?`github:${l}`:l,re);if(!ie)return;let ae=te.byShortcut[ie.protocol],oe=te.byDomain[ie.hostname.startsWith(`www.`)?ie.hostname.slice(4):ie.hostname],se=ae||oe;if(!se)return;let ce=te[ae||oe],le=null;re[ie.protocol]?.auth&&(ie.username||ie.password)&&(le=`${ie.username}${ie.password?`:`+ie.password:``}`);let ue=null,de=null,fe=null,pe=null;try{if(ae){let l=ie.pathname.startsWith(`/`)?ie.pathname.slice(1):ie.pathname,d=l.indexOf(`@`);d>-1&&(l=l.slice(d+1));let f=l.lastIndexOf(`/`);f>-1?(de=decodeURIComponent(l.slice(0,f)),de||=null,fe=decodeURIComponent(l.slice(f+1))):fe=decodeURIComponent(l),fe.endsWith(`.git`)&&(fe=fe.slice(0,-4)),ie.hash&&(ue=decodeURIComponent(ie.hash.slice(1))),pe=`shortcut`}else{if(!ce.protocols.includes(ie.protocol))return;let l=ce.extract(ie);if(!l)return;de=l.user&&decodeURIComponent(l.user),fe=decodeURIComponent(l.project),ue=decodeURIComponent(l.committish),pe=re[ie.protocol]?.name||ie.protocol.slice(0,-1)}}catch(l){if(l instanceof URIError)return;throw l}return[se,de,le,fe,ue,pe,d]}})),require_lib$9=__commonJSMin(((l,d)=>{let{LRUCache:f}=require_index_min(),m=require_hosts(),te=require_from_url(),re=require_parse_url(),ie=new f({max:1e3});function ae(l){try{let{protocol:d,hostname:f,pathname:m}=new URL(l);return f?`${/(?:git\+)http:$/.test(d)?`http:`:`https:`}//${f}${m.replace(/\.git$/,``)}`:null}catch{return null}}var oe=class l{constructor(d,f,m,te,re,ie,ae={}){Object.assign(this,l.#e[d],{type:d,user:f,auth:m,project:te,committish:re,default:ie,opts:ae})}static#e={byShortcut:{},byDomain:{}};static#t={"git+ssh:":{name:`sshurl`},"ssh:":{name:`sshurl`},"git+https:":{name:`https`,auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(d,f){l.#e[d]=f,l.#e.byDomain[f.domain]=d,l.#e.byShortcut[`${d}:`]=d,l.#t[`${d}:`]={name:d}}static fromUrl(d,f){if(typeof d!=`string`)return;let m=d+JSON.stringify(f||{});if(!ie.has(m)){let re=te(d,f,{gitHosts:l.#e,protocols:l.#t});ie.set(m,re?new l(...re):void 0)}return ie.get(m)}static fromManifest(d,f={}){if(!d||typeof d!=`object`)return;let m=d.repository,te=m&&(typeof m==`string`?m:typeof m==`object`&&typeof m.url==`string`?m.url:null);if(!te)throw Error(`no repository`);let re=te&&l.fromUrl(te.replace(/^git\+/,``),f)||null;if(re)return re;let ie=ae(te);return l.fromUrl(ie,f)||ie}static parseUrl(l){return re(l)}#n(l,d){if(typeof l!=`function`)return null;let f={...this,...this.opts,...d};f.path||=``,f.path.startsWith(`/`)&&(f.path=f.path.slice(1)),f.noCommittish&&(f.committish=null);let m=l(f);return f.noGitPlus&&m.startsWith(`git+`)?m.slice(4):m}hash(){return this.committish?`#${this.committish}`:``}ssh(l){return this.#n(this.sshtemplate,l)}sshurl(l){return this.#n(this.sshurltemplate,l)}browse(l,...d){return typeof l==`string`?typeof d[0]==`string`?this.#n(this.browsetreetemplate,{...d[1],fragment:d[0],path:l}):this.#n(this.browsetreetemplate,{...d[0],path:l}):this.#n(this.browsetemplate,l)}browseFile(l,...d){return typeof d[0]==`string`?this.#n(this.browseblobtemplate,{...d[1],fragment:d[0],path:l}):this.#n(this.browseblobtemplate,{...d[0],path:l})}docs(l){return this.#n(this.docstemplate,l)}bugs(l){return this.#n(this.bugstemplate,l)}https(l){return this.#n(this.httpstemplate,l)}git(l){return this.#n(this.gittemplate,l)}shortcut(l){return this.#n(this.shortcuttemplate,l)}path(l){return this.#n(this.pathtemplate,l)}tarball(l){return this.#n(this.tarballtemplate,{...l,noCommittish:!1})}file(l,d){return this.#n(this.filetemplate,{...d,path:l})}edit(l,d){return this.#n(this.edittemplate,{...d,path:l})}getDefaultRepresentation(){return this.default}toString(l){return this.default&&typeof this[this.default]==`function`?this[this.default](l):this.sshurl(l)}};for(let[l,d]of Object.entries(m))oe.addHost(l,d);d.exports=oe})),require_extract_description=__commonJSMin(((l,d)=>{d.exports=f;function f(l){if(!l||l===`ERROR: No README data found!`)return;l=l.trim().split(`
119
+ `);let d=0;for(;l[d]&&l[d].trim().match(/^(#|$)/);)d++;let f=l.length,m=d+1;for(;m<f&&l[m].trim();)m++;return l.slice(d,m).join(` `).trim()}})),require_typos=__commonJSMin(((l,d)=>{d.exports={topLevel:{dependancies:`dependencies`,dependecies:`dependencies`,depdenencies:`dependencies`,devEependencies:`devDependencies`,depends:`dependencies`,"dev-dependencies":`devDependencies`,devDependences:`devDependencies`,devDepenencies:`devDependencies`,devdependencies:`devDependencies`,repostitory:`repository`,repo:`repository`,prefereGlobal:`preferGlobal`,hompage:`homepage`,hampage:`homepage`,autohr:`author`,autor:`author`,contributers:`contributors`,publicationConfig:`publishConfig`,script:`scripts`},bugs:{web:`url`,name:`url`},script:{server:`start`,tests:`test`}}})),require_fixer=__commonJSMin(((l,d)=>{var{URL:f}=__require$1(`node:url`),m=require_valid$1(),te=require_clean(),re=require_validate_npm_package_license(),ie=require_lib$9(),{isBuiltin:ae}=__require$1(`node:module`),oe=[`dependencies`,`devDependencies`,`optionalDependencies`],se=require_extract_description(),ce=require_typos(),le=l=>l.includes(`@`)&&l.indexOf(`@`)<l.lastIndexOf(`.`);d.exports={warn:function(){},fixRepositoryField:function(l){if(l.repositories&&(this.warn(`repositories`),l.repository=l.repositories[0]),!l.repository)return this.warn(`missingRepository`);typeof l.repository==`string`&&(l.repository={type:`git`,url:l.repository});var d=l.repository.url||``;if(d){var f=ie.fromUrl(d);f&&(d=l.repository.url=f.getDefaultRepresentation()===`shortcut`?f.https():f.toString())}d.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn(`brokenGitUrl`,d)},fixTypos:function(l){Object.keys(ce.topLevel).forEach(function(d){Object.prototype.hasOwnProperty.call(l,d)&&this.warn(`typo`,d,ce.topLevel[d])},this)},fixScriptsField:function(l){if(l.scripts){if(typeof l.scripts!=`object`){this.warn(`nonObjectScripts`),delete l.scripts;return}Object.keys(l.scripts).forEach(function(d){typeof l.scripts[d]==`string`?ce.script[d]&&!l.scripts[ce.script[d]]&&this.warn(`typo`,d,ce.script[d],`scripts`):(this.warn(`nonStringScript`),delete l.scripts[d])},this)}},fixFilesField:function(l){var d=l.files;d&&!Array.isArray(d)?(this.warn(`nonArrayFiles`),delete l.files):l.files&&=l.files.filter(function(l){return!l||typeof l!=`string`?(this.warn(`invalidFilename`,l),!1):!0},this)},fixBinField:function(l){if(l.bin&&typeof l.bin==`string`){var d={},f;(f=l.name.match(/^@[^/]+[/](.*)$/))?d[f[1]]=l.bin:d[l.name]=l.bin,l.bin=d}},fixManField:function(l){l.man&&typeof l.man==`string`&&(l.man=[l.man])},fixBundleDependenciesField:function(l){var d=`bundledDependencies`,f=`bundleDependencies`;l[d]&&!l[f]&&(l[f]=l[d],delete l[d]),l[f]&&!Array.isArray(l[f])?(this.warn(`nonArrayBundleDependencies`),delete l[f]):l[f]&&(l[f]=l[f].filter(function(d){return!d||typeof d!=`string`?(this.warn(`nonStringBundleDependency`,d),!1):(l.dependencies||={},Object.prototype.hasOwnProperty.call(l.dependencies,d)||(this.warn(`nonDependencyBundleDependency`,d),l.dependencies[d]=`*`),!0)},this))},fixDependencies:function(l){ve(l,this.warn),ge(l,this.warn),this.fixBundleDependenciesField(l),[`dependencies`,`devDependencies`].forEach(function(d){if(d in l){if(!l[d]||typeof l[d]!=`object`){this.warn(`nonObjectDependencies`,d),delete l[d];return}Object.keys(l[d]).forEach(function(f){var m=l[d][f];typeof m!=`string`&&(this.warn(`nonStringDependency`,f,JSON.stringify(m)),delete l[d][f]);var te=ie.fromUrl(l[d][f]);te&&(l[d][f]=te.toString())},this)}},this)},fixModulesField:function(l){l.modules&&(this.warn(`deprecatedModules`),delete l.modules)},fixKeywordsField:function(l){typeof l.keywords==`string`&&(l.keywords=l.keywords.split(/,\s+/)),l.keywords&&!Array.isArray(l.keywords)?(delete l.keywords,this.warn(`nonArrayKeywords`)):l.keywords&&=l.keywords.filter(function(l){return typeof l!=`string`||!l?(this.warn(`nonStringKeyword`),!1):!0},this)},fixVersionField:function(l,d){var f=!d;if(!l.version)return l.version=``,!0;if(!m(l.version,f))throw Error(`Invalid version: "`+l.version+`"`);return l.version=te(l.version,f),!0},fixPeople:function(l){pe(l,me),pe(l,he)},fixNameField:function(l,d){typeof d==`boolean`?d={strict:d}:d===void 0&&(d={});var f=d.strict;if(!l.name&&!f){l.name=``;return}if(typeof l.name!=`string`)throw Error(`name field must be a string.`);f||(l.name=l.name.trim()),fe(l.name,f,d.allowLegacyCase),ae(l.name)&&this.warn(`conflictingName`,l.name)},fixDescriptionField:function(l){l.description&&typeof l.description!=`string`&&(this.warn(`nonStringDescription`),delete l.description),l.readme&&!l.description&&(l.description=se(l.readme)),l.description===void 0&&delete l.description,l.description||this.warn(`missingDescription`)},fixReadmeField:function(l){l.readme||=(this.warn(`missingReadme`),`ERROR: No README data found!`)},fixBugsField:function(l){if(!l.bugs&&l.repository&&l.repository.url){var d=ie.fromUrl(l.repository.url);d&&d.bugs()&&(l.bugs={url:d.bugs()})}else if(l.bugs){if(typeof l.bugs==`string`)le(l.bugs)?l.bugs={email:l.bugs}:f.canParse(l.bugs)?l.bugs={url:l.bugs}:this.warn(`nonEmailUrlBugsString`);else{ye(l.bugs,this.warn);var m=l.bugs;l.bugs={},m.url&&(f.canParse(m.url)?l.bugs.url=m.url:this.warn(`nonUrlBugsUrlField`)),m.email&&(typeof m.email==`string`&&le(m.email)?l.bugs.email=m.email:this.warn(`nonEmailBugsEmailField`))}!l.bugs.email&&!l.bugs.url&&(delete l.bugs,this.warn(`emptyNormalizedBugs`))}},fixHomepageField:function(l){if(!l.homepage&&l.repository&&l.repository.url){var d=ie.fromUrl(l.repository.url);d&&d.docs()&&(l.homepage=d.docs())}if(l.homepage){if(typeof l.homepage!=`string`)return this.warn(`nonUrlHomepage`),delete l.homepage;f.canParse(l.homepage)||(l.homepage=`http://`+l.homepage)}},fixLicenseField:function(l){let d=l.license||l.licence;if(!d)return this.warn(`missingLicense`);if(typeof d!=`string`||d.length<1||d.trim()===``||!re(d).validForNewPackages)return this.warn(`invalidLicense`)}};function ue(l){if(l.charAt(0)!==`@`)return!1;var d=l.slice(1).split(`/`);return d.length===2?d[0]&&d[1]&&d[0]===encodeURIComponent(d[0])&&d[1]===encodeURIComponent(d[1]):!1}function de(l){return!l.match(/[/@\s+%:]/)&&l===encodeURIComponent(l)}function fe(l,d,f){if(l.charAt(0)===`.`||!(ue(l)||de(l))||d&&!f&&l!==l.toLowerCase()||l.toLowerCase()===`node_modules`||l.toLowerCase()===`favicon.ico`)throw Error(`Invalid name: `+JSON.stringify(l))}function pe(l,d){return l.author&&=d(l.author),[`maintainers`,`contributors`].forEach(function(f){Array.isArray(l[f])&&(l[f]=l[f].map(d))}),l}function me(l){if(typeof l==`string`)return l;var d=l.name||``,f=l.url||l.web,m=f?` (`+f+`)`:``,te=l.email||l.mail;return d+(te?` <`+te+`>`:``)+m}function he(l){if(typeof l!=`string`)return l;var d=l.match(/^([^(<]+)/),f=l.match(/\(([^()]+)\)/),m=l.match(/<([^<>]+)>/),te={};return d&&d[0].trim()&&(te.name=d[0].trim()),m&&(te.email=m[1]),f&&(te.url=f[1]),te}function ge(l){var d=l.optionalDependencies;if(d){var f=l.dependencies||{};Object.keys(d).forEach(function(l){f[l]=d[l]}),l.dependencies=f}}function _e(l,d,f){if(!l)return{};if(typeof l==`string`&&(l=l.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(l))return l;f(`deprecatedArrayDependencies`,d);var m={};return l.filter(function(l){return typeof l==`string`}).forEach(function(l){l=l.trim().split(/(:?[@\s><=])/);var d=l.shift(),f=l.join(``);f=f.trim(),f=f.replace(/^@/,``),m[d]=f}),m}function ve(l,d){oe.forEach(function(f){l[f]&&(l[f]=_e(l[f],f,d))})}function ye(l,d){l&&Object.keys(l).forEach(function(f){ce.bugs[f]&&(d(`typo`,f,ce.bugs[f],`bugs`),l[ce.bugs[f]]=l[f],delete l[f])})}})),require_warning_messages=__commonJSMin(((l,d)=>{d.exports={repositories:`'repositories' (plural) Not supported. Please pick one as the 'repository' field`,missingRepository:`No repository field.`,brokenGitUrl:`Probably broken git url: %s`,nonObjectScripts:`scripts must be an object`,nonStringScript:`script values must be string commands`,nonArrayFiles:`Invalid 'files' member`,invalidFilename:`Invalid filename in 'files' list: %s`,nonArrayBundleDependencies:`Invalid 'bundleDependencies' list. Must be array of package names`,nonStringBundleDependency:`Invalid bundleDependencies member: %s`,nonDependencyBundleDependency:`Non-dependency in bundleDependencies: %s`,nonObjectDependencies:`%s field must be an object`,nonStringDependency:`Invalid dependency: %s %s`,deprecatedArrayDependencies:`specifying %s as array is deprecated`,deprecatedModules:`modules field is deprecated`,nonArrayKeywords:`keywords should be an array of strings`,nonStringKeyword:`keywords should be an array of strings`,conflictingName:`%s is also the name of a node core module.`,nonStringDescription:`'description' field should be a string`,missingDescription:`No description`,missingReadme:`No README data`,missingLicense:`No license field.`,nonEmailUrlBugsString:`Bug string field must be url, email, or {email,url}`,nonUrlBugsUrlField:`bugs.url field must be a string url. Deleted.`,nonEmailBugsEmailField:`bugs.email field must be a string email. Deleted.`,emptyNormalizedBugs:`Normalized value of bugs field is an empty object. Deleted.`,nonUrlHomepage:`homepage field must be a string url. Deleted.`,invalidLicense:`license should be a valid SPDX license expression`,typo:`%s should probably be %s.`}})),require_make_warning=__commonJSMin(((l,d)=>{var f=__require$1(`util`),m=require_warning_messages();d.exports=function(){var l=Array.prototype.slice.call(arguments,0),d=l.shift();if(d===`typo`)return te.apply(null,l);var re=m[d]?m[d]:d+`: '%s'`;return l.unshift(re),f.format.apply(null,l)};function te(l,d,te){return te&&(l=te+`['`+l+`']`,d=te+`['`+d+`']`),f.format(m.typo,l,d)}})),require_normalize=__commonJSMin(((l,d)=>{d.exports=ae;var f=require_fixer();ae.fixer=f;var m=require_make_warning(),te=[`name`,`version`,`description`,`repository`,`modules`,`scripts`,`files`,`bin`,`man`,`bugs`,`keywords`,`readme`,`homepage`,`license`],re=[`dependencies`,`people`,`typos`],ie=te.map(function(l){return oe(l)+`Field`});ie=ie.concat(re);function ae(l,d,te){d===!0&&(d=null,te=!0),te||=!1,(!d||l.private)&&(d=function(){}),l.scripts&&l.scripts.install===`node-gyp rebuild`&&!l.scripts.preinstall&&(l.gypfile=!0),f.warn=function(){d(m.apply(null,arguments))},ie.forEach(function(d){f[`fix`+oe(d)](l,te)}),l._id=l.name+`@`+l.version}function oe(l){return l.charAt(0).toUpperCase()+l.slice(1)}})),import_normalize=__toESM(require_normalize(),1);const execFileOriginal=promisify(execFile);function toPath$1(l){return l instanceof URL?fileURLToPath$1(l):l}const getPackagePath=l=>path.resolve(toPath$1(l)??`.`,`package.json`),_readPackage=(l,d)=>{let f=typeof l==`string`?parseJson(l):l;return d&&(0,import_normalize.default)(f),f};function readPackageSync({cwd:l,normalize:d=!0}={}){return _readPackage(fs.readFileSync(getPackagePath(l),`utf8`),d)}function parsePackage(l,{normalize:d=!0}={}){let f=typeof l==`object`&&!!l&&!Array.isArray(l);if(!f&&typeof l!=`string`)throw TypeError("`packageFile` should be either an `object` or a `string`.");return _readPackage(f?structuredClone(l):l,d)}function readPackageUpSync(l){let d=findUpSync(`package.json`,l);if(d)return{packageJson:readPackageSync({...l,cwd:path.dirname(d)}),path:d}}const defaultColumns=80,defaultRows=24,exec=(l,d,{shell:f,env:m}={})=>execFileSync(l,d,{encoding:`utf8`,stdio:[`ignore`,`pipe`,`ignore`],timeout:500,shell:f,env:m}).trim(),create=(l,d)=>({columns:Number.parseInt(l,10),rows:Number.parseInt(d,10)}),createIfNotDefault=(l,d)=>{let{columns:f,rows:m}=create(l,d);if(!(Number.isNaN(f)||Number.isNaN(m))&&!(f===defaultColumns&&m===defaultRows))return{columns:f,rows:m}},isForegroundProcess=()=>{if(process$1.platform!==`linux`)return!0;try{let l=fs.readFileSync(`/proc/self/stat`,`utf8`),d=l.lastIndexOf(`) `);if(d===-1)return!1;let f=l.slice(d+2).trim().split(/\s+/),m=Number.parseInt(f[2],10),te=Number.parseInt(f[5],10);return Number.isNaN(m)||Number.isNaN(te)||te<=0?!1:m===te}catch{return!1}};function terminalSize(){let{env:l,stdout:d,stderr:f}=process$1;if(d?.columns&&d?.rows)return create(d.columns,d.rows);if(f?.columns&&f?.rows)return create(f.columns,f.rows);if(l.COLUMNS&&l.LINES)return create(l.COLUMNS,l.LINES);let m={columns:defaultColumns,rows:defaultRows};return process$1.platform===`win32`?tput()??m:process$1.platform===`darwin`?devTty()??tput()??m:devTty()??tput()??resize()??m}const devTty=()=>{try{let l=process$1.platform===`darwin`?fs.constants.O_EVTONLY|fs.constants.O_NONBLOCK:fs.constants.O_NONBLOCK,{columns:d,rows:f}=tty.WriteStream(fs.openSync(`/dev/tty`,l));return{columns:d,rows:f}}catch{}},tput=()=>{try{let l=exec(`tput`,[`cols`],{env:{TERM:`dumb`,...process$1.env}}),d=exec(`tput`,[`lines`],{env:{TERM:`dumb`,...process$1.env}});if(l&&d)return createIfNotDefault(l,d)}catch{}},resize=()=>{try{if(!isForegroundProcess())return;let l=exec(`resize`,[`-u`]).match(/\d+/g);if(l.length===2)return createIfNotDefault(l[0],l[1])}catch{}};let homeDirectory,currentUser;function untildify(l){if(typeof l!=`string`)throw TypeError(`Expected a string, got ${typeof l}`);if(homeDirectory===void 0&&(homeDirectory=os.homedir()),homeDirectory&&/^~(?=$|\/|\\)/.test(l))return l.replace(/^~/,homeDirectory);let d=l.match(/^~([^/\\]+)(.*)/);if(d&&(currentUser===void 0&&(currentUser=os.userInfo().username),currentUser)){let l=d[1],f=d[2];if(l===currentUser)return homeDirectory+f}return l}var require_enums=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Frequency=l.KeepLogFiles=void 0,(function(l){l[l.days=1]=`days`,l[l.fileCount=2]=`fileCount`})(l.KeepLogFiles||={}),(function(l){l[l.daily=1]=`daily`,l[l.minutes=2]=`minutes`,l[l.hours=3]=`hours`,l[l.date=4]=`date`,l[l.none=5]=`none`})(l.Frequency||={})})),require_DefaultOptions=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0});let d=require_enums();l.default=class{static fileStreamRotatorOptions(l){return Object.assign(Object.assign({},{filename:``,verbose:!1,end_stream:!1,utc:!1,create_symlink:!1,symlink_name:`current.log`}),l)}static fileOptions(l){return Object.assign(Object.assign({},{flags:`a`}),l)}static auditSettings(l){let f={keepSettings:{type:d.KeepLogFiles.fileCount,amount:10},auditFilename:`audit.json`,hashType:`md5`,extension:``,files:[]};return Object.assign(Object.assign({},f),l)}static rotationSettings(l){let f={filename:``,frequency:d.Frequency.none,utc:!1};return Object.assign(Object.assign({},f),l)}static extractParam(l,d=!0){let f=l.toString().match(/(\w)$/),m={number:0};f?.length==2&&(m.letter=f[1].toLowerCase());let te=l.toString().match(/^(\d+)/);return te?.length==2&&(m.number=Number(te[1])),m}}})),require_helper=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Logger=l.makeDirectory=void 0;let d=__require$1(`fs`),f=__require$1(`path`);function m(l){if(l.trim()!==``){var m=f.dirname(l);try{d.mkdirSync(m,{recursive:!0})}catch(l){if(l.code!==`EEXIST`)throw l}}}l.makeDirectory=m,l.Logger=class l{constructor(){this.isVerbose=!1,this.allowDebug=!1}static getInstance(d,f){return l.instance||(l.instance=new l,l.instance.isVerbose=d??!1,l.instance.allowDebug=f??!1),l.instance}static verbose(...d){l.getInstance().isVerbose&&console.log.apply(null,[new Date,`[FileStreamRotator:VERBOSE]`,...d])}static log(...l){console.log.apply(null,[new Date,`[FileStreamRotator]`,...l])}static debug(...d){l.getInstance().allowDebug&&console.debug.apply(null,[new Date,`[FileStreamRotator:DEBUG]`,...d])}}})),require_Rotator=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0});let d=__require$1(`fs`),f=require_enums(),m=require_helper();l.default=class l{constructor(l,d){var te;switch(this.currentSize=0,this.lastDate=``,this.fileIndx=0,this.settings=l,this.settings.frequency){case f.Frequency.hours:this.settings.amount&&this.settings.amount<13?this.settings.amount&&this.settings.amount>0||(this.settings.amount=1):this.settings.amount=12,this.isFormatValidForHour()||(m.Logger.log(`Date format not suitable for X hours rotation. Changing date format to 'YMDHm'`),this.settings.format=`YMDHm`);break;case f.Frequency.minutes:this.settings.amount&&this.settings.amount<31?this.settings.amount&&this.settings.amount>0||(this.settings.amount=1):this.settings.amount=30,this.isFormatValidForMinutes()||(this.settings.format=`YMDHm`,m.Logger.log(`Date format not suitable for X minutes rotation. Changing date format to 'YMDHm'`));break;case f.Frequency.daily:this.isFormatValidForDaily()||(this.settings.format=`YMD`,m.Logger.log(`Date format not suitable for daily rotation. Changing date format to 'YMD'`));break}if(this.settings.frequency!==f.Frequency.none&&!this.settings.filename.match(`%DATE%`)&&(this.settings.filename+=`.%DATE%`,m.Logger.log(`Appending date to the end of the filename`)),this.lastDate=this.getDateString(),this.settings.maxSize&&d){let l=new Date(d.date),f=this.settings.extension??``;if(m.Logger.debug(this.getDateString(l)==this.getDateString(new Date),this.getDateString(l),this.getDateString(new Date)),this.getDateString(l)==this.getDateString(new Date)){let te=d.name.match(RegExp(`(\\d+)`+f.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)));te&&(this.fileIndx=Number(te[1]));var re=this.getSizeForFile(this.getNewFilename());re&&(this.currentSize=re),this.lastDate=this.getDateString(l),m.Logger.debug(`LOADED LAST ENTRY`,this.currentSize,this.lastDate,this.fileIndx)}else{var re=this.getSizeForFile(this.getNewFilename());re&&(this.currentSize=re),m.Logger.debug(`CURRENT FILE:`,this.getNewFilename(),this.currentSize)}}}getSizeForFile(l){try{if(d.existsSync(l)){var f=d.statSync(this.getNewFilename());if(f)return f.size}}catch{return}}hasMaxSizeReached(){return this.settings.maxSize?this.currentSize>this.settings.maxSize:!1}shouldRotate(){let l=this.hasMaxSizeReached();switch(this.settings.frequency){case f.Frequency.none:return l;case f.Frequency.hours:case f.Frequency.minutes:case f.Frequency.date:case f.Frequency.daily:default:let d=this.getDateString();return this.lastDate==d?l:!0}}isFormatValidForDaily(){let l=new Date(2022,2,20,1,2,3),d=new Date(2022,2,20,23,55,45),f=new Date(2022,2,21,2,55,45);return this.getDateString(l)===this.getDateString(d)&&this.getDateString(l)!==this.getDateString(f)}isFormatValidForHour(){if(!this.settings.amount||this.settings.frequency!=f.Frequency.hours)return!1;let l=new Date(2022,2,20,1,2,3),d=new Date(2022,2,20,2+this.settings.amount,55,45);return this.getDateString(l)!==this.getDateString(d)}isFormatValidForMinutes(){if(!this.settings.amount||this.settings.frequency!=f.Frequency.minutes)return!1;let l=new Date(2022,2,20,1,2,3),d=new Date(2022,2,20,1,2+this.settings.amount,45);return this.getDateString(l)!==this.getDateString(d)}getDateString(d){let m=d||new Date,te=l.getDateComponents(m,this.settings.utc),re=this.settings.format;if(re){switch(this.settings.frequency){case f.Frequency.hours:this.settings.amount&&(te.hour=Math.floor(te.hour/this.settings.amount)*this.settings.amount,te.minute=0,te.second=0);case f.Frequency.minutes:this.settings.amount&&(te.minute=Math.floor(te.minute/this.settings.amount)*this.settings.amount,te.second=0)}return re?.replace(/D+/,te.day.toString().padStart(2,`0`)).replace(/M+/,te.month.toString().padStart(2,`0`)).replace(/Y+/,te.year.toString()).replace(/H+/,te.hour.toString().padStart(2,`0`)).replace(/m+/,te.minute.toString().padStart(2,`0`)).replace(/s+/,te.second.toString().padStart(2,`0`)).replace(/A+/,te.hour>11?`PM`:`AM`)}return``}getFilename(l,d){return l.replace(`%DATE%`,this.lastDate)+(this.settings.maxSize||this.fileIndx>0?`.`+this.fileIndx:``)+(d||``)}getNewFilename(){return this.getFilename(this.settings.filename,this.settings.extension)}addBytes(l){this.currentSize+=l}rotate(l=!1){return l?(this.fileIndx+=1,this.currentSize=0,this.lastDate=this.getDateString()):this.shouldRotate()&&(this.hasMaxSizeReached()?this.fileIndx+=1:this.fileIndx=0,this.currentSize=0,this.lastDate=this.getDateString()),this.getNewFilename()}static getDateComponents(l,d){return d?{day:l.getUTCDate(),month:l.getUTCMonth()+1,year:l.getUTCFullYear(),hour:l.getUTCHours(),minute:l.getUTCMinutes(),second:l.getUTCSeconds(),utc:d,source:l}:{day:l.getDate(),month:l.getMonth()+1,year:l.getFullYear(),hour:l.getHours(),minute:l.getMinutes(),second:l.getSeconds(),utc:d,source:l}}static createDate(l,d){return d&&new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second)),new Date(l.year,l.month,l.day,l.hour,l.minute,l.second)}}})),require_AuditManager=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0});let d=__require$1(`fs`),f=__require$1(`path`),m=require_enums(),te=require_helper(),re=__require$1(`crypto`);l.default=class{constructor(l,d){this.config=l,this.emitter=d,this.loadLog()}loadLog(){var l;if(!this.config.keepSettings||this.config.keepSettings?.amount==0||!this.config.auditFilename||this.config.auditFilename==``){te.Logger.verbose(`no existing audit settings found`,this.config);return}try{let l=f.resolve(this.config.auditFilename),m=JSON.parse(d.readFileSync(l,{encoding:`utf-8`}));this.config.files=m.files}catch(l){if(l.code!==`ENOENT`){te.Logger.log(`Failed to load config file`,l);return}}}writeLog(){if(this.config.auditFilename)try{(0,te.makeDirectory)(this.config.auditFilename),d.writeFileSync(this.config.auditFilename,JSON.stringify(this.config,null,4))}catch(l){te.Logger.verbose(`ERROR: Failed to store log audit`,l)}}addLog(l){var d;if(!this.config.keepSettings||this.config.keepSettings?.amount==0||!this.config.auditFilename||this.config.auditFilename==``){te.Logger.verbose(`audit log missing`);return}if(this.config.files.findIndex(d=>d.name===l)!==-1){te.Logger.debug(`file already in the log`,l);return}var f=Date.now();if(this.config.files.push({date:f,name:l,hash:re.createHash(this.config.hashType).update(l+`LOG_FILE`+f).digest(`hex`)}),te.Logger.debug(`added file ${l} to log`),this.config.keepSettings&&this.config.keepSettings.amount){if(this.config.keepSettings.type==m.KeepLogFiles.days){let l=Date.now()-86400*this.config.keepSettings.amount*1e3,d=this.config.files.filter(d=>{if(d.date>=l)return!0;this.removeLog(d)});this.config.files=d}else if(this.config.files.length>this.config.keepSettings.amount){var ie=this.config.files.splice(-this.config.keepSettings.amount);this.config.files.length>0&&this.config.files.filter(l=>(this.removeLog(l),!1)),this.config.files=ie}}this.writeLog()}removeLog(l){if(l.hash===re.createHash(this.config.hashType).update(l.name+`LOG_FILE`+l.date).digest(`hex`))try{d.existsSync(l.name)&&(te.Logger.debug(`removing log file`,l.name),d.unlinkSync(l.name),this.emitter.emit(`logRemoved`,l.name))}catch{te.Logger.verbose(`Could not remove old log file: `,l.name)}else te.Logger.debug(`incorrect hash`,l.name,l.hash,re.createHash(this.config.hashType).update(l.name+`LOG_FILE`+l.date).digest(`hex`))}}})),require_FileStreamRotator=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0});let d=__require$1(`node:stream`),f=__require$1(`fs`),m=__require$1(`path`),te=require_enums(),re=require_DefaultOptions(),ie=require_Rotator(),ae=require_AuditManager(),oe=require_helper();l.default=class l extends d.EventEmitter{constructor(l,d=!1){var f,m;super(),this.config={},this.config=this.parseOptions(l),oe.Logger.getInstance(l.verbose,d),this.auditManager=new ae.default(this.config.auditSettings??re.default.auditSettings({}),this);let te=this.auditManager.config.files.slice(-1).shift();this.rotator=new ie.default(this.config.rotationSettings??re.default.rotationSettings({}),te),this.rotate()}static getStream(d){return new l(d)}parseOptions(l){var d,f,m,ae;let oe={};oe.options=re.default.fileStreamRotatorOptions(l),oe.fileOptions=re.default.fileOptions(l.file_options??{});let se=re.default.auditSettings({});if(l.audit_file&&(se.auditFilename=l.audit_file),l.audit_hash_type&&(se.hashType=l.audit_hash_type),l.extension&&(se.extension=l.extension),l.max_logs){let d=re.default.extractParam(l.max_logs);se.keepSettings={type:d.letter?.toLowerCase()==`d`?te.KeepLogFiles.days:te.KeepLogFiles.fileCount,amount:d.number}}switch(oe.auditSettings=se,oe.rotationSettings=re.default.rotationSettings({filename:l.filename,extension:l.extension}),l.date_format&&!l.frequency?oe.rotationSettings.frequency=te.Frequency.date:oe.rotationSettings.frequency=te.Frequency.none,l.date_format&&(oe.rotationSettings.format=l.date_format),oe.rotationSettings.utc=l.utc??!1,l.frequency){case`daily`:oe.rotationSettings.frequency=te.Frequency.daily;break;case`custom`:case`date`:oe.rotationSettings.frequency=te.Frequency.date;break;case`test`:oe.rotationSettings.frequency=te.Frequency.minutes,oe.rotationSettings.amount=1;break;default:if(l.frequency){let d=re.default.extractParam(l.frequency);d.letter?.match(/^([mh])$/)&&(oe.rotationSettings.frequency=d.letter==`h`?te.Frequency.hours:te.Frequency.minutes,oe.rotationSettings.amount=d.number)}}if(l.size){let d=re.default.extractParam(l.size);switch(d.letter){case`k`:oe.rotationSettings.maxSize=d.number*1024;break;case`m`:oe.rotationSettings.maxSize=d.number*1024*1024;break;case`g`:oe.rotationSettings.maxSize=d.number*1024*1024*1024;break}}return this.rotator=new ie.default(oe.rotationSettings),this.rotator.getNewFilename(),oe}rotate(l=!1){var d;let f=this.currentFile;this.rotator.rotate(l),this.currentFile=this.rotator.getNewFilename(),this.currentFile!=f&&(this.fs&&(this.config.options?.end_stream===!0?this.fs.end():this.fs.destroy()),f&&this.auditManager.addLog(f),this.createNewLog(this.currentFile),this.emit(`new`,this.currentFile),this.emit(`rotate`,f,this.currentFile,l))}createNewLog(l){var d;(0,oe.makeDirectory)(l),this.auditManager.addLog(l);let m={};this.config.fileOptions&&(m=this.config.fileOptions),this.fs=f.createWriteStream(l,m),this.bubbleEvents(this.fs,l),this.config.options?.create_symlink&&this.createCurrentSymLink(l)}write(l,d){this.fs&&(this.rotator.shouldRotate()&&this.rotate(),this.fs.write(l,d??`utf8`),this.rotator.addBytes(Buffer.byteLength(l,d)),this.rotator.hasMaxSizeReached()&&this.rotate())}end(l){this.fs&&=(this.fs.end(l),void 0)}bubbleEvents(l,d){l.on(`close`,()=>{this.emit(`close`)}),l.on(`finish`,()=>{this.emit(`finish`)}),l.on(`error`,l=>{this.emit(`error`,l)}),l.on(`open`,l=>{this.emit(`open`,d)})}createCurrentSymLink(l){var d,te;if(!l)return;let re=this.config.options?.symlink_name??`current.log`,ie=m.dirname(l),ae=m.basename(l),se=ie+m.sep+re;try{if(f.existsSync(se)){if(f.lstatSync(se).isSymbolicLink()){f.unlinkSync(se),f.symlinkSync(ae,se);return}oe.Logger.verbose(`Could not create symlink file as file with the same name exists: `,se)}else f.symlinkSync(ae,se)}catch(l){oe.Logger.verbose(`[Could not create symlink file: `,se,` -> `,ae),oe.Logger.debug(`error creating sym link`,se,l)}}test(){return{config:this.config,rotator:this.rotator}}}})),require_lib$8=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.getStream=void 0;let d=require_FileStreamRotator();function f(l){return new d.default(l)}l.getStream=f})),import_lib$3=__toESM(require_lib$8(),1),LogFileRotationTransport=class l extends LoggerlessTransport{static activeFilenames=new Set;stream;fieldNames;delimiter;timestampFn;levelMap;compressOnRotate;isCompressing;filename;staticData;batchEnabled;batchSize;batchTimeout;batchQueue;batchTimer;isDisposing;callbacks;frequency;verbose;dateFormat;size;maxLogs;auditFile;extension;createSymlink;symlinkName;utc;auditHashType;fileOptions;fileMode;getRotatorOptions(){return{filename:this.filename,frequency:this.frequency,verbose:this.verbose??!1,date_format:this.dateFormat,size:this.size,max_logs:this.maxLogs?.toString(),audit_file:this.auditFile||void 0,end_stream:!0,extension:this.extension,create_symlink:this.createSymlink,symlink_name:this.symlinkName,utc:this.utc,audit_hash_type:this.auditHashType,file_options:{flags:`a`,encoding:`utf8`,mode:this.fileMode??416,...this.fileOptions}}}constructor(d){if(super(d),l.activeFilenames.has(d.filename))throw Error(`LogFileRotationTransport: Filename "${d.filename}" is already in use by another instance. To use the same file for multiple loggers, share the same transport instance between them.`);if(this.filename=d.filename,l.activeFilenames.add(this.filename),this.fieldNames={level:d.fieldNames?.level??`level`,message:d.fieldNames?.message??`message`,timestamp:d.fieldNames?.timestamp??`timestamp`},this.delimiter=d.delimiter??`
120
120
  `,this.timestampFn=d.timestampFn??(()=>new Date().toISOString()),this.levelMap=d.levelMap??{},this.compressOnRotate=d.compressOnRotate??!1,this.isCompressing=!1,this.batchEnabled=!!d.batch,this.batchSize=d.batch?.size??1e3,this.batchTimeout=d.batch?.timeout??5e3,this.batchQueue=[],this.batchTimer=null,this.isDisposing=!1,this.callbacks=d.callbacks,this.frequency=d.frequency,this.verbose=d.verbose,this.dateFormat=d.dateFormat,this.size=d.size,this.maxLogs=d.maxLogs,this.auditFile=d.auditFile,this.extension=d.extension,this.createSymlink=d.createSymlink,this.symlinkName=d.symlinkName,this.utc=d.utc,this.auditHashType=d.auditHashType,this.fileOptions=d.fileOptions,this.fileMode=d.fileMode,this.staticData=d.staticData,this.batchEnabled){process.on(`beforeExit`,()=>{this.isDisposing||this.flush()});let d=d=>{this.isDisposing||(this.flushSync(),l.activeFilenames.delete(this.filename),process.exit(d===`SIGINT`?130:143))};process.on(`SIGINT`,()=>d(`SIGINT`)),process.on(`SIGTERM`,()=>d(`SIGTERM`))}this.batchEnabled||this.initStream(this.getRotatorOptions())}initStream(l){if(this.stream=import_lib$3.default.getStream(l),this.callbacks){let{onRotate:l,onNew:d,onOpen:f,onClose:m,onError:te,onFinish:re,onLogRemoved:ie}=this.callbacks;this.compressOnRotate?this.stream.on(`rotate`,async(d,f)=>{try{this.isCompressing=!0;let m=await this.compressFile(d);await unlink(d),l?.(m,f)}catch(l){this.callbacks?.onError?.(l)}finally{this.isCompressing=!1}}):l&&this.stream.on(`rotate`,l),d&&this.stream.on(`new`,d),f&&this.stream.on(`open`,f),m&&this.stream.on(`close`,m),te&&this.stream.on(`error`,te),re&&this.stream.on(`finish`,re),ie&&this.stream.on(`logRemoved`,ie)}}async getUniqueCompressedFilePath(l){let d=`${l}.gz`,f=0;try{for(;;)try{await access(d),f++,d=`${l}.${Date.now()}.${f}.gz`}catch{break}}catch{d=`${l}.${Date.now()}.gz`}return d}async compressFile(l){let d=await this.getUniqueCompressedFilePath(l),f=createGzip();return await pipeline(createReadStream(l),f,createWriteStream(d)),d}flush(){if(!this.batchEnabled||this.batchQueue.length===0)return;this.batchTimer&&=(clearTimeout(this.batchTimer),null),this.stream||this.initStream(this.getRotatorOptions());let l=this.batchQueue.join(``);this.stream.write(l),this.batchQueue=[]}flushSync(){if(!this.batchEnabled||this.batchQueue.length===0)return;this.batchTimer&&=(clearTimeout(this.batchTimer),null),this.stream||this.initStream(this.getRotatorOptions());let l=this.batchQueue.join(``),d=this.stream;d.currentFile&&writeFileSync(d.currentFile,l,{flag:`a`}),this.batchQueue=[]}scheduleBatchFlush(){!this.batchTimer&&!this.isDisposing&&(this.batchTimer=setTimeout(()=>{this.flush()},this.batchTimeout),this.batchTimer.unref&&this.batchTimer.unref())}shipToLogger({logLevel:l,messages:d,data:f,hasData:m}){let te={[this.fieldNames.level]:this.levelMap[l]??l,[this.fieldNames.message]:d.join(` `)||``,[this.fieldNames.timestamp]:this.timestampFn(),...this.staticData?typeof this.staticData==`function`?this.staticData():this.staticData:{},...m?f:{}},re=`${JSON.stringify(te)}${this.delimiter}`;return this.batchEnabled?(this.batchQueue.push(re),this.batchQueue.length>=this.batchSize?this.flush():this.scheduleBatchFlush()):this.stream.write(re),d}[Symbol.dispose](){if(this.stream||this.batchEnabled){this.isDisposing=!0,this.batchTimer&&=(clearTimeout(this.batchTimer),null),this.batchEnabled&&this.flush();let d=()=>{this.isCompressing?setTimeout(d,100):(this.stream&&this.stream.end(),l.activeFilenames.delete(this.filename))};d()}}},HierarchicalContextManager=class l extends DefaultContextManager{clone(){let d=new l;return d.setContext({...this.getContext()}),d}onChildLoggerCreated(l){super.onChildLoggerCreated(l);let d=l.parentLogger.getContext().name??null;l.childContextManager.appendContext({parentNames:[...l.parentLogger.getContext().parentNames??[],d]})}};function hasOwnProperties(l){for(let d in l)return!0;return!1}function paramsToLogEntry(l,d){let{staticData:f,timestampFn:m=()=>new Date().toISOString()}=d??{},{name:te,parentNames:re,timestamp:ie,...ae}=l.context??{},oe=!(`error`in l)||l.error===null||l.error===void 0?void 0:l.error,se=!(`metadata`in l)||l.metadata===null||l.metadata===void 0||!hasOwnProperties(l.metadata)?void 0:l.metadata,ce=hasOwnProperties(ae)?ae:void 0;return Object.fromEntries(Object.entries({context:ce,error:oe,level:l.logLevel,messages:l.messages,metadata:se,name:te,parentNames:re,timestamp:ie??m(),...f?typeof f==`function`?f():f:{}}).filter(([,l])=>l!==void 0))}function paramsToJsonString(l,d){let f=paramsToLogEntry(l,d);return(f.error?stringify(f,replacer):stringify(f))??``}function replacer(l,d){return d instanceof Error?serializeError(d):d}const JSON_BASIC_TRANSPORT_CONFIG_DEFAULTS={colorize:!1,consoleDebug:!1,enabled:!0,getTerminalWidth:()=>2**53-1,id:`json-basic-transport`,inspect:defaultInspector,level:`trace`,logger:pickLogTarget(),pretty:!1},MAX_WIDTH$1=120;var JsonBasicTransport=class extends BaseTransport{config;typedTarget;constructor(l){let d=defu(l,JSON_BASIC_TRANSPORT_CONFIG_DEFAULTS);isNoColorSet()&&(d.colorize=!1),isForceColorSet()&&(d.colorize=!0),super(d),this.config=d,this.typedTarget=createLogBasicTypedTarget(this.config.logger)}shipToLogger(l){if(!this.config.enabled)return l.messages;let d=this.config.pretty||this.config.colorize?this.config.inspect(paramsToLogEntry(l),{breakLength:this.config.pretty?Math.min(this.config.getTerminalWidth(),MAX_WIDTH$1):2**53-1,colors:this.config.colorize,compact:!this.config.pretty,depth:1/0}):paramsToJsonString(l);switch(this.typedTarget.type){case`Console`:case`ConsoleLike`:switch(l.logLevel){case`debug`:case LogLevel.debug:this.typedTarget.target.debug(d);break;case`error`:case`fatal`:case LogLevel.error:case LogLevel.fatal:this.typedTarget.target.error(d);break;case`info`:case LogLevel.info:this.typedTarget.target.info(d);break;case LogLevel.trace:case`trace`:this.typedTarget.target.trace(d);break;case LogLevel.warn:case`warn`:this.typedTarget.target.warn(d);break}break;case`StreamLike`:case`StreamStderr`:case`StreamStdout`:this.typedTarget.target.write(`${d}\n`);break}return l.messages}};const PRETTY_BASIC_TRANSPORT_CONFIG_DEFAULTS={colorize:!0,consoleDebug:!1,enabled:!0,getTerminalWidth:()=>2**53-1,id:`pretty-basic-transport`,inspect:defaultInspector,level:`trace`,logger:pickLogTarget(),showLevel:!0,showName:!0,showTime:!0},MAX_WIDTH=120;var PrettyBasicTransport=class extends BaseTransport{config;typedTarget;constructor(l){let d=defu(l,PRETTY_BASIC_TRANSPORT_CONFIG_DEFAULTS);isNoColorSet()&&(d.colorize=!1),isForceColorSet()&&(d.colorize=!0),super(d),this.config=d,this.typedTarget=createLogBasicTypedTarget(this.config.logger),this.typedTarget.type===`Console`&&`window`in globalThis&&`chrome`in globalThis.window&&(import_ansi_colors.default.enabled=!0)}shipToLogger(l){if(!this.config.enabled)return l.messages;let{name:d,parentNames:f,timestamp:m,...te}=l.context??{},re=this.config.showTime?formatTime(new Date(m??Date.now()),this.config.colorize):void 0,ie=this.config.showLevel?getLogLevelString(l.logLevel,this.config.colorize):void 0,ae=this.config.showName?getNamePrefix(d,f,this.config.colorize):void 0,oe=l.messages.length>0?this.styleMessages(l.messages):void 0,se=Math.min(this.config.getTerminalWidth(),MAX_WIDTH),ce=!(`error`in l)||l.error===null||l.error===void 0?void 0:l.error,le=!(`metadata`in l)||l.metadata===null||l.metadata===void 0||!hasOwnProperties(l.metadata)?void 0:l.metadata,ue=hasOwnProperties(te)?te:void 0,de=[re,ie,ae,oe].filter(Boolean),fe;if(de.length>0){let l=de.join(` `);fe=l.length<=se?l:wrapAnsi(l,se)}switch(this.typedTarget.type){case`Console`:case`ConsoleLike`:{let d=[fe,ce,le,ue].filter(Boolean);switch(l.logLevel){case`debug`:case LogLevel.debug:this.typedTarget.target.debug(...d);break;case`error`:case`fatal`:case LogLevel.error:case LogLevel.fatal:this.typedTarget.target.error(...d);break;case`info`:case LogLevel.info:this.typedTarget.target.info(...d);break;case LogLevel.trace:case`trace`:this.typedTarget.target.trace(...d);break;case LogLevel.warn:case`warn`:this.typedTarget.target.warn(...d);break}break}case`StreamLike`:case`StreamStderr`:case`StreamStdout`:{let l=le?this.config.inspect(le,{breakLength:se,colors:this.config.colorize,depth:1/0}):void 0,d=ue?this.config.inspect(ue,{breakLength:se,colors:this.config.colorize,depth:1/0}):void 0,f=ce?this.config.inspect(ce,{breakLength:se,colors:this.config.colorize,depth:1/0}):void 0,m=[(oe===void 0||oe.length===0)&&fe!==void 0&&(ce!==void 0||le!==void 0||ue!==void 0)?[fe,`↴`].join(` `):fe,f,l,d].filter(Boolean).join(`
121
121
  `);this.typedTarget.target.write(`${m}\n`);break}}return l.messages}style(l){return l===void 0?this.config.colorize?import_ansi_colors.default.gray(`undefined`):`undefined`:l===null?this.config.colorize?import_ansi_colors.default.gray(`null`):`null`:typeof l==`boolean`?this.config.colorize?import_ansi_colors.default.cyan(l.toString()):l.toString():typeof l==`number`?this.config.colorize?import_ansi_colors.default.yellow(l.toString()):l.toString():typeof l==`string`?l:typeof l==`function`?this.config.colorize?import_ansi_colors.default.green(l.name):l.name:typeof l==`object`?this.config.inspect(l,{colors:this.config.colorize,compact:!0,depth:1/0}):String(l)}styleMessages(l){return l.map(l=>this.style(l)).join(` `)}};function formatTime(l,d){let f=l.getHours(),m=l.getMinutes(),te=l.getSeconds(),re=l.getMilliseconds(),ie=`${f<10?`0`:``}${f}:${m<10?`0`:``}${m}:${te<10?`0`:``}${te}.${re<10?`00`:re<100?`0`:``}${re}`;return d?import_ansi_colors.default.gray(ie):ie}const LOG_LEVEL_STRINGS_COLOR={debug:import_ansi_colors.default.bold.green(`DEBUG`),error:import_ansi_colors.default.bold.red(`ERROR`),fatal:import_ansi_colors.default.bold.red(`FATAL`),info:import_ansi_colors.default.bold.blue(`INFO `),trace:import_ansi_colors.default.bold.gray(`TRACE`),warn:import_ansi_colors.default.bold.yellow(`WARN `)},LOG_LEVEL_STRINGS_PLAIN={debug:`DEBUG`,error:`ERROR`,fatal:`FATAL`,info:`INFO `,trace:`TRACE`,warn:`WARN `};function getLogLevelString(l,d){return(d?LOG_LEVEL_STRINGS_COLOR[l]:LOG_LEVEL_STRINGS_PLAIN[l])??``}function getNamePrefix(l,d,f){if(l===void 0&&d===void 0)return`|`;let m=``;if(d)for(let l of d)m+=`[${l}]`;return l&&(m+=`[${l}]`),f?import_ansi_colors.default.bold.gray(m):m}const timestampPlugin={onContextCalled(l){return l.timestamp=new Date().toISOString(),l}};function pickLogTarget(){return typeof process<`u`?process.stderr:console}let platformAdapter;function setPlatformAdapter(l){platformAdapter=l}const DEFAULT_LOG_OPTIONS={logJsonToConsole:!1,logJsonToFile:!1,logToConsole:!0,get name(){return platformAdapter.getName()},verbose:!1};function getChildLogger(l,d){let f=l.child();return d&&f.withContext({name:d}),f}function createLogger$3(l){let d=defu(typeof l==`string`?{name:l}:l,DEFAULT_LOG_OPTIONS);isDebugSet()&&(d.verbose=!0);let f=[];if(d.logToConsole&&f.push(new PrettyBasicTransport(defu(isILogBasic(d.logToConsole)?{logger:d.logToConsole}:typeof d.logToConsole==`boolean`?{logger:pickLogTarget()}:d.logToConsole,{getTerminalWidth:platformAdapter.getTerminalWidth,inspect:platformAdapter.inspect}))),d.logJsonToConsole&&f.push(new JsonBasicTransport(defu(isILogBasic(d.logJsonToConsole)?{logger:d.logJsonToConsole}:typeof d.logJsonToConsole==`boolean`?{logger:pickLogTarget()}:d.logJsonToConsole,{getTerminalWidth:platformAdapter.getTerminalWidth,inspect:platformAdapter.inspect}))),typeof d.logJsonToFile==`string`||d.logJsonToFile){if(platformAdapter.createFileTransport===void 0)throw Error(`File logging is only supported in Node.js environments.`);f.push(platformAdapter.createFileTransport(d.name,typeof d.logJsonToFile==`boolean`?void 0:d.logJsonToFile))}platformAdapter.createElectronTransport&&f.push(platformAdapter.createElectronTransport());let m=new LogLayer({errorSerializer:serializeError,plugins:[timestampPlugin],transport:f}).withContextManager(new HierarchicalContextManager);return d.name!==void 0&&m.withContext({name:d.name}),d.verbose?m.setLevel(LogLevel.trace):m.setLevel(LogLevel.info),platformAdapter.createElectronListener&&platformAdapter.createElectronListener(m),m}function injectionHelper(l){return l===void 0?new MockLogLayer:isILogLayer(l)?l:createLogger$3({logJsonToFile:!1,logToConsole:l,name:void 0,verbose:!0})}function isILogLayer(l){return typeof l==`object`&&!!l&&`withContext`in l&&`child`in l&&typeof l.withContext==`function`&&typeof l.child==`function`}function isStreamStdout(l){return typeof process<`u`&&l===process.stdout}function isStreamStderr(l){return typeof process<`u`&&l===process.stderr}function isStreamLike(l){return typeof l==`object`&&!!l&&`write`in l&&typeof l.write==`function`}function isConsole(l){return typeof l==`object`&&!!l&&(l===globalThis.console||l.constructor?.name===`Console`)}function isConsoleLike(l){return typeof l==`object`&&!!l&&`debug`in l&&`error`in l&&`info`in l&&`trace`in l&&`warn`in l&&typeof l.debug==`function`&&typeof l.error==`function`&&typeof l.info==`function`&&typeof l.trace==`function`&&typeof l.warn==`function`}function isILogBasic(l){return isStreamStdout(l)||isStreamStderr(l)||isConsole(l)||isConsoleLike(l)||isStreamLike(l)}function createLogBasicTypedTarget(l){if(isStreamStdout(l))return{target:l,type:`StreamStdout`};if(isStreamStderr(l))return{target:l,type:`StreamStderr`};if(isConsole(l))return{target:l,type:`Console`};if(isConsoleLike(l))return{target:l,type:`ConsoleLike`};if(isStreamLike(l))return{target:l,type:`StreamLike`};throw Error(`Unable to identify ILogBasic type`)}let _log,currentOptions=DEFAULT_LOG_OPTIONS,boundMethodCache=new Map;const log$3=new Proxy({},{get(l,d){_log??=createLogger$3(currentOptions);let f=boundMethodCache.get(d);if(f!==void 0)return f;let m=_log[d];if(typeof m==`function`){let l=m.bind(_log);return boundMethodCache.set(d,l),l}return m}});function defaultInspector(l){try{return JSON.stringify(l,void 0,2)}catch{return`Could not inspect object`}}function isEnvDefined(l){return typeof process<`u`?process.env[l]!==void 0:typeof globalThis<`u`&&`process`in globalThis&&`env`in globalThis.process?globalThis.process.env[l]!==void 0:typeof window<`u`&&`process`in window&&`env`in window.process?window.process.env[l]!==void 0:!1}function isNoColorSet(){return isEnvDefined(`NO_COLOR`)}function isForceColorSet(){return isEnvDefined(`FORCE_COLOR`)}function isDebugSet(){return isEnvDefined(`DEBUG`)}function isEmptyObject$1(l){return typeof l==`object`&&!!l&&Object.keys(l).length===0}var JsonFileTransport=class extends LogFileRotationTransport{constructor(l){let d=defu(l,{filename:`default-%DATE%.log`});if(d.filename=untildify(d.filename),super(d),this.fieldNames.timestamp!==`timestamp`||this.fieldNames.message!==`message`&&this.fieldNames.message!==`messages`||this.fieldNames.level!==`level`)throw Error(`Field name customization is not supported`);if(!isEmptyObject$1(this.levelMap))throw Error(`Level map customization is not supported`)}shipToLogger(l){let d=`${paramsToJsonString(l,{staticData:this.staticData,timestampFn:this.timestampFn})}${this.delimiter}`;return this.batchEnabled?(this.batchQueue.push(d),this.batchQueue.length>=this.batchSize?this.flush():this.scheduleBatchFlush()):this.stream.write(d),l.messages}};function getPlatformLogPath(l){let d=os.homedir(),{env:f}=process$1,m=l??`app`;if(process$1.platform===`darwin`)return path.join(d,`Library`,`Logs`,m);if(process$1.platform===`win32`){let l=f.LOCALAPPDATA??path.join(d,`AppData`,`Local`);return path.join(l,m,`Log`)}return path.join(f.XDG_STATE_HOME??path.join(d,`.local`,`state`),m)}let cachedName,nameResolved=!1;function getName(){return nameResolved?cachedName:(cachedName=process$1.env.ELECTRON_MAIN?`Main`:readPackageUpSync()?.packageJson.name,nameResolved=!0,cachedName)}const fileTransportsByPath=new Map;function getFileTransportDestinations(){return Array.from(fileTransportsByPath.values(),l=>l.stream?.currentFile).filter(l=>l!==void 0)}function createFileTransport(l=`default`,d){let f=filenamify(l,{replacement:`-`}),{filename:m,...te}=typeof d==`object`?d:{},re=untildify(typeof m==`string`?m:path.join(typeof d==`string`?d:getPlatformLogPath(f),`${f}-%DATE%.log`));return fileTransportsByPath.has(re)||fileTransportsByPath.set(re,new JsonFileTransport(defu(te,{compressOnRotate:!0,dateFormat:`YMD`,filename:re,frequency:`daily`}))),fileTransportsByPath.get(re)}let cachedTerminalWidth=terminalSize().columns;process$1.on(`SIGWINCH`,()=>{cachedTerminalWidth=terminalSize().columns});function getTerminalWidth(){return cachedTerminalWidth}setPlatformAdapter({createFileTransport,getFileTransportDestinations,getName,getTerminalWidth,inspect:inspect$1});var import_spdx_correct=__toESM(require_spdx_correct(),1);let log$2=createLogger$3({logToConsole:{showTime:!1},name});function setLogger$1(l){log$2=injectionHelper(l)}const toZeroIfInfinity=l=>Number.isFinite(l)?l:0;function parseNumber(l){return{days:Math.trunc(l/864e5),hours:Math.trunc(l/36e5%24),minutes:Math.trunc(l/6e4%60),seconds:Math.trunc(l/1e3%60),milliseconds:Math.trunc(l%1e3),microseconds:Math.trunc(toZeroIfInfinity(l*1e3)%1e3),nanoseconds:Math.trunc(toZeroIfInfinity(l*1e6)%1e3)}}function parseBigint(l){return{days:l/86400000n,hours:l/3600000n%24n,minutes:l/60000n%60n,seconds:l/1000n%60n,milliseconds:l%1000n,microseconds:0n,nanoseconds:0n}}function parseMilliseconds(l){switch(typeof l){case`number`:if(Number.isFinite(l))return parseNumber(l);break;case`bigint`:return parseBigint(l)}throw TypeError(`Expected a finite number or bigint`)}const isZero=l=>l===0||l===0n,pluralize=(l,d)=>d===1||d===1n?l:`${l}s`,SECOND_ROUNDING_EPSILON=1e-7,ONE_DAY_IN_MILLISECONDS=24n*60n*60n*1000n;function prettyMilliseconds(l,d){let f=typeof l==`bigint`;if(!f&&!Number.isFinite(l))throw TypeError(`Expected a finite number or bigint`);d={...d};let m=l<0?`-`:``;l=l<0?-l:l,d.colonNotation&&(d.compact=!1,d.formatSubMilliseconds=!1,d.separateMilliseconds=!1,d.verbose=!1),d.compact&&(d.unitCount=1,d.secondsDecimalDigits=0,d.millisecondsDecimalDigits=0);let te=[],re=(l,d)=>{let f=Math.floor(l*10**d+SECOND_ROUNDING_EPSILON);return(Math.round(f)/10**d).toFixed(d)},ie=(l,f,m,re)=>{if(!((te.length===0||!d.colonNotation)&&isZero(l)&&!(d.colonNotation&&m===`m`))){if(re??=String(l),d.colonNotation){let l=re.includes(`.`)?re.split(`.`)[0].length:re.length,d=te.length>0?2:1;re=`0`.repeat(Math.max(0,d-l))+re}else re+=d.verbose?` `+pluralize(f,l):m;te.push(re)}},ae=parseMilliseconds(l),oe=BigInt(ae.days);if(d.hideYearAndDays?ie(BigInt(oe)*24n+BigInt(ae.hours),`hour`,`h`):(d.hideYear?ie(oe,`day`,`d`):(ie(oe/365n,`year`,`y`),ie(oe%365n,`day`,`d`)),ie(Number(ae.hours),`hour`,`h`)),ie(Number(ae.minutes),`minute`,`m`),!d.hideSeconds)if(d.separateMilliseconds||d.formatSubMilliseconds||!d.colonNotation&&l<1e3&&!d.subSecondsAsDecimals){let l=Number(ae.seconds),f=Number(ae.milliseconds),m=Number(ae.microseconds),te=Number(ae.nanoseconds);if(ie(l,`second`,`s`),d.formatSubMilliseconds)ie(f,`millisecond`,`ms`),ie(m,`microsecond`,`µs`),ie(te,`nanosecond`,`ns`);else{let l=f+m/1e3+te/1e6,re=typeof d.millisecondsDecimalDigits==`number`?d.millisecondsDecimalDigits:0,ae=re?l.toFixed(re):l>=1?Math.round(l):Math.ceil(l);ie(Number.parseFloat(ae),`millisecond`,`ms`,ae)}}else{let m=re((f?Number(l%ONE_DAY_IN_MILLISECONDS):l)/1e3%60,typeof d.secondsDecimalDigits==`number`?d.secondsDecimalDigits:1),te=d.keepDecimalsOnWholeSeconds?m:m.replace(/\.0+$/,``);ie(Number.parseFloat(te),`second`,`s`,te)}if(te.length===0)return m+`0`+(d.verbose?` milliseconds`:`ms`);let se=d.colonNotation?`:`:` `;return typeof d.unitCount==`number`&&(te=te.slice(0,Math.max(d.unitCount,1))),m+te.join(se)}function keysOf(l){return Object.keys(l)}const typedArrayTypeNames=[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`];function isTypedArrayName(l){return typedArrayTypeNames.includes(l)}const objectTypeNames=[`Function`,`Generator`,`AsyncGenerator`,`GeneratorFunction`,`AsyncGeneratorFunction`,`AsyncFunction`,`Observable`,`Array`,`Buffer`,`Blob`,`Object`,`RegExp`,`Date`,`Error`,`Map`,`Set`,`WeakMap`,`WeakSet`,`WeakRef`,`ArrayBuffer`,`SharedArrayBuffer`,`DataView`,`Promise`,`URL`,`FormData`,`URLSearchParams`,`HTMLElement`,`NaN`,...typedArrayTypeNames];function isObjectTypeName(l){return objectTypeNames.includes(l)}const primitiveTypeNames=[`null`,`undefined`,`string`,`number`,`bigint`,`boolean`,`symbol`];function isPrimitiveTypeName(l){return primitiveTypeNames.includes(l)}[...objectTypeNames,...primitiveTypeNames];const getObjectType=l=>{let d=Object.prototype.toString.call(l).slice(8,-1);if(/HTML\w+Element/v.test(d)&&isHtmlElement(l))return`HTMLElement`;if(isObjectTypeName(d))return d};function detect(l){if(l===null)return`null`;switch(typeof l){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(l)?`NaN`:`number`;case`boolean`:return`boolean`;case`function`:return`Function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;default:}if(isObservable(l))return`Observable`;if(isArray(l))return`Array`;if(isBuffer(l))return`Buffer`;let d=getObjectType(l);if(d!==void 0&&d!==`Object`)return d;if(hasPromiseApi(l))return`Promise`;if(isBoxedPrimitiveObject(l))throw TypeError(`Please don't use object wrappers for primitive types`);return`Object`}function hasPromiseApi(l){return isFunction(l?.then)&&isFunction(l?.catch)}function hasBoxedPrimitiveBrand(l,d){try{return Reflect.apply(d,l,[]),!0}catch{return!1}}function isBoxedPrimitiveObject(l){return hasBoxedPrimitiveBrand(l,String.prototype.valueOf)||hasBoxedPrimitiveBrand(l,Boolean.prototype.valueOf)||hasBoxedPrimitiveBrand(l,Number.prototype.valueOf)}const is=Object.assign(detect,{all:isAll,any:isAny,array:isArray,arrayBuffer:isArrayBuffer,arrayLike:isArrayLike$1,arrayOf:isArrayOf,asyncFunction:isAsyncFunction,asyncGenerator:isAsyncGenerator,asyncGeneratorFunction:isAsyncGeneratorFunction,asyncIterable:isAsyncIterable,bigint:isBigint,bigInt64Array:isBigInt64Array,bigUint64Array:isBigUint64Array,blob:isBlob,boolean:isBoolean,boundFunction:isBoundFunction,buffer:isBuffer,class:isClass,dataView:isDataView,date:isDate,detect,directInstanceOf:isDirectInstanceOf,emptyArray:isEmptyArray,emptyMap:isEmptyMap,emptyObject:isEmptyObject,emptySet:isEmptySet,emptyString:isEmptyString,emptyStringOrWhitespace:isEmptyStringOrWhitespace,enumCase:isEnumCase,error:isError,evenInteger:isEvenInteger,falsy:isFalsy,finiteNumber:isFiniteNumber,float32Array:isFloat32Array,float64Array:isFloat64Array,formData:isFormData,function:isFunction,generator:isGenerator,generatorFunction:isGeneratorFunction,htmlElement:isHtmlElement,infinite:isInfinite,inRange:isInRange,int16Array:isInt16Array,int32Array:isInt32Array,int8Array:isInt8Array,integer:isInteger$1,iterable:isIterable,map:isMap,nan:isNan,nativePromise:isNativePromise,negativeInteger:isNegativeInteger,negativeNumber:isNegativeNumber,nodeStream:isNodeStream,nonEmptyArray:isNonEmptyArray,nonEmptyMap:isNonEmptyMap,nonEmptyObject:isNonEmptyObject,nonEmptySet:isNonEmptySet,nonEmptyString:isNonEmptyString$2,nonEmptyStringAndNotWhitespace:isNonEmptyStringAndNotWhitespace,nonNegativeInteger:isNonNegativeInteger,nonNegativeNumber:isNonNegativeNumber,null:isNull,nullOrUndefined:isNullOrUndefined,number:isNumber,numericString:isNumericString,object:isObject$5,observable:isObservable,oddInteger:isOddInteger,oneOf:isOneOf,plainObject:isPlainObject$7,positiveInteger:isPositiveInteger,positiveNumber:isPositiveNumber,primitive:isPrimitive,promise:isPromise,propertyKey:isPropertyKey,regExp:isRegExp,safeInteger:isSafeInteger,set:isSet,sharedArrayBuffer:isSharedArrayBuffer,string:isString$2,symbol:isSymbol,truthy:isTruthy,tupleLike:isTupleLike,typedArray:isTypedArray,uint16Array:isUint16Array,uint32Array:isUint32Array,uint8Array:isUint8Array$3,uint8ClampedArray:isUint8ClampedArray,undefined:isUndefined,urlInstance:isUrlInstance,urlSearchParams:isUrlSearchParams,urlString:isUrlString,optional:isOptional,validDate:isValidDate,validLength:isValidLength,weakMap:isWeakMap,weakRef:isWeakRef,weakSet:isWeakSet,whitespaceString:isWhitespaceString});function isAbsoluteModule2(l){return d=>isInteger$1(d)&&Math.abs(d%2)===l}function validatePredicateArray(l,d){if(l.length===0){if(!d)throw TypeError(`Invalid predicate array`);return}for(let d of l)validatePredicate(d)}function validatePredicate(l){if(!isFunction(l))throw TypeError(`Invalid predicate: ${JSON.stringify(l)}`)}function isAll(l,...d){if(Array.isArray(l)){let f=l;validatePredicateArray(f,d.length===0);let m=l=>f.every(d=>d(l));return d.length===0?m:predicateOnArray(Array.prototype.every,m,d)}return predicateOnArray(Array.prototype.every,l,d)}function isAny(l,...d){if(Array.isArray(l)){let f=l;validatePredicateArray(f,d.length===0);let m=l=>f.some(d=>d(l));return d.length===0?m:predicateOnArray(Array.prototype.some,m,d)}return predicateOnArray(Array.prototype.some,l,d)}function isOptional(l,d){return isUndefined(l)||d(l)}function isArray(l,d){return Array.isArray(l)?isFunction(d)?l.every(l=>d(l)):!0:!1}function isArrayBuffer(l){return getObjectType(l)===`ArrayBuffer`}function isArrayLike$1(l){return!isNullOrUndefined(l)&&!isFunction(l)&&isValidLength(l.length)}function isArrayOf(l){return d=>isArray(d)&&d.every(d=>l(d))}function isAsyncFunction(l){return getObjectType(l)===`AsyncFunction`}function isAsyncGenerator(l){return isAsyncIterable(l)&&isFunction(l.next)&&isFunction(l.throw)}function isAsyncGeneratorFunction(l){return getObjectType(l)===`AsyncGeneratorFunction`}function isAsyncIterable(l){return isFunction(l?.[Symbol.asyncIterator])}function isBigint(l){return typeof l==`bigint`}function isBigInt64Array(l){return getObjectType(l)===`BigInt64Array`}function isBigUint64Array(l){return getObjectType(l)===`BigUint64Array`}function isBlob(l){return getObjectType(l)===`Blob`}function isBoolean(l){return l===!0||l===!1}function isBoundFunction(l){return isFunction(l)&&!Object.hasOwn(l,`prototype`)}function isBuffer(l){return l?.constructor?.isBuffer?.(l)??!1}function isClass(l){return isFunction(l)&&/^class(?:\s+|\{)/v.test(l.toString())}function isDataView(l){return getObjectType(l)===`DataView`}function isDate(l){return getObjectType(l)===`Date`}function isDirectInstanceOf(l,d){return l==null?!1:Object.getPrototypeOf(l)===d.prototype}function isEmptyArray(l){return isArray(l)&&l.length===0}function isEmptyMap(l){return isMap(l)&&l.size===0}function isEmptyObject(l){return isObject$5(l)&&!isFunction(l)&&!isArray(l)&&!isMap(l)&&!isSet(l)&&Object.keys(l).length===0}function isEmptySet(l){return isSet(l)&&l.size===0}function isEmptyString(l){return isString$2(l)&&l.length===0}function isEmptyStringOrWhitespace(l){return isEmptyString(l)||isWhitespaceString(l)}function isEnumCase(l,d){let f=d;return Object.entries(f).some(([d,m])=>{if(!isString$2(m))return m===l;let te=Number(d);return Number.isNaN(te)||String(te)!==d?m===l:m===l&&!(Object.hasOwn(f,m)&&f[m]===te)})}function isError(l){return getObjectType(l)===`Error`}function isEvenInteger(l){return isAbsoluteModule2(0)(l)}function isFalsy(l){return!l}function isFiniteNumber(l){return Number.isFinite(l)}function isFloat32Array(l){return getObjectType(l)===`Float32Array`}function isFloat64Array(l){return getObjectType(l)===`Float64Array`}function isFormData(l){return getObjectType(l)===`FormData`}function isFunction(l){return typeof l==`function`}function isGenerator(l){return isIterable(l)&&isFunction(l?.next)&&isFunction(l?.throw)}function isGeneratorFunction(l){return getObjectType(l)===`GeneratorFunction`}const NODE_TYPE_ELEMENT=1,DOM_PROPERTIES_TO_CHECK=[`innerHTML`,`ownerDocument`,`style`,`attributes`,`nodeValue`];function isHtmlElement(l){return isObject$5(l)&&l.nodeType===NODE_TYPE_ELEMENT&&isString$2(l.nodeName)&&!isPlainObject$7(l)&&DOM_PROPERTIES_TO_CHECK.every(d=>d in l)}function isInfinite(l){return l===1/0||l===-1/0}function isInRange(l,d){if(isNumber(d))return l>=Math.min(0,d)&&l<=Math.max(d,0);if(isArray(d)&&d.length===2){if(Number.isNaN(d[0])||Number.isNaN(d[1]))throw TypeError(`Invalid range: ${JSON.stringify(d)}`);return l>=Math.min(...d)&&l<=Math.max(...d)}throw TypeError(`Invalid range: ${JSON.stringify(d)}`)}function isInt16Array(l){return getObjectType(l)===`Int16Array`}function isInt32Array(l){return getObjectType(l)===`Int32Array`}function isInt8Array(l){return getObjectType(l)===`Int8Array`}function isInteger$1(l){return Number.isInteger(l)}function isIterable(l){return isFunction(l?.[Symbol.iterator])}function isMap(l){return getObjectType(l)===`Map`}function isNan(l){return Number.isNaN(l)}function isNativePromise(l){return getObjectType(l)===`Promise`}function isNegativeInteger(l){return isInteger$1(l)&&l<0}function isNegativeNumber(l){return isNumber(l)&&l<0}function isNodeStream(l){return isObject$5(l)&&isFunction(l.pipe)&&!isObservable(l)}function isNonEmptyArray(l){return isArray(l)&&l.length>0}function isNonEmptyMap(l){return isMap(l)&&l.size>0}function isNonEmptyObject(l){return isObject$5(l)&&!isFunction(l)&&!isArray(l)&&!isMap(l)&&!isSet(l)&&Object.keys(l).length>0}function isNonEmptySet(l){return isSet(l)&&l.size>0}function isNonEmptyString$2(l){return isString$2(l)&&l.length>0}function isNonEmptyStringAndNotWhitespace(l){return isString$2(l)&&!isEmptyStringOrWhitespace(l)}function isNonNegativeInteger(l){return isInteger$1(l)&&l>=0}function isNonNegativeNumber(l){return isNumber(l)&&l>=0}function isNull(l){return l===null}function isNullOrUndefined(l){return isNull(l)||isUndefined(l)}function isNumber(l){return typeof l==`number`&&!Number.isNaN(l)}function isNumericString(l){return isString$2(l)&&!isEmptyStringOrWhitespace(l)&&l===l.trim()&&!Number.isNaN(Number(l))}function isObject$5(l){return!isNull(l)&&(typeof l==`object`||isFunction(l))}function isObservable(l){return l?Symbol.observable!==void 0&&l===l[Symbol.observable]?.()||l===l[`@@observable`]?.():!1}function isOddInteger(l){return isAbsoluteModule2(1)(l)}function isOneOf(l){return d=>l.includes(d)}function isPlainObject$7(l){if(typeof l!=`object`||!l)return!1;let d=Object.getPrototypeOf(l);return(d===null||d===Object.prototype||Object.getPrototypeOf(d)===null)&&!(Symbol.toStringTag in l)&&!(Symbol.iterator in l)}function isPositiveInteger(l){return isInteger$1(l)&&l>0}function isPositiveNumber(l){return isNumber(l)&&l>0}function isPrimitive(l){return isNull(l)||isPrimitiveTypeName(typeof l)}function isPromise(l){return isNativePromise(l)||hasPromiseApi(l)}function isPropertyKey(l){return isAny([isString$2,isNumber,isSymbol],l)}function isRegExp(l){return getObjectType(l)===`RegExp`}function isSafeInteger(l){return Number.isSafeInteger(l)}function isSet(l){return getObjectType(l)===`Set`}function isSharedArrayBuffer(l){return getObjectType(l)===`SharedArrayBuffer`}function isString$2(l){return typeof l==`string`}function isSymbol(l){return typeof l==`symbol`}function isTruthy(l){return!!l}function isTupleLike(l,d){return isArray(d)&&isArray(l)&&d.length===l.length?d.every((d,f)=>d(l[f])):!1}function isTypedArray(l){return isTypedArrayName(getObjectType(l))}function isUint16Array(l){return getObjectType(l)===`Uint16Array`}function isUint32Array(l){return getObjectType(l)===`Uint32Array`}function isUint8Array$3(l){return getObjectType(l)===`Uint8Array`}function isUint8ClampedArray(l){return getObjectType(l)===`Uint8ClampedArray`}function isUndefined(l){return l===void 0}function isUrlInstance(l){return getObjectType(l)===`URL`}function isUrlSearchParams(l){return getObjectType(l)===`URLSearchParams`}function isUrlString(l){if(!isString$2(l))return!1;try{return new URL(l),!0}catch{return!1}}function isValidDate(l){return isDate(l)&&!isNan(Number(l))}function isValidLength(l){return isSafeInteger(l)&&l>=0}function isWeakMap(l){return getObjectType(l)===`WeakMap`}function isWeakRef(l){return getObjectType(l)===`WeakRef`}function isWeakSet(l){return getObjectType(l)===`WeakSet`}function isWhitespaceString(l){return isString$2(l)&&/^\s+$/v.test(l)}function predicateOnArray(l,d,f){if(validatePredicate(d),f.length===0)throw TypeError(`Invalid number of values`);return l.call(f,d)}function typeErrorMessageNot(l,d){return`Expected value which is not \`${l}\`, received value of type \`${is(d)}\`.`}const andFormatter=new Intl.ListFormat(`en`,{style:`long`,type:`conjunction`}),orFormatter=new Intl.ListFormat(`en`,{style:`long`,type:`disjunction`});function createAssertNot(l,d){return(f,m)=>{if(l(f))throw TypeError(m??typeErrorMessageNot(d,f))}}const assertNotUndefined=createAssertNot(isUndefined,`undefined`),assertNotNull=createAssertNot(isNull,`null`),assertNotNullOrUndefined=createAssertNot(isNullOrUndefined,`null or undefined`),assertNotString=createAssertNot(isString$2,`string`),assertNotBoolean=createAssertNot(isBoolean,`boolean`),assertNotSymbol=createAssertNot(isSymbol,`symbol`),assertNotBigint=createAssertNot(isBigint,`bigint`),assertNotPrimitive=createAssertNot(isPrimitive,`primitive`),methodTypeMap={isArray:`Array`,isArrayBuffer:`ArrayBuffer`,isArrayLike:`array-like`,isAsyncFunction:`AsyncFunction`,isAsyncGenerator:`AsyncGenerator`,isAsyncGeneratorFunction:`AsyncGeneratorFunction`,isAsyncIterable:`AsyncIterable`,isBigint:`bigint`,isBigInt64Array:`BigInt64Array`,isBigUint64Array:`BigUint64Array`,isBlob:`Blob`,isBoolean:`boolean`,isBoundFunction:`bound Function`,isBuffer:`Buffer`,isClass:`Class`,isDataView:`DataView`,isDate:`Date`,isDirectInstanceOf:`T`,isEmptyArray:`empty array`,isEmptyMap:`empty map`,isEmptyObject:`empty object`,isEmptySet:`empty set`,isEmptyString:`empty string`,isEmptyStringOrWhitespace:`empty string or whitespace`,isEnumCase:`EnumCase`,isError:`Error`,isEvenInteger:`even integer`,isFalsy:`falsy`,isFiniteNumber:`finite number`,isFloat32Array:`Float32Array`,isFloat64Array:`Float64Array`,isFormData:`FormData`,isFunction:`Function`,isGenerator:`Generator`,isGeneratorFunction:`GeneratorFunction`,isHtmlElement:`HTMLElement`,isInfinite:`infinite number`,isInRange:`in range`,isInt16Array:`Int16Array`,isInt32Array:`Int32Array`,isInt8Array:`Int8Array`,isInteger:`integer`,isIterable:`Iterable`,isMap:`Map`,isNan:`NaN`,isNativePromise:`native Promise`,isNegativeInteger:`negative integer`,isNegativeNumber:`negative number`,isNodeStream:`Node.js Stream`,isNonEmptyArray:`non-empty array`,isNonEmptyMap:`non-empty map`,isNonEmptyObject:`non-empty object`,isNonEmptySet:`non-empty set`,isNonEmptyString:`non-empty string`,isNonEmptyStringAndNotWhitespace:`non-empty string and not whitespace`,isNonNegativeInteger:`non-negative integer`,isNonNegativeNumber:`non-negative number`,isNull:`null`,isNullOrUndefined:`null or undefined`,isNumber:`number`,isNumericString:`string with a number`,isObject:`Object`,isObservable:`Observable`,isOddInteger:`odd integer`,isPlainObject:`plain object`,isPositiveInteger:`positive integer`,isPositiveNumber:`positive number`,isPrimitive:`primitive`,isPromise:`Promise`,isPropertyKey:`PropertyKey`,isRegExp:`RegExp`,isSafeInteger:`safe integer`,isSet:`Set`,isSharedArrayBuffer:`SharedArrayBuffer`,isString:`string`,isSymbol:`symbol`,isTruthy:`truthy`,isTupleLike:`tuple-like`,isTypedArray:`TypedArray`,isUint16Array:`Uint16Array`,isUint32Array:`Uint32Array`,isUint8Array:`Uint8Array`,isUint8ClampedArray:`Uint8ClampedArray`,isUndefined:`undefined`,isUrlInstance:`URL`,isUrlSearchParams:`URLSearchParams`,isUrlString:`string with a URL`,isValidDate:`valid Date`,isValidLength:`valid length`,isWeakMap:`WeakMap`,isWeakRef:`WeakRef`,isWeakSet:`WeakSet`,isWhitespaceString:`whitespace string`},isMethodNames=keysOf(methodTypeMap);var require_array$1=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.splitWhen=l.flatten=void 0;function d(l){return l.reduce((l,d)=>[].concat(l,d),[])}l.flatten=d;function f(l,d){let f=[[]],m=0;for(let te of l)d(te)?(m++,f[m]=[]):f[m].push(te);return f}l.splitWhen=f})),require_errno=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.isEnoentCodeError=void 0;function d(l){return l.code===`ENOENT`}l.isEnoentCodeError=d})),require_fs$3=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.createDirentFromStats=void 0;var d=class{constructor(l,d){this.name=l,this.isBlockDevice=d.isBlockDevice.bind(d),this.isCharacterDevice=d.isCharacterDevice.bind(d),this.isDirectory=d.isDirectory.bind(d),this.isFIFO=d.isFIFO.bind(d),this.isFile=d.isFile.bind(d),this.isSocket=d.isSocket.bind(d),this.isSymbolicLink=d.isSymbolicLink.bind(d)}};function f(l,f){return new d(l,f)}l.createDirentFromStats=f})),require_path=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.convertPosixPathToPattern=l.convertWindowsPathToPattern=l.convertPathToPattern=l.escapePosixPath=l.escapeWindowsPath=l.escape=l.removeLeadingDotSegment=l.makeAbsolute=l.unixify=void 0;let d=__require$1(`os`),f=__require$1(`path`),m=d.platform()===`win32`,te=2,re=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,ie=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,ae=/^\\\\([.?])/,oe=/\\(?![!()+@[\]{}])/g;function se(l){return l.replace(/\\/g,`/`)}l.unixify=se;function ce(l,d){return f.resolve(l,d)}l.makeAbsolute=ce;function le(l){if(l.charAt(0)===`.`){let d=l.charAt(1);if(d===`/`||d===`\\`)return l.slice(2)}return l}l.removeLeadingDotSegment=le,l.escape=m?ue:de;function ue(l){return l.replace(ie,`\\$2`)}l.escapeWindowsPath=ue;function de(l){return l.replace(re,`\\$2`)}l.escapePosixPath=de,l.convertPathToPattern=m?fe:pe;function fe(l){return ue(l).replace(ae,`//$1`).replace(oe,`/`)}l.convertWindowsPathToPattern=fe;function pe(l){return de(l)}l.convertPosixPathToPattern=pe})),require_is_extglob=__commonJSMin(((l,d)=>{
122
122
  /*!
@@ -383,7 +383,7 @@ Object.defineProperty(l,"__esModule",{value:!0}),l.parse=f;let d=(()=>{let l=fun
383
383
  * @version 3.7.0
384
384
  */
385
385
  var LruObject=class{constructor(l=1e3,d=0){if(isNaN(l)||l<0)throw Error(`Invalid max value`);if(isNaN(d)||d<0)throw Error(`Invalid ttl value`);this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=l,this.ttl=d}bumpLru(l){if(this.last===l)return;let d=this.last,f=l.next,m=l.prev;this.first===l&&(this.first=f),l.next=null,l.prev=d,d.next=l,m!==null&&(m.next=f),f!==null&&(f.prev=m),this.last=l}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(l){if(Object.prototype.hasOwnProperty.call(this.items,l)){let d=this.items[l];delete this.items[l],this.size--,d.prev!==null&&(d.prev.next=d.next),d.next!==null&&(d.next.prev=d.prev),this.first===d&&(this.first=d.next),this.last===d&&(this.last=d.prev)}}deleteMany(l){for(var d=0;d<l.length;d++)this.delete(l[d])}evict(){if(this.size>0){let l=this.first;delete this.items[l.key],--this.size===0?(this.first=null,this.last=null):(this.first=l.next,this.first.prev=null)}}expiresAt(l){if(Object.prototype.hasOwnProperty.call(this.items,l))return this.items[l].expiry}get(l){if(Object.prototype.hasOwnProperty.call(this.items,l)){let d=this.items[l];if(this.ttl>0&&d.expiry<=Date.now()){this.delete(l);return}return this.bumpLru(d),d.value}}getMany(l){let d=[];for(var f=0;f<l.length;f++)d.push(this.get(l[f]));return d}keys(){return Object.keys(this.items)}set(l,d){if(Object.prototype.hasOwnProperty.call(this.items,l)){let f=this.items[l];f.value=d,f.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl,this.last!==f&&this.bumpLru(f);return}this.max>0&&this.size===this.max&&this.evict();let f={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:l,prev:this.last,next:null,value:d};this.items[l]=f,++this.size===1?this.first=f:this.last.next=f,this.last=f}};async function getAppAuthentication({appId:l,privateKey:d,timeDifference:f,createJwt:m}){try{if(m){let{jwt:d,expiresAt:te}=await m(l,f);return{type:`app`,token:d,appId:l,expiresAt:te}}let te={id:l,privateKey:d};f&&Object.assign(te,{now:Math.floor(Date.now()/1e3)+f});let re=await githubAppJwt(te);return{type:`app`,token:re.token,appId:re.appId,expiresAt:new Date(re.expiration*1e3).toISOString()}}catch(l){throw d===`-----BEGIN RSA PRIVATE KEY-----`?Error("The 'privateKey` option contains only the first line '-----BEGIN RSA PRIVATE KEY-----'. If you are setting it using a `.env` file, make sure it is set on a single line with newlines replaced by '\n'"):l}}function getCache(){return new LruObject(15e3,1e3*60*59)}async function get$1(l,d){let f=optionsToCacheKey(d),m=await l.get(f);if(!m)return;let[te,re,ie,ae,oe,se]=m.split(`|`);return{token:te,createdAt:re,expiresAt:ie,permissions:d.permissions||oe.split(/,/).reduce((l,d)=>(/!$/.test(d)?l[d.slice(0,-1)]=`write`:l[d]=`read`,l),{}),repositoryIds:d.repositoryIds,repositoryNames:d.repositoryNames,singleFileName:se,repositorySelection:ae}}async function set$1(l,d,f){let m=optionsToCacheKey(d),te=d.permissions?``:Object.keys(f.permissions).map(l=>`${l}${f.permissions[l]===`write`?`!`:``}`).join(`,`),re=[f.token,f.createdAt,f.expiresAt,f.repositorySelection,te,f.singleFileName].join(`|`);await l.set(m,re)}function optionsToCacheKey({installationId:l,permissions:d={},repositoryIds:f=[],repositoryNames:m=[]}){let te=Object.keys(d).sort().map(l=>d[l]===`read`?l:`${l}!`).join(`,`);return[l,f.sort().join(`,`),m.join(`,`),te].filter(Boolean).join(`|`)}function toTokenAuthentication({installationId:l,token:d,createdAt:f,expiresAt:m,repositorySelection:te,permissions:re,repositoryIds:ie,repositoryNames:ae,singleFileName:oe}){return Object.assign({type:`token`,tokenType:`installation`,token:d,installationId:l,permissions:re,createdAt:f,expiresAt:m,repositorySelection:te},ie?{repositoryIds:ie}:null,ae?{repositoryNames:ae}:null,oe?{singleFileName:oe}:null)}async function getInstallationAuthentication(l,d,f){let m=Number(d.installationId||l.installationId);if(!m)throw Error(`[@octokit/auth-app] installationId option is required for installation authentication.`);if(d.factory){let{type:f,factory:m,oauthApp:te,...re}={...l,...d};return m(re)}let te=f||l.request;return getInstallationAuthenticationConcurrently(l,{...d,installationId:m},te)}var pendingPromises=new Map;function getInstallationAuthenticationConcurrently(l,d,f){let m=optionsToCacheKey(d);if(pendingPromises.has(m))return pendingPromises.get(m);let te=getInstallationAuthenticationImpl(l,d,f).finally(()=>pendingPromises.delete(m));return pendingPromises.set(m,te),te}async function getInstallationAuthenticationImpl(l,d,f){if(!d.refresh){let f=await get$1(l.cache,d);if(f){let{token:l,createdAt:m,expiresAt:te,permissions:re,repositoryIds:ie,repositoryNames:ae,singleFileName:oe,repositorySelection:se}=f;return toTokenAuthentication({installationId:d.installationId,token:l,createdAt:m,expiresAt:te,permissions:re,repositorySelection:se,repositoryIds:ie,repositoryNames:ae,singleFileName:oe})}}let m=await getAppAuthentication(l),te={installation_id:d.installationId,mediaType:{previews:[`machine-man`]},headers:{authorization:`bearer ${m.token}`}};d.repositoryIds&&Object.assign(te,{repository_ids:d.repositoryIds}),d.repositoryNames&&Object.assign(te,{repositories:d.repositoryNames}),d.permissions&&Object.assign(te,{permissions:d.permissions});let{data:{token:re,expires_at:ie,repositories:ae,permissions:oe,repository_selection:se,single_file:ce}}=await f(`POST /app/installations/{installation_id}/access_tokens`,te),le=oe||{},ue=se||`all`,de=ae?ae.map(l=>l.id):void 0,fe=ae?ae.map(l=>l.name):void 0,pe=new Date().toISOString(),me={token:re,createdAt:pe,expiresAt:ie,repositorySelection:ue,permissions:le,repositoryIds:de,repositoryNames:fe};ce&&Object.assign(te,{singleFileName:ce}),await set$1(l.cache,d,me);let he={installationId:d.installationId,token:re,createdAt:pe,expiresAt:ie,repositorySelection:ue,permissions:le,repositoryIds:de,repositoryNames:fe};return ce&&Object.assign(he,{singleFileName:ce}),toTokenAuthentication(he)}async function auth$1(l,d){switch(d.type){case`app`:return getAppAuthentication(l);case`oauth-app`:return l.oauthApp({type:`oauth-app`});case`installation`:return getInstallationAuthentication(l,{...d,type:`installation`});case`oauth-user`:return l.oauthApp(d);default:throw Error(`Invalid auth type: ${d.type}`)}}var PATHS=[`/app`,`/app/hook/config`,`/app/hook/deliveries`,`/app/hook/deliveries/{delivery_id}`,`/app/hook/deliveries/{delivery_id}/attempts`,`/app/installations`,`/app/installations/{installation_id}`,`/app/installations/{installation_id}/access_tokens`,`/app/installations/{installation_id}/suspended`,`/app/installation-requests`,`/marketplace_listing/accounts/{account_id}`,`/marketplace_listing/plan`,`/marketplace_listing/plans`,`/marketplace_listing/plans/{plan_id}/accounts`,`/marketplace_listing/stubbed/accounts/{account_id}`,`/marketplace_listing/stubbed/plan`,`/marketplace_listing/stubbed/plans`,`/marketplace_listing/stubbed/plans/{plan_id}/accounts`,`/orgs/{org}/installation`,`/repos/{owner}/{repo}/installation`,`/users/{username}/installation`,`/enterprises/{enterprise}/installation`];function routeMatcher(l){let d=`^(?:${l.map(l=>l.split(`/`).map(l=>l.startsWith(`{`)?`(?:.+?)`:l).join(`/`)).map(l=>`(?:${l})`).join(`|`)})$`;return new RegExp(d,`i`)}var REGEX=routeMatcher(PATHS);function requiresAppAuth(l){return!!l&&REGEX.test(l.split(`?`)[0])}var FIVE_SECONDS_IN_MS=5*1e3;function isNotTimeSkewError(l){return!(l.message.match(/'Expiration time' claim \('exp'\) is too far in the future/)||l.message.match(/'Expiration time' claim \('exp'\) must be a numeric value representing the future time at which the assertion expires/)||l.message.match(/'Issued at' claim \('iat'\) must be an Integer representing the time that the assertion was issued/))}async function hook$1(l,d,f,m){let te=d.endpoint.merge(f,m),re=te.url;if(/\/login\/oauth\/access_token$/.test(re))return d(te);if(requiresAppAuth(re.replace(d.endpoint.DEFAULTS.baseUrl,``))){let{token:f}=await getAppAuthentication(l);te.headers.authorization=`bearer ${f}`;let m;try{m=await d(te)}catch(f){if(isNotTimeSkewError(f)||f.response.headers.date===void 0)throw f;let m=Math.floor((Date.parse(f.response.headers.date)-Date.parse(new Date().toString()))/1e3);l.log.warn(f.message),l.log.warn(`[@octokit/auth-app] GitHub API time and system time are different by ${m} seconds. Retrying request with the difference accounted for.`);let{token:re}=await getAppAuthentication({...l,timeDifference:m});return te.headers.authorization=`bearer ${re}`,d(te)}return m}if(requiresBasicAuth(re)){let f=await l.oauthApp({type:`oauth-app`});return te.headers.authorization=f.headers.authorization,d(te)}let{token:ie,createdAt:ae}=await getInstallationAuthentication(l,{},d.defaults({baseUrl:te.baseUrl}));return te.headers.authorization=`token ${ie}`,sendRequestWithRetries(l,d,te,ae)}async function sendRequestWithRetries(l,d,f,m,te=0){let re=new Date-+new Date(m);try{return await d(f)}catch(ie){if(ie.status!==401)throw ie;if(re>=FIVE_SECONDS_IN_MS)throw te>0&&(ie.message=`After ${te} retries within ${re/1e3}s of creating the installation access token, the response remains 401. At this point, the cause may be an authentication problem or a system outage. Please check https://www.githubstatus.com for status information`),ie;++te;let ae=te*1e3;return l.log.warn(`[@octokit/auth-app] Retrying after 401 response to account for token replication delay (retry: ${te}, wait: ${ae/1e3}s)`),await new Promise(l=>setTimeout(l,ae)),sendRequestWithRetries(l,d,f,m,te)}}var VERSION$4=`8.2.0`;function createAppAuth(l){if(!l.appId)throw Error(`[@octokit/auth-app] appId option is required`);if(!l.privateKey&&!l.createJwt)throw Error(`[@octokit/auth-app] privateKey option is required`);if(l.privateKey&&l.createJwt)throw Error(`[@octokit/auth-app] privateKey and createJwt options are mutually exclusive`);if(`installationId`in l&&!l.installationId)throw Error(`[@octokit/auth-app] installationId is set to a falsy value`);let d=l.log||{};typeof d.warn!=`function`&&(d.warn=console.warn.bind(console));let f=l.request||request.defaults({headers:{"user-agent":`octokit-auth-app.js/${VERSION$4} ${getUserAgent()}`}}),m=Object.assign({request:f,cache:getCache()},l,l.installationId?{installationId:Number(l.installationId)}:{},{log:d,oauthApp:createOAuthAppAuth({clientType:`github-app`,clientId:l.clientId||``,clientSecret:l.clientSecret||``,request:f})});return Object.assign(auth$1.bind(null,m),{hook:hook$1.bind(null,m)})}async function auth(l){return{type:`unauthenticated`,reason:l}}function isRateLimitError(l){return l.status!==403||!l.response?!1:l.response.headers[`x-ratelimit-remaining`]===`0`}var REGEX_ABUSE_LIMIT_MESSAGE=/\babuse\b/i;function isAbuseLimitError(l){return l.status===403?REGEX_ABUSE_LIMIT_MESSAGE.test(l.message):!1}async function hook(l,d,f,m){let te=d.endpoint.merge(f,m);return d(te).catch(d=>{throw d.status===404?(d.message=`Not found. May be due to lack of authentication. Reason: ${l}`,d):isRateLimitError(d)?(d.message=`API rate limit exceeded. This maybe caused by the lack of authentication. Reason: ${l}`,d):isAbuseLimitError(d)?(d.message=`You have triggered an abuse detection mechanism. This maybe caused by the lack of authentication. Reason: ${l}`,d):d.status===401?(d.message=`Unauthorized. "${te.method} ${te.url}" failed most likely due to lack of authentication. Reason: ${l}`,d):(d.status>=400&&d.status<500&&(d.message=d.message.replace(/\.?$/,`. May be caused by lack of authentication (${l}).`)),d)})}var createUnauthenticatedAuth=function(l){if(!l||!l.reason)throw Error(`[@octokit/auth-unauthenticated] No reason passed to createUnauthenticatedAuth`);return Object.assign(auth.bind(null,l.reason),{hook:hook.bind(null,l.reason)})},VERSION$3=`8.0.3`;function addEventHandler(l,d,f){if(Array.isArray(d)){for(let m of d)addEventHandler(l,m,f);return}l.eventHandlers[d]||(l.eventHandlers[d]=[]),l.eventHandlers[d].push(f)}var OAuthAppOctokit=Octokit$1.defaults({userAgent:`octokit-oauth-app.js/${VERSION$3} ${getUserAgent()}`});async function emitEvent(l,d){let{name:f,action:m}=d;if(l.eventHandlers[`${f}.${m}`])for(let te of l.eventHandlers[`${f}.${m}`])await te(d);if(l.eventHandlers[f])for(let m of l.eventHandlers[f])await m(d)}async function getUserOctokitWithState(l,d){return l.octokit.auth({type:`oauth-user`,...d,async factory(d){let f=new l.Octokit({authStrategy:createOAuthUserAuth,auth:d}),m=await f.auth({type:`get`});return await emitEvent(l,{name:`token`,action:`created`,token:m.token,scopes:m.scopes,authentication:m,octokit:f}),f}})}function getWebFlowAuthorizationUrlWithState(l,d){let f={clientId:l.clientId,request:l.octokit.request,...d,allowSignup:l.allowSignup??d.allowSignup,redirectUrl:d.redirectUrl??l.redirectUrl,scopes:d.scopes??l.defaultScopes};return getWebFlowAuthorizationUrl({clientType:l.clientType,...f})}async function createTokenWithState(l,d){let f=await l.octokit.auth({type:`oauth-user`,...d});return await emitEvent(l,{name:`token`,action:`created`,token:f.token,scopes:f.scopes,authentication:f,octokit:new l.Octokit({authStrategy:createOAuthUserAuth,auth:{clientType:l.clientType,clientId:l.clientId,clientSecret:l.clientSecret,token:f.token,scopes:f.scopes,refreshToken:f.refreshToken,expiresAt:f.expiresAt,refreshTokenExpiresAt:f.refreshTokenExpiresAt}})}),{authentication:f}}async function checkTokenWithState(l,d){let f=await checkToken({clientType:l.clientType,clientId:l.clientId,clientSecret:l.clientSecret,request:l.octokit.request,...d});return Object.assign(f.authentication,{type:`token`,tokenType:`oauth`}),f}async function resetTokenWithState(l,d){let f={clientId:l.clientId,clientSecret:l.clientSecret,request:l.octokit.request,...d};if(l.clientType===`oauth-app`){let d=await resetToken({clientType:`oauth-app`,...f}),m=Object.assign(d.authentication,{type:`token`,tokenType:`oauth`});return await emitEvent(l,{name:`token`,action:`reset`,token:d.authentication.token,scopes:d.authentication.scopes||void 0,authentication:m,octokit:new l.Octokit({authStrategy:createOAuthUserAuth,auth:{clientType:l.clientType,clientId:l.clientId,clientSecret:l.clientSecret,token:d.authentication.token,scopes:d.authentication.scopes}})}),{...d,authentication:m}}let m=await resetToken({clientType:`github-app`,...f}),te=Object.assign(m.authentication,{type:`token`,tokenType:`oauth`});return await emitEvent(l,{name:`token`,action:`reset`,token:m.authentication.token,authentication:te,octokit:new l.Octokit({authStrategy:createOAuthUserAuth,auth:{clientType:l.clientType,clientId:l.clientId,clientSecret:l.clientSecret,token:m.authentication.token}})}),{...m,authentication:te}}async function refreshTokenWithState(l,d){if(l.clientType===`oauth-app`)throw Error(`[@octokit/oauth-app] app.refreshToken() is not supported for OAuth Apps`);let f=await refreshToken({clientType:`github-app`,clientId:l.clientId,clientSecret:l.clientSecret,request:l.octokit.request,refreshToken:d.refreshToken}),m=Object.assign(f.authentication,{type:`token`,tokenType:`oauth`});return await emitEvent(l,{name:`token`,action:`refreshed`,token:f.authentication.token,authentication:m,octokit:new l.Octokit({authStrategy:createOAuthUserAuth,auth:{clientType:l.clientType,clientId:l.clientId,clientSecret:l.clientSecret,token:f.authentication.token}})}),{...f,authentication:m}}async function scopeTokenWithState(l,d){if(l.clientType===`oauth-app`)throw Error(`[@octokit/oauth-app] app.scopeToken() is not supported for OAuth Apps`);let f=await scopeToken({clientType:`github-app`,clientId:l.clientId,clientSecret:l.clientSecret,request:l.octokit.request,...d}),m=Object.assign(f.authentication,{type:`token`,tokenType:`oauth`});return await emitEvent(l,{name:`token`,action:`scoped`,token:f.authentication.token,authentication:m,octokit:new l.Octokit({authStrategy:createOAuthUserAuth,auth:{clientType:l.clientType,clientId:l.clientId,clientSecret:l.clientSecret,token:f.authentication.token}})}),{...f,authentication:m}}async function deleteTokenWithState(l,d){let f={clientId:l.clientId,clientSecret:l.clientSecret,request:l.octokit.request,...d},m=l.clientType===`oauth-app`?await deleteToken({clientType:`oauth-app`,...f}):await deleteToken({clientType:`github-app`,...f});return await emitEvent(l,{name:`token`,action:`deleted`,token:d.token,octokit:new l.Octokit({authStrategy:createUnauthenticatedAuth,auth:{reason:`Handling "token.deleted" event. The access for the token has been revoked.`}})}),m}async function deleteAuthorizationWithState(l,d){let f={clientId:l.clientId,clientSecret:l.clientSecret,request:l.octokit.request,...d},m=l.clientType===`oauth-app`?await deleteAuthorization({clientType:`oauth-app`,...f}):await deleteAuthorization({clientType:`github-app`,...f});return await emitEvent(l,{name:`token`,action:`deleted`,token:d.token,octokit:new l.Octokit({authStrategy:createUnauthenticatedAuth,auth:{reason:`Handling "token.deleted" event. The access for the token has been revoked.`}})}),await emitEvent(l,{name:`authorization`,action:`deleted`,token:d.token,octokit:new l.Octokit({authStrategy:createUnauthenticatedAuth,auth:{reason:`Handling "authorization.deleted" event. The access for the app has been revoked.`}})}),m}var OAuthApp$1=class{static VERSION=VERSION$3;static defaults(l){return class extends this{constructor(...d){super({...l,...d[0]})}}}constructor(l){let d=l.Octokit||OAuthAppOctokit;this.type=l.clientType||`oauth-app`;let f=new d({authStrategy:createOAuthAppAuth,auth:{clientType:this.type,clientId:l.clientId,clientSecret:l.clientSecret}}),m={clientType:this.type,clientId:l.clientId,clientSecret:l.clientSecret,defaultScopes:l.defaultScopes||[],allowSignup:l.allowSignup,baseUrl:l.baseUrl,redirectUrl:l.redirectUrl,log:l.log,Octokit:d,octokit:f,eventHandlers:{}};this.on=addEventHandler.bind(null,m),this.octokit=f,this.getUserOctokit=getUserOctokitWithState.bind(null,m),this.getWebFlowAuthorizationUrl=getWebFlowAuthorizationUrlWithState.bind(null,m),this.createToken=createTokenWithState.bind(null,m),this.checkToken=checkTokenWithState.bind(null,m),this.resetToken=resetTokenWithState.bind(null,m),this.refreshToken=refreshTokenWithState.bind(null,m),this.scopeToken=scopeTokenWithState.bind(null,m),this.deleteToken=deleteTokenWithState.bind(null,m),this.deleteAuthorization=deleteAuthorizationWithState.bind(null,m)}type;on;octokit;getUserOctokit;getWebFlowAuthorizationUrl;createToken;checkToken;resetToken;refreshToken;scopeToken;deleteToken;deleteAuthorization},VERSION$2=`6.0.0`;async function sign(l,d){if(!l||!d)throw TypeError(`[@octokit/webhooks-methods] secret & payload required for sign()`);if(typeof d!=`string`)throw TypeError(`[@octokit/webhooks-methods] payload must be a string`);let f=`sha256`;return`${f}=${createHmac(f,l).update(d).digest(`hex`)}`}sign.VERSION=VERSION$2;async function verify(l,d,f){if(!l||!d||!f)throw TypeError(`[@octokit/webhooks-methods] secret, eventPayload & signature required`);if(typeof d!=`string`)throw TypeError(`[@octokit/webhooks-methods] eventPayload must be a string`);let m=Buffer$1.from(f),te=Buffer$1.from(await sign(l,d));return m.length===te.length?timingSafeEqual(m,te):!1}verify.VERSION=VERSION$2;async function verifyWithFallback(l,d,f,m){if(await verify(l,d,f))return!0;if(m!==void 0)for(let l of m){let m=await verify(l,d,f);if(m)return m}return!1}var createLogger=(l={})=>(typeof l.debug!=`function`&&(l.debug=()=>{}),typeof l.info!=`function`&&(l.info=()=>{}),typeof l.warn!=`function`&&(l.warn=console.warn.bind(console)),typeof l.error!=`function`&&(l.error=console.error.bind(console)),l),emitterEventNames=`branch_protection_configuration,branch_protection_configuration.disabled,branch_protection_configuration.enabled,branch_protection_rule,branch_protection_rule.created,branch_protection_rule.deleted,branch_protection_rule.edited,check_run,check_run.completed,check_run.created,check_run.requested_action,check_run.rerequested,check_suite,check_suite.completed,check_suite.requested,check_suite.rerequested,code_scanning_alert,code_scanning_alert.appeared_in_branch,code_scanning_alert.closed_by_user,code_scanning_alert.created,code_scanning_alert.fixed,code_scanning_alert.reopened,code_scanning_alert.reopened_by_user,commit_comment,commit_comment.created,create,custom_property,custom_property.created,custom_property.deleted,custom_property.promote_to_enterprise,custom_property.updated,custom_property_values,custom_property_values.updated,delete,dependabot_alert,dependabot_alert.auto_dismissed,dependabot_alert.auto_reopened,dependabot_alert.created,dependabot_alert.dismissed,dependabot_alert.fixed,dependabot_alert.reintroduced,dependabot_alert.reopened,deploy_key,deploy_key.created,deploy_key.deleted,deployment,deployment.created,deployment_protection_rule,deployment_protection_rule.requested,deployment_review,deployment_review.approved,deployment_review.rejected,deployment_review.requested,deployment_status,deployment_status.created,discussion,discussion.answered,discussion.category_changed,discussion.closed,discussion.created,discussion.deleted,discussion.edited,discussion.labeled,discussion.locked,discussion.pinned,discussion.reopened,discussion.transferred,discussion.unanswered,discussion.unlabeled,discussion.unlocked,discussion.unpinned,discussion_comment,discussion_comment.created,discussion_comment.deleted,discussion_comment.edited,fork,github_app_authorization,github_app_authorization.revoked,gollum,installation,installation.created,installation.deleted,installation.new_permissions_accepted,installation.suspend,installation.unsuspend,installation_repositories,installation_repositories.added,installation_repositories.removed,installation_target,installation_target.renamed,issue_comment,issue_comment.created,issue_comment.deleted,issue_comment.edited,issue_dependencies,issue_dependencies.blocked_by_added,issue_dependencies.blocked_by_removed,issue_dependencies.blocking_added,issue_dependencies.blocking_removed,issues,issues.assigned,issues.closed,issues.deleted,issues.demilestoned,issues.edited,issues.labeled,issues.locked,issues.milestoned,issues.opened,issues.pinned,issues.reopened,issues.transferred,issues.typed,issues.unassigned,issues.unlabeled,issues.unlocked,issues.unpinned,issues.untyped,label,label.created,label.deleted,label.edited,marketplace_purchase,marketplace_purchase.cancelled,marketplace_purchase.changed,marketplace_purchase.pending_change,marketplace_purchase.pending_change_cancelled,marketplace_purchase.purchased,member,member.added,member.edited,member.removed,membership,membership.added,membership.removed,merge_group,merge_group.checks_requested,merge_group.destroyed,meta,meta.deleted,milestone,milestone.closed,milestone.created,milestone.deleted,milestone.edited,milestone.opened,org_block,org_block.blocked,org_block.unblocked,organization,organization.deleted,organization.member_added,organization.member_invited,organization.member_removed,organization.renamed,package,package.published,package.updated,page_build,personal_access_token_request,personal_access_token_request.approved,personal_access_token_request.cancelled,personal_access_token_request.created,personal_access_token_request.denied,ping,project,project.closed,project.created,project.deleted,project.edited,project.reopened,project_card,project_card.converted,project_card.created,project_card.deleted,project_card.edited,project_card.moved,project_column,project_column.created,project_column.deleted,project_column.edited,project_column.moved,projects_v2,projects_v2.closed,projects_v2.created,projects_v2.deleted,projects_v2.edited,projects_v2.reopened,projects_v2_item,projects_v2_item.archived,projects_v2_item.converted,projects_v2_item.created,projects_v2_item.deleted,projects_v2_item.edited,projects_v2_item.reordered,projects_v2_item.restored,projects_v2_status_update,projects_v2_status_update.created,projects_v2_status_update.deleted,projects_v2_status_update.edited,public,pull_request,pull_request.assigned,pull_request.auto_merge_disabled,pull_request.auto_merge_enabled,pull_request.closed,pull_request.converted_to_draft,pull_request.demilestoned,pull_request.dequeued,pull_request.edited,pull_request.enqueued,pull_request.labeled,pull_request.locked,pull_request.milestoned,pull_request.opened,pull_request.ready_for_review,pull_request.reopened,pull_request.review_request_removed,pull_request.review_requested,pull_request.synchronize,pull_request.unassigned,pull_request.unlabeled,pull_request.unlocked,pull_request_review,pull_request_review.dismissed,pull_request_review.edited,pull_request_review.submitted,pull_request_review_comment,pull_request_review_comment.created,pull_request_review_comment.deleted,pull_request_review_comment.edited,pull_request_review_thread,pull_request_review_thread.resolved,pull_request_review_thread.unresolved,push,registry_package,registry_package.published,registry_package.updated,release,release.created,release.deleted,release.edited,release.prereleased,release.published,release.released,release.unpublished,repository,repository.archived,repository.created,repository.deleted,repository.edited,repository.privatized,repository.publicized,repository.renamed,repository.transferred,repository.unarchived,repository_advisory,repository_advisory.published,repository_advisory.reported,repository_dispatch,repository_dispatch.sample.collected,repository_import,repository_ruleset,repository_ruleset.created,repository_ruleset.deleted,repository_ruleset.edited,repository_vulnerability_alert,repository_vulnerability_alert.create,repository_vulnerability_alert.dismiss,repository_vulnerability_alert.reopen,repository_vulnerability_alert.resolve,secret_scanning_alert,secret_scanning_alert.assigned,secret_scanning_alert.created,secret_scanning_alert.publicly_leaked,secret_scanning_alert.reopened,secret_scanning_alert.resolved,secret_scanning_alert.unassigned,secret_scanning_alert.validated,secret_scanning_alert_location,secret_scanning_alert_location.created,secret_scanning_scan,secret_scanning_scan.completed,security_advisory,security_advisory.published,security_advisory.updated,security_advisory.withdrawn,security_and_analysis,sponsorship,sponsorship.cancelled,sponsorship.created,sponsorship.edited,sponsorship.pending_cancellation,sponsorship.pending_tier_change,sponsorship.tier_changed,star,star.created,star.deleted,status,sub_issues,sub_issues.parent_issue_added,sub_issues.parent_issue_removed,sub_issues.sub_issue_added,sub_issues.sub_issue_removed,team,team.added_to_repository,team.created,team.deleted,team.edited,team.removed_from_repository,team_add,watch,watch.started,workflow_dispatch,workflow_job,workflow_job.completed,workflow_job.in_progress,workflow_job.queued,workflow_job.waiting,workflow_run,workflow_run.completed,workflow_run.in_progress,workflow_run.requested`.split(`,`);function validateEventName(l,d={}){if(typeof l!=`string`)throw TypeError(`eventName must be of type string`);if(l===`*`)throw TypeError(`Using the "*" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.onAny() method instead`);if(l===`error`)throw TypeError(`Using the "error" event with the regular Webhooks.on() function is not supported. Please use the Webhooks.onError() method instead`);if(d.onUnknownEventName!==`ignore`&&!emitterEventNames.includes(l)){if(d.onUnknownEventName!==`warn`)throw TypeError(`"${l}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`);(d.log||console).warn(`"${l}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`)}}function handleEventHandlers(l,d,f){l.hooks[d]||(l.hooks[d]=[]),l.hooks[d].push(f)}function receiverOn(l,d,f){if(Array.isArray(d)){d.forEach(d=>receiverOn(l,d,f));return}validateEventName(d,{onUnknownEventName:`warn`,log:l.log}),handleEventHandlers(l,d,f)}function receiverOnAny(l,d){handleEventHandlers(l,`*`,d)}function receiverOnError(l,d){handleEventHandlers(l,`error`,d)}function wrapErrorHandler(l,d){let f;try{f=l(d)}catch(l){console.log(`FATAL: Error occurred in "error" event handler`),console.log(l)}f&&f.catch&&f.catch(l=>{console.log(`FATAL: Error occurred in "error" event handler`),console.log(l)})}function getHooks(l,d,f){let m=[l.hooks[f],l.hooks[`*`]];return d&&m.unshift(l.hooks[`${f}.${d}`]),[].concat(...m.filter(Boolean))}function receiverHandle(l,d){let f=l.hooks.error||[];if(d instanceof Error){let l=Object.assign(AggregateError([d],d.message),{event:d});return f.forEach(d=>wrapErrorHandler(d,l)),Promise.reject(l)}if(!d||!d.name){let l=Error(`Event name not passed`);throw AggregateError([l],l.message)}if(!d.payload){let l=Error(`Event name not passed`);throw AggregateError([l],l.message)}let m=getHooks(l,`action`in d.payload?d.payload.action:null,d.name);if(m.length===0)return Promise.resolve();let te=[],re=m.map(f=>{let m=Promise.resolve(d);return l.transform&&(m=m.then(l.transform)),m.then(l=>f(l)).catch(l=>te.push(Object.assign(l,{event:d})))});return Promise.all(re).then(()=>{if(te.length===0)return;let l=AggregateError(te,te.map(l=>l.message).join(`
386
- `));throw Object.assign(l,{event:d}),f.forEach(d=>wrapErrorHandler(d,l)),l})}function removeListener(l,d,f){if(Array.isArray(d)){d.forEach(d=>removeListener(l,d,f));return}if(l.hooks[d]){for(let m=l.hooks[d].length-1;m>=0;m--)if(l.hooks[d][m]===f){l.hooks[d].splice(m,1);return}}}function createEventHandler(l){let d={hooks:{},log:createLogger(l&&l.log)};return l&&l.transform&&(d.transform=l.transform),{on:receiverOn.bind(null,d),onAny:receiverOnAny.bind(null,d),onError:receiverOnError.bind(null,d),removeListener:removeListener.bind(null,d),receive:receiverHandle.bind(null,d)}}async function verifyAndReceive(l,d){if(!await verifyWithFallback(l.secret,d.payload,d.signature,l.additionalSecrets).catch(()=>!1)){let f=Error(`[@octokit/webhooks] signature does not match event payload and secret`);return f.event=d,f.status=400,l.eventHandler.receive(f)}let f;try{f=JSON.parse(d.payload)}catch(l){throw l.message=`Invalid JSON`,l.status=400,AggregateError([l],l.message)}return l.eventHandler.receive({id:d.id,name:d.name,payload:f})}var textDecoder$1=new TextDecoder(`utf-8`,{fatal:!1}),decode$1=textDecoder$1.decode.bind(textDecoder$1),Webhooks=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(l){if(!l||!l.secret)throw Error(`[@octokit/webhooks] options.secret required`);let d={eventHandler:createEventHandler(l),secret:l.secret,additionalSecrets:l.additionalSecrets,hooks:{},log:createLogger(l.log)};this.sign=sign.bind(null,l.secret),this.verify=verify.bind(null,l.secret),this.on=d.eventHandler.on,this.onAny=d.eventHandler.onAny,this.onError=d.eventHandler.onError,this.removeListener=d.eventHandler.removeListener,this.receive=d.eventHandler.receive,this.verifyAndReceive=verifyAndReceive.bind(null,d)}},VERSION$1=`16.1.2`;function webhooks(l,d){return new Webhooks({secret:d.secret,transform:async d=>{if(!(`installation`in d.payload)||typeof d.payload.installation!=`object`){let f=new l.constructor({authStrategy:createUnauthenticatedAuth,auth:{reason:`"installation" key missing in webhook event payload`}});return{...d,octokit:f}}let f=d.payload.installation.id,m=await l.auth({type:`installation`,installationId:f,factory(l){return new l.octokit.constructor({...l.octokitOptions,authStrategy:createAppAuth,auth:{...l,installationId:f}})}});return m.hook.before(`request`,l=>{l.headers[`x-github-delivery`]=d.id}),{...d,octokit:m}}})}async function getInstallationOctokit(l,d){return l.octokit.auth({type:`installation`,installationId:d,factory(l){let f={...l.octokitOptions,authStrategy:createAppAuth,auth:{...l,installationId:d}};return new l.octokit.constructor(f)}})}function eachInstallationFactory(l){return Object.assign(eachInstallation.bind(null,l),{iterator:eachInstallationIterator.bind(null,l)})}async function eachInstallation(l,d){let f=eachInstallationIterator(l)[Symbol.asyncIterator](),m=await f.next();for(;!m.done;)await d(m.value),m=await f.next()}function eachInstallationIterator(l){return{async*[Symbol.asyncIterator](){let d=composePaginateRest.iterator(l.octokit,`GET /app/installations`);for await(let{data:f}of d)for(let d of f)yield{octokit:await getInstallationOctokit(l,d.id),installation:d}}}}function eachRepositoryFactory(l){return Object.assign(eachRepository.bind(null,l),{iterator:eachRepositoryIterator.bind(null,l)})}async function eachRepository(l,d,f){let m=eachRepositoryIterator(l,f?d:void 0)[Symbol.asyncIterator](),te=await m.next();for(;!te.done;)f?await f(te.value):await d(te.value),te=await m.next()}function singleInstallationIterator(l,d){return{async*[Symbol.asyncIterator](){yield{octokit:await l.getInstallationOctokit(d)}}}}function eachRepositoryIterator(l,d){return{async*[Symbol.asyncIterator](){let f=d?singleInstallationIterator(l,d.installationId):l.eachInstallation.iterator();for await(let{octokit:l}of f){let d=composePaginateRest.iterator(l,`GET /installation/repositories`);for await(let{data:f}of d)for(let d of f)yield{octokit:l,repository:d}}}}}function getInstallationUrlFactory(l){let d;return async function(f={}){d||=getInstallationUrlBase(l);let m=await d,te=new URL(m);return f.target_id!==void 0&&(te.pathname+=`/permissions`,te.searchParams.append(`target_id`,f.target_id.toFixed())),f.state!==void 0&&te.searchParams.append(`state`,f.state),te.href}}async function getInstallationUrlBase(l){let{data:d}=await l.octokit.request(`GET /app`);if(!d)throw Error(`[@octokit/app] unable to fetch metadata for app`);return`${d.html_url}/installations/new`}var App$1=class{static VERSION=VERSION$1;static defaults(l){return class extends this{constructor(...d){super({...l,...d[0]})}}}octokit;webhooks;oauth;getInstallationOctokit;eachInstallation;eachRepository;getInstallationUrl;log;constructor(l){let d=l.Octokit||Octokit$1,f={authStrategy:createAppAuth,auth:Object.assign({appId:l.appId,privateKey:l.privateKey},l.oauth?{clientId:l.oauth.clientId,clientSecret:l.oauth.clientSecret}:{})};`log`in l&&l.log!==void 0&&(f.log=l.log),this.octokit=new d(f),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},l.log),l.webhooks?this.webhooks=webhooks(this.octokit,l.webhooks):Object.defineProperty(this,"webhooks",{get(){throw Error(`[@octokit/app] webhooks option not set`)}}),l.oauth?this.oauth=new OAuthApp$1({...l.oauth,clientType:`github-app`,Octokit:d}):Object.defineProperty(this,"oauth",{get(){throw Error(`[@octokit/app] oauth.clientId / oauth.clientSecret options are not set`)}}),this.getInstallationOctokit=getInstallationOctokit.bind(null,this),this.eachInstallation=eachInstallationFactory(this),this.eachRepository=eachRepositoryFactory(this),this.getInstallationUrl=getInstallationUrlFactory(this)}},VERSION=`0.0.0-development`,Octokit=Octokit$1.plugin(restEndpointMethods,paginateRest,paginateGraphQL,retry$1,throttling).defaults({userAgent:`octokit.js/${VERSION}`,throttle:{onRateLimit,onSecondaryRateLimit}});function onRateLimit(l,d,f){if(f.log.warn(`Request quota exhausted for request ${d.method} ${d.url}`),d.request.retryCount===0)return f.log.info(`Retrying after ${l} seconds!`),!0}function onSecondaryRateLimit(l,d,f){if(f.log.warn(`SecondaryRateLimit detected for request ${d.method} ${d.url}`),d.request.retryCount===0)return f.log.info(`Retrying after ${l} seconds!`),!0}var App=App$1.defaults({Octokit}),OAuthApp=OAuthApp$1.defaults({Octokit}),require_lib$8=__commonJSMin(((l,d)=>{d.exports=function(l,d){d===!0&&(d=0);var f=``;if(typeof l==`string`)try{f=new URL(l).protocol}catch{}else l&&l.constructor===URL&&(f=l.protocol);var m=f.split(/\:|\+/).filter(Boolean);return typeof d==`number`?m[d]:m}})),require_lib$7=__commonJSMin(((l,d)=>{var f=require_lib$8();function m(l){var d={protocols:[],protocol:null,port:null,resource:``,host:``,user:``,password:``,pathname:``,hash:``,search:``,href:l,query:{},parse_failed:!1};try{var m=new URL(l);d.protocols=f(m),d.protocol=d.protocols[0],d.port=m.port,d.resource=m.hostname,d.host=m.host,d.user=m.username||``,d.password=m.password||``,d.pathname=m.pathname,d.hash=m.hash.slice(1),d.search=m.search.slice(1),d.href=m.href,d.query=Object.fromEntries(m.searchParams)}catch{d.protocols=[`file`],d.protocol=d.protocols[0],d.port=``,d.resource=``,d.user=``,d.pathname=``,d.hash=``,d.search=``,d.href=l,d.query={},d.parse_failed=!0}return d}d.exports=m})),require_dist$2=__commonJSMin(((l,d)=>{var f=require_lib$7();function m(l){return l&&typeof l==`object`&&`default`in l?l:{default:l}}var te=m(f);function re(l){if(l.__esModule)return l;var d=l.default;if(typeof d==`function`){var f=function l(){if(this instanceof l){var f=[null];return f.push.apply(f,arguments),new(Function.bind.apply(d,f))}return d.apply(this,arguments)};f.prototype=d.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(l).forEach(function(d){var m=Object.getOwnPropertyDescriptor(l,d);Object.defineProperty(f,d,m.get?m:{enumerable:!0,get:function(){return l[d]}})}),f}var ie={};let ae=`text/plain`,oe=`us-ascii`,se=(l,d)=>d.some(d=>d instanceof RegExp?d.test(l):d===l),ce=(l,{stripHash:d})=>{let f=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(l);if(!f)throw Error(`Invalid URL: ${l}`);let{type:m,data:te,hash:re}=f.groups,ie=m.split(`;`);re=d?``:re;let ae=!1;ie[ie.length-1]===`base64`&&(ie.pop(),ae=!0);let oe=(ie.shift()||``).toLowerCase(),se=[...ie.map(l=>{let[d,f=``]=l.split(`=`).map(l=>l.trim());return d===`charset`&&(f=f.toLowerCase(),f===`us-ascii`)?``:`${d}${f?`=${f}`:``}`}).filter(Boolean)];return ae&&se.push(`base64`),(se.length>0||oe&&oe!==`text/plain`)&&se.unshift(oe),`data:${se.join(`;`)},${ae?te.trim():te}${re?`#${re}`:``}`};function le(l,d){if(d={defaultProtocol:`http:`,normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...d},l=l.trim(),/^data:/i.test(l))return ce(l,d);if(/^view-source:/i.test(l))throw Error("`view-source:` is not supported as it is a non-standard protocol");let f=l.startsWith(`//`);!f&&/^\.*\//.test(l)||(l=l.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,d.defaultProtocol));let m=new URL(l);if(d.forceHttp&&d.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(d.forceHttp&&m.protocol===`https:`&&(m.protocol=`http:`),d.forceHttps&&m.protocol===`http:`&&(m.protocol=`https:`),d.stripAuthentication&&(m.username=``,m.password=``),d.stripHash?m.hash=``:d.stripTextFragment&&(m.hash=m.hash.replace(/#?:~:text.*?$/i,``)),m.pathname){let l=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,d=0,f=``;for(;;){let te=l.exec(m.pathname);if(!te)break;let re=te[0],ie=te.index,ae=m.pathname.slice(d,ie);f+=ae.replace(/\/{2,}/g,`/`),f+=re,d=ie+re.length}let te=m.pathname.slice(d,m.pathname.length);f+=te.replace(/\/{2,}/g,`/`),m.pathname=f}if(m.pathname)try{m.pathname=decodeURI(m.pathname)}catch{}if(d.removeDirectoryIndex===!0&&(d.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(d.removeDirectoryIndex)&&d.removeDirectoryIndex.length>0){let l=m.pathname.split(`/`),f=l[l.length-1];se(f,d.removeDirectoryIndex)&&(l=l.slice(0,-1),m.pathname=l.slice(1).join(`/`)+`/`)}if(m.hostname&&(m.hostname=m.hostname.replace(/\.$/,``),d.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(m.hostname)&&(m.hostname=m.hostname.replace(/^www\./,``))),Array.isArray(d.removeQueryParameters))for(let l of[...m.searchParams.keys()])se(l,d.removeQueryParameters)&&m.searchParams.delete(l);if(d.removeQueryParameters===!0&&(m.search=``),d.sortQueryParameters){m.searchParams.sort();try{m.search=decodeURIComponent(m.search)}catch{}}d.removeTrailingSlash&&(m.pathname=m.pathname.replace(/\/$/,``));let te=l;return l=m.toString(),!d.removeSingleSlash&&m.pathname===`/`&&!te.endsWith(`/`)&&m.hash===``&&(l=l.replace(/\/$/,``)),(d.removeTrailingSlash||m.pathname===`/`)&&m.hash===``&&d.removeSingleSlash&&(l=l.replace(/\/$/,``)),f&&!d.normalizeProtocol&&(l=l.replace(/^http:\/\//,`//`)),d.stripProtocol&&(l=l.replace(/^(?:https?:)?\/\//,``)),l}var ue=re(Object.freeze({__proto__:null,default:le}));Object.defineProperty(ie,"__esModule",{value:!0});var de=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(l){return typeof l}:function(l){return l&&typeof Symbol==`function`&&l.constructor===Symbol&&l!==Symbol.prototype?`symbol`:typeof l},fe=he(ue),pe=te.default,me=he(pe);function he(l){return l&&l.__esModule?l:{default:l}}var ge=function l(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=/^(?:([a-zA-Z_][a-zA-Z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:](([\~,\.\w,\-,\_,\/,\s]|%[0-9A-Fa-f]{2})+?(?:\.git|\/)?)$/,te=function(l){var f=Error(l);throw f.subject_url=d,f};(typeof d!=`string`||!d.trim())&&te(`Invalid url.`),d.length>l.MAX_INPUT_LENGTH&&te(`Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH.`),f&&((f===void 0?`undefined`:de(f))!==`object`&&(f={stripHash:!1}),d=(0,fe.default)(d,f));var re=(0,me.default)(d);if(re.parse_failed){var ie=re.href.match(m);ie?(re.protocols=[`ssh`],re.protocol=`ssh`,re.resource=ie[2],re.host=ie[2],re.user=ie[1],re.pathname=`/`+ie[3],re.parse_failed=!1):te(`URL parsing failed.`)}return re};ge.MAX_INPUT_LENGTH=2048,d.exports=ie.default=ge})),require_lib$6=__commonJSMin(((l,d)=>{var f=require_lib$8();function m(l){if(Array.isArray(l))return l.indexOf(`ssh`)!==-1||l.indexOf(`rsync`)!==-1;if(typeof l!=`string`)return!1;var d=f(l);if(l=l.substring(l.indexOf(`://`)+3),m(d))return!0;var te=RegExp(`.([a-zA-Z\\d]+):(\\d+)/`);return!l.match(te)&&l.indexOf(`@`)<l.indexOf(`:`)}d.exports=m})),require_lib$5=__commonJSMin(((l,d)=>{let f=require_dist$2(),m=require_lib$6();function te(l){let d=f(l);return d.token=``,d.password===`x-oauth-basic`?d.token=d.user:d.user===`x-token-auth`&&(d.token=d.password),m(d.protocols)||d.protocols.length===0&&m(l)?d.protocol=`ssh`:d.protocols.length?d.protocol=d.protocols[0]:(d.protocol=`file`,d.protocols=[`file`]),d.href=d.href.replace(/\/$/,``),d}d.exports=te})),require_lib$4=__commonJSMin(((l,d)=>{var f=require_lib$5();function m(l,d){if(d||=[],typeof l!=`string`)throw Error(`The url must be a string.`);if(!d.every(function(l){return typeof l==`string`}))throw Error(`The refs should contain only strings`);/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i.test(l)&&(l=`https://github.com/`+l);var te=f(l),re=te.resource.split(`.`),ae=null;switch(te.toString=function(l){return m.stringify(this,l)},te.source=re.length>2?re.slice(1-re.length).join(`.`):te.source=te.resource,te.git_suffix=/\.git$/.test(te.pathname),te.name=decodeURIComponent((te.pathname||te.href).replace(/(^\/)|(\/$)/g,``).replace(/\.git$/,``)),te.owner=decodeURIComponent(te.user),te.source){case`git.cloudforge.com`:te.owner=te.user,te.organization=re[0],te.source=`cloudforge.com`;break;case`visualstudio.com`:if(te.resource===`vs-ssh.visualstudio.com`){ae=te.name.split(`/`),ae.length===4&&(te.organization=ae[1],te.owner=ae[2],te.name=ae[3],te.full_name=ae[2]+`/`+ae[3]);break}else{ae=te.name.split(`/`),ae.length===2?(te.owner=ae[1],te.name=ae[1],te.full_name=`_git/`+te.name):ae.length===3?(te.name=ae[2],ae[0]===`DefaultCollection`?(te.owner=ae[2],te.organization=ae[0],te.full_name=te.organization+`/_git/`+te.name):(te.owner=ae[0],te.full_name=te.owner+`/_git/`+te.name)):ae.length===4&&(te.organization=ae[0],te.owner=ae[1],te.name=ae[3],te.full_name=te.organization+`/`+te.owner+`/_git/`+te.name);break}case`dev.azure.com`:case`azure.com`:if(te.resource===`ssh.dev.azure.com`){ae=te.name.split(`/`),ae.length===4&&(te.organization=ae[1],te.owner=ae[2],te.name=ae[3]);break}else{ae=te.name.split(`/`),ae.length===5?(te.organization=ae[0],te.owner=ae[1],te.name=ae[4],te.full_name=`_git/`+te.name):ae.length===3?(te.name=ae[2],ae[0]===`DefaultCollection`?(te.owner=ae[2],te.organization=ae[0],te.full_name=te.organization+`/_git/`+te.name):(te.owner=ae[0],te.full_name=te.owner+`/_git/`+te.name)):ae.length===4&&(te.organization=ae[0],te.owner=ae[1],te.name=ae[3],te.full_name=te.organization+`/`+te.owner+`/_git/`+te.name),te.query&&te.query.path&&(te.filepath=te.query.path.replace(/^\/+/g,``)),te.query&&te.query.version&&(te.ref=te.query.version.replace(/^GB/,``));break}default:ae=te.name.split(`/`);var oe=ae.length-1;if(ae.length>=2){var se=ae.indexOf(`-`,2),ce=ae.indexOf(`blob`,2),le=ae.indexOf(`tree`,2),ue=ae.indexOf(`commit`,2),de=ae.indexOf(`issues`,2),fe=ae.indexOf(`src`,2),pe=ae.indexOf(`raw`,2),me=ae.indexOf(`edit`,2);oe=se>0?se-1:ce>0&&le>0?Math.min(ce-1,le-1):ce>0?ce-1:de>0?de-1:le>0?le-1:ue>0?ue-1:fe>0?fe-1:pe>0?pe-1:me>0?me-1:oe,te.owner=ae.slice(0,oe).join(`/`),te.name=ae[oe],ue&&de<0&&(te.commit=ae[oe+2])}te.ref=``,te.filepathtype=``,te.filepath=``;var he=ae.length>oe&&ae[oe+1]===`-`?oe+1:oe;ae.length>he+2&&[`raw`,`src`,`blob`,`tree`,`edit`].indexOf(ae[he+1])>=0&&(te.filepathtype=ae[he+1],te.ref=ae[he+2],ae.length>he+3&&(te.filepath=ae.slice(he+3).join(`/`))),te.organization=te.owner;break}te.full_name||(te.full_name=te.owner,te.name&&(te.full_name&&(te.full_name+=`/`),te.full_name+=te.name)),te.owner.startsWith(`scm/`)&&(te.source=`bitbucket-server`,te.owner=te.owner.replace(`scm/`,``),te.organization=te.owner,te.full_name=te.owner+`/`+te.name);var ge=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/.exec(te.pathname);return ge!=null&&(te.source=`bitbucket-server`,ge[1]===`users`?te.owner=`~`+ge[2]:te.owner=ge[2],te.organization=te.owner,te.name=ge[3],ae=ge[4].split(`/`),ae.length>1&&([`raw`,`browse`].indexOf(ae[1])>=0?(te.filepathtype=ae[1],ae.length>2&&(te.filepath=ae.slice(2).join(`/`))):ae[1]===`commits`&&ae.length>2&&(te.commit=ae[2])),te.full_name=te.owner+`/`+te.name,te.query.at?te.ref=te.query.at:te.ref=``),d.length!==0&&te.ref&&(te.ref=ie(te.href,d)||te.ref,te.filepath=te.href.split(te.ref+`/`)[1]),te}m.stringify=function(l,d){d||=l.protocols&&l.protocols.length?l.protocols.join(`+`):l.protocol;var f=l.port?`:`+l.port:``,m=l.user||`git`,ie=l.git_suffix?`.git`:``;switch(d){case`ssh`:return f?`ssh://`+m+`@`+l.resource+f+`/`+l.full_name+ie:m+`@`+l.resource+`:`+l.full_name+ie;case`git+ssh`:case`ssh+git`:case`ftp`:case`ftps`:return d+`://`+m+`@`+l.resource+f+`/`+l.full_name+ie;case`http`:case`https`:var ae=l.token?te(l):l.user&&(l.protocols.includes(`http`)||l.protocols.includes(`https`))?l.user+`@`:``;return d+`://`+ae+l.resource+f+`/`+re(l)+ie;default:return l.href}};
386
+ `));throw Object.assign(l,{event:d}),f.forEach(d=>wrapErrorHandler(d,l)),l})}function removeListener(l,d,f){if(Array.isArray(d)){d.forEach(d=>removeListener(l,d,f));return}if(l.hooks[d]){for(let m=l.hooks[d].length-1;m>=0;m--)if(l.hooks[d][m]===f){l.hooks[d].splice(m,1);return}}}function createEventHandler(l){let d={hooks:{},log:createLogger(l&&l.log)};return l&&l.transform&&(d.transform=l.transform),{on:receiverOn.bind(null,d),onAny:receiverOnAny.bind(null,d),onError:receiverOnError.bind(null,d),removeListener:removeListener.bind(null,d),receive:receiverHandle.bind(null,d)}}async function verifyAndReceive(l,d){if(!await verifyWithFallback(l.secret,d.payload,d.signature,l.additionalSecrets).catch(()=>!1)){let f=Error(`[@octokit/webhooks] signature does not match event payload and secret`);return f.event=d,f.status=400,l.eventHandler.receive(f)}let f;try{f=JSON.parse(d.payload)}catch(l){throw l.message=`Invalid JSON`,l.status=400,AggregateError([l],l.message)}return l.eventHandler.receive({id:d.id,name:d.name,payload:f})}var textDecoder$1=new TextDecoder(`utf-8`,{fatal:!1}),decode$1=textDecoder$1.decode.bind(textDecoder$1),Webhooks=class{sign;verify;on;onAny;onError;removeListener;receive;verifyAndReceive;constructor(l){if(!l||!l.secret)throw Error(`[@octokit/webhooks] options.secret required`);let d={eventHandler:createEventHandler(l),secret:l.secret,additionalSecrets:l.additionalSecrets,hooks:{},log:createLogger(l.log)};this.sign=sign.bind(null,l.secret),this.verify=verify.bind(null,l.secret),this.on=d.eventHandler.on,this.onAny=d.eventHandler.onAny,this.onError=d.eventHandler.onError,this.removeListener=d.eventHandler.removeListener,this.receive=d.eventHandler.receive,this.verifyAndReceive=verifyAndReceive.bind(null,d)}},VERSION$1=`16.1.2`;function webhooks(l,d){return new Webhooks({secret:d.secret,transform:async d=>{if(!(`installation`in d.payload)||typeof d.payload.installation!=`object`){let f=new l.constructor({authStrategy:createUnauthenticatedAuth,auth:{reason:`"installation" key missing in webhook event payload`}});return{...d,octokit:f}}let f=d.payload.installation.id,m=await l.auth({type:`installation`,installationId:f,factory(l){return new l.octokit.constructor({...l.octokitOptions,authStrategy:createAppAuth,auth:{...l,installationId:f}})}});return m.hook.before(`request`,l=>{l.headers[`x-github-delivery`]=d.id}),{...d,octokit:m}}})}async function getInstallationOctokit(l,d){return l.octokit.auth({type:`installation`,installationId:d,factory(l){let f={...l.octokitOptions,authStrategy:createAppAuth,auth:{...l,installationId:d}};return new l.octokit.constructor(f)}})}function eachInstallationFactory(l){return Object.assign(eachInstallation.bind(null,l),{iterator:eachInstallationIterator.bind(null,l)})}async function eachInstallation(l,d){let f=eachInstallationIterator(l)[Symbol.asyncIterator](),m=await f.next();for(;!m.done;)await d(m.value),m=await f.next()}function eachInstallationIterator(l){return{async*[Symbol.asyncIterator](){let d=composePaginateRest.iterator(l.octokit,`GET /app/installations`);for await(let{data:f}of d)for(let d of f)yield{octokit:await getInstallationOctokit(l,d.id),installation:d}}}}function eachRepositoryFactory(l){return Object.assign(eachRepository.bind(null,l),{iterator:eachRepositoryIterator.bind(null,l)})}async function eachRepository(l,d,f){let m=eachRepositoryIterator(l,f?d:void 0)[Symbol.asyncIterator](),te=await m.next();for(;!te.done;)f?await f(te.value):await d(te.value),te=await m.next()}function singleInstallationIterator(l,d){return{async*[Symbol.asyncIterator](){yield{octokit:await l.getInstallationOctokit(d)}}}}function eachRepositoryIterator(l,d){return{async*[Symbol.asyncIterator](){let f=d?singleInstallationIterator(l,d.installationId):l.eachInstallation.iterator();for await(let{octokit:l}of f){let d=composePaginateRest.iterator(l,`GET /installation/repositories`);for await(let{data:f}of d)for(let d of f)yield{octokit:l,repository:d}}}}}function getInstallationUrlFactory(l){let d;return async function(f={}){d||=getInstallationUrlBase(l);let m=await d,te=new URL(m);return f.target_id!==void 0&&(te.pathname+=`/permissions`,te.searchParams.append(`target_id`,f.target_id.toFixed())),f.state!==void 0&&te.searchParams.append(`state`,f.state),te.href}}async function getInstallationUrlBase(l){let{data:d}=await l.octokit.request(`GET /app`);if(!d)throw Error(`[@octokit/app] unable to fetch metadata for app`);return`${d.html_url}/installations/new`}var App$1=class{static VERSION=VERSION$1;static defaults(l){return class extends this{constructor(...d){super({...l,...d[0]})}}}octokit;webhooks;oauth;getInstallationOctokit;eachInstallation;eachRepository;getInstallationUrl;log;constructor(l){let d=l.Octokit||Octokit$1,f={authStrategy:createAppAuth,auth:Object.assign({appId:l.appId,privateKey:l.privateKey},l.oauth?{clientId:l.oauth.clientId,clientSecret:l.oauth.clientSecret}:{})};`log`in l&&l.log!==void 0&&(f.log=l.log),this.octokit=new d(f),this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},l.log),l.webhooks?this.webhooks=webhooks(this.octokit,l.webhooks):Object.defineProperty(this,"webhooks",{get(){throw Error(`[@octokit/app] webhooks option not set`)}}),l.oauth?this.oauth=new OAuthApp$1({...l.oauth,clientType:`github-app`,Octokit:d}):Object.defineProperty(this,"oauth",{get(){throw Error(`[@octokit/app] oauth.clientId / oauth.clientSecret options are not set`)}}),this.getInstallationOctokit=getInstallationOctokit.bind(null,this),this.eachInstallation=eachInstallationFactory(this),this.eachRepository=eachRepositoryFactory(this),this.getInstallationUrl=getInstallationUrlFactory(this)}},VERSION=`0.0.0-development`,Octokit=Octokit$1.plugin(restEndpointMethods,paginateRest,paginateGraphQL,retry$1,throttling).defaults({userAgent:`octokit.js/${VERSION}`,throttle:{onRateLimit,onSecondaryRateLimit}});function onRateLimit(l,d,f){if(f.log.warn(`Request quota exhausted for request ${d.method} ${d.url}`),d.request.retryCount===0)return f.log.info(`Retrying after ${l} seconds!`),!0}function onSecondaryRateLimit(l,d,f){if(f.log.warn(`SecondaryRateLimit detected for request ${d.method} ${d.url}`),d.request.retryCount===0)return f.log.info(`Retrying after ${l} seconds!`),!0}var App=App$1.defaults({Octokit}),OAuthApp=OAuthApp$1.defaults({Octokit}),require_lib$7=__commonJSMin(((l,d)=>{d.exports=function(l,d){d===!0&&(d=0);var f=``;if(typeof l==`string`)try{f=new URL(l).protocol}catch{}else l&&l.constructor===URL&&(f=l.protocol);var m=f.split(/\:|\+/).filter(Boolean);return typeof d==`number`?m[d]:m}})),require_lib$6=__commonJSMin(((l,d)=>{var f=require_lib$7();function m(l){var d={protocols:[],protocol:null,port:null,resource:``,host:``,user:``,password:``,pathname:``,hash:``,search:``,href:l,query:{},parse_failed:!1};try{var m=new URL(l);d.protocols=f(m),d.protocol=d.protocols[0],d.port=m.port,d.resource=m.hostname,d.host=m.host,d.user=m.username||``,d.password=m.password||``,d.pathname=m.pathname,d.hash=m.hash.slice(1),d.search=m.search.slice(1),d.href=m.href,d.query=Object.fromEntries(m.searchParams)}catch{d.protocols=[`file`],d.protocol=d.protocols[0],d.port=``,d.resource=``,d.user=``,d.pathname=``,d.hash=``,d.search=``,d.href=l,d.query={},d.parse_failed=!0}return d}d.exports=m})),require_dist$2=__commonJSMin(((l,d)=>{var f=require_lib$6();function m(l){return l&&typeof l==`object`&&`default`in l?l:{default:l}}var te=m(f);function re(l){if(l.__esModule)return l;var d=l.default;if(typeof d==`function`){var f=function l(){if(this instanceof l){var f=[null];return f.push.apply(f,arguments),new(Function.bind.apply(d,f))}return d.apply(this,arguments)};f.prototype=d.prototype}else f={};return Object.defineProperty(f,"__esModule",{value:!0}),Object.keys(l).forEach(function(d){var m=Object.getOwnPropertyDescriptor(l,d);Object.defineProperty(f,d,m.get?m:{enumerable:!0,get:function(){return l[d]}})}),f}var ie={};let ae=`text/plain`,oe=`us-ascii`,se=(l,d)=>d.some(d=>d instanceof RegExp?d.test(l):d===l),ce=(l,{stripHash:d})=>{let f=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(l);if(!f)throw Error(`Invalid URL: ${l}`);let{type:m,data:te,hash:re}=f.groups,ie=m.split(`;`);re=d?``:re;let ae=!1;ie[ie.length-1]===`base64`&&(ie.pop(),ae=!0);let oe=(ie.shift()||``).toLowerCase(),se=[...ie.map(l=>{let[d,f=``]=l.split(`=`).map(l=>l.trim());return d===`charset`&&(f=f.toLowerCase(),f===`us-ascii`)?``:`${d}${f?`=${f}`:``}`}).filter(Boolean)];return ae&&se.push(`base64`),(se.length>0||oe&&oe!==`text/plain`)&&se.unshift(oe),`data:${se.join(`;`)},${ae?te.trim():te}${re?`#${re}`:``}`};function le(l,d){if(d={defaultProtocol:`http:`,normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...d},l=l.trim(),/^data:/i.test(l))return ce(l,d);if(/^view-source:/i.test(l))throw Error("`view-source:` is not supported as it is a non-standard protocol");let f=l.startsWith(`//`);!f&&/^\.*\//.test(l)||(l=l.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,d.defaultProtocol));let m=new URL(l);if(d.forceHttp&&d.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(d.forceHttp&&m.protocol===`https:`&&(m.protocol=`http:`),d.forceHttps&&m.protocol===`http:`&&(m.protocol=`https:`),d.stripAuthentication&&(m.username=``,m.password=``),d.stripHash?m.hash=``:d.stripTextFragment&&(m.hash=m.hash.replace(/#?:~:text.*?$/i,``)),m.pathname){let l=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,d=0,f=``;for(;;){let te=l.exec(m.pathname);if(!te)break;let re=te[0],ie=te.index,ae=m.pathname.slice(d,ie);f+=ae.replace(/\/{2,}/g,`/`),f+=re,d=ie+re.length}let te=m.pathname.slice(d,m.pathname.length);f+=te.replace(/\/{2,}/g,`/`),m.pathname=f}if(m.pathname)try{m.pathname=decodeURI(m.pathname)}catch{}if(d.removeDirectoryIndex===!0&&(d.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(d.removeDirectoryIndex)&&d.removeDirectoryIndex.length>0){let l=m.pathname.split(`/`),f=l[l.length-1];se(f,d.removeDirectoryIndex)&&(l=l.slice(0,-1),m.pathname=l.slice(1).join(`/`)+`/`)}if(m.hostname&&(m.hostname=m.hostname.replace(/\.$/,``),d.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(m.hostname)&&(m.hostname=m.hostname.replace(/^www\./,``))),Array.isArray(d.removeQueryParameters))for(let l of[...m.searchParams.keys()])se(l,d.removeQueryParameters)&&m.searchParams.delete(l);if(d.removeQueryParameters===!0&&(m.search=``),d.sortQueryParameters){m.searchParams.sort();try{m.search=decodeURIComponent(m.search)}catch{}}d.removeTrailingSlash&&(m.pathname=m.pathname.replace(/\/$/,``));let te=l;return l=m.toString(),!d.removeSingleSlash&&m.pathname===`/`&&!te.endsWith(`/`)&&m.hash===``&&(l=l.replace(/\/$/,``)),(d.removeTrailingSlash||m.pathname===`/`)&&m.hash===``&&d.removeSingleSlash&&(l=l.replace(/\/$/,``)),f&&!d.normalizeProtocol&&(l=l.replace(/^http:\/\//,`//`)),d.stripProtocol&&(l=l.replace(/^(?:https?:)?\/\//,``)),l}var ue=re(Object.freeze({__proto__:null,default:le}));Object.defineProperty(ie,"__esModule",{value:!0});var de=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(l){return typeof l}:function(l){return l&&typeof Symbol==`function`&&l.constructor===Symbol&&l!==Symbol.prototype?`symbol`:typeof l},fe=he(ue),pe=te.default,me=he(pe);function he(l){return l&&l.__esModule?l:{default:l}}var ge=function l(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=/^(?:([a-zA-Z_][a-zA-Z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:](([\~,\.\w,\-,\_,\/,\s]|%[0-9A-Fa-f]{2})+?(?:\.git|\/)?)$/,te=function(l){var f=Error(l);throw f.subject_url=d,f};(typeof d!=`string`||!d.trim())&&te(`Invalid url.`),d.length>l.MAX_INPUT_LENGTH&&te(`Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH.`),f&&((f===void 0?`undefined`:de(f))!==`object`&&(f={stripHash:!1}),d=(0,fe.default)(d,f));var re=(0,me.default)(d);if(re.parse_failed){var ie=re.href.match(m);ie?(re.protocols=[`ssh`],re.protocol=`ssh`,re.resource=ie[2],re.host=ie[2],re.user=ie[1],re.pathname=`/`+ie[3],re.parse_failed=!1):te(`URL parsing failed.`)}return re};ge.MAX_INPUT_LENGTH=2048,d.exports=ie.default=ge})),require_lib$5=__commonJSMin(((l,d)=>{var f=require_lib$7();function m(l){if(Array.isArray(l))return l.indexOf(`ssh`)!==-1||l.indexOf(`rsync`)!==-1;if(typeof l!=`string`)return!1;var d=f(l);if(l=l.substring(l.indexOf(`://`)+3),m(d))return!0;var te=RegExp(`.([a-zA-Z\\d]+):(\\d+)/`);return!l.match(te)&&l.indexOf(`@`)<l.indexOf(`:`)}d.exports=m})),require_lib$4=__commonJSMin(((l,d)=>{let f=require_dist$2(),m=require_lib$5();function te(l){let d=f(l);return d.token=``,d.password===`x-oauth-basic`?d.token=d.user:d.user===`x-token-auth`&&(d.token=d.password),m(d.protocols)||d.protocols.length===0&&m(l)?d.protocol=`ssh`:d.protocols.length?d.protocol=d.protocols[0]:(d.protocol=`file`,d.protocols=[`file`]),d.href=d.href.replace(/\/$/,``),d}d.exports=te})),require_lib$3=__commonJSMin(((l,d)=>{var f=require_lib$4();function m(l,d){if(d||=[],typeof l!=`string`)throw Error(`The url must be a string.`);if(!d.every(function(l){return typeof l==`string`}))throw Error(`The refs should contain only strings`);/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i.test(l)&&(l=`https://github.com/`+l);var te=f(l),re=te.resource.split(`.`),ae=null;switch(te.toString=function(l){return m.stringify(this,l)},te.source=re.length>2?re.slice(1-re.length).join(`.`):te.source=te.resource,te.git_suffix=/\.git$/.test(te.pathname),te.name=decodeURIComponent((te.pathname||te.href).replace(/(^\/)|(\/$)/g,``).replace(/\.git$/,``)),te.owner=decodeURIComponent(te.user),te.source){case`git.cloudforge.com`:te.owner=te.user,te.organization=re[0],te.source=`cloudforge.com`;break;case`visualstudio.com`:if(te.resource===`vs-ssh.visualstudio.com`){ae=te.name.split(`/`),ae.length===4&&(te.organization=ae[1],te.owner=ae[2],te.name=ae[3],te.full_name=ae[2]+`/`+ae[3]);break}else{ae=te.name.split(`/`),ae.length===2?(te.owner=ae[1],te.name=ae[1],te.full_name=`_git/`+te.name):ae.length===3?(te.name=ae[2],ae[0]===`DefaultCollection`?(te.owner=ae[2],te.organization=ae[0],te.full_name=te.organization+`/_git/`+te.name):(te.owner=ae[0],te.full_name=te.owner+`/_git/`+te.name)):ae.length===4&&(te.organization=ae[0],te.owner=ae[1],te.name=ae[3],te.full_name=te.organization+`/`+te.owner+`/_git/`+te.name);break}case`dev.azure.com`:case`azure.com`:if(te.resource===`ssh.dev.azure.com`){ae=te.name.split(`/`),ae.length===4&&(te.organization=ae[1],te.owner=ae[2],te.name=ae[3]);break}else{ae=te.name.split(`/`),ae.length===5?(te.organization=ae[0],te.owner=ae[1],te.name=ae[4],te.full_name=`_git/`+te.name):ae.length===3?(te.name=ae[2],ae[0]===`DefaultCollection`?(te.owner=ae[2],te.organization=ae[0],te.full_name=te.organization+`/_git/`+te.name):(te.owner=ae[0],te.full_name=te.owner+`/_git/`+te.name)):ae.length===4&&(te.organization=ae[0],te.owner=ae[1],te.name=ae[3],te.full_name=te.organization+`/`+te.owner+`/_git/`+te.name),te.query&&te.query.path&&(te.filepath=te.query.path.replace(/^\/+/g,``)),te.query&&te.query.version&&(te.ref=te.query.version.replace(/^GB/,``));break}default:ae=te.name.split(`/`);var oe=ae.length-1;if(ae.length>=2){var se=ae.indexOf(`-`,2),ce=ae.indexOf(`blob`,2),le=ae.indexOf(`tree`,2),ue=ae.indexOf(`commit`,2),de=ae.indexOf(`issues`,2),fe=ae.indexOf(`src`,2),pe=ae.indexOf(`raw`,2),me=ae.indexOf(`edit`,2);oe=se>0?se-1:ce>0&&le>0?Math.min(ce-1,le-1):ce>0?ce-1:de>0?de-1:le>0?le-1:ue>0?ue-1:fe>0?fe-1:pe>0?pe-1:me>0?me-1:oe,te.owner=ae.slice(0,oe).join(`/`),te.name=ae[oe],ue&&de<0&&(te.commit=ae[oe+2])}te.ref=``,te.filepathtype=``,te.filepath=``;var he=ae.length>oe&&ae[oe+1]===`-`?oe+1:oe;ae.length>he+2&&[`raw`,`src`,`blob`,`tree`,`edit`].indexOf(ae[he+1])>=0&&(te.filepathtype=ae[he+1],te.ref=ae[he+2],ae.length>he+3&&(te.filepath=ae.slice(he+3).join(`/`))),te.organization=te.owner;break}te.full_name||(te.full_name=te.owner,te.name&&(te.full_name&&(te.full_name+=`/`),te.full_name+=te.name)),te.owner.startsWith(`scm/`)&&(te.source=`bitbucket-server`,te.owner=te.owner.replace(`scm/`,``),te.organization=te.owner,te.full_name=te.owner+`/`+te.name);var ge=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/.exec(te.pathname);return ge!=null&&(te.source=`bitbucket-server`,ge[1]===`users`?te.owner=`~`+ge[2]:te.owner=ge[2],te.organization=te.owner,te.name=ge[3],ae=ge[4].split(`/`),ae.length>1&&([`raw`,`browse`].indexOf(ae[1])>=0?(te.filepathtype=ae[1],ae.length>2&&(te.filepath=ae.slice(2).join(`/`))):ae[1]===`commits`&&ae.length>2&&(te.commit=ae[2])),te.full_name=te.owner+`/`+te.name,te.query.at?te.ref=te.query.at:te.ref=``),d.length!==0&&te.ref&&(te.ref=ie(te.href,d)||te.ref,te.filepath=te.href.split(te.ref+`/`)[1]),te}m.stringify=function(l,d){d||=l.protocols&&l.protocols.length?l.protocols.join(`+`):l.protocol;var f=l.port?`:`+l.port:``,m=l.user||`git`,ie=l.git_suffix?`.git`:``;switch(d){case`ssh`:return f?`ssh://`+m+`@`+l.resource+f+`/`+l.full_name+ie:m+`@`+l.resource+`:`+l.full_name+ie;case`git+ssh`:case`ssh+git`:case`ftp`:case`ftps`:return d+`://`+m+`@`+l.resource+f+`/`+l.full_name+ie;case`http`:case`https`:var ae=l.token?te(l):l.user&&(l.protocols.includes(`http`)||l.protocols.includes(`https`))?l.user+`@`:``;return d+`://`+ae+l.resource+f+`/`+re(l)+ie;default:return l.href}};
387
387
  /*!
388
388
  * buildToken
389
389
  * Builds OAuth token prefix (helper function)
@@ -393,7 +393,7 @@ var LruObject=class{constructor(l=1e3,d=0){if(isNaN(l)||l<0)throw Error(`Invalid
393
393
  * @param {GitUrl} obj The parsed Git url object.
394
394
  * @return {String} token prefix
395
395
  */
396
- function te(l){switch(l.source){case`bitbucket.org`:return`x-token-auth:`+l.token+`@`;default:return l.token+`@`}}function re(l){switch(l.source){case`bitbucket-server`:return`scm/`+l.full_name;default:return l.full_name.split(`/`).map(function(l){return encodeURIComponent(l)}).join(`/`)}}function ie(l,d){var f=``;return d.forEach(function(d){l.includes(d)&&d.length>f.length&&(f=d)}),f}d.exports=m})),import_lib$2=__toESM(require_lib$4(),1);function getGitHubRemoteFromConfig(l){if(!l)return;let d=Object.entries(l).toSorted(([l],[d])=>l===`origin`?-1:+(d===`origin`));for(let[,l]of d){let{url:d}=l;if(d)try{let l=(0,import_lib$2.default)(d);if(l.source===`github.com`&&l.owner&&l.name)return{owner:l.owner,repo:l.name}}catch{}}}const gitHubRepoSchema=object({repository:object({allowUpdateBranch:boolean(),archivedAt:string$2().nullable(),autoMergeAllowed:boolean(),closedIssues:object({totalCount:number()}),closedPullRequests:object({totalCount:number()}),codeOfConduct:object({name:string$2()}).nullable(),contributingGuidelines:object({body:string$2()}).nullable(),contributorCount:number().optional(),createdAt:string$2(),databaseId:number(),defaultBranchRef:object({name:string$2()}).nullable(),deleteBranchOnMerge:boolean(),description:string$2().nullable(),discussions:object({totalCount:number()}),diskUsage:number().nullable(),forkCount:number(),forkingAllowed:boolean(),fundingLinks:array(object({platform:string$2(),url:string$2()})),gitattributes:object({text:string$2().nullable()}).nullable(),gitmodules:object({text:string$2().nullable()}).nullable(),hasDiscussionsEnabled:boolean(),hasIssuesEnabled:boolean(),hasProjectsEnabled:boolean(),hasSponsorshipsEnabled:boolean(),hasVulnerabilityAlertsEnabled:boolean(),hasWikiEnabled:boolean(),homepageUrl:string$2().nullable(),isArchived:boolean(),isDisabled:boolean(),isFork:boolean(),isInOrganization:boolean(),isMirror:boolean(),isPrivate:boolean(),isSecurityPolicyEnabled:boolean(),isTemplate:boolean(),languages:object({edges:array(object({node:object({name:string$2()}),size:number()}))}).nullable(),latestRelease:object({createdAt:string$2(),releaseAssets:object({nodes:array(object({downloadCount:number()}))}),tagName:string$2()}).nullable(),licenseInfo:object({key:string$2(),name:string$2(),spdxId:string$2().nullable(),url:string$2().nullable()}).nullable(),mergeCommitAllowed:boolean(),mergeCommitMessage:string$2(),mergeCommitTitle:string$2(),mergedPullRequests:object({totalCount:number()}),mirrorUrl:string$2().nullable(),name:string$2(),nameWithOwner:string$2(),openGraphImageUrl:string$2(),openIssues:object({totalCount:number()}),openPullRequests:object({totalCount:number()}),owner:object({__typename:string$2(),login:string$2()}),parent:object({defaultBranchRef:object({name:string$2()}).nullable(),name:string$2(),nameWithOwner:string$2(),owner:object({login:string$2()}),url:string$2()}).nullable(),primaryLanguage:object({name:string$2()}).nullable(),pushedAt:string$2().nullable(),rebaseMergeAllowed:boolean(),releases:object({totalCount:number()}),repositoryTopics:object({nodes:array(object({topic:object({name:string$2()})}))}),securityPolicyUrl:string$2().nullable(),squashMergeAllowed:boolean(),squashMergeCommitMessage:string$2(),squashMergeCommitTitle:string$2(),sshUrl:string$2(),stargazerCount:number(),templateRepository:object({name:string$2(),owner:object({login:string$2()}),url:string$2()}).nullable(),updatedAt:string$2(),url:string$2(),usesCustomOpenGraphImage:boolean(),visibility:string$2(),vulnerabilityAlerts:object({totalCount:number()}).nullable(),watchers:object({totalCount:number()}),webCommitSignoffRequired:boolean()})}),graphqlQuery=`
396
+ function te(l){switch(l.source){case`bitbucket.org`:return`x-token-auth:`+l.token+`@`;default:return l.token+`@`}}function re(l){switch(l.source){case`bitbucket-server`:return`scm/`+l.full_name;default:return l.full_name.split(`/`).map(function(l){return encodeURIComponent(l)}).join(`/`)}}function ie(l,d){var f=``;return d.forEach(function(d){l.includes(d)&&d.length>f.length&&(f=d)}),f}d.exports=m})),import_lib$2=__toESM(require_lib$3(),1);function getGitHubRemoteFromConfig(l){if(!l)return;let d=Object.entries(l).toSorted(([l],[d])=>l===`origin`?-1:+(d===`origin`));for(let[,l]of d){let{url:d}=l;if(d)try{let l=(0,import_lib$2.default)(d);if(l.source===`github.com`&&l.owner&&l.name)return{owner:l.owner,repo:l.name}}catch{}}}const gitHubRepoSchema=object({repository:object({allowUpdateBranch:boolean(),archivedAt:string$2().nullable(),autoMergeAllowed:boolean(),closedIssues:object({totalCount:number()}),closedPullRequests:object({totalCount:number()}),codeOfConduct:object({name:string$2()}).nullable(),contributingGuidelines:object({body:string$2()}).nullable(),contributorCount:number().optional(),createdAt:string$2(),databaseId:number(),defaultBranchRef:object({name:string$2()}).nullable(),deleteBranchOnMerge:boolean(),description:string$2().nullable(),discussions:object({totalCount:number()}),diskUsage:number().nullable(),forkCount:number(),forkingAllowed:boolean(),fundingLinks:array(object({platform:string$2(),url:string$2()})),gitattributes:object({text:string$2().nullable()}).nullable(),gitmodules:object({text:string$2().nullable()}).nullable(),hasDiscussionsEnabled:boolean(),hasIssuesEnabled:boolean(),hasProjectsEnabled:boolean(),hasSponsorshipsEnabled:boolean(),hasVulnerabilityAlertsEnabled:boolean(),hasWikiEnabled:boolean(),homepageUrl:string$2().nullable(),isArchived:boolean(),isDisabled:boolean(),isFork:boolean(),isInOrganization:boolean(),isMirror:boolean(),isPrivate:boolean(),isSecurityPolicyEnabled:boolean(),isTemplate:boolean(),languages:object({edges:array(object({node:object({name:string$2()}),size:number()}))}).nullable(),latestRelease:object({createdAt:string$2(),releaseAssets:object({nodes:array(object({downloadCount:number()}))}),tagName:string$2()}).nullable(),licenseInfo:object({key:string$2(),name:string$2(),spdxId:string$2().nullable(),url:string$2().nullable()}).nullable(),mergeCommitAllowed:boolean(),mergeCommitMessage:string$2(),mergeCommitTitle:string$2(),mergedPullRequests:object({totalCount:number()}),mirrorUrl:string$2().nullable(),name:string$2(),nameWithOwner:string$2(),openGraphImageUrl:string$2(),openIssues:object({totalCount:number()}),openPullRequests:object({totalCount:number()}),owner:object({__typename:string$2(),login:string$2()}),parent:object({defaultBranchRef:object({name:string$2()}).nullable(),name:string$2(),nameWithOwner:string$2(),owner:object({login:string$2()}),url:string$2()}).nullable(),primaryLanguage:object({name:string$2()}).nullable(),pushedAt:string$2().nullable(),rebaseMergeAllowed:boolean(),releases:object({totalCount:number()}),repositoryTopics:object({nodes:array(object({topic:object({name:string$2()})}))}),securityPolicyUrl:string$2().nullable(),squashMergeAllowed:boolean(),squashMergeCommitMessage:string$2(),squashMergeCommitTitle:string$2(),sshUrl:string$2(),stargazerCount:number(),templateRepository:object({name:string$2(),owner:object({login:string$2()}),url:string$2()}).nullable(),updatedAt:string$2(),url:string$2(),usesCustomOpenGraphImage:boolean(),visibility:string$2(),vulnerabilityAlerts:object({totalCount:number()}).nullable(),watchers:object({totalCount:number()}),webCommitSignoffRequired:boolean()})}),graphqlQuery=`
397
397
  query($owner: String!, $repo: String!) {
398
398
  repository(owner: $owner, name: $repo) {
399
399
  name
@@ -45940,21 +45940,22 @@ ${JSON.stringify(te,null,2)}`),Error(`Language.load failed: no language function
45940
45940
  `&&f!==` `&&f!==`\r`)return d;d++,re()}return-1}function ae(){return l.substring(m)}function oe(d){return l.substring(m,m+d.length)===d}function se(d){return l.substring(m,m+d.length).toUpperCase()===d.toUpperCase()}function ce(l){var d=f.reg(`^`,l).exec(ae());return d?(re(d[0].length),d[0]):null}return{char:te,getIndex:function(){return m},getMatch:ce,getSource:function(){return l},skip:re,skipBlanks:ie,substringFromIndex:ae,substringStartsWith:oe,substringStartsWithCaseInsensitive:se}}function Ee(l,d){function m(l,d){var m=f.PI.exec(l.substringFromIndex());return m?m[1].toLowerCase()===`xml`?d.fatalError(`xml declaration is only allowed at the start of the document, but found at position `+l.getIndex()):(l.skip(m[0].length),m[0]):d.fatalError(`processing instruction is not well-formed at position `+l.getIndex())}var te=l.getSource();if(l.char()===`[`){l.skip(1);for(var re=l.getIndex();l.getIndex()<te.length;){if(l.skipBlanks(),l.char()===`]`){var ie=te.substring(re,l.getIndex());return l.skip(1),ie}var ae=null;if(l.char()===`<`&&l.char(1)===`!`)switch(l.char(2)){case`E`:l.char(3)===`L`?ae=l.getMatch(f.elementdecl):l.char(3)===`N`&&(ae=l.getMatch(f.EntityDecl));break;case`A`:ae=l.getMatch(f.AttlistDecl);break;case`N`:ae=l.getMatch(f.NotationDecl);break;case`-`:ae=l.getMatch(f.Comment);break}else if(l.char()===`<`&&l.char(1)===`?`)ae=m(l,d);else if(l.char()===`%`)ae=l.getMatch(f.PEReference);else return d.fatalError(`Error detected in Markup declaration`);if(!ae)return d.fatalError(`Error in internal subset at position `+l.getIndex())}return d.fatalError(`doctype internal subset is not well-formed, missing ]`)}}function De(l,d,m,te,re){var ie=Te(l,d);switch(re?ie.char(2).toUpperCase():ie.char(2)){case`-`:var ae=ie.getMatch(f.Comment);return ae?(m.comment(ae,f.COMMENT_START.length,ae.length-f.COMMENT_START.length-f.COMMENT_END.length),ie.getIndex()):te.fatalError(`comment is not well-formed at position `+ie.getIndex());case`[`:var oe=ie.getMatch(f.CDSect);return oe?!re&&!m.currentElement?te.fatalError(`CDATA outside of element`):(m.startCDATA(),m.characters(oe,f.CDATA_START.length,oe.length-f.CDATA_START.length-f.CDATA_END.length),m.endCDATA(),ie.getIndex()):te.fatalError(`Invalid CDATA starting at position `+d);case`D`:if(m.doc&&m.doc.documentElement)return te.fatalError(`Doctype not allowed inside or after documentElement at position `+ie.getIndex());if(re?!ie.substringStartsWithCaseInsensitive(f.DOCTYPE_DECL_START):!ie.substringStartsWith(f.DOCTYPE_DECL_START))return te.fatalError(`Expected `+f.DOCTYPE_DECL_START+` at position `+ie.getIndex());if(ie.skip(f.DOCTYPE_DECL_START.length),ie.skipBlanks()<1)return te.fatalError(`Expected whitespace after `+f.DOCTYPE_DECL_START+` at position `+ie.getIndex());var se={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(se.name=ie.getMatch(f.Name),!se.name)return te.fatalError(`doctype name missing or contains unexpected characters at position `+ie.getIndex());if(re&&se.name.toLowerCase()!==`html`&&te.warning(`Unexpected DOCTYPE in HTML document at position `+ie.getIndex()),ie.skipBlanks(),ie.substringStartsWith(f.PUBLIC)||ie.substringStartsWith(f.SYSTEM)){var ce=f.ExternalID_match.exec(ie.substringFromIndex());if(!ce)return te.fatalError(`doctype external id is not well-formed at position `+ie.getIndex());ce.groups.SystemLiteralOnly===void 0?(se.systemId=ce.groups.SystemLiteral,se.publicId=ce.groups.PubidLiteral):se.systemId=ce.groups.SystemLiteralOnly,ie.skip(ce[0].length)}else if(re&&ie.substringStartsWithCaseInsensitive(f.SYSTEM)){if(ie.skip(f.SYSTEM.length),ie.skipBlanks()<1)return te.fatalError(`Expected whitespace after `+f.SYSTEM+` at position `+ie.getIndex());if(se.systemId=ie.getMatch(f.ABOUT_LEGACY_COMPAT_SystemLiteral),!se.systemId)return te.fatalError(`Expected `+f.ABOUT_LEGACY_COMPAT+` in single or double quotes after `+f.SYSTEM+` at position `+ie.getIndex())}return re&&se.systemId&&!f.ABOUT_LEGACY_COMPAT_SystemLiteral.test(se.systemId)&&te.warning(`Unexpected doctype.systemId in HTML document at position `+ie.getIndex()),re||(ie.skipBlanks(),se.internalSubset=Ee(ie,te)),ie.skipBlanks(),ie.char()===`>`?(ie.skip(1),m.startDTD(se.name,se.publicId,se.systemId,se.internalSubset),m.endDTD(),ie.getIndex()):te.fatalError(`doctype not terminated with > at position `+ie.getIndex());default:return te.fatalError(`Not well-formed XML starting with "<!" at position `+d)}}function Oe(l,d,m,te){var re=l.substring(d).match(f.PI);if(!re)return te.fatalError(`Invalid processing instruction starting at position `+d);if(re[1].toLowerCase()===`xml`){if(d>0)return te.fatalError(`processing instruction at position `+d+` is an xml declaration which is only at the start of the document`);if(!f.XMLDecl.test(l.substring(d)))return te.fatalError(`xml declaration is not well-formed`)}return m.processingInstruction(re[1],re[2]),d+re[0].length}function ke(){this.attributeNames=Object.create(null)}ke.prototype={setTagName:function(l){if(!f.QName_exact.test(l))throw Error(`invalid tagName:`+l);this.tagName=l},addValue:function(l,d,m){if(!f.QName_exact.test(l))throw Error(`invalid attribute:`+l);this.attributeNames[l]=this.length,this[this.length++]={qName:l,value:d,offset:m}},length:0,getLocalName:function(l){return this[l].localName},getLocator:function(l){return this[l].locator},getQName:function(l){return this[l].qName},getURI:function(l){return this[l].uri},getValue:function(l){return this[l].value}},l.XMLReader=_e,l.parseUtils=Te,l.parseDoctypeCommentOrCData=De})),require_dom_parser$1=__commonJSMin((l=>{var d=require_conventions$1(),f=require_dom$1(),m=require_errors(),te=require_entities$1(),re=require_sax$1(),ie=f.DOMImplementation,ae=d.hasDefaultHTMLNamespace,oe=d.isHTMLMimeType,se=d.isValidMimeType,ce=d.MIME_TYPE,le=d.NAMESPACE,ue=m.ParseError,de=re.XMLReader;function fe(l){return l.replace(/\r[\n\u0085]/g,`
45941
45941
  `).replace(/[\r\u0085\u2028\u2029]/g,`
45942
45942
  `)}function pe(l){if(l||={},l.locator===void 0&&(l.locator=!0),this.assign=l.assign||d.assign,this.domHandler=l.domHandler||me,this.onError=l.onError||l.errorHandler,l.errorHandler&&typeof l.errorHandler!=`function`)throw TypeError(`errorHandler object is no longer supported, switch to onError!`);l.errorHandler&&l.errorHandler(`warning`,"The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=l.normalizeLineEndings||fe,this.locator=!!l.locator,this.xmlns=this.assign(Object.create(null),l.xmlns)}pe.prototype.parseFromString=function(l,f){if(!se(f))throw TypeError(`DOMParser.parseFromString: the provided mimeType "`+f+`" is not valid.`);var m=this.assign(Object.create(null),this.xmlns),re=te.XML_ENTITIES,ie=m[``]||null;ae(f)?(re=te.HTML_ENTITIES,ie=le.HTML):f===ce.XML_SVG_IMAGE&&(ie=le.SVG),m[``]=ie,m.xml=m.xml||le.XML;var oe=new this.domHandler({mimeType:f,defaultNamespace:ie,onError:this.onError}),ue=this.locator?{}:void 0;this.locator&&oe.setDocumentLocator(ue);var fe=new de;return fe.errorHandler=oe,fe.domBuilder=oe,!d.isHTMLMimeType(f)&&typeof l!=`string`&&fe.errorHandler.fatalError(`source is not a string`),fe.parse(this.normalizeLineEndings(String(l)),m,re),oe.doc.documentElement||fe.errorHandler.fatalError(`missing root element`),oe.doc};function me(l){var d=l||{};this.mimeType=d.mimeType||ce.XML_APPLICATION,this.defaultNamespace=d.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=d.onError}function he(l,d){d.lineNumber=l.lineNumber,d.columnNumber=l.columnNumber}me.prototype={startDocument:function(){var l=new ie;this.doc=oe(this.mimeType)?l.createHTMLDocument(!1):l.createDocument(this.defaultNamespace,``)},startElement:function(l,d,f,m){var te=this.doc,re=te.createElementNS(l,f||d),ie=m.length;ve(this,re),this.currentElement=re,this.locator&&he(this.locator,re);for(var ae=0;ae<ie;ae++){var l=m.getURI(ae),oe=m.getValue(ae),f=m.getQName(ae),se=te.createAttributeNS(l,f);this.locator&&he(m.getLocator(ae),se),se.value=se.nodeValue=oe,re.setAttributeNode(se)}},endElement:function(l,d,f){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(l,d){},endPrefixMapping:function(l){},processingInstruction:function(l,d){var f=this.doc.createProcessingInstruction(l,d);this.locator&&he(this.locator,f),ve(this,f)},ignorableWhitespace:function(l,d,f){},characters:function(l,d,f){if(l=_e.apply(this,arguments),l){if(this.cdata)var m=this.doc.createCDATASection(l);else var m=this.doc.createTextNode(l);this.currentElement?this.currentElement.appendChild(m):/^\s*$/.test(l)&&this.doc.appendChild(m),this.locator&&he(this.locator,m)}},skippedEntity:function(l){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(l){l&&(l.lineNumber=0),this.locator=l},comment:function(l,d,f){l=_e.apply(this,arguments);var m=this.doc.createComment(l);this.locator&&he(this.locator,m),ve(this,m)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(l,d,f,m){var te=this.doc.implementation;if(te&&te.createDocumentType){var re=te.createDocumentType(l,d,f,m);this.locator&&he(this.locator,re),ve(this,re),this.doc.doctype=re}},reportError:function(l,d){if(typeof this.onError==`function`)try{this.onError(l,d,this)}catch(f){throw new ue(`Reporting `+l+` "`+d+`" caused `+f,this.locator)}else console.error(`[xmldom `+l+`] `+d,ge(this.locator))},warning:function(l){this.reportError(`warning`,l)},error:function(l){this.reportError(`error`,l)},fatalError:function(l){throw this.reportError(`fatalError`,l),new ue(l,this.locator)}};function ge(l){if(l)return`
45943
- @#[line:`+l.lineNumber+`,col:`+l.columnNumber+`]`}function _e(l,d,f){return typeof l==`string`?l.substr(d,f):l.length>=d+f||d?new java.lang.String(l,d,f)+``:l}`endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl`.replace(/\w+/g,function(l){me.prototype[l]=function(){return null}});function ve(l,d){l.currentElement?l.currentElement.appendChild(d):l.doc.appendChild(d)}function ye(l){if(l===`error`)throw`onErrorStopParsing`}function be(){throw`onWarningStopParsing`}l.__DOMHandler=me,l.DOMParser=pe,l.normalizeLineEndings=fe,l.onErrorStopParsing=ye,l.onWarningStopParsing=be})),require_lib$3=__commonJSMin((l=>{var d=require_conventions$1();l.assign=d.assign,l.hasDefaultHTMLNamespace=d.hasDefaultHTMLNamespace,l.isHTMLMimeType=d.isHTMLMimeType,l.isValidMimeType=d.isValidMimeType,l.MIME_TYPE=d.MIME_TYPE,l.NAMESPACE=d.NAMESPACE;var f=require_errors();l.DOMException=f.DOMException,l.DOMExceptionName=f.DOMExceptionName,l.ExceptionCode=f.ExceptionCode,l.ParseError=f.ParseError;var m=require_dom$1();l.Attr=m.Attr,l.CDATASection=m.CDATASection,l.CharacterData=m.CharacterData,l.Comment=m.Comment,l.Document=m.Document,l.DocumentFragment=m.DocumentFragment,l.DocumentType=m.DocumentType,l.DOMImplementation=m.DOMImplementation,l.Element=m.Element,l.Entity=m.Entity,l.EntityReference=m.EntityReference,l.LiveNodeList=m.LiveNodeList,l.NamedNodeMap=m.NamedNodeMap,l.Node=m.Node,l.NodeList=m.NodeList,l.Notation=m.Notation,l.ProcessingInstruction=m.ProcessingInstruction,l.Text=m.Text,l.XMLSerializer=m.XMLSerializer;var te=require_dom_parser$1();l.DOMParser=te.DOMParser,l.normalizeLineEndings=te.normalizeLineEndings,l.onErrorStopParsing=te.onErrorStopParsing,l.onWarningStopParsing=te.onWarningStopParsing}));const EPOCH_2001=9783072e5;function readSizedInt(l,d,f){switch(f){case 1:return l.getUint8(d);case 2:return l.getUint16(d);case 4:return l.getUint32(d);case 8:{let f=l.getUint32(d),m=l.getUint32(d+4);return f*4294967296+m}default:throw Error(`Unsupported int size: ${f}`)}}function parseBinary(l){let d=new DataView(l.buffer,l.byteOffset,l.byteLength),f=l.byteLength;if(String.fromCharCode(...l.subarray(0,8))!==`bplist00`)throw Error(`Invalid binary plist: bad magic`);let m=f-32,te=d.getUint8(m+6),re=d.getUint8(m+7),ie=readSizedInt(d,m+8,8),ae=readSizedInt(d,m+16,8),oe=readSizedInt(d,m+24,8),se=[];for(let l=0;l<ie;l++)se.push(readSizedInt(d,oe+l*te,te));function ce(f){let m=se[f],te=d.getUint8(m),ie=te>>4,ae=te&15;if(m++,ie!==0&&ie!==8&&ae===15){let l=d.getUint8(m);m++;let f=1<<(l&15);ae=readSizedInt(d,m,f),m+=f}switch(ie){case 0:if(te===0)return null;if(te===8)return!1;if(te===9)return!0;throw Error(`Unknown singleton: 0x${te.toString(16)}`);case 1:{let l=1<<ae;if(l<=4)return readSizedInt(d,m,l);let f=d.getInt32(m),te=d.getUint32(m+4);return f*4294967296+te}case 2:{let l=1<<ae;if(l===4)return d.getFloat32(m);if(l===8)return d.getFloat64(m);throw Error(`Unsupported real size: ${l}`)}case 3:{let l=d.getFloat64(m);return new Date(l*1e3+EPOCH_2001)}case 4:return new Uint8Array(l.buffer,l.byteOffset+m,ae);case 5:{let l=``;for(let f=0;f<ae;f++)l+=String.fromCharCode(d.getUint8(m+f));return l}case 6:{let l=``;for(let f=0;f<ae;f++)l+=String.fromCharCode(d.getUint16(m+f*2));return l}case 8:{let l=ae+1;return{UID:readSizedInt(d,m,l)}}case 10:{let l=[];for(let f=0;f<ae;f++){let te=readSizedInt(d,m+f*re,re);l.push(ce(te))}return l}case 13:{let l={};for(let f=0;f<ae;f++){let te=readSizedInt(d,m+f*re,re),ie=readSizedInt(d,m+(ae+f)*re,re),oe=ce(te);l[oe]=ce(ie)}return l}default:throw Error(`Unknown object type: 0x${ie.toString(16)}`)}}return ce(ae)}var OpenStepParser=class{input;pos;constructor(l){this.input=l,this.pos=0}skipWhitespaceAndComments(){for(;this.pos<this.input.length;){let l=this.input[this.pos];if(/\s/.test(l)){this.pos++;continue}if(l===`/`&&this.pos+1<this.input.length&&this.input[this.pos+1]===`*`){this.pos+=2;let l=this.input.indexOf(`*/`,this.pos);if(l===-1)throw Error(`Unterminated block comment`);this.pos=l+2;continue}if(l===`/`&&this.pos+1<this.input.length&&this.input[this.pos+1]===`/`){this.pos+=2;let l=this.input.indexOf(`
45943
+ @#[line:`+l.lineNumber+`,col:`+l.columnNumber+`]`}function _e(l,d,f){return typeof l==`string`?l.substr(d,f):l.length>=d+f||d?new java.lang.String(l,d,f)+``:l}`endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl`.replace(/\w+/g,function(l){me.prototype[l]=function(){return null}});function ve(l,d){l.currentElement?l.currentElement.appendChild(d):l.doc.appendChild(d)}function ye(l){if(l===`error`)throw`onErrorStopParsing`}function be(){throw`onWarningStopParsing`}l.__DOMHandler=me,l.DOMParser=pe,l.normalizeLineEndings=fe,l.onErrorStopParsing=ye,l.onWarningStopParsing=be})),require_lib$2=__commonJSMin((l=>{var d=require_conventions$1();l.assign=d.assign,l.hasDefaultHTMLNamespace=d.hasDefaultHTMLNamespace,l.isHTMLMimeType=d.isHTMLMimeType,l.isValidMimeType=d.isValidMimeType,l.MIME_TYPE=d.MIME_TYPE,l.NAMESPACE=d.NAMESPACE;var f=require_errors();l.DOMException=f.DOMException,l.DOMExceptionName=f.DOMExceptionName,l.ExceptionCode=f.ExceptionCode,l.ParseError=f.ParseError;var m=require_dom$1();l.Attr=m.Attr,l.CDATASection=m.CDATASection,l.CharacterData=m.CharacterData,l.Comment=m.Comment,l.Document=m.Document,l.DocumentFragment=m.DocumentFragment,l.DocumentType=m.DocumentType,l.DOMImplementation=m.DOMImplementation,l.Element=m.Element,l.Entity=m.Entity,l.EntityReference=m.EntityReference,l.LiveNodeList=m.LiveNodeList,l.NamedNodeMap=m.NamedNodeMap,l.Node=m.Node,l.NodeList=m.NodeList,l.Notation=m.Notation,l.ProcessingInstruction=m.ProcessingInstruction,l.Text=m.Text,l.XMLSerializer=m.XMLSerializer;var te=require_dom_parser$1();l.DOMParser=te.DOMParser,l.normalizeLineEndings=te.normalizeLineEndings,l.onErrorStopParsing=te.onErrorStopParsing,l.onWarningStopParsing=te.onWarningStopParsing}));const EPOCH_2001=9783072e5;function readSizedInt(l,d,f){switch(f){case 1:return l.getUint8(d);case 2:return l.getUint16(d);case 4:return l.getUint32(d);case 8:{let f=l.getUint32(d),m=l.getUint32(d+4);return f*4294967296+m}default:throw Error(`Unsupported int size: ${f}`)}}function parseBinary(l){let d=new DataView(l.buffer,l.byteOffset,l.byteLength),f=l.byteLength;if(String.fromCharCode(...l.subarray(0,8))!==`bplist00`)throw Error(`Invalid binary plist: bad magic`);let m=f-32,te=d.getUint8(m+6),re=d.getUint8(m+7),ie=readSizedInt(d,m+8,8),ae=readSizedInt(d,m+16,8),oe=readSizedInt(d,m+24,8),se=[];for(let l=0;l<ie;l++)se.push(readSizedInt(d,oe+l*te,te));function ce(f){let m=se[f],te=d.getUint8(m),ie=te>>4,ae=te&15;if(m++,ie!==0&&ie!==8&&ae===15){let l=d.getUint8(m);m++;let f=1<<(l&15);ae=readSizedInt(d,m,f),m+=f}switch(ie){case 0:if(te===0)return null;if(te===8)return!1;if(te===9)return!0;throw Error(`Unknown singleton: 0x${te.toString(16)}`);case 1:{let l=1<<ae;if(l<=4)return readSizedInt(d,m,l);let f=d.getInt32(m),te=d.getUint32(m+4);return f*4294967296+te}case 2:{let l=1<<ae;if(l===4)return d.getFloat32(m);if(l===8)return d.getFloat64(m);throw Error(`Unsupported real size: ${l}`)}case 3:{let l=d.getFloat64(m);return new Date(l*1e3+EPOCH_2001)}case 4:return new Uint8Array(l.buffer,l.byteOffset+m,ae);case 5:{let l=``;for(let f=0;f<ae;f++)l+=String.fromCharCode(d.getUint8(m+f));return l}case 6:{let l=``;for(let f=0;f<ae;f++)l+=String.fromCharCode(d.getUint16(m+f*2));return l}case 8:{let l=ae+1;return{UID:readSizedInt(d,m,l)}}case 10:{let l=[];for(let f=0;f<ae;f++){let te=readSizedInt(d,m+f*re,re);l.push(ce(te))}return l}case 13:{let l={};for(let f=0;f<ae;f++){let te=readSizedInt(d,m+f*re,re),ie=readSizedInt(d,m+(ae+f)*re,re),oe=ce(te);l[oe]=ce(ie)}return l}default:throw Error(`Unknown object type: 0x${ie.toString(16)}`)}}return ce(ae)}var OpenStepParser=class{input;pos;constructor(l){this.input=l,this.pos=0}skipWhitespaceAndComments(){for(;this.pos<this.input.length;){let l=this.input[this.pos];if(/\s/.test(l)){this.pos++;continue}if(l===`/`&&this.pos+1<this.input.length&&this.input[this.pos+1]===`*`){this.pos+=2;let l=this.input.indexOf(`*/`,this.pos);if(l===-1)throw Error(`Unterminated block comment`);this.pos=l+2;continue}if(l===`/`&&this.pos+1<this.input.length&&this.input[this.pos+1]===`/`){this.pos+=2;let l=this.input.indexOf(`
45944
45944
  `,this.pos);this.pos=l===-1?this.input.length:l+1;continue}break}}parseValue(){if(this.skipWhitespaceAndComments(),this.pos>=this.input.length)throw Error(`Unexpected end of input`);let l=this.input[this.pos];return l===`{`?this.parseDict():l===`(`?this.parseArray():l===`<`?this.parseData():l===`"`?this.parseQuotedString():this.parseUnquotedString()}parseDict(){this.pos++;let l={};for(;;){if(this.skipWhitespaceAndComments(),this.pos>=this.input.length)throw Error(`Unterminated dictionary`);if(this.input[this.pos]===`}`)return this.pos++,l;let d=this.parseValue();if(this.skipWhitespaceAndComments(),this.pos>=this.input.length||this.input[this.pos]!==`=`)throw Error(`Expected '=' after key "${d}" at position ${this.pos}`);this.pos++,l[d]=this.parseValue(),this.skipWhitespaceAndComments(),this.pos<this.input.length&&this.input[this.pos]===`;`&&this.pos++}}parseArray(){this.pos++;let l=[];if(this.skipWhitespaceAndComments(),this.pos<this.input.length&&this.input[this.pos]===`)`)return this.pos++,l;for(;;){if(l.push(this.parseValue()),this.skipWhitespaceAndComments(),this.pos>=this.input.length)throw Error(`Unterminated array`);if(this.input[this.pos]===`)`)return this.pos++,l;if(this.input[this.pos]===`,`){if(this.pos++,this.skipWhitespaceAndComments(),this.pos<this.input.length&&this.input[this.pos]===`)`)return this.pos++,l}else throw Error(`Expected ',' or ')' in array at position ${this.pos}`)}}parseData(){this.pos++;let l=``;for(;this.pos<this.input.length;){let d=this.input[this.pos];if(d===`>`){this.pos++;let d=l.replace(/\s+/g,``),f=new Uint8Array(d.length/2);for(let l=0;l<d.length;l+=2)f[l/2]=parseInt(d.substring(l,l+2),16);return f}l+=d,this.pos++}throw Error(`Unterminated data`)}parseQuotedString(){this.pos++;let l=``;for(;this.pos<this.input.length;){let d=this.input[this.pos];if(d===`\\`){if(this.pos++,this.pos>=this.input.length)throw Error(`Unterminated string escape`);let d=this.input[this.pos];switch(d){case`"`:l+=`"`;break;case`\\`:l+=`\\`;break;case`n`:l+=`
45945
- `;break;case`t`:l+=` `;break;case`r`:l+=`\r`;break;case`0`:l+=`\0`;break;default:l+=d;break}this.pos++;continue}if(d===`"`)return this.pos++,l;l+=d,this.pos++}throw Error(`Unterminated string`)}parseUnquotedString(){let l=this.pos;for(;this.pos<this.input.length;){let l=this.input[this.pos];if(/[a-zA-Z0-9._\/$:-]/.test(l))this.pos++;else break}if(this.pos===l)throw Error(`Unexpected character '${this.input[this.pos]}' at position ${this.pos}`);return this.input.substring(l,this.pos)}};function parseOpenStep(l){return new OpenStepParser(l).parseValue()}var import_lib$1=require_lib$3();function base64ToUint8Array(l){let d=atob(l),f=new Uint8Array(d.length);for(let l=0;l<d.length;l++)f[l]=d.charCodeAt(l);return f}const TEXT_NODE=3,CDATA_NODE=4,COMMENT_NODE=8;function shouldIgnoreNode(l){return l.nodeType===TEXT_NODE||l.nodeType===COMMENT_NODE||l.nodeType===CDATA_NODE}function isEmptyNode(l){return!l.childNodes||l.childNodes.length===0}function invariant(l,d){if(!l)throw Error(d)}function parse$2(l){if(l instanceof ArrayBuffer)return parseBinary(new Uint8Array(l));if(l instanceof Uint8Array)return parseBinary(l);if(typeof l==`string`&&l.startsWith(`bplist`))return parseBinary(new TextEncoder().encode(l));if(typeof l==`string`){let d=l.trimStart();if((d[0]===`{`||d[0]===`(`)&&!d.startsWith(`<?xml`)&&!d.startsWith(`<!DOCTYPE`)&&!d.startsWith(`<plist`))return parseOpenStep(l)}let d=new import_lib$1.DOMParser().parseFromString(l,`text/xml`).documentElement;invariant(d!==null&&d.nodeName===`plist`,`malformed document. First element should be <plist>`);let f=parsePlistXML(d);return Array.isArray(f)&&f.length==1&&(f=f[0]),f}function parsePlistXML(l){if(!l)return null;if(l.nodeName===`plist`){let d=[];if(isEmptyNode(l))return d;for(let f=0;f<l.childNodes.length;f++)shouldIgnoreNode(l.childNodes[f])||d.push(parsePlistXML(l.childNodes[f]));return d}else if(l.nodeName===`dict`){let d={},f=null,m=0;if(isEmptyNode(l))return d;for(let te=0;te<l.childNodes.length;te++)shouldIgnoreNode(l.childNodes[te])||(m%2==0?(invariant(l.childNodes[te].nodeName===`key`,`Missing key while parsing <dict/>.`),f=parsePlistXML(l.childNodes[te])):(invariant(l.childNodes[te].nodeName!==`key`,`Unexpected <key> while parsing <dict/>. Keys and values must alternate.`),d[f]=parsePlistXML(l.childNodes[te])),m+=1);return m%2==1&&(d[f]=``),d}else if(l.nodeName===`array`){let d=[];if(isEmptyNode(l))return d;for(let f=0;f<l.childNodes.length;f++)if(!shouldIgnoreNode(l.childNodes[f])){let m=parsePlistXML(l.childNodes[f]);m!=null&&d.push(m)}return d}else if(l.nodeName!==`#text`){if(l.nodeName===`key`)return isEmptyNode(l)?``:(invariant(l.childNodes[0].nodeValue!==`__proto__`,`__proto__ keys can lead to prototype pollution. More details on CVE-2022-22912`),l.childNodes[0].nodeValue);if(l.nodeName===`string`){let d=``;if(isEmptyNode(l))return d;for(let f=0;f<l.childNodes.length;f++){let m=l.childNodes[f].nodeType;(m===TEXT_NODE||m===CDATA_NODE)&&(d+=l.childNodes[f].nodeValue)}return d}else if(l.nodeName===`integer`)return invariant(!isEmptyNode(l),`Cannot parse "" as integer.`),parseInt(l.childNodes[0].nodeValue,10);else if(l.nodeName===`real`){invariant(!isEmptyNode(l),`Cannot parse "" as real.`);let d=``;for(let f=0;f<l.childNodes.length;f++)l.childNodes[f].nodeType===TEXT_NODE&&(d+=l.childNodes[f].nodeValue);return parseFloat(d)}else if(l.nodeName===`data`){let d=``;if(isEmptyNode(l))return base64ToUint8Array(d);for(let f=0;f<l.childNodes.length;f++)l.childNodes[f].nodeType===TEXT_NODE&&(d+=l.childNodes[f].nodeValue.replace(/\s+/g,``));return base64ToUint8Array(d)}else if(l.nodeName===`date`)return invariant(!isEmptyNode(l),`Cannot parse "" as Date.`),new Date(l.childNodes[0].nodeValue);else if(l.nodeName===`null`)return null;else if(l.nodeName===`true`)return!0;else if(l.nodeName===`false`)return!1;else throw Error(`Invalid PLIST tag `+l.nodeName)}return null}var require_Utility$1=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe={}.hasOwnProperty;l=function(l,...d){var f,m,te,ie;if(re(Object.assign))Object.assign.apply(null,arguments);else for(f=0,te=d.length;f<te;f++)if(ie=d[f],ie!=null)for(m in ie)oe.call(ie,m)&&(l[m]=ie[m]);return l},re=function(l){return!!l&&Object.prototype.toString.call(l)===`[object Function]`},ie=function(l){var d;return!!l&&((d=typeof l)==`function`||d===`object`)},m=function(l){return re(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)===`[object Array]`},te=function(l){var d;if(m(l))return!l.length;for(d in l)if(oe.call(l,d))return!1;return!0},ae=function(l){var d,f;return ie(l)&&(f=Object.getPrototypeOf(l))&&(d=f.constructor)&&typeof d==`function`&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},f=function(l){return re(l.valueOf)?l.valueOf():l},d.exports.assign=l,d.exports.isFunction=re,d.exports.isObject=ie,d.exports.isArray=m,d.exports.isEmpty=te,d.exports.isPlainObject=ae,d.exports.getValue=f}).call(l)})),require_XMLDOMImplementation$1=__commonJSMin(((l,d)=>{(function(){d.exports=class{hasFeature(l,d){return!0}createDocumentType(l,d,f){throw Error(`This DOM method is not implemented.`)}createDocument(l,d,f){throw Error(`This DOM method is not implemented.`)}createHTMLDocument(l){throw Error(`This DOM method is not implemented.`)}getFeature(l,d){throw Error(`This DOM method is not implemented.`)}}}).call(l)})),require_XMLDOMErrorHandler$1=__commonJSMin(((l,d)=>{(function(){d.exports=class{constructor(){}handleError(l){throw Error(l)}}}).call(l)})),require_XMLDOMStringList$1=__commonJSMin(((l,d)=>{(function(){d.exports=(function(){class l{constructor(l){this.arr=l||[]}item(l){return this.arr[l]||null}contains(l){return this.arr.indexOf(l)!==-1}}return Object.defineProperty(l.prototype,"length",{get:function(){return this.arr.length}}),l}).call(this)}).call(l)})),require_XMLDOMConfiguration$1=__commonJSMin(((l,d)=>{(function(){var l=require_XMLDOMErrorHandler$1(),f=require_XMLDOMStringList$1();d.exports=(function(){class d{constructor(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new l,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":``,"schema-type":``,"split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}getParameter(l){return this.params.hasOwnProperty(l)?this.params[l]:null}canSetParameter(l,d){return!0}setParameter(l,d){return d==null?delete this.params[l]:this.params[l]=d}}return Object.defineProperty(d.prototype,"parameterNames",{get:function(){return new f(Object.keys(this.defaultParams))}}),d}).call(this)}).call(l)})),require_NodeType$1=__commonJSMin(((l,d)=>{(function(){d.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(l)})),require_XMLAttribute$1=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType$1();require_XMLNode$1(),d.exports=(function(){class d{constructor(d,f,m){if(this.parent=d,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),f==null)throw Error(`Missing attribute name. `+this.debugInfo(f));this.name=this.stringify.name(f),this.value=this.stringify.attValue(m),this.type=l.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(l){return this.options.writer.attribute(this,this.options.writer.filterOptions(l))}debugInfo(l){return l||=this.name,l==null?`parent: <`+this.parent.name+`>`:`attribute: {`+l+`}, parent: <`+this.parent.name+`>`}isEqualNode(l){return!(l.namespaceURI!==this.namespaceURI||l.prefix!==this.prefix||l.localName!==this.localName||l.value!==this.value)}}return Object.defineProperty(d.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(d.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return this.value},set:function(l){return this.value=l||``}}),Object.defineProperty(d.prototype,"namespaceURI",{get:function(){return``}}),Object.defineProperty(d.prototype,"prefix",{get:function(){return``}}),Object.defineProperty(d.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"specified",{get:function(){return!0}}),d}).call(this)}).call(l)})),require_XMLNamedNodeMap$1=__commonJSMin(((l,d)=>{(function(){d.exports=(function(){class l{constructor(l){this.nodes=l}clone(){return this.nodes=null}getNamedItem(l){return this.nodes[l]}setNamedItem(l){var d=this.nodes[l.nodeName];return this.nodes[l.nodeName]=l,d||null}removeNamedItem(l){var d=this.nodes[l];return delete this.nodes[l],d||null}item(l){return this.nodes[Object.keys(this.nodes)[l]]||null}getNamedItemNS(l,d){throw Error(`This DOM method is not implemented.`)}setNamedItemNS(l){throw Error(`This DOM method is not implemented.`)}removeNamedItemNS(l,d){throw Error(`This DOM method is not implemented.`)}}return Object.defineProperty(l.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),l}).call(this)}).call(l)})),require_XMLElement$1=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe={}.hasOwnProperty;({isObject:ae,isFunction:ie,getValue:re}=require_Utility$1()),te=require_XMLNode$1(),l=require_NodeType$1(),f=require_XMLAttribute$1(),m=require_XMLNamedNodeMap$1(),d.exports=(function(){class d extends te{constructor(d,f,m){var te,re,ie,ae;if(super(d),f==null)throw Error(`Missing element name. `+this.debugInfo());if(this.name=this.stringify.name(f),this.type=l.Element,this.attribs={},this.schemaTypeInfo=null,m!=null&&this.attribute(m),d.type===l.Document&&(this.isRoot=!0,this.documentObject=d,d.rootObject=this,d.children)){for(ae=d.children,re=0,ie=ae.length;re<ie;re++)if(te=ae[re],te.type===l.DocType){te.name=this.name;break}}}clone(){var l,d,f=Object.create(this),m;for(d in f.isRoot&&(f.documentObject=null),f.attribs={},m=this.attribs,m)oe.call(m,d)&&(l=m[d],f.attribs[d]=l.clone());return f.children=[],this.children.forEach(function(l){var d=l.clone();return d.parent=f,f.children.push(d)}),f}attribute(l,d){var m,te;if(l!=null&&(l=re(l)),ae(l))for(m in l)oe.call(l,m)&&(te=l[m],this.attribute(m,te));else ie(d)&&(d=d.apply()),this.options.keepNullAttributes&&d==null?this.attribs[l]=new f(this,l,``):d!=null&&(this.attribs[l]=new f(this,l,d));return this}removeAttribute(l){var d,f,m;if(l==null)throw Error(`Missing attribute name. `+this.debugInfo());if(l=re(l),Array.isArray(l))for(f=0,m=l.length;f<m;f++)d=l[f],delete this.attribs[d];else delete this.attribs[l];return this}toString(l){return this.options.writer.element(this,this.options.writer.filterOptions(l))}att(l,d){return this.attribute(l,d)}a(l,d){return this.attribute(l,d)}getAttribute(l){return this.attribs.hasOwnProperty(l)?this.attribs[l].value:null}setAttribute(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNode(l){return this.attribs.hasOwnProperty(l)?this.attribs[l]:null}setAttributeNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeAttributeNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setAttributeNS(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeAttributeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNodeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setAttributeNodeNS(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}hasAttribute(l){return this.attribs.hasOwnProperty(l)}hasAttributeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setIdAttribute(l,d){return this.attribs.hasOwnProperty(l)?this.attribs[l].isId:d}setIdAttributeNS(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setIdAttributeNode(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByClassName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(l){var d,f,m;if(!super.isEqualNode(l)||l.namespaceURI!==this.namespaceURI||l.prefix!==this.prefix||l.localName!==this.localName||l.attribs.length!==this.attribs.length)return!1;for(d=f=0,m=this.attribs.length-1;0<=m?f<=m:f>=m;d=0<=m?++f:--f)if(!this.attribs[d].isEqualNode(l.attribs[d]))return!1;return!0}}return Object.defineProperty(d.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"namespaceURI",{get:function(){return``}}),Object.defineProperty(d.prototype,"prefix",{get:function(){return``}}),Object.defineProperty(d.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"id",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(d.prototype,"className",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(d.prototype,"classList",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(d.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new m(this.attribs)),this.attributeMap}}),d}).call(this)}).call(l)})),require_XMLCharacterData$1=__commonJSMin(((l,d)=>{(function(){var l=require_XMLNode$1();d.exports=(function(){class d extends l{constructor(l){super(l),this.value=``}clone(){return Object.create(this)}substringData(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}appendData(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}insertData(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}deleteData(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}replaceData(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(l){return!(!super.isEqualNode(l)||l.data!==this.data)}}return Object.defineProperty(d.prototype,"data",{get:function(){return this.value},set:function(l){return this.value=l||``}}),Object.defineProperty(d.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return this.value},set:function(l){return this.value=l||``}}),d}).call(this)}).call(l)})),require_XMLCData$1=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType$1(),f=require_XMLCharacterData$1();d.exports=class extends f{constructor(d,f){if(super(d),f==null)throw Error(`Missing CDATA text. `+this.debugInfo());this.name=`#cdata-section`,this.type=l.CData,this.value=this.stringify.cdata(f)}clone(){return Object.create(this)}toString(l){return this.options.writer.cdata(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLComment$1=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType$1(),f=require_XMLCharacterData$1();d.exports=class extends f{constructor(d,f){if(super(d),f==null)throw Error(`Missing comment text. `+this.debugInfo());this.name=`#comment`,this.type=l.Comment,this.value=this.stringify.comment(f)}clone(){return Object.create(this)}toString(l){return this.options.writer.comment(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLDeclaration$1=__commonJSMin(((l,d)=>{(function(){var l,f,m;({isObject:m}=require_Utility$1()),f=require_XMLNode$1(),l=require_NodeType$1(),d.exports=class extends f{constructor(d,f,te,re){super(d),m(f)&&({version:f,encoding:te,standalone:re}=f),f||=`1.0`,this.type=l.Declaration,this.version=this.stringify.xmlVersion(f),te!=null&&(this.encoding=this.stringify.xmlEncoding(te)),re!=null&&(this.standalone=this.stringify.xmlStandalone(re))}toString(l){return this.options.writer.declaration(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLDTDAttList$1=__commonJSMin(((l,d)=>{(function(){var l,f=require_XMLNode$1();l=require_NodeType$1(),d.exports=class extends f{constructor(d,f,m,te,re,ie){if(super(d),f==null)throw Error(`Missing DTD element name. `+this.debugInfo());if(m==null)throw Error(`Missing DTD attribute name. `+this.debugInfo(f));if(!te)throw Error(`Missing DTD attribute type. `+this.debugInfo(f));if(!re)throw Error(`Missing DTD attribute default. `+this.debugInfo(f));if(re.indexOf(`#`)!==0&&(re=`#`+re),!re.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error(`Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. `+this.debugInfo(f));if(ie&&!re.match(/^(#FIXED|#DEFAULT)$/))throw Error(`Default value only applies to #FIXED or #DEFAULT. `+this.debugInfo(f));this.elementName=this.stringify.name(f),this.type=l.AttributeDeclaration,this.attributeName=this.stringify.name(m),this.attributeType=this.stringify.dtdAttType(te),ie&&(this.defaultValue=this.stringify.dtdAttDefault(ie)),this.defaultValueType=re}toString(l){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLDTDEntity$1=__commonJSMin(((l,d)=>{(function(){var l,f,m;({isObject:m}=require_Utility$1()),f=require_XMLNode$1(),l=require_NodeType$1(),d.exports=(function(){class d extends f{constructor(d,f,te,re){if(super(d),te==null)throw Error(`Missing DTD entity name. `+this.debugInfo(te));if(re==null)throw Error(`Missing DTD entity value. `+this.debugInfo(te));if(this.pe=!!f,this.name=this.stringify.name(te),this.type=l.EntityDeclaration,!m(re))this.value=this.stringify.dtdEntityValue(re),this.internal=!0;else{if(!re.pubID&&!re.sysID)throw Error(`Public and/or system identifiers are required for an external entity. `+this.debugInfo(te));if(re.pubID&&!re.sysID)throw Error(`System identifier is required for a public external entity. `+this.debugInfo(te));if(this.internal=!1,re.pubID!=null&&(this.pubID=this.stringify.dtdPubID(re.pubID)),re.sysID!=null&&(this.sysID=this.stringify.dtdSysID(re.sysID)),re.nData!=null&&(this.nData=this.stringify.dtdNData(re.nData)),this.pe&&this.nData)throw Error(`Notation declaration is not allowed in a parameter entity. `+this.debugInfo(te))}}toString(l){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(l))}}return Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(d.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(d.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"xmlVersion",{get:function(){return null}}),d}).call(this)}).call(l)})),require_XMLDTDElement$1=__commonJSMin(((l,d)=>{(function(){var l,f=require_XMLNode$1();l=require_NodeType$1(),d.exports=class extends f{constructor(d,f,m){if(super(d),f==null)throw Error(`Missing DTD element name. `+this.debugInfo());m||=`(#PCDATA)`,Array.isArray(m)&&(m=`(`+m.join(`,`)+`)`),this.name=this.stringify.name(f),this.type=l.ElementDeclaration,this.value=this.stringify.dtdElementValue(m)}toString(l){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLDTDNotation$1=__commonJSMin(((l,d)=>{(function(){var l,f=require_XMLNode$1();l=require_NodeType$1(),d.exports=(function(){class d extends f{constructor(d,f,m){if(super(d),f==null)throw Error(`Missing DTD notation name. `+this.debugInfo(f));if(!m.pubID&&!m.sysID)throw Error(`Public or system identifiers are required for an external entity. `+this.debugInfo(f));this.name=this.stringify.name(f),this.type=l.NotationDeclaration,m.pubID!=null&&(this.pubID=this.stringify.dtdPubID(m.pubID)),m.sysID!=null&&(this.sysID=this.stringify.dtdSysID(m.sysID))}toString(l){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(l))}}return Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),d}).call(this)}).call(l)})),require_XMLDocType$1=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe;({isObject:oe}=require_Utility$1()),ae=require_XMLNode$1(),l=require_NodeType$1(),f=require_XMLDTDAttList$1(),te=require_XMLDTDEntity$1(),m=require_XMLDTDElement$1(),re=require_XMLDTDNotation$1(),ie=require_XMLNamedNodeMap$1(),d.exports=(function(){class d extends ae{constructor(d,f,m){var te,re,ie,ae;if(super(d),this.type=l.DocType,d.children){for(ae=d.children,re=0,ie=ae.length;re<ie;re++)if(te=ae[re],te.type===l.Element){this.name=te.name;break}}this.documentObject=d,oe(f)&&({pubID:f,sysID:m}=f),m??([m,f]=[f,m]),f!=null&&(this.pubID=this.stringify.dtdPubID(f)),m!=null&&(this.sysID=this.stringify.dtdSysID(m))}element(l,d){var f=new m(this,l,d);return this.children.push(f),this}attList(l,d,m,te,re){var ie=new f(this,l,d,m,te,re);return this.children.push(ie),this}entity(l,d){var f=new te(this,!1,l,d);return this.children.push(f),this}pEntity(l,d){var f=new te(this,!0,l,d);return this.children.push(f),this}notation(l,d){var f=new re(this,l,d);return this.children.push(f),this}toString(l){return this.options.writer.docType(this,this.options.writer.filterOptions(l))}ele(l,d){return this.element(l,d)}att(l,d,f,m,te){return this.attList(l,d,f,m,te)}ent(l,d){return this.entity(l,d)}pent(l,d){return this.pEntity(l,d)}not(l,d){return this.notation(l,d)}up(){return this.root()||this.documentObject}isEqualNode(l){return!(!super.isEqualNode(l)||l.name!==this.name||l.publicId!==this.publicId||l.systemId!==this.systemId)}}return Object.defineProperty(d.prototype,"entities",{get:function(){var d,f,m,te={},re=this.children;for(f=0,m=re.length;f<m;f++)d=re[f],d.type===l.EntityDeclaration&&!d.pe&&(te[d.name]=d);return new ie(te)}}),Object.defineProperty(d.prototype,"notations",{get:function(){var d,f,m,te={},re=this.children;for(f=0,m=re.length;f<m;f++)d=re[f],d.type===l.NotationDeclaration&&(te[d.name]=d);return new ie(te)}}),Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(d.prototype,"internalSubset",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),d}).call(this)}).call(l)})),require_XMLRaw$1=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType$1(),f=require_XMLNode$1();d.exports=class extends f{constructor(d,f){if(super(d),f==null)throw Error(`Missing raw text. `+this.debugInfo());this.type=l.Raw,this.value=this.stringify.raw(f)}clone(){return Object.create(this)}toString(l){return this.options.writer.raw(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLText$1=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType$1(),f=require_XMLCharacterData$1();d.exports=(function(){class d extends f{constructor(d,f){if(super(d),f==null)throw Error(`Missing element text. `+this.debugInfo());this.name=`#text`,this.type=l.Text,this.value=this.stringify.text(f)}clone(){return Object.create(this)}toString(l){return this.options.writer.text(this,this.options.writer.filterOptions(l))}splitText(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}replaceWholeText(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}return Object.defineProperty(d.prototype,"isElementContentWhitespace",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(d.prototype,"wholeText",{get:function(){var l,d,f=``;for(d=this.previousSibling;d;)f=d.data+f,d=d.previousSibling;for(f+=this.data,l=this.nextSibling;l;)f+=l.data,l=l.nextSibling;return f}}),d}).call(this)}).call(l)})),require_XMLProcessingInstruction$1=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType$1(),f=require_XMLCharacterData$1();d.exports=class extends f{constructor(d,f,m){if(super(d),f==null)throw Error(`Missing instruction target. `+this.debugInfo());this.type=l.ProcessingInstruction,this.target=this.stringify.insTarget(f),this.name=this.target,m&&(this.value=this.stringify.insValue(m))}clone(){return Object.create(this)}toString(l){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(l))}isEqualNode(l){return!(!super.isEqualNode(l)||l.target!==this.target)}}}).call(l)})),require_XMLDummy$1=__commonJSMin(((l,d)=>{(function(){var l,f=require_XMLNode$1();l=require_NodeType$1(),d.exports=class extends f{constructor(d){super(d),this.type=l.Dummy}clone(){return Object.create(this)}toString(l){return``}}}).call(l)})),require_XMLNodeList$1=__commonJSMin(((l,d)=>{(function(){d.exports=(function(){class l{constructor(l){this.nodes=l}clone(){return this.nodes=null}item(l){return this.nodes[l]||null}}return Object.defineProperty(l.prototype,"length",{get:function(){return this.nodes.length||0}}),l}).call(this)}).call(l)})),require_DocumentPosition$1=__commonJSMin(((l,d)=>{(function(){d.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(l)})),require_XMLNode$1=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he={}.hasOwnProperty,ge=[].splice;({isObject:me,isFunction:pe,isEmpty:fe,getValue:de}=require_Utility$1()),oe=null,m=null,te=null,re=null,ie=null,le=null,ue=null,ce=null,ae=null,f=null,se=null,l=null,d.exports=(function(){class d{constructor(d){this.parent=d,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,oe||(oe=require_XMLElement$1(),m=require_XMLCData$1(),te=require_XMLComment$1(),re=require_XMLDeclaration$1(),ie=require_XMLDocType$1(),le=require_XMLRaw$1(),ue=require_XMLText$1(),ce=require_XMLProcessingInstruction$1(),ae=require_XMLDummy$1(),f=require_NodeType$1(),se=require_XMLNodeList$1(),require_XMLNamedNodeMap$1(),l=require_DocumentPosition$1())}setParent(l){var d,f,m,te,re;for(this.parent=l,l&&(this.options=l.options,this.stringify=l.stringify),te=this.children,re=[],f=0,m=te.length;f<m;f++)d=te[f],re.push(d.setParent(this));return re}element(l,d,f){var m,te,re,ie,ae,oe=null,se,ce,le;if(d===null&&f==null&&([d,f]=[{},null]),d??={},d=de(d),me(d)||([f,d]=[d,f]),l!=null&&(l=de(l)),Array.isArray(l))for(re=0,se=l.length;re<se;re++)te=l[re],oe=this.element(te);else if(pe(l))oe=this.element(l.apply());else if(me(l)){for(ae in l)if(he.call(l,ae))if(le=l[ae],pe(le)&&(le=le.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ae.indexOf(this.stringify.convertAttKey)===0)oe=this.attribute(ae.substr(this.stringify.convertAttKey.length),le);else if(!this.options.separateArrayItems&&Array.isArray(le)&&fe(le))oe=this.dummy();else if(me(le)&&fe(le))oe=this.element(ae);else if(!this.options.keepNullNodes&&le==null)oe=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(le))for(ie=0,ce=le.length;ie<ce;ie++)te=le[ie],m={},m[ae]=te,oe=this.element(m);else me(le)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ae.indexOf(this.stringify.convertTextKey)===0?oe=this.element(le):(oe=this.element(ae),oe.element(le)):oe=this.element(ae,le)}else oe=!this.options.keepNullNodes&&f===null?this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&l.indexOf(this.stringify.convertTextKey)===0?this.text(f):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&l.indexOf(this.stringify.convertCDataKey)===0?this.cdata(f):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&l.indexOf(this.stringify.convertCommentKey)===0?this.comment(f):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&l.indexOf(this.stringify.convertRawKey)===0?this.raw(f):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&l.indexOf(this.stringify.convertPIKey)===0?this.instruction(l.substr(this.stringify.convertPIKey.length),f):this.node(l,d,f);if(oe==null)throw Error(`Could not create any elements with: `+l+`. `+this.debugInfo());return oe}insertBefore(l,d,f){var m,te,re,ie,ae;if(l?.type)return re=l,ie=d,re.setParent(this),ie?(te=children.indexOf(ie),ae=children.splice(te),children.push(re),Array.prototype.push.apply(children,ae)):children.push(re),re;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(l));return te=this.parent.children.indexOf(this),ae=this.parent.children.splice(te),m=this.parent.element(l,d,f),Array.prototype.push.apply(this.parent.children,ae),m}insertAfter(l,d,f){var m,te,re;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(l));return te=this.parent.children.indexOf(this),re=this.parent.children.splice(te+1),m=this.parent.element(l,d,f),Array.prototype.push.apply(this.parent.children,re),m}remove(){var l;if(this.isRoot)throw Error(`Cannot remove the root element. `+this.debugInfo());return l=this.parent.children.indexOf(this),ge.apply(this.parent.children,[l,l-l+1]),this.parent}node(l,d,f){var m;return l!=null&&(l=de(l)),d||={},d=de(d),me(d)||([f,d]=[d,f]),m=new oe(this,l,d),f!=null&&m.text(f),this.children.push(m),m}text(l){var d;return me(l)&&this.element(l),d=new ue(this,l),this.children.push(d),this}cdata(l){var d=new m(this,l);return this.children.push(d),this}comment(l){var d=new te(this,l);return this.children.push(d),this}commentBefore(l){var d=this.parent.children.indexOf(this),f=this.parent.children.splice(d);return this.parent.comment(l),Array.prototype.push.apply(this.parent.children,f),this}commentAfter(l){var d=this.parent.children.indexOf(this),f=this.parent.children.splice(d+1);return this.parent.comment(l),Array.prototype.push.apply(this.parent.children,f),this}raw(l){var d=new le(this,l);return this.children.push(d),this}dummy(){return new ae(this)}instruction(l,d){var f,m,te,re,ie;if(l!=null&&(l=de(l)),d!=null&&(d=de(d)),Array.isArray(l))for(re=0,ie=l.length;re<ie;re++)f=l[re],this.instruction(f);else if(me(l))for(f in l)he.call(l,f)&&(m=l[f],this.instruction(f,m));else pe(d)&&(d=d.apply()),te=new ce(this,l,d),this.children.push(te);return this}instructionBefore(l,d){var f=this.parent.children.indexOf(this),m=this.parent.children.splice(f);return this.parent.instruction(l,d),Array.prototype.push.apply(this.parent.children,m),this}instructionAfter(l,d){var f=this.parent.children.indexOf(this),m=this.parent.children.splice(f+1);return this.parent.instruction(l,d),Array.prototype.push.apply(this.parent.children,m),this}declaration(l,d,m){var te=this.document(),ie=new re(te,l,d,m);return te.children.length===0?te.children.unshift(ie):te.children[0].type===f.Declaration?te.children[0]=ie:te.children.unshift(ie),te.root()||te}dtd(l,d){var m,te=this.document(),re=new ie(te,l,d),ae,oe,se,ce,le,ue=te.children,de;for(ae=oe=0,ce=ue.length;oe<ce;ae=++oe)if(m=ue[ae],m.type===f.DocType)return te.children[ae]=re,re;for(de=te.children,ae=se=0,le=de.length;se<le;ae=++se)if(m=de[ae],m.isRoot)return te.children.splice(ae,0,re),re;return te.children.push(re),re}up(){if(this.isRoot)throw Error(`The root node has no parent. Use doc() if you need to get the document object.`);return this.parent}root(){for(var l=this;l;)if(l.type===f.Document)return l.rootObject;else if(l.isRoot)return l;else l=l.parent}document(){for(var l=this;l;)if(l.type===f.Document)return l;else l=l.parent}end(l){return this.document().end(l)}prev(){var l=this.parent.children.indexOf(this);if(l<1)throw Error(`Already at the first node. `+this.debugInfo());return this.parent.children[l-1]}next(){var l=this.parent.children.indexOf(this);if(l===-1||l===this.parent.children.length-1)throw Error(`Already at the last node. `+this.debugInfo());return this.parent.children[l+1]}importDocument(l){var d,m=l.root().clone(),te,re,ie;if(m.parent=this,m.isRoot=!1,this.children.push(m),this.type===f.Document&&(m.isRoot=!0,m.documentObject=this,this.rootObject=m,this.children)){for(ie=this.children,te=0,re=ie.length;te<re;te++)if(d=ie[te],d.type===f.DocType){d.name=m.name;break}}return this}debugInfo(l){var d,f;return l||=this.name,l==null&&!this.parent?.name?``:l==null?`parent: <`+this.parent.name+`>`:this.parent?.name?`node: <`+l+`>, parent: <`+this.parent.name+`>`:`node: <`+l+`>`}ele(l,d,f){return this.element(l,d,f)}nod(l,d,f){return this.node(l,d,f)}txt(l){return this.text(l)}dat(l){return this.cdata(l)}com(l){return this.comment(l)}ins(l,d){return this.instruction(l,d)}doc(){return this.document()}dec(l,d,f){return this.declaration(l,d,f)}e(l,d,f){return this.element(l,d,f)}n(l,d,f){return this.node(l,d,f)}t(l){return this.text(l)}d(l){return this.cdata(l)}c(l){return this.comment(l)}r(l){return this.raw(l)}i(l,d){return this.instruction(l,d)}u(){return this.up()}importXMLBuilder(l){return this.importDocument(l)}attribute(l,d){throw Error(`attribute() applies to element nodes only.`)}att(l,d){return this.attribute(l,d)}a(l,d){return this.attribute(l,d)}removeAttribute(l){throw Error(`attribute() applies to element nodes only.`)}replaceChild(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeChild(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}appendChild(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}normalize(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isSupported(l,d){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(d){var f=this,m;return f===d?0:this.document()===d.document()?f.isAncestor(d)?l.Contains|l.Preceding:f.isDescendant(d)?l.Contains|l.Following:f.isPreceding(d)?l.Preceding:l.Following:(m=l.Disconnected|l.ImplementationSpecific,Math.random()<.5?m|=l.Preceding:m|=l.Following,m)}isSameNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}lookupPrefix(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isDefaultNamespace(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}lookupNamespaceURI(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(l){var d,f,m;if(l.nodeType!==this.nodeType||l.children.length!==this.children.length)return!1;for(d=f=0,m=this.children.length-1;0<=m?f<=m:f>=m;d=0<=m?++f:--f)if(!this.children[d].isEqualNode(l.children[d]))return!1;return!0}getFeature(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setUserData(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getUserData(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}contains(l){return l?l===this||this.isDescendant(l):!1}isDescendant(l){var d,f,m,te,re=this.children;for(m=0,te=re.length;m<te;m++)if(d=re[m],l===d||(f=d.isDescendant(l),f))return!0;return!1}isAncestor(l){return l.isDescendant(this)}isPreceding(l){var d=this.treePosition(l),f=this.treePosition(this);return d===-1||f===-1?!1:d<f}isFollowing(l){var d=this.treePosition(l),f=this.treePosition(this);return d===-1||f===-1?!1:d>f}treePosition(l){var d,f=0;return d=!1,this.foreachTreeNode(this.document(),function(m){if(f++,!d&&m===l)return d=!0}),d?f:-1}foreachTreeNode(l,d){var f,m,te,re,ie;for(l||=this.document(),re=l.children,m=0,te=re.length;m<te;m++)if(f=re[m],(ie=d(f))||(ie=this.foreachTreeNode(f,d),ie))return ie}}return Object.defineProperty(d.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(d.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(d.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(d.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new se(this.children)),this.childNodeList}}),Object.defineProperty(d.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(d.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(d.prototype,"previousSibling",{get:function(){var l=this.parent.children.indexOf(this);return this.parent.children[l-1]||null}}),Object.defineProperty(d.prototype,"nextSibling",{get:function(){var l=this.parent.children.indexOf(this);return this.parent.children[l+1]||null}}),Object.defineProperty(d.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(d.prototype,"textContent",{get:function(){var l,d,m,te,re;if(this.nodeType===f.Element||this.nodeType===f.DocumentFragment){for(re=``,te=this.children,d=0,m=te.length;d<m;d++)l=te[d],l.textContent&&(re+=l.textContent);return re}else return null},set:function(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),d}).call(this)}).call(l)})),require_XMLStringifier$1=__commonJSMin(((l,d)=>{(function(){var l={}.hasOwnProperty;d.exports=(function(){class d{constructor(d){var f,m,te;for(f in this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),d||={},this.options=d,this.options.version||(this.options.version=`1.0`),m=d.stringify||{},m)l.call(m,f)&&(te=m[f],this[f]=te)}name(l){return this.options.noValidation?l:this.assertLegalName(``+l||``)}text(l){return this.options.noValidation?l:this.assertLegalChar(this.textEscape(``+l||``))}cdata(l){return this.options.noValidation?l:(l=``+l||``,l=l.replace(`]]>`,`]]]]><![CDATA[>`),this.assertLegalChar(l))}comment(l){if(this.options.noValidation)return l;if(l=``+l||``,l.match(/--/))throw Error(`Comment text cannot contain double-hypen: `+l);return this.assertLegalChar(l)}raw(l){return this.options.noValidation?l:``+l||``}attValue(l){return this.options.noValidation?l:this.assertLegalChar(this.attEscape(l=``+l||``))}insTarget(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}insValue(l){if(this.options.noValidation)return l;if(l=``+l||``,l.match(/\?>/))throw Error(`Invalid processing instruction value: `+l);return this.assertLegalChar(l)}xmlVersion(l){if(this.options.noValidation)return l;if(l=``+l||``,!l.match(/1\.[0-9]+/))throw Error(`Invalid version number: `+l);return l}xmlEncoding(l){if(this.options.noValidation)return l;if(l=``+l||``,!l.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error(`Invalid encoding: `+l);return this.assertLegalChar(l)}xmlStandalone(l){return this.options.noValidation?l:l?`yes`:`no`}dtdPubID(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdSysID(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdElementValue(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdAttType(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdAttDefault(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdEntityValue(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdNData(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}assertLegalChar(l){var d,f;if(this.options.noValidation)return l;if(this.options.version===`1.0`){if(d=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)l=l.replace(d,this.options.invalidCharReplacement);else if(f=l.match(d))throw Error(`Invalid character in string: ${l} at index ${f.index}`)}else if(this.options.version===`1.1`){if(d=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)l=l.replace(d,this.options.invalidCharReplacement);else if(f=l.match(d))throw Error(`Invalid character in string: ${l} at index ${f.index}`)}return l}assertLegalName(l){var d;if(this.options.noValidation)return l;if(l=this.assertLegalChar(l),d=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!l.match(d))throw Error(`Invalid character in name: ${l}`);return l}textEscape(l){var d;return this.options.noValidation?l:(d=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,l.replace(d,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/\r/g,`&#xD;`))}attEscape(l){var d;return this.options.noValidation?l:(d=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,l.replace(d,`&amp;`).replace(/</g,`&lt;`).replace(/"/g,`&quot;`).replace(/\t/g,`&#x9;`).replace(/\n/g,`&#xA;`).replace(/\r/g,`&#xD;`))}}return d.prototype.convertAttKey=`@`,d.prototype.convertPIKey=`?`,d.prototype.convertTextKey=`#text`,d.prototype.convertCDataKey=`#cdata`,d.prototype.convertCommentKey=`#comment`,d.prototype.convertRawKey=`#raw`,d}).call(this)}).call(l)})),require_WriterState$1=__commonJSMin(((l,d)=>{(function(){d.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(l)})),require_XMLWriterBase$1=__commonJSMin(((l,d)=>{(function(){var l,f,m,te={}.hasOwnProperty;({assign:m}=require_Utility$1()),l=require_NodeType$1(),require_XMLDeclaration$1(),require_XMLDocType$1(),require_XMLCData$1(),require_XMLComment$1(),require_XMLElement$1(),require_XMLRaw$1(),require_XMLText$1(),require_XMLProcessingInstruction$1(),require_XMLDummy$1(),require_XMLDTDAttList$1(),require_XMLDTDElement$1(),require_XMLDTDEntity$1(),require_XMLDTDNotation$1(),f=require_WriterState$1(),d.exports=class{constructor(l){var d,f,m;for(d in l||={},this.options=l,f=l.writer||{},f)te.call(f,d)&&(m=f[d],this[`_`+d]=this[d],this[d]=m)}filterOptions(l){var d,te,re,ie,ae,oe,se,ce,le;return l||={},l=m({},this.options,l),d={writer:this},d.pretty=l.pretty||!1,d.allowEmpty=l.allowEmpty||!1,d.indent=l.indent??` `,d.newline=l.newline??`
45946
- `,d.offset=l.offset??0,d.width=l.width??0,d.dontPrettyTextNodes=l.dontPrettyTextNodes??l.dontprettytextnodes??0,d.spaceBeforeSlash=l.spaceBeforeSlash??l.spacebeforeslash??``,d.spaceBeforeSlash===!0&&(d.spaceBeforeSlash=` `),d.suppressPrettyCount=0,d.user={},d.state=f.None,d}indent(l,d,f){var m;return!d.pretty||d.suppressPrettyCount?``:d.pretty&&(m=(f||0)+d.offset+1,m>0)?Array(m).join(d.indent):``}endline(l,d,f){return!d.pretty||d.suppressPrettyCount?``:d.newline}attribute(l,d,f){var m;return this.openAttribute(l,d,f),m=d.pretty&&d.width>0?l.name+`="`+l.value+`"`:` `+l.name+`="`+l.value+`"`,this.closeAttribute(l,d,f),m}cdata(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<![CDATA[`,d.state=f.InsideTag,te+=l.value,d.state=f.CloseTag,te+=`]]>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}comment(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!-- `,d.state=f.InsideTag,te+=l.value,d.state=f.CloseTag,te+=` -->`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}declaration(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<?xml`,d.state=f.InsideTag,te+=` version="`+l.version+`"`,l.encoding!=null&&(te+=` encoding="`+l.encoding+`"`),l.standalone!=null&&(te+=` standalone="`+l.standalone+`"`),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`?>`,te+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}docType(l,d,m){var te,re,ie,ae,oe;if(m||=0,this.openNode(l,d,m),d.state=f.OpenTag,ae=this.indent(l,d,m),ae+=`<!DOCTYPE `+l.root().name,l.pubID&&l.sysID?ae+=` PUBLIC "`+l.pubID+`" "`+l.sysID+`"`:l.sysID&&(ae+=` SYSTEM "`+l.sysID+`"`),l.children.length>0){for(ae+=` [`,ae+=this.endline(l,d,m),d.state=f.InsideTag,oe=l.children,re=0,ie=oe.length;re<ie;re++)te=oe[re],ae+=this.writeChildNode(te,d,m+1);d.state=f.CloseTag,ae+=`]`}return d.state=f.CloseTag,ae+=d.spaceBeforeSlash+`>`,ae+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),ae}element(d,m,re){var ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se;if(re||=0,he=!1,this.openNode(d,m,re),m.state=f.OpenTag,ge=this.indent(d,m,re)+`<`+d.name,m.pretty&&m.width>0)for(me in de=ge.length,ve=d.attribs,ve)te.call(ve,me)&&(ie=ve[me],_e=this.attribute(ie,m,re),ae=_e.length,de+ae>m.width?(Se=this.indent(d,m,re+1)+_e,ge+=this.endline(d,m,re)+Se,de=Se.length):(Se=` `+_e,ge+=Se,de+=Se.length));else for(me in ye=d.attribs,ye)te.call(ye,me)&&(ie=ye[me],ge+=this.attribute(ie,m,re));if(se=d.children.length,ce=se===0?null:d.children[0],se===0||d.children.every(function(d){return(d.type===l.Text||d.type===l.Raw||d.type===l.CData)&&d.value===``}))m.allowEmpty?(ge+=`>`,m.state=f.CloseTag,ge+=`</`+d.name+`>`+this.endline(d,m,re)):(m.state=f.CloseTag,ge+=m.spaceBeforeSlash+`/>`+this.endline(d,m,re));else if(m.pretty&&se===1&&(ce.type===l.Text||ce.type===l.Raw||ce.type===l.CData)&&ce.value!=null)ge+=`>`,m.state=f.InsideTag,m.suppressPrettyCount++,he=!0,ge+=this.writeChildNode(ce,m,re+1),m.suppressPrettyCount--,he=!1,m.state=f.CloseTag,ge+=`</`+d.name+`>`+this.endline(d,m,re);else{if(m.dontPrettyTextNodes){for(be=d.children,le=0,fe=be.length;le<fe;le++)if(oe=be[le],(oe.type===l.Text||oe.type===l.Raw||oe.type===l.CData)&&oe.value!=null){m.suppressPrettyCount++,he=!0;break}}for(ge+=`>`+this.endline(d,m,re),m.state=f.InsideTag,xe=d.children,ue=0,pe=xe.length;ue<pe;ue++)oe=xe[ue],ge+=this.writeChildNode(oe,m,re+1);m.state=f.CloseTag,ge+=this.indent(d,m,re)+`</`+d.name+`>`,he&&m.suppressPrettyCount--,ge+=this.endline(d,m,re),m.state=f.None}return this.closeNode(d,m,re),ge}writeChildNode(d,f,m){switch(d.type){case l.CData:return this.cdata(d,f,m);case l.Comment:return this.comment(d,f,m);case l.Element:return this.element(d,f,m);case l.Raw:return this.raw(d,f,m);case l.Text:return this.text(d,f,m);case l.ProcessingInstruction:return this.processingInstruction(d,f,m);case l.Dummy:return``;case l.Declaration:return this.declaration(d,f,m);case l.DocType:return this.docType(d,f,m);case l.AttributeDeclaration:return this.dtdAttList(d,f,m);case l.ElementDeclaration:return this.dtdElement(d,f,m);case l.EntityDeclaration:return this.dtdEntity(d,f,m);case l.NotationDeclaration:return this.dtdNotation(d,f,m);default:throw Error(`Unknown XML node type: `+d.constructor.name)}}processingInstruction(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<?`,d.state=f.InsideTag,te+=l.target,l.value&&(te+=` `+l.value),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`?>`,te+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}raw(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m),d.state=f.InsideTag,te+=l.value,d.state=f.CloseTag,te+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}text(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m),d.state=f.InsideTag,te+=l.value,d.state=f.CloseTag,te+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}dtdAttList(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!ATTLIST`,d.state=f.InsideTag,te+=` `+l.elementName+` `+l.attributeName+` `+l.attributeType,l.defaultValueType!==`#DEFAULT`&&(te+=` `+l.defaultValueType),l.defaultValue&&(te+=` "`+l.defaultValue+`"`),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}dtdElement(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!ELEMENT`,d.state=f.InsideTag,te+=` `+l.name+` `+l.value,d.state=f.CloseTag,te+=d.spaceBeforeSlash+`>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}dtdEntity(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!ENTITY`,d.state=f.InsideTag,l.pe&&(te+=` %`),te+=` `+l.name,l.value?te+=` "`+l.value+`"`:(l.pubID&&l.sysID?te+=` PUBLIC "`+l.pubID+`" "`+l.sysID+`"`:l.sysID&&(te+=` SYSTEM "`+l.sysID+`"`),l.nData&&(te+=` NDATA `+l.nData)),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}dtdNotation(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!NOTATION`,d.state=f.InsideTag,te+=` `+l.name,l.pubID&&l.sysID?te+=` PUBLIC "`+l.pubID+`" "`+l.sysID+`"`:l.pubID?te+=` PUBLIC "`+l.pubID+`"`:l.sysID&&(te+=` SYSTEM "`+l.sysID+`"`),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}openNode(l,d,f){}closeNode(l,d,f){}openAttribute(l,d,f){}closeAttribute(l,d,f){}}}).call(l)})),require_XMLStringWriter$1=__commonJSMin(((l,d)=>{(function(){var l=require_XMLWriterBase$1();d.exports=class extends l{constructor(l){super(l)}document(l,d){var f,m,te,re,ie;for(d=this.filterOptions(d),re=``,ie=l.children,m=0,te=ie.length;m<te;m++)f=ie[m],re+=this.writeChildNode(f,d,0);return d.pretty&&re.slice(-d.newline.length)===d.newline&&(re=re.slice(0,-d.newline.length)),re}}}).call(l)})),require_XMLDocument$1=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae;({isPlainObject:ae}=require_Utility$1()),m=require_XMLDOMImplementation$1(),f=require_XMLDOMConfiguration$1(),te=require_XMLNode$1(),l=require_NodeType$1(),ie=require_XMLStringifier$1(),re=require_XMLStringWriter$1(),d.exports=(function(){class d extends te{constructor(d){super(null),this.name=`#document`,this.type=l.Document,this.documentURI=null,this.domConfig=new f,d||={},d.writer||=new re,this.options=d,this.stringify=new ie(d)}end(l){var d={};return l?ae(l)&&(d=l,l=this.options.writer):l=this.options.writer,l.document(this,l.filterOptions(d))}toString(l){return this.options.writer.document(this,this.options.writer.filterOptions(l))}createElement(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createDocumentFragment(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createTextNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createComment(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createCDATASection(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createProcessingInstruction(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createAttribute(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createEntityReference(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}importNode(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createElementNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createAttributeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementById(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}adoptNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}normalizeDocument(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}renameNode(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByClassName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createEvent(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createRange(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createNodeIterator(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createTreeWalker(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}return Object.defineProperty(d.prototype,"implementation",{value:new m}),Object.defineProperty(d.prototype,"doctype",{get:function(){var d,f,m,te=this.children;for(f=0,m=te.length;f<m;f++)if(d=te[f],d.type===l.DocType)return d;return null}}),Object.defineProperty(d.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(d.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(d.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===l.Declaration?this.children[0].encoding:null}}),Object.defineProperty(d.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===l.Declaration?this.children[0].standalone===`yes`:!1}}),Object.defineProperty(d.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===l.Declaration?this.children[0].version:`1.0`}}),Object.defineProperty(d.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(d.prototype,"origin",{get:function(){return null}}),Object.defineProperty(d.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(d.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(d.prototype,"contentType",{get:function(){return null}}),d}).call(this)}).call(l)})),require_XMLDocumentCB$1=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe={}.hasOwnProperty;({isObject:ye,isFunction:ve,isPlainObject:be,getValue:_e}=require_Utility$1()),l=require_NodeType$1(),ue=require_XMLDocument$1(),de=require_XMLElement$1(),te=require_XMLCData$1(),re=require_XMLComment$1(),pe=require_XMLRaw$1(),ge=require_XMLText$1(),fe=require_XMLProcessingInstruction$1(),ce=require_XMLDeclaration$1(),le=require_XMLDocType$1(),ie=require_XMLDTDAttList$1(),oe=require_XMLDTDEntity$1(),ae=require_XMLDTDElement$1(),se=require_XMLDTDNotation$1(),m=require_XMLAttribute$1(),he=require_XMLStringifier$1(),me=require_XMLStringWriter$1(),f=require_WriterState$1(),d.exports=class{constructor(d,f,m){var te;this.name=`?xml`,this.type=l.Document,d||={},te={},d.writer?be(d.writer)&&(te=d.writer,d.writer=new me):d.writer=new me,this.options=d,this.writer=d.writer,this.writerOptions=this.writer.filterOptions(te),this.stringify=new he(d),this.onDataCallback=f||function(){},this.onEndCallback=m||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(d){var f,m,te,re,ie,ae,oe,se;switch(d.type){case l.CData:this.cdata(d.value);break;case l.Comment:this.comment(d.value);break;case l.Element:for(m in te={},oe=d.attribs,oe)xe.call(oe,m)&&(f=oe[m],te[m]=f.value);this.node(d.name,te);break;case l.Dummy:this.dummy();break;case l.Raw:this.raw(d.value);break;case l.Text:this.text(d.value);break;case l.ProcessingInstruction:this.instruction(d.target,d.value);break;default:throw Error(`This XML node type is not supported in a JS object: `+d.constructor.name)}for(se=d.children,ie=0,ae=se.length;ie<ae;ie++)re=se[ie],this.createChildNode(re),re.type===l.Element&&this.up();return this}dummy(){return this}node(l,d,f){if(l==null)throw Error(`Missing node name.`);if(this.root&&this.currentLevel===-1)throw Error(`Document can only have one root node. `+this.debugInfo(l));return this.openCurrent(),l=_e(l),d??={},d=_e(d),ye(d)||([f,d]=[d,f]),this.currentNode=new de(this,l,d),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,f!=null&&this.text(f),this}element(d,f,m){var te,re,ie,ae,oe,se;if(this.currentNode&&this.currentNode.type===l.DocType)this.dtdElement(...arguments);else if(Array.isArray(d)||ye(d)||ve(d))for(ae=this.options.noValidation,this.options.noValidation=!0,se=new ue(this.options).element(`TEMP_ROOT`),se.element(d),this.options.noValidation=ae,oe=se.children,re=0,ie=oe.length;re<ie;re++)te=oe[re],this.createChildNode(te),te.type===l.Element&&this.up();else this.node(d,f,m);return this}attribute(l,d){var f,te;if(!this.currentNode||this.currentNode.children)throw Error(`att() can only be used immediately after an ele() call in callback mode. `+this.debugInfo(l));if(l!=null&&(l=_e(l)),ye(l))for(f in l)xe.call(l,f)&&(te=l[f],this.attribute(f,te));else ve(d)&&(d=d.apply()),this.options.keepNullAttributes&&d==null?this.currentNode.attribs[l]=new m(this,l,``):d!=null&&(this.currentNode.attribs[l]=new m(this,l,d));return this}text(l){var d;return this.openCurrent(),d=new ge(this,l),this.onData(this.writer.text(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(l){var d;return this.openCurrent(),d=new te(this,l),this.onData(this.writer.cdata(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(l){var d;return this.openCurrent(),d=new re(this,l),this.onData(this.writer.comment(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(l){var d;return this.openCurrent(),d=new pe(this,l),this.onData(this.writer.raw(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(l,d){var f,m,te,re,ie;if(this.openCurrent(),l!=null&&(l=_e(l)),d!=null&&(d=_e(d)),Array.isArray(l))for(f=0,re=l.length;f<re;f++)m=l[f],this.instruction(m);else if(ye(l))for(m in l)xe.call(l,m)&&(te=l[m],this.instruction(m,te));else ve(d)&&(d=d.apply()),ie=new fe(this,l,d),this.onData(this.writer.processingInstruction(ie,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(l,d,f){var m;if(this.openCurrent(),this.documentStarted)throw Error(`declaration() must be the first node.`);return m=new ce(this,l,d,f),this.onData(this.writer.declaration(m,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(l,d,f){if(this.openCurrent(),l==null)throw Error(`Missing root node name.`);if(this.root)throw Error(`dtd() must come before the root node.`);return this.currentNode=new le(this,d,f),this.currentNode.rootNodeName=l,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(l,d){var f;return this.openCurrent(),f=new ae(this,l,d),this.onData(this.writer.dtdElement(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(l,d,f,m,te){var re;return this.openCurrent(),re=new ie(this,l,d,f,m,te),this.onData(this.writer.dtdAttList(re,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(l,d){var f;return this.openCurrent(),f=new oe(this,!1,l,d),this.onData(this.writer.dtdEntity(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(l,d){var f;return this.openCurrent(),f=new oe(this,!0,l,d),this.onData(this.writer.dtdEntity(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(l,d){var f;return this.openCurrent(),f=new se(this,l,d),this.onData(this.writer.dtdNotation(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw Error(`The document node has no parent.`);return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(d){var m,te,re,ie;if(!d.isOpen){if(!this.root&&this.currentLevel===0&&d.type===l.Element&&(this.root=d),te=``,d.type===l.Element){for(re in this.writerOptions.state=f.OpenTag,te=this.writer.indent(d,this.writerOptions,this.currentLevel)+`<`+d.name,ie=d.attribs,ie)xe.call(ie,re)&&(m=ie[re],te+=this.writer.attribute(m,this.writerOptions,this.currentLevel));te+=(d.children?`>`:`/>`)+this.writer.endline(d,this.writerOptions,this.currentLevel),this.writerOptions.state=f.InsideTag}else this.writerOptions.state=f.OpenTag,te=this.writer.indent(d,this.writerOptions,this.currentLevel)+`<!DOCTYPE `+d.rootNodeName,d.pubID&&d.sysID?te+=` PUBLIC "`+d.pubID+`" "`+d.sysID+`"`:d.sysID&&(te+=` SYSTEM "`+d.sysID+`"`),d.children?(te+=` [`,this.writerOptions.state=f.InsideTag):(this.writerOptions.state=f.CloseTag,te+=`>`),te+=this.writer.endline(d,this.writerOptions,this.currentLevel);return this.onData(te,this.currentLevel),d.isOpen=!0}}closeNode(d){var m;if(!d.isClosed)return m=``,this.writerOptions.state=f.CloseTag,m=d.type===l.Element?this.writer.indent(d,this.writerOptions,this.currentLevel)+`</`+d.name+`>`+this.writer.endline(d,this.writerOptions,this.currentLevel):this.writer.indent(d,this.writerOptions,this.currentLevel)+`]>`+this.writer.endline(d,this.writerOptions,this.currentLevel),this.writerOptions.state=f.None,this.onData(m,this.currentLevel),d.isClosed=!0}onData(l,d){return this.documentStarted=!0,this.onDataCallback(l,d+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(l){return l==null?``:`node: <`+l+`>`}ele(){return this.element(...arguments)}nod(l,d,f){return this.node(l,d,f)}txt(l){return this.text(l)}dat(l){return this.cdata(l)}com(l){return this.comment(l)}ins(l,d){return this.instruction(l,d)}dec(l,d,f){return this.declaration(l,d,f)}dtd(l,d,f){return this.doctype(l,d,f)}e(l,d,f){return this.element(l,d,f)}n(l,d,f){return this.node(l,d,f)}t(l){return this.text(l)}d(l){return this.cdata(l)}c(l){return this.comment(l)}r(l){return this.raw(l)}i(l,d){return this.instruction(l,d)}att(){return this.currentNode&&this.currentNode.type===l.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===l.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(l,d){return this.entity(l,d)}pent(l,d){return this.pEntity(l,d)}not(l,d){return this.notation(l,d)}}}).call(l)})),require_XMLStreamWriter$1=__commonJSMin(((l,d)=>{(function(){var l,f,m,te={}.hasOwnProperty;l=require_NodeType$1(),m=require_XMLWriterBase$1(),f=require_WriterState$1(),d.exports=class extends m{constructor(l,d){super(d),this.stream=l}endline(l,d,m){return l.isLastRootNode&&d.state===f.CloseTag?``:super.endline(l,d,m)}document(l,d){var f,m,te,re,ie,ae,oe=l.children,se,ce;for(m=te=0,ie=oe.length;te<ie;m=++te)f=oe[m],f.isLastRootNode=m===l.children.length-1;for(d=this.filterOptions(d),se=l.children,ce=[],re=0,ae=se.length;re<ae;re++)f=se[re],ce.push(this.writeChildNode(f,d,0));return ce}cdata(l,d,f){return this.stream.write(super.cdata(l,d,f))}comment(l,d,f){return this.stream.write(super.comment(l,d,f))}declaration(l,d,f){return this.stream.write(super.declaration(l,d,f))}docType(l,d,m){var te,re,ie,ae;if(m||=0,this.openNode(l,d,m),d.state=f.OpenTag,this.stream.write(this.indent(l,d,m)),this.stream.write(`<!DOCTYPE `+l.root().name),l.pubID&&l.sysID?this.stream.write(` PUBLIC "`+l.pubID+`" "`+l.sysID+`"`):l.sysID&&this.stream.write(` SYSTEM "`+l.sysID+`"`),l.children.length>0){for(this.stream.write(` [`),this.stream.write(this.endline(l,d,m)),d.state=f.InsideTag,ae=l.children,re=0,ie=ae.length;re<ie;re++)te=ae[re],this.writeChildNode(te,d,m+1);d.state=f.CloseTag,this.stream.write(`]`)}return d.state=f.CloseTag,this.stream.write(d.spaceBeforeSlash+`>`),this.stream.write(this.endline(l,d,m)),d.state=f.None,this.closeNode(l,d,m)}element(d,m,re){var ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve;if(re||=0,this.openNode(d,m,re),m.state=f.OpenTag,pe=this.indent(d,m,re)+`<`+d.name,m.pretty&&m.width>0)for(fe in ue=pe.length,he=d.attribs,he)te.call(he,fe)&&(ie=he[fe],me=this.attribute(ie,m,re),ae=me.length,ue+ae>m.width?(ve=this.indent(d,m,re+1)+me,pe+=this.endline(d,m,re)+ve,ue=ve.length):(ve=` `+me,pe+=ve,ue+=ve.length));else for(fe in ge=d.attribs,ge)te.call(ge,fe)&&(ie=ge[fe],pe+=this.attribute(ie,m,re));if(this.stream.write(pe),se=d.children.length,ce=se===0?null:d.children[0],se===0||d.children.every(function(d){return(d.type===l.Text||d.type===l.Raw||d.type===l.CData)&&d.value===``}))m.allowEmpty?(this.stream.write(`>`),m.state=f.CloseTag,this.stream.write(`</`+d.name+`>`)):(m.state=f.CloseTag,this.stream.write(m.spaceBeforeSlash+`/>`));else if(m.pretty&&se===1&&(ce.type===l.Text||ce.type===l.Raw||ce.type===l.CData)&&ce.value!=null)this.stream.write(`>`),m.state=f.InsideTag,m.suppressPrettyCount++,this.writeChildNode(ce,m,re+1),m.suppressPrettyCount--,m.state=f.CloseTag,this.stream.write(`</`+d.name+`>`);else{for(this.stream.write(`>`+this.endline(d,m,re)),m.state=f.InsideTag,_e=d.children,le=0,de=_e.length;le<de;le++)oe=_e[le],this.writeChildNode(oe,m,re+1);m.state=f.CloseTag,this.stream.write(this.indent(d,m,re)+`</`+d.name+`>`)}return this.stream.write(this.endline(d,m,re)),m.state=f.None,this.closeNode(d,m,re)}processingInstruction(l,d,f){return this.stream.write(super.processingInstruction(l,d,f))}raw(l,d,f){return this.stream.write(super.raw(l,d,f))}text(l,d,f){return this.stream.write(super.text(l,d,f))}dtdAttList(l,d,f){return this.stream.write(super.dtdAttList(l,d,f))}dtdElement(l,d,f){return this.stream.write(super.dtdElement(l,d,f))}dtdEntity(l,d,f){return this.stream.write(super.dtdEntity(l,d,f))}dtdNotation(l,d,f){return this.stream.write(super.dtdNotation(l,d,f))}}}).call(l)})),require_lib$2=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe,se;({assign:oe,isFunction:se}=require_Utility$1()),m=require_XMLDOMImplementation$1(),te=require_XMLDocument$1(),re=require_XMLDocumentCB$1(),ae=require_XMLStringWriter$1(),ie=require_XMLStreamWriter$1(),l=require_NodeType$1(),f=require_WriterState$1(),d.exports.create=function(l,d,f,m){var re,ie;if(l==null)throw Error(`Root element needs a name.`);return m=oe({},d,f,m),re=new te(m),ie=re.element(l),m.headless||(re.declaration(m),(m.pubID!=null||m.sysID!=null)&&re.dtd(m)),ie},d.exports.begin=function(l,d,f){return se(l)&&([d,f]=[l,d],l={}),d?new re(l,d,f):new te(l)},d.exports.stringWriter=function(l){return new ae(l)},d.exports.streamWriter=function(l,d){return new ie(l,d)},d.exports.implementation=new m,d.exports.nodeType=l,d.exports.writerState=f}).call(l)})),import_lib=__toESM(require_lib$2(),1);const COPYRIGHT_YEAR_REGEX$1=/(?:©|\(c\)|copyright)\s*(\d{4})/i,COPYRIGHT_HOLDER_REGEX$1=/(?:©|\(c\)|copyright)\s*\d{4}\s*(.+)/i,ALL_RIGHTS_RESERVED_REGEX$1=/\.\s*all\s+rights\s+reserved\.?/i,TRAILING_PUNCTUATION_REGEX$1=/[.,;]+$/,PROCESSOR_ARCH_REGEX=/^(?:arm|x86|i386)/i,infoPlistSchema=object({applicationCategory:nonEmptyString,author:nonEmptyString,authorEmail:nonEmptyString,copyrightHolder:nonEmptyString,copyrightYear:nonEmptyString,description:nonEmptyString,identifier:nonEmptyString,name:nonEmptyString,operatingSystems:stringArray,processorRequirements:stringArray,url:optionalUrl,version:nonEmptyString}),XCODE_VARIABLE_RE$1=/\$[({][^)}]+[)}]/,XML_COMMENT_RE=/<!--[\s\S]*?-->/g,PLATFORM_NAME_MAP={appletvos:`tvOS`,appletvsimulator:`tvOS`,iphoneos:`iOS`,iphonesimulator:`iOS`,macosx:`macOS`,watchos:`watchOS`,watchsimulator:`watchOS`,xros:`visionOS`};function parse$1(l){let d=tryParsePlist(l)??tryParsePlist(l.replaceAll(XML_COMMENT_RE,``).trimStart());if(!d)return;let f=getString(d,`CFBundleDisplayName`)??getString(d,`CFBundleName`)??getString(d,`name`),m=getString(d,`description`),te=getString(d,`CFBundleShortVersionString`)??getString(d,`version`)??getString(d,`CFBundleVersion`),re=getString(d,`CFBundleIdentifier`)??getString(d,`bundleid`),{copyrightHolder:ie,copyrightYear:ae}=parseCopyright(d),oe=getString(d,`createdby`)??getString(d,`contactName`),se=getString(d,`contactEmailRot13`),ce=se?rot13(se):void 0,le=getString(d,`webaddress`),ue=parseApplicationCategory(d);return infoPlistSchema.parse({applicationCategory:ue,author:oe,authorEmail:ce,copyrightHolder:ie,copyrightYear:ae,description:m,identifier:re,name:f,operatingSystems:parseOperatingSystems$1(d),processorRequirements:parseProcessorRequirements(d),url:le,version:te})}function tryParsePlist(l){try{let d=parse$2(l);return is.plainObject(d)?d:void 0}catch{return}}function getString(l,d){let f=l[d];if(typeof f!=`string`)return;let m=f.trim();if(m.length!==0&&!XCODE_VARIABLE_RE$1.test(m))return m}function rot13(l){return l.replaceAll(/[a-z]/gi,l=>{let d=l<=`Z`?65:97;return String.fromCodePoint((l.codePointAt(0)-d+13)%26+d)})}function humanizeCategory(l){return l.startsWith(`public.app-category.`)?l.slice(20).split(`-`).map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join(` `):l}function parseApplicationCategory(l){let d=getString(l,`LSApplicationCategoryType`);if(d)return humanizeCategory(d)}function parseCopyright(l){let d=getString(l,`NSHumanReadableCopyright`)??getString(l,`CFBundleGetInfoString`);if(!d)return{};let f=COPYRIGHT_YEAR_REGEX$1.exec(d)?.[1],m=COPYRIGHT_HOLDER_REGEX$1.exec(d),te;return m&&(te=m[1].replace(ALL_RIGHTS_RESERVED_REGEX$1,``).replace(TRAILING_PUNCTUATION_REGEX$1,``).trim(),te.length===0&&(te=void 0)),{copyrightHolder:te,copyrightYear:f}}function parseOperatingSystems$1(l){let d=[],f=new Set;function m(l){f.has(l)||(f.add(l),d.push(l))}let te=getString(l,`LSMinimumSystemVersion`);te&&m(`macOS >= ${te}`);let re=getString(l,`MinimumOSVersion`);if(re&&m(`iOS >= ${re}`),d.length>0)return d;let ie=getString(l,`DTPlatformName`);if(ie){let l=PLATFORM_NAME_MAP[ie.toLowerCase()];l&&m(l)}let ae=l.CFBundleSupportedPlatforms;if(Array.isArray(ae)){for(let l of ae)if(typeof l==`string`){let d=PLATFORM_NAME_MAP[l.toLowerCase()];d&&m(d)}}return l.LSRequiresIPhoneOS===!0&&!f.has(`iOS`)&&m(`iOS`),d}function parseProcessorRequirements(l){let d=l.UIRequiredDeviceCapabilities;if(!Array.isArray(d))return[];let f=[];for(let l of d)typeof l==`string`&&PROCESSOR_ARCH_REGEX.test(l)&&f.push(l);return f}const xcodeInfoPlistSource=defineSource({async discover(l){return getMatches(l.options,[`Info.plist`])},key:`xcodeInfoPlist`,async parse(l,d){let f=parse$1(await readFile(resolve$1(d.options.path,l),`utf8`));if(f!==void 0)return{data:f,source:l}},phase:1});var require_constants=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.PROJECT_DEFAULT_BUILD_SETTINGS=l.SOURCETREE_BY_FILETYPE=l.PRODUCT_UTI_EXTENSIONS=l.FILE_TYPES_BY_EXTENSION=l.LAST_SWIFT_UPGRADE_CHECK=l.LAST_UPGRADE_CHECK=l.LAST_KNOWN_OBJECT_VERSION=l.DEFAULT_OBJECT_VERSION=l.LAST_KNOWN_SWIFT_VERSION=l.LAST_KNOWN_ARCHIVE_VERSION=l.LAST_KNOWN_WATCHOS_SDK=l.LAST_KNOWN_VISIONOS_SDK=l.LAST_KNOWN_TVOS_SDK=l.LAST_KNOWN_OSX_SDK=l.LAST_KNOWN_IOS_SDK=void 0,l.LAST_KNOWN_IOS_SDK=`18.0`,l.LAST_KNOWN_OSX_SDK=`15.0`,l.LAST_KNOWN_TVOS_SDK=`18.0`,l.LAST_KNOWN_VISIONOS_SDK=`2.0`,l.LAST_KNOWN_WATCHOS_SDK=`11.0`,l.LAST_KNOWN_ARCHIVE_VERSION=1,l.LAST_KNOWN_SWIFT_VERSION=`5.0`,l.DEFAULT_OBJECT_VERSION=46,l.LAST_KNOWN_OBJECT_VERSION=77,l.LAST_UPGRADE_CHECK=`1600`,l.LAST_SWIFT_UPGRADE_CHECK=`1600`,l.FILE_TYPES_BY_EXTENSION=Object.freeze({1:`text.man`,C:`sourcecode.cpp.cpp`,H:`sourcecode.cpp.h`,M:`sourcecode.cpp.objcpp`,a:`archive.ar`,ada:`sourcecode.ada`,adb:`sourcecode.ada`,ads:`sourcecode.ada`,aiff:`audio.aiff`,air:`compiled.air`,apinotes:`text.apinotes`,apns:`text`,app:`wrapper.application`,appex:`wrapper.app-extension`,applescript:`sourcecode.applescript`,archivingdescription:`text.xml.ibArchivingDescription`,asdictionary:`archive.asdictionary`,asm:`sourcecode.asm.asm`,atlas:`folder.skatlas`,au:`audio.au`,avi:`video.avi`,bazel:`text.script.python`,bin:`archive.macbinary`,bmp:`image.bmp`,bundle:`wrapper.cfbundle`,bzl:`text.script.python`,c:`sourcecode.c.c`,"c++":`sourcecode.cpp.cpp`,cc:`sourcecode.cpp.cpp`,cdda:`audio.aiff`,cl:`sourcecode.opencl`,class:`compiled.javaclass`,classdescription:`text.plist.ibClassDescription`,classdescriptions:`text.plist.ibClassDescription`,clp:`sourcecode.clips`,cp:`sourcecode.cpp.cpp`,cpp:`sourcecode.cpp.cpp`,csh:`text.script.csh`,css:`text.css`,ctrl:`sourcecode.glsl`,cxx:`sourcecode.cpp.cpp`,d:`sourcecode.dtrace`,dSYM:`wrapper.dsym`,dae:`text.xml.dae`,defs:`sourcecode.mig`,dext:`wrapper.driver-extension`,dict:`text.plist`,docc:`folder.documentationcatalog`,dsym:`wrapper.dsym`,dtd:`text.xml`,dylan:`sourcecode.dylan`,dylib:`compiled.mach-o.dylib`,ear:`archive.ear`,entitlements:`text.plist.entitlements`,eval:`sourcecode.glsl`,exp:`sourcecode.exports`,f:`sourcecode.fortran`,f77:`sourcecode.fortran.f77`,f90:`sourcecode.fortran.f90`,f95:`sourcecode.fortran.f90`,for:`sourcecode.fortran`,frag:`sourcecode.glsl`,fragment:`sourcecode.glsl`,framework:`wrapper.framework`,fs:`sourcecode.glsl`,fsh:`sourcecode.glsl`,geom:`sourcecode.glsl`,geometry:`sourcecode.glsl`,gif:`image.gif`,gmk:`sourcecode.make`,gpx:`text.xml`,gs:`sourcecode.glsl`,gsh:`sourcecode.glsl`,gz:`archive.gzip`,h:`sourcecode.c.h`,"h++":`sourcecode.cpp.h`,hh:`sourcecode.cpp.h`,hp:`sourcecode.cpp.h`,hpp:`sourcecode.cpp.h`,hqx:`archive.binhex`,htm:`text.html`,html:`text.html`,htmld:`wrapper.htmld`,hxx:`sourcecode.cpp.h`,i:`sourcecode.c.c.preprocessed`,icns:`image.icns`,ico:`image.ico`,iconset:`folder.iconset`,ii:`sourcecode.cpp.cpp.preprocessed`,iig:`sourcecode.iig`,imagecatalog:`folder.imagecatalog`,inc:`sourcecode.pascal`,instrdst:`com.apple.instruments.instrdst`,instrpkg:`com.apple.instruments.package-definition`,intentdefinition:`file.intentdefinition`,ipp:`sourcecode.cpp.h`,jam:`sourcecode.jam`,jar:`archive.jar`,java:`sourcecode.java`,javascript:`sourcecode.javascript`,jpeg:`image.jpeg`,jpg:`image.jpeg`,js:`sourcecode.javascript`,jscript:`sourcecode.javascript`,json:`text.json`,jsp:`text.html.other`,kext:`wrapper.kernel-extension`,l:`sourcecode.lex`,lid:`sourcecode.dylan`,ll:`sourcecode.asm.llvm`,llx:`sourcecode.asm.llvm`,lm:`sourcecode.lex`,lmm:`sourcecode.lex`,lp:`sourcecode.lex`,lpp:`sourcecode.lex`,lxx:`sourcecode.lex`,m:`sourcecode.c.objc`,mak:`sourcecode.make`,make:`sourcecode.make`,map:`sourcecode.module-map`,markdown:`net.daringfireball.markdown`,md:`net.daringfireball.markdown`,mdimporter:`wrapper.spotlight-importer`,mdown:`net.daringfireball.markdown`,metal:`sourcecode.metal`,metallib:`archive.metal-library`,mi:`sourcecode.c.objc.preprocessed`,mid:`audio.midi`,midi:`audio.midi`,mig:`sourcecode.mig`,mii:`sourcecode.cpp.objcpp.preprocessed`,mlkitmodel:`file.mlmodel`,mlmodel:`file.mlmodel`,mm:`sourcecode.cpp.objcpp`,modulemap:`sourcecode.module-map`,moov:`video.quicktime`,mov:`video.quicktime`,mp3:`audio.mp3`,mpeg:`video.mpeg`,mpg:`video.mpeg`,mpkg:`wrapper.installer-mpkg`,nasm:`sourcecode.nasm`,nib:`wrapper.nib`,"nib~":`wrapper.nib`,nqc:`sourcecode.nqc`,o:`compiled.mach-o.objfile`,octest:`wrapper.cfbundle`,otf:`file`,p:`sourcecode.pascal`,pas:`sourcecode.pascal`,pbfilespec:`text.plist.pbfilespec`,pblangspec:`text.plist.pblangspec`,pbxproj:`text.pbxproject`,pch:`sourcecode.c.h`,"pch++":`sourcecode.cpp.h`,pct:`image.pict`,pdf:`image.pdf`,perl:`text.script.perl`,php:`text.script.php`,php3:`text.script.php`,php4:`text.script.php`,phtml:`text.script.php`,pict:`image.pict`,pkg:`wrapper.installer-pkg`,pl:`text.script.perl`,playground:`file.playground`,plist:`text.plist`,pluginkit:`wrapper.app-extension`,pm:`text.script.perl`,png:`image.png`,pp:`sourcecode.pascal`,ppob:`archive.ppob`,proto:`sourcecode.protobuf`,py:`text.script.python`,qtz:`video.quartz-composer`,r:`sourcecode.rez`,rb:`text.script.ruby`,rbw:`text.script.ruby`,rcproject:`file.rcproject`,rcx:`compiled.rcx`,rez:`sourcecode.rez`,rhtml:`text.html.other`,rsrc:`archive.rsrc`,rtf:`text.rtf`,rtfd:`wrapper.rtfd`,s:`sourcecode.asm`,scnassets:`wrapper.scnassets`,scncache:`wrapper.scncache`,scnp:`file.scp`,scriptSuite:`text.plist.scriptSuite`,scriptTerminology:`text.plist.scriptTerminology`,sh:`text.script.sh`,shtml:`text.html.other`,sit:`archive.stuffit`,sks:`file.sks`,skybox:`file.skybox`,sqlite:`file`,storyboard:`file.storyboard`,storyboardc:`wrapper.storyboardc`,strings:`text.plist.strings`,stringsdict:`text.plist.stringsdict`,swift:`sourcecode.swift`,systemextension:`wrapper.system-extension`,tar:`archive.tar`,tbd:`sourcecode.text-based-dylib-definition`,tcc:`sourcecode.cpp.cpp`,text:`net.daringfireball.markdown`,tif:`image.tiff`,tiff:`image.tiff`,ttf:`file`,txt:`text`,uicatalog:`file.uicatalog`,usdz:`file.usdz`,vert:`sourcecode.glsl`,vertex:`sourcecode.glsl`,view:`archive.rsrc`,vs:`sourcecode.glsl`,vsh:`sourcecode.glsl`,war:`archive.war`,wav:`audio.wav`,worksheet:`text.script.worksheet`,xcassets:`folder.assetcatalog`,xcbuildrules:`text.plist.xcbuildrules`,xcclassmodel:`wrapper.xcclassmodel`,xcconfig:`text.xcconfig`,xcdatamodel:`wrapper.xcdatamodel`,xcdatamodeld:`wrapper.xcdatamodeld`,xcfilelist:`text.xcfilelist`,xcframework:`wrapper.xcframework`,xclangspec:`text.plist.xclangspec`,xcmappingmodel:`wrapper.xcmappingmodel`,xcode:`wrapper.pb-project`,xcodeproj:`wrapper.pb-project`,xconf:`text.xml`,xcplaygroundpage:`file.xcplaygroundpage`,xcspec:`text.plist.xcspec`,xcstickers:`folder.stickers`,xcsynspec:`text.plist.xcsynspec`,xctarget:`wrapper.pb-target`,xctest:`wrapper.cfbundle`,xctxtmacro:`text.plist.xctxtmacro`,xcworkspace:`wrapper.workspace`,xhtml:`text.xml`,xib:`file.xib`,xmap:`text.xml`,xml:`text.xml`,xpc:`wrapper.xpc-service`,xsl:`text.xml`,xslt:`text.xml`,xsp:`text.xml`,y:`sourcecode.yacc`,yaml:`text.yaml`,ym:`sourcecode.yacc`,yml:`text.yaml`,ymm:`sourcecode.yacc`,yp:`sourcecode.yacc`,ypp:`sourcecode.yacc`,yxx:`sourcecode.yacc`,zip:`archive.zip`}),l.PRODUCT_UTI_EXTENSIONS=Object.freeze({application:`app`,applicationOnDemandInstallCapable:`app`,framework:`framework`,dynamicLibrary:`dylib`,staticLibrary:`a`,bundle:`bundle`,octestBundle:`octest`,unitTestBundle:`xctest`,uiTestBundle:`xctest`,appExtension:`appex`,messagesApplication:`app`,messagesExtension:`appex`,stickerPack:`appex`,watch2Extension:`appex`,watch2App:`app`,watch2AppContainer:`app`}),l.SOURCETREE_BY_FILETYPE=Object.freeze({"compiled.mach-o.dylib":`SDKROOT`,"sourcecode.text-based-dylib-definition":`SDKROOT`,"wrapper.framework":`SDKROOT`,"wrapper.app-extension":`BUILT_PRODUCTS_DIR`,"wrapper.extensionkit-extension":`BUILT_PRODUCTS_DIR`}),l.PROJECT_DEFAULT_BUILD_SETTINGS=Object.freeze({all:Object.freeze({ALWAYS_SEARCH_USER_PATHS:`NO`,CLANG_ANALYZER_NONNULL:`YES`,CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION:`YES_AGGRESSIVE`,CLANG_CXX_LANGUAGE_STANDARD:`gnu++14`,CLANG_CXX_LIBRARY:`libc++`,CLANG_ENABLE_MODULES:`YES`,CLANG_ENABLE_OBJC_ARC:`YES`,CLANG_ENABLE_OBJC_WEAK:`YES`,CLANG_WARN__DUPLICATE_METHOD_MATCH:`YES`,CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING:`YES`,CLANG_WARN_BOOL_CONVERSION:`YES`,CLANG_WARN_COMMA:`YES`,CLANG_WARN_CONSTANT_CONVERSION:`YES`,CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS:`YES`,CLANG_WARN_DIRECT_OBJC_ISA_USAGE:`YES_ERROR`,CLANG_WARN_DOCUMENTATION_COMMENTS:`YES`,CLANG_WARN_EMPTY_BODY:`YES`,CLANG_WARN_ENUM_CONVERSION:`YES`,CLANG_WARN_INFINITE_RECURSION:`YES`,CLANG_WARN_INT_CONVERSION:`YES`,CLANG_WARN_NON_LITERAL_NULL_CONVERSION:`YES`,CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF:`YES`,CLANG_WARN_OBJC_LITERAL_CONVERSION:`YES`,CLANG_WARN_OBJC_ROOT_CLASS:`YES_ERROR`,CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER:`YES`,CLANG_WARN_RANGE_LOOP_ANALYSIS:`YES`,CLANG_WARN_STRICT_PROTOTYPES:`YES`,CLANG_WARN_SUSPICIOUS_MOVE:`YES`,CLANG_WARN_UNGUARDED_AVAILABILITY:`YES_AGGRESSIVE`,CLANG_WARN_UNREACHABLE_CODE:`YES`,COPY_PHASE_STRIP:`NO`,ENABLE_STRICT_OBJC_MSGSEND:`YES`,GCC_C_LANGUAGE_STANDARD:`gnu11`,GCC_NO_COMMON_BLOCKS:`YES`,GCC_WARN_64_TO_32_BIT_CONVERSION:`YES`,GCC_WARN_ABOUT_RETURN_TYPE:`YES_ERROR`,GCC_WARN_UNDECLARED_SELECTOR:`YES`,GCC_WARN_UNINITIALIZED_AUTOS:`YES_AGGRESSIVE`,GCC_WARN_UNUSED_FUNCTION:`YES`,GCC_WARN_UNUSED_VARIABLE:`YES`,MTL_FAST_MATH:`YES`,PRODUCT_NAME:`$(TARGET_NAME)`,SWIFT_VERSION:`5.0`}),release:Object.freeze({DEBUG_INFORMATION_FORMAT:`dwarf-with-dsym`,ENABLE_NS_ASSERTIONS:`NO`,MTL_ENABLE_DEBUG_INFO:`NO`,SWIFT_COMPILATION_MODE:`wholemodule`,SWIFT_OPTIMIZATION_LEVEL:`-O`}),debug:Object.freeze({DEBUG_INFORMATION_FORMAT:`dwarf`,ENABLE_TESTABILITY:`YES`,GCC_DYNAMIC_NO_PIC:`NO`,GCC_OPTIMIZATION_LEVEL:`0`,GCC_PREPROCESSOR_DEFINITIONS:[`DEBUG=1`,`$(inherited)`],MTL_ENABLE_DEBUG_INFO:`INCLUDE_SOURCE`,ONLY_ACTIVE_ARCH:`YES`,SWIFT_ACTIVE_COMPILATION_CONDITIONS:`DEBUG`,SWIFT_OPTIMIZATION_LEVEL:`-Onone`})})})),require_types$5=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.SubFolder=l.ProxyType=l.ISA=void 0,(function(l){l.PBXBuildFile=`PBXBuildFile`,l.PBXAppleScriptBuildPhase=`PBXAppleScriptBuildPhase`,l.PBXCopyFilesBuildPhase=`PBXCopyFilesBuildPhase`,l.PBXFrameworksBuildPhase=`PBXFrameworksBuildPhase`,l.PBXHeadersBuildPhase=`PBXHeadersBuildPhase`,l.PBXResourcesBuildPhase=`PBXResourcesBuildPhase`,l.PBXShellScriptBuildPhase=`PBXShellScriptBuildPhase`,l.PBXSourcesBuildPhase=`PBXSourcesBuildPhase`,l.PBXRezBuildPhase=`PBXRezBuildPhase`,l.PBXContainerItemProxy=`PBXContainerItemProxy`,l.PBXFileReference=`PBXFileReference`,l.PBXGroup=`PBXGroup`,l.PBXVariantGroup=`PBXVariantGroup`,l.XCVersionGroup=`XCVersionGroup`,l.PBXFileSystemSynchronizedRootGroup=`PBXFileSystemSynchronizedRootGroup`,l.PBXFileSystemSynchronizedBuildFileExceptionSet=`PBXFileSystemSynchronizedBuildFileExceptionSet`,l.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet=`PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet`,l.PBXNativeTarget=`PBXNativeTarget`,l.PBXAggregateTarget=`PBXAggregateTarget`,l.PBXLegacyTarget=`PBXLegacyTarget`,l.PBXProject=`PBXProject`,l.PBXTargetDependency=`PBXTargetDependency`,l.XCBuildConfiguration=`XCBuildConfiguration`,l.XCConfigurationList=`XCConfigurationList`,l.PBXBuildRule=`PBXBuildRule`,l.PBXReferenceProxy=`PBXReferenceProxy`,l.XCSwiftPackageProductDependency=`XCSwiftPackageProductDependency`,l.XCRemoteSwiftPackageReference=`XCRemoteSwiftPackageReference`,l.XCLocalSwiftPackageReference=`XCLocalSwiftPackageReference`})(l.ISA||={}),(function(l){l[l.targetReference=1]=`targetReference`,l[l.reference=2]=`reference`})(l.ProxyType||={}),(function(l){l[l.absolutePath=0]=`absolutePath`,l[l.productsDirectory=16]=`productsDirectory`,l[l.wrapper=1]=`wrapper`,l[l.executables=6]=`executables`,l[l.resources=7]=`resources`,l[l.javaResources=15]=`javaResources`,l[l.frameworks=10]=`frameworks`,l[l.sharedFrameworks=11]=`sharedFrameworks`,l[l.sharedSupport=12]=`sharedSupport`,l[l.plugins=13]=`plugins`})(l.SubFolder||={})})),require_paths=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.getReferringTargets=l.getFullPath=l.getSourceTreeRealPath=l.getRealPath=l.getParents=l.getParent=void 0;let re=te(__require$1(`assert`)),ie=te(__require$1(`path`)),ae=m(require_types$5());function oe(l){return Array.from(new Set(l))}function se(l){return l.isa===`PBXProject`}function ce(l){return l.isa===`PBXGroup`}function le(l){let d=oe(l.getReferrers());if(d.length>1)return d.filter(l=>ce(l));if(d.length===1){let l=d[0];return(0,re.default)(se(l)||ce(l),`referring object is not a PBXGroup or PBXProject`),[l]}return[]}function ue(l){let d=le(l);if(!d.length)throw Error(`Consistency issue: no parent for object: "${l.getDisplayName()||l.isa+` - `+l.uuid}"`);if(d.length>1)throw Error(`Consistency issue: multiple parents for object: "${l.getDisplayName()}": ${d.map(l=>l.getDisplayName()).join(`, `)}`);return d[0]}l.getParent=ue;function de(l){if(fe(l))return[];let d=ue(l);return[...de(d),d]}l.getParents=de;function fe(l){return l.uuid===l.getXcodeProject().rootObject.props.mainGroup.uuid}function pe(l){let d=me(l),f=l.props.path||``;return d?ie.default.join(d,f):f}l.getRealPath=pe;function me(l){if(l.props.sourceTree===`<group>`){let d=ue(l);return se(d)?ie.default.join(l.getXcodeProject().getProjectRoot(),l.project.props.projectDirPath):pe(d)}else if(l.props.sourceTree===`SOURCE_ROOT`)return ie.default.resolve(l.getXcodeProject().getProjectRoot());else if(l.props.sourceTree===`<absolute>`)return``;return l.props.sourceTree}l.getSourceTreeRealPath=me;function he(l){if(l.props.sourceTree===`<group>`){let d=ue(l);return se(d)?``:ge(d)}else if(l.props.sourceTree===`SOURCE_ROOT`)return``;else if(l.props.sourceTree===`<absolute>`)return`/`;return l.props.sourceTree}function ge(l){let d=he(l);return l.props.path?ie.default.join(d,l.props.path):d}l.getFullPath=ge;function _e(l){return l.getReferrers().filter(l=>ve(l))}l.getReferringTargets=_e;function ve(l){return l.isa===ae.ISA.PBXNativeTarget}})),require_AbstractObject=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.AbstractObject=void 0;let f=d(__require$1(`assert`)),m=d(__require$1(`util`)),te=require_src$1()(`xcparse:models`);l.AbstractObject=class l{get isa(){return this.props.isa}getReferrers(){return this.getXcodeProject().getReferrers(this.uuid)}get project(){return this.getXcodeProject().rootObject}getXcodeProject(){return this.xcodeProject}constructor(l,d,f){this.uuid=d,this.props=f,Object.defineProperty(this,"xcodeProject",{get(){return l}}),te(`Inflating model (uuid: ${d}, isa: ${f.isa})`),this.setupDefaults(f)}inflate(){for(let[d,m]of Object.entries(this.getObjectProps())){if(!(d in this.props))continue;let te=this.props[d];if(Array.isArray(te))(0,f.default)(m===Array||Array.isArray(m),`'${String(d)}' MUST be of type Array but instead found type: ${typeof te}`),this.props[d]=te.map(l=>{if(typeof l!=`string`)return l;try{return this.getXcodeProject().getObject(l)}catch(f){if(`message`in f&&f.message.includes(`object with uuid`))console.warn(`[Malformed Xcode project]: Found orphaned reference: ${this.uuid} > ${this.isa}.${String(d)} > ${l}`);else throw f;return null}}).filter(Boolean);else if(te!=null){if(te instanceof l){this.props[d]=this.getXcodeProject().getObject(te.uuid);continue}(0,f.default)(typeof this.props[d]==`string`,`'${String(d)}' MUST be of type string (UUID) but instead found type: ${typeof te}`);try{this.props[d]=this.getXcodeProject().getObject(te)}catch(l){if(`message`in l&&l.message.includes(`object with uuid`))console.warn(`[Malformed Xcode project]: Found orphaned reference: ${this.uuid} > ${this.isa}.${String(d)} > ${te}`);else throw l}}}}setupDefaults(l){}getDisplayName(){return`name`in this.props?this.props.name:this.isa.replace(/^(PBX|XC)/,``)}isReferencing(l){for(let d of Object.keys(this.getObjectProps())){let f=this.props[d];if(Array.isArray(f)){if(f.some(d=>d?.uuid===l))return!0}else if(f&&typeof f==`object`&&`uuid`in f&&f.uuid===l)return!0}return!1}toJSON(){(0,f.default)(this.isa,`isa is not defined for `+this.uuid),te(`to JSON for`,this.isa,this.uuid,this.constructor.name);let l={...this.props};for(let d of Object.keys(this.getObjectProps()))if(d in this.props){let f=this.props[d],te;if(re(f))te=f.map(l=>l.uuid);else if(Array.isArray(f))throw Error(m.default.format(`Unable to serialize array of unknown objects (some missing 'uuid' property): %O`,f));else ie(f)&&(te=f.uuid);if(te)l[d]=te;else throw Error(m.default.format(`Unable to serialize object: %O`,f))}return l}removeReference(l){for(let d of Object.keys(this.getObjectProps())){let f=this.props[d];if(Array.isArray(f)){let d=f.findIndex(d=>d?.uuid===l);d!==-1&&f.splice(d,1)}else f&&typeof f==`object`&&`uuid`in f&&f.uuid===l&&(this.props[d]=void 0)}}removeFromProject(){this.getXcodeProject().delete(this.uuid),this.getReferrers().forEach(l=>{l.removeReference(this.uuid)})}};function re(l){return Array.isArray(l)&&l.every(l=>typeof l.uuid==`string`)}function ie(l){return typeof l.uuid==`string`&&typeof l.isa==`string`}})),require_PBXBuildFile=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXBuildFile=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}static createFromProductRef(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{fileRef:String,productRef:String}}isReferencing(l){return[this.props.fileRef?.uuid,this.props.productRef?.uuid].includes(l)}getDisplayName(){return this.props.productRef?this.props.productRef.getDisplayName():this.props.fileRef?this.props.fileRef.getDisplayName():super.getDisplayName()}};l.PBXBuildFile=ie,ie.isa=te.ISA.PBXBuildFile})),require_parser$5=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.parse=void 0;let d=require_lib$3();function f(l){let f=new d.DOMParser().parseFromString(l,`text/xml`).documentElement;if(!f||f.tagName!==`Scheme`)throw Error(`Invalid xcscheme file: root element must be <Scheme>`);return m(f)}l.parse=f;function m(l){let d={};d.version=xe(l,`version`),d.lastUpgradeVersion=xe(l,`LastUpgradeVersion`);let f=Ce(l,`BuildAction`);f&&(d.buildAction=te(f));let m=Ce(l,`TestAction`);m&&(d.testAction=ce(m));let re=Ce(l,`LaunchAction`);re&&(d.launchAction=de(re));let ie=Ce(l,`ProfileAction`);ie&&(d.profileAction=ge(ie));let ae=Ce(l,`AnalyzeAction`);ae&&(d.analyzeAction=_e(ae));let oe=Ce(l,`ArchiveAction`);return oe&&(d.archiveAction=ve(oe)),d}function te(l){let d={};d.parallelizeBuildables=Se(l,`parallelizeBuildables`),d.buildImplicitDependencies=Se(l,`buildImplicitDependencies`),d.runPostActionsOnFailure=Se(l,`runPostActionsOnFailure`),d.buildArchitectures=xe(l,`buildArchitectures`);let f=Ce(l,`BuildActionEntries`);return f&&(d.entries=we(f,`BuildActionEntry`).map(re)),d.preActions=ae(l,`PreActions`),d.postActions=ae(l,`PostActions`),d}function re(l){let d={};d.buildForRunning=Se(l,`buildForRunning`),d.buildForTesting=Se(l,`buildForTesting`),d.buildForProfiling=Se(l,`buildForProfiling`),d.buildForArchiving=Se(l,`buildForArchiving`),d.buildForAnalyzing=Se(l,`buildForAnalyzing`);let f=Ce(l,`BuildableReference`);return f&&(d.buildableReference=ie(f)),d}function ie(l){return{buildableIdentifier:xe(l,`BuildableIdentifier`)||`primary`,blueprintIdentifier:xe(l,`BlueprintIdentifier`)||``,buildableName:xe(l,`BuildableName`)||``,blueprintName:xe(l,`BlueprintName`)||``,referencedContainer:xe(l,`ReferencedContainer`)||``}}function ae(l,d){let f=Ce(l,d);if(!f)return;let m=we(f,`ExecutionAction`);if(m.length!==0)return m.map(oe)}function oe(l){let d={};d.actionType=xe(l,`ActionType`);let f=Ce(l,`ActionContent`);return f&&(d.actionContent=se(f)),d}function se(l){let d={};d.title=xe(l,`title`),d.scriptText=xe(l,`scriptText`),d.shellToInvoke=xe(l,`shellToInvoke`);let f=Ce(l,`EnvironmentBuildable`);if(f){let l=Ce(f,`BuildableReference`);l&&(d.environmentBuildable=ie(l))}return d}function ce(l){let d={};d.buildConfiguration=xe(l,`buildConfiguration`),d.selectedDebuggerIdentifier=xe(l,`selectedDebuggerIdentifier`),d.selectedLauncherIdentifier=xe(l,`selectedLauncherIdentifier`),d.shouldUseLaunchSchemeArgsEnv=Se(l,`shouldUseLaunchSchemeArgsEnv`),d.shouldAutocreateTestPlan=Se(l,`shouldAutocreateTestPlan`),d.preferredScreenCaptureFormat=xe(l,`preferredScreenCaptureFormat`),d.codeCoverageEnabled=Se(l,`codeCoverageEnabled`),d.onlyGenerateCoverageForSpecifiedTargets=Se(l,`onlyGenerateCoverageForSpecifiedTargets`);let f=Ce(l,`Testables`);f&&(d.testables=we(f,`TestableReference`).map(le));let m=Ce(l,`TestPlans`);m&&(d.testPlans=we(m,`TestPlanReference`).map(ue));let te=Ce(l,`MacroExpansion`);if(te){let l=Ce(te,`BuildableReference`);l&&(d.macroExpansion=ie(l))}return d.commandLineArguments=ye(l),d.environmentVariables=be(l),d.preActions=ae(l,`PreActions`),d.postActions=ae(l,`PostActions`),d}function le(l){let d={};d.skipped=Se(l,`skipped`),d.parallelizable=Se(l,`parallelizable`),d.useTestSelectionWhitelist=Se(l,`useTestSelectionWhitelist`);let f=Ce(l,`BuildableReference`);f&&(d.buildableReference=ie(f));let m=Ce(l,`SkippedTests`);m&&(d.skippedTests=we(m,`Test`).map(l=>({identifier:xe(l,`Identifier`)||``})));let te=Ce(l,`SelectedTests`);return te&&(d.selectedTests=we(te,`Test`).map(l=>({identifier:xe(l,`Identifier`)||``}))),d}function ue(l){return{reference:xe(l,`reference`)||``,default:Se(l,`default`)}}function de(l){let d={};d.buildConfiguration=xe(l,`buildConfiguration`),d.selectedDebuggerIdentifier=xe(l,`selectedDebuggerIdentifier`),d.selectedLauncherIdentifier=xe(l,`selectedLauncherIdentifier`),d.launchStyle=xe(l,`launchStyle`),d.useCustomWorkingDirectory=Se(l,`useCustomWorkingDirectory`),d.customWorkingDirectory=xe(l,`customWorkingDirectory`),d.ignoresPersistentStateOnLaunch=Se(l,`ignoresPersistentStateOnLaunch`),d.debugDocumentVersioning=Se(l,`debugDocumentVersioning`),d.debugServiceExtension=xe(l,`debugServiceExtension`),d.allowLocationSimulation=Se(l,`allowLocationSimulation`),d.customLaunchCommand=xe(l,`customLaunchCommand`),d.appClipInvocationURLString=xe(l,`appClipInvocationURLString`),d.askForAppToLaunch=Se(l,`askForAppToLaunch`),d.launchAutomaticallySubstyle=xe(l,`launchAutomaticallySubstyle`);let f=Ce(l,`BuildableProductRunnable`);f&&(d.buildableProductRunnable=fe(f));let m=Ce(l,`RemoteRunnable`);m&&(d.remoteRunnable=pe(m));let te=Ce(l,`MacroExpansion`);if(te){let l=Ce(te,`BuildableReference`);l&&(d.macroExpansion=ie(l))}let re=Ce(l,`LocationScenarioReference`);re&&(d.locationScenarioReference=me(re));let oe=Ce(l,`StoreKitConfigurationFileReference`);return oe&&(d.storeKitConfigurationFileReference=he(oe)),d.commandLineArguments=ye(l),d.environmentVariables=be(l),d.preActions=ae(l,`PreActions`),d.postActions=ae(l,`PostActions`),d}function fe(l){let d={};d.runnableDebuggingMode=xe(l,`runnableDebuggingMode`);let f=Ce(l,`BuildableReference`);return f&&(d.buildableReference=ie(f)),d}function pe(l){let d={};d.runnableDebuggingMode=xe(l,`runnableDebuggingMode`),d.bundleIdentifier=xe(l,`BundleIdentifier`),d.remotePath=xe(l,`RemotePath`);let f=Ce(l,`BuildableReference`);return f&&(d.buildableReference=ie(f)),d}function me(l){return{identifier:xe(l,`identifier`),referenceType:xe(l,`referenceType`)}}function he(l){return{identifier:xe(l,`identifier`)}}function ge(l){let d={};d.buildConfiguration=xe(l,`buildConfiguration`),d.shouldUseLaunchSchemeArgsEnv=Se(l,`shouldUseLaunchSchemeArgsEnv`),d.savedToolIdentifier=xe(l,`savedToolIdentifier`),d.useCustomWorkingDirectory=Se(l,`useCustomWorkingDirectory`),d.debugDocumentVersioning=Se(l,`debugDocumentVersioning`),d.askForAppToLaunch=Se(l,`askForAppToLaunch`),d.launchAutomaticallySubstyle=xe(l,`launchAutomaticallySubstyle`),d.appClipInvocationURLString=xe(l,`appClipInvocationURLString`);let f=Ce(l,`BuildableProductRunnable`);return f&&(d.buildableProductRunnable=fe(f)),d.commandLineArguments=ye(l),d.environmentVariables=be(l),d.preActions=ae(l,`PreActions`),d.postActions=ae(l,`PostActions`),d}function _e(l){let d={};return d.buildConfiguration=xe(l,`buildConfiguration`),d.preActions=ae(l,`PreActions`),d.postActions=ae(l,`PostActions`),d}function ve(l){let d={};return d.buildConfiguration=xe(l,`buildConfiguration`),d.customArchiveName=xe(l,`customArchiveName`),d.revealArchiveInOrganizer=Se(l,`revealArchiveInOrganizer`),d.preActions=ae(l,`PreActions`),d.postActions=ae(l,`PostActions`),d}function ye(l){let d=Ce(l,`CommandLineArguments`);if(!d)return;let f=we(d,`CommandLineArgument`);if(f.length!==0)return f.map(l=>({argument:xe(l,`argument`)||``,isEnabled:Se(l,`isEnabled`)}))}function be(l){let d=Ce(l,`EnvironmentVariables`);if(!d)return;let f=we(d,`EnvironmentVariable`);if(f.length!==0)return f.map(l=>({key:xe(l,`key`)||``,value:xe(l,`value`)||``,isEnabled:Se(l,`isEnabled`)}))}function xe(l,d){if(l.hasAttribute(d))return l.getAttribute(d)??void 0}function Se(l,d){let f=l.getAttribute(d);if(f===`YES`||f===`Yes`)return!0;if(f===`NO`||f===`No`)return!1}function Ce(l,d){let f=l.childNodes;for(let l=0;l<f.length;l++){let m=f[l];if(m.nodeType===1&&m.tagName===d)return m}return null}function we(l,d){let f=[],m=l.childNodes;for(let l=0;l<m.length;l++){let te=m[l];te.nodeType===1&&te.tagName===d&&f.push(te)}return f}})),require_writer$5=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.build=void 0;function d(l){let d=[];d.push(`<?xml version="1.0" encoding="UTF-8"?>`),d.push(`<Scheme`);let te=f(l);return d.push(...te.map(l=>` ${l}`)),d[d.length-1]+=`>`,l.buildAction&&d.push(...m(l.buildAction,1)),l.testAction&&d.push(...se(l.testAction,1)),l.launchAction&&d.push(...ue(l.launchAction,1)),l.profileAction&&d.push(...he(l.profileAction,1)),l.analyzeAction&&d.push(...ge(l.analyzeAction,1)),l.archiveAction&&d.push(..._e(l.archiveAction,1)),d.push(`</Scheme>`),d.join(`
45945
+ `;break;case`t`:l+=` `;break;case`r`:l+=`\r`;break;case`0`:l+=`\0`;break;default:l+=d;break}this.pos++;continue}if(d===`"`)return this.pos++,l;l+=d,this.pos++}throw Error(`Unterminated string`)}parseUnquotedString(){let l=this.pos;for(;this.pos<this.input.length;){let l=this.input[this.pos];if(/[a-zA-Z0-9._\/$:-]/.test(l))this.pos++;else break}if(this.pos===l)throw Error(`Unexpected character '${this.input[this.pos]}' at position ${this.pos}`);return this.input.substring(l,this.pos)}};function parseOpenStep(l){return new OpenStepParser(l).parseValue()}var import_lib$1=require_lib$2();function base64ToUint8Array(l){let d=atob(l),f=new Uint8Array(d.length);for(let l=0;l<d.length;l++)f[l]=d.charCodeAt(l);return f}const TEXT_NODE=3,CDATA_NODE=4,COMMENT_NODE=8;function shouldIgnoreNode(l){return l.nodeType===TEXT_NODE||l.nodeType===COMMENT_NODE||l.nodeType===CDATA_NODE}function isEmptyNode(l){return!l.childNodes||l.childNodes.length===0}function invariant(l,d){if(!l)throw Error(d)}function parse$2(l){if(l instanceof ArrayBuffer)return parseBinary(new Uint8Array(l));if(l instanceof Uint8Array)return parseBinary(l);if(typeof l==`string`&&l.startsWith(`bplist`))return parseBinary(new TextEncoder().encode(l));if(typeof l==`string`){let d=l.trimStart();if((d[0]===`{`||d[0]===`(`)&&!d.startsWith(`<?xml`)&&!d.startsWith(`<!DOCTYPE`)&&!d.startsWith(`<plist`))return parseOpenStep(l)}let d=new import_lib$1.DOMParser().parseFromString(l,`text/xml`).documentElement;invariant(d!==null&&d.nodeName===`plist`,`malformed document. First element should be <plist>`);let f=parsePlistXML(d);return Array.isArray(f)&&f.length==1&&(f=f[0]),f}function parsePlistXML(l){if(!l)return null;if(l.nodeName===`plist`){let d=[];if(isEmptyNode(l))return d;for(let f=0;f<l.childNodes.length;f++)shouldIgnoreNode(l.childNodes[f])||d.push(parsePlistXML(l.childNodes[f]));return d}else if(l.nodeName===`dict`){let d={},f=null,m=0;if(isEmptyNode(l))return d;for(let te=0;te<l.childNodes.length;te++)shouldIgnoreNode(l.childNodes[te])||(m%2==0?(invariant(l.childNodes[te].nodeName===`key`,`Missing key while parsing <dict/>.`),f=parsePlistXML(l.childNodes[te])):(invariant(l.childNodes[te].nodeName!==`key`,`Unexpected <key> while parsing <dict/>. Keys and values must alternate.`),d[f]=parsePlistXML(l.childNodes[te])),m+=1);return m%2==1&&(d[f]=``),d}else if(l.nodeName===`array`){let d=[];if(isEmptyNode(l))return d;for(let f=0;f<l.childNodes.length;f++)if(!shouldIgnoreNode(l.childNodes[f])){let m=parsePlistXML(l.childNodes[f]);m!=null&&d.push(m)}return d}else if(l.nodeName!==`#text`){if(l.nodeName===`key`)return isEmptyNode(l)?``:(invariant(l.childNodes[0].nodeValue!==`__proto__`,`__proto__ keys can lead to prototype pollution. More details on CVE-2022-22912`),l.childNodes[0].nodeValue);if(l.nodeName===`string`){let d=``;if(isEmptyNode(l))return d;for(let f=0;f<l.childNodes.length;f++){let m=l.childNodes[f].nodeType;(m===TEXT_NODE||m===CDATA_NODE)&&(d+=l.childNodes[f].nodeValue)}return d}else if(l.nodeName===`integer`)return invariant(!isEmptyNode(l),`Cannot parse "" as integer.`),parseInt(l.childNodes[0].nodeValue,10);else if(l.nodeName===`real`){invariant(!isEmptyNode(l),`Cannot parse "" as real.`);let d=``;for(let f=0;f<l.childNodes.length;f++)l.childNodes[f].nodeType===TEXT_NODE&&(d+=l.childNodes[f].nodeValue);return parseFloat(d)}else if(l.nodeName===`data`){let d=``;if(isEmptyNode(l))return base64ToUint8Array(d);for(let f=0;f<l.childNodes.length;f++)l.childNodes[f].nodeType===TEXT_NODE&&(d+=l.childNodes[f].nodeValue.replace(/\s+/g,``));return base64ToUint8Array(d)}else if(l.nodeName===`date`)return invariant(!isEmptyNode(l),`Cannot parse "" as Date.`),new Date(l.childNodes[0].nodeValue);else if(l.nodeName===`null`)return null;else if(l.nodeName===`true`)return!0;else if(l.nodeName===`false`)return!1;else throw Error(`Invalid PLIST tag `+l.nodeName)}return null}var require_Utility=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe={}.hasOwnProperty;l=function(l,...d){var f,m,te,ie;if(re(Object.assign))Object.assign.apply(null,arguments);else for(f=0,te=d.length;f<te;f++)if(ie=d[f],ie!=null)for(m in ie)oe.call(ie,m)&&(l[m]=ie[m]);return l},re=function(l){return!!l&&Object.prototype.toString.call(l)===`[object Function]`},ie=function(l){var d;return!!l&&((d=typeof l)==`function`||d===`object`)},m=function(l){return re(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)===`[object Array]`},te=function(l){var d;if(m(l))return!l.length;for(d in l)if(oe.call(l,d))return!1;return!0},ae=function(l){var d,f;return ie(l)&&(f=Object.getPrototypeOf(l))&&(d=f.constructor)&&typeof d==`function`&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},f=function(l){return re(l.valueOf)?l.valueOf():l},d.exports.assign=l,d.exports.isFunction=re,d.exports.isObject=ie,d.exports.isArray=m,d.exports.isEmpty=te,d.exports.isPlainObject=ae,d.exports.getValue=f}).call(l)})),require_XMLDOMImplementation=__commonJSMin(((l,d)=>{(function(){d.exports=class{hasFeature(l,d){return!0}createDocumentType(l,d,f){throw Error(`This DOM method is not implemented.`)}createDocument(l,d,f){throw Error(`This DOM method is not implemented.`)}createHTMLDocument(l){throw Error(`This DOM method is not implemented.`)}getFeature(l,d){throw Error(`This DOM method is not implemented.`)}}}).call(l)})),require_XMLDOMErrorHandler=__commonJSMin(((l,d)=>{(function(){d.exports=class{constructor(){}handleError(l){throw Error(l)}}}).call(l)})),require_XMLDOMStringList=__commonJSMin(((l,d)=>{(function(){d.exports=(function(){class l{constructor(l){this.arr=l||[]}item(l){return this.arr[l]||null}contains(l){return this.arr.indexOf(l)!==-1}}return Object.defineProperty(l.prototype,"length",{get:function(){return this.arr.length}}),l}).call(this)}).call(l)})),require_XMLDOMConfiguration=__commonJSMin(((l,d)=>{(function(){var l=require_XMLDOMErrorHandler(),f=require_XMLDOMStringList();d.exports=(function(){class d{constructor(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new l,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":``,"schema-type":``,"split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}getParameter(l){return this.params.hasOwnProperty(l)?this.params[l]:null}canSetParameter(l,d){return!0}setParameter(l,d){return d==null?delete this.params[l]:this.params[l]=d}}return Object.defineProperty(d.prototype,"parameterNames",{get:function(){return new f(Object.keys(this.defaultParams))}}),d}).call(this)}).call(l)})),require_NodeType=__commonJSMin(((l,d)=>{(function(){d.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(l)})),require_XMLAttribute=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType();require_XMLNode(),d.exports=(function(){class d{constructor(d,f,m){if(this.parent=d,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),f==null)throw Error(`Missing attribute name. `+this.debugInfo(f));this.name=this.stringify.name(f),this.value=this.stringify.attValue(m),this.type=l.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(l){return this.options.writer.attribute(this,this.options.writer.filterOptions(l))}debugInfo(l){return l||=this.name,l==null?`parent: <`+this.parent.name+`>`:`attribute: {`+l+`}, parent: <`+this.parent.name+`>`}isEqualNode(l){return!(l.namespaceURI!==this.namespaceURI||l.prefix!==this.prefix||l.localName!==this.localName||l.value!==this.value)}}return Object.defineProperty(d.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(d.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return this.value},set:function(l){return this.value=l||``}}),Object.defineProperty(d.prototype,"namespaceURI",{get:function(){return``}}),Object.defineProperty(d.prototype,"prefix",{get:function(){return``}}),Object.defineProperty(d.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"specified",{get:function(){return!0}}),d}).call(this)}).call(l)})),require_XMLNamedNodeMap=__commonJSMin(((l,d)=>{(function(){d.exports=(function(){class l{constructor(l){this.nodes=l}clone(){return this.nodes=null}getNamedItem(l){return this.nodes[l]}setNamedItem(l){var d=this.nodes[l.nodeName];return this.nodes[l.nodeName]=l,d||null}removeNamedItem(l){var d=this.nodes[l];return delete this.nodes[l],d||null}item(l){return this.nodes[Object.keys(this.nodes)[l]]||null}getNamedItemNS(l,d){throw Error(`This DOM method is not implemented.`)}setNamedItemNS(l){throw Error(`This DOM method is not implemented.`)}removeNamedItemNS(l,d){throw Error(`This DOM method is not implemented.`)}}return Object.defineProperty(l.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),l}).call(this)}).call(l)})),require_XMLElement=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe={}.hasOwnProperty;({isObject:ae,isFunction:ie,getValue:re}=require_Utility()),te=require_XMLNode(),l=require_NodeType(),f=require_XMLAttribute(),m=require_XMLNamedNodeMap(),d.exports=(function(){class d extends te{constructor(d,f,m){var te,re,ie,ae;if(super(d),f==null)throw Error(`Missing element name. `+this.debugInfo());if(this.name=this.stringify.name(f),this.type=l.Element,this.attribs={},this.schemaTypeInfo=null,m!=null&&this.attribute(m),d.type===l.Document&&(this.isRoot=!0,this.documentObject=d,d.rootObject=this,d.children)){for(ae=d.children,re=0,ie=ae.length;re<ie;re++)if(te=ae[re],te.type===l.DocType){te.name=this.name;break}}}clone(){var l,d,f=Object.create(this),m;for(d in f.isRoot&&(f.documentObject=null),f.attribs={},m=this.attribs,m)oe.call(m,d)&&(l=m[d],f.attribs[d]=l.clone());return f.children=[],this.children.forEach(function(l){var d=l.clone();return d.parent=f,f.children.push(d)}),f}attribute(l,d){var m,te;if(l!=null&&(l=re(l)),ae(l))for(m in l)oe.call(l,m)&&(te=l[m],this.attribute(m,te));else ie(d)&&(d=d.apply()),this.options.keepNullAttributes&&d==null?this.attribs[l]=new f(this,l,``):d!=null&&(this.attribs[l]=new f(this,l,d));return this}removeAttribute(l){var d,f,m;if(l==null)throw Error(`Missing attribute name. `+this.debugInfo());if(l=re(l),Array.isArray(l))for(f=0,m=l.length;f<m;f++)d=l[f],delete this.attribs[d];else delete this.attribs[l];return this}toString(l){return this.options.writer.element(this,this.options.writer.filterOptions(l))}att(l,d){return this.attribute(l,d)}a(l,d){return this.attribute(l,d)}getAttribute(l){return this.attribs.hasOwnProperty(l)?this.attribs[l].value:null}setAttribute(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNode(l){return this.attribs.hasOwnProperty(l)?this.attribs[l]:null}setAttributeNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeAttributeNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setAttributeNS(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeAttributeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNodeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setAttributeNodeNS(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}hasAttribute(l){return this.attribs.hasOwnProperty(l)}hasAttributeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setIdAttribute(l,d){return this.attribs.hasOwnProperty(l)?this.attribs[l].isId:d}setIdAttributeNS(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setIdAttributeNode(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByClassName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(l){var d,f,m;if(!super.isEqualNode(l)||l.namespaceURI!==this.namespaceURI||l.prefix!==this.prefix||l.localName!==this.localName||l.attribs.length!==this.attribs.length)return!1;for(d=f=0,m=this.attribs.length-1;0<=m?f<=m:f>=m;d=0<=m?++f:--f)if(!this.attribs[d].isEqualNode(l.attribs[d]))return!1;return!0}}return Object.defineProperty(d.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"namespaceURI",{get:function(){return``}}),Object.defineProperty(d.prototype,"prefix",{get:function(){return``}}),Object.defineProperty(d.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"id",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(d.prototype,"className",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(d.prototype,"classList",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(d.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new m(this.attribs)),this.attributeMap}}),d}).call(this)}).call(l)})),require_XMLCharacterData=__commonJSMin(((l,d)=>{(function(){var l=require_XMLNode();d.exports=(function(){class d extends l{constructor(l){super(l),this.value=``}clone(){return Object.create(this)}substringData(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}appendData(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}insertData(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}deleteData(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}replaceData(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(l){return!(!super.isEqualNode(l)||l.data!==this.data)}}return Object.defineProperty(d.prototype,"data",{get:function(){return this.value},set:function(l){return this.value=l||``}}),Object.defineProperty(d.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return this.value},set:function(l){return this.value=l||``}}),d}).call(this)}).call(l)})),require_XMLCData=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType(),f=require_XMLCharacterData();d.exports=class extends f{constructor(d,f){if(super(d),f==null)throw Error(`Missing CDATA text. `+this.debugInfo());this.name=`#cdata-section`,this.type=l.CData,this.value=this.stringify.cdata(f)}clone(){return Object.create(this)}toString(l){return this.options.writer.cdata(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLComment=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType(),f=require_XMLCharacterData();d.exports=class extends f{constructor(d,f){if(super(d),f==null)throw Error(`Missing comment text. `+this.debugInfo());this.name=`#comment`,this.type=l.Comment,this.value=this.stringify.comment(f)}clone(){return Object.create(this)}toString(l){return this.options.writer.comment(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLDeclaration=__commonJSMin(((l,d)=>{(function(){var l,f,m;({isObject:m}=require_Utility()),f=require_XMLNode(),l=require_NodeType(),d.exports=class extends f{constructor(d,f,te,re){super(d),m(f)&&({version:f,encoding:te,standalone:re}=f),f||=`1.0`,this.type=l.Declaration,this.version=this.stringify.xmlVersion(f),te!=null&&(this.encoding=this.stringify.xmlEncoding(te)),re!=null&&(this.standalone=this.stringify.xmlStandalone(re))}toString(l){return this.options.writer.declaration(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLDTDAttList=__commonJSMin(((l,d)=>{(function(){var l,f=require_XMLNode();l=require_NodeType(),d.exports=class extends f{constructor(d,f,m,te,re,ie){if(super(d),f==null)throw Error(`Missing DTD element name. `+this.debugInfo());if(m==null)throw Error(`Missing DTD attribute name. `+this.debugInfo(f));if(!te)throw Error(`Missing DTD attribute type. `+this.debugInfo(f));if(!re)throw Error(`Missing DTD attribute default. `+this.debugInfo(f));if(re.indexOf(`#`)!==0&&(re=`#`+re),!re.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error(`Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. `+this.debugInfo(f));if(ie&&!re.match(/^(#FIXED|#DEFAULT)$/))throw Error(`Default value only applies to #FIXED or #DEFAULT. `+this.debugInfo(f));this.elementName=this.stringify.name(f),this.type=l.AttributeDeclaration,this.attributeName=this.stringify.name(m),this.attributeType=this.stringify.dtdAttType(te),ie&&(this.defaultValue=this.stringify.dtdAttDefault(ie)),this.defaultValueType=re}toString(l){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLDTDEntity=__commonJSMin(((l,d)=>{(function(){var l,f,m;({isObject:m}=require_Utility()),f=require_XMLNode(),l=require_NodeType(),d.exports=(function(){class d extends f{constructor(d,f,te,re){if(super(d),te==null)throw Error(`Missing DTD entity name. `+this.debugInfo(te));if(re==null)throw Error(`Missing DTD entity value. `+this.debugInfo(te));if(this.pe=!!f,this.name=this.stringify.name(te),this.type=l.EntityDeclaration,!m(re))this.value=this.stringify.dtdEntityValue(re),this.internal=!0;else{if(!re.pubID&&!re.sysID)throw Error(`Public and/or system identifiers are required for an external entity. `+this.debugInfo(te));if(re.pubID&&!re.sysID)throw Error(`System identifier is required for a public external entity. `+this.debugInfo(te));if(this.internal=!1,re.pubID!=null&&(this.pubID=this.stringify.dtdPubID(re.pubID)),re.sysID!=null&&(this.sysID=this.stringify.dtdSysID(re.sysID)),re.nData!=null&&(this.nData=this.stringify.dtdNData(re.nData)),this.pe&&this.nData)throw Error(`Notation declaration is not allowed in a parameter entity. `+this.debugInfo(te))}}toString(l){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(l))}}return Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(d.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(d.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"xmlVersion",{get:function(){return null}}),d}).call(this)}).call(l)})),require_XMLDTDElement=__commonJSMin(((l,d)=>{(function(){var l,f=require_XMLNode();l=require_NodeType(),d.exports=class extends f{constructor(d,f,m){if(super(d),f==null)throw Error(`Missing DTD element name. `+this.debugInfo());m||=`(#PCDATA)`,Array.isArray(m)&&(m=`(`+m.join(`,`)+`)`),this.name=this.stringify.name(f),this.type=l.ElementDeclaration,this.value=this.stringify.dtdElementValue(m)}toString(l){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLDTDNotation=__commonJSMin(((l,d)=>{(function(){var l,f=require_XMLNode();l=require_NodeType(),d.exports=(function(){class d extends f{constructor(d,f,m){if(super(d),f==null)throw Error(`Missing DTD notation name. `+this.debugInfo(f));if(!m.pubID&&!m.sysID)throw Error(`Public or system identifiers are required for an external entity. `+this.debugInfo(f));this.name=this.stringify.name(f),this.type=l.NotationDeclaration,m.pubID!=null&&(this.pubID=this.stringify.dtdPubID(m.pubID)),m.sysID!=null&&(this.sysID=this.stringify.dtdSysID(m.sysID))}toString(l){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(l))}}return Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),d}).call(this)}).call(l)})),require_XMLDocType=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe;({isObject:oe}=require_Utility()),ae=require_XMLNode(),l=require_NodeType(),f=require_XMLDTDAttList(),te=require_XMLDTDEntity(),m=require_XMLDTDElement(),re=require_XMLDTDNotation(),ie=require_XMLNamedNodeMap(),d.exports=(function(){class d extends ae{constructor(d,f,m){var te,re,ie,ae;if(super(d),this.type=l.DocType,d.children){for(ae=d.children,re=0,ie=ae.length;re<ie;re++)if(te=ae[re],te.type===l.Element){this.name=te.name;break}}this.documentObject=d,oe(f)&&({pubID:f,sysID:m}=f),m??([m,f]=[f,m]),f!=null&&(this.pubID=this.stringify.dtdPubID(f)),m!=null&&(this.sysID=this.stringify.dtdSysID(m))}element(l,d){var f=new m(this,l,d);return this.children.push(f),this}attList(l,d,m,te,re){var ie=new f(this,l,d,m,te,re);return this.children.push(ie),this}entity(l,d){var f=new te(this,!1,l,d);return this.children.push(f),this}pEntity(l,d){var f=new te(this,!0,l,d);return this.children.push(f),this}notation(l,d){var f=new re(this,l,d);return this.children.push(f),this}toString(l){return this.options.writer.docType(this,this.options.writer.filterOptions(l))}ele(l,d){return this.element(l,d)}att(l,d,f,m,te){return this.attList(l,d,f,m,te)}ent(l,d){return this.entity(l,d)}pent(l,d){return this.pEntity(l,d)}not(l,d){return this.notation(l,d)}up(){return this.root()||this.documentObject}isEqualNode(l){return!(!super.isEqualNode(l)||l.name!==this.name||l.publicId!==this.publicId||l.systemId!==this.systemId)}}return Object.defineProperty(d.prototype,"entities",{get:function(){var d,f,m,te={},re=this.children;for(f=0,m=re.length;f<m;f++)d=re[f],d.type===l.EntityDeclaration&&!d.pe&&(te[d.name]=d);return new ie(te)}}),Object.defineProperty(d.prototype,"notations",{get:function(){var d,f,m,te={},re=this.children;for(f=0,m=re.length;f<m;f++)d=re[f],d.type===l.NotationDeclaration&&(te[d.name]=d);return new ie(te)}}),Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(d.prototype,"internalSubset",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),d}).call(this)}).call(l)})),require_XMLRaw=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType(),f=require_XMLNode();d.exports=class extends f{constructor(d,f){if(super(d),f==null)throw Error(`Missing raw text. `+this.debugInfo());this.type=l.Raw,this.value=this.stringify.raw(f)}clone(){return Object.create(this)}toString(l){return this.options.writer.raw(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLText=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType(),f=require_XMLCharacterData();d.exports=(function(){class d extends f{constructor(d,f){if(super(d),f==null)throw Error(`Missing element text. `+this.debugInfo());this.name=`#text`,this.type=l.Text,this.value=this.stringify.text(f)}clone(){return Object.create(this)}toString(l){return this.options.writer.text(this,this.options.writer.filterOptions(l))}splitText(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}replaceWholeText(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}return Object.defineProperty(d.prototype,"isElementContentWhitespace",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(d.prototype,"wholeText",{get:function(){var l,d,f=``;for(d=this.previousSibling;d;)f=d.data+f,d=d.previousSibling;for(f+=this.data,l=this.nextSibling;l;)f+=l.data,l=l.nextSibling;return f}}),d}).call(this)}).call(l)})),require_XMLProcessingInstruction=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType(),f=require_XMLCharacterData();d.exports=class extends f{constructor(d,f,m){if(super(d),f==null)throw Error(`Missing instruction target. `+this.debugInfo());this.type=l.ProcessingInstruction,this.target=this.stringify.insTarget(f),this.name=this.target,m&&(this.value=this.stringify.insValue(m))}clone(){return Object.create(this)}toString(l){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(l))}isEqualNode(l){return!(!super.isEqualNode(l)||l.target!==this.target)}}}).call(l)})),require_XMLDummy=__commonJSMin(((l,d)=>{(function(){var l,f=require_XMLNode();l=require_NodeType(),d.exports=class extends f{constructor(d){super(d),this.type=l.Dummy}clone(){return Object.create(this)}toString(l){return``}}}).call(l)})),require_XMLNodeList=__commonJSMin(((l,d)=>{(function(){d.exports=(function(){class l{constructor(l){this.nodes=l}clone(){return this.nodes=null}item(l){return this.nodes[l]||null}}return Object.defineProperty(l.prototype,"length",{get:function(){return this.nodes.length||0}}),l}).call(this)}).call(l)})),require_DocumentPosition=__commonJSMin(((l,d)=>{(function(){d.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(l)})),require_XMLNode=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he={}.hasOwnProperty,ge=[].splice;({isObject:me,isFunction:pe,isEmpty:fe,getValue:de}=require_Utility()),oe=null,m=null,te=null,re=null,ie=null,le=null,ue=null,ce=null,ae=null,f=null,se=null,l=null,d.exports=(function(){class d{constructor(d){this.parent=d,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,oe||(oe=require_XMLElement(),m=require_XMLCData(),te=require_XMLComment(),re=require_XMLDeclaration(),ie=require_XMLDocType(),le=require_XMLRaw(),ue=require_XMLText(),ce=require_XMLProcessingInstruction(),ae=require_XMLDummy(),f=require_NodeType(),se=require_XMLNodeList(),require_XMLNamedNodeMap(),l=require_DocumentPosition())}setParent(l){var d,f,m,te,re;for(this.parent=l,l&&(this.options=l.options,this.stringify=l.stringify),te=this.children,re=[],f=0,m=te.length;f<m;f++)d=te[f],re.push(d.setParent(this));return re}element(l,d,f){var m,te,re,ie,ae,oe=null,se,ce,le;if(d===null&&f==null&&([d,f]=[{},null]),d??={},d=de(d),me(d)||([f,d]=[d,f]),l!=null&&(l=de(l)),Array.isArray(l))for(re=0,se=l.length;re<se;re++)te=l[re],oe=this.element(te);else if(pe(l))oe=this.element(l.apply());else if(me(l)){for(ae in l)if(he.call(l,ae))if(le=l[ae],pe(le)&&(le=le.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ae.indexOf(this.stringify.convertAttKey)===0)oe=this.attribute(ae.substr(this.stringify.convertAttKey.length),le);else if(!this.options.separateArrayItems&&Array.isArray(le)&&fe(le))oe=this.dummy();else if(me(le)&&fe(le))oe=this.element(ae);else if(!this.options.keepNullNodes&&le==null)oe=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(le))for(ie=0,ce=le.length;ie<ce;ie++)te=le[ie],m={},m[ae]=te,oe=this.element(m);else me(le)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ae.indexOf(this.stringify.convertTextKey)===0?oe=this.element(le):(oe=this.element(ae),oe.element(le)):oe=this.element(ae,le)}else oe=!this.options.keepNullNodes&&f===null?this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&l.indexOf(this.stringify.convertTextKey)===0?this.text(f):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&l.indexOf(this.stringify.convertCDataKey)===0?this.cdata(f):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&l.indexOf(this.stringify.convertCommentKey)===0?this.comment(f):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&l.indexOf(this.stringify.convertRawKey)===0?this.raw(f):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&l.indexOf(this.stringify.convertPIKey)===0?this.instruction(l.substr(this.stringify.convertPIKey.length),f):this.node(l,d,f);if(oe==null)throw Error(`Could not create any elements with: `+l+`. `+this.debugInfo());return oe}insertBefore(l,d,f){var m,te,re,ie,ae;if(l?.type)return re=l,ie=d,re.setParent(this),ie?(te=children.indexOf(ie),ae=children.splice(te),children.push(re),Array.prototype.push.apply(children,ae)):children.push(re),re;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(l));return te=this.parent.children.indexOf(this),ae=this.parent.children.splice(te),m=this.parent.element(l,d,f),Array.prototype.push.apply(this.parent.children,ae),m}insertAfter(l,d,f){var m,te,re;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(l));return te=this.parent.children.indexOf(this),re=this.parent.children.splice(te+1),m=this.parent.element(l,d,f),Array.prototype.push.apply(this.parent.children,re),m}remove(){var l;if(this.isRoot)throw Error(`Cannot remove the root element. `+this.debugInfo());return l=this.parent.children.indexOf(this),ge.apply(this.parent.children,[l,l-l+1]),this.parent}node(l,d,f){var m;return l!=null&&(l=de(l)),d||={},d=de(d),me(d)||([f,d]=[d,f]),m=new oe(this,l,d),f!=null&&m.text(f),this.children.push(m),m}text(l){var d;return me(l)&&this.element(l),d=new ue(this,l),this.children.push(d),this}cdata(l){var d=new m(this,l);return this.children.push(d),this}comment(l){var d=new te(this,l);return this.children.push(d),this}commentBefore(l){var d=this.parent.children.indexOf(this),f=this.parent.children.splice(d);return this.parent.comment(l),Array.prototype.push.apply(this.parent.children,f),this}commentAfter(l){var d=this.parent.children.indexOf(this),f=this.parent.children.splice(d+1);return this.parent.comment(l),Array.prototype.push.apply(this.parent.children,f),this}raw(l){var d=new le(this,l);return this.children.push(d),this}dummy(){return new ae(this)}instruction(l,d){var f,m,te,re,ie;if(l!=null&&(l=de(l)),d!=null&&(d=de(d)),Array.isArray(l))for(re=0,ie=l.length;re<ie;re++)f=l[re],this.instruction(f);else if(me(l))for(f in l)he.call(l,f)&&(m=l[f],this.instruction(f,m));else pe(d)&&(d=d.apply()),te=new ce(this,l,d),this.children.push(te);return this}instructionBefore(l,d){var f=this.parent.children.indexOf(this),m=this.parent.children.splice(f);return this.parent.instruction(l,d),Array.prototype.push.apply(this.parent.children,m),this}instructionAfter(l,d){var f=this.parent.children.indexOf(this),m=this.parent.children.splice(f+1);return this.parent.instruction(l,d),Array.prototype.push.apply(this.parent.children,m),this}declaration(l,d,m){var te=this.document(),ie=new re(te,l,d,m);return te.children.length===0?te.children.unshift(ie):te.children[0].type===f.Declaration?te.children[0]=ie:te.children.unshift(ie),te.root()||te}dtd(l,d){var m,te=this.document(),re=new ie(te,l,d),ae,oe,se,ce,le,ue=te.children,de;for(ae=oe=0,ce=ue.length;oe<ce;ae=++oe)if(m=ue[ae],m.type===f.DocType)return te.children[ae]=re,re;for(de=te.children,ae=se=0,le=de.length;se<le;ae=++se)if(m=de[ae],m.isRoot)return te.children.splice(ae,0,re),re;return te.children.push(re),re}up(){if(this.isRoot)throw Error(`The root node has no parent. Use doc() if you need to get the document object.`);return this.parent}root(){for(var l=this;l;)if(l.type===f.Document)return l.rootObject;else if(l.isRoot)return l;else l=l.parent}document(){for(var l=this;l;)if(l.type===f.Document)return l;else l=l.parent}end(l){return this.document().end(l)}prev(){var l=this.parent.children.indexOf(this);if(l<1)throw Error(`Already at the first node. `+this.debugInfo());return this.parent.children[l-1]}next(){var l=this.parent.children.indexOf(this);if(l===-1||l===this.parent.children.length-1)throw Error(`Already at the last node. `+this.debugInfo());return this.parent.children[l+1]}importDocument(l){var d,m=l.root().clone(),te,re,ie;if(m.parent=this,m.isRoot=!1,this.children.push(m),this.type===f.Document&&(m.isRoot=!0,m.documentObject=this,this.rootObject=m,this.children)){for(ie=this.children,te=0,re=ie.length;te<re;te++)if(d=ie[te],d.type===f.DocType){d.name=m.name;break}}return this}debugInfo(l){var d,f;return l||=this.name,l==null&&!this.parent?.name?``:l==null?`parent: <`+this.parent.name+`>`:this.parent?.name?`node: <`+l+`>, parent: <`+this.parent.name+`>`:`node: <`+l+`>`}ele(l,d,f){return this.element(l,d,f)}nod(l,d,f){return this.node(l,d,f)}txt(l){return this.text(l)}dat(l){return this.cdata(l)}com(l){return this.comment(l)}ins(l,d){return this.instruction(l,d)}doc(){return this.document()}dec(l,d,f){return this.declaration(l,d,f)}e(l,d,f){return this.element(l,d,f)}n(l,d,f){return this.node(l,d,f)}t(l){return this.text(l)}d(l){return this.cdata(l)}c(l){return this.comment(l)}r(l){return this.raw(l)}i(l,d){return this.instruction(l,d)}u(){return this.up()}importXMLBuilder(l){return this.importDocument(l)}attribute(l,d){throw Error(`attribute() applies to element nodes only.`)}att(l,d){return this.attribute(l,d)}a(l,d){return this.attribute(l,d)}removeAttribute(l){throw Error(`attribute() applies to element nodes only.`)}replaceChild(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeChild(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}appendChild(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}normalize(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isSupported(l,d){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(d){var f=this,m;return f===d?0:this.document()===d.document()?f.isAncestor(d)?l.Contains|l.Preceding:f.isDescendant(d)?l.Contains|l.Following:f.isPreceding(d)?l.Preceding:l.Following:(m=l.Disconnected|l.ImplementationSpecific,Math.random()<.5?m|=l.Preceding:m|=l.Following,m)}isSameNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}lookupPrefix(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isDefaultNamespace(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}lookupNamespaceURI(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(l){var d,f,m;if(l.nodeType!==this.nodeType||l.children.length!==this.children.length)return!1;for(d=f=0,m=this.children.length-1;0<=m?f<=m:f>=m;d=0<=m?++f:--f)if(!this.children[d].isEqualNode(l.children[d]))return!1;return!0}getFeature(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setUserData(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getUserData(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}contains(l){return l?l===this||this.isDescendant(l):!1}isDescendant(l){var d,f,m,te,re=this.children;for(m=0,te=re.length;m<te;m++)if(d=re[m],l===d||(f=d.isDescendant(l),f))return!0;return!1}isAncestor(l){return l.isDescendant(this)}isPreceding(l){var d=this.treePosition(l),f=this.treePosition(this);return d===-1||f===-1?!1:d<f}isFollowing(l){var d=this.treePosition(l),f=this.treePosition(this);return d===-1||f===-1?!1:d>f}treePosition(l){var d,f=0;return d=!1,this.foreachTreeNode(this.document(),function(m){if(f++,!d&&m===l)return d=!0}),d?f:-1}foreachTreeNode(l,d){var f,m,te,re,ie;for(l||=this.document(),re=l.children,m=0,te=re.length;m<te;m++)if(f=re[m],(ie=d(f))||(ie=this.foreachTreeNode(f,d),ie))return ie}}return Object.defineProperty(d.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(d.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(d.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(d.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new se(this.children)),this.childNodeList}}),Object.defineProperty(d.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(d.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(d.prototype,"previousSibling",{get:function(){var l=this.parent.children.indexOf(this);return this.parent.children[l-1]||null}}),Object.defineProperty(d.prototype,"nextSibling",{get:function(){var l=this.parent.children.indexOf(this);return this.parent.children[l+1]||null}}),Object.defineProperty(d.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(d.prototype,"textContent",{get:function(){var l,d,m,te,re;if(this.nodeType===f.Element||this.nodeType===f.DocumentFragment){for(re=``,te=this.children,d=0,m=te.length;d<m;d++)l=te[d],l.textContent&&(re+=l.textContent);return re}else return null},set:function(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),d}).call(this)}).call(l)})),require_XMLStringifier=__commonJSMin(((l,d)=>{(function(){var l={}.hasOwnProperty;d.exports=(function(){class d{constructor(d){var f,m,te;for(f in this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),d||={},this.options=d,this.options.version||(this.options.version=`1.0`),m=d.stringify||{},m)l.call(m,f)&&(te=m[f],this[f]=te)}name(l){return this.options.noValidation?l:this.assertLegalName(``+l||``)}text(l){return this.options.noValidation?l:this.assertLegalChar(this.textEscape(``+l||``))}cdata(l){return this.options.noValidation?l:(l=``+l||``,l=l.replace(`]]>`,`]]]]><![CDATA[>`),this.assertLegalChar(l))}comment(l){if(this.options.noValidation)return l;if(l=``+l||``,l.match(/--/))throw Error(`Comment text cannot contain double-hypen: `+l);return this.assertLegalChar(l)}raw(l){return this.options.noValidation?l:``+l||``}attValue(l){return this.options.noValidation?l:this.assertLegalChar(this.attEscape(l=``+l||``))}insTarget(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}insValue(l){if(this.options.noValidation)return l;if(l=``+l||``,l.match(/\?>/))throw Error(`Invalid processing instruction value: `+l);return this.assertLegalChar(l)}xmlVersion(l){if(this.options.noValidation)return l;if(l=``+l||``,!l.match(/1\.[0-9]+/))throw Error(`Invalid version number: `+l);return l}xmlEncoding(l){if(this.options.noValidation)return l;if(l=``+l||``,!l.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error(`Invalid encoding: `+l);return this.assertLegalChar(l)}xmlStandalone(l){return this.options.noValidation?l:l?`yes`:`no`}dtdPubID(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdSysID(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdElementValue(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdAttType(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdAttDefault(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdEntityValue(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdNData(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}assertLegalChar(l){var d,f;if(this.options.noValidation)return l;if(this.options.version===`1.0`){if(d=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)l=l.replace(d,this.options.invalidCharReplacement);else if(f=l.match(d))throw Error(`Invalid character in string: ${l} at index ${f.index}`)}else if(this.options.version===`1.1`){if(d=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)l=l.replace(d,this.options.invalidCharReplacement);else if(f=l.match(d))throw Error(`Invalid character in string: ${l} at index ${f.index}`)}return l}assertLegalName(l){var d;if(this.options.noValidation)return l;if(l=this.assertLegalChar(l),d=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!l.match(d))throw Error(`Invalid character in name: ${l}`);return l}textEscape(l){var d;return this.options.noValidation?l:(d=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,l.replace(d,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/\r/g,`&#xD;`))}attEscape(l){var d;return this.options.noValidation?l:(d=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,l.replace(d,`&amp;`).replace(/</g,`&lt;`).replace(/"/g,`&quot;`).replace(/\t/g,`&#x9;`).replace(/\n/g,`&#xA;`).replace(/\r/g,`&#xD;`))}}return d.prototype.convertAttKey=`@`,d.prototype.convertPIKey=`?`,d.prototype.convertTextKey=`#text`,d.prototype.convertCDataKey=`#cdata`,d.prototype.convertCommentKey=`#comment`,d.prototype.convertRawKey=`#raw`,d}).call(this)}).call(l)})),require_WriterState=__commonJSMin(((l,d)=>{(function(){d.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(l)})),require_XMLWriterBase=__commonJSMin(((l,d)=>{(function(){var l,f,m,te={}.hasOwnProperty;({assign:m}=require_Utility()),l=require_NodeType(),require_XMLDeclaration(),require_XMLDocType(),require_XMLCData(),require_XMLComment(),require_XMLElement(),require_XMLRaw(),require_XMLText(),require_XMLProcessingInstruction(),require_XMLDummy(),require_XMLDTDAttList(),require_XMLDTDElement(),require_XMLDTDEntity(),require_XMLDTDNotation(),f=require_WriterState(),d.exports=class{constructor(l){var d,f,m;for(d in l||={},this.options=l,f=l.writer||{},f)te.call(f,d)&&(m=f[d],this[`_`+d]=this[d],this[d]=m)}filterOptions(l){var d,te,re,ie,ae,oe,se,ce,le;return l||={},l=m({},this.options,l),d={writer:this},d.pretty=l.pretty||!1,d.allowEmpty=l.allowEmpty||!1,d.indent=l.indent??` `,d.newline=l.newline??`
45946
+ `,d.offset=l.offset??0,d.width=l.width??0,d.dontPrettyTextNodes=l.dontPrettyTextNodes??l.dontprettytextnodes??0,d.spaceBeforeSlash=l.spaceBeforeSlash??l.spacebeforeslash??``,d.spaceBeforeSlash===!0&&(d.spaceBeforeSlash=` `),d.suppressPrettyCount=0,d.user={},d.state=f.None,d}indent(l,d,f){var m;return!d.pretty||d.suppressPrettyCount?``:d.pretty&&(m=(f||0)+d.offset+1,m>0)?Array(m).join(d.indent):``}endline(l,d,f){return!d.pretty||d.suppressPrettyCount?``:d.newline}attribute(l,d,f){var m;return this.openAttribute(l,d,f),m=d.pretty&&d.width>0?l.name+`="`+l.value+`"`:` `+l.name+`="`+l.value+`"`,this.closeAttribute(l,d,f),m}cdata(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<![CDATA[`,d.state=f.InsideTag,te+=l.value,d.state=f.CloseTag,te+=`]]>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}comment(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!-- `,d.state=f.InsideTag,te+=l.value,d.state=f.CloseTag,te+=` -->`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}declaration(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<?xml`,d.state=f.InsideTag,te+=` version="`+l.version+`"`,l.encoding!=null&&(te+=` encoding="`+l.encoding+`"`),l.standalone!=null&&(te+=` standalone="`+l.standalone+`"`),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`?>`,te+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}docType(l,d,m){var te,re,ie,ae,oe;if(m||=0,this.openNode(l,d,m),d.state=f.OpenTag,ae=this.indent(l,d,m),ae+=`<!DOCTYPE `+l.root().name,l.pubID&&l.sysID?ae+=` PUBLIC "`+l.pubID+`" "`+l.sysID+`"`:l.sysID&&(ae+=` SYSTEM "`+l.sysID+`"`),l.children.length>0){for(ae+=` [`,ae+=this.endline(l,d,m),d.state=f.InsideTag,oe=l.children,re=0,ie=oe.length;re<ie;re++)te=oe[re],ae+=this.writeChildNode(te,d,m+1);d.state=f.CloseTag,ae+=`]`}return d.state=f.CloseTag,ae+=d.spaceBeforeSlash+`>`,ae+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),ae}element(d,m,re){var ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se;if(re||=0,he=!1,this.openNode(d,m,re),m.state=f.OpenTag,ge=this.indent(d,m,re)+`<`+d.name,m.pretty&&m.width>0)for(me in de=ge.length,ve=d.attribs,ve)te.call(ve,me)&&(ie=ve[me],_e=this.attribute(ie,m,re),ae=_e.length,de+ae>m.width?(Se=this.indent(d,m,re+1)+_e,ge+=this.endline(d,m,re)+Se,de=Se.length):(Se=` `+_e,ge+=Se,de+=Se.length));else for(me in ye=d.attribs,ye)te.call(ye,me)&&(ie=ye[me],ge+=this.attribute(ie,m,re));if(se=d.children.length,ce=se===0?null:d.children[0],se===0||d.children.every(function(d){return(d.type===l.Text||d.type===l.Raw||d.type===l.CData)&&d.value===``}))m.allowEmpty?(ge+=`>`,m.state=f.CloseTag,ge+=`</`+d.name+`>`+this.endline(d,m,re)):(m.state=f.CloseTag,ge+=m.spaceBeforeSlash+`/>`+this.endline(d,m,re));else if(m.pretty&&se===1&&(ce.type===l.Text||ce.type===l.Raw||ce.type===l.CData)&&ce.value!=null)ge+=`>`,m.state=f.InsideTag,m.suppressPrettyCount++,he=!0,ge+=this.writeChildNode(ce,m,re+1),m.suppressPrettyCount--,he=!1,m.state=f.CloseTag,ge+=`</`+d.name+`>`+this.endline(d,m,re);else{if(m.dontPrettyTextNodes){for(be=d.children,le=0,fe=be.length;le<fe;le++)if(oe=be[le],(oe.type===l.Text||oe.type===l.Raw||oe.type===l.CData)&&oe.value!=null){m.suppressPrettyCount++,he=!0;break}}for(ge+=`>`+this.endline(d,m,re),m.state=f.InsideTag,xe=d.children,ue=0,pe=xe.length;ue<pe;ue++)oe=xe[ue],ge+=this.writeChildNode(oe,m,re+1);m.state=f.CloseTag,ge+=this.indent(d,m,re)+`</`+d.name+`>`,he&&m.suppressPrettyCount--,ge+=this.endline(d,m,re),m.state=f.None}return this.closeNode(d,m,re),ge}writeChildNode(d,f,m){switch(d.type){case l.CData:return this.cdata(d,f,m);case l.Comment:return this.comment(d,f,m);case l.Element:return this.element(d,f,m);case l.Raw:return this.raw(d,f,m);case l.Text:return this.text(d,f,m);case l.ProcessingInstruction:return this.processingInstruction(d,f,m);case l.Dummy:return``;case l.Declaration:return this.declaration(d,f,m);case l.DocType:return this.docType(d,f,m);case l.AttributeDeclaration:return this.dtdAttList(d,f,m);case l.ElementDeclaration:return this.dtdElement(d,f,m);case l.EntityDeclaration:return this.dtdEntity(d,f,m);case l.NotationDeclaration:return this.dtdNotation(d,f,m);default:throw Error(`Unknown XML node type: `+d.constructor.name)}}processingInstruction(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<?`,d.state=f.InsideTag,te+=l.target,l.value&&(te+=` `+l.value),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`?>`,te+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}raw(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m),d.state=f.InsideTag,te+=l.value,d.state=f.CloseTag,te+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}text(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m),d.state=f.InsideTag,te+=l.value,d.state=f.CloseTag,te+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}dtdAttList(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!ATTLIST`,d.state=f.InsideTag,te+=` `+l.elementName+` `+l.attributeName+` `+l.attributeType,l.defaultValueType!==`#DEFAULT`&&(te+=` `+l.defaultValueType),l.defaultValue&&(te+=` "`+l.defaultValue+`"`),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}dtdElement(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!ELEMENT`,d.state=f.InsideTag,te+=` `+l.name+` `+l.value,d.state=f.CloseTag,te+=d.spaceBeforeSlash+`>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}dtdEntity(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!ENTITY`,d.state=f.InsideTag,l.pe&&(te+=` %`),te+=` `+l.name,l.value?te+=` "`+l.value+`"`:(l.pubID&&l.sysID?te+=` PUBLIC "`+l.pubID+`" "`+l.sysID+`"`:l.sysID&&(te+=` SYSTEM "`+l.sysID+`"`),l.nData&&(te+=` NDATA `+l.nData)),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}dtdNotation(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!NOTATION`,d.state=f.InsideTag,te+=` `+l.name,l.pubID&&l.sysID?te+=` PUBLIC "`+l.pubID+`" "`+l.sysID+`"`:l.pubID?te+=` PUBLIC "`+l.pubID+`"`:l.sysID&&(te+=` SYSTEM "`+l.sysID+`"`),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}openNode(l,d,f){}closeNode(l,d,f){}openAttribute(l,d,f){}closeAttribute(l,d,f){}}}).call(l)})),require_XMLStringWriter=__commonJSMin(((l,d)=>{(function(){var l=require_XMLWriterBase();d.exports=class extends l{constructor(l){super(l)}document(l,d){var f,m,te,re,ie;for(d=this.filterOptions(d),re=``,ie=l.children,m=0,te=ie.length;m<te;m++)f=ie[m],re+=this.writeChildNode(f,d,0);return d.pretty&&re.slice(-d.newline.length)===d.newline&&(re=re.slice(0,-d.newline.length)),re}}}).call(l)})),require_XMLDocument=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae;({isPlainObject:ae}=require_Utility()),m=require_XMLDOMImplementation(),f=require_XMLDOMConfiguration(),te=require_XMLNode(),l=require_NodeType(),ie=require_XMLStringifier(),re=require_XMLStringWriter(),d.exports=(function(){class d extends te{constructor(d){super(null),this.name=`#document`,this.type=l.Document,this.documentURI=null,this.domConfig=new f,d||={},d.writer||=new re,this.options=d,this.stringify=new ie(d)}end(l){var d={};return l?ae(l)&&(d=l,l=this.options.writer):l=this.options.writer,l.document(this,l.filterOptions(d))}toString(l){return this.options.writer.document(this,this.options.writer.filterOptions(l))}createElement(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createDocumentFragment(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createTextNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createComment(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createCDATASection(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createProcessingInstruction(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createAttribute(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createEntityReference(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}importNode(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createElementNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createAttributeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementById(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}adoptNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}normalizeDocument(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}renameNode(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByClassName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createEvent(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createRange(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createNodeIterator(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createTreeWalker(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}return Object.defineProperty(d.prototype,"implementation",{value:new m}),Object.defineProperty(d.prototype,"doctype",{get:function(){var d,f,m,te=this.children;for(f=0,m=te.length;f<m;f++)if(d=te[f],d.type===l.DocType)return d;return null}}),Object.defineProperty(d.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(d.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(d.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===l.Declaration?this.children[0].encoding:null}}),Object.defineProperty(d.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===l.Declaration?this.children[0].standalone===`yes`:!1}}),Object.defineProperty(d.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===l.Declaration?this.children[0].version:`1.0`}}),Object.defineProperty(d.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(d.prototype,"origin",{get:function(){return null}}),Object.defineProperty(d.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(d.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(d.prototype,"contentType",{get:function(){return null}}),d}).call(this)}).call(l)})),require_XMLDocumentCB=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe={}.hasOwnProperty;({isObject:ye,isFunction:ve,isPlainObject:be,getValue:_e}=require_Utility()),l=require_NodeType(),ue=require_XMLDocument(),de=require_XMLElement(),te=require_XMLCData(),re=require_XMLComment(),pe=require_XMLRaw(),ge=require_XMLText(),fe=require_XMLProcessingInstruction(),ce=require_XMLDeclaration(),le=require_XMLDocType(),ie=require_XMLDTDAttList(),oe=require_XMLDTDEntity(),ae=require_XMLDTDElement(),se=require_XMLDTDNotation(),m=require_XMLAttribute(),he=require_XMLStringifier(),me=require_XMLStringWriter(),f=require_WriterState(),d.exports=class{constructor(d,f,m){var te;this.name=`?xml`,this.type=l.Document,d||={},te={},d.writer?be(d.writer)&&(te=d.writer,d.writer=new me):d.writer=new me,this.options=d,this.writer=d.writer,this.writerOptions=this.writer.filterOptions(te),this.stringify=new he(d),this.onDataCallback=f||function(){},this.onEndCallback=m||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(d){var f,m,te,re,ie,ae,oe,se;switch(d.type){case l.CData:this.cdata(d.value);break;case l.Comment:this.comment(d.value);break;case l.Element:for(m in te={},oe=d.attribs,oe)xe.call(oe,m)&&(f=oe[m],te[m]=f.value);this.node(d.name,te);break;case l.Dummy:this.dummy();break;case l.Raw:this.raw(d.value);break;case l.Text:this.text(d.value);break;case l.ProcessingInstruction:this.instruction(d.target,d.value);break;default:throw Error(`This XML node type is not supported in a JS object: `+d.constructor.name)}for(se=d.children,ie=0,ae=se.length;ie<ae;ie++)re=se[ie],this.createChildNode(re),re.type===l.Element&&this.up();return this}dummy(){return this}node(l,d,f){if(l==null)throw Error(`Missing node name.`);if(this.root&&this.currentLevel===-1)throw Error(`Document can only have one root node. `+this.debugInfo(l));return this.openCurrent(),l=_e(l),d??={},d=_e(d),ye(d)||([f,d]=[d,f]),this.currentNode=new de(this,l,d),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,f!=null&&this.text(f),this}element(d,f,m){var te,re,ie,ae,oe,se;if(this.currentNode&&this.currentNode.type===l.DocType)this.dtdElement(...arguments);else if(Array.isArray(d)||ye(d)||ve(d))for(ae=this.options.noValidation,this.options.noValidation=!0,se=new ue(this.options).element(`TEMP_ROOT`),se.element(d),this.options.noValidation=ae,oe=se.children,re=0,ie=oe.length;re<ie;re++)te=oe[re],this.createChildNode(te),te.type===l.Element&&this.up();else this.node(d,f,m);return this}attribute(l,d){var f,te;if(!this.currentNode||this.currentNode.children)throw Error(`att() can only be used immediately after an ele() call in callback mode. `+this.debugInfo(l));if(l!=null&&(l=_e(l)),ye(l))for(f in l)xe.call(l,f)&&(te=l[f],this.attribute(f,te));else ve(d)&&(d=d.apply()),this.options.keepNullAttributes&&d==null?this.currentNode.attribs[l]=new m(this,l,``):d!=null&&(this.currentNode.attribs[l]=new m(this,l,d));return this}text(l){var d;return this.openCurrent(),d=new ge(this,l),this.onData(this.writer.text(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(l){var d;return this.openCurrent(),d=new te(this,l),this.onData(this.writer.cdata(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(l){var d;return this.openCurrent(),d=new re(this,l),this.onData(this.writer.comment(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(l){var d;return this.openCurrent(),d=new pe(this,l),this.onData(this.writer.raw(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(l,d){var f,m,te,re,ie;if(this.openCurrent(),l!=null&&(l=_e(l)),d!=null&&(d=_e(d)),Array.isArray(l))for(f=0,re=l.length;f<re;f++)m=l[f],this.instruction(m);else if(ye(l))for(m in l)xe.call(l,m)&&(te=l[m],this.instruction(m,te));else ve(d)&&(d=d.apply()),ie=new fe(this,l,d),this.onData(this.writer.processingInstruction(ie,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(l,d,f){var m;if(this.openCurrent(),this.documentStarted)throw Error(`declaration() must be the first node.`);return m=new ce(this,l,d,f),this.onData(this.writer.declaration(m,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(l,d,f){if(this.openCurrent(),l==null)throw Error(`Missing root node name.`);if(this.root)throw Error(`dtd() must come before the root node.`);return this.currentNode=new le(this,d,f),this.currentNode.rootNodeName=l,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(l,d){var f;return this.openCurrent(),f=new ae(this,l,d),this.onData(this.writer.dtdElement(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(l,d,f,m,te){var re;return this.openCurrent(),re=new ie(this,l,d,f,m,te),this.onData(this.writer.dtdAttList(re,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(l,d){var f;return this.openCurrent(),f=new oe(this,!1,l,d),this.onData(this.writer.dtdEntity(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(l,d){var f;return this.openCurrent(),f=new oe(this,!0,l,d),this.onData(this.writer.dtdEntity(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(l,d){var f;return this.openCurrent(),f=new se(this,l,d),this.onData(this.writer.dtdNotation(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw Error(`The document node has no parent.`);return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(d){var m,te,re,ie;if(!d.isOpen){if(!this.root&&this.currentLevel===0&&d.type===l.Element&&(this.root=d),te=``,d.type===l.Element){for(re in this.writerOptions.state=f.OpenTag,te=this.writer.indent(d,this.writerOptions,this.currentLevel)+`<`+d.name,ie=d.attribs,ie)xe.call(ie,re)&&(m=ie[re],te+=this.writer.attribute(m,this.writerOptions,this.currentLevel));te+=(d.children?`>`:`/>`)+this.writer.endline(d,this.writerOptions,this.currentLevel),this.writerOptions.state=f.InsideTag}else this.writerOptions.state=f.OpenTag,te=this.writer.indent(d,this.writerOptions,this.currentLevel)+`<!DOCTYPE `+d.rootNodeName,d.pubID&&d.sysID?te+=` PUBLIC "`+d.pubID+`" "`+d.sysID+`"`:d.sysID&&(te+=` SYSTEM "`+d.sysID+`"`),d.children?(te+=` [`,this.writerOptions.state=f.InsideTag):(this.writerOptions.state=f.CloseTag,te+=`>`),te+=this.writer.endline(d,this.writerOptions,this.currentLevel);return this.onData(te,this.currentLevel),d.isOpen=!0}}closeNode(d){var m;if(!d.isClosed)return m=``,this.writerOptions.state=f.CloseTag,m=d.type===l.Element?this.writer.indent(d,this.writerOptions,this.currentLevel)+`</`+d.name+`>`+this.writer.endline(d,this.writerOptions,this.currentLevel):this.writer.indent(d,this.writerOptions,this.currentLevel)+`]>`+this.writer.endline(d,this.writerOptions,this.currentLevel),this.writerOptions.state=f.None,this.onData(m,this.currentLevel),d.isClosed=!0}onData(l,d){return this.documentStarted=!0,this.onDataCallback(l,d+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(l){return l==null?``:`node: <`+l+`>`}ele(){return this.element(...arguments)}nod(l,d,f){return this.node(l,d,f)}txt(l){return this.text(l)}dat(l){return this.cdata(l)}com(l){return this.comment(l)}ins(l,d){return this.instruction(l,d)}dec(l,d,f){return this.declaration(l,d,f)}dtd(l,d,f){return this.doctype(l,d,f)}e(l,d,f){return this.element(l,d,f)}n(l,d,f){return this.node(l,d,f)}t(l){return this.text(l)}d(l){return this.cdata(l)}c(l){return this.comment(l)}r(l){return this.raw(l)}i(l,d){return this.instruction(l,d)}att(){return this.currentNode&&this.currentNode.type===l.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===l.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(l,d){return this.entity(l,d)}pent(l,d){return this.pEntity(l,d)}not(l,d){return this.notation(l,d)}}}).call(l)})),require_XMLStreamWriter=__commonJSMin(((l,d)=>{(function(){var l,f,m,te={}.hasOwnProperty;l=require_NodeType(),m=require_XMLWriterBase(),f=require_WriterState(),d.exports=class extends m{constructor(l,d){super(d),this.stream=l}endline(l,d,m){return l.isLastRootNode&&d.state===f.CloseTag?``:super.endline(l,d,m)}document(l,d){var f,m,te,re,ie,ae,oe=l.children,se,ce;for(m=te=0,ie=oe.length;te<ie;m=++te)f=oe[m],f.isLastRootNode=m===l.children.length-1;for(d=this.filterOptions(d),se=l.children,ce=[],re=0,ae=se.length;re<ae;re++)f=se[re],ce.push(this.writeChildNode(f,d,0));return ce}cdata(l,d,f){return this.stream.write(super.cdata(l,d,f))}comment(l,d,f){return this.stream.write(super.comment(l,d,f))}declaration(l,d,f){return this.stream.write(super.declaration(l,d,f))}docType(l,d,m){var te,re,ie,ae;if(m||=0,this.openNode(l,d,m),d.state=f.OpenTag,this.stream.write(this.indent(l,d,m)),this.stream.write(`<!DOCTYPE `+l.root().name),l.pubID&&l.sysID?this.stream.write(` PUBLIC "`+l.pubID+`" "`+l.sysID+`"`):l.sysID&&this.stream.write(` SYSTEM "`+l.sysID+`"`),l.children.length>0){for(this.stream.write(` [`),this.stream.write(this.endline(l,d,m)),d.state=f.InsideTag,ae=l.children,re=0,ie=ae.length;re<ie;re++)te=ae[re],this.writeChildNode(te,d,m+1);d.state=f.CloseTag,this.stream.write(`]`)}return d.state=f.CloseTag,this.stream.write(d.spaceBeforeSlash+`>`),this.stream.write(this.endline(l,d,m)),d.state=f.None,this.closeNode(l,d,m)}element(d,m,re){var ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve;if(re||=0,this.openNode(d,m,re),m.state=f.OpenTag,pe=this.indent(d,m,re)+`<`+d.name,m.pretty&&m.width>0)for(fe in ue=pe.length,he=d.attribs,he)te.call(he,fe)&&(ie=he[fe],me=this.attribute(ie,m,re),ae=me.length,ue+ae>m.width?(ve=this.indent(d,m,re+1)+me,pe+=this.endline(d,m,re)+ve,ue=ve.length):(ve=` `+me,pe+=ve,ue+=ve.length));else for(fe in ge=d.attribs,ge)te.call(ge,fe)&&(ie=ge[fe],pe+=this.attribute(ie,m,re));if(this.stream.write(pe),se=d.children.length,ce=se===0?null:d.children[0],se===0||d.children.every(function(d){return(d.type===l.Text||d.type===l.Raw||d.type===l.CData)&&d.value===``}))m.allowEmpty?(this.stream.write(`>`),m.state=f.CloseTag,this.stream.write(`</`+d.name+`>`)):(m.state=f.CloseTag,this.stream.write(m.spaceBeforeSlash+`/>`));else if(m.pretty&&se===1&&(ce.type===l.Text||ce.type===l.Raw||ce.type===l.CData)&&ce.value!=null)this.stream.write(`>`),m.state=f.InsideTag,m.suppressPrettyCount++,this.writeChildNode(ce,m,re+1),m.suppressPrettyCount--,m.state=f.CloseTag,this.stream.write(`</`+d.name+`>`);else{for(this.stream.write(`>`+this.endline(d,m,re)),m.state=f.InsideTag,_e=d.children,le=0,de=_e.length;le<de;le++)oe=_e[le],this.writeChildNode(oe,m,re+1);m.state=f.CloseTag,this.stream.write(this.indent(d,m,re)+`</`+d.name+`>`)}return this.stream.write(this.endline(d,m,re)),m.state=f.None,this.closeNode(d,m,re)}processingInstruction(l,d,f){return this.stream.write(super.processingInstruction(l,d,f))}raw(l,d,f){return this.stream.write(super.raw(l,d,f))}text(l,d,f){return this.stream.write(super.text(l,d,f))}dtdAttList(l,d,f){return this.stream.write(super.dtdAttList(l,d,f))}dtdElement(l,d,f){return this.stream.write(super.dtdElement(l,d,f))}dtdEntity(l,d,f){return this.stream.write(super.dtdEntity(l,d,f))}dtdNotation(l,d,f){return this.stream.write(super.dtdNotation(l,d,f))}}}).call(l)})),require_lib$1=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe,se;({assign:oe,isFunction:se}=require_Utility()),m=require_XMLDOMImplementation(),te=require_XMLDocument(),re=require_XMLDocumentCB(),ae=require_XMLStringWriter(),ie=require_XMLStreamWriter(),l=require_NodeType(),f=require_WriterState(),d.exports.create=function(l,d,f,m){var re,ie;if(l==null)throw Error(`Root element needs a name.`);return m=oe({},d,f,m),re=new te(m),ie=re.element(l),m.headless||(re.declaration(m),(m.pubID!=null||m.sysID!=null)&&re.dtd(m)),ie},d.exports.begin=function(l,d,f){return se(l)&&([d,f]=[l,d],l={}),d?new re(l,d,f):new te(l)},d.exports.stringWriter=function(l){return new ae(l)},d.exports.streamWriter=function(l,d){return new ie(l,d)},d.exports.implementation=new m,d.exports.nodeType=l,d.exports.writerState=f}).call(l)})),import_lib=__toESM(require_lib$1(),1);const COPYRIGHT_YEAR_REGEX$1=/(?:©|\(c\)|copyright)\s*(\d{4})/i,COPYRIGHT_HOLDER_REGEX$1=/(?:©|\(c\)|copyright)\s*\d{4}\s*(.+)/i,ALL_RIGHTS_RESERVED_REGEX$1=/\.\s*all\s+rights\s+reserved\.?/i,TRAILING_PUNCTUATION_REGEX$1=/[.,;]+$/,PROCESSOR_ARCH_REGEX=/^(?:arm|x86|i386)/i,infoPlistSchema=object({applicationCategory:nonEmptyString,author:nonEmptyString,authorEmail:nonEmptyString,copyrightHolder:nonEmptyString,copyrightYear:nonEmptyString,description:nonEmptyString,identifier:nonEmptyString,name:nonEmptyString,operatingSystems:stringArray,processorRequirements:stringArray,url:optionalUrl,version:nonEmptyString}),XCODE_VARIABLE_RE$1=/\$[({][^)}]+[)}]/,XML_COMMENT_RE=/<!--[\s\S]*?-->/g,PLATFORM_NAME_MAP={appletvos:`tvOS`,appletvsimulator:`tvOS`,iphoneos:`iOS`,iphonesimulator:`iOS`,macosx:`macOS`,watchos:`watchOS`,watchsimulator:`watchOS`,xros:`visionOS`};function parse$1(l){let d=tryParsePlist(l)??tryParsePlist(l.replaceAll(XML_COMMENT_RE,``).trimStart());if(!d)return;let f=getString(d,`CFBundleDisplayName`)??getString(d,`CFBundleName`)??getString(d,`name`),m=getString(d,`description`),te=getString(d,`CFBundleShortVersionString`)??getString(d,`version`)??getString(d,`CFBundleVersion`),re=getString(d,`CFBundleIdentifier`)??getString(d,`bundleid`),{copyrightHolder:ie,copyrightYear:ae}=parseCopyright(d),oe=getString(d,`createdby`)??getString(d,`contactName`),se=getString(d,`contactEmailRot13`),ce=se?rot13(se):void 0,le=getString(d,`webaddress`),ue=parseApplicationCategory(d);return infoPlistSchema.parse({applicationCategory:ue,author:oe,authorEmail:ce,copyrightHolder:ie,copyrightYear:ae,description:m,identifier:re,name:f,operatingSystems:parseOperatingSystems$1(d),processorRequirements:parseProcessorRequirements(d),url:le,version:te})}function tryParsePlist(l){try{let d=parse$2(l);return is.plainObject(d)?d:void 0}catch{return}}function getString(l,d){let f=l[d];if(typeof f!=`string`)return;let m=f.trim();if(m.length!==0&&!XCODE_VARIABLE_RE$1.test(m))return m}function rot13(l){return l.replaceAll(/[a-z]/gi,l=>{let d=l<=`Z`?65:97;return String.fromCodePoint((l.codePointAt(0)-d+13)%26+d)})}function humanizeCategory(l){return l.startsWith(`public.app-category.`)?l.slice(20).split(`-`).map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join(` `):l}function parseApplicationCategory(l){let d=getString(l,`LSApplicationCategoryType`);if(d)return humanizeCategory(d)}function parseCopyright(l){let d=getString(l,`NSHumanReadableCopyright`)??getString(l,`CFBundleGetInfoString`);if(!d)return{};let f=COPYRIGHT_YEAR_REGEX$1.exec(d)?.[1],m=COPYRIGHT_HOLDER_REGEX$1.exec(d),te;return m&&(te=m[1].replace(ALL_RIGHTS_RESERVED_REGEX$1,``).replace(TRAILING_PUNCTUATION_REGEX$1,``).trim(),te.length===0&&(te=void 0)),{copyrightHolder:te,copyrightYear:f}}function parseOperatingSystems$1(l){let d=[],f=new Set;function m(l){f.has(l)||(f.add(l),d.push(l))}let te=getString(l,`LSMinimumSystemVersion`);te&&m(`macOS >= ${te}`);let re=getString(l,`MinimumOSVersion`);if(re&&m(`iOS >= ${re}`),d.length>0)return d;let ie=getString(l,`DTPlatformName`);if(ie){let l=PLATFORM_NAME_MAP[ie.toLowerCase()];l&&m(l)}let ae=l.CFBundleSupportedPlatforms;if(Array.isArray(ae)){for(let l of ae)if(typeof l==`string`){let d=PLATFORM_NAME_MAP[l.toLowerCase()];d&&m(d)}}return l.LSRequiresIPhoneOS===!0&&!f.has(`iOS`)&&m(`iOS`),d}function parseProcessorRequirements(l){let d=l.UIRequiredDeviceCapabilities;if(!Array.isArray(d))return[];let f=[];for(let l of d)typeof l==`string`&&PROCESSOR_ARCH_REGEX.test(l)&&f.push(l);return f}const xcodeInfoPlistSource=defineSource({async discover(l){return getMatches(l.options,[`Info.plist`])},key:`xcodeInfoPlist`,async parse(l,d){let f=parse$1(await readFile(resolve$1(d.options.path,l),`utf8`));if(f!==void 0)return{data:f,source:l}},phase:1});var require_constants=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.PROJECT_DEFAULT_BUILD_SETTINGS=l.SOURCETREE_BY_FILETYPE=l.PRODUCT_UTI_EXTENSIONS=l.FILE_TYPES_BY_EXTENSION=l.LAST_SWIFT_UPGRADE_CHECK=l.LAST_UPGRADE_CHECK=l.LAST_KNOWN_OBJECT_VERSION=l.DEFAULT_OBJECT_VERSION=l.LAST_KNOWN_SWIFT_VERSION=l.LAST_KNOWN_ARCHIVE_VERSION=l.LAST_KNOWN_WATCHOS_SDK=l.LAST_KNOWN_VISIONOS_SDK=l.LAST_KNOWN_TVOS_SDK=l.LAST_KNOWN_OSX_SDK=l.LAST_KNOWN_IOS_SDK=void 0,l.LAST_KNOWN_IOS_SDK=`18.0`,l.LAST_KNOWN_OSX_SDK=`15.0`,l.LAST_KNOWN_TVOS_SDK=`18.0`,l.LAST_KNOWN_VISIONOS_SDK=`2.0`,l.LAST_KNOWN_WATCHOS_SDK=`11.0`,l.LAST_KNOWN_ARCHIVE_VERSION=1,l.LAST_KNOWN_SWIFT_VERSION=`5.0`,l.DEFAULT_OBJECT_VERSION=46,l.LAST_KNOWN_OBJECT_VERSION=77,l.LAST_UPGRADE_CHECK=`1600`,l.LAST_SWIFT_UPGRADE_CHECK=`1600`,l.FILE_TYPES_BY_EXTENSION=Object.freeze({1:`text.man`,C:`sourcecode.cpp.cpp`,H:`sourcecode.cpp.h`,M:`sourcecode.cpp.objcpp`,a:`archive.ar`,ada:`sourcecode.ada`,adb:`sourcecode.ada`,ads:`sourcecode.ada`,aiff:`audio.aiff`,air:`compiled.air`,apinotes:`text.apinotes`,apns:`text`,app:`wrapper.application`,appex:`wrapper.app-extension`,applescript:`sourcecode.applescript`,archivingdescription:`text.xml.ibArchivingDescription`,asdictionary:`archive.asdictionary`,asm:`sourcecode.asm.asm`,atlas:`folder.skatlas`,au:`audio.au`,avi:`video.avi`,bazel:`text.script.python`,bin:`archive.macbinary`,bmp:`image.bmp`,bundle:`wrapper.cfbundle`,bzl:`text.script.python`,c:`sourcecode.c.c`,"c++":`sourcecode.cpp.cpp`,cc:`sourcecode.cpp.cpp`,cdda:`audio.aiff`,cl:`sourcecode.opencl`,class:`compiled.javaclass`,classdescription:`text.plist.ibClassDescription`,classdescriptions:`text.plist.ibClassDescription`,clp:`sourcecode.clips`,cp:`sourcecode.cpp.cpp`,cpp:`sourcecode.cpp.cpp`,csh:`text.script.csh`,css:`text.css`,ctrl:`sourcecode.glsl`,cxx:`sourcecode.cpp.cpp`,d:`sourcecode.dtrace`,dSYM:`wrapper.dsym`,dae:`text.xml.dae`,defs:`sourcecode.mig`,dext:`wrapper.driver-extension`,dict:`text.plist`,docc:`folder.documentationcatalog`,dsym:`wrapper.dsym`,dtd:`text.xml`,dylan:`sourcecode.dylan`,dylib:`compiled.mach-o.dylib`,ear:`archive.ear`,entitlements:`text.plist.entitlements`,eval:`sourcecode.glsl`,exp:`sourcecode.exports`,f:`sourcecode.fortran`,f77:`sourcecode.fortran.f77`,f90:`sourcecode.fortran.f90`,f95:`sourcecode.fortran.f90`,for:`sourcecode.fortran`,frag:`sourcecode.glsl`,fragment:`sourcecode.glsl`,framework:`wrapper.framework`,fs:`sourcecode.glsl`,fsh:`sourcecode.glsl`,geom:`sourcecode.glsl`,geometry:`sourcecode.glsl`,gif:`image.gif`,gmk:`sourcecode.make`,gpx:`text.xml`,gs:`sourcecode.glsl`,gsh:`sourcecode.glsl`,gz:`archive.gzip`,h:`sourcecode.c.h`,"h++":`sourcecode.cpp.h`,hh:`sourcecode.cpp.h`,hp:`sourcecode.cpp.h`,hpp:`sourcecode.cpp.h`,hqx:`archive.binhex`,htm:`text.html`,html:`text.html`,htmld:`wrapper.htmld`,hxx:`sourcecode.cpp.h`,i:`sourcecode.c.c.preprocessed`,icns:`image.icns`,ico:`image.ico`,iconset:`folder.iconset`,ii:`sourcecode.cpp.cpp.preprocessed`,iig:`sourcecode.iig`,imagecatalog:`folder.imagecatalog`,inc:`sourcecode.pascal`,instrdst:`com.apple.instruments.instrdst`,instrpkg:`com.apple.instruments.package-definition`,intentdefinition:`file.intentdefinition`,ipp:`sourcecode.cpp.h`,jam:`sourcecode.jam`,jar:`archive.jar`,java:`sourcecode.java`,javascript:`sourcecode.javascript`,jpeg:`image.jpeg`,jpg:`image.jpeg`,js:`sourcecode.javascript`,jscript:`sourcecode.javascript`,json:`text.json`,jsp:`text.html.other`,kext:`wrapper.kernel-extension`,l:`sourcecode.lex`,lid:`sourcecode.dylan`,ll:`sourcecode.asm.llvm`,llx:`sourcecode.asm.llvm`,lm:`sourcecode.lex`,lmm:`sourcecode.lex`,lp:`sourcecode.lex`,lpp:`sourcecode.lex`,lxx:`sourcecode.lex`,m:`sourcecode.c.objc`,mak:`sourcecode.make`,make:`sourcecode.make`,map:`sourcecode.module-map`,markdown:`net.daringfireball.markdown`,md:`net.daringfireball.markdown`,mdimporter:`wrapper.spotlight-importer`,mdown:`net.daringfireball.markdown`,metal:`sourcecode.metal`,metallib:`archive.metal-library`,mi:`sourcecode.c.objc.preprocessed`,mid:`audio.midi`,midi:`audio.midi`,mig:`sourcecode.mig`,mii:`sourcecode.cpp.objcpp.preprocessed`,mlkitmodel:`file.mlmodel`,mlmodel:`file.mlmodel`,mm:`sourcecode.cpp.objcpp`,modulemap:`sourcecode.module-map`,moov:`video.quicktime`,mov:`video.quicktime`,mp3:`audio.mp3`,mpeg:`video.mpeg`,mpg:`video.mpeg`,mpkg:`wrapper.installer-mpkg`,nasm:`sourcecode.nasm`,nib:`wrapper.nib`,"nib~":`wrapper.nib`,nqc:`sourcecode.nqc`,o:`compiled.mach-o.objfile`,octest:`wrapper.cfbundle`,otf:`file`,p:`sourcecode.pascal`,pas:`sourcecode.pascal`,pbfilespec:`text.plist.pbfilespec`,pblangspec:`text.plist.pblangspec`,pbxproj:`text.pbxproject`,pch:`sourcecode.c.h`,"pch++":`sourcecode.cpp.h`,pct:`image.pict`,pdf:`image.pdf`,perl:`text.script.perl`,php:`text.script.php`,php3:`text.script.php`,php4:`text.script.php`,phtml:`text.script.php`,pict:`image.pict`,pkg:`wrapper.installer-pkg`,pl:`text.script.perl`,playground:`file.playground`,plist:`text.plist`,pluginkit:`wrapper.app-extension`,pm:`text.script.perl`,png:`image.png`,pp:`sourcecode.pascal`,ppob:`archive.ppob`,proto:`sourcecode.protobuf`,py:`text.script.python`,qtz:`video.quartz-composer`,r:`sourcecode.rez`,rb:`text.script.ruby`,rbw:`text.script.ruby`,rcproject:`file.rcproject`,rcx:`compiled.rcx`,rez:`sourcecode.rez`,rhtml:`text.html.other`,rsrc:`archive.rsrc`,rtf:`text.rtf`,rtfd:`wrapper.rtfd`,s:`sourcecode.asm`,scnassets:`wrapper.scnassets`,scncache:`wrapper.scncache`,scnp:`file.scp`,scriptSuite:`text.plist.scriptSuite`,scriptTerminology:`text.plist.scriptTerminology`,sh:`text.script.sh`,shtml:`text.html.other`,sit:`archive.stuffit`,sks:`file.sks`,skybox:`file.skybox`,sqlite:`file`,storyboard:`file.storyboard`,storyboardc:`wrapper.storyboardc`,strings:`text.plist.strings`,stringsdict:`text.plist.stringsdict`,swift:`sourcecode.swift`,systemextension:`wrapper.system-extension`,tar:`archive.tar`,tbd:`sourcecode.text-based-dylib-definition`,tcc:`sourcecode.cpp.cpp`,text:`net.daringfireball.markdown`,tif:`image.tiff`,tiff:`image.tiff`,ttf:`file`,txt:`text`,uicatalog:`file.uicatalog`,usdz:`file.usdz`,vert:`sourcecode.glsl`,vertex:`sourcecode.glsl`,view:`archive.rsrc`,vs:`sourcecode.glsl`,vsh:`sourcecode.glsl`,war:`archive.war`,wav:`audio.wav`,worksheet:`text.script.worksheet`,xcassets:`folder.assetcatalog`,xcbuildrules:`text.plist.xcbuildrules`,xcclassmodel:`wrapper.xcclassmodel`,xcconfig:`text.xcconfig`,xcdatamodel:`wrapper.xcdatamodel`,xcdatamodeld:`wrapper.xcdatamodeld`,xcfilelist:`text.xcfilelist`,xcframework:`wrapper.xcframework`,xclangspec:`text.plist.xclangspec`,xcmappingmodel:`wrapper.xcmappingmodel`,xcode:`wrapper.pb-project`,xcodeproj:`wrapper.pb-project`,xconf:`text.xml`,xcplaygroundpage:`file.xcplaygroundpage`,xcspec:`text.plist.xcspec`,xcstickers:`folder.stickers`,xcsynspec:`text.plist.xcsynspec`,xctarget:`wrapper.pb-target`,xctest:`wrapper.cfbundle`,xctxtmacro:`text.plist.xctxtmacro`,xcworkspace:`wrapper.workspace`,xhtml:`text.xml`,xib:`file.xib`,xmap:`text.xml`,xml:`text.xml`,xpc:`wrapper.xpc-service`,xsl:`text.xml`,xslt:`text.xml`,xsp:`text.xml`,y:`sourcecode.yacc`,yaml:`text.yaml`,ym:`sourcecode.yacc`,yml:`text.yaml`,ymm:`sourcecode.yacc`,yp:`sourcecode.yacc`,ypp:`sourcecode.yacc`,yxx:`sourcecode.yacc`,zip:`archive.zip`}),l.PRODUCT_UTI_EXTENSIONS=Object.freeze({application:`app`,applicationOnDemandInstallCapable:`app`,framework:`framework`,dynamicLibrary:`dylib`,staticLibrary:`a`,bundle:`bundle`,octestBundle:`octest`,unitTestBundle:`xctest`,uiTestBundle:`xctest`,appExtension:`appex`,messagesApplication:`app`,messagesExtension:`appex`,stickerPack:`appex`,watch2Extension:`appex`,watch2App:`app`,watch2AppContainer:`app`}),l.SOURCETREE_BY_FILETYPE=Object.freeze({"compiled.mach-o.dylib":`SDKROOT`,"sourcecode.text-based-dylib-definition":`SDKROOT`,"wrapper.framework":`SDKROOT`,"wrapper.app-extension":`BUILT_PRODUCTS_DIR`,"wrapper.extensionkit-extension":`BUILT_PRODUCTS_DIR`}),l.PROJECT_DEFAULT_BUILD_SETTINGS=Object.freeze({all:Object.freeze({ALWAYS_SEARCH_USER_PATHS:`NO`,CLANG_ANALYZER_NONNULL:`YES`,CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION:`YES_AGGRESSIVE`,CLANG_CXX_LANGUAGE_STANDARD:`gnu++14`,CLANG_CXX_LIBRARY:`libc++`,CLANG_ENABLE_MODULES:`YES`,CLANG_ENABLE_OBJC_ARC:`YES`,CLANG_ENABLE_OBJC_WEAK:`YES`,CLANG_WARN__DUPLICATE_METHOD_MATCH:`YES`,CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING:`YES`,CLANG_WARN_BOOL_CONVERSION:`YES`,CLANG_WARN_COMMA:`YES`,CLANG_WARN_CONSTANT_CONVERSION:`YES`,CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS:`YES`,CLANG_WARN_DIRECT_OBJC_ISA_USAGE:`YES_ERROR`,CLANG_WARN_DOCUMENTATION_COMMENTS:`YES`,CLANG_WARN_EMPTY_BODY:`YES`,CLANG_WARN_ENUM_CONVERSION:`YES`,CLANG_WARN_INFINITE_RECURSION:`YES`,CLANG_WARN_INT_CONVERSION:`YES`,CLANG_WARN_NON_LITERAL_NULL_CONVERSION:`YES`,CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF:`YES`,CLANG_WARN_OBJC_LITERAL_CONVERSION:`YES`,CLANG_WARN_OBJC_ROOT_CLASS:`YES_ERROR`,CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER:`YES`,CLANG_WARN_RANGE_LOOP_ANALYSIS:`YES`,CLANG_WARN_STRICT_PROTOTYPES:`YES`,CLANG_WARN_SUSPICIOUS_MOVE:`YES`,CLANG_WARN_UNGUARDED_AVAILABILITY:`YES_AGGRESSIVE`,CLANG_WARN_UNREACHABLE_CODE:`YES`,COPY_PHASE_STRIP:`NO`,ENABLE_STRICT_OBJC_MSGSEND:`YES`,GCC_C_LANGUAGE_STANDARD:`gnu11`,GCC_NO_COMMON_BLOCKS:`YES`,GCC_WARN_64_TO_32_BIT_CONVERSION:`YES`,GCC_WARN_ABOUT_RETURN_TYPE:`YES_ERROR`,GCC_WARN_UNDECLARED_SELECTOR:`YES`,GCC_WARN_UNINITIALIZED_AUTOS:`YES_AGGRESSIVE`,GCC_WARN_UNUSED_FUNCTION:`YES`,GCC_WARN_UNUSED_VARIABLE:`YES`,MTL_FAST_MATH:`YES`,PRODUCT_NAME:`$(TARGET_NAME)`,SWIFT_VERSION:`5.0`}),release:Object.freeze({DEBUG_INFORMATION_FORMAT:`dwarf-with-dsym`,ENABLE_NS_ASSERTIONS:`NO`,MTL_ENABLE_DEBUG_INFO:`NO`,SWIFT_COMPILATION_MODE:`wholemodule`,SWIFT_OPTIMIZATION_LEVEL:`-O`}),debug:Object.freeze({DEBUG_INFORMATION_FORMAT:`dwarf`,ENABLE_TESTABILITY:`YES`,GCC_DYNAMIC_NO_PIC:`NO`,GCC_OPTIMIZATION_LEVEL:`0`,GCC_PREPROCESSOR_DEFINITIONS:[`DEBUG=1`,`$(inherited)`],MTL_ENABLE_DEBUG_INFO:`INCLUDE_SOURCE`,ONLY_ACTIVE_ARCH:`YES`,SWIFT_ACTIVE_COMPILATION_CONDITIONS:`DEBUG`,SWIFT_OPTIMIZATION_LEVEL:`-Onone`})})})),require_types$5=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.SubFolder=l.ProxyType=l.ISA=void 0,(function(l){l.PBXBuildFile=`PBXBuildFile`,l.PBXAppleScriptBuildPhase=`PBXAppleScriptBuildPhase`,l.PBXCopyFilesBuildPhase=`PBXCopyFilesBuildPhase`,l.PBXFrameworksBuildPhase=`PBXFrameworksBuildPhase`,l.PBXHeadersBuildPhase=`PBXHeadersBuildPhase`,l.PBXResourcesBuildPhase=`PBXResourcesBuildPhase`,l.PBXShellScriptBuildPhase=`PBXShellScriptBuildPhase`,l.PBXSourcesBuildPhase=`PBXSourcesBuildPhase`,l.PBXRezBuildPhase=`PBXRezBuildPhase`,l.PBXContainerItemProxy=`PBXContainerItemProxy`,l.PBXFileReference=`PBXFileReference`,l.PBXGroup=`PBXGroup`,l.PBXVariantGroup=`PBXVariantGroup`,l.XCVersionGroup=`XCVersionGroup`,l.PBXFileSystemSynchronizedRootGroup=`PBXFileSystemSynchronizedRootGroup`,l.PBXFileSystemSynchronizedBuildFileExceptionSet=`PBXFileSystemSynchronizedBuildFileExceptionSet`,l.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet=`PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet`,l.PBXNativeTarget=`PBXNativeTarget`,l.PBXAggregateTarget=`PBXAggregateTarget`,l.PBXLegacyTarget=`PBXLegacyTarget`,l.PBXProject=`PBXProject`,l.PBXTargetDependency=`PBXTargetDependency`,l.XCBuildConfiguration=`XCBuildConfiguration`,l.XCConfigurationList=`XCConfigurationList`,l.PBXBuildRule=`PBXBuildRule`,l.PBXReferenceProxy=`PBXReferenceProxy`,l.XCSwiftPackageProductDependency=`XCSwiftPackageProductDependency`,l.XCRemoteSwiftPackageReference=`XCRemoteSwiftPackageReference`,l.XCLocalSwiftPackageReference=`XCLocalSwiftPackageReference`})(l.ISA||={}),(function(l){l[l.targetReference=1]=`targetReference`,l[l.reference=2]=`reference`})(l.ProxyType||={}),(function(l){l[l.absolutePath=0]=`absolutePath`,l[l.productsDirectory=16]=`productsDirectory`,l[l.wrapper=1]=`wrapper`,l[l.executables=6]=`executables`,l[l.resources=7]=`resources`,l[l.javaResources=15]=`javaResources`,l[l.frameworks=10]=`frameworks`,l[l.sharedFrameworks=11]=`sharedFrameworks`,l[l.sharedSupport=12]=`sharedSupport`,l[l.plugins=13]=`plugins`})(l.SubFolder||={})})),require_paths=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.getReferringTargets=l.getFullPath=l.getSourceTreeRealPath=l.getRealPath=l.getParents=l.getParent=void 0;let re=te(__require$1(`assert`)),ie=te(__require$1(`path`)),ae=m(require_types$5());function oe(l){return Array.from(new Set(l))}function se(l){return l.isa===`PBXProject`}function ce(l){return l.isa===`PBXGroup`}function le(l){let d=oe(l.getReferrers());if(d.length>1)return d.filter(l=>ce(l));if(d.length===1){let l=d[0];return(0,re.default)(se(l)||ce(l),`referring object is not a PBXGroup or PBXProject`),[l]}return[]}function ue(l){let d=le(l);if(!d.length)throw Error(`Consistency issue: no parent for object: "${l.getDisplayName()||l.isa+` - `+l.uuid}"`);if(d.length>1)throw Error(`Consistency issue: multiple parents for object: "${l.getDisplayName()}": ${d.map(l=>l.getDisplayName()).join(`, `)}`);return d[0]}l.getParent=ue;function de(l){if(fe(l))return[];let d=ue(l);return[...de(d),d]}l.getParents=de;function fe(l){return l.uuid===l.getXcodeProject().rootObject.props.mainGroup.uuid}function pe(l){let d=me(l),f=l.props.path||``;return d?ie.default.join(d,f):f}l.getRealPath=pe;function me(l){if(l.props.sourceTree===`<group>`){let d=ue(l);return se(d)?ie.default.join(l.getXcodeProject().getProjectRoot(),l.project.props.projectDirPath):pe(d)}else if(l.props.sourceTree===`SOURCE_ROOT`)return ie.default.resolve(l.getXcodeProject().getProjectRoot());else if(l.props.sourceTree===`<absolute>`)return``;return l.props.sourceTree}l.getSourceTreeRealPath=me;function he(l){if(l.props.sourceTree===`<group>`){let d=ue(l);return se(d)?``:ge(d)}else if(l.props.sourceTree===`SOURCE_ROOT`)return``;else if(l.props.sourceTree===`<absolute>`)return`/`;return l.props.sourceTree}function ge(l){let d=he(l);return l.props.path?ie.default.join(d,l.props.path):d}l.getFullPath=ge;function _e(l){return l.getReferrers().filter(l=>ve(l))}l.getReferringTargets=_e;function ve(l){return l.isa===ae.ISA.PBXNativeTarget}})),require_AbstractObject=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.AbstractObject=void 0;let f=d(__require$1(`assert`)),m=d(__require$1(`util`)),te=require_src$1()(`xcparse:models`);l.AbstractObject=class l{get isa(){return this.props.isa}getReferrers(){return this.getXcodeProject().getReferrers(this.uuid)}get project(){return this.getXcodeProject().rootObject}getXcodeProject(){return this.xcodeProject}constructor(l,d,f){this.uuid=d,this.props=f,Object.defineProperty(this,"xcodeProject",{get(){return l}}),te(`Inflating model (uuid: ${d}, isa: ${f.isa})`),this.setupDefaults(f)}inflate(){for(let[d,m]of Object.entries(this.getObjectProps())){if(!(d in this.props))continue;let te=this.props[d];if(Array.isArray(te))(0,f.default)(m===Array||Array.isArray(m),`'${String(d)}' MUST be of type Array but instead found type: ${typeof te}`),this.props[d]=te.map(l=>{if(typeof l!=`string`)return l;try{return this.getXcodeProject().getObject(l)}catch(f){if(`message`in f&&f.message.includes(`object with uuid`))console.warn(`[Malformed Xcode project]: Found orphaned reference: ${this.uuid} > ${this.isa}.${String(d)} > ${l}`);else throw f;return null}}).filter(Boolean);else if(te!=null){if(te instanceof l){this.props[d]=this.getXcodeProject().getObject(te.uuid);continue}(0,f.default)(typeof this.props[d]==`string`,`'${String(d)}' MUST be of type string (UUID) but instead found type: ${typeof te}`);try{this.props[d]=this.getXcodeProject().getObject(te)}catch(l){if(`message`in l&&l.message.includes(`object with uuid`))console.warn(`[Malformed Xcode project]: Found orphaned reference: ${this.uuid} > ${this.isa}.${String(d)} > ${te}`);else throw l}}}}setupDefaults(l){}getDisplayName(){return`name`in this.props?this.props.name:this.isa.replace(/^(PBX|XC)/,``)}isReferencing(l){for(let d of Object.keys(this.getObjectProps())){let f=this.props[d];if(Array.isArray(f)){if(f.some(d=>d?.uuid===l))return!0}else if(f&&typeof f==`object`&&`uuid`in f&&f.uuid===l)return!0}return!1}toJSON(){(0,f.default)(this.isa,`isa is not defined for `+this.uuid),te(`to JSON for`,this.isa,this.uuid,this.constructor.name);let l={...this.props};for(let d of Object.keys(this.getObjectProps()))if(d in this.props){let f=this.props[d],te;if(re(f))te=f.map(l=>l.uuid);else if(Array.isArray(f))throw Error(m.default.format(`Unable to serialize array of unknown objects (some missing 'uuid' property): %O`,f));else ie(f)&&(te=f.uuid);if(te)l[d]=te;else throw Error(m.default.format(`Unable to serialize object: %O`,f))}return l}removeReference(l){for(let d of Object.keys(this.getObjectProps())){let f=this.props[d];if(Array.isArray(f)){let d=f.findIndex(d=>d?.uuid===l);d!==-1&&f.splice(d,1)}else f&&typeof f==`object`&&`uuid`in f&&f.uuid===l&&(this.props[d]=void 0)}}removeFromProject(){this.getXcodeProject().delete(this.uuid),this.getReferrers().forEach(l=>{l.removeReference(this.uuid)})}};function re(l){return Array.isArray(l)&&l.every(l=>typeof l.uuid==`string`)}function ie(l){return typeof l.uuid==`string`&&typeof l.isa==`string`}})),require_PBXBuildFile=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXBuildFile=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}static createFromProductRef(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{fileRef:String,productRef:String}}isReferencing(l){return[this.props.fileRef?.uuid,this.props.productRef?.uuid].includes(l)}getDisplayName(){return this.props.productRef?this.props.productRef.getDisplayName():this.props.fileRef?this.props.fileRef.getDisplayName():super.getDisplayName()}};l.PBXBuildFile=ie,ie.isa=te.ISA.PBXBuildFile})),require_parser$5=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.parse=void 0;let d=require_lib$2();function f(l){let f=new d.DOMParser().parseFromString(l,`text/xml`).documentElement;if(!f||f.tagName!==`Scheme`)throw Error(`Invalid xcscheme file: root element must be <Scheme>`);return m(f)}l.parse=f;function m(l){let d={};d.version=xe(l,`version`),d.lastUpgradeVersion=xe(l,`LastUpgradeVersion`);let f=Ce(l,`BuildAction`);f&&(d.buildAction=te(f));let m=Ce(l,`TestAction`);m&&(d.testAction=ce(m));let re=Ce(l,`LaunchAction`);re&&(d.launchAction=de(re));let ie=Ce(l,`ProfileAction`);ie&&(d.profileAction=ge(ie));let ae=Ce(l,`AnalyzeAction`);ae&&(d.analyzeAction=_e(ae));let oe=Ce(l,`ArchiveAction`);return oe&&(d.archiveAction=ve(oe)),d}function te(l){let d={};d.parallelizeBuildables=Se(l,`parallelizeBuildables`),d.buildImplicitDependencies=Se(l,`buildImplicitDependencies`),d.runPostActionsOnFailure=Se(l,`runPostActionsOnFailure`),d.buildArchitectures=xe(l,`buildArchitectures`);let f=Ce(l,`BuildActionEntries`);return f&&(d.entries=we(f,`BuildActionEntry`).map(re)),d.preActions=ae(l,`PreActions`),d.postActions=ae(l,`PostActions`),d}function re(l){let d={};d.buildForRunning=Se(l,`buildForRunning`),d.buildForTesting=Se(l,`buildForTesting`),d.buildForProfiling=Se(l,`buildForProfiling`),d.buildForArchiving=Se(l,`buildForArchiving`),d.buildForAnalyzing=Se(l,`buildForAnalyzing`);let f=Ce(l,`BuildableReference`);return f&&(d.buildableReference=ie(f)),d}function ie(l){return{buildableIdentifier:xe(l,`BuildableIdentifier`)||`primary`,blueprintIdentifier:xe(l,`BlueprintIdentifier`)||``,buildableName:xe(l,`BuildableName`)||``,blueprintName:xe(l,`BlueprintName`)||``,referencedContainer:xe(l,`ReferencedContainer`)||``}}function ae(l,d){let f=Ce(l,d);if(!f)return;let m=we(f,`ExecutionAction`);if(m.length!==0)return m.map(oe)}function oe(l){let d={};d.actionType=xe(l,`ActionType`);let f=Ce(l,`ActionContent`);return f&&(d.actionContent=se(f)),d}function se(l){let d={};d.title=xe(l,`title`),d.scriptText=xe(l,`scriptText`),d.shellToInvoke=xe(l,`shellToInvoke`);let f=Ce(l,`EnvironmentBuildable`);if(f){let l=Ce(f,`BuildableReference`);l&&(d.environmentBuildable=ie(l))}return d}function ce(l){let d={};d.buildConfiguration=xe(l,`buildConfiguration`),d.selectedDebuggerIdentifier=xe(l,`selectedDebuggerIdentifier`),d.selectedLauncherIdentifier=xe(l,`selectedLauncherIdentifier`),d.shouldUseLaunchSchemeArgsEnv=Se(l,`shouldUseLaunchSchemeArgsEnv`),d.shouldAutocreateTestPlan=Se(l,`shouldAutocreateTestPlan`),d.preferredScreenCaptureFormat=xe(l,`preferredScreenCaptureFormat`),d.codeCoverageEnabled=Se(l,`codeCoverageEnabled`),d.onlyGenerateCoverageForSpecifiedTargets=Se(l,`onlyGenerateCoverageForSpecifiedTargets`);let f=Ce(l,`Testables`);f&&(d.testables=we(f,`TestableReference`).map(le));let m=Ce(l,`TestPlans`);m&&(d.testPlans=we(m,`TestPlanReference`).map(ue));let te=Ce(l,`MacroExpansion`);if(te){let l=Ce(te,`BuildableReference`);l&&(d.macroExpansion=ie(l))}return d.commandLineArguments=ye(l),d.environmentVariables=be(l),d.preActions=ae(l,`PreActions`),d.postActions=ae(l,`PostActions`),d}function le(l){let d={};d.skipped=Se(l,`skipped`),d.parallelizable=Se(l,`parallelizable`),d.useTestSelectionWhitelist=Se(l,`useTestSelectionWhitelist`);let f=Ce(l,`BuildableReference`);f&&(d.buildableReference=ie(f));let m=Ce(l,`SkippedTests`);m&&(d.skippedTests=we(m,`Test`).map(l=>({identifier:xe(l,`Identifier`)||``})));let te=Ce(l,`SelectedTests`);return te&&(d.selectedTests=we(te,`Test`).map(l=>({identifier:xe(l,`Identifier`)||``}))),d}function ue(l){return{reference:xe(l,`reference`)||``,default:Se(l,`default`)}}function de(l){let d={};d.buildConfiguration=xe(l,`buildConfiguration`),d.selectedDebuggerIdentifier=xe(l,`selectedDebuggerIdentifier`),d.selectedLauncherIdentifier=xe(l,`selectedLauncherIdentifier`),d.launchStyle=xe(l,`launchStyle`),d.useCustomWorkingDirectory=Se(l,`useCustomWorkingDirectory`),d.customWorkingDirectory=xe(l,`customWorkingDirectory`),d.ignoresPersistentStateOnLaunch=Se(l,`ignoresPersistentStateOnLaunch`),d.debugDocumentVersioning=Se(l,`debugDocumentVersioning`),d.debugServiceExtension=xe(l,`debugServiceExtension`),d.allowLocationSimulation=Se(l,`allowLocationSimulation`),d.customLaunchCommand=xe(l,`customLaunchCommand`),d.appClipInvocationURLString=xe(l,`appClipInvocationURLString`),d.askForAppToLaunch=Se(l,`askForAppToLaunch`),d.launchAutomaticallySubstyle=xe(l,`launchAutomaticallySubstyle`);let f=Ce(l,`BuildableProductRunnable`);f&&(d.buildableProductRunnable=fe(f));let m=Ce(l,`RemoteRunnable`);m&&(d.remoteRunnable=pe(m));let te=Ce(l,`MacroExpansion`);if(te){let l=Ce(te,`BuildableReference`);l&&(d.macroExpansion=ie(l))}let re=Ce(l,`LocationScenarioReference`);re&&(d.locationScenarioReference=me(re));let oe=Ce(l,`StoreKitConfigurationFileReference`);return oe&&(d.storeKitConfigurationFileReference=he(oe)),d.commandLineArguments=ye(l),d.environmentVariables=be(l),d.preActions=ae(l,`PreActions`),d.postActions=ae(l,`PostActions`),d}function fe(l){let d={};d.runnableDebuggingMode=xe(l,`runnableDebuggingMode`);let f=Ce(l,`BuildableReference`);return f&&(d.buildableReference=ie(f)),d}function pe(l){let d={};d.runnableDebuggingMode=xe(l,`runnableDebuggingMode`),d.bundleIdentifier=xe(l,`BundleIdentifier`),d.remotePath=xe(l,`RemotePath`);let f=Ce(l,`BuildableReference`);return f&&(d.buildableReference=ie(f)),d}function me(l){return{identifier:xe(l,`identifier`),referenceType:xe(l,`referenceType`)}}function he(l){return{identifier:xe(l,`identifier`)}}function ge(l){let d={};d.buildConfiguration=xe(l,`buildConfiguration`),d.shouldUseLaunchSchemeArgsEnv=Se(l,`shouldUseLaunchSchemeArgsEnv`),d.savedToolIdentifier=xe(l,`savedToolIdentifier`),d.useCustomWorkingDirectory=Se(l,`useCustomWorkingDirectory`),d.debugDocumentVersioning=Se(l,`debugDocumentVersioning`),d.askForAppToLaunch=Se(l,`askForAppToLaunch`),d.launchAutomaticallySubstyle=xe(l,`launchAutomaticallySubstyle`),d.appClipInvocationURLString=xe(l,`appClipInvocationURLString`);let f=Ce(l,`BuildableProductRunnable`);return f&&(d.buildableProductRunnable=fe(f)),d.commandLineArguments=ye(l),d.environmentVariables=be(l),d.preActions=ae(l,`PreActions`),d.postActions=ae(l,`PostActions`),d}function _e(l){let d={};return d.buildConfiguration=xe(l,`buildConfiguration`),d.preActions=ae(l,`PreActions`),d.postActions=ae(l,`PostActions`),d}function ve(l){let d={};return d.buildConfiguration=xe(l,`buildConfiguration`),d.customArchiveName=xe(l,`customArchiveName`),d.revealArchiveInOrganizer=Se(l,`revealArchiveInOrganizer`),d.preActions=ae(l,`PreActions`),d.postActions=ae(l,`PostActions`),d}function ye(l){let d=Ce(l,`CommandLineArguments`);if(!d)return;let f=we(d,`CommandLineArgument`);if(f.length!==0)return f.map(l=>({argument:xe(l,`argument`)||``,isEnabled:Se(l,`isEnabled`)}))}function be(l){let d=Ce(l,`EnvironmentVariables`);if(!d)return;let f=we(d,`EnvironmentVariable`);if(f.length!==0)return f.map(l=>({key:xe(l,`key`)||``,value:xe(l,`value`)||``,isEnabled:Se(l,`isEnabled`)}))}function xe(l,d){if(l.hasAttribute(d))return l.getAttribute(d)??void 0}function Se(l,d){let f=l.getAttribute(d);if(f===`YES`||f===`Yes`)return!0;if(f===`NO`||f===`No`)return!1}function Ce(l,d){let f=l.childNodes;for(let l=0;l<f.length;l++){let m=f[l];if(m.nodeType===1&&m.tagName===d)return m}return null}function we(l,d){let f=[],m=l.childNodes;for(let l=0;l<m.length;l++){let te=m[l];te.nodeType===1&&te.tagName===d&&f.push(te)}return f}})),require_writer$5=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.build=void 0;function d(l){let d=[];d.push(`<?xml version="1.0" encoding="UTF-8"?>`),d.push(`<Scheme`);let te=f(l);return d.push(...te.map(l=>` ${l}`)),d[d.length-1]+=`>`,l.buildAction&&d.push(...m(l.buildAction,1)),l.testAction&&d.push(...se(l.testAction,1)),l.launchAction&&d.push(...ue(l.launchAction,1)),l.profileAction&&d.push(...he(l.profileAction,1)),l.analyzeAction&&d.push(...ge(l.analyzeAction,1)),l.archiveAction&&d.push(..._e(l.archiveAction,1)),d.push(`</Scheme>`),d.join(`
45947
45947
  `)+`
45948
- `}l.build=d;function f(l){let d=[];return l.lastUpgradeVersion!==void 0&&d.push(`LastUpgradeVersion = "${l.lastUpgradeVersion}"`),l.version!==void 0&&d.push(`version = "${l.version}"`),d}function m(l,d){let f=[],m=be(d),re=[];l.parallelizeBuildables!==void 0&&re.push(`parallelizeBuildables = "${xe(l.parallelizeBuildables)}"`),l.buildImplicitDependencies!==void 0&&re.push(`buildImplicitDependencies = "${xe(l.buildImplicitDependencies)}"`),l.runPostActionsOnFailure!==void 0&&re.push(`runPostActionsOnFailure = "${xe(l.runPostActionsOnFailure)}"`),l.buildArchitectures!==void 0&&re.push(`buildArchitectures = "${l.buildArchitectures}"`),f.push(`${m}<BuildAction`);for(let l of re)f.push(`${m} ${l}`);if(f[f.length-1]+=`>`,l.preActions&&l.preActions.length>0&&f.push(...ie(`PreActions`,l.preActions,d+1)),l.postActions&&l.postActions.length>0&&f.push(...ie(`PostActions`,l.postActions,d+1)),l.entries&&l.entries.length>0){f.push(`${be(d+1)}<BuildActionEntries>`);for(let m of l.entries)f.push(...te(m,d+2));f.push(`${be(d+1)}</BuildActionEntries>`)}return f.push(`${m}</BuildAction>`),f}function te(l,d){let f=[],m=be(d),te=[];l.buildForTesting!==void 0&&te.push(`buildForTesting = "${xe(l.buildForTesting)}"`),l.buildForRunning!==void 0&&te.push(`buildForRunning = "${xe(l.buildForRunning)}"`),l.buildForProfiling!==void 0&&te.push(`buildForProfiling = "${xe(l.buildForProfiling)}"`),l.buildForArchiving!==void 0&&te.push(`buildForArchiving = "${xe(l.buildForArchiving)}"`),l.buildForAnalyzing!==void 0&&te.push(`buildForAnalyzing = "${xe(l.buildForAnalyzing)}"`),f.push(`${m}<BuildActionEntry`);for(let l of te)f.push(`${m} ${l}`);return f[f.length-1]+=`>`,l.buildableReference&&f.push(...re(l.buildableReference,d+1)),f.push(`${m}</BuildActionEntry>`),f}function re(l,d){let f=[],m=be(d);return f.push(`${m}<BuildableReference`),f.push(`${m} BuildableIdentifier = "${l.buildableIdentifier}"`),f.push(`${m} BlueprintIdentifier = "${l.blueprintIdentifier}"`),f.push(`${m} BuildableName = "${Se(l.buildableName)}"`),f.push(`${m} BlueprintName = "${Se(l.blueprintName)}"`),f.push(`${m} ReferencedContainer = "${Se(l.referencedContainer)}">`),f.push(`${m}</BuildableReference>`),f}function ie(l,d,f){let m=[],te=be(f);m.push(`${te}<${l}>`);for(let l of d)m.push(...ae(l,f+1));return m.push(`${te}</${l}>`),m}function ae(l,d){let f=[],m=be(d);return f.push(`${m}<ExecutionAction`),l.actionType===void 0?f[f.length-1]+=`>`:f.push(`${m} ActionType = "${l.actionType}">`),l.actionContent&&f.push(...oe(l.actionContent,d+1)),f.push(`${m}</ExecutionAction>`),f}function oe(l,d){let f=[],m=be(d),te=[];l.title!==void 0&&te.push(`title = "${Se(l.title)}"`),l.scriptText!==void 0&&te.push(`scriptText = "${Se(l.scriptText)}"`),l.shellToInvoke!==void 0&&te.push(`shellToInvoke = "${l.shellToInvoke}"`),f.push(`${m}<ActionContent`);for(let l of te)f.push(`${m} ${l}`);return l.environmentBuildable?(f[f.length-1]+=`>`,f.push(`${be(d+1)}<EnvironmentBuildable>`),f.push(...re(l.environmentBuildable,d+2)),f.push(`${be(d+1)}</EnvironmentBuildable>`),f.push(`${m}</ActionContent>`)):(f[f.length-1]+=`>`,f.push(`${m}</ActionContent>`)),f}function se(l,d){let f=[],m=be(d),te=[];l.buildConfiguration!==void 0&&te.push(`buildConfiguration = "${l.buildConfiguration}"`),l.selectedDebuggerIdentifier!==void 0&&te.push(`selectedDebuggerIdentifier = "${l.selectedDebuggerIdentifier}"`),l.selectedLauncherIdentifier!==void 0&&te.push(`selectedLauncherIdentifier = "${l.selectedLauncherIdentifier}"`),l.shouldUseLaunchSchemeArgsEnv!==void 0&&te.push(`shouldUseLaunchSchemeArgsEnv = "${xe(l.shouldUseLaunchSchemeArgsEnv)}"`),l.shouldAutocreateTestPlan!==void 0&&te.push(`shouldAutocreateTestPlan = "${xe(l.shouldAutocreateTestPlan)}"`),l.preferredScreenCaptureFormat!==void 0&&te.push(`preferredScreenCaptureFormat = "${l.preferredScreenCaptureFormat}"`),l.codeCoverageEnabled!==void 0&&te.push(`codeCoverageEnabled = "${xe(l.codeCoverageEnabled)}"`),l.onlyGenerateCoverageForSpecifiedTargets!==void 0&&te.push(`onlyGenerateCoverageForSpecifiedTargets = "${xe(l.onlyGenerateCoverageForSpecifiedTargets)}"`),f.push(`${m}<TestAction`);for(let l of te)f.push(`${m} ${l}`);if(f[f.length-1]+=`>`,l.preActions&&l.preActions.length>0&&f.push(...ie(`PreActions`,l.preActions,d+1)),l.postActions&&l.postActions.length>0&&f.push(...ie(`PostActions`,l.postActions,d+1)),l.testPlans&&l.testPlans.length>0){f.push(`${be(d+1)}<TestPlans>`);for(let m of l.testPlans)f.push(...le(m,d+2));f.push(`${be(d+1)}</TestPlans>`)}if(l.macroExpansion&&(f.push(`${be(d+1)}<MacroExpansion>`),f.push(...re(l.macroExpansion,d+2)),f.push(`${be(d+1)}</MacroExpansion>`)),l.testables&&l.testables.length>0){f.push(`${be(d+1)}<Testables>`);for(let m of l.testables)f.push(...ce(m,d+2));f.push(`${be(d+1)}</Testables>`)}else l.testables!==void 0&&(f.push(`${be(d+1)}<Testables>`),f.push(`${be(d+1)}</Testables>`));return l.commandLineArguments&&l.commandLineArguments.length>0&&f.push(...ve(l.commandLineArguments,d+1)),l.environmentVariables&&l.environmentVariables.length>0&&f.push(...ye(l.environmentVariables,d+1)),f.push(`${m}</TestAction>`),f}function ce(l,d){let f=[],m=be(d),te=[];l.skipped!==void 0&&te.push(`skipped = "${xe(l.skipped)}"`),l.parallelizable!==void 0&&te.push(`parallelizable = "${xe(l.parallelizable)}"`),l.useTestSelectionWhitelist!==void 0&&te.push(`useTestSelectionWhitelist = "${xe(l.useTestSelectionWhitelist)}"`),f.push(`${m}<TestableReference`);for(let l of te)f.push(`${m} ${l}`);if(f[f.length-1]+=`>`,l.buildableReference&&f.push(...re(l.buildableReference,d+1)),l.skippedTests&&l.skippedTests.length>0){f.push(`${be(d+1)}<SkippedTests>`);for(let m of l.skippedTests)f.push(`${be(d+2)}<Test`),f.push(`${be(d+2)} Identifier = "${m.identifier}">`),f.push(`${be(d+2)}</Test>`);f.push(`${be(d+1)}</SkippedTests>`)}if(l.selectedTests&&l.selectedTests.length>0){f.push(`${be(d+1)}<SelectedTests>`);for(let m of l.selectedTests)f.push(`${be(d+2)}<Test`),f.push(`${be(d+2)} Identifier = "${m.identifier}">`),f.push(`${be(d+2)}</Test>`);f.push(`${be(d+1)}</SelectedTests>`)}return f.push(`${m}</TestableReference>`),f}function le(l,d){let f=[],m=be(d);return f.push(`${m}<TestPlanReference`),l.default!==void 0&&f.push(`${m} default = "${xe(l.default)}"`),f.push(`${m} reference = "${l.reference}">`),f.push(`${m}</TestPlanReference>`),f}function ue(l,d){let f=[],m=be(d),te=[];l.buildConfiguration!==void 0&&te.push(`buildConfiguration = "${l.buildConfiguration}"`),l.appClipInvocationURLString!==void 0&&te.push(`appClipInvocationURLString = "${Se(l.appClipInvocationURLString)}"`),l.selectedDebuggerIdentifier!==void 0&&te.push(`selectedDebuggerIdentifier = "${l.selectedDebuggerIdentifier}"`),l.selectedLauncherIdentifier!==void 0&&te.push(`selectedLauncherIdentifier = "${l.selectedLauncherIdentifier}"`),l.launchStyle!==void 0&&te.push(`launchStyle = "${l.launchStyle}"`),l.askForAppToLaunch!==void 0&&te.push(`askForAppToLaunch = "${l.askForAppToLaunch?`Yes`:`No`}"`),l.useCustomWorkingDirectory!==void 0&&te.push(`useCustomWorkingDirectory = "${xe(l.useCustomWorkingDirectory)}"`),l.customWorkingDirectory!==void 0&&te.push(`customWorkingDirectory = "${l.customWorkingDirectory}"`),l.ignoresPersistentStateOnLaunch!==void 0&&te.push(`ignoresPersistentStateOnLaunch = "${xe(l.ignoresPersistentStateOnLaunch)}"`),l.debugDocumentVersioning!==void 0&&te.push(`debugDocumentVersioning = "${xe(l.debugDocumentVersioning)}"`),l.debugServiceExtension!==void 0&&te.push(`debugServiceExtension = "${l.debugServiceExtension}"`),l.allowLocationSimulation!==void 0&&te.push(`allowLocationSimulation = "${xe(l.allowLocationSimulation)}"`),l.customLaunchCommand!==void 0&&te.push(`customLaunchCommand = "${Se(l.customLaunchCommand)}"`),l.launchAutomaticallySubstyle!==void 0&&te.push(`launchAutomaticallySubstyle = "${l.launchAutomaticallySubstyle}"`),f.push(`${m}<LaunchAction`);for(let l of te)f.push(`${m} ${l}`);return f[f.length-1]+=`>`,l.preActions&&l.preActions.length>0&&f.push(...ie(`PreActions`,l.preActions,d+1)),l.postActions&&l.postActions.length>0&&f.push(...ie(`PostActions`,l.postActions,d+1)),l.buildableProductRunnable&&f.push(...de(l.buildableProductRunnable,d+1)),l.remoteRunnable&&f.push(...fe(l.remoteRunnable,d+1)),l.macroExpansion&&(f.push(`${be(d+1)}<MacroExpansion>`),f.push(...re(l.macroExpansion,d+2)),f.push(`${be(d+1)}</MacroExpansion>`)),l.locationScenarioReference&&f.push(...pe(l.locationScenarioReference,d+1)),l.commandLineArguments&&l.commandLineArguments.length>0&&f.push(...ve(l.commandLineArguments,d+1)),l.environmentVariables&&l.environmentVariables.length>0&&f.push(...ye(l.environmentVariables,d+1)),l.storeKitConfigurationFileReference&&f.push(...me(l.storeKitConfigurationFileReference,d+1)),f.push(`${m}</LaunchAction>`),f}function de(l,d){let f=[],m=be(d);return f.push(`${m}<BuildableProductRunnable`),l.runnableDebuggingMode===void 0?f[f.length-1]+=`>`:f.push(`${m} runnableDebuggingMode = "${l.runnableDebuggingMode}">`),l.buildableReference&&f.push(...re(l.buildableReference,d+1)),f.push(`${m}</BuildableProductRunnable>`),f}function fe(l,d){let f=[],m=be(d),te=[];l.runnableDebuggingMode!==void 0&&te.push(`runnableDebuggingMode = "${l.runnableDebuggingMode}"`),l.bundleIdentifier!==void 0&&te.push(`BundleIdentifier = "${l.bundleIdentifier}"`),l.remotePath!==void 0&&te.push(`RemotePath = "${l.remotePath}"`),f.push(`${m}<RemoteRunnable`);for(let l of te)f.push(`${m} ${l}`);return f[f.length-1]+=`>`,l.buildableReference&&f.push(...re(l.buildableReference,d+1)),f.push(`${m}</RemoteRunnable>`),f}function pe(l,d){let f=[],m=be(d);return f.push(`${m}<LocationScenarioReference`),l.identifier!==void 0&&f.push(`${m} identifier = "${l.identifier}"`),l.referenceType===void 0?f[f.length-1]+=`>`:f.push(`${m} referenceType = "${l.referenceType}">`),f.push(`${m}</LocationScenarioReference>`),f}function me(l,d){let f=[],m=be(d);return f.push(`${m}<StoreKitConfigurationFileReference`),l.identifier===void 0?f[f.length-1]+=`>`:f.push(`${m} identifier = "${l.identifier}">`),f.push(`${m}</StoreKitConfigurationFileReference>`),f}function he(l,d){let f=[],m=be(d),te=[];l.askForAppToLaunch!==void 0&&te.push(`askForAppToLaunch = "${l.askForAppToLaunch?`YES`:`NO`}"`),l.buildConfiguration!==void 0&&te.push(`buildConfiguration = "${l.buildConfiguration}"`),l.appClipInvocationURLString!==void 0&&te.push(`appClipInvocationURLString = "${Se(l.appClipInvocationURLString)}"`),l.shouldUseLaunchSchemeArgsEnv!==void 0&&te.push(`shouldUseLaunchSchemeArgsEnv = "${xe(l.shouldUseLaunchSchemeArgsEnv)}"`),l.savedToolIdentifier!==void 0&&te.push(`savedToolIdentifier = "${l.savedToolIdentifier}"`),l.useCustomWorkingDirectory!==void 0&&te.push(`useCustomWorkingDirectory = "${xe(l.useCustomWorkingDirectory)}"`),l.debugDocumentVersioning!==void 0&&te.push(`debugDocumentVersioning = "${xe(l.debugDocumentVersioning)}"`),l.launchAutomaticallySubstyle!==void 0&&te.push(`launchAutomaticallySubstyle = "${l.launchAutomaticallySubstyle}"`),f.push(`${m}<ProfileAction`);for(let l of te)f.push(`${m} ${l}`);return f[f.length-1]+=`>`,l.preActions&&l.preActions.length>0&&f.push(...ie(`PreActions`,l.preActions,d+1)),l.postActions&&l.postActions.length>0&&f.push(...ie(`PostActions`,l.postActions,d+1)),l.buildableProductRunnable&&f.push(...de(l.buildableProductRunnable,d+1)),l.commandLineArguments&&l.commandLineArguments.length>0&&f.push(...ve(l.commandLineArguments,d+1)),l.environmentVariables&&l.environmentVariables.length>0&&f.push(...ye(l.environmentVariables,d+1)),f.push(`${m}</ProfileAction>`),f}function ge(l,d){let f=[],m=be(d);return f.push(`${m}<AnalyzeAction`),l.buildConfiguration===void 0?f[f.length-1]+=`>`:f.push(`${m} buildConfiguration = "${l.buildConfiguration}">`),l.preActions&&l.preActions.length>0&&f.push(...ie(`PreActions`,l.preActions,d+1)),l.postActions&&l.postActions.length>0&&f.push(...ie(`PostActions`,l.postActions,d+1)),f.push(`${m}</AnalyzeAction>`),f}function _e(l,d){let f=[],m=be(d),te=[];l.buildConfiguration!==void 0&&te.push(`buildConfiguration = "${l.buildConfiguration}"`),l.customArchiveName!==void 0&&te.push(`customArchiveName = "${Se(l.customArchiveName)}"`),l.revealArchiveInOrganizer!==void 0&&te.push(`revealArchiveInOrganizer = "${xe(l.revealArchiveInOrganizer)}"`),f.push(`${m}<ArchiveAction`);for(let l of te)f.push(`${m} ${l}`);return f[f.length-1]+=`>`,l.preActions&&l.preActions.length>0&&f.push(...ie(`PreActions`,l.preActions,d+1)),l.postActions&&l.postActions.length>0&&f.push(...ie(`PostActions`,l.postActions,d+1)),f.push(`${m}</ArchiveAction>`),f}function ve(l,d){let f=[],m=be(d);f.push(`${m}<CommandLineArguments>`);for(let m of l)f.push(`${be(d+1)}<CommandLineArgument`),f.push(`${be(d+1)} argument = "${Se(m.argument)}"`),m.isEnabled===void 0?f[f.length-1]+=`>`:f.push(`${be(d+1)} isEnabled = "${xe(m.isEnabled)}">`),f.push(`${be(d+1)}</CommandLineArgument>`);return f.push(`${m}</CommandLineArguments>`),f}function ye(l,d){let f=[],m=be(d);f.push(`${m}<EnvironmentVariables>`);for(let m of l)f.push(`${be(d+1)}<EnvironmentVariable`),f.push(`${be(d+1)} key = "${Se(m.key)}"`),f.push(`${be(d+1)} value = "${Se(m.value)}"`),m.isEnabled===void 0?f[f.length-1]+=`>`:f.push(`${be(d+1)} isEnabled = "${xe(m.isEnabled)}">`),f.push(`${be(d+1)}</EnvironmentVariable>`);return f.push(`${m}</EnvironmentVariables>`),f}function be(l){return` `.repeat(l)}function xe(l){return l?`YES`:`NO`}function Se(l){return l.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`)}})),require_base64_js=__commonJSMin((l=>{l.byteLength=oe,l.toByteArray=ce,l.fromByteArray=de;for(var d=[],f=[],m=typeof Uint8Array<`u`?Uint8Array:Array,te=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,re=0,ie=te.length;re<ie;++re)d[re]=te[re],f[te.charCodeAt(re)]=re;f[45]=62,f[95]=63;function ae(l){var d=l.length;if(d%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var f=l.indexOf(`=`);f===-1&&(f=d);var m=f===d?0:4-f%4;return[f,m]}function oe(l){var d=ae(l),f=d[0],m=d[1];return(f+m)*3/4-m}function se(l,d,f){return(d+f)*3/4-f}function ce(l){var d,te=ae(l),re=te[0],ie=te[1],oe=new m(se(l,re,ie)),ce=0,le=ie>0?re-4:re,ue;for(ue=0;ue<le;ue+=4)d=f[l.charCodeAt(ue)]<<18|f[l.charCodeAt(ue+1)]<<12|f[l.charCodeAt(ue+2)]<<6|f[l.charCodeAt(ue+3)],oe[ce++]=d>>16&255,oe[ce++]=d>>8&255,oe[ce++]=d&255;return ie===2&&(d=f[l.charCodeAt(ue)]<<2|f[l.charCodeAt(ue+1)]>>4,oe[ce++]=d&255),ie===1&&(d=f[l.charCodeAt(ue)]<<10|f[l.charCodeAt(ue+1)]<<4|f[l.charCodeAt(ue+2)]>>2,oe[ce++]=d>>8&255,oe[ce++]=d&255),oe}function le(l){return d[l>>18&63]+d[l>>12&63]+d[l>>6&63]+d[l&63]}function ue(l,d,f){for(var m,te=[],re=d;re<f;re+=3)m=(l[re]<<16&16711680)+(l[re+1]<<8&65280)+(l[re+2]&255),te.push(le(m));return te.join(``)}function de(l){for(var f,m=l.length,te=m%3,re=[],ie=16383,ae=0,oe=m-te;ae<oe;ae+=ie)re.push(ue(l,ae,ae+ie>oe?oe:ae+ie));return te===1?(f=l[m-1],re.push(d[f>>2]+d[f<<4&63]+`==`)):te===2&&(f=(l[m-2]<<8)+l[m-1],re.push(d[f>>10]+d[f>>4&63]+d[f<<2&63]+`=`)),re.join(``)}})),require_Utility=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe={}.hasOwnProperty;l=function(l,...d){var f,m,te,ie;if(re(Object.assign))Object.assign.apply(null,arguments);else for(f=0,te=d.length;f<te;f++)if(ie=d[f],ie!=null)for(m in ie)oe.call(ie,m)&&(l[m]=ie[m]);return l},re=function(l){return!!l&&Object.prototype.toString.call(l)===`[object Function]`},ie=function(l){var d;return!!l&&((d=typeof l)==`function`||d===`object`)},m=function(l){return re(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)===`[object Array]`},te=function(l){var d;if(m(l))return!l.length;for(d in l)if(oe.call(l,d))return!1;return!0},ae=function(l){var d,f;return ie(l)&&(f=Object.getPrototypeOf(l))&&(d=f.constructor)&&typeof d==`function`&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},f=function(l){return re(l.valueOf)?l.valueOf():l},d.exports.assign=l,d.exports.isFunction=re,d.exports.isObject=ie,d.exports.isArray=m,d.exports.isEmpty=te,d.exports.isPlainObject=ae,d.exports.getValue=f}).call(l)})),require_XMLDOMImplementation=__commonJSMin(((l,d)=>{(function(){d.exports=class{hasFeature(l,d){return!0}createDocumentType(l,d,f){throw Error(`This DOM method is not implemented.`)}createDocument(l,d,f){throw Error(`This DOM method is not implemented.`)}createHTMLDocument(l){throw Error(`This DOM method is not implemented.`)}getFeature(l,d){throw Error(`This DOM method is not implemented.`)}}}).call(l)})),require_XMLDOMErrorHandler=__commonJSMin(((l,d)=>{(function(){d.exports=class{constructor(){}handleError(l){throw Error(l)}}}).call(l)})),require_XMLDOMStringList=__commonJSMin(((l,d)=>{(function(){d.exports=(function(){class l{constructor(l){this.arr=l||[]}item(l){return this.arr[l]||null}contains(l){return this.arr.indexOf(l)!==-1}}return Object.defineProperty(l.prototype,"length",{get:function(){return this.arr.length}}),l}).call(this)}).call(l)})),require_XMLDOMConfiguration=__commonJSMin(((l,d)=>{(function(){var l=require_XMLDOMErrorHandler(),f=require_XMLDOMStringList();d.exports=(function(){class d{constructor(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new l,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":``,"schema-type":``,"split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}getParameter(l){return this.params.hasOwnProperty(l)?this.params[l]:null}canSetParameter(l,d){return!0}setParameter(l,d){return d==null?delete this.params[l]:this.params[l]=d}}return Object.defineProperty(d.prototype,"parameterNames",{get:function(){return new f(Object.keys(this.defaultParams))}}),d}).call(this)}).call(l)})),require_NodeType=__commonJSMin(((l,d)=>{(function(){d.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(l)})),require_XMLAttribute=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType();require_XMLNode(),d.exports=(function(){class d{constructor(d,f,m){if(this.parent=d,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),f==null)throw Error(`Missing attribute name. `+this.debugInfo(f));this.name=this.stringify.name(f),this.value=this.stringify.attValue(m),this.type=l.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(l){return this.options.writer.attribute(this,this.options.writer.filterOptions(l))}debugInfo(l){return l||=this.name,l==null?`parent: <`+this.parent.name+`>`:`attribute: {`+l+`}, parent: <`+this.parent.name+`>`}isEqualNode(l){return!(l.namespaceURI!==this.namespaceURI||l.prefix!==this.prefix||l.localName!==this.localName||l.value!==this.value)}}return Object.defineProperty(d.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(d.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return this.value},set:function(l){return this.value=l||``}}),Object.defineProperty(d.prototype,"namespaceURI",{get:function(){return``}}),Object.defineProperty(d.prototype,"prefix",{get:function(){return``}}),Object.defineProperty(d.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"specified",{get:function(){return!0}}),d}).call(this)}).call(l)})),require_XMLNamedNodeMap=__commonJSMin(((l,d)=>{(function(){d.exports=(function(){class l{constructor(l){this.nodes=l}clone(){return this.nodes=null}getNamedItem(l){return this.nodes[l]}setNamedItem(l){var d=this.nodes[l.nodeName];return this.nodes[l.nodeName]=l,d||null}removeNamedItem(l){var d=this.nodes[l];return delete this.nodes[l],d||null}item(l){return this.nodes[Object.keys(this.nodes)[l]]||null}getNamedItemNS(l,d){throw Error(`This DOM method is not implemented.`)}setNamedItemNS(l){throw Error(`This DOM method is not implemented.`)}removeNamedItemNS(l,d){throw Error(`This DOM method is not implemented.`)}}return Object.defineProperty(l.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),l}).call(this)}).call(l)})),require_XMLElement=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe={}.hasOwnProperty;({isObject:ae,isFunction:ie,getValue:re}=require_Utility()),te=require_XMLNode(),l=require_NodeType(),f=require_XMLAttribute(),m=require_XMLNamedNodeMap(),d.exports=(function(){class d extends te{constructor(d,f,m){var te,re,ie,ae;if(super(d),f==null)throw Error(`Missing element name. `+this.debugInfo());if(this.name=this.stringify.name(f),this.type=l.Element,this.attribs={},this.schemaTypeInfo=null,m!=null&&this.attribute(m),d.type===l.Document&&(this.isRoot=!0,this.documentObject=d,d.rootObject=this,d.children)){for(ae=d.children,re=0,ie=ae.length;re<ie;re++)if(te=ae[re],te.type===l.DocType){te.name=this.name;break}}}clone(){var l,d,f=Object.create(this),m;for(d in f.isRoot&&(f.documentObject=null),f.attribs={},m=this.attribs,m)oe.call(m,d)&&(l=m[d],f.attribs[d]=l.clone());return f.children=[],this.children.forEach(function(l){var d=l.clone();return d.parent=f,f.children.push(d)}),f}attribute(l,d){var m,te;if(l!=null&&(l=re(l)),ae(l))for(m in l)oe.call(l,m)&&(te=l[m],this.attribute(m,te));else ie(d)&&(d=d.apply()),this.options.keepNullAttributes&&d==null?this.attribs[l]=new f(this,l,``):d!=null&&(this.attribs[l]=new f(this,l,d));return this}removeAttribute(l){var d,f,m;if(l==null)throw Error(`Missing attribute name. `+this.debugInfo());if(l=re(l),Array.isArray(l))for(f=0,m=l.length;f<m;f++)d=l[f],delete this.attribs[d];else delete this.attribs[l];return this}toString(l){return this.options.writer.element(this,this.options.writer.filterOptions(l))}att(l,d){return this.attribute(l,d)}a(l,d){return this.attribute(l,d)}getAttribute(l){return this.attribs.hasOwnProperty(l)?this.attribs[l].value:null}setAttribute(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNode(l){return this.attribs.hasOwnProperty(l)?this.attribs[l]:null}setAttributeNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeAttributeNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setAttributeNS(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeAttributeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNodeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setAttributeNodeNS(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}hasAttribute(l){return this.attribs.hasOwnProperty(l)}hasAttributeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setIdAttribute(l,d){return this.attribs.hasOwnProperty(l)?this.attribs[l].isId:d}setIdAttributeNS(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setIdAttributeNode(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByClassName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(l){var d,f,m;if(!super.isEqualNode(l)||l.namespaceURI!==this.namespaceURI||l.prefix!==this.prefix||l.localName!==this.localName||l.attribs.length!==this.attribs.length)return!1;for(d=f=0,m=this.attribs.length-1;0<=m?f<=m:f>=m;d=0<=m?++f:--f)if(!this.attribs[d].isEqualNode(l.attribs[d]))return!1;return!0}}return Object.defineProperty(d.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"namespaceURI",{get:function(){return``}}),Object.defineProperty(d.prototype,"prefix",{get:function(){return``}}),Object.defineProperty(d.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"id",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(d.prototype,"className",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(d.prototype,"classList",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(d.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new m(this.attribs)),this.attributeMap}}),d}).call(this)}).call(l)})),require_XMLCharacterData=__commonJSMin(((l,d)=>{(function(){var l=require_XMLNode();d.exports=(function(){class d extends l{constructor(l){super(l),this.value=``}clone(){return Object.create(this)}substringData(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}appendData(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}insertData(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}deleteData(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}replaceData(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(l){return!(!super.isEqualNode(l)||l.data!==this.data)}}return Object.defineProperty(d.prototype,"data",{get:function(){return this.value},set:function(l){return this.value=l||``}}),Object.defineProperty(d.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(d.prototype,"textContent",{get:function(){return this.value},set:function(l){return this.value=l||``}}),d}).call(this)}).call(l)})),require_XMLCData=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType(),f=require_XMLCharacterData();d.exports=class extends f{constructor(d,f){if(super(d),f==null)throw Error(`Missing CDATA text. `+this.debugInfo());this.name=`#cdata-section`,this.type=l.CData,this.value=this.stringify.cdata(f)}clone(){return Object.create(this)}toString(l){return this.options.writer.cdata(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLComment=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType(),f=require_XMLCharacterData();d.exports=class extends f{constructor(d,f){if(super(d),f==null)throw Error(`Missing comment text. `+this.debugInfo());this.name=`#comment`,this.type=l.Comment,this.value=this.stringify.comment(f)}clone(){return Object.create(this)}toString(l){return this.options.writer.comment(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLDeclaration=__commonJSMin(((l,d)=>{(function(){var l,f,m;({isObject:m}=require_Utility()),f=require_XMLNode(),l=require_NodeType(),d.exports=class extends f{constructor(d,f,te,re){super(d),m(f)&&({version:f,encoding:te,standalone:re}=f),f||=`1.0`,this.type=l.Declaration,this.version=this.stringify.xmlVersion(f),te!=null&&(this.encoding=this.stringify.xmlEncoding(te)),re!=null&&(this.standalone=this.stringify.xmlStandalone(re))}toString(l){return this.options.writer.declaration(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLDTDAttList=__commonJSMin(((l,d)=>{(function(){var l,f=require_XMLNode();l=require_NodeType(),d.exports=class extends f{constructor(d,f,m,te,re,ie){if(super(d),f==null)throw Error(`Missing DTD element name. `+this.debugInfo());if(m==null)throw Error(`Missing DTD attribute name. `+this.debugInfo(f));if(!te)throw Error(`Missing DTD attribute type. `+this.debugInfo(f));if(!re)throw Error(`Missing DTD attribute default. `+this.debugInfo(f));if(re.indexOf(`#`)!==0&&(re=`#`+re),!re.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error(`Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. `+this.debugInfo(f));if(ie&&!re.match(/^(#FIXED|#DEFAULT)$/))throw Error(`Default value only applies to #FIXED or #DEFAULT. `+this.debugInfo(f));this.elementName=this.stringify.name(f),this.type=l.AttributeDeclaration,this.attributeName=this.stringify.name(m),this.attributeType=this.stringify.dtdAttType(te),ie&&(this.defaultValue=this.stringify.dtdAttDefault(ie)),this.defaultValueType=re}toString(l){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLDTDEntity=__commonJSMin(((l,d)=>{(function(){var l,f,m;({isObject:m}=require_Utility()),f=require_XMLNode(),l=require_NodeType(),d.exports=(function(){class d extends f{constructor(d,f,te,re){if(super(d),te==null)throw Error(`Missing DTD entity name. `+this.debugInfo(te));if(re==null)throw Error(`Missing DTD entity value. `+this.debugInfo(te));if(this.pe=!!f,this.name=this.stringify.name(te),this.type=l.EntityDeclaration,!m(re))this.value=this.stringify.dtdEntityValue(re),this.internal=!0;else{if(!re.pubID&&!re.sysID)throw Error(`Public and/or system identifiers are required for an external entity. `+this.debugInfo(te));if(re.pubID&&!re.sysID)throw Error(`System identifier is required for a public external entity. `+this.debugInfo(te));if(this.internal=!1,re.pubID!=null&&(this.pubID=this.stringify.dtdPubID(re.pubID)),re.sysID!=null&&(this.sysID=this.stringify.dtdSysID(re.sysID)),re.nData!=null&&(this.nData=this.stringify.dtdNData(re.nData)),this.pe&&this.nData)throw Error(`Notation declaration is not allowed in a parameter entity. `+this.debugInfo(te))}}toString(l){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(l))}}return Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(d.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(d.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"xmlVersion",{get:function(){return null}}),d}).call(this)}).call(l)})),require_XMLDTDElement=__commonJSMin(((l,d)=>{(function(){var l,f=require_XMLNode();l=require_NodeType(),d.exports=class extends f{constructor(d,f,m){if(super(d),f==null)throw Error(`Missing DTD element name. `+this.debugInfo());m||=`(#PCDATA)`,Array.isArray(m)&&(m=`(`+m.join(`,`)+`)`),this.name=this.stringify.name(f),this.type=l.ElementDeclaration,this.value=this.stringify.dtdElementValue(m)}toString(l){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLDTDNotation=__commonJSMin(((l,d)=>{(function(){var l,f=require_XMLNode();l=require_NodeType(),d.exports=(function(){class d extends f{constructor(d,f,m){if(super(d),f==null)throw Error(`Missing DTD notation name. `+this.debugInfo(f));if(!m.pubID&&!m.sysID)throw Error(`Public or system identifiers are required for an external entity. `+this.debugInfo(f));this.name=this.stringify.name(f),this.type=l.NotationDeclaration,m.pubID!=null&&(this.pubID=this.stringify.dtdPubID(m.pubID)),m.sysID!=null&&(this.sysID=this.stringify.dtdSysID(m.sysID))}toString(l){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(l))}}return Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),d}).call(this)}).call(l)})),require_XMLDocType=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe;({isObject:oe}=require_Utility()),ae=require_XMLNode(),l=require_NodeType(),f=require_XMLDTDAttList(),te=require_XMLDTDEntity(),m=require_XMLDTDElement(),re=require_XMLDTDNotation(),ie=require_XMLNamedNodeMap(),d.exports=(function(){class d extends ae{constructor(d,f,m){var te,re,ie,ae;if(super(d),this.type=l.DocType,d.children){for(ae=d.children,re=0,ie=ae.length;re<ie;re++)if(te=ae[re],te.type===l.Element){this.name=te.name;break}}this.documentObject=d,oe(f)&&({pubID:f,sysID:m}=f),m??([m,f]=[f,m]),f!=null&&(this.pubID=this.stringify.dtdPubID(f)),m!=null&&(this.sysID=this.stringify.dtdSysID(m))}element(l,d){var f=new m(this,l,d);return this.children.push(f),this}attList(l,d,m,te,re){var ie=new f(this,l,d,m,te,re);return this.children.push(ie),this}entity(l,d){var f=new te(this,!1,l,d);return this.children.push(f),this}pEntity(l,d){var f=new te(this,!0,l,d);return this.children.push(f),this}notation(l,d){var f=new re(this,l,d);return this.children.push(f),this}toString(l){return this.options.writer.docType(this,this.options.writer.filterOptions(l))}ele(l,d){return this.element(l,d)}att(l,d,f,m,te){return this.attList(l,d,f,m,te)}ent(l,d){return this.entity(l,d)}pent(l,d){return this.pEntity(l,d)}not(l,d){return this.notation(l,d)}up(){return this.root()||this.documentObject}isEqualNode(l){return!(!super.isEqualNode(l)||l.name!==this.name||l.publicId!==this.publicId||l.systemId!==this.systemId)}}return Object.defineProperty(d.prototype,"entities",{get:function(){var d,f,m,te={},re=this.children;for(f=0,m=re.length;f<m;f++)d=re[f],d.type===l.EntityDeclaration&&!d.pe&&(te[d.name]=d);return new ie(te)}}),Object.defineProperty(d.prototype,"notations",{get:function(){var d,f,m,te={},re=this.children;for(f=0,m=re.length;f<m;f++)d=re[f],d.type===l.NotationDeclaration&&(te[d.name]=d);return new ie(te)}}),Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(d.prototype,"internalSubset",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),d}).call(this)}).call(l)})),require_XMLRaw=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType(),f=require_XMLNode();d.exports=class extends f{constructor(d,f){if(super(d),f==null)throw Error(`Missing raw text. `+this.debugInfo());this.type=l.Raw,this.value=this.stringify.raw(f)}clone(){return Object.create(this)}toString(l){return this.options.writer.raw(this,this.options.writer.filterOptions(l))}}}).call(l)})),require_XMLText=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType(),f=require_XMLCharacterData();d.exports=(function(){class d extends f{constructor(d,f){if(super(d),f==null)throw Error(`Missing element text. `+this.debugInfo());this.name=`#text`,this.type=l.Text,this.value=this.stringify.text(f)}clone(){return Object.create(this)}toString(l){return this.options.writer.text(this,this.options.writer.filterOptions(l))}splitText(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}replaceWholeText(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}return Object.defineProperty(d.prototype,"isElementContentWhitespace",{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(d.prototype,"wholeText",{get:function(){var l,d,f=``;for(d=this.previousSibling;d;)f=d.data+f,d=d.previousSibling;for(f+=this.data,l=this.nextSibling;l;)f+=l.data,l=l.nextSibling;return f}}),d}).call(this)}).call(l)})),require_XMLProcessingInstruction=__commonJSMin(((l,d)=>{(function(){var l=require_NodeType(),f=require_XMLCharacterData();d.exports=class extends f{constructor(d,f,m){if(super(d),f==null)throw Error(`Missing instruction target. `+this.debugInfo());this.type=l.ProcessingInstruction,this.target=this.stringify.insTarget(f),this.name=this.target,m&&(this.value=this.stringify.insValue(m))}clone(){return Object.create(this)}toString(l){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(l))}isEqualNode(l){return!(!super.isEqualNode(l)||l.target!==this.target)}}}).call(l)})),require_XMLDummy=__commonJSMin(((l,d)=>{(function(){var l,f=require_XMLNode();l=require_NodeType(),d.exports=class extends f{constructor(d){super(d),this.type=l.Dummy}clone(){return Object.create(this)}toString(l){return``}}}).call(l)})),require_XMLNodeList=__commonJSMin(((l,d)=>{(function(){d.exports=(function(){class l{constructor(l){this.nodes=l}clone(){return this.nodes=null}item(l){return this.nodes[l]||null}}return Object.defineProperty(l.prototype,"length",{get:function(){return this.nodes.length||0}}),l}).call(this)}).call(l)})),require_DocumentPosition=__commonJSMin(((l,d)=>{(function(){d.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(l)})),require_XMLNode=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he={}.hasOwnProperty,ge=[].splice;({isObject:me,isFunction:pe,isEmpty:fe,getValue:de}=require_Utility()),oe=null,m=null,te=null,re=null,ie=null,le=null,ue=null,ce=null,ae=null,f=null,se=null,l=null,d.exports=(function(){class d{constructor(d){this.parent=d,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,oe||(oe=require_XMLElement(),m=require_XMLCData(),te=require_XMLComment(),re=require_XMLDeclaration(),ie=require_XMLDocType(),le=require_XMLRaw(),ue=require_XMLText(),ce=require_XMLProcessingInstruction(),ae=require_XMLDummy(),f=require_NodeType(),se=require_XMLNodeList(),require_XMLNamedNodeMap(),l=require_DocumentPosition())}setParent(l){var d,f,m,te,re;for(this.parent=l,l&&(this.options=l.options,this.stringify=l.stringify),te=this.children,re=[],f=0,m=te.length;f<m;f++)d=te[f],re.push(d.setParent(this));return re}element(l,d,f){var m,te,re,ie,ae,oe=null,se,ce,le;if(d===null&&f==null&&([d,f]=[{},null]),d??={},d=de(d),me(d)||([f,d]=[d,f]),l!=null&&(l=de(l)),Array.isArray(l))for(re=0,se=l.length;re<se;re++)te=l[re],oe=this.element(te);else if(pe(l))oe=this.element(l.apply());else if(me(l)){for(ae in l)if(he.call(l,ae))if(le=l[ae],pe(le)&&(le=le.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ae.indexOf(this.stringify.convertAttKey)===0)oe=this.attribute(ae.substr(this.stringify.convertAttKey.length),le);else if(!this.options.separateArrayItems&&Array.isArray(le)&&fe(le))oe=this.dummy();else if(me(le)&&fe(le))oe=this.element(ae);else if(!this.options.keepNullNodes&&le==null)oe=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(le))for(ie=0,ce=le.length;ie<ce;ie++)te=le[ie],m={},m[ae]=te,oe=this.element(m);else me(le)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ae.indexOf(this.stringify.convertTextKey)===0?oe=this.element(le):(oe=this.element(ae),oe.element(le)):oe=this.element(ae,le)}else oe=!this.options.keepNullNodes&&f===null?this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&l.indexOf(this.stringify.convertTextKey)===0?this.text(f):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&l.indexOf(this.stringify.convertCDataKey)===0?this.cdata(f):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&l.indexOf(this.stringify.convertCommentKey)===0?this.comment(f):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&l.indexOf(this.stringify.convertRawKey)===0?this.raw(f):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&l.indexOf(this.stringify.convertPIKey)===0?this.instruction(l.substr(this.stringify.convertPIKey.length),f):this.node(l,d,f);if(oe==null)throw Error(`Could not create any elements with: `+l+`. `+this.debugInfo());return oe}insertBefore(l,d,f){var m,te,re,ie,ae;if(l?.type)return re=l,ie=d,re.setParent(this),ie?(te=children.indexOf(ie),ae=children.splice(te),children.push(re),Array.prototype.push.apply(children,ae)):children.push(re),re;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(l));return te=this.parent.children.indexOf(this),ae=this.parent.children.splice(te),m=this.parent.element(l,d,f),Array.prototype.push.apply(this.parent.children,ae),m}insertAfter(l,d,f){var m,te,re;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(l));return te=this.parent.children.indexOf(this),re=this.parent.children.splice(te+1),m=this.parent.element(l,d,f),Array.prototype.push.apply(this.parent.children,re),m}remove(){var l;if(this.isRoot)throw Error(`Cannot remove the root element. `+this.debugInfo());return l=this.parent.children.indexOf(this),ge.apply(this.parent.children,[l,l-l+1]),this.parent}node(l,d,f){var m;return l!=null&&(l=de(l)),d||={},d=de(d),me(d)||([f,d]=[d,f]),m=new oe(this,l,d),f!=null&&m.text(f),this.children.push(m),m}text(l){var d;return me(l)&&this.element(l),d=new ue(this,l),this.children.push(d),this}cdata(l){var d=new m(this,l);return this.children.push(d),this}comment(l){var d=new te(this,l);return this.children.push(d),this}commentBefore(l){var d=this.parent.children.indexOf(this),f=this.parent.children.splice(d);return this.parent.comment(l),Array.prototype.push.apply(this.parent.children,f),this}commentAfter(l){var d=this.parent.children.indexOf(this),f=this.parent.children.splice(d+1);return this.parent.comment(l),Array.prototype.push.apply(this.parent.children,f),this}raw(l){var d=new le(this,l);return this.children.push(d),this}dummy(){return new ae(this)}instruction(l,d){var f,m,te,re,ie;if(l!=null&&(l=de(l)),d!=null&&(d=de(d)),Array.isArray(l))for(re=0,ie=l.length;re<ie;re++)f=l[re],this.instruction(f);else if(me(l))for(f in l)he.call(l,f)&&(m=l[f],this.instruction(f,m));else pe(d)&&(d=d.apply()),te=new ce(this,l,d),this.children.push(te);return this}instructionBefore(l,d){var f=this.parent.children.indexOf(this),m=this.parent.children.splice(f);return this.parent.instruction(l,d),Array.prototype.push.apply(this.parent.children,m),this}instructionAfter(l,d){var f=this.parent.children.indexOf(this),m=this.parent.children.splice(f+1);return this.parent.instruction(l,d),Array.prototype.push.apply(this.parent.children,m),this}declaration(l,d,m){var te=this.document(),ie=new re(te,l,d,m);return te.children.length===0?te.children.unshift(ie):te.children[0].type===f.Declaration?te.children[0]=ie:te.children.unshift(ie),te.root()||te}dtd(l,d){var m,te=this.document(),re=new ie(te,l,d),ae,oe,se,ce,le,ue=te.children,de;for(ae=oe=0,ce=ue.length;oe<ce;ae=++oe)if(m=ue[ae],m.type===f.DocType)return te.children[ae]=re,re;for(de=te.children,ae=se=0,le=de.length;se<le;ae=++se)if(m=de[ae],m.isRoot)return te.children.splice(ae,0,re),re;return te.children.push(re),re}up(){if(this.isRoot)throw Error(`The root node has no parent. Use doc() if you need to get the document object.`);return this.parent}root(){for(var l=this;l;)if(l.type===f.Document)return l.rootObject;else if(l.isRoot)return l;else l=l.parent}document(){for(var l=this;l;)if(l.type===f.Document)return l;else l=l.parent}end(l){return this.document().end(l)}prev(){var l=this.parent.children.indexOf(this);if(l<1)throw Error(`Already at the first node. `+this.debugInfo());return this.parent.children[l-1]}next(){var l=this.parent.children.indexOf(this);if(l===-1||l===this.parent.children.length-1)throw Error(`Already at the last node. `+this.debugInfo());return this.parent.children[l+1]}importDocument(l){var d,m=l.root().clone(),te,re,ie;if(m.parent=this,m.isRoot=!1,this.children.push(m),this.type===f.Document&&(m.isRoot=!0,m.documentObject=this,this.rootObject=m,this.children)){for(ie=this.children,te=0,re=ie.length;te<re;te++)if(d=ie[te],d.type===f.DocType){d.name=m.name;break}}return this}debugInfo(l){var d,f;return l||=this.name,l==null&&!this.parent?.name?``:l==null?`parent: <`+this.parent.name+`>`:this.parent?.name?`node: <`+l+`>, parent: <`+this.parent.name+`>`:`node: <`+l+`>`}ele(l,d,f){return this.element(l,d,f)}nod(l,d,f){return this.node(l,d,f)}txt(l){return this.text(l)}dat(l){return this.cdata(l)}com(l){return this.comment(l)}ins(l,d){return this.instruction(l,d)}doc(){return this.document()}dec(l,d,f){return this.declaration(l,d,f)}e(l,d,f){return this.element(l,d,f)}n(l,d,f){return this.node(l,d,f)}t(l){return this.text(l)}d(l){return this.cdata(l)}c(l){return this.comment(l)}r(l){return this.raw(l)}i(l,d){return this.instruction(l,d)}u(){return this.up()}importXMLBuilder(l){return this.importDocument(l)}attribute(l,d){throw Error(`attribute() applies to element nodes only.`)}att(l,d){return this.attribute(l,d)}a(l,d){return this.attribute(l,d)}removeAttribute(l){throw Error(`attribute() applies to element nodes only.`)}replaceChild(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeChild(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}appendChild(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}normalize(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isSupported(l,d){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(d){var f=this,m;return f===d?0:this.document()===d.document()?f.isAncestor(d)?l.Contains|l.Preceding:f.isDescendant(d)?l.Contains|l.Following:f.isPreceding(d)?l.Preceding:l.Following:(m=l.Disconnected|l.ImplementationSpecific,Math.random()<.5?m|=l.Preceding:m|=l.Following,m)}isSameNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}lookupPrefix(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isDefaultNamespace(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}lookupNamespaceURI(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(l){var d,f,m;if(l.nodeType!==this.nodeType||l.children.length!==this.children.length)return!1;for(d=f=0,m=this.children.length-1;0<=m?f<=m:f>=m;d=0<=m?++f:--f)if(!this.children[d].isEqualNode(l.children[d]))return!1;return!0}getFeature(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setUserData(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getUserData(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}contains(l){return l?l===this||this.isDescendant(l):!1}isDescendant(l){var d,f,m,te,re=this.children;for(m=0,te=re.length;m<te;m++)if(d=re[m],l===d||(f=d.isDescendant(l),f))return!0;return!1}isAncestor(l){return l.isDescendant(this)}isPreceding(l){var d=this.treePosition(l),f=this.treePosition(this);return d===-1||f===-1?!1:d<f}isFollowing(l){var d=this.treePosition(l),f=this.treePosition(this);return d===-1||f===-1?!1:d>f}treePosition(l){var d,f=0;return d=!1,this.foreachTreeNode(this.document(),function(m){if(f++,!d&&m===l)return d=!0}),d?f:-1}foreachTreeNode(l,d){var f,m,te,re,ie;for(l||=this.document(),re=l.children,m=0,te=re.length;m<te;m++)if(f=re[m],(ie=d(f))||(ie=this.foreachTreeNode(f,d),ie))return ie}}return Object.defineProperty(d.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(d.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(d.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(d.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new se(this.children)),this.childNodeList}}),Object.defineProperty(d.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(d.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(d.prototype,"previousSibling",{get:function(){var l=this.parent.children.indexOf(this);return this.parent.children[l-1]||null}}),Object.defineProperty(d.prototype,"nextSibling",{get:function(){var l=this.parent.children.indexOf(this);return this.parent.children[l+1]||null}}),Object.defineProperty(d.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(d.prototype,"textContent",{get:function(){var l,d,m,te,re;if(this.nodeType===f.Element||this.nodeType===f.DocumentFragment){for(re=``,te=this.children,d=0,m=te.length;d<m;d++)l=te[d],l.textContent&&(re+=l.textContent);return re}else return null},set:function(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),d}).call(this)}).call(l)})),require_XMLStringifier=__commonJSMin(((l,d)=>{(function(){var l={}.hasOwnProperty;d.exports=(function(){class d{constructor(d){var f,m,te;for(f in this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),d||={},this.options=d,this.options.version||(this.options.version=`1.0`),m=d.stringify||{},m)l.call(m,f)&&(te=m[f],this[f]=te)}name(l){return this.options.noValidation?l:this.assertLegalName(``+l||``)}text(l){return this.options.noValidation?l:this.assertLegalChar(this.textEscape(``+l||``))}cdata(l){return this.options.noValidation?l:(l=``+l||``,l=l.replace(`]]>`,`]]]]><![CDATA[>`),this.assertLegalChar(l))}comment(l){if(this.options.noValidation)return l;if(l=``+l||``,l.match(/--/))throw Error(`Comment text cannot contain double-hypen: `+l);return this.assertLegalChar(l)}raw(l){return this.options.noValidation?l:``+l||``}attValue(l){return this.options.noValidation?l:this.assertLegalChar(this.attEscape(l=``+l||``))}insTarget(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}insValue(l){if(this.options.noValidation)return l;if(l=``+l||``,l.match(/\?>/))throw Error(`Invalid processing instruction value: `+l);return this.assertLegalChar(l)}xmlVersion(l){if(this.options.noValidation)return l;if(l=``+l||``,!l.match(/1\.[0-9]+/))throw Error(`Invalid version number: `+l);return l}xmlEncoding(l){if(this.options.noValidation)return l;if(l=``+l||``,!l.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error(`Invalid encoding: `+l);return this.assertLegalChar(l)}xmlStandalone(l){return this.options.noValidation?l:l?`yes`:`no`}dtdPubID(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdSysID(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdElementValue(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdAttType(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdAttDefault(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdEntityValue(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}dtdNData(l){return this.options.noValidation?l:this.assertLegalChar(``+l||``)}assertLegalChar(l){var d,f;if(this.options.noValidation)return l;if(d=``,this.options.version===`1.0`){if(d=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=l.match(d))throw Error(`Invalid character in string: ${l} at index ${f.index}`)}else if(this.options.version===`1.1`&&(d=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=l.match(d)))throw Error(`Invalid character in string: ${l} at index ${f.index}`);return l}assertLegalName(l){var d;if(this.options.noValidation)return l;if(this.assertLegalChar(l),d=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!l.match(d))throw Error(`Invalid character in name`);return l}textEscape(l){var d;return this.options.noValidation?l:(d=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,l.replace(d,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/\r/g,`&#xD;`))}attEscape(l){var d;return this.options.noValidation?l:(d=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,l.replace(d,`&amp;`).replace(/</g,`&lt;`).replace(/"/g,`&quot;`).replace(/\t/g,`&#x9;`).replace(/\n/g,`&#xA;`).replace(/\r/g,`&#xD;`))}}return d.prototype.convertAttKey=`@`,d.prototype.convertPIKey=`?`,d.prototype.convertTextKey=`#text`,d.prototype.convertCDataKey=`#cdata`,d.prototype.convertCommentKey=`#comment`,d.prototype.convertRawKey=`#raw`,d}).call(this)}).call(l)})),require_WriterState=__commonJSMin(((l,d)=>{(function(){d.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(l)})),require_XMLWriterBase=__commonJSMin(((l,d)=>{(function(){var l,f,m,te={}.hasOwnProperty;({assign:m}=require_Utility()),l=require_NodeType(),require_XMLDeclaration(),require_XMLDocType(),require_XMLCData(),require_XMLComment(),require_XMLElement(),require_XMLRaw(),require_XMLText(),require_XMLProcessingInstruction(),require_XMLDummy(),require_XMLDTDAttList(),require_XMLDTDElement(),require_XMLDTDEntity(),require_XMLDTDNotation(),f=require_WriterState(),d.exports=class{constructor(l){var d,f,m;for(d in l||={},this.options=l,f=l.writer||{},f)te.call(f,d)&&(m=f[d],this[`_`+d]=this[d],this[d]=m)}filterOptions(l){var d,te,re,ie,ae,oe,se,ce,le;return l||={},l=m({},this.options,l),d={writer:this},d.pretty=l.pretty||!1,d.allowEmpty=l.allowEmpty||!1,d.indent=l.indent??` `,d.newline=l.newline??`
45949
- `,d.offset=l.offset??0,d.width=l.width??0,d.dontPrettyTextNodes=l.dontPrettyTextNodes??l.dontprettytextnodes??0,d.spaceBeforeSlash=l.spaceBeforeSlash??l.spacebeforeslash??``,d.spaceBeforeSlash===!0&&(d.spaceBeforeSlash=` `),d.suppressPrettyCount=0,d.user={},d.state=f.None,d}indent(l,d,f){var m;return!d.pretty||d.suppressPrettyCount?``:d.pretty&&(m=(f||0)+d.offset+1,m>0)?Array(m).join(d.indent):``}endline(l,d,f){return!d.pretty||d.suppressPrettyCount?``:d.newline}attribute(l,d,f){var m;return this.openAttribute(l,d,f),m=d.pretty&&d.width>0?l.name+`="`+l.value+`"`:` `+l.name+`="`+l.value+`"`,this.closeAttribute(l,d,f),m}cdata(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<![CDATA[`,d.state=f.InsideTag,te+=l.value,d.state=f.CloseTag,te+=`]]>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}comment(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!-- `,d.state=f.InsideTag,te+=l.value,d.state=f.CloseTag,te+=` -->`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}declaration(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<?xml`,d.state=f.InsideTag,te+=` version="`+l.version+`"`,l.encoding!=null&&(te+=` encoding="`+l.encoding+`"`),l.standalone!=null&&(te+=` standalone="`+l.standalone+`"`),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`?>`,te+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}docType(l,d,m){var te,re,ie,ae,oe;if(m||=0,this.openNode(l,d,m),d.state=f.OpenTag,ae=this.indent(l,d,m),ae+=`<!DOCTYPE `+l.root().name,l.pubID&&l.sysID?ae+=` PUBLIC "`+l.pubID+`" "`+l.sysID+`"`:l.sysID&&(ae+=` SYSTEM "`+l.sysID+`"`),l.children.length>0){for(ae+=` [`,ae+=this.endline(l,d,m),d.state=f.InsideTag,oe=l.children,re=0,ie=oe.length;re<ie;re++)te=oe[re],ae+=this.writeChildNode(te,d,m+1);d.state=f.CloseTag,ae+=`]`}return d.state=f.CloseTag,ae+=d.spaceBeforeSlash+`>`,ae+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),ae}element(d,m,re){var ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se;if(re||=0,he=!1,this.openNode(d,m,re),m.state=f.OpenTag,ge=this.indent(d,m,re)+`<`+d.name,m.pretty&&m.width>0)for(me in de=ge.length,ve=d.attribs,ve)te.call(ve,me)&&(ie=ve[me],_e=this.attribute(ie,m,re),ae=_e.length,de+ae>m.width?(Se=this.indent(d,m,re+1)+_e,ge+=this.endline(d,m,re)+Se,de=Se.length):(Se=` `+_e,ge+=Se,de+=Se.length));else for(me in ye=d.attribs,ye)te.call(ye,me)&&(ie=ye[me],ge+=this.attribute(ie,m,re));if(se=d.children.length,ce=se===0?null:d.children[0],se===0||d.children.every(function(d){return(d.type===l.Text||d.type===l.Raw)&&d.value===``}))m.allowEmpty?(ge+=`>`,m.state=f.CloseTag,ge+=`</`+d.name+`>`+this.endline(d,m,re)):(m.state=f.CloseTag,ge+=m.spaceBeforeSlash+`/>`+this.endline(d,m,re));else if(m.pretty&&se===1&&(ce.type===l.Text||ce.type===l.Raw)&&ce.value!=null)ge+=`>`,m.state=f.InsideTag,m.suppressPrettyCount++,he=!0,ge+=this.writeChildNode(ce,m,re+1),m.suppressPrettyCount--,he=!1,m.state=f.CloseTag,ge+=`</`+d.name+`>`+this.endline(d,m,re);else{if(m.dontPrettyTextNodes){for(be=d.children,le=0,fe=be.length;le<fe;le++)if(oe=be[le],(oe.type===l.Text||oe.type===l.Raw)&&oe.value!=null){m.suppressPrettyCount++,he=!0;break}}for(ge+=`>`+this.endline(d,m,re),m.state=f.InsideTag,xe=d.children,ue=0,pe=xe.length;ue<pe;ue++)oe=xe[ue],ge+=this.writeChildNode(oe,m,re+1);m.state=f.CloseTag,ge+=this.indent(d,m,re)+`</`+d.name+`>`,he&&m.suppressPrettyCount--,ge+=this.endline(d,m,re),m.state=f.None}return this.closeNode(d,m,re),ge}writeChildNode(d,f,m){switch(d.type){case l.CData:return this.cdata(d,f,m);case l.Comment:return this.comment(d,f,m);case l.Element:return this.element(d,f,m);case l.Raw:return this.raw(d,f,m);case l.Text:return this.text(d,f,m);case l.ProcessingInstruction:return this.processingInstruction(d,f,m);case l.Dummy:return``;case l.Declaration:return this.declaration(d,f,m);case l.DocType:return this.docType(d,f,m);case l.AttributeDeclaration:return this.dtdAttList(d,f,m);case l.ElementDeclaration:return this.dtdElement(d,f,m);case l.EntityDeclaration:return this.dtdEntity(d,f,m);case l.NotationDeclaration:return this.dtdNotation(d,f,m);default:throw Error(`Unknown XML node type: `+d.constructor.name)}}processingInstruction(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<?`,d.state=f.InsideTag,te+=l.target,l.value&&(te+=` `+l.value),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`?>`,te+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}raw(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m),d.state=f.InsideTag,te+=l.value,d.state=f.CloseTag,te+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}text(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m),d.state=f.InsideTag,te+=l.value,d.state=f.CloseTag,te+=this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}dtdAttList(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!ATTLIST`,d.state=f.InsideTag,te+=` `+l.elementName+` `+l.attributeName+` `+l.attributeType,l.defaultValueType!==`#DEFAULT`&&(te+=` `+l.defaultValueType),l.defaultValue&&(te+=` "`+l.defaultValue+`"`),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}dtdElement(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!ELEMENT`,d.state=f.InsideTag,te+=` `+l.name+` `+l.value,d.state=f.CloseTag,te+=d.spaceBeforeSlash+`>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}dtdEntity(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!ENTITY`,d.state=f.InsideTag,l.pe&&(te+=` %`),te+=` `+l.name,l.value?te+=` "`+l.value+`"`:(l.pubID&&l.sysID?te+=` PUBLIC "`+l.pubID+`" "`+l.sysID+`"`:l.sysID&&(te+=` SYSTEM "`+l.sysID+`"`),l.nData&&(te+=` NDATA `+l.nData)),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}dtdNotation(l,d,m){var te;return this.openNode(l,d,m),d.state=f.OpenTag,te=this.indent(l,d,m)+`<!NOTATION`,d.state=f.InsideTag,te+=` `+l.name,l.pubID&&l.sysID?te+=` PUBLIC "`+l.pubID+`" "`+l.sysID+`"`:l.pubID?te+=` PUBLIC "`+l.pubID+`"`:l.sysID&&(te+=` SYSTEM "`+l.sysID+`"`),d.state=f.CloseTag,te+=d.spaceBeforeSlash+`>`+this.endline(l,d,m),d.state=f.None,this.closeNode(l,d,m),te}openNode(l,d,f){}closeNode(l,d,f){}openAttribute(l,d,f){}closeAttribute(l,d,f){}}}).call(l)})),require_XMLStringWriter=__commonJSMin(((l,d)=>{(function(){var l=require_XMLWriterBase();d.exports=class extends l{constructor(l){super(l)}document(l,d){var f,m,te,re,ie;for(d=this.filterOptions(d),re=``,ie=l.children,m=0,te=ie.length;m<te;m++)f=ie[m],re+=this.writeChildNode(f,d,0);return d.pretty&&re.slice(-d.newline.length)===d.newline&&(re=re.slice(0,-d.newline.length)),re}}}).call(l)})),require_XMLDocument=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae;({isPlainObject:ae}=require_Utility()),m=require_XMLDOMImplementation(),f=require_XMLDOMConfiguration(),te=require_XMLNode(),l=require_NodeType(),ie=require_XMLStringifier(),re=require_XMLStringWriter(),d.exports=(function(){class d extends te{constructor(d){super(null),this.name=`#document`,this.type=l.Document,this.documentURI=null,this.domConfig=new f,d||={},d.writer||=new re,this.options=d,this.stringify=new ie(d)}end(l){var d={};return l?ae(l)&&(d=l,l=this.options.writer):l=this.options.writer,l.document(this,l.filterOptions(d))}toString(l){return this.options.writer.document(this,this.options.writer.filterOptions(l))}createElement(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createDocumentFragment(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createTextNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createComment(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createCDATASection(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createProcessingInstruction(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createAttribute(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createEntityReference(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}importNode(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createElementNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createAttributeNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(l,d){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementById(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}adoptNode(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}normalizeDocument(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}renameNode(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByClassName(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createEvent(l){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createRange(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createNodeIterator(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createTreeWalker(l,d,f){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}return Object.defineProperty(d.prototype,"implementation",{value:new m}),Object.defineProperty(d.prototype,"doctype",{get:function(){var d,f,m,te=this.children;for(f=0,m=te.length;f<m;f++)if(d=te[f],d.type===l.DocType)return d;return null}}),Object.defineProperty(d.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(d.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(d.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===l.Declaration?this.children[0].encoding:null}}),Object.defineProperty(d.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===l.Declaration?this.children[0].standalone===`yes`:!1}}),Object.defineProperty(d.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===l.Declaration?this.children[0].version:`1.0`}}),Object.defineProperty(d.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(d.prototype,"origin",{get:function(){return null}}),Object.defineProperty(d.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(d.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(d.prototype,"contentType",{get:function(){return null}}),d}).call(this)}).call(l)})),require_XMLDocumentCB=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe={}.hasOwnProperty;({isObject:ye,isFunction:ve,isPlainObject:be,getValue:_e}=require_Utility()),l=require_NodeType(),ue=require_XMLDocument(),de=require_XMLElement(),te=require_XMLCData(),re=require_XMLComment(),pe=require_XMLRaw(),ge=require_XMLText(),fe=require_XMLProcessingInstruction(),ce=require_XMLDeclaration(),le=require_XMLDocType(),ie=require_XMLDTDAttList(),oe=require_XMLDTDEntity(),ae=require_XMLDTDElement(),se=require_XMLDTDNotation(),m=require_XMLAttribute(),he=require_XMLStringifier(),me=require_XMLStringWriter(),f=require_WriterState(),d.exports=class{constructor(d,f,m){var te;this.name=`?xml`,this.type=l.Document,d||={},te={},d.writer?be(d.writer)&&(te=d.writer,d.writer=new me):d.writer=new me,this.options=d,this.writer=d.writer,this.writerOptions=this.writer.filterOptions(te),this.stringify=new he(d),this.onDataCallback=f||function(){},this.onEndCallback=m||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(d){var f,m,te,re,ie,ae,oe,se;switch(d.type){case l.CData:this.cdata(d.value);break;case l.Comment:this.comment(d.value);break;case l.Element:for(m in te={},oe=d.attribs,oe)xe.call(oe,m)&&(f=oe[m],te[m]=f.value);this.node(d.name,te);break;case l.Dummy:this.dummy();break;case l.Raw:this.raw(d.value);break;case l.Text:this.text(d.value);break;case l.ProcessingInstruction:this.instruction(d.target,d.value);break;default:throw Error(`This XML node type is not supported in a JS object: `+d.constructor.name)}for(se=d.children,ie=0,ae=se.length;ie<ae;ie++)re=se[ie],this.createChildNode(re),re.type===l.Element&&this.up();return this}dummy(){return this}node(l,d,f){if(l==null)throw Error(`Missing node name.`);if(this.root&&this.currentLevel===-1)throw Error(`Document can only have one root node. `+this.debugInfo(l));return this.openCurrent(),l=_e(l),d??={},d=_e(d),ye(d)||([f,d]=[d,f]),this.currentNode=new de(this,l,d),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,f!=null&&this.text(f),this}element(d,f,m){var te,re,ie,ae,oe,se;if(this.currentNode&&this.currentNode.type===l.DocType)this.dtdElement(...arguments);else if(Array.isArray(d)||ye(d)||ve(d))for(ae=this.options.noValidation,this.options.noValidation=!0,se=new ue(this.options).element(`TEMP_ROOT`),se.element(d),this.options.noValidation=ae,oe=se.children,re=0,ie=oe.length;re<ie;re++)te=oe[re],this.createChildNode(te),te.type===l.Element&&this.up();else this.node(d,f,m);return this}attribute(l,d){var f,te;if(!this.currentNode||this.currentNode.children)throw Error(`att() can only be used immediately after an ele() call in callback mode. `+this.debugInfo(l));if(l!=null&&(l=_e(l)),ye(l))for(f in l)xe.call(l,f)&&(te=l[f],this.attribute(f,te));else ve(d)&&(d=d.apply()),this.options.keepNullAttributes&&d==null?this.currentNode.attribs[l]=new m(this,l,``):d!=null&&(this.currentNode.attribs[l]=new m(this,l,d));return this}text(l){var d;return this.openCurrent(),d=new ge(this,l),this.onData(this.writer.text(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(l){var d;return this.openCurrent(),d=new te(this,l),this.onData(this.writer.cdata(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(l){var d;return this.openCurrent(),d=new re(this,l),this.onData(this.writer.comment(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(l){var d;return this.openCurrent(),d=new pe(this,l),this.onData(this.writer.raw(d,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(l,d){var f,m,te,re,ie;if(this.openCurrent(),l!=null&&(l=_e(l)),d!=null&&(d=_e(d)),Array.isArray(l))for(f=0,re=l.length;f<re;f++)m=l[f],this.instruction(m);else if(ye(l))for(m in l)xe.call(l,m)&&(te=l[m],this.instruction(m,te));else ve(d)&&(d=d.apply()),ie=new fe(this,l,d),this.onData(this.writer.processingInstruction(ie,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(l,d,f){var m;if(this.openCurrent(),this.documentStarted)throw Error(`declaration() must be the first node.`);return m=new ce(this,l,d,f),this.onData(this.writer.declaration(m,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(l,d,f){if(this.openCurrent(),l==null)throw Error(`Missing root node name.`);if(this.root)throw Error(`dtd() must come before the root node.`);return this.currentNode=new le(this,d,f),this.currentNode.rootNodeName=l,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(l,d){var f;return this.openCurrent(),f=new ae(this,l,d),this.onData(this.writer.dtdElement(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(l,d,f,m,te){var re;return this.openCurrent(),re=new ie(this,l,d,f,m,te),this.onData(this.writer.dtdAttList(re,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(l,d){var f;return this.openCurrent(),f=new oe(this,!1,l,d),this.onData(this.writer.dtdEntity(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(l,d){var f;return this.openCurrent(),f=new oe(this,!0,l,d),this.onData(this.writer.dtdEntity(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(l,d){var f;return this.openCurrent(),f=new se(this,l,d),this.onData(this.writer.dtdNotation(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw Error(`The document node has no parent.`);return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(d){var m,te,re,ie;if(!d.isOpen){if(!this.root&&this.currentLevel===0&&d.type===l.Element&&(this.root=d),te=``,d.type===l.Element){for(re in this.writerOptions.state=f.OpenTag,te=this.writer.indent(d,this.writerOptions,this.currentLevel)+`<`+d.name,ie=d.attribs,ie)xe.call(ie,re)&&(m=ie[re],te+=this.writer.attribute(m,this.writerOptions,this.currentLevel));te+=(d.children?`>`:`/>`)+this.writer.endline(d,this.writerOptions,this.currentLevel),this.writerOptions.state=f.InsideTag}else this.writerOptions.state=f.OpenTag,te=this.writer.indent(d,this.writerOptions,this.currentLevel)+`<!DOCTYPE `+d.rootNodeName,d.pubID&&d.sysID?te+=` PUBLIC "`+d.pubID+`" "`+d.sysID+`"`:d.sysID&&(te+=` SYSTEM "`+d.sysID+`"`),d.children?(te+=` [`,this.writerOptions.state=f.InsideTag):(this.writerOptions.state=f.CloseTag,te+=`>`),te+=this.writer.endline(d,this.writerOptions,this.currentLevel);return this.onData(te,this.currentLevel),d.isOpen=!0}}closeNode(d){var m;if(!d.isClosed)return m=``,this.writerOptions.state=f.CloseTag,m=d.type===l.Element?this.writer.indent(d,this.writerOptions,this.currentLevel)+`</`+d.name+`>`+this.writer.endline(d,this.writerOptions,this.currentLevel):this.writer.indent(d,this.writerOptions,this.currentLevel)+`]>`+this.writer.endline(d,this.writerOptions,this.currentLevel),this.writerOptions.state=f.None,this.onData(m,this.currentLevel),d.isClosed=!0}onData(l,d){return this.documentStarted=!0,this.onDataCallback(l,d+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(l){return l==null?``:`node: <`+l+`>`}ele(){return this.element(...arguments)}nod(l,d,f){return this.node(l,d,f)}txt(l){return this.text(l)}dat(l){return this.cdata(l)}com(l){return this.comment(l)}ins(l,d){return this.instruction(l,d)}dec(l,d,f){return this.declaration(l,d,f)}dtd(l,d,f){return this.doctype(l,d,f)}e(l,d,f){return this.element(l,d,f)}n(l,d,f){return this.node(l,d,f)}t(l){return this.text(l)}d(l){return this.cdata(l)}c(l){return this.comment(l)}r(l){return this.raw(l)}i(l,d){return this.instruction(l,d)}att(){return this.currentNode&&this.currentNode.type===l.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===l.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(l,d){return this.entity(l,d)}pent(l,d){return this.pEntity(l,d)}not(l,d){return this.notation(l,d)}}}).call(l)})),require_XMLStreamWriter=__commonJSMin(((l,d)=>{(function(){var l,f,m,te={}.hasOwnProperty;l=require_NodeType(),m=require_XMLWriterBase(),f=require_WriterState(),d.exports=class extends m{constructor(l,d){super(d),this.stream=l}endline(l,d,m){return l.isLastRootNode&&d.state===f.CloseTag?``:super.endline(l,d,m)}document(l,d){var f,m,te,re,ie,ae,oe=l.children,se,ce;for(m=te=0,ie=oe.length;te<ie;m=++te)f=oe[m],f.isLastRootNode=m===l.children.length-1;for(d=this.filterOptions(d),se=l.children,ce=[],re=0,ae=se.length;re<ae;re++)f=se[re],ce.push(this.writeChildNode(f,d,0));return ce}cdata(l,d,f){return this.stream.write(super.cdata(l,d,f))}comment(l,d,f){return this.stream.write(super.comment(l,d,f))}declaration(l,d,f){return this.stream.write(super.declaration(l,d,f))}docType(l,d,m){var te,re,ie,ae;if(m||=0,this.openNode(l,d,m),d.state=f.OpenTag,this.stream.write(this.indent(l,d,m)),this.stream.write(`<!DOCTYPE `+l.root().name),l.pubID&&l.sysID?this.stream.write(` PUBLIC "`+l.pubID+`" "`+l.sysID+`"`):l.sysID&&this.stream.write(` SYSTEM "`+l.sysID+`"`),l.children.length>0){for(this.stream.write(` [`),this.stream.write(this.endline(l,d,m)),d.state=f.InsideTag,ae=l.children,re=0,ie=ae.length;re<ie;re++)te=ae[re],this.writeChildNode(te,d,m+1);d.state=f.CloseTag,this.stream.write(`]`)}return d.state=f.CloseTag,this.stream.write(d.spaceBeforeSlash+`>`),this.stream.write(this.endline(l,d,m)),d.state=f.None,this.closeNode(l,d,m)}element(d,m,re){var ie,ae,oe,se,ce,le,ue,de,fe,pe,me,he,ge,_e,ve;if(re||=0,this.openNode(d,m,re),m.state=f.OpenTag,pe=this.indent(d,m,re)+`<`+d.name,m.pretty&&m.width>0)for(fe in ue=pe.length,he=d.attribs,he)te.call(he,fe)&&(ie=he[fe],me=this.attribute(ie,m,re),ae=me.length,ue+ae>m.width?(ve=this.indent(d,m,re+1)+me,pe+=this.endline(d,m,re)+ve,ue=ve.length):(ve=` `+me,pe+=ve,ue+=ve.length));else for(fe in ge=d.attribs,ge)te.call(ge,fe)&&(ie=ge[fe],pe+=this.attribute(ie,m,re));if(this.stream.write(pe),se=d.children.length,ce=se===0?null:d.children[0],se===0||d.children.every(function(d){return(d.type===l.Text||d.type===l.Raw)&&d.value===``}))m.allowEmpty?(this.stream.write(`>`),m.state=f.CloseTag,this.stream.write(`</`+d.name+`>`)):(m.state=f.CloseTag,this.stream.write(m.spaceBeforeSlash+`/>`));else if(m.pretty&&se===1&&(ce.type===l.Text||ce.type===l.Raw)&&ce.value!=null)this.stream.write(`>`),m.state=f.InsideTag,m.suppressPrettyCount++,this.writeChildNode(ce,m,re+1),m.suppressPrettyCount--,m.state=f.CloseTag,this.stream.write(`</`+d.name+`>`);else{for(this.stream.write(`>`+this.endline(d,m,re)),m.state=f.InsideTag,_e=d.children,le=0,de=_e.length;le<de;le++)oe=_e[le],this.writeChildNode(oe,m,re+1);m.state=f.CloseTag,this.stream.write(this.indent(d,m,re)+`</`+d.name+`>`)}return this.stream.write(this.endline(d,m,re)),m.state=f.None,this.closeNode(d,m,re)}processingInstruction(l,d,f){return this.stream.write(super.processingInstruction(l,d,f))}raw(l,d,f){return this.stream.write(super.raw(l,d,f))}text(l,d,f){return this.stream.write(super.text(l,d,f))}dtdAttList(l,d,f){return this.stream.write(super.dtdAttList(l,d,f))}dtdElement(l,d,f){return this.stream.write(super.dtdElement(l,d,f))}dtdEntity(l,d,f){return this.stream.write(super.dtdEntity(l,d,f))}dtdNotation(l,d,f){return this.stream.write(super.dtdNotation(l,d,f))}}}).call(l)})),require_lib$1=__commonJSMin(((l,d)=>{(function(){var l,f,m,te,re,ie,ae,oe,se;({assign:oe,isFunction:se}=require_Utility()),m=require_XMLDOMImplementation(),te=require_XMLDocument(),re=require_XMLDocumentCB(),ae=require_XMLStringWriter(),ie=require_XMLStreamWriter(),l=require_NodeType(),f=require_WriterState(),d.exports.create=function(l,d,f,m){var re,ie;if(l==null)throw Error(`Root element needs a name.`);return m=oe({},d,f,m),re=new te(m),ie=re.element(l),m.headless||(re.declaration(m),(m.pubID!=null||m.sysID!=null)&&re.dtd(m)),ie},d.exports.begin=function(l,d,f){return se(l)&&([d,f]=[l,d],l={}),d?new re(l,d,f):new te(l)},d.exports.stringWriter=function(l){return new ae(l)},d.exports.streamWriter=function(l,d){return new ie(l,d)},d.exports.implementation=new m,d.exports.nodeType=l,d.exports.writerState=f}).call(l)})),require_build$2=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.build=void 0;let f=d(require_base64_js()),m=d(require_lib$1());function te(l){function d(l){return l<10?`0`+l:l}return l.getUTCFullYear()+`-`+d(l.getUTCMonth()+1)+`-`+d(l.getUTCDate())+`T`+d(l.getUTCHours())+`:`+d(l.getUTCMinutes())+`:`+d(l.getUTCSeconds())+`Z`}let re=Object.prototype.toString;function ie(l){let d=re.call(l).match(/\[object (.*)\]/);return d&&d[1]}function ae(l,d){let f={version:`1.0`,encoding:`UTF-8`},te={pubid:`-//Apple//DTD PLIST 1.0//EN`,sysid:`http://www.apple.com/DTDs/PropertyList-1.0.dtd`},re=m.default.create(`plist`);return re.dec(f.version,f.encoding,f.standalone),re.dtd(te.pubid,te.sysid),re.att(`version`,`1.0`),oe(l,re),d||={},d.pretty=d.pretty!==!1,re.end(d)}l.build=ae;function oe(l,d){let m,re,ae,se=ie(l);if(se!=`Undefined`)if(Array.isArray(l))for(d=d.ele(`array`),re=0;re<l.length;re++)oe(l[re],d);else if(Buffer.isBuffer(l))d.ele(`data`).raw(l.toString(`base64`));else if(se==`Object`)for(ae in d=d.ele(`dict`),l)l.hasOwnProperty(ae)&&l[ae]!==void 0&&(d.ele(`key`).txt(ae),oe(l[ae],d));else se==`Number`?(m=l%1==0?`integer`:`real`,d.ele(m).txt(l.toString())):se==`Date`?d.ele(`date`).txt(te(new Date(l))):se==`Boolean`?d.ele(l?`true`:`false`):se==`String`?d.ele(`string`).txt(l):se==`ArrayBuffer`?d.ele(`data`).raw(f.default.fromByteArray(l)):l&&l.buffer&&ie(l.buffer)==`ArrayBuffer`&&d.ele(`data`).raw(f.default.fromByteArray(new Uint8Array(l.buffer)))}})),require_conventions=__commonJSMin((l=>{function d(l,d,f){if(f===void 0&&(f=Array.prototype),l&&typeof f.find==`function`)return f.find.call(l,d);for(var m=0;m<l.length;m++)if(Object.prototype.hasOwnProperty.call(l,m)){var te=l[m];if(d.call(void 0,te,m,l))return te}}function f(l,d){return d===void 0&&(d=Object),d&&typeof d.freeze==`function`?d.freeze(l):l}var m=f({HTML:`text/html`,isHTML:function(l){return l===m.HTML},XML_APPLICATION:`application/xml`,XML_TEXT:`text/xml`,XML_XHTML_APPLICATION:`application/xhtml+xml`,XML_SVG_IMAGE:`image/svg+xml`}),te=f({HTML:`http://www.w3.org/1999/xhtml`,isHTML:function(l){return l===te.HTML},SVG:`http://www.w3.org/2000/svg`,XML:`http://www.w3.org/XML/1998/namespace`,XMLNS:`http://www.w3.org/2000/xmlns/`});l.find=d,l.freeze=f,l.MIME_TYPE=m,l.NAMESPACE=te})),require_dom=__commonJSMin((l=>{var d=require_conventions(),f=d.find,m=d.NAMESPACE;function te(l){return l!==``}function re(l){return l?l.split(/[\t\n\f\r ]+/).filter(te):[]}function ie(l,d){return l.hasOwnProperty(d)||(l[d]=!0),l}function ae(l){if(!l)return[];var d=re(l);return Object.keys(d.reduce(ie,{}))}function oe(l){return function(d){return l&&l.indexOf(d)!==-1}}function se(l,d){for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(d[f]=l[f])}function ce(l,d){var f=l.prototype;if(!(f instanceof d)){function m(){}m.prototype=d.prototype,m=new m,se(f,m),l.prototype=f=m}f.constructor!=l&&(typeof l!=`function`&&console.error(`unknown Class:`+l),f.constructor=l)}var le={},ue=le.ELEMENT_NODE=1,de=le.ATTRIBUTE_NODE=2,fe=le.TEXT_NODE=3,pe=le.CDATA_SECTION_NODE=4,me=le.ENTITY_REFERENCE_NODE=5,he=le.ENTITY_NODE=6,ge=le.PROCESSING_INSTRUCTION_NODE=7,_e=le.COMMENT_NODE=8,ve=le.DOCUMENT_NODE=9,ye=le.DOCUMENT_TYPE_NODE=10,be=le.DOCUMENT_FRAGMENT_NODE=11,xe=le.NOTATION_NODE=12,Se={},Ce={};Se.INDEX_SIZE_ERR=(Ce[1]=`Index size error`,1),Se.DOMSTRING_SIZE_ERR=(Ce[2]=`DOMString size error`,2);var we=Se.HIERARCHY_REQUEST_ERR=(Ce[3]=`Hierarchy request error`,3);Se.WRONG_DOCUMENT_ERR=(Ce[4]=`Wrong document`,4),Se.INVALID_CHARACTER_ERR=(Ce[5]=`Invalid character`,5),Se.NO_DATA_ALLOWED_ERR=(Ce[6]=`No data allowed`,6),Se.NO_MODIFICATION_ALLOWED_ERR=(Ce[7]=`No modification allowed`,7);var Te=Se.NOT_FOUND_ERR=(Ce[8]=`Not found`,8);Se.NOT_SUPPORTED_ERR=(Ce[9]=`Not supported`,9);var Ee=Se.INUSE_ATTRIBUTE_ERR=(Ce[10]=`Attribute in use`,10);Se.INVALID_STATE_ERR=(Ce[11]=`Invalid state`,11),Se.SYNTAX_ERR=(Ce[12]=`Syntax error`,12),Se.INVALID_MODIFICATION_ERR=(Ce[13]=`Invalid modification`,13),Se.NAMESPACE_ERR=(Ce[14]=`Invalid namespace`,14),Se.INVALID_ACCESS_ERR=(Ce[15]=`Invalid access`,15);function De(l,d){if(d instanceof Error)var f=d;else f=this,Error.call(this,Ce[l]),this.message=Ce[l],Error.captureStackTrace&&Error.captureStackTrace(this,De);return f.code=l,d&&(this.message=this.message+`: `+d),f}De.prototype=Error.prototype,se(Se,De);function Oe(){}Oe.prototype={length:0,item:function(l){return l>=0&&l<this.length?this[l]:null},toString:function(l,d){for(var f=[],m=0;m<this.length;m++)vt(this[m],f,l,d);return f.join(``)},filter:function(l){return Array.prototype.filter.call(this,l)},indexOf:function(l){return Array.prototype.indexOf.call(this,l)}};function ke(l,d){this._node=l,this._refresh=d,Ae(this)}function Ae(l){var d=l._node._inc||l._node.ownerDocument._inc;if(l._inc!==d){var f=l._refresh(l._node);if(xt(l,`length`,f.length),!l.$$length||f.length<l.$$length)for(var m=f.length;m in l;m++)Object.prototype.hasOwnProperty.call(l,m)&&delete l[m];se(f,l),l._inc=d}}ke.prototype.item=function(l){return Ae(this),this[l]||null},ce(ke,Oe);function je(){}function Me(l,d){for(var f=l.length;f--;)if(l[f]===d)return f}function Ne(l,d,f,m){if(m?d[Me(d,m)]=f:d[d.length++]=f,l){f.ownerElement=l;var te=l.ownerDocument;te&&(m&&Ve(te,l,m),Be(te,l,f))}}function Pe(l,d,f){var m=Me(d,f);if(m>=0){for(var te=d.length-1;m<te;)d[m]=d[++m];if(d.length=te,l){var re=l.ownerDocument;re&&(Ve(re,l,f),f.ownerElement=null)}}else throw new De(Te,Error(l.tagName+`@`+f))}je.prototype={length:0,item:Oe.prototype.item,getNamedItem:function(l){for(var d=this.length;d--;){var f=this[d];if(f.nodeName==l)return f}},setNamedItem:function(l){var d=l.ownerElement;if(d&&d!=this._ownerElement)throw new De(Ee);var f=this.getNamedItem(l.nodeName);return Ne(this._ownerElement,this,l,f),f},setNamedItemNS:function(l){var d=l.ownerElement,f;if(d&&d!=this._ownerElement)throw new De(Ee);return f=this.getNamedItemNS(l.namespaceURI,l.localName),Ne(this._ownerElement,this,l,f),f},removeNamedItem:function(l){var d=this.getNamedItem(l);return Pe(this._ownerElement,this,d),d},removeNamedItemNS:function(l,d){var f=this.getNamedItemNS(l,d);return Pe(this._ownerElement,this,f),f},getNamedItemNS:function(l,d){for(var f=this.length;f--;){var m=this[f];if(m.localName==d&&m.namespaceURI==l)return m}return null}};function Fe(){}Fe.prototype={hasFeature:function(l,d){return!0},createDocument:function(l,d,f){var m=new ze;if(m.implementation=this,m.childNodes=new Oe,m.doctype=f||null,f&&m.appendChild(f),d){var te=m.createElementNS(l,d);m.appendChild(te)}return m},createDocumentType:function(l,d,f){var m=new ct;return m.name=l,m.nodeName=l,m.publicId=d||``,m.systemId=f||``,m}};function Ie(){}Ie.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(l,d){return et(this,l,d)},replaceChild:function(l,d){et(this,l,d,$e),d&&this.removeChild(d)},removeChild:function(l){return Ue(this,l)},appendChild:function(l){return this.insertBefore(l,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(l){return bt(this.ownerDocument||this,this,l)},normalize:function(){for(var l=this.firstChild;l;){var d=l.nextSibling;d&&d.nodeType==fe&&l.nodeType==fe?(this.removeChild(d),l.appendData(d.data)):(l.normalize(),l=d)}},isSupported:function(l,d){return this.ownerDocument.implementation.hasFeature(l,d)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(l){for(var d=this;d;){var f=d._nsMap;if(f){for(var m in f)if(Object.prototype.hasOwnProperty.call(f,m)&&f[m]===l)return m}d=d.nodeType==de?d.ownerDocument:d.parentNode}return null},lookupNamespaceURI:function(l){for(var d=this;d;){var f=d._nsMap;if(f&&l in f&&Object.prototype.hasOwnProperty.call(f,l))return f[l];d=d.nodeType==de?d.ownerDocument:d.parentNode}return null},isDefaultNamespace:function(l){return this.lookupPrefix(l)==null}};function Le(l){return l==`<`&&`&lt;`||l==`>`&&`&gt;`||l==`&`&&`&amp;`||l==`"`&&`&quot;`||`&#`+l.charCodeAt()+`;`}se(le,Ie),se(le,Ie.prototype);function Re(l,d){if(d(l))return!0;if(l=l.firstChild)do if(Re(l,d))return!0;while(l=l.nextSibling)}function ze(){this.ownerDocument=this}function Be(l,d,f){l&&l._inc++,f.namespaceURI===m.XMLNS&&(d._nsMap[f.prefix?f.localName:``]=f.value)}function Ve(l,d,f,te){l&&l._inc++,f.namespaceURI===m.XMLNS&&delete d._nsMap[f.prefix?f.localName:``]}function He(l,d,f){if(l&&l._inc){l._inc++;var m=d.childNodes;if(f)m[m.length++]=f;else{for(var te=d.firstChild,re=0;te;)m[re++]=te,te=te.nextSibling;m.length=re,delete m[m.length]}}}function Ue(l,d){var f=d.previousSibling,m=d.nextSibling;return f?f.nextSibling=m:l.firstChild=m,m?m.previousSibling=f:l.lastChild=f,d.parentNode=null,d.previousSibling=null,d.nextSibling=null,He(l.ownerDocument,l),d}function We(l){return l&&(l.nodeType===Ie.DOCUMENT_NODE||l.nodeType===Ie.DOCUMENT_FRAGMENT_NODE||l.nodeType===Ie.ELEMENT_NODE)}function Ge(l){return l&&(qe(l)||Je(l)||Ke(l)||l.nodeType===Ie.DOCUMENT_FRAGMENT_NODE||l.nodeType===Ie.COMMENT_NODE||l.nodeType===Ie.PROCESSING_INSTRUCTION_NODE)}function Ke(l){return l&&l.nodeType===Ie.DOCUMENT_TYPE_NODE}function qe(l){return l&&l.nodeType===Ie.ELEMENT_NODE}function Je(l){return l&&l.nodeType===Ie.TEXT_NODE}function Ye(l,d){var m=l.childNodes||[];if(f(m,qe)||Ke(d))return!1;var te=f(m,Ke);return!(d&&te&&m.indexOf(te)>m.indexOf(d))}function Xe(l,d){var m=l.childNodes||[];function te(l){return qe(l)&&l!==d}if(f(m,te))return!1;var re=f(m,Ke);return!(d&&re&&m.indexOf(re)>m.indexOf(d))}function Ze(l,d,f){if(!We(l))throw new De(we,`Unexpected parent node type `+l.nodeType);if(f&&f.parentNode!==l)throw new De(Te,`child not in parent`);if(!Ge(d)||Ke(d)&&l.nodeType!==Ie.DOCUMENT_NODE)throw new De(we,`Unexpected node type `+d.nodeType+` for parent node type `+l.nodeType)}function Qe(l,d,m){var te=l.childNodes||[],re=d.childNodes||[];if(d.nodeType===Ie.DOCUMENT_FRAGMENT_NODE){var ie=re.filter(qe);if(ie.length>1||f(re,Je))throw new De(we,`More than one element or text in fragment`);if(ie.length===1&&!Ye(l,m))throw new De(we,`Element in fragment can not be inserted before doctype`)}if(qe(d)&&!Ye(l,m))throw new De(we,`Only one element can be added and only after doctype`);if(Ke(d)){if(f(te,Ke))throw new De(we,`Only one doctype is allowed`);var ae=f(te,qe);if(m&&te.indexOf(ae)<te.indexOf(m))throw new De(we,`Doctype can only be inserted before an element`);if(!m&&ae)throw new De(we,`Doctype can not be appended since element is present`)}}function $e(l,d,m){var te=l.childNodes||[],re=d.childNodes||[];if(d.nodeType===Ie.DOCUMENT_FRAGMENT_NODE){var ie=re.filter(qe);if(ie.length>1||f(re,Je))throw new De(we,`More than one element or text in fragment`);if(ie.length===1&&!Xe(l,m))throw new De(we,`Element in fragment can not be inserted before doctype`)}if(qe(d)&&!Xe(l,m))throw new De(we,`Only one element can be added and only after doctype`);if(Ke(d)){function l(l){return Ke(l)&&l!==m}if(f(te,l))throw new De(we,`Only one doctype is allowed`);var ae=f(te,qe);if(m&&te.indexOf(ae)<te.indexOf(m))throw new De(we,`Doctype can only be inserted before an element`)}}function et(l,d,f,m){Ze(l,d,f),l.nodeType===Ie.DOCUMENT_NODE&&(m||Qe)(l,d,f);var te=d.parentNode;if(te&&te.removeChild(d),d.nodeType===be){var re=d.firstChild;if(re==null)return d;var ie=d.lastChild}else re=ie=d;var ae=f?f.previousSibling:l.lastChild;re.previousSibling=ae,ie.nextSibling=f,ae?ae.nextSibling=re:l.firstChild=re,f==null?l.lastChild=ie:f.previousSibling=ie;do re.parentNode=l;while(re!==ie&&(re=re.nextSibling));return He(l.ownerDocument||l,l),d.nodeType==be&&(d.firstChild=d.lastChild=null),d}function tt(l,d){return d.parentNode&&d.parentNode.removeChild(d),d.parentNode=l,d.previousSibling=l.lastChild,d.nextSibling=null,d.previousSibling?d.previousSibling.nextSibling=d:l.firstChild=d,l.lastChild=d,He(l.ownerDocument,l,d),d}ze.prototype={nodeName:`#document`,nodeType:ve,doctype:null,documentElement:null,_inc:1,insertBefore:function(l,d){if(l.nodeType==be){for(var f=l.firstChild;f;){var m=f.nextSibling;this.insertBefore(f,d),f=m}return l}return et(this,l,d),l.ownerDocument=this,this.documentElement===null&&l.nodeType===ue&&(this.documentElement=l),l},removeChild:function(l){return this.documentElement==l&&(this.documentElement=null),Ue(this,l)},replaceChild:function(l,d){et(this,l,d,$e),l.ownerDocument=this,d&&this.removeChild(d),qe(l)&&(this.documentElement=l)},importNode:function(l,d){return yt(this,l,d)},getElementById:function(l){var d=null;return Re(this.documentElement,function(f){if(f.nodeType==ue&&f.getAttribute(`id`)==l)return d=f,!0}),d},getElementsByClassName:function(l){var d=ae(l);return new ke(this,function(f){var m=[];return d.length>0&&Re(f.documentElement,function(te){if(te!==f&&te.nodeType===ue){var re=te.getAttribute(`class`);if(re){var ie=l===re;if(!ie){var se=ae(re);ie=d.every(oe(se))}ie&&m.push(te)}}}),m})},createElement:function(l){var d=new nt;d.ownerDocument=this,d.nodeName=l,d.tagName=l,d.localName=l,d.childNodes=new Oe;var f=d.attributes=new je;return f._ownerElement=d,d},createDocumentFragment:function(){var l=new ft;return l.ownerDocument=this,l.childNodes=new Oe,l},createTextNode:function(l){var d=new at;return d.ownerDocument=this,d.appendData(l),d},createComment:function(l){var d=new ot;return d.ownerDocument=this,d.appendData(l),d},createCDATASection:function(l){var d=new st;return d.ownerDocument=this,d.appendData(l),d},createProcessingInstruction:function(l,d){var f=new pt;return f.ownerDocument=this,f.tagName=f.nodeName=f.target=l,f.nodeValue=f.data=d,f},createAttribute:function(l){var d=new rt;return d.ownerDocument=this,d.name=l,d.nodeName=l,d.localName=l,d.specified=!0,d},createEntityReference:function(l){var d=new dt;return d.ownerDocument=this,d.nodeName=l,d},createElementNS:function(l,d){var f=new nt,m=d.split(`:`),te=f.attributes=new je;return f.childNodes=new Oe,f.ownerDocument=this,f.nodeName=d,f.tagName=d,f.namespaceURI=l,m.length==2?(f.prefix=m[0],f.localName=m[1]):f.localName=d,te._ownerElement=f,f},createAttributeNS:function(l,d){var f=new rt,m=d.split(`:`);return f.ownerDocument=this,f.nodeName=d,f.name=d,f.namespaceURI=l,f.specified=!0,m.length==2?(f.prefix=m[0],f.localName=m[1]):f.localName=d,f}},ce(ze,Ie);function nt(){this._nsMap={}}nt.prototype={nodeType:ue,hasAttribute:function(l){return this.getAttributeNode(l)!=null},getAttribute:function(l){var d=this.getAttributeNode(l);return d&&d.value||``},getAttributeNode:function(l){return this.attributes.getNamedItem(l)},setAttribute:function(l,d){var f=this.ownerDocument.createAttribute(l);f.value=f.nodeValue=``+d,this.setAttributeNode(f)},removeAttribute:function(l){var d=this.getAttributeNode(l);d&&this.removeAttributeNode(d)},appendChild:function(l){return l.nodeType===be?this.insertBefore(l,null):tt(this,l)},setAttributeNode:function(l){return this.attributes.setNamedItem(l)},setAttributeNodeNS:function(l){return this.attributes.setNamedItemNS(l)},removeAttributeNode:function(l){return this.attributes.removeNamedItem(l.nodeName)},removeAttributeNS:function(l,d){var f=this.getAttributeNodeNS(l,d);f&&this.removeAttributeNode(f)},hasAttributeNS:function(l,d){return this.getAttributeNodeNS(l,d)!=null},getAttributeNS:function(l,d){var f=this.getAttributeNodeNS(l,d);return f&&f.value||``},setAttributeNS:function(l,d,f){var m=this.ownerDocument.createAttributeNS(l,d);m.value=m.nodeValue=``+f,this.setAttributeNode(m)},getAttributeNodeNS:function(l,d){return this.attributes.getNamedItemNS(l,d)},getElementsByTagName:function(l){return new ke(this,function(d){var f=[];return Re(d,function(m){m!==d&&m.nodeType==ue&&(l===`*`||m.tagName==l)&&f.push(m)}),f})},getElementsByTagNameNS:function(l,d){return new ke(this,function(f){var m=[];return Re(f,function(te){te!==f&&te.nodeType===ue&&(l===`*`||te.namespaceURI===l)&&(d===`*`||te.localName==d)&&m.push(te)}),m})}},ze.prototype.getElementsByTagName=nt.prototype.getElementsByTagName,ze.prototype.getElementsByTagNameNS=nt.prototype.getElementsByTagNameNS,ce(nt,Ie);function rt(){}rt.prototype.nodeType=de,ce(rt,Ie);function it(){}it.prototype={data:``,substringData:function(l,d){return this.data.substring(l,l+d)},appendData:function(l){l=this.data+l,this.nodeValue=this.data=l,this.length=l.length},insertData:function(l,d){this.replaceData(l,0,d)},appendChild:function(l){throw Error(Ce[we])},deleteData:function(l,d){this.replaceData(l,d,``)},replaceData:function(l,d,f){var m=this.data.substring(0,l),te=this.data.substring(l+d);f=m+f+te,this.nodeValue=this.data=f,this.length=f.length}},ce(it,Ie);function at(){}at.prototype={nodeName:`#text`,nodeType:fe,splitText:function(l){var d=this.data,f=d.substring(l);d=d.substring(0,l),this.data=this.nodeValue=d,this.length=d.length;var m=this.ownerDocument.createTextNode(f);return this.parentNode&&this.parentNode.insertBefore(m,this.nextSibling),m}},ce(at,it);function ot(){}ot.prototype={nodeName:`#comment`,nodeType:_e},ce(ot,it);function st(){}st.prototype={nodeName:`#cdata-section`,nodeType:pe},ce(st,it);function ct(){}ct.prototype.nodeType=ye,ce(ct,Ie);function lt(){}lt.prototype.nodeType=xe,ce(lt,Ie);function ut(){}ut.prototype.nodeType=he,ce(ut,Ie);function dt(){}dt.prototype.nodeType=me,ce(dt,Ie);function ft(){}ft.prototype.nodeName=`#document-fragment`,ft.prototype.nodeType=be,ce(ft,Ie);function pt(){}pt.prototype.nodeType=ge,ce(pt,Ie);function mt(){}mt.prototype.serializeToString=function(l,d,f){return ht.call(l,d,f)},Ie.prototype.toString=ht;function ht(l,d){var f=[],m=this.nodeType==9&&this.documentElement||this,te=m.prefix,re=m.namespaceURI;if(re&&te==null){var te=m.lookupPrefix(re);if(te==null)var ie=[{namespace:re,prefix:null}]}return vt(this,f,l,d,ie),f.join(``)}function gt(l,d,f){var te=l.prefix||``,re=l.namespaceURI;if(!re||te===`xml`&&re===m.XML||re===m.XMLNS)return!1;for(var ie=f.length;ie--;){var ae=f[ie];if(ae.prefix===te)return ae.namespace!==re}return!0}function _t(l,d,f){l.push(` `,d,`="`,f.replace(/[<&"]/g,Le),`"`)}function vt(l,d,f,te,re){if(re||=[],te)if(l=te(l),l){if(typeof l==`string`){d.push(l);return}}else return;switch(l.nodeType){case ue:var ie=l.attributes,ae=ie.length,oe=l.firstChild,se=l.tagName;f=m.isHTML(l.namespaceURI)||f;var ce=se;if(!f&&!l.prefix&&l.namespaceURI){for(var le,he=0;he<ie.length;he++)if(ie.item(he).name===`xmlns`){le=ie.item(he).value;break}if(!le)for(var xe=re.length-1;xe>=0;xe--){var Se=re[xe];if(Se.prefix===``&&Se.namespace===l.namespaceURI){le=Se.namespace;break}}if(le!==l.namespaceURI)for(var xe=re.length-1;xe>=0;xe--){var Se=re[xe];if(Se.namespace===l.namespaceURI){Se.prefix&&(ce=Se.prefix+`:`+se);break}}}d.push(`<`,ce);for(var Ce=0;Ce<ae;Ce++){var we=ie.item(Ce);we.prefix==`xmlns`?re.push({prefix:we.localName,namespace:we.value}):we.nodeName==`xmlns`&&re.push({prefix:``,namespace:we.value})}for(var Ce=0;Ce<ae;Ce++){var we=ie.item(Ce);if(gt(we,f,re)){var Te=we.prefix||``,Ee=we.namespaceURI;_t(d,Te?`xmlns:`+Te:`xmlns`,Ee),re.push({prefix:Te,namespace:Ee})}vt(we,d,f,te,re)}if(se===ce&&gt(l,f,re)){var Te=l.prefix||``,Ee=l.namespaceURI;_t(d,Te?`xmlns:`+Te:`xmlns`,Ee),re.push({prefix:Te,namespace:Ee})}if(oe||f&&!/^(?:meta|link|img|br|hr|input)$/i.test(se)){if(d.push(`>`),f&&/^script$/i.test(se))for(;oe;)oe.data?d.push(oe.data):vt(oe,d,f,te,re.slice()),oe=oe.nextSibling;else for(;oe;)vt(oe,d,f,te,re.slice()),oe=oe.nextSibling;d.push(`</`,ce,`>`)}else d.push(`/>`);return;case ve:case be:for(var oe=l.firstChild;oe;)vt(oe,d,f,te,re.slice()),oe=oe.nextSibling;return;case de:return _t(d,l.name,l.value);case fe:return d.push(l.data.replace(/[<&]/g,Le).replace(/]]>/g,`]]&gt;`));case pe:return d.push(`<![CDATA[`,l.data,`]]>`);case _e:return d.push(`<!--`,l.data,`-->`);case ye:var De=l.publicId,Oe=l.systemId;if(d.push(`<!DOCTYPE `,l.name),De)d.push(` PUBLIC `,De),Oe&&Oe!=`.`&&d.push(` `,Oe),d.push(`>`);else if(Oe&&Oe!=`.`)d.push(` SYSTEM `,Oe,`>`);else{var ke=l.internalSubset;ke&&d.push(` [`,ke,`]`),d.push(`>`)}return;case ge:return d.push(`<?`,l.target,` `,l.data,`?>`);case me:return d.push(`&`,l.nodeName,`;`);default:d.push(`??`,l.nodeName)}}function yt(l,d,f){var m;switch(d.nodeType){case ue:m=d.cloneNode(!1),m.ownerDocument=l;case be:break;case de:f=!0;break}if(m||=d.cloneNode(!1),m.ownerDocument=l,m.parentNode=null,f)for(var te=d.firstChild;te;)m.appendChild(yt(l,te,f)),te=te.nextSibling;return m}function bt(l,d,f){var m=new d.constructor;for(var te in d)if(Object.prototype.hasOwnProperty.call(d,te)){var re=d[te];typeof re!=`object`&&re!=m[te]&&(m[te]=re)}switch(d.childNodes&&(m.childNodes=new Oe),m.ownerDocument=l,m.nodeType){case ue:var ie=d.attributes,ae=m.attributes=new je,oe=ie.length;ae._ownerElement=m;for(var se=0;se<oe;se++)m.setAttributeNode(bt(l,ie.item(se),!0));break;case de:f=!0}if(f)for(var ce=d.firstChild;ce;)m.appendChild(bt(l,ce,f)),ce=ce.nextSibling;return m}function xt(l,d,f){l[d]=f}try{if(Object.defineProperty){Object.defineProperty(ke.prototype,"length",{get:function(){return Ae(this),this.$$length}}),Object.defineProperty(Ie.prototype,"textContent",{get:function(){return l(this)},set:function(l){switch(this.nodeType){case ue:case be:for(;this.firstChild;)this.removeChild(this.firstChild);(l||String(l))&&this.appendChild(this.ownerDocument.createTextNode(l));break;default:this.data=l,this.value=l,this.nodeValue=l}}});function l(d){switch(d.nodeType){case ue:case be:var f=[];for(d=d.firstChild;d;)d.nodeType!==7&&d.nodeType!==8&&f.push(l(d)),d=d.nextSibling;return f.join(``);default:return d.nodeValue}}xt=function(l,d,f){l[`$$`+d]=f}}}catch{}l.DocumentType=ct,l.DOMException=De,l.DOMImplementation=Fe,l.Element=nt,l.Node=Ie,l.NodeList=Oe,l.XMLSerializer=mt})),require_entities=__commonJSMin((l=>{var d=require_conventions().freeze;l.XML_ENTITIES=d({amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`}),l.HTML_ENTITIES=d({Aacute:`Á`,aacute:`á`,Abreve:`Ă`,abreve:`ă`,ac:`∾`,acd:`∿`,acE:`∾̳`,Acirc:`Â`,acirc:`â`,acute:`´`,Acy:`А`,acy:`а`,AElig:`Æ`,aelig:`æ`,af:`⁡`,Afr:`𝔄`,afr:`𝔞`,Agrave:`À`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,Alpha:`Α`,alpha:`α`,Amacr:`Ā`,amacr:`ā`,amalg:`⨿`,AMP:`&`,amp:`&`,And:`⩓`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,Aogon:`Ą`,aogon:`ą`,Aopf:`𝔸`,aopf:`𝕒`,ap:`≈`,apacir:`⩯`,apE:`⩰`,ape:`≊`,apid:`≋`,apos:`'`,ApplyFunction:`⁡`,approx:`≈`,approxeq:`≊`,Aring:`Å`,aring:`å`,Ascr:`𝒜`,ascr:`𝒶`,Assign:`≔`,ast:`*`,asymp:`≈`,asympeq:`≍`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,awconint:`∳`,awint:`⨑`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,Backslash:`∖`,Barv:`⫧`,barvee:`⊽`,Barwed:`⌆`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,Bcy:`Б`,bcy:`б`,bdquo:`„`,becaus:`∵`,Because:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,Bernoullis:`ℬ`,Beta:`Β`,beta:`β`,beth:`ℶ`,between:`≬`,Bfr:`𝔅`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bNot:`⫭`,bnot:`⌐`,Bopf:`𝔹`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxbox:`⧉`,boxDL:`╗`,boxDl:`╖`,boxdL:`╕`,boxdl:`┐`,boxDR:`╔`,boxDr:`╓`,boxdR:`╒`,boxdr:`┌`,boxH:`═`,boxh:`─`,boxHD:`╦`,boxHd:`╤`,boxhD:`╥`,boxhd:`┬`,boxHU:`╩`,boxHu:`╧`,boxhU:`╨`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxUL:`╝`,boxUl:`╜`,boxuL:`╛`,boxul:`┘`,boxUR:`╚`,boxUr:`╙`,boxuR:`╘`,boxur:`└`,boxV:`║`,boxv:`│`,boxVH:`╬`,boxVh:`╫`,boxvH:`╪`,boxvh:`┼`,boxVL:`╣`,boxVl:`╢`,boxvL:`╡`,boxvl:`┤`,boxVR:`╠`,boxVr:`╟`,boxvR:`╞`,boxvr:`├`,bprime:`‵`,Breve:`˘`,breve:`˘`,brvbar:`¦`,Bscr:`ℬ`,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,Bumpeq:`≎`,bumpeq:`≏`,Cacute:`Ć`,cacute:`ć`,Cap:`⋒`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,CapitalDifferentialD:`ⅅ`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,Cayleys:`ℭ`,ccaps:`⩍`,Ccaron:`Č`,ccaron:`č`,Ccedil:`Ç`,ccedil:`ç`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cconint:`∰`,ccups:`⩌`,ccupssm:`⩐`,Cdot:`Ċ`,cdot:`ċ`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,CenterDot:`·`,centerdot:`·`,Cfr:`ℭ`,cfr:`𝔠`,CHcy:`Ч`,chcy:`ч`,check:`✓`,checkmark:`✓`,Chi:`Χ`,chi:`χ`,cir:`○`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,CircleDot:`⊙`,circledR:`®`,circledS:`Ⓢ`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,cirE:`⧃`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,clubs:`♣`,clubsuit:`♣`,Colon:`∷`,colon:`:`,Colone:`⩴`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,Congruent:`≡`,Conint:`∯`,conint:`∮`,ContourIntegral:`∮`,Copf:`ℂ`,copf:`𝕔`,coprod:`∐`,Coproduct:`∐`,COPY:`©`,copy:`©`,copysr:`℗`,CounterClockwiseContourIntegral:`∳`,crarr:`↵`,Cross:`⨯`,cross:`✗`,Cscr:`𝒞`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,Cup:`⋓`,cup:`∪`,cupbrcap:`⩈`,CupCap:`≍`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,Dagger:`‡`,dagger:`†`,daleth:`ℸ`,Darr:`↡`,dArr:`⇓`,darr:`↓`,dash:`‐`,Dashv:`⫤`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,Dcaron:`Ď`,dcaron:`ď`,Dcy:`Д`,dcy:`д`,DD:`ⅅ`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,DDotrahd:`⤑`,ddotseq:`⩷`,deg:`°`,Del:`∇`,Delta:`Δ`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,Dfr:`𝔇`,dfr:`𝔡`,dHar:`⥥`,dharl:`⇃`,dharr:`⇂`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,diam:`⋄`,Diamond:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,DifferentialD:`ⅆ`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,DJcy:`Ђ`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,Dopf:`𝔻`,dopf:`𝕕`,Dot:`¨`,dot:`˙`,DotDot:`⃜`,doteq:`≐`,doteqdot:`≑`,DotEqual:`≐`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,Downarrow:`⇓`,downarrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,DownTeeArrow:`↧`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,Dscr:`𝒟`,dscr:`𝒹`,DScy:`Ѕ`,dscy:`ѕ`,dsol:`⧶`,Dstrok:`Đ`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,DZcy:`Џ`,dzcy:`џ`,dzigrarr:`⟿`,Eacute:`É`,eacute:`é`,easter:`⩮`,Ecaron:`Ě`,ecaron:`ě`,ecir:`≖`,Ecirc:`Ê`,ecirc:`ê`,ecolon:`≕`,Ecy:`Э`,ecy:`э`,eDDot:`⩷`,Edot:`Ė`,eDot:`≑`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,Efr:`𝔈`,efr:`𝔢`,eg:`⪚`,Egrave:`È`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,Element:`∈`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,Emacr:`Ē`,emacr:`ē`,empty:`∅`,emptyset:`∅`,EmptySmallSquare:`◻`,emptyv:`∅`,EmptyVerySmallSquare:`▫`,emsp:` `,emsp13:` `,emsp14:` `,ENG:`Ŋ`,eng:`ŋ`,ensp:` `,Eogon:`Ę`,eogon:`ę`,Eopf:`𝔼`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,Equal:`⩵`,equals:`=`,EqualTilde:`≂`,equest:`≟`,Equilibrium:`⇌`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erarr:`⥱`,erDot:`≓`,Escr:`ℰ`,escr:`ℯ`,esdot:`≐`,Esim:`⩳`,esim:`≂`,Eta:`Η`,eta:`η`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,Exists:`∃`,expectation:`ℰ`,ExponentialE:`ⅇ`,exponentiale:`ⅇ`,fallingdotseq:`≒`,Fcy:`Ф`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,Ffr:`𝔉`,ffr:`𝔣`,filig:`fi`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,Fopf:`𝔽`,fopf:`𝕗`,ForAll:`∀`,forall:`∀`,fork:`⋔`,forkv:`⫙`,Fouriertrf:`ℱ`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,Fscr:`ℱ`,fscr:`𝒻`,gacute:`ǵ`,Gamma:`Γ`,gamma:`γ`,Gammad:`Ϝ`,gammad:`ϝ`,gap:`⪆`,Gbreve:`Ğ`,gbreve:`ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gcy:`Г`,gcy:`г`,Gdot:`Ġ`,gdot:`ġ`,gE:`≧`,ge:`≥`,gEl:`⪌`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,Gfr:`𝔊`,gfr:`𝔤`,Gg:`⋙`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,GJcy:`Ѓ`,gjcy:`ѓ`,gl:`≷`,gla:`⪥`,glE:`⪒`,glj:`⪤`,gnap:`⪊`,gnapprox:`⪊`,gnE:`≩`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,Gopf:`𝔾`,gopf:`𝕘`,grave:"`",GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,Gt:`≫`,GT:`>`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,Hacek:`ˇ`,hairsp:` `,half:`½`,hamilt:`ℋ`,HARDcy:`Ъ`,hardcy:`ъ`,hArr:`⇔`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,Hat:`^`,hbar:`ℏ`,Hcirc:`Ĥ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,Hfr:`ℌ`,hfr:`𝔥`,HilbertSpace:`ℋ`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,Hopf:`ℍ`,hopf:`𝕙`,horbar:`―`,HorizontalLine:`─`,Hscr:`ℋ`,hscr:`𝒽`,hslash:`ℏ`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,hybull:`⁃`,hyphen:`‐`,Iacute:`Í`,iacute:`í`,ic:`⁣`,Icirc:`Î`,icirc:`î`,Icy:`И`,icy:`и`,Idot:`İ`,IEcy:`Е`,iecy:`е`,iexcl:`¡`,iff:`⇔`,Ifr:`ℑ`,ifr:`𝔦`,Igrave:`Ì`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,IJlig:`IJ`,ijlig:`ij`,Im:`ℑ`,Imacr:`Ī`,imacr:`ī`,image:`ℑ`,ImaginaryI:`ⅈ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,imof:`⊷`,imped:`Ƶ`,Implies:`⇒`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,Int:`∬`,int:`∫`,intcal:`⊺`,integers:`ℤ`,Integral:`∫`,intercal:`⊺`,Intersection:`⋂`,intlarhk:`⨗`,intprod:`⨼`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,IOcy:`Ё`,iocy:`ё`,Iogon:`Į`,iogon:`į`,Iopf:`𝕀`,iopf:`𝕚`,Iota:`Ι`,iota:`ι`,iprod:`⨼`,iquest:`¿`,Iscr:`ℐ`,iscr:`𝒾`,isin:`∈`,isindot:`⋵`,isinE:`⋹`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:`⁢`,Itilde:`Ĩ`,itilde:`ĩ`,Iukcy:`І`,iukcy:`і`,Iuml:`Ï`,iuml:`ï`,Jcirc:`Ĵ`,jcirc:`ĵ`,Jcy:`Й`,jcy:`й`,Jfr:`𝔍`,jfr:`𝔧`,jmath:`ȷ`,Jopf:`𝕁`,jopf:`𝕛`,Jscr:`𝒥`,jscr:`𝒿`,Jsercy:`Ј`,jsercy:`ј`,Jukcy:`Є`,jukcy:`є`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`ķ`,Kcy:`К`,kcy:`к`,Kfr:`𝔎`,kfr:`𝔨`,kgreen:`ĸ`,KHcy:`Х`,khcy:`х`,KJcy:`Ќ`,kjcy:`ќ`,Kopf:`𝕂`,kopf:`𝕜`,Kscr:`𝒦`,kscr:`𝓀`,lAarr:`⇚`,Lacute:`Ĺ`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,Lambda:`Λ`,lambda:`λ`,Lang:`⟪`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,Laplacetrf:`ℒ`,laquo:`«`,Larr:`↞`,lArr:`⇐`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,lAtail:`⤛`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lBarr:`⤎`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,Lcaron:`Ľ`,lcaron:`ľ`,Lcedil:`Ļ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,Lcy:`Л`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,lE:`≦`,le:`≤`,LeftAngleBracket:`⟨`,LeftArrow:`←`,Leftarrow:`⇐`,leftarrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,leftarrowtail:`↢`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,LeftRightArrow:`↔`,Leftrightarrow:`⇔`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,leftthreetimes:`⋋`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,lEg:`⪋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,lessgtr:`≶`,LessLess:`⪡`,lesssim:`≲`,LessSlantEqual:`⩽`,LessTilde:`≲`,lfisht:`⥼`,lfloor:`⌊`,Lfr:`𝔏`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lHar:`⥢`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,LJcy:`Љ`,ljcy:`љ`,Ll:`⋘`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,Lleftarrow:`⇚`,llhard:`⥫`,lltri:`◺`,Lmidot:`Ŀ`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnap:`⪉`,lnapprox:`⪉`,lnE:`≨`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,LongLeftArrow:`⟵`,Longleftarrow:`⟸`,longleftarrow:`⟵`,LongLeftRightArrow:`⟷`,Longleftrightarrow:`⟺`,longleftrightarrow:`⟷`,longmapsto:`⟼`,LongRightArrow:`⟶`,Longrightarrow:`⟹`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,Lopf:`𝕃`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,Lscr:`ℒ`,lscr:`𝓁`,Lsh:`↰`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,Lstrok:`Ł`,lstrok:`ł`,Lt:`≪`,LT:`<`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,ltrPar:`⦖`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,Map:`⤅`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,Mcy:`М`,mcy:`м`,mdash:`—`,mDDot:`∺`,measuredangle:`∡`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,middot:`·`,minus:`−`,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,MinusPlus:`∓`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,Mopf:`𝕄`,mopf:`𝕞`,mp:`∓`,Mscr:`ℳ`,mscr:`𝓂`,mstpos:`∾`,Mu:`Μ`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nabla:`∇`,Nacute:`Ń`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:`ℕ`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,Ncy:`Н`,ncy:`н`,ndash:`–`,ne:`≠`,nearhk:`⤤`,neArr:`⇗`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,NegativeMediumSpace:`​`,NegativeThickSpace:`​`,NegativeThinSpace:`​`,NegativeVeryThinSpace:`​`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
45950
- `,nexist:`∄`,nexists:`∄`,Nfr:`𝔑`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,nGg:`⋙̸`,ngsim:`≵`,nGt:`≫⃒`,ngt:`≯`,ngtr:`≯`,nGtv:`≫̸`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,NJcy:`Њ`,njcy:`њ`,nlArr:`⇍`,nlarr:`↚`,nldr:`‥`,nlE:`≦̸`,nle:`≰`,nLeftarrow:`⇍`,nleftarrow:`↚`,nLeftrightarrow:`⇎`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nLl:`⋘̸`,nlsim:`≴`,nLt:`≪⃒`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nLtv:`≪̸`,nmid:`∤`,NoBreak:`⁠`,NonBreakingSpace:`\xA0`,Nopf:`ℕ`,nopf:`𝕟`,Not:`⫬`,not:`¬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,notin:`∉`,notindot:`⋵̸`,notinE:`⋹̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nRightarrow:`⇏`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,Nscr:`𝒩`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,Ntilde:`Ñ`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,Nu:`Ν`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvap:`≍⃒`,nVDash:`⊯`,nVdash:`⊮`,nvDash:`⊭`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvHarr:`⤄`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwarhk:`⤣`,nwArr:`⇖`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,Oacute:`Ó`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,Ocirc:`Ô`,ocirc:`ô`,Ocy:`О`,ocy:`о`,odash:`⊝`,Odblac:`Ő`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,OElig:`Œ`,oelig:`œ`,ofcir:`⦿`,Ofr:`𝔒`,ofr:`𝔬`,ogon:`˛`,Ograve:`Ò`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,Omacr:`Ō`,omacr:`ō`,Omega:`Ω`,omega:`ω`,Omicron:`Ο`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,Oopf:`𝕆`,oopf:`𝕠`,opar:`⦷`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,operp:`⦹`,oplus:`⊕`,Or:`⩔`,or:`∨`,orarr:`↻`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oS:`Ⓢ`,Oscr:`𝒪`,oscr:`ℴ`,Oslash:`Ø`,oslash:`ø`,osol:`⊘`,Otilde:`Õ`,otilde:`õ`,Otimes:`⨷`,otimes:`⊗`,otimesas:`⨶`,Ouml:`Ö`,ouml:`ö`,ovbar:`⌽`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,par:`∥`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,PartialD:`∂`,Pcy:`П`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,Pfr:`𝔓`,pfr:`𝔭`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,Pi:`Π`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,PlusMinus:`±`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,Poincareplane:`ℌ`,pointint:`⨕`,Popf:`ℙ`,popf:`𝕡`,pound:`£`,Pr:`⪻`,pr:`≺`,prap:`⪷`,prcue:`≼`,prE:`⪳`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,Prime:`″`,prime:`′`,primes:`ℙ`,prnap:`⪹`,prnE:`⪵`,prnsim:`⋨`,prod:`∏`,Product:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,Proportion:`∷`,Proportional:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,Pscr:`𝒫`,pscr:`𝓅`,Psi:`Ψ`,psi:`ψ`,puncsp:` `,Qfr:`𝔔`,qfr:`𝔮`,qint:`⨌`,Qopf:`ℚ`,qopf:`𝕢`,qprime:`⁗`,Qscr:`𝒬`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,QUOT:`"`,quot:`"`,rAarr:`⇛`,race:`∽̱`,Racute:`Ŕ`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,Rang:`⟫`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,Rarr:`↠`,rArr:`⇒`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,Rarrtl:`⤖`,rarrtl:`↣`,rarrw:`↝`,rAtail:`⤜`,ratail:`⤚`,ratio:`∶`,rationals:`ℚ`,RBarr:`⤐`,rBarr:`⤏`,rbarr:`⤍`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,Rcy:`Р`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,Re:`ℜ`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,rect:`▭`,REG:`®`,reg:`®`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,rfisht:`⥽`,rfloor:`⌋`,Rfr:`ℜ`,rfr:`𝔯`,rHar:`⥤`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,RightAngleBracket:`⟩`,RightArrow:`→`,Rightarrow:`⇒`,rightarrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,rightarrowtail:`↣`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,rightthreetimes:`⋌`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:`‏`,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,Ropf:`ℝ`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,RoundImplies:`⥰`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,Rrightarrow:`⇛`,rsaquo:`›`,Rscr:`ℛ`,rscr:`𝓇`,Rsh:`↱`,rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,RuleDelayed:`⧴`,ruluhar:`⥨`,rx:`℞`,Sacute:`Ś`,sacute:`ś`,sbquo:`‚`,Sc:`⪼`,sc:`≻`,scap:`⪸`,Scaron:`Š`,scaron:`š`,sccue:`≽`,scE:`⪴`,sce:`⪰`,Scedil:`Ş`,scedil:`ş`,Scirc:`Ŝ`,scirc:`ŝ`,scnap:`⪺`,scnE:`⪶`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,Scy:`С`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,searhk:`⤥`,seArr:`⇘`,searr:`↘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,Sfr:`𝔖`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,SHCHcy:`Щ`,shchcy:`щ`,SHcy:`Ш`,shcy:`ш`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,shortmid:`∣`,shortparallel:`∥`,ShortRightArrow:`→`,ShortUpArrow:`↑`,shy:`­`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,SmallCircle:`∘`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,SOFTcy:`Ь`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,Sopf:`𝕊`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,Sqrt:`√`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,Square:`□`,square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,squarf:`▪`,squf:`▪`,srarr:`→`,Sscr:`𝒮`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,Star:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,Sub:`⋐`,sub:`⊂`,subdot:`⪽`,subE:`⫅`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,Subset:`⋐`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,SubsetEqual:`⊆`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,SuchThat:`∋`,Sum:`∑`,sum:`∑`,sung:`♪`,Sup:`⋑`,sup:`⊃`,sup1:`¹`,sup2:`²`,sup3:`³`,supdot:`⪾`,supdsub:`⫘`,supE:`⫆`,supe:`⊇`,supedot:`⫄`,Superset:`⊃`,SupersetEqual:`⊇`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,Supset:`⋑`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swarhk:`⤦`,swArr:`⇙`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,Tab:` `,target:`⌖`,Tau:`Τ`,tau:`τ`,tbrk:`⎴`,Tcaron:`Ť`,tcaron:`ť`,Tcedil:`Ţ`,tcedil:`ţ`,Tcy:`Т`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,Tfr:`𝔗`,tfr:`𝔱`,there4:`∴`,Therefore:`∴`,therefore:`∴`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,ThickSpace:`  `,thinsp:` `,ThinSpace:` `,thkap:`≈`,thksim:`∼`,THORN:`Þ`,thorn:`þ`,Tilde:`∼`,tilde:`˜`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:`⊤`,topbot:`⌶`,topcir:`⫱`,Topf:`𝕋`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,TRADE:`™`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,TripleDot:`⃛`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,Tscr:`𝒯`,tscr:`𝓉`,TScy:`Ц`,tscy:`ц`,TSHcy:`Ћ`,tshcy:`ћ`,Tstrok:`Ŧ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Uacute:`Ú`,uacute:`ú`,Uarr:`↟`,uArr:`⇑`,uarr:`↑`,Uarrocir:`⥉`,Ubrcy:`Ў`,ubrcy:`ў`,Ubreve:`Ŭ`,ubreve:`ŭ`,Ucirc:`Û`,ucirc:`û`,Ucy:`У`,ucy:`у`,udarr:`⇅`,Udblac:`Ű`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,Ufr:`𝔘`,ufr:`𝔲`,Ugrave:`Ù`,ugrave:`ù`,uHar:`⥣`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,Umacr:`Ū`,umacr:`ū`,uml:`¨`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,uogon:`ų`,Uopf:`𝕌`,uopf:`𝕦`,UpArrow:`↑`,Uparrow:`⇑`,uparrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,Updownarrow:`⇕`,updownarrow:`↕`,UpEquilibrium:`⥮`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,upsi:`υ`,upsih:`ϒ`,Upsilon:`Υ`,upsilon:`υ`,UpTee:`⊥`,UpTeeArrow:`↥`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,Uring:`Ů`,uring:`ů`,urtri:`◹`,Uscr:`𝒰`,uscr:`𝓊`,utdot:`⋰`,Utilde:`Ũ`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,Uuml:`Ü`,uuml:`ü`,uwangle:`⦧`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,vArr:`⇕`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,Vbar:`⫫`,vBar:`⫨`,vBarv:`⫩`,Vcy:`В`,vcy:`в`,VDash:`⊫`,Vdash:`⊩`,vDash:`⊨`,vdash:`⊢`,Vdashl:`⫦`,Vee:`⋁`,vee:`∨`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,Verbar:`‖`,verbar:`|`,Vert:`‖`,vert:`|`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,Vopf:`𝕍`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,Vscr:`𝒱`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,Vvdash:`⊪`,vzigzag:`⦚`,Wcirc:`Ŵ`,wcirc:`ŵ`,wedbar:`⩟`,Wedge:`⋀`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,Wfr:`𝔚`,wfr:`𝔴`,Wopf:`𝕎`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,Wscr:`𝒲`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,Xfr:`𝔛`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,Xi:`Ξ`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,Xopf:`𝕏`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,Xscr:`𝒳`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,Yacute:`Ý`,yacute:`ý`,YAcy:`Я`,yacy:`я`,Ycirc:`Ŷ`,ycirc:`ŷ`,Ycy:`Ы`,ycy:`ы`,yen:`¥`,Yfr:`𝔜`,yfr:`𝔶`,YIcy:`Ї`,yicy:`ї`,Yopf:`𝕐`,yopf:`𝕪`,Yscr:`𝒴`,yscr:`𝓎`,YUcy:`Ю`,yucy:`ю`,Yuml:`Ÿ`,yuml:`ÿ`,Zacute:`Ź`,zacute:`ź`,Zcaron:`Ž`,zcaron:`ž`,Zcy:`З`,zcy:`з`,Zdot:`Ż`,zdot:`ż`,zeetrf:`ℨ`,ZeroWidthSpace:`​`,Zeta:`Ζ`,zeta:`ζ`,Zfr:`ℨ`,zfr:`𝔷`,ZHcy:`Ж`,zhcy:`ж`,zigrarr:`⇝`,Zopf:`ℤ`,zopf:`𝕫`,Zscr:`𝒵`,zscr:`𝓏`,zwj:`‍`,zwnj:`‌`}),l.entityMap=l.HTML_ENTITIES})),require_sax=__commonJSMin((l=>{var d=require_conventions().NAMESPACE,f=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=RegExp(`[\\-\\.0-9`+f.source.slice(1,-1)+`\\u00B7\\u0300-\\u036F\\u203F-\\u2040]`),te=RegExp(`^`+f.source+m.source+`*(?::`+f.source+m.source+`*)?$`),re=0,ie=1,ae=2,oe=3,se=4,ce=5,le=6,ue=7;function de(l,d){this.message=l,this.locator=d,Error.captureStackTrace&&Error.captureStackTrace(this,de)}de.prototype=Error(),de.prototype.name=de.name;function fe(){}fe.prototype={parse:function(l,d,f){var m=this.domBuilder;m.startDocument(),ye(d,d={}),pe(l,d,f,m,this.errorHandler),m.endDocument()}};function pe(l,f,m,te,re){function ie(l){if(l>65535){l-=65536;var d=55296+(l>>10),f=56320+(l&1023);return String.fromCharCode(d,f)}else return String.fromCharCode(l)}function ae(l){var d=l.slice(1,-1);return d in m?m[d]:d.charAt(0)===`#`?ie(parseInt(d.substr(1).replace(`x`,`0x`))):(re.error(`entity not found:`+l),l)}function oe(d){if(d>Ce){var f=l.substring(Ce,d).replace(/&#?\w+;/g,ae);fe&&se(Ce),te.characters(f,0,d-Ce),Ce=d}}function se(d,f){for(;d>=le&&(f=ue.exec(l));)ce=f.index,le=ce+f[0].length,fe.lineNumber++;fe.columnNumber=d-ce+1}for(var ce=0,le=0,ue=/.*(?:\r\n?|\n)|.*$/g,fe=te.locator,pe=[{currentNSMap:f}],ye={},Ce=0;;){try{var we=l.indexOf(`<`,Ce);if(we<0){if(!l.substr(Ce).match(/^\s*$/)){var Te=te.doc,Ee=Te.createTextNode(l.substr(Ce));Te.appendChild(Ee),te.currentElement=Ee}return}switch(we>Ce&&oe(we),l.charAt(we+1)){case`/`:var De=l.indexOf(`>`,we+3),Oe=l.substring(we+2,De).replace(/[ \t\n\r]+$/g,``),ke=pe.pop();De<0?(Oe=l.substring(we+2).replace(/[\s<].*/,``),re.error(`end tag name: `+Oe+` is not complete:`+ke.tagName),De=we+1+Oe.length):Oe.match(/\s</)&&(Oe=Oe.replace(/[\s<].*/,``),re.error(`end tag name: `+Oe+` maybe not complete`),De=we+1+Oe.length);var Ae=ke.localNSMap,je=ke.tagName==Oe;if(je||ke.tagName&&ke.tagName.toLowerCase()==Oe.toLowerCase()){if(te.endElement(ke.uri,ke.localName,Oe),Ae)for(var Me in Ae)Object.prototype.hasOwnProperty.call(Ae,Me)&&te.endPrefixMapping(Me);je||re.fatalError(`end tag name: `+Oe+` is not match the current start tagName:`+ke.tagName)}else pe.push(ke);De++;break;case`?`:fe&&se(we),De=xe(l,we,te);break;case`!`:fe&&se(we),De=be(l,we,te,re);break;default:fe&&se(we);var Ne=new Se,Pe=pe[pe.length-1].currentNSMap,De=he(l,we,Ne,Pe,ae,re),Fe=Ne.length;if(!Ne.closed&&ve(l,De,Ne.tagName,ye)&&(Ne.closed=!0,m.nbsp||re.warning(`unclosed xml attribute`)),fe&&Fe){for(var Ie=me(fe,{}),Le=0;Le<Fe;Le++){var Re=Ne[Le];se(Re.offset),Re.locator=me(fe,{})}te.locator=Ie,ge(Ne,te,Pe)&&pe.push(Ne),te.locator=fe}else ge(Ne,te,Pe)&&pe.push(Ne);d.isHTML(Ne.uri)&&!Ne.closed?De=_e(l,De,Ne.tagName,ae,te):De++}}catch(l){if(l instanceof de)throw l;re.error(`element parse error: `+l),De=-1}De>Ce?Ce=De:oe(Math.max(we,Ce)+1)}}function me(l,d){return d.lineNumber=l.lineNumber,d.columnNumber=l.columnNumber,d}function he(l,f,m,te,de,fe){function pe(l,d,f){m.attributeNames.hasOwnProperty(l)&&fe.fatalError(`Attribute `+l+` redefined`),m.addValue(l,d,f)}for(var me,he,ge=++f,_e=re;;){var ve=l.charAt(ge);switch(ve){case`=`:if(_e===ie)me=l.slice(f,ge),_e=oe;else if(_e===ae)_e=oe;else throw Error(`attribute equal must after attrName`);break;case`'`:case`"`:if(_e===oe||_e===ie)if(_e===ie&&(fe.warning(`attribute value must after "="`),me=l.slice(f,ge)),f=ge+1,ge=l.indexOf(ve,f),ge>0)he=l.slice(f,ge).replace(/&#?\w+;/g,de),pe(me,he,f-1),_e=ce;else throw Error(`attribute value no end '`+ve+`' match`);else if(_e==se)he=l.slice(f,ge).replace(/&#?\w+;/g,de),pe(me,he,f),fe.warning(`attribute "`+me+`" missed start quot(`+ve+`)!!`),f=ge+1,_e=ce;else throw Error(`attribute value must after "="`);break;case`/`:switch(_e){case re:m.setTagName(l.slice(f,ge));case ce:case le:case ue:_e=ue,m.closed=!0;case se:case ie:break;case ae:m.closed=!0;break;default:throw Error(`attribute invalid close char('/')`)}break;case``:return fe.error(`unexpected end of input`),_e==re&&m.setTagName(l.slice(f,ge)),ge;case`>`:switch(_e){case re:m.setTagName(l.slice(f,ge));case ce:case le:case ue:break;case se:case ie:he=l.slice(f,ge),he.slice(-1)===`/`&&(m.closed=!0,he=he.slice(0,-1));case ae:_e===ae&&(he=me),_e==se?(fe.warning(`attribute "`+he+`" missed quot(")!`),pe(me,he.replace(/&#?\w+;/g,de),f)):((!d.isHTML(te[``])||!he.match(/^(?:disabled|checked|selected)$/i))&&fe.warning(`attribute "`+he+`" missed value!! "`+he+`" instead!!`),pe(he,he,f));break;case oe:throw Error(`attribute value missed!!`)}return ge;case`€`:ve=` `;default:if(ve<=` `)switch(_e){case re:m.setTagName(l.slice(f,ge)),_e=le;break;case ie:me=l.slice(f,ge),_e=ae;break;case se:var he=l.slice(f,ge).replace(/&#?\w+;/g,de);fe.warning(`attribute "`+he+`" missed quot(")!!`),pe(me,he,f);case ce:_e=le;break}else switch(_e){case ae:m.tagName,(!d.isHTML(te[``])||!me.match(/^(?:disabled|checked|selected)$/i))&&fe.warning(`attribute "`+me+`" missed value!! "`+me+`" instead2!!`),pe(me,me,f),f=ge,_e=ie;break;case ce:fe.warning(`attribute space is required"`+me+`"!!`);case le:_e=ie,f=ge;break;case oe:_e=se,f=ge;break;case ue:throw Error(`elements closed character '/' and '>' must be connected to`)}}ge++}}function ge(l,f,m){for(var te=l.tagName,re=null,ie=l.length;ie--;){var ae=l[ie],oe=ae.qName,se=ae.value,ce=oe.indexOf(`:`);if(ce>0)var le=ae.prefix=oe.slice(0,ce),ue=oe.slice(ce+1),de=le===`xmlns`&&ue;else ue=oe,le=null,de=oe===`xmlns`&&``;ae.localName=ue,de!==!1&&(re??(re={},ye(m,m={})),m[de]=re[de]=se,ae.uri=d.XMLNS,f.startPrefixMapping(de,se))}for(var ie=l.length;ie--;){ae=l[ie];var le=ae.prefix;le&&(le===`xml`&&(ae.uri=d.XML),le!==`xmlns`&&(ae.uri=m[le||``]))}var ce=te.indexOf(`:`);ce>0?(le=l.prefix=te.slice(0,ce),ue=l.localName=te.slice(ce+1)):(le=null,ue=l.localName=te);var fe=l.uri=m[le||``];if(f.startElement(fe,ue,te,l),l.closed){if(f.endElement(fe,ue,te),re)for(le in re)Object.prototype.hasOwnProperty.call(re,le)&&f.endPrefixMapping(le)}else return l.currentNSMap=m,l.localNSMap=re,!0}function _e(l,d,f,m,te){if(/^(?:script|textarea)$/i.test(f)){var re=l.indexOf(`</`+f+`>`,d),ie=l.substring(d+1,re);if(/[&<]/.test(ie))return/^script$/i.test(f)?(te.characters(ie,0,ie.length),re):(ie=ie.replace(/&#?\w+;/g,m),te.characters(ie,0,ie.length),re)}return d+1}function ve(l,d,f,m){var te=m[f];return te??(te=l.lastIndexOf(`</`+f+`>`),te<d&&(te=l.lastIndexOf(`</`+f)),m[f]=te),te<d}function ye(l,d){for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(d[f]=l[f])}function be(l,d,f,m){switch(l.charAt(d+2)){case`-`:if(l.charAt(d+3)===`-`){var te=l.indexOf(`-->`,d+4);return te>d?(f.comment(l,d+4,te-d-4),te+3):(m.error(`Unclosed comment`),-1)}else return-1;default:if(l.substr(d+3,6)==`CDATA[`){var te=l.indexOf(`]]>`,d+9);return f.startCDATA(),f.characters(l,d+9,te-d-9),f.endCDATA(),te+3}var re=Ce(l,d),ie=re.length;if(ie>1&&/!doctype/i.test(re[0][0])){var ae=re[1][0],oe=!1,se=!1;ie>3&&(/^public$/i.test(re[2][0])?(oe=re[3][0],se=ie>4&&re[4][0]):/^system$/i.test(re[2][0])&&(se=re[3][0]));var ce=re[ie-1];return f.startDTD(ae,oe,se),f.endDTD(),ce.index+ce[0].length}}return-1}function xe(l,d,f){var m=l.indexOf(`?>`,d);if(m){var te=l.substring(d,m).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return te?(te[0].length,f.processingInstruction(te[1],te[2]),m+2):-1}return-1}function Se(){this.attributeNames={}}Se.prototype={setTagName:function(l){if(!te.test(l))throw Error(`invalid tagName:`+l);this.tagName=l},addValue:function(l,d,f){if(!te.test(l))throw Error(`invalid attribute:`+l);this.attributeNames[l]=this.length,this[this.length++]={qName:l,value:d,offset:f}},length:0,getLocalName:function(l){return this[l].localName},getLocator:function(l){return this[l].locator},getQName:function(l){return this[l].qName},getURI:function(l){return this[l].uri},getValue:function(l){return this[l].value}};function Ce(l,d){var f,m=[],te=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(te.lastIndex=d,te.exec(l);f=te.exec(l);)if(m.push(f),f[1])return m}l.XMLReader=fe,l.ParseError=de})),require_dom_parser=__commonJSMin((l=>{var d=require_conventions(),f=require_dom(),m=require_entities(),te=require_sax(),re=f.DOMImplementation,ie=d.NAMESPACE,ae=te.ParseError,oe=te.XMLReader;function se(l){this.options=l||{locator:{}}}se.prototype.parseFromString=function(l,d){var f=this.options,te=new oe,re=f.domBuilder||new le,ae=f.errorHandler,se=f.locator,ue=f.xmlns||{},de=/\/x?html?$/.test(d),fe=de?m.HTML_ENTITIES:m.XML_ENTITIES;return se&&re.setDocumentLocator(se),te.errorHandler=ce(ae,re,se),te.domBuilder=f.domBuilder||re,de&&(ue[``]=ie.HTML),ue.xml=ue.xml||ie.XML,l&&typeof l==`string`?te.parse(l,ue,fe):te.errorHandler.error(`invalid doc source`),re.doc};function ce(l,d,f){if(!l){if(d instanceof le)return d;l=d}var m={},te=l instanceof Function;f||={};function re(d){var re=l[d];!re&&te&&(re=l.length==2?function(f){l(d,f)}:l),m[d]=re&&function(l){re(`[xmldom `+d+`] `+l+de(f))}||function(){}}return re(`warning`),re(`error`),re(`fatalError`),m}function le(){this.cdata=!1}function ue(l,d){d.lineNumber=l.lineNumber,d.columnNumber=l.columnNumber}le.prototype={startDocument:function(){this.doc=new re().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(l,d,f,m){var te=this.doc,re=te.createElementNS(l,f||d),ie=m.length;pe(this,re),this.currentElement=re,this.locator&&ue(this.locator,re);for(var ae=0;ae<ie;ae++){var l=m.getURI(ae),oe=m.getValue(ae),f=m.getQName(ae),se=te.createAttributeNS(l,f);this.locator&&ue(m.getLocator(ae),se),se.value=se.nodeValue=oe,re.setAttributeNode(se)}},endElement:function(l,d,f){var m=this.currentElement;m.tagName,this.currentElement=m.parentNode},startPrefixMapping:function(l,d){},endPrefixMapping:function(l){},processingInstruction:function(l,d){var f=this.doc.createProcessingInstruction(l,d);this.locator&&ue(this.locator,f),pe(this,f)},ignorableWhitespace:function(l,d,f){},characters:function(l,d,f){if(l=fe.apply(this,arguments),l){if(this.cdata)var m=this.doc.createCDATASection(l);else var m=this.doc.createTextNode(l);this.currentElement?this.currentElement.appendChild(m):/^\s*$/.test(l)&&this.doc.appendChild(m),this.locator&&ue(this.locator,m)}},skippedEntity:function(l){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(l){(this.locator=l)&&(l.lineNumber=0)},comment:function(l,d,f){l=fe.apply(this,arguments);var m=this.doc.createComment(l);this.locator&&ue(this.locator,m),pe(this,m)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(l,d,f){var m=this.doc.implementation;if(m&&m.createDocumentType){var te=m.createDocumentType(l,d,f);this.locator&&ue(this.locator,te),pe(this,te),this.doc.doctype=te}},warning:function(l){console.warn(`[xmldom warning] `+l,de(this.locator))},error:function(l){console.error(`[xmldom error] `+l,de(this.locator))},fatalError:function(l){throw new ae(l,this.locator)}};function de(l){if(l)return`
45951
- @`+(l.systemId||``)+`#[line:`+l.lineNumber+`,col:`+l.columnNumber+`]`}function fe(l,d,f){return typeof l==`string`?l.substr(d,f):l.length>=d+f||d?new java.lang.String(l,d,f)+``:l}`endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl`.replace(/\w+/g,function(l){le.prototype[l]=function(){return null}});function pe(l,d){l.currentElement?l.currentElement.appendChild(d):l.doc.appendChild(d)}l.__DOMHandler=le,l.DOMParser=se,l.DOMImplementation=f.DOMImplementation,l.XMLSerializer=f.XMLSerializer})),require_lib=__commonJSMin((l=>{var d=require_dom();l.DOMImplementation=d.DOMImplementation,l.XMLSerializer=d.XMLSerializer,l.DOMParser=require_dom_parser().DOMParser})),require_parse=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.parse=void 0;let f=require_lib(),m=d(__require$1(`assert`)),te=3,re=4,ie=8;function ae(l){return l.nodeType===3||l.nodeType===8||l.nodeType===4}function oe(l){return!l.childNodes||l.childNodes.length===0}function se(l){let d=new f.DOMParser({errorHandler(){}}).parseFromString(l);m.default(d.documentElement.nodeName===`plist`,`malformed document. First element should be <plist>`);let te=ce(d.documentElement);return te.length==1&&(te=te[0]),te}l.parse=se;function ce(l){let d,f,te,re,ie,se;if(!l)return null;if(l.nodeName===`plist`){if(re=[],oe(l))return re;for(d=0;d<l.childNodes.length;d++)ae(l.childNodes[d])||re.push(ce(l.childNodes[d]));return re}else if(l.nodeName===`dict`){if(f={},te=null,se=0,oe(l))return f;for(d=0;d<l.childNodes.length;d++)ae(l.childNodes[d])||(se%2==0?(m.default(l.childNodes[d].nodeName===`key`,`Missing key while parsing <dict/>.`),te=ce(l.childNodes[d])):(m.default(l.childNodes[d].nodeName!==`key`,`Unexpected key "`+ce(l.childNodes[d])+`" while parsing <dict/>.`),f[te]=ce(l.childNodes[d])),se+=1);if(se%2==1)throw Error(`Missing value for "`+te+`" while parsing <dict/>`);return f}else if(l.nodeName===`array`){if(re=[],oe(l))return re;for(d=0;d<l.childNodes.length;d++)ae(l.childNodes[d])||(ie=ce(l.childNodes[d]),ie!=null&&re.push(ie));return re}else if(l.nodeName!==`#text`){if(l.nodeName===`key`)return oe(l)?``:l.childNodes[0].nodeValue;if(l.nodeName===`string`){if(ie=``,oe(l))return ie;for(d=0;d<l.childNodes.length;d++){let f=l.childNodes[d].nodeType;(f===3||f===4)&&(ie+=l.childNodes[d].nodeValue)}return ie}else if(l.nodeName===`integer`)return m.default(!oe(l),`Cannot parse "" as integer.`),parseInt(l.childNodes[0].nodeValue,10);else if(l.nodeName===`real`){for(m.default(!oe(l),`Cannot parse "" as real.`),ie=``,d=0;d<l.childNodes.length;d++)l.childNodes[d].nodeType===3&&(ie+=l.childNodes[d].nodeValue);return parseFloat(ie)}else if(l.nodeName===`data`){if(ie=``,oe(l))return Buffer.from(ie,`base64`);for(d=0;d<l.childNodes.length;d++)l.childNodes[d].nodeType===3&&(ie+=l.childNodes[d].nodeValue.replace(/\s+/g,``));return Buffer.from(ie,`base64`)}else if(l.nodeName===`date`)return m.default(!oe(l),`Cannot parse "" as Date.`),new Date(l.childNodes[0].nodeValue);else if(l.nodeName===`true`)return!0;else if(l.nodeName===`false`)return!1}}})),require_build$1=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0});let d=require_build$2();l.default={parse:require_parse().parse,build:d.build}})),require_management=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.buildManagement=l.parseManagement=void 0;let f=d(require_build$1());function m(l){let d=f.default.parse(l),m={};if(d.SchemeUserState){m.SchemeUserState={};let l=d.SchemeUserState;for(let[d,f]of Object.entries(l))m.SchemeUserState[d]=te(f)}if(d.SuppressBuildableAutocreation){m.SuppressBuildableAutocreation={};let l=d.SuppressBuildableAutocreation;for(let[d,f]of Object.entries(l))m.SuppressBuildableAutocreation[d]=re(f)}return m}l.parseManagement=m;function te(l){let d={};return typeof l.isShown==`boolean`&&(d.isShown=l.isShown),typeof l.orderHint==`number`&&(d.orderHint=l.orderHint),d}function re(l){let d={};return typeof l.primary==`boolean`&&(d.primary=l.primary),d}function ie(l){let d={};return l.SchemeUserState&&(d.SchemeUserState=l.SchemeUserState),l.SuppressBuildableAutocreation&&(d.SuppressBuildableAutocreation=l.SuppressBuildableAutocreation),f.default.build(d)}l.buildManagement=ie})),require_types$4=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0})})),require_scheme=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__exportStar||function(l,f){for(var m in l)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&d(f,l,m)};Object.defineProperty(l,"__esModule",{value:!0}),l.buildManagement=l.parseManagement=l.build=l.parse=void 0;var m=require_parser$5();Object.defineProperty(l,"parse",{enumerable:!0,get:function(){return m.parse}});var te=require_writer$5();Object.defineProperty(l,"build",{enumerable:!0,get:function(){return te.build}});var re=require_management();Object.defineProperty(l,"parseManagement",{enumerable:!0,get:function(){return re.parseManagement}}),Object.defineProperty(l,"buildManagement",{enumerable:!0,get:function(){return re.buildManagement}}),f(require_types$4(),l)})),require_XCScheme=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.createBuildableReference=l.XCScheme=void 0;let re=__require$1(`fs`),ie=te(__require$1(`path`)),ae=m(require_scheme()),oe={running:!0,testing:!0,profiling:!0,archiving:!0,analyzing:!0};l.XCScheme=class l{constructor(l,d,f){this.name=l,this.props=d,this.filePath=f}static open(d){let f=(0,re.readFileSync)(d,`utf-8`),m=ae.parse(f);return new l(ie.default.basename(d,`.xcscheme`),m,d)}static create(d,f){let m={version:`1.7`,buildAction:{parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[]},testAction:{buildConfiguration:`Debug`,selectedDebuggerIdentifier:`Xcode.DebuggerFoundation.Debugger.LLDB`,selectedLauncherIdentifier:`Xcode.DebuggerFoundation.Launcher.LLDB`,shouldUseLaunchSchemeArgsEnv:!0,testables:[]},launchAction:{buildConfiguration:`Debug`,selectedDebuggerIdentifier:`Xcode.DebuggerFoundation.Debugger.LLDB`,selectedLauncherIdentifier:`Xcode.DebuggerFoundation.Launcher.LLDB`,launchStyle:`0`,useCustomWorkingDirectory:!1,ignoresPersistentStateOnLaunch:!1,debugDocumentVersioning:!0,debugServiceExtension:`internal`,allowLocationSimulation:!0},profileAction:{buildConfiguration:`Release`,shouldUseLaunchSchemeArgsEnv:!0,savedToolIdentifier:``,useCustomWorkingDirectory:!1,debugDocumentVersioning:!0},analyzeAction:{buildConfiguration:`Debug`},archiveAction:{buildConfiguration:`Release`,revealArchiveInOrganizer:!0}};return f&&Object.assign(m,f),new l(d,m)}static createForTarget(d,f,m){let te=f??d.props.name,re=se(d,m?`container:${ie.default.basename(m)}`:`container:${ie.default.basename(d.getXcodeProject().filePath,`/project.pbxproj`)}.xcodeproj`),ae=l.create(te);return ae.addBuildTarget(re),ae.setLaunchTarget(re),ae}save(l){let d=l??this.filePath;if(!d)throw Error(`No file path specified. Either provide a path or set this.filePath.`);let f=ie.default.dirname(d);(0,re.existsSync)(f)||(0,re.mkdirSync)(f,{recursive:!0});let m=ae.build(this.props);(0,re.writeFileSync)(d,m,`utf-8`),this.filePath=d}toXML(){return ae.build(this.props)}getBuildableReference(l){let d=this.props.buildAction?.entries??[];for(let f of d)if(f.buildableReference?.blueprintIdentifier===l)return f.buildableReference;return null}addBuildTarget(l,d){if(this.props.buildAction||(this.props.buildAction={parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[]}),this.props.buildAction.entries||(this.props.buildAction.entries=[]),this.props.buildAction.entries.find(d=>d.buildableReference?.blueprintIdentifier===l.blueprintIdentifier))return;let f={...oe,...d},m={buildForRunning:f.running,buildForTesting:f.testing,buildForProfiling:f.profiling,buildForArchiving:f.archiving,buildForAnalyzing:f.analyzing,buildableReference:l};this.props.buildAction.entries.push(m)}addTestTarget(l){this.props.testAction||(this.props.testAction={buildConfiguration:`Debug`,testables:[]}),this.props.testAction.testables||(this.props.testAction.testables=[]),!this.props.testAction.testables.find(d=>d.buildableReference?.blueprintIdentifier===l.blueprintIdentifier)&&this.props.testAction.testables.push({skipped:!1,buildableReference:l})}setLaunchTarget(l){this.props.launchAction||(this.props.launchAction={buildConfiguration:`Debug`}),this.props.launchAction.buildableProductRunnable={runnableDebuggingMode:`0`,buildableReference:l},this.props.profileAction||(this.props.profileAction={buildConfiguration:`Release`}),this.props.profileAction.buildableProductRunnable={runnableDebuggingMode:`0`,buildableReference:l}}setLaunchEnvironmentVariable(l,d,f=!0){this.props.launchAction||(this.props.launchAction={buildConfiguration:`Debug`}),this.props.launchAction.environmentVariables||(this.props.launchAction.environmentVariables=[]);let m=this.props.launchAction.environmentVariables.find(d=>d.key===l);if(m){m.value=d,m.isEnabled=f;return}this.props.launchAction.environmentVariables.push({key:l,value:d,isEnabled:f})}addLaunchArgument(l,d=!0){this.props.launchAction||(this.props.launchAction={buildConfiguration:`Debug`}),this.props.launchAction.commandLineArguments||(this.props.launchAction.commandLineArguments=[]);let f=this.props.launchAction.commandLineArguments.find(d=>d.argument===l);if(f){f.isEnabled=d;return}this.props.launchAction.commandLineArguments.push({argument:l,isEnabled:d})}};function se(l,d){let f=l.props.productReference?.getDisplayName()??`${l.props.name}.app`;return{buildableIdentifier:`primary`,blueprintIdentifier:l.uuid,buildableName:f,blueprintName:l.props.name,referencedContainer:d}}l.createBuildableReference=se})),require_parser$4=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.parse=void 0;let d=require_lib$3();function f(l){let f=new d.DOMParser().parseFromString(l,`text/xml`).documentElement;if(!f||f.tagName!==`Bucket`)throw Error(`Invalid breakpoint list file: root element must be <Bucket>`);return m(f)}l.parse=f;function m(l){let d={};d.uuid=se(l,`uuid`),d.type=se(l,`type`),d.version=se(l,`version`);let f=ue(l,`Breakpoints`);return f&&(d.breakpoints=de(f,`BreakpointProxy`).map(te)),d}function te(l){let d={breakpointExtensionID:se(l,`BreakpointExtensionID`)||``},f=ue(l,`BreakpointContent`);return f&&(d.breakpointContent=re(f)),d}function re(l){let d={};d.uuid=se(l,`uuid`),d.shouldBeEnabled=ce(l,`shouldBeEnabled`),d.ignoreCount=le(l,`ignoreCount`),d.continueAfterRunningActions=ce(l,`continueAfterRunningActions`),d.filePath=se(l,`filePath`),d.startingColumnNumber=se(l,`startingColumnNumber`),d.endingColumnNumber=se(l,`endingColumnNumber`),d.startingLineNumber=se(l,`startingLineNumber`),d.endingLineNumber=se(l,`endingLineNumber`),d.landmarkName=se(l,`landmarkName`),d.landmarkType=se(l,`landmarkType`),d.condition=se(l,`condition`),d.scope=se(l,`scope`),d.symbolName=se(l,`symbolName`),d.moduleName=se(l,`moduleName`),d.exceptionType=se(l,`exceptionType`),d.stopOnStyle=se(l,`stopOnStyle`);let f=ue(l,`Actions`);f&&(d.actions=de(f,`BreakpointActionProxy`).map(ie));let m=ue(l,`Locations`);return m&&(d.locations=de(m,`BreakpointLocationProxy`).map(oe)),d}function ie(l){let d={actionExtensionID:se(l,`ActionExtensionID`)||``},f=ue(l,`ActionContent`);return f&&(d.actionContent=ae(f)),d}function ae(l){let d={};return d.consoleCommand=se(l,`consoleCommand`),d.message=se(l,`message`),d.conveyanceType=se(l,`conveyanceType`),d.shellCommand=se(l,`shellCommand`),d.shellArguments=se(l,`shellArguments`),d.waitUntilDone=ce(l,`waitUntilDone`),d.script=se(l,`script`),d.soundName=se(l,`soundName`),d}function oe(l){let d=ue(l,`BreakpointLocationContent`)||l,f={};return f.uuid=se(d,`uuid`),f.shouldBeEnabled=ce(d,`shouldBeEnabled`),f.ignoreCount=le(d,`ignoreCount`),f.continueAfterRunningActions=ce(d,`continueAfterRunningActions`),f.symbolName=se(d,`symbolName`),f.moduleName=se(d,`moduleName`),f.urlString=se(d,`urlString`),f.startingLineNumber=se(d,`startingLineNumber`),f.endingLineNumber=se(d,`endingLineNumber`),f.startingColumnNumber=se(d,`startingColumnNumber`),f.endingColumnNumber=se(d,`endingColumnNumber`),f}function se(l,d){if(l.hasAttribute(d))return l.getAttribute(d)??void 0}function ce(l,d){let f=l.getAttribute(d);if(f===`Yes`||f===`YES`)return!0;if(f===`No`||f===`NO`)return!1}function le(l,d){let f=l.getAttribute(d);if(f==null)return;let m=parseInt(f,10);return isNaN(m)?void 0:m}function ue(l,d){let f=l.childNodes;for(let l=0;l<f.length;l++){let m=f[l];if(m.nodeType===1&&m.tagName===d)return m}return null}function de(l,d){let f=[],m=l.childNodes;for(let l=0;l<m.length;l++){let te=m[l];te.nodeType===1&&te.tagName===d&&f.push(te)}return f}})),require_writer$4=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.build=void 0;function d(l){let d=[];d.push(`<?xml version="1.0" encoding="UTF-8"?>`),d.push(`<Bucket`);let te=f(l);if(d.push(...te.map(l=>` ${l}`)),d[d.length-1]+=`>`,l.breakpoints&&l.breakpoints.length>0){d.push(`${oe(1)}<Breakpoints>`);for(let f of l.breakpoints)d.push(...m(f,2));d.push(`${oe(1)}</Breakpoints>`)}return d.push(`</Bucket>`),d.join(`
45948
+ `}l.build=d;function f(l){let d=[];return l.lastUpgradeVersion!==void 0&&d.push(`LastUpgradeVersion = "${l.lastUpgradeVersion}"`),l.version!==void 0&&d.push(`version = "${l.version}"`),d}function m(l,d){let f=[],m=be(d),re=[];l.parallelizeBuildables!==void 0&&re.push(`parallelizeBuildables = "${xe(l.parallelizeBuildables)}"`),l.buildImplicitDependencies!==void 0&&re.push(`buildImplicitDependencies = "${xe(l.buildImplicitDependencies)}"`),l.runPostActionsOnFailure!==void 0&&re.push(`runPostActionsOnFailure = "${xe(l.runPostActionsOnFailure)}"`),l.buildArchitectures!==void 0&&re.push(`buildArchitectures = "${l.buildArchitectures}"`),f.push(`${m}<BuildAction`);for(let l of re)f.push(`${m} ${l}`);if(f[f.length-1]+=`>`,l.preActions&&l.preActions.length>0&&f.push(...ie(`PreActions`,l.preActions,d+1)),l.postActions&&l.postActions.length>0&&f.push(...ie(`PostActions`,l.postActions,d+1)),l.entries&&l.entries.length>0){f.push(`${be(d+1)}<BuildActionEntries>`);for(let m of l.entries)f.push(...te(m,d+2));f.push(`${be(d+1)}</BuildActionEntries>`)}return f.push(`${m}</BuildAction>`),f}function te(l,d){let f=[],m=be(d),te=[];l.buildForTesting!==void 0&&te.push(`buildForTesting = "${xe(l.buildForTesting)}"`),l.buildForRunning!==void 0&&te.push(`buildForRunning = "${xe(l.buildForRunning)}"`),l.buildForProfiling!==void 0&&te.push(`buildForProfiling = "${xe(l.buildForProfiling)}"`),l.buildForArchiving!==void 0&&te.push(`buildForArchiving = "${xe(l.buildForArchiving)}"`),l.buildForAnalyzing!==void 0&&te.push(`buildForAnalyzing = "${xe(l.buildForAnalyzing)}"`),f.push(`${m}<BuildActionEntry`);for(let l of te)f.push(`${m} ${l}`);return f[f.length-1]+=`>`,l.buildableReference&&f.push(...re(l.buildableReference,d+1)),f.push(`${m}</BuildActionEntry>`),f}function re(l,d){let f=[],m=be(d);return f.push(`${m}<BuildableReference`),f.push(`${m} BuildableIdentifier = "${l.buildableIdentifier}"`),f.push(`${m} BlueprintIdentifier = "${l.blueprintIdentifier}"`),f.push(`${m} BuildableName = "${Se(l.buildableName)}"`),f.push(`${m} BlueprintName = "${Se(l.blueprintName)}"`),f.push(`${m} ReferencedContainer = "${Se(l.referencedContainer)}">`),f.push(`${m}</BuildableReference>`),f}function ie(l,d,f){let m=[],te=be(f);m.push(`${te}<${l}>`);for(let l of d)m.push(...ae(l,f+1));return m.push(`${te}</${l}>`),m}function ae(l,d){let f=[],m=be(d);return f.push(`${m}<ExecutionAction`),l.actionType===void 0?f[f.length-1]+=`>`:f.push(`${m} ActionType = "${l.actionType}">`),l.actionContent&&f.push(...oe(l.actionContent,d+1)),f.push(`${m}</ExecutionAction>`),f}function oe(l,d){let f=[],m=be(d),te=[];l.title!==void 0&&te.push(`title = "${Se(l.title)}"`),l.scriptText!==void 0&&te.push(`scriptText = "${Se(l.scriptText)}"`),l.shellToInvoke!==void 0&&te.push(`shellToInvoke = "${l.shellToInvoke}"`),f.push(`${m}<ActionContent`);for(let l of te)f.push(`${m} ${l}`);return l.environmentBuildable?(f[f.length-1]+=`>`,f.push(`${be(d+1)}<EnvironmentBuildable>`),f.push(...re(l.environmentBuildable,d+2)),f.push(`${be(d+1)}</EnvironmentBuildable>`),f.push(`${m}</ActionContent>`)):(f[f.length-1]+=`>`,f.push(`${m}</ActionContent>`)),f}function se(l,d){let f=[],m=be(d),te=[];l.buildConfiguration!==void 0&&te.push(`buildConfiguration = "${l.buildConfiguration}"`),l.selectedDebuggerIdentifier!==void 0&&te.push(`selectedDebuggerIdentifier = "${l.selectedDebuggerIdentifier}"`),l.selectedLauncherIdentifier!==void 0&&te.push(`selectedLauncherIdentifier = "${l.selectedLauncherIdentifier}"`),l.shouldUseLaunchSchemeArgsEnv!==void 0&&te.push(`shouldUseLaunchSchemeArgsEnv = "${xe(l.shouldUseLaunchSchemeArgsEnv)}"`),l.shouldAutocreateTestPlan!==void 0&&te.push(`shouldAutocreateTestPlan = "${xe(l.shouldAutocreateTestPlan)}"`),l.preferredScreenCaptureFormat!==void 0&&te.push(`preferredScreenCaptureFormat = "${l.preferredScreenCaptureFormat}"`),l.codeCoverageEnabled!==void 0&&te.push(`codeCoverageEnabled = "${xe(l.codeCoverageEnabled)}"`),l.onlyGenerateCoverageForSpecifiedTargets!==void 0&&te.push(`onlyGenerateCoverageForSpecifiedTargets = "${xe(l.onlyGenerateCoverageForSpecifiedTargets)}"`),f.push(`${m}<TestAction`);for(let l of te)f.push(`${m} ${l}`);if(f[f.length-1]+=`>`,l.preActions&&l.preActions.length>0&&f.push(...ie(`PreActions`,l.preActions,d+1)),l.postActions&&l.postActions.length>0&&f.push(...ie(`PostActions`,l.postActions,d+1)),l.testPlans&&l.testPlans.length>0){f.push(`${be(d+1)}<TestPlans>`);for(let m of l.testPlans)f.push(...le(m,d+2));f.push(`${be(d+1)}</TestPlans>`)}if(l.macroExpansion&&(f.push(`${be(d+1)}<MacroExpansion>`),f.push(...re(l.macroExpansion,d+2)),f.push(`${be(d+1)}</MacroExpansion>`)),l.testables&&l.testables.length>0){f.push(`${be(d+1)}<Testables>`);for(let m of l.testables)f.push(...ce(m,d+2));f.push(`${be(d+1)}</Testables>`)}else l.testables!==void 0&&(f.push(`${be(d+1)}<Testables>`),f.push(`${be(d+1)}</Testables>`));return l.commandLineArguments&&l.commandLineArguments.length>0&&f.push(...ve(l.commandLineArguments,d+1)),l.environmentVariables&&l.environmentVariables.length>0&&f.push(...ye(l.environmentVariables,d+1)),f.push(`${m}</TestAction>`),f}function ce(l,d){let f=[],m=be(d),te=[];l.skipped!==void 0&&te.push(`skipped = "${xe(l.skipped)}"`),l.parallelizable!==void 0&&te.push(`parallelizable = "${xe(l.parallelizable)}"`),l.useTestSelectionWhitelist!==void 0&&te.push(`useTestSelectionWhitelist = "${xe(l.useTestSelectionWhitelist)}"`),f.push(`${m}<TestableReference`);for(let l of te)f.push(`${m} ${l}`);if(f[f.length-1]+=`>`,l.buildableReference&&f.push(...re(l.buildableReference,d+1)),l.skippedTests&&l.skippedTests.length>0){f.push(`${be(d+1)}<SkippedTests>`);for(let m of l.skippedTests)f.push(`${be(d+2)}<Test`),f.push(`${be(d+2)} Identifier = "${m.identifier}">`),f.push(`${be(d+2)}</Test>`);f.push(`${be(d+1)}</SkippedTests>`)}if(l.selectedTests&&l.selectedTests.length>0){f.push(`${be(d+1)}<SelectedTests>`);for(let m of l.selectedTests)f.push(`${be(d+2)}<Test`),f.push(`${be(d+2)} Identifier = "${m.identifier}">`),f.push(`${be(d+2)}</Test>`);f.push(`${be(d+1)}</SelectedTests>`)}return f.push(`${m}</TestableReference>`),f}function le(l,d){let f=[],m=be(d);return f.push(`${m}<TestPlanReference`),l.default!==void 0&&f.push(`${m} default = "${xe(l.default)}"`),f.push(`${m} reference = "${l.reference}">`),f.push(`${m}</TestPlanReference>`),f}function ue(l,d){let f=[],m=be(d),te=[];l.buildConfiguration!==void 0&&te.push(`buildConfiguration = "${l.buildConfiguration}"`),l.appClipInvocationURLString!==void 0&&te.push(`appClipInvocationURLString = "${Se(l.appClipInvocationURLString)}"`),l.selectedDebuggerIdentifier!==void 0&&te.push(`selectedDebuggerIdentifier = "${l.selectedDebuggerIdentifier}"`),l.selectedLauncherIdentifier!==void 0&&te.push(`selectedLauncherIdentifier = "${l.selectedLauncherIdentifier}"`),l.launchStyle!==void 0&&te.push(`launchStyle = "${l.launchStyle}"`),l.askForAppToLaunch!==void 0&&te.push(`askForAppToLaunch = "${l.askForAppToLaunch?`Yes`:`No`}"`),l.useCustomWorkingDirectory!==void 0&&te.push(`useCustomWorkingDirectory = "${xe(l.useCustomWorkingDirectory)}"`),l.customWorkingDirectory!==void 0&&te.push(`customWorkingDirectory = "${l.customWorkingDirectory}"`),l.ignoresPersistentStateOnLaunch!==void 0&&te.push(`ignoresPersistentStateOnLaunch = "${xe(l.ignoresPersistentStateOnLaunch)}"`),l.debugDocumentVersioning!==void 0&&te.push(`debugDocumentVersioning = "${xe(l.debugDocumentVersioning)}"`),l.debugServiceExtension!==void 0&&te.push(`debugServiceExtension = "${l.debugServiceExtension}"`),l.allowLocationSimulation!==void 0&&te.push(`allowLocationSimulation = "${xe(l.allowLocationSimulation)}"`),l.customLaunchCommand!==void 0&&te.push(`customLaunchCommand = "${Se(l.customLaunchCommand)}"`),l.launchAutomaticallySubstyle!==void 0&&te.push(`launchAutomaticallySubstyle = "${l.launchAutomaticallySubstyle}"`),f.push(`${m}<LaunchAction`);for(let l of te)f.push(`${m} ${l}`);return f[f.length-1]+=`>`,l.preActions&&l.preActions.length>0&&f.push(...ie(`PreActions`,l.preActions,d+1)),l.postActions&&l.postActions.length>0&&f.push(...ie(`PostActions`,l.postActions,d+1)),l.buildableProductRunnable&&f.push(...de(l.buildableProductRunnable,d+1)),l.remoteRunnable&&f.push(...fe(l.remoteRunnable,d+1)),l.macroExpansion&&(f.push(`${be(d+1)}<MacroExpansion>`),f.push(...re(l.macroExpansion,d+2)),f.push(`${be(d+1)}</MacroExpansion>`)),l.locationScenarioReference&&f.push(...pe(l.locationScenarioReference,d+1)),l.commandLineArguments&&l.commandLineArguments.length>0&&f.push(...ve(l.commandLineArguments,d+1)),l.environmentVariables&&l.environmentVariables.length>0&&f.push(...ye(l.environmentVariables,d+1)),l.storeKitConfigurationFileReference&&f.push(...me(l.storeKitConfigurationFileReference,d+1)),f.push(`${m}</LaunchAction>`),f}function de(l,d){let f=[],m=be(d);return f.push(`${m}<BuildableProductRunnable`),l.runnableDebuggingMode===void 0?f[f.length-1]+=`>`:f.push(`${m} runnableDebuggingMode = "${l.runnableDebuggingMode}">`),l.buildableReference&&f.push(...re(l.buildableReference,d+1)),f.push(`${m}</BuildableProductRunnable>`),f}function fe(l,d){let f=[],m=be(d),te=[];l.runnableDebuggingMode!==void 0&&te.push(`runnableDebuggingMode = "${l.runnableDebuggingMode}"`),l.bundleIdentifier!==void 0&&te.push(`BundleIdentifier = "${l.bundleIdentifier}"`),l.remotePath!==void 0&&te.push(`RemotePath = "${l.remotePath}"`),f.push(`${m}<RemoteRunnable`);for(let l of te)f.push(`${m} ${l}`);return f[f.length-1]+=`>`,l.buildableReference&&f.push(...re(l.buildableReference,d+1)),f.push(`${m}</RemoteRunnable>`),f}function pe(l,d){let f=[],m=be(d);return f.push(`${m}<LocationScenarioReference`),l.identifier!==void 0&&f.push(`${m} identifier = "${l.identifier}"`),l.referenceType===void 0?f[f.length-1]+=`>`:f.push(`${m} referenceType = "${l.referenceType}">`),f.push(`${m}</LocationScenarioReference>`),f}function me(l,d){let f=[],m=be(d);return f.push(`${m}<StoreKitConfigurationFileReference`),l.identifier===void 0?f[f.length-1]+=`>`:f.push(`${m} identifier = "${l.identifier}">`),f.push(`${m}</StoreKitConfigurationFileReference>`),f}function he(l,d){let f=[],m=be(d),te=[];l.askForAppToLaunch!==void 0&&te.push(`askForAppToLaunch = "${l.askForAppToLaunch?`YES`:`NO`}"`),l.buildConfiguration!==void 0&&te.push(`buildConfiguration = "${l.buildConfiguration}"`),l.appClipInvocationURLString!==void 0&&te.push(`appClipInvocationURLString = "${Se(l.appClipInvocationURLString)}"`),l.shouldUseLaunchSchemeArgsEnv!==void 0&&te.push(`shouldUseLaunchSchemeArgsEnv = "${xe(l.shouldUseLaunchSchemeArgsEnv)}"`),l.savedToolIdentifier!==void 0&&te.push(`savedToolIdentifier = "${l.savedToolIdentifier}"`),l.useCustomWorkingDirectory!==void 0&&te.push(`useCustomWorkingDirectory = "${xe(l.useCustomWorkingDirectory)}"`),l.debugDocumentVersioning!==void 0&&te.push(`debugDocumentVersioning = "${xe(l.debugDocumentVersioning)}"`),l.launchAutomaticallySubstyle!==void 0&&te.push(`launchAutomaticallySubstyle = "${l.launchAutomaticallySubstyle}"`),f.push(`${m}<ProfileAction`);for(let l of te)f.push(`${m} ${l}`);return f[f.length-1]+=`>`,l.preActions&&l.preActions.length>0&&f.push(...ie(`PreActions`,l.preActions,d+1)),l.postActions&&l.postActions.length>0&&f.push(...ie(`PostActions`,l.postActions,d+1)),l.buildableProductRunnable&&f.push(...de(l.buildableProductRunnable,d+1)),l.commandLineArguments&&l.commandLineArguments.length>0&&f.push(...ve(l.commandLineArguments,d+1)),l.environmentVariables&&l.environmentVariables.length>0&&f.push(...ye(l.environmentVariables,d+1)),f.push(`${m}</ProfileAction>`),f}function ge(l,d){let f=[],m=be(d);return f.push(`${m}<AnalyzeAction`),l.buildConfiguration===void 0?f[f.length-1]+=`>`:f.push(`${m} buildConfiguration = "${l.buildConfiguration}">`),l.preActions&&l.preActions.length>0&&f.push(...ie(`PreActions`,l.preActions,d+1)),l.postActions&&l.postActions.length>0&&f.push(...ie(`PostActions`,l.postActions,d+1)),f.push(`${m}</AnalyzeAction>`),f}function _e(l,d){let f=[],m=be(d),te=[];l.buildConfiguration!==void 0&&te.push(`buildConfiguration = "${l.buildConfiguration}"`),l.customArchiveName!==void 0&&te.push(`customArchiveName = "${Se(l.customArchiveName)}"`),l.revealArchiveInOrganizer!==void 0&&te.push(`revealArchiveInOrganizer = "${xe(l.revealArchiveInOrganizer)}"`),f.push(`${m}<ArchiveAction`);for(let l of te)f.push(`${m} ${l}`);return f[f.length-1]+=`>`,l.preActions&&l.preActions.length>0&&f.push(...ie(`PreActions`,l.preActions,d+1)),l.postActions&&l.postActions.length>0&&f.push(...ie(`PostActions`,l.postActions,d+1)),f.push(`${m}</ArchiveAction>`),f}function ve(l,d){let f=[],m=be(d);f.push(`${m}<CommandLineArguments>`);for(let m of l)f.push(`${be(d+1)}<CommandLineArgument`),f.push(`${be(d+1)} argument = "${Se(m.argument)}"`),m.isEnabled===void 0?f[f.length-1]+=`>`:f.push(`${be(d+1)} isEnabled = "${xe(m.isEnabled)}">`),f.push(`${be(d+1)}</CommandLineArgument>`);return f.push(`${m}</CommandLineArguments>`),f}function ye(l,d){let f=[],m=be(d);f.push(`${m}<EnvironmentVariables>`);for(let m of l)f.push(`${be(d+1)}<EnvironmentVariable`),f.push(`${be(d+1)} key = "${Se(m.key)}"`),f.push(`${be(d+1)} value = "${Se(m.value)}"`),m.isEnabled===void 0?f[f.length-1]+=`>`:f.push(`${be(d+1)} isEnabled = "${xe(m.isEnabled)}">`),f.push(`${be(d+1)}</EnvironmentVariable>`);return f.push(`${m}</EnvironmentVariables>`),f}function be(l){return` `.repeat(l)}function xe(l){return l?`YES`:`NO`}function Se(l){return l.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`)}})),require_base64_js=__commonJSMin((l=>{l.byteLength=oe,l.toByteArray=ce,l.fromByteArray=de;for(var d=[],f=[],m=typeof Uint8Array<`u`?Uint8Array:Array,te=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,re=0,ie=te.length;re<ie;++re)d[re]=te[re],f[te.charCodeAt(re)]=re;f[45]=62,f[95]=63;function ae(l){var d=l.length;if(d%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var f=l.indexOf(`=`);f===-1&&(f=d);var m=f===d?0:4-f%4;return[f,m]}function oe(l){var d=ae(l),f=d[0],m=d[1];return(f+m)*3/4-m}function se(l,d,f){return(d+f)*3/4-f}function ce(l){var d,te=ae(l),re=te[0],ie=te[1],oe=new m(se(l,re,ie)),ce=0,le=ie>0?re-4:re,ue;for(ue=0;ue<le;ue+=4)d=f[l.charCodeAt(ue)]<<18|f[l.charCodeAt(ue+1)]<<12|f[l.charCodeAt(ue+2)]<<6|f[l.charCodeAt(ue+3)],oe[ce++]=d>>16&255,oe[ce++]=d>>8&255,oe[ce++]=d&255;return ie===2&&(d=f[l.charCodeAt(ue)]<<2|f[l.charCodeAt(ue+1)]>>4,oe[ce++]=d&255),ie===1&&(d=f[l.charCodeAt(ue)]<<10|f[l.charCodeAt(ue+1)]<<4|f[l.charCodeAt(ue+2)]>>2,oe[ce++]=d>>8&255,oe[ce++]=d&255),oe}function le(l){return d[l>>18&63]+d[l>>12&63]+d[l>>6&63]+d[l&63]}function ue(l,d,f){for(var m,te=[],re=d;re<f;re+=3)m=(l[re]<<16&16711680)+(l[re+1]<<8&65280)+(l[re+2]&255),te.push(le(m));return te.join(``)}function de(l){for(var f,m=l.length,te=m%3,re=[],ie=16383,ae=0,oe=m-te;ae<oe;ae+=ie)re.push(ue(l,ae,ae+ie>oe?oe:ae+ie));return te===1?(f=l[m-1],re.push(d[f>>2]+d[f<<4&63]+`==`)):te===2&&(f=(l[m-2]<<8)+l[m-1],re.push(d[f>>10]+d[f>>4&63]+d[f<<2&63]+`=`)),re.join(``)}})),require_build$2=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.build=ae;let f=d(require_base64_js()),m=d(require_lib$1());function te(l){function d(l){return l<10?`0`+l:l}return l.getUTCFullYear()+`-`+d(l.getUTCMonth()+1)+`-`+d(l.getUTCDate())+`T`+d(l.getUTCHours())+`:`+d(l.getUTCMinutes())+`:`+d(l.getUTCSeconds())+`Z`}let re=Object.prototype.toString;function ie(l){let d=re.call(l).match(/\[object (.*)\]/);return d&&d[1]}function ae(l,d){let f={version:`1.0`,encoding:`UTF-8`},te={pubid:`-//Apple//DTD PLIST 1.0//EN`,sysid:`http://www.apple.com/DTDs/PropertyList-1.0.dtd`},re=m.default.create(`plist`);return re.dec(f.version,f.encoding,f.standalone),re.dtd(te.pubid,te.sysid),re.att(`version`,`1.0`),oe(l,re),d||={},d.pretty=d.pretty!==!1,re.end(d)}function oe(l,d){let m,re,ae,se=ie(l);if(se!==`Undefined`)if(Array.isArray(l))for(d=d.ele(`array`),re=0;re<l.length;re++)oe(l[re],d);else if(Buffer.isBuffer(l))d.ele(`data`).raw(l.toString(`base64`));else if(se===`Object`)for(ae in d=d.ele(`dict`),l)Object.prototype.hasOwnProperty.call(l,ae)&&l[ae]!==void 0&&(d.ele(`key`).txt(ae),oe(l[ae],d));else se===`Number`?(m=l%1==0?`integer`:`real`,d.ele(m).txt(l.toString())):se===`Date`?d.ele(`date`).txt(te(new Date(l))):se===`Boolean`?d.ele(l?`true`:`false`):se===`String`?d.ele(`string`).txt(l):se===`ArrayBuffer`?d.ele(`data`).raw(f.default.fromByteArray(l)):l&&l.buffer&&ie(l.buffer)===`ArrayBuffer`&&d.ele(`data`).raw(f.default.fromByteArray(new Uint8Array(l.buffer)))}})),require_conventions=__commonJSMin((l=>{function d(l,d,f){if(f===void 0&&(f=Array.prototype),l&&typeof f.find==`function`)return f.find.call(l,d);for(var m=0;m<l.length;m++)if(Object.prototype.hasOwnProperty.call(l,m)){var te=l[m];if(d.call(void 0,te,m,l))return te}}function f(l,d){return d===void 0&&(d=Object),d&&typeof d.freeze==`function`?d.freeze(l):l}function m(l,d){if(typeof l!=`object`||!l)throw TypeError(`target is not an object`);for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(l[f]=d[f]);return l}var te=f({HTML:`text/html`,isHTML:function(l){return l===te.HTML},XML_APPLICATION:`application/xml`,XML_TEXT:`text/xml`,XML_XHTML_APPLICATION:`application/xhtml+xml`,XML_SVG_IMAGE:`image/svg+xml`}),re=f({HTML:`http://www.w3.org/1999/xhtml`,isHTML:function(l){return l===re.HTML},SVG:`http://www.w3.org/2000/svg`,XML:`http://www.w3.org/XML/1998/namespace`,XMLNS:`http://www.w3.org/2000/xmlns/`});l.assign=m,l.find=d,l.freeze=f,l.MIME_TYPE=te,l.NAMESPACE=re})),require_dom=__commonJSMin((l=>{var d=require_conventions(),f=d.find,m=d.NAMESPACE;function te(l){return l!==``}function re(l){return l?l.split(/[\t\n\f\r ]+/).filter(te):[]}function ie(l,d){return l.hasOwnProperty(d)||(l[d]=!0),l}function ae(l){if(!l)return[];var d=re(l);return Object.keys(d.reduce(ie,{}))}function oe(l){return function(d){return l&&l.indexOf(d)!==-1}}function se(l,d){for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(d[f]=l[f])}function ce(l,d){var f=l.prototype;if(!(f instanceof d)){function m(){}m.prototype=d.prototype,m=new m,se(f,m),l.prototype=f=m}f.constructor!=l&&(typeof l!=`function`&&console.error(`unknown Class:`+l),f.constructor=l)}var le={},ue=le.ELEMENT_NODE=1,de=le.ATTRIBUTE_NODE=2,fe=le.TEXT_NODE=3,pe=le.CDATA_SECTION_NODE=4,me=le.ENTITY_REFERENCE_NODE=5,he=le.ENTITY_NODE=6,ge=le.PROCESSING_INSTRUCTION_NODE=7,_e=le.COMMENT_NODE=8,ve=le.DOCUMENT_NODE=9,ye=le.DOCUMENT_TYPE_NODE=10,be=le.DOCUMENT_FRAGMENT_NODE=11,xe=le.NOTATION_NODE=12,Se={},Ce={};Se.INDEX_SIZE_ERR=(Ce[1]=`Index size error`,1),Se.DOMSTRING_SIZE_ERR=(Ce[2]=`DOMString size error`,2);var we=Se.HIERARCHY_REQUEST_ERR=(Ce[3]=`Hierarchy request error`,3);Se.WRONG_DOCUMENT_ERR=(Ce[4]=`Wrong document`,4);var Te=Se.INVALID_CHARACTER_ERR=(Ce[5]=`Invalid character`,5);Se.NO_DATA_ALLOWED_ERR=(Ce[6]=`No data allowed`,6),Se.NO_MODIFICATION_ALLOWED_ERR=(Ce[7]=`No modification allowed`,7);var Ee=Se.NOT_FOUND_ERR=(Ce[8]=`Not found`,8);Se.NOT_SUPPORTED_ERR=(Ce[9]=`Not supported`,9);var De=Se.INUSE_ATTRIBUTE_ERR=(Ce[10]=`Attribute in use`,10),Oe=Se.INVALID_STATE_ERR=(Ce[11]=`Invalid state`,11);Se.SYNTAX_ERR=(Ce[12]=`Syntax error`,12),Se.INVALID_MODIFICATION_ERR=(Ce[13]=`Invalid modification`,13),Se.NAMESPACE_ERR=(Ce[14]=`Invalid namespace`,14),Se.INVALID_ACCESS_ERR=(Ce[15]=`Invalid access`,15);function ke(l,d){if(d instanceof Error)var f=d;else f=this,Error.call(this,Ce[l]),this.message=Ce[l],Error.captureStackTrace&&Error.captureStackTrace(this,ke);return f.code=l,d&&(this.message=this.message+`: `+d),f}ke.prototype=Error.prototype,se(Se,ke);function Ae(){}Ae.prototype={length:0,item:function(l){return l>=0&&l<this.length?this[l]:null},toString:function(l,d,f){for(var m=!!f&&!!f.requireWellFormed,te=[],re=0;re<this.length;re++)St(this[re],te,l,d,null,m);return te.join(``)},filter:function(l){return Array.prototype.filter.call(this,l)},indexOf:function(l){return Array.prototype.indexOf.call(this,l)}};function je(l,d){this._node=l,this._refresh=d,Me(this)}function Me(l){var d=l._node._inc||l._node.ownerDocument._inc;if(l._inc!==d){var f=l._refresh(l._node);if(Tt(l,`length`,f.length),!l.$$length||f.length<l.$$length)for(var m=f.length;m in l;m++)Object.prototype.hasOwnProperty.call(l,m)&&delete l[m];se(f,l),l._inc=d}}je.prototype.item=function(l){return Me(this),this[l]||null},ce(je,Ae);function Ne(){}function Pe(l,d){for(var f=l.length;f--;)if(l[f]===d)return f}function Fe(l,d,f,m){if(m?d[Pe(d,m)]=f:d[d.length++]=f,l){f.ownerElement=l;var te=l.ownerDocument;te&&(m&&We(te,l,m),Ue(te,l,f))}}function Ie(l,d,f){var m=Pe(d,f);if(m>=0){for(var te=d.length-1;m<te;)d[m]=d[++m];if(d.length=te,l){var re=l.ownerDocument;re&&(We(re,l,f),f.ownerElement=null)}}else throw new ke(Ee,Error(l.tagName+`@`+f))}Ne.prototype={length:0,item:Ae.prototype.item,getNamedItem:function(l){for(var d=this.length;d--;){var f=this[d];if(f.nodeName==l)return f}},setNamedItem:function(l){var d=l.ownerElement;if(d&&d!=this._ownerElement)throw new ke(De);var f=this.getNamedItem(l.nodeName);return Fe(this._ownerElement,this,l,f),f},setNamedItemNS:function(l){var d=l.ownerElement,f;if(d&&d!=this._ownerElement)throw new ke(De);return f=this.getNamedItemNS(l.namespaceURI,l.localName),Fe(this._ownerElement,this,l,f),f},removeNamedItem:function(l){var d=this.getNamedItem(l);return Ie(this._ownerElement,this,d),d},removeNamedItemNS:function(l,d){var f=this.getNamedItemNS(l,d);return Ie(this._ownerElement,this,f),f},getNamedItemNS:function(l,d){for(var f=this.length;f--;){var m=this[f];if(m.localName==d&&m.namespaceURI==l)return m}return null}};function Le(){}Le.prototype={hasFeature:function(l,d){return!0},createDocument:function(l,d,f){var m=new He;if(m.implementation=this,m.childNodes=new Ae,m.doctype=f||null,f&&m.appendChild(f),d){var te=m.createElementNS(l,d);m.appendChild(te)}return m},createDocumentType:function(l,d,f){var m=new ft;return m.name=l,m.nodeName=l,m.publicId=d||``,m.systemId=f||``,m}};function Re(){}Re.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(l,d){return rt(this,l,d)},replaceChild:function(l,d){rt(this,l,d,nt),d&&this.removeChild(d)},removeChild:function(l){return Ke(this,l)},appendChild:function(l){return this.insertBefore(l,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(l){return wt(this.ownerDocument||this,this,l)},normalize:function(){Ve(this,null,{enter:function(l){for(var d=l.firstChild;d;){var f=d.nextSibling;f!==null&&f.nodeType===fe&&d.nodeType===fe?(l.removeChild(f),d.appendData(f.data)):d=f}return!0}})},isSupported:function(l,d){return this.ownerDocument.implementation.hasFeature(l,d)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(l){for(var d=this;d;){var f=d._nsMap;if(f){for(var m in f)if(Object.prototype.hasOwnProperty.call(f,m)&&f[m]===l)return m}d=d.nodeType==de?d.ownerDocument:d.parentNode}return null},lookupNamespaceURI:function(l){for(var d=this;d;){var f=d._nsMap;if(f&&Object.prototype.hasOwnProperty.call(f,l))return f[l];d=d.nodeType==de?d.ownerDocument:d.parentNode}return null},isDefaultNamespace:function(l){return this.lookupPrefix(l)==null}};function ze(l){return l==`<`&&`&lt;`||l==`>`&&`&gt;`||l==`&`&&`&amp;`||l==`"`&&`&quot;`||`&#`+l.charCodeAt()+`;`}se(le,Re),se(le,Re.prototype);function Be(l,d){return Ve(l,null,{enter:function(l){return d(l)?Ve.STOP:!0}})===Ve.STOP}function Ve(l,d,f){for(var m=[{node:l,context:d,phase:Ve.ENTER}];m.length>0;){var te=m.pop();if(te.phase===Ve.ENTER){var re=f.enter(te.node,te.context);if(re===Ve.STOP)return Ve.STOP;if(m.push({node:te.node,context:re,phase:Ve.EXIT}),re==null)continue;for(var ie=te.node.lastChild;ie;)m.push({node:ie,context:re,phase:Ve.ENTER}),ie=ie.previousSibling}else f.exit&&f.exit(te.node,te.context)}}Ve.STOP=Symbol(`walkDOM.STOP`),Ve.ENTER=0,Ve.EXIT=1;function He(){this.ownerDocument=this}function Ue(l,d,f){l&&l._inc++,f.namespaceURI===m.XMLNS&&(d._nsMap[f.prefix?f.localName:``]=f.value)}function We(l,d,f,te){l&&l._inc++,f.namespaceURI===m.XMLNS&&delete d._nsMap[f.prefix?f.localName:``]}function Ge(l,d,f){if(l&&l._inc){l._inc++;var m=d.childNodes;if(f)m[m.length++]=f;else{for(var te=d.firstChild,re=0;te;)m[re++]=te,te=te.nextSibling;m.length=re,delete m[m.length]}}}function Ke(l,d){var f=d.previousSibling,m=d.nextSibling;return f?f.nextSibling=m:l.firstChild=m,m?m.previousSibling=f:l.lastChild=f,d.parentNode=null,d.previousSibling=null,d.nextSibling=null,Ge(l.ownerDocument,l),d}function qe(l){return l&&(l.nodeType===Re.DOCUMENT_NODE||l.nodeType===Re.DOCUMENT_FRAGMENT_NODE||l.nodeType===Re.ELEMENT_NODE)}function Je(l){return l&&(Xe(l)||Ze(l)||Ye(l)||l.nodeType===Re.DOCUMENT_FRAGMENT_NODE||l.nodeType===Re.COMMENT_NODE||l.nodeType===Re.PROCESSING_INSTRUCTION_NODE)}function Ye(l){return l&&l.nodeType===Re.DOCUMENT_TYPE_NODE}function Xe(l){return l&&l.nodeType===Re.ELEMENT_NODE}function Ze(l){return l&&l.nodeType===Re.TEXT_NODE}function Qe(l,d){var m=l.childNodes||[];if(f(m,Xe)||Ye(d))return!1;var te=f(m,Ye);return!(d&&te&&m.indexOf(te)>m.indexOf(d))}function $e(l,d){var m=l.childNodes||[];function te(l){return Xe(l)&&l!==d}if(f(m,te))return!1;var re=f(m,Ye);return!(d&&re&&m.indexOf(re)>m.indexOf(d))}function et(l,d,f){if(!qe(l))throw new ke(we,`Unexpected parent node type `+l.nodeType);if(f&&f.parentNode!==l)throw new ke(Ee,`child not in parent`);if(!Je(d)||Ye(d)&&l.nodeType!==Re.DOCUMENT_NODE)throw new ke(we,`Unexpected node type `+d.nodeType+` for parent node type `+l.nodeType)}function tt(l,d,m){var te=l.childNodes||[],re=d.childNodes||[];if(d.nodeType===Re.DOCUMENT_FRAGMENT_NODE){var ie=re.filter(Xe);if(ie.length>1||f(re,Ze))throw new ke(we,`More than one element or text in fragment`);if(ie.length===1&&!Qe(l,m))throw new ke(we,`Element in fragment can not be inserted before doctype`)}if(Xe(d)&&!Qe(l,m))throw new ke(we,`Only one element can be added and only after doctype`);if(Ye(d)){if(f(te,Ye))throw new ke(we,`Only one doctype is allowed`);var ae=f(te,Xe);if(m&&te.indexOf(ae)<te.indexOf(m))throw new ke(we,`Doctype can only be inserted before an element`);if(!m&&ae)throw new ke(we,`Doctype can not be appended since element is present`)}}function nt(l,d,m){var te=l.childNodes||[],re=d.childNodes||[];if(d.nodeType===Re.DOCUMENT_FRAGMENT_NODE){var ie=re.filter(Xe);if(ie.length>1||f(re,Ze))throw new ke(we,`More than one element or text in fragment`);if(ie.length===1&&!$e(l,m))throw new ke(we,`Element in fragment can not be inserted before doctype`)}if(Xe(d)&&!$e(l,m))throw new ke(we,`Only one element can be added and only after doctype`);if(Ye(d)){function l(l){return Ye(l)&&l!==m}if(f(te,l))throw new ke(we,`Only one doctype is allowed`);var ae=f(te,Xe);if(m&&te.indexOf(ae)<te.indexOf(m))throw new ke(we,`Doctype can only be inserted before an element`)}}function rt(l,d,f,m){et(l,d,f),l.nodeType===Re.DOCUMENT_NODE&&(m||tt)(l,d,f);var te=d.parentNode;if(te&&te.removeChild(d),d.nodeType===be){var re=d.firstChild;if(re==null)return d;var ie=d.lastChild}else re=ie=d;var ae=f?f.previousSibling:l.lastChild;re.previousSibling=ae,ie.nextSibling=f,ae?ae.nextSibling=re:l.firstChild=re,f==null?l.lastChild=ie:f.previousSibling=ie;do{re.parentNode=l;var oe=l.ownerDocument||l;it(re,oe)}while(re!==ie&&(re=re.nextSibling));return Ge(l.ownerDocument||l,l),d.nodeType==be&&(d.firstChild=d.lastChild=null),d}function it(l,d){if(l.ownerDocument!==d){if(l.ownerDocument=d,l.nodeType===ue&&l.attributes)for(var f=0;f<l.attributes.length;f++){var m=l.attributes.item(f);m&&(m.ownerDocument=d)}for(var te=l.firstChild;te;)it(te,d),te=te.nextSibling}}function at(l,d){return d.parentNode&&d.parentNode.removeChild(d),d.parentNode=l,d.previousSibling=l.lastChild,d.nextSibling=null,d.previousSibling?d.previousSibling.nextSibling=d:l.firstChild=d,l.lastChild=d,Ge(l.ownerDocument,l,d),it(d,l.ownerDocument||l),d}He.prototype={nodeName:`#document`,nodeType:ve,doctype:null,documentElement:null,_inc:1,insertBefore:function(l,d){if(l.nodeType==be){for(var f=l.firstChild;f;){var m=f.nextSibling;this.insertBefore(f,d),f=m}return l}return rt(this,l,d),it(l,this),this.documentElement===null&&l.nodeType===ue&&(this.documentElement=l),l},removeChild:function(l){return this.documentElement==l&&(this.documentElement=null),Ke(this,l)},replaceChild:function(l,d){rt(this,l,d,nt),it(l,this),d&&this.removeChild(d),Xe(l)&&(this.documentElement=l)},importNode:function(l,d){return Ct(this,l,d)},getElementById:function(l){var d=null;return Be(this.documentElement,function(f){if(f.nodeType==ue&&f.getAttribute(`id`)==l)return d=f,!0}),d},getElementsByClassName:function(l){var d=ae(l);return new je(this,function(f){var m=[];return d.length>0&&Be(f.documentElement,function(te){if(te!==f&&te.nodeType===ue){var re=te.getAttribute(`class`);if(re){var ie=l===re;if(!ie){var se=ae(re);ie=d.every(oe(se))}ie&&m.push(te)}}}),m})},createElement:function(l){var d=new ot;d.ownerDocument=this,d.nodeName=l,d.tagName=l,d.localName=l,d.childNodes=new Ae;var f=d.attributes=new Ne;return f._ownerElement=d,d},createDocumentFragment:function(){var l=new gt;return l.ownerDocument=this,l.childNodes=new Ae,l},createTextNode:function(l){var d=new lt;return d.ownerDocument=this,d.appendData(l),d},createComment:function(l){var d=new ut;return d.ownerDocument=this,d.appendData(l),d},createCDATASection:function(l){if(l.indexOf(`]]>`)!==-1)throw new ke(Te,`data contains "]]>"`);var d=new dt;return d.ownerDocument=this,d.appendData(l),d},createProcessingInstruction:function(l,d){var f=new _t;return f.ownerDocument=this,f.tagName=f.nodeName=f.target=l,f.nodeValue=f.data=d,f},createAttribute:function(l){var d=new st;return d.ownerDocument=this,d.name=l,d.nodeName=l,d.localName=l,d.specified=!0,d},createEntityReference:function(l){var d=new ht;return d.ownerDocument=this,d.nodeName=l,d},createElementNS:function(l,d){var f=new ot,m=d.split(`:`),te=f.attributes=new Ne;return f.childNodes=new Ae,f.ownerDocument=this,f.nodeName=d,f.tagName=d,f.namespaceURI=l,m.length==2?(f.prefix=m[0],f.localName=m[1]):f.localName=d,te._ownerElement=f,f},createAttributeNS:function(l,d){var f=new st,m=d.split(`:`);return f.ownerDocument=this,f.nodeName=d,f.name=d,f.namespaceURI=l,f.specified=!0,m.length==2?(f.prefix=m[0],f.localName=m[1]):f.localName=d,f}},ce(He,Re);function ot(){this._nsMap={}}ot.prototype={nodeType:ue,hasAttribute:function(l){return this.getAttributeNode(l)!=null},getAttribute:function(l){var d=this.getAttributeNode(l);return d&&d.value||``},getAttributeNode:function(l){return this.attributes.getNamedItem(l)},setAttribute:function(l,d){var f=this.ownerDocument.createAttribute(l);f.value=f.nodeValue=``+d,this.setAttributeNode(f)},removeAttribute:function(l){var d=this.getAttributeNode(l);d&&this.removeAttributeNode(d)},appendChild:function(l){return l.nodeType===be?this.insertBefore(l,null):at(this,l)},setAttributeNode:function(l){return this.attributes.setNamedItem(l)},setAttributeNodeNS:function(l){return this.attributes.setNamedItemNS(l)},removeAttributeNode:function(l){return this.attributes.removeNamedItem(l.nodeName)},removeAttributeNS:function(l,d){var f=this.getAttributeNodeNS(l,d);f&&this.removeAttributeNode(f)},hasAttributeNS:function(l,d){return this.getAttributeNodeNS(l,d)!=null},getAttributeNS:function(l,d){var f=this.getAttributeNodeNS(l,d);return f&&f.value||``},setAttributeNS:function(l,d,f){var m=this.ownerDocument.createAttributeNS(l,d);m.value=m.nodeValue=``+f,this.setAttributeNode(m)},getAttributeNodeNS:function(l,d){return this.attributes.getNamedItemNS(l,d)},getElementsByTagName:function(l){return new je(this,function(d){var f=[];return Be(d,function(m){m!==d&&m.nodeType==ue&&(l===`*`||m.tagName==l)&&f.push(m)}),f})},getElementsByTagNameNS:function(l,d){return new je(this,function(f){var m=[];return Be(f,function(te){te!==f&&te.nodeType===ue&&(l===`*`||te.namespaceURI===l)&&(d===`*`||te.localName==d)&&m.push(te)}),m})}},He.prototype.getElementsByTagName=ot.prototype.getElementsByTagName,He.prototype.getElementsByTagNameNS=ot.prototype.getElementsByTagNameNS,ce(ot,Re);function st(){}st.prototype.nodeType=de,ce(st,Re);function ct(){}ct.prototype={data:``,substringData:function(l,d){return this.data.substring(l,l+d)},appendData:function(l){l=this.data+l,this.nodeValue=this.data=l,this.length=l.length},insertData:function(l,d){this.replaceData(l,0,d)},appendChild:function(l){throw Error(Ce[we])},deleteData:function(l,d){this.replaceData(l,d,``)},replaceData:function(l,d,f){var m=this.data.substring(0,l),te=this.data.substring(l+d);f=m+f+te,this.nodeValue=this.data=f,this.length=f.length}},ce(ct,Re);function lt(){}lt.prototype={nodeName:`#text`,nodeType:fe,splitText:function(l){var d=this.data,f=d.substring(l);d=d.substring(0,l),this.data=this.nodeValue=d,this.length=d.length;var m=this.ownerDocument.createTextNode(f);return this.parentNode&&this.parentNode.insertBefore(m,this.nextSibling),m}},ce(lt,ct);function ut(){}ut.prototype={nodeName:`#comment`,nodeType:_e},ce(ut,ct);function dt(){}dt.prototype={nodeName:`#cdata-section`,nodeType:pe},ce(dt,ct);function ft(){}ft.prototype.nodeType=ye,ce(ft,Re);function pt(){}pt.prototype.nodeType=xe,ce(pt,Re);function mt(){}mt.prototype.nodeType=he,ce(mt,Re);function ht(){}ht.prototype.nodeType=me,ce(ht,Re);function gt(){}gt.prototype.nodeName=`#document-fragment`,gt.prototype.nodeType=be,ce(gt,Re);function _t(){}_t.prototype.nodeType=ge,ce(_t,Re);function vt(){}vt.prototype.serializeToString=function(l,d,f,m){return yt.call(l,d,f,m)},Re.prototype.toString=yt;function yt(l,d,f){var m=!!f&&!!f.requireWellFormed,te=[],re=this.nodeType==9&&this.documentElement||this,ie=re.prefix,ae=re.namespaceURI;if(ae&&ie==null){var ie=re.lookupPrefix(ae);if(ie==null)var oe=[{namespace:ae,prefix:null}]}return St(this,te,l,d,oe,m),te.join(``)}function bt(l,d,f){var te=l.prefix||``,re=l.namespaceURI;if(!re||te===`xml`&&re===m.XML||re===m.XMLNS)return!1;for(var ie=f.length;ie--;){var ae=f[ie];if(ae.prefix===te)return ae.namespace!==re}return!0}function xt(l,d,f){l.push(` `,d,`="`,f.replace(/[<>&"\t\n\r]/g,ze),`"`)}function St(l,d,f,te,re,ie){re||=[],Ve(l,{ns:re,isHTML:f},{enter:function(l,f){var re=f.ns,ae=f.isHTML;if(te)if(l=te(l),l){if(typeof l==`string`)return d.push(l),null}else return null;switch(l.nodeType){case ue:var oe=l.attributes,se=oe.length,ce=l.tagName;ae=m.isHTML(l.namespaceURI)||ae;var le=ce;if(!ae&&!l.prefix&&l.namespaceURI){for(var he,xe=0;xe<oe.length;xe++)if(oe.item(xe).name===`xmlns`){he=oe.item(xe).value;break}if(!he)for(var Se=re.length-1;Se>=0;Se--){var Ce=re[Se];if(Ce.prefix===``&&Ce.namespace===l.namespaceURI){he=Ce.namespace;break}}if(he!==l.namespaceURI)for(var Se=re.length-1;Se>=0;Se--){var Ce=re[Se];if(Ce.namespace===l.namespaceURI){Ce.prefix&&(le=Ce.prefix+`:`+ce);break}}}d.push(`<`,le);for(var we=re.slice(),Te=0;Te<se;Te++){var Ee=oe.item(Te);Ee.prefix==`xmlns`?we.push({prefix:Ee.localName,namespace:Ee.value}):Ee.nodeName==`xmlns`&&we.push({prefix:``,namespace:Ee.value})}for(var Te=0;Te<se;Te++){var Ee=oe.item(Te);if(bt(Ee,ae,we)){var De=Ee.prefix||``,Ae=Ee.namespaceURI;xt(d,De?`xmlns:`+De:`xmlns`,Ae),we.push({prefix:De,namespace:Ae})}var je=te?te(Ee):Ee;je&&(typeof je==`string`?d.push(je):xt(d,je.name,je.value))}if(ce===le&&bt(l,ae,we)){var Me=l.prefix||``,Ae=l.namespaceURI;xt(d,Me?`xmlns:`+Me:`xmlns`,Ae),we.push({prefix:Me,namespace:Ae})}var Ne=l.firstChild;if(Ne||ae&&!/^(?:meta|link|img|br|hr|input)$/i.test(ce)){if(d.push(`>`),ae&&/^script$/i.test(ce)){for(;Ne;)Ne.data?d.push(Ne.data):St(Ne,d,ae,te,we.slice(),ie),Ne=Ne.nextSibling;return d.push(`</`,ce,`>`),null}return{ns:we,isHTML:ae,tag:le}}else return d.push(`/>`),null;case ve:case be:return{ns:re.slice(),isHTML:ae,tag:null};case de:return xt(d,l.name,l.value),null;case fe:return d.push(l.data.replace(/[<&>]/g,ze)),null;case pe:if(ie&&l.data.indexOf(`]]>`)!==-1)throw new ke(Oe,`The CDATASection data contains "]]>"`);return d.push(`<![CDATA[`,l.data.replace(/]]>/g,`]]]]><![CDATA[>`),`]]>`),null;case _e:if(ie&&l.data.indexOf(`-->`)!==-1)throw new ke(Oe,`The comment node data contains "-->"`);return d.push(`<!--`,l.data,`-->`),null;case ye:if(ie){if(l.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(l.publicId))throw new ke(Oe,`DocumentType publicId is not a valid PubidLiteral`);if(l.systemId&&!/^("[^"]*"|'[^']*')$/.test(l.systemId))throw new ke(Oe,`DocumentType systemId is not a valid SystemLiteral`);if(l.internalSubset&&l.internalSubset.indexOf(`]>`)!==-1)throw new ke(Oe,`DocumentType internalSubset contains "]>"`)}var Pe=l.publicId,Fe=l.systemId;if(d.push(`<!DOCTYPE `,l.name),Pe)d.push(` PUBLIC `,Pe),Fe&&Fe!=`.`&&d.push(` `,Fe),d.push(`>`);else if(Fe&&Fe!=`.`)d.push(` SYSTEM `,Fe,`>`);else{var Ie=l.internalSubset;Ie&&d.push(` [`,Ie,`]`),d.push(`>`)}return null;case ge:if(ie&&l.data.indexOf(`?>`)!==-1)throw new ke(Oe,`The ProcessingInstruction data contains "?>"`);return d.push(`<?`,l.target,` `,l.data,`?>`),null;case me:return d.push(`&`,l.nodeName,`;`),null;default:return d.push(`??`,l.nodeName),null}},exit:function(l,f){f&&f.tag&&d.push(`</`,f.tag,`>`)}})}function Ct(l,d,f){var m;return Ve(d,null,{enter:function(d,te){var re=d.cloneNode(!1);return re.ownerDocument=l,re.parentNode=null,te===null?m=re:te.appendChild(re),d.nodeType===de||f?re:null}}),m}function wt(l,d,f){var m;return Ve(d,null,{enter:function(d,te){var re=new d.constructor;for(var ie in d)if(Object.prototype.hasOwnProperty.call(d,ie)){var ae=d[ie];typeof ae!=`object`&&ae!=re[ie]&&(re[ie]=ae)}d.childNodes&&(re.childNodes=new Ae),re.ownerDocument=l;var oe=f;switch(re.nodeType){case ue:var se=d.attributes,ce=re.attributes=new Ne,le=se.length;ce._ownerElement=re;for(var fe=0;fe<le;fe++)re.setAttributeNode(wt(l,se.item(fe),!0));break;case de:oe=!0}return te===null?m=re:te.appendChild(re),oe?re:null}}),m}function Tt(l,d,f){l[d]=f}try{Object.defineProperty&&(Object.defineProperty(je.prototype,"length",{get:function(){return Me(this),this.$$length}}),Object.defineProperty(Re.prototype,"textContent",{get:function(){if(this.nodeType===ue||this.nodeType===be){var l=[];return Ve(this,null,{enter:function(d){if(d.nodeType===ue||d.nodeType===be)return!0;if(d.nodeType===ge||d.nodeType===_e)return null;l.push(d.nodeValue)}}),l.join(``)}return this.nodeValue},set:function(l){switch(this.nodeType){case ue:case be:for(;this.firstChild;)this.removeChild(this.firstChild);(l||String(l))&&this.appendChild(this.ownerDocument.createTextNode(l));break;default:this.data=l,this.value=l,this.nodeValue=l}}}),Tt=function(l,d,f){l[`$$`+d]=f})}catch{}l.DocumentType=ft,l.DOMException=ke,l.DOMImplementation=Le,l.Element=ot,l.Node=Re,l.NodeList=Ae,l.walkDOM=Ve,l.XMLSerializer=vt})),require_entities=__commonJSMin((l=>{var d=require_conventions().freeze;l.XML_ENTITIES=d({amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`}),l.HTML_ENTITIES=d({Aacute:`Á`,aacute:`á`,Abreve:`Ă`,abreve:`ă`,ac:`∾`,acd:`∿`,acE:`∾̳`,Acirc:`Â`,acirc:`â`,acute:`´`,Acy:`А`,acy:`а`,AElig:`Æ`,aelig:`æ`,af:`⁡`,Afr:`𝔄`,afr:`𝔞`,Agrave:`À`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,Alpha:`Α`,alpha:`α`,Amacr:`Ā`,amacr:`ā`,amalg:`⨿`,AMP:`&`,amp:`&`,And:`⩓`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,Aogon:`Ą`,aogon:`ą`,Aopf:`𝔸`,aopf:`𝕒`,ap:`≈`,apacir:`⩯`,apE:`⩰`,ape:`≊`,apid:`≋`,apos:`'`,ApplyFunction:`⁡`,approx:`≈`,approxeq:`≊`,Aring:`Å`,aring:`å`,Ascr:`𝒜`,ascr:`𝒶`,Assign:`≔`,ast:`*`,asymp:`≈`,asympeq:`≍`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,awconint:`∳`,awint:`⨑`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,Backslash:`∖`,Barv:`⫧`,barvee:`⊽`,Barwed:`⌆`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,Bcy:`Б`,bcy:`б`,bdquo:`„`,becaus:`∵`,Because:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,Bernoullis:`ℬ`,Beta:`Β`,beta:`β`,beth:`ℶ`,between:`≬`,Bfr:`𝔅`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bNot:`⫭`,bnot:`⌐`,Bopf:`𝔹`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxbox:`⧉`,boxDL:`╗`,boxDl:`╖`,boxdL:`╕`,boxdl:`┐`,boxDR:`╔`,boxDr:`╓`,boxdR:`╒`,boxdr:`┌`,boxH:`═`,boxh:`─`,boxHD:`╦`,boxHd:`╤`,boxhD:`╥`,boxhd:`┬`,boxHU:`╩`,boxHu:`╧`,boxhU:`╨`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxUL:`╝`,boxUl:`╜`,boxuL:`╛`,boxul:`┘`,boxUR:`╚`,boxUr:`╙`,boxuR:`╘`,boxur:`└`,boxV:`║`,boxv:`│`,boxVH:`╬`,boxVh:`╫`,boxvH:`╪`,boxvh:`┼`,boxVL:`╣`,boxVl:`╢`,boxvL:`╡`,boxvl:`┤`,boxVR:`╠`,boxVr:`╟`,boxvR:`╞`,boxvr:`├`,bprime:`‵`,Breve:`˘`,breve:`˘`,brvbar:`¦`,Bscr:`ℬ`,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,Bumpeq:`≎`,bumpeq:`≏`,Cacute:`Ć`,cacute:`ć`,Cap:`⋒`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,CapitalDifferentialD:`ⅅ`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,Cayleys:`ℭ`,ccaps:`⩍`,Ccaron:`Č`,ccaron:`č`,Ccedil:`Ç`,ccedil:`ç`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cconint:`∰`,ccups:`⩌`,ccupssm:`⩐`,Cdot:`Ċ`,cdot:`ċ`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,CenterDot:`·`,centerdot:`·`,Cfr:`ℭ`,cfr:`𝔠`,CHcy:`Ч`,chcy:`ч`,check:`✓`,checkmark:`✓`,Chi:`Χ`,chi:`χ`,cir:`○`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,CircleDot:`⊙`,circledR:`®`,circledS:`Ⓢ`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,cirE:`⧃`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,clubs:`♣`,clubsuit:`♣`,Colon:`∷`,colon:`:`,Colone:`⩴`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,Congruent:`≡`,Conint:`∯`,conint:`∮`,ContourIntegral:`∮`,Copf:`ℂ`,copf:`𝕔`,coprod:`∐`,Coproduct:`∐`,COPY:`©`,copy:`©`,copysr:`℗`,CounterClockwiseContourIntegral:`∳`,crarr:`↵`,Cross:`⨯`,cross:`✗`,Cscr:`𝒞`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,Cup:`⋓`,cup:`∪`,cupbrcap:`⩈`,CupCap:`≍`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,Dagger:`‡`,dagger:`†`,daleth:`ℸ`,Darr:`↡`,dArr:`⇓`,darr:`↓`,dash:`‐`,Dashv:`⫤`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,Dcaron:`Ď`,dcaron:`ď`,Dcy:`Д`,dcy:`д`,DD:`ⅅ`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,DDotrahd:`⤑`,ddotseq:`⩷`,deg:`°`,Del:`∇`,Delta:`Δ`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,Dfr:`𝔇`,dfr:`𝔡`,dHar:`⥥`,dharl:`⇃`,dharr:`⇂`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,diam:`⋄`,Diamond:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,DifferentialD:`ⅆ`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,DJcy:`Ђ`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,Dopf:`𝔻`,dopf:`𝕕`,Dot:`¨`,dot:`˙`,DotDot:`⃜`,doteq:`≐`,doteqdot:`≑`,DotEqual:`≐`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,Downarrow:`⇓`,downarrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,DownTeeArrow:`↧`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,Dscr:`𝒟`,dscr:`𝒹`,DScy:`Ѕ`,dscy:`ѕ`,dsol:`⧶`,Dstrok:`Đ`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,DZcy:`Џ`,dzcy:`џ`,dzigrarr:`⟿`,Eacute:`É`,eacute:`é`,easter:`⩮`,Ecaron:`Ě`,ecaron:`ě`,ecir:`≖`,Ecirc:`Ê`,ecirc:`ê`,ecolon:`≕`,Ecy:`Э`,ecy:`э`,eDDot:`⩷`,Edot:`Ė`,eDot:`≑`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,Efr:`𝔈`,efr:`𝔢`,eg:`⪚`,Egrave:`È`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,Element:`∈`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,Emacr:`Ē`,emacr:`ē`,empty:`∅`,emptyset:`∅`,EmptySmallSquare:`◻`,emptyv:`∅`,EmptyVerySmallSquare:`▫`,emsp:` `,emsp13:` `,emsp14:` `,ENG:`Ŋ`,eng:`ŋ`,ensp:` `,Eogon:`Ę`,eogon:`ę`,Eopf:`𝔼`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,Equal:`⩵`,equals:`=`,EqualTilde:`≂`,equest:`≟`,Equilibrium:`⇌`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erarr:`⥱`,erDot:`≓`,Escr:`ℰ`,escr:`ℯ`,esdot:`≐`,Esim:`⩳`,esim:`≂`,Eta:`Η`,eta:`η`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,Exists:`∃`,expectation:`ℰ`,ExponentialE:`ⅇ`,exponentiale:`ⅇ`,fallingdotseq:`≒`,Fcy:`Ф`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,Ffr:`𝔉`,ffr:`𝔣`,filig:`fi`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,Fopf:`𝔽`,fopf:`𝕗`,ForAll:`∀`,forall:`∀`,fork:`⋔`,forkv:`⫙`,Fouriertrf:`ℱ`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,Fscr:`ℱ`,fscr:`𝒻`,gacute:`ǵ`,Gamma:`Γ`,gamma:`γ`,Gammad:`Ϝ`,gammad:`ϝ`,gap:`⪆`,Gbreve:`Ğ`,gbreve:`ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gcy:`Г`,gcy:`г`,Gdot:`Ġ`,gdot:`ġ`,gE:`≧`,ge:`≥`,gEl:`⪌`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,Gfr:`𝔊`,gfr:`𝔤`,Gg:`⋙`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,GJcy:`Ѓ`,gjcy:`ѓ`,gl:`≷`,gla:`⪥`,glE:`⪒`,glj:`⪤`,gnap:`⪊`,gnapprox:`⪊`,gnE:`≩`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,Gopf:`𝔾`,gopf:`𝕘`,grave:"`",GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,Gt:`≫`,GT:`>`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,Hacek:`ˇ`,hairsp:` `,half:`½`,hamilt:`ℋ`,HARDcy:`Ъ`,hardcy:`ъ`,hArr:`⇔`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,Hat:`^`,hbar:`ℏ`,Hcirc:`Ĥ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,Hfr:`ℌ`,hfr:`𝔥`,HilbertSpace:`ℋ`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,Hopf:`ℍ`,hopf:`𝕙`,horbar:`―`,HorizontalLine:`─`,Hscr:`ℋ`,hscr:`𝒽`,hslash:`ℏ`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,hybull:`⁃`,hyphen:`‐`,Iacute:`Í`,iacute:`í`,ic:`⁣`,Icirc:`Î`,icirc:`î`,Icy:`И`,icy:`и`,Idot:`İ`,IEcy:`Е`,iecy:`е`,iexcl:`¡`,iff:`⇔`,Ifr:`ℑ`,ifr:`𝔦`,Igrave:`Ì`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,IJlig:`IJ`,ijlig:`ij`,Im:`ℑ`,Imacr:`Ī`,imacr:`ī`,image:`ℑ`,ImaginaryI:`ⅈ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,imof:`⊷`,imped:`Ƶ`,Implies:`⇒`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,Int:`∬`,int:`∫`,intcal:`⊺`,integers:`ℤ`,Integral:`∫`,intercal:`⊺`,Intersection:`⋂`,intlarhk:`⨗`,intprod:`⨼`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,IOcy:`Ё`,iocy:`ё`,Iogon:`Į`,iogon:`į`,Iopf:`𝕀`,iopf:`𝕚`,Iota:`Ι`,iota:`ι`,iprod:`⨼`,iquest:`¿`,Iscr:`ℐ`,iscr:`𝒾`,isin:`∈`,isindot:`⋵`,isinE:`⋹`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:`⁢`,Itilde:`Ĩ`,itilde:`ĩ`,Iukcy:`І`,iukcy:`і`,Iuml:`Ï`,iuml:`ï`,Jcirc:`Ĵ`,jcirc:`ĵ`,Jcy:`Й`,jcy:`й`,Jfr:`𝔍`,jfr:`𝔧`,jmath:`ȷ`,Jopf:`𝕁`,jopf:`𝕛`,Jscr:`𝒥`,jscr:`𝒿`,Jsercy:`Ј`,jsercy:`ј`,Jukcy:`Є`,jukcy:`є`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`ķ`,Kcy:`К`,kcy:`к`,Kfr:`𝔎`,kfr:`𝔨`,kgreen:`ĸ`,KHcy:`Х`,khcy:`х`,KJcy:`Ќ`,kjcy:`ќ`,Kopf:`𝕂`,kopf:`𝕜`,Kscr:`𝒦`,kscr:`𝓀`,lAarr:`⇚`,Lacute:`Ĺ`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,Lambda:`Λ`,lambda:`λ`,Lang:`⟪`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,Laplacetrf:`ℒ`,laquo:`«`,Larr:`↞`,lArr:`⇐`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,lAtail:`⤛`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lBarr:`⤎`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,Lcaron:`Ľ`,lcaron:`ľ`,Lcedil:`Ļ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,Lcy:`Л`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,lE:`≦`,le:`≤`,LeftAngleBracket:`⟨`,LeftArrow:`←`,Leftarrow:`⇐`,leftarrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,leftarrowtail:`↢`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,LeftRightArrow:`↔`,Leftrightarrow:`⇔`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,leftthreetimes:`⋋`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,lEg:`⪋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,lessgtr:`≶`,LessLess:`⪡`,lesssim:`≲`,LessSlantEqual:`⩽`,LessTilde:`≲`,lfisht:`⥼`,lfloor:`⌊`,Lfr:`𝔏`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lHar:`⥢`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,LJcy:`Љ`,ljcy:`љ`,Ll:`⋘`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,Lleftarrow:`⇚`,llhard:`⥫`,lltri:`◺`,Lmidot:`Ŀ`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnap:`⪉`,lnapprox:`⪉`,lnE:`≨`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,LongLeftArrow:`⟵`,Longleftarrow:`⟸`,longleftarrow:`⟵`,LongLeftRightArrow:`⟷`,Longleftrightarrow:`⟺`,longleftrightarrow:`⟷`,longmapsto:`⟼`,LongRightArrow:`⟶`,Longrightarrow:`⟹`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,Lopf:`𝕃`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,Lscr:`ℒ`,lscr:`𝓁`,Lsh:`↰`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,Lstrok:`Ł`,lstrok:`ł`,Lt:`≪`,LT:`<`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,ltrPar:`⦖`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,Map:`⤅`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,Mcy:`М`,mcy:`м`,mdash:`—`,mDDot:`∺`,measuredangle:`∡`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,middot:`·`,minus:`−`,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,MinusPlus:`∓`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,Mopf:`𝕄`,mopf:`𝕞`,mp:`∓`,Mscr:`ℳ`,mscr:`𝓂`,mstpos:`∾`,Mu:`Μ`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nabla:`∇`,Nacute:`Ń`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:`ℕ`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,Ncy:`Н`,ncy:`н`,ndash:`–`,ne:`≠`,nearhk:`⤤`,neArr:`⇗`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,NegativeMediumSpace:`​`,NegativeThickSpace:`​`,NegativeThinSpace:`​`,NegativeVeryThinSpace:`​`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
45949
+ `,nexist:`∄`,nexists:`∄`,Nfr:`𝔑`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,nGg:`⋙̸`,ngsim:`≵`,nGt:`≫⃒`,ngt:`≯`,ngtr:`≯`,nGtv:`≫̸`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,NJcy:`Њ`,njcy:`њ`,nlArr:`⇍`,nlarr:`↚`,nldr:`‥`,nlE:`≦̸`,nle:`≰`,nLeftarrow:`⇍`,nleftarrow:`↚`,nLeftrightarrow:`⇎`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nLl:`⋘̸`,nlsim:`≴`,nLt:`≪⃒`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nLtv:`≪̸`,nmid:`∤`,NoBreak:`⁠`,NonBreakingSpace:`\xA0`,Nopf:`ℕ`,nopf:`𝕟`,Not:`⫬`,not:`¬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,notin:`∉`,notindot:`⋵̸`,notinE:`⋹̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nRightarrow:`⇏`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,Nscr:`𝒩`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,Ntilde:`Ñ`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,Nu:`Ν`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvap:`≍⃒`,nVDash:`⊯`,nVdash:`⊮`,nvDash:`⊭`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvHarr:`⤄`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwarhk:`⤣`,nwArr:`⇖`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,Oacute:`Ó`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,Ocirc:`Ô`,ocirc:`ô`,Ocy:`О`,ocy:`о`,odash:`⊝`,Odblac:`Ő`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,OElig:`Œ`,oelig:`œ`,ofcir:`⦿`,Ofr:`𝔒`,ofr:`𝔬`,ogon:`˛`,Ograve:`Ò`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,Omacr:`Ō`,omacr:`ō`,Omega:`Ω`,omega:`ω`,Omicron:`Ο`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,Oopf:`𝕆`,oopf:`𝕠`,opar:`⦷`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,operp:`⦹`,oplus:`⊕`,Or:`⩔`,or:`∨`,orarr:`↻`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oS:`Ⓢ`,Oscr:`𝒪`,oscr:`ℴ`,Oslash:`Ø`,oslash:`ø`,osol:`⊘`,Otilde:`Õ`,otilde:`õ`,Otimes:`⨷`,otimes:`⊗`,otimesas:`⨶`,Ouml:`Ö`,ouml:`ö`,ovbar:`⌽`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,par:`∥`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,PartialD:`∂`,Pcy:`П`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,Pfr:`𝔓`,pfr:`𝔭`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,Pi:`Π`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,PlusMinus:`±`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,Poincareplane:`ℌ`,pointint:`⨕`,Popf:`ℙ`,popf:`𝕡`,pound:`£`,Pr:`⪻`,pr:`≺`,prap:`⪷`,prcue:`≼`,prE:`⪳`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,Prime:`″`,prime:`′`,primes:`ℙ`,prnap:`⪹`,prnE:`⪵`,prnsim:`⋨`,prod:`∏`,Product:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,Proportion:`∷`,Proportional:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,Pscr:`𝒫`,pscr:`𝓅`,Psi:`Ψ`,psi:`ψ`,puncsp:` `,Qfr:`𝔔`,qfr:`𝔮`,qint:`⨌`,Qopf:`ℚ`,qopf:`𝕢`,qprime:`⁗`,Qscr:`𝒬`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,QUOT:`"`,quot:`"`,rAarr:`⇛`,race:`∽̱`,Racute:`Ŕ`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,Rang:`⟫`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,Rarr:`↠`,rArr:`⇒`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,Rarrtl:`⤖`,rarrtl:`↣`,rarrw:`↝`,rAtail:`⤜`,ratail:`⤚`,ratio:`∶`,rationals:`ℚ`,RBarr:`⤐`,rBarr:`⤏`,rbarr:`⤍`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,Rcy:`Р`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,Re:`ℜ`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,rect:`▭`,REG:`®`,reg:`®`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,rfisht:`⥽`,rfloor:`⌋`,Rfr:`ℜ`,rfr:`𝔯`,rHar:`⥤`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,RightAngleBracket:`⟩`,RightArrow:`→`,Rightarrow:`⇒`,rightarrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,rightarrowtail:`↣`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,rightthreetimes:`⋌`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:`‏`,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,Ropf:`ℝ`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,RoundImplies:`⥰`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,Rrightarrow:`⇛`,rsaquo:`›`,Rscr:`ℛ`,rscr:`𝓇`,Rsh:`↱`,rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,RuleDelayed:`⧴`,ruluhar:`⥨`,rx:`℞`,Sacute:`Ś`,sacute:`ś`,sbquo:`‚`,Sc:`⪼`,sc:`≻`,scap:`⪸`,Scaron:`Š`,scaron:`š`,sccue:`≽`,scE:`⪴`,sce:`⪰`,Scedil:`Ş`,scedil:`ş`,Scirc:`Ŝ`,scirc:`ŝ`,scnap:`⪺`,scnE:`⪶`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,Scy:`С`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,searhk:`⤥`,seArr:`⇘`,searr:`↘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,Sfr:`𝔖`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,SHCHcy:`Щ`,shchcy:`щ`,SHcy:`Ш`,shcy:`ш`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,shortmid:`∣`,shortparallel:`∥`,ShortRightArrow:`→`,ShortUpArrow:`↑`,shy:`­`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,SmallCircle:`∘`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,SOFTcy:`Ь`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,Sopf:`𝕊`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,Sqrt:`√`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,Square:`□`,square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,squarf:`▪`,squf:`▪`,srarr:`→`,Sscr:`𝒮`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,Star:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,Sub:`⋐`,sub:`⊂`,subdot:`⪽`,subE:`⫅`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,Subset:`⋐`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,SubsetEqual:`⊆`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,SuchThat:`∋`,Sum:`∑`,sum:`∑`,sung:`♪`,Sup:`⋑`,sup:`⊃`,sup1:`¹`,sup2:`²`,sup3:`³`,supdot:`⪾`,supdsub:`⫘`,supE:`⫆`,supe:`⊇`,supedot:`⫄`,Superset:`⊃`,SupersetEqual:`⊇`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,Supset:`⋑`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swarhk:`⤦`,swArr:`⇙`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,Tab:` `,target:`⌖`,Tau:`Τ`,tau:`τ`,tbrk:`⎴`,Tcaron:`Ť`,tcaron:`ť`,Tcedil:`Ţ`,tcedil:`ţ`,Tcy:`Т`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,Tfr:`𝔗`,tfr:`𝔱`,there4:`∴`,Therefore:`∴`,therefore:`∴`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,ThickSpace:`  `,thinsp:` `,ThinSpace:` `,thkap:`≈`,thksim:`∼`,THORN:`Þ`,thorn:`þ`,Tilde:`∼`,tilde:`˜`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:`⊤`,topbot:`⌶`,topcir:`⫱`,Topf:`𝕋`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,TRADE:`™`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,TripleDot:`⃛`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,Tscr:`𝒯`,tscr:`𝓉`,TScy:`Ц`,tscy:`ц`,TSHcy:`Ћ`,tshcy:`ћ`,Tstrok:`Ŧ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Uacute:`Ú`,uacute:`ú`,Uarr:`↟`,uArr:`⇑`,uarr:`↑`,Uarrocir:`⥉`,Ubrcy:`Ў`,ubrcy:`ў`,Ubreve:`Ŭ`,ubreve:`ŭ`,Ucirc:`Û`,ucirc:`û`,Ucy:`У`,ucy:`у`,udarr:`⇅`,Udblac:`Ű`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,Ufr:`𝔘`,ufr:`𝔲`,Ugrave:`Ù`,ugrave:`ù`,uHar:`⥣`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,Umacr:`Ū`,umacr:`ū`,uml:`¨`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,uogon:`ų`,Uopf:`𝕌`,uopf:`𝕦`,UpArrow:`↑`,Uparrow:`⇑`,uparrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,Updownarrow:`⇕`,updownarrow:`↕`,UpEquilibrium:`⥮`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,upsi:`υ`,upsih:`ϒ`,Upsilon:`Υ`,upsilon:`υ`,UpTee:`⊥`,UpTeeArrow:`↥`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,Uring:`Ů`,uring:`ů`,urtri:`◹`,Uscr:`𝒰`,uscr:`𝓊`,utdot:`⋰`,Utilde:`Ũ`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,Uuml:`Ü`,uuml:`ü`,uwangle:`⦧`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,vArr:`⇕`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,Vbar:`⫫`,vBar:`⫨`,vBarv:`⫩`,Vcy:`В`,vcy:`в`,VDash:`⊫`,Vdash:`⊩`,vDash:`⊨`,vdash:`⊢`,Vdashl:`⫦`,Vee:`⋁`,vee:`∨`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,Verbar:`‖`,verbar:`|`,Vert:`‖`,vert:`|`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,Vopf:`𝕍`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,Vscr:`𝒱`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,Vvdash:`⊪`,vzigzag:`⦚`,Wcirc:`Ŵ`,wcirc:`ŵ`,wedbar:`⩟`,Wedge:`⋀`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,Wfr:`𝔚`,wfr:`𝔴`,Wopf:`𝕎`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,Wscr:`𝒲`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,Xfr:`𝔛`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,Xi:`Ξ`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,Xopf:`𝕏`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,Xscr:`𝒳`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,Yacute:`Ý`,yacute:`ý`,YAcy:`Я`,yacy:`я`,Ycirc:`Ŷ`,ycirc:`ŷ`,Ycy:`Ы`,ycy:`ы`,yen:`¥`,Yfr:`𝔜`,yfr:`𝔶`,YIcy:`Ї`,yicy:`ї`,Yopf:`𝕐`,yopf:`𝕪`,Yscr:`𝒴`,yscr:`𝓎`,YUcy:`Ю`,yucy:`ю`,Yuml:`Ÿ`,yuml:`ÿ`,Zacute:`Ź`,zacute:`ź`,Zcaron:`Ž`,zcaron:`ž`,Zcy:`З`,zcy:`з`,Zdot:`Ż`,zdot:`ż`,zeetrf:`ℨ`,ZeroWidthSpace:`​`,Zeta:`Ζ`,zeta:`ζ`,Zfr:`ℨ`,zfr:`𝔷`,ZHcy:`Ж`,zhcy:`ж`,zigrarr:`⇝`,Zopf:`ℤ`,zopf:`𝕫`,Zscr:`𝒵`,zscr:`𝓏`,zwj:`‍`,zwnj:`‌`}),l.entityMap=l.HTML_ENTITIES})),require_sax=__commonJSMin((l=>{var d=require_conventions().NAMESPACE,f=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,m=RegExp(`[\\-\\.0-9`+f.source.slice(1,-1)+`\\u00B7\\u0300-\\u036F\\u203F-\\u2040]`),te=RegExp(`^`+f.source+m.source+`*(?::`+f.source+m.source+`*)?$`),re=0,ie=1,ae=2,oe=3,se=4,ce=5,le=6,ue=7;function de(l,d){this.message=l,this.locator=d,Error.captureStackTrace&&Error.captureStackTrace(this,de)}de.prototype=Error(),de.prototype.name=de.name;function fe(){}fe.prototype={parse:function(l,d,f){var m=this.domBuilder;m.startDocument(),ye(d,d={}),pe(l,d,f,m,this.errorHandler),m.endDocument()}};function pe(l,f,m,te,re){function ie(l){if(l>65535){l-=65536;var d=55296+(l>>10),f=56320+(l&1023);return String.fromCharCode(d,f)}else return String.fromCharCode(l)}function ae(l){var d=l.slice(1,-1);return Object.hasOwnProperty.call(m,d)?m[d]:d.charAt(0)===`#`?ie(parseInt(d.substr(1).replace(`x`,`0x`))):(re.error(`entity not found:`+l),l)}function oe(d){if(d>Ce){var f=l.substring(Ce,d).replace(/&#?\w+;/g,ae);fe&&se(Ce),te.characters(f,0,d-Ce),Ce=d}}function se(d,f){for(;d>=le&&(f=ue.exec(l));)ce=f.index,le=ce+f[0].length,fe.lineNumber++;fe.columnNumber=d-ce+1}for(var ce=0,le=0,ue=/.*(?:\r\n?|\n)|.*$/g,fe=te.locator,pe=[{currentNSMap:f}],ye={},Ce=0;;){try{var we=l.indexOf(`<`,Ce);if(we<0){if(!l.substr(Ce).match(/^\s*$/)){var Te=te.doc,Ee=Te.createTextNode(l.substr(Ce));Te.appendChild(Ee),te.currentElement=Ee}return}switch(we>Ce&&oe(we),l.charAt(we+1)){case`/`:var De=l.indexOf(`>`,we+3),Oe=l.substring(we+2,De).replace(/[ \t\n\r]+$/g,``),ke=pe.pop();De<0?(Oe=l.substring(we+2).replace(/[\s<].*/,``),re.error(`end tag name: `+Oe+` is not complete:`+ke.tagName),De=we+1+Oe.length):Oe.match(/\s</)&&(Oe=Oe.replace(/[\s<].*/,``),re.error(`end tag name: `+Oe+` maybe not complete`),De=we+1+Oe.length);var Ae=ke.localNSMap,je=ke.tagName==Oe;if(je||ke.tagName&&ke.tagName.toLowerCase()==Oe.toLowerCase()){if(te.endElement(ke.uri,ke.localName,Oe),Ae)for(var Me in Ae)Object.prototype.hasOwnProperty.call(Ae,Me)&&te.endPrefixMapping(Me);je||re.fatalError(`end tag name: `+Oe+` is not match the current start tagName:`+ke.tagName)}else pe.push(ke);De++;break;case`?`:fe&&se(we),De=xe(l,we,te);break;case`!`:fe&&se(we),De=be(l,we,te,re);break;default:fe&&se(we);var Ne=new Se,Pe=pe[pe.length-1].currentNSMap,De=he(l,we,Ne,Pe,ae,re),Fe=Ne.length;if(!Ne.closed&&ve(l,De,Ne.tagName,ye)&&(Ne.closed=!0,m.nbsp||re.warning(`unclosed xml attribute`)),fe&&Fe){for(var Ie=me(fe,{}),Le=0;Le<Fe;Le++){var Re=Ne[Le];se(Re.offset),Re.locator=me(fe,{})}te.locator=Ie,ge(Ne,te,Pe)&&pe.push(Ne),te.locator=fe}else ge(Ne,te,Pe)&&pe.push(Ne);d.isHTML(Ne.uri)&&!Ne.closed?De=_e(l,De,Ne.tagName,ae,te):De++}}catch(l){if(l instanceof de)throw l;re.error(`element parse error: `+l),De=-1}De>Ce?Ce=De:oe(Math.max(we,Ce)+1)}}function me(l,d){return d.lineNumber=l.lineNumber,d.columnNumber=l.columnNumber,d}function he(l,f,m,te,de,fe){function pe(l,d,f){m.attributeNames.hasOwnProperty(l)&&fe.fatalError(`Attribute `+l+` redefined`),m.addValue(l,d.replace(/[\t\n\r]/g,` `).replace(/&#?\w+;/g,de),f)}for(var me,he,ge=++f,_e=re;;){var ve=l.charAt(ge);switch(ve){case`=`:if(_e===ie)me=l.slice(f,ge),_e=oe;else if(_e===ae)_e=oe;else throw Error(`attribute equal must after attrName`);break;case`'`:case`"`:if(_e===oe||_e===ie)if(_e===ie&&(fe.warning(`attribute value must after "="`),me=l.slice(f,ge)),f=ge+1,ge=l.indexOf(ve,f),ge>0)he=l.slice(f,ge),pe(me,he,f-1),_e=ce;else throw Error(`attribute value no end '`+ve+`' match`);else if(_e==se)he=l.slice(f,ge),pe(me,he,f),fe.warning(`attribute "`+me+`" missed start quot(`+ve+`)!!`),f=ge+1,_e=ce;else throw Error(`attribute value must after "="`);break;case`/`:switch(_e){case re:m.setTagName(l.slice(f,ge));case ce:case le:case ue:_e=ue,m.closed=!0;case se:case ie:break;case ae:m.closed=!0;break;default:throw Error(`attribute invalid close char('/')`)}break;case``:return fe.error(`unexpected end of input`),_e==re&&m.setTagName(l.slice(f,ge)),ge;case`>`:switch(_e){case re:m.setTagName(l.slice(f,ge));case ce:case le:case ue:break;case se:case ie:he=l.slice(f,ge),he.slice(-1)===`/`&&(m.closed=!0,he=he.slice(0,-1));case ae:_e===ae&&(he=me),_e==se?(fe.warning(`attribute "`+he+`" missed quot(")!`),pe(me,he,f)):((!d.isHTML(te[``])||!he.match(/^(?:disabled|checked|selected)$/i))&&fe.warning(`attribute "`+he+`" missed value!! "`+he+`" instead!!`),pe(he,he,f));break;case oe:throw Error(`attribute value missed!!`)}return ge;case`€`:ve=` `;default:if(ve<=` `)switch(_e){case re:m.setTagName(l.slice(f,ge)),_e=le;break;case ie:me=l.slice(f,ge),_e=ae;break;case se:var he=l.slice(f,ge);fe.warning(`attribute "`+he+`" missed quot(")!!`),pe(me,he,f);case ce:_e=le;break}else switch(_e){case ae:m.tagName,(!d.isHTML(te[``])||!me.match(/^(?:disabled|checked|selected)$/i))&&fe.warning(`attribute "`+me+`" missed value!! "`+me+`" instead2!!`),pe(me,me,f),f=ge,_e=ie;break;case ce:fe.warning(`attribute space is required"`+me+`"!!`);case le:_e=ie,f=ge;break;case oe:_e=se,f=ge;break;case ue:throw Error(`elements closed character '/' and '>' must be connected to`)}}ge++}}function ge(l,f,m){for(var te=l.tagName,re=null,ie=l.length;ie--;){var ae=l[ie],oe=ae.qName,se=ae.value,ce=oe.indexOf(`:`);if(ce>0)var le=ae.prefix=oe.slice(0,ce),ue=oe.slice(ce+1),de=le===`xmlns`&&ue;else ue=oe,le=null,de=oe===`xmlns`&&``;ae.localName=ue,de!==!1&&(re??(re={},ye(m,m={})),m[de]=re[de]=se,ae.uri=d.XMLNS,f.startPrefixMapping(de,se))}for(var ie=l.length;ie--;){ae=l[ie];var le=ae.prefix;le&&(le===`xml`&&(ae.uri=d.XML),le!==`xmlns`&&(ae.uri=m[le||``]))}var ce=te.indexOf(`:`);ce>0?(le=l.prefix=te.slice(0,ce),ue=l.localName=te.slice(ce+1)):(le=null,ue=l.localName=te);var fe=l.uri=m[le||``];if(f.startElement(fe,ue,te,l),l.closed){if(f.endElement(fe,ue,te),re)for(le in re)Object.prototype.hasOwnProperty.call(re,le)&&f.endPrefixMapping(le)}else return l.currentNSMap=m,l.localNSMap=re,!0}function _e(l,d,f,m,te){if(/^(?:script|textarea)$/i.test(f)){var re=l.indexOf(`</`+f+`>`,d),ie=l.substring(d+1,re);if(/[&<]/.test(ie))return/^script$/i.test(f)?(te.characters(ie,0,ie.length),re):(ie=ie.replace(/&#?\w+;/g,m),te.characters(ie,0,ie.length),re)}return d+1}function ve(l,d,f,m){var te=m[f];return te??(te=l.lastIndexOf(`</`+f+`>`),te<d&&(te=l.lastIndexOf(`</`+f)),m[f]=te),te<d}function ye(l,d){for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(d[f]=l[f])}function be(l,d,f,m){switch(l.charAt(d+2)){case`-`:if(l.charAt(d+3)===`-`){var te=l.indexOf(`-->`,d+4);return te>d?(f.comment(l,d+4,te-d-4),te+3):(m.error(`Unclosed comment`),-1)}else return-1;default:if(l.substr(d+3,6)==`CDATA[`){var te=l.indexOf(`]]>`,d+9);return f.startCDATA(),f.characters(l,d+9,te-d-9),f.endCDATA(),te+3}var re=Ce(l,d),ie=re.length;if(ie>1&&/!doctype/i.test(re[0][0])){var ae=re[1][0],oe=!1,se=!1;ie>3&&(/^public$/i.test(re[2][0])?(oe=re[3][0],se=ie>4&&re[4][0]):/^system$/i.test(re[2][0])&&(se=re[3][0]));var ce=re[ie-1];return f.startDTD(ae,oe,se),f.endDTD(),ce.index+ce[0].length}}return-1}function xe(l,d,f){var m=l.indexOf(`?>`,d);if(m){var te=l.substring(d,m).match(/^<\?(\S*)\s*([\s\S]*?)$/);return te?(te[0].length,f.processingInstruction(te[1],te[2]),m+2):-1}return-1}function Se(){this.attributeNames={}}Se.prototype={setTagName:function(l){if(!te.test(l))throw Error(`invalid tagName:`+l);this.tagName=l},addValue:function(l,d,f){if(!te.test(l))throw Error(`invalid attribute:`+l);this.attributeNames[l]=this.length,this[this.length++]={qName:l,value:d,offset:f}},length:0,getLocalName:function(l){return this[l].localName},getLocator:function(l){return this[l].locator},getQName:function(l){return this[l].qName},getURI:function(l){return this[l].uri},getValue:function(l){return this[l].value}};function Ce(l,d){var f,m=[],te=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(te.lastIndex=d,te.exec(l);f=te.exec(l);)if(m.push(f),f[1])return m}l.XMLReader=fe,l.ParseError=de})),require_dom_parser=__commonJSMin((l=>{var d=require_conventions(),f=require_dom(),m=require_entities(),te=require_sax(),re=f.DOMImplementation,ie=d.NAMESPACE,ae=te.ParseError,oe=te.XMLReader;function se(l){return l.replace(/\r[\n\u0085]/g,`
45950
+ `).replace(/[\r\u0085\u2028]/g,`
45951
+ `)}function ce(l){this.options=l||{locator:{}}}ce.prototype.parseFromString=function(l,d){var f=this.options,te=new oe,re=f.domBuilder||new ue,ae=f.errorHandler,ce=f.locator,de=f.xmlns||{},fe=/\/x?html?$/.test(d),pe=fe?m.HTML_ENTITIES:m.XML_ENTITIES;ce&&re.setDocumentLocator(ce),te.errorHandler=le(ae,re,ce),te.domBuilder=f.domBuilder||re,fe&&(de[``]=ie.HTML),de.xml=de.xml||ie.XML;var me=f.normalizeLineEndings||se;return l&&typeof l==`string`?te.parse(me(l),de,pe):te.errorHandler.error(`invalid doc source`),re.doc};function le(l,d,f){if(!l){if(d instanceof ue)return d;l=d}var m={},te=l instanceof Function;f||={};function re(d){var re=l[d];!re&&te&&(re=l.length==2?function(f){l(d,f)}:l),m[d]=re&&function(l){re(`[xmldom `+d+`] `+l+fe(f))}||function(){}}return re(`warning`),re(`error`),re(`fatalError`),m}function ue(){this.cdata=!1}function de(l,d){d.lineNumber=l.lineNumber,d.columnNumber=l.columnNumber}ue.prototype={startDocument:function(){this.doc=new re().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(l,d,f,m){var te=this.doc,re=te.createElementNS(l,f||d),ie=m.length;me(this,re),this.currentElement=re,this.locator&&de(this.locator,re);for(var ae=0;ae<ie;ae++){var l=m.getURI(ae),oe=m.getValue(ae),f=m.getQName(ae),se=te.createAttributeNS(l,f);this.locator&&de(m.getLocator(ae),se),se.value=se.nodeValue=oe,re.setAttributeNode(se)}},endElement:function(l,d,f){var m=this.currentElement;m.tagName,this.currentElement=m.parentNode},startPrefixMapping:function(l,d){},endPrefixMapping:function(l){},processingInstruction:function(l,d){var f=this.doc.createProcessingInstruction(l,d);this.locator&&de(this.locator,f),me(this,f)},ignorableWhitespace:function(l,d,f){},characters:function(l,d,f){if(l=pe.apply(this,arguments),l){if(this.cdata)var m=this.doc.createCDATASection(l);else var m=this.doc.createTextNode(l);this.currentElement?this.currentElement.appendChild(m):/^\s*$/.test(l)&&this.doc.appendChild(m),this.locator&&de(this.locator,m)}},skippedEntity:function(l){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(l){(this.locator=l)&&(l.lineNumber=0)},comment:function(l,d,f){l=pe.apply(this,arguments);var m=this.doc.createComment(l);this.locator&&de(this.locator,m),me(this,m)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(l,d,f){var m=this.doc.implementation;if(m&&m.createDocumentType){var te=m.createDocumentType(l,d,f);this.locator&&de(this.locator,te),me(this,te),this.doc.doctype=te}},warning:function(l){console.warn(`[xmldom warning] `+l,fe(this.locator))},error:function(l){console.error(`[xmldom error] `+l,fe(this.locator))},fatalError:function(l){throw new ae(l,this.locator)}};function fe(l){if(l)return`
45952
+ @`+(l.systemId||``)+`#[line:`+l.lineNumber+`,col:`+l.columnNumber+`]`}function pe(l,d,f){return typeof l==`string`?l.substr(d,f):l.length>=d+f||d?new java.lang.String(l,d,f)+``:l}`endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl`.replace(/\w+/g,function(l){ue.prototype[l]=function(){return null}});function me(l,d){l.currentElement?l.currentElement.appendChild(d):l.doc.appendChild(d)}l.__DOMHandler=ue,l.normalizeLineEndings=se,l.DOMParser=ce})),require_lib=__commonJSMin((l=>{var d=require_dom();l.DOMImplementation=d.DOMImplementation,l.XMLSerializer=d.XMLSerializer,l.DOMParser=require_dom_parser().DOMParser})),require_parse=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.parse=se;let f=require_lib(),m=d(__require$1(`assert`)),te=3,re=4,ie=8;function ae(l){return l.nodeType===3||l.nodeType===8||l.nodeType===4}function oe(l){return!l.childNodes||l.childNodes.length===0}function se(l){let d=new f.DOMParser({errorHandler(){}}).parseFromString(l);(0,m.default)(d.documentElement.nodeName===`plist`,`malformed document. First element should be <plist>`);let te=ce(d.documentElement);return te.length===1&&(te=te[0]),te}function ce(l){let d,f,te,re,ie,se;if(!l)return null;if(l.nodeName===`plist`){if(re=[],oe(l))return re;for(d=0;d<l.childNodes.length;d++)ae(l.childNodes[d])||re.push(ce(l.childNodes[d]));return re}else if(l.nodeName===`dict`){if(f=Object.create(null),te=null,se=0,oe(l))return f;for(d=0;d<l.childNodes.length;d++)if(!ae(l.childNodes[d])){if(se%2==0)(0,m.default)(l.childNodes[d].nodeName===`key`,`Missing key while parsing <dict/>.`),te=ce(l.childNodes[d]);else{if(l.childNodes[d].nodeName===`key`)throw Error(`Unexpected key "`+ce(l.childNodes[d])+`" while parsing <dict/>.`);f[te]=ce(l.childNodes[d])}se+=1}if(se%2==1)throw Error(`Missing value for "`+te+`" while parsing <dict/>`);return f}else if(l.nodeName===`array`){if(re=[],oe(l))return re;for(d=0;d<l.childNodes.length;d++)ae(l.childNodes[d])||(ie=ce(l.childNodes[d]),ie!=null&&re.push(ie));return re}else if(l.nodeName!==`#text`){if(l.nodeName===`key`)return oe(l)?``:l.childNodes[0].nodeValue;if(l.nodeName===`string`){if(ie=``,oe(l))return ie;for(d=0;d<l.childNodes.length;d++){let f=l.childNodes[d].nodeType;(f===3||f===4)&&(ie+=l.childNodes[d].nodeValue)}return ie}else if(l.nodeName===`integer`)return(0,m.default)(!oe(l),`Cannot parse "" as integer.`),parseInt(l.childNodes[0].nodeValue,10);else if(l.nodeName===`real`){for((0,m.default)(!oe(l),`Cannot parse "" as real.`),ie=``,d=0;d<l.childNodes.length;d++)l.childNodes[d].nodeType===3&&(ie+=l.childNodes[d].nodeValue);return parseFloat(ie)}else if(l.nodeName===`data`){if(ie=``,oe(l))return Buffer.from(ie,`base64`);for(d=0;d<l.childNodes.length;d++)l.childNodes[d].nodeType===3&&(ie+=l.childNodes[d].nodeValue.replace(/\s+/g,``));return Buffer.from(ie,`base64`)}else if(l.nodeName===`date`)return(0,m.default)(!oe(l),`Cannot parse "" as Date.`),new Date(l.childNodes[0].nodeValue);else if(l.nodeName===`true`)return!0;else if(l.nodeName===`false`)return!1}}})),require_build$1=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0});let d=require_build$2();l.default={parse:require_parse().parse,build:d.build}})),require_management=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.buildManagement=l.parseManagement=void 0;let f=d(require_build$1());function m(l){let d=f.default.parse(l),m={};if(d.SchemeUserState){m.SchemeUserState={};let l=d.SchemeUserState;for(let[d,f]of Object.entries(l))m.SchemeUserState[d]=te(f)}if(d.SuppressBuildableAutocreation){m.SuppressBuildableAutocreation={};let l=d.SuppressBuildableAutocreation;for(let[d,f]of Object.entries(l))m.SuppressBuildableAutocreation[d]=re(f)}return m}l.parseManagement=m;function te(l){let d={};return typeof l.isShown==`boolean`&&(d.isShown=l.isShown),typeof l.orderHint==`number`&&(d.orderHint=l.orderHint),d}function re(l){let d={};return typeof l.primary==`boolean`&&(d.primary=l.primary),d}function ie(l){let d={};return l.SchemeUserState&&(d.SchemeUserState=l.SchemeUserState),l.SuppressBuildableAutocreation&&(d.SuppressBuildableAutocreation=l.SuppressBuildableAutocreation),f.default.build(d)}l.buildManagement=ie})),require_types$4=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0})})),require_scheme=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__exportStar||function(l,f){for(var m in l)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&d(f,l,m)};Object.defineProperty(l,"__esModule",{value:!0}),l.buildManagement=l.parseManagement=l.build=l.parse=void 0;var m=require_parser$5();Object.defineProperty(l,"parse",{enumerable:!0,get:function(){return m.parse}});var te=require_writer$5();Object.defineProperty(l,"build",{enumerable:!0,get:function(){return te.build}});var re=require_management();Object.defineProperty(l,"parseManagement",{enumerable:!0,get:function(){return re.parseManagement}}),Object.defineProperty(l,"buildManagement",{enumerable:!0,get:function(){return re.buildManagement}}),f(require_types$4(),l)})),require_XCScheme=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.createBuildableReference=l.XCScheme=void 0;let re=__require$1(`fs`),ie=te(__require$1(`path`)),ae=m(require_scheme()),oe={running:!0,testing:!0,profiling:!0,archiving:!0,analyzing:!0};l.XCScheme=class l{constructor(l,d,f){this.name=l,this.props=d,this.filePath=f}static open(d){let f=(0,re.readFileSync)(d,`utf-8`),m=ae.parse(f);return new l(ie.default.basename(d,`.xcscheme`),m,d)}static create(d,f){let m={version:`1.7`,buildAction:{parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[]},testAction:{buildConfiguration:`Debug`,selectedDebuggerIdentifier:`Xcode.DebuggerFoundation.Debugger.LLDB`,selectedLauncherIdentifier:`Xcode.DebuggerFoundation.Launcher.LLDB`,shouldUseLaunchSchemeArgsEnv:!0,testables:[]},launchAction:{buildConfiguration:`Debug`,selectedDebuggerIdentifier:`Xcode.DebuggerFoundation.Debugger.LLDB`,selectedLauncherIdentifier:`Xcode.DebuggerFoundation.Launcher.LLDB`,launchStyle:`0`,useCustomWorkingDirectory:!1,ignoresPersistentStateOnLaunch:!1,debugDocumentVersioning:!0,debugServiceExtension:`internal`,allowLocationSimulation:!0},profileAction:{buildConfiguration:`Release`,shouldUseLaunchSchemeArgsEnv:!0,savedToolIdentifier:``,useCustomWorkingDirectory:!1,debugDocumentVersioning:!0},analyzeAction:{buildConfiguration:`Debug`},archiveAction:{buildConfiguration:`Release`,revealArchiveInOrganizer:!0}};return f&&Object.assign(m,f),new l(d,m)}static createForTarget(d,f,m){let te=f??d.props.name,re=se(d,m?`container:${ie.default.basename(m)}`:`container:${ie.default.basename(d.getXcodeProject().filePath,`/project.pbxproj`)}.xcodeproj`),ae=l.create(te);return ae.addBuildTarget(re),ae.setLaunchTarget(re),ae}save(l){let d=l??this.filePath;if(!d)throw Error(`No file path specified. Either provide a path or set this.filePath.`);let f=ie.default.dirname(d);(0,re.existsSync)(f)||(0,re.mkdirSync)(f,{recursive:!0});let m=ae.build(this.props);(0,re.writeFileSync)(d,m,`utf-8`),this.filePath=d}toXML(){return ae.build(this.props)}getBuildableReference(l){let d=this.props.buildAction?.entries??[];for(let f of d)if(f.buildableReference?.blueprintIdentifier===l)return f.buildableReference;return null}addBuildTarget(l,d){if(this.props.buildAction||(this.props.buildAction={parallelizeBuildables:!0,buildImplicitDependencies:!0,entries:[]}),this.props.buildAction.entries||(this.props.buildAction.entries=[]),this.props.buildAction.entries.find(d=>d.buildableReference?.blueprintIdentifier===l.blueprintIdentifier))return;let f={...oe,...d},m={buildForRunning:f.running,buildForTesting:f.testing,buildForProfiling:f.profiling,buildForArchiving:f.archiving,buildForAnalyzing:f.analyzing,buildableReference:l};this.props.buildAction.entries.push(m)}addTestTarget(l){this.props.testAction||(this.props.testAction={buildConfiguration:`Debug`,testables:[]}),this.props.testAction.testables||(this.props.testAction.testables=[]),!this.props.testAction.testables.find(d=>d.buildableReference?.blueprintIdentifier===l.blueprintIdentifier)&&this.props.testAction.testables.push({skipped:!1,buildableReference:l})}setLaunchTarget(l){this.props.launchAction||(this.props.launchAction={buildConfiguration:`Debug`}),this.props.launchAction.buildableProductRunnable={runnableDebuggingMode:`0`,buildableReference:l},this.props.profileAction||(this.props.profileAction={buildConfiguration:`Release`}),this.props.profileAction.buildableProductRunnable={runnableDebuggingMode:`0`,buildableReference:l}}setLaunchEnvironmentVariable(l,d,f=!0){this.props.launchAction||(this.props.launchAction={buildConfiguration:`Debug`}),this.props.launchAction.environmentVariables||(this.props.launchAction.environmentVariables=[]);let m=this.props.launchAction.environmentVariables.find(d=>d.key===l);if(m){m.value=d,m.isEnabled=f;return}this.props.launchAction.environmentVariables.push({key:l,value:d,isEnabled:f})}addLaunchArgument(l,d=!0){this.props.launchAction||(this.props.launchAction={buildConfiguration:`Debug`}),this.props.launchAction.commandLineArguments||(this.props.launchAction.commandLineArguments=[]);let f=this.props.launchAction.commandLineArguments.find(d=>d.argument===l);if(f){f.isEnabled=d;return}this.props.launchAction.commandLineArguments.push({argument:l,isEnabled:d})}};function se(l,d){let f=l.props.productReference?.getDisplayName()??`${l.props.name}.app`;return{buildableIdentifier:`primary`,blueprintIdentifier:l.uuid,buildableName:f,blueprintName:l.props.name,referencedContainer:d}}l.createBuildableReference=se})),require_parser$4=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.parse=void 0;let d=require_lib$2();function f(l){let f=new d.DOMParser().parseFromString(l,`text/xml`).documentElement;if(!f||f.tagName!==`Bucket`)throw Error(`Invalid breakpoint list file: root element must be <Bucket>`);return m(f)}l.parse=f;function m(l){let d={};d.uuid=se(l,`uuid`),d.type=se(l,`type`),d.version=se(l,`version`);let f=ue(l,`Breakpoints`);return f&&(d.breakpoints=de(f,`BreakpointProxy`).map(te)),d}function te(l){let d={breakpointExtensionID:se(l,`BreakpointExtensionID`)||``},f=ue(l,`BreakpointContent`);return f&&(d.breakpointContent=re(f)),d}function re(l){let d={};d.uuid=se(l,`uuid`),d.shouldBeEnabled=ce(l,`shouldBeEnabled`),d.ignoreCount=le(l,`ignoreCount`),d.continueAfterRunningActions=ce(l,`continueAfterRunningActions`),d.filePath=se(l,`filePath`),d.startingColumnNumber=se(l,`startingColumnNumber`),d.endingColumnNumber=se(l,`endingColumnNumber`),d.startingLineNumber=se(l,`startingLineNumber`),d.endingLineNumber=se(l,`endingLineNumber`),d.landmarkName=se(l,`landmarkName`),d.landmarkType=se(l,`landmarkType`),d.condition=se(l,`condition`),d.scope=se(l,`scope`),d.symbolName=se(l,`symbolName`),d.moduleName=se(l,`moduleName`),d.exceptionType=se(l,`exceptionType`),d.stopOnStyle=se(l,`stopOnStyle`);let f=ue(l,`Actions`);f&&(d.actions=de(f,`BreakpointActionProxy`).map(ie));let m=ue(l,`Locations`);return m&&(d.locations=de(m,`BreakpointLocationProxy`).map(oe)),d}function ie(l){let d={actionExtensionID:se(l,`ActionExtensionID`)||``},f=ue(l,`ActionContent`);return f&&(d.actionContent=ae(f)),d}function ae(l){let d={};return d.consoleCommand=se(l,`consoleCommand`),d.message=se(l,`message`),d.conveyanceType=se(l,`conveyanceType`),d.shellCommand=se(l,`shellCommand`),d.shellArguments=se(l,`shellArguments`),d.waitUntilDone=ce(l,`waitUntilDone`),d.script=se(l,`script`),d.soundName=se(l,`soundName`),d}function oe(l){let d=ue(l,`BreakpointLocationContent`)||l,f={};return f.uuid=se(d,`uuid`),f.shouldBeEnabled=ce(d,`shouldBeEnabled`),f.ignoreCount=le(d,`ignoreCount`),f.continueAfterRunningActions=ce(d,`continueAfterRunningActions`),f.symbolName=se(d,`symbolName`),f.moduleName=se(d,`moduleName`),f.urlString=se(d,`urlString`),f.startingLineNumber=se(d,`startingLineNumber`),f.endingLineNumber=se(d,`endingLineNumber`),f.startingColumnNumber=se(d,`startingColumnNumber`),f.endingColumnNumber=se(d,`endingColumnNumber`),f}function se(l,d){if(l.hasAttribute(d))return l.getAttribute(d)??void 0}function ce(l,d){let f=l.getAttribute(d);if(f===`Yes`||f===`YES`)return!0;if(f===`No`||f===`NO`)return!1}function le(l,d){let f=l.getAttribute(d);if(f==null)return;let m=parseInt(f,10);return isNaN(m)?void 0:m}function ue(l,d){let f=l.childNodes;for(let l=0;l<f.length;l++){let m=f[l];if(m.nodeType===1&&m.tagName===d)return m}return null}function de(l,d){let f=[],m=l.childNodes;for(let l=0;l<m.length;l++){let te=m[l];te.nodeType===1&&te.tagName===d&&f.push(te)}return f}})),require_writer$4=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.build=void 0;function d(l){let d=[];d.push(`<?xml version="1.0" encoding="UTF-8"?>`),d.push(`<Bucket`);let te=f(l);if(d.push(...te.map(l=>` ${l}`)),d[d.length-1]+=`>`,l.breakpoints&&l.breakpoints.length>0){d.push(`${oe(1)}<Breakpoints>`);for(let f of l.breakpoints)d.push(...m(f,2));d.push(`${oe(1)}</Breakpoints>`)}return d.push(`</Bucket>`),d.join(`
45952
45953
  `)+`
45953
- `}l.build=d;function f(l){let d=[];return l.uuid!==void 0&&d.push(`uuid = "${l.uuid}"`),l.type!==void 0&&d.push(`type = "${l.type}"`),l.version!==void 0&&d.push(`version = "${l.version}"`),d}function m(l,d){let f=[],m=oe(d);return f.push(`${m}<BreakpointProxy`),f.push(`${m} BreakpointExtensionID = "${l.breakpointExtensionID}">`),l.breakpointContent&&f.push(...te(l.breakpointContent,d+1)),f.push(`${m}</BreakpointProxy>`),f}function te(l,d){let f=[],m=oe(d),te=[];l.uuid!==void 0&&te.push(`uuid = "${l.uuid}"`),l.shouldBeEnabled!==void 0&&te.push(`shouldBeEnabled = "${se(l.shouldBeEnabled)}"`),l.ignoreCount!==void 0&&te.push(`ignoreCount = "${l.ignoreCount}"`),l.continueAfterRunningActions!==void 0&&te.push(`continueAfterRunningActions = "${se(l.continueAfterRunningActions)}"`),l.filePath!==void 0&&te.push(`filePath = "${ce(l.filePath)}"`),l.startingColumnNumber!==void 0&&te.push(`startingColumnNumber = "${l.startingColumnNumber}"`),l.endingColumnNumber!==void 0&&te.push(`endingColumnNumber = "${l.endingColumnNumber}"`),l.startingLineNumber!==void 0&&te.push(`startingLineNumber = "${l.startingLineNumber}"`),l.endingLineNumber!==void 0&&te.push(`endingLineNumber = "${l.endingLineNumber}"`),l.landmarkName!==void 0&&te.push(`landmarkName = "${ce(l.landmarkName)}"`),l.landmarkType!==void 0&&te.push(`landmarkType = "${l.landmarkType}"`),l.condition!==void 0&&te.push(`condition = "${ce(l.condition)}"`),l.scope!==void 0&&te.push(`scope = "${l.scope}"`),l.symbolName!==void 0&&te.push(`symbolName = "${ce(l.symbolName)}"`),l.moduleName!==void 0&&te.push(`moduleName = "${ce(l.moduleName)}"`),l.exceptionType!==void 0&&te.push(`exceptionType = "${l.exceptionType}"`),l.stopOnStyle!==void 0&&te.push(`stopOnStyle = "${l.stopOnStyle}"`),f.push(`${m}<BreakpointContent`);for(let l of te)f.push(`${m} ${l}`);if(l.actions&&l.actions.length>0||l.locations&&l.locations.length>0){if(f[f.length-1]+=`>`,l.actions&&l.actions.length>0){f.push(`${oe(d+1)}<Actions>`);for(let m of l.actions)f.push(...re(m,d+2));f.push(`${oe(d+1)}</Actions>`)}if(l.locations&&l.locations.length>0){f.push(`${oe(d+1)}<Locations>`);for(let m of l.locations)f.push(...ae(m,d+2));f.push(`${oe(d+1)}</Locations>`)}f.push(`${m}</BreakpointContent>`)}else f[f.length-1]+=`>`,f.push(`${m}</BreakpointContent>`);return f}function re(l,d){let f=[],m=oe(d);return f.push(`${m}<BreakpointActionProxy`),f.push(`${m} ActionExtensionID = "${l.actionExtensionID}">`),l.actionContent&&f.push(...ie(l.actionContent,d+1)),f.push(`${m}</BreakpointActionProxy>`),f}function ie(l,d){let f=[],m=oe(d),te=[];l.consoleCommand!==void 0&&te.push(`consoleCommand = "${ce(l.consoleCommand)}"`),l.message!==void 0&&te.push(`message = "${ce(l.message)}"`),l.conveyanceType!==void 0&&te.push(`conveyanceType = "${l.conveyanceType}"`),l.shellCommand!==void 0&&te.push(`shellCommand = "${ce(l.shellCommand)}"`),l.shellArguments!==void 0&&te.push(`shellArguments = "${ce(l.shellArguments)}"`),l.waitUntilDone!==void 0&&te.push(`waitUntilDone = "${se(l.waitUntilDone)}"`),l.script!==void 0&&te.push(`script = "${ce(l.script)}"`),l.soundName!==void 0&&te.push(`soundName = "${ce(l.soundName)}"`),f.push(`${m}<ActionContent`);for(let l of te)f.push(`${m} ${l}`);return f[f.length-1]+=`>`,f.push(`${m}</ActionContent>`),f}function ae(l,d){let f=[],m=oe(d),te=[];l.uuid!==void 0&&te.push(`uuid = "${l.uuid}"`),l.shouldBeEnabled!==void 0&&te.push(`shouldBeEnabled = "${se(l.shouldBeEnabled)}"`),l.ignoreCount!==void 0&&te.push(`ignoreCount = "${l.ignoreCount}"`),l.continueAfterRunningActions!==void 0&&te.push(`continueAfterRunningActions = "${se(l.continueAfterRunningActions)}"`),l.symbolName!==void 0&&te.push(`symbolName = "${ce(l.symbolName)}"`),l.moduleName!==void 0&&te.push(`moduleName = "${ce(l.moduleName)}"`),l.urlString!==void 0&&te.push(`urlString = "${ce(l.urlString)}"`),l.startingLineNumber!==void 0&&te.push(`startingLineNumber = "${l.startingLineNumber}"`),l.endingLineNumber!==void 0&&te.push(`endingLineNumber = "${l.endingLineNumber}"`),l.startingColumnNumber!==void 0&&te.push(`startingColumnNumber = "${l.startingColumnNumber}"`),l.endingColumnNumber!==void 0&&te.push(`endingColumnNumber = "${l.endingColumnNumber}"`),f.push(`${m}<BreakpointLocationProxy>`),f.push(`${oe(d+1)}<BreakpointLocationContent`);for(let l of te)f.push(`${oe(d+1)} ${l}`);return f[f.length-1]+=`>`,f.push(`${oe(d+1)}</BreakpointLocationContent>`),f.push(`${m}</BreakpointLocationProxy>`),f}function oe(l){return` `.repeat(l)}function se(l){return l?`Yes`:`No`}function ce(l){return l.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`)}})),require_types$3=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0})})),require_breakpoints=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__exportStar||function(l,f){for(var m in l)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&d(f,l,m)};Object.defineProperty(l,"__esModule",{value:!0}),l.build=l.parse=void 0;var m=require_parser$4();Object.defineProperty(l,"parse",{enumerable:!0,get:function(){return m.parse}});var te=require_writer$4();Object.defineProperty(l,"build",{enumerable:!0,get:function(){return te.build}}),f(require_types$3(),l)})),require_parser$3=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.parse=void 0;let f=d(require_build$1());function m(l){let d=f.default.parse(l),m={};return typeof d.BuildSystemType==`string`&&(m.BuildSystemType=d.BuildSystemType),typeof d.DerivedDataLocationStyle==`string`&&(m.DerivedDataLocationStyle=d.DerivedDataLocationStyle),typeof d.DerivedDataCustomLocation==`string`&&(m.DerivedDataCustomLocation=d.DerivedDataCustomLocation),typeof d.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded==`boolean`&&(m.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded=d.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded),typeof d.PreviewsEnabled==`boolean`&&(m.PreviewsEnabled=d.PreviewsEnabled),typeof d.BuildLocationStyle==`string`&&(m.BuildLocationStyle=d.BuildLocationStyle),typeof d.LiveSourceIssuesEnabled==`boolean`&&(m.LiveSourceIssuesEnabled=d.LiveSourceIssuesEnabled),typeof d.GatherCoverageData==`boolean`&&(m.GatherCoverageData=d.GatherCoverageData),typeof d.IDEIndexEnableInWorkspace==`boolean`&&(m.IDEIndexEnableInWorkspace=d.IDEIndexEnableInWorkspace),m}l.parse=m})),require_writer$3=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.build=void 0;let f=d(require_build$1());function m(l){let d={};return l.BuildSystemType!==void 0&&(d.BuildSystemType=l.BuildSystemType),l.DerivedDataLocationStyle!==void 0&&(d.DerivedDataLocationStyle=l.DerivedDataLocationStyle),l.DerivedDataCustomLocation!==void 0&&(d.DerivedDataCustomLocation=l.DerivedDataCustomLocation),l.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded!==void 0&&(d.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded=l.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded),l.PreviewsEnabled!==void 0&&(d.PreviewsEnabled=l.PreviewsEnabled),l.BuildLocationStyle!==void 0&&(d.BuildLocationStyle=l.BuildLocationStyle),l.LiveSourceIssuesEnabled!==void 0&&(d.LiveSourceIssuesEnabled=l.LiveSourceIssuesEnabled),l.GatherCoverageData!==void 0&&(d.GatherCoverageData=l.GatherCoverageData),l.IDEIndexEnableInWorkspace!==void 0&&(d.IDEIndexEnableInWorkspace=l.IDEIndexEnableInWorkspace),f.default.build(d)}l.build=m})),require_types$2=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0})})),require_settings=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__exportStar||function(l,f){for(var m in l)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&d(f,l,m)};Object.defineProperty(l,"__esModule",{value:!0}),l.build=l.parse=void 0;var m=require_parser$3();Object.defineProperty(l,"parse",{enumerable:!0,get:function(){return m.parse}});var te=require_writer$3();Object.defineProperty(l,"build",{enumerable:!0,get:function(){return te.build}}),f(require_types$2(),l)})),require_XCSharedData=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.XCSharedData=void 0;let re=__require$1(`fs`),ie=te(__require$1(`path`)),ae=m(require_breakpoints()),oe=m(require_settings()),se=m(require_scheme()),ce=require_XCScheme();l.XCSharedData=class l{constructor(l){this._breakpointsLoaded=!1,this._workspaceSettingsLoaded=!1,this._schemeManagementLoaded=!1,this.filePath=l}static open(d){if(!(0,re.existsSync)(d))throw Error(`Shared data directory does not exist: ${d}`);return new l(d)}static create(){return new l}getSchemesDir(){if(this.filePath)return ie.default.join(this.filePath,`xcschemes`)}getSchemes(){let l=this.getSchemesDir();return!l||!(0,re.existsSync)(l)?[]:(0,re.readdirSync)(l).filter(l=>l.endsWith(`.xcscheme`)).map(d=>ce.XCScheme.open(ie.default.join(l,d)))}getScheme(l){let d=this.getSchemesDir();if(!d)return null;let f=ie.default.join(d,`${l}.xcscheme`);return(0,re.existsSync)(f)?ce.XCScheme.open(f):null}saveScheme(l){if(!this.filePath)throw Error(`Cannot save scheme: no file path set for XCSharedData`);let d=ie.default.join(this.filePath,`xcschemes`);(0,re.existsSync)(d)||(0,re.mkdirSync)(d,{recursive:!0});let f=ie.default.join(d,`${l.name}.xcscheme`);l.save(f)}get schemeManagement(){if(this._schemeManagementLoaded)return this._schemeManagement;if(this._schemeManagementLoaded=!0,!this.filePath)return;let l=ie.default.join(this.filePath,`xcschemes`,`xcschememanagement.plist`);if(!(0,re.existsSync)(l))return;let d=(0,re.readFileSync)(l,`utf-8`);return this._schemeManagement=se.parseManagement(d),this._schemeManagement}set schemeManagement(l){this._schemeManagement=l,this._schemeManagementLoaded=!0}saveSchemeManagement(){if(!this.filePath)throw Error(`Cannot save scheme management: no file path set for XCSharedData`);let l=ie.default.join(this.filePath,`xcschemes`);(0,re.existsSync)(l)||(0,re.mkdirSync)(l,{recursive:!0});let d=ie.default.join(l,`xcschememanagement.plist`);if(this._schemeManagement){let l=se.buildManagement(this._schemeManagement);(0,re.writeFileSync)(d,l,`utf-8`)}}getBreakpointsPath(){if(this.filePath)return ie.default.join(this.filePath,`xcdebugger`,`Breakpoints_v2.xcbkptlist`)}get breakpoints(){if(this._breakpointsLoaded)return this._breakpoints;this._breakpointsLoaded=!0;let l=this.getBreakpointsPath();if(!l||!(0,re.existsSync)(l))return;let d=(0,re.readFileSync)(l,`utf-8`);return this._breakpoints=ae.parse(d),this._breakpoints}set breakpoints(l){this._breakpoints=l,this._breakpointsLoaded=!0}saveBreakpoints(){if(!this.filePath)throw Error(`Cannot save breakpoints: no file path set for XCSharedData`);let l=ie.default.join(this.filePath,`xcdebugger`);(0,re.existsSync)(l)||(0,re.mkdirSync)(l,{recursive:!0});let d=ie.default.join(l,`Breakpoints_v2.xcbkptlist`);if(this._breakpoints){let l=ae.build(this._breakpoints);(0,re.writeFileSync)(d,l,`utf-8`)}}getWorkspaceSettingsPath(){if(this.filePath)return ie.default.join(this.filePath,`WorkspaceSettings.xcsettings`)}get workspaceSettings(){if(this._workspaceSettingsLoaded)return this._workspaceSettings;this._workspaceSettingsLoaded=!0;let l=this.getWorkspaceSettingsPath();if(!l||!(0,re.existsSync)(l))return;let d=(0,re.readFileSync)(l,`utf-8`);return this._workspaceSettings=oe.parse(d),this._workspaceSettings}set workspaceSettings(l){this._workspaceSettings=l,this._workspaceSettingsLoaded=!0}saveWorkspaceSettings(){if(!this.filePath)throw Error(`Cannot save workspace settings: no file path set for XCSharedData`);(0,re.existsSync)(this.filePath)||(0,re.mkdirSync)(this.filePath,{recursive:!0});let l=ie.default.join(this.filePath,`WorkspaceSettings.xcsettings`);if(this._workspaceSettings){let d=oe.build(this._workspaceSettings);(0,re.writeFileSync)(l,d,`utf-8`)}}save(l){let d=l??this.filePath;if(!d)throw Error(`No file path specified. Either provide a path or set this.filePath.`);this.filePath=d,(0,re.existsSync)(d)||(0,re.mkdirSync)(d,{recursive:!0}),this._breakpointsLoaded&&this._breakpoints&&this.saveBreakpoints(),this._workspaceSettingsLoaded&&this._workspaceSettings&&this.saveWorkspaceSettings(),this._schemeManagementLoaded&&this._schemeManagement&&this.saveSchemeManagement()}}})),require_comments=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.isPBXFileReference=l.isPBXBuildFile=l.createReferenceList=void 0;function d(l){let d=l?.objects??{},re={};function ce(l){for(let[f,m]of Object.entries(d))if(m.buildConfigurationList===l){let l=m.name??m.path??m.productName;return l||(l=d[m.targets?.[0]]?.productName??d[m.targets?.[0]]?.name,l||=Object.values(d).find(l=>l.isa===`PBXContainerItemProxy`&&l.containerPortal===f)?.remoteInfo),`Build configuration list for ${m.isa} "${l}"`}return`Build configuration list for [unknown]`}function le(l){let f=Object.values(d).find(d=>d.files?.includes(l));return f?se(f):null}function ue(l,f){let m=le(l)??`[missing build phase]`,te=f.fileRef??f.productRef;return te?`${de(te,d[te])} in ${m}`:`[unknown] in ${m}`}function de(l,d){return d?.isa?l in re?re[l]:(te(d)?re[l]=ue(l,d):oe(d)?re[l]=ce(l):ie(d)?d.repositoryURL?re[l]=`${d.isa} "${f(d.repositoryURL)}"`:re[l]=d.isa:ae(d)?d.relativePath?re[l]=`${d.isa} "${d.relativePath}"`:re[l]=d.isa:m(d)?re[l]=`Project object`:d.isa?.endsWith(`BuildPhase`)?re[l]=se(d)??``:d.isa===`PBXGroup`&&d.name===void 0&&d.path===void 0?re[l]=``:re[l]=d.name??d.productName??d.path??d.isa??null,re[l]??null):null}return Object.entries(d).forEach(([l,d])=>{de(l,d)}),re}l.createReferenceList=d;function f(l){try{let d=new URL(l);if(d.hostname===`github.com`)return d.pathname.split(`/`).pop()}catch{}return l}function m(l){return l?.isa===`PBXProject`}function te(l){return l?.isa===`PBXBuildFile`}l.isPBXBuildFile=te;function re(l){return l?.isa===`PBXFileReference`}l.isPBXFileReference=re;function ie(l){return l?.isa===`XCRemoteSwiftPackageReference`}function ae(l){return l?.isa===`XCLocalSwiftPackageReference`}function oe(l){return l?.isa===`XCConfigurationList`}function se(l){return l.name??ce(l.isa)}function ce(l){return l.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}})),require_writer$2=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Writer=void 0;let d=require_comments(),f={"\x07":`\\a`,"\b":`\\b`,"\f":`\\f`,"\r":`\\r`," ":`\\t`,"\v":`\\v`,"\n":`\\n`,'"':`\\"`,"\\":`\\\\`,"\0":`\\U0000`,"":`\\U0001`,"":`\\U0002`,"":`\\U0003`,"":`\\U0004`,"":`\\U0005`,"":`\\U0006`,"":`\\U000e`,"":`\\U000f`,"":`\\U0010`,"":`\\U0011`,"":`\\U0012`,"":`\\U0013`,"":`\\U0014`,"":`\\U0015`,"":`\\U0016`,"":`\\U0017`,"":`\\U0018`,"":`\\U0019`,"":`\\U001a`,"\x1B":`\\U001b`,"":`\\U001c`,"":`\\U001d`,"":`\\U001e`,"":`\\U001f`},m=/\x07|\x08|\f|\r|\t|\v|\n|"|\\|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/g;function te(l){return String(l).replace(m,l=>f[l]||l)}let re=`
45954
+ `}l.build=d;function f(l){let d=[];return l.uuid!==void 0&&d.push(`uuid = "${l.uuid}"`),l.type!==void 0&&d.push(`type = "${l.type}"`),l.version!==void 0&&d.push(`version = "${l.version}"`),d}function m(l,d){let f=[],m=oe(d);return f.push(`${m}<BreakpointProxy`),f.push(`${m} BreakpointExtensionID = "${l.breakpointExtensionID}">`),l.breakpointContent&&f.push(...te(l.breakpointContent,d+1)),f.push(`${m}</BreakpointProxy>`),f}function te(l,d){let f=[],m=oe(d),te=[];l.uuid!==void 0&&te.push(`uuid = "${l.uuid}"`),l.shouldBeEnabled!==void 0&&te.push(`shouldBeEnabled = "${se(l.shouldBeEnabled)}"`),l.ignoreCount!==void 0&&te.push(`ignoreCount = "${l.ignoreCount}"`),l.continueAfterRunningActions!==void 0&&te.push(`continueAfterRunningActions = "${se(l.continueAfterRunningActions)}"`),l.filePath!==void 0&&te.push(`filePath = "${ce(l.filePath)}"`),l.startingColumnNumber!==void 0&&te.push(`startingColumnNumber = "${l.startingColumnNumber}"`),l.endingColumnNumber!==void 0&&te.push(`endingColumnNumber = "${l.endingColumnNumber}"`),l.startingLineNumber!==void 0&&te.push(`startingLineNumber = "${l.startingLineNumber}"`),l.endingLineNumber!==void 0&&te.push(`endingLineNumber = "${l.endingLineNumber}"`),l.landmarkName!==void 0&&te.push(`landmarkName = "${ce(l.landmarkName)}"`),l.landmarkType!==void 0&&te.push(`landmarkType = "${l.landmarkType}"`),l.condition!==void 0&&te.push(`condition = "${ce(l.condition)}"`),l.scope!==void 0&&te.push(`scope = "${l.scope}"`),l.symbolName!==void 0&&te.push(`symbolName = "${ce(l.symbolName)}"`),l.moduleName!==void 0&&te.push(`moduleName = "${ce(l.moduleName)}"`),l.exceptionType!==void 0&&te.push(`exceptionType = "${l.exceptionType}"`),l.stopOnStyle!==void 0&&te.push(`stopOnStyle = "${l.stopOnStyle}"`),f.push(`${m}<BreakpointContent`);for(let l of te)f.push(`${m} ${l}`);if(l.actions&&l.actions.length>0||l.locations&&l.locations.length>0){if(f[f.length-1]+=`>`,l.actions&&l.actions.length>0){f.push(`${oe(d+1)}<Actions>`);for(let m of l.actions)f.push(...re(m,d+2));f.push(`${oe(d+1)}</Actions>`)}if(l.locations&&l.locations.length>0){f.push(`${oe(d+1)}<Locations>`);for(let m of l.locations)f.push(...ae(m,d+2));f.push(`${oe(d+1)}</Locations>`)}f.push(`${m}</BreakpointContent>`)}else f[f.length-1]+=`>`,f.push(`${m}</BreakpointContent>`);return f}function re(l,d){let f=[],m=oe(d);return f.push(`${m}<BreakpointActionProxy`),f.push(`${m} ActionExtensionID = "${l.actionExtensionID}">`),l.actionContent&&f.push(...ie(l.actionContent,d+1)),f.push(`${m}</BreakpointActionProxy>`),f}function ie(l,d){let f=[],m=oe(d),te=[];l.consoleCommand!==void 0&&te.push(`consoleCommand = "${ce(l.consoleCommand)}"`),l.message!==void 0&&te.push(`message = "${ce(l.message)}"`),l.conveyanceType!==void 0&&te.push(`conveyanceType = "${l.conveyanceType}"`),l.shellCommand!==void 0&&te.push(`shellCommand = "${ce(l.shellCommand)}"`),l.shellArguments!==void 0&&te.push(`shellArguments = "${ce(l.shellArguments)}"`),l.waitUntilDone!==void 0&&te.push(`waitUntilDone = "${se(l.waitUntilDone)}"`),l.script!==void 0&&te.push(`script = "${ce(l.script)}"`),l.soundName!==void 0&&te.push(`soundName = "${ce(l.soundName)}"`),f.push(`${m}<ActionContent`);for(let l of te)f.push(`${m} ${l}`);return f[f.length-1]+=`>`,f.push(`${m}</ActionContent>`),f}function ae(l,d){let f=[],m=oe(d),te=[];l.uuid!==void 0&&te.push(`uuid = "${l.uuid}"`),l.shouldBeEnabled!==void 0&&te.push(`shouldBeEnabled = "${se(l.shouldBeEnabled)}"`),l.ignoreCount!==void 0&&te.push(`ignoreCount = "${l.ignoreCount}"`),l.continueAfterRunningActions!==void 0&&te.push(`continueAfterRunningActions = "${se(l.continueAfterRunningActions)}"`),l.symbolName!==void 0&&te.push(`symbolName = "${ce(l.symbolName)}"`),l.moduleName!==void 0&&te.push(`moduleName = "${ce(l.moduleName)}"`),l.urlString!==void 0&&te.push(`urlString = "${ce(l.urlString)}"`),l.startingLineNumber!==void 0&&te.push(`startingLineNumber = "${l.startingLineNumber}"`),l.endingLineNumber!==void 0&&te.push(`endingLineNumber = "${l.endingLineNumber}"`),l.startingColumnNumber!==void 0&&te.push(`startingColumnNumber = "${l.startingColumnNumber}"`),l.endingColumnNumber!==void 0&&te.push(`endingColumnNumber = "${l.endingColumnNumber}"`),f.push(`${m}<BreakpointLocationProxy>`),f.push(`${oe(d+1)}<BreakpointLocationContent`);for(let l of te)f.push(`${oe(d+1)} ${l}`);return f[f.length-1]+=`>`,f.push(`${oe(d+1)}</BreakpointLocationContent>`),f.push(`${m}</BreakpointLocationProxy>`),f}function oe(l){return` `.repeat(l)}function se(l){return l?`Yes`:`No`}function ce(l){return l.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`)}})),require_types$3=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0})})),require_breakpoints=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__exportStar||function(l,f){for(var m in l)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&d(f,l,m)};Object.defineProperty(l,"__esModule",{value:!0}),l.build=l.parse=void 0;var m=require_parser$4();Object.defineProperty(l,"parse",{enumerable:!0,get:function(){return m.parse}});var te=require_writer$4();Object.defineProperty(l,"build",{enumerable:!0,get:function(){return te.build}}),f(require_types$3(),l)})),require_parser$3=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.parse=void 0;let f=d(require_build$1());function m(l){let d=f.default.parse(l),m={};return typeof d.BuildSystemType==`string`&&(m.BuildSystemType=d.BuildSystemType),typeof d.DerivedDataLocationStyle==`string`&&(m.DerivedDataLocationStyle=d.DerivedDataLocationStyle),typeof d.DerivedDataCustomLocation==`string`&&(m.DerivedDataCustomLocation=d.DerivedDataCustomLocation),typeof d.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded==`boolean`&&(m.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded=d.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded),typeof d.PreviewsEnabled==`boolean`&&(m.PreviewsEnabled=d.PreviewsEnabled),typeof d.BuildLocationStyle==`string`&&(m.BuildLocationStyle=d.BuildLocationStyle),typeof d.LiveSourceIssuesEnabled==`boolean`&&(m.LiveSourceIssuesEnabled=d.LiveSourceIssuesEnabled),typeof d.GatherCoverageData==`boolean`&&(m.GatherCoverageData=d.GatherCoverageData),typeof d.IDEIndexEnableInWorkspace==`boolean`&&(m.IDEIndexEnableInWorkspace=d.IDEIndexEnableInWorkspace),m}l.parse=m})),require_writer$3=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.build=void 0;let f=d(require_build$1());function m(l){let d={};return l.BuildSystemType!==void 0&&(d.BuildSystemType=l.BuildSystemType),l.DerivedDataLocationStyle!==void 0&&(d.DerivedDataLocationStyle=l.DerivedDataLocationStyle),l.DerivedDataCustomLocation!==void 0&&(d.DerivedDataCustomLocation=l.DerivedDataCustomLocation),l.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded!==void 0&&(d.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded=l.IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded),l.PreviewsEnabled!==void 0&&(d.PreviewsEnabled=l.PreviewsEnabled),l.BuildLocationStyle!==void 0&&(d.BuildLocationStyle=l.BuildLocationStyle),l.LiveSourceIssuesEnabled!==void 0&&(d.LiveSourceIssuesEnabled=l.LiveSourceIssuesEnabled),l.GatherCoverageData!==void 0&&(d.GatherCoverageData=l.GatherCoverageData),l.IDEIndexEnableInWorkspace!==void 0&&(d.IDEIndexEnableInWorkspace=l.IDEIndexEnableInWorkspace),f.default.build(d)}l.build=m})),require_types$2=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0})})),require_settings=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__exportStar||function(l,f){for(var m in l)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&d(f,l,m)};Object.defineProperty(l,"__esModule",{value:!0}),l.build=l.parse=void 0;var m=require_parser$3();Object.defineProperty(l,"parse",{enumerable:!0,get:function(){return m.parse}});var te=require_writer$3();Object.defineProperty(l,"build",{enumerable:!0,get:function(){return te.build}}),f(require_types$2(),l)})),require_XCSharedData=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.XCSharedData=void 0;let re=__require$1(`fs`),ie=te(__require$1(`path`)),ae=m(require_breakpoints()),oe=m(require_settings()),se=m(require_scheme()),ce=require_XCScheme();l.XCSharedData=class l{constructor(l){this._breakpointsLoaded=!1,this._workspaceSettingsLoaded=!1,this._schemeManagementLoaded=!1,this.filePath=l}static open(d){if(!(0,re.existsSync)(d))throw Error(`Shared data directory does not exist: ${d}`);return new l(d)}static create(){return new l}getSchemesDir(){if(this.filePath)return ie.default.join(this.filePath,`xcschemes`)}getSchemes(){let l=this.getSchemesDir();return!l||!(0,re.existsSync)(l)?[]:(0,re.readdirSync)(l).filter(l=>l.endsWith(`.xcscheme`)).map(d=>ce.XCScheme.open(ie.default.join(l,d)))}getScheme(l){let d=this.getSchemesDir();if(!d)return null;let f=ie.default.join(d,`${l}.xcscheme`);return(0,re.existsSync)(f)?ce.XCScheme.open(f):null}saveScheme(l){if(!this.filePath)throw Error(`Cannot save scheme: no file path set for XCSharedData`);let d=ie.default.join(this.filePath,`xcschemes`);(0,re.existsSync)(d)||(0,re.mkdirSync)(d,{recursive:!0});let f=ie.default.join(d,`${l.name}.xcscheme`);l.save(f)}get schemeManagement(){if(this._schemeManagementLoaded)return this._schemeManagement;if(this._schemeManagementLoaded=!0,!this.filePath)return;let l=ie.default.join(this.filePath,`xcschemes`,`xcschememanagement.plist`);if(!(0,re.existsSync)(l))return;let d=(0,re.readFileSync)(l,`utf-8`);return this._schemeManagement=se.parseManagement(d),this._schemeManagement}set schemeManagement(l){this._schemeManagement=l,this._schemeManagementLoaded=!0}saveSchemeManagement(){if(!this.filePath)throw Error(`Cannot save scheme management: no file path set for XCSharedData`);let l=ie.default.join(this.filePath,`xcschemes`);(0,re.existsSync)(l)||(0,re.mkdirSync)(l,{recursive:!0});let d=ie.default.join(l,`xcschememanagement.plist`);if(this._schemeManagement){let l=se.buildManagement(this._schemeManagement);(0,re.writeFileSync)(d,l,`utf-8`)}}getBreakpointsPath(){if(this.filePath)return ie.default.join(this.filePath,`xcdebugger`,`Breakpoints_v2.xcbkptlist`)}get breakpoints(){if(this._breakpointsLoaded)return this._breakpoints;this._breakpointsLoaded=!0;let l=this.getBreakpointsPath();if(!l||!(0,re.existsSync)(l))return;let d=(0,re.readFileSync)(l,`utf-8`);return this._breakpoints=ae.parse(d),this._breakpoints}set breakpoints(l){this._breakpoints=l,this._breakpointsLoaded=!0}saveBreakpoints(){if(!this.filePath)throw Error(`Cannot save breakpoints: no file path set for XCSharedData`);let l=ie.default.join(this.filePath,`xcdebugger`);(0,re.existsSync)(l)||(0,re.mkdirSync)(l,{recursive:!0});let d=ie.default.join(l,`Breakpoints_v2.xcbkptlist`);if(this._breakpoints){let l=ae.build(this._breakpoints);(0,re.writeFileSync)(d,l,`utf-8`)}}getWorkspaceSettingsPath(){if(this.filePath)return ie.default.join(this.filePath,`WorkspaceSettings.xcsettings`)}get workspaceSettings(){if(this._workspaceSettingsLoaded)return this._workspaceSettings;this._workspaceSettingsLoaded=!0;let l=this.getWorkspaceSettingsPath();if(!l||!(0,re.existsSync)(l))return;let d=(0,re.readFileSync)(l,`utf-8`);return this._workspaceSettings=oe.parse(d),this._workspaceSettings}set workspaceSettings(l){this._workspaceSettings=l,this._workspaceSettingsLoaded=!0}saveWorkspaceSettings(){if(!this.filePath)throw Error(`Cannot save workspace settings: no file path set for XCSharedData`);(0,re.existsSync)(this.filePath)||(0,re.mkdirSync)(this.filePath,{recursive:!0});let l=ie.default.join(this.filePath,`WorkspaceSettings.xcsettings`);if(this._workspaceSettings){let d=oe.build(this._workspaceSettings);(0,re.writeFileSync)(l,d,`utf-8`)}}save(l){let d=l??this.filePath;if(!d)throw Error(`No file path specified. Either provide a path or set this.filePath.`);this.filePath=d,(0,re.existsSync)(d)||(0,re.mkdirSync)(d,{recursive:!0}),this._breakpointsLoaded&&this._breakpoints&&this.saveBreakpoints(),this._workspaceSettingsLoaded&&this._workspaceSettings&&this.saveWorkspaceSettings(),this._schemeManagementLoaded&&this._schemeManagement&&this.saveSchemeManagement()}}})),require_XCUserData=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.XCUserData=void 0;let re=__require$1(`fs`),ie=te(__require$1(`path`)),ae=m(require_breakpoints()),oe=m(require_scheme()),se=require_XCScheme();l.XCUserData=class l{constructor(l,d){this._breakpointsLoaded=!1,this._schemeManagementLoaded=!1,this.userName=l,this.filePath=d}static open(d){if(!(0,re.existsSync)(d))throw Error(`User data directory does not exist: ${d}`);let f=ie.default.basename(d);if(!f.endsWith(`.xcuserdatad`))throw Error(`Invalid user data directory name: ${f}. Expected *.xcuserdatad`);return new l(f.replace(/\.xcuserdatad$/,``),d)}static create(d){return new l(d)}static discoverUsers(d){return(0,re.existsSync)(d)?(0,re.readdirSync)(d).filter(l=>l.endsWith(`.xcuserdatad`)).map(f=>l.open(ie.default.join(d,f))):[]}getDirName(){return`${this.userName}.xcuserdatad`}getSchemesDir(){if(this.filePath)return ie.default.join(this.filePath,`xcschemes`)}getSchemes(){let l=this.getSchemesDir();return!l||!(0,re.existsSync)(l)?[]:(0,re.readdirSync)(l).filter(l=>l.endsWith(`.xcscheme`)).map(d=>se.XCScheme.open(ie.default.join(l,d)))}getScheme(l){let d=this.getSchemesDir();if(!d)return null;let f=ie.default.join(d,`${l}.xcscheme`);return(0,re.existsSync)(f)?se.XCScheme.open(f):null}saveScheme(l){if(!this.filePath)throw Error(`Cannot save scheme: no file path set for XCUserData`);let d=ie.default.join(this.filePath,`xcschemes`);(0,re.existsSync)(d)||(0,re.mkdirSync)(d,{recursive:!0});let f=ie.default.join(d,`${l.name}.xcscheme`);l.save(f)}get schemeManagement(){if(this._schemeManagementLoaded)return this._schemeManagement;if(this._schemeManagementLoaded=!0,!this.filePath)return;let l=ie.default.join(this.filePath,`xcschemes`,`xcschememanagement.plist`);if(!(0,re.existsSync)(l))return;let d=(0,re.readFileSync)(l,`utf-8`);return this._schemeManagement=oe.parseManagement(d),this._schemeManagement}set schemeManagement(l){this._schemeManagement=l,this._schemeManagementLoaded=!0}saveSchemeManagement(){if(!this.filePath)throw Error(`Cannot save scheme management: no file path set for XCUserData`);let l=ie.default.join(this.filePath,`xcschemes`);(0,re.existsSync)(l)||(0,re.mkdirSync)(l,{recursive:!0});let d=ie.default.join(l,`xcschememanagement.plist`);if(this._schemeManagement){let l=oe.buildManagement(this._schemeManagement);(0,re.writeFileSync)(d,l,`utf-8`)}}getBreakpointsPath(){if(this.filePath)return ie.default.join(this.filePath,`xcdebugger`,`Breakpoints_v2.xcbkptlist`)}get breakpoints(){if(this._breakpointsLoaded)return this._breakpoints;this._breakpointsLoaded=!0;let l=this.getBreakpointsPath();if(!l||!(0,re.existsSync)(l))return;let d=(0,re.readFileSync)(l,`utf-8`);return this._breakpoints=ae.parse(d),this._breakpoints}set breakpoints(l){this._breakpoints=l,this._breakpointsLoaded=!0}saveBreakpoints(){if(!this.filePath)throw Error(`Cannot save breakpoints: no file path set for XCUserData`);let l=ie.default.join(this.filePath,`xcdebugger`);(0,re.existsSync)(l)||(0,re.mkdirSync)(l,{recursive:!0});let d=ie.default.join(l,`Breakpoints_v2.xcbkptlist`);if(this._breakpoints){let l=ae.build(this._breakpoints);(0,re.writeFileSync)(d,l,`utf-8`)}}save(l){let d=l??this.filePath;if(!d)throw Error(`No file path specified. Either provide a path or set this.filePath.`);this.filePath=d,(0,re.existsSync)(d)||(0,re.mkdirSync)(d,{recursive:!0}),this._breakpointsLoaded&&this._breakpoints&&this.saveBreakpoints(),this._schemeManagementLoaded&&this._schemeManagement&&this.saveSchemeManagement()}}})),require_comments=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.isPBXFileReference=l.isPBXBuildFile=l.createReferenceList=void 0;function d(l){let d=l?.objects??{},re={};function ce(l){for(let[f,m]of Object.entries(d))if(m.buildConfigurationList===l){let l=m.name??m.path??m.productName;return l||(l=d[m.targets?.[0]]?.productName??d[m.targets?.[0]]?.name,l||=Object.values(d).find(l=>l.isa===`PBXContainerItemProxy`&&l.containerPortal===f)?.remoteInfo),`Build configuration list for ${m.isa} "${l}"`}return`Build configuration list for [unknown]`}function le(l){let f=Object.values(d).find(d=>d.files?.includes(l));return f?se(f):null}function ue(l,f){let m=le(l)??`[missing build phase]`,te=f.fileRef??f.productRef;return te?`${de(te,d[te])} in ${m}`:`[unknown] in ${m}`}function de(l,d){return d?.isa?l in re?re[l]:(te(d)?re[l]=ue(l,d):oe(d)?re[l]=ce(l):ie(d)?d.repositoryURL?re[l]=`${d.isa} "${f(d.repositoryURL)}"`:re[l]=d.isa:ae(d)?d.relativePath?re[l]=`${d.isa} "${d.relativePath}"`:re[l]=d.isa:m(d)?re[l]=`Project object`:d.isa?.endsWith(`BuildPhase`)?re[l]=se(d)??``:d.isa===`PBXGroup`&&d.name===void 0&&d.path===void 0?re[l]=``:re[l]=d.name??d.productName??d.path??d.isa??null,re[l]??null):null}return Object.entries(d).forEach(([l,d])=>{de(l,d)}),re}l.createReferenceList=d;function f(l){try{let d=new URL(l);if(d.hostname===`github.com`)return d.pathname.split(`/`).pop()}catch{}return l}function m(l){return l?.isa===`PBXProject`}function te(l){return l?.isa===`PBXBuildFile`}l.isPBXBuildFile=te;function re(l){return l?.isa===`PBXFileReference`}l.isPBXFileReference=re;function ie(l){return l?.isa===`XCRemoteSwiftPackageReference`}function ae(l){return l?.isa===`XCLocalSwiftPackageReference`}function oe(l){return l?.isa===`XCConfigurationList`}function se(l){return l.name??ce(l.isa)}function ce(l){return l.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}})),require_writer$2=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.Writer=void 0;let d=require_comments(),f={"\x07":`\\a`,"\b":`\\b`,"\f":`\\f`,"\r":`\\r`," ":`\\t`,"\v":`\\v`,"\n":`\\n`,'"':`\\"`,"\\":`\\\\`,"\0":`\\U0000`,"":`\\U0001`,"":`\\U0002`,"":`\\U0003`,"":`\\U0004`,"":`\\U0005`,"":`\\U0006`,"":`\\U000e`,"":`\\U000f`,"":`\\U0010`,"":`\\U0011`,"":`\\U0012`,"":`\\U0013`,"":`\\U0014`,"":`\\U0015`,"":`\\U0016`,"":`\\U0017`,"":`\\U0018`,"":`\\U0019`,"":`\\U001a`,"\x1B":`\\U001b`,"":`\\U001c`,"":`\\U001d`,"":`\\U001e`,"":`\\U001f`},m=/\x07|\x08|\f|\r|\t|\v|\n|"|\\|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/g;function te(l){return String(l).replace(m,l=>f[l]||l)}let re=`
45954
45955
  `;try{re=__require$1(`os`).EOL}catch{}function ie(l){return typeof l==`object`&&!!l&&!(l instanceof Buffer)}function ae(l){return l=te(l),/^[\w_$/:.]+$/.test(l)?l:`"${l}"`}function oe(l){return`<${l.toString(`hex`).toUpperCase()}>`}function se(l){let d={};return Object.entries(l).forEach(([l,f])=>{d[f.isa]||(d[f.isa]=[]),d[f.isa].push([l,f])}),Object.entries(d).sort()}l.Writer=class{pad(l){let d=this.options.tab??` `;return l>0?d+this.pad(l-1):``}constructor(l,f={}){this.project=l,this.options=f,this.indent=0,this.contents=``,this.comments={},this.comments=(0,d.createReferenceList)(l),this.writeShebang(),this.writeProject()}getResults(){return this.contents}println(l){this.contents+=this.pad(this.indent),this.contents+=l,this.contents+=re}write(l){this.contents+=this.pad(this.indent),this.contents+=l}printAssignLn(l,d){return this.println(l+` = `+d+`;`)}flush(l){let d=this.indent;this.indent=0,this.write(l),this.indent=d}writeShebang(){let l=this.options?.shebang??`!$*UTF8*$!`;this.println(`// ${l}`)}formatId(l,d=this.comments[l]){return d?`${l} /* ${d} */`:ae(l)}writeProject(){this.println(`{`),this.project&&(this.indent++,this.writeObject(this.project,!0),this.indent--),this.println(`}`)}keyHasFloatValue(l){return l===l.toUpperCase()&&(l.endsWith(`SWIFT_VERSION`)||l.endsWith(`MARKETING_VERSION`)||l.endsWith(`_DEPLOYMENT_TARGET`))}writeObject(l,d){Object.entries(l).sort(([l],[d])=>l===`isa`?-1:d===`isa`?1:l<d?-1:+(l>d)).forEach(([l,f])=>{if(!(this.options.skipNullishValues&&f==null))if(f instanceof Buffer)this.printAssignLn(ae(l),oe(f));else if(Array.isArray(f))this.writeArray(l,f);else if(ie(f)){if(!d&&!Object.keys(f).length){this.println(ae(l)+` = {};`);return}this.println(ae(l)+` = {`),this.indent++,d&&l===`objects`?this.writePbxObjects(f):this.writeObject(f,d),this.indent--,this.println(`};`)}else if(typeof f==`number`){let d=this.keyHasFloatValue(l)&&Number.isInteger(f)?`${f}.0`:f;this.printAssignLn(ae(l),ae(d))}else this.printAssignLn(ae(l),l===`remoteGlobalIDString`||l===`TestTargetID`?ae(f):this.formatId(f))})}writePbxObjects(l){se(l).forEach(([l,d])=>{this.flush(re),this.flush(`/* Begin ${l} section */`+re),d.sort(([l],[d])=>l.localeCompare(d)).forEach(([l,d])=>this.writeObjectInclusive(l,d)),this.flush(`/* End ${l} section */`+re)})}writeArray(l,d){this.println(ae(l)+` = (`),this.indent++,d.forEach(l=>{if(l instanceof Buffer)this.println(oe(l)+`,`);else if(l==null)return;else ie(l)?(this.println(`{`),l&&(this.indent++,this.writeObject(l),this.indent--),this.println(`},`)):this.println(this.formatId(String(l))+`,`)}),this.indent--,this.println(`);`)}writeObjectInclusive(l,f){if((0,d.isPBXBuildFile)(f)||(0,d.isPBXFileReference)(f))return this.writeObjectWithoutIndent(l,f);this.println(this.formatId(l)+` = {`),this.indent++,this.writeObject(f),this.indent--,this.println(`};`)}writeObjectWithoutIndent(l,d){let f=[],m=(l,d)=>{f.push(this.formatId(l)+` = {`),Object.entries(d).sort(([l],[d])=>l===`isa`?-1:d===`isa`?1:l<d?-1:+(l>d)).forEach(([l,d])=>{this.options.skipNullishValues&&d==null||(d instanceof Buffer?f.push(ae(l)+` = `+oe(d)+`; `):Array.isArray(d)?(f.push(ae(l)+` = (`),d.forEach(l=>f.push(ae(l)+`, `)),f.push(`); `)):ie(d)?m(l,d):f.push(ae(l)+` = `+this.formatId(d)+`; `))}),f.push(`}; `)};m(l,d),this.println(f.join(``).trim())}}})),require_parser$2=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.parse=l.Parser=void 0;let d={128:160,129:192,130:193,131:194,132:195,133:196,134:197,135:199,136:200,137:201,138:202,139:203,140:204,141:205,142:206,143:207,144:208,145:209,146:210,147:211,148:212,149:213,150:214,151:217,152:218,153:219,154:220,155:221,156:222,157:181,158:215,159:247,160:169,161:161,162:162,163:163,164:8260,165:165,166:402,167:167,168:164,169:8217,170:8220,171:171,172:8249,173:8250,174:64257,175:64258,176:174,177:8211,178:8224,179:8225,180:183,181:166,182:182,183:8226,184:8218,185:8222,186:8221,187:187,188:8230,189:8240,190:172,191:191,192:185,193:715,194:180,195:710,196:732,197:175,198:728,199:729,200:168,201:178,202:730,203:184,204:179,205:733,206:731,207:711,208:8212,209:177,210:188,211:189,212:190,213:224,214:225,215:226,216:227,217:228,218:229,219:231,220:232,221:233,222:234,223:235,224:236,225:198,226:237,227:170,228:238,229:239,230:240,231:241,232:321,233:216,234:338,235:186,236:242,237:243,238:244,239:245,240:246,241:230,242:249,243:250,244:251,245:305,246:252,247:253,248:322,249:248,250:339,251:223,252:254,253:255,254:65533,255:65533},f=32,m=9,te=10,re=13,ie=123,ae=125,oe=40,se=41,ce=59,le=44,ue=61,de=34,fe=39,pe=92,me=47,he=42,ge=60,_e=62,ve={97:7,98:8,102:12,110:10,114:13,116:9,118:11,34:34,39:39,92:92,10:10},ye=new Uint8Array(256);ye[32]=1,ye[9]=1,ye[10]=1,ye[13]=1;let be=new Uint8Array(256);for(let l=65;l<=90;l++)be[l]=1;for(let l=97;l<=122;l++)be[l]=1;for(let l=48;l<=57;l++)be[l]=1;be[95]=1,be[36]=1,be[47]=1,be[58]=1,be[46]=1,be[45]=1;let xe=new Uint8Array(256);for(let l=48;l<=57;l++)xe[l]=1;for(let l=65;l<=70;l++)xe[l]=1;for(let l=97;l<=102;l++)xe[l]=1;let Se=new Uint8Array(256);for(let l=48;l<=55;l++)Se[l]=1;let Ce=new Uint8Array(256);for(let l=48;l<=57;l++)Ce[l]=1;var we=class{constructor(l){this.pos=0,this.text=l,this.len=l.length}parse(){this.skipWhitespaceAndComments();let l=this.text.charCodeAt(this.pos);if(l===123)return this.parseObject();if(l===40)return this.parseArray();throw this.error(`Expected '{' or '('`)}skipWhitespaceAndComments(){for(;this.pos<this.len;){let l=this.text.charCodeAt(this.pos);if(ye[l]){this.pos++;continue}if(l===47){let l=this.text.charCodeAt(this.pos+1);if(l===47){for(this.pos+=2;this.pos<this.len&&this.text.charCodeAt(this.pos)!==10;)this.pos++;continue}else if(l===42){for(this.pos+=2;this.pos<this.len-1;){if(this.text.charCodeAt(this.pos)===42&&this.text.charCodeAt(this.pos+1)===47){this.pos+=2;break}this.pos++}continue}}break}}parseObject(){this.pos++;let l={};for(;;){if(this.skipWhitespaceAndComments(),this.pos>=this.len)throw this.error(`Unexpected end of input in object`);if(this.text.charCodeAt(this.pos)===125)return this.pos++,l;let d=this.parseIdentifierAsString();if(this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==61)throw this.error(`Expected '='`);if(this.pos++,this.skipWhitespaceAndComments(),l[d]=this.parseValue(),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)!==59)throw this.error(`Expected ';'`);this.pos++}}parseArray(){this.pos++;let l=[];for(;;){if(this.skipWhitespaceAndComments(),this.pos>=this.len)throw this.error(`Unexpected end of input in array`);if(this.text.charCodeAt(this.pos)===41)return this.pos++,l;l.push(this.parseValue()),this.skipWhitespaceAndComments(),this.text.charCodeAt(this.pos)===44&&this.pos++}}parseValue(){this.skipWhitespaceAndComments();let l=this.text.charCodeAt(this.pos);return l===123?this.parseObject():l===40?this.parseArray():l===60?this.parseDataLiteral():l===34||l===39?this.parseQuotedString():this.parseStringLiteral()}parseIdentifierAsString(){let l=this.text.charCodeAt(this.pos);return l===34||l===39?this.parseQuotedString():this.parseStringLiteralRaw()}parseStringLiteralRaw(){let l=this.pos;for(;this.pos<this.len&&be[this.text.charCodeAt(this.pos)];)this.pos++;if(this.pos===l)throw this.error(`Expected string literal`);return this.text.slice(l,this.pos)}parseStringLiteral(){let l=this.parseStringLiteralRaw();return this.parseType(l)}parseType(l){let d=l.length;if(d===0)return l;let f=l.charCodeAt(0),m=Ce[f]===1;if(m){for(let f=1;f<d;f++)if(Ce[l.charCodeAt(f)]!==1){m=!1;break}}if(m){if(f===48&&d>1)return l;let m=parseInt(l,10);return Number.isSafeInteger(m)?m:l}let te=!1,re=!0;for(let f=0;f<d;f++){let d=l.charCodeAt(f);if(d===46){if(te){re=!1;break}te=!0}else if(d===43||d===45){if(f!==0){re=!1;break}}else if(Ce[d]!==1){re=!1;break}}if(re&&te){if(l.charCodeAt(d-1)===48)return l;let f=parseFloat(l);if(!isNaN(f))return f}return l}parseQuotedString(){let l=this.text.charCodeAt(this.pos);this.pos++;let d=this.pos,f=!1;for(;this.pos<this.len;){let m=this.text.charCodeAt(this.pos);if(m===l){if(!f){let l=this.text.slice(d,this.pos);return this.pos++,l}break}m===92?(f=!0,this.pos+=2):this.pos++}if(this.pos>=this.len)throw this.error(`Unterminated string`);let m=this.text.slice(d,this.pos);return this.pos++,this.unescapeString(m)}unescapeString(l){let f=[],m=0,te=l.length;for(;m<te;)if(l.charCodeAt(m)===92&&m+1<te){let re=l.charCodeAt(m+1),ie=ve[re];if(ie!==void 0){f.push(String.fromCharCode(ie)),m+=2;continue}if(re===85&&m+5<te){let d=l.slice(m+2,m+6);if(this.isHexString(d)){f.push(String.fromCharCode(parseInt(d,16))),m+=6;continue}}if(Se[re]){let re=``,ie=m+1;for(;ie<te&&ie<m+4&&Se[l.charCodeAt(ie)];)re+=l[ie],ie++;let ae=parseInt(re,8),oe=ae>=128&&d[ae]||ae;f.push(String.fromCharCode(oe)),m=ie;continue}f.push(l[m],l[m+1]),m+=2}else f.push(l[m]),m++;return f.join(``)}isHexString(l){if(l.length!==4)return!1;for(let d=0;d<4;d++)if(!xe[l.charCodeAt(d)])return!1;return!0}parseDataLiteral(){this.pos++;let l=[];for(;this.pos<this.len;){let d=this.text.charCodeAt(this.pos);if(d===62)return this.pos++,Buffer.from(l.join(``),`hex`);if(ye[d]){this.pos++;continue}if(xe[d]){l.push(this.text[this.pos]),this.pos++;continue}throw this.error(`Invalid character in data literal`)}throw this.error(`Unterminated data literal`)}error(l){let d=1,f=1;for(let l=0;l<this.pos;l++)this.text.charCodeAt(l)===10?(d++,f=1):f++;return Error(`${l} at line ${d}, column ${f}`)}};l.Parser=we;function Te(l){return new we(l).parse()}l.parse=Te})),require_json=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__exportStar||function(l,f){for(var m in l)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&d(f,l,m)};Object.defineProperty(l,"__esModule",{value:!0}),l.build=l.parse=void 0;let m=require_writer$2();var te=require_parser$2();Object.defineProperty(l,"parse",{enumerable:!0,get:function(){return te.parse}});function re(l){return new m.Writer(l).getResults()}l.build=re,f(require_types$5(),l)})),require_PBXSourcesBuildPhase=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXShellScriptBuildPhase=l.PBXFrameworksBuildPhase=l.PBXRezBuildPhase=l.PBXAppleScriptBuildPhase=l.PBXHeadersBuildPhase=l.PBXResourcesBuildPhase=l.PBXSourcesBuildPhase=l.PBXCopyFilesBuildPhase=l.AbstractBuildPhase=void 0;let te=m(require_types$5()),re=require_AbstractObject(),ie=require_PBXBuildFile();var ae=class extends re.AbstractObject{getObjectProps(){return{files:[String]}}createFile(l){let d=ie.PBXBuildFile.create(this.getXcodeProject(),l);return this.props.files.push(d),d}ensureFile(l){return this.getBuildFile(l.fileRef)||this.createFile(l)}getFileReferences(){return this.props.files.map(l=>l.props.fileRef)}getBuildFile(l){return this.props.files.length?(typeof l==`string`?this.getXcodeProject().getReferrers(l):l.getReferrers()).filter(l=>ie.PBXBuildFile.is(l)).find(l=>this.props.files.some(d=>d.uuid===l.uuid))??null:null}includesFile(l){return!!this.getBuildFile(l)}isReferencing(l){return!!this.props.files.find(d=>d.uuid===l)}removeFileReference(l){this.props.files.filter(d=>d.props.fileRef?.uuid===l.uuid).forEach(l=>{this.props.files.splice(this.props.files.indexOf(l),1),l.removeFromProject()})}removeBuildFile(l){l.removeFromProject()}setupDefaults(){this.props.buildActionMask??(this.props.buildActionMask=2147483647),this.props.runOnlyForDeploymentPostprocessing??(this.props.runOnlyForDeploymentPostprocessing=0),this.props.files||(this.props.files=[])}};l.AbstractBuildPhase=ae;var oe=class l extends ae{static is(d){return d.isa===l.isa}getDisplayName(){return super.getDisplayName().replace(/BuildPhase$/,``)}isAppExtensionFileRef(l){return l.props.fileRef&&l.props.fileRef.isa===`PBXFileReference`&&`isAppExtension`in l.props.fileRef&&l.props.fileRef.isAppExtension()?l.props.fileRef:null}ensureDefaultsForTarget(l){l.isWatchOSTarget()?(this.props.dstPath=`$(CONTENTS_FOLDER_PATH)/Watch`,this.props.dstSubfolderSpec=16,this.props.name=`Embed Watch Content`):l.props.productType===`com.apple.product-type.application.on-demand-install-capable`?(this.props.dstPath=`$(CONTENTS_FOLDER_PATH)/AppClips`,this.props.dstSubfolderSpec=16,this.props.name=`Embed App Clips`):l.props.productType===`com.apple.product-type.extensionkit-extension`?(this.props.dstPath=`$(EXTENSIONS_FOLDER_PATH)`,this.props.dstSubfolderSpec=16,this.props.name=`Embed ExtensionKit Extensions`):l.props.productReference?.isAppExtension()&&(this.props.dstSubfolderSpec=13,this.props.name=`Embed Foundation Extensions`)}setupDefaults(){let l=this.props.files.map(l=>typeof l!=`string`&&this.isAppExtensionFileRef(l)).filter(Boolean);if(l.length){let d=l.map(l=>l.getTargetReferrers()).flat().filter(Boolean)[0];d&&this.ensureDefaultsForTarget(d)}this.props.dstPath||(this.props.dstPath=``),this.props.dstSubfolderSpec||(this.props.dstSubfolderSpec=7),super.setupDefaults()}};l.PBXCopyFilesBuildPhase=oe,oe.isa=te.ISA.PBXCopyFilesBuildPhase;var se=class l extends ae{static is(d){return d.isa===l.isa}};l.PBXSourcesBuildPhase=se,se.isa=te.ISA.PBXSourcesBuildPhase;var ce=class l extends ae{static is(d){return d.isa===l.isa}};l.PBXResourcesBuildPhase=ce,ce.isa=te.ISA.PBXResourcesBuildPhase;var le=class l extends ae{static is(d){return d.isa===l.isa}};l.PBXHeadersBuildPhase=le,le.isa=te.ISA.PBXHeadersBuildPhase;var ue=class l extends ae{static is(d){return d.isa===l.isa}};l.PBXAppleScriptBuildPhase=ue,ue.isa=te.ISA.PBXAppleScriptBuildPhase;var de=class l extends ae{static is(d){return d.isa===l.isa}};l.PBXRezBuildPhase=de,de.isa=te.ISA.PBXRezBuildPhase;var fe=class l extends ae{static is(d){return d.isa===l.isa}};l.PBXFrameworksBuildPhase=fe,fe.isa=te.ISA.PBXFrameworksBuildPhase;var pe=class l extends ae{static is(d){return d.isa===l.isa}setupDefaults(){this.props.shellPath||(this.props.shellPath=`/bin/sh`),this.props.shellScript||(this.props.shellScript=`# Type a script or drag a script file from your workspace to insert its path.
45955
45956
  `),super.setupDefaults()}};l.PBXShellScriptBuildPhase=pe,pe.isa=te.ISA.PBXShellScriptBuildPhase})),require_PBXVariantGroup=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXVariantGroup=void 0;let te=m(require_types$5()),re=require_AbstractGroup();var ie=class l extends re.AbstractGroup{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,children:[],sourceTree:`<group>`,...f})}};l.PBXVariantGroup=ie,ie.isa=te.ISA.PBXVariantGroup})),require_XCVersionGroup=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.XCVersionGroup=void 0;let te=m(require_types$5()),re=require_AbstractGroup();var ie=class l extends re.AbstractGroup{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,children:[],sourceTree:`<group>`,versionGroupType:`wrapper.xcdatamodel`,...f})}setupDefaults(){this.props.versionGroupType||(this.props.versionGroupType=`wrapper.xcdatamodel`),super.setupDefaults()}};l.XCVersionGroup=ie,ie.isa=te.ISA.XCVersionGroup})),require_PBXFileSystemSynchronizedRootGroup=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXFileSystemSynchronizedRootGroup=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{exceptions:[String]}}removeFromProject(){if(this.props.exceptions)for(let l of[...this.props.exceptions]){let d=l.getReferrers();d.length===1&&d[0].uuid===this.uuid&&l.removeFromProject()}return super.removeFromProject()}};l.PBXFileSystemSynchronizedRootGroup=ie,ie.isa=te.ISA.PBXFileSystemSynchronizedRootGroup})),require_PBXFileSystemSynchronizedBuildFileExceptionSet=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXFileSystemSynchronizedBuildFileExceptionSet=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{target:String}}getDisplayName(){return l.isa}};l.PBXFileSystemSynchronizedBuildFileExceptionSet=ie,ie.isa=te.ISA.PBXFileSystemSynchronizedBuildFileExceptionSet})),require_PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet=void 0;let te=m(require_types$5()),re=require_AbstractObject(),ie=require_paths();var ae=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{buildPhase:String}}getDisplayName(){let l=`name`in this.props.buildPhase.props?this.props.buildPhase.props.name:this.props.buildPhase.getDisplayName(),d=(0,ie.getReferringTargets)(this.props.buildPhase),f=`Exceptions for "${(0,ie.getParent)(this).getDisplayName()}" folder in "${l}" phase`;return d.length===1&&(f+=` from "${d[0].getDisplayName()}" target`),f}};l.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet=ae,ae.isa=te.ISA.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet})),require_array=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.uniqueBy=void 0;function d(l,d){let f=new Set;return l.filter(l=>{let m=d(l);return f.has(m)?!1:(f.add(m),!0)})}l.uniqueBy=d})),require_resolveBuildSettings=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.resolveXcodeBuildSetting=void 0;let f=d(__require$1(`node:path`));function m(l,d){let te=l?.replace(/\$\(([^()]*|\([^)]*\))\)/g,l=>{let[te,...re]=l.slice(2,-1).split(`:`),ie=d(te);ie&&=m(ie,d);let ae=ie;return re.forEach(l=>{switch(l){case`lower`:ae=ae?.toLowerCase();break;case`upper`:ae=ae?.toUpperCase();break;case`suffix`:ae&&=f.default.extname(ae);break;case`file`:ae&&=f.default.basename(ae);break;case`dir`:ae&&=f.default.dirname(ae);break;case`base`:if(ae){let l=f.default.basename(ae),d=l.lastIndexOf(`.`);ae=d===-1?l:l.slice(0,d)}break;case`rfc1034identifier`:ae=ae?.replace(/[^a-zA-Z0-9]/g,`-`);break;case`c99extidentifier`:ae=ae?.replace(/[-\s]/g,`_`);break;case`standardizepath`:ae&&=f.default.resolve(ae);break;default:ae||=l.match(/default=(.*)/)?.[1];break}}),m(ae??``,d)});return te===l?l:m(te,d)}l.resolveXcodeBuildSetting=m})),require_parser$1=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.parseFile=l.parse=void 0;let te=m(__require$1(`node:fs`)),re=m(__require$1(`node:path`)),ie=/^#include(\?)?\s*"(.+)"$/,ae=/^([a-zA-Z_][a-zA-Z0-9_]*(?:\[[^\]]+\])*)\s*=\s*(.*)$/,oe=/\[([a-zA-Z]+)=([^\]]+)\]/g,se=/\/\/.*/;function ce(l){let d=[],f=[],m=l.split(/\r?\n/);for(let l of m){let m=l.replace(se,``).trim();if(!m)continue;let te=m.match(ie);if(te){let l=te[1]===`?`,f=te[2];d.push({include:{path:f,optional:l},resolvedPath:f,config:void 0});continue}let re=m.match(ae);if(re){let l=re[1],d=re[2].trim(),m=le(l),te=l.replace(oe,``);f.push({key:te,value:d,conditions:m.length>0?m:void 0})}}return{includes:d,buildSettings:f}}l.parse=ce;function le(l){let d=[],f,m=new RegExp(oe);for(;(f=m.exec(l))!==null;){let l=f[1].toLowerCase(),m=f[2],te={};l===`sdk`?te.sdk=m:l===`arch`?te.arch=m:l===`config`&&(te.config=m),Object.keys(te).length>0&&d.push(te)}return d}function ue(l,d={}){let{basePath:f=re.dirname(l),resolveIncludes:m=!0,visitedPaths:ie=new Set}=d,ae=re.isAbsolute(l)?l:re.resolve(f,l);if(ie.has(ae))throw Error(`Circular include detected: ${ae}`);let oe=ce(te.readFileSync(ae,`utf-8`));if(!m)return oe;let se=new Set(ie);se.add(ae);let le=[],de=re.dirname(ae);for(let l of oe.includes){let d=l.include.path,f=re.resolve(de,d);try{if(!te.existsSync(f)){if(l.include.optional){le.push({include:l.include,resolvedPath:f,config:void 0});continue}throw Error(`Include file not found: ${f}`)}let d=ue(f,{basePath:re.dirname(f),resolveIncludes:!0,visitedPaths:se});le.push({include:l.include,resolvedPath:f,config:d})}catch(d){if(l.include.optional)le.push({include:l.include,resolvedPath:f,config:void 0});else throw d}}return{includes:le,buildSettings:oe.buildSettings}}l.parseFile=ue})),require_writer$1=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.build=void 0;function d(l){let d=[];for(let f of l.includes){let l=f.include.optional?`?`:``;d.push(`#include${l} "${f.include.path}"`)}l.includes.length>0&&l.buildSettings.length>0&&d.push(``);for(let m of l.buildSettings)d.push(f(m));return d.join(`
45956
45957
  `)+(d.length>0?`
45957
- `:``)}l.build=d;function f(l){let d=l.key;if(l.conditions)for(let f of l.conditions)d+=m(f);return`${d} = ${l.value}`}function m(l){let d=[];return l.sdk&&d.push(`[sdk=${l.sdk}]`),l.arch&&d.push(`[arch=${l.arch}]`),l.config&&d.push(`[config=${l.config}]`),d.join(``)}})),require_types$1=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0})})),require_xcconfig=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__exportStar||function(l,f){for(var m in l)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&d(f,l,m)};Object.defineProperty(l,"__esModule",{value:!0}),l.flattenBuildSettings=l.build=l.parseFile=l.parse=void 0;var m=require_parser$1();Object.defineProperty(l,"parse",{enumerable:!0,get:function(){return m.parse}}),Object.defineProperty(l,"parseFile",{enumerable:!0,get:function(){return m.parseFile}});var te=require_writer$1();Object.defineProperty(l,"build",{enumerable:!0,get:function(){return te.build}}),f(require_types$1(),l);function re(l,d={}){let f={};for(let m of l.includes)if(m.config){let l=re(m.config,d);Object.assign(f,l)}for(let m of l.buildSettings)if(ie(m.conditions,d)){let l=oe(m.value,m.key,f);f[m.key]=l}return f}l.flattenBuildSettings=re;function ie(l,d){return!l||l.length===0?!0:l.every(l=>!(l.sdk&&(!d.sdk||!ae(d.sdk,l.sdk))||l.arch&&(!d.arch||!ae(d.arch,l.arch))||l.config&&(!d.config||!ae(d.config,l.config))))}function ae(l,d){let f=d.replace(/[.+^${}()|[\]\\]/g,`\\$&`).replace(/\*/g,`.*`);return RegExp(`^${f}$`,`i`).test(l)}function oe(l,d,f){let m=/\$\(inherited\)/gi;if(!m.test(l))return l;let te=f[d]??``;return l.replace(m,te)}})),require_XCBuildConfiguration=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.XCBuildConfiguration=void 0;let re=te(__require$1(`node:path`)),ie=te(__require$1(`node:os`)),ae=te(__require$1(`node:fs`)),oe=te(require_build$1()),se=require_array(),ce=m(require_types$5()),le=require_AbstractObject(),ue=require_resolveBuildSettings(),de=m(require_xcconfig()),fe=require_src$1()(`xcode:XCBuildConfiguration`);var pe=class l extends le.AbstractObject{static is(d){return d.isa===l.isa}static create(l,d){return l.createModel({isa:ce.ISA.XCBuildConfiguration,...d})}resolveFilePath(l){let d=this.resolveBuildSetting(l);if(d==null||typeof d!=`string`)return null;let f=this.getXcodeProject().getProjectRoot();return re.default.join(f,d)}getEntitlementsFilePath(){return this.resolveFilePath(`CODE_SIGN_ENTITLEMENTS`)}getEntitlements(){let l=this.getEntitlementsFilePath();return l?oe.default.parse(ae.default.readFileSync(l,`utf8`)):null}getInfoPlistFilePath(){return this.resolveFilePath(`INFOPLIST_FILE`)}getInfoPlist(){let l=this.getInfoPlistFilePath();return l?oe.default.parse(ae.default.readFileSync(l,`utf8`)):null}getTargetReferrers(){let l=this.getReferrers().filter(l=>l.isa===ce.ISA.XCConfigurationList).map(l=>l.getReferrers().filter(l=>l.isa===ce.ISA.PBXNativeTarget)).flat();return(0,se.uniqueBy)(l,l=>l.uuid)}resolveBuildSetting(l){let d=d=>{if(!(d in this.props.buildSettings)){if(process.env[d]!=null)return fe(`Using environment variable substitution for "%s"`,d),process.env[d];if(d in me)return fe(`Dangerously using estimated default Apple build variable substitution for "%s"`,d),me[d];if(d===`TARGET_NAME`){let f=this.getTargetReferrers();if(f.length>0)return f.length>1&&console.warn(`[XCBuildConfiguration][${this.props.name}]: Multiple targets found for build setting "${l}". Using first target "${f[0].props.name}". Possible targets: ${f.map(l=>l.getDisplayName()).join(`, `)}`),f[0].props.name;console.warn(`[XCBuildConfiguration][${this.props.name}]: Issue resolving special build setting "${l}". Substitute value "${d}" not found in build settings, environment variables, or from a referring PBXNativeTarget.`)}else console.warn(`[XCBuildConfiguration][${this.props.name}]: Issue resolving build setting "${l}". Substitute value "${d}" not found in build settings.`)}return Array.isArray(d)&&console.warn(`[XCBuildConfiguration][${this.props.name}]: Issue resolving build setting "${l}". Substitute value "${d}" is of type array––it's not clear how this should be resolved in a string.`),this.props.buildSettings[d]},f=this.props.buildSettings[l];return typeof f==`string`?(0,ue.resolveXcodeBuildSetting)(f,d):Array.isArray(f)?f.map(l=>(0,ue.resolveXcodeBuildSetting)(l,d)):f}getObjectProps(){return{baseConfigurationReference:String}}getBaseConfigurationFilePath(){let l=this.props.baseConfigurationReference;if(!l)return null;let d=l.props.path;if(!d)return null;let f=this.getXcodeProject().getProjectRoot(),m=l.props.sourceTree;return m===`<group>`||m===`SOURCE_ROOT`?re.default.join(f,d):m===`<absolute>`||re.default.isAbsolute(d)?d:re.default.join(f,d)}getBaseConfiguration(){let l=this.getBaseConfigurationFilePath();if(!l||!ae.default.existsSync(l))return null;try{return de.parseFile(l)}catch(l){return fe(`Failed to parse base configuration: %s`,l),null}}getBaseConfigurationSettings(l){let d=this.getBaseConfiguration();return d?de.flattenBuildSettings(d,l):{}}};l.XCBuildConfiguration=pe,pe.isa=ce.ISA.XCBuildConfiguration;let me={HOME:ie.default.homedir(),SYSTEM_APPS_DIR:`/Applications`,SYSTEM_ADMIN_APPS_DIR:`/Applications/Utilities`,SYSTEM_DEMOS_DIR:`/Applications/Extras`,SYSTEM_DEVELOPER_DIR:`/Applications/Xcode.app/Contents/Developer`,SYSTEM_DEVELOPER_APPS_DIR:`/Applications/Xcode.app/Contents/Applications`,SYSTEM_DEVELOPER_JAVA_TOOLS_DIR:`/Applications/Xcode.app/Contents/Applications/Java Tools`,SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR:`/Applications/Xcode.app/Contents/Applications/Performance Tools`,SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR:`/Applications/Xcode.app/Contents/Applications/Graphics Tools`,SYSTEM_DEVELOPER_UTILITIES_DIR:`/Applications/Xcode.app/Contents/Applications/Utilities`,SYSTEM_DEVELOPER_DEMOS_DIR:`/Applications/Xcode.app/Contents/Developer/Utilities/Built Examples`,SYSTEM_DEVELOPER_DOC_DIR:`/Applications/Xcode.app/Contents/Developer/ADC Reference Library`,SYSTEM_DEVELOPER_TOOLS_DOC_DIR:`/Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools`,SYSTEM_DEVELOPER_RELEASENOTES_DIR:`/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes`,SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR:`/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools`,SYSTEM_LIBRARY_DIR:`/System/Library`,SYSTEM_CORE_SERVICES_DIR:`/System/Library/CoreServices`,SYSTEM_DOCUMENTATION_DIR:`/Library/Documentation`,LOCAL_ADMIN_APPS_DIR:`/Applications/Utilities`,LOCAL_APPS_DIR:`/Applications`,LOCAL_DEVELOPER_DIR:`/Library/Developer`,LOCAL_LIBRARY_DIR:`/Library`,USER_APPS_DIR:`$(HOME)/Applications`,USER_LIBRARY_DIR:`$(HOME)/Library`,MAN_PAGE_DIRECTORIES:`/usr/share/man`,SYSTEM_LIBRARY_EXECUTABLES_DIR:``,SYSTEM_DEVELOPER_EXECUTABLES_DIR:``,LOCAL_DEVELOPER_EXECUTABLES_DIR:``}})),require_XCConfigurationList=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.XCConfigurationList=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,defaultConfigurationIsVisible:0,...f})}getObjectProps(){return{buildConfigurations:[String]}}getDefaultConfiguration(){let l=this.props.buildConfigurations.find(l=>l.props.name===this.props.defaultConfigurationName);if(!l)throw Error(`[XCConfigurationList][${this.uuid}]: ${this.props.defaultConfigurationName} not found in buildConfigurations. Available configurations: ${this.props.buildConfigurations.map(l=>`${l.props.name} (${l.uuid})`).join(`, `)})`);return l}setBuildSetting(l,d){return this.props.buildConfigurations.forEach(f=>{f.props.buildSettings[l]=d}),d}removeBuildSetting(l){this.props.buildConfigurations.forEach(d=>{delete d.props.buildSettings[l]})}getDefaultBuildSetting(l){return this.getDefaultConfiguration().props.buildSettings[l]}removeFromProject(){for(let l of[...this.props.buildConfigurations]){let d=l.getReferrers();d.length===1&&d[0].uuid===this.uuid&&l.removeFromProject()}return super.removeFromProject()}};l.XCConfigurationList=ie,ie.isa=te.ISA.XCConfigurationList})),require_AbstractTarget=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.AbstractTarget=void 0;let d=require_AbstractObject(),f=require_XCBuildConfiguration(),m=require_XCConfigurationList();l.AbstractTarget=class extends d.AbstractObject{createConfigurationList(l,d){let te=d.map(l=>f.XCBuildConfiguration.create(this.getXcodeProject(),l)),re=m.XCConfigurationList.create(this.getXcodeProject(),{buildConfigurations:te,...l});return this.props.buildConfigurationList=re,re}getDependencyForTarget(l){return this.props.dependencies.find(d=>{if(d.props.targetProxy.isRemote()){let f=this.getXcodeProject().getReferenceForPath(l.getXcodeProject().filePath);if(f){let m=f.uuid;return d.props.targetProxy.props.remoteGlobalIDString===l.uuid&&d.props.targetProxy.props.containerPortal.uuid===m}}else return d.props.target.uuid===l.uuid;return!1})}createBuildPhase(l,d){let f=this.getXcodeProject().createModel({isa:l.isa,...d});return this.props.buildPhases.push(f),f}getBuildPhase(l){return this.props.buildPhases.find(d=>l.is(d))??null}getObjectProps(){return{buildConfigurationList:String,dependencies:[String],buildPhases:[String]}}getDefaultConfiguration(){return this.props.buildConfigurationList.getDefaultConfiguration()}setBuildSetting(l,d){return this.props.buildConfigurationList.setBuildSetting(l,d)}removeBuildSetting(l){return this.props.buildConfigurationList.removeBuildSetting(l)}getDefaultBuildSetting(l){return this.props.buildConfigurationList.getDefaultBuildSetting(l)}getAttributes(){return this.getXcodeProject().rootObject.props.attributes.TargetAttributes?.[this.uuid]}}})),require_XCSwiftPackageProductDependency=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.XCSwiftPackageProductDependency=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{package:String}}getDisplayName(){return this.props.productName??super.getDisplayName()}};l.XCSwiftPackageProductDependency=ie,ie.isa=te.ISA.XCSwiftPackageProductDependency})),require_PBXTargetDependency=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXTargetDependency=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{target:String,targetProxy:String}}getNativeTargetUuid(){if(this.props.target)return this.props.target.uuid;if(this.props.targetProxy)return this.props.targetProxy.props.remoteGlobalIDString;throw Error(`Expected target or target_proxy, from which to fetch a uuid for target '${this.getDisplayName()}'. Find and clear the PBXTargetDependency entry with uuid '${this.uuid}' in your .xcodeproj.`)}getDisplayName(){return this.props.name??this.props.target.props.name??this.props.targetProxy.props.remoteInfo??super.getDisplayName()}removeFromProject(){if(this.props.targetProxy){let l=this.props.targetProxy.getReferrers();l.length===1&&l[0].uuid===this.uuid&&this.props.targetProxy.removeFromProject()}return super.removeFromProject()}};l.PBXTargetDependency=ie,ie.isa=te.ISA.PBXTargetDependency})),require_PBXNativeTarget=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXNativeTarget=void 0;let te=m(require_types$5()),re=require_AbstractTarget(),ie=require_PBXSourcesBuildPhase(),ae=require_PBXFileReference(),oe=require_PBXBuildFile(),se=require_XCSwiftPackageProductDependency(),ce=require_PBXTargetDependency(),le=require_PBXContainerItemProxy();var ue=class l extends re.AbstractTarget{static is(d){return d.isa===l.isa}static create(l,d){return l.createModel({isa:te.ISA.PBXNativeTarget,buildPhases:[],buildRules:[],dependencies:[],...d})}getFrameworksBuildPhase(){return this.getBuildPhase(ie.PBXFrameworksBuildPhase)??this.createBuildPhase(ie.PBXFrameworksBuildPhase)}getHeadersBuildPhase(){return this.getBuildPhase(ie.PBXHeadersBuildPhase)??this.createBuildPhase(ie.PBXHeadersBuildPhase)}getSourcesBuildPhase(){return this.getBuildPhase(ie.PBXSourcesBuildPhase)??this.createBuildPhase(ie.PBXSourcesBuildPhase)}getResourcesBuildPhase(){return this.getBuildPhase(ie.PBXResourcesBuildPhase)??this.createBuildPhase(ie.PBXResourcesBuildPhase)}ensureFrameworks(l){let d=this.getXcodeProject().rootObject.getFrameworksGroup(),f=l=>{let f=l.endsWith(`.framework`)?l:l+`.framework`;for(let[,l]of this.getXcodeProject().entries())if(ae.PBXFileReference.is(l)&&l.props.lastKnownFileType===`wrapper.framework`&&l.props.sourceTree===`SDKROOT`&&l.props.name===f)return d.props.children.find(d=>d.uuid===l.uuid)||d.props.children.push(l),l;return d.createFile({path:`System/Library/Frameworks/`+f})};return l.map(l=>this.getFrameworksBuildPhase().ensureFile({fileRef:f(l)}))}addDependency(l){let d=l.getXcodeProject().filePath===this.getXcodeProject().filePath,f=this.getDependencyForTarget(l);if(f){d||(f.props.name=l.props.name);return}let m=le.PBXContainerItemProxy.create(this.getXcodeProject(),{containerPortal:this.getXcodeProject().rootObject,proxyType:1,remoteGlobalIDString:l.uuid,remoteInfo:l.props.name});if(d)m.props.containerPortal=this.getXcodeProject().rootObject;else throw Error(`adding dependencies to subprojects is not yet supported. Please open an issue if you need this feature.`);let te=ce.PBXTargetDependency.create(this.getXcodeProject(),{target:l,targetProxy:m});this.props.dependencies.push(te)}getCopyBuildPhaseForTarget(l){if(this.getXcodeProject().rootObject.getMainAppTarget(`ios`).uuid!==this.uuid)throw Error(`getCopyBuildPhaseForTarget can only be called on the main target`);let d=l.props.productType===`com.apple.product-type.application.on-demand-install-capable`?`Embed App Clips`:l.isWatchOSTarget()?`Embed Watch Content`:l.props.productType===`com.apple.product-type.extensionkit-extension`?`Embed ExtensionKit Extensions`:`Embed Foundation Extensions`,f=this.props.buildPhases.find(l=>ie.PBXCopyFilesBuildPhase.is(l)&&l.props.name===d);if(f){let d=f;return d.ensureDefaultsForTarget(l),d}let m=this.createBuildPhase(ie.PBXCopyFilesBuildPhase,{name:d,files:[]});return m.ensureDefaultsForTarget(l),m}isWatchOSTarget(){if(this.props.productType===`com.apple.product-type.application.watchapp`||this.props.productType===`com.apple.product-type.application.watchapp2`||this.props.productType===`com.apple.product-type.application.watchapp2-container`)return!0;if(this.props.productType===`com.apple.product-type.application`){let l=this.props.buildConfigurationList?.props.buildConfigurations?.[0]?.props.buildSettings;if(l&&l.SDKROOT===`watchos`)return!0}return!1}isWatchExtension(){return this.props.productType===`com.apple.product-type.watchkit-extension`||this.props.productType===`com.apple.product-type.watchkit2-extension`}getObjectProps(){return{...super.getObjectProps(),buildRules:[String],productReference:[String],packageProductDependencies:[String],fileSystemSynchronizedGroups:[String]}}removeFromProject(){let d=this.getXcodeProject(),f=l=>{let d=l.getReferrers();return d.length===1&&d[0].uuid===this.uuid};for(let l of[...this.props.buildPhases])f(l)&&l.removeFromProject();for(let l of[...this.props.buildRules])f(l)&&l.removeFromProject();f(this.props.buildConfigurationList)&&this.props.buildConfigurationList.removeFromProject();for(let l of[...this.props.dependencies])f(l)&&l.removeFromProject();if(this.props.fileSystemSynchronizedGroups)for(let f of[...this.props.fileSystemSynchronizedGroups])[...d.values()].some(d=>l.is(d)&&d.uuid!==this.uuid&&d.props.fileSystemSynchronizedGroups?.some(l=>l.uuid===f.uuid))||f.removeFromProject();if(this.props.packageProductDependencies)for(let l of[...this.props.packageProductDependencies])f(l)&&l.removeFromProject();this.props.productReference&&([...d.values()].some(d=>l.is(d)&&d.uuid!==this.uuid&&d.props.productReference?.uuid===this.props.productReference?.uuid)||this.props.productReference.removeFromProject());for(let[,l]of d.entries())ce.PBXTargetDependency.is(l)&&(l.props.target?.uuid===this.uuid||l.props.targetProxy?.props.remoteGlobalIDString===this.uuid)&&l.removeFromProject();return super.removeFromProject()}addSwiftPackageProduct(l){let d=this.getXcodeProject();this.props.packageProductDependencies||(this.props.packageProductDependencies=[]);let f=this.props.packageProductDependencies.find(d=>d.props.productName===l.productName&&d.props.package?.uuid===l.package?.uuid);if(f)return f;let m=se.XCSwiftPackageProductDependency.create(d,{productName:l.productName,package:l.package});this.props.packageProductDependencies.push(m);let te=oe.PBXBuildFile.createFromProductRef(d,{productRef:m});return this.getFrameworksBuildPhase().props.files.push(te),m}getSwiftPackageProductDependencies(){return this.props.packageProductDependencies??[]}removeSwiftPackageProduct(l){if(this.props.packageProductDependencies){let d=this.props.packageProductDependencies.findIndex(d=>d.uuid===l.uuid);d!==-1&&this.props.packageProductDependencies.splice(d,1)}let d=this.getBuildPhase(ie.PBXFrameworksBuildPhase);if(d){let f=d.props.files.findIndex(d=>d.props.productRef?.uuid===l.uuid);if(f!==-1){let l=d.props.files[f];d.props.files.splice(f,1),l.removeFromProject()}}l.removeFromProject()}};l.PBXNativeTarget=ue,ue.isa=te.ISA.PBXNativeTarget})),require_PBXAggregateTarget=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXAggregateTarget=void 0;let te=m(require_types$5()),re=require_AbstractTarget();var ie=class l extends re.AbstractTarget{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,buildPhases:[],dependencies:[],...f})}};l.PBXAggregateTarget=ie,ie.isa=te.ISA.PBXAggregateTarget})),require_PBXLegacyTarget=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXLegacyTarget=void 0;let te=m(require_types$5()),re=require_AbstractTarget();var ie=class l extends re.AbstractTarget{static is(d){return d.isa===l.isa}};l.PBXLegacyTarget=ie,ie.isa=te.ISA.PBXLegacyTarget})),require_XCRemoteSwiftPackageReference=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.XCRemoteSwiftPackageReference=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{}}getDisplayName(){return this.props.repositoryURL??super.getDisplayName()}};l.XCRemoteSwiftPackageReference=ie,ie.isa=te.ISA.XCRemoteSwiftPackageReference})),require_XCLocalSwiftPackageReference=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.XCLocalSwiftPackageReference=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{}}getDisplayName(){return this.props.relativePath??super.getDisplayName()}};l.XCLocalSwiftPackageReference=ie,ie.isa=te.ISA.XCLocalSwiftPackageReference})),require_PBXProject=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXProject=void 0;let re=te(__require$1(`path`)),ie=require_constants(),ae=m(require_types$5()),oe=require_AbstractObject(),se=require_PBXNativeTarget(),ce=require_XCBuildConfiguration(),le=require_XCRemoteSwiftPackageReference(),ue=require_XCLocalSwiftPackageReference();var de=class l extends oe.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{buildConfigurationList:String,mainGroup:String,productRefGroup:String,targets:[String],packageReferences:[String]}}setupDefaults(l){l.compatibilityVersion||=`Xcode 3.2`,l.developmentRegion||=`en`,l.hasScannedForEncodings||=0,l.knownRegions||=[`en`,`Base`],l.projectDirPath||=``,l.projectRoot||=``,l.attributes||={LastSwiftUpdateCheck:ie.LAST_SWIFT_UPGRADE_CHECK,LastUpgradeCheck:ie.LAST_UPGRADE_CHECK,TargetAttributes:{}}}addBuildConfiguration(l,d){let f=this.props.buildConfigurationList,m=f.props.buildConfigurations.find(d=>d.props.name===l);if(m)return m;let te=ce.XCBuildConfiguration.create(this.getXcodeProject(),{name:l,buildSettings:{...JSON.parse(JSON.stringify(ie.PROJECT_DEFAULT_BUILD_SETTINGS.all)),...JSON.parse(JSON.stringify(ie.PROJECT_DEFAULT_BUILD_SETTINGS[d]))}});return f.props.buildConfigurations.push(te),te}getName(){return re.default.basename(this.getXcodeProject().filePath,`.xcodeproj`)}ensureProductGroup(){if(this.props.productRefGroup)return this.props.productRefGroup;let l=this.props.mainGroup.createGroup({name:`Products`,sourceTree:`<group>`});return this.props.productRefGroup=l,l}ensureMainGroupChild(l){return this.props.mainGroup.getChildGroups().find(d=>d.getDisplayName()===l)??this.props.mainGroup.createGroup({name:l,sourceTree:`<group>`})}getFrameworksGroup(){return this.ensureMainGroupChild(`Frameworks`)}createNativeTarget(l){let d=se.PBXNativeTarget.create(this.getXcodeProject(),l);return this.props.targets.push(d),d}getNativeTarget(l){for(let d of this.props.targets)if(se.PBXNativeTarget.is(d)&&d.props.productType===l)return d;return null}getMainAppTarget(l=`ios`){let d={ios:`IPHONEOS_DEPLOYMENT_TARGET`,macos:`MACOSX_DEPLOYMENT_TARGET`,tvos:`TVOS_DEPLOYMENT_TARGET`,watchos:`WATCHOS_DEPLOYMENT_TARGET`}[l],f=this.props.targets.filter(l=>se.PBXNativeTarget.is(l)&&l.props.productType===`com.apple.product-type.application`),m=f.filter(l=>d in l.getDefaultConfiguration().props.buildSettings);m.length>1&&console.warn(`Multiple main app targets found, using first one: ${m.map(l=>l.getDisplayName()).join(`, `)}`);let te=m[0];if(!te){if(l===`ios`&&f.length)return f[0];throw Error(`No main app target found`)}return te}removeReference(l){super.removeReference(l),this.props.attributes?.TargetAttributes?.[l]&&delete this.props.attributes.TargetAttributes[l]}addPackageReference(l){return this.props.packageReferences||(this.props.packageReferences=[]),this.props.packageReferences.find(d=>d.uuid===l.uuid)||(this.props.packageReferences.push(l),l)}getPackageReference(l){if(!this.props.packageReferences)return null;for(let d of this.props.packageReferences)if(le.XCRemoteSwiftPackageReference.is(d)&&d.props.repositoryURL===l||ue.XCLocalSwiftPackageReference.is(d)&&d.props.relativePath===l)return d;return null}addRemoteSwiftPackage(l){if(l.repositoryURL){let d=this.getPackageReference(l.repositoryURL);if(d&&le.XCRemoteSwiftPackageReference.is(d))return d}let d=le.XCRemoteSwiftPackageReference.create(this.getXcodeProject(),l);return this.addPackageReference(d),d}addLocalSwiftPackage(l){let d=this.getPackageReference(l.relativePath);if(d&&ue.XCLocalSwiftPackageReference.is(d))return d;let f=ue.XCLocalSwiftPackageReference.create(this.getXcodeProject(),l);return this.addPackageReference(f),f}};l.PBXProject=de,de.isa=ae.ISA.PBXProject})),require_PBXBuildRule=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXBuildRule=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{inputFiles:[String],outputFiles:[String]}}setupDefaults(){this.props.isEditable??(this.props.isEditable=1)}addOutputFile(l,d=``){this.props.outputFiles||(this.props.outputFiles=[]),this.props.outputFiles.push(l),this.props.outputFilesCompilerFlags||(this.props.outputFilesCompilerFlags=[]),this.props.outputFilesCompilerFlags.push(d)}getOutputFilesAndFlags(){return ae(this.props.outputFiles,this.props.outputFilesCompilerFlags)}};l.PBXBuildRule=ie,ie.isa=te.ISA.PBXBuildRule;function ae(l=[],d=[]){return l.map((l,f)=>[l,d[f]])}})),require_PBXReferenceProxy=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXReferenceProxy=void 0;let te=m(require_types$5()),re=require_AbstractObject(),ie=require_PBXBuildFile();var ae=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,sourceTree:`<group>`,...f})}getObjectProps(){return{remoteRef:String}}removeFromProject(){return this.getBuildFiles().forEach(l=>{l.removeFromProject()}),super.removeFromProject()}getBuildFiles(){return this.getReferrers().filter(ie.PBXBuildFile.is)}};l.PBXReferenceProxy=ae,ae.isa=te.ISA.PBXReferenceProxy})),require_XcodeProject=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.XcodeProject=void 0;let re=te(__require$1(`assert`)),ie=__require$1(`fs`),ae=te(__require$1(`path`)),oe=te(__require$1(`crypto`)),se=require_XCScheme(),ce=require_XCSharedData(),le=require_json(),ue=m(require_types$5()),de=require_constants(),fe=require_src$1()(`xcparse:model:XcodeProject`);function pe(l){return`XX`+oe.default.createHash(`md5`).update(l).digest(`hex`).toUpperCase().slice(0,20)+`XX`}let me={[ue.ISA.PBXBuildFile]:()=>require_PBXBuildFile().PBXBuildFile,[ue.ISA.PBXAppleScriptBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXAppleScriptBuildPhase,[ue.ISA.PBXCopyFilesBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXCopyFilesBuildPhase,[ue.ISA.PBXFrameworksBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXFrameworksBuildPhase,[ue.ISA.PBXHeadersBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXHeadersBuildPhase,[ue.ISA.PBXResourcesBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXResourcesBuildPhase,[ue.ISA.PBXShellScriptBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXShellScriptBuildPhase,[ue.ISA.PBXSourcesBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXSourcesBuildPhase,[ue.ISA.PBXContainerItemProxy]:()=>require_PBXContainerItemProxy().PBXContainerItemProxy,[ue.ISA.PBXFileReference]:()=>require_PBXFileReference().PBXFileReference,[ue.ISA.PBXGroup]:()=>require_AbstractGroup().PBXGroup,[ue.ISA.PBXVariantGroup]:()=>require_PBXVariantGroup().PBXVariantGroup,[ue.ISA.XCVersionGroup]:()=>require_XCVersionGroup().XCVersionGroup,[ue.ISA.PBXFileSystemSynchronizedRootGroup]:()=>require_PBXFileSystemSynchronizedRootGroup().PBXFileSystemSynchronizedRootGroup,[ue.ISA.PBXFileSystemSynchronizedBuildFileExceptionSet]:()=>require_PBXFileSystemSynchronizedBuildFileExceptionSet().PBXFileSystemSynchronizedBuildFileExceptionSet,[ue.ISA.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet]:()=>require_PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet().PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet,[ue.ISA.PBXNativeTarget]:()=>require_PBXNativeTarget().PBXNativeTarget,[ue.ISA.PBXAggregateTarget]:()=>require_PBXAggregateTarget().PBXAggregateTarget,[ue.ISA.PBXLegacyTarget]:()=>require_PBXLegacyTarget().PBXLegacyTarget,[ue.ISA.PBXProject]:()=>require_PBXProject().PBXProject,[ue.ISA.PBXTargetDependency]:()=>require_PBXTargetDependency().PBXTargetDependency,[ue.ISA.XCBuildConfiguration]:()=>require_XCBuildConfiguration().XCBuildConfiguration,[ue.ISA.XCConfigurationList]:()=>require_XCConfigurationList().XCConfigurationList,[ue.ISA.PBXBuildRule]:()=>require_PBXBuildRule().PBXBuildRule,[ue.ISA.PBXReferenceProxy]:()=>require_PBXReferenceProxy().PBXReferenceProxy,[ue.ISA.PBXRezBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXRezBuildPhase,[ue.ISA.XCSwiftPackageProductDependency]:()=>require_XCSwiftPackageProductDependency().XCSwiftPackageProductDependency,[ue.ISA.XCRemoteSwiftPackageReference]:()=>require_XCRemoteSwiftPackageReference().XCRemoteSwiftPackageReference,[ue.ISA.XCLocalSwiftPackageReference]:()=>require_XCLocalSwiftPackageReference().XCLocalSwiftPackageReference};l.XcodeProject=class l extends Map{static open(d){let f=(0,ie.readFileSync)(d,`utf8`);return new l(d,(0,le.parse)(f))}constructor(l,d){super(),this.filePath=l;let f=JSON.parse(JSON.stringify(d));(0,re.default)(f.objects,`objects is required`),(0,re.default)(f.rootObject,`rootObject is required`),this.internalJsonObjects=f.objects,this.archiveVersion=f.archiveVersion??de.LAST_KNOWN_ARCHIVE_VERSION,this.objectVersion=f.objectVersion??de.DEFAULT_OBJECT_VERSION,this.classes=f.classes??{},he(f.rootObject,f.objects?.[f.rootObject]),this.rootObject=this.getObject(f.rootObject),this.ensureAllObjectsInflated()}getProjectRoot(){return ae.default.dirname(ae.default.dirname(this.filePath))}getObject(l){let d=this._getObjectOptional(l);if(d)return d;throw Error(`object with uuid '${l}' not found.`)}_getObjectOptional(l){if(this.has(l))return this.get(l);let d=this.internalJsonObjects[l];if(!d)return null;delete this.internalJsonObjects[l];let f=this.createObject(l,d);return this.set(l,f),f.inflate(),f}createObject(l,d){let f=me[d.isa]();return(0,re.default)(f,`unknown object type. (isa: ${d.isa}, uuid: ${l})`),new f(this,l,d)}ensureAllObjectsInflated(){if(Object.keys(this.internalJsonObjects).length!==0)for(fe(`inflating unreferenced objects: %o`,Object.keys(this.internalJsonObjects));Object.keys(this.internalJsonObjects).length>0;){let l=Object.keys(this.internalJsonObjects)[0];this.getObject(l)}}createModel(l){let d=this.getUniqueId(JSON.stringify(ge(l))),f=this.createObject(d,l);return this.set(d,f),f}getReferenceForPath(l){if(!ae.default.isAbsolute(l))throw Error(`Paths must be absolute ${l}`);for(let d of this.values())if(d.isa===`PBXFileReference`&&`getRealPath`in d&&d.getRealPath()===l)return d;return null}getReferrers(l){let d=[];for(let f of this.values())f.isReferencing(l)&&d.push(f);return d}isUniqueId(l){for(let d of this.keys())if(d===l)return!1;return!0}getUniqueId(l){let d=pe(l);return this.isUniqueId(d)?d:this.getUniqueId(l+` `)}getSharedSchemesDir(){let l=ae.default.dirname(this.filePath);return ae.default.join(l,`xcshareddata`,`xcschemes`)}getUserSchemesDir(l){let d=ae.default.dirname(this.filePath);return ae.default.join(d,`xcuserdata`,`${l}.xcuserdatad`,`xcschemes`)}getSchemes(l){let d=[],f=this.getSharedSchemesDir();if((0,ie.existsSync)(f)){let l=(0,ie.readdirSync)(f).filter(l=>l.endsWith(`.xcscheme`));for(let m of l)d.push(se.XCScheme.open(ae.default.join(f,m)))}if(l?.includeUser&&l?.username){let f=this.getUserSchemesDir(l.username);if((0,ie.existsSync)(f)){let l=(0,ie.readdirSync)(f).filter(l=>l.endsWith(`.xcscheme`));for(let m of l)d.push(se.XCScheme.open(ae.default.join(f,m)))}}return d}getScheme(l,d){let f=l.endsWith(`.xcscheme`)?l:`${l}.xcscheme`,m=ae.default.join(this.getSharedSchemesDir(),f);if((0,ie.existsSync)(m))return se.XCScheme.open(m);if(d?.username){let l=ae.default.join(this.getUserSchemesDir(d.username),f);if((0,ie.existsSync)(l))return se.XCScheme.open(l)}return null}saveScheme(l,d){let f=d?.shared??!0,m=`${l.name}.xcscheme`,te;if(f)te=this.getSharedSchemesDir();else{if(!d?.username)throw Error(`username is required when saving a user scheme`);te=this.getUserSchemesDir(d.username)}let re=ae.default.join(te,m);l.save(re)}deleteScheme(l,d){let f=d?.shared??!0,m=`${l}.xcscheme`,te;if(f)te=this.getSharedSchemesDir();else{if(!d?.username)throw Error(`username is required when deleting a user scheme`);te=this.getUserSchemesDir(d.username)}let re=ae.default.join(te,m);(0,ie.existsSync)(re)&&(0,ie.unlinkSync)(re)}createSchemeForTarget(l,d){let f=ae.default.dirname(this.filePath),m=ae.default.basename(f);return se.XCScheme.createForTarget(l,d,`${m}`)}getSharedDataDir(){let l=ae.default.dirname(this.filePath);return ae.default.join(l,`xcshareddata`)}getSharedData(){let l=this.getSharedDataDir();if((0,ie.existsSync)(l))return ce.XCSharedData.open(l);let d=ce.XCSharedData.create();return d.filePath=l,d}toJSON(){let l={archiveVersion:this.archiveVersion,objectVersion:this.objectVersion,classes:this.classes,objects:{},rootObject:this.rootObject.uuid};for(let[d,f]of this.entries())l.objects[d]=f.toJSON();return l}};function he(l,d){if(d?.isa!==`PBXProject`)throw Error(`Root object "${l}" is not a PBXProject`)}function ge(l){if(Array.isArray(l))return l.map(ge);if(typeof l==`object`){if(`uuid`in l&&typeof l.uuid==`string`)return l.uuid;let d={};for(let f of Object.keys(l).sort())d[f]=ge(l[f]);return d}else return l}})),require_PBXContainerItemProxy=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXContainerItemProxy=void 0;let re=te(__require$1(`assert`)),ie=m(require_types$5()),ae=require_AbstractObject(),oe=require_XcodeProject(),se=require_PBXFileReference();var ce=class l extends ae.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{containerPortal:String}}getProxiedObject(){return this.getContainerPortalObject().get(this.props.remoteGlobalIDString)}getContainerPortalObject(){if(this.isRemote()){let l=this.getXcodeProject().get(this.props.containerPortal.uuid);return(0,re.default)(se.PBXFileReference.is(l),`containerPortal is not a PBXFileReference`),oe.XcodeProject.open(l.getRealPath())}return this.getXcodeProject()}isRemote(){return this.getXcodeProject().rootObject.uuid!==this.props.containerPortal.uuid}};l.PBXContainerItemProxy=ce,ce.isa=ie.ISA.PBXContainerItemProxy})),require_PBXFileReference=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXFileReference=l.getPossibleDefaultSourceTree=void 0;let re=te(__require$1(`path`)),ie=require_constants(),ae=m(require_types$5()),oe=require_AbstractGroup(),se=require_PBXBuildFile(),ce=require_AbstractObject(),le=require_paths(),ue=require_PBXContainerItemProxy(),de=require_PBXReferenceProxy(),fe=require_PBXTargetDependency(),pe=require_src$1()(`xcparse:models`);function me(l){let d=l.lastKnownFileType?ie.SOURCETREE_BY_FILETYPE[l.lastKnownFileType]:void 0;return!d&&l.explicitFileType?`BUILT_PRODUCTS_DIR`:d??`<group>`}l.getPossibleDefaultSourceTree=me;function he(l,d,f){let m=re.default.resolve(d);if(l.props.sourceTree=f,f===`<absolute>`){if(!re.default.isAbsolute(m))throw Error(`[Xcodeproj] Attempt to set a relative path with an absolute source tree: ${d}`);l.props.path=m}else if(f==`<group>`||f==`SOURCE_ROOT`){let d=(0,le.getSourceTreeRealPath)(l);if(d&&re.default.resolve(d)===m){let f=re.default.relative(d,m);l.props.path=f}else l.props.path=m}else l.props.path=m}var ge=class l extends ce.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{}}setupDefaults(){if(!this.props.lastKnownFileType&&!this.props.explicitFileType&&this.setLastKnownFileType(),this.props.name==null&&this.props.path){let l=re.default.basename(this.props.path);l!==this.props.path&&(this.props.name=l)}this.props.sourceTree||(this.props.sourceTree=me(this.props))}getParent(){return(0,le.getParent)(this)}getParents(){return(0,le.getParents)(this)}move(l){oe.PBXGroup.move(this,l)}getRealPath(){return(0,le.getRealPath)(this)}getFullPath(){return(0,le.getFullPath)(this)}setLastKnownFileType(l){if(l)this.props.lastKnownFileType=l;else if(this.props.path){let l=re.default.extname(this.props.path);l.startsWith(`.`)&&(l=l.substring(1)),this.props.lastKnownFileType=ie.FILE_TYPES_BY_EXTENSION[l],pe(`setLastKnownFileType (ext: ${l}, type: ${this.props.lastKnownFileType})`)}}setExplicitFileType(l){if(l)this.props.explicitFileType=l;else if(this.props.path){let l=re.default.extname(this.props.path);l.startsWith(`.`)&&(l=l.substring(1)),this.props.explicitFileType=ie.FILE_TYPES_BY_EXTENSION[l],pe(`setExplicitFileType (ext: ${l}, type: ${this.props.explicitFileType})`)}this.props.explicitFileType&&(this.props.lastKnownFileType=void 0)}getDisplayName(){return this.props.name?this.props.name:this.props.path&&this.props.sourceTree===`BUILT_PRODUCTS_DIR`?this.props.path:this.props.path?re.default.basename(this.props.path):this.isa.replace(/^(PBX|XC)/,``)}getProxyContainers(){return Array.from(this.getXcodeProject().values()).filter(l=>ue.PBXContainerItemProxy.is(l)&&l.props.containerPortal.uuid===this.uuid)}setPath(l){l?he(this,l,this.props.sourceTree):this.props.path=void 0}getBuildFiles(){return this.getReferrers().filter(l=>se.PBXBuildFile.is(l))}getTargetDependencyProxies(){let l=this.getProxyContainers();return l.length?Array.from(this.getXcodeProject().values()).filter(d=>fe.PBXTargetDependency.is(d)&&l.some(l=>l.uuid===d.props.targetProxy.uuid)):[]}removeFromProject(){return this.getFileReferenceProxies().forEach(l=>{l.removeFromProject()}),this.getTargetDependencyProxies().forEach(l=>{l.removeFromProject()}),this.getBuildFiles().forEach(l=>l.removeFromProject()),super.removeFromProject()}getFileReferenceProxies(){let l=this.getProxyContainers();return l.length?[...this.getXcodeProject().values()].filter(d=>de.PBXReferenceProxy.is(d)?!!l.find(l=>ue.PBXContainerItemProxy.is(d.props.remoteRef)&&l.uuid===d.props.remoteRef.uuid):!1):[]}isAppExtension(){let l=this.props.lastKnownFileType??this.props.explicitFileType;return!!(l&&[`wrapper.extensionkit-extension`,`wrapper.app-extension`].includes(l)&&this.props.sourceTree===`BUILT_PRODUCTS_DIR`)}getTargetReferrers(){return this.getReferrers().filter(l=>_e(l)&&l.props.productReference?.uuid===this.uuid)}};l.PBXFileReference=ge,ge.isa=ae.ISA.PBXFileReference;function _e(l){return l.isa===ae.ISA.PBXNativeTarget}})),require_AbstractGroup=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXGroup=l.AbstractGroup=void 0;let re=te(__require$1(`assert`)),ie=te(__require$1(`path`)),ae=require_constants(),oe=m(require_types$5()),se=require_paths(),ce=require_AbstractObject(),le=require_PBXFileReference();var ue=class extends ce.AbstractObject{getObjectProps(){return{children:Array}}setupDefaults(){this.props.children||(this.props.children=[])}createGroup(l){(0,re.default)(l.path||l.name,`A group must have a path or name`);let d=de.create(this.getXcodeProject(),{...l});return this.props.children.push(d),d}mkdir(l,{recursive:d}={}){let f=typeof l==`string`?l.split(`/`):l;if(!f.length)return this;let m=f.shift(),te=this.getChildGroups().find(l=>l.getDisplayName()===m);if(!te){if(!d)return null;te=this.createGroup({path:m})}return l.length?te.mkdir(f,{recursive:d}):te}getChildGroups(){return this.props.children.filter(l=>de.is(l))}createNewProductRefForTarget(l,d){let f=``;d==`staticLibrary`&&(f=`lib`);let m=ae.PRODUCT_UTI_EXTENSIONS[d],te=`${f}${l}`;m&&(te+=`.${m}`);let re=pe(this,te,`BUILT_PRODUCTS_DIR`);return re.props.includeInIndex=0,re.setExplicitFileType(),re}static move(l,d){(0,re.default)(de.is(d),`newParent must be a PBXGroup`),(0,re.default)(l,`Attempt to move nullish object to "${d.uuid}".`),(0,re.default)(d,`Attempt to move object "${l.uuid}" to nullish parent.`),(0,re.default)(d.uuid!==l.uuid,`Attempt to move object "${l.uuid}" to itself.`),(0,re.default)(!(0,se.getParents)(d).find(d=>d.uuid===l.uuid),`Attempt to move object "${l.uuid}" to a child object "${d.uuid}".`);let f=l.getParent();if(de.is(f)){let d=f.props.children.findIndex(d=>d.uuid===l.uuid);d!==-1&&f.props.children.splice(d,1)}d.props.children.push(l)}getParent(){return(0,se.getParent)(this)}getParents(){return(0,se.getParents)(this)}getPath(){throw Error(`TODO`)}createFile(l){let d=le.PBXFileReference.create(this.getXcodeProject(),l);return this.props.children.push(d),d}getDisplayName(){return this.props.name?this.props.name:this.props.path?ie.default.basename(this.props.path):this.uuid===this.project.props.mainGroup.uuid?`Main Group`:this.isa.replace(/^(PBX|XC)/,``)}};l.AbstractGroup=ue;var de=class l extends ue{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,children:[],sourceTree:`<group>`,...f})}};l.PBXGroup=de,de.isa=oe.ISA.PBXGroup;function fe(l,d,f){return l.createFile({path:d,sourceTree:f})}function pe(l,d,f){let m=(()=>{switch(ie.default.extname(d).toLowerCase()){case`.xcdatamodeld`:case`.xcodeproj`:throw Error(`Unsupported file type: `+d);default:return fe(l,d,f)}})();return me(m),m}function me(l){l.props.path?.includes(`/`)&&(l.props.name=l.props.path.split(`/`).pop()),l.props.path&&ie.default.extname(l.props.path).toLowerCase()==`.framework`&&(l.props.includeInIndex=void 0)}})),require_parser=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.parse=void 0;let d=require_lib$3();function f(l){let f=new d.DOMParser().parseFromString(l,`text/xml`).documentElement;if(!f||f.tagName!==`Workspace`)throw Error(`Invalid xcworkspacedata file: root element must be <Workspace>`);return m(f)}l.parse=f;function m(l){let d={};d.version=ie(l,`version`);let f=ae(l,`FileRef`);f.length>0&&(d.fileRefs=f.map(te));let m=ae(l,`Group`);return m.length>0&&(d.groups=m.map(re)),d}function te(l){return{location:ie(l,`location`)||``}}function re(l){let d={};d.location=ie(l,`location`),d.name=ie(l,`name`);let f=ae(l,`FileRef`);f.length>0&&(d.fileRefs=f.map(te));let m=ae(l,`Group`);return m.length>0&&(d.groups=m.map(re)),d}function ie(l,d){if(l.hasAttribute(d))return l.getAttribute(d)??void 0}function ae(l,d){let f=[],m=l.childNodes;for(let l=0;l<m.length;l++){let te=m[l];te.nodeType===1&&te.tagName===d&&f.push(te)}return f}})),require_writer=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.build=void 0;function d(l){let d=[];d.push(`<?xml version="1.0" encoding="UTF-8"?>`);let te=[];if(l.version!==void 0&&te.push(`version = "${l.version}"`),te.length>0){d.push(`<Workspace`);for(let l of te)d.push(` ${l}`);d[d.length-1]+=`>`}else d.push(`<Workspace>`);if(l.fileRefs)for(let m of l.fileRefs)d.push(...f(m,1));if(l.groups)for(let f of l.groups)d.push(...m(f,1));return d.push(`</Workspace>`),d.join(`
45958
+ `:``)}l.build=d;function f(l){let d=l.key;if(l.conditions)for(let f of l.conditions)d+=m(f);return`${d} = ${l.value}`}function m(l){let d=[];return l.sdk&&d.push(`[sdk=${l.sdk}]`),l.arch&&d.push(`[arch=${l.arch}]`),l.config&&d.push(`[config=${l.config}]`),d.join(``)}})),require_types$1=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0})})),require_xcconfig=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__exportStar||function(l,f){for(var m in l)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&d(f,l,m)};Object.defineProperty(l,"__esModule",{value:!0}),l.flattenBuildSettings=l.build=l.parseFile=l.parse=void 0;var m=require_parser$1();Object.defineProperty(l,"parse",{enumerable:!0,get:function(){return m.parse}}),Object.defineProperty(l,"parseFile",{enumerable:!0,get:function(){return m.parseFile}});var te=require_writer$1();Object.defineProperty(l,"build",{enumerable:!0,get:function(){return te.build}}),f(require_types$1(),l);function re(l,d={}){let f={};for(let m of l.includes)if(m.config){let l=re(m.config,d);Object.assign(f,l)}for(let m of l.buildSettings)if(ie(m.conditions,d)){let l=oe(m.value,m.key,f);f[m.key]=l}return f}l.flattenBuildSettings=re;function ie(l,d){return!l||l.length===0?!0:l.every(l=>!(l.sdk&&(!d.sdk||!ae(d.sdk,l.sdk))||l.arch&&(!d.arch||!ae(d.arch,l.arch))||l.config&&(!d.config||!ae(d.config,l.config))))}function ae(l,d){let f=d.replace(/[.+^${}()|[\]\\]/g,`\\$&`).replace(/\*/g,`.*`);return RegExp(`^${f}$`,`i`).test(l)}function oe(l,d,f){let m=/\$\(inherited\)/gi;if(!m.test(l))return l;let te=f[d]??``;return l.replace(m,te)}})),require_XCBuildConfiguration=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.XCBuildConfiguration=void 0;let re=te(__require$1(`node:path`)),ie=te(__require$1(`node:os`)),ae=te(__require$1(`node:fs`)),oe=te(require_build$1()),se=require_array(),ce=m(require_types$5()),le=require_AbstractObject(),ue=require_resolveBuildSettings(),de=m(require_xcconfig()),fe=require_src$1()(`xcode:XCBuildConfiguration`);var pe=class l extends le.AbstractObject{static is(d){return d.isa===l.isa}static create(l,d){return l.createModel({isa:ce.ISA.XCBuildConfiguration,...d})}resolveFilePath(l){let d=this.resolveBuildSetting(l);if(d==null||typeof d!=`string`)return null;let f=this.getXcodeProject().getProjectRoot();return re.default.join(f,d)}getEntitlementsFilePath(){return this.resolveFilePath(`CODE_SIGN_ENTITLEMENTS`)}getEntitlements(){let l=this.getEntitlementsFilePath();return l?oe.default.parse(ae.default.readFileSync(l,`utf8`)):null}getInfoPlistFilePath(){return this.resolveFilePath(`INFOPLIST_FILE`)}getInfoPlist(){let l=this.getInfoPlistFilePath();return l?oe.default.parse(ae.default.readFileSync(l,`utf8`)):null}getTargetReferrers(){let l=this.getReferrers().filter(l=>l.isa===ce.ISA.XCConfigurationList).map(l=>l.getReferrers().filter(l=>l.isa===ce.ISA.PBXNativeTarget)).flat();return(0,se.uniqueBy)(l,l=>l.uuid)}resolveBuildSetting(l){let d=d=>{if(!(d in this.props.buildSettings)){if(process.env[d]!=null)return fe(`Using environment variable substitution for "%s"`,d),process.env[d];if(d in me)return fe(`Dangerously using estimated default Apple build variable substitution for "%s"`,d),me[d];if(d===`TARGET_NAME`){let f=this.getTargetReferrers();if(f.length>0)return f.length>1&&console.warn(`[XCBuildConfiguration][${this.props.name}]: Multiple targets found for build setting "${l}". Using first target "${f[0].props.name}". Possible targets: ${f.map(l=>l.getDisplayName()).join(`, `)}`),f[0].props.name;console.warn(`[XCBuildConfiguration][${this.props.name}]: Issue resolving special build setting "${l}". Substitute value "${d}" not found in build settings, environment variables, or from a referring PBXNativeTarget.`)}else console.warn(`[XCBuildConfiguration][${this.props.name}]: Issue resolving build setting "${l}". Substitute value "${d}" not found in build settings.`)}return Array.isArray(d)&&console.warn(`[XCBuildConfiguration][${this.props.name}]: Issue resolving build setting "${l}". Substitute value "${d}" is of type array––it's not clear how this should be resolved in a string.`),this.props.buildSettings[d]},f=this.props.buildSettings[l];return typeof f==`string`?(0,ue.resolveXcodeBuildSetting)(f,d):Array.isArray(f)?f.map(l=>(0,ue.resolveXcodeBuildSetting)(l,d)):f}getObjectProps(){return{baseConfigurationReference:String}}getBaseConfigurationFilePath(){let l=this.props.baseConfigurationReference;if(!l)return null;let d=l.props.path;if(!d)return null;let f=this.getXcodeProject().getProjectRoot(),m=l.props.sourceTree;return m===`<group>`||m===`SOURCE_ROOT`?re.default.join(f,d):m===`<absolute>`||re.default.isAbsolute(d)?d:re.default.join(f,d)}getBaseConfiguration(){let l=this.getBaseConfigurationFilePath();if(!l||!ae.default.existsSync(l))return null;try{return de.parseFile(l)}catch(l){return fe(`Failed to parse base configuration: %s`,l),null}}getBaseConfigurationSettings(l){let d=this.getBaseConfiguration();return d?de.flattenBuildSettings(d,l):{}}};l.XCBuildConfiguration=pe,pe.isa=ce.ISA.XCBuildConfiguration;let me={HOME:ie.default.homedir(),SYSTEM_APPS_DIR:`/Applications`,SYSTEM_ADMIN_APPS_DIR:`/Applications/Utilities`,SYSTEM_DEMOS_DIR:`/Applications/Extras`,SYSTEM_DEVELOPER_DIR:`/Applications/Xcode.app/Contents/Developer`,SYSTEM_DEVELOPER_APPS_DIR:`/Applications/Xcode.app/Contents/Applications`,SYSTEM_DEVELOPER_JAVA_TOOLS_DIR:`/Applications/Xcode.app/Contents/Applications/Java Tools`,SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR:`/Applications/Xcode.app/Contents/Applications/Performance Tools`,SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR:`/Applications/Xcode.app/Contents/Applications/Graphics Tools`,SYSTEM_DEVELOPER_UTILITIES_DIR:`/Applications/Xcode.app/Contents/Applications/Utilities`,SYSTEM_DEVELOPER_DEMOS_DIR:`/Applications/Xcode.app/Contents/Developer/Utilities/Built Examples`,SYSTEM_DEVELOPER_DOC_DIR:`/Applications/Xcode.app/Contents/Developer/ADC Reference Library`,SYSTEM_DEVELOPER_TOOLS_DOC_DIR:`/Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools`,SYSTEM_DEVELOPER_RELEASENOTES_DIR:`/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes`,SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR:`/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools`,SYSTEM_LIBRARY_DIR:`/System/Library`,SYSTEM_CORE_SERVICES_DIR:`/System/Library/CoreServices`,SYSTEM_DOCUMENTATION_DIR:`/Library/Documentation`,LOCAL_ADMIN_APPS_DIR:`/Applications/Utilities`,LOCAL_APPS_DIR:`/Applications`,LOCAL_DEVELOPER_DIR:`/Library/Developer`,LOCAL_LIBRARY_DIR:`/Library`,USER_APPS_DIR:`$(HOME)/Applications`,USER_LIBRARY_DIR:`$(HOME)/Library`,MAN_PAGE_DIRECTORIES:`/usr/share/man`,SYSTEM_LIBRARY_EXECUTABLES_DIR:``,SYSTEM_DEVELOPER_EXECUTABLES_DIR:``,LOCAL_DEVELOPER_EXECUTABLES_DIR:``}})),require_XCConfigurationList=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.XCConfigurationList=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,defaultConfigurationIsVisible:0,...f})}getObjectProps(){return{buildConfigurations:[String]}}getDefaultConfiguration(){let l=this.props.buildConfigurations.find(l=>l.props.name===this.props.defaultConfigurationName);if(!l)throw Error(`[XCConfigurationList][${this.uuid}]: ${this.props.defaultConfigurationName} not found in buildConfigurations. Available configurations: ${this.props.buildConfigurations.map(l=>`${l.props.name} (${l.uuid})`).join(`, `)})`);return l}setBuildSetting(l,d){return this.props.buildConfigurations.forEach(f=>{f.props.buildSettings[l]=d}),d}removeBuildSetting(l){this.props.buildConfigurations.forEach(d=>{delete d.props.buildSettings[l]})}getDefaultBuildSetting(l){return this.getDefaultConfiguration().props.buildSettings[l]}removeFromProject(){for(let l of[...this.props.buildConfigurations]){let d=l.getReferrers();d.length===1&&d[0].uuid===this.uuid&&l.removeFromProject()}return super.removeFromProject()}};l.XCConfigurationList=ie,ie.isa=te.ISA.XCConfigurationList})),require_AbstractTarget=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.AbstractTarget=void 0;let d=require_AbstractObject(),f=require_XCBuildConfiguration(),m=require_XCConfigurationList();l.AbstractTarget=class extends d.AbstractObject{createConfigurationList(l,d){let te=d.map(l=>f.XCBuildConfiguration.create(this.getXcodeProject(),l)),re=m.XCConfigurationList.create(this.getXcodeProject(),{buildConfigurations:te,...l});return this.props.buildConfigurationList=re,re}getDependencyForTarget(l){return this.props.dependencies.find(d=>{if(d.props.targetProxy.isRemote()){let f=this.getXcodeProject().getReferenceForPath(l.getXcodeProject().filePath);if(f){let m=f.uuid;return d.props.targetProxy.props.remoteGlobalIDString===l.uuid&&d.props.targetProxy.props.containerPortal.uuid===m}}else return d.props.target.uuid===l.uuid;return!1})}createBuildPhase(l,d){let f=this.getXcodeProject().createModel({isa:l.isa,...d});return this.props.buildPhases.push(f),f}getBuildPhase(l){return this.props.buildPhases.find(d=>l.is(d))??null}getObjectProps(){return{buildConfigurationList:String,dependencies:[String],buildPhases:[String]}}getDefaultConfiguration(){return this.props.buildConfigurationList.getDefaultConfiguration()}setBuildSetting(l,d){return this.props.buildConfigurationList.setBuildSetting(l,d)}removeBuildSetting(l){return this.props.buildConfigurationList.removeBuildSetting(l)}getDefaultBuildSetting(l){return this.props.buildConfigurationList.getDefaultBuildSetting(l)}getAttributes(){return this.getXcodeProject().rootObject.props.attributes.TargetAttributes?.[this.uuid]}}})),require_XCSwiftPackageProductDependency=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.XCSwiftPackageProductDependency=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{package:String}}getDisplayName(){return this.props.productName??super.getDisplayName()}};l.XCSwiftPackageProductDependency=ie,ie.isa=te.ISA.XCSwiftPackageProductDependency})),require_PBXTargetDependency=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXTargetDependency=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{target:String,targetProxy:String}}getNativeTargetUuid(){if(this.props.target)return this.props.target.uuid;if(this.props.targetProxy)return this.props.targetProxy.props.remoteGlobalIDString;throw Error(`Expected target or target_proxy, from which to fetch a uuid for target '${this.getDisplayName()}'. Find and clear the PBXTargetDependency entry with uuid '${this.uuid}' in your .xcodeproj.`)}getDisplayName(){return this.props.name??this.props.target.props.name??this.props.targetProxy.props.remoteInfo??super.getDisplayName()}removeFromProject(){if(this.props.targetProxy){let l=this.props.targetProxy.getReferrers();l.length===1&&l[0].uuid===this.uuid&&this.props.targetProxy.removeFromProject()}return super.removeFromProject()}};l.PBXTargetDependency=ie,ie.isa=te.ISA.PBXTargetDependency})),require_PBXNativeTarget=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXNativeTarget=void 0;let te=m(require_types$5()),re=require_AbstractTarget(),ie=require_PBXSourcesBuildPhase(),ae=require_PBXFileReference(),oe=require_PBXBuildFile(),se=require_XCSwiftPackageProductDependency(),ce=require_PBXTargetDependency(),le=require_PBXContainerItemProxy();var ue=class l extends re.AbstractTarget{static is(d){return d.isa===l.isa}static create(l,d){return l.createModel({isa:te.ISA.PBXNativeTarget,buildPhases:[],buildRules:[],dependencies:[],...d})}getFrameworksBuildPhase(){return this.getBuildPhase(ie.PBXFrameworksBuildPhase)??this.createBuildPhase(ie.PBXFrameworksBuildPhase)}getHeadersBuildPhase(){return this.getBuildPhase(ie.PBXHeadersBuildPhase)??this.createBuildPhase(ie.PBXHeadersBuildPhase)}getSourcesBuildPhase(){return this.getBuildPhase(ie.PBXSourcesBuildPhase)??this.createBuildPhase(ie.PBXSourcesBuildPhase)}getResourcesBuildPhase(){return this.getBuildPhase(ie.PBXResourcesBuildPhase)??this.createBuildPhase(ie.PBXResourcesBuildPhase)}ensureFrameworks(l){let d=this.getXcodeProject().rootObject.getFrameworksGroup(),f=l=>{let f=l.endsWith(`.framework`)?l:l+`.framework`;for(let[,l]of this.getXcodeProject().entries())if(ae.PBXFileReference.is(l)&&l.props.lastKnownFileType===`wrapper.framework`&&l.props.sourceTree===`SDKROOT`&&l.props.name===f)return d.props.children.find(d=>d.uuid===l.uuid)||d.props.children.push(l),l;return d.createFile({path:`System/Library/Frameworks/`+f})};return l.map(l=>this.getFrameworksBuildPhase().ensureFile({fileRef:f(l)}))}addDependency(l){let d=l.getXcodeProject().filePath===this.getXcodeProject().filePath,f=this.getDependencyForTarget(l);if(f){d||(f.props.name=l.props.name);return}let m=le.PBXContainerItemProxy.create(this.getXcodeProject(),{containerPortal:this.getXcodeProject().rootObject,proxyType:1,remoteGlobalIDString:l.uuid,remoteInfo:l.props.name});if(d)m.props.containerPortal=this.getXcodeProject().rootObject;else throw Error(`adding dependencies to subprojects is not yet supported. Please open an issue if you need this feature.`);let te=ce.PBXTargetDependency.create(this.getXcodeProject(),{target:l,targetProxy:m});this.props.dependencies.push(te)}getCopyBuildPhaseForTarget(l){if(this.getXcodeProject().rootObject.getMainAppTarget(`ios`).uuid!==this.uuid)throw Error(`getCopyBuildPhaseForTarget can only be called on the main target`);let d=l.props.productType===`com.apple.product-type.application.on-demand-install-capable`?`Embed App Clips`:l.isWatchOSTarget()?`Embed Watch Content`:l.props.productType===`com.apple.product-type.extensionkit-extension`?`Embed ExtensionKit Extensions`:`Embed Foundation Extensions`,f=this.props.buildPhases.find(l=>ie.PBXCopyFilesBuildPhase.is(l)&&l.props.name===d);if(f){let d=f;return d.ensureDefaultsForTarget(l),d}let m=this.createBuildPhase(ie.PBXCopyFilesBuildPhase,{name:d,files:[]});return m.ensureDefaultsForTarget(l),m}isWatchOSTarget(){if(this.props.productType===`com.apple.product-type.application.watchapp`||this.props.productType===`com.apple.product-type.application.watchapp2`||this.props.productType===`com.apple.product-type.application.watchapp2-container`)return!0;if(this.props.productType===`com.apple.product-type.application`){let l=this.props.buildConfigurationList?.props.buildConfigurations?.[0]?.props.buildSettings;if(l&&l.SDKROOT===`watchos`)return!0}return!1}isWatchExtension(){return this.props.productType===`com.apple.product-type.watchkit-extension`||this.props.productType===`com.apple.product-type.watchkit2-extension`}getObjectProps(){return{...super.getObjectProps(),buildRules:[String],productReference:[String],packageProductDependencies:[String],fileSystemSynchronizedGroups:[String]}}removeFromProject(){let d=this.getXcodeProject(),f=l=>{let d=l.getReferrers();return d.length===1&&d[0].uuid===this.uuid};for(let l of[...this.props.buildPhases])f(l)&&l.removeFromProject();for(let l of[...this.props.buildRules])f(l)&&l.removeFromProject();f(this.props.buildConfigurationList)&&this.props.buildConfigurationList.removeFromProject();for(let l of[...this.props.dependencies])f(l)&&l.removeFromProject();if(this.props.fileSystemSynchronizedGroups)for(let f of[...this.props.fileSystemSynchronizedGroups])[...d.values()].some(d=>l.is(d)&&d.uuid!==this.uuid&&d.props.fileSystemSynchronizedGroups?.some(l=>l.uuid===f.uuid))||f.removeFromProject();if(this.props.packageProductDependencies)for(let l of[...this.props.packageProductDependencies])f(l)&&l.removeFromProject();this.props.productReference&&([...d.values()].some(d=>l.is(d)&&d.uuid!==this.uuid&&d.props.productReference?.uuid===this.props.productReference?.uuid)||this.props.productReference.removeFromProject());for(let[,l]of d.entries())ce.PBXTargetDependency.is(l)&&(l.props.target?.uuid===this.uuid||l.props.targetProxy?.props.remoteGlobalIDString===this.uuid)&&l.removeFromProject();return super.removeFromProject()}addSwiftPackageProduct(l){let d=this.getXcodeProject();this.props.packageProductDependencies||(this.props.packageProductDependencies=[]);let f=this.props.packageProductDependencies.find(d=>d.props.productName===l.productName&&d.props.package?.uuid===l.package?.uuid);if(f)return f;let m=se.XCSwiftPackageProductDependency.create(d,{productName:l.productName,package:l.package});this.props.packageProductDependencies.push(m);let te=oe.PBXBuildFile.createFromProductRef(d,{productRef:m});return this.getFrameworksBuildPhase().props.files.push(te),m}getSwiftPackageProductDependencies(){return this.props.packageProductDependencies??[]}removeSwiftPackageProduct(l){if(this.props.packageProductDependencies){let d=this.props.packageProductDependencies.findIndex(d=>d.uuid===l.uuid);d!==-1&&this.props.packageProductDependencies.splice(d,1)}let d=this.getBuildPhase(ie.PBXFrameworksBuildPhase);if(d){let f=d.props.files.findIndex(d=>d.props.productRef?.uuid===l.uuid);if(f!==-1){let l=d.props.files[f];d.props.files.splice(f,1),l.removeFromProject()}}l.removeFromProject()}};l.PBXNativeTarget=ue,ue.isa=te.ISA.PBXNativeTarget})),require_PBXAggregateTarget=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXAggregateTarget=void 0;let te=m(require_types$5()),re=require_AbstractTarget();var ie=class l extends re.AbstractTarget{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,buildPhases:[],dependencies:[],...f})}};l.PBXAggregateTarget=ie,ie.isa=te.ISA.PBXAggregateTarget})),require_PBXLegacyTarget=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXLegacyTarget=void 0;let te=m(require_types$5()),re=require_AbstractTarget();var ie=class l extends re.AbstractTarget{static is(d){return d.isa===l.isa}};l.PBXLegacyTarget=ie,ie.isa=te.ISA.PBXLegacyTarget})),require_XCRemoteSwiftPackageReference=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.XCRemoteSwiftPackageReference=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{}}getDisplayName(){return this.props.repositoryURL??super.getDisplayName()}};l.XCRemoteSwiftPackageReference=ie,ie.isa=te.ISA.XCRemoteSwiftPackageReference})),require_XCLocalSwiftPackageReference=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.XCLocalSwiftPackageReference=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{}}getDisplayName(){return this.props.relativePath??super.getDisplayName()}};l.XCLocalSwiftPackageReference=ie,ie.isa=te.ISA.XCLocalSwiftPackageReference})),require_PBXProject=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXProject=void 0;let re=te(__require$1(`path`)),ie=require_constants(),ae=m(require_types$5()),oe=require_AbstractObject(),se=require_PBXNativeTarget(),ce=require_XCBuildConfiguration(),le=require_XCRemoteSwiftPackageReference(),ue=require_XCLocalSwiftPackageReference();var de=class l extends oe.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{buildConfigurationList:String,mainGroup:String,productRefGroup:String,targets:[String],packageReferences:[String]}}setupDefaults(l){l.compatibilityVersion||=`Xcode 3.2`,l.developmentRegion||=`en`,l.hasScannedForEncodings||=0,l.knownRegions||=[`en`,`Base`],l.projectDirPath||=``,l.projectRoot||=``,l.attributes||={LastSwiftUpdateCheck:ie.LAST_SWIFT_UPGRADE_CHECK,LastUpgradeCheck:ie.LAST_UPGRADE_CHECK,TargetAttributes:{}}}addBuildConfiguration(l,d){let f=this.props.buildConfigurationList,m=f.props.buildConfigurations.find(d=>d.props.name===l);if(m)return m;let te=ce.XCBuildConfiguration.create(this.getXcodeProject(),{name:l,buildSettings:{...JSON.parse(JSON.stringify(ie.PROJECT_DEFAULT_BUILD_SETTINGS.all)),...JSON.parse(JSON.stringify(ie.PROJECT_DEFAULT_BUILD_SETTINGS[d]))}});return f.props.buildConfigurations.push(te),te}getName(){return re.default.basename(this.getXcodeProject().filePath,`.xcodeproj`)}ensureProductGroup(){if(this.props.productRefGroup)return this.props.productRefGroup;let l=this.props.mainGroup.createGroup({name:`Products`,sourceTree:`<group>`});return this.props.productRefGroup=l,l}ensureMainGroupChild(l){return this.props.mainGroup.getChildGroups().find(d=>d.getDisplayName()===l)??this.props.mainGroup.createGroup({name:l,sourceTree:`<group>`})}getFrameworksGroup(){return this.ensureMainGroupChild(`Frameworks`)}createNativeTarget(l){let d=se.PBXNativeTarget.create(this.getXcodeProject(),l);return this.props.targets.push(d),d}getNativeTarget(l){for(let d of this.props.targets)if(se.PBXNativeTarget.is(d)&&d.props.productType===l)return d;return null}getMainAppTarget(l=`ios`){let d={ios:`IPHONEOS_DEPLOYMENT_TARGET`,macos:`MACOSX_DEPLOYMENT_TARGET`,tvos:`TVOS_DEPLOYMENT_TARGET`,watchos:`WATCHOS_DEPLOYMENT_TARGET`}[l],f=this.props.targets.filter(l=>se.PBXNativeTarget.is(l)&&l.props.productType===`com.apple.product-type.application`),m=f.filter(l=>d in l.getDefaultConfiguration().props.buildSettings);m.length>1&&console.warn(`Multiple main app targets found, using first one: ${m.map(l=>l.getDisplayName()).join(`, `)}`);let te=m[0];if(!te){if(l===`ios`&&f.length)return f[0];throw Error(`No main app target found`)}return te}removeReference(l){super.removeReference(l),this.props.attributes?.TargetAttributes?.[l]&&delete this.props.attributes.TargetAttributes[l]}addPackageReference(l){return this.props.packageReferences||(this.props.packageReferences=[]),this.props.packageReferences.find(d=>d.uuid===l.uuid)||(this.props.packageReferences.push(l),l)}getPackageReference(l){if(!this.props.packageReferences)return null;for(let d of this.props.packageReferences)if(le.XCRemoteSwiftPackageReference.is(d)&&d.props.repositoryURL===l||ue.XCLocalSwiftPackageReference.is(d)&&d.props.relativePath===l)return d;return null}addRemoteSwiftPackage(l){if(l.repositoryURL){let d=this.getPackageReference(l.repositoryURL);if(d&&le.XCRemoteSwiftPackageReference.is(d))return d}let d=le.XCRemoteSwiftPackageReference.create(this.getXcodeProject(),l);return this.addPackageReference(d),d}addLocalSwiftPackage(l){let d=this.getPackageReference(l.relativePath);if(d&&ue.XCLocalSwiftPackageReference.is(d))return d;let f=ue.XCLocalSwiftPackageReference.create(this.getXcodeProject(),l);return this.addPackageReference(f),f}};l.PBXProject=de,de.isa=ae.ISA.PBXProject})),require_PBXBuildRule=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXBuildRule=void 0;let te=m(require_types$5()),re=require_AbstractObject();var ie=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{inputFiles:[String],outputFiles:[String]}}setupDefaults(){this.props.isEditable??(this.props.isEditable=1)}addOutputFile(l,d=``){this.props.outputFiles||(this.props.outputFiles=[]),this.props.outputFiles.push(l),this.props.outputFilesCompilerFlags||(this.props.outputFilesCompilerFlags=[]),this.props.outputFilesCompilerFlags.push(d)}getOutputFilesAndFlags(){return ae(this.props.outputFiles,this.props.outputFilesCompilerFlags)}};l.PBXBuildRule=ie,ie.isa=te.ISA.PBXBuildRule;function ae(l=[],d=[]){return l.map((l,f)=>[l,d[f]])}})),require_PBXReferenceProxy=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXReferenceProxy=void 0;let te=m(require_types$5()),re=require_AbstractObject(),ie=require_PBXBuildFile();var ae=class l extends re.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,sourceTree:`<group>`,...f})}getObjectProps(){return{remoteRef:String}}removeFromProject(){return this.getBuildFiles().forEach(l=>{l.removeFromProject()}),super.removeFromProject()}getBuildFiles(){return this.getReferrers().filter(ie.PBXBuildFile.is)}};l.PBXReferenceProxy=ae,ae.isa=te.ISA.PBXReferenceProxy})),require_XcodeProject=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.XcodeProject=void 0;let re=te(__require$1(`assert`)),ie=__require$1(`fs`),ae=te(__require$1(`path`)),oe=te(__require$1(`crypto`)),se=require_XCScheme(),ce=require_XCSharedData(),le=require_XCUserData(),ue=require_json(),de=m(require_types$5()),fe=require_constants(),pe=require_src$1()(`xcparse:model:XcodeProject`);function me(l){return`XX`+oe.default.createHash(`md5`).update(l).digest(`hex`).toUpperCase().slice(0,20)+`XX`}let he={[de.ISA.PBXBuildFile]:()=>require_PBXBuildFile().PBXBuildFile,[de.ISA.PBXAppleScriptBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXAppleScriptBuildPhase,[de.ISA.PBXCopyFilesBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXCopyFilesBuildPhase,[de.ISA.PBXFrameworksBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXFrameworksBuildPhase,[de.ISA.PBXHeadersBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXHeadersBuildPhase,[de.ISA.PBXResourcesBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXResourcesBuildPhase,[de.ISA.PBXShellScriptBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXShellScriptBuildPhase,[de.ISA.PBXSourcesBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXSourcesBuildPhase,[de.ISA.PBXContainerItemProxy]:()=>require_PBXContainerItemProxy().PBXContainerItemProxy,[de.ISA.PBXFileReference]:()=>require_PBXFileReference().PBXFileReference,[de.ISA.PBXGroup]:()=>require_AbstractGroup().PBXGroup,[de.ISA.PBXVariantGroup]:()=>require_PBXVariantGroup().PBXVariantGroup,[de.ISA.XCVersionGroup]:()=>require_XCVersionGroup().XCVersionGroup,[de.ISA.PBXFileSystemSynchronizedRootGroup]:()=>require_PBXFileSystemSynchronizedRootGroup().PBXFileSystemSynchronizedRootGroup,[de.ISA.PBXFileSystemSynchronizedBuildFileExceptionSet]:()=>require_PBXFileSystemSynchronizedBuildFileExceptionSet().PBXFileSystemSynchronizedBuildFileExceptionSet,[de.ISA.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet]:()=>require_PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet().PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet,[de.ISA.PBXNativeTarget]:()=>require_PBXNativeTarget().PBXNativeTarget,[de.ISA.PBXAggregateTarget]:()=>require_PBXAggregateTarget().PBXAggregateTarget,[de.ISA.PBXLegacyTarget]:()=>require_PBXLegacyTarget().PBXLegacyTarget,[de.ISA.PBXProject]:()=>require_PBXProject().PBXProject,[de.ISA.PBXTargetDependency]:()=>require_PBXTargetDependency().PBXTargetDependency,[de.ISA.XCBuildConfiguration]:()=>require_XCBuildConfiguration().XCBuildConfiguration,[de.ISA.XCConfigurationList]:()=>require_XCConfigurationList().XCConfigurationList,[de.ISA.PBXBuildRule]:()=>require_PBXBuildRule().PBXBuildRule,[de.ISA.PBXReferenceProxy]:()=>require_PBXReferenceProxy().PBXReferenceProxy,[de.ISA.PBXRezBuildPhase]:()=>require_PBXSourcesBuildPhase().PBXRezBuildPhase,[de.ISA.XCSwiftPackageProductDependency]:()=>require_XCSwiftPackageProductDependency().XCSwiftPackageProductDependency,[de.ISA.XCRemoteSwiftPackageReference]:()=>require_XCRemoteSwiftPackageReference().XCRemoteSwiftPackageReference,[de.ISA.XCLocalSwiftPackageReference]:()=>require_XCLocalSwiftPackageReference().XCLocalSwiftPackageReference};l.XcodeProject=class l extends Map{static open(d){let f=(0,ie.readFileSync)(d,`utf8`);return new l(d,(0,ue.parse)(f))}constructor(l,d){super(),this.filePath=l;let f=JSON.parse(JSON.stringify(d));(0,re.default)(f.objects,`objects is required`),(0,re.default)(f.rootObject,`rootObject is required`),this.internalJsonObjects=f.objects,this.archiveVersion=f.archiveVersion??fe.LAST_KNOWN_ARCHIVE_VERSION,this.objectVersion=f.objectVersion??fe.DEFAULT_OBJECT_VERSION,this.classes=f.classes??{},ge(f.rootObject,f.objects?.[f.rootObject]),this.rootObject=this.getObject(f.rootObject),this.ensureAllObjectsInflated()}getProjectRoot(){return ae.default.dirname(ae.default.dirname(this.filePath))}getObject(l){let d=this._getObjectOptional(l);if(d)return d;throw Error(`object with uuid '${l}' not found.`)}_getObjectOptional(l){if(this.has(l))return this.get(l);let d=this.internalJsonObjects[l];if(!d)return null;delete this.internalJsonObjects[l];let f=this.createObject(l,d);return this.set(l,f),f.inflate(),f}createObject(l,d){let f=he[d.isa]();return(0,re.default)(f,`unknown object type. (isa: ${d.isa}, uuid: ${l})`),new f(this,l,d)}ensureAllObjectsInflated(){if(Object.keys(this.internalJsonObjects).length!==0)for(pe(`inflating unreferenced objects: %o`,Object.keys(this.internalJsonObjects));Object.keys(this.internalJsonObjects).length>0;){let l=Object.keys(this.internalJsonObjects)[0];this.getObject(l)}}createModel(l){let d=this.getUniqueId(JSON.stringify(_e(l))),f=this.createObject(d,l);return this.set(d,f),f}getReferenceForPath(l){if(!ae.default.isAbsolute(l))throw Error(`Paths must be absolute ${l}`);for(let d of this.values())if(d.isa===`PBXFileReference`&&`getRealPath`in d&&d.getRealPath()===l)return d;return null}getReferrers(l){let d=[];for(let f of this.values())f.isReferencing(l)&&d.push(f);return d}isUniqueId(l){for(let d of this.keys())if(d===l)return!1;return!0}getUniqueId(l){let d=me(l);return this.isUniqueId(d)?d:this.getUniqueId(l+` `)}getSharedSchemesDir(){let l=ae.default.dirname(this.filePath);return ae.default.join(l,`xcshareddata`,`xcschemes`)}getUserSchemesDir(l){let d=ae.default.dirname(this.filePath);return ae.default.join(d,`xcuserdata`,`${l}.xcuserdatad`,`xcschemes`)}getSchemes(l){let d=[],f=this.getSharedSchemesDir();if((0,ie.existsSync)(f)){let l=(0,ie.readdirSync)(f).filter(l=>l.endsWith(`.xcscheme`));for(let m of l)d.push(se.XCScheme.open(ae.default.join(f,m)))}if(l?.includeUser&&l?.username){let f=this.getUserSchemesDir(l.username);if((0,ie.existsSync)(f)){let l=(0,ie.readdirSync)(f).filter(l=>l.endsWith(`.xcscheme`));for(let m of l)d.push(se.XCScheme.open(ae.default.join(f,m)))}}return d}getScheme(l,d){let f=l.endsWith(`.xcscheme`)?l:`${l}.xcscheme`,m=ae.default.join(this.getSharedSchemesDir(),f);if((0,ie.existsSync)(m))return se.XCScheme.open(m);if(d?.username){let l=ae.default.join(this.getUserSchemesDir(d.username),f);if((0,ie.existsSync)(l))return se.XCScheme.open(l)}return null}saveScheme(l,d){let f=d?.shared??!0,m=`${l.name}.xcscheme`,te;if(f)te=this.getSharedSchemesDir();else{if(!d?.username)throw Error(`username is required when saving a user scheme`);te=this.getUserSchemesDir(d.username)}let re=ae.default.join(te,m);l.save(re)}deleteScheme(l,d){let f=d?.shared??!0,m=`${l}.xcscheme`,te;if(f)te=this.getSharedSchemesDir();else{if(!d?.username)throw Error(`username is required when deleting a user scheme`);te=this.getUserSchemesDir(d.username)}let re=ae.default.join(te,m);(0,ie.existsSync)(re)&&(0,ie.unlinkSync)(re)}createSchemeForTarget(l,d){let f=ae.default.dirname(this.filePath),m=ae.default.basename(f);return se.XCScheme.createForTarget(l,d,`${m}`)}getSharedDataDir(){let l=ae.default.dirname(this.filePath);return ae.default.join(l,`xcshareddata`)}getSharedData(){let l=this.getSharedDataDir();if((0,ie.existsSync)(l))return ce.XCSharedData.open(l);let d=ce.XCSharedData.create();return d.filePath=l,d}getUserDataDir(){let l=ae.default.dirname(this.filePath);return ae.default.join(l,`xcuserdata`)}getAllUserData(){return le.XCUserData.discoverUsers(this.getUserDataDir())}getUserData(l){let d=this.getUserDataDir(),f=ae.default.join(d,`${l}.xcuserdatad`);if((0,ie.existsSync)(f))return le.XCUserData.open(f);let m=le.XCUserData.create(l);return m.filePath=f,m}toJSON(){let l={archiveVersion:this.archiveVersion,objectVersion:this.objectVersion,classes:this.classes,objects:{},rootObject:this.rootObject.uuid};for(let[d,f]of this.entries())l.objects[d]=f.toJSON();return l}};function ge(l,d){if(d?.isa!==`PBXProject`)throw Error(`Root object "${l}" is not a PBXProject`)}function _e(l){if(Array.isArray(l))return l.map(_e);if(typeof l==`object`){if(`uuid`in l&&typeof l.uuid==`string`)return l.uuid;let d={};for(let f of Object.keys(l).sort())d[f]=_e(l[f]);return d}else return l}})),require_PBXContainerItemProxy=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXContainerItemProxy=void 0;let re=te(__require$1(`assert`)),ie=m(require_types$5()),ae=require_AbstractObject(),oe=require_XcodeProject(),se=require_PBXFileReference();var ce=class l extends ae.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{containerPortal:String}}getProxiedObject(){return this.getContainerPortalObject().get(this.props.remoteGlobalIDString)}getContainerPortalObject(){if(this.isRemote()){let l=this.getXcodeProject().get(this.props.containerPortal.uuid);return(0,re.default)(se.PBXFileReference.is(l),`containerPortal is not a PBXFileReference`),oe.XcodeProject.open(l.getRealPath())}return this.getXcodeProject()}isRemote(){return this.getXcodeProject().rootObject.uuid!==this.props.containerPortal.uuid}};l.PBXContainerItemProxy=ce,ce.isa=ie.ISA.PBXContainerItemProxy})),require_PBXFileReference=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXFileReference=l.getPossibleDefaultSourceTree=void 0;let re=te(__require$1(`path`)),ie=require_constants(),ae=m(require_types$5()),oe=require_AbstractGroup(),se=require_PBXBuildFile(),ce=require_AbstractObject(),le=require_paths(),ue=require_PBXContainerItemProxy(),de=require_PBXReferenceProxy(),fe=require_PBXTargetDependency(),pe=require_src$1()(`xcparse:models`);function me(l){let d=l.lastKnownFileType?ie.SOURCETREE_BY_FILETYPE[l.lastKnownFileType]:void 0;return!d&&l.explicitFileType?`BUILT_PRODUCTS_DIR`:d??`<group>`}l.getPossibleDefaultSourceTree=me;function he(l,d,f){let m=re.default.resolve(d);if(l.props.sourceTree=f,f===`<absolute>`){if(!re.default.isAbsolute(m))throw Error(`[Xcodeproj] Attempt to set a relative path with an absolute source tree: ${d}`);l.props.path=m}else if(f==`<group>`||f==`SOURCE_ROOT`){let d=(0,le.getSourceTreeRealPath)(l);if(d&&re.default.resolve(d)===m){let f=re.default.relative(d,m);l.props.path=f}else l.props.path=m}else l.props.path=m}var ge=class l extends ce.AbstractObject{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,...f})}getObjectProps(){return{}}setupDefaults(){if(!this.props.lastKnownFileType&&!this.props.explicitFileType&&this.setLastKnownFileType(),this.props.name==null&&this.props.path){let l=re.default.basename(this.props.path);l!==this.props.path&&(this.props.name=l)}this.props.sourceTree||(this.props.sourceTree=me(this.props))}getParent(){return(0,le.getParent)(this)}getParents(){return(0,le.getParents)(this)}move(l){oe.PBXGroup.move(this,l)}getRealPath(){return(0,le.getRealPath)(this)}getFullPath(){return(0,le.getFullPath)(this)}setLastKnownFileType(l){if(l)this.props.lastKnownFileType=l;else if(this.props.path){let l=re.default.extname(this.props.path);l.startsWith(`.`)&&(l=l.substring(1)),this.props.lastKnownFileType=ie.FILE_TYPES_BY_EXTENSION[l],pe(`setLastKnownFileType (ext: ${l}, type: ${this.props.lastKnownFileType})`)}}setExplicitFileType(l){if(l)this.props.explicitFileType=l;else if(this.props.path){let l=re.default.extname(this.props.path);l.startsWith(`.`)&&(l=l.substring(1)),this.props.explicitFileType=ie.FILE_TYPES_BY_EXTENSION[l],pe(`setExplicitFileType (ext: ${l}, type: ${this.props.explicitFileType})`)}this.props.explicitFileType&&(this.props.lastKnownFileType=void 0)}getDisplayName(){return this.props.name?this.props.name:this.props.path&&this.props.sourceTree===`BUILT_PRODUCTS_DIR`?this.props.path:this.props.path?re.default.basename(this.props.path):this.isa.replace(/^(PBX|XC)/,``)}getProxyContainers(){return Array.from(this.getXcodeProject().values()).filter(l=>ue.PBXContainerItemProxy.is(l)&&l.props.containerPortal.uuid===this.uuid)}setPath(l){l?he(this,l,this.props.sourceTree):this.props.path=void 0}getBuildFiles(){return this.getReferrers().filter(l=>se.PBXBuildFile.is(l))}getTargetDependencyProxies(){let l=this.getProxyContainers();return l.length?Array.from(this.getXcodeProject().values()).filter(d=>fe.PBXTargetDependency.is(d)&&l.some(l=>l.uuid===d.props.targetProxy.uuid)):[]}removeFromProject(){return this.getFileReferenceProxies().forEach(l=>{l.removeFromProject()}),this.getTargetDependencyProxies().forEach(l=>{l.removeFromProject()}),this.getBuildFiles().forEach(l=>l.removeFromProject()),super.removeFromProject()}getFileReferenceProxies(){let l=this.getProxyContainers();return l.length?[...this.getXcodeProject().values()].filter(d=>de.PBXReferenceProxy.is(d)?!!l.find(l=>ue.PBXContainerItemProxy.is(d.props.remoteRef)&&l.uuid===d.props.remoteRef.uuid):!1):[]}isAppExtension(){let l=this.props.lastKnownFileType??this.props.explicitFileType;return!!(l&&[`wrapper.extensionkit-extension`,`wrapper.app-extension`].includes(l)&&this.props.sourceTree===`BUILT_PRODUCTS_DIR`)}getTargetReferrers(){return this.getReferrers().filter(l=>_e(l)&&l.props.productReference?.uuid===this.uuid)}};l.PBXFileReference=ge,ge.isa=ae.ISA.PBXFileReference;function _e(l){return l.isa===ae.ISA.PBXNativeTarget}})),require_AbstractGroup=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.PBXGroup=l.AbstractGroup=void 0;let re=te(__require$1(`assert`)),ie=te(__require$1(`path`)),ae=require_constants(),oe=m(require_types$5()),se=require_paths(),ce=require_AbstractObject(),le=require_PBXFileReference();var ue=class extends ce.AbstractObject{getObjectProps(){return{children:Array}}setupDefaults(){this.props.children||(this.props.children=[])}createGroup(l){(0,re.default)(l.path||l.name,`A group must have a path or name`);let d=de.create(this.getXcodeProject(),{...l});return this.props.children.push(d),d}mkdir(l,{recursive:d}={}){let f=typeof l==`string`?l.split(`/`):l;if(!f.length)return this;let m=f.shift(),te=this.getChildGroups().find(l=>l.getDisplayName()===m);if(!te){if(!d)return null;te=this.createGroup({path:m})}return l.length?te.mkdir(f,{recursive:d}):te}getChildGroups(){return this.props.children.filter(l=>de.is(l))}createNewProductRefForTarget(l,d){let f=``;d==`staticLibrary`&&(f=`lib`);let m=ae.PRODUCT_UTI_EXTENSIONS[d],te=`${f}${l}`;m&&(te+=`.${m}`);let re=pe(this,te,`BUILT_PRODUCTS_DIR`);return re.props.includeInIndex=0,re.setExplicitFileType(),re}static move(l,d){(0,re.default)(de.is(d),`newParent must be a PBXGroup`),(0,re.default)(l,`Attempt to move nullish object to "${d.uuid}".`),(0,re.default)(d,`Attempt to move object "${l.uuid}" to nullish parent.`),(0,re.default)(d.uuid!==l.uuid,`Attempt to move object "${l.uuid}" to itself.`),(0,re.default)(!(0,se.getParents)(d).find(d=>d.uuid===l.uuid),`Attempt to move object "${l.uuid}" to a child object "${d.uuid}".`);let f=l.getParent();if(de.is(f)){let d=f.props.children.findIndex(d=>d.uuid===l.uuid);d!==-1&&f.props.children.splice(d,1)}d.props.children.push(l)}getParent(){return(0,se.getParent)(this)}getParents(){return(0,se.getParents)(this)}getPath(){throw Error(`TODO`)}createFile(l){let d=le.PBXFileReference.create(this.getXcodeProject(),l);return this.props.children.push(d),d}getDisplayName(){return this.props.name?this.props.name:this.props.path?ie.default.basename(this.props.path):this.uuid===this.project.props.mainGroup.uuid?`Main Group`:this.isa.replace(/^(PBX|XC)/,``)}};l.AbstractGroup=ue;var de=class l extends ue{static is(d){return d.isa===l.isa}static create(d,f){return d.createModel({isa:l.isa,children:[],sourceTree:`<group>`,...f})}};l.PBXGroup=de,de.isa=oe.ISA.PBXGroup;function fe(l,d,f){return l.createFile({path:d,sourceTree:f})}function pe(l,d,f){let m=(()=>{switch(ie.default.extname(d).toLowerCase()){case`.xcdatamodeld`:case`.xcodeproj`:throw Error(`Unsupported file type: `+d);default:return fe(l,d,f)}})();return me(m),m}function me(l){l.props.path?.includes(`/`)&&(l.props.name=l.props.path.split(`/`).pop()),l.props.path&&ie.default.extname(l.props.path).toLowerCase()==`.framework`&&(l.props.includeInIndex=void 0)}})),require_parser=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.parse=void 0;let d=require_lib$2();function f(l){let f=new d.DOMParser().parseFromString(l,`text/xml`).documentElement;if(!f||f.tagName!==`Workspace`)throw Error(`Invalid xcworkspacedata file: root element must be <Workspace>`);return m(f)}l.parse=f;function m(l){let d={};d.version=ie(l,`version`);let f=ae(l,`FileRef`);f.length>0&&(d.fileRefs=f.map(te));let m=ae(l,`Group`);return m.length>0&&(d.groups=m.map(re)),d}function te(l){return{location:ie(l,`location`)||``}}function re(l){let d={};d.location=ie(l,`location`),d.name=ie(l,`name`);let f=ae(l,`FileRef`);f.length>0&&(d.fileRefs=f.map(te));let m=ae(l,`Group`);return m.length>0&&(d.groups=m.map(re)),d}function ie(l,d){if(l.hasAttribute(d))return l.getAttribute(d)??void 0}function ae(l,d){let f=[],m=l.childNodes;for(let l=0;l<m.length;l++){let te=m[l];te.nodeType===1&&te.tagName===d&&f.push(te)}return f}})),require_writer=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.build=void 0;function d(l){let d=[];d.push(`<?xml version="1.0" encoding="UTF-8"?>`);let te=[];if(l.version!==void 0&&te.push(`version = "${l.version}"`),te.length>0){d.push(`<Workspace`);for(let l of te)d.push(` ${l}`);d[d.length-1]+=`>`}else d.push(`<Workspace>`);if(l.fileRefs)for(let m of l.fileRefs)d.push(...f(m,1));if(l.groups)for(let f of l.groups)d.push(...m(f,1));return d.push(`</Workspace>`),d.join(`
45958
45959
  `)+`
45959
- `}l.build=d;function f(l,d){let f=te(d);return[`${f}<FileRef\n${f} location = "${re(l.location)}">\n${f}</FileRef>`]}function m(l,d){let ie=[],ae=te(d),oe=[];l.location!==void 0&&oe.push(`location = "${re(l.location)}"`),l.name!==void 0&&oe.push(`name = "${re(l.name)}"`),ie.push(`${ae}<Group`);for(let l of oe)ie.push(`${ae} ${l}`);if(ie[ie.length-1]+=`>`,l.fileRefs)for(let m of l.fileRefs)ie.push(...f(m,d+1));if(l.groups)for(let f of l.groups)ie.push(...m(f,d+1));return ie.push(`${ae}</Group>`),ie}function te(l){return` `.repeat(l)}function re(l){return l.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`)}})),require_checks=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.buildChecks=l.parseChecks=void 0;let f=d(require_build$1());function m(l){let d=f.default.parse(l),m={};for(let[l,f]of Object.entries(d))typeof f==`boolean`&&(m[l]=f);return m}l.parseChecks=m;function te(l){let d={};for(let[f,m]of Object.entries(l))typeof m==`boolean`&&(d[f]=m);return f.default.build(d)}l.buildChecks=te})),require_types=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0})})),require_workspace=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__exportStar||function(l,f){for(var m in l)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&d(f,l,m)};Object.defineProperty(l,"__esModule",{value:!0}),l.buildChecks=l.parseChecks=l.build=l.parse=void 0;var m=require_parser();Object.defineProperty(l,"parse",{enumerable:!0,get:function(){return m.parse}});var te=require_writer();Object.defineProperty(l,"build",{enumerable:!0,get:function(){return te.build}});var re=require_checks();Object.defineProperty(l,"parseChecks",{enumerable:!0,get:function(){return re.parseChecks}}),Object.defineProperty(l,"buildChecks",{enumerable:!0,get:function(){return re.buildChecks}}),f(require_types(),l)})),require_IDEWorkspaceChecks=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.IDEWorkspaceChecks=void 0;let f=__require$1(`fs`),m=d(__require$1(`path`)),te=require_checks(),re=`xcshareddata/IDEWorkspaceChecks.plist`;l.IDEWorkspaceChecks=class l{constructor(l,d){this.props=l,this.filePath=d}static open(d){let ie=m.default.join(d,re);if(!(0,f.existsSync)(ie))return null;let ae=(0,f.readFileSync)(ie,`utf-8`);return new l((0,te.parseChecks)(ae),ie)}static openOrCreate(d){return l.open(d)||new l({IDEDidComputeMac32BitWarning:!0},m.default.join(d,re))}static create(d){return new l({IDEDidComputeMac32BitWarning:!0,...d?.props},d?.filePath)}save(l){let d=l??this.filePath;if(!d)throw Error(`No file path specified. Either provide a path or set this.filePath.`);let re=m.default.dirname(d);(0,f.existsSync)(re)||(0,f.mkdirSync)(re,{recursive:!0});let ie=(0,te.buildChecks)(this.props);(0,f.writeFileSync)(d,ie,`utf-8`),this.filePath=d}saveToWorkspace(l){let d=m.default.join(l,re);this.save(d)}toPlist(){return(0,te.buildChecks)(this.props)}get mac32BitWarningComputed(){return this.props.IDEDidComputeMac32BitWarning??!1}set mac32BitWarningComputed(l){this.props.IDEDidComputeMac32BitWarning=l}getCheck(l){return this.props[l]}setCheck(l,d){this.props[l]=d}removeCheck(l){return l in this.props?(delete this.props[l],!0):!1}}})),require_XCWorkspace=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.XCWorkspace=void 0;let re=__require$1(`fs`),ie=te(__require$1(`path`)),ae=m(require_workspace()),oe=require_IDEWorkspaceChecks(),se=require_XCSharedData();l.XCWorkspace=class l{constructor(l,d,f){this.name=l,this.props=d,this.filePath=f}static open(d){let f=ie.default.join(d,`contents.xcworkspacedata`);if(!(0,re.existsSync)(f))throw Error(`Invalid workspace: ${f} does not exist`);let m=(0,re.readFileSync)(f,`utf-8`),te=ae.parse(m);return new l(ie.default.basename(d,`.xcworkspace`),te,d)}static create(d,f){return new l(d,{version:`1.0`,fileRefs:[],...f})}save(l){let d=l??this.filePath;if(!d)throw Error(`No file path specified. Either provide a path or set this.filePath.`);(0,re.existsSync)(d)||(0,re.mkdirSync)(d,{recursive:!0});let f=ie.default.join(d,`contents.xcworkspacedata`),m=ae.build(this.props);(0,re.writeFileSync)(f,m,`utf-8`),this.filePath=d}toXML(){return ae.build(this.props)}addProject(l,d=`group`){this.props.fileRefs||(this.props.fileRefs=[]);let f=`${d}:${l}`;this.props.fileRefs.find(l=>l.location===f)||this.props.fileRefs.push({location:f})}removeProject(l){if(!this.props.fileRefs)return!1;let d=this.props.fileRefs.length;return this.props.fileRefs=this.props.fileRefs.filter(d=>(d.location.includes(`:`)?d.location.split(`:`).slice(1).join(`:`):d.location)!==l&&d.location!==l),this.props.fileRefs.length<d}getProjectPaths(){let l=[];if(this.props.fileRefs&&l.push(...this.props.fileRefs.map(l=>l.location)),this.props.groups)for(let d of this.props.groups)l.push(...this.collectPathsFromGroup(d));return l}addGroup(l,d){this.props.groups||(this.props.groups=[]);let f=this.props.groups.find(f=>f.name===l&&f.location===d);if(f)return f;let m={name:l,location:d,fileRefs:[]};return this.props.groups.push(m),m}getGroup(l){return this.props.groups?.find(d=>d.name===l)}removeGroup(l){if(!this.props.groups)return!1;let d=this.props.groups.length;return this.props.groups=this.props.groups.filter(d=>d.name!==l),this.props.groups.length<d}hasProject(l){return this.getProjectPaths().some(d=>(d.includes(`:`)?d.split(`:`).slice(1).join(`:`):d)===l||d===l)}getWorkspaceChecks(){return this.filePath?oe.IDEWorkspaceChecks.open(this.filePath):null}getOrCreateWorkspaceChecks(){if(!this.filePath)throw Error(`Workspace must be saved before accessing workspace checks.`);return oe.IDEWorkspaceChecks.openOrCreate(this.filePath)}hasWorkspaceChecks(){return this.filePath?oe.IDEWorkspaceChecks.open(this.filePath)!==null:!1}setMac32BitWarningComputed(){let l=this.getOrCreateWorkspaceChecks();l.mac32BitWarningComputed=!0,l.save()}collectPathsFromGroup(l){let d=[];if(l.fileRefs&&d.push(...l.fileRefs.map(l=>l.location)),l.groups)for(let f of l.groups)d.push(...this.collectPathsFromGroup(f));return d}getSharedDataDir(){if(this.filePath)return ie.default.join(this.filePath,`xcshareddata`)}getSharedData(){let l=this.getSharedDataDir();if(l&&(0,re.existsSync)(l))return se.XCSharedData.open(l);let d=se.XCSharedData.create();return l&&(d.filePath=l),d}}})),require_api=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.IDEWorkspaceChecks=l.XCWorkspace=l.XCSharedData=l.createBuildableReference=l.XCScheme=l.XCVersionGroup=l.XCSwiftPackageProductDependency=l.XCLocalSwiftPackageReference=l.XCRemoteSwiftPackageReference=l.XCConfigurationList=l.XCBuildConfiguration=l.AbstractObject=l.PBXTargetDependency=l.PBXVariantGroup=l.PBXSourcesBuildPhase=l.PBXShellScriptBuildPhase=l.PBXRezBuildPhase=l.PBXResourcesBuildPhase=l.PBXHeadersBuildPhase=l.PBXFrameworksBuildPhase=l.PBXCopyFilesBuildPhase=l.PBXAppleScriptBuildPhase=l.AbstractBuildPhase=l.PBXReferenceProxy=l.PBXProject=l.PBXNativeTarget=l.PBXLegacyTarget=l.PBXFileSystemSynchronizedRootGroup=l.PBXFileSystemSynchronizedBuildFileExceptionSet=l.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet=l.PBXFileReference=l.PBXContainerItemProxy=l.PBXBuildRule=l.PBXBuildFile=l.PBXAggregateTarget=l.XcodeProject=l.AbstractGroup=l.PBXGroup=void 0;var d=require_AbstractGroup();Object.defineProperty(l,"PBXGroup",{enumerable:!0,get:function(){return d.PBXGroup}}),Object.defineProperty(l,"AbstractGroup",{enumerable:!0,get:function(){return d.AbstractGroup}});var f=require_XcodeProject();Object.defineProperty(l,"XcodeProject",{enumerable:!0,get:function(){return f.XcodeProject}});var m=require_PBXAggregateTarget();Object.defineProperty(l,"PBXAggregateTarget",{enumerable:!0,get:function(){return m.PBXAggregateTarget}});var te=require_PBXBuildFile();Object.defineProperty(l,"PBXBuildFile",{enumerable:!0,get:function(){return te.PBXBuildFile}});var re=require_PBXBuildRule();Object.defineProperty(l,"PBXBuildRule",{enumerable:!0,get:function(){return re.PBXBuildRule}});var ie=require_PBXContainerItemProxy();Object.defineProperty(l,"PBXContainerItemProxy",{enumerable:!0,get:function(){return ie.PBXContainerItemProxy}});var ae=require_PBXFileReference();Object.defineProperty(l,"PBXFileReference",{enumerable:!0,get:function(){return ae.PBXFileReference}});var oe=require_PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet();Object.defineProperty(l,"PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet",{enumerable:!0,get:function(){return oe.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet}});var se=require_PBXFileSystemSynchronizedBuildFileExceptionSet();Object.defineProperty(l,"PBXFileSystemSynchronizedBuildFileExceptionSet",{enumerable:!0,get:function(){return se.PBXFileSystemSynchronizedBuildFileExceptionSet}});var ce=require_PBXFileSystemSynchronizedRootGroup();Object.defineProperty(l,"PBXFileSystemSynchronizedRootGroup",{enumerable:!0,get:function(){return ce.PBXFileSystemSynchronizedRootGroup}});var le=require_PBXLegacyTarget();Object.defineProperty(l,"PBXLegacyTarget",{enumerable:!0,get:function(){return le.PBXLegacyTarget}});var ue=require_PBXNativeTarget();Object.defineProperty(l,"PBXNativeTarget",{enumerable:!0,get:function(){return ue.PBXNativeTarget}});var de=require_PBXProject();Object.defineProperty(l,"PBXProject",{enumerable:!0,get:function(){return de.PBXProject}});var fe=require_PBXReferenceProxy();Object.defineProperty(l,"PBXReferenceProxy",{enumerable:!0,get:function(){return fe.PBXReferenceProxy}});var pe=require_PBXSourcesBuildPhase();Object.defineProperty(l,"AbstractBuildPhase",{enumerable:!0,get:function(){return pe.AbstractBuildPhase}}),Object.defineProperty(l,"PBXAppleScriptBuildPhase",{enumerable:!0,get:function(){return pe.PBXAppleScriptBuildPhase}}),Object.defineProperty(l,"PBXCopyFilesBuildPhase",{enumerable:!0,get:function(){return pe.PBXCopyFilesBuildPhase}}),Object.defineProperty(l,"PBXFrameworksBuildPhase",{enumerable:!0,get:function(){return pe.PBXFrameworksBuildPhase}}),Object.defineProperty(l,"PBXHeadersBuildPhase",{enumerable:!0,get:function(){return pe.PBXHeadersBuildPhase}}),Object.defineProperty(l,"PBXResourcesBuildPhase",{enumerable:!0,get:function(){return pe.PBXResourcesBuildPhase}}),Object.defineProperty(l,"PBXRezBuildPhase",{enumerable:!0,get:function(){return pe.PBXRezBuildPhase}}),Object.defineProperty(l,"PBXShellScriptBuildPhase",{enumerable:!0,get:function(){return pe.PBXShellScriptBuildPhase}}),Object.defineProperty(l,"PBXSourcesBuildPhase",{enumerable:!0,get:function(){return pe.PBXSourcesBuildPhase}});var me=require_PBXVariantGroup();Object.defineProperty(l,"PBXVariantGroup",{enumerable:!0,get:function(){return me.PBXVariantGroup}});var he=require_PBXTargetDependency();Object.defineProperty(l,"PBXTargetDependency",{enumerable:!0,get:function(){return he.PBXTargetDependency}});var ge=require_AbstractObject();Object.defineProperty(l,"AbstractObject",{enumerable:!0,get:function(){return ge.AbstractObject}});var _e=require_XCBuildConfiguration();Object.defineProperty(l,"XCBuildConfiguration",{enumerable:!0,get:function(){return _e.XCBuildConfiguration}});var ve=require_XCConfigurationList();Object.defineProperty(l,"XCConfigurationList",{enumerable:!0,get:function(){return ve.XCConfigurationList}});var ye=require_XCRemoteSwiftPackageReference();Object.defineProperty(l,"XCRemoteSwiftPackageReference",{enumerable:!0,get:function(){return ye.XCRemoteSwiftPackageReference}});var be=require_XCLocalSwiftPackageReference();Object.defineProperty(l,"XCLocalSwiftPackageReference",{enumerable:!0,get:function(){return be.XCLocalSwiftPackageReference}});var xe=require_XCSwiftPackageProductDependency();Object.defineProperty(l,"XCSwiftPackageProductDependency",{enumerable:!0,get:function(){return xe.XCSwiftPackageProductDependency}});var Se=require_XCVersionGroup();Object.defineProperty(l,"XCVersionGroup",{enumerable:!0,get:function(){return Se.XCVersionGroup}});var Ce=require_XCScheme();Object.defineProperty(l,"XCScheme",{enumerable:!0,get:function(){return Ce.XCScheme}}),Object.defineProperty(l,"createBuildableReference",{enumerable:!0,get:function(){return Ce.createBuildableReference}});var we=require_XCSharedData();Object.defineProperty(l,"XCSharedData",{enumerable:!0,get:function(){return we.XCSharedData}});var Te=require_XCWorkspace();Object.defineProperty(l,"XCWorkspace",{enumerable:!0,get:function(){return Te.XCWorkspace}});var Ee=require_IDEWorkspaceChecks();Object.defineProperty(l,"IDEWorkspaceChecks",{enumerable:!0,get:function(){return Ee.IDEWorkspaceChecks}})})),require_build=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__exportStar||function(l,f){for(var m in l)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&d(f,l,m)};Object.defineProperty(l,"__esModule",{value:!0}),f(require_api(),l)})),import_build=require_build();const COPYRIGHT_YEAR_REGEX=/(?:©|\(c\)|copyright)\s*(\d{4})/i,COPYRIGHT_HOLDER_REGEX=/(?:©|\(c\)|copyright)\s*\d{4}\s*(.+)/i,ALL_RIGHTS_RESERVED_REGEX=/\.\s*all\s+rights\s+reserved\.?/i,TRAILING_PUNCTUATION_REGEX=/[.,;]+$/,pbxprojDependencySchema=object({url:string$2()}),pbxprojSchema=object({copyrightHolder:nonEmptyString,copyrightYear:nonEmptyString,dependencies:array(pbxprojDependencySchema),identifier:nonEmptyString,name:nonEmptyString,operatingSystems:stringArray,organizationName:nonEmptyString,programmingLanguage:nonEmptyString,version:nonEmptyString}),XCODE_VARIABLE_RE=/\$[({][^)}]+[)}]/,SDKROOT_MAP={appletvos:`tvOS`,iphoneos:`iOS`,macosx:`macOS`,watchos:`watchOS`,xros:`visionOS`},DEPLOYMENT_TARGETS=[{key:`IPHONEOS_DEPLOYMENT_TARGET`,os:`iOS`},{key:`MACOSX_DEPLOYMENT_TARGET`,os:`macOS`},{key:`TVOS_DEPLOYMENT_TARGET`,os:`tvOS`},{key:`WATCHOS_DEPLOYMENT_TARGET`,os:`watchOS`},{key:`XROS_DEPLOYMENT_TARGET`,os:`visionOS`}];function parse(l){let d;try{d=import_build.XcodeProject.open(l)}catch{return}let f=d.rootObject,m=f.props.targets.find(l=>import_build.PBXNativeTarget.is(l)),te;try{te=f.getMainAppTarget()??void 0}catch{}te??=m;let re,ie;if(te)try{let l=te.getDefaultConfiguration();re=l;let d=l.props.buildSettings;ie=is.plainObject(d)?d:void 0}catch{}let ae;try{let l=(f.props.buildConfigurationList.props.buildConfigurations.find(l=>l.props.name===`Release`)??f.props.buildConfigurationList.getDefaultConfiguration()).props.buildSettings;ae=is.plainObject(l)?l:void 0}catch{}let oe=getSetting(ie,ae,`INFOPLIST_KEY_CFBundleDisplayName`),se=getResolvedSetting(re,ie,ae,`PRODUCT_NAME`),ce=te?cleanString(te.props.name):void 0,le=cleanString(f.props.attributes.ORGANIZATIONNAME),{copyrightHolder:ue,copyrightYear:de}=parseCopyrightString(getSetting(ie,ae,`INFOPLIST_KEY_NSHumanReadableCopyright`)),fe=getSetting(ie,ae,`SWIFT_VERSION`),pe;return fe?pe=`Swift`:getSetting(ie,ae,`GCC_C_LANGUAGE_STANDARD`)&&(pe=`Objective-C`),pbxprojSchema.parse({copyrightHolder:ue,copyrightYear:de,dependencies:parseDependencies(f),identifier:getResolvedSetting(re,ie,ae,`PRODUCT_BUNDLE_IDENTIFIER`),name:oe??se??ce,operatingSystems:parseOperatingSystems(ie,ae),organizationName:le,programmingLanguage:pe,version:getSetting(ie,ae,`MARKETING_VERSION`)})}function cleanString(l){if(typeof l==`number`)return String(l);if(typeof l!=`string`)return;let d=l.trim();if(d.length!==0&&!XCODE_VARIABLE_RE.test(d))return d}function getSetting(l,d,f){let m=cleanString(l?.[f]);return m===void 0?cleanString(d?.[f]):m}function getResolvedSetting(l,d,f,m){if(l)try{let d=cleanString(l.resolveBuildSetting(m));if(d!==void 0)return d}catch{}return getSetting(d,f,m)}function parseCopyrightString(l){if(!l)return{};let d=COPYRIGHT_YEAR_REGEX.exec(l)?.[1],f=COPYRIGHT_HOLDER_REGEX.exec(l),m;return f&&(m=f[1].replace(ALL_RIGHTS_RESERVED_REGEX,``).replace(TRAILING_PUNCTUATION_REGEX,``).trim(),m.length===0&&(m=void 0)),{copyrightHolder:m,copyrightYear:d}}function parseOperatingSystems(l,d){let f=[],m=new Set;for(let{key:te,os:re}of DEPLOYMENT_TARGETS){let ie=getSetting(l,d,te);if(ie){let l=`${re} >= ${ie}`;m.has(l)||(m.add(l),f.push(l))}}if(f.length===0){let m=getSetting(l,d,`SDKROOT`);if(m&&m!==`auto`){let l=SDKROOT_MAP[m];l&&f.push(l)}}return f}function parseDependencies(l){let d=l.props.packageReferences??[],f=[];for(let l of d){if(!import_build.XCRemoteSwiftPackageReference.is(l))continue;let d=cleanString(l.props.repositoryURL);d&&f.push({url:d})}return f}const xcodeProjectPbxprojSource=defineSource({async discover(l){return getMatches(l.options,[`*.xcodeproj/project.pbxproj`],[`**/*.xcodeproj/project.pbxproj`])},key:`xcodeProjectPbxproj`,async parse(l,d){let f=parse(resolve$1(d.options.path,l));if(f!==void 0)return{data:f,source:l}},phase:1});function toPersonOrOrgLd(l){let d=is.nonEmptyStringAndNotWhitespace(l.name),f=is.nonEmptyStringAndNotWhitespace(l.givenName),m=is.nonEmptyStringAndNotWhitespace(l.familyName),te=is.nonEmptyStringAndNotWhitespace(l.email);if(!d&&!f&&!m&&!te)return;let re={"@type":l.type??`Person`};return is.nonEmptyStringAndNotWhitespace(l.id)&&(re[`@id`]=l.id),d&&(re.name=l.name),f&&(re.givenName=l.givenName),m&&(re.familyName=l.familyName),te&&(re.email=l.email),is.nonEmptyStringAndNotWhitespace(l.url)&&(re.url=l.url),is.nonEmptyStringAndNotWhitespace(l.affiliation)&&(re.affiliation={"@type":`Organization`,name:l.affiliation}),re}function deduplicatePersonsOrOrgs(l){let d=new Map;for(let f of l){let l=(f.name??([f.givenName,f.familyName].filter(Boolean).join(` `)||void 0)??f.email??``).toLowerCase().trim();l.length>0&&!d.has(l)&&d.set(l,f)}let f=[...d.values()];return f.length>0?f:void 0}function toDependencyLd(l,d,f,m){let te={"@type":`SoftwareApplication`,name:l};return is.nonEmptyStringAndNotWhitespace(d)&&(te.version=d),is.nonEmptyStringAndNotWhitespace(f)&&(te.identifier=f),is.nonEmptyStringAndNotWhitespace(m)&&(te.runtimePlatform=m),te}function deduplicateDependencies(l){let d=new Map;for(let f of l){let l=f.name.toLowerCase().trim();l.length>0&&!d.has(l)&&d.set(l,f)}let f=[...d.values()];return f.length>0?f:void 0}function toSpdxLicenseUrl(l){return`https://spdx.org/licenses/${l.replace(`https://spdx.org/licenses/`,``).replace(`http://spdx.org/licenses/`,``)}`}const SEE_LICENSE_IN_REGEX=/^see license in /i;function isProprietaryLicenseSentinel(l){let d=l.trim();return d.toLowerCase()===`unlicensed`||SEE_LICENSE_IN_REGEX.test(d)}const PEP508_NAME_REGEX=/^[\w.-]+/,DATE_ONLY_REGEX=/^\d{4}-\d{2}-\d{2}$/,DATETIME_DATE_REGEX=/^(\d{4}-\d{2}-\d{2})T/,TRAILING_DOT_GIT_REGEX=/\.git$/,codemeta=defineTemplate(({arduinoLibraryProperties:l,cinderCinderblockXml:d,codemetaJson:f,codeStats:m,fileStats:te,github:re,gitStats:ie,goGoMod:ae,javaPomXml:oe,licenseFile:se,metascope:ce,nodeNpmRegistry:le,nodePackageJson:ue,obsidianPluginManifestJson:de,openframeworksAddonConfigMk:fe,openframeworksInstallXml:pe,processingLibraryProperties:me,publiccodeYaml:he,pythonPkgInfo:ge,pythonPypiRegistry:_e,pythonPyprojectToml:ve,pythonSetupCfg:ye,pythonSetupPy:be,readmeFile:xe,rubyGemspec:Se,rustCargoToml:Ce,xcodeInfoPlist:we})=>{let Te=firstOf(f),Ee=firstOf(re),De=firstOf(ie),Oe=firstOf(le),ke=firstOf(_e),Ae=firstOf(ue),je=firstOf(ve),Me=firstOf(be),Ne=firstOf(ye),Pe=firstOf(ge),Fe=firstOf(Ce),Ie=firstOf(Se),Le=firstOf(oe),Re=firstOf(ae),ze=firstOf(l),Be=firstOf(me),Ve=firstOf(fe),He=firstOf(pe),Ue=firstOf(d),We=firstOf(we),Ge=firstOf(de),Ke=firstOf(he),qe=firstOf(m),Je=firstOf(xe),Ye=firstOf(te),Xe=je?.data.tool?.poetry,Ze=Ae?.data.name??je?.data.project?.name??Xe?.name??Me?.data.name??Ne?.data.name??Pe?.data.name??Fe?.data.name??Ie?.data.name??Le?.data.name??Re?.data.module??ze?.data.name??Be?.data.name??Ve?.data.name??He?.data.name??Ue?.data.name??We?.data.name??Ge?.data.name??Ke?.data.name??Te?.data.name??Je?.data.name??Ye?.data.folderName,Qe=Ae?.data.description??je?.data.project?.description??Xe?.description??Me?.data.description??Ne?.data.description??Pe?.data.summary??Fe?.data.description??Ie?.data.summary??Le?.data.description??ze?.data.sentence??Be?.data.sentence??Ve?.data.description??He?.data.description??Ue?.data.summary??We?.data.description??Ge?.data.description??Ke?.data.description?.shortDescription??Te?.data.description??Ee?.data.description,$e=Ae?.data.version??je?.data.project?.version??Xe?.version??Me?.data.version??Ne?.data.version??Pe?.data.version??Fe?.data.version??Ie?.data.version??Le?.data.version??ze?.data.version??Be?.data.prettyVersion??He?.data.version??Ue?.data.version??We?.data.version??Ge?.data.version??Ke?.data.softwareVersion??Te?.data.version??Te?.data.softwareVersion,et=Le?.data.identifier??Ue?.data.id??Ge?.data.id??We?.data.identifier??Ae?.data.name??Te?.data.identifier,tt=[...Ae?.data.author?[toPersonOrOrgLd({email:Ae.data.author.email,name:Ae.data.author.name,url:Ae.data.author.url})]:[],...(je?.data.project?.authors??[]).map(l=>is.plainObject(l)?toPersonOrOrgLd({email:l.email,name:l.name}):toPersonOrOrgLd({name:l})),...Me?.data.author?[toPersonOrOrgLd({email:Me.data.author_email,name:Me.data.author})]:[],...Ne?.data.author?[toPersonOrOrgLd({email:Ne.data.author_email,name:Ne.data.author})]:[],...(Fe?.data.authors??[]).map(l=>toPersonOrOrgLd({email:l.email,name:l.name})),...gemspecAuthors(Ie),...(Le?.data.developers??[]).map(l=>toPersonOrOrgLd({affiliation:l.organization,email:l.email,name:l.name,url:l.url})),...(ze?.data.authors??[]).map(l=>toPersonOrOrgLd({email:l.email,name:l.name})),...(Be?.data.authors??[]).map(l=>toPersonOrOrgLd({name:l.name,url:l.url})),...Ve?.data.author?[toPersonOrOrgLd({name:Ve.data.author})]:[],...He?.data.author?[toPersonOrOrgLd({name:He.data.author})]:[],...(Ue?.data.author??[]).map(l=>toPersonOrOrgLd({name:l})),...We?.data.author?[toPersonOrOrgLd({email:We.data.authorEmail,name:We.data.author})]:[],...Ge?.data.author?[toPersonOrOrgLd({name:Ge.data.author,url:Ge.data.authorUrl})]:[],...(Ke?.data.contacts??[]).map(l=>toPersonOrOrgLd({affiliation:l.affiliation,email:l.email,name:l.name}))],nt=Te?.data.author?.map(l=>toPersonOrOrgLd({affiliation:l.affiliation,email:l.email,familyName:l.familyName,givenName:l.givenName,id:l.id,name:l.name,type:l.type,url:l.url})),rt=resolvePersonsOrOrgs(tt,nt),it=[...collectArrayField(ue,l=>l.contributors?.map(l=>is.plainObject(l)?toPersonOrOrgLd({email:l.email,name:l.name,url:l.url}):toPersonOrOrgLd({name:l}))),...(Le?.data.contributors??[]).map(l=>toPersonOrOrgLd({affiliation:l.organization,email:l.email,name:l.name,url:l.url}))],at=Te?.data.contributor?.map(l=>toPersonOrOrgLd({affiliation:l.affiliation,email:l.email,familyName:l.familyName,givenName:l.givenName,id:l.id,name:l.name,type:l.type,url:l.url})),ot=resolvePersonsOrOrgs(it,at),st=[...collectArrayField(ue,l=>l.maintainers?.map(l=>is.plainObject(l)?toPersonOrOrgLd({email:l.email,name:l.name,url:l.url}):toPersonOrOrgLd({name:l}))),...(je?.data.project?.maintainers??[]).map(l=>is.plainObject(l)?toPersonOrOrgLd({email:l.email,name:l.name}):toPersonOrOrgLd({name:l})),...Me?.data.maintainer?[toPersonOrOrgLd({email:Me.data.maintainer_email,name:Me.data.maintainer})]:[],...Ne?.data.maintainer?[toPersonOrOrgLd({email:Ne.data.maintainer_email,name:Ne.data.maintainer})]:[],...Pe?.data.maintainer?[toPersonOrOrgLd({email:Pe.data.maintainer_email,name:Pe.data.maintainer})]:[],...ze?.data.maintainer?[toPersonOrOrgLd({email:ze.data.maintainer.email,name:ze.data.maintainer.name})]:[]],ct=Te?.data.maintainer?.map(l=>toPersonOrOrgLd({affiliation:l.affiliation,email:l.email,familyName:l.familyName,givenName:l.givenName,id:l.id,name:l.name,type:l.type,url:l.url})),lt=resolvePersonsOrOrgs(st,ct),ut=[...Ke?.data.mainCopyrightOwner?[toPersonOrOrgLd({name:Ke.data.mainCopyrightOwner})]:[],...We?.data.copyrightHolder?[toPersonOrOrgLd({name:We.data.copyrightHolder})]:[]],dt=Te?.data.copyrightHolder?.map(l=>toPersonOrOrgLd({affiliation:l.affiliation,email:l.email,familyName:l.familyName,givenName:l.givenName,id:l.id,name:l.name,type:l.type,url:l.url})),ft=resolvePersonsOrOrgs(ut,dt),pt=resolvePersonsOrOrgs([],Te?.data.funder?.map(l=>toPersonOrOrgLd({affiliation:l.affiliation,email:l.email,familyName:l.familyName,givenName:l.givenName,id:l.id,name:l.name,type:l.type,url:l.url}))),mt=Ee?.data.url??Fe?.data.repository??Le?.data.scmUrl??Re?.data.repository_url??Ke?.data.url??ze?.data.repository??Ue?.data.git??Te?.data.codeRepository??repositoryUrlFromPackageJson(Ae?.data.repository)??caseInsensitiveLookup(je?.data.project?.urls,`repository`)??Xe?.repository,ht=nonEmpty$5([...Ee?.data.primaryLanguage?[Ee.data.primaryLanguage]:[],...Te?.data.programmingLanguage??[]])??nonEmpty$5(Object.keys(Ee?.data.languages??{}))??qe?.data.total?.languages.slice(0,1),gt=nonEmpty$5([...Object.keys(Ae?.data.engines??{}),...Re?.data.go_version?[`go ${Re.data.go_version}`]:[],...Fe?.data.rustVersion?[`rust ${Fe.data.rustVersion}`]:[],...je?.data.project?.requiresPython?[`python ${je.data.project.requiresPython}`]:[],...Me?.data.python_requires?[`python ${Me.data.python_requires}`]:[],...Ie?.data.required_ruby_version?[`ruby ${Ie.data.required_ruby_version}`]:[],...Le?.data.javaVersion?[`java ${Le.data.javaVersion}`]:[],...Te?.data.runtimePlatform??[]]),_t=nonEmpty$5([...Te?.data.operatingSystem??[],...Ke?.data.platforms??[],...He?.data.operatingSystems??[],...Ue?.data.supports??[],...We?.data.operatingSystems??[]]),vt=Te?.data.applicationCategory??We?.data.applicationCategory??ze?.data.category??Ke?.data.softwareType,yt=Te?.data.applicationSubCategory,bt=collectRuntimeDeps({arduino:ze,cargo:Fe,cinder:Ue,gem:Ie,goGoMod:ae,javaPomXml:oe,nodePackageJson:ue,ofAddon:Ve,ofInstall:He,pkgInfo:Pe,publiccode:Ke,pyproject:je,rubyGemspec:Se,setupCfg:Ne,setupPy:Me}),xt=bt.length>0?deduplicateDependencies(bt):Te?.data.softwareRequirements?.map(l=>toDependencyLd(l.name??l.identifier??``,l.version,l.identifier,l.runtimePlatform)),St=collectDevelopmentDeps({cargo:Fe,gem:Ie,javaPomXml:oe,nodePackageJson:ue,rubyGemspec:Se}),Ct=St.length>0?deduplicateDependencies(St):Te?.data.softwareSuggestions?.map(l=>toDependencyLd(l.name??l.identifier??``,l.version,l.identifier,l.runtimePlatform)),wt=De?.data.commitDateFirst??Ee?.data.createdAt??Te?.data.dateCreated,Tt=De?.data.commitDateLast??Ee?.data.pushedAt??Te?.data.dateModified,Et=Oe?.data.publishDateLatest??ke?.data.publishDateLatest??Ke?.data.releaseDate??Ee?.data.releaseDateLatest??De?.data.tagVersionDateLatest??Te?.data.datePublished,Dt=We?.data.copyrightYear??Le?.data.inceptionYear??(Te?.data.copyrightYear===void 0?void 0:String(Te.data.copyrightYear)),Ot=Ae?.data.license??Fe?.data.license??resolvePythonLicense(je?.data.project?.license)??Me?.data.license??Ne?.data.license??Ie?.data.license??firstPomLicense(Le)??ze?.data.license??Ue?.data.license??Ke?.data.license??Ee?.data.licenseSpdxId??collectField(se,l=>l.match?.spdxId)[0]??resolveCmLicense(Te?.data.license),kt=is.nonEmptyStringAndNotWhitespace(Ot)?isProprietaryLicenseSentinel(Ot)?Ot:toSpdxLicenseUrl(Ot):void 0,At=Te?.data.isAccessibleForFree??(Ee?.data.isPrivate===!1?!0:void 0),jt=nonEmpty$5(deduplicateStrings([...Ae?.data.keywords??[],...je?.data.project?.keywords??[],...Xe?.keywords??[],...Me?.data.keywords??[],...Ne?.data.keywords??[],...Pe?.data.keywords??[],...Fe?.data.keywords??[],...Ve?.data.tags??[],...Ke?.data.categories??[],...Ee?.data.topics??[],...Te?.data.keywords??[]])),Mt=stripReadmeFragment(Ae?.data.homepage)??caseInsensitiveLookup(je?.data.project?.urls,`homepage`)??Xe?.homepage??Fe?.data.homepage??Me?.data.url??Ne?.data.url??Pe?.data.home_page??Ie?.data.homepage??Le?.data.url??ze?.data.url??Be?.data.url??Ve?.data.url??He?.data.siteUrl??Ue?.data.url??We?.data.url??Ke?.data.landingUrl??Ee?.data.homepageUrl??Te?.data.url??caseInsensitiveLookup(je?.data.project?.urls,`repository`)??Xe?.repository,Nt=He?.data.downloadUrl??Be?.data.download??Oe?.data.url??ke?.data.url??Te?.data.downloadUrl,Pt=bugsUrlFromPackageJson(Ae?.data.bugs)??Le?.data.issueManagementUrl??Te?.data.issueTracker??(Ee?.data.hasIssuesEnabled?`${Ee.data.url}/issues`:void 0),Ft=Le?.data.ciManagementUrl??Te?.data.continuousIntegration,It=Fe?.data.documentation??Te?.data.softwareHelp,Lt=Ke?.data.developmentStatus??Te?.data.developmentStatus,Rt=Te?.data.funding,zt=Te?.data.buildInstructions,Bt=readmeUrl(firstOf(xe),mt,Ee?.data.defaultBranch??De?.data.branchCurrent,firstOf(ce)?.data.options.path)??Te?.data.readme,Vt=Te?.data.releaseNotes,Ht=Te?.data.installUrl,Ut=Te?.data.relatedLink;return stripUndefined({"@context":`https://w3id.org/codemeta/3.0`,"@type":`SoftwareSourceCode`,applicationCategory:vt,applicationSubCategory:yt,author:rt,buildInstructions:zt,codeRepository:mt,continuousIntegration:Ft,contributor:ot,copyrightHolder:ft,copyrightYear:is.nonEmptyStringAndNotWhitespace(Dt)&&Number.parseInt(Dt,10)||void 0,dateCreated:toDateOnly(wt),dateModified:toDateOnly(Tt),datePublished:toDateOnly(Et),description:Qe,developmentStatus:Lt,downloadUrl:Nt,funder:pt,funding:Rt,identifier:et,installUrl:Ht,isAccessibleForFree:At,issueTracker:Pt,keywords:jt,license:kt,maintainer:lt,name:Ze,operatingSystem:_t,programmingLanguage:ht,readme:Bt,relatedLink:Ut,releaseNotes:Vt,runtimePlatform:gt,softwareHelp:It,softwareRequirements:xt,softwareSuggestions:Ct,targetProduct:void 0,url:Mt,version:$e})});function gemspecAuthors(l){if(l===void 0)return[];let d=l.data.email===void 0?[]:Array.isArray(l.data.email)?l.data.email:[l.data.email];return l.data.authors.map((l,f)=>toPersonOrOrgLd({email:d[f],name:l}))}function resolvePersonsOrOrgs(l,d){let f=l.filter(l=>l!==void 0);return f.length>0?deduplicatePersonsOrOrgs(f):deduplicatePersonsOrOrgs((d??[]).filter(l=>l!==void 0))}function collectRuntimeDeps(l){let d=[];return d.push(...collectArrayField(l.nodePackageJson,l=>objectEntriesToDeps(l.dependencies))),d.push(...(l.pyproject?.data.project?.dependencies??[]).map(l=>parsePep508Dep(l))),d.push(...(l.setupPy?.data.install_requires??[]).map(l=>parsePep508Dep(l))),d.push(...(l.setupCfg?.data.install_requires??[]).map(l=>parsePep508Dep(l))),d.push(...(l.pkgInfo?.data.requires_dist??[]).map(l=>parsePep508Dep(l))),d.push(...(l.cargo?.data.dependencies??[]).map(l=>toDependencyLd(l.name,l.version))),d.push(...collectArrayField(l.rubyGemspec,l=>l.dependencies.filter(l=>l.type===`runtime`).map(l=>toDependencyLd(l.name,l.requirements.join(`, `))))),d.push(...collectArrayField(l.javaPomXml,l=>l.dependencies.map(l=>toDependencyLd(l.artifactId,l.version,`${l.groupId}:${l.artifactId}`)))),d.push(...collectArrayField(l.goGoMod,l=>l.dependencies.map(l=>toDependencyLd(l.module,l.version)))),d.push(...(l.arduino?.data.depends??[]).map(l=>toDependencyLd(l.name,l.versionConstraint))),d.push(...(l.ofAddon?.data.dependencies??[]).map(l=>toDependencyLd(l))),d.push(...(l.ofInstall?.data.requirements??[]).map(l=>toDependencyLd(l))),d.push(...(l.cinder?.data.requires??[]).map(l=>toDependencyLd(l))),d.push(...(l.publiccode?.data.dependencies??[]).map(l=>toDependencyLd(l.name,l.version))),d}function collectDevelopmentDeps(l){let d=[];return d.push(...collectArrayField(l.nodePackageJson,l=>objectEntriesToDeps(l.devDependencies))),d.push(...(l.cargo?.data.devDependencies??[]).map(l=>toDependencyLd(l.name,l.version))),d.push(...collectArrayField(l.rubyGemspec,l=>l.dependencies.filter(l=>l.type===`development`).map(l=>toDependencyLd(l.name,l.requirements.join(`, `))))),d.push(...collectArrayField(l.javaPomXml,l=>l.devDependencies.map(l=>toDependencyLd(l.artifactId,l.version,`${l.groupId}:${l.artifactId}`)))),d}function objectEntriesToDeps(l){if(l!==void 0)return Object.entries(l).map(([l,d])=>toDependencyLd(l,d))}function parsePep508Dep(l){let d=l.trim(),f=PEP508_NAME_REGEX.exec(d);if(f){let l=d.slice(f[0].length).trim();return toDependencyLd(f[0],l.length>0?l:void 0)}return toDependencyLd(d)}function repositoryUrlFromPackageJson(l){if(l!==void 0)return typeof l==`string`?l:l.url}function bugsUrlFromPackageJson(l){if(l!==void 0)return l.url}function firstPomLicense(l){let d=l?.data.licenses[0];return d?.name??d?.url}function resolvePythonLicense(l){if(l!==void 0)return typeof l==`string`?l:l.spdx??l.text}function resolveCmLicense(l){if(l!==void 0)return Array.isArray(l)?l[0]:l}function deduplicateStrings(l){let d=new Map;for(let f of l){let l=f.toLowerCase().trim();l.length>0&&!d.has(l)&&d.set(l,f)}return[...d.values()]}function caseInsensitiveLookup(l,d){if(l===void 0)return;let f=d.toLowerCase();for(let[d,m]of Object.entries(l))if(d.toLowerCase()===f)return m}function stripReadmeFragment(l){if(l!==void 0)return l.endsWith(`#readme`)?l.slice(0,-7):l}function toDateOnly(l){if(l===void 0)return;if(DATE_ONLY_REGEX.test(l))return l;let d=DATETIME_DATE_REGEX.exec(l);return d?d[1]:l}function readmeUrl(l,d,f,m){if(l===void 0)return;let te=m===void 0?basename$1(l.source):relative$1(m,l.source).replaceAll(`\\`,`/`);if(is.nonEmptyStringAndNotWhitespace(d)&&d.includes(`github.com`)){let l=f??`main`;return`${d.replace(TRAILING_DOT_GIT_REGEX,``)}/blob/${l}/${te}`}return te}const codemetaJson=defineTemplate((l,d)=>{let f=codemeta(l,d);return codeMetaJsonDataSchema.parse(f)}),frontmatter=defineTemplate((l,d)=>{let f=codemetaJson(l,d),m=firstOf(l.codeStats)?.data,te=firstOf(l.dependencyUpdates),re=firstOf(l.fileStats)?.data,ie=firstOf(l.cinderCinderblockXml)?.data,ae=firstOf(l.github)?.data,{githubActions:oe}=l,se=firstOf(l.gitStats)?.data,ce=l.metascope?.data,le=firstOf(l.nodeNpmRegistry)?.data,ue=firstOf(l.obsidianPluginManifestJson)?.data,de=firstOf(l.obsidianPluginRegistry)?.data,fe=firstOf(l.pythonPypiRegistry)?.data,pe=mixedStringsToArray(f.programmingLanguage??ae?.primaryLanguage,REPLACEMENTS)??null,me=mixedStringsToArray(m?.total?.languages,REPLACEMENTS)?.filter(l=>!pe?.includes(l))??null,he=f.name===`undefined`?null:ie===void 0?f.name:`Cinder ${f.name}`,ge=f.identifier??he,_e=is.nonEmptyString(he)?toAlias(he):void 0,ve=ge===_e?void 0:ge,ye=ensureArray(oe).find(l=>l.data.name.toLowerCase()===`ci`)?.data,be=ye?.lastRunConclusion,xe=ye?.lastRunUrl;return{Name:_e??null,ID:ge??null,Description:f.description??null,Author:mixedStringsToArray(toBasicNames(f.author))??null,Contributor:mixedStringsToArray(toBasicNames(f.contributor))??null,Maintainer:mixedStringsToArray(toBasicNames(f.maintainer))??null,Version:f.version??null,Account:ae?.ownerLogin??null,Public:ae===void 0?!1:!ae.isPrivate,Fork:ae?.isFork??!1,Published:!!(de?.url??le?.url??fe?.url),Status:toStatus(f.codeRepository,f.author,[...f.contributor??[],...f.maintainer??[]],ae?.isFork??!1,d.authorName,d.githubAccount),Tags:f.keywords??null,Aliases:nonEmpty$5([ve])??null,License:toBasicLicenses(f.license)??null,Language:pe,"Secondary Language":me,"Repo Path":ce?.options.path===void 0?null:`file://${ce.options.path}`,"VS Code Path":ce?.options.path===void 0?null:`vscode://file/${ce.options.path}`,"Readme Path":toLocalUrl(f.readme,ce?.options.path)??null,"Homepage URL":f.url!==void 0&&!f.url.startsWith(`https://github.com/`)?f.url:null,"Repo URL":f.codeRepository??ae?.url??null,"Issues URL":f.issueTracker??null,"Readme URL":f.readme!==void 0&&isValidUrl(f.readme)?f.readme:null,"Package URL":de?.url??le?.url??fe?.url??null,Created:f.dateCreated??null,"First Commit Date":se?.commitDateFirst??null,"Latest Commit Date":se?.commitDateLast??null,"Latest Push Date":ae?.pushedAt??null,"Latest Release Date":ae?.releaseDateLatest??le?.publishDateLatest??fe?.publishDateLatest??se?.tagVersionDateLatest??null,"Latest Release Version":ue?.version??le?.versionLatest??fe?.versionLatest??ae?.releaseVersionLatest??se?.tagVersionLatest??null,Stars:ae?.stargazerCount??null,Watchers:ae?.watcherCount??null,Contributors:ae?.contributorCount??se?.contributorCount??null,Forks:ae?.forkCount??null,"Downloads Total":le?.downloadsTotal??de?.downloadCount??fe?.downloads180Days??ae?.releaseDownloadCount??null,"Downloads Monthly":le?.downloadsMonthly??fe?.downloadsMonthly??null,CI:be?titleCase(be):null,"CI URL":xe??null,Releases:ae?.releaseCount??se?.tagReleaseCount??null,"Issues Open":ae?.issueCountOpen??null,"Issues Closed":ae?.issueCountClosed??null,"PRs Open":ae?.pullRequestCountOpen??null,"PRs Merged":ae?.pullRequestCountMerged??null,"PRs Closed":ae?.pullRequestCountClosed??null,"Vulnerability Alerts":ae?.vulnerabilityAlertCount??null,"Lines of Code":m?.total?.code??null,"Total Files":re?.totalFileCount??null,"Total Size MB":toMb(re?.totalSizeBytes)??null,"Tracked Files":se?.trackedFileCount??null,"Tracked Size MB":toMb(se?.trackedSizeBytes)??null,"GitHub Size MB":toMb(ae?.diskUsageBytes)??null,Dependencies:dependencyNames(f,`prod`)??null,"Dev Dependencies":dependencyNames(f,`dev`)??null,"Major Updates":te?.data.major?.length??0,"Minor Updates":te?.data.minor?.length??0,"Patch Updates":te?.data.patch?.length??0,"Total Updates":te?.extra?.total??0,Libyears:te?.extra?.libyears??0,Runtime:f.runtimePlatform??null,"Operating System":f.operatingSystem??null,"Forked From":ae?.forkedFrom??null,"Fork Ahead":ae?.commitsAheadUpstream??null,"Fork Behind":ae?.commitsBehindUpstream??null,"Template From":ae?.templateFrom??null,Organization:ae?.isInOrganization??!1,Monorepo:ce?.workspaceDirectories===void 0?!1:ce.workspaceDirectories.length>0,"Git Commits":se?.commitCount??null,"Git Dirty Files":se?.uncommittedFileCount??null,"Git Remotes Ahead":se?.totalAhead??null,"Git Remotes Behind":se?.totalBehind??null,"Git LFS":se?.hasLfs??ae?.hasLfs??!1,"Git Tags":se?.tagCount??null,"Git Current Branch":se?.branchCurrent??null,"Git Branches":se?.branchCount??null,"Git Remotes":se?.remoteCount??null,"Git Submodules":se?.submoduleCount??0}});function normalizeGitUrl(l){if(l===void 0)return;let d=l;return d.startsWith(`git+`)&&(d=d.slice(4)),d.endsWith(`.git`)&&(d=d.slice(0,-4)),d}const metadata=defineTemplate((l,d)=>{let f=codemetaJson(l,d),m=firstOf(l.metadataFile)?.data,te=m?.homepage??f.url??f.codeRepository;return{description:m?.description??f.description,homepage:normalizeGitUrl(te),topics:m?.keywords??f.keywords}}),project=defineTemplate((l,d)=>{let f=codemetaJson(l,d),m=firstOf(l.dependencyUpdates),te=firstOf(l.github)?.data,re=firstOf(l.gitStats)?.data,ie=l.metascope?.data,ae=firstOf(l.nodeNpmRegistry)?.data,oe=firstOf(l.nodePackageJson);return{description:f.description,firstCommitDate:re?.commitDateFirst,gitHubLink:te?.url,gitHubStarCount:te?.stargazerCount,gitIsClean:re?.isClean,gitIsDirty:re?.isDirty,gitRemoteCount:re?.remoteCount,homepage:te?.homepageUrl??f.url??te?.url,isAuthoredByMe:isAuthoredBy(f.author,d.authorName),isOnMyGitHub:isOnGithubAccountOf(f.codeRepository,d.githubAccount),isOnNpm:ae?.url!==void 0,isPublic:te===void 0?!1:!te.isPrivate,isRemoteAhead:re?.isRemoteAhead,issueCount:te?.issueCountOpen,lastCommitDate:re?.commitDateLast,license:toBasicLicenses(f.license??te?.licenseSpdxId)?.at(0),majorUpdateCount:m?.data.major?.length??0,majorUpdateList:m?.data.major?.map(l=>l.name),npmDownloadCount:ae?.downloadsTotal,readmePath:toLocalUrl(f.readme,ie?.options.path),repositoryPath:ie?.options.path===void 0?void 0:`file://${ie.options.path}`,semverUpdateCount:void 0,semverUpdateList:void 0,tags:f.keywords,title:f.name,type:toStatusLegacy(f.codeRepository,f.author,d.authorName,d.githubAccount),usesPnpm:usesPnpm(oe),usesSharedConfig:hasDependencyWithId(`@kitschpatrol/shared-config`,f),version:f.version}}),templates={codemeta,codemetaJson,frontmatter,metadata,project};function isKeyOfTemplate(l){return typeof l==`string`&&l in templates}const execFileAsync=promisify(execFile),sources=[arduinoLibraryPropertiesSource,cinderCinderblockXmlSource,codemetaJsonSource,gitConfigSource,goGoModSource,goGoreleaserYamlSource,javaPomXmlSource,licenseFileSource,metadataFileSource,metascopeSource,nodePackageJsonSource,obsidianPluginManifestJsonSource,openframeworksAddonConfigMkSource,openframeworksInstallXmlSource,processingLibraryPropertiesSource,processingSketchPropertiesSource,publiccodeYamlSource,pythonPkgInfoSource,pythonPyprojectTomlSource,pythonSetupCfgSource,pythonSetupPySource,readmeFileSource,rubyGemspecSource,rustCargoTomlSource,xcodeInfoPlistSource,xcodeProjectPbxprojSource,githubActionsSource,codeStatsSource,dependencyUpdatesSource,fileStatsSource,gitStatsSource,githubSource,nodeNpmRegistrySource,obsidianPluginRegistrySource,pythonPypiRegistrySource],sourceNames=sources.map(l=>l.key);async function resolveCredentials(l){if(l?.githubToken)return l;let d=process.env.GITHUB_TOKEN;if(d)return{...l,githubToken:d};try{let{stdout:d}=await execFileAsync(`gh`,[`auth`,`token`]),f=d.trim();if(f)return{...l,githubToken:f}}catch{}return l??{}}function resolveTemplate(l){if(l!==void 0){if(typeof l==`function`)return l;if(isKeyOfTemplate(l))return templates[l];log$2.warn(`Unknown template: "${l}". Using default (all fields).`)}}async function runSources(l,d,f){let m=await Promise.all(l.map(async l=>{try{let f=performance.now(),m=await l.extract(d),te=Math.round(performance.now()-f);return log$2.debug(`Source "${l.key}" extracted in ${te}ms`),{data:m,key:l.key}}catch(d){return log$2.warn(`Source "${l.key}" extraction failed: ${d instanceof Error?d.message:String(d)}`),{data:void 0,key:l.key}}}));for(let l of m)l.data!==void 0&&Object.assign(f,{[l.key]:l.data})}async function getMetadata(l){let d=performance.now(),f=defu(l??{},DEFAULT_GET_METADATA_OPTIONS),m=resolve$1(f.path),te;try{te=await realpath$1(m)}catch{throw Error(`Path does not exist: ${m}`)}if(!(await stat$1(te)).isDirectory())throw Error(`Path is not a directory: ${te}`);f.path=te;let re=resolveTemplate(f.template);resetMatchCache(),log$2.debug(`Building file tree (respectIgnored: ${f.respectIgnored})...`);let[ie,ae]=await Promise.all([resolveCredentials(f.credentials),getTree(te,f.respectIgnored)]);log$2.debug(`Root file tree contains ${ae.length} entries`);let oe={arduinoLibraryProperties:void 0,cinderCinderblockXml:void 0,codemetaJson:void 0,codeStats:void 0,dependencyUpdates:void 0,fileStats:void 0,gitConfig:void 0,github:void 0,githubActions:void 0,gitStats:void 0,goGoMod:void 0,goGoreleaserYaml:void 0,javaPomXml:void 0,licenseFile:void 0,metadataFile:void 0,metascope:void 0,nodeNpmRegistry:void 0,nodePackageJson:void 0,obsidianPluginManifestJson:void 0,obsidianPluginRegistry:void 0,openframeworksAddonConfigMk:void 0,openframeworksInstallXml:void 0,processingLibraryProperties:void 0,processingSketchProperties:void 0,publiccodeYaml:void 0,pythonPkgInfo:void 0,pythonPypiRegistry:void 0,pythonPyprojectToml:void 0,pythonSetupCfg:void 0,pythonSetupPy:void 0,readmeFile:void 0,rubyGemspec:void 0,rustCargoToml:void 0,xcodeInfoPlist:void 0,xcodeProjectPbxproj:void 0},se=f.sources?sources.filter(l=>f.sources.includes(l.key)):sources,ce=new Set,le=new Set(se.map(l=>l.phase));for(let l of[...le].toSorted((l,d)=>l-d)){let d=se.filter(d=>d.phase===l);log$2.debug(`Phase ${l}: Running ${d.length} sources...`),await runSources(d,{completedSources:ce,metadata:{...oe},options:{...f,credentials:ie,path:te}},oe);for(let l of d)ce.add(l.key)}let ue=performance.now()-d;if(oe.metascope&&(oe.metascope.data.durationMs=Math.round(ue)),log$2.debug(`Metadata duration: ${prettyMilliseconds(ue)}`),re){let l=performance.now(),m=stripUndefined(re(oe,f.templateData??{}))??{},te=performance.now()-l;return log$2.debug(`Template duration: ${prettyMilliseconds(te)}`),log$2.debug(`Total duration: ${prettyMilliseconds(performance.now()-d)}`),m}let de=stripUndefined(oe);return log$2.debug(`Total duration: ${prettyMilliseconds(performance.now()-d)}`),de}const cliCommandName=Object.keys(bin).at(0),builtInTemplateNames=Object.keys(templates),yargsInstance=Yargs(hideBin(process.argv)),kebabToCamelSource=new Map(sourceNames.map(l=>[kebabCase(l),l])),kebabSourceNames=[...kebabToCamelSource.keys()];function resolveSourceArg(l){return sourceNames.includes(l)?l:kebabToCamelSource.get(l)}await yargsInstance.scriptName(cliCommandName).command(`$0 [path]`,`Extract metadata from a code repository.`,l=>l.positional(`path`,{default:DEFAULT_GET_METADATA_OPTIONS.path,description:`Project directory path`,type:`string`}).option(`template`,{alias:`t`,description:`Built-in template name (${builtInTemplateNames.map(l=>`\`${l}\``).join(`, `)}) or path to a custom template file`,type:`string`}).option(`github-token`,{description:"GitHub API token (or set `$GITHUB_TOKEN`)",type:`string`}).option(`author-name`,{description:`Optional author name(s) for ownership checks in templates`,type:`string`,array:!0}).option(`github-account`,{description:`Optional GitHub account name(s) for ownership checks in templates`,type:`string`,array:!0}).option(`absolute`,{description:"Output absolute paths. Use `--no-absolute` for relative paths.",type:`boolean`,default:DEFAULT_GET_METADATA_OPTIONS.absolute}).option(`offline`,{description:`Skip sources requiring network requests`,type:`boolean`,default:DEFAULT_GET_METADATA_OPTIONS.offline}).option(`sources`,{alias:`s`,array:!0,coerce:l=>l.map(l=>resolveSourceArg(l)??l),description:`Only run specific metadata sources (${kebabSourceNames.map(l=>`\`${l}\``).join(`, `)}); defaults to all`,type:`string`}).check(l=>{let d=l.sources?.filter(l=>!sourceNames.includes(l));if(d&&d.length>0)throw Error(`Invalid source(s): ${d.join(`, `)}. Valid sources: ${kebabSourceNames.join(`, `)}`);return!0}).option(`no-ignore`,{description:`Include files ignored by .gitignore in the file tree`,type:`boolean`,default:!DEFAULT_GET_METADATA_OPTIONS.respectIgnored}).option(`recursive`,{alias:`r`,description:`Search for metadata files recursively in subdirectories`,type:`boolean`,default:DEFAULT_GET_METADATA_OPTIONS.recursive}).option(`workspaces`,{alias:`w`,coerce:l=>{if(l===!0||l===!1)return l;let d=(Array.isArray(l)?l:[l]).filter(l=>typeof l==`string`);return d.length>0?d:!0},default:DEFAULT_GET_METADATA_OPTIONS.workspaces,description:"Include workspace-specific metadata in monorepos; pass a `boolean` to enable or disable auto-detection, or pass one or more `string`s to explicitly define workspace paths"}).option(`verbose`,{description:`Run with verbose logging`,type:`boolean`,default:!1}),async l=>{let d=createLogger$3({name,verbose:l.verbose??!1,logToConsole:{showTime:!1}});setLogger$1(d),setLogger(getChildLogger(d,`read-pyproject`)),d.debug(`Starting metadata extraction...`);let f;if(l.template)if(isKeyOfTemplate(l.template))f=templates[l.template];else try{let{createJiti:m}=await import(`./jiti-Bqwg645p.js`),te=await m(import.meta.url).import(l.template);if(typeof te==`object`&&te&&`default`in te&&typeof te.default==`function`){let l=te.default;f=(d,f)=>l(d,f)}if(typeof f!=`function`){d.error(`Template file must export a function as default export. Use defineTemplate().`),process.exitCode=1;return}}catch(l){d.error(`Failed to load template: ${l instanceof Error?l.message:String(l)}`),process.exitCode=1;return}try{let d=l.githubToken?{githubToken:l.githubToken}:void 0,m={...l.authorName?{authorName:l.authorName}:{},...l.githubAccount?{githubAccount:l.githubAccount}:{}},te={absolute:l.absolute,credentials:d,offline:l.offline,path:l.path,recursive:l.recursive,respectIgnored:l.noIgnore?!1:void 0,sources:l.sources,templateData:m,workspaces:l.workspaces},re=f?await getMetadata({...te,template:f}):await getMetadata(te),ie=process.stdout.isTTY?JSON.stringify(re,void 0,2):JSON.stringify(re);process.stdout.write(ie+`
45960
+ `}l.build=d;function f(l,d){let f=te(d);return[`${f}<FileRef\n${f} location = "${re(l.location)}">\n${f}</FileRef>`]}function m(l,d){let ie=[],ae=te(d),oe=[];l.location!==void 0&&oe.push(`location = "${re(l.location)}"`),l.name!==void 0&&oe.push(`name = "${re(l.name)}"`),ie.push(`${ae}<Group`);for(let l of oe)ie.push(`${ae} ${l}`);if(ie[ie.length-1]+=`>`,l.fileRefs)for(let m of l.fileRefs)ie.push(...f(m,d+1));if(l.groups)for(let f of l.groups)ie.push(...m(f,d+1));return ie.push(`${ae}</Group>`),ie}function te(l){return` `.repeat(l)}function re(l){return l.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`)}})),require_checks=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.buildChecks=l.parseChecks=void 0;let f=d(require_build$1());function m(l){let d=f.default.parse(l),m={};for(let[l,f]of Object.entries(d))typeof f==`boolean`&&(m[l]=f);return m}l.parseChecks=m;function te(l){let d={};for(let[f,m]of Object.entries(l))typeof m==`boolean`&&(d[f]=m);return f.default.build(d)}l.buildChecks=te})),require_types=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0})})),require_workspace=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__exportStar||function(l,f){for(var m in l)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&d(f,l,m)};Object.defineProperty(l,"__esModule",{value:!0}),l.buildChecks=l.parseChecks=l.build=l.parse=void 0;var m=require_parser();Object.defineProperty(l,"parse",{enumerable:!0,get:function(){return m.parse}});var te=require_writer();Object.defineProperty(l,"build",{enumerable:!0,get:function(){return te.build}});var re=require_checks();Object.defineProperty(l,"parseChecks",{enumerable:!0,get:function(){return re.parseChecks}}),Object.defineProperty(l,"buildChecks",{enumerable:!0,get:function(){return re.buildChecks}}),f(require_types(),l)})),require_IDEWorkspaceChecks=__commonJSMin((l=>{var d=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.IDEWorkspaceChecks=void 0;let f=__require$1(`fs`),m=d(__require$1(`path`)),te=require_checks(),re=`xcshareddata/IDEWorkspaceChecks.plist`;l.IDEWorkspaceChecks=class l{constructor(l,d){this.props=l,this.filePath=d}static open(d){let ie=m.default.join(d,re);if(!(0,f.existsSync)(ie))return null;let ae=(0,f.readFileSync)(ie,`utf-8`);return new l((0,te.parseChecks)(ae),ie)}static openOrCreate(d){return l.open(d)||new l({IDEDidComputeMac32BitWarning:!0},m.default.join(d,re))}static create(d){return new l({IDEDidComputeMac32BitWarning:!0,...d?.props},d?.filePath)}save(l){let d=l??this.filePath;if(!d)throw Error(`No file path specified. Either provide a path or set this.filePath.`);let re=m.default.dirname(d);(0,f.existsSync)(re)||(0,f.mkdirSync)(re,{recursive:!0});let ie=(0,te.buildChecks)(this.props);(0,f.writeFileSync)(d,ie,`utf-8`),this.filePath=d}saveToWorkspace(l){let d=m.default.join(l,re);this.save(d)}toPlist(){return(0,te.buildChecks)(this.props)}get mac32BitWarningComputed(){return this.props.IDEDidComputeMac32BitWarning??!1}set mac32BitWarningComputed(l){this.props.IDEDidComputeMac32BitWarning=l}getCheck(l){return this.props[l]}setCheck(l,d){this.props[l]=d}removeCheck(l){return l in this.props?(delete this.props[l],!0):!1}}})),require_XCWorkspace=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__setModuleDefault||(Object.create?(function(l,d){Object.defineProperty(l,"default",{enumerable:!0,value:d})}):function(l,d){l.default=d}),m=l&&l.__importStar||function(l){if(l&&l.__esModule)return l;var m={};if(l!=null)for(var te in l)te!=="default"&&Object.prototype.hasOwnProperty.call(l,te)&&d(m,l,te);return f(m,l),m},te=l&&l.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(l,"__esModule",{value:!0}),l.XCWorkspace=void 0;let re=__require$1(`fs`),ie=te(__require$1(`path`)),ae=m(require_workspace()),oe=require_IDEWorkspaceChecks(),se=require_XCSharedData();l.XCWorkspace=class l{constructor(l,d,f){this.name=l,this.props=d,this.filePath=f}static open(d){let f=ie.default.join(d,`contents.xcworkspacedata`);if(!(0,re.existsSync)(f))throw Error(`Invalid workspace: ${f} does not exist`);let m=(0,re.readFileSync)(f,`utf-8`),te=ae.parse(m);return new l(ie.default.basename(d,`.xcworkspace`),te,d)}static create(d,f){return new l(d,{version:`1.0`,fileRefs:[],...f})}save(l){let d=l??this.filePath;if(!d)throw Error(`No file path specified. Either provide a path or set this.filePath.`);(0,re.existsSync)(d)||(0,re.mkdirSync)(d,{recursive:!0});let f=ie.default.join(d,`contents.xcworkspacedata`),m=ae.build(this.props);(0,re.writeFileSync)(f,m,`utf-8`),this.filePath=d}toXML(){return ae.build(this.props)}addProject(l,d=`group`){this.props.fileRefs||(this.props.fileRefs=[]);let f=`${d}:${l}`;this.props.fileRefs.find(l=>l.location===f)||this.props.fileRefs.push({location:f})}removeProject(l){if(!this.props.fileRefs)return!1;let d=this.props.fileRefs.length;return this.props.fileRefs=this.props.fileRefs.filter(d=>(d.location.includes(`:`)?d.location.split(`:`).slice(1).join(`:`):d.location)!==l&&d.location!==l),this.props.fileRefs.length<d}getProjectPaths(){let l=[];if(this.props.fileRefs&&l.push(...this.props.fileRefs.map(l=>l.location)),this.props.groups)for(let d of this.props.groups)l.push(...this.collectPathsFromGroup(d));return l}addGroup(l,d){this.props.groups||(this.props.groups=[]);let f=this.props.groups.find(f=>f.name===l&&f.location===d);if(f)return f;let m={name:l,location:d,fileRefs:[]};return this.props.groups.push(m),m}getGroup(l){return this.props.groups?.find(d=>d.name===l)}removeGroup(l){if(!this.props.groups)return!1;let d=this.props.groups.length;return this.props.groups=this.props.groups.filter(d=>d.name!==l),this.props.groups.length<d}hasProject(l){return this.getProjectPaths().some(d=>(d.includes(`:`)?d.split(`:`).slice(1).join(`:`):d)===l||d===l)}getWorkspaceChecks(){return this.filePath?oe.IDEWorkspaceChecks.open(this.filePath):null}getOrCreateWorkspaceChecks(){if(!this.filePath)throw Error(`Workspace must be saved before accessing workspace checks.`);return oe.IDEWorkspaceChecks.openOrCreate(this.filePath)}hasWorkspaceChecks(){return this.filePath?oe.IDEWorkspaceChecks.open(this.filePath)!==null:!1}setMac32BitWarningComputed(){let l=this.getOrCreateWorkspaceChecks();l.mac32BitWarningComputed=!0,l.save()}collectPathsFromGroup(l){let d=[];if(l.fileRefs&&d.push(...l.fileRefs.map(l=>l.location)),l.groups)for(let f of l.groups)d.push(...this.collectPathsFromGroup(f));return d}getSharedDataDir(){if(this.filePath)return ie.default.join(this.filePath,`xcshareddata`)}getSharedData(){let l=this.getSharedDataDir();if(l&&(0,re.existsSync)(l))return se.XCSharedData.open(l);let d=se.XCSharedData.create();return l&&(d.filePath=l),d}}})),require_api=__commonJSMin((l=>{Object.defineProperty(l,"__esModule",{value:!0}),l.IDEWorkspaceChecks=l.XCWorkspace=l.XCUserData=l.XCSharedData=l.createBuildableReference=l.XCScheme=l.XCVersionGroup=l.XCSwiftPackageProductDependency=l.XCLocalSwiftPackageReference=l.XCRemoteSwiftPackageReference=l.XCConfigurationList=l.XCBuildConfiguration=l.AbstractObject=l.PBXTargetDependency=l.PBXVariantGroup=l.PBXSourcesBuildPhase=l.PBXShellScriptBuildPhase=l.PBXRezBuildPhase=l.PBXResourcesBuildPhase=l.PBXHeadersBuildPhase=l.PBXFrameworksBuildPhase=l.PBXCopyFilesBuildPhase=l.PBXAppleScriptBuildPhase=l.AbstractBuildPhase=l.PBXReferenceProxy=l.PBXProject=l.PBXNativeTarget=l.PBXLegacyTarget=l.PBXFileSystemSynchronizedRootGroup=l.PBXFileSystemSynchronizedBuildFileExceptionSet=l.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet=l.PBXFileReference=l.PBXContainerItemProxy=l.PBXBuildRule=l.PBXBuildFile=l.PBXAggregateTarget=l.XcodeProject=l.AbstractGroup=l.PBXGroup=void 0;var d=require_AbstractGroup();Object.defineProperty(l,"PBXGroup",{enumerable:!0,get:function(){return d.PBXGroup}}),Object.defineProperty(l,"AbstractGroup",{enumerable:!0,get:function(){return d.AbstractGroup}});var f=require_XcodeProject();Object.defineProperty(l,"XcodeProject",{enumerable:!0,get:function(){return f.XcodeProject}});var m=require_PBXAggregateTarget();Object.defineProperty(l,"PBXAggregateTarget",{enumerable:!0,get:function(){return m.PBXAggregateTarget}});var te=require_PBXBuildFile();Object.defineProperty(l,"PBXBuildFile",{enumerable:!0,get:function(){return te.PBXBuildFile}});var re=require_PBXBuildRule();Object.defineProperty(l,"PBXBuildRule",{enumerable:!0,get:function(){return re.PBXBuildRule}});var ie=require_PBXContainerItemProxy();Object.defineProperty(l,"PBXContainerItemProxy",{enumerable:!0,get:function(){return ie.PBXContainerItemProxy}});var ae=require_PBXFileReference();Object.defineProperty(l,"PBXFileReference",{enumerable:!0,get:function(){return ae.PBXFileReference}});var oe=require_PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet();Object.defineProperty(l,"PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet",{enumerable:!0,get:function(){return oe.PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet}});var se=require_PBXFileSystemSynchronizedBuildFileExceptionSet();Object.defineProperty(l,"PBXFileSystemSynchronizedBuildFileExceptionSet",{enumerable:!0,get:function(){return se.PBXFileSystemSynchronizedBuildFileExceptionSet}});var ce=require_PBXFileSystemSynchronizedRootGroup();Object.defineProperty(l,"PBXFileSystemSynchronizedRootGroup",{enumerable:!0,get:function(){return ce.PBXFileSystemSynchronizedRootGroup}});var le=require_PBXLegacyTarget();Object.defineProperty(l,"PBXLegacyTarget",{enumerable:!0,get:function(){return le.PBXLegacyTarget}});var ue=require_PBXNativeTarget();Object.defineProperty(l,"PBXNativeTarget",{enumerable:!0,get:function(){return ue.PBXNativeTarget}});var de=require_PBXProject();Object.defineProperty(l,"PBXProject",{enumerable:!0,get:function(){return de.PBXProject}});var fe=require_PBXReferenceProxy();Object.defineProperty(l,"PBXReferenceProxy",{enumerable:!0,get:function(){return fe.PBXReferenceProxy}});var pe=require_PBXSourcesBuildPhase();Object.defineProperty(l,"AbstractBuildPhase",{enumerable:!0,get:function(){return pe.AbstractBuildPhase}}),Object.defineProperty(l,"PBXAppleScriptBuildPhase",{enumerable:!0,get:function(){return pe.PBXAppleScriptBuildPhase}}),Object.defineProperty(l,"PBXCopyFilesBuildPhase",{enumerable:!0,get:function(){return pe.PBXCopyFilesBuildPhase}}),Object.defineProperty(l,"PBXFrameworksBuildPhase",{enumerable:!0,get:function(){return pe.PBXFrameworksBuildPhase}}),Object.defineProperty(l,"PBXHeadersBuildPhase",{enumerable:!0,get:function(){return pe.PBXHeadersBuildPhase}}),Object.defineProperty(l,"PBXResourcesBuildPhase",{enumerable:!0,get:function(){return pe.PBXResourcesBuildPhase}}),Object.defineProperty(l,"PBXRezBuildPhase",{enumerable:!0,get:function(){return pe.PBXRezBuildPhase}}),Object.defineProperty(l,"PBXShellScriptBuildPhase",{enumerable:!0,get:function(){return pe.PBXShellScriptBuildPhase}}),Object.defineProperty(l,"PBXSourcesBuildPhase",{enumerable:!0,get:function(){return pe.PBXSourcesBuildPhase}});var me=require_PBXVariantGroup();Object.defineProperty(l,"PBXVariantGroup",{enumerable:!0,get:function(){return me.PBXVariantGroup}});var he=require_PBXTargetDependency();Object.defineProperty(l,"PBXTargetDependency",{enumerable:!0,get:function(){return he.PBXTargetDependency}});var ge=require_AbstractObject();Object.defineProperty(l,"AbstractObject",{enumerable:!0,get:function(){return ge.AbstractObject}});var _e=require_XCBuildConfiguration();Object.defineProperty(l,"XCBuildConfiguration",{enumerable:!0,get:function(){return _e.XCBuildConfiguration}});var ve=require_XCConfigurationList();Object.defineProperty(l,"XCConfigurationList",{enumerable:!0,get:function(){return ve.XCConfigurationList}});var ye=require_XCRemoteSwiftPackageReference();Object.defineProperty(l,"XCRemoteSwiftPackageReference",{enumerable:!0,get:function(){return ye.XCRemoteSwiftPackageReference}});var be=require_XCLocalSwiftPackageReference();Object.defineProperty(l,"XCLocalSwiftPackageReference",{enumerable:!0,get:function(){return be.XCLocalSwiftPackageReference}});var xe=require_XCSwiftPackageProductDependency();Object.defineProperty(l,"XCSwiftPackageProductDependency",{enumerable:!0,get:function(){return xe.XCSwiftPackageProductDependency}});var Se=require_XCVersionGroup();Object.defineProperty(l,"XCVersionGroup",{enumerable:!0,get:function(){return Se.XCVersionGroup}});var Ce=require_XCScheme();Object.defineProperty(l,"XCScheme",{enumerable:!0,get:function(){return Ce.XCScheme}}),Object.defineProperty(l,"createBuildableReference",{enumerable:!0,get:function(){return Ce.createBuildableReference}});var we=require_XCSharedData();Object.defineProperty(l,"XCSharedData",{enumerable:!0,get:function(){return we.XCSharedData}});var Te=require_XCUserData();Object.defineProperty(l,"XCUserData",{enumerable:!0,get:function(){return Te.XCUserData}});var Ee=require_XCWorkspace();Object.defineProperty(l,"XCWorkspace",{enumerable:!0,get:function(){return Ee.XCWorkspace}});var De=require_IDEWorkspaceChecks();Object.defineProperty(l,"IDEWorkspaceChecks",{enumerable:!0,get:function(){return De.IDEWorkspaceChecks}})})),require_build=__commonJSMin((l=>{var d=l&&l.__createBinding||(Object.create?(function(l,d,f,m){m===void 0&&(m=f);var te=Object.getOwnPropertyDescriptor(d,f);(!te||(`get`in te?!d.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(l,m,te)}):(function(l,d,f,m){m===void 0&&(m=f),l[m]=d[f]})),f=l&&l.__exportStar||function(l,f){for(var m in l)m!=="default"&&!Object.prototype.hasOwnProperty.call(f,m)&&d(f,l,m)};Object.defineProperty(l,"__esModule",{value:!0}),f(require_api(),l)})),import_build=require_build();const COPYRIGHT_YEAR_REGEX=/(?:©|\(c\)|copyright)\s*(\d{4})/i,COPYRIGHT_HOLDER_REGEX=/(?:©|\(c\)|copyright)\s*\d{4}\s*(.+)/i,ALL_RIGHTS_RESERVED_REGEX=/\.\s*all\s+rights\s+reserved\.?/i,TRAILING_PUNCTUATION_REGEX=/[.,;]+$/,pbxprojDependencySchema=object({url:string$2()}),pbxprojSchema=object({copyrightHolder:nonEmptyString,copyrightYear:nonEmptyString,dependencies:array(pbxprojDependencySchema),identifier:nonEmptyString,name:nonEmptyString,operatingSystems:stringArray,organizationName:nonEmptyString,programmingLanguage:nonEmptyString,version:nonEmptyString}),XCODE_VARIABLE_RE=/\$[({][^)}]+[)}]/,SDKROOT_MAP={appletvos:`tvOS`,iphoneos:`iOS`,macosx:`macOS`,watchos:`watchOS`,xros:`visionOS`},DEPLOYMENT_TARGETS=[{key:`IPHONEOS_DEPLOYMENT_TARGET`,os:`iOS`},{key:`MACOSX_DEPLOYMENT_TARGET`,os:`macOS`},{key:`TVOS_DEPLOYMENT_TARGET`,os:`tvOS`},{key:`WATCHOS_DEPLOYMENT_TARGET`,os:`watchOS`},{key:`XROS_DEPLOYMENT_TARGET`,os:`visionOS`}];function parse(l){let d;try{d=import_build.XcodeProject.open(l)}catch{return}let f=d.rootObject,m=f.props.targets.find(l=>import_build.PBXNativeTarget.is(l)),te;try{te=f.getMainAppTarget()??void 0}catch{}te??=m;let re,ie;if(te)try{let l=te.getDefaultConfiguration();re=l;let d=l.props.buildSettings;ie=is.plainObject(d)?d:void 0}catch{}let ae;try{let l=(f.props.buildConfigurationList.props.buildConfigurations.find(l=>l.props.name===`Release`)??f.props.buildConfigurationList.getDefaultConfiguration()).props.buildSettings;ae=is.plainObject(l)?l:void 0}catch{}let oe=getSetting(ie,ae,`INFOPLIST_KEY_CFBundleDisplayName`),se=getResolvedSetting(re,ie,ae,`PRODUCT_NAME`),ce=te?cleanString(te.props.name):void 0,le=cleanString(f.props.attributes.ORGANIZATIONNAME),{copyrightHolder:ue,copyrightYear:de}=parseCopyrightString(getSetting(ie,ae,`INFOPLIST_KEY_NSHumanReadableCopyright`)),fe=getSetting(ie,ae,`SWIFT_VERSION`),pe;return fe?pe=`Swift`:getSetting(ie,ae,`GCC_C_LANGUAGE_STANDARD`)&&(pe=`Objective-C`),pbxprojSchema.parse({copyrightHolder:ue,copyrightYear:de,dependencies:parseDependencies(f),identifier:getResolvedSetting(re,ie,ae,`PRODUCT_BUNDLE_IDENTIFIER`),name:oe??se??ce,operatingSystems:parseOperatingSystems(ie,ae),organizationName:le,programmingLanguage:pe,version:getSetting(ie,ae,`MARKETING_VERSION`)})}function cleanString(l){if(typeof l==`number`)return String(l);if(typeof l!=`string`)return;let d=l.trim();if(d.length!==0&&!XCODE_VARIABLE_RE.test(d))return d}function getSetting(l,d,f){let m=cleanString(l?.[f]);return m===void 0?cleanString(d?.[f]):m}function getResolvedSetting(l,d,f,m){if(l)try{let d=cleanString(l.resolveBuildSetting(m));if(d!==void 0)return d}catch{}return getSetting(d,f,m)}function parseCopyrightString(l){if(!l)return{};let d=COPYRIGHT_YEAR_REGEX.exec(l)?.[1],f=COPYRIGHT_HOLDER_REGEX.exec(l),m;return f&&(m=f[1].replace(ALL_RIGHTS_RESERVED_REGEX,``).replace(TRAILING_PUNCTUATION_REGEX,``).trim(),m.length===0&&(m=void 0)),{copyrightHolder:m,copyrightYear:d}}function parseOperatingSystems(l,d){let f=[],m=new Set;for(let{key:te,os:re}of DEPLOYMENT_TARGETS){let ie=getSetting(l,d,te);if(ie){let l=`${re} >= ${ie}`;m.has(l)||(m.add(l),f.push(l))}}if(f.length===0){let m=getSetting(l,d,`SDKROOT`);if(m&&m!==`auto`){let l=SDKROOT_MAP[m];l&&f.push(l)}}return f}function parseDependencies(l){let d=l.props.packageReferences??[],f=[];for(let l of d){if(!import_build.XCRemoteSwiftPackageReference.is(l))continue;let d=cleanString(l.props.repositoryURL);d&&f.push({url:d})}return f}const xcodeProjectPbxprojSource=defineSource({async discover(l){return getMatches(l.options,[`*.xcodeproj/project.pbxproj`],[`**/*.xcodeproj/project.pbxproj`])},key:`xcodeProjectPbxproj`,async parse(l,d){let f=parse(resolve$1(d.options.path,l));if(f!==void 0)return{data:f,source:l}},phase:1});function toPersonOrOrgLd(l){let d=is.nonEmptyStringAndNotWhitespace(l.name),f=is.nonEmptyStringAndNotWhitespace(l.givenName),m=is.nonEmptyStringAndNotWhitespace(l.familyName),te=is.nonEmptyStringAndNotWhitespace(l.email);if(!d&&!f&&!m&&!te)return;let re={"@type":l.type??`Person`};return is.nonEmptyStringAndNotWhitespace(l.id)&&(re[`@id`]=l.id),d&&(re.name=l.name),f&&(re.givenName=l.givenName),m&&(re.familyName=l.familyName),te&&(re.email=l.email),is.nonEmptyStringAndNotWhitespace(l.url)&&(re.url=l.url),is.nonEmptyStringAndNotWhitespace(l.affiliation)&&(re.affiliation={"@type":`Organization`,name:l.affiliation}),re}function deduplicatePersonsOrOrgs(l){let d=new Map;for(let f of l){let l=(f.name??([f.givenName,f.familyName].filter(Boolean).join(` `)||void 0)??f.email??``).toLowerCase().trim();l.length>0&&!d.has(l)&&d.set(l,f)}let f=[...d.values()];return f.length>0?f:void 0}function toDependencyLd(l,d,f,m){let te={"@type":`SoftwareApplication`,name:l};return is.nonEmptyStringAndNotWhitespace(d)&&(te.version=d),is.nonEmptyStringAndNotWhitespace(f)&&(te.identifier=f),is.nonEmptyStringAndNotWhitespace(m)&&(te.runtimePlatform=m),te}function deduplicateDependencies(l){let d=new Map;for(let f of l){let l=f.name.toLowerCase().trim();l.length>0&&!d.has(l)&&d.set(l,f)}let f=[...d.values()];return f.length>0?f:void 0}function toSpdxLicenseUrl(l){return`https://spdx.org/licenses/${l.replace(`https://spdx.org/licenses/`,``).replace(`http://spdx.org/licenses/`,``)}`}const SEE_LICENSE_IN_REGEX=/^see license in /i;function isProprietaryLicenseSentinel(l){let d=l.trim();return d.toLowerCase()===`unlicensed`||SEE_LICENSE_IN_REGEX.test(d)}const PEP508_NAME_REGEX=/^[\w.-]+/,DATE_ONLY_REGEX=/^\d{4}-\d{2}-\d{2}$/,DATETIME_DATE_REGEX=/^(\d{4}-\d{2}-\d{2})T/,TRAILING_DOT_GIT_REGEX=/\.git$/,codemeta=defineTemplate(({arduinoLibraryProperties:l,cinderCinderblockXml:d,codemetaJson:f,codeStats:m,fileStats:te,github:re,gitStats:ie,goGoMod:ae,javaPomXml:oe,licenseFile:se,metascope:ce,nodeNpmRegistry:le,nodePackageJson:ue,obsidianPluginManifestJson:de,openframeworksAddonConfigMk:fe,openframeworksInstallXml:pe,processingLibraryProperties:me,publiccodeYaml:he,pythonPkgInfo:ge,pythonPypiRegistry:_e,pythonPyprojectToml:ve,pythonSetupCfg:ye,pythonSetupPy:be,readmeFile:xe,rubyGemspec:Se,rustCargoToml:Ce,xcodeInfoPlist:we})=>{let Te=firstOf(f),Ee=firstOf(re),De=firstOf(ie),Oe=firstOf(le),ke=firstOf(_e),Ae=firstOf(ue),je=firstOf(ve),Me=firstOf(be),Ne=firstOf(ye),Pe=firstOf(ge),Fe=firstOf(Ce),Ie=firstOf(Se),Le=firstOf(oe),Re=firstOf(ae),ze=firstOf(l),Be=firstOf(me),Ve=firstOf(fe),He=firstOf(pe),Ue=firstOf(d),We=firstOf(we),Ge=firstOf(de),Ke=firstOf(he),qe=firstOf(m),Je=firstOf(xe),Ye=firstOf(te),Xe=je?.data.tool?.poetry,Ze=Ae?.data.name??je?.data.project?.name??Xe?.name??Me?.data.name??Ne?.data.name??Pe?.data.name??Fe?.data.name??Ie?.data.name??Le?.data.name??Re?.data.module??ze?.data.name??Be?.data.name??Ve?.data.name??He?.data.name??Ue?.data.name??We?.data.name??Ge?.data.name??Ke?.data.name??Te?.data.name??Je?.data.name??Ye?.data.folderName,Qe=Ae?.data.description??je?.data.project?.description??Xe?.description??Me?.data.description??Ne?.data.description??Pe?.data.summary??Fe?.data.description??Ie?.data.summary??Le?.data.description??ze?.data.sentence??Be?.data.sentence??Ve?.data.description??He?.data.description??Ue?.data.summary??We?.data.description??Ge?.data.description??Ke?.data.description?.shortDescription??Te?.data.description??Ee?.data.description,$e=Ae?.data.version??je?.data.project?.version??Xe?.version??Me?.data.version??Ne?.data.version??Pe?.data.version??Fe?.data.version??Ie?.data.version??Le?.data.version??ze?.data.version??Be?.data.prettyVersion??He?.data.version??Ue?.data.version??We?.data.version??Ge?.data.version??Ke?.data.softwareVersion??Te?.data.version??Te?.data.softwareVersion,et=Le?.data.identifier??Ue?.data.id??Ge?.data.id??We?.data.identifier??Ae?.data.name??Te?.data.identifier,tt=[...Ae?.data.author?[toPersonOrOrgLd({email:Ae.data.author.email,name:Ae.data.author.name,url:Ae.data.author.url})]:[],...(je?.data.project?.authors??[]).map(l=>is.plainObject(l)?toPersonOrOrgLd({email:l.email,name:l.name}):toPersonOrOrgLd({name:l})),...Me?.data.author?[toPersonOrOrgLd({email:Me.data.author_email,name:Me.data.author})]:[],...Ne?.data.author?[toPersonOrOrgLd({email:Ne.data.author_email,name:Ne.data.author})]:[],...(Fe?.data.authors??[]).map(l=>toPersonOrOrgLd({email:l.email,name:l.name})),...gemspecAuthors(Ie),...(Le?.data.developers??[]).map(l=>toPersonOrOrgLd({affiliation:l.organization,email:l.email,name:l.name,url:l.url})),...(ze?.data.authors??[]).map(l=>toPersonOrOrgLd({email:l.email,name:l.name})),...(Be?.data.authors??[]).map(l=>toPersonOrOrgLd({name:l.name,url:l.url})),...Ve?.data.author?[toPersonOrOrgLd({name:Ve.data.author})]:[],...He?.data.author?[toPersonOrOrgLd({name:He.data.author})]:[],...(Ue?.data.author??[]).map(l=>toPersonOrOrgLd({name:l})),...We?.data.author?[toPersonOrOrgLd({email:We.data.authorEmail,name:We.data.author})]:[],...Ge?.data.author?[toPersonOrOrgLd({name:Ge.data.author,url:Ge.data.authorUrl})]:[],...(Ke?.data.contacts??[]).map(l=>toPersonOrOrgLd({affiliation:l.affiliation,email:l.email,name:l.name}))],nt=Te?.data.author?.map(l=>toPersonOrOrgLd({affiliation:l.affiliation,email:l.email,familyName:l.familyName,givenName:l.givenName,id:l.id,name:l.name,type:l.type,url:l.url})),rt=resolvePersonsOrOrgs(tt,nt),it=[...collectArrayField(ue,l=>l.contributors?.map(l=>is.plainObject(l)?toPersonOrOrgLd({email:l.email,name:l.name,url:l.url}):toPersonOrOrgLd({name:l}))),...(Le?.data.contributors??[]).map(l=>toPersonOrOrgLd({affiliation:l.organization,email:l.email,name:l.name,url:l.url}))],at=Te?.data.contributor?.map(l=>toPersonOrOrgLd({affiliation:l.affiliation,email:l.email,familyName:l.familyName,givenName:l.givenName,id:l.id,name:l.name,type:l.type,url:l.url})),ot=resolvePersonsOrOrgs(it,at),st=[...collectArrayField(ue,l=>l.maintainers?.map(l=>is.plainObject(l)?toPersonOrOrgLd({email:l.email,name:l.name,url:l.url}):toPersonOrOrgLd({name:l}))),...(je?.data.project?.maintainers??[]).map(l=>is.plainObject(l)?toPersonOrOrgLd({email:l.email,name:l.name}):toPersonOrOrgLd({name:l})),...Me?.data.maintainer?[toPersonOrOrgLd({email:Me.data.maintainer_email,name:Me.data.maintainer})]:[],...Ne?.data.maintainer?[toPersonOrOrgLd({email:Ne.data.maintainer_email,name:Ne.data.maintainer})]:[],...Pe?.data.maintainer?[toPersonOrOrgLd({email:Pe.data.maintainer_email,name:Pe.data.maintainer})]:[],...ze?.data.maintainer?[toPersonOrOrgLd({email:ze.data.maintainer.email,name:ze.data.maintainer.name})]:[]],ct=Te?.data.maintainer?.map(l=>toPersonOrOrgLd({affiliation:l.affiliation,email:l.email,familyName:l.familyName,givenName:l.givenName,id:l.id,name:l.name,type:l.type,url:l.url})),lt=resolvePersonsOrOrgs(st,ct),ut=[...Ke?.data.mainCopyrightOwner?[toPersonOrOrgLd({name:Ke.data.mainCopyrightOwner})]:[],...We?.data.copyrightHolder?[toPersonOrOrgLd({name:We.data.copyrightHolder})]:[]],dt=Te?.data.copyrightHolder?.map(l=>toPersonOrOrgLd({affiliation:l.affiliation,email:l.email,familyName:l.familyName,givenName:l.givenName,id:l.id,name:l.name,type:l.type,url:l.url})),ft=resolvePersonsOrOrgs(ut,dt),pt=resolvePersonsOrOrgs([],Te?.data.funder?.map(l=>toPersonOrOrgLd({affiliation:l.affiliation,email:l.email,familyName:l.familyName,givenName:l.givenName,id:l.id,name:l.name,type:l.type,url:l.url}))),mt=Ee?.data.url??Fe?.data.repository??Le?.data.scmUrl??Re?.data.repository_url??Ke?.data.url??ze?.data.repository??Ue?.data.git??Te?.data.codeRepository??repositoryUrlFromPackageJson(Ae?.data.repository)??caseInsensitiveLookup(je?.data.project?.urls,`repository`)??Xe?.repository,ht=nonEmpty$5([...Ee?.data.primaryLanguage?[Ee.data.primaryLanguage]:[],...Te?.data.programmingLanguage??[]])??nonEmpty$5(Object.keys(Ee?.data.languages??{}))??qe?.data.total?.languages.slice(0,1),gt=nonEmpty$5([...Object.keys(Ae?.data.engines??{}),...Re?.data.go_version?[`go ${Re.data.go_version}`]:[],...Fe?.data.rustVersion?[`rust ${Fe.data.rustVersion}`]:[],...je?.data.project?.requiresPython?[`python ${je.data.project.requiresPython}`]:[],...Me?.data.python_requires?[`python ${Me.data.python_requires}`]:[],...Ie?.data.required_ruby_version?[`ruby ${Ie.data.required_ruby_version}`]:[],...Le?.data.javaVersion?[`java ${Le.data.javaVersion}`]:[],...Te?.data.runtimePlatform??[]]),_t=nonEmpty$5([...Te?.data.operatingSystem??[],...Ke?.data.platforms??[],...He?.data.operatingSystems??[],...Ue?.data.supports??[],...We?.data.operatingSystems??[]]),vt=Te?.data.applicationCategory??We?.data.applicationCategory??ze?.data.category??Ke?.data.softwareType,yt=Te?.data.applicationSubCategory,bt=collectRuntimeDeps({arduino:ze,cargo:Fe,cinder:Ue,gem:Ie,goGoMod:ae,javaPomXml:oe,nodePackageJson:ue,ofAddon:Ve,ofInstall:He,pkgInfo:Pe,publiccode:Ke,pyproject:je,rubyGemspec:Se,setupCfg:Ne,setupPy:Me}),xt=bt.length>0?deduplicateDependencies(bt):Te?.data.softwareRequirements?.map(l=>toDependencyLd(l.name??l.identifier??``,l.version,l.identifier,l.runtimePlatform)),St=collectDevelopmentDeps({cargo:Fe,gem:Ie,javaPomXml:oe,nodePackageJson:ue,rubyGemspec:Se}),Ct=St.length>0?deduplicateDependencies(St):Te?.data.softwareSuggestions?.map(l=>toDependencyLd(l.name??l.identifier??``,l.version,l.identifier,l.runtimePlatform)),wt=De?.data.commitDateFirst??Ee?.data.createdAt??Te?.data.dateCreated,Tt=De?.data.commitDateLast??Ee?.data.pushedAt??Te?.data.dateModified,Et=Oe?.data.publishDateLatest??ke?.data.publishDateLatest??Ke?.data.releaseDate??Ee?.data.releaseDateLatest??De?.data.tagVersionDateLatest??Te?.data.datePublished,Dt=We?.data.copyrightYear??Le?.data.inceptionYear??(Te?.data.copyrightYear===void 0?void 0:String(Te.data.copyrightYear)),Ot=Ae?.data.license??Fe?.data.license??resolvePythonLicense(je?.data.project?.license)??Me?.data.license??Ne?.data.license??Ie?.data.license??firstPomLicense(Le)??ze?.data.license??Ue?.data.license??Ke?.data.license??Ee?.data.licenseSpdxId??collectField(se,l=>l.match?.spdxId)[0]??resolveCmLicense(Te?.data.license),kt=is.nonEmptyStringAndNotWhitespace(Ot)?isProprietaryLicenseSentinel(Ot)?Ot:toSpdxLicenseUrl(Ot):void 0,At=Te?.data.isAccessibleForFree??(Ee?.data.isPrivate===!1?!0:void 0),jt=nonEmpty$5(deduplicateStrings([...Ae?.data.keywords??[],...je?.data.project?.keywords??[],...Xe?.keywords??[],...Me?.data.keywords??[],...Ne?.data.keywords??[],...Pe?.data.keywords??[],...Fe?.data.keywords??[],...Ve?.data.tags??[],...Ke?.data.categories??[],...Ee?.data.topics??[],...Te?.data.keywords??[]])),Mt=stripReadmeFragment(Ae?.data.homepage)??caseInsensitiveLookup(je?.data.project?.urls,`homepage`)??Xe?.homepage??Fe?.data.homepage??Me?.data.url??Ne?.data.url??Pe?.data.home_page??Ie?.data.homepage??Le?.data.url??ze?.data.url??Be?.data.url??Ve?.data.url??He?.data.siteUrl??Ue?.data.url??We?.data.url??Ke?.data.landingUrl??Ee?.data.homepageUrl??Te?.data.url??caseInsensitiveLookup(je?.data.project?.urls,`repository`)??Xe?.repository,Nt=He?.data.downloadUrl??Be?.data.download??Oe?.data.url??ke?.data.url??Te?.data.downloadUrl,Pt=bugsUrlFromPackageJson(Ae?.data.bugs)??Le?.data.issueManagementUrl??Te?.data.issueTracker??(Ee?.data.hasIssuesEnabled?`${Ee.data.url}/issues`:void 0),Ft=Le?.data.ciManagementUrl??Te?.data.continuousIntegration,It=Fe?.data.documentation??Te?.data.softwareHelp,Lt=Ke?.data.developmentStatus??Te?.data.developmentStatus,Rt=Te?.data.funding,zt=Te?.data.buildInstructions,Bt=readmeUrl(firstOf(xe),mt,Ee?.data.defaultBranch??De?.data.branchCurrent,firstOf(ce)?.data.options.path)??Te?.data.readme,Vt=Te?.data.releaseNotes,Ht=Te?.data.installUrl,Ut=Te?.data.relatedLink;return stripUndefined({"@context":`https://w3id.org/codemeta/3.0`,"@type":`SoftwareSourceCode`,applicationCategory:vt,applicationSubCategory:yt,author:rt,buildInstructions:zt,codeRepository:mt,continuousIntegration:Ft,contributor:ot,copyrightHolder:ft,copyrightYear:is.nonEmptyStringAndNotWhitespace(Dt)&&Number.parseInt(Dt,10)||void 0,dateCreated:toDateOnly(wt),dateModified:toDateOnly(Tt),datePublished:toDateOnly(Et),description:Qe,developmentStatus:Lt,downloadUrl:Nt,funder:pt,funding:Rt,identifier:et,installUrl:Ht,isAccessibleForFree:At,issueTracker:Pt,keywords:jt,license:kt,maintainer:lt,name:Ze,operatingSystem:_t,programmingLanguage:ht,readme:Bt,relatedLink:Ut,releaseNotes:Vt,runtimePlatform:gt,softwareHelp:It,softwareRequirements:xt,softwareSuggestions:Ct,targetProduct:void 0,url:Mt,version:$e})});function gemspecAuthors(l){if(l===void 0)return[];let d=l.data.email===void 0?[]:Array.isArray(l.data.email)?l.data.email:[l.data.email];return l.data.authors.map((l,f)=>toPersonOrOrgLd({email:d[f],name:l}))}function resolvePersonsOrOrgs(l,d){let f=l.filter(l=>l!==void 0);return f.length>0?deduplicatePersonsOrOrgs(f):deduplicatePersonsOrOrgs((d??[]).filter(l=>l!==void 0))}function collectRuntimeDeps(l){let d=[];return d.push(...collectArrayField(l.nodePackageJson,l=>objectEntriesToDeps(l.dependencies))),d.push(...(l.pyproject?.data.project?.dependencies??[]).map(l=>parsePep508Dep(l))),d.push(...(l.setupPy?.data.install_requires??[]).map(l=>parsePep508Dep(l))),d.push(...(l.setupCfg?.data.install_requires??[]).map(l=>parsePep508Dep(l))),d.push(...(l.pkgInfo?.data.requires_dist??[]).map(l=>parsePep508Dep(l))),d.push(...(l.cargo?.data.dependencies??[]).map(l=>toDependencyLd(l.name,l.version))),d.push(...collectArrayField(l.rubyGemspec,l=>l.dependencies.filter(l=>l.type===`runtime`).map(l=>toDependencyLd(l.name,l.requirements.join(`, `))))),d.push(...collectArrayField(l.javaPomXml,l=>l.dependencies.map(l=>toDependencyLd(l.artifactId,l.version,`${l.groupId}:${l.artifactId}`)))),d.push(...collectArrayField(l.goGoMod,l=>l.dependencies.map(l=>toDependencyLd(l.module,l.version)))),d.push(...(l.arduino?.data.depends??[]).map(l=>toDependencyLd(l.name,l.versionConstraint))),d.push(...(l.ofAddon?.data.dependencies??[]).map(l=>toDependencyLd(l))),d.push(...(l.ofInstall?.data.requirements??[]).map(l=>toDependencyLd(l))),d.push(...(l.cinder?.data.requires??[]).map(l=>toDependencyLd(l))),d.push(...(l.publiccode?.data.dependencies??[]).map(l=>toDependencyLd(l.name,l.version))),d}function collectDevelopmentDeps(l){let d=[];return d.push(...collectArrayField(l.nodePackageJson,l=>objectEntriesToDeps(l.devDependencies))),d.push(...(l.cargo?.data.devDependencies??[]).map(l=>toDependencyLd(l.name,l.version))),d.push(...collectArrayField(l.rubyGemspec,l=>l.dependencies.filter(l=>l.type===`development`).map(l=>toDependencyLd(l.name,l.requirements.join(`, `))))),d.push(...collectArrayField(l.javaPomXml,l=>l.devDependencies.map(l=>toDependencyLd(l.artifactId,l.version,`${l.groupId}:${l.artifactId}`)))),d}function objectEntriesToDeps(l){if(l!==void 0)return Object.entries(l).map(([l,d])=>toDependencyLd(l,d))}function parsePep508Dep(l){let d=l.trim(),f=PEP508_NAME_REGEX.exec(d);if(f){let l=d.slice(f[0].length).trim();return toDependencyLd(f[0],l.length>0?l:void 0)}return toDependencyLd(d)}function repositoryUrlFromPackageJson(l){if(l!==void 0)return typeof l==`string`?l:l.url}function bugsUrlFromPackageJson(l){if(l!==void 0)return l.url}function firstPomLicense(l){let d=l?.data.licenses[0];return d?.name??d?.url}function resolvePythonLicense(l){if(l!==void 0)return typeof l==`string`?l:l.spdx??l.text}function resolveCmLicense(l){if(l!==void 0)return Array.isArray(l)?l[0]:l}function deduplicateStrings(l){let d=new Map;for(let f of l){let l=f.toLowerCase().trim();l.length>0&&!d.has(l)&&d.set(l,f)}return[...d.values()]}function caseInsensitiveLookup(l,d){if(l===void 0)return;let f=d.toLowerCase();for(let[d,m]of Object.entries(l))if(d.toLowerCase()===f)return m}function stripReadmeFragment(l){if(l!==void 0)return l.endsWith(`#readme`)?l.slice(0,-7):l}function toDateOnly(l){if(l===void 0)return;if(DATE_ONLY_REGEX.test(l))return l;let d=DATETIME_DATE_REGEX.exec(l);return d?d[1]:l}function readmeUrl(l,d,f,m){if(l===void 0)return;let te=m===void 0?basename$1(l.source):relative$1(m,l.source).replaceAll(`\\`,`/`);if(is.nonEmptyStringAndNotWhitespace(d)&&d.includes(`github.com`)){let l=f??`main`;return`${d.replace(TRAILING_DOT_GIT_REGEX,``)}/blob/${l}/${te}`}return te}const codemetaJson=defineTemplate((l,d)=>{let f=codemeta(l,d);return codeMetaJsonDataSchema.parse(f)}),frontmatter=defineTemplate((l,d)=>{let f=codemetaJson(l,d),m=firstOf(l.codeStats)?.data,te=firstOf(l.dependencyUpdates),re=firstOf(l.fileStats)?.data,ie=firstOf(l.cinderCinderblockXml)?.data,ae=firstOf(l.github)?.data,{githubActions:oe}=l,se=firstOf(l.gitStats)?.data,ce=l.metascope?.data,le=firstOf(l.nodeNpmRegistry)?.data,ue=firstOf(l.obsidianPluginManifestJson)?.data,de=firstOf(l.obsidianPluginRegistry)?.data,fe=firstOf(l.pythonPypiRegistry)?.data,pe=mixedStringsToArray(f.programmingLanguage??ae?.primaryLanguage,REPLACEMENTS)??null,me=mixedStringsToArray(m?.total?.languages,REPLACEMENTS)?.filter(l=>!pe?.includes(l))??null,he=f.name===`undefined`?null:ie===void 0?f.name:`Cinder ${f.name}`,ge=f.identifier??he,_e=is.nonEmptyString(he)?toAlias(he):void 0,ve=ge===_e?void 0:ge,ye=ensureArray(oe).find(l=>l.data.name.toLowerCase()===`ci`)?.data,be=ye?.lastRunConclusion,xe=ye?.lastRunUrl;return{Name:_e??null,ID:ge??null,Description:f.description??null,Author:mixedStringsToArray(toBasicNames(f.author))??null,Contributor:mixedStringsToArray(toBasicNames(f.contributor))??null,Maintainer:mixedStringsToArray(toBasicNames(f.maintainer))??null,Version:f.version??null,Account:ae?.ownerLogin??null,Public:ae===void 0?!1:!ae.isPrivate,Fork:ae?.isFork??!1,Published:!!(de?.url??le?.url??fe?.url),Status:toStatus(f.codeRepository,f.author,[...f.contributor??[],...f.maintainer??[]],ae?.isFork??!1,d.authorName,d.githubAccount),Tags:f.keywords??null,Aliases:nonEmpty$5([ve])??null,License:toBasicLicenses(f.license)??null,Language:pe,"Secondary Language":me,"Repo Path":ce?.options.path===void 0?null:`file://${ce.options.path}`,"VS Code Path":ce?.options.path===void 0?null:`vscode://file/${ce.options.path}`,"Readme Path":toLocalUrl(f.readme,ce?.options.path)??null,"Homepage URL":f.url!==void 0&&!f.url.startsWith(`https://github.com/`)?f.url:null,"Repo URL":f.codeRepository??ae?.url??null,"Issues URL":f.issueTracker??null,"Readme URL":f.readme!==void 0&&isValidUrl(f.readme)?f.readme:null,"Package URL":de?.url??le?.url??fe?.url??null,Created:f.dateCreated??null,"First Commit Date":se?.commitDateFirst??null,"Latest Commit Date":se?.commitDateLast??null,"Latest Push Date":ae?.pushedAt??null,"Latest Release Date":ae?.releaseDateLatest??le?.publishDateLatest??fe?.publishDateLatest??se?.tagVersionDateLatest??null,"Latest Release Version":ue?.version??le?.versionLatest??fe?.versionLatest??ae?.releaseVersionLatest??se?.tagVersionLatest??null,Stars:ae?.stargazerCount??null,Watchers:ae?.watcherCount??null,Contributors:ae?.contributorCount??se?.contributorCount??null,Forks:ae?.forkCount??null,"Downloads Total":le?.downloadsTotal??de?.downloadCount??fe?.downloads180Days??ae?.releaseDownloadCount??null,"Downloads Monthly":le?.downloadsMonthly??fe?.downloadsMonthly??null,CI:be?titleCase(be):null,"CI URL":xe??null,Releases:ae?.releaseCount??se?.tagReleaseCount??null,"Issues Open":ae?.issueCountOpen??null,"Issues Closed":ae?.issueCountClosed??null,"PRs Open":ae?.pullRequestCountOpen??null,"PRs Merged":ae?.pullRequestCountMerged??null,"PRs Closed":ae?.pullRequestCountClosed??null,"Vulnerability Alerts":ae?.vulnerabilityAlertCount??null,"Lines of Code":m?.total?.code??null,"Total Files":re?.totalFileCount??null,"Total Size MB":toMb(re?.totalSizeBytes)??null,"Tracked Files":se?.trackedFileCount??null,"Tracked Size MB":toMb(se?.trackedSizeBytes)??null,"GitHub Size MB":toMb(ae?.diskUsageBytes)??null,Dependencies:dependencyNames(f,`prod`)??null,"Dev Dependencies":dependencyNames(f,`dev`)??null,"Major Updates":te?.data.major?.length??0,"Minor Updates":te?.data.minor?.length??0,"Patch Updates":te?.data.patch?.length??0,"Total Updates":te?.extra?.total??0,Libyears:te?.extra?.libyears??0,Runtime:f.runtimePlatform??null,"Operating System":f.operatingSystem??null,"Forked From":ae?.forkedFrom??null,"Fork Ahead":ae?.commitsAheadUpstream??null,"Fork Behind":ae?.commitsBehindUpstream??null,"Template From":ae?.templateFrom??null,Organization:ae?.isInOrganization??!1,Monorepo:ce?.workspaceDirectories===void 0?!1:ce.workspaceDirectories.length>0,"Git Commits":se?.commitCount??null,"Git Dirty Files":se?.uncommittedFileCount??null,"Git Remotes Ahead":se?.totalAhead??null,"Git Remotes Behind":se?.totalBehind??null,"Git LFS":se?.hasLfs??ae?.hasLfs??!1,"Git Tags":se?.tagCount??null,"Git Current Branch":se?.branchCurrent??null,"Git Branches":se?.branchCount??null,"Git Remotes":se?.remoteCount??null,"Git Submodules":se?.submoduleCount??0}});function normalizeGitUrl(l){if(l===void 0)return;let d=l;return d.startsWith(`git+`)&&(d=d.slice(4)),d.endsWith(`.git`)&&(d=d.slice(0,-4)),d}const metadata=defineTemplate((l,d)=>{let f=codemetaJson(l,d),m=firstOf(l.metadataFile)?.data,te=m?.homepage??f.url??f.codeRepository;return{description:m?.description??f.description,homepage:normalizeGitUrl(te),topics:m?.keywords??f.keywords}}),project=defineTemplate((l,d)=>{let f=codemetaJson(l,d),m=firstOf(l.dependencyUpdates),te=firstOf(l.github)?.data,re=firstOf(l.gitStats)?.data,ie=l.metascope?.data,ae=firstOf(l.nodeNpmRegistry)?.data,oe=firstOf(l.nodePackageJson);return{description:f.description,firstCommitDate:re?.commitDateFirst,gitHubLink:te?.url,gitHubStarCount:te?.stargazerCount,gitIsClean:re?.isClean,gitIsDirty:re?.isDirty,gitRemoteCount:re?.remoteCount,homepage:te?.homepageUrl??f.url??te?.url,isAuthoredByMe:isAuthoredBy(f.author,d.authorName),isOnMyGitHub:isOnGithubAccountOf(f.codeRepository,d.githubAccount),isOnNpm:ae?.url!==void 0,isPublic:te===void 0?!1:!te.isPrivate,isRemoteAhead:re?.isRemoteAhead,issueCount:te?.issueCountOpen,lastCommitDate:re?.commitDateLast,license:toBasicLicenses(f.license??te?.licenseSpdxId)?.at(0),majorUpdateCount:m?.data.major?.length??0,majorUpdateList:m?.data.major?.map(l=>l.name),npmDownloadCount:ae?.downloadsTotal,readmePath:toLocalUrl(f.readme,ie?.options.path),repositoryPath:ie?.options.path===void 0?void 0:`file://${ie.options.path}`,semverUpdateCount:void 0,semverUpdateList:void 0,tags:f.keywords,title:f.name,type:toStatusLegacy(f.codeRepository,f.author,d.authorName,d.githubAccount),usesPnpm:usesPnpm(oe),usesSharedConfig:hasDependencyWithId(`@kitschpatrol/shared-config`,f),version:f.version}}),templates={codemeta,codemetaJson,frontmatter,metadata,project};function isKeyOfTemplate(l){return typeof l==`string`&&l in templates}const execFileAsync=promisify(execFile),sources=[arduinoLibraryPropertiesSource,cinderCinderblockXmlSource,codemetaJsonSource,gitConfigSource,goGoModSource,goGoreleaserYamlSource,javaPomXmlSource,licenseFileSource,metadataFileSource,metascopeSource,nodePackageJsonSource,obsidianPluginManifestJsonSource,openframeworksAddonConfigMkSource,openframeworksInstallXmlSource,processingLibraryPropertiesSource,processingSketchPropertiesSource,publiccodeYamlSource,pythonPkgInfoSource,pythonPyprojectTomlSource,pythonSetupCfgSource,pythonSetupPySource,readmeFileSource,rubyGemspecSource,rustCargoTomlSource,xcodeInfoPlistSource,xcodeProjectPbxprojSource,githubActionsSource,codeStatsSource,dependencyUpdatesSource,fileStatsSource,gitStatsSource,githubSource,nodeNpmRegistrySource,obsidianPluginRegistrySource,pythonPypiRegistrySource],sourceNames=sources.map(l=>l.key);async function resolveCredentials(l){if(l?.githubToken)return l;let d=process.env.GITHUB_TOKEN;if(d)return{...l,githubToken:d};try{let{stdout:d}=await execFileAsync(`gh`,[`auth`,`token`]),f=d.trim();if(f)return{...l,githubToken:f}}catch{}return l??{}}function resolveTemplate(l){if(l!==void 0){if(typeof l==`function`)return l;if(isKeyOfTemplate(l))return templates[l];log$2.warn(`Unknown template: "${l}". Using default (all fields).`)}}async function runSources(l,d,f){let m=await Promise.all(l.map(async l=>{try{let f=performance.now(),m=await l.extract(d),te=Math.round(performance.now()-f);return log$2.debug(`Source "${l.key}" extracted in ${te}ms`),{data:m,key:l.key}}catch(d){return log$2.warn(`Source "${l.key}" extraction failed: ${d instanceof Error?d.message:String(d)}`),{data:void 0,key:l.key}}}));for(let l of m)l.data!==void 0&&Object.assign(f,{[l.key]:l.data})}async function getMetadata(l){let d=performance.now(),f=defu(l??{},DEFAULT_GET_METADATA_OPTIONS),m=resolve$1(f.path),te;try{te=await realpath$1(m)}catch{throw Error(`Path does not exist: ${m}`)}if(!(await stat$1(te)).isDirectory())throw Error(`Path is not a directory: ${te}`);f.path=te;let re=resolveTemplate(f.template);resetMatchCache(),log$2.debug(`Building file tree (respectIgnored: ${f.respectIgnored})...`);let[ie,ae]=await Promise.all([resolveCredentials(f.credentials),getTree(te,f.respectIgnored)]);log$2.debug(`Root file tree contains ${ae.length} entries`);let oe={arduinoLibraryProperties:void 0,cinderCinderblockXml:void 0,codemetaJson:void 0,codeStats:void 0,dependencyUpdates:void 0,fileStats:void 0,gitConfig:void 0,github:void 0,githubActions:void 0,gitStats:void 0,goGoMod:void 0,goGoreleaserYaml:void 0,javaPomXml:void 0,licenseFile:void 0,metadataFile:void 0,metascope:void 0,nodeNpmRegistry:void 0,nodePackageJson:void 0,obsidianPluginManifestJson:void 0,obsidianPluginRegistry:void 0,openframeworksAddonConfigMk:void 0,openframeworksInstallXml:void 0,processingLibraryProperties:void 0,processingSketchProperties:void 0,publiccodeYaml:void 0,pythonPkgInfo:void 0,pythonPypiRegistry:void 0,pythonPyprojectToml:void 0,pythonSetupCfg:void 0,pythonSetupPy:void 0,readmeFile:void 0,rubyGemspec:void 0,rustCargoToml:void 0,xcodeInfoPlist:void 0,xcodeProjectPbxproj:void 0},se=f.sources?sources.filter(l=>f.sources.includes(l.key)):sources,ce=new Set,le=new Set(se.map(l=>l.phase));for(let l of[...le].toSorted((l,d)=>l-d)){let d=se.filter(d=>d.phase===l);log$2.debug(`Phase ${l}: Running ${d.length} sources...`),await runSources(d,{completedSources:ce,metadata:{...oe},options:{...f,credentials:ie,path:te}},oe);for(let l of d)ce.add(l.key)}let ue=performance.now()-d;if(oe.metascope&&(oe.metascope.data.durationMs=Math.round(ue)),log$2.debug(`Metadata duration: ${prettyMilliseconds(ue)}`),re){let l=performance.now(),m=stripUndefined(re(oe,f.templateData??{}))??{},te=performance.now()-l;return log$2.debug(`Template duration: ${prettyMilliseconds(te)}`),log$2.debug(`Total duration: ${prettyMilliseconds(performance.now()-d)}`),m}let de=stripUndefined(oe);return log$2.debug(`Total duration: ${prettyMilliseconds(performance.now()-d)}`),de}const cliCommandName=Object.keys(bin).at(0),builtInTemplateNames=Object.keys(templates),yargsInstance=Yargs(hideBin(process.argv)),kebabToCamelSource=new Map(sourceNames.map(l=>[kebabCase(l),l])),kebabSourceNames=[...kebabToCamelSource.keys()];function resolveSourceArg(l){return sourceNames.includes(l)?l:kebabToCamelSource.get(l)}await yargsInstance.scriptName(cliCommandName).command(`$0 [path]`,`Extract metadata from a code repository.`,l=>l.positional(`path`,{default:DEFAULT_GET_METADATA_OPTIONS.path,description:`Project directory path`,type:`string`}).option(`template`,{alias:`t`,description:`Built-in template name (${builtInTemplateNames.map(l=>`\`${l}\``).join(`, `)}) or path to a custom template file`,type:`string`}).option(`github-token`,{description:"GitHub API token (or set `$GITHUB_TOKEN`)",type:`string`}).option(`author-name`,{description:`Optional author name(s) for ownership checks in templates`,type:`string`,array:!0}).option(`github-account`,{description:`Optional GitHub account name(s) for ownership checks in templates`,type:`string`,array:!0}).option(`absolute`,{description:"Output absolute paths. Use `--no-absolute` for relative paths.",type:`boolean`,default:DEFAULT_GET_METADATA_OPTIONS.absolute}).option(`offline`,{description:`Skip sources requiring network requests`,type:`boolean`,default:DEFAULT_GET_METADATA_OPTIONS.offline}).option(`sources`,{alias:`s`,array:!0,coerce:l=>l.map(l=>resolveSourceArg(l)??l),description:`Only run specific metadata sources (${kebabSourceNames.map(l=>`\`${l}\``).join(`, `)}); defaults to all`,type:`string`}).check(l=>{let d=l.sources?.filter(l=>!sourceNames.includes(l));if(d&&d.length>0)throw Error(`Invalid source(s): ${d.join(`, `)}. Valid sources: ${kebabSourceNames.join(`, `)}`);return!0}).option(`no-ignore`,{description:`Include files ignored by .gitignore in the file tree`,type:`boolean`,default:!DEFAULT_GET_METADATA_OPTIONS.respectIgnored}).option(`recursive`,{alias:`r`,description:`Search for metadata files recursively in subdirectories`,type:`boolean`,default:DEFAULT_GET_METADATA_OPTIONS.recursive}).option(`workspaces`,{alias:`w`,coerce:l=>{if(l===!0||l===!1)return l;let d=(Array.isArray(l)?l:[l]).filter(l=>typeof l==`string`);return d.length>0?d:!0},default:DEFAULT_GET_METADATA_OPTIONS.workspaces,description:"Include workspace-specific metadata in monorepos; pass a `boolean` to enable or disable auto-detection, or pass one or more `string`s to explicitly define workspace paths"}).option(`verbose`,{description:`Run with verbose logging`,type:`boolean`,default:!1}),async l=>{let d=createLogger$3({name,verbose:l.verbose??!1,logToConsole:{showTime:!1}});setLogger$1(d),setLogger(getChildLogger(d,`read-pyproject`)),d.debug(`Starting metadata extraction...`);let f;if(l.template)if(isKeyOfTemplate(l.template))f=templates[l.template];else try{let{createJiti:m}=await import(`./jiti-Bqwg645p.js`),te=await m(import.meta.url).import(l.template);if(typeof te==`object`&&te&&`default`in te&&typeof te.default==`function`){let l=te.default;f=(d,f)=>l(d,f)}if(typeof f!=`function`){d.error(`Template file must export a function as default export. Use defineTemplate().`),process.exitCode=1;return}}catch(l){d.error(`Failed to load template: ${l instanceof Error?l.message:String(l)}`),process.exitCode=1;return}try{let d=l.githubToken?{githubToken:l.githubToken}:void 0,m={...l.authorName?{authorName:l.authorName}:{},...l.githubAccount?{githubAccount:l.githubAccount}:{}},te={absolute:l.absolute,credentials:d,offline:l.offline,path:l.path,recursive:l.recursive,respectIgnored:l.noIgnore?!1:void 0,sources:l.sources,templateData:m,workspaces:l.workspaces},re=f?await getMetadata({...te,template:f}):await getMetadata(te),ie=process.stdout.isTTY?JSON.stringify(re,void 0,2):JSON.stringify(re);process.stdout.write(ie+`
45960
45961
  `)}catch(l){d.error(`Metadata extraction failed: ${l instanceof Error?l.message:String(l)}`),process.exitCode=1}}).alias(`h`,`help`).version(version$1).alias(`v`,`version`).help().strict().wrap(process.stdout.isTTY?Math.min(120,yargsInstance.terminalWidth()):0).parse();export{};