@samarium.sdk/new 0.20.0 → 0.21.1

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.
Files changed (2) hide show
  1. package/bin/samarium +82 -78
  2. package/package.json +1 -1
package/bin/samarium CHANGED
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
- import{createRequire as JG}from"node:module";var BG=Object.create;var{getPrototypeOf:ZG,defineProperty:cP,getOwnPropertyNames:qG}=Object;var XG=Object.prototype.hasOwnProperty;var UD=(D,F,P)=>{P=D!=null?BG(ZG(D)):{};let B=F||!D||!D.__esModule?cP(P,"default",{value:D,enumerable:!0}):P;for(let Z of qG(D))if(!XG.call(B,Z))cP(B,Z,{get:()=>D[Z],enumerable:!0});return B};var Q=(D,F)=>()=>(F||D((F={exports:{}}).exports,F),F.exports);var pD=JG(import.meta.url);var c8=Q((HG)=>{class n5 extends Error{constructor(D,F,P){super(P);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=F,this.exitCode=D,this.nestedError=void 0}}class dP extends n5{constructor(D){super(1,"commander.invalidArgument",D);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}HG.CommanderError=n5;HG.InvalidArgumentError=dP});var M6=Q((QG)=>{var{InvalidArgumentError:OG}=c8();class pP{constructor(D,F){switch(this.description=F||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,D[0]){case"<":this.required=!0,this._name=D.slice(1,-1);break;case"[":this.required=!1,this._name=D.slice(1,-1);break;default:this.required=!0,this._name=D;break}if(this._name.length>3&&this._name.slice(-3)==="...")this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_concatValue(D,F){if(F===this.defaultValue||!Array.isArray(F))return[D];return F.concat(D)}default(D,F){return this.defaultValue=D,this.defaultValueDescription=F,this}argParser(D){return this.parseArg=D,this}choices(D){return this.argChoices=D.slice(),this.parseArg=(F,P)=>{if(!this.argChoices.includes(F))throw new OG(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(F,P);return F},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function zG(D){let F=D.name()+(D.variadic===!0?"...":"");return D.required?"<"+F+">":"["+F+"]"}QG.Argument=pP;QG.humanReadableArgName=zG});var i5=Q(($G)=>{var{humanReadableArgName:IG}=M6();class rP{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(D){let F=D.commands.filter((P)=>!P._hidden);if(D._hasImplicitHelpCommand()){let[,P,B]=D._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),Z=D.createCommand(P).helpOption(!1);if(Z.description(D._helpCommandDescription),B)Z.arguments(B);F.push(Z)}if(this.sortSubcommands)F.sort((P,B)=>{return P.name().localeCompare(B.name())});return F}compareOptions(D,F){let P=(B)=>{return B.short?B.short.replace(/^-/,""):B.long.replace(/^--/,"")};return P(D).localeCompare(P(F))}visibleOptions(D){let F=D.options.filter((Z)=>!Z.hidden),P=D._hasHelpOption&&D._helpShortFlag&&!D._findOption(D._helpShortFlag),B=D._hasHelpOption&&!D._findOption(D._helpLongFlag);if(P||B){let Z;if(!P)Z=D.createOption(D._helpLongFlag,D._helpDescription);else if(!B)Z=D.createOption(D._helpShortFlag,D._helpDescription);else Z=D.createOption(D._helpFlags,D._helpDescription);F.push(Z)}if(this.sortOptions)F.sort(this.compareOptions);return F}visibleGlobalOptions(D){if(!this.showGlobalOptions)return[];let F=[];for(let P=D.parent;P;P=P.parent){let B=P.options.filter((Z)=>!Z.hidden);F.push(...B)}if(this.sortOptions)F.sort(this.compareOptions);return F}visibleArguments(D){if(D._argsDescription)D.registeredArguments.forEach((F)=>{F.description=F.description||D._argsDescription[F.name()]||""});if(D.registeredArguments.find((F)=>F.description))return D.registeredArguments;return[]}subcommandTerm(D){let F=D.registeredArguments.map((P)=>IG(P)).join(" ");return D._name+(D._aliases[0]?"|"+D._aliases[0]:"")+(D.options.length?" [options]":"")+(F?" "+F:"")}optionTerm(D){return D.flags}argumentTerm(D){return D.name()}longestSubcommandTermLength(D,F){return F.visibleCommands(D).reduce((P,B)=>{return Math.max(P,F.subcommandTerm(B).length)},0)}longestOptionTermLength(D,F){return F.visibleOptions(D).reduce((P,B)=>{return Math.max(P,F.optionTerm(B).length)},0)}longestGlobalOptionTermLength(D,F){return F.visibleGlobalOptions(D).reduce((P,B)=>{return Math.max(P,F.optionTerm(B).length)},0)}longestArgumentTermLength(D,F){return F.visibleArguments(D).reduce((P,B)=>{return Math.max(P,F.argumentTerm(B).length)},0)}commandUsage(D){let F=D._name;if(D._aliases[0])F=F+"|"+D._aliases[0];let P="";for(let B=D.parent;B;B=B.parent)P=B.name()+" "+P;return P+F+" "+D.usage()}commandDescription(D){return D.description()}subcommandDescription(D){return D.summary()||D.description()}optionDescription(D){let F=[];if(D.argChoices)F.push(`choices: ${D.argChoices.map((P)=>JSON.stringify(P)).join(", ")}`);if(D.defaultValue!==void 0){if(D.required||D.optional||D.isBoolean()&&typeof D.defaultValue==="boolean")F.push(`default: ${D.defaultValueDescription||JSON.stringify(D.defaultValue)}`)}if(D.presetArg!==void 0&&D.optional)F.push(`preset: ${JSON.stringify(D.presetArg)}`);if(D.envVar!==void 0)F.push(`env: ${D.envVar}`);if(F.length>0)return`${D.description} (${F.join(", ")})`;return D.description}argumentDescription(D){let F=[];if(D.argChoices)F.push(`choices: ${D.argChoices.map((P)=>JSON.stringify(P)).join(", ")}`);if(D.defaultValue!==void 0)F.push(`default: ${D.defaultValueDescription||JSON.stringify(D.defaultValue)}`);if(F.length>0){let P=`(${F.join(", ")})`;if(D.description)return`${D.description} ${P}`;return P}return D.description}formatHelp(D,F){let P=F.padWidth(D,F),B=F.helpWidth||80,Z=2,q=2;function X(z,I){if(I){let R=`${z.padEnd(P+2)}${I}`;return F.wrap(R,B-2,P+2)}return z}function J(z){return z.join(`
2
+ import{createRequire as JG}from"node:module";var BG=Object.create;var{getPrototypeOf:ZG,defineProperty:cP,getOwnPropertyNames:qG}=Object;var XG=Object.prototype.hasOwnProperty;var UD=(D,F,P)=>{P=D!=null?BG(ZG(D)):{};let B=F||!D||!D.__esModule?cP(P,"default",{value:D,enumerable:!0}):P;for(let Z of qG(D))if(!XG.call(B,Z))cP(B,Z,{get:()=>D[Z],enumerable:!0});return B};var Q=(D,F)=>()=>(F||D((F={exports:{}}).exports,F),F.exports);var pD=JG(import.meta.url);var d8=Q((HG)=>{class n5 extends Error{constructor(D,F,P){super(P);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=F,this.exitCode=D,this.nestedError=void 0}}class dP extends n5{constructor(D){super(1,"commander.invalidArgument",D);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}HG.CommanderError=n5;HG.InvalidArgumentError=dP});var M6=Q((QG)=>{var{InvalidArgumentError:OG}=d8();class pP{constructor(D,F){switch(this.description=F||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,D[0]){case"<":this.required=!0,this._name=D.slice(1,-1);break;case"[":this.required=!1,this._name=D.slice(1,-1);break;default:this.required=!0,this._name=D;break}if(this._name.length>3&&this._name.slice(-3)==="...")this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_concatValue(D,F){if(F===this.defaultValue||!Array.isArray(F))return[D];return F.concat(D)}default(D,F){return this.defaultValue=D,this.defaultValueDescription=F,this}argParser(D){return this.parseArg=D,this}choices(D){return this.argChoices=D.slice(),this.parseArg=(F,P)=>{if(!this.argChoices.includes(F))throw new OG(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(F,P);return F},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function zG(D){let F=D.name()+(D.variadic===!0?"...":"");return D.required?"<"+F+">":"["+F+"]"}QG.Argument=pP;QG.humanReadableArgName=zG});var i5=Q(($G)=>{var{humanReadableArgName:IG}=M6();class rP{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(D){let F=D.commands.filter((P)=>!P._hidden);if(D._hasImplicitHelpCommand()){let[,P,B]=D._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),Z=D.createCommand(P).helpOption(!1);if(Z.description(D._helpCommandDescription),B)Z.arguments(B);F.push(Z)}if(this.sortSubcommands)F.sort((P,B)=>{return P.name().localeCompare(B.name())});return F}compareOptions(D,F){let P=(B)=>{return B.short?B.short.replace(/^-/,""):B.long.replace(/^--/,"")};return P(D).localeCompare(P(F))}visibleOptions(D){let F=D.options.filter((Z)=>!Z.hidden),P=D._hasHelpOption&&D._helpShortFlag&&!D._findOption(D._helpShortFlag),B=D._hasHelpOption&&!D._findOption(D._helpLongFlag);if(P||B){let Z;if(!P)Z=D.createOption(D._helpLongFlag,D._helpDescription);else if(!B)Z=D.createOption(D._helpShortFlag,D._helpDescription);else Z=D.createOption(D._helpFlags,D._helpDescription);F.push(Z)}if(this.sortOptions)F.sort(this.compareOptions);return F}visibleGlobalOptions(D){if(!this.showGlobalOptions)return[];let F=[];for(let P=D.parent;P;P=P.parent){let B=P.options.filter((Z)=>!Z.hidden);F.push(...B)}if(this.sortOptions)F.sort(this.compareOptions);return F}visibleArguments(D){if(D._argsDescription)D.registeredArguments.forEach((F)=>{F.description=F.description||D._argsDescription[F.name()]||""});if(D.registeredArguments.find((F)=>F.description))return D.registeredArguments;return[]}subcommandTerm(D){let F=D.registeredArguments.map((P)=>IG(P)).join(" ");return D._name+(D._aliases[0]?"|"+D._aliases[0]:"")+(D.options.length?" [options]":"")+(F?" "+F:"")}optionTerm(D){return D.flags}argumentTerm(D){return D.name()}longestSubcommandTermLength(D,F){return F.visibleCommands(D).reduce((P,B)=>{return Math.max(P,F.subcommandTerm(B).length)},0)}longestOptionTermLength(D,F){return F.visibleOptions(D).reduce((P,B)=>{return Math.max(P,F.optionTerm(B).length)},0)}longestGlobalOptionTermLength(D,F){return F.visibleGlobalOptions(D).reduce((P,B)=>{return Math.max(P,F.optionTerm(B).length)},0)}longestArgumentTermLength(D,F){return F.visibleArguments(D).reduce((P,B)=>{return Math.max(P,F.argumentTerm(B).length)},0)}commandUsage(D){let F=D._name;if(D._aliases[0])F=F+"|"+D._aliases[0];let P="";for(let B=D.parent;B;B=B.parent)P=B.name()+" "+P;return P+F+" "+D.usage()}commandDescription(D){return D.description()}subcommandDescription(D){return D.summary()||D.description()}optionDescription(D){let F=[];if(D.argChoices)F.push(`choices: ${D.argChoices.map((P)=>JSON.stringify(P)).join(", ")}`);if(D.defaultValue!==void 0){if(D.required||D.optional||D.isBoolean()&&typeof D.defaultValue==="boolean")F.push(`default: ${D.defaultValueDescription||JSON.stringify(D.defaultValue)}`)}if(D.presetArg!==void 0&&D.optional)F.push(`preset: ${JSON.stringify(D.presetArg)}`);if(D.envVar!==void 0)F.push(`env: ${D.envVar}`);if(F.length>0)return`${D.description} (${F.join(", ")})`;return D.description}argumentDescription(D){let F=[];if(D.argChoices)F.push(`choices: ${D.argChoices.map((P)=>JSON.stringify(P)).join(", ")}`);if(D.defaultValue!==void 0)F.push(`default: ${D.defaultValueDescription||JSON.stringify(D.defaultValue)}`);if(F.length>0){let P=`(${F.join(", ")})`;if(D.description)return`${D.description} ${P}`;return P}return D.description}formatHelp(D,F){let P=F.padWidth(D,F),B=F.helpWidth||80,Z=2,q=2;function X(z,I){if(I){let R=`${z.padEnd(P+2)}${I}`;return F.wrap(R,B-2,P+2)}return z}function J(z){return z.join(`
3
3
  `).replace(/^/gm," ".repeat(2))}let Y=[`Usage: ${F.commandUsage(D)}`,""],H=F.commandDescription(D);if(H.length>0)Y=Y.concat([F.wrap(H,B,0),""]);let W=F.visibleArguments(D).map((z)=>{return X(F.argumentTerm(z),F.argumentDescription(z))});if(W.length>0)Y=Y.concat(["Arguments:",J(W),""]);let U=F.visibleOptions(D).map((z)=>{return X(F.optionTerm(z),F.optionDescription(z))});if(U.length>0)Y=Y.concat(["Options:",J(U),""]);if(this.showGlobalOptions){let z=F.visibleGlobalOptions(D).map((I)=>{return X(F.optionTerm(I),F.optionDescription(I))});if(z.length>0)Y=Y.concat(["Global Options:",J(z),""])}let O=F.visibleCommands(D).map((z)=>{return X(F.subcommandTerm(z),F.subcommandDescription(z))});if(O.length>0)Y=Y.concat(["Commands:",J(O),""]);return Y.join(`
4
4
  `)}padWidth(D,F){return Math.max(F.longestOptionTermLength(D,F),F.longestGlobalOptionTermLength(D,F),F.longestSubcommandTermLength(D,F),F.longestArgumentTermLength(D,F))}wrap(D,F,P,B=40){let q=new RegExp(`[\\n][${" \\f\\t\\v   -    \uFEFF"}]+`);if(D.match(q))return D;let X=F-P;if(X<B)return D;let J=D.slice(0,P),Y=D.slice(P).replace(`\r
5
5
  `,`
6
6
  `),H=" ".repeat(P),U=`\\s${"​"}`,O=new RegExp(`
7
7
  |.{1,${X-1}}([${U}]|$)|[^${U}]+?([${U}]|$)`,"g"),z=Y.match(O)||[];return J+z.map((I,R)=>{if(I===`
8
8
  `)return"";return(R>0?H:"")+I.trimEnd()}).join(`
9
- `)}}$G.Help=rP});var o5=Q((AG)=>{var{InvalidArgumentError:KG}=c8();class aP{constructor(D,F){this.flags=D,this.description=F||"",this.required=D.includes("<"),this.optional=D.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(D),this.mandatory=!1;let P=nP(D);if(this.short=P.shortFlag,this.long=P.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(D,F){return this.defaultValue=D,this.defaultValueDescription=F,this}preset(D){return this.presetArg=D,this}conflicts(D){return this.conflictsWith=this.conflictsWith.concat(D),this}implies(D){let F=D;if(typeof D==="string")F={[D]:!0};return this.implied=Object.assign(this.implied||{},F),this}env(D){return this.envVar=D,this}argParser(D){return this.parseArg=D,this}makeOptionMandatory(D=!0){return this.mandatory=!!D,this}hideHelp(D=!0){return this.hidden=!!D,this}_concatValue(D,F){if(F===this.defaultValue||!Array.isArray(F))return[D];return F.concat(D)}choices(D){return this.argChoices=D.slice(),this.parseArg=(F,P)=>{if(!this.argChoices.includes(F))throw new KG(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(F,P);return F},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){return EG(this.name().replace(/^no-/,""))}is(D){return this.short===D||this.long===D}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class sP{constructor(D){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,D.forEach((F)=>{if(F.negate)this.negativeOptions.set(F.attributeName(),F);else this.positiveOptions.set(F.attributeName(),F)}),this.negativeOptions.forEach((F,P)=>{if(this.positiveOptions.has(P))this.dualOptions.add(P)})}valueFromOption(D,F){let P=F.attributeName();if(!this.dualOptions.has(P))return!0;let B=this.negativeOptions.get(P).presetArg,Z=B!==void 0?B:!1;return F.negate===(Z===D)}}function EG(D){return D.split("-").reduce((F,P)=>{return F+P[0].toUpperCase()+P.slice(1)})}function nP(D){let F,P,B=D.split(/[ |,]+/);if(B.length>1&&!/^[[<]/.test(B[1]))F=B.shift();if(P=B.shift(),!F&&/^-[^-]$/.test(P))F=P,P=void 0;return{shortFlag:F,longFlag:P}}AG.Option=aP;AG.splitOptionFlags=nP;AG.DualOptions=sP});var iP=Q((bG)=>{function VG(D,F){if(Math.abs(D.length-F.length)>3)return Math.max(D.length,F.length);let P=[];for(let B=0;B<=D.length;B++)P[B]=[B];for(let B=0;B<=F.length;B++)P[0][B]=B;for(let B=1;B<=F.length;B++)for(let Z=1;Z<=D.length;Z++){let q=1;if(D[Z-1]===F[B-1])q=0;else q=1;if(P[Z][B]=Math.min(P[Z-1][B]+1,P[Z][B-1]+1,P[Z-1][B-1]+q),Z>1&&B>1&&D[Z-1]===F[B-2]&&D[Z-2]===F[B-1])P[Z][B]=Math.min(P[Z][B],P[Z-2][B-2]+1)}return P[D.length][F.length]}function jG(D,F){if(!F||F.length===0)return"";F=Array.from(new Set(F));let P=D.startsWith("--");if(P)D=D.slice(2),F=F.map((X)=>X.slice(2));let B=[],Z=3,q=0.4;if(F.forEach((X)=>{if(X.length<=1)return;let J=VG(D,X),Y=Math.max(D.length,X.length);if((Y-J)/Y>q){if(J<Z)Z=J,B=[X];else if(J===Z)B.push(X)}}),B.sort((X,J)=>X.localeCompare(J)),P)B=B.map((X)=>`--${X}`);if(B.length>1)return`
9
+ `)}}$G.Help=rP});var o5=Q((AG)=>{var{InvalidArgumentError:KG}=d8();class aP{constructor(D,F){this.flags=D,this.description=F||"",this.required=D.includes("<"),this.optional=D.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(D),this.mandatory=!1;let P=nP(D);if(this.short=P.shortFlag,this.long=P.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(D,F){return this.defaultValue=D,this.defaultValueDescription=F,this}preset(D){return this.presetArg=D,this}conflicts(D){return this.conflictsWith=this.conflictsWith.concat(D),this}implies(D){let F=D;if(typeof D==="string")F={[D]:!0};return this.implied=Object.assign(this.implied||{},F),this}env(D){return this.envVar=D,this}argParser(D){return this.parseArg=D,this}makeOptionMandatory(D=!0){return this.mandatory=!!D,this}hideHelp(D=!0){return this.hidden=!!D,this}_concatValue(D,F){if(F===this.defaultValue||!Array.isArray(F))return[D];return F.concat(D)}choices(D){return this.argChoices=D.slice(),this.parseArg=(F,P)=>{if(!this.argChoices.includes(F))throw new KG(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(F,P);return F},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){return EG(this.name().replace(/^no-/,""))}is(D){return this.short===D||this.long===D}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class sP{constructor(D){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,D.forEach((F)=>{if(F.negate)this.negativeOptions.set(F.attributeName(),F);else this.positiveOptions.set(F.attributeName(),F)}),this.negativeOptions.forEach((F,P)=>{if(this.positiveOptions.has(P))this.dualOptions.add(P)})}valueFromOption(D,F){let P=F.attributeName();if(!this.dualOptions.has(P))return!0;let B=this.negativeOptions.get(P).presetArg,Z=B!==void 0?B:!1;return F.negate===(Z===D)}}function EG(D){return D.split("-").reduce((F,P)=>{return F+P[0].toUpperCase()+P.slice(1)})}function nP(D){let F,P,B=D.split(/[ |,]+/);if(B.length>1&&!/^[[<]/.test(B[1]))F=B.shift();if(P=B.shift(),!F&&/^-[^-]$/.test(P))F=P,P=void 0;return{shortFlag:F,longFlag:P}}AG.Option=aP;AG.splitOptionFlags=nP;AG.DualOptions=sP});var iP=Q((bG)=>{function VG(D,F){if(Math.abs(D.length-F.length)>3)return Math.max(D.length,F.length);let P=[];for(let B=0;B<=D.length;B++)P[B]=[B];for(let B=0;B<=F.length;B++)P[0][B]=B;for(let B=1;B<=F.length;B++)for(let Z=1;Z<=D.length;Z++){let q=1;if(D[Z-1]===F[B-1])q=0;else q=1;if(P[Z][B]=Math.min(P[Z-1][B]+1,P[Z][B-1]+1,P[Z-1][B-1]+q),Z>1&&B>1&&D[Z-1]===F[B-2]&&D[Z-2]===F[B-1])P[Z][B]=Math.min(P[Z][B],P[Z-2][B-2]+1)}return P[D.length][F.length]}function jG(D,F){if(!F||F.length===0)return"";F=Array.from(new Set(F));let P=D.startsWith("--");if(P)D=D.slice(2),F=F.map((X)=>X.slice(2));let B=[],Z=3,q=0.4;if(F.forEach((X)=>{if(X.length<=1)return;let J=VG(D,X),Y=Math.max(D.length,X.length);if((Y-J)/Y>q){if(J<Z)Z=J,B=[X];else if(J===Z)B.push(X)}}),B.sort((X,J)=>X.localeCompare(J)),P)B=B.map((X)=>`--${X}`);if(B.length>1)return`
10
10
  (Did you mean one of ${B.join(", ")}?)`;if(B.length===1)return`
11
- (Did you mean ${B[0]}?)`;return""}bG.suggestSimilar=jG});var FB=Q((fG)=>{var TG=pD("events").EventEmitter,t5=pD("child_process"),v0=pD("path"),e5=pD("fs"),WD=pD("process"),{Argument:NG,humanReadableArgName:uG}=M6(),{CommanderError:D4}=c8(),{Help:_G}=i5(),{Option:oP,splitOptionFlags:kG,DualOptions:xG}=o5(),{suggestSimilar:tP}=iP();class F4 extends TG{constructor(D){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=D||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:(F)=>WD.stdout.write(F),writeErr:(F)=>WD.stderr.write(F),getOutHelpWidth:()=>WD.stdout.isTTY?WD.stdout.columns:void 0,getErrHelpWidth:()=>WD.stderr.isTTY?WD.stderr.columns:void 0,outputError:(F,P)=>P(F)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(D){return this._outputConfiguration=D._outputConfiguration,this._hasHelpOption=D._hasHelpOption,this._helpFlags=D._helpFlags,this._helpDescription=D._helpDescription,this._helpShortFlag=D._helpShortFlag,this._helpLongFlag=D._helpLongFlag,this._helpCommandName=D._helpCommandName,this._helpCommandnameAndArgs=D._helpCommandnameAndArgs,this._helpCommandDescription=D._helpCommandDescription,this._helpConfiguration=D._helpConfiguration,this._exitCallback=D._exitCallback,this._storeOptionsAsProperties=D._storeOptionsAsProperties,this._combineFlagAndOptionalValue=D._combineFlagAndOptionalValue,this._allowExcessArguments=D._allowExcessArguments,this._enablePositionalOptions=D._enablePositionalOptions,this._showHelpAfterError=D._showHelpAfterError,this._showSuggestionAfterError=D._showSuggestionAfterError,this}_getCommandAndAncestors(){let D=[];for(let F=this;F;F=F.parent)D.push(F);return D}command(D,F,P){let B=F,Z=P;if(typeof B==="object"&&B!==null)Z=B,B=null;Z=Z||{};let[,q,X]=D.match(/([^ ]+) *(.*)/),J=this.createCommand(q);if(B)J.description(B),J._executableHandler=!0;if(Z.isDefault)this._defaultCommandName=J._name;if(J._hidden=!!(Z.noHelp||Z.hidden),J._executableFile=Z.executableFile||null,X)J.arguments(X);if(this.commands.push(J),J.parent=this,J.copyInheritedSettings(this),B)return this;return J}createCommand(D){return new F4(D)}createHelp(){return Object.assign(new _G,this.configureHelp())}configureHelp(D){if(D===void 0)return this._helpConfiguration;return this._helpConfiguration=D,this}configureOutput(D){if(D===void 0)return this._outputConfiguration;return Object.assign(this._outputConfiguration,D),this}showHelpAfterError(D=!0){if(typeof D!=="string")D=!!D;return this._showHelpAfterError=D,this}showSuggestionAfterError(D=!0){return this._showSuggestionAfterError=!!D,this}addCommand(D,F){if(!D._name)throw new Error(`Command passed to .addCommand() must have a name
11
+ (Did you mean ${B[0]}?)`;return""}bG.suggestSimilar=jG});var FB=Q((fG)=>{var TG=pD("events").EventEmitter,t5=pD("child_process"),v0=pD("path"),e5=pD("fs"),WD=pD("process"),{Argument:NG,humanReadableArgName:uG}=M6(),{CommanderError:D4}=d8(),{Help:_G}=i5(),{Option:oP,splitOptionFlags:kG,DualOptions:xG}=o5(),{suggestSimilar:tP}=iP();class F4 extends TG{constructor(D){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=D||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:(F)=>WD.stdout.write(F),writeErr:(F)=>WD.stderr.write(F),getOutHelpWidth:()=>WD.stdout.isTTY?WD.stdout.columns:void 0,getErrHelpWidth:()=>WD.stderr.isTTY?WD.stderr.columns:void 0,outputError:(F,P)=>P(F)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(D){return this._outputConfiguration=D._outputConfiguration,this._hasHelpOption=D._hasHelpOption,this._helpFlags=D._helpFlags,this._helpDescription=D._helpDescription,this._helpShortFlag=D._helpShortFlag,this._helpLongFlag=D._helpLongFlag,this._helpCommandName=D._helpCommandName,this._helpCommandnameAndArgs=D._helpCommandnameAndArgs,this._helpCommandDescription=D._helpCommandDescription,this._helpConfiguration=D._helpConfiguration,this._exitCallback=D._exitCallback,this._storeOptionsAsProperties=D._storeOptionsAsProperties,this._combineFlagAndOptionalValue=D._combineFlagAndOptionalValue,this._allowExcessArguments=D._allowExcessArguments,this._enablePositionalOptions=D._enablePositionalOptions,this._showHelpAfterError=D._showHelpAfterError,this._showSuggestionAfterError=D._showSuggestionAfterError,this}_getCommandAndAncestors(){let D=[];for(let F=this;F;F=F.parent)D.push(F);return D}command(D,F,P){let B=F,Z=P;if(typeof B==="object"&&B!==null)Z=B,B=null;Z=Z||{};let[,q,X]=D.match(/([^ ]+) *(.*)/),J=this.createCommand(q);if(B)J.description(B),J._executableHandler=!0;if(Z.isDefault)this._defaultCommandName=J._name;if(J._hidden=!!(Z.noHelp||Z.hidden),J._executableFile=Z.executableFile||null,X)J.arguments(X);if(this.commands.push(J),J.parent=this,J.copyInheritedSettings(this),B)return this;return J}createCommand(D){return new F4(D)}createHelp(){return Object.assign(new _G,this.configureHelp())}configureHelp(D){if(D===void 0)return this._helpConfiguration;return this._helpConfiguration=D,this}configureOutput(D){if(D===void 0)return this._outputConfiguration;return Object.assign(this._outputConfiguration,D),this}showHelpAfterError(D=!0){if(typeof D!=="string")D=!!D;return this._showHelpAfterError=D,this}showSuggestionAfterError(D=!0){return this._showSuggestionAfterError=!!D,this}addCommand(D,F){if(!D._name)throw new Error(`Command passed to .addCommand() must have a name
12
12
  - specify the name in Command constructor or using .name()`);if(F=F||{},F.isDefault)this._defaultCommandName=D._name;if(F.noHelp||F.hidden)D._hidden=!0;return this.commands.push(D),D.parent=this,this}createArgument(D,F){return new NG(D,F)}argument(D,F,P,B){let Z=this.createArgument(D,F);if(typeof P==="function")Z.default(B).argParser(P);else Z.default(P);return this.addArgument(Z),this}arguments(D){return D.trim().split(/ +/).forEach((F)=>{this.argument(F)}),this}addArgument(D){let F=this.registeredArguments.slice(-1)[0];if(F&&F.variadic)throw new Error(`only the last argument can be variadic '${F.name()}'`);if(D.required&&D.defaultValue!==void 0&&D.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${D.name()}'`);return this.registeredArguments.push(D),this}addHelpCommand(D,F){if(D===!1)this._addImplicitHelpCommand=!1;else{if(this._addImplicitHelpCommand=!0,typeof D==="string")this._helpCommandName=D.split(" ")[0],this._helpCommandnameAndArgs=D;this._helpCommandDescription=F||this._helpCommandDescription}return this}_hasImplicitHelpCommand(){if(this._addImplicitHelpCommand===void 0)return this.commands.length&&!this._actionHandler&&!this._findCommand("help");return this._addImplicitHelpCommand}hook(D,F){let P=["preSubcommand","preAction","postAction"];if(!P.includes(D))throw new Error(`Unexpected value for event passed to hook : '${D}'.
13
13
  Expecting one of '${P.join("', '")}'`);if(this._lifeCycleHooks[D])this._lifeCycleHooks[D].push(F);else this._lifeCycleHooks[D]=[F];return this}exitOverride(D){if(D)this._exitCallback=D;else this._exitCallback=(F)=>{if(F.code!=="commander.executeSubCommandAsync")throw F};return this}_exit(D,F,P){if(this._exitCallback)this._exitCallback(new D4(D,F,P));WD.exit(D)}action(D){let F=(P)=>{let B=this.registeredArguments.length,Z=P.slice(0,B);if(this._storeOptionsAsProperties)Z[B]=this;else Z[B]=this.opts();return Z.push(this),D.apply(this,Z)};return this._actionHandler=F,this}createOption(D,F){return new oP(D,F)}_callParseArg(D,F,P,B){try{return D.parseArg(F,P)}catch(Z){if(Z.code==="commander.invalidArgument"){let q=`${B} ${Z.message}`;this.error(q,{exitCode:Z.exitCode,code:Z.code})}throw Z}}addOption(D){let F=D.name(),P=D.attributeName();if(D.negate){let Z=D.long.replace(/^--no-/,"--");if(!this._findOption(Z))this.setOptionValueWithSource(P,D.defaultValue===void 0?!0:D.defaultValue,"default")}else if(D.defaultValue!==void 0)this.setOptionValueWithSource(P,D.defaultValue,"default");this.options.push(D);let B=(Z,q,X)=>{if(Z==null&&D.presetArg!==void 0)Z=D.presetArg;let J=this.getOptionValue(P);if(Z!==null&&D.parseArg)Z=this._callParseArg(D,Z,J,q);else if(Z!==null&&D.variadic)Z=D._concatValue(Z,J);if(Z==null)if(D.negate)Z=!1;else if(D.isBoolean()||D.optional)Z=!0;else Z="";this.setOptionValueWithSource(P,Z,X)};if(this.on("option:"+F,(Z)=>{let q=`error: option '${D.flags}' argument '${Z}' is invalid.`;B(Z,q,"cli")}),D.envVar)this.on("optionEnv:"+F,(Z)=>{let q=`error: option '${D.flags}' value '${Z}' from env '${D.envVar}' is invalid.`;B(Z,q,"env")});return this}_optionEx(D,F,P,B,Z){if(typeof F==="object"&&F instanceof oP)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let q=this.createOption(F,P);if(q.makeOptionMandatory(!!D.mandatory),typeof B==="function")q.default(Z).argParser(B);else if(B instanceof RegExp){let X=B;B=(J,Y)=>{let H=X.exec(J);return H?H[0]:Y},q.default(Z).argParser(B)}else q.default(B);return this.addOption(q)}option(D,F,P,B){return this._optionEx({},D,F,P,B)}requiredOption(D,F,P,B){return this._optionEx({mandatory:!0},D,F,P,B)}combineFlagAndOptionalValue(D=!0){return this._combineFlagAndOptionalValue=!!D,this}allowUnknownOption(D=!0){return this._allowUnknownOption=!!D,this}allowExcessArguments(D=!0){return this._allowExcessArguments=!!D,this}enablePositionalOptions(D=!0){return this._enablePositionalOptions=!!D,this}passThroughOptions(D=!0){if(this._passThroughOptions=!!D,!!this.parent&&D&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(D=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!D,this}getOptionValue(D){if(this._storeOptionsAsProperties)return this[D];return this._optionValues[D]}setOptionValue(D,F){return this.setOptionValueWithSource(D,F,void 0)}setOptionValueWithSource(D,F,P){if(this._storeOptionsAsProperties)this[D]=F;else this._optionValues[D]=F;return this._optionValueSources[D]=P,this}getOptionValueSource(D){return this._optionValueSources[D]}getOptionValueSourceWithGlobals(D){let F;return this._getCommandAndAncestors().forEach((P)=>{if(P.getOptionValueSource(D)!==void 0)F=P.getOptionValueSource(D)}),F}_prepareUserArgs(D,F){if(D!==void 0&&!Array.isArray(D))throw new Error("first parameter to parse must be array or undefined");if(F=F||{},D===void 0){if(D=WD.argv,WD.versions&&WD.versions.electron)F.from="electron"}this.rawArgs=D.slice();let P;switch(F.from){case void 0:case"node":this._scriptPath=D[1],P=D.slice(2);break;case"electron":if(WD.defaultApp)this._scriptPath=D[1],P=D.slice(2);else P=D.slice(1);break;case"user":P=D.slice(0);break;default:throw new Error(`unexpected parse option { from: '${F.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",P}parse(D,F){let P=this._prepareUserArgs(D,F);return this._parseCommand([],P),this}async parseAsync(D,F){let P=this._prepareUserArgs(D,F);return await this._parseCommand([],P),this}_executeSubCommand(D,F){F=F.slice();let P=!1,B=[".js",".ts",".tsx",".mjs",".cjs"];function Z(H,W){let U=v0.resolve(H,W);if(e5.existsSync(U))return U;if(B.includes(v0.extname(W)))return;let O=B.find((z)=>e5.existsSync(`${U}${z}`));if(O)return`${U}${O}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let q=D._executableFile||`${this._name}-${D._name}`,X=this._executableDir||"";if(this._scriptPath){let H;try{H=e5.realpathSync(this._scriptPath)}catch(W){H=this._scriptPath}X=v0.resolve(v0.dirname(H),X)}if(X){let H=Z(X,q);if(!H&&!D._executableFile&&this._scriptPath){let W=v0.basename(this._scriptPath,v0.extname(this._scriptPath));if(W!==this._name)H=Z(X,`${W}-${D._name}`)}q=H||q}P=B.includes(v0.extname(q));let J;if(WD.platform!=="win32")if(P)F.unshift(q),F=DB(WD.execArgv).concat(F),J=t5.spawn(WD.argv[0],F,{stdio:"inherit"});else J=t5.spawn(q,F,{stdio:"inherit"});else F.unshift(q),F=DB(WD.execArgv).concat(F),J=t5.spawn(WD.execPath,F,{stdio:"inherit"});if(!J.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((W)=>{WD.on(W,()=>{if(J.killed===!1&&J.exitCode===null)J.kill(W)})});let Y=this._exitCallback;if(!Y)J.on("close",WD.exit.bind(WD));else J.on("close",()=>{Y(new D4(WD.exitCode||0,"commander.executeSubCommandAsync","(close)"))});J.on("error",(H)=>{if(H.code==="ENOENT"){let W=X?`searched for local subcommand relative to directory '${X}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",U=`'${q}' does not exist
14
14
  - if '${D._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
@@ -19,17 +19,17 @@ Expecting one of '${P.join("', '")}'`);if(this._lifeCycleHooks[D])this._lifeCycl
19
19
  `),this.outputHelp({error:!0});let P=F||{},B=P.exitCode||1,Z=P.code||"commander.error";this._exit(B,Z,D)}_parseOptionsEnv(){this.options.forEach((D)=>{if(D.envVar&&D.envVar in WD.env){let F=D.attributeName();if(this.getOptionValue(F)===void 0||["default","config","env"].includes(this.getOptionValueSource(F)))if(D.required||D.optional)this.emit(`optionEnv:${D.name()}`,WD.env[D.envVar]);else this.emit(`optionEnv:${D.name()}`)}})}_parseOptionsImplied(){let D=new xG(this.options),F=(P)=>{return this.getOptionValue(P)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(P))};this.options.filter((P)=>P.implied!==void 0&&F(P.attributeName())&&D.valueFromOption(this.getOptionValue(P.attributeName()),P)).forEach((P)=>{Object.keys(P.implied).filter((B)=>!F(B)).forEach((B)=>{this.setOptionValueWithSource(B,P.implied[B],"implied")})})}missingArgument(D){let F=`error: missing required argument '${D}'`;this.error(F,{code:"commander.missingArgument"})}optionMissingArgument(D){let F=`error: option '${D.flags}' argument missing`;this.error(F,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(D){let F=`error: required option '${D.flags}' not specified`;this.error(F,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(D,F){let P=(q)=>{let X=q.attributeName(),J=this.getOptionValue(X),Y=this.options.find((W)=>W.negate&&X===W.attributeName()),H=this.options.find((W)=>!W.negate&&X===W.attributeName());if(Y&&(Y.presetArg===void 0&&J===!1||Y.presetArg!==void 0&&J===Y.presetArg))return Y;return H||q},B=(q)=>{let X=P(q),J=X.attributeName();if(this.getOptionValueSource(J)==="env")return`environment variable '${X.envVar}'`;return`option '${X.flags}'`},Z=`error: ${B(D)} cannot be used with ${B(F)}`;this.error(Z,{code:"commander.conflictingOption"})}unknownOption(D){if(this._allowUnknownOption)return;let F="";if(D.startsWith("--")&&this._showSuggestionAfterError){let B=[],Z=this;do{let q=Z.createHelp().visibleOptions(Z).filter((X)=>X.long).map((X)=>X.long);B=B.concat(q),Z=Z.parent}while(Z&&!Z._enablePositionalOptions);F=tP(D,B)}let P=`error: unknown option '${D}'${F}`;this.error(P,{code:"commander.unknownOption"})}_excessArguments(D){if(this._allowExcessArguments)return;let F=this.registeredArguments.length,P=F===1?"":"s",Z=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${F} argument${P} but got ${D.length}.`;this.error(Z,{code:"commander.excessArguments"})}unknownCommand(){let D=this.args[0],F="";if(this._showSuggestionAfterError){let B=[];this.createHelp().visibleCommands(this).forEach((Z)=>{if(B.push(Z.name()),Z.alias())B.push(Z.alias())}),F=tP(D,B)}let P=`error: unknown command '${D}'${F}`;this.error(P,{code:"commander.unknownCommand"})}version(D,F,P){if(D===void 0)return this._version;this._version=D,F=F||"-V, --version",P=P||"output the version number";let B=this.createOption(F,P);return this._versionOptionName=B.attributeName(),this.options.push(B),this.on("option:"+B.name(),()=>{this._outputConfiguration.writeOut(`${D}
20
20
  `),this._exit(0,"commander.version",D)}),this}description(D,F){if(D===void 0&&F===void 0)return this._description;if(this._description=D,F)this._argsDescription=F;return this}summary(D){if(D===void 0)return this._summary;return this._summary=D,this}alias(D){if(D===void 0)return this._aliases[0];let F=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)F=this.commands[this.commands.length-1];if(D===F._name)throw new Error("Command alias can't be the same as its name");return F._aliases.push(D),this}aliases(D){if(D===void 0)return this._aliases;return D.forEach((F)=>this.alias(F)),this}usage(D){if(D===void 0){if(this._usage)return this._usage;let F=this.registeredArguments.map((P)=>{return uG(P)});return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?F:[]).join(" ")}return this._usage=D,this}name(D){if(D===void 0)return this._name;return this._name=D,this}nameFromFilename(D){return this._name=v0.basename(D,v0.extname(D)),this}executableDir(D){if(D===void 0)return this._executableDir;return this._executableDir=D,this}helpInformation(D){let F=this.createHelp();if(F.helpWidth===void 0)F.helpWidth=D&&D.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth();return F.formatHelp(this,F)}_getHelpContext(D){D=D||{};let F={error:!!D.error},P;if(F.error)P=(B)=>this._outputConfiguration.writeErr(B);else P=(B)=>this._outputConfiguration.writeOut(B);return F.write=D.write||P,F.command=this,F}outputHelp(D){let F;if(typeof D==="function")F=D,D=void 0;let P=this._getHelpContext(D);this._getCommandAndAncestors().reverse().forEach((Z)=>Z.emit("beforeAllHelp",P)),this.emit("beforeHelp",P);let B=this.helpInformation(P);if(F){if(B=F(B),typeof B!=="string"&&!Buffer.isBuffer(B))throw new Error("outputHelp callback must return a string or a Buffer")}if(P.write(B),this._helpLongFlag)this.emit(this._helpLongFlag);this.emit("afterHelp",P),this._getCommandAndAncestors().forEach((Z)=>Z.emit("afterAllHelp",P))}helpOption(D,F){if(typeof D==="boolean")return this._hasHelpOption=D,this;this._helpFlags=D||this._helpFlags,this._helpDescription=F||this._helpDescription;let P=kG(this._helpFlags);return this._helpShortFlag=P.shortFlag,this._helpLongFlag=P.longFlag,this}help(D){this.outputHelp(D);let F=WD.exitCode||0;if(F===0&&D&&typeof D!=="function"&&D.error)F=1;this._exit(F,"commander.help","(outputHelp)")}addHelpText(D,F){let P=["beforeAll","before","after","afterAll"];if(!P.includes(D))throw new Error(`Unexpected value for position to addHelpText.
21
21
  Expecting one of '${P.join("', '")}'`);let B=`${D}Help`;return this.on(B,(Z)=>{let q;if(typeof F==="function")q=F({error:Z.error,command:Z.command});else q=F;if(q)Z.write(`${q}
22
- `)}),this}}function eP(D,F){if(D._hasHelpOption&&F.find((B)=>B===D._helpLongFlag||B===D._helpShortFlag))D.outputHelp(),D._exit(0,"commander.helpDisplayed","(outputHelp)")}function DB(D){return D.map((F)=>{if(!F.startsWith("--inspect"))return F;let P,B="127.0.0.1",Z="9229",q;if((q=F.match(/^(--inspect(-brk)?)$/))!==null)P=q[1];else if((q=F.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(P=q[1],/^\d+$/.test(q[3]))Z=q[3];else B=q[3];else if((q=F.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)P=q[1],B=q[3],Z=q[4];if(P&&Z!=="0")return`${P}=${B}:${parseInt(Z)+1}`;return F})}fG.Command=F4});var qB=Q((U0,ZB)=>{var{Argument:vG}=M6(),{Command:PB}=FB(),{CommanderError:gG,InvalidArgumentError:BB}=c8(),{Help:yG}=i5(),{Option:mG}=o5();U0=ZB.exports=new PB;U0.program=U0;U0.Command=PB;U0.Option=mG;U0.Argument=vG;U0.Help=yG;U0.CommanderError=gG;U0.InvalidArgumentError=BB;U0.InvalidOptionArgumentError=BB});var UB=Q((YB)=>{Object.defineProperty(YB,"__esModule",{value:!0});YB.versionInfo=YB.version=void 0;var lG="16.9.0";YB.version=lG;var cG=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});YB.versionInfo=cG});var hD=Q((WB)=>{Object.defineProperty(WB,"__esModule",{value:!0});WB.devAssert=pG;function pG(D,F){if(!Boolean(D))throw new Error(F)}});var K6=Q((OB)=>{Object.defineProperty(OB,"__esModule",{value:!0});OB.isPromise=aG;function aG(D){return typeof(D===null||D===void 0?void 0:D.then)==="function"}});var E0=Q((zB)=>{Object.defineProperty(zB,"__esModule",{value:!0});zB.isObjectLike=nG;function nG(D){return typeof D=="object"&&D!==null}});var _D=Q((QB)=>{Object.defineProperty(QB,"__esModule",{value:!0});QB.invariant=oG;function oG(D,F){if(!Boolean(D))throw new Error(F!=null?F:"Unexpected invariant triggered.")}});var E6=Q((GB)=>{Object.defineProperty(GB,"__esModule",{value:!0});GB.getLocation=FR;var eG=_D(),DR=/\r\n|[\n\r]/g;function FR(D,F){let P=0,B=1;for(let Z of D.body.matchAll(DR)){if(typeof Z.index==="number"||eG.invariant(!1),Z.index>=F)break;P=Z.index+Z[0].length,B+=1}return{line:B,column:F+1-P}}});var P4=Q(($B)=>{Object.defineProperty($B,"__esModule",{value:!0});$B.printLocation=ZR;$B.printSourceLocation=IB;var BR=E6();function ZR(D){return IB(D.source,BR.getLocation(D.source,D.start))}function IB(D,F){let P=D.locationOffset.column-1,B="".padStart(P)+D.body,Z=F.line-1,q=D.locationOffset.line-1,X=F.line+q,J=F.line===1?P:0,Y=F.column+J,H=`${D.name}:${X}:${Y}
22
+ `)}),this}}function eP(D,F){if(D._hasHelpOption&&F.find((B)=>B===D._helpLongFlag||B===D._helpShortFlag))D.outputHelp(),D._exit(0,"commander.helpDisplayed","(outputHelp)")}function DB(D){return D.map((F)=>{if(!F.startsWith("--inspect"))return F;let P,B="127.0.0.1",Z="9229",q;if((q=F.match(/^(--inspect(-brk)?)$/))!==null)P=q[1];else if((q=F.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(P=q[1],/^\d+$/.test(q[3]))Z=q[3];else B=q[3];else if((q=F.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)P=q[1],B=q[3],Z=q[4];if(P&&Z!=="0")return`${P}=${B}:${parseInt(Z)+1}`;return F})}fG.Command=F4});var qB=Q((U0,ZB)=>{var{Argument:vG}=M6(),{Command:PB}=FB(),{CommanderError:gG,InvalidArgumentError:BB}=d8(),{Help:yG}=i5(),{Option:mG}=o5();U0=ZB.exports=new PB;U0.program=U0;U0.Command=PB;U0.Option=mG;U0.Argument=vG;U0.Help=yG;U0.CommanderError=gG;U0.InvalidArgumentError=BB;U0.InvalidOptionArgumentError=BB});var UB=Q((YB)=>{Object.defineProperty(YB,"__esModule",{value:!0});YB.versionInfo=YB.version=void 0;var lG="16.9.0";YB.version=lG;var cG=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});YB.versionInfo=cG});var hD=Q((WB)=>{Object.defineProperty(WB,"__esModule",{value:!0});WB.devAssert=pG;function pG(D,F){if(!Boolean(D))throw new Error(F)}});var K6=Q((OB)=>{Object.defineProperty(OB,"__esModule",{value:!0});OB.isPromise=aG;function aG(D){return typeof(D===null||D===void 0?void 0:D.then)==="function"}});var E0=Q((zB)=>{Object.defineProperty(zB,"__esModule",{value:!0});zB.isObjectLike=nG;function nG(D){return typeof D=="object"&&D!==null}});var _D=Q((QB)=>{Object.defineProperty(QB,"__esModule",{value:!0});QB.invariant=oG;function oG(D,F){if(!Boolean(D))throw new Error(F!=null?F:"Unexpected invariant triggered.")}});var E6=Q((GB)=>{Object.defineProperty(GB,"__esModule",{value:!0});GB.getLocation=FR;var eG=_D(),DR=/\r\n|[\n\r]/g;function FR(D,F){let P=0,B=1;for(let Z of D.body.matchAll(DR)){if(typeof Z.index==="number"||eG.invariant(!1),Z.index>=F)break;P=Z.index+Z[0].length,B+=1}return{line:B,column:F+1-P}}});var P4=Q(($B)=>{Object.defineProperty($B,"__esModule",{value:!0});$B.printLocation=ZR;$B.printSourceLocation=IB;var BR=E6();function ZR(D){return IB(D.source,BR.getLocation(D.source,D.start))}function IB(D,F){let P=D.locationOffset.column-1,B="".padStart(P)+D.body,Z=F.line-1,q=D.locationOffset.line-1,X=F.line+q,J=F.line===1?P:0,Y=F.column+J,H=`${D.name}:${X}:${Y}
23
23
  `,W=B.split(/\r\n|[\n\r]/g),U=W[Z];if(U.length>120){let O=Math.floor(Y/80),z=Y%80,I=[];for(let R=0;R<U.length;R+=80)I.push(U.slice(R,R+80));return H+RB([[`${X} |`,I[0]],...I.slice(1,O+1).map((R)=>["|",R]),["|","^".padStart(z)],["|",I[O+1]]])}return H+RB([[`${X-1} |`,W[Z-1]],[`${X} |`,U],["|","^".padStart(Y)],[`${X+1} |`,W[Z+1]]])}function RB(D){let F=D.filter(([B,Z])=>Z!==void 0),P=Math.max(...F.map(([B])=>B.length));return F.map(([B,Z])=>B.padStart(P)+(Z?" "+Z:"")).join(`
24
24
  `)}});var v=Q((AB)=>{Object.defineProperty(AB,"__esModule",{value:!0});AB.GraphQLError=void 0;AB.formatError=UR;AB.printError=HR;var JR=E0(),MB=E6(),KB=P4();function YR(D){let F=D[0];if(F==null||"kind"in F||"length"in F)return{nodes:F,source:D[1],positions:D[2],path:D[3],originalError:D[4],extensions:D[5]};return F}class B4 extends Error{constructor(D,...F){var P,B,Z;let{nodes:q,source:X,positions:J,path:Y,originalError:H,extensions:W}=YR(F);super(D);this.name="GraphQLError",this.path=Y!==null&&Y!==void 0?Y:void 0,this.originalError=H!==null&&H!==void 0?H:void 0,this.nodes=EB(Array.isArray(q)?q:q?[q]:void 0);let U=EB((P=this.nodes)===null||P===void 0?void 0:P.map((z)=>z.loc).filter((z)=>z!=null));this.source=X!==null&&X!==void 0?X:U===null||U===void 0?void 0:(B=U[0])===null||B===void 0?void 0:B.source,this.positions=J!==null&&J!==void 0?J:U===null||U===void 0?void 0:U.map((z)=>z.start),this.locations=J&&X?J.map((z)=>MB.getLocation(X,z)):U===null||U===void 0?void 0:U.map((z)=>MB.getLocation(z.source,z.start));let O=JR.isObjectLike(H===null||H===void 0?void 0:H.extensions)?H===null||H===void 0?void 0:H.extensions:void 0;if(this.extensions=(Z=W!==null&&W!==void 0?W:O)!==null&&Z!==void 0?Z:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),H!==null&&H!==void 0&&H.stack)Object.defineProperty(this,"stack",{value:H.stack,writable:!0,configurable:!0});else if(Error.captureStackTrace)Error.captureStackTrace(this,B4);else Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let D=this.message;if(this.nodes){for(let F of this.nodes)if(F.loc)D+=`
25
25
 
26
26
  `+KB.printLocation(F.loc)}else if(this.source&&this.locations)for(let F of this.locations)D+=`
27
27
 
28
- `+KB.printSourceLocation(this.source,F);return D}toJSON(){let D={message:this.message};if(this.locations!=null)D.locations=this.locations;if(this.path!=null)D.path=this.path;if(this.extensions!=null&&Object.keys(this.extensions).length>0)D.extensions=this.extensions;return D}}AB.GraphQLError=B4;function EB(D){return D===void 0||D.length===0?void 0:D}function HR(D){return D.toString()}function UR(D){return D.toJSON()}});var A6=Q((LB)=>{Object.defineProperty(LB,"__esModule",{value:!0});LB.syntaxError=QR;var zR=v();function QR(D,F,P){return new zR.GraphQLError(`Syntax Error: ${P}`,{source:D,positions:[F]})}});var A0=Q((bB)=>{Object.defineProperty(bB,"__esModule",{value:!0});bB.Token=bB.QueryDocumentKeys=bB.OperationTypeNode=bB.Location=void 0;bB.isNode=IR;class wB{constructor(D,F,P){this.start=D.start,this.end=F.end,this.startToken=D,this.endToken=F,this.source=P}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}bB.Location=wB;class VB{constructor(D,F,P,B,Z,q){this.kind=D,this.start=F,this.end=P,this.line=B,this.column=Z,this.value=q,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}bB.Token=VB;var jB={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};bB.QueryDocumentKeys=jB;var RR=new Set(Object.keys(jB));function IR(D){let F=D===null||D===void 0?void 0:D.kind;return typeof F==="string"&&RR.has(F)}var Z4;bB.OperationTypeNode=Z4;(function(D){D.QUERY="query",D.MUTATION="mutation",D.SUBSCRIPTION="subscription"})(Z4||(bB.OperationTypeNode=Z4={}))});var B8=Q((NB)=>{Object.defineProperty(NB,"__esModule",{value:!0});NB.DirectiveLocation=void 0;var q4;NB.DirectiveLocation=q4;(function(D){D.QUERY="QUERY",D.MUTATION="MUTATION",D.SUBSCRIPTION="SUBSCRIPTION",D.FIELD="FIELD",D.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",D.FRAGMENT_SPREAD="FRAGMENT_SPREAD",D.INLINE_FRAGMENT="INLINE_FRAGMENT",D.VARIABLE_DEFINITION="VARIABLE_DEFINITION",D.SCHEMA="SCHEMA",D.SCALAR="SCALAR",D.OBJECT="OBJECT",D.FIELD_DEFINITION="FIELD_DEFINITION",D.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",D.INTERFACE="INTERFACE",D.UNION="UNION",D.ENUM="ENUM",D.ENUM_VALUE="ENUM_VALUE",D.INPUT_OBJECT="INPUT_OBJECT",D.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(q4||(NB.DirectiveLocation=q4={}))});var r=Q((uB)=>{Object.defineProperty(uB,"__esModule",{value:!0});uB.Kind=void 0;var J4;uB.Kind=J4;(function(D){D.NAME="Name",D.DOCUMENT="Document",D.OPERATION_DEFINITION="OperationDefinition",D.VARIABLE_DEFINITION="VariableDefinition",D.SELECTION_SET="SelectionSet",D.FIELD="Field",D.ARGUMENT="Argument",D.FRAGMENT_SPREAD="FragmentSpread",D.INLINE_FRAGMENT="InlineFragment",D.FRAGMENT_DEFINITION="FragmentDefinition",D.VARIABLE="Variable",D.INT="IntValue",D.FLOAT="FloatValue",D.STRING="StringValue",D.BOOLEAN="BooleanValue",D.NULL="NullValue",D.ENUM="EnumValue",D.LIST="ListValue",D.OBJECT="ObjectValue",D.OBJECT_FIELD="ObjectField",D.DIRECTIVE="Directive",D.NAMED_TYPE="NamedType",D.LIST_TYPE="ListType",D.NON_NULL_TYPE="NonNullType",D.SCHEMA_DEFINITION="SchemaDefinition",D.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",D.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",D.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",D.FIELD_DEFINITION="FieldDefinition",D.INPUT_VALUE_DEFINITION="InputValueDefinition",D.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",D.UNION_TYPE_DEFINITION="UnionTypeDefinition",D.ENUM_TYPE_DEFINITION="EnumTypeDefinition",D.ENUM_VALUE_DEFINITION="EnumValueDefinition",D.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",D.DIRECTIVE_DEFINITION="DirectiveDefinition",D.SCHEMA_EXTENSION="SchemaExtension",D.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",D.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",D.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",D.UNION_TYPE_EXTENSION="UnionTypeExtension",D.ENUM_TYPE_EXTENSION="EnumTypeExtension",D.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(J4||(uB.Kind=J4={}))});var C6=Q((kB)=>{Object.defineProperty(kB,"__esModule",{value:!0});kB.isDigit=_B;kB.isLetter=H4;kB.isNameContinue=CR;kB.isNameStart=AR;kB.isWhiteSpace=ER;function ER(D){return D===9||D===32}function _B(D){return D>=48&&D<=57}function H4(D){return D>=97&&D<=122||D>=65&&D<=90}function AR(D){return H4(D)||D===95}function CR(D){return H4(D)||_B(D)||D===95}});var d8=Q((xB)=>{Object.defineProperty(xB,"__esModule",{value:!0});xB.dedentBlockStringLines=SR;xB.isPrintableAsBlockString=NR;xB.printBlockString=uR;var U4=C6();function SR(D){var F;let P=Number.MAX_SAFE_INTEGER,B=null,Z=-1;for(let X=0;X<D.length;++X){var q;let J=D[X],Y=TR(J);if(Y===J.length)continue;if(B=(q=B)!==null&&q!==void 0?q:X,Z=X,X!==0&&Y<P)P=Y}return D.map((X,J)=>J===0?X:X.slice(P)).slice((F=B)!==null&&F!==void 0?F:0,Z+1)}function TR(D){let F=0;while(F<D.length&&U4.isWhiteSpace(D.charCodeAt(F)))++F;return F}function NR(D){if(D==="")return!0;let F=!0,P=!1,B=!0,Z=!1;for(let q=0;q<D.length;++q)switch(D.codePointAt(q)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(F&&!Z)return!1;Z=!0,F=!0,P=!1;break;case 9:case 32:P||(P=F);break;default:B&&(B=P),F=!1}if(F)return!1;if(B&&Z)return!1;return!0}function uR(D,F){let P=D.replace(/"""/g,'\\"""'),B=P.split(/\r\n|[\n\r]/g),Z=B.length===1,q=B.length>1&&B.slice(1).every((z)=>z.length===0||U4.isWhiteSpace(z.charCodeAt(0))),X=P.endsWith('\\"""'),J=D.endsWith('"')&&!X,Y=D.endsWith("\\"),H=J||Y,W=!(F!==null&&F!==void 0&&F.minimize)&&(!Z||D.length>70||H||q||X),U="",O=Z&&U4.isWhiteSpace(D.charCodeAt(0));if(W&&!O||q)U+=`
28
+ `+KB.printSourceLocation(this.source,F);return D}toJSON(){let D={message:this.message};if(this.locations!=null)D.locations=this.locations;if(this.path!=null)D.path=this.path;if(this.extensions!=null&&Object.keys(this.extensions).length>0)D.extensions=this.extensions;return D}}AB.GraphQLError=B4;function EB(D){return D===void 0||D.length===0?void 0:D}function HR(D){return D.toString()}function UR(D){return D.toJSON()}});var A6=Q((LB)=>{Object.defineProperty(LB,"__esModule",{value:!0});LB.syntaxError=QR;var zR=v();function QR(D,F,P){return new zR.GraphQLError(`Syntax Error: ${P}`,{source:D,positions:[F]})}});var A0=Q((bB)=>{Object.defineProperty(bB,"__esModule",{value:!0});bB.Token=bB.QueryDocumentKeys=bB.OperationTypeNode=bB.Location=void 0;bB.isNode=IR;class wB{constructor(D,F,P){this.start=D.start,this.end=F.end,this.startToken=D,this.endToken=F,this.source=P}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}bB.Location=wB;class VB{constructor(D,F,P,B,Z,q){this.kind=D,this.start=F,this.end=P,this.line=B,this.column=Z,this.value=q,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}bB.Token=VB;var jB={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};bB.QueryDocumentKeys=jB;var RR=new Set(Object.keys(jB));function IR(D){let F=D===null||D===void 0?void 0:D.kind;return typeof F==="string"&&RR.has(F)}var Z4;bB.OperationTypeNode=Z4;(function(D){D.QUERY="query",D.MUTATION="mutation",D.SUBSCRIPTION="subscription"})(Z4||(bB.OperationTypeNode=Z4={}))});var B8=Q((NB)=>{Object.defineProperty(NB,"__esModule",{value:!0});NB.DirectiveLocation=void 0;var q4;NB.DirectiveLocation=q4;(function(D){D.QUERY="QUERY",D.MUTATION="MUTATION",D.SUBSCRIPTION="SUBSCRIPTION",D.FIELD="FIELD",D.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",D.FRAGMENT_SPREAD="FRAGMENT_SPREAD",D.INLINE_FRAGMENT="INLINE_FRAGMENT",D.VARIABLE_DEFINITION="VARIABLE_DEFINITION",D.SCHEMA="SCHEMA",D.SCALAR="SCALAR",D.OBJECT="OBJECT",D.FIELD_DEFINITION="FIELD_DEFINITION",D.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",D.INTERFACE="INTERFACE",D.UNION="UNION",D.ENUM="ENUM",D.ENUM_VALUE="ENUM_VALUE",D.INPUT_OBJECT="INPUT_OBJECT",D.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(q4||(NB.DirectiveLocation=q4={}))});var r=Q((uB)=>{Object.defineProperty(uB,"__esModule",{value:!0});uB.Kind=void 0;var J4;uB.Kind=J4;(function(D){D.NAME="Name",D.DOCUMENT="Document",D.OPERATION_DEFINITION="OperationDefinition",D.VARIABLE_DEFINITION="VariableDefinition",D.SELECTION_SET="SelectionSet",D.FIELD="Field",D.ARGUMENT="Argument",D.FRAGMENT_SPREAD="FragmentSpread",D.INLINE_FRAGMENT="InlineFragment",D.FRAGMENT_DEFINITION="FragmentDefinition",D.VARIABLE="Variable",D.INT="IntValue",D.FLOAT="FloatValue",D.STRING="StringValue",D.BOOLEAN="BooleanValue",D.NULL="NullValue",D.ENUM="EnumValue",D.LIST="ListValue",D.OBJECT="ObjectValue",D.OBJECT_FIELD="ObjectField",D.DIRECTIVE="Directive",D.NAMED_TYPE="NamedType",D.LIST_TYPE="ListType",D.NON_NULL_TYPE="NonNullType",D.SCHEMA_DEFINITION="SchemaDefinition",D.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",D.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",D.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",D.FIELD_DEFINITION="FieldDefinition",D.INPUT_VALUE_DEFINITION="InputValueDefinition",D.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",D.UNION_TYPE_DEFINITION="UnionTypeDefinition",D.ENUM_TYPE_DEFINITION="EnumTypeDefinition",D.ENUM_VALUE_DEFINITION="EnumValueDefinition",D.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",D.DIRECTIVE_DEFINITION="DirectiveDefinition",D.SCHEMA_EXTENSION="SchemaExtension",D.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",D.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",D.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",D.UNION_TYPE_EXTENSION="UnionTypeExtension",D.ENUM_TYPE_EXTENSION="EnumTypeExtension",D.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(J4||(uB.Kind=J4={}))});var C6=Q((kB)=>{Object.defineProperty(kB,"__esModule",{value:!0});kB.isDigit=_B;kB.isLetter=H4;kB.isNameContinue=CR;kB.isNameStart=AR;kB.isWhiteSpace=ER;function ER(D){return D===9||D===32}function _B(D){return D>=48&&D<=57}function H4(D){return D>=97&&D<=122||D>=65&&D<=90}function AR(D){return H4(D)||D===95}function CR(D){return H4(D)||_B(D)||D===95}});var p8=Q((xB)=>{Object.defineProperty(xB,"__esModule",{value:!0});xB.dedentBlockStringLines=SR;xB.isPrintableAsBlockString=NR;xB.printBlockString=uR;var U4=C6();function SR(D){var F;let P=Number.MAX_SAFE_INTEGER,B=null,Z=-1;for(let X=0;X<D.length;++X){var q;let J=D[X],Y=TR(J);if(Y===J.length)continue;if(B=(q=B)!==null&&q!==void 0?q:X,Z=X,X!==0&&Y<P)P=Y}return D.map((X,J)=>J===0?X:X.slice(P)).slice((F=B)!==null&&F!==void 0?F:0,Z+1)}function TR(D){let F=0;while(F<D.length&&U4.isWhiteSpace(D.charCodeAt(F)))++F;return F}function NR(D){if(D==="")return!0;let F=!0,P=!1,B=!0,Z=!1;for(let q=0;q<D.length;++q)switch(D.codePointAt(q)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(F&&!Z)return!1;Z=!0,F=!0,P=!1;break;case 9:case 32:P||(P=F);break;default:B&&(B=P),F=!1}if(F)return!1;if(B&&Z)return!1;return!0}function uR(D,F){let P=D.replace(/"""/g,'\\"""'),B=P.split(/\r\n|[\n\r]/g),Z=B.length===1,q=B.length>1&&B.slice(1).every((z)=>z.length===0||U4.isWhiteSpace(z.charCodeAt(0))),X=P.endsWith('\\"""'),J=D.endsWith('"')&&!X,Y=D.endsWith("\\"),H=J||Y,W=!(F!==null&&F!==void 0&&F.minimize)&&(!Z||D.length>70||H||q||X),U="",O=Z&&U4.isWhiteSpace(D.charCodeAt(0));if(W&&!O||q)U+=`
29
29
  `;if(U+=P,W||H)U+=`
30
- `;return'"""'+U+'"""'}});var p8=Q((fB)=>{Object.defineProperty(fB,"__esModule",{value:!0});fB.TokenKind=void 0;var W4;fB.TokenKind=W4;(function(D){D.SOF="<SOF>",D.EOF="<EOF>",D.BANG="!",D.DOLLAR="$",D.AMP="&",D.PAREN_L="(",D.PAREN_R=")",D.SPREAD="...",D.COLON=":",D.EQUALS="=",D.AT="@",D.BRACKET_L="[",D.BRACKET_R="]",D.BRACE_L="{",D.PIPE="|",D.BRACE_R="}",D.NAME="Name",D.INT="Int",D.FLOAT="Float",D.STRING="String",D.BLOCK_STRING="BlockString",D.COMMENT="Comment"})(W4||(fB.TokenKind=W4={}))});var w6=Q((lB)=>{Object.defineProperty(lB,"__esModule",{value:!0});lB.Lexer=void 0;lB.isPunctuatorTokenKind=hR;var W0=A6(),vB=A0(),fR=d8(),E2=C6(),d=p8();class gB{constructor(D){let F=new vB.Token(d.TokenKind.SOF,0,0,0,0);this.source=D,this.lastToken=F,this.token=F,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let D=this.token;if(D.kind!==d.TokenKind.EOF)do if(D.next)D=D.next;else{let F=vR(this,D.end);D.next=F,F.prev=D,D=F}while(D.kind===d.TokenKind.COMMENT);return D}}lB.Lexer=gB;function hR(D){return D===d.TokenKind.BANG||D===d.TokenKind.DOLLAR||D===d.TokenKind.AMP||D===d.TokenKind.PAREN_L||D===d.TokenKind.PAREN_R||D===d.TokenKind.SPREAD||D===d.TokenKind.COLON||D===d.TokenKind.EQUALS||D===d.TokenKind.AT||D===d.TokenKind.BRACKET_L||D===d.TokenKind.BRACKET_R||D===d.TokenKind.BRACE_L||D===d.TokenKind.PIPE||D===d.TokenKind.BRACE_R}function Z8(D){return D>=0&&D<=55295||D>=57344&&D<=1114111}function L6(D,F){return yB(D.charCodeAt(F))&&mB(D.charCodeAt(F+1))}function yB(D){return D>=55296&&D<=56319}function mB(D){return D>=56320&&D<=57343}function A2(D,F){let P=D.source.body.codePointAt(F);if(P===void 0)return d.TokenKind.EOF;else if(P>=32&&P<=126){let B=String.fromCodePoint(P);return B==='"'?`'"'`:`"${B}"`}return"U+"+P.toString(16).toUpperCase().padStart(4,"0")}function KD(D,F,P,B,Z){let q=D.line,X=1+P-D.lineStart;return new vB.Token(F,P,B,q,X,Z)}function vR(D,F){let P=D.source.body,B=P.length,Z=F;while(Z<B){let q=P.charCodeAt(Z);switch(q){case 65279:case 9:case 32:case 44:++Z;continue;case 10:++Z,++D.line,D.lineStart=Z;continue;case 13:if(P.charCodeAt(Z+1)===10)Z+=2;else++Z;++D.line,D.lineStart=Z;continue;case 35:return gR(D,Z);case 33:return KD(D,d.TokenKind.BANG,Z,Z+1);case 36:return KD(D,d.TokenKind.DOLLAR,Z,Z+1);case 38:return KD(D,d.TokenKind.AMP,Z,Z+1);case 40:return KD(D,d.TokenKind.PAREN_L,Z,Z+1);case 41:return KD(D,d.TokenKind.PAREN_R,Z,Z+1);case 46:if(P.charCodeAt(Z+1)===46&&P.charCodeAt(Z+2)===46)return KD(D,d.TokenKind.SPREAD,Z,Z+3);break;case 58:return KD(D,d.TokenKind.COLON,Z,Z+1);case 61:return KD(D,d.TokenKind.EQUALS,Z,Z+1);case 64:return KD(D,d.TokenKind.AT,Z,Z+1);case 91:return KD(D,d.TokenKind.BRACKET_L,Z,Z+1);case 93:return KD(D,d.TokenKind.BRACKET_R,Z,Z+1);case 123:return KD(D,d.TokenKind.BRACE_L,Z,Z+1);case 124:return KD(D,d.TokenKind.PIPE,Z,Z+1);case 125:return KD(D,d.TokenKind.BRACE_R,Z,Z+1);case 34:if(P.charCodeAt(Z+1)===34&&P.charCodeAt(Z+2)===34)return pR(D,Z);return mR(D,Z)}if(E2.isDigit(q)||q===45)return yR(D,Z,q);if(E2.isNameStart(q))return rR(D,Z);throw W0.syntaxError(D.source,Z,q===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Z8(q)||L6(P,Z)?`Unexpected character: ${A2(D,Z)}.`:`Invalid character: ${A2(D,Z)}.`)}return KD(D,d.TokenKind.EOF,B,B)}function gR(D,F){let P=D.source.body,B=P.length,Z=F+1;while(Z<B){let q=P.charCodeAt(Z);if(q===10||q===13)break;if(Z8(q))++Z;else if(L6(P,Z))Z+=2;else break}return KD(D,d.TokenKind.COMMENT,F,Z,P.slice(F+1,Z))}function yR(D,F,P){let B=D.source.body,Z=F,q=P,X=!1;if(q===45)q=B.charCodeAt(++Z);if(q===48){if(q=B.charCodeAt(++Z),E2.isDigit(q))throw W0.syntaxError(D.source,Z,`Invalid number, unexpected digit after 0: ${A2(D,Z)}.`)}else Z=z4(D,Z,q),q=B.charCodeAt(Z);if(q===46)X=!0,q=B.charCodeAt(++Z),Z=z4(D,Z,q),q=B.charCodeAt(Z);if(q===69||q===101){if(X=!0,q=B.charCodeAt(++Z),q===43||q===45)q=B.charCodeAt(++Z);Z=z4(D,Z,q),q=B.charCodeAt(Z)}if(q===46||E2.isNameStart(q))throw W0.syntaxError(D.source,Z,`Invalid number, expected digit but got: ${A2(D,Z)}.`);return KD(D,X?d.TokenKind.FLOAT:d.TokenKind.INT,F,Z,B.slice(F,Z))}function z4(D,F,P){if(!E2.isDigit(P))throw W0.syntaxError(D.source,F,`Invalid number, expected digit but got: ${A2(D,F)}.`);let B=D.source.body,Z=F+1;while(E2.isDigit(B.charCodeAt(Z)))++Z;return Z}function mR(D,F){let P=D.source.body,B=P.length,Z=F+1,q=Z,X="";while(Z<B){let J=P.charCodeAt(Z);if(J===34)return X+=P.slice(q,Z),KD(D,d.TokenKind.STRING,F,Z+1,X);if(J===92){X+=P.slice(q,Z);let Y=P.charCodeAt(Z+1)===117?P.charCodeAt(Z+2)===123?lR(D,Z):cR(D,Z):dR(D,Z);X+=Y.value,Z+=Y.size,q=Z;continue}if(J===10||J===13)break;if(Z8(J))++Z;else if(L6(P,Z))Z+=2;else throw W0.syntaxError(D.source,Z,`Invalid character within String: ${A2(D,Z)}.`)}throw W0.syntaxError(D.source,Z,"Unterminated string.")}function lR(D,F){let P=D.source.body,B=0,Z=3;while(Z<12){let q=P.charCodeAt(F+Z++);if(q===125){if(Z<5||!Z8(B))break;return{value:String.fromCodePoint(B),size:Z}}if(B=B<<4|r8(q),B<0)break}throw W0.syntaxError(D.source,F,`Invalid Unicode escape sequence: "${P.slice(F,F+Z)}".`)}function cR(D,F){let P=D.source.body,B=hB(P,F+2);if(Z8(B))return{value:String.fromCodePoint(B),size:6};if(yB(B)){if(P.charCodeAt(F+6)===92&&P.charCodeAt(F+7)===117){let Z=hB(P,F+8);if(mB(Z))return{value:String.fromCodePoint(B,Z),size:12}}}throw W0.syntaxError(D.source,F,`Invalid Unicode escape sequence: "${P.slice(F,F+6)}".`)}function hB(D,F){return r8(D.charCodeAt(F))<<12|r8(D.charCodeAt(F+1))<<8|r8(D.charCodeAt(F+2))<<4|r8(D.charCodeAt(F+3))}function r8(D){return D>=48&&D<=57?D-48:D>=65&&D<=70?D-55:D>=97&&D<=102?D-87:-1}function dR(D,F){let P=D.source.body;switch(P.charCodeAt(F+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
30
+ `;return'"""'+U+'"""'}});var r8=Q((fB)=>{Object.defineProperty(fB,"__esModule",{value:!0});fB.TokenKind=void 0;var W4;fB.TokenKind=W4;(function(D){D.SOF="<SOF>",D.EOF="<EOF>",D.BANG="!",D.DOLLAR="$",D.AMP="&",D.PAREN_L="(",D.PAREN_R=")",D.SPREAD="...",D.COLON=":",D.EQUALS="=",D.AT="@",D.BRACKET_L="[",D.BRACKET_R="]",D.BRACE_L="{",D.PIPE="|",D.BRACE_R="}",D.NAME="Name",D.INT="Int",D.FLOAT="Float",D.STRING="String",D.BLOCK_STRING="BlockString",D.COMMENT="Comment"})(W4||(fB.TokenKind=W4={}))});var w6=Q((lB)=>{Object.defineProperty(lB,"__esModule",{value:!0});lB.Lexer=void 0;lB.isPunctuatorTokenKind=hR;var W0=A6(),vB=A0(),fR=p8(),E2=C6(),d=r8();class gB{constructor(D){let F=new vB.Token(d.TokenKind.SOF,0,0,0,0);this.source=D,this.lastToken=F,this.token=F,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let D=this.token;if(D.kind!==d.TokenKind.EOF)do if(D.next)D=D.next;else{let F=vR(this,D.end);D.next=F,F.prev=D,D=F}while(D.kind===d.TokenKind.COMMENT);return D}}lB.Lexer=gB;function hR(D){return D===d.TokenKind.BANG||D===d.TokenKind.DOLLAR||D===d.TokenKind.AMP||D===d.TokenKind.PAREN_L||D===d.TokenKind.PAREN_R||D===d.TokenKind.SPREAD||D===d.TokenKind.COLON||D===d.TokenKind.EQUALS||D===d.TokenKind.AT||D===d.TokenKind.BRACKET_L||D===d.TokenKind.BRACKET_R||D===d.TokenKind.BRACE_L||D===d.TokenKind.PIPE||D===d.TokenKind.BRACE_R}function Z8(D){return D>=0&&D<=55295||D>=57344&&D<=1114111}function L6(D,F){return yB(D.charCodeAt(F))&&mB(D.charCodeAt(F+1))}function yB(D){return D>=55296&&D<=56319}function mB(D){return D>=56320&&D<=57343}function A2(D,F){let P=D.source.body.codePointAt(F);if(P===void 0)return d.TokenKind.EOF;else if(P>=32&&P<=126){let B=String.fromCodePoint(P);return B==='"'?`'"'`:`"${B}"`}return"U+"+P.toString(16).toUpperCase().padStart(4,"0")}function KD(D,F,P,B,Z){let q=D.line,X=1+P-D.lineStart;return new vB.Token(F,P,B,q,X,Z)}function vR(D,F){let P=D.source.body,B=P.length,Z=F;while(Z<B){let q=P.charCodeAt(Z);switch(q){case 65279:case 9:case 32:case 44:++Z;continue;case 10:++Z,++D.line,D.lineStart=Z;continue;case 13:if(P.charCodeAt(Z+1)===10)Z+=2;else++Z;++D.line,D.lineStart=Z;continue;case 35:return gR(D,Z);case 33:return KD(D,d.TokenKind.BANG,Z,Z+1);case 36:return KD(D,d.TokenKind.DOLLAR,Z,Z+1);case 38:return KD(D,d.TokenKind.AMP,Z,Z+1);case 40:return KD(D,d.TokenKind.PAREN_L,Z,Z+1);case 41:return KD(D,d.TokenKind.PAREN_R,Z,Z+1);case 46:if(P.charCodeAt(Z+1)===46&&P.charCodeAt(Z+2)===46)return KD(D,d.TokenKind.SPREAD,Z,Z+3);break;case 58:return KD(D,d.TokenKind.COLON,Z,Z+1);case 61:return KD(D,d.TokenKind.EQUALS,Z,Z+1);case 64:return KD(D,d.TokenKind.AT,Z,Z+1);case 91:return KD(D,d.TokenKind.BRACKET_L,Z,Z+1);case 93:return KD(D,d.TokenKind.BRACKET_R,Z,Z+1);case 123:return KD(D,d.TokenKind.BRACE_L,Z,Z+1);case 124:return KD(D,d.TokenKind.PIPE,Z,Z+1);case 125:return KD(D,d.TokenKind.BRACE_R,Z,Z+1);case 34:if(P.charCodeAt(Z+1)===34&&P.charCodeAt(Z+2)===34)return pR(D,Z);return mR(D,Z)}if(E2.isDigit(q)||q===45)return yR(D,Z,q);if(E2.isNameStart(q))return rR(D,Z);throw W0.syntaxError(D.source,Z,q===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Z8(q)||L6(P,Z)?`Unexpected character: ${A2(D,Z)}.`:`Invalid character: ${A2(D,Z)}.`)}return KD(D,d.TokenKind.EOF,B,B)}function gR(D,F){let P=D.source.body,B=P.length,Z=F+1;while(Z<B){let q=P.charCodeAt(Z);if(q===10||q===13)break;if(Z8(q))++Z;else if(L6(P,Z))Z+=2;else break}return KD(D,d.TokenKind.COMMENT,F,Z,P.slice(F+1,Z))}function yR(D,F,P){let B=D.source.body,Z=F,q=P,X=!1;if(q===45)q=B.charCodeAt(++Z);if(q===48){if(q=B.charCodeAt(++Z),E2.isDigit(q))throw W0.syntaxError(D.source,Z,`Invalid number, unexpected digit after 0: ${A2(D,Z)}.`)}else Z=z4(D,Z,q),q=B.charCodeAt(Z);if(q===46)X=!0,q=B.charCodeAt(++Z),Z=z4(D,Z,q),q=B.charCodeAt(Z);if(q===69||q===101){if(X=!0,q=B.charCodeAt(++Z),q===43||q===45)q=B.charCodeAt(++Z);Z=z4(D,Z,q),q=B.charCodeAt(Z)}if(q===46||E2.isNameStart(q))throw W0.syntaxError(D.source,Z,`Invalid number, expected digit but got: ${A2(D,Z)}.`);return KD(D,X?d.TokenKind.FLOAT:d.TokenKind.INT,F,Z,B.slice(F,Z))}function z4(D,F,P){if(!E2.isDigit(P))throw W0.syntaxError(D.source,F,`Invalid number, expected digit but got: ${A2(D,F)}.`);let B=D.source.body,Z=F+1;while(E2.isDigit(B.charCodeAt(Z)))++Z;return Z}function mR(D,F){let P=D.source.body,B=P.length,Z=F+1,q=Z,X="";while(Z<B){let J=P.charCodeAt(Z);if(J===34)return X+=P.slice(q,Z),KD(D,d.TokenKind.STRING,F,Z+1,X);if(J===92){X+=P.slice(q,Z);let Y=P.charCodeAt(Z+1)===117?P.charCodeAt(Z+2)===123?lR(D,Z):cR(D,Z):dR(D,Z);X+=Y.value,Z+=Y.size,q=Z;continue}if(J===10||J===13)break;if(Z8(J))++Z;else if(L6(P,Z))Z+=2;else throw W0.syntaxError(D.source,Z,`Invalid character within String: ${A2(D,Z)}.`)}throw W0.syntaxError(D.source,Z,"Unterminated string.")}function lR(D,F){let P=D.source.body,B=0,Z=3;while(Z<12){let q=P.charCodeAt(F+Z++);if(q===125){if(Z<5||!Z8(B))break;return{value:String.fromCodePoint(B),size:Z}}if(B=B<<4|a8(q),B<0)break}throw W0.syntaxError(D.source,F,`Invalid Unicode escape sequence: "${P.slice(F,F+Z)}".`)}function cR(D,F){let P=D.source.body,B=hB(P,F+2);if(Z8(B))return{value:String.fromCodePoint(B),size:6};if(yB(B)){if(P.charCodeAt(F+6)===92&&P.charCodeAt(F+7)===117){let Z=hB(P,F+8);if(mB(Z))return{value:String.fromCodePoint(B,Z),size:12}}}throw W0.syntaxError(D.source,F,`Invalid Unicode escape sequence: "${P.slice(F,F+6)}".`)}function hB(D,F){return a8(D.charCodeAt(F))<<12|a8(D.charCodeAt(F+1))<<8|a8(D.charCodeAt(F+2))<<4|a8(D.charCodeAt(F+3))}function a8(D){return D>=48&&D<=57?D-48:D>=65&&D<=70?D-55:D>=97&&D<=102?D-87:-1}function dR(D,F){let P=D.source.body;switch(P.charCodeAt(F+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
31
31
  `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw W0.syntaxError(D.source,F,`Invalid character escape sequence: "${P.slice(F,F+2)}".`)}function pR(D,F){let P=D.source.body,B=P.length,Z=D.lineStart,q=F+3,X=q,J="",Y=[];while(q<B){let H=P.charCodeAt(q);if(H===34&&P.charCodeAt(q+1)===34&&P.charCodeAt(q+2)===34){J+=P.slice(X,q),Y.push(J);let W=KD(D,d.TokenKind.BLOCK_STRING,F,q+3,fR.dedentBlockStringLines(Y).join(`
32
- `));return D.line+=Y.length-1,D.lineStart=Z,W}if(H===92&&P.charCodeAt(q+1)===34&&P.charCodeAt(q+2)===34&&P.charCodeAt(q+3)===34){J+=P.slice(X,q),X=q+1,q+=4;continue}if(H===10||H===13){if(J+=P.slice(X,q),Y.push(J),H===13&&P.charCodeAt(q+1)===10)q+=2;else++q;J="",X=q,Z=q;continue}if(Z8(H))++q;else if(L6(P,q))q+=2;else throw W0.syntaxError(D.source,q,`Invalid character within String: ${A2(D,q)}.`)}throw W0.syntaxError(D.source,q,"Unterminated string.")}function rR(D,F){let P=D.source.body,B=P.length,Z=F+1;while(Z<B){let q=P.charCodeAt(Z);if(E2.isNameContinue(q))++Z;else break}return KD(D,d.TokenKind.NAME,F,Z,P.slice(F,Z))}});var PD=Q((pB)=>{Object.defineProperty(pB,"__esModule",{value:!0});pB.inspect=nR;var sR=10,dB=2;function nR(D){return V6(D,[])}function V6(D,F){switch(typeof D){case"string":return JSON.stringify(D);case"function":return D.name?`[function ${D.name}]`:"[function]";case"object":return iR(D,F);default:return String(D)}}function iR(D,F){if(D===null)return"null";if(F.includes(D))return"[Circular]";let P=[...F,D];if(oR(D)){let B=D.toJSON();if(B!==D)return typeof B==="string"?B:V6(B,P)}else if(Array.isArray(D))return eR(D,P);return tR(D,P)}function oR(D){return typeof D.toJSON==="function"}function tR(D,F){let P=Object.entries(D);if(P.length===0)return"{}";if(F.length>dB)return"["+DI(D)+"]";return"{ "+P.map(([Z,q])=>Z+": "+V6(q,F)).join(", ")+" }"}function eR(D,F){if(D.length===0)return"[]";if(F.length>dB)return"[Array]";let P=Math.min(sR,D.length),B=D.length-P,Z=[];for(let q=0;q<P;++q)Z.push(V6(D[q],F));if(B===1)Z.push("... 1 more item");else if(B>1)Z.push(`... ${B} more items`);return"["+Z.join(", ")+"]"}function DI(D){let F=Object.prototype.toString.call(D).replace(/^\[object /,"").replace(/]$/,"");if(F==="Object"&&typeof D.constructor==="function"){let P=D.constructor.name;if(typeof P==="string"&&P!=="")return P}return F}});var a8=Q((rB)=>{Object.defineProperty(rB,"__esModule",{value:!0});rB.instanceOf=void 0;var PI=PD(),BI=globalThis.process&&!1,ZI=BI?function D(F,P){return F instanceof P}:function D(F,P){if(F instanceof P)return!0;if(typeof F==="object"&&F!==null){var B;let Z=P.prototype[Symbol.toStringTag],q=Symbol.toStringTag in F?F[Symbol.toStringTag]:(B=F.constructor)===null||B===void 0?void 0:B.name;if(Z===q){let X=PI.inspect(F);throw new Error(`Cannot use ${Z} "${X}" from another module or realm.
32
+ `));return D.line+=Y.length-1,D.lineStart=Z,W}if(H===92&&P.charCodeAt(q+1)===34&&P.charCodeAt(q+2)===34&&P.charCodeAt(q+3)===34){J+=P.slice(X,q),X=q+1,q+=4;continue}if(H===10||H===13){if(J+=P.slice(X,q),Y.push(J),H===13&&P.charCodeAt(q+1)===10)q+=2;else++q;J="",X=q,Z=q;continue}if(Z8(H))++q;else if(L6(P,q))q+=2;else throw W0.syntaxError(D.source,q,`Invalid character within String: ${A2(D,q)}.`)}throw W0.syntaxError(D.source,q,"Unterminated string.")}function rR(D,F){let P=D.source.body,B=P.length,Z=F+1;while(Z<B){let q=P.charCodeAt(Z);if(E2.isNameContinue(q))++Z;else break}return KD(D,d.TokenKind.NAME,F,Z,P.slice(F,Z))}});var PD=Q((pB)=>{Object.defineProperty(pB,"__esModule",{value:!0});pB.inspect=nR;var sR=10,dB=2;function nR(D){return V6(D,[])}function V6(D,F){switch(typeof D){case"string":return JSON.stringify(D);case"function":return D.name?`[function ${D.name}]`:"[function]";case"object":return iR(D,F);default:return String(D)}}function iR(D,F){if(D===null)return"null";if(F.includes(D))return"[Circular]";let P=[...F,D];if(oR(D)){let B=D.toJSON();if(B!==D)return typeof B==="string"?B:V6(B,P)}else if(Array.isArray(D))return eR(D,P);return tR(D,P)}function oR(D){return typeof D.toJSON==="function"}function tR(D,F){let P=Object.entries(D);if(P.length===0)return"{}";if(F.length>dB)return"["+DI(D)+"]";return"{ "+P.map(([Z,q])=>Z+": "+V6(q,F)).join(", ")+" }"}function eR(D,F){if(D.length===0)return"[]";if(F.length>dB)return"[Array]";let P=Math.min(sR,D.length),B=D.length-P,Z=[];for(let q=0;q<P;++q)Z.push(V6(D[q],F));if(B===1)Z.push("... 1 more item");else if(B>1)Z.push(`... ${B} more items`);return"["+Z.join(", ")+"]"}function DI(D){let F=Object.prototype.toString.call(D).replace(/^\[object /,"").replace(/]$/,"");if(F==="Object"&&typeof D.constructor==="function"){let P=D.constructor.name;if(typeof P==="string"&&P!=="")return P}return F}});var s8=Q((rB)=>{Object.defineProperty(rB,"__esModule",{value:!0});rB.instanceOf=void 0;var PI=PD(),BI=globalThis.process&&!1,ZI=BI?function D(F,P){return F instanceof P}:function D(F,P){if(F instanceof P)return!0;if(typeof F==="object"&&F!==null){var B;let Z=P.prototype[Symbol.toStringTag],q=Symbol.toStringTag in F?F[Symbol.toStringTag]:(B=F.constructor)===null||B===void 0?void 0:B.name;if(Z===q){let X=PI.inspect(F);throw new Error(`Cannot use ${Z} "${X}" from another module or realm.
33
33
 
34
34
  Ensure that there is only one instance of "graphql" in the node_modules
35
35
  directory. If different versions of "graphql" are the dependencies of other
@@ -40,7 +40,7 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
40
40
  Duplicate "graphql" modules cannot be used at the same time since different
41
41
  versions may have different capabilities and behavior. The data from one
42
42
  version used in the function from another could produce confusing and
43
- spurious results.`)}}return!1};rB.instanceOf=ZI});var j6=Q((sB)=>{Object.defineProperty(sB,"__esModule",{value:!0});sB.Source=void 0;sB.isSource=JI;var Q4=hD(),qI=PD(),XI=a8();class G4{constructor(D,F="GraphQL request",P={line:1,column:1}){typeof D==="string"||Q4.devAssert(!1,`Body must be a string. Received: ${qI.inspect(D)}.`),this.body=D,this.name=F,this.locationOffset=P,this.locationOffset.line>0||Q4.devAssert(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Q4.devAssert(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}sB.Source=G4;function JI(D){return XI.instanceOf(D,G4)}});var X8=Q((eB)=>{Object.defineProperty(eB,"__esModule",{value:!0});eB.Parser=void 0;eB.parse=UI;eB.parseConstValue=OI;eB.parseType=zI;eB.parseValue=WI;var C2=A6(),s8=A0(),HI=B8(),y=r(),oB=w6(),iB=j6(),b=p8();function UI(D,F){return new q8(D,F).parseDocument()}function WI(D,F){let P=new q8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseValueLiteral(!1);return P.expectToken(b.TokenKind.EOF),B}function OI(D,F){let P=new q8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseConstValueLiteral();return P.expectToken(b.TokenKind.EOF),B}function zI(D,F){let P=new q8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseTypeReference();return P.expectToken(b.TokenKind.EOF),B}class q8{constructor(D,F={}){let P=iB.isSource(D)?D:new iB.Source(D);this._lexer=new oB.Lexer(P),this._options=F,this._tokenCounter=0}parseName(){let D=this.expectToken(b.TokenKind.NAME);return this.node(D,{kind:y.Kind.NAME,value:D.value})}parseDocument(){return this.node(this._lexer.token,{kind:y.Kind.DOCUMENT,definitions:this.many(b.TokenKind.SOF,this.parseDefinition,b.TokenKind.EOF)})}parseDefinition(){if(this.peek(b.TokenKind.BRACE_L))return this.parseOperationDefinition();let D=this.peekDescription(),F=D?this._lexer.lookahead():this._lexer.token;if(F.kind===b.TokenKind.NAME){switch(F.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(D)throw C2.syntaxError(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(F.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(F)}parseOperationDefinition(){let D=this._lexer.token;if(this.peek(b.TokenKind.BRACE_L))return this.node(D,{kind:y.Kind.OPERATION_DEFINITION,operation:s8.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let F=this.parseOperationType(),P;if(this.peek(b.TokenKind.NAME))P=this.parseName();return this.node(D,{kind:y.Kind.OPERATION_DEFINITION,operation:F,name:P,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let D=this.expectToken(b.TokenKind.NAME);switch(D.value){case"query":return s8.OperationTypeNode.QUERY;case"mutation":return s8.OperationTypeNode.MUTATION;case"subscription":return s8.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(D)}parseVariableDefinitions(){return this.optionalMany(b.TokenKind.PAREN_L,this.parseVariableDefinition,b.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:y.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(b.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(b.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let D=this._lexer.token;return this.expectToken(b.TokenKind.DOLLAR),this.node(D,{kind:y.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:y.Kind.SELECTION_SET,selections:this.many(b.TokenKind.BRACE_L,this.parseSelection,b.TokenKind.BRACE_R)})}parseSelection(){return this.peek(b.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let D=this._lexer.token,F=this.parseName(),P,B;if(this.expectOptionalToken(b.TokenKind.COLON))P=F,B=this.parseName();else B=F;return this.node(D,{kind:y.Kind.FIELD,alias:P,name:B,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(b.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(D){let F=D?this.parseConstArgument:this.parseArgument;return this.optionalMany(b.TokenKind.PAREN_L,F,b.TokenKind.PAREN_R)}parseArgument(D=!1){let F=this._lexer.token,P=this.parseName();return this.expectToken(b.TokenKind.COLON),this.node(F,{kind:y.Kind.ARGUMENT,name:P,value:this.parseValueLiteral(D)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let D=this._lexer.token;this.expectToken(b.TokenKind.SPREAD);let F=this.expectOptionalKeyword("on");if(!F&&this.peek(b.TokenKind.NAME))return this.node(D,{kind:y.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)});return this.node(D,{kind:y.Kind.INLINE_FRAGMENT,typeCondition:F?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let D=this._lexer.token;if(this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0)return this.node(D,{kind:y.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()});return this.node(D,{kind:y.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(D){let F=this._lexer.token;switch(F.kind){case b.TokenKind.BRACKET_L:return this.parseList(D);case b.TokenKind.BRACE_L:return this.parseObject(D);case b.TokenKind.INT:return this.advanceLexer(),this.node(F,{kind:y.Kind.INT,value:F.value});case b.TokenKind.FLOAT:return this.advanceLexer(),this.node(F,{kind:y.Kind.FLOAT,value:F.value});case b.TokenKind.STRING:case b.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case b.TokenKind.NAME:switch(this.advanceLexer(),F.value){case"true":return this.node(F,{kind:y.Kind.BOOLEAN,value:!0});case"false":return this.node(F,{kind:y.Kind.BOOLEAN,value:!1});case"null":return this.node(F,{kind:y.Kind.NULL});default:return this.node(F,{kind:y.Kind.ENUM,value:F.value})}case b.TokenKind.DOLLAR:if(D)if(this.expectToken(b.TokenKind.DOLLAR),this._lexer.token.kind===b.TokenKind.NAME){let P=this._lexer.token.value;throw C2.syntaxError(this._lexer.source,F.start,`Unexpected variable "$${P}" in constant value.`)}else throw this.unexpected(F);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let D=this._lexer.token;return this.advanceLexer(),this.node(D,{kind:y.Kind.STRING,value:D.value,block:D.kind===b.TokenKind.BLOCK_STRING})}parseList(D){let F=()=>this.parseValueLiteral(D);return this.node(this._lexer.token,{kind:y.Kind.LIST,values:this.any(b.TokenKind.BRACKET_L,F,b.TokenKind.BRACKET_R)})}parseObject(D){let F=()=>this.parseObjectField(D);return this.node(this._lexer.token,{kind:y.Kind.OBJECT,fields:this.any(b.TokenKind.BRACE_L,F,b.TokenKind.BRACE_R)})}parseObjectField(D){let F=this._lexer.token,P=this.parseName();return this.expectToken(b.TokenKind.COLON),this.node(F,{kind:y.Kind.OBJECT_FIELD,name:P,value:this.parseValueLiteral(D)})}parseDirectives(D){let F=[];while(this.peek(b.TokenKind.AT))F.push(this.parseDirective(D));return F}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(D){let F=this._lexer.token;return this.expectToken(b.TokenKind.AT),this.node(F,{kind:y.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(D)})}parseTypeReference(){let D=this._lexer.token,F;if(this.expectOptionalToken(b.TokenKind.BRACKET_L)){let P=this.parseTypeReference();this.expectToken(b.TokenKind.BRACKET_R),F=this.node(D,{kind:y.Kind.LIST_TYPE,type:P})}else F=this.parseNamedType();if(this.expectOptionalToken(b.TokenKind.BANG))return this.node(D,{kind:y.Kind.NON_NULL_TYPE,type:F});return F}parseNamedType(){return this.node(this._lexer.token,{kind:y.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(b.TokenKind.STRING)||this.peek(b.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("schema");let P=this.parseConstDirectives(),B=this.many(b.TokenKind.BRACE_L,this.parseOperationTypeDefinition,b.TokenKind.BRACE_R);return this.node(D,{kind:y.Kind.SCHEMA_DEFINITION,description:F,directives:P,operationTypes:B})}parseOperationTypeDefinition(){let D=this._lexer.token,F=this.parseOperationType();this.expectToken(b.TokenKind.COLON);let P=this.parseNamedType();return this.node(D,{kind:y.Kind.OPERATION_TYPE_DEFINITION,operation:F,type:P})}parseScalarTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("scalar");let P=this.parseName(),B=this.parseConstDirectives();return this.node(D,{kind:y.Kind.SCALAR_TYPE_DEFINITION,description:F,name:P,directives:B})}parseObjectTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("type");let P=this.parseName(),B=this.parseImplementsInterfaces(),Z=this.parseConstDirectives(),q=this.parseFieldsDefinition();return this.node(D,{kind:y.Kind.OBJECT_TYPE_DEFINITION,description:F,name:P,interfaces:B,directives:Z,fields:q})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(b.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(b.TokenKind.BRACE_L,this.parseFieldDefinition,b.TokenKind.BRACE_R)}parseFieldDefinition(){let D=this._lexer.token,F=this.parseDescription(),P=this.parseName(),B=this.parseArgumentDefs();this.expectToken(b.TokenKind.COLON);let Z=this.parseTypeReference(),q=this.parseConstDirectives();return this.node(D,{kind:y.Kind.FIELD_DEFINITION,description:F,name:P,arguments:B,type:Z,directives:q})}parseArgumentDefs(){return this.optionalMany(b.TokenKind.PAREN_L,this.parseInputValueDef,b.TokenKind.PAREN_R)}parseInputValueDef(){let D=this._lexer.token,F=this.parseDescription(),P=this.parseName();this.expectToken(b.TokenKind.COLON);let B=this.parseTypeReference(),Z;if(this.expectOptionalToken(b.TokenKind.EQUALS))Z=this.parseConstValueLiteral();let q=this.parseConstDirectives();return this.node(D,{kind:y.Kind.INPUT_VALUE_DEFINITION,description:F,name:P,type:B,defaultValue:Z,directives:q})}parseInterfaceTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("interface");let P=this.parseName(),B=this.parseImplementsInterfaces(),Z=this.parseConstDirectives(),q=this.parseFieldsDefinition();return this.node(D,{kind:y.Kind.INTERFACE_TYPE_DEFINITION,description:F,name:P,interfaces:B,directives:Z,fields:q})}parseUnionTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("union");let P=this.parseName(),B=this.parseConstDirectives(),Z=this.parseUnionMemberTypes();return this.node(D,{kind:y.Kind.UNION_TYPE_DEFINITION,description:F,name:P,directives:B,types:Z})}parseUnionMemberTypes(){return this.expectOptionalToken(b.TokenKind.EQUALS)?this.delimitedMany(b.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("enum");let P=this.parseName(),B=this.parseConstDirectives(),Z=this.parseEnumValuesDefinition();return this.node(D,{kind:y.Kind.ENUM_TYPE_DEFINITION,description:F,name:P,directives:B,values:Z})}parseEnumValuesDefinition(){return this.optionalMany(b.TokenKind.BRACE_L,this.parseEnumValueDefinition,b.TokenKind.BRACE_R)}parseEnumValueDefinition(){let D=this._lexer.token,F=this.parseDescription(),P=this.parseEnumValueName(),B=this.parseConstDirectives();return this.node(D,{kind:y.Kind.ENUM_VALUE_DEFINITION,description:F,name:P,directives:B})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw C2.syntaxError(this._lexer.source,this._lexer.token.start,`${b6(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("input");let P=this.parseName(),B=this.parseConstDirectives(),Z=this.parseInputFieldsDefinition();return this.node(D,{kind:y.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:F,name:P,directives:B,fields:Z})}parseInputFieldsDefinition(){return this.optionalMany(b.TokenKind.BRACE_L,this.parseInputValueDef,b.TokenKind.BRACE_R)}parseTypeSystemExtension(){let D=this._lexer.lookahead();if(D.kind===b.TokenKind.NAME)switch(D.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(D)}parseSchemaExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let F=this.parseConstDirectives(),P=this.optionalMany(b.TokenKind.BRACE_L,this.parseOperationTypeDefinition,b.TokenKind.BRACE_R);if(F.length===0&&P.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.SCHEMA_EXTENSION,directives:F,operationTypes:P})}parseScalarTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let F=this.parseName(),P=this.parseConstDirectives();if(P.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.SCALAR_TYPE_EXTENSION,name:F,directives:P})}parseObjectTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let F=this.parseName(),P=this.parseImplementsInterfaces(),B=this.parseConstDirectives(),Z=this.parseFieldsDefinition();if(P.length===0&&B.length===0&&Z.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.OBJECT_TYPE_EXTENSION,name:F,interfaces:P,directives:B,fields:Z})}parseInterfaceTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let F=this.parseName(),P=this.parseImplementsInterfaces(),B=this.parseConstDirectives(),Z=this.parseFieldsDefinition();if(P.length===0&&B.length===0&&Z.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.INTERFACE_TYPE_EXTENSION,name:F,interfaces:P,directives:B,fields:Z})}parseUnionTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let F=this.parseName(),P=this.parseConstDirectives(),B=this.parseUnionMemberTypes();if(P.length===0&&B.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.UNION_TYPE_EXTENSION,name:F,directives:P,types:B})}parseEnumTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let F=this.parseName(),P=this.parseConstDirectives(),B=this.parseEnumValuesDefinition();if(P.length===0&&B.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.ENUM_TYPE_EXTENSION,name:F,directives:P,values:B})}parseInputObjectTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let F=this.parseName(),P=this.parseConstDirectives(),B=this.parseInputFieldsDefinition();if(P.length===0&&B.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:F,directives:P,fields:B})}parseDirectiveDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("directive"),this.expectToken(b.TokenKind.AT);let P=this.parseName(),B=this.parseArgumentDefs(),Z=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let q=this.parseDirectiveLocations();return this.node(D,{kind:y.Kind.DIRECTIVE_DEFINITION,description:F,name:P,arguments:B,repeatable:Z,locations:q})}parseDirectiveLocations(){return this.delimitedMany(b.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let D=this._lexer.token,F=this.parseName();if(Object.prototype.hasOwnProperty.call(HI.DirectiveLocation,F.value))return F;throw this.unexpected(D)}node(D,F){if(this._options.noLocation!==!0)F.loc=new s8.Location(D,this._lexer.lastToken,this._lexer.source);return F}peek(D){return this._lexer.token.kind===D}expectToken(D){let F=this._lexer.token;if(F.kind===D)return this.advanceLexer(),F;throw C2.syntaxError(this._lexer.source,F.start,`Expected ${tB(D)}, found ${b6(F)}.`)}expectOptionalToken(D){if(this._lexer.token.kind===D)return this.advanceLexer(),!0;return!1}expectKeyword(D){let F=this._lexer.token;if(F.kind===b.TokenKind.NAME&&F.value===D)this.advanceLexer();else throw C2.syntaxError(this._lexer.source,F.start,`Expected "${D}", found ${b6(F)}.`)}expectOptionalKeyword(D){let F=this._lexer.token;if(F.kind===b.TokenKind.NAME&&F.value===D)return this.advanceLexer(),!0;return!1}unexpected(D){let F=D!==null&&D!==void 0?D:this._lexer.token;return C2.syntaxError(this._lexer.source,F.start,`Unexpected ${b6(F)}.`)}any(D,F,P){this.expectToken(D);let B=[];while(!this.expectOptionalToken(P))B.push(F.call(this));return B}optionalMany(D,F,P){if(this.expectOptionalToken(D)){let B=[];do B.push(F.call(this));while(!this.expectOptionalToken(P));return B}return[]}many(D,F,P){this.expectToken(D);let B=[];do B.push(F.call(this));while(!this.expectOptionalToken(P));return B}delimitedMany(D,F){this.expectOptionalToken(D);let P=[];do P.push(F.call(this));while(this.expectOptionalToken(D));return P}advanceLexer(){let{maxTokens:D}=this._options,F=this._lexer.advance();if(D!==void 0&&F.kind!==b.TokenKind.EOF){if(++this._tokenCounter,this._tokenCounter>D)throw C2.syntaxError(this._lexer.source,F.start,`Document contains more that ${D} tokens. Parsing aborted.`)}}}eB.Parser=q8;function b6(D){let F=D.value;return tB(D.kind)+(F!=null?` "${F}"`:"")}function tB(D){return oB.isPunctuatorTokenKind(D)?`"${D}"`:D}});var o0=Q((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.didYouMean=MI;var $I=5;function MI(D,F){let[P,B]=F?[D,F]:[void 0,D],Z=" Did you mean ";if(P)Z+=P+" ";let q=B.map((Y)=>`"${Y}"`);switch(q.length){case 0:return"";case 1:return Z+q[0]+"?";case 2:return Z+q[0]+" or "+q[1]+"?"}let X=q.slice(0,$I),J=X.pop();return Z+X.join(", ")+", or "+J+"?"}});var BZ=Q((PZ)=>{Object.defineProperty(PZ,"__esModule",{value:!0});PZ.identityFunc=EI;function EI(D){return D}});var t0=Q((ZZ)=>{Object.defineProperty(ZZ,"__esModule",{value:!0});ZZ.keyMap=CI;function CI(D,F){let P=Object.create(null);for(let B of D)P[F(B)]=B;return P}});var n8=Q((qZ)=>{Object.defineProperty(qZ,"__esModule",{value:!0});qZ.keyValMap=wI;function wI(D,F,P){let B=Object.create(null);for(let Z of D)B[F(Z)]=P(Z);return B}});var R4=Q((XZ)=>{Object.defineProperty(XZ,"__esModule",{value:!0});XZ.mapValue=jI;function jI(D,F){let P=Object.create(null);for(let B of Object.keys(D))P[B]=F(D[B],B);return P}});var i8=Q((JZ)=>{Object.defineProperty(JZ,"__esModule",{value:!0});JZ.naturalCompare=SI;function SI(D,F){let P=0,B=0;while(P<D.length&&B<F.length){let Z=D.charCodeAt(P),q=F.charCodeAt(B);if(S6(Z)&&S6(q)){let X=0;do++P,X=X*10+Z-I4,Z=D.charCodeAt(P);while(S6(Z)&&X>0);let J=0;do++B,J=J*10+q-I4,q=F.charCodeAt(B);while(S6(q)&&J>0);if(X<J)return-1;if(X>J)return 1}else{if(Z<q)return-1;if(Z>q)return 1;++P,++B}}return D.length-F.length}var I4=48,TI=57;function S6(D){return!isNaN(D)&&I4<=D&&D<=TI}});var e0=Q((UZ)=>{Object.defineProperty(UZ,"__esModule",{value:!0});UZ.suggestionList=_I;var uI=i8();function _I(D,F){let P=Object.create(null),B=new HZ(D),Z=Math.floor(D.length*0.4)+1;for(let q of F){let X=B.measure(q,Z);if(X!==void 0)P[q]=X}return Object.keys(P).sort((q,X)=>{let J=P[q]-P[X];return J!==0?J:uI.naturalCompare(q,X)})}class HZ{constructor(D){this._input=D,this._inputLowerCase=D.toLowerCase(),this._inputArray=YZ(this._inputLowerCase),this._rows=[new Array(D.length+1).fill(0),new Array(D.length+1).fill(0),new Array(D.length+1).fill(0)]}measure(D,F){if(this._input===D)return 0;let P=D.toLowerCase();if(this._inputLowerCase===P)return 1;let B=YZ(P),Z=this._inputArray;if(B.length<Z.length){let H=B;B=Z,Z=H}let q=B.length,X=Z.length;if(q-X>F)return;let J=this._rows;for(let H=0;H<=X;H++)J[0][H]=H;for(let H=1;H<=q;H++){let W=J[(H-1)%3],U=J[H%3],O=U[0]=H;for(let z=1;z<=X;z++){let I=B[H-1]===Z[z-1]?0:1,R=Math.min(W[z]+1,U[z-1]+1,W[z-1]+I);if(H>1&&z>1&&B[H-1]===Z[z-2]&&B[H-2]===Z[z-1]){let $=J[(H-2)%3][z-2];R=Math.min(R,$+1)}if(R<O)O=R;U[z]=R}if(O>F)return}let Y=J[q%3][X];return Y<=F?Y:void 0}}function YZ(D){let F=D.length,P=new Array(F);for(let B=0;B<F;++B)P[B]=D.charCodeAt(B);return P}});var T6=Q((WZ)=>{Object.defineProperty(WZ,"__esModule",{value:!0});WZ.toObjMap=xI;function xI(D){if(D==null)return Object.create(null);if(Object.getPrototypeOf(D)===null)return D;let F=Object.create(null);for(let[P,B]of Object.entries(D))F[P]=B;return F}});var zZ=Q((OZ)=>{Object.defineProperty(OZ,"__esModule",{value:!0});OZ.printString=hI;function hI(D){return`"${D.replace(vI,gI)}"`}var vI=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function gI(D){return yI[D.charCodeAt(0)]}var yI=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","","\\\"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var L2=Q((GZ)=>{Object.defineProperty(GZ,"__esModule",{value:!0});GZ.BREAK=void 0;GZ.getEnterLeaveForKind=N6;GZ.getVisitFn=rI;GZ.visit=dI;GZ.visitInParallel=pI;var lI=hD(),cI=PD(),$4=A0(),QZ=r(),J8=Object.freeze({});GZ.BREAK=J8;function dI(D,F,P=$4.QueryDocumentKeys){let B=new Map;for(let E of Object.values(QZ.Kind))B.set(E,N6(F,E));let Z=void 0,q=Array.isArray(D),X=[D],J=-1,Y=[],H=D,W=void 0,U=void 0,O=[],z=[];do{J++;let E=J===X.length,w=E&&Y.length!==0;if(E){if(W=z.length===0?void 0:O[O.length-1],H=U,U=z.pop(),w)if(q){H=H.slice();let S=0;for(let[V,T]of Y){let m=V-S;if(T===null)H.splice(m,1),S++;else H[m]=T}}else{H=Object.defineProperties({},Object.getOwnPropertyDescriptors(H));for(let[S,V]of Y)H[S]=V}J=Z.index,X=Z.keys,Y=Z.edits,q=Z.inArray,Z=Z.prev}else if(U){if(W=q?J:X[J],H=U[W],H===null||H===void 0)continue;O.push(W)}let A;if(!Array.isArray(H)){var I,R;$4.isNode(H)||lI.devAssert(!1,`Invalid AST Node: ${cI.inspect(H)}.`);let S=E?(I=B.get(H.kind))===null||I===void 0?void 0:I.leave:(R=B.get(H.kind))===null||R===void 0?void 0:R.enter;if(A=S===null||S===void 0?void 0:S.call(F,H,W,U,O,z),A===J8)break;if(A===!1){if(!E){O.pop();continue}}else if(A!==void 0){if(Y.push([W,A]),!E)if($4.isNode(A))H=A;else{O.pop();continue}}}if(A===void 0&&w)Y.push([W,H]);if(E)O.pop();else{var $;if(Z={inArray:q,index:J,keys:X,edits:Y,prev:Z},q=Array.isArray(H),X=q?H:($=P[H.kind])!==null&&$!==void 0?$:[],J=-1,Y=[],U)z.push(U);U=H}}while(Z!==void 0);if(Y.length!==0)return Y[Y.length-1][1];return D}function pI(D){let F=new Array(D.length).fill(null),P=Object.create(null);for(let B of Object.values(QZ.Kind)){let Z=!1,q=new Array(D.length).fill(void 0),X=new Array(D.length).fill(void 0);for(let Y=0;Y<D.length;++Y){let{enter:H,leave:W}=N6(D[Y],B);Z||(Z=H!=null||W!=null),q[Y]=H,X[Y]=W}if(!Z)continue;let J={enter(...Y){let H=Y[0];for(let U=0;U<D.length;U++)if(F[U]===null){var W;let O=(W=q[U])===null||W===void 0?void 0:W.apply(D[U],Y);if(O===!1)F[U]=H;else if(O===J8)F[U]=J8;else if(O!==void 0)return O}},leave(...Y){let H=Y[0];for(let U=0;U<D.length;U++)if(F[U]===null){var W;let O=(W=X[U])===null||W===void 0?void 0:W.apply(D[U],Y);if(O===J8)F[U]=J8;else if(O!==void 0&&O!==!1)return O}else if(F[U]===H)F[U]=null}};P[B]=J}return P}function N6(D,F){let P=D[F];if(typeof P==="object")return P;else if(typeof P==="function")return{enter:P,leave:void 0};return{enter:D.enter,leave:D.leave}}function rI(D,F,P){let{enter:B,leave:Z}=N6(D,F);return P?Z:B}});var rD=Q(($Z)=>{Object.defineProperty($Z,"__esModule",{value:!0});$Z.print=D$;var oI=d8(),tI=zZ(),eI=L2();function D$(D){return eI.visit(D,P$)}var F$=80,P$={Name:{leave:(D)=>D.value},Variable:{leave:(D)=>"$"+D.name},Document:{leave:(D)=>_(D.definitions,`
43
+ spurious results.`)}}return!1};rB.instanceOf=ZI});var j6=Q((sB)=>{Object.defineProperty(sB,"__esModule",{value:!0});sB.Source=void 0;sB.isSource=JI;var Q4=hD(),qI=PD(),XI=s8();class G4{constructor(D,F="GraphQL request",P={line:1,column:1}){typeof D==="string"||Q4.devAssert(!1,`Body must be a string. Received: ${qI.inspect(D)}.`),this.body=D,this.name=F,this.locationOffset=P,this.locationOffset.line>0||Q4.devAssert(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Q4.devAssert(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}sB.Source=G4;function JI(D){return XI.instanceOf(D,G4)}});var X8=Q((eB)=>{Object.defineProperty(eB,"__esModule",{value:!0});eB.Parser=void 0;eB.parse=UI;eB.parseConstValue=OI;eB.parseType=zI;eB.parseValue=WI;var C2=A6(),n8=A0(),HI=B8(),y=r(),oB=w6(),iB=j6(),b=r8();function UI(D,F){return new q8(D,F).parseDocument()}function WI(D,F){let P=new q8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseValueLiteral(!1);return P.expectToken(b.TokenKind.EOF),B}function OI(D,F){let P=new q8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseConstValueLiteral();return P.expectToken(b.TokenKind.EOF),B}function zI(D,F){let P=new q8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseTypeReference();return P.expectToken(b.TokenKind.EOF),B}class q8{constructor(D,F={}){let P=iB.isSource(D)?D:new iB.Source(D);this._lexer=new oB.Lexer(P),this._options=F,this._tokenCounter=0}parseName(){let D=this.expectToken(b.TokenKind.NAME);return this.node(D,{kind:y.Kind.NAME,value:D.value})}parseDocument(){return this.node(this._lexer.token,{kind:y.Kind.DOCUMENT,definitions:this.many(b.TokenKind.SOF,this.parseDefinition,b.TokenKind.EOF)})}parseDefinition(){if(this.peek(b.TokenKind.BRACE_L))return this.parseOperationDefinition();let D=this.peekDescription(),F=D?this._lexer.lookahead():this._lexer.token;if(F.kind===b.TokenKind.NAME){switch(F.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(D)throw C2.syntaxError(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(F.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(F)}parseOperationDefinition(){let D=this._lexer.token;if(this.peek(b.TokenKind.BRACE_L))return this.node(D,{kind:y.Kind.OPERATION_DEFINITION,operation:n8.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let F=this.parseOperationType(),P;if(this.peek(b.TokenKind.NAME))P=this.parseName();return this.node(D,{kind:y.Kind.OPERATION_DEFINITION,operation:F,name:P,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let D=this.expectToken(b.TokenKind.NAME);switch(D.value){case"query":return n8.OperationTypeNode.QUERY;case"mutation":return n8.OperationTypeNode.MUTATION;case"subscription":return n8.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(D)}parseVariableDefinitions(){return this.optionalMany(b.TokenKind.PAREN_L,this.parseVariableDefinition,b.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:y.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(b.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(b.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let D=this._lexer.token;return this.expectToken(b.TokenKind.DOLLAR),this.node(D,{kind:y.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:y.Kind.SELECTION_SET,selections:this.many(b.TokenKind.BRACE_L,this.parseSelection,b.TokenKind.BRACE_R)})}parseSelection(){return this.peek(b.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let D=this._lexer.token,F=this.parseName(),P,B;if(this.expectOptionalToken(b.TokenKind.COLON))P=F,B=this.parseName();else B=F;return this.node(D,{kind:y.Kind.FIELD,alias:P,name:B,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(b.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(D){let F=D?this.parseConstArgument:this.parseArgument;return this.optionalMany(b.TokenKind.PAREN_L,F,b.TokenKind.PAREN_R)}parseArgument(D=!1){let F=this._lexer.token,P=this.parseName();return this.expectToken(b.TokenKind.COLON),this.node(F,{kind:y.Kind.ARGUMENT,name:P,value:this.parseValueLiteral(D)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let D=this._lexer.token;this.expectToken(b.TokenKind.SPREAD);let F=this.expectOptionalKeyword("on");if(!F&&this.peek(b.TokenKind.NAME))return this.node(D,{kind:y.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)});return this.node(D,{kind:y.Kind.INLINE_FRAGMENT,typeCondition:F?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let D=this._lexer.token;if(this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0)return this.node(D,{kind:y.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()});return this.node(D,{kind:y.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(D){let F=this._lexer.token;switch(F.kind){case b.TokenKind.BRACKET_L:return this.parseList(D);case b.TokenKind.BRACE_L:return this.parseObject(D);case b.TokenKind.INT:return this.advanceLexer(),this.node(F,{kind:y.Kind.INT,value:F.value});case b.TokenKind.FLOAT:return this.advanceLexer(),this.node(F,{kind:y.Kind.FLOAT,value:F.value});case b.TokenKind.STRING:case b.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case b.TokenKind.NAME:switch(this.advanceLexer(),F.value){case"true":return this.node(F,{kind:y.Kind.BOOLEAN,value:!0});case"false":return this.node(F,{kind:y.Kind.BOOLEAN,value:!1});case"null":return this.node(F,{kind:y.Kind.NULL});default:return this.node(F,{kind:y.Kind.ENUM,value:F.value})}case b.TokenKind.DOLLAR:if(D)if(this.expectToken(b.TokenKind.DOLLAR),this._lexer.token.kind===b.TokenKind.NAME){let P=this._lexer.token.value;throw C2.syntaxError(this._lexer.source,F.start,`Unexpected variable "$${P}" in constant value.`)}else throw this.unexpected(F);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let D=this._lexer.token;return this.advanceLexer(),this.node(D,{kind:y.Kind.STRING,value:D.value,block:D.kind===b.TokenKind.BLOCK_STRING})}parseList(D){let F=()=>this.parseValueLiteral(D);return this.node(this._lexer.token,{kind:y.Kind.LIST,values:this.any(b.TokenKind.BRACKET_L,F,b.TokenKind.BRACKET_R)})}parseObject(D){let F=()=>this.parseObjectField(D);return this.node(this._lexer.token,{kind:y.Kind.OBJECT,fields:this.any(b.TokenKind.BRACE_L,F,b.TokenKind.BRACE_R)})}parseObjectField(D){let F=this._lexer.token,P=this.parseName();return this.expectToken(b.TokenKind.COLON),this.node(F,{kind:y.Kind.OBJECT_FIELD,name:P,value:this.parseValueLiteral(D)})}parseDirectives(D){let F=[];while(this.peek(b.TokenKind.AT))F.push(this.parseDirective(D));return F}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(D){let F=this._lexer.token;return this.expectToken(b.TokenKind.AT),this.node(F,{kind:y.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(D)})}parseTypeReference(){let D=this._lexer.token,F;if(this.expectOptionalToken(b.TokenKind.BRACKET_L)){let P=this.parseTypeReference();this.expectToken(b.TokenKind.BRACKET_R),F=this.node(D,{kind:y.Kind.LIST_TYPE,type:P})}else F=this.parseNamedType();if(this.expectOptionalToken(b.TokenKind.BANG))return this.node(D,{kind:y.Kind.NON_NULL_TYPE,type:F});return F}parseNamedType(){return this.node(this._lexer.token,{kind:y.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(b.TokenKind.STRING)||this.peek(b.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("schema");let P=this.parseConstDirectives(),B=this.many(b.TokenKind.BRACE_L,this.parseOperationTypeDefinition,b.TokenKind.BRACE_R);return this.node(D,{kind:y.Kind.SCHEMA_DEFINITION,description:F,directives:P,operationTypes:B})}parseOperationTypeDefinition(){let D=this._lexer.token,F=this.parseOperationType();this.expectToken(b.TokenKind.COLON);let P=this.parseNamedType();return this.node(D,{kind:y.Kind.OPERATION_TYPE_DEFINITION,operation:F,type:P})}parseScalarTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("scalar");let P=this.parseName(),B=this.parseConstDirectives();return this.node(D,{kind:y.Kind.SCALAR_TYPE_DEFINITION,description:F,name:P,directives:B})}parseObjectTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("type");let P=this.parseName(),B=this.parseImplementsInterfaces(),Z=this.parseConstDirectives(),q=this.parseFieldsDefinition();return this.node(D,{kind:y.Kind.OBJECT_TYPE_DEFINITION,description:F,name:P,interfaces:B,directives:Z,fields:q})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(b.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(b.TokenKind.BRACE_L,this.parseFieldDefinition,b.TokenKind.BRACE_R)}parseFieldDefinition(){let D=this._lexer.token,F=this.parseDescription(),P=this.parseName(),B=this.parseArgumentDefs();this.expectToken(b.TokenKind.COLON);let Z=this.parseTypeReference(),q=this.parseConstDirectives();return this.node(D,{kind:y.Kind.FIELD_DEFINITION,description:F,name:P,arguments:B,type:Z,directives:q})}parseArgumentDefs(){return this.optionalMany(b.TokenKind.PAREN_L,this.parseInputValueDef,b.TokenKind.PAREN_R)}parseInputValueDef(){let D=this._lexer.token,F=this.parseDescription(),P=this.parseName();this.expectToken(b.TokenKind.COLON);let B=this.parseTypeReference(),Z;if(this.expectOptionalToken(b.TokenKind.EQUALS))Z=this.parseConstValueLiteral();let q=this.parseConstDirectives();return this.node(D,{kind:y.Kind.INPUT_VALUE_DEFINITION,description:F,name:P,type:B,defaultValue:Z,directives:q})}parseInterfaceTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("interface");let P=this.parseName(),B=this.parseImplementsInterfaces(),Z=this.parseConstDirectives(),q=this.parseFieldsDefinition();return this.node(D,{kind:y.Kind.INTERFACE_TYPE_DEFINITION,description:F,name:P,interfaces:B,directives:Z,fields:q})}parseUnionTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("union");let P=this.parseName(),B=this.parseConstDirectives(),Z=this.parseUnionMemberTypes();return this.node(D,{kind:y.Kind.UNION_TYPE_DEFINITION,description:F,name:P,directives:B,types:Z})}parseUnionMemberTypes(){return this.expectOptionalToken(b.TokenKind.EQUALS)?this.delimitedMany(b.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("enum");let P=this.parseName(),B=this.parseConstDirectives(),Z=this.parseEnumValuesDefinition();return this.node(D,{kind:y.Kind.ENUM_TYPE_DEFINITION,description:F,name:P,directives:B,values:Z})}parseEnumValuesDefinition(){return this.optionalMany(b.TokenKind.BRACE_L,this.parseEnumValueDefinition,b.TokenKind.BRACE_R)}parseEnumValueDefinition(){let D=this._lexer.token,F=this.parseDescription(),P=this.parseEnumValueName(),B=this.parseConstDirectives();return this.node(D,{kind:y.Kind.ENUM_VALUE_DEFINITION,description:F,name:P,directives:B})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw C2.syntaxError(this._lexer.source,this._lexer.token.start,`${b6(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("input");let P=this.parseName(),B=this.parseConstDirectives(),Z=this.parseInputFieldsDefinition();return this.node(D,{kind:y.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:F,name:P,directives:B,fields:Z})}parseInputFieldsDefinition(){return this.optionalMany(b.TokenKind.BRACE_L,this.parseInputValueDef,b.TokenKind.BRACE_R)}parseTypeSystemExtension(){let D=this._lexer.lookahead();if(D.kind===b.TokenKind.NAME)switch(D.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(D)}parseSchemaExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let F=this.parseConstDirectives(),P=this.optionalMany(b.TokenKind.BRACE_L,this.parseOperationTypeDefinition,b.TokenKind.BRACE_R);if(F.length===0&&P.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.SCHEMA_EXTENSION,directives:F,operationTypes:P})}parseScalarTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let F=this.parseName(),P=this.parseConstDirectives();if(P.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.SCALAR_TYPE_EXTENSION,name:F,directives:P})}parseObjectTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let F=this.parseName(),P=this.parseImplementsInterfaces(),B=this.parseConstDirectives(),Z=this.parseFieldsDefinition();if(P.length===0&&B.length===0&&Z.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.OBJECT_TYPE_EXTENSION,name:F,interfaces:P,directives:B,fields:Z})}parseInterfaceTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let F=this.parseName(),P=this.parseImplementsInterfaces(),B=this.parseConstDirectives(),Z=this.parseFieldsDefinition();if(P.length===0&&B.length===0&&Z.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.INTERFACE_TYPE_EXTENSION,name:F,interfaces:P,directives:B,fields:Z})}parseUnionTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let F=this.parseName(),P=this.parseConstDirectives(),B=this.parseUnionMemberTypes();if(P.length===0&&B.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.UNION_TYPE_EXTENSION,name:F,directives:P,types:B})}parseEnumTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let F=this.parseName(),P=this.parseConstDirectives(),B=this.parseEnumValuesDefinition();if(P.length===0&&B.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.ENUM_TYPE_EXTENSION,name:F,directives:P,values:B})}parseInputObjectTypeExtension(){let D=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let F=this.parseName(),P=this.parseConstDirectives(),B=this.parseInputFieldsDefinition();if(P.length===0&&B.length===0)throw this.unexpected();return this.node(D,{kind:y.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:F,directives:P,fields:B})}parseDirectiveDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("directive"),this.expectToken(b.TokenKind.AT);let P=this.parseName(),B=this.parseArgumentDefs(),Z=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let q=this.parseDirectiveLocations();return this.node(D,{kind:y.Kind.DIRECTIVE_DEFINITION,description:F,name:P,arguments:B,repeatable:Z,locations:q})}parseDirectiveLocations(){return this.delimitedMany(b.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let D=this._lexer.token,F=this.parseName();if(Object.prototype.hasOwnProperty.call(HI.DirectiveLocation,F.value))return F;throw this.unexpected(D)}node(D,F){if(this._options.noLocation!==!0)F.loc=new n8.Location(D,this._lexer.lastToken,this._lexer.source);return F}peek(D){return this._lexer.token.kind===D}expectToken(D){let F=this._lexer.token;if(F.kind===D)return this.advanceLexer(),F;throw C2.syntaxError(this._lexer.source,F.start,`Expected ${tB(D)}, found ${b6(F)}.`)}expectOptionalToken(D){if(this._lexer.token.kind===D)return this.advanceLexer(),!0;return!1}expectKeyword(D){let F=this._lexer.token;if(F.kind===b.TokenKind.NAME&&F.value===D)this.advanceLexer();else throw C2.syntaxError(this._lexer.source,F.start,`Expected "${D}", found ${b6(F)}.`)}expectOptionalKeyword(D){let F=this._lexer.token;if(F.kind===b.TokenKind.NAME&&F.value===D)return this.advanceLexer(),!0;return!1}unexpected(D){let F=D!==null&&D!==void 0?D:this._lexer.token;return C2.syntaxError(this._lexer.source,F.start,`Unexpected ${b6(F)}.`)}any(D,F,P){this.expectToken(D);let B=[];while(!this.expectOptionalToken(P))B.push(F.call(this));return B}optionalMany(D,F,P){if(this.expectOptionalToken(D)){let B=[];do B.push(F.call(this));while(!this.expectOptionalToken(P));return B}return[]}many(D,F,P){this.expectToken(D);let B=[];do B.push(F.call(this));while(!this.expectOptionalToken(P));return B}delimitedMany(D,F){this.expectOptionalToken(D);let P=[];do P.push(F.call(this));while(this.expectOptionalToken(D));return P}advanceLexer(){let{maxTokens:D}=this._options,F=this._lexer.advance();if(D!==void 0&&F.kind!==b.TokenKind.EOF){if(++this._tokenCounter,this._tokenCounter>D)throw C2.syntaxError(this._lexer.source,F.start,`Document contains more that ${D} tokens. Parsing aborted.`)}}}eB.Parser=q8;function b6(D){let F=D.value;return tB(D.kind)+(F!=null?` "${F}"`:"")}function tB(D){return oB.isPunctuatorTokenKind(D)?`"${D}"`:D}});var o0=Q((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.didYouMean=MI;var $I=5;function MI(D,F){let[P,B]=F?[D,F]:[void 0,D],Z=" Did you mean ";if(P)Z+=P+" ";let q=B.map((Y)=>`"${Y}"`);switch(q.length){case 0:return"";case 1:return Z+q[0]+"?";case 2:return Z+q[0]+" or "+q[1]+"?"}let X=q.slice(0,$I),J=X.pop();return Z+X.join(", ")+", or "+J+"?"}});var BZ=Q((PZ)=>{Object.defineProperty(PZ,"__esModule",{value:!0});PZ.identityFunc=EI;function EI(D){return D}});var t0=Q((ZZ)=>{Object.defineProperty(ZZ,"__esModule",{value:!0});ZZ.keyMap=CI;function CI(D,F){let P=Object.create(null);for(let B of D)P[F(B)]=B;return P}});var i8=Q((qZ)=>{Object.defineProperty(qZ,"__esModule",{value:!0});qZ.keyValMap=wI;function wI(D,F,P){let B=Object.create(null);for(let Z of D)B[F(Z)]=P(Z);return B}});var R4=Q((XZ)=>{Object.defineProperty(XZ,"__esModule",{value:!0});XZ.mapValue=jI;function jI(D,F){let P=Object.create(null);for(let B of Object.keys(D))P[B]=F(D[B],B);return P}});var o8=Q((JZ)=>{Object.defineProperty(JZ,"__esModule",{value:!0});JZ.naturalCompare=SI;function SI(D,F){let P=0,B=0;while(P<D.length&&B<F.length){let Z=D.charCodeAt(P),q=F.charCodeAt(B);if(S6(Z)&&S6(q)){let X=0;do++P,X=X*10+Z-I4,Z=D.charCodeAt(P);while(S6(Z)&&X>0);let J=0;do++B,J=J*10+q-I4,q=F.charCodeAt(B);while(S6(q)&&J>0);if(X<J)return-1;if(X>J)return 1}else{if(Z<q)return-1;if(Z>q)return 1;++P,++B}}return D.length-F.length}var I4=48,TI=57;function S6(D){return!isNaN(D)&&I4<=D&&D<=TI}});var e0=Q((UZ)=>{Object.defineProperty(UZ,"__esModule",{value:!0});UZ.suggestionList=_I;var uI=o8();function _I(D,F){let P=Object.create(null),B=new HZ(D),Z=Math.floor(D.length*0.4)+1;for(let q of F){let X=B.measure(q,Z);if(X!==void 0)P[q]=X}return Object.keys(P).sort((q,X)=>{let J=P[q]-P[X];return J!==0?J:uI.naturalCompare(q,X)})}class HZ{constructor(D){this._input=D,this._inputLowerCase=D.toLowerCase(),this._inputArray=YZ(this._inputLowerCase),this._rows=[new Array(D.length+1).fill(0),new Array(D.length+1).fill(0),new Array(D.length+1).fill(0)]}measure(D,F){if(this._input===D)return 0;let P=D.toLowerCase();if(this._inputLowerCase===P)return 1;let B=YZ(P),Z=this._inputArray;if(B.length<Z.length){let H=B;B=Z,Z=H}let q=B.length,X=Z.length;if(q-X>F)return;let J=this._rows;for(let H=0;H<=X;H++)J[0][H]=H;for(let H=1;H<=q;H++){let W=J[(H-1)%3],U=J[H%3],O=U[0]=H;for(let z=1;z<=X;z++){let I=B[H-1]===Z[z-1]?0:1,R=Math.min(W[z]+1,U[z-1]+1,W[z-1]+I);if(H>1&&z>1&&B[H-1]===Z[z-2]&&B[H-2]===Z[z-1]){let $=J[(H-2)%3][z-2];R=Math.min(R,$+1)}if(R<O)O=R;U[z]=R}if(O>F)return}let Y=J[q%3][X];return Y<=F?Y:void 0}}function YZ(D){let F=D.length,P=new Array(F);for(let B=0;B<F;++B)P[B]=D.charCodeAt(B);return P}});var T6=Q((WZ)=>{Object.defineProperty(WZ,"__esModule",{value:!0});WZ.toObjMap=xI;function xI(D){if(D==null)return Object.create(null);if(Object.getPrototypeOf(D)===null)return D;let F=Object.create(null);for(let[P,B]of Object.entries(D))F[P]=B;return F}});var zZ=Q((OZ)=>{Object.defineProperty(OZ,"__esModule",{value:!0});OZ.printString=hI;function hI(D){return`"${D.replace(vI,gI)}"`}var vI=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function gI(D){return yI[D.charCodeAt(0)]}var yI=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","","\\\"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var L2=Q((GZ)=>{Object.defineProperty(GZ,"__esModule",{value:!0});GZ.BREAK=void 0;GZ.getEnterLeaveForKind=N6;GZ.getVisitFn=rI;GZ.visit=dI;GZ.visitInParallel=pI;var lI=hD(),cI=PD(),$4=A0(),QZ=r(),J8=Object.freeze({});GZ.BREAK=J8;function dI(D,F,P=$4.QueryDocumentKeys){let B=new Map;for(let E of Object.values(QZ.Kind))B.set(E,N6(F,E));let Z=void 0,q=Array.isArray(D),X=[D],J=-1,Y=[],H=D,W=void 0,U=void 0,O=[],z=[];do{J++;let E=J===X.length,w=E&&Y.length!==0;if(E){if(W=z.length===0?void 0:O[O.length-1],H=U,U=z.pop(),w)if(q){H=H.slice();let S=0;for(let[V,T]of Y){let m=V-S;if(T===null)H.splice(m,1),S++;else H[m]=T}}else{H=Object.defineProperties({},Object.getOwnPropertyDescriptors(H));for(let[S,V]of Y)H[S]=V}J=Z.index,X=Z.keys,Y=Z.edits,q=Z.inArray,Z=Z.prev}else if(U){if(W=q?J:X[J],H=U[W],H===null||H===void 0)continue;O.push(W)}let A;if(!Array.isArray(H)){var I,R;$4.isNode(H)||lI.devAssert(!1,`Invalid AST Node: ${cI.inspect(H)}.`);let S=E?(I=B.get(H.kind))===null||I===void 0?void 0:I.leave:(R=B.get(H.kind))===null||R===void 0?void 0:R.enter;if(A=S===null||S===void 0?void 0:S.call(F,H,W,U,O,z),A===J8)break;if(A===!1){if(!E){O.pop();continue}}else if(A!==void 0){if(Y.push([W,A]),!E)if($4.isNode(A))H=A;else{O.pop();continue}}}if(A===void 0&&w)Y.push([W,H]);if(E)O.pop();else{var $;if(Z={inArray:q,index:J,keys:X,edits:Y,prev:Z},q=Array.isArray(H),X=q?H:($=P[H.kind])!==null&&$!==void 0?$:[],J=-1,Y=[],U)z.push(U);U=H}}while(Z!==void 0);if(Y.length!==0)return Y[Y.length-1][1];return D}function pI(D){let F=new Array(D.length).fill(null),P=Object.create(null);for(let B of Object.values(QZ.Kind)){let Z=!1,q=new Array(D.length).fill(void 0),X=new Array(D.length).fill(void 0);for(let Y=0;Y<D.length;++Y){let{enter:H,leave:W}=N6(D[Y],B);Z||(Z=H!=null||W!=null),q[Y]=H,X[Y]=W}if(!Z)continue;let J={enter(...Y){let H=Y[0];for(let U=0;U<D.length;U++)if(F[U]===null){var W;let O=(W=q[U])===null||W===void 0?void 0:W.apply(D[U],Y);if(O===!1)F[U]=H;else if(O===J8)F[U]=J8;else if(O!==void 0)return O}},leave(...Y){let H=Y[0];for(let U=0;U<D.length;U++)if(F[U]===null){var W;let O=(W=X[U])===null||W===void 0?void 0:W.apply(D[U],Y);if(O===J8)F[U]=J8;else if(O!==void 0&&O!==!1)return O}else if(F[U]===H)F[U]=null}};P[B]=J}return P}function N6(D,F){let P=D[F];if(typeof P==="object")return P;else if(typeof P==="function")return{enter:P,leave:void 0};return{enter:D.enter,leave:D.leave}}function rI(D,F,P){let{enter:B,leave:Z}=N6(D,F);return P?Z:B}});var rD=Q(($Z)=>{Object.defineProperty($Z,"__esModule",{value:!0});$Z.print=D$;var oI=p8(),tI=zZ(),eI=L2();function D$(D){return eI.visit(D,P$)}var F$=80,P$={Name:{leave:(D)=>D.value},Variable:{leave:(D)=>"$"+D.name},Document:{leave:(D)=>_(D.definitions,`
44
44
 
45
45
  `)},OperationDefinition:{leave(D){let F=p("(",_(D.variableDefinitions,", "),")"),P=_([D.operation,_([D.name,F]),_(D.directives," ")]," ");return(P==="query"?"":P+" ")+D.selectionSet}},VariableDefinition:{leave:({variable:D,type:F,defaultValue:P,directives:B})=>D+": "+F+p(" = ",P)+p(" ",_(B," "))},SelectionSet:{leave:({selections:D})=>O0(D)},Field:{leave({alias:D,name:F,arguments:P,directives:B,selectionSet:Z}){let q=p("",D,": ")+F,X=q+p("(",_(P,", "),")");if(X.length>F$)X=q+p(`(
46
46
  `,u6(_(P,`
@@ -67,15 +67,15 @@ spurious results.`)}}return!1};rB.instanceOf=ZI});var j6=Q((sB)=>{Object.defineP
67
67
  `)),`
68
68
  }`)}function p(D,F,P=""){return F!=null&&F!==""?D+F+P:""}function u6(D){return p(" ",D.replace(/\n/g,`
69
69
  `))}function IZ(D){var F;return(F=D===null||D===void 0?void 0:D.some((P)=>P.includes(`
70
- `)))!==null&&F!==void 0?F:!1}});var K4=Q((MZ)=>{Object.defineProperty(MZ,"__esModule",{value:!0});MZ.valueFromASTUntyped=M4;var Z$=n8(),g0=r();function M4(D,F){switch(D.kind){case g0.Kind.NULL:return null;case g0.Kind.INT:return parseInt(D.value,10);case g0.Kind.FLOAT:return parseFloat(D.value);case g0.Kind.STRING:case g0.Kind.ENUM:case g0.Kind.BOOLEAN:return D.value;case g0.Kind.LIST:return D.values.map((P)=>M4(P,F));case g0.Kind.OBJECT:return Z$.keyValMap(D.fields,(P)=>P.name.value,(P)=>M4(P.value,F));case g0.Kind.VARIABLE:return F===null||F===void 0?void 0:F[D.name.value]}}});var o8=Q((CZ)=>{Object.defineProperty(CZ,"__esModule",{value:!0});CZ.assertEnumValueName=X$;CZ.assertName=AZ;var KZ=hD(),_6=v(),EZ=C6();function AZ(D){if(D!=null||KZ.devAssert(!1,"Must provide name."),typeof D==="string"||KZ.devAssert(!1,"Expected name to be a string."),D.length===0)throw new _6.GraphQLError("Expected name to be a non-empty string.");for(let F=1;F<D.length;++F)if(!EZ.isNameContinue(D.charCodeAt(F)))throw new _6.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${D}" does not.`);if(!EZ.isNameStart(D.charCodeAt(0)))throw new _6.GraphQLError(`Names must start with [_a-zA-Z] but "${D}" does not.`);return D}function X$(D){if(D==="true"||D==="false"||D==="null")throw new _6.GraphQLError(`Enum values cannot be named: ${D}`);return AZ(D)}});var a=Q((hZ)=>{Object.defineProperty(hZ,"__esModule",{value:!0});hZ.GraphQLUnionType=hZ.GraphQLScalarType=hZ.GraphQLObjectType=hZ.GraphQLNonNull=hZ.GraphQLList=hZ.GraphQLInterfaceType=hZ.GraphQLInputObjectType=hZ.GraphQLEnumType=void 0;hZ.argsToArgsConfig=fZ;hZ.assertAbstractType=b$;hZ.assertCompositeType=j$;hZ.assertEnumType=K$;hZ.assertInputObjectType=E$;hZ.assertInputType=L$;hZ.assertInterfaceType=$$;hZ.assertLeafType=V$;hZ.assertListType=A$;hZ.assertNamedType=u$;hZ.assertNonNullType=C$;hZ.assertNullableType=T$;hZ.assertObjectType=I$;hZ.assertOutputType=w$;hZ.assertScalarType=R$;hZ.assertType=G$;hZ.assertUnionType=M$;hZ.assertWrappingType=S$;hZ.defineArguments=kZ;hZ.getNamedType=_$;hZ.getNullableType=N$;hZ.isAbstractType=TZ;hZ.isCompositeType=SZ;hZ.isEnumType=b2;hZ.isInputObjectType=e8;hZ.isInputType=E4;hZ.isInterfaceType=V2;hZ.isLeafType=bZ;hZ.isListType=h6;hZ.isNamedType=NZ;hZ.isNonNullType=F2;hZ.isNullableType=w4;hZ.isObjectType=H8;hZ.isOutputType=A4;hZ.isRequiredArgument=k$;hZ.isRequiredInputField=h$;hZ.isScalarType=w2;hZ.isType=f6;hZ.isUnionType=j2;hZ.isWrappingType=D1;hZ.resolveObjMapThunk=j4;hZ.resolveReadonlyArrayThunk=V4;var jD=hD(),H$=o0(),LZ=BZ(),XD=PD(),D2=a8(),U$=E0(),W$=t0(),jZ=n8(),x6=R4(),O$=e0(),C0=T6(),t8=v(),z$=r(),wZ=rD(),Q$=K4(),L0=o8();function f6(D){return w2(D)||H8(D)||V2(D)||j2(D)||b2(D)||e8(D)||h6(D)||F2(D)}function G$(D){if(!f6(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL type.`);return D}function w2(D){return D2.instanceOf(D,b4)}function R$(D){if(!w2(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Scalar type.`);return D}function H8(D){return D2.instanceOf(D,S4)}function I$(D){if(!H8(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Object type.`);return D}function V2(D){return D2.instanceOf(D,T4)}function $$(D){if(!V2(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Interface type.`);return D}function j2(D){return D2.instanceOf(D,N4)}function M$(D){if(!j2(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Union type.`);return D}function b2(D){return D2.instanceOf(D,u4)}function K$(D){if(!b2(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Enum type.`);return D}function e8(D){return D2.instanceOf(D,_4)}function E$(D){if(!e8(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Input Object type.`);return D}function h6(D){return D2.instanceOf(D,C4)}function A$(D){if(!h6(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL List type.`);return D}function F2(D){return D2.instanceOf(D,L4)}function C$(D){if(!F2(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Non-Null type.`);return D}function E4(D){return w2(D)||b2(D)||e8(D)||D1(D)&&E4(D.ofType)}function L$(D){if(!E4(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL input type.`);return D}function A4(D){return w2(D)||H8(D)||V2(D)||j2(D)||b2(D)||D1(D)&&A4(D.ofType)}function w$(D){if(!A4(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL output type.`);return D}function bZ(D){return w2(D)||b2(D)}function V$(D){if(!bZ(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL leaf type.`);return D}function SZ(D){return H8(D)||V2(D)||j2(D)}function j$(D){if(!SZ(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL composite type.`);return D}function TZ(D){return V2(D)||j2(D)}function b$(D){if(!TZ(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL abstract type.`);return D}class C4{constructor(D){f6(D)||jD.devAssert(!1,`Expected ${XD.inspect(D)} to be a GraphQL type.`),this.ofType=D}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}hZ.GraphQLList=C4;class L4{constructor(D){w4(D)||jD.devAssert(!1,`Expected ${XD.inspect(D)} to be a GraphQL nullable type.`),this.ofType=D}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}hZ.GraphQLNonNull=L4;function D1(D){return h6(D)||F2(D)}function S$(D){if(!D1(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL wrapping type.`);return D}function w4(D){return f6(D)&&!F2(D)}function T$(D){if(!w4(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL nullable type.`);return D}function N$(D){if(D)return F2(D)?D.ofType:D}function NZ(D){return w2(D)||H8(D)||V2(D)||j2(D)||b2(D)||e8(D)}function u$(D){if(!NZ(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL named type.`);return D}function _$(D){if(D){let F=D;while(D1(F))F=F.ofType;return F}}function V4(D){return typeof D==="function"?D():D}function j4(D){return typeof D==="function"?D():D}class b4{constructor(D){var F,P,B,Z;let q=(F=D.parseValue)!==null&&F!==void 0?F:LZ.identityFunc;if(this.name=L0.assertName(D.name),this.description=D.description,this.specifiedByURL=D.specifiedByURL,this.serialize=(P=D.serialize)!==null&&P!==void 0?P:LZ.identityFunc,this.parseValue=q,this.parseLiteral=(B=D.parseLiteral)!==null&&B!==void 0?B:(X,J)=>q(Q$.valueFromASTUntyped(X,J)),this.extensions=C0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(Z=D.extensionASTNodes)!==null&&Z!==void 0?Z:[],D.specifiedByURL==null||typeof D.specifiedByURL==="string"||jD.devAssert(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${XD.inspect(D.specifiedByURL)}.`),D.serialize==null||typeof D.serialize==="function"||jD.devAssert(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),D.parseLiteral)typeof D.parseValue==="function"&&typeof D.parseLiteral==="function"||jD.devAssert(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}hZ.GraphQLScalarType=b4;class S4{constructor(D){var F;this.name=L0.assertName(D.name),this.description=D.description,this.isTypeOf=D.isTypeOf,this.extensions=C0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._fields=()=>_Z(D),this._interfaces=()=>uZ(D),D.isTypeOf==null||typeof D.isTypeOf==="function"||jD.devAssert(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${XD.inspect(D.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function")this._fields=this._fields();return this._fields}getInterfaces(){if(typeof this._interfaces==="function")this._interfaces=this._interfaces();return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:xZ(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}hZ.GraphQLObjectType=S4;function uZ(D){var F;let P=V4((F=D.interfaces)!==null&&F!==void 0?F:[]);return Array.isArray(P)||jD.devAssert(!1,`${D.name} interfaces must be an Array or a function which returns an Array.`),P}function _Z(D){let F=j4(D.fields);return Y8(F)||jD.devAssert(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),x6.mapValue(F,(P,B)=>{var Z;Y8(P)||jD.devAssert(!1,`${D.name}.${B} field config must be an object.`),P.resolve==null||typeof P.resolve==="function"||jD.devAssert(!1,`${D.name}.${B} field resolver must be a function if provided, but got: ${XD.inspect(P.resolve)}.`);let q=(Z=P.args)!==null&&Z!==void 0?Z:{};return Y8(q)||jD.devAssert(!1,`${D.name}.${B} args must be an object with argument names as keys.`),{name:L0.assertName(B),description:P.description,type:P.type,args:kZ(q),resolve:P.resolve,subscribe:P.subscribe,deprecationReason:P.deprecationReason,extensions:C0.toObjMap(P.extensions),astNode:P.astNode}})}function kZ(D){return Object.entries(D).map(([F,P])=>({name:L0.assertName(F),description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:C0.toObjMap(P.extensions),astNode:P.astNode}))}function Y8(D){return U$.isObjectLike(D)&&!Array.isArray(D)}function xZ(D){return x6.mapValue(D,(F)=>({description:F.description,type:F.type,args:fZ(F.args),resolve:F.resolve,subscribe:F.subscribe,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}))}function fZ(D){return jZ.keyValMap(D,(F)=>F.name,(F)=>({description:F.description,type:F.type,defaultValue:F.defaultValue,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}))}function k$(D){return F2(D.type)&&D.defaultValue===void 0}class T4{constructor(D){var F;this.name=L0.assertName(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=C0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._fields=_Z.bind(void 0,D),this._interfaces=uZ.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||jD.devAssert(!1,`${this.name} must provide "resolveType" as a function, but got: ${XD.inspect(D.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function")this._fields=this._fields();return this._fields}getInterfaces(){if(typeof this._interfaces==="function")this._interfaces=this._interfaces();return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:xZ(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}hZ.GraphQLInterfaceType=T4;class N4{constructor(D){var F;this.name=L0.assertName(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=C0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._types=x$.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||jD.devAssert(!1,`${this.name} must provide "resolveType" as a function, but got: ${XD.inspect(D.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function")this._types=this._types();return this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}hZ.GraphQLUnionType=N4;function x$(D){let F=V4(D.types);return Array.isArray(F)||jD.devAssert(!1,`Must provide Array of types or a function which returns such an array for Union ${D.name}.`),F}class u4{constructor(D){var F;this.name=L0.assertName(D.name),this.description=D.description,this.extensions=C0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._values=typeof D.values==="function"?D.values:VZ(this.name,D.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function")this._values=VZ(this.name,this._values());return this._values}getValue(D){if(this._nameLookup===null)this._nameLookup=W$.keyMap(this.getValues(),(F)=>F.name);return this._nameLookup[D]}serialize(D){if(this._valueLookup===null)this._valueLookup=new Map(this.getValues().map((P)=>[P.value,P]));let F=this._valueLookup.get(D);if(F===void 0)throw new t8.GraphQLError(`Enum "${this.name}" cannot represent value: ${XD.inspect(D)}`);return F.name}parseValue(D){if(typeof D!=="string"){let P=XD.inspect(D);throw new t8.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${P}.`+k6(this,P))}let F=this.getValue(D);if(F==null)throw new t8.GraphQLError(`Value "${D}" does not exist in "${this.name}" enum.`+k6(this,D));return F.value}parseLiteral(D,F){if(D.kind!==z$.Kind.ENUM){let B=wZ.print(D);throw new t8.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${B}.`+k6(this,B),{nodes:D})}let P=this.getValue(D.value);if(P==null){let B=wZ.print(D);throw new t8.GraphQLError(`Value "${B}" does not exist in "${this.name}" enum.`+k6(this,B),{nodes:D})}return P.value}toConfig(){let D=jZ.keyValMap(this.getValues(),(F)=>F.name,(F)=>({description:F.description,value:F.value,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}));return{name:this.name,description:this.description,values:D,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}hZ.GraphQLEnumType=u4;function k6(D,F){let P=D.getValues().map((Z)=>Z.name),B=O$.suggestionList(F,P);return H$.didYouMean("the enum value",B)}function VZ(D,F){return Y8(F)||jD.devAssert(!1,`${D} values must be an object with value names as keys.`),Object.entries(F).map(([P,B])=>{return Y8(B)||jD.devAssert(!1,`${D}.${P} must refer to an object with a "value" key representing an internal value but got: ${XD.inspect(B)}.`),{name:L0.assertEnumValueName(P),description:B.description,value:B.value!==void 0?B.value:P,deprecationReason:B.deprecationReason,extensions:C0.toObjMap(B.extensions),astNode:B.astNode}})}class _4{constructor(D){var F,P;this.name=L0.assertName(D.name),this.description=D.description,this.extensions=C0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this.isOneOf=(P=D.isOneOf)!==null&&P!==void 0?P:!1,this._fields=f$.bind(void 0,D)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function")this._fields=this._fields();return this._fields}toConfig(){let D=x6.mapValue(this.getFields(),(F)=>({description:F.description,type:F.type,defaultValue:F.defaultValue,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}));return{name:this.name,description:this.description,fields:D,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}hZ.GraphQLInputObjectType=_4;function f$(D){let F=j4(D.fields);return Y8(F)||jD.devAssert(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),x6.mapValue(F,(P,B)=>{return!("resolve"in P)||jD.devAssert(!1,`${D.name}.${B} field has a resolve property, but Input Types cannot define resolvers.`),{name:L0.assertName(B),description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:C0.toObjMap(P.extensions),astNode:P.astNode}})}function h$(D){return F2(D.type)&&D.defaultValue===void 0}});var F1=Q((gZ)=>{Object.defineProperty(gZ,"__esModule",{value:!0});gZ.doTypesOverlap=_M;gZ.isEqualType=k4;gZ.isTypeSubTypeOf=v6;var kD=a();function k4(D,F){if(D===F)return!0;if(kD.isNonNullType(D)&&kD.isNonNullType(F))return k4(D.ofType,F.ofType);if(kD.isListType(D)&&kD.isListType(F))return k4(D.ofType,F.ofType);return!1}function v6(D,F,P){if(F===P)return!0;if(kD.isNonNullType(P)){if(kD.isNonNullType(F))return v6(D,F.ofType,P.ofType);return!1}if(kD.isNonNullType(F))return v6(D,F.ofType,P);if(kD.isListType(P)){if(kD.isListType(F))return v6(D,F.ofType,P.ofType);return!1}if(kD.isListType(F))return!1;return kD.isAbstractType(P)&&(kD.isInterfaceType(F)||kD.isObjectType(F))&&D.isSubType(P,F)}function _M(D,F,P){if(F===P)return!0;if(kD.isAbstractType(F)){if(kD.isAbstractType(P))return D.getPossibleTypes(F).some((B)=>D.isSubType(P,B));return D.isSubType(F,P)}if(kD.isAbstractType(P))return D.isSubType(P,F);return!1}});var w0=Q((aZ)=>{Object.defineProperty(aZ,"__esModule",{value:!0});aZ.GraphQLString=aZ.GraphQLInt=aZ.GraphQLID=aZ.GraphQLFloat=aZ.GraphQLBoolean=aZ.GRAPHQL_MIN_INT=aZ.GRAPHQL_MAX_INT=void 0;aZ.isSpecifiedScalarType=hM;aZ.specifiedScalarTypes=void 0;var z0=PD(),yZ=E0(),bD=v(),S2=r(),P1=rD(),B1=a(),g6=2147483647;aZ.GRAPHQL_MAX_INT=g6;var y6=-2147483648;aZ.GRAPHQL_MIN_INT=y6;var mZ=new B1.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(D){let F=Z1(D);if(typeof F==="boolean")return F?1:0;let P=F;if(typeof F==="string"&&F!=="")P=Number(F);if(typeof P!=="number"||!Number.isInteger(P))throw new bD.GraphQLError(`Int cannot represent non-integer value: ${z0.inspect(F)}`);if(P>g6||P<y6)throw new bD.GraphQLError("Int cannot represent non 32-bit signed integer value: "+z0.inspect(F));return P},parseValue(D){if(typeof D!=="number"||!Number.isInteger(D))throw new bD.GraphQLError(`Int cannot represent non-integer value: ${z0.inspect(D)}`);if(D>g6||D<y6)throw new bD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D}`);return D},parseLiteral(D){if(D.kind!==S2.Kind.INT)throw new bD.GraphQLError(`Int cannot represent non-integer value: ${P1.print(D)}`,{nodes:D});let F=parseInt(D.value,10);if(F>g6||F<y6)throw new bD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D.value}`,{nodes:D});return F}});aZ.GraphQLInt=mZ;var lZ=new B1.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(D){let F=Z1(D);if(typeof F==="boolean")return F?1:0;let P=F;if(typeof F==="string"&&F!=="")P=Number(F);if(typeof P!=="number"||!Number.isFinite(P))throw new bD.GraphQLError(`Float cannot represent non numeric value: ${z0.inspect(F)}`);return P},parseValue(D){if(typeof D!=="number"||!Number.isFinite(D))throw new bD.GraphQLError(`Float cannot represent non numeric value: ${z0.inspect(D)}`);return D},parseLiteral(D){if(D.kind!==S2.Kind.FLOAT&&D.kind!==S2.Kind.INT)throw new bD.GraphQLError(`Float cannot represent non numeric value: ${P1.print(D)}`,D);return parseFloat(D.value)}});aZ.GraphQLFloat=lZ;var cZ=new B1.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(D){let F=Z1(D);if(typeof F==="string")return F;if(typeof F==="boolean")return F?"true":"false";if(typeof F==="number"&&Number.isFinite(F))return F.toString();throw new bD.GraphQLError(`String cannot represent value: ${z0.inspect(D)}`)},parseValue(D){if(typeof D!=="string")throw new bD.GraphQLError(`String cannot represent a non string value: ${z0.inspect(D)}`);return D},parseLiteral(D){if(D.kind!==S2.Kind.STRING)throw new bD.GraphQLError(`String cannot represent a non string value: ${P1.print(D)}`,{nodes:D});return D.value}});aZ.GraphQLString=cZ;var dZ=new B1.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(D){let F=Z1(D);if(typeof F==="boolean")return F;if(Number.isFinite(F))return F!==0;throw new bD.GraphQLError(`Boolean cannot represent a non boolean value: ${z0.inspect(F)}`)},parseValue(D){if(typeof D!=="boolean")throw new bD.GraphQLError(`Boolean cannot represent a non boolean value: ${z0.inspect(D)}`);return D},parseLiteral(D){if(D.kind!==S2.Kind.BOOLEAN)throw new bD.GraphQLError(`Boolean cannot represent a non boolean value: ${P1.print(D)}`,{nodes:D});return D.value}});aZ.GraphQLBoolean=dZ;var pZ=new B1.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(D){let F=Z1(D);if(typeof F==="string")return F;if(Number.isInteger(F))return String(F);throw new bD.GraphQLError(`ID cannot represent value: ${z0.inspect(D)}`)},parseValue(D){if(typeof D==="string")return D;if(typeof D==="number"&&Number.isInteger(D))return D.toString();throw new bD.GraphQLError(`ID cannot represent value: ${z0.inspect(D)}`)},parseLiteral(D){if(D.kind!==S2.Kind.STRING&&D.kind!==S2.Kind.INT)throw new bD.GraphQLError("ID cannot represent a non-string and non-integer value: "+P1.print(D),{nodes:D});return D.value}});aZ.GraphQLID=pZ;var rZ=Object.freeze([cZ,mZ,lZ,dZ,pZ]);aZ.specifiedScalarTypes=rZ;function hM(D){return rZ.some(({name:F})=>D.name===F)}function Z1(D){if(yZ.isObjectLike(D)){if(typeof D.valueOf==="function"){let F=D.valueOf();if(!yZ.isObjectLike(F))return F}if(typeof D.toJSON==="function")return D.toJSON()}return D}});var gD=Q((qq)=>{Object.defineProperty(qq,"__esModule",{value:!0});qq.GraphQLSpecifiedByDirective=qq.GraphQLSkipDirective=qq.GraphQLOneOfDirective=qq.GraphQLIncludeDirective=qq.GraphQLDirective=qq.GraphQLDeprecatedDirective=qq.DEFAULT_DEPRECATION_REASON=void 0;qq.assertDirective=iM;qq.isDirective=oZ;qq.isSpecifiedDirective=oM;qq.specifiedDirectives=void 0;var iZ=hD(),pM=PD(),rM=a8(),aM=E0(),sM=T6(),nD=B8(),nM=o8(),q1=a(),m6=w0();function oZ(D){return rM.instanceOf(D,P2)}function iM(D){if(!oZ(D))throw new Error(`Expected ${pM.inspect(D)} to be a GraphQL directive.`);return D}class P2{constructor(D){var F,P;this.name=nM.assertName(D.name),this.description=D.description,this.locations=D.locations,this.isRepeatable=(F=D.isRepeatable)!==null&&F!==void 0?F:!1,this.extensions=sM.toObjMap(D.extensions),this.astNode=D.astNode,Array.isArray(D.locations)||iZ.devAssert(!1,`@${D.name} locations must be an Array.`);let B=(P=D.args)!==null&&P!==void 0?P:{};aM.isObjectLike(B)&&!Array.isArray(B)||iZ.devAssert(!1,`@${D.name} args must be an object with argument names as keys.`),this.args=q1.defineArguments(B)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:q1.argsToArgsConfig(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}qq.GraphQLDirective=P2;var tZ=new P2({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[nD.DirectiveLocation.FIELD,nD.DirectiveLocation.FRAGMENT_SPREAD,nD.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new q1.GraphQLNonNull(m6.GraphQLBoolean),description:"Included when true."}}});qq.GraphQLIncludeDirective=tZ;var eZ=new P2({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[nD.DirectiveLocation.FIELD,nD.DirectiveLocation.FRAGMENT_SPREAD,nD.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new q1.GraphQLNonNull(m6.GraphQLBoolean),description:"Skipped when true."}}});qq.GraphQLSkipDirective=eZ;var Dq="No longer supported";qq.DEFAULT_DEPRECATION_REASON=Dq;var Fq=new P2({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[nD.DirectiveLocation.FIELD_DEFINITION,nD.DirectiveLocation.ARGUMENT_DEFINITION,nD.DirectiveLocation.INPUT_FIELD_DEFINITION,nD.DirectiveLocation.ENUM_VALUE],args:{reason:{type:m6.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Dq}}});qq.GraphQLDeprecatedDirective=Fq;var Pq=new P2({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[nD.DirectiveLocation.SCALAR],args:{url:{type:new q1.GraphQLNonNull(m6.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});qq.GraphQLSpecifiedByDirective=Pq;var Bq=new P2({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[nD.DirectiveLocation.INPUT_OBJECT],args:{}});qq.GraphQLOneOfDirective=Bq;var Zq=Object.freeze([tZ,eZ,Fq,Pq,Bq]);qq.specifiedDirectives=Zq;function oM(D){return Zq.some(({name:F})=>F===D.name)}});var l6=Q((Yq)=>{Object.defineProperty(Yq,"__esModule",{value:!0});Yq.isIterableObject=JK;function JK(D){return typeof D==="object"&&typeof(D===null||D===void 0?void 0:D[Symbol.iterator])==="function"}});var Y1=Q((Wq)=>{Object.defineProperty(Wq,"__esModule",{value:!0});Wq.astFromValue=J1;var Hq=PD(),HK=_D(),UK=l6(),WK=E0(),iD=r(),X1=a(),OK=w0();function J1(D,F){if(X1.isNonNullType(F)){let P=J1(D,F.ofType);if((P===null||P===void 0?void 0:P.kind)===iD.Kind.NULL)return null;return P}if(D===null)return{kind:iD.Kind.NULL};if(D===void 0)return null;if(X1.isListType(F)){let P=F.ofType;if(UK.isIterableObject(D)){let B=[];for(let Z of D){let q=J1(Z,P);if(q!=null)B.push(q)}return{kind:iD.Kind.LIST,values:B}}return J1(D,P)}if(X1.isInputObjectType(F)){if(!WK.isObjectLike(D))return null;let P=[];for(let B of Object.values(F.getFields())){let Z=J1(D[B.name],B.type);if(Z)P.push({kind:iD.Kind.OBJECT_FIELD,name:{kind:iD.Kind.NAME,value:B.name},value:Z})}return{kind:iD.Kind.OBJECT,fields:P}}if(X1.isLeafType(F)){let P=F.serialize(D);if(P==null)return null;if(typeof P==="boolean")return{kind:iD.Kind.BOOLEAN,value:P};if(typeof P==="number"&&Number.isFinite(P)){let B=String(P);return Uq.test(B)?{kind:iD.Kind.INT,value:B}:{kind:iD.Kind.FLOAT,value:B}}if(typeof P==="string"){if(X1.isEnumType(F))return{kind:iD.Kind.ENUM,value:P};if(F===OK.GraphQLID&&Uq.test(P))return{kind:iD.Kind.INT,value:P};return{kind:iD.Kind.STRING,value:P}}throw new TypeError(`Cannot convert value to AST: ${Hq.inspect(P)}.`)}HK.invariant(!1,"Unexpected input type: "+Hq.inspect(F))}var Uq=/^-?(?:0|[1-9][0-9]*)$/});var tD=Q((zq)=>{Object.defineProperty(zq,"__esModule",{value:!0});zq.introspectionTypes=zq.__TypeKind=zq.__Type=zq.__Schema=zq.__InputValue=zq.__Field=zq.__EnumValue=zq.__DirectiveLocation=zq.__Directive=zq.TypeNameMetaFieldDef=zq.TypeMetaFieldDef=zq.TypeKind=zq.SchemaMetaFieldDef=void 0;zq.isIntrospectionType=EK;var QK=PD(),GK=_D(),CD=B8(),RK=rD(),IK=Y1(),u=a(),qD=w0(),x4=new u.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:qD.GraphQLString,resolve:(D)=>D.description},types:{description:"A list of all types supported by this server.",type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(oD))),resolve(D){return Object.values(D.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new u.GraphQLNonNull(oD),resolve:(D)=>D.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:oD,resolve:(D)=>D.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:oD,resolve:(D)=>D.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(f4))),resolve:(D)=>D.getDirectives()}})});zq.__Schema=x4;var f4=new u.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
70
+ `)))!==null&&F!==void 0?F:!1}});var K4=Q((MZ)=>{Object.defineProperty(MZ,"__esModule",{value:!0});MZ.valueFromASTUntyped=M4;var Z$=i8(),g0=r();function M4(D,F){switch(D.kind){case g0.Kind.NULL:return null;case g0.Kind.INT:return parseInt(D.value,10);case g0.Kind.FLOAT:return parseFloat(D.value);case g0.Kind.STRING:case g0.Kind.ENUM:case g0.Kind.BOOLEAN:return D.value;case g0.Kind.LIST:return D.values.map((P)=>M4(P,F));case g0.Kind.OBJECT:return Z$.keyValMap(D.fields,(P)=>P.name.value,(P)=>M4(P.value,F));case g0.Kind.VARIABLE:return F===null||F===void 0?void 0:F[D.name.value]}}});var t8=Q((CZ)=>{Object.defineProperty(CZ,"__esModule",{value:!0});CZ.assertEnumValueName=X$;CZ.assertName=AZ;var KZ=hD(),_6=v(),EZ=C6();function AZ(D){if(D!=null||KZ.devAssert(!1,"Must provide name."),typeof D==="string"||KZ.devAssert(!1,"Expected name to be a string."),D.length===0)throw new _6.GraphQLError("Expected name to be a non-empty string.");for(let F=1;F<D.length;++F)if(!EZ.isNameContinue(D.charCodeAt(F)))throw new _6.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${D}" does not.`);if(!EZ.isNameStart(D.charCodeAt(0)))throw new _6.GraphQLError(`Names must start with [_a-zA-Z] but "${D}" does not.`);return D}function X$(D){if(D==="true"||D==="false"||D==="null")throw new _6.GraphQLError(`Enum values cannot be named: ${D}`);return AZ(D)}});var a=Q((hZ)=>{Object.defineProperty(hZ,"__esModule",{value:!0});hZ.GraphQLUnionType=hZ.GraphQLScalarType=hZ.GraphQLObjectType=hZ.GraphQLNonNull=hZ.GraphQLList=hZ.GraphQLInterfaceType=hZ.GraphQLInputObjectType=hZ.GraphQLEnumType=void 0;hZ.argsToArgsConfig=fZ;hZ.assertAbstractType=b$;hZ.assertCompositeType=j$;hZ.assertEnumType=K$;hZ.assertInputObjectType=E$;hZ.assertInputType=L$;hZ.assertInterfaceType=$$;hZ.assertLeafType=V$;hZ.assertListType=A$;hZ.assertNamedType=u$;hZ.assertNonNullType=C$;hZ.assertNullableType=T$;hZ.assertObjectType=I$;hZ.assertOutputType=w$;hZ.assertScalarType=R$;hZ.assertType=G$;hZ.assertUnionType=M$;hZ.assertWrappingType=S$;hZ.defineArguments=kZ;hZ.getNamedType=_$;hZ.getNullableType=N$;hZ.isAbstractType=TZ;hZ.isCompositeType=SZ;hZ.isEnumType=b2;hZ.isInputObjectType=D1;hZ.isInputType=E4;hZ.isInterfaceType=V2;hZ.isLeafType=bZ;hZ.isListType=h6;hZ.isNamedType=NZ;hZ.isNonNullType=F2;hZ.isNullableType=w4;hZ.isObjectType=H8;hZ.isOutputType=A4;hZ.isRequiredArgument=k$;hZ.isRequiredInputField=h$;hZ.isScalarType=w2;hZ.isType=f6;hZ.isUnionType=j2;hZ.isWrappingType=F1;hZ.resolveObjMapThunk=j4;hZ.resolveReadonlyArrayThunk=V4;var jD=hD(),H$=o0(),LZ=BZ(),XD=PD(),D2=s8(),U$=E0(),W$=t0(),jZ=i8(),x6=R4(),O$=e0(),C0=T6(),e8=v(),z$=r(),wZ=rD(),Q$=K4(),L0=t8();function f6(D){return w2(D)||H8(D)||V2(D)||j2(D)||b2(D)||D1(D)||h6(D)||F2(D)}function G$(D){if(!f6(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL type.`);return D}function w2(D){return D2.instanceOf(D,b4)}function R$(D){if(!w2(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Scalar type.`);return D}function H8(D){return D2.instanceOf(D,S4)}function I$(D){if(!H8(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Object type.`);return D}function V2(D){return D2.instanceOf(D,T4)}function $$(D){if(!V2(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Interface type.`);return D}function j2(D){return D2.instanceOf(D,N4)}function M$(D){if(!j2(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Union type.`);return D}function b2(D){return D2.instanceOf(D,u4)}function K$(D){if(!b2(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Enum type.`);return D}function D1(D){return D2.instanceOf(D,_4)}function E$(D){if(!D1(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Input Object type.`);return D}function h6(D){return D2.instanceOf(D,C4)}function A$(D){if(!h6(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL List type.`);return D}function F2(D){return D2.instanceOf(D,L4)}function C$(D){if(!F2(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL Non-Null type.`);return D}function E4(D){return w2(D)||b2(D)||D1(D)||F1(D)&&E4(D.ofType)}function L$(D){if(!E4(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL input type.`);return D}function A4(D){return w2(D)||H8(D)||V2(D)||j2(D)||b2(D)||F1(D)&&A4(D.ofType)}function w$(D){if(!A4(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL output type.`);return D}function bZ(D){return w2(D)||b2(D)}function V$(D){if(!bZ(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL leaf type.`);return D}function SZ(D){return H8(D)||V2(D)||j2(D)}function j$(D){if(!SZ(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL composite type.`);return D}function TZ(D){return V2(D)||j2(D)}function b$(D){if(!TZ(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL abstract type.`);return D}class C4{constructor(D){f6(D)||jD.devAssert(!1,`Expected ${XD.inspect(D)} to be a GraphQL type.`),this.ofType=D}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}hZ.GraphQLList=C4;class L4{constructor(D){w4(D)||jD.devAssert(!1,`Expected ${XD.inspect(D)} to be a GraphQL nullable type.`),this.ofType=D}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}hZ.GraphQLNonNull=L4;function F1(D){return h6(D)||F2(D)}function S$(D){if(!F1(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL wrapping type.`);return D}function w4(D){return f6(D)&&!F2(D)}function T$(D){if(!w4(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL nullable type.`);return D}function N$(D){if(D)return F2(D)?D.ofType:D}function NZ(D){return w2(D)||H8(D)||V2(D)||j2(D)||b2(D)||D1(D)}function u$(D){if(!NZ(D))throw new Error(`Expected ${XD.inspect(D)} to be a GraphQL named type.`);return D}function _$(D){if(D){let F=D;while(F1(F))F=F.ofType;return F}}function V4(D){return typeof D==="function"?D():D}function j4(D){return typeof D==="function"?D():D}class b4{constructor(D){var F,P,B,Z;let q=(F=D.parseValue)!==null&&F!==void 0?F:LZ.identityFunc;if(this.name=L0.assertName(D.name),this.description=D.description,this.specifiedByURL=D.specifiedByURL,this.serialize=(P=D.serialize)!==null&&P!==void 0?P:LZ.identityFunc,this.parseValue=q,this.parseLiteral=(B=D.parseLiteral)!==null&&B!==void 0?B:(X,J)=>q(Q$.valueFromASTUntyped(X,J)),this.extensions=C0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(Z=D.extensionASTNodes)!==null&&Z!==void 0?Z:[],D.specifiedByURL==null||typeof D.specifiedByURL==="string"||jD.devAssert(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${XD.inspect(D.specifiedByURL)}.`),D.serialize==null||typeof D.serialize==="function"||jD.devAssert(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),D.parseLiteral)typeof D.parseValue==="function"&&typeof D.parseLiteral==="function"||jD.devAssert(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`)}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}hZ.GraphQLScalarType=b4;class S4{constructor(D){var F;this.name=L0.assertName(D.name),this.description=D.description,this.isTypeOf=D.isTypeOf,this.extensions=C0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._fields=()=>_Z(D),this._interfaces=()=>uZ(D),D.isTypeOf==null||typeof D.isTypeOf==="function"||jD.devAssert(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${XD.inspect(D.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){if(typeof this._fields==="function")this._fields=this._fields();return this._fields}getInterfaces(){if(typeof this._interfaces==="function")this._interfaces=this._interfaces();return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:xZ(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}hZ.GraphQLObjectType=S4;function uZ(D){var F;let P=V4((F=D.interfaces)!==null&&F!==void 0?F:[]);return Array.isArray(P)||jD.devAssert(!1,`${D.name} interfaces must be an Array or a function which returns an Array.`),P}function _Z(D){let F=j4(D.fields);return Y8(F)||jD.devAssert(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),x6.mapValue(F,(P,B)=>{var Z;Y8(P)||jD.devAssert(!1,`${D.name}.${B} field config must be an object.`),P.resolve==null||typeof P.resolve==="function"||jD.devAssert(!1,`${D.name}.${B} field resolver must be a function if provided, but got: ${XD.inspect(P.resolve)}.`);let q=(Z=P.args)!==null&&Z!==void 0?Z:{};return Y8(q)||jD.devAssert(!1,`${D.name}.${B} args must be an object with argument names as keys.`),{name:L0.assertName(B),description:P.description,type:P.type,args:kZ(q),resolve:P.resolve,subscribe:P.subscribe,deprecationReason:P.deprecationReason,extensions:C0.toObjMap(P.extensions),astNode:P.astNode}})}function kZ(D){return Object.entries(D).map(([F,P])=>({name:L0.assertName(F),description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:C0.toObjMap(P.extensions),astNode:P.astNode}))}function Y8(D){return U$.isObjectLike(D)&&!Array.isArray(D)}function xZ(D){return x6.mapValue(D,(F)=>({description:F.description,type:F.type,args:fZ(F.args),resolve:F.resolve,subscribe:F.subscribe,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}))}function fZ(D){return jZ.keyValMap(D,(F)=>F.name,(F)=>({description:F.description,type:F.type,defaultValue:F.defaultValue,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}))}function k$(D){return F2(D.type)&&D.defaultValue===void 0}class T4{constructor(D){var F;this.name=L0.assertName(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=C0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._fields=_Z.bind(void 0,D),this._interfaces=uZ.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||jD.devAssert(!1,`${this.name} must provide "resolveType" as a function, but got: ${XD.inspect(D.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){if(typeof this._fields==="function")this._fields=this._fields();return this._fields}getInterfaces(){if(typeof this._interfaces==="function")this._interfaces=this._interfaces();return this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:xZ(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}hZ.GraphQLInterfaceType=T4;class N4{constructor(D){var F;this.name=L0.assertName(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=C0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._types=x$.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||jD.devAssert(!1,`${this.name} must provide "resolveType" as a function, but got: ${XD.inspect(D.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){if(typeof this._types==="function")this._types=this._types();return this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}hZ.GraphQLUnionType=N4;function x$(D){let F=V4(D.types);return Array.isArray(F)||jD.devAssert(!1,`Must provide Array of types or a function which returns such an array for Union ${D.name}.`),F}class u4{constructor(D){var F;this.name=L0.assertName(D.name),this.description=D.description,this.extensions=C0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._values=typeof D.values==="function"?D.values:VZ(this.name,D.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function")this._values=VZ(this.name,this._values());return this._values}getValue(D){if(this._nameLookup===null)this._nameLookup=W$.keyMap(this.getValues(),(F)=>F.name);return this._nameLookup[D]}serialize(D){if(this._valueLookup===null)this._valueLookup=new Map(this.getValues().map((P)=>[P.value,P]));let F=this._valueLookup.get(D);if(F===void 0)throw new e8.GraphQLError(`Enum "${this.name}" cannot represent value: ${XD.inspect(D)}`);return F.name}parseValue(D){if(typeof D!=="string"){let P=XD.inspect(D);throw new e8.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${P}.`+k6(this,P))}let F=this.getValue(D);if(F==null)throw new e8.GraphQLError(`Value "${D}" does not exist in "${this.name}" enum.`+k6(this,D));return F.value}parseLiteral(D,F){if(D.kind!==z$.Kind.ENUM){let B=wZ.print(D);throw new e8.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${B}.`+k6(this,B),{nodes:D})}let P=this.getValue(D.value);if(P==null){let B=wZ.print(D);throw new e8.GraphQLError(`Value "${B}" does not exist in "${this.name}" enum.`+k6(this,B),{nodes:D})}return P.value}toConfig(){let D=jZ.keyValMap(this.getValues(),(F)=>F.name,(F)=>({description:F.description,value:F.value,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}));return{name:this.name,description:this.description,values:D,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}hZ.GraphQLEnumType=u4;function k6(D,F){let P=D.getValues().map((Z)=>Z.name),B=O$.suggestionList(F,P);return H$.didYouMean("the enum value",B)}function VZ(D,F){return Y8(F)||jD.devAssert(!1,`${D} values must be an object with value names as keys.`),Object.entries(F).map(([P,B])=>{return Y8(B)||jD.devAssert(!1,`${D}.${P} must refer to an object with a "value" key representing an internal value but got: ${XD.inspect(B)}.`),{name:L0.assertEnumValueName(P),description:B.description,value:B.value!==void 0?B.value:P,deprecationReason:B.deprecationReason,extensions:C0.toObjMap(B.extensions),astNode:B.astNode}})}class _4{constructor(D){var F,P;this.name=L0.assertName(D.name),this.description=D.description,this.extensions=C0.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this.isOneOf=(P=D.isOneOf)!==null&&P!==void 0?P:!1,this._fields=f$.bind(void 0,D)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){if(typeof this._fields==="function")this._fields=this._fields();return this._fields}toConfig(){let D=x6.mapValue(this.getFields(),(F)=>({description:F.description,type:F.type,defaultValue:F.defaultValue,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}));return{name:this.name,description:this.description,fields:D,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}hZ.GraphQLInputObjectType=_4;function f$(D){let F=j4(D.fields);return Y8(F)||jD.devAssert(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),x6.mapValue(F,(P,B)=>{return!("resolve"in P)||jD.devAssert(!1,`${D.name}.${B} field has a resolve property, but Input Types cannot define resolvers.`),{name:L0.assertName(B),description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:C0.toObjMap(P.extensions),astNode:P.astNode}})}function h$(D){return F2(D.type)&&D.defaultValue===void 0}});var P1=Q((gZ)=>{Object.defineProperty(gZ,"__esModule",{value:!0});gZ.doTypesOverlap=_M;gZ.isEqualType=k4;gZ.isTypeSubTypeOf=v6;var kD=a();function k4(D,F){if(D===F)return!0;if(kD.isNonNullType(D)&&kD.isNonNullType(F))return k4(D.ofType,F.ofType);if(kD.isListType(D)&&kD.isListType(F))return k4(D.ofType,F.ofType);return!1}function v6(D,F,P){if(F===P)return!0;if(kD.isNonNullType(P)){if(kD.isNonNullType(F))return v6(D,F.ofType,P.ofType);return!1}if(kD.isNonNullType(F))return v6(D,F.ofType,P);if(kD.isListType(P)){if(kD.isListType(F))return v6(D,F.ofType,P.ofType);return!1}if(kD.isListType(F))return!1;return kD.isAbstractType(P)&&(kD.isInterfaceType(F)||kD.isObjectType(F))&&D.isSubType(P,F)}function _M(D,F,P){if(F===P)return!0;if(kD.isAbstractType(F)){if(kD.isAbstractType(P))return D.getPossibleTypes(F).some((B)=>D.isSubType(P,B));return D.isSubType(F,P)}if(kD.isAbstractType(P))return D.isSubType(P,F);return!1}});var w0=Q((aZ)=>{Object.defineProperty(aZ,"__esModule",{value:!0});aZ.GraphQLString=aZ.GraphQLInt=aZ.GraphQLID=aZ.GraphQLFloat=aZ.GraphQLBoolean=aZ.GRAPHQL_MIN_INT=aZ.GRAPHQL_MAX_INT=void 0;aZ.isSpecifiedScalarType=hM;aZ.specifiedScalarTypes=void 0;var z0=PD(),yZ=E0(),bD=v(),S2=r(),B1=rD(),Z1=a(),g6=2147483647;aZ.GRAPHQL_MAX_INT=g6;var y6=-2147483648;aZ.GRAPHQL_MIN_INT=y6;var mZ=new Z1.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(D){let F=q1(D);if(typeof F==="boolean")return F?1:0;let P=F;if(typeof F==="string"&&F!=="")P=Number(F);if(typeof P!=="number"||!Number.isInteger(P))throw new bD.GraphQLError(`Int cannot represent non-integer value: ${z0.inspect(F)}`);if(P>g6||P<y6)throw new bD.GraphQLError("Int cannot represent non 32-bit signed integer value: "+z0.inspect(F));return P},parseValue(D){if(typeof D!=="number"||!Number.isInteger(D))throw new bD.GraphQLError(`Int cannot represent non-integer value: ${z0.inspect(D)}`);if(D>g6||D<y6)throw new bD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D}`);return D},parseLiteral(D){if(D.kind!==S2.Kind.INT)throw new bD.GraphQLError(`Int cannot represent non-integer value: ${B1.print(D)}`,{nodes:D});let F=parseInt(D.value,10);if(F>g6||F<y6)throw new bD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D.value}`,{nodes:D});return F}});aZ.GraphQLInt=mZ;var lZ=new Z1.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(D){let F=q1(D);if(typeof F==="boolean")return F?1:0;let P=F;if(typeof F==="string"&&F!=="")P=Number(F);if(typeof P!=="number"||!Number.isFinite(P))throw new bD.GraphQLError(`Float cannot represent non numeric value: ${z0.inspect(F)}`);return P},parseValue(D){if(typeof D!=="number"||!Number.isFinite(D))throw new bD.GraphQLError(`Float cannot represent non numeric value: ${z0.inspect(D)}`);return D},parseLiteral(D){if(D.kind!==S2.Kind.FLOAT&&D.kind!==S2.Kind.INT)throw new bD.GraphQLError(`Float cannot represent non numeric value: ${B1.print(D)}`,D);return parseFloat(D.value)}});aZ.GraphQLFloat=lZ;var cZ=new Z1.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(D){let F=q1(D);if(typeof F==="string")return F;if(typeof F==="boolean")return F?"true":"false";if(typeof F==="number"&&Number.isFinite(F))return F.toString();throw new bD.GraphQLError(`String cannot represent value: ${z0.inspect(D)}`)},parseValue(D){if(typeof D!=="string")throw new bD.GraphQLError(`String cannot represent a non string value: ${z0.inspect(D)}`);return D},parseLiteral(D){if(D.kind!==S2.Kind.STRING)throw new bD.GraphQLError(`String cannot represent a non string value: ${B1.print(D)}`,{nodes:D});return D.value}});aZ.GraphQLString=cZ;var dZ=new Z1.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(D){let F=q1(D);if(typeof F==="boolean")return F;if(Number.isFinite(F))return F!==0;throw new bD.GraphQLError(`Boolean cannot represent a non boolean value: ${z0.inspect(F)}`)},parseValue(D){if(typeof D!=="boolean")throw new bD.GraphQLError(`Boolean cannot represent a non boolean value: ${z0.inspect(D)}`);return D},parseLiteral(D){if(D.kind!==S2.Kind.BOOLEAN)throw new bD.GraphQLError(`Boolean cannot represent a non boolean value: ${B1.print(D)}`,{nodes:D});return D.value}});aZ.GraphQLBoolean=dZ;var pZ=new Z1.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(D){let F=q1(D);if(typeof F==="string")return F;if(Number.isInteger(F))return String(F);throw new bD.GraphQLError(`ID cannot represent value: ${z0.inspect(D)}`)},parseValue(D){if(typeof D==="string")return D;if(typeof D==="number"&&Number.isInteger(D))return D.toString();throw new bD.GraphQLError(`ID cannot represent value: ${z0.inspect(D)}`)},parseLiteral(D){if(D.kind!==S2.Kind.STRING&&D.kind!==S2.Kind.INT)throw new bD.GraphQLError("ID cannot represent a non-string and non-integer value: "+B1.print(D),{nodes:D});return D.value}});aZ.GraphQLID=pZ;var rZ=Object.freeze([cZ,mZ,lZ,dZ,pZ]);aZ.specifiedScalarTypes=rZ;function hM(D){return rZ.some(({name:F})=>D.name===F)}function q1(D){if(yZ.isObjectLike(D)){if(typeof D.valueOf==="function"){let F=D.valueOf();if(!yZ.isObjectLike(F))return F}if(typeof D.toJSON==="function")return D.toJSON()}return D}});var gD=Q((qq)=>{Object.defineProperty(qq,"__esModule",{value:!0});qq.GraphQLSpecifiedByDirective=qq.GraphQLSkipDirective=qq.GraphQLOneOfDirective=qq.GraphQLIncludeDirective=qq.GraphQLDirective=qq.GraphQLDeprecatedDirective=qq.DEFAULT_DEPRECATION_REASON=void 0;qq.assertDirective=iM;qq.isDirective=oZ;qq.isSpecifiedDirective=oM;qq.specifiedDirectives=void 0;var iZ=hD(),pM=PD(),rM=s8(),aM=E0(),sM=T6(),nD=B8(),nM=t8(),X1=a(),m6=w0();function oZ(D){return rM.instanceOf(D,P2)}function iM(D){if(!oZ(D))throw new Error(`Expected ${pM.inspect(D)} to be a GraphQL directive.`);return D}class P2{constructor(D){var F,P;this.name=nM.assertName(D.name),this.description=D.description,this.locations=D.locations,this.isRepeatable=(F=D.isRepeatable)!==null&&F!==void 0?F:!1,this.extensions=sM.toObjMap(D.extensions),this.astNode=D.astNode,Array.isArray(D.locations)||iZ.devAssert(!1,`@${D.name} locations must be an Array.`);let B=(P=D.args)!==null&&P!==void 0?P:{};aM.isObjectLike(B)&&!Array.isArray(B)||iZ.devAssert(!1,`@${D.name} args must be an object with argument names as keys.`),this.args=X1.defineArguments(B)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:X1.argsToArgsConfig(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}qq.GraphQLDirective=P2;var tZ=new P2({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[nD.DirectiveLocation.FIELD,nD.DirectiveLocation.FRAGMENT_SPREAD,nD.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new X1.GraphQLNonNull(m6.GraphQLBoolean),description:"Included when true."}}});qq.GraphQLIncludeDirective=tZ;var eZ=new P2({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[nD.DirectiveLocation.FIELD,nD.DirectiveLocation.FRAGMENT_SPREAD,nD.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new X1.GraphQLNonNull(m6.GraphQLBoolean),description:"Skipped when true."}}});qq.GraphQLSkipDirective=eZ;var Dq="No longer supported";qq.DEFAULT_DEPRECATION_REASON=Dq;var Fq=new P2({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[nD.DirectiveLocation.FIELD_DEFINITION,nD.DirectiveLocation.ARGUMENT_DEFINITION,nD.DirectiveLocation.INPUT_FIELD_DEFINITION,nD.DirectiveLocation.ENUM_VALUE],args:{reason:{type:m6.GraphQLString,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:Dq}}});qq.GraphQLDeprecatedDirective=Fq;var Pq=new P2({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[nD.DirectiveLocation.SCALAR],args:{url:{type:new X1.GraphQLNonNull(m6.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});qq.GraphQLSpecifiedByDirective=Pq;var Bq=new P2({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[nD.DirectiveLocation.INPUT_OBJECT],args:{}});qq.GraphQLOneOfDirective=Bq;var Zq=Object.freeze([tZ,eZ,Fq,Pq,Bq]);qq.specifiedDirectives=Zq;function oM(D){return Zq.some(({name:F})=>F===D.name)}});var l6=Q((Yq)=>{Object.defineProperty(Yq,"__esModule",{value:!0});Yq.isIterableObject=JK;function JK(D){return typeof D==="object"&&typeof(D===null||D===void 0?void 0:D[Symbol.iterator])==="function"}});var H1=Q((Wq)=>{Object.defineProperty(Wq,"__esModule",{value:!0});Wq.astFromValue=Y1;var Hq=PD(),HK=_D(),UK=l6(),WK=E0(),iD=r(),J1=a(),OK=w0();function Y1(D,F){if(J1.isNonNullType(F)){let P=Y1(D,F.ofType);if((P===null||P===void 0?void 0:P.kind)===iD.Kind.NULL)return null;return P}if(D===null)return{kind:iD.Kind.NULL};if(D===void 0)return null;if(J1.isListType(F)){let P=F.ofType;if(UK.isIterableObject(D)){let B=[];for(let Z of D){let q=Y1(Z,P);if(q!=null)B.push(q)}return{kind:iD.Kind.LIST,values:B}}return Y1(D,P)}if(J1.isInputObjectType(F)){if(!WK.isObjectLike(D))return null;let P=[];for(let B of Object.values(F.getFields())){let Z=Y1(D[B.name],B.type);if(Z)P.push({kind:iD.Kind.OBJECT_FIELD,name:{kind:iD.Kind.NAME,value:B.name},value:Z})}return{kind:iD.Kind.OBJECT,fields:P}}if(J1.isLeafType(F)){let P=F.serialize(D);if(P==null)return null;if(typeof P==="boolean")return{kind:iD.Kind.BOOLEAN,value:P};if(typeof P==="number"&&Number.isFinite(P)){let B=String(P);return Uq.test(B)?{kind:iD.Kind.INT,value:B}:{kind:iD.Kind.FLOAT,value:B}}if(typeof P==="string"){if(J1.isEnumType(F))return{kind:iD.Kind.ENUM,value:P};if(F===OK.GraphQLID&&Uq.test(P))return{kind:iD.Kind.INT,value:P};return{kind:iD.Kind.STRING,value:P}}throw new TypeError(`Cannot convert value to AST: ${Hq.inspect(P)}.`)}HK.invariant(!1,"Unexpected input type: "+Hq.inspect(F))}var Uq=/^-?(?:0|[1-9][0-9]*)$/});var tD=Q((zq)=>{Object.defineProperty(zq,"__esModule",{value:!0});zq.introspectionTypes=zq.__TypeKind=zq.__Type=zq.__Schema=zq.__InputValue=zq.__Field=zq.__EnumValue=zq.__DirectiveLocation=zq.__Directive=zq.TypeNameMetaFieldDef=zq.TypeMetaFieldDef=zq.TypeKind=zq.SchemaMetaFieldDef=void 0;zq.isIntrospectionType=EK;var QK=PD(),GK=_D(),CD=B8(),RK=rD(),IK=H1(),u=a(),qD=w0(),x4=new u.GraphQLObjectType({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:qD.GraphQLString,resolve:(D)=>D.description},types:{description:"A list of all types supported by this server.",type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(oD))),resolve(D){return Object.values(D.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new u.GraphQLNonNull(oD),resolve:(D)=>D.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:oD,resolve:(D)=>D.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:oD,resolve:(D)=>D.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(f4))),resolve:(D)=>D.getDirectives()}})});zq.__Schema=x4;var f4=new u.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
71
71
 
72
- In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new u.GraphQLNonNull(qD.GraphQLString),resolve:(D)=>D.name},description:{type:qD.GraphQLString,resolve:(D)=>D.description},isRepeatable:{type:new u.GraphQLNonNull(qD.GraphQLBoolean),resolve:(D)=>D.isRepeatable},locations:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(h4))),resolve:(D)=>D.locations},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(H1))),args:{includeDeprecated:{type:qD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){return F?D.args:D.args.filter((P)=>P.deprecationReason==null)}}})});zq.__Directive=f4;var h4=new u.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:CD.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:CD.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:CD.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:CD.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:CD.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:CD.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:CD.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:CD.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:CD.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:CD.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:CD.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:CD.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:CD.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:CD.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:CD.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:CD.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:CD.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:CD.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:CD.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});zq.__DirectiveLocation=h4;var oD=new u.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new u.GraphQLNonNull(y4),resolve(D){if(u.isScalarType(D))return LD.SCALAR;if(u.isObjectType(D))return LD.OBJECT;if(u.isInterfaceType(D))return LD.INTERFACE;if(u.isUnionType(D))return LD.UNION;if(u.isEnumType(D))return LD.ENUM;if(u.isInputObjectType(D))return LD.INPUT_OBJECT;if(u.isListType(D))return LD.LIST;if(u.isNonNullType(D))return LD.NON_NULL;GK.invariant(!1,`Unexpected type: "${QK.inspect(D)}".`)}},name:{type:qD.GraphQLString,resolve:(D)=>("name"in D)?D.name:void 0},description:{type:qD.GraphQLString,resolve:(D)=>("description"in D)?D.description:void 0},specifiedByURL:{type:qD.GraphQLString,resolve:(D)=>("specifiedByURL"in D)?D.specifiedByURL:void 0},fields:{type:new u.GraphQLList(new u.GraphQLNonNull(v4)),args:{includeDeprecated:{type:qD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if(u.isObjectType(D)||u.isInterfaceType(D)){let P=Object.values(D.getFields());return F?P:P.filter((B)=>B.deprecationReason==null)}}},interfaces:{type:new u.GraphQLList(new u.GraphQLNonNull(oD)),resolve(D){if(u.isObjectType(D)||u.isInterfaceType(D))return D.getInterfaces()}},possibleTypes:{type:new u.GraphQLList(new u.GraphQLNonNull(oD)),resolve(D,F,P,{schema:B}){if(u.isAbstractType(D))return B.getPossibleTypes(D)}},enumValues:{type:new u.GraphQLList(new u.GraphQLNonNull(g4)),args:{includeDeprecated:{type:qD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if(u.isEnumType(D)){let P=D.getValues();return F?P:P.filter((B)=>B.deprecationReason==null)}}},inputFields:{type:new u.GraphQLList(new u.GraphQLNonNull(H1)),args:{includeDeprecated:{type:qD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if(u.isInputObjectType(D)){let P=Object.values(D.getFields());return F?P:P.filter((B)=>B.deprecationReason==null)}}},ofType:{type:oD,resolve:(D)=>("ofType"in D)?D.ofType:void 0},isOneOf:{type:qD.GraphQLBoolean,resolve:(D)=>{if(u.isInputObjectType(D))return D.isOneOf}}})});zq.__Type=oD;var v4=new u.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new u.GraphQLNonNull(qD.GraphQLString),resolve:(D)=>D.name},description:{type:qD.GraphQLString,resolve:(D)=>D.description},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(H1))),args:{includeDeprecated:{type:qD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){return F?D.args:D.args.filter((P)=>P.deprecationReason==null)}},type:{type:new u.GraphQLNonNull(oD),resolve:(D)=>D.type},isDeprecated:{type:new u.GraphQLNonNull(qD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:qD.GraphQLString,resolve:(D)=>D.deprecationReason}})});zq.__Field=v4;var H1=new u.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new u.GraphQLNonNull(qD.GraphQLString),resolve:(D)=>D.name},description:{type:qD.GraphQLString,resolve:(D)=>D.description},type:{type:new u.GraphQLNonNull(oD),resolve:(D)=>D.type},defaultValue:{type:qD.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(D){let{type:F,defaultValue:P}=D,B=IK.astFromValue(P,F);return B?RK.print(B):null}},isDeprecated:{type:new u.GraphQLNonNull(qD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:qD.GraphQLString,resolve:(D)=>D.deprecationReason}})});zq.__InputValue=H1;var g4=new u.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new u.GraphQLNonNull(qD.GraphQLString),resolve:(D)=>D.name},description:{type:qD.GraphQLString,resolve:(D)=>D.description},isDeprecated:{type:new u.GraphQLNonNull(qD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:qD.GraphQLString,resolve:(D)=>D.deprecationReason}})});zq.__EnumValue=g4;var LD;zq.TypeKind=LD;(function(D){D.SCALAR="SCALAR",D.OBJECT="OBJECT",D.INTERFACE="INTERFACE",D.UNION="UNION",D.ENUM="ENUM",D.INPUT_OBJECT="INPUT_OBJECT",D.LIST="LIST",D.NON_NULL="NON_NULL"})(LD||(zq.TypeKind=LD={}));var y4=new u.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:LD.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:LD.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:LD.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:LD.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:LD.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:LD.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:LD.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:LD.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});zq.__TypeKind=y4;var $K={name:"__schema",type:new u.GraphQLNonNull(x4),description:"Access the current type schema of this server.",args:[],resolve:(D,F,P,{schema:B})=>B,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};zq.SchemaMetaFieldDef=$K;var MK={name:"__type",type:oD,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new u.GraphQLNonNull(qD.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(D,{name:F},P,{schema:B})=>B.getType(F),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};zq.TypeMetaFieldDef=MK;var KK={name:"__typename",type:new u.GraphQLNonNull(qD.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(D,F,P,{parentType:B})=>B.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};zq.TypeNameMetaFieldDef=KK;var Oq=Object.freeze([x4,f4,h4,oD,v4,H1,g4,y4]);zq.introspectionTypes=Oq;function EK(D){return Oq.some(({name:F})=>D.name===F)}});var T2=Q(($q)=>{Object.defineProperty($q,"__esModule",{value:!0});$q.GraphQLSchema=void 0;$q.assertSchema=vK;$q.isSchema=Iq;var c6=hD(),l4=PD(),kK=a8(),xK=E0(),fK=T6(),m4=A0(),Q0=a(),Rq=gD(),hK=tD();function Iq(D){return kK.instanceOf(D,c4)}function vK(D){if(!Iq(D))throw new Error(`Expected ${l4.inspect(D)} to be a GraphQL schema.`);return D}class c4{constructor(D){var F,P;this.__validationErrors=D.assumeValid===!0?[]:void 0,xK.isObjectLike(D)||c6.devAssert(!1,"Must provide configuration object."),!D.types||Array.isArray(D.types)||c6.devAssert(!1,`"types" must be Array if provided but got: ${l4.inspect(D.types)}.`),!D.directives||Array.isArray(D.directives)||c6.devAssert(!1,`"directives" must be Array if provided but got: ${l4.inspect(D.directives)}.`),this.description=D.description,this.extensions=fK.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._queryType=D.query,this._mutationType=D.mutation,this._subscriptionType=D.subscription,this._directives=(P=D.directives)!==null&&P!==void 0?P:Rq.specifiedDirectives;let B=new Set(D.types);if(D.types!=null)for(let Z of D.types)B.delete(Z),G0(Z,B);if(this._queryType!=null)G0(this._queryType,B);if(this._mutationType!=null)G0(this._mutationType,B);if(this._subscriptionType!=null)G0(this._subscriptionType,B);for(let Z of this._directives)if(Rq.isDirective(Z))for(let q of Z.args)G0(q.type,B);G0(hK.__Schema,B),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let Z of B){if(Z==null)continue;let q=Z.name;if(q||c6.devAssert(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[q]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${q}".`);if(this._typeMap[q]=Z,Q0.isInterfaceType(Z)){for(let X of Z.getInterfaces())if(Q0.isInterfaceType(X)){let J=this._implementationsMap[X.name];if(J===void 0)J=this._implementationsMap[X.name]={objects:[],interfaces:[]};J.interfaces.push(Z)}}else if(Q0.isObjectType(Z)){for(let X of Z.getInterfaces())if(Q0.isInterfaceType(X)){let J=this._implementationsMap[X.name];if(J===void 0)J=this._implementationsMap[X.name]={objects:[],interfaces:[]};J.objects.push(Z)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(D){switch(D){case m4.OperationTypeNode.QUERY:return this.getQueryType();case m4.OperationTypeNode.MUTATION:return this.getMutationType();case m4.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(D){return this.getTypeMap()[D]}getPossibleTypes(D){return Q0.isUnionType(D)?D.getTypes():this.getImplementations(D).objects}getImplementations(D){let F=this._implementationsMap[D.name];return F!==null&&F!==void 0?F:{objects:[],interfaces:[]}}isSubType(D,F){let P=this._subTypeMap[D.name];if(P===void 0){if(P=Object.create(null),Q0.isUnionType(D))for(let B of D.getTypes())P[B.name]=!0;else{let B=this.getImplementations(D);for(let Z of B.objects)P[Z.name]=!0;for(let Z of B.interfaces)P[Z.name]=!0}this._subTypeMap[D.name]=P}return P[F.name]!==void 0}getDirectives(){return this._directives}getDirective(D){return this.getDirectives().find((F)=>F.name===D)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}$q.GraphQLSchema=c4;function G0(D,F){let P=Q0.getNamedType(D);if(!F.has(P)){if(F.add(P),Q0.isUnionType(P))for(let B of P.getTypes())G0(B,F);else if(Q0.isObjectType(P)||Q0.isInterfaceType(P)){for(let B of P.getInterfaces())G0(B,F);for(let B of Object.values(P.getFields())){G0(B.type,F);for(let Z of B.args)G0(Z.type,F)}}else if(Q0.isInputObjectType(P))for(let B of Object.values(P.getFields()))G0(B.type,F)}return F}});var W1=Q((jq)=>{Object.defineProperty(jq,"__esModule",{value:!0});jq.assertValidSchema=dK;jq.validateSchema=wq;var xD=PD(),mK=v(),d4=A0(),Kq=F1(),GD=a(),Lq=gD(),lK=tD(),cK=T2();function wq(D){if(cK.assertSchema(D),D.__validationErrors)return D.__validationErrors;let F=new Vq(D);pK(F),rK(F),aK(F);let P=F.getErrors();return D.__validationErrors=P,P}function dK(D){let F=wq(D);if(F.length!==0)throw new Error(F.map((P)=>P.message).join(`
72
+ In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new u.GraphQLNonNull(qD.GraphQLString),resolve:(D)=>D.name},description:{type:qD.GraphQLString,resolve:(D)=>D.description},isRepeatable:{type:new u.GraphQLNonNull(qD.GraphQLBoolean),resolve:(D)=>D.isRepeatable},locations:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(h4))),resolve:(D)=>D.locations},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(U1))),args:{includeDeprecated:{type:qD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){return F?D.args:D.args.filter((P)=>P.deprecationReason==null)}}})});zq.__Directive=f4;var h4=new u.GraphQLEnumType({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:CD.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:CD.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:CD.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:CD.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:CD.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:CD.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:CD.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:CD.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:CD.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:CD.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:CD.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:CD.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:CD.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:CD.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:CD.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:CD.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:CD.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:CD.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:CD.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});zq.__DirectiveLocation=h4;var oD=new u.GraphQLObjectType({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new u.GraphQLNonNull(y4),resolve(D){if(u.isScalarType(D))return LD.SCALAR;if(u.isObjectType(D))return LD.OBJECT;if(u.isInterfaceType(D))return LD.INTERFACE;if(u.isUnionType(D))return LD.UNION;if(u.isEnumType(D))return LD.ENUM;if(u.isInputObjectType(D))return LD.INPUT_OBJECT;if(u.isListType(D))return LD.LIST;if(u.isNonNullType(D))return LD.NON_NULL;GK.invariant(!1,`Unexpected type: "${QK.inspect(D)}".`)}},name:{type:qD.GraphQLString,resolve:(D)=>("name"in D)?D.name:void 0},description:{type:qD.GraphQLString,resolve:(D)=>("description"in D)?D.description:void 0},specifiedByURL:{type:qD.GraphQLString,resolve:(D)=>("specifiedByURL"in D)?D.specifiedByURL:void 0},fields:{type:new u.GraphQLList(new u.GraphQLNonNull(v4)),args:{includeDeprecated:{type:qD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if(u.isObjectType(D)||u.isInterfaceType(D)){let P=Object.values(D.getFields());return F?P:P.filter((B)=>B.deprecationReason==null)}}},interfaces:{type:new u.GraphQLList(new u.GraphQLNonNull(oD)),resolve(D){if(u.isObjectType(D)||u.isInterfaceType(D))return D.getInterfaces()}},possibleTypes:{type:new u.GraphQLList(new u.GraphQLNonNull(oD)),resolve(D,F,P,{schema:B}){if(u.isAbstractType(D))return B.getPossibleTypes(D)}},enumValues:{type:new u.GraphQLList(new u.GraphQLNonNull(g4)),args:{includeDeprecated:{type:qD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if(u.isEnumType(D)){let P=D.getValues();return F?P:P.filter((B)=>B.deprecationReason==null)}}},inputFields:{type:new u.GraphQLList(new u.GraphQLNonNull(U1)),args:{includeDeprecated:{type:qD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if(u.isInputObjectType(D)){let P=Object.values(D.getFields());return F?P:P.filter((B)=>B.deprecationReason==null)}}},ofType:{type:oD,resolve:(D)=>("ofType"in D)?D.ofType:void 0},isOneOf:{type:qD.GraphQLBoolean,resolve:(D)=>{if(u.isInputObjectType(D))return D.isOneOf}}})});zq.__Type=oD;var v4=new u.GraphQLObjectType({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new u.GraphQLNonNull(qD.GraphQLString),resolve:(D)=>D.name},description:{type:qD.GraphQLString,resolve:(D)=>D.description},args:{type:new u.GraphQLNonNull(new u.GraphQLList(new u.GraphQLNonNull(U1))),args:{includeDeprecated:{type:qD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){return F?D.args:D.args.filter((P)=>P.deprecationReason==null)}},type:{type:new u.GraphQLNonNull(oD),resolve:(D)=>D.type},isDeprecated:{type:new u.GraphQLNonNull(qD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:qD.GraphQLString,resolve:(D)=>D.deprecationReason}})});zq.__Field=v4;var U1=new u.GraphQLObjectType({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new u.GraphQLNonNull(qD.GraphQLString),resolve:(D)=>D.name},description:{type:qD.GraphQLString,resolve:(D)=>D.description},type:{type:new u.GraphQLNonNull(oD),resolve:(D)=>D.type},defaultValue:{type:qD.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(D){let{type:F,defaultValue:P}=D,B=IK.astFromValue(P,F);return B?RK.print(B):null}},isDeprecated:{type:new u.GraphQLNonNull(qD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:qD.GraphQLString,resolve:(D)=>D.deprecationReason}})});zq.__InputValue=U1;var g4=new u.GraphQLObjectType({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new u.GraphQLNonNull(qD.GraphQLString),resolve:(D)=>D.name},description:{type:qD.GraphQLString,resolve:(D)=>D.description},isDeprecated:{type:new u.GraphQLNonNull(qD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:qD.GraphQLString,resolve:(D)=>D.deprecationReason}})});zq.__EnumValue=g4;var LD;zq.TypeKind=LD;(function(D){D.SCALAR="SCALAR",D.OBJECT="OBJECT",D.INTERFACE="INTERFACE",D.UNION="UNION",D.ENUM="ENUM",D.INPUT_OBJECT="INPUT_OBJECT",D.LIST="LIST",D.NON_NULL="NON_NULL"})(LD||(zq.TypeKind=LD={}));var y4=new u.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:LD.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:LD.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:LD.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:LD.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:LD.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:LD.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:LD.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:LD.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});zq.__TypeKind=y4;var $K={name:"__schema",type:new u.GraphQLNonNull(x4),description:"Access the current type schema of this server.",args:[],resolve:(D,F,P,{schema:B})=>B,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};zq.SchemaMetaFieldDef=$K;var MK={name:"__type",type:oD,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new u.GraphQLNonNull(qD.GraphQLString),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(D,{name:F},P,{schema:B})=>B.getType(F),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};zq.TypeMetaFieldDef=MK;var KK={name:"__typename",type:new u.GraphQLNonNull(qD.GraphQLString),description:"The name of the current Object type at runtime.",args:[],resolve:(D,F,P,{parentType:B})=>B.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0};zq.TypeNameMetaFieldDef=KK;var Oq=Object.freeze([x4,f4,h4,oD,v4,U1,g4,y4]);zq.introspectionTypes=Oq;function EK(D){return Oq.some(({name:F})=>D.name===F)}});var T2=Q(($q)=>{Object.defineProperty($q,"__esModule",{value:!0});$q.GraphQLSchema=void 0;$q.assertSchema=vK;$q.isSchema=Iq;var c6=hD(),l4=PD(),kK=s8(),xK=E0(),fK=T6(),m4=A0(),Q0=a(),Rq=gD(),hK=tD();function Iq(D){return kK.instanceOf(D,c4)}function vK(D){if(!Iq(D))throw new Error(`Expected ${l4.inspect(D)} to be a GraphQL schema.`);return D}class c4{constructor(D){var F,P;this.__validationErrors=D.assumeValid===!0?[]:void 0,xK.isObjectLike(D)||c6.devAssert(!1,"Must provide configuration object."),!D.types||Array.isArray(D.types)||c6.devAssert(!1,`"types" must be Array if provided but got: ${l4.inspect(D.types)}.`),!D.directives||Array.isArray(D.directives)||c6.devAssert(!1,`"directives" must be Array if provided but got: ${l4.inspect(D.directives)}.`),this.description=D.description,this.extensions=fK.toObjMap(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._queryType=D.query,this._mutationType=D.mutation,this._subscriptionType=D.subscription,this._directives=(P=D.directives)!==null&&P!==void 0?P:Rq.specifiedDirectives;let B=new Set(D.types);if(D.types!=null)for(let Z of D.types)B.delete(Z),G0(Z,B);if(this._queryType!=null)G0(this._queryType,B);if(this._mutationType!=null)G0(this._mutationType,B);if(this._subscriptionType!=null)G0(this._subscriptionType,B);for(let Z of this._directives)if(Rq.isDirective(Z))for(let q of Z.args)G0(q.type,B);G0(hK.__Schema,B),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let Z of B){if(Z==null)continue;let q=Z.name;if(q||c6.devAssert(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[q]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${q}".`);if(this._typeMap[q]=Z,Q0.isInterfaceType(Z)){for(let X of Z.getInterfaces())if(Q0.isInterfaceType(X)){let J=this._implementationsMap[X.name];if(J===void 0)J=this._implementationsMap[X.name]={objects:[],interfaces:[]};J.interfaces.push(Z)}}else if(Q0.isObjectType(Z)){for(let X of Z.getInterfaces())if(Q0.isInterfaceType(X)){let J=this._implementationsMap[X.name];if(J===void 0)J=this._implementationsMap[X.name]={objects:[],interfaces:[]};J.objects.push(Z)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(D){switch(D){case m4.OperationTypeNode.QUERY:return this.getQueryType();case m4.OperationTypeNode.MUTATION:return this.getMutationType();case m4.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(D){return this.getTypeMap()[D]}getPossibleTypes(D){return Q0.isUnionType(D)?D.getTypes():this.getImplementations(D).objects}getImplementations(D){let F=this._implementationsMap[D.name];return F!==null&&F!==void 0?F:{objects:[],interfaces:[]}}isSubType(D,F){let P=this._subTypeMap[D.name];if(P===void 0){if(P=Object.create(null),Q0.isUnionType(D))for(let B of D.getTypes())P[B.name]=!0;else{let B=this.getImplementations(D);for(let Z of B.objects)P[Z.name]=!0;for(let Z of B.interfaces)P[Z.name]=!0}this._subTypeMap[D.name]=P}return P[F.name]!==void 0}getDirectives(){return this._directives}getDirective(D){return this.getDirectives().find((F)=>F.name===D)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:this.__validationErrors!==void 0}}}$q.GraphQLSchema=c4;function G0(D,F){let P=Q0.getNamedType(D);if(!F.has(P)){if(F.add(P),Q0.isUnionType(P))for(let B of P.getTypes())G0(B,F);else if(Q0.isObjectType(P)||Q0.isInterfaceType(P)){for(let B of P.getInterfaces())G0(B,F);for(let B of Object.values(P.getFields())){G0(B.type,F);for(let Z of B.args)G0(Z.type,F)}}else if(Q0.isInputObjectType(P))for(let B of Object.values(P.getFields()))G0(B.type,F)}return F}});var O1=Q((jq)=>{Object.defineProperty(jq,"__esModule",{value:!0});jq.assertValidSchema=dK;jq.validateSchema=wq;var xD=PD(),mK=v(),d4=A0(),Kq=P1(),GD=a(),Lq=gD(),lK=tD(),cK=T2();function wq(D){if(cK.assertSchema(D),D.__validationErrors)return D.__validationErrors;let F=new Vq(D);pK(F),rK(F),aK(F);let P=F.getErrors();return D.__validationErrors=P,P}function dK(D){let F=wq(D);if(F.length!==0)throw new Error(F.map((P)=>P.message).join(`
73
73
 
74
- `))}class Vq{constructor(D){this._errors=[],this.schema=D}reportError(D,F){let P=Array.isArray(F)?F.filter(Boolean):F;this._errors.push(new mK.GraphQLError(D,{nodes:P}))}getErrors(){return this._errors}}function pK(D){let F=D.schema,P=F.getQueryType();if(!P)D.reportError("Query root type must be provided.",F.astNode);else if(!GD.isObjectType(P)){var B;D.reportError(`Query root type must be Object type, it cannot be ${xD.inspect(P)}.`,(B=p4(F,d4.OperationTypeNode.QUERY))!==null&&B!==void 0?B:P.astNode)}let Z=F.getMutationType();if(Z&&!GD.isObjectType(Z)){var q;D.reportError(`Mutation root type must be Object type if provided, it cannot be ${xD.inspect(Z)}.`,(q=p4(F,d4.OperationTypeNode.MUTATION))!==null&&q!==void 0?q:Z.astNode)}let X=F.getSubscriptionType();if(X&&!GD.isObjectType(X)){var J;D.reportError(`Subscription root type must be Object type if provided, it cannot be ${xD.inspect(X)}.`,(J=p4(F,d4.OperationTypeNode.SUBSCRIPTION))!==null&&J!==void 0?J:X.astNode)}}function p4(D,F){var P;return(P=[D.astNode,...D.extensionASTNodes].flatMap((B)=>{var Z;return(Z=B===null||B===void 0?void 0:B.operationTypes)!==null&&Z!==void 0?Z:[]}).find((B)=>B.operation===F))===null||P===void 0?void 0:P.type}function rK(D){for(let P of D.schema.getDirectives()){if(!Lq.isDirective(P)){D.reportError(`Expected directive but got: ${xD.inspect(P)}.`,P===null||P===void 0?void 0:P.astNode);continue}N2(D,P);for(let B of P.args){if(N2(D,B),!GD.isInputType(B.type))D.reportError(`The type of @${P.name}(${B.name}:) must be Input Type but got: ${xD.inspect(B.type)}.`,B.astNode);if(GD.isRequiredArgument(B)&&B.deprecationReason!=null){var F;D.reportError(`Required argument @${P.name}(${B.name}:) cannot be deprecated.`,[r4(B.astNode),(F=B.astNode)===null||F===void 0?void 0:F.type])}}}}function N2(D,F){if(F.name.startsWith("__"))D.reportError(`Name "${F.name}" must not begin with "__", which is reserved by GraphQL introspection.`,F.astNode)}function aK(D){let F=DE(D),P=D.schema.getTypeMap();for(let B of Object.values(P)){if(!GD.isNamedType(B)){D.reportError(`Expected GraphQL named type but got: ${xD.inspect(B)}.`,B.astNode);continue}if(!lK.isIntrospectionType(B))N2(D,B);if(GD.isObjectType(B))Eq(D,B),Aq(D,B);else if(GD.isInterfaceType(B))Eq(D,B),Aq(D,B);else if(GD.isUnionType(B))iK(D,B);else if(GD.isEnumType(B))oK(D,B);else if(GD.isInputObjectType(B))tK(D,B),F(B)}}function Eq(D,F){let P=Object.values(F.getFields());if(P.length===0)D.reportError(`Type ${F.name} must define one or more fields.`,[F.astNode,...F.extensionASTNodes]);for(let X of P){if(N2(D,X),!GD.isOutputType(X.type)){var B;D.reportError(`The type of ${F.name}.${X.name} must be Output Type but got: ${xD.inspect(X.type)}.`,(B=X.astNode)===null||B===void 0?void 0:B.type)}for(let J of X.args){let Y=J.name;if(N2(D,J),!GD.isInputType(J.type)){var Z;D.reportError(`The type of ${F.name}.${X.name}(${Y}:) must be Input Type but got: ${xD.inspect(J.type)}.`,(Z=J.astNode)===null||Z===void 0?void 0:Z.type)}if(GD.isRequiredArgument(J)&&J.deprecationReason!=null){var q;D.reportError(`Required argument ${F.name}.${X.name}(${Y}:) cannot be deprecated.`,[r4(J.astNode),(q=J.astNode)===null||q===void 0?void 0:q.type])}}}}function Aq(D,F){let P=Object.create(null);for(let B of F.getInterfaces()){if(!GD.isInterfaceType(B)){D.reportError(`Type ${xD.inspect(F)} must only implement Interface types, it cannot implement ${xD.inspect(B)}.`,U1(F,B));continue}if(F===B){D.reportError(`Type ${F.name} cannot implement itself because it would create a circular reference.`,U1(F,B));continue}if(P[B.name]){D.reportError(`Type ${F.name} can only implement ${B.name} once.`,U1(F,B));continue}P[B.name]=!0,nK(D,F,B),sK(D,F,B)}}function sK(D,F,P){let B=F.getFields();for(let Y of Object.values(P.getFields())){let H=Y.name,W=B[H];if(!W){D.reportError(`Interface field ${P.name}.${H} expected but ${F.name} does not provide it.`,[Y.astNode,F.astNode,...F.extensionASTNodes]);continue}if(!Kq.isTypeSubTypeOf(D.schema,W.type,Y.type)){var Z,q;D.reportError(`Interface field ${P.name}.${H} expects type ${xD.inspect(Y.type)} but ${F.name}.${H} is type ${xD.inspect(W.type)}.`,[(Z=Y.astNode)===null||Z===void 0?void 0:Z.type,(q=W.astNode)===null||q===void 0?void 0:q.type])}for(let U of Y.args){let O=U.name,z=W.args.find((I)=>I.name===O);if(!z){D.reportError(`Interface field argument ${P.name}.${H}(${O}:) expected but ${F.name}.${H} does not provide it.`,[U.astNode,W.astNode]);continue}if(!Kq.isEqualType(U.type,z.type)){var X,J;D.reportError(`Interface field argument ${P.name}.${H}(${O}:) expects type ${xD.inspect(U.type)} but ${F.name}.${H}(${O}:) is type ${xD.inspect(z.type)}.`,[(X=U.astNode)===null||X===void 0?void 0:X.type,(J=z.astNode)===null||J===void 0?void 0:J.type])}}for(let U of W.args){let O=U.name;if(!Y.args.find((I)=>I.name===O)&&GD.isRequiredArgument(U))D.reportError(`Object field ${F.name}.${H} includes required argument ${O} that is missing from the Interface field ${P.name}.${H}.`,[U.astNode,Y.astNode])}}}function nK(D,F,P){let B=F.getInterfaces();for(let Z of P.getInterfaces())if(!B.includes(Z))D.reportError(Z===F?`Type ${F.name} cannot implement ${P.name} because it would create a circular reference.`:`Type ${F.name} must implement ${Z.name} because it is implemented by ${P.name}.`,[...U1(P,Z),...U1(F,P)])}function iK(D,F){let P=F.getTypes();if(P.length===0)D.reportError(`Union type ${F.name} must define one or more member types.`,[F.astNode,...F.extensionASTNodes]);let B=Object.create(null);for(let Z of P){if(B[Z.name]){D.reportError(`Union type ${F.name} can only include type ${Z.name} once.`,Cq(F,Z.name));continue}if(B[Z.name]=!0,!GD.isObjectType(Z))D.reportError(`Union type ${F.name} can only include Object types, it cannot include ${xD.inspect(Z)}.`,Cq(F,String(Z)))}}function oK(D,F){let P=F.getValues();if(P.length===0)D.reportError(`Enum type ${F.name} must define one or more values.`,[F.astNode,...F.extensionASTNodes]);for(let B of P)N2(D,B)}function tK(D,F){let P=Object.values(F.getFields());if(P.length===0)D.reportError(`Input Object type ${F.name} must define one or more fields.`,[F.astNode,...F.extensionASTNodes]);for(let q of P){if(N2(D,q),!GD.isInputType(q.type)){var B;D.reportError(`The type of ${F.name}.${q.name} must be Input Type but got: ${xD.inspect(q.type)}.`,(B=q.astNode)===null||B===void 0?void 0:B.type)}if(GD.isRequiredInputField(q)&&q.deprecationReason!=null){var Z;D.reportError(`Required input field ${F.name}.${q.name} cannot be deprecated.`,[r4(q.astNode),(Z=q.astNode)===null||Z===void 0?void 0:Z.type])}if(F.isOneOf)eK(F,q,D)}}function eK(D,F,P){if(GD.isNonNullType(F.type)){var B;P.reportError(`OneOf input field ${D.name}.${F.name} must be nullable.`,(B=F.astNode)===null||B===void 0?void 0:B.type)}if(F.defaultValue!==void 0)P.reportError(`OneOf input field ${D.name}.${F.name} cannot have a default value.`,F.astNode)}function DE(D){let F=Object.create(null),P=[],B=Object.create(null);return Z;function Z(q){if(F[q.name])return;F[q.name]=!0,B[q.name]=P.length;let X=Object.values(q.getFields());for(let J of X)if(GD.isNonNullType(J.type)&&GD.isInputObjectType(J.type.ofType)){let Y=J.type.ofType,H=B[Y.name];if(P.push(J),H===void 0)Z(Y);else{let W=P.slice(H),U=W.map((O)=>O.name).join(".");D.reportError(`Cannot reference Input Object "${Y.name}" within itself through a series of non-null fields: "${U}".`,W.map((O)=>O.astNode))}P.pop()}B[q.name]=void 0}}function U1(D,F){let{astNode:P,extensionASTNodes:B}=D;return(P!=null?[P,...B]:B).flatMap((q)=>{var X;return(X=q.interfaces)!==null&&X!==void 0?X:[]}).filter((q)=>q.name.value===F.name)}function Cq(D,F){let{astNode:P,extensionASTNodes:B}=D;return(P!=null?[P,...B]:B).flatMap((q)=>{var X;return(X=q.types)!==null&&X!==void 0?X:[]}).filter((q)=>q.name.value===F)}function r4(D){var F;return D===null||D===void 0?void 0:(F=D.directives)===null||F===void 0?void 0:F.find((P)=>P.name.value===Lq.GraphQLDeprecatedDirective.name)}});var V0=Q((Sq)=>{Object.defineProperty(Sq,"__esModule",{value:!0});Sq.typeFromAST=s4;var a4=r(),bq=a();function s4(D,F){switch(F.kind){case a4.Kind.LIST_TYPE:{let P=s4(D,F.type);return P&&new bq.GraphQLList(P)}case a4.Kind.NON_NULL_TYPE:{let P=s4(D,F.type);return P&&new bq.GraphQLNonNull(P)}case a4.Kind.NAMED_TYPE:return D.getType(F.name.value)}}});var d6=Q((_q)=>{Object.defineProperty(_q,"__esModule",{value:!0});_q.TypeInfo=void 0;_q.visitWithTypeInfo=XE;var ZE=A0(),RD=r(),Tq=L2(),ID=a(),U8=tD(),Nq=V0();class uq{constructor(D,F,P){if(this._schema=D,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=P!==null&&P!==void 0?P:qE,F){if(ID.isInputType(F))this._inputTypeStack.push(F);if(ID.isCompositeType(F))this._parentTypeStack.push(F);if(ID.isOutputType(F))this._typeStack.push(F)}}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(D){let F=this._schema;switch(D.kind){case RD.Kind.SELECTION_SET:{let B=ID.getNamedType(this.getType());this._parentTypeStack.push(ID.isCompositeType(B)?B:void 0);break}case RD.Kind.FIELD:{let B=this.getParentType(),Z,q;if(B){if(Z=this._getFieldDef(F,B,D),Z)q=Z.type}this._fieldDefStack.push(Z),this._typeStack.push(ID.isOutputType(q)?q:void 0);break}case RD.Kind.DIRECTIVE:this._directive=F.getDirective(D.name.value);break;case RD.Kind.OPERATION_DEFINITION:{let B=F.getRootType(D.operation);this._typeStack.push(ID.isObjectType(B)?B:void 0);break}case RD.Kind.INLINE_FRAGMENT:case RD.Kind.FRAGMENT_DEFINITION:{let B=D.typeCondition,Z=B?Nq.typeFromAST(F,B):ID.getNamedType(this.getType());this._typeStack.push(ID.isOutputType(Z)?Z:void 0);break}case RD.Kind.VARIABLE_DEFINITION:{let B=Nq.typeFromAST(F,D.type);this._inputTypeStack.push(ID.isInputType(B)?B:void 0);break}case RD.Kind.ARGUMENT:{var P;let B,Z,q=(P=this.getDirective())!==null&&P!==void 0?P:this.getFieldDef();if(q){if(B=q.args.find((X)=>X.name===D.name.value),B)Z=B.type}this._argument=B,this._defaultValueStack.push(B?B.defaultValue:void 0),this._inputTypeStack.push(ID.isInputType(Z)?Z:void 0);break}case RD.Kind.LIST:{let B=ID.getNullableType(this.getInputType()),Z=ID.isListType(B)?B.ofType:B;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ID.isInputType(Z)?Z:void 0);break}case RD.Kind.OBJECT_FIELD:{let B=ID.getNamedType(this.getInputType()),Z,q;if(ID.isInputObjectType(B)){if(q=B.getFields()[D.name.value],q)Z=q.type}this._defaultValueStack.push(q?q.defaultValue:void 0),this._inputTypeStack.push(ID.isInputType(Z)?Z:void 0);break}case RD.Kind.ENUM:{let B=ID.getNamedType(this.getInputType()),Z;if(ID.isEnumType(B))Z=B.getValue(D.value);this._enumValue=Z;break}default:}}leave(D){switch(D.kind){case RD.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case RD.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case RD.Kind.DIRECTIVE:this._directive=null;break;case RD.Kind.OPERATION_DEFINITION:case RD.Kind.INLINE_FRAGMENT:case RD.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case RD.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case RD.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case RD.Kind.LIST:case RD.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case RD.Kind.ENUM:this._enumValue=null;break;default:}}}_q.TypeInfo=uq;function qE(D,F,P){let B=P.name.value;if(B===U8.SchemaMetaFieldDef.name&&D.getQueryType()===F)return U8.SchemaMetaFieldDef;if(B===U8.TypeMetaFieldDef.name&&D.getQueryType()===F)return U8.TypeMetaFieldDef;if(B===U8.TypeNameMetaFieldDef.name&&ID.isCompositeType(F))return U8.TypeNameMetaFieldDef;if(ID.isObjectType(F)||ID.isInterfaceType(F))return F.getFields()[B]}function XE(D,F){return{enter(...P){let B=P[0];D.enter(B);let Z=Tq.getEnterLeaveForKind(F,B.kind).enter;if(Z){let q=Z.apply(F,P);if(q!==void 0){if(D.leave(B),ZE.isNode(q))D.enter(q)}return q}},leave(...P){let B=P[0],Z=Tq.getEnterLeaveForKind(F,B.kind).leave,q;if(Z)q=Z.apply(F,P);return D.leave(B),q}}}});var u2=Q((mq)=>{Object.defineProperty(mq,"__esModule",{value:!0});mq.isConstValueNode=n4;mq.isDefinitionNode=YE;mq.isExecutableDefinitionNode=xq;mq.isSelectionNode=HE;mq.isTypeDefinitionNode=vq;mq.isTypeExtensionNode=yq;mq.isTypeNode=UE;mq.isTypeSystemDefinitionNode=hq;mq.isTypeSystemExtensionNode=gq;mq.isValueNode=fq;var s=r();function YE(D){return xq(D)||hq(D)||gq(D)}function xq(D){return D.kind===s.Kind.OPERATION_DEFINITION||D.kind===s.Kind.FRAGMENT_DEFINITION}function HE(D){return D.kind===s.Kind.FIELD||D.kind===s.Kind.FRAGMENT_SPREAD||D.kind===s.Kind.INLINE_FRAGMENT}function fq(D){return D.kind===s.Kind.VARIABLE||D.kind===s.Kind.INT||D.kind===s.Kind.FLOAT||D.kind===s.Kind.STRING||D.kind===s.Kind.BOOLEAN||D.kind===s.Kind.NULL||D.kind===s.Kind.ENUM||D.kind===s.Kind.LIST||D.kind===s.Kind.OBJECT}function n4(D){return fq(D)&&(D.kind===s.Kind.LIST?D.values.some(n4):D.kind===s.Kind.OBJECT?D.fields.some((F)=>n4(F.value)):D.kind!==s.Kind.VARIABLE)}function UE(D){return D.kind===s.Kind.NAMED_TYPE||D.kind===s.Kind.LIST_TYPE||D.kind===s.Kind.NON_NULL_TYPE}function hq(D){return D.kind===s.Kind.SCHEMA_DEFINITION||vq(D)||D.kind===s.Kind.DIRECTIVE_DEFINITION}function vq(D){return D.kind===s.Kind.SCALAR_TYPE_DEFINITION||D.kind===s.Kind.OBJECT_TYPE_DEFINITION||D.kind===s.Kind.INTERFACE_TYPE_DEFINITION||D.kind===s.Kind.UNION_TYPE_DEFINITION||D.kind===s.Kind.ENUM_TYPE_DEFINITION||D.kind===s.Kind.INPUT_OBJECT_TYPE_DEFINITION}function gq(D){return D.kind===s.Kind.SCHEMA_EXTENSION||yq(D)}function yq(D){return D.kind===s.Kind.SCALAR_TYPE_EXTENSION||D.kind===s.Kind.OBJECT_TYPE_EXTENSION||D.kind===s.Kind.INTERFACE_TYPE_EXTENSION||D.kind===s.Kind.UNION_TYPE_EXTENSION||D.kind===s.Kind.ENUM_TYPE_EXTENSION||D.kind===s.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var i4=Q((cq)=>{Object.defineProperty(cq,"__esModule",{value:!0});cq.ExecutableDefinitionsRule=CE;var EE=v(),lq=r(),AE=u2();function CE(D){return{Document(F){for(let P of F.definitions)if(!AE.isExecutableDefinitionNode(P)){let B=P.kind===lq.Kind.SCHEMA_DEFINITION||P.kind===lq.Kind.SCHEMA_EXTENSION?"schema":'"'+P.name.value+'"';D.reportError(new EE.GraphQLError(`The ${B} definition is not executable.`,{nodes:P}))}return!1}}}});var o4=Q((pq)=>{Object.defineProperty(pq,"__esModule",{value:!0});pq.FieldsOnCorrectTypeRule=bE;var dq=o0(),wE=i8(),VE=e0(),jE=v(),O1=a();function bE(D){return{Field(F){let P=D.getParentType();if(P){if(!D.getFieldDef()){let Z=D.getSchema(),q=F.name.value,X=dq.didYouMean("to use an inline fragment on",SE(Z,P,q));if(X==="")X=dq.didYouMean(TE(P,q));D.reportError(new jE.GraphQLError(`Cannot query field "${q}" on type "${P.name}".`+X,{nodes:F}))}}}}}function SE(D,F,P){if(!O1.isAbstractType(F))return[];let B=new Set,Z=Object.create(null);for(let X of D.getPossibleTypes(F)){if(!X.getFields()[P])continue;B.add(X),Z[X.name]=1;for(let J of X.getInterfaces()){var q;if(!J.getFields()[P])continue;B.add(J),Z[J.name]=((q=Z[J.name])!==null&&q!==void 0?q:0)+1}}return[...B].sort((X,J)=>{let Y=Z[J.name]-Z[X.name];if(Y!==0)return Y;if(O1.isInterfaceType(X)&&D.isSubType(X,J))return-1;if(O1.isInterfaceType(J)&&D.isSubType(J,X))return 1;return wE.naturalCompare(X.name,J.name)}).map((X)=>X.name)}function TE(D,F){if(O1.isObjectType(D)||O1.isInterfaceType(D)){let P=Object.keys(D.getFields());return VE.suggestionList(F,P)}return[]}});var t4=Q((iq)=>{Object.defineProperty(iq,"__esModule",{value:!0});iq.FragmentsOnCompositeTypesRule=uE;var rq=v(),aq=rD(),sq=a(),nq=V0();function uE(D){return{InlineFragment(F){let P=F.typeCondition;if(P){let B=nq.typeFromAST(D.getSchema(),P);if(B&&!sq.isCompositeType(B)){let Z=aq.print(P);D.reportError(new rq.GraphQLError(`Fragment cannot condition on non composite type "${Z}".`,{nodes:P}))}}},FragmentDefinition(F){let P=nq.typeFromAST(D.getSchema(),F.typeCondition);if(P&&!sq.isCompositeType(P)){let B=aq.print(F.typeCondition);D.reportError(new rq.GraphQLError(`Fragment "${F.name.value}" cannot condition on non composite type "${B}".`,{nodes:F.typeCondition}))}}}}});var e4=Q((FX)=>{Object.defineProperty(FX,"__esModule",{value:!0});FX.KnownArgumentNamesOnDirectivesRule=DX;FX.KnownArgumentNamesRule=fE;var oq=o0(),tq=e0(),eq=v(),kE=r(),xE=gD();function fE(D){return{...DX(D),Argument(F){let P=D.getArgument(),B=D.getFieldDef(),Z=D.getParentType();if(!P&&B&&Z){let q=F.name.value,X=B.args.map((Y)=>Y.name),J=tq.suggestionList(q,X);D.reportError(new eq.GraphQLError(`Unknown argument "${q}" on field "${Z.name}.${B.name}".`+oq.didYouMean(J),{nodes:F}))}}}}function DX(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():xE.specifiedDirectives;for(let X of B)F[X.name]=X.args.map((J)=>J.name);let Z=D.getDocument().definitions;for(let X of Z)if(X.kind===kE.Kind.DIRECTIVE_DEFINITION){var q;let J=(q=X.arguments)!==null&&q!==void 0?q:[];F[X.name.value]=J.map((Y)=>Y.name.value)}return{Directive(X){let J=X.name.value,Y=F[J];if(X.arguments&&Y)for(let H of X.arguments){let W=H.name.value;if(!Y.includes(W)){let U=tq.suggestionList(W,Y);D.reportError(new eq.GraphQLError(`Unknown argument "${W}" on directive "@${J}".`+oq.didYouMean(U),{nodes:H}))}}return!1}}}});var P9=Q((BX)=>{Object.defineProperty(BX,"__esModule",{value:!0});BX.KnownDirectivesRule=mE;var gE=PD(),D9=_D(),PX=v(),F9=A0(),wD=B8(),YD=r(),yE=gD();function mE(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():yE.specifiedDirectives;for(let q of B)F[q.name]=q.locations;let Z=D.getDocument().definitions;for(let q of Z)if(q.kind===YD.Kind.DIRECTIVE_DEFINITION)F[q.name.value]=q.locations.map((X)=>X.value);return{Directive(q,X,J,Y,H){let W=q.name.value,U=F[W];if(!U){D.reportError(new PX.GraphQLError(`Unknown directive "@${W}".`,{nodes:q}));return}let O=lE(H);if(O&&!U.includes(O))D.reportError(new PX.GraphQLError(`Directive "@${W}" may not be used on ${O}.`,{nodes:q}))}}}function lE(D){let F=D[D.length-1];switch("kind"in F||D9.invariant(!1),F.kind){case YD.Kind.OPERATION_DEFINITION:return cE(F.operation);case YD.Kind.FIELD:return wD.DirectiveLocation.FIELD;case YD.Kind.FRAGMENT_SPREAD:return wD.DirectiveLocation.FRAGMENT_SPREAD;case YD.Kind.INLINE_FRAGMENT:return wD.DirectiveLocation.INLINE_FRAGMENT;case YD.Kind.FRAGMENT_DEFINITION:return wD.DirectiveLocation.FRAGMENT_DEFINITION;case YD.Kind.VARIABLE_DEFINITION:return wD.DirectiveLocation.VARIABLE_DEFINITION;case YD.Kind.SCHEMA_DEFINITION:case YD.Kind.SCHEMA_EXTENSION:return wD.DirectiveLocation.SCHEMA;case YD.Kind.SCALAR_TYPE_DEFINITION:case YD.Kind.SCALAR_TYPE_EXTENSION:return wD.DirectiveLocation.SCALAR;case YD.Kind.OBJECT_TYPE_DEFINITION:case YD.Kind.OBJECT_TYPE_EXTENSION:return wD.DirectiveLocation.OBJECT;case YD.Kind.FIELD_DEFINITION:return wD.DirectiveLocation.FIELD_DEFINITION;case YD.Kind.INTERFACE_TYPE_DEFINITION:case YD.Kind.INTERFACE_TYPE_EXTENSION:return wD.DirectiveLocation.INTERFACE;case YD.Kind.UNION_TYPE_DEFINITION:case YD.Kind.UNION_TYPE_EXTENSION:return wD.DirectiveLocation.UNION;case YD.Kind.ENUM_TYPE_DEFINITION:case YD.Kind.ENUM_TYPE_EXTENSION:return wD.DirectiveLocation.ENUM;case YD.Kind.ENUM_VALUE_DEFINITION:return wD.DirectiveLocation.ENUM_VALUE;case YD.Kind.INPUT_OBJECT_TYPE_DEFINITION:case YD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return wD.DirectiveLocation.INPUT_OBJECT;case YD.Kind.INPUT_VALUE_DEFINITION:{let P=D[D.length-3];return"kind"in P||D9.invariant(!1),P.kind===YD.Kind.INPUT_OBJECT_TYPE_DEFINITION?wD.DirectiveLocation.INPUT_FIELD_DEFINITION:wD.DirectiveLocation.ARGUMENT_DEFINITION}default:D9.invariant(!1,"Unexpected kind: "+gE.inspect(F.kind))}}function cE(D){switch(D){case F9.OperationTypeNode.QUERY:return wD.DirectiveLocation.QUERY;case F9.OperationTypeNode.MUTATION:return wD.DirectiveLocation.MUTATION;case F9.OperationTypeNode.SUBSCRIPTION:return wD.DirectiveLocation.SUBSCRIPTION}}});var B9=Q((ZX)=>{Object.defineProperty(ZX,"__esModule",{value:!0});ZX.KnownFragmentNamesRule=rE;var pE=v();function rE(D){return{FragmentSpread(F){let P=F.name.value;if(!D.getFragment(P))D.reportError(new pE.GraphQLError(`Unknown fragment "${P}".`,{nodes:F.name}))}}}});var q9=Q((XX)=>{Object.defineProperty(XX,"__esModule",{value:!0});XX.KnownTypeNamesRule=eE;var sE=o0(),nE=e0(),iE=v(),Z9=u2(),oE=tD(),tE=w0();function eE(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);for(let q of D.getDocument().definitions)if(Z9.isTypeDefinitionNode(q))B[q.name.value]=!0;let Z=[...Object.keys(P),...Object.keys(B)];return{NamedType(q,X,J,Y,H){let W=q.name.value;if(!P[W]&&!B[W]){var U;let O=(U=H[2])!==null&&U!==void 0?U:J,z=O!=null&&DA(O);if(z&&qX.includes(W))return;let I=nE.suggestionList(W,z?qX.concat(Z):Z);D.reportError(new iE.GraphQLError(`Unknown type "${W}".`+sE.didYouMean(I),{nodes:q}))}}}}var qX=[...tE.specifiedScalarTypes,...oE.introspectionTypes].map((D)=>D.name);function DA(D){return"kind"in D&&(Z9.isTypeSystemDefinitionNode(D)||Z9.isTypeSystemExtensionNode(D))}});var X9=Q((JX)=>{Object.defineProperty(JX,"__esModule",{value:!0});JX.LoneAnonymousOperationRule=ZA;var PA=v(),BA=r();function ZA(D){let F=0;return{Document(P){F=P.definitions.filter((B)=>B.kind===BA.Kind.OPERATION_DEFINITION).length},OperationDefinition(P){if(!P.name&&F>1)D.reportError(new PA.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:P}))}}}});var J9=Q((HX)=>{Object.defineProperty(HX,"__esModule",{value:!0});HX.LoneSchemaDefinitionRule=XA;var YX=v();function XA(D){var F,P,B;let Z=D.getSchema(),q=(F=(P=(B=Z===null||Z===void 0?void 0:Z.astNode)!==null&&B!==void 0?B:Z===null||Z===void 0?void 0:Z.getQueryType())!==null&&P!==void 0?P:Z===null||Z===void 0?void 0:Z.getMutationType())!==null&&F!==void 0?F:Z===null||Z===void 0?void 0:Z.getSubscriptionType(),X=0;return{SchemaDefinition(J){if(q){D.reportError(new YX.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:J}));return}if(X>0)D.reportError(new YX.GraphQLError("Must provide only one schema definition.",{nodes:J}));++X}}}});var Y9=Q((WX)=>{Object.defineProperty(WX,"__esModule",{value:!0});WX.MaxIntrospectionDepthRule=UA;var YA=v(),UX=r(),HA=3;function UA(D){function F(P,B=Object.create(null),Z=0){if(P.kind===UX.Kind.FRAGMENT_SPREAD){let q=P.name.value;if(B[q]===!0)return!1;let X=D.getFragment(q);if(!X)return!1;try{return B[q]=!0,F(X,B,Z)}finally{B[q]=void 0}}if(P.kind===UX.Kind.FIELD&&(P.name.value==="fields"||P.name.value==="interfaces"||P.name.value==="possibleTypes"||P.name.value==="inputFields")){if(Z++,Z>=HA)return!0}if("selectionSet"in P&&P.selectionSet){for(let q of P.selectionSet.selections)if(F(q,B,Z))return!0}return!1}return{Field(P){if(P.name.value==="__schema"||P.name.value==="__type"){if(F(P))return D.reportError(new YA.GraphQLError("Maximum introspection depth exceeded",{nodes:[P]})),!1}}}}});var H9=Q((OX)=>{Object.defineProperty(OX,"__esModule",{value:!0});OX.NoFragmentCyclesRule=zA;var OA=v();function zA(D){let F=Object.create(null),P=[],B=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(q){return Z(q),!1}};function Z(q){if(F[q.name.value])return;let X=q.name.value;F[X]=!0;let J=D.getFragmentSpreads(q.selectionSet);if(J.length===0)return;B[X]=P.length;for(let Y of J){let H=Y.name.value,W=B[H];if(P.push(Y),W===void 0){let U=D.getFragment(H);if(U)Z(U)}else{let U=P.slice(W),O=U.slice(0,-1).map((z)=>'"'+z.name.value+'"').join(", ");D.reportError(new OA.GraphQLError(`Cannot spread fragment "${H}" within itself`+(O!==""?` via ${O}.`:"."),{nodes:U}))}P.pop()}B[X]=void 0}}});var U9=Q((zX)=>{Object.defineProperty(zX,"__esModule",{value:!0});zX.NoUndefinedVariablesRule=RA;var GA=v();function RA(D){let F=Object.create(null);return{OperationDefinition:{enter(){F=Object.create(null)},leave(P){let B=D.getRecursiveVariableUsages(P);for(let{node:Z}of B){let q=Z.name.value;if(F[q]!==!0)D.reportError(new GA.GraphQLError(P.name?`Variable "$${q}" is not defined by operation "${P.name.value}".`:`Variable "$${q}" is not defined.`,{nodes:[Z,P]}))}}},VariableDefinition(P){F[P.variable.name.value]=!0}}}});var W9=Q((QX)=>{Object.defineProperty(QX,"__esModule",{value:!0});QX.NoUnusedFragmentsRule=MA;var $A=v();function MA(D){let F=[],P=[];return{OperationDefinition(B){return F.push(B),!1},FragmentDefinition(B){return P.push(B),!1},Document:{leave(){let B=Object.create(null);for(let Z of F)for(let q of D.getRecursivelyReferencedFragments(Z))B[q.name.value]=!0;for(let Z of P){let q=Z.name.value;if(B[q]!==!0)D.reportError(new $A.GraphQLError(`Fragment "${q}" is never used.`,{nodes:Z}))}}}}}});var O9=Q((GX)=>{Object.defineProperty(GX,"__esModule",{value:!0});GX.NoUnusedVariablesRule=AA;var EA=v();function AA(D){let F=[];return{OperationDefinition:{enter(){F=[]},leave(P){let B=Object.create(null),Z=D.getRecursiveVariableUsages(P);for(let{node:q}of Z)B[q.name.value]=!0;for(let q of F){let X=q.variable.name.value;if(B[X]!==!0)D.reportError(new EA.GraphQLError(P.name?`Variable "$${X}" is never used in operation "${P.name.value}".`:`Variable "$${X}" is never used.`,{nodes:q}))}}},VariableDefinition(P){F.push(P)}}}});var Q9=Q((RX)=>{Object.defineProperty(RX,"__esModule",{value:!0});RX.sortValueNode=z9;var LA=i8(),y0=r();function z9(D){switch(D.kind){case y0.Kind.OBJECT:return{...D,fields:wA(D.fields)};case y0.Kind.LIST:return{...D,values:D.values.map(z9)};case y0.Kind.INT:case y0.Kind.FLOAT:case y0.Kind.STRING:case y0.Kind.BOOLEAN:case y0.Kind.NULL:case y0.Kind.ENUM:case y0.Kind.VARIABLE:return D}}function wA(D){return D.map((F)=>({...F,value:z9(F.value)})).sort((F,P)=>LA.naturalCompare(F.name.value,P.name.value))}});var M9=Q((LX)=>{Object.defineProperty(LX,"__esModule",{value:!0});LX.OverlappingFieldsCanBeMergedRule=TA;var IX=PD(),jA=v(),G9=r(),bA=rD(),yD=a(),SA=Q9(),MX=V0();function KX(D){if(Array.isArray(D))return D.map(([F,P])=>`subfields "${F}" conflict because `+KX(P)).join(" and ");return D}function TA(D){let F=new CX,P=new Map;return{SelectionSet(B){let Z=NA(D,P,F,D.getParentType(),B);for(let[[q,X],J,Y]of Z){let H=KX(X);D.reportError(new jA.GraphQLError(`Fields "${q}" conflict because ${H}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:J.concat(Y)}))}}}}function NA(D,F,P,B,Z){let q=[],[X,J]=a6(D,F,B,Z);if(_A(D,q,F,P,X),J.length!==0)for(let Y=0;Y<J.length;Y++){p6(D,q,F,P,!1,X,J[Y]);for(let H=Y+1;H<J.length;H++)r6(D,q,F,P,!1,J[Y],J[H])}return q}function p6(D,F,P,B,Z,q,X){let J=D.getFragment(X);if(!J)return;let[Y,H]=I9(D,P,J);if(q===Y)return;$9(D,F,P,B,Z,q,Y);for(let W of H){if(B.has(W,X,Z))continue;B.add(W,X,Z),p6(D,F,P,B,Z,q,W)}}function r6(D,F,P,B,Z,q,X){if(q===X)return;if(B.has(q,X,Z))return;B.add(q,X,Z);let J=D.getFragment(q),Y=D.getFragment(X);if(!J||!Y)return;let[H,W]=I9(D,P,J),[U,O]=I9(D,P,Y);$9(D,F,P,B,Z,H,U);for(let z of O)r6(D,F,P,B,Z,q,z);for(let z of W)r6(D,F,P,B,Z,z,X)}function uA(D,F,P,B,Z,q,X,J){let Y=[],[H,W]=a6(D,F,Z,q),[U,O]=a6(D,F,X,J);$9(D,Y,F,P,B,H,U);for(let z of O)p6(D,Y,F,P,B,H,z);for(let z of W)p6(D,Y,F,P,B,U,z);for(let z of W)for(let I of O)r6(D,Y,F,P,B,z,I);return Y}function _A(D,F,P,B,Z){for(let[q,X]of Object.entries(Z))if(X.length>1)for(let J=0;J<X.length;J++)for(let Y=J+1;Y<X.length;Y++){let H=EX(D,P,B,!1,q,X[J],X[Y]);if(H)F.push(H)}}function $9(D,F,P,B,Z,q,X){for(let[J,Y]of Object.entries(q)){let H=X[J];if(H)for(let W of Y)for(let U of H){let O=EX(D,P,B,Z,J,W,U);if(O)F.push(O)}}}function EX(D,F,P,B,Z,q,X){let[J,Y,H]=q,[W,U,O]=X,z=B||J!==W&&yD.isObjectType(J)&&yD.isObjectType(W);if(!z){let w=Y.name.value,A=U.name.value;if(w!==A)return[[Z,`"${w}" and "${A}" are different fields`],[Y],[U]];if(!kA(Y,U))return[[Z,"they have differing arguments"],[Y],[U]]}let I=H===null||H===void 0?void 0:H.type,R=O===null||O===void 0?void 0:O.type;if(I&&R&&R9(I,R))return[[Z,`they return conflicting types "${IX.inspect(I)}" and "${IX.inspect(R)}"`],[Y],[U]];let $=Y.selectionSet,E=U.selectionSet;if($&&E){let w=uA(D,F,P,z,yD.getNamedType(I),$,yD.getNamedType(R),E);return xA(w,Z,Y,U)}}function kA(D,F){let P=D.arguments,B=F.arguments;if(P===void 0||P.length===0)return B===void 0||B.length===0;if(B===void 0||B.length===0)return!1;if(P.length!==B.length)return!1;let Z=new Map(B.map(({name:q,value:X})=>[q.value,X]));return P.every((q)=>{let X=q.value,J=Z.get(q.name.value);if(J===void 0)return!1;return $X(X)===$X(J)})}function $X(D){return bA.print(SA.sortValueNode(D))}function R9(D,F){if(yD.isListType(D))return yD.isListType(F)?R9(D.ofType,F.ofType):!0;if(yD.isListType(F))return!0;if(yD.isNonNullType(D))return yD.isNonNullType(F)?R9(D.ofType,F.ofType):!0;if(yD.isNonNullType(F))return!0;if(yD.isLeafType(D)||yD.isLeafType(F))return D!==F;return!1}function a6(D,F,P,B){let Z=F.get(B);if(Z)return Z;let q=Object.create(null),X=Object.create(null);AX(D,P,B,q,X);let J=[q,Object.keys(X)];return F.set(B,J),J}function I9(D,F,P){let B=F.get(P.selectionSet);if(B)return B;let Z=MX.typeFromAST(D.getSchema(),P.typeCondition);return a6(D,F,Z,P.selectionSet)}function AX(D,F,P,B,Z){for(let q of P.selections)switch(q.kind){case G9.Kind.FIELD:{let X=q.name.value,J;if(yD.isObjectType(F)||yD.isInterfaceType(F))J=F.getFields()[X];let Y=q.alias?q.alias.value:X;if(!B[Y])B[Y]=[];B[Y].push([F,q,J]);break}case G9.Kind.FRAGMENT_SPREAD:Z[q.name.value]=!0;break;case G9.Kind.INLINE_FRAGMENT:{let X=q.typeCondition,J=X?MX.typeFromAST(D.getSchema(),X):F;AX(D,J,q.selectionSet,B,Z);break}}}function xA(D,F,P,B){if(D.length>0)return[[F,D.map(([Z])=>Z)],[P,...D.map(([,Z])=>Z).flat()],[B,...D.map(([,,Z])=>Z).flat()]]}class CX{constructor(){this._data=new Map}has(D,F,P){var B;let[Z,q]=D<F?[D,F]:[F,D],X=(B=this._data.get(Z))===null||B===void 0?void 0:B.get(q);if(X===void 0)return!1;return P?!0:P===X}add(D,F,P){let[B,Z]=D<F?[D,F]:[F,D],q=this._data.get(B);if(q===void 0)this._data.set(B,new Map([[Z,P]]));else q.set(Z,P)}}});var E9=Q((jX)=>{Object.defineProperty(jX,"__esModule",{value:!0});jX.PossibleFragmentSpreadsRule=vA;var s6=PD(),wX=v(),K9=a(),VX=F1(),hA=V0();function vA(D){return{InlineFragment(F){let P=D.getType(),B=D.getParentType();if(K9.isCompositeType(P)&&K9.isCompositeType(B)&&!VX.doTypesOverlap(D.getSchema(),P,B)){let Z=s6.inspect(B),q=s6.inspect(P);D.reportError(new wX.GraphQLError(`Fragment cannot be spread here as objects of type "${Z}" can never be of type "${q}".`,{nodes:F}))}},FragmentSpread(F){let P=F.name.value,B=gA(D,P),Z=D.getParentType();if(B&&Z&&!VX.doTypesOverlap(D.getSchema(),B,Z)){let q=s6.inspect(Z),X=s6.inspect(B);D.reportError(new wX.GraphQLError(`Fragment "${P}" cannot be spread here as objects of type "${q}" can never be of type "${X}".`,{nodes:F}))}}}}function gA(D,F){let P=D.getFragment(F);if(P){let B=hA.typeFromAST(D.getSchema(),P.typeCondition);if(K9.isCompositeType(B))return B}}});var A9=Q((NX)=>{Object.defineProperty(NX,"__esModule",{value:!0});NX.PossibleTypeExtensionsRule=dA;var mA=o0(),SX=PD(),TX=_D(),lA=e0(),bX=v(),OD=r(),cA=u2(),W8=a();function dA(D){let F=D.getSchema(),P=Object.create(null);for(let Z of D.getDocument().definitions)if(cA.isTypeDefinitionNode(Z))P[Z.name.value]=Z;return{ScalarTypeExtension:B,ObjectTypeExtension:B,InterfaceTypeExtension:B,UnionTypeExtension:B,EnumTypeExtension:B,InputObjectTypeExtension:B};function B(Z){let q=Z.name.value,X=P[q],J=F===null||F===void 0?void 0:F.getType(q),Y;if(X)Y=pA[X.kind];else if(J)Y=rA(J);if(Y){if(Y!==Z.kind){let H=aA(Z.kind);D.reportError(new bX.GraphQLError(`Cannot extend non-${H} type "${q}".`,{nodes:X?[X,Z]:Z}))}}else{let H=Object.keys({...P,...F===null||F===void 0?void 0:F.getTypeMap()}),W=lA.suggestionList(q,H);D.reportError(new bX.GraphQLError(`Cannot extend type "${q}" because it is not defined.`+mA.didYouMean(W),{nodes:Z.name}))}}}var pA={[OD.Kind.SCALAR_TYPE_DEFINITION]:OD.Kind.SCALAR_TYPE_EXTENSION,[OD.Kind.OBJECT_TYPE_DEFINITION]:OD.Kind.OBJECT_TYPE_EXTENSION,[OD.Kind.INTERFACE_TYPE_DEFINITION]:OD.Kind.INTERFACE_TYPE_EXTENSION,[OD.Kind.UNION_TYPE_DEFINITION]:OD.Kind.UNION_TYPE_EXTENSION,[OD.Kind.ENUM_TYPE_DEFINITION]:OD.Kind.ENUM_TYPE_EXTENSION,[OD.Kind.INPUT_OBJECT_TYPE_DEFINITION]:OD.Kind.INPUT_OBJECT_TYPE_EXTENSION};function rA(D){if(W8.isScalarType(D))return OD.Kind.SCALAR_TYPE_EXTENSION;if(W8.isObjectType(D))return OD.Kind.OBJECT_TYPE_EXTENSION;if(W8.isInterfaceType(D))return OD.Kind.INTERFACE_TYPE_EXTENSION;if(W8.isUnionType(D))return OD.Kind.UNION_TYPE_EXTENSION;if(W8.isEnumType(D))return OD.Kind.ENUM_TYPE_EXTENSION;if(W8.isInputObjectType(D))return OD.Kind.INPUT_OBJECT_TYPE_EXTENSION;TX.invariant(!1,"Unexpected type: "+SX.inspect(D))}function aA(D){switch(D){case OD.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case OD.Kind.OBJECT_TYPE_EXTENSION:return"object";case OD.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case OD.Kind.UNION_TYPE_EXTENSION:return"union";case OD.Kind.ENUM_TYPE_EXTENSION:return"enum";case OD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:TX.invariant(!1,"Unexpected kind: "+SX.inspect(D))}}});var L9=Q((hX)=>{Object.defineProperty(hX,"__esModule",{value:!0});hX.ProvidedRequiredArgumentsOnDirectivesRule=fX;hX.ProvidedRequiredArgumentsRule=oA;var _X=PD(),uX=t0(),kX=v(),xX=r(),nA=rD(),C9=a(),iA=gD();function oA(D){return{...fX(D),Field:{leave(F){var P;let B=D.getFieldDef();if(!B)return!1;let Z=new Set((P=F.arguments)===null||P===void 0?void 0:P.map((q)=>q.name.value));for(let q of B.args)if(!Z.has(q.name)&&C9.isRequiredArgument(q)){let X=_X.inspect(q.type);D.reportError(new kX.GraphQLError(`Field "${B.name}" argument "${q.name}" of type "${X}" is required, but it was not provided.`,{nodes:F}))}}}}}function fX(D){var F;let P=Object.create(null),B=D.getSchema(),Z=(F=B===null||B===void 0?void 0:B.getDirectives())!==null&&F!==void 0?F:iA.specifiedDirectives;for(let J of Z)P[J.name]=uX.keyMap(J.args.filter(C9.isRequiredArgument),(Y)=>Y.name);let q=D.getDocument().definitions;for(let J of q)if(J.kind===xX.Kind.DIRECTIVE_DEFINITION){var X;let Y=(X=J.arguments)!==null&&X!==void 0?X:[];P[J.name.value]=uX.keyMap(Y.filter(tA),(H)=>H.name.value)}return{Directive:{leave(J){let Y=J.name.value,H=P[Y];if(H){var W;let U=(W=J.arguments)!==null&&W!==void 0?W:[],O=new Set(U.map((z)=>z.name.value));for(let[z,I]of Object.entries(H))if(!O.has(z)){let R=C9.isType(I.type)?_X.inspect(I.type):nA.print(I.type);D.reportError(new kX.GraphQLError(`Directive "@${Y}" argument "${z}" of type "${R}" is required, but it was not provided.`,{nodes:J}))}}}}}}function tA(D){return D.type.kind===xX.Kind.NON_NULL_TYPE&&D.defaultValue==null}});var w9=Q((mX)=>{Object.defineProperty(mX,"__esModule",{value:!0});mX.ScalarLeafsRule=FC;var vX=PD(),gX=v(),yX=a();function FC(D){return{Field(F){let P=D.getType(),B=F.selectionSet;if(P){if(yX.isLeafType(yX.getNamedType(P))){if(B){let Z=F.name.value,q=vX.inspect(P);D.reportError(new gX.GraphQLError(`Field "${Z}" must not have a selection since type "${q}" has no subfields.`,{nodes:B}))}}else if(!B){let Z=F.name.value,q=vX.inspect(P);D.reportError(new gX.GraphQLError(`Field "${Z}" of type "${q}" must have a selection of subfields. Did you mean "${Z} { ... }"?`,{nodes:F}))}}}}}});var V9=Q((lX)=>{Object.defineProperty(lX,"__esModule",{value:!0});lX.printPathArray=BC;function BC(D){return D.map((F)=>typeof F==="number"?"["+F.toString()+"]":"."+F).join("")}});var z1=Q((cX)=>{Object.defineProperty(cX,"__esModule",{value:!0});cX.addPath=qC;cX.pathToArray=XC;function qC(D,F,P){return{prev:D,key:F,typename:P}}function XC(D){let F=[],P=D;while(P)F.push(P.key),P=P.prev;return F.reverse()}});var j9=Q((dX)=>{Object.defineProperty(dX,"__esModule",{value:!0});dX.coerceInputValue=GC;var HC=o0(),n6=PD(),UC=_D(),WC=l6(),OC=E0(),R0=z1(),zC=V9(),QC=e0(),m0=v(),Q1=a();function GC(D,F,P=RC){return G1(D,F,P,void 0)}function RC(D,F,P){let B="Invalid value "+n6.inspect(F);if(D.length>0)B+=` at "value${zC.printPathArray(D)}"`;throw P.message=B+": "+P.message,P}function G1(D,F,P,B){if(Q1.isNonNullType(F)){if(D!=null)return G1(D,F.ofType,P,B);P(R0.pathToArray(B),D,new m0.GraphQLError(`Expected non-nullable type "${n6.inspect(F)}" not to be null.`));return}if(D==null)return null;if(Q1.isListType(F)){let Z=F.ofType;if(WC.isIterableObject(D))return Array.from(D,(q,X)=>{let J=R0.addPath(B,X,void 0);return G1(q,Z,P,J)});return[G1(D,Z,P,B)]}if(Q1.isInputObjectType(F)){if(!OC.isObjectLike(D)){P(R0.pathToArray(B),D,new m0.GraphQLError(`Expected type "${F.name}" to be an object.`));return}let Z={},q=F.getFields();for(let X of Object.values(q)){let J=D[X.name];if(J===void 0){if(X.defaultValue!==void 0)Z[X.name]=X.defaultValue;else if(Q1.isNonNullType(X.type)){let Y=n6.inspect(X.type);P(R0.pathToArray(B),D,new m0.GraphQLError(`Field "${X.name}" of required type "${Y}" was not provided.`))}continue}Z[X.name]=G1(J,X.type,P,R0.addPath(B,X.name,F.name))}for(let X of Object.keys(D))if(!q[X]){let J=QC.suggestionList(X,Object.keys(F.getFields()));P(R0.pathToArray(B),D,new m0.GraphQLError(`Field "${X}" is not defined by type "${F.name}".`+HC.didYouMean(J)))}if(F.isOneOf){let X=Object.keys(Z);if(X.length!==1)P(R0.pathToArray(B),D,new m0.GraphQLError(`Exactly one key must be specified for OneOf type "${F.name}".`));let J=X[0],Y=Z[J];if(Y===null)P(R0.pathToArray(B).concat(J),Y,new m0.GraphQLError(`Field "${J}" must be non-null.`))}return Z}if(Q1.isLeafType(F)){let Z;try{Z=F.parseValue(D)}catch(q){if(q instanceof m0.GraphQLError)P(R0.pathToArray(B),D,q);else P(R0.pathToArray(B),D,new m0.GraphQLError(`Expected type "${F.name}". `+q.message,{originalError:q}));return}if(Z===void 0)P(R0.pathToArray(B),D,new m0.GraphQLError(`Expected type "${F.name}".`));return Z}UC.invariant(!1,"Unexpected input type: "+n6.inspect(F))}});var I1=Q((rX)=>{Object.defineProperty(rX,"__esModule",{value:!0});rX.valueFromAST=R1;var $C=PD(),MC=_D(),KC=t0(),O8=r(),_2=a();function R1(D,F,P){if(!D)return;if(D.kind===O8.Kind.VARIABLE){let B=D.name.value;if(P==null||P[B]===void 0)return;let Z=P[B];if(Z===null&&_2.isNonNullType(F))return;return Z}if(_2.isNonNullType(F)){if(D.kind===O8.Kind.NULL)return;return R1(D,F.ofType,P)}if(D.kind===O8.Kind.NULL)return null;if(_2.isListType(F)){let B=F.ofType;if(D.kind===O8.Kind.LIST){let q=[];for(let X of D.values)if(pX(X,P)){if(_2.isNonNullType(B))return;q.push(null)}else{let J=R1(X,B,P);if(J===void 0)return;q.push(J)}return q}let Z=R1(D,B,P);if(Z===void 0)return;return[Z]}if(_2.isInputObjectType(F)){if(D.kind!==O8.Kind.OBJECT)return;let B=Object.create(null),Z=KC.keyMap(D.fields,(q)=>q.name.value);for(let q of Object.values(F.getFields())){let X=Z[q.name];if(!X||pX(X.value,P)){if(q.defaultValue!==void 0)B[q.name]=q.defaultValue;else if(_2.isNonNullType(q.type))return;continue}let J=R1(X.value,q.type,P);if(J===void 0)return;B[q.name]=J}if(F.isOneOf){let q=Object.keys(B);if(q.length!==1)return;if(B[q[0]]===null)return}return B}if(_2.isLeafType(F)){let B;try{B=F.parseLiteral(D,P)}catch(Z){return}if(B===void 0)return;return B}MC.invariant(!1,"Unexpected input type: "+$C.inspect(F))}function pX(D,F){return D.kind===O8.Kind.VARIABLE&&(F==null||F[D.name.value]===void 0)}});var G8=Q((tX)=>{Object.defineProperty(tX,"__esModule",{value:!0});tX.getArgumentValues=iX;tX.getDirectiveValues=bC;tX.getVariableValues=VC;var z8=PD(),AC=t0(),CC=V9(),l0=v(),aX=r(),sX=rD(),Q8=a(),LC=j9(),wC=V0(),nX=I1();function VC(D,F,P,B){let Z=[],q=B===null||B===void 0?void 0:B.maxErrors;try{let X=jC(D,F,P,(J)=>{if(q!=null&&Z.length>=q)throw new l0.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");Z.push(J)});if(Z.length===0)return{coerced:X}}catch(X){Z.push(X)}return{errors:Z}}function jC(D,F,P,B){let Z={};for(let q of F){let X=q.variable.name.value,J=wC.typeFromAST(D,q.type);if(!Q8.isInputType(J)){let H=sX.print(q.type);B(new l0.GraphQLError(`Variable "$${X}" expected value of type "${H}" which cannot be used as an input type.`,{nodes:q.type}));continue}if(!oX(P,X)){if(q.defaultValue)Z[X]=nX.valueFromAST(q.defaultValue,J);else if(Q8.isNonNullType(J)){let H=z8.inspect(J);B(new l0.GraphQLError(`Variable "$${X}" of required type "${H}" was not provided.`,{nodes:q}))}continue}let Y=P[X];if(Y===null&&Q8.isNonNullType(J)){let H=z8.inspect(J);B(new l0.GraphQLError(`Variable "$${X}" of non-null type "${H}" must not be null.`,{nodes:q}));continue}Z[X]=LC.coerceInputValue(Y,J,(H,W,U)=>{let O=`Variable "$${X}" got invalid value `+z8.inspect(W);if(H.length>0)O+=` at "${X}${CC.printPathArray(H)}"`;B(new l0.GraphQLError(O+"; "+U.message,{nodes:q,originalError:U}))})}return Z}function iX(D,F,P){var B;let Z={},q=(B=F.arguments)!==null&&B!==void 0?B:[],X=AC.keyMap(q,(J)=>J.name.value);for(let J of D.args){let{name:Y,type:H}=J,W=X[Y];if(!W){if(J.defaultValue!==void 0)Z[Y]=J.defaultValue;else if(Q8.isNonNullType(H))throw new l0.GraphQLError(`Argument "${Y}" of required type "${z8.inspect(H)}" was not provided.`,{nodes:F});continue}let U=W.value,O=U.kind===aX.Kind.NULL;if(U.kind===aX.Kind.VARIABLE){let I=U.name.value;if(P==null||!oX(P,I)){if(J.defaultValue!==void 0)Z[Y]=J.defaultValue;else if(Q8.isNonNullType(H))throw new l0.GraphQLError(`Argument "${Y}" of required type "${z8.inspect(H)}" was provided the variable "$${I}" which was not provided a runtime value.`,{nodes:U});continue}O=P[I]==null}if(O&&Q8.isNonNullType(H))throw new l0.GraphQLError(`Argument "${Y}" of non-null type "${z8.inspect(H)}" must not be null.`,{nodes:U});let z=nX.valueFromAST(U,H,P);if(z===void 0)throw new l0.GraphQLError(`Argument "${Y}" has invalid value ${sX.print(U)}.`,{nodes:U});Z[Y]=z}return Z}function bC(D,F,P){var B;let Z=(B=F.directives)===null||B===void 0?void 0:B.find((q)=>q.name.value===D.name);if(Z)return iX(D,Z,P)}function oX(D,F){return Object.prototype.hasOwnProperty.call(D,F)}});var o6=Q((PJ)=>{Object.defineProperty(PJ,"__esModule",{value:!0});PJ.collectFields=kC;PJ.collectSubfields=xC;var b9=r(),uC=a(),eX=gD(),_C=V0(),DJ=G8();function kC(D,F,P,B,Z){let q=new Map;return i6(D,F,P,B,Z,q,new Set),q}function xC(D,F,P,B,Z){let q=new Map,X=new Set;for(let J of Z)if(J.selectionSet)i6(D,F,P,B,J.selectionSet,q,X);return q}function i6(D,F,P,B,Z,q,X){for(let J of Z.selections)switch(J.kind){case b9.Kind.FIELD:{if(!S9(P,J))continue;let Y=fC(J),H=q.get(Y);if(H!==void 0)H.push(J);else q.set(Y,[J]);break}case b9.Kind.INLINE_FRAGMENT:{if(!S9(P,J)||!FJ(D,J,B))continue;i6(D,F,P,B,J.selectionSet,q,X);break}case b9.Kind.FRAGMENT_SPREAD:{let Y=J.name.value;if(X.has(Y)||!S9(P,J))continue;X.add(Y);let H=F[Y];if(!H||!FJ(D,H,B))continue;i6(D,F,P,B,H.selectionSet,q,X);break}}}function S9(D,F){let P=DJ.getDirectiveValues(eX.GraphQLSkipDirective,F,D);if((P===null||P===void 0?void 0:P.if)===!0)return!1;let B=DJ.getDirectiveValues(eX.GraphQLIncludeDirective,F,D);if((B===null||B===void 0?void 0:B.if)===!1)return!1;return!0}function FJ(D,F,P){let B=F.typeCondition;if(!B)return!0;let Z=_C.typeFromAST(D,B);if(Z===P)return!0;if(uC.isAbstractType(Z))return D.isSubType(Z,P);return!1}function fC(D){return D.alias?D.alias.value:D.name.value}});var T9=Q((ZJ)=>{Object.defineProperty(ZJ,"__esModule",{value:!0});ZJ.SingleFieldSubscriptionsRule=mC;var BJ=v(),gC=r(),yC=o6();function mC(D){return{OperationDefinition(F){if(F.operation==="subscription"){let P=D.getSchema(),B=P.getSubscriptionType();if(B){let Z=F.name?F.name.value:null,q=Object.create(null),X=D.getDocument(),J=Object.create(null);for(let H of X.definitions)if(H.kind===gC.Kind.FRAGMENT_DEFINITION)J[H.name.value]=H;let Y=yC.collectFields(P,J,q,B,F.selectionSet);if(Y.size>1){let U=[...Y.values()].slice(1).flat();D.reportError(new BJ.GraphQLError(Z!=null?`Subscription "${Z}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:U}))}for(let H of Y.values())if(H[0].name.value.startsWith("__"))D.reportError(new BJ.GraphQLError(Z!=null?`Subscription "${Z}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:H}))}}}}}});var t6=Q((qJ)=>{Object.defineProperty(qJ,"__esModule",{value:!0});qJ.groupBy=cC;function cC(D,F){let P=new Map;for(let B of D){let Z=F(B),q=P.get(Z);if(q===void 0)P.set(Z,[B]);else q.push(B)}return P}});var N9=Q((XJ)=>{Object.defineProperty(XJ,"__esModule",{value:!0});XJ.UniqueArgumentDefinitionNamesRule=aC;var pC=t6(),rC=v();function aC(D){return{DirectiveDefinition(B){var Z;let q=(Z=B.arguments)!==null&&Z!==void 0?Z:[];return P(`@${B.name.value}`,q)},InterfaceTypeDefinition:F,InterfaceTypeExtension:F,ObjectTypeDefinition:F,ObjectTypeExtension:F};function F(B){var Z;let q=B.name.value,X=(Z=B.fields)!==null&&Z!==void 0?Z:[];for(let Y of X){var J;let H=Y.name.value,W=(J=Y.arguments)!==null&&J!==void 0?J:[];P(`${q}.${H}`,W)}return!1}function P(B,Z){let q=pC.groupBy(Z,(X)=>X.name.value);for(let[X,J]of q)if(J.length>1)D.reportError(new rC.GraphQLError(`Argument "${B}(${X}:)" can only be defined once.`,{nodes:J.map((Y)=>Y.name)}));return!1}}});var u9=Q((JJ)=>{Object.defineProperty(JJ,"__esModule",{value:!0});JJ.UniqueArgumentNamesRule=oC;var nC=t6(),iC=v();function oC(D){return{Field:F,Directive:F};function F(P){var B;let Z=(B=P.arguments)!==null&&B!==void 0?B:[],q=nC.groupBy(Z,(X)=>X.name.value);for(let[X,J]of q)if(J.length>1)D.reportError(new iC.GraphQLError(`There can be only one argument named "${X}".`,{nodes:J.map((Y)=>Y.name)}))}}});var _9=Q((HJ)=>{Object.defineProperty(HJ,"__esModule",{value:!0});HJ.UniqueDirectiveNamesRule=eC;var YJ=v();function eC(D){let F=Object.create(null),P=D.getSchema();return{DirectiveDefinition(B){let Z=B.name.value;if(P!==null&&P!==void 0&&P.getDirective(Z)){D.reportError(new YJ.GraphQLError(`Directive "@${Z}" already exists in the schema. It cannot be redefined.`,{nodes:B.name}));return}if(F[Z])D.reportError(new YJ.GraphQLError(`There can be only one directive named "@${Z}".`,{nodes:[F[Z],B.name]}));else F[Z]=B.name;return!1}}}});var x9=Q((WJ)=>{Object.defineProperty(WJ,"__esModule",{value:!0});WJ.UniqueDirectivesPerLocationRule=BL;var FL=v(),k9=r(),UJ=u2(),PL=gD();function BL(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():PL.specifiedDirectives;for(let J of B)F[J.name]=!J.isRepeatable;let Z=D.getDocument().definitions;for(let J of Z)if(J.kind===k9.Kind.DIRECTIVE_DEFINITION)F[J.name.value]=!J.repeatable;let q=Object.create(null),X=Object.create(null);return{enter(J){if(!("directives"in J)||!J.directives)return;let Y;if(J.kind===k9.Kind.SCHEMA_DEFINITION||J.kind===k9.Kind.SCHEMA_EXTENSION)Y=q;else if(UJ.isTypeDefinitionNode(J)||UJ.isTypeExtensionNode(J)){let H=J.name.value;if(Y=X[H],Y===void 0)X[H]=Y=Object.create(null)}else Y=Object.create(null);for(let H of J.directives){let W=H.name.value;if(F[W])if(Y[W])D.reportError(new FL.GraphQLError(`The directive "@${W}" can only be used once at this location.`,{nodes:[Y[W],H]}));else Y[W]=H}}}}});var f9=Q((zJ)=>{Object.defineProperty(zJ,"__esModule",{value:!0});zJ.UniqueEnumValueNamesRule=XL;var OJ=v(),qL=a();function XL(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);return{EnumTypeDefinition:Z,EnumTypeExtension:Z};function Z(q){var X;let J=q.name.value;if(!B[J])B[J]=Object.create(null);let Y=(X=q.values)!==null&&X!==void 0?X:[],H=B[J];for(let W of Y){let U=W.name.value,O=P[J];if(qL.isEnumType(O)&&O.getValue(U))D.reportError(new OJ.GraphQLError(`Enum value "${J}.${U}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:W.name}));else if(H[U])D.reportError(new OJ.GraphQLError(`Enum value "${J}.${U}" can only be defined once.`,{nodes:[H[U],W.name]}));else H[U]=W.name}return!1}}});var v9=Q((GJ)=>{Object.defineProperty(GJ,"__esModule",{value:!0});GJ.UniqueFieldDefinitionNamesRule=YL;var QJ=v(),h9=a();function YL(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);return{InputObjectTypeDefinition:Z,InputObjectTypeExtension:Z,InterfaceTypeDefinition:Z,InterfaceTypeExtension:Z,ObjectTypeDefinition:Z,ObjectTypeExtension:Z};function Z(q){var X;let J=q.name.value;if(!B[J])B[J]=Object.create(null);let Y=(X=q.fields)!==null&&X!==void 0?X:[],H=B[J];for(let W of Y){let U=W.name.value;if(HL(P[J],U))D.reportError(new QJ.GraphQLError(`Field "${J}.${U}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:W.name}));else if(H[U])D.reportError(new QJ.GraphQLError(`Field "${J}.${U}" can only be defined once.`,{nodes:[H[U],W.name]}));else H[U]=W.name}return!1}}function HL(D,F){if(h9.isObjectType(D)||h9.isInterfaceType(D)||h9.isInputObjectType(D))return D.getFields()[F]!=null;return!1}});var g9=Q((RJ)=>{Object.defineProperty(RJ,"__esModule",{value:!0});RJ.UniqueFragmentNamesRule=OL;var WL=v();function OL(D){let F=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(P){let B=P.name.value;if(F[B])D.reportError(new WL.GraphQLError(`There can be only one fragment named "${B}".`,{nodes:[F[B],P.name]}));else F[B]=P.name;return!1}}}});var y9=Q((IJ)=>{Object.defineProperty(IJ,"__esModule",{value:!0});IJ.UniqueInputFieldNamesRule=RL;var QL=_D(),GL=v();function RL(D){let F=[],P=Object.create(null);return{ObjectValue:{enter(){F.push(P),P=Object.create(null)},leave(){let B=F.pop();B||QL.invariant(!1),P=B}},ObjectField(B){let Z=B.name.value;if(P[Z])D.reportError(new GL.GraphQLError(`There can be only one input field named "${Z}".`,{nodes:[P[Z],B.name]}));else P[Z]=B.name}}}});var m9=Q(($J)=>{Object.defineProperty($J,"__esModule",{value:!0});$J.UniqueOperationNamesRule=ML;var $L=v();function ML(D){let F=Object.create(null);return{OperationDefinition(P){let B=P.name;if(B)if(F[B.value])D.reportError(new $L.GraphQLError(`There can be only one operation named "${B.value}".`,{nodes:[F[B.value],B]}));else F[B.value]=B;return!1},FragmentDefinition:()=>!1}}});var l9=Q((KJ)=>{Object.defineProperty(KJ,"__esModule",{value:!0});KJ.UniqueOperationTypesRule=EL;var MJ=v();function EL(D){let F=D.getSchema(),P=Object.create(null),B=F?{query:F.getQueryType(),mutation:F.getMutationType(),subscription:F.getSubscriptionType()}:{};return{SchemaDefinition:Z,SchemaExtension:Z};function Z(q){var X;let J=(X=q.operationTypes)!==null&&X!==void 0?X:[];for(let Y of J){let H=Y.operation,W=P[H];if(B[H])D.reportError(new MJ.GraphQLError(`Type for ${H} already defined in the schema. It cannot be redefined.`,{nodes:Y}));else if(W)D.reportError(new MJ.GraphQLError(`There can be only one ${H} type in schema.`,{nodes:[W,Y]}));else P[H]=Y}return!1}}});var c9=Q((AJ)=>{Object.defineProperty(AJ,"__esModule",{value:!0});AJ.UniqueTypeNamesRule=CL;var EJ=v();function CL(D){let F=Object.create(null),P=D.getSchema();return{ScalarTypeDefinition:B,ObjectTypeDefinition:B,InterfaceTypeDefinition:B,UnionTypeDefinition:B,EnumTypeDefinition:B,InputObjectTypeDefinition:B};function B(Z){let q=Z.name.value;if(P!==null&&P!==void 0&&P.getType(q)){D.reportError(new EJ.GraphQLError(`Type "${q}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:Z.name}));return}if(F[q])D.reportError(new EJ.GraphQLError(`There can be only one type named "${q}".`,{nodes:[F[q],Z.name]}));else F[q]=Z.name;return!1}}});var d9=Q((CJ)=>{Object.defineProperty(CJ,"__esModule",{value:!0});CJ.UniqueVariableNamesRule=jL;var wL=t6(),VL=v();function jL(D){return{OperationDefinition(F){var P;let B=(P=F.variableDefinitions)!==null&&P!==void 0?P:[],Z=wL.groupBy(B,(q)=>q.variable.name.value);for(let[q,X]of Z)if(X.length>1)D.reportError(new VL.GraphQLError(`There can be only one variable named "$${q}".`,{nodes:X.map((J)=>J.variable.name)}))}}}});var r9=Q((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.ValuesOfCorrectTypeRule=uL;var SL=o0(),$1=PD(),TL=t0(),NL=e0(),b0=v(),p9=r(),e6=rD(),j0=a();function uL(D){let F={};return{OperationDefinition:{enter(){F={}}},VariableDefinition(P){F[P.variable.name.value]=P},ListValue(P){let B=j0.getNullableType(D.getParentInputType());if(!j0.isListType(B))return k2(D,P),!1},ObjectValue(P){let B=j0.getNamedType(D.getInputType());if(!j0.isInputObjectType(B))return k2(D,P),!1;let Z=TL.keyMap(P.fields,(q)=>q.name.value);for(let q of Object.values(B.getFields()))if(!Z[q.name]&&j0.isRequiredInputField(q)){let J=$1.inspect(q.type);D.reportError(new b0.GraphQLError(`Field "${B.name}.${q.name}" of required type "${J}" was not provided.`,{nodes:P}))}if(B.isOneOf)_L(D,P,B,Z,F)},ObjectField(P){let B=j0.getNamedType(D.getParentInputType());if(!D.getInputType()&&j0.isInputObjectType(B)){let q=NL.suggestionList(P.name.value,Object.keys(B.getFields()));D.reportError(new b0.GraphQLError(`Field "${P.name.value}" is not defined by type "${B.name}".`+SL.didYouMean(q),{nodes:P}))}},NullValue(P){let B=D.getInputType();if(j0.isNonNullType(B))D.reportError(new b0.GraphQLError(`Expected value of type "${$1.inspect(B)}", found ${e6.print(P)}.`,{nodes:P}))},EnumValue:(P)=>k2(D,P),IntValue:(P)=>k2(D,P),FloatValue:(P)=>k2(D,P),StringValue:(P)=>k2(D,P),BooleanValue:(P)=>k2(D,P)}}function k2(D,F){let P=D.getInputType();if(!P)return;let B=j0.getNamedType(P);if(!j0.isLeafType(B)){let Z=$1.inspect(P);D.reportError(new b0.GraphQLError(`Expected value of type "${Z}", found ${e6.print(F)}.`,{nodes:F}));return}try{if(B.parseLiteral(F,void 0)===void 0){let q=$1.inspect(P);D.reportError(new b0.GraphQLError(`Expected value of type "${q}", found ${e6.print(F)}.`,{nodes:F}))}}catch(Z){let q=$1.inspect(P);if(Z instanceof b0.GraphQLError)D.reportError(Z);else D.reportError(new b0.GraphQLError(`Expected value of type "${q}", found ${e6.print(F)}; `+Z.message,{nodes:F,originalError:Z}))}}function _L(D,F,P,B,Z){var q;let X=Object.keys(B);if(X.length!==1){D.reportError(new b0.GraphQLError(`OneOf Input Object "${P.name}" must specify exactly one key.`,{nodes:[F]}));return}let Y=(q=B[X[0]])===null||q===void 0?void 0:q.value,H=!Y||Y.kind===p9.Kind.NULL,W=(Y===null||Y===void 0?void 0:Y.kind)===p9.Kind.VARIABLE;if(H){D.reportError(new b0.GraphQLError(`Field "${P.name}.${X[0]}" must be non-null.`,{nodes:[F]}));return}if(W){let U=Y.name.value;if(Z[U].type.kind!==p9.Kind.NON_NULL_TYPE)D.reportError(new b0.GraphQLError(`Variable "${U}" must be non-nullable to be used for OneOf Input Object "${P.name}".`,{nodes:[F]}))}}});var a9=Q((wJ)=>{Object.defineProperty(wJ,"__esModule",{value:!0});wJ.VariablesAreInputTypesRule=gL;var xL=v(),fL=rD(),hL=a(),vL=V0();function gL(D){return{VariableDefinition(F){let P=vL.typeFromAST(D.getSchema(),F.type);if(P!==void 0&&!hL.isInputType(P)){let B=F.variable.name.value,Z=fL.print(F.type);D.reportError(new xL.GraphQLError(`Variable "$${B}" cannot be non-input type "${Z}".`,{nodes:F.type}))}}}}});var s9=Q((SJ)=>{Object.defineProperty(SJ,"__esModule",{value:!0});SJ.VariablesInAllowedPositionRule=dL;var VJ=PD(),mL=v(),lL=r(),jJ=a(),bJ=F1(),cL=V0();function dL(D){let F=Object.create(null);return{OperationDefinition:{enter(){F=Object.create(null)},leave(P){let B=D.getRecursiveVariableUsages(P);for(let{node:Z,type:q,defaultValue:X}of B){let J=Z.name.value,Y=F[J];if(Y&&q){let H=D.getSchema(),W=cL.typeFromAST(H,Y.type);if(W&&!pL(H,W,Y.defaultValue,q,X)){let U=VJ.inspect(W),O=VJ.inspect(q);D.reportError(new mL.GraphQLError(`Variable "$${J}" of type "${U}" used in position expecting type "${O}".`,{nodes:[Y,Z]}))}}}}},VariableDefinition(P){F[P.variable.name.value]=P}}}function pL(D,F,P,B,Z){if(jJ.isNonNullType(B)&&!jJ.isNonNullType(F)){if(!(P!=null&&P.kind!==lL.Kind.NULL)&&Z===void 0)return!1;let J=B.ofType;return bJ.isTypeSubTypeOf(D,F,J)}return bJ.isTypeSubTypeOf(D,F,B)}});var n9=Q((vJ)=>{Object.defineProperty(vJ,"__esModule",{value:!0});vJ.specifiedSDLRules=vJ.specifiedRules=vJ.recommendedRules=void 0;var aL=i4(),sL=o4(),nL=t4(),TJ=e4(),NJ=P9(),iL=B9(),uJ=q9(),oL=X9(),tL=J9(),eL=Y9(),Dw=H9(),Fw=U9(),Pw=W9(),Bw=O9(),Zw=M9(),qw=E9(),Xw=A9(),_J=L9(),Jw=w9(),Yw=T9(),Hw=N9(),kJ=u9(),Uw=_9(),xJ=x9(),Ww=f9(),Ow=v9(),zw=g9(),fJ=y9(),Qw=m9(),Gw=l9(),Rw=c9(),Iw=d9(),$w=r9(),Mw=a9(),Kw=s9(),hJ=Object.freeze([eL.MaxIntrospectionDepthRule]);vJ.recommendedRules=hJ;var Ew=Object.freeze([aL.ExecutableDefinitionsRule,Qw.UniqueOperationNamesRule,oL.LoneAnonymousOperationRule,Yw.SingleFieldSubscriptionsRule,uJ.KnownTypeNamesRule,nL.FragmentsOnCompositeTypesRule,Mw.VariablesAreInputTypesRule,Jw.ScalarLeafsRule,sL.FieldsOnCorrectTypeRule,zw.UniqueFragmentNamesRule,iL.KnownFragmentNamesRule,Pw.NoUnusedFragmentsRule,qw.PossibleFragmentSpreadsRule,Dw.NoFragmentCyclesRule,Iw.UniqueVariableNamesRule,Fw.NoUndefinedVariablesRule,Bw.NoUnusedVariablesRule,NJ.KnownDirectivesRule,xJ.UniqueDirectivesPerLocationRule,TJ.KnownArgumentNamesRule,kJ.UniqueArgumentNamesRule,$w.ValuesOfCorrectTypeRule,_J.ProvidedRequiredArgumentsRule,Kw.VariablesInAllowedPositionRule,Zw.OverlappingFieldsCanBeMergedRule,fJ.UniqueInputFieldNamesRule,...hJ]);vJ.specifiedRules=Ew;var Aw=Object.freeze([tL.LoneSchemaDefinitionRule,Gw.UniqueOperationTypesRule,Rw.UniqueTypeNamesRule,Ww.UniqueEnumValueNamesRule,Ow.UniqueFieldDefinitionNamesRule,Hw.UniqueArgumentDefinitionNamesRule,Uw.UniqueDirectiveNamesRule,uJ.KnownTypeNamesRule,NJ.KnownDirectivesRule,xJ.UniqueDirectivesPerLocationRule,Xw.PossibleTypeExtensionsRule,TJ.KnownArgumentNamesOnDirectivesRule,kJ.UniqueArgumentNamesRule,fJ.UniqueInputFieldNamesRule,_J.ProvidedRequiredArgumentsOnDirectivesRule]);vJ.specifiedSDLRules=Aw});var i9=Q((dJ)=>{Object.defineProperty(dJ,"__esModule",{value:!0});dJ.ValidationContext=dJ.SDLValidationContext=dJ.ASTValidationContext=void 0;var yJ=r(),ww=L2(),mJ=d6();class D3{constructor(D,F){this._ast=D,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=F}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(D){this._onError(D)}getDocument(){return this._ast}getFragment(D){let F;if(this._fragments)F=this._fragments;else{F=Object.create(null);for(let P of this.getDocument().definitions)if(P.kind===yJ.Kind.FRAGMENT_DEFINITION)F[P.name.value]=P;this._fragments=F}return F[D]}getFragmentSpreads(D){let F=this._fragmentSpreads.get(D);if(!F){F=[];let P=[D],B;while(B=P.pop())for(let Z of B.selections)if(Z.kind===yJ.Kind.FRAGMENT_SPREAD)F.push(Z);else if(Z.selectionSet)P.push(Z.selectionSet);this._fragmentSpreads.set(D,F)}return F}getRecursivelyReferencedFragments(D){let F=this._recursivelyReferencedFragments.get(D);if(!F){F=[];let P=Object.create(null),B=[D.selectionSet],Z;while(Z=B.pop())for(let q of this.getFragmentSpreads(Z)){let X=q.name.value;if(P[X]!==!0){P[X]=!0;let J=this.getFragment(X);if(J)F.push(J),B.push(J.selectionSet)}}this._recursivelyReferencedFragments.set(D,F)}return F}}dJ.ASTValidationContext=D3;class lJ extends D3{constructor(D,F,P){super(D,P);this._schema=F}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}dJ.SDLValidationContext=lJ;class cJ extends D3{constructor(D,F,P,B){super(F,B);this._schema=D,this._typeInfo=P,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(D){let F=this._variableUsages.get(D);if(!F){let P=[],B=new mJ.TypeInfo(this._schema);ww.visit(D,mJ.visitWithTypeInfo(B,{VariableDefinition:()=>!1,Variable(Z){P.push({node:Z,type:B.getInputType(),defaultValue:B.getDefaultValue()})}})),F=P,this._variableUsages.set(D,F)}return F}getRecursiveVariableUsages(D){let F=this._recursiveVariableUsages.get(D);if(!F){F=this.getVariableUsages(D);for(let P of this.getRecursivelyReferencedFragments(D))F=F.concat(this.getVariableUsages(P));this._recursiveVariableUsages.set(D,F)}return F}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}dJ.ValidationContext=cJ});var M1=Q((nJ)=>{Object.defineProperty(nJ,"__esModule",{value:!0});nJ.assertValidSDL=uw;nJ.assertValidSDLExtension=_w;nJ.validate=Nw;nJ.validateSDL=o9;var bw=hD(),Sw=v(),F3=L2(),Tw=W1(),rJ=d6(),aJ=n9(),sJ=i9();function Nw(D,F,P=aJ.specifiedRules,B,Z=new rJ.TypeInfo(D)){var q;let X=(q=B===null||B===void 0?void 0:B.maxErrors)!==null&&q!==void 0?q:100;F||bw.devAssert(!1,"Must provide document."),Tw.assertValidSchema(D);let J=Object.freeze({}),Y=[],H=new sJ.ValidationContext(D,F,Z,(U)=>{if(Y.length>=X)throw Y.push(new Sw.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),J;Y.push(U)}),W=F3.visitInParallel(P.map((U)=>U(H)));try{F3.visit(F,rJ.visitWithTypeInfo(Z,W))}catch(U){if(U!==J)throw U}return Y}function o9(D,F,P=aJ.specifiedSDLRules){let B=[],Z=new sJ.SDLValidationContext(D,F,(X)=>{B.push(X)}),q=P.map((X)=>X(Z));return F3.visit(D,F3.visitInParallel(q)),B}function uw(D){let F=o9(D);if(F.length!==0)throw new Error(F.map((P)=>P.message).join(`
74
+ `))}class Vq{constructor(D){this._errors=[],this.schema=D}reportError(D,F){let P=Array.isArray(F)?F.filter(Boolean):F;this._errors.push(new mK.GraphQLError(D,{nodes:P}))}getErrors(){return this._errors}}function pK(D){let F=D.schema,P=F.getQueryType();if(!P)D.reportError("Query root type must be provided.",F.astNode);else if(!GD.isObjectType(P)){var B;D.reportError(`Query root type must be Object type, it cannot be ${xD.inspect(P)}.`,(B=p4(F,d4.OperationTypeNode.QUERY))!==null&&B!==void 0?B:P.astNode)}let Z=F.getMutationType();if(Z&&!GD.isObjectType(Z)){var q;D.reportError(`Mutation root type must be Object type if provided, it cannot be ${xD.inspect(Z)}.`,(q=p4(F,d4.OperationTypeNode.MUTATION))!==null&&q!==void 0?q:Z.astNode)}let X=F.getSubscriptionType();if(X&&!GD.isObjectType(X)){var J;D.reportError(`Subscription root type must be Object type if provided, it cannot be ${xD.inspect(X)}.`,(J=p4(F,d4.OperationTypeNode.SUBSCRIPTION))!==null&&J!==void 0?J:X.astNode)}}function p4(D,F){var P;return(P=[D.astNode,...D.extensionASTNodes].flatMap((B)=>{var Z;return(Z=B===null||B===void 0?void 0:B.operationTypes)!==null&&Z!==void 0?Z:[]}).find((B)=>B.operation===F))===null||P===void 0?void 0:P.type}function rK(D){for(let P of D.schema.getDirectives()){if(!Lq.isDirective(P)){D.reportError(`Expected directive but got: ${xD.inspect(P)}.`,P===null||P===void 0?void 0:P.astNode);continue}N2(D,P);for(let B of P.args){if(N2(D,B),!GD.isInputType(B.type))D.reportError(`The type of @${P.name}(${B.name}:) must be Input Type but got: ${xD.inspect(B.type)}.`,B.astNode);if(GD.isRequiredArgument(B)&&B.deprecationReason!=null){var F;D.reportError(`Required argument @${P.name}(${B.name}:) cannot be deprecated.`,[r4(B.astNode),(F=B.astNode)===null||F===void 0?void 0:F.type])}}}}function N2(D,F){if(F.name.startsWith("__"))D.reportError(`Name "${F.name}" must not begin with "__", which is reserved by GraphQL introspection.`,F.astNode)}function aK(D){let F=DE(D),P=D.schema.getTypeMap();for(let B of Object.values(P)){if(!GD.isNamedType(B)){D.reportError(`Expected GraphQL named type but got: ${xD.inspect(B)}.`,B.astNode);continue}if(!lK.isIntrospectionType(B))N2(D,B);if(GD.isObjectType(B))Eq(D,B),Aq(D,B);else if(GD.isInterfaceType(B))Eq(D,B),Aq(D,B);else if(GD.isUnionType(B))iK(D,B);else if(GD.isEnumType(B))oK(D,B);else if(GD.isInputObjectType(B))tK(D,B),F(B)}}function Eq(D,F){let P=Object.values(F.getFields());if(P.length===0)D.reportError(`Type ${F.name} must define one or more fields.`,[F.astNode,...F.extensionASTNodes]);for(let X of P){if(N2(D,X),!GD.isOutputType(X.type)){var B;D.reportError(`The type of ${F.name}.${X.name} must be Output Type but got: ${xD.inspect(X.type)}.`,(B=X.astNode)===null||B===void 0?void 0:B.type)}for(let J of X.args){let Y=J.name;if(N2(D,J),!GD.isInputType(J.type)){var Z;D.reportError(`The type of ${F.name}.${X.name}(${Y}:) must be Input Type but got: ${xD.inspect(J.type)}.`,(Z=J.astNode)===null||Z===void 0?void 0:Z.type)}if(GD.isRequiredArgument(J)&&J.deprecationReason!=null){var q;D.reportError(`Required argument ${F.name}.${X.name}(${Y}:) cannot be deprecated.`,[r4(J.astNode),(q=J.astNode)===null||q===void 0?void 0:q.type])}}}}function Aq(D,F){let P=Object.create(null);for(let B of F.getInterfaces()){if(!GD.isInterfaceType(B)){D.reportError(`Type ${xD.inspect(F)} must only implement Interface types, it cannot implement ${xD.inspect(B)}.`,W1(F,B));continue}if(F===B){D.reportError(`Type ${F.name} cannot implement itself because it would create a circular reference.`,W1(F,B));continue}if(P[B.name]){D.reportError(`Type ${F.name} can only implement ${B.name} once.`,W1(F,B));continue}P[B.name]=!0,nK(D,F,B),sK(D,F,B)}}function sK(D,F,P){let B=F.getFields();for(let Y of Object.values(P.getFields())){let H=Y.name,W=B[H];if(!W){D.reportError(`Interface field ${P.name}.${H} expected but ${F.name} does not provide it.`,[Y.astNode,F.astNode,...F.extensionASTNodes]);continue}if(!Kq.isTypeSubTypeOf(D.schema,W.type,Y.type)){var Z,q;D.reportError(`Interface field ${P.name}.${H} expects type ${xD.inspect(Y.type)} but ${F.name}.${H} is type ${xD.inspect(W.type)}.`,[(Z=Y.astNode)===null||Z===void 0?void 0:Z.type,(q=W.astNode)===null||q===void 0?void 0:q.type])}for(let U of Y.args){let O=U.name,z=W.args.find((I)=>I.name===O);if(!z){D.reportError(`Interface field argument ${P.name}.${H}(${O}:) expected but ${F.name}.${H} does not provide it.`,[U.astNode,W.astNode]);continue}if(!Kq.isEqualType(U.type,z.type)){var X,J;D.reportError(`Interface field argument ${P.name}.${H}(${O}:) expects type ${xD.inspect(U.type)} but ${F.name}.${H}(${O}:) is type ${xD.inspect(z.type)}.`,[(X=U.astNode)===null||X===void 0?void 0:X.type,(J=z.astNode)===null||J===void 0?void 0:J.type])}}for(let U of W.args){let O=U.name;if(!Y.args.find((I)=>I.name===O)&&GD.isRequiredArgument(U))D.reportError(`Object field ${F.name}.${H} includes required argument ${O} that is missing from the Interface field ${P.name}.${H}.`,[U.astNode,Y.astNode])}}}function nK(D,F,P){let B=F.getInterfaces();for(let Z of P.getInterfaces())if(!B.includes(Z))D.reportError(Z===F?`Type ${F.name} cannot implement ${P.name} because it would create a circular reference.`:`Type ${F.name} must implement ${Z.name} because it is implemented by ${P.name}.`,[...W1(P,Z),...W1(F,P)])}function iK(D,F){let P=F.getTypes();if(P.length===0)D.reportError(`Union type ${F.name} must define one or more member types.`,[F.astNode,...F.extensionASTNodes]);let B=Object.create(null);for(let Z of P){if(B[Z.name]){D.reportError(`Union type ${F.name} can only include type ${Z.name} once.`,Cq(F,Z.name));continue}if(B[Z.name]=!0,!GD.isObjectType(Z))D.reportError(`Union type ${F.name} can only include Object types, it cannot include ${xD.inspect(Z)}.`,Cq(F,String(Z)))}}function oK(D,F){let P=F.getValues();if(P.length===0)D.reportError(`Enum type ${F.name} must define one or more values.`,[F.astNode,...F.extensionASTNodes]);for(let B of P)N2(D,B)}function tK(D,F){let P=Object.values(F.getFields());if(P.length===0)D.reportError(`Input Object type ${F.name} must define one or more fields.`,[F.astNode,...F.extensionASTNodes]);for(let q of P){if(N2(D,q),!GD.isInputType(q.type)){var B;D.reportError(`The type of ${F.name}.${q.name} must be Input Type but got: ${xD.inspect(q.type)}.`,(B=q.astNode)===null||B===void 0?void 0:B.type)}if(GD.isRequiredInputField(q)&&q.deprecationReason!=null){var Z;D.reportError(`Required input field ${F.name}.${q.name} cannot be deprecated.`,[r4(q.astNode),(Z=q.astNode)===null||Z===void 0?void 0:Z.type])}if(F.isOneOf)eK(F,q,D)}}function eK(D,F,P){if(GD.isNonNullType(F.type)){var B;P.reportError(`OneOf input field ${D.name}.${F.name} must be nullable.`,(B=F.astNode)===null||B===void 0?void 0:B.type)}if(F.defaultValue!==void 0)P.reportError(`OneOf input field ${D.name}.${F.name} cannot have a default value.`,F.astNode)}function DE(D){let F=Object.create(null),P=[],B=Object.create(null);return Z;function Z(q){if(F[q.name])return;F[q.name]=!0,B[q.name]=P.length;let X=Object.values(q.getFields());for(let J of X)if(GD.isNonNullType(J.type)&&GD.isInputObjectType(J.type.ofType)){let Y=J.type.ofType,H=B[Y.name];if(P.push(J),H===void 0)Z(Y);else{let W=P.slice(H),U=W.map((O)=>O.name).join(".");D.reportError(`Cannot reference Input Object "${Y.name}" within itself through a series of non-null fields: "${U}".`,W.map((O)=>O.astNode))}P.pop()}B[q.name]=void 0}}function W1(D,F){let{astNode:P,extensionASTNodes:B}=D;return(P!=null?[P,...B]:B).flatMap((q)=>{var X;return(X=q.interfaces)!==null&&X!==void 0?X:[]}).filter((q)=>q.name.value===F.name)}function Cq(D,F){let{astNode:P,extensionASTNodes:B}=D;return(P!=null?[P,...B]:B).flatMap((q)=>{var X;return(X=q.types)!==null&&X!==void 0?X:[]}).filter((q)=>q.name.value===F)}function r4(D){var F;return D===null||D===void 0?void 0:(F=D.directives)===null||F===void 0?void 0:F.find((P)=>P.name.value===Lq.GraphQLDeprecatedDirective.name)}});var V0=Q((Sq)=>{Object.defineProperty(Sq,"__esModule",{value:!0});Sq.typeFromAST=s4;var a4=r(),bq=a();function s4(D,F){switch(F.kind){case a4.Kind.LIST_TYPE:{let P=s4(D,F.type);return P&&new bq.GraphQLList(P)}case a4.Kind.NON_NULL_TYPE:{let P=s4(D,F.type);return P&&new bq.GraphQLNonNull(P)}case a4.Kind.NAMED_TYPE:return D.getType(F.name.value)}}});var d6=Q((_q)=>{Object.defineProperty(_q,"__esModule",{value:!0});_q.TypeInfo=void 0;_q.visitWithTypeInfo=XE;var ZE=A0(),RD=r(),Tq=L2(),ID=a(),U8=tD(),Nq=V0();class uq{constructor(D,F,P){if(this._schema=D,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=P!==null&&P!==void 0?P:qE,F){if(ID.isInputType(F))this._inputTypeStack.push(F);if(ID.isCompositeType(F))this._parentTypeStack.push(F);if(ID.isOutputType(F))this._typeStack.push(F)}}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(D){let F=this._schema;switch(D.kind){case RD.Kind.SELECTION_SET:{let B=ID.getNamedType(this.getType());this._parentTypeStack.push(ID.isCompositeType(B)?B:void 0);break}case RD.Kind.FIELD:{let B=this.getParentType(),Z,q;if(B){if(Z=this._getFieldDef(F,B,D),Z)q=Z.type}this._fieldDefStack.push(Z),this._typeStack.push(ID.isOutputType(q)?q:void 0);break}case RD.Kind.DIRECTIVE:this._directive=F.getDirective(D.name.value);break;case RD.Kind.OPERATION_DEFINITION:{let B=F.getRootType(D.operation);this._typeStack.push(ID.isObjectType(B)?B:void 0);break}case RD.Kind.INLINE_FRAGMENT:case RD.Kind.FRAGMENT_DEFINITION:{let B=D.typeCondition,Z=B?Nq.typeFromAST(F,B):ID.getNamedType(this.getType());this._typeStack.push(ID.isOutputType(Z)?Z:void 0);break}case RD.Kind.VARIABLE_DEFINITION:{let B=Nq.typeFromAST(F,D.type);this._inputTypeStack.push(ID.isInputType(B)?B:void 0);break}case RD.Kind.ARGUMENT:{var P;let B,Z,q=(P=this.getDirective())!==null&&P!==void 0?P:this.getFieldDef();if(q){if(B=q.args.find((X)=>X.name===D.name.value),B)Z=B.type}this._argument=B,this._defaultValueStack.push(B?B.defaultValue:void 0),this._inputTypeStack.push(ID.isInputType(Z)?Z:void 0);break}case RD.Kind.LIST:{let B=ID.getNullableType(this.getInputType()),Z=ID.isListType(B)?B.ofType:B;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ID.isInputType(Z)?Z:void 0);break}case RD.Kind.OBJECT_FIELD:{let B=ID.getNamedType(this.getInputType()),Z,q;if(ID.isInputObjectType(B)){if(q=B.getFields()[D.name.value],q)Z=q.type}this._defaultValueStack.push(q?q.defaultValue:void 0),this._inputTypeStack.push(ID.isInputType(Z)?Z:void 0);break}case RD.Kind.ENUM:{let B=ID.getNamedType(this.getInputType()),Z;if(ID.isEnumType(B))Z=B.getValue(D.value);this._enumValue=Z;break}default:}}leave(D){switch(D.kind){case RD.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case RD.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case RD.Kind.DIRECTIVE:this._directive=null;break;case RD.Kind.OPERATION_DEFINITION:case RD.Kind.INLINE_FRAGMENT:case RD.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case RD.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case RD.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case RD.Kind.LIST:case RD.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case RD.Kind.ENUM:this._enumValue=null;break;default:}}}_q.TypeInfo=uq;function qE(D,F,P){let B=P.name.value;if(B===U8.SchemaMetaFieldDef.name&&D.getQueryType()===F)return U8.SchemaMetaFieldDef;if(B===U8.TypeMetaFieldDef.name&&D.getQueryType()===F)return U8.TypeMetaFieldDef;if(B===U8.TypeNameMetaFieldDef.name&&ID.isCompositeType(F))return U8.TypeNameMetaFieldDef;if(ID.isObjectType(F)||ID.isInterfaceType(F))return F.getFields()[B]}function XE(D,F){return{enter(...P){let B=P[0];D.enter(B);let Z=Tq.getEnterLeaveForKind(F,B.kind).enter;if(Z){let q=Z.apply(F,P);if(q!==void 0){if(D.leave(B),ZE.isNode(q))D.enter(q)}return q}},leave(...P){let B=P[0],Z=Tq.getEnterLeaveForKind(F,B.kind).leave,q;if(Z)q=Z.apply(F,P);return D.leave(B),q}}}});var u2=Q((mq)=>{Object.defineProperty(mq,"__esModule",{value:!0});mq.isConstValueNode=n4;mq.isDefinitionNode=YE;mq.isExecutableDefinitionNode=xq;mq.isSelectionNode=HE;mq.isTypeDefinitionNode=vq;mq.isTypeExtensionNode=yq;mq.isTypeNode=UE;mq.isTypeSystemDefinitionNode=hq;mq.isTypeSystemExtensionNode=gq;mq.isValueNode=fq;var s=r();function YE(D){return xq(D)||hq(D)||gq(D)}function xq(D){return D.kind===s.Kind.OPERATION_DEFINITION||D.kind===s.Kind.FRAGMENT_DEFINITION}function HE(D){return D.kind===s.Kind.FIELD||D.kind===s.Kind.FRAGMENT_SPREAD||D.kind===s.Kind.INLINE_FRAGMENT}function fq(D){return D.kind===s.Kind.VARIABLE||D.kind===s.Kind.INT||D.kind===s.Kind.FLOAT||D.kind===s.Kind.STRING||D.kind===s.Kind.BOOLEAN||D.kind===s.Kind.NULL||D.kind===s.Kind.ENUM||D.kind===s.Kind.LIST||D.kind===s.Kind.OBJECT}function n4(D){return fq(D)&&(D.kind===s.Kind.LIST?D.values.some(n4):D.kind===s.Kind.OBJECT?D.fields.some((F)=>n4(F.value)):D.kind!==s.Kind.VARIABLE)}function UE(D){return D.kind===s.Kind.NAMED_TYPE||D.kind===s.Kind.LIST_TYPE||D.kind===s.Kind.NON_NULL_TYPE}function hq(D){return D.kind===s.Kind.SCHEMA_DEFINITION||vq(D)||D.kind===s.Kind.DIRECTIVE_DEFINITION}function vq(D){return D.kind===s.Kind.SCALAR_TYPE_DEFINITION||D.kind===s.Kind.OBJECT_TYPE_DEFINITION||D.kind===s.Kind.INTERFACE_TYPE_DEFINITION||D.kind===s.Kind.UNION_TYPE_DEFINITION||D.kind===s.Kind.ENUM_TYPE_DEFINITION||D.kind===s.Kind.INPUT_OBJECT_TYPE_DEFINITION}function gq(D){return D.kind===s.Kind.SCHEMA_EXTENSION||yq(D)}function yq(D){return D.kind===s.Kind.SCALAR_TYPE_EXTENSION||D.kind===s.Kind.OBJECT_TYPE_EXTENSION||D.kind===s.Kind.INTERFACE_TYPE_EXTENSION||D.kind===s.Kind.UNION_TYPE_EXTENSION||D.kind===s.Kind.ENUM_TYPE_EXTENSION||D.kind===s.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var i4=Q((cq)=>{Object.defineProperty(cq,"__esModule",{value:!0});cq.ExecutableDefinitionsRule=CE;var EE=v(),lq=r(),AE=u2();function CE(D){return{Document(F){for(let P of F.definitions)if(!AE.isExecutableDefinitionNode(P)){let B=P.kind===lq.Kind.SCHEMA_DEFINITION||P.kind===lq.Kind.SCHEMA_EXTENSION?"schema":'"'+P.name.value+'"';D.reportError(new EE.GraphQLError(`The ${B} definition is not executable.`,{nodes:P}))}return!1}}}});var o4=Q((pq)=>{Object.defineProperty(pq,"__esModule",{value:!0});pq.FieldsOnCorrectTypeRule=bE;var dq=o0(),wE=o8(),VE=e0(),jE=v(),z1=a();function bE(D){return{Field(F){let P=D.getParentType();if(P){if(!D.getFieldDef()){let Z=D.getSchema(),q=F.name.value,X=dq.didYouMean("to use an inline fragment on",SE(Z,P,q));if(X==="")X=dq.didYouMean(TE(P,q));D.reportError(new jE.GraphQLError(`Cannot query field "${q}" on type "${P.name}".`+X,{nodes:F}))}}}}}function SE(D,F,P){if(!z1.isAbstractType(F))return[];let B=new Set,Z=Object.create(null);for(let X of D.getPossibleTypes(F)){if(!X.getFields()[P])continue;B.add(X),Z[X.name]=1;for(let J of X.getInterfaces()){var q;if(!J.getFields()[P])continue;B.add(J),Z[J.name]=((q=Z[J.name])!==null&&q!==void 0?q:0)+1}}return[...B].sort((X,J)=>{let Y=Z[J.name]-Z[X.name];if(Y!==0)return Y;if(z1.isInterfaceType(X)&&D.isSubType(X,J))return-1;if(z1.isInterfaceType(J)&&D.isSubType(J,X))return 1;return wE.naturalCompare(X.name,J.name)}).map((X)=>X.name)}function TE(D,F){if(z1.isObjectType(D)||z1.isInterfaceType(D)){let P=Object.keys(D.getFields());return VE.suggestionList(F,P)}return[]}});var t4=Q((iq)=>{Object.defineProperty(iq,"__esModule",{value:!0});iq.FragmentsOnCompositeTypesRule=uE;var rq=v(),aq=rD(),sq=a(),nq=V0();function uE(D){return{InlineFragment(F){let P=F.typeCondition;if(P){let B=nq.typeFromAST(D.getSchema(),P);if(B&&!sq.isCompositeType(B)){let Z=aq.print(P);D.reportError(new rq.GraphQLError(`Fragment cannot condition on non composite type "${Z}".`,{nodes:P}))}}},FragmentDefinition(F){let P=nq.typeFromAST(D.getSchema(),F.typeCondition);if(P&&!sq.isCompositeType(P)){let B=aq.print(F.typeCondition);D.reportError(new rq.GraphQLError(`Fragment "${F.name.value}" cannot condition on non composite type "${B}".`,{nodes:F.typeCondition}))}}}}});var e4=Q((FX)=>{Object.defineProperty(FX,"__esModule",{value:!0});FX.KnownArgumentNamesOnDirectivesRule=DX;FX.KnownArgumentNamesRule=fE;var oq=o0(),tq=e0(),eq=v(),kE=r(),xE=gD();function fE(D){return{...DX(D),Argument(F){let P=D.getArgument(),B=D.getFieldDef(),Z=D.getParentType();if(!P&&B&&Z){let q=F.name.value,X=B.args.map((Y)=>Y.name),J=tq.suggestionList(q,X);D.reportError(new eq.GraphQLError(`Unknown argument "${q}" on field "${Z.name}.${B.name}".`+oq.didYouMean(J),{nodes:F}))}}}}function DX(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():xE.specifiedDirectives;for(let X of B)F[X.name]=X.args.map((J)=>J.name);let Z=D.getDocument().definitions;for(let X of Z)if(X.kind===kE.Kind.DIRECTIVE_DEFINITION){var q;let J=(q=X.arguments)!==null&&q!==void 0?q:[];F[X.name.value]=J.map((Y)=>Y.name.value)}return{Directive(X){let J=X.name.value,Y=F[J];if(X.arguments&&Y)for(let H of X.arguments){let W=H.name.value;if(!Y.includes(W)){let U=tq.suggestionList(W,Y);D.reportError(new eq.GraphQLError(`Unknown argument "${W}" on directive "@${J}".`+oq.didYouMean(U),{nodes:H}))}}return!1}}}});var P9=Q((BX)=>{Object.defineProperty(BX,"__esModule",{value:!0});BX.KnownDirectivesRule=mE;var gE=PD(),D9=_D(),PX=v(),F9=A0(),wD=B8(),YD=r(),yE=gD();function mE(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():yE.specifiedDirectives;for(let q of B)F[q.name]=q.locations;let Z=D.getDocument().definitions;for(let q of Z)if(q.kind===YD.Kind.DIRECTIVE_DEFINITION)F[q.name.value]=q.locations.map((X)=>X.value);return{Directive(q,X,J,Y,H){let W=q.name.value,U=F[W];if(!U){D.reportError(new PX.GraphQLError(`Unknown directive "@${W}".`,{nodes:q}));return}let O=lE(H);if(O&&!U.includes(O))D.reportError(new PX.GraphQLError(`Directive "@${W}" may not be used on ${O}.`,{nodes:q}))}}}function lE(D){let F=D[D.length-1];switch("kind"in F||D9.invariant(!1),F.kind){case YD.Kind.OPERATION_DEFINITION:return cE(F.operation);case YD.Kind.FIELD:return wD.DirectiveLocation.FIELD;case YD.Kind.FRAGMENT_SPREAD:return wD.DirectiveLocation.FRAGMENT_SPREAD;case YD.Kind.INLINE_FRAGMENT:return wD.DirectiveLocation.INLINE_FRAGMENT;case YD.Kind.FRAGMENT_DEFINITION:return wD.DirectiveLocation.FRAGMENT_DEFINITION;case YD.Kind.VARIABLE_DEFINITION:return wD.DirectiveLocation.VARIABLE_DEFINITION;case YD.Kind.SCHEMA_DEFINITION:case YD.Kind.SCHEMA_EXTENSION:return wD.DirectiveLocation.SCHEMA;case YD.Kind.SCALAR_TYPE_DEFINITION:case YD.Kind.SCALAR_TYPE_EXTENSION:return wD.DirectiveLocation.SCALAR;case YD.Kind.OBJECT_TYPE_DEFINITION:case YD.Kind.OBJECT_TYPE_EXTENSION:return wD.DirectiveLocation.OBJECT;case YD.Kind.FIELD_DEFINITION:return wD.DirectiveLocation.FIELD_DEFINITION;case YD.Kind.INTERFACE_TYPE_DEFINITION:case YD.Kind.INTERFACE_TYPE_EXTENSION:return wD.DirectiveLocation.INTERFACE;case YD.Kind.UNION_TYPE_DEFINITION:case YD.Kind.UNION_TYPE_EXTENSION:return wD.DirectiveLocation.UNION;case YD.Kind.ENUM_TYPE_DEFINITION:case YD.Kind.ENUM_TYPE_EXTENSION:return wD.DirectiveLocation.ENUM;case YD.Kind.ENUM_VALUE_DEFINITION:return wD.DirectiveLocation.ENUM_VALUE;case YD.Kind.INPUT_OBJECT_TYPE_DEFINITION:case YD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return wD.DirectiveLocation.INPUT_OBJECT;case YD.Kind.INPUT_VALUE_DEFINITION:{let P=D[D.length-3];return"kind"in P||D9.invariant(!1),P.kind===YD.Kind.INPUT_OBJECT_TYPE_DEFINITION?wD.DirectiveLocation.INPUT_FIELD_DEFINITION:wD.DirectiveLocation.ARGUMENT_DEFINITION}default:D9.invariant(!1,"Unexpected kind: "+gE.inspect(F.kind))}}function cE(D){switch(D){case F9.OperationTypeNode.QUERY:return wD.DirectiveLocation.QUERY;case F9.OperationTypeNode.MUTATION:return wD.DirectiveLocation.MUTATION;case F9.OperationTypeNode.SUBSCRIPTION:return wD.DirectiveLocation.SUBSCRIPTION}}});var B9=Q((ZX)=>{Object.defineProperty(ZX,"__esModule",{value:!0});ZX.KnownFragmentNamesRule=rE;var pE=v();function rE(D){return{FragmentSpread(F){let P=F.name.value;if(!D.getFragment(P))D.reportError(new pE.GraphQLError(`Unknown fragment "${P}".`,{nodes:F.name}))}}}});var q9=Q((XX)=>{Object.defineProperty(XX,"__esModule",{value:!0});XX.KnownTypeNamesRule=eE;var sE=o0(),nE=e0(),iE=v(),Z9=u2(),oE=tD(),tE=w0();function eE(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);for(let q of D.getDocument().definitions)if(Z9.isTypeDefinitionNode(q))B[q.name.value]=!0;let Z=[...Object.keys(P),...Object.keys(B)];return{NamedType(q,X,J,Y,H){let W=q.name.value;if(!P[W]&&!B[W]){var U;let O=(U=H[2])!==null&&U!==void 0?U:J,z=O!=null&&DA(O);if(z&&qX.includes(W))return;let I=nE.suggestionList(W,z?qX.concat(Z):Z);D.reportError(new iE.GraphQLError(`Unknown type "${W}".`+sE.didYouMean(I),{nodes:q}))}}}}var qX=[...tE.specifiedScalarTypes,...oE.introspectionTypes].map((D)=>D.name);function DA(D){return"kind"in D&&(Z9.isTypeSystemDefinitionNode(D)||Z9.isTypeSystemExtensionNode(D))}});var X9=Q((JX)=>{Object.defineProperty(JX,"__esModule",{value:!0});JX.LoneAnonymousOperationRule=ZA;var PA=v(),BA=r();function ZA(D){let F=0;return{Document(P){F=P.definitions.filter((B)=>B.kind===BA.Kind.OPERATION_DEFINITION).length},OperationDefinition(P){if(!P.name&&F>1)D.reportError(new PA.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:P}))}}}});var J9=Q((HX)=>{Object.defineProperty(HX,"__esModule",{value:!0});HX.LoneSchemaDefinitionRule=XA;var YX=v();function XA(D){var F,P,B;let Z=D.getSchema(),q=(F=(P=(B=Z===null||Z===void 0?void 0:Z.astNode)!==null&&B!==void 0?B:Z===null||Z===void 0?void 0:Z.getQueryType())!==null&&P!==void 0?P:Z===null||Z===void 0?void 0:Z.getMutationType())!==null&&F!==void 0?F:Z===null||Z===void 0?void 0:Z.getSubscriptionType(),X=0;return{SchemaDefinition(J){if(q){D.reportError(new YX.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:J}));return}if(X>0)D.reportError(new YX.GraphQLError("Must provide only one schema definition.",{nodes:J}));++X}}}});var Y9=Q((WX)=>{Object.defineProperty(WX,"__esModule",{value:!0});WX.MaxIntrospectionDepthRule=UA;var YA=v(),UX=r(),HA=3;function UA(D){function F(P,B=Object.create(null),Z=0){if(P.kind===UX.Kind.FRAGMENT_SPREAD){let q=P.name.value;if(B[q]===!0)return!1;let X=D.getFragment(q);if(!X)return!1;try{return B[q]=!0,F(X,B,Z)}finally{B[q]=void 0}}if(P.kind===UX.Kind.FIELD&&(P.name.value==="fields"||P.name.value==="interfaces"||P.name.value==="possibleTypes"||P.name.value==="inputFields")){if(Z++,Z>=HA)return!0}if("selectionSet"in P&&P.selectionSet){for(let q of P.selectionSet.selections)if(F(q,B,Z))return!0}return!1}return{Field(P){if(P.name.value==="__schema"||P.name.value==="__type"){if(F(P))return D.reportError(new YA.GraphQLError("Maximum introspection depth exceeded",{nodes:[P]})),!1}}}}});var H9=Q((OX)=>{Object.defineProperty(OX,"__esModule",{value:!0});OX.NoFragmentCyclesRule=zA;var OA=v();function zA(D){let F=Object.create(null),P=[],B=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(q){return Z(q),!1}};function Z(q){if(F[q.name.value])return;let X=q.name.value;F[X]=!0;let J=D.getFragmentSpreads(q.selectionSet);if(J.length===0)return;B[X]=P.length;for(let Y of J){let H=Y.name.value,W=B[H];if(P.push(Y),W===void 0){let U=D.getFragment(H);if(U)Z(U)}else{let U=P.slice(W),O=U.slice(0,-1).map((z)=>'"'+z.name.value+'"').join(", ");D.reportError(new OA.GraphQLError(`Cannot spread fragment "${H}" within itself`+(O!==""?` via ${O}.`:"."),{nodes:U}))}P.pop()}B[X]=void 0}}});var U9=Q((zX)=>{Object.defineProperty(zX,"__esModule",{value:!0});zX.NoUndefinedVariablesRule=RA;var GA=v();function RA(D){let F=Object.create(null);return{OperationDefinition:{enter(){F=Object.create(null)},leave(P){let B=D.getRecursiveVariableUsages(P);for(let{node:Z}of B){let q=Z.name.value;if(F[q]!==!0)D.reportError(new GA.GraphQLError(P.name?`Variable "$${q}" is not defined by operation "${P.name.value}".`:`Variable "$${q}" is not defined.`,{nodes:[Z,P]}))}}},VariableDefinition(P){F[P.variable.name.value]=!0}}}});var W9=Q((QX)=>{Object.defineProperty(QX,"__esModule",{value:!0});QX.NoUnusedFragmentsRule=MA;var $A=v();function MA(D){let F=[],P=[];return{OperationDefinition(B){return F.push(B),!1},FragmentDefinition(B){return P.push(B),!1},Document:{leave(){let B=Object.create(null);for(let Z of F)for(let q of D.getRecursivelyReferencedFragments(Z))B[q.name.value]=!0;for(let Z of P){let q=Z.name.value;if(B[q]!==!0)D.reportError(new $A.GraphQLError(`Fragment "${q}" is never used.`,{nodes:Z}))}}}}}});var O9=Q((GX)=>{Object.defineProperty(GX,"__esModule",{value:!0});GX.NoUnusedVariablesRule=AA;var EA=v();function AA(D){let F=[];return{OperationDefinition:{enter(){F=[]},leave(P){let B=Object.create(null),Z=D.getRecursiveVariableUsages(P);for(let{node:q}of Z)B[q.name.value]=!0;for(let q of F){let X=q.variable.name.value;if(B[X]!==!0)D.reportError(new EA.GraphQLError(P.name?`Variable "$${X}" is never used in operation "${P.name.value}".`:`Variable "$${X}" is never used.`,{nodes:q}))}}},VariableDefinition(P){F.push(P)}}}});var Q9=Q((RX)=>{Object.defineProperty(RX,"__esModule",{value:!0});RX.sortValueNode=z9;var LA=o8(),y0=r();function z9(D){switch(D.kind){case y0.Kind.OBJECT:return{...D,fields:wA(D.fields)};case y0.Kind.LIST:return{...D,values:D.values.map(z9)};case y0.Kind.INT:case y0.Kind.FLOAT:case y0.Kind.STRING:case y0.Kind.BOOLEAN:case y0.Kind.NULL:case y0.Kind.ENUM:case y0.Kind.VARIABLE:return D}}function wA(D){return D.map((F)=>({...F,value:z9(F.value)})).sort((F,P)=>LA.naturalCompare(F.name.value,P.name.value))}});var M9=Q((LX)=>{Object.defineProperty(LX,"__esModule",{value:!0});LX.OverlappingFieldsCanBeMergedRule=TA;var IX=PD(),jA=v(),G9=r(),bA=rD(),yD=a(),SA=Q9(),MX=V0();function KX(D){if(Array.isArray(D))return D.map(([F,P])=>`subfields "${F}" conflict because `+KX(P)).join(" and ");return D}function TA(D){let F=new CX,P=new Map;return{SelectionSet(B){let Z=NA(D,P,F,D.getParentType(),B);for(let[[q,X],J,Y]of Z){let H=KX(X);D.reportError(new jA.GraphQLError(`Fields "${q}" conflict because ${H}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:J.concat(Y)}))}}}}function NA(D,F,P,B,Z){let q=[],[X,J]=a6(D,F,B,Z);if(_A(D,q,F,P,X),J.length!==0)for(let Y=0;Y<J.length;Y++){p6(D,q,F,P,!1,X,J[Y]);for(let H=Y+1;H<J.length;H++)r6(D,q,F,P,!1,J[Y],J[H])}return q}function p6(D,F,P,B,Z,q,X){let J=D.getFragment(X);if(!J)return;let[Y,H]=I9(D,P,J);if(q===Y)return;$9(D,F,P,B,Z,q,Y);for(let W of H){if(B.has(W,X,Z))continue;B.add(W,X,Z),p6(D,F,P,B,Z,q,W)}}function r6(D,F,P,B,Z,q,X){if(q===X)return;if(B.has(q,X,Z))return;B.add(q,X,Z);let J=D.getFragment(q),Y=D.getFragment(X);if(!J||!Y)return;let[H,W]=I9(D,P,J),[U,O]=I9(D,P,Y);$9(D,F,P,B,Z,H,U);for(let z of O)r6(D,F,P,B,Z,q,z);for(let z of W)r6(D,F,P,B,Z,z,X)}function uA(D,F,P,B,Z,q,X,J){let Y=[],[H,W]=a6(D,F,Z,q),[U,O]=a6(D,F,X,J);$9(D,Y,F,P,B,H,U);for(let z of O)p6(D,Y,F,P,B,H,z);for(let z of W)p6(D,Y,F,P,B,U,z);for(let z of W)for(let I of O)r6(D,Y,F,P,B,z,I);return Y}function _A(D,F,P,B,Z){for(let[q,X]of Object.entries(Z))if(X.length>1)for(let J=0;J<X.length;J++)for(let Y=J+1;Y<X.length;Y++){let H=EX(D,P,B,!1,q,X[J],X[Y]);if(H)F.push(H)}}function $9(D,F,P,B,Z,q,X){for(let[J,Y]of Object.entries(q)){let H=X[J];if(H)for(let W of Y)for(let U of H){let O=EX(D,P,B,Z,J,W,U);if(O)F.push(O)}}}function EX(D,F,P,B,Z,q,X){let[J,Y,H]=q,[W,U,O]=X,z=B||J!==W&&yD.isObjectType(J)&&yD.isObjectType(W);if(!z){let w=Y.name.value,A=U.name.value;if(w!==A)return[[Z,`"${w}" and "${A}" are different fields`],[Y],[U]];if(!kA(Y,U))return[[Z,"they have differing arguments"],[Y],[U]]}let I=H===null||H===void 0?void 0:H.type,R=O===null||O===void 0?void 0:O.type;if(I&&R&&R9(I,R))return[[Z,`they return conflicting types "${IX.inspect(I)}" and "${IX.inspect(R)}"`],[Y],[U]];let $=Y.selectionSet,E=U.selectionSet;if($&&E){let w=uA(D,F,P,z,yD.getNamedType(I),$,yD.getNamedType(R),E);return xA(w,Z,Y,U)}}function kA(D,F){let P=D.arguments,B=F.arguments;if(P===void 0||P.length===0)return B===void 0||B.length===0;if(B===void 0||B.length===0)return!1;if(P.length!==B.length)return!1;let Z=new Map(B.map(({name:q,value:X})=>[q.value,X]));return P.every((q)=>{let X=q.value,J=Z.get(q.name.value);if(J===void 0)return!1;return $X(X)===$X(J)})}function $X(D){return bA.print(SA.sortValueNode(D))}function R9(D,F){if(yD.isListType(D))return yD.isListType(F)?R9(D.ofType,F.ofType):!0;if(yD.isListType(F))return!0;if(yD.isNonNullType(D))return yD.isNonNullType(F)?R9(D.ofType,F.ofType):!0;if(yD.isNonNullType(F))return!0;if(yD.isLeafType(D)||yD.isLeafType(F))return D!==F;return!1}function a6(D,F,P,B){let Z=F.get(B);if(Z)return Z;let q=Object.create(null),X=Object.create(null);AX(D,P,B,q,X);let J=[q,Object.keys(X)];return F.set(B,J),J}function I9(D,F,P){let B=F.get(P.selectionSet);if(B)return B;let Z=MX.typeFromAST(D.getSchema(),P.typeCondition);return a6(D,F,Z,P.selectionSet)}function AX(D,F,P,B,Z){for(let q of P.selections)switch(q.kind){case G9.Kind.FIELD:{let X=q.name.value,J;if(yD.isObjectType(F)||yD.isInterfaceType(F))J=F.getFields()[X];let Y=q.alias?q.alias.value:X;if(!B[Y])B[Y]=[];B[Y].push([F,q,J]);break}case G9.Kind.FRAGMENT_SPREAD:Z[q.name.value]=!0;break;case G9.Kind.INLINE_FRAGMENT:{let X=q.typeCondition,J=X?MX.typeFromAST(D.getSchema(),X):F;AX(D,J,q.selectionSet,B,Z);break}}}function xA(D,F,P,B){if(D.length>0)return[[F,D.map(([Z])=>Z)],[P,...D.map(([,Z])=>Z).flat()],[B,...D.map(([,,Z])=>Z).flat()]]}class CX{constructor(){this._data=new Map}has(D,F,P){var B;let[Z,q]=D<F?[D,F]:[F,D],X=(B=this._data.get(Z))===null||B===void 0?void 0:B.get(q);if(X===void 0)return!1;return P?!0:P===X}add(D,F,P){let[B,Z]=D<F?[D,F]:[F,D],q=this._data.get(B);if(q===void 0)this._data.set(B,new Map([[Z,P]]));else q.set(Z,P)}}});var E9=Q((jX)=>{Object.defineProperty(jX,"__esModule",{value:!0});jX.PossibleFragmentSpreadsRule=vA;var s6=PD(),wX=v(),K9=a(),VX=P1(),hA=V0();function vA(D){return{InlineFragment(F){let P=D.getType(),B=D.getParentType();if(K9.isCompositeType(P)&&K9.isCompositeType(B)&&!VX.doTypesOverlap(D.getSchema(),P,B)){let Z=s6.inspect(B),q=s6.inspect(P);D.reportError(new wX.GraphQLError(`Fragment cannot be spread here as objects of type "${Z}" can never be of type "${q}".`,{nodes:F}))}},FragmentSpread(F){let P=F.name.value,B=gA(D,P),Z=D.getParentType();if(B&&Z&&!VX.doTypesOverlap(D.getSchema(),B,Z)){let q=s6.inspect(Z),X=s6.inspect(B);D.reportError(new wX.GraphQLError(`Fragment "${P}" cannot be spread here as objects of type "${q}" can never be of type "${X}".`,{nodes:F}))}}}}function gA(D,F){let P=D.getFragment(F);if(P){let B=hA.typeFromAST(D.getSchema(),P.typeCondition);if(K9.isCompositeType(B))return B}}});var A9=Q((NX)=>{Object.defineProperty(NX,"__esModule",{value:!0});NX.PossibleTypeExtensionsRule=dA;var mA=o0(),SX=PD(),TX=_D(),lA=e0(),bX=v(),OD=r(),cA=u2(),W8=a();function dA(D){let F=D.getSchema(),P=Object.create(null);for(let Z of D.getDocument().definitions)if(cA.isTypeDefinitionNode(Z))P[Z.name.value]=Z;return{ScalarTypeExtension:B,ObjectTypeExtension:B,InterfaceTypeExtension:B,UnionTypeExtension:B,EnumTypeExtension:B,InputObjectTypeExtension:B};function B(Z){let q=Z.name.value,X=P[q],J=F===null||F===void 0?void 0:F.getType(q),Y;if(X)Y=pA[X.kind];else if(J)Y=rA(J);if(Y){if(Y!==Z.kind){let H=aA(Z.kind);D.reportError(new bX.GraphQLError(`Cannot extend non-${H} type "${q}".`,{nodes:X?[X,Z]:Z}))}}else{let H=Object.keys({...P,...F===null||F===void 0?void 0:F.getTypeMap()}),W=lA.suggestionList(q,H);D.reportError(new bX.GraphQLError(`Cannot extend type "${q}" because it is not defined.`+mA.didYouMean(W),{nodes:Z.name}))}}}var pA={[OD.Kind.SCALAR_TYPE_DEFINITION]:OD.Kind.SCALAR_TYPE_EXTENSION,[OD.Kind.OBJECT_TYPE_DEFINITION]:OD.Kind.OBJECT_TYPE_EXTENSION,[OD.Kind.INTERFACE_TYPE_DEFINITION]:OD.Kind.INTERFACE_TYPE_EXTENSION,[OD.Kind.UNION_TYPE_DEFINITION]:OD.Kind.UNION_TYPE_EXTENSION,[OD.Kind.ENUM_TYPE_DEFINITION]:OD.Kind.ENUM_TYPE_EXTENSION,[OD.Kind.INPUT_OBJECT_TYPE_DEFINITION]:OD.Kind.INPUT_OBJECT_TYPE_EXTENSION};function rA(D){if(W8.isScalarType(D))return OD.Kind.SCALAR_TYPE_EXTENSION;if(W8.isObjectType(D))return OD.Kind.OBJECT_TYPE_EXTENSION;if(W8.isInterfaceType(D))return OD.Kind.INTERFACE_TYPE_EXTENSION;if(W8.isUnionType(D))return OD.Kind.UNION_TYPE_EXTENSION;if(W8.isEnumType(D))return OD.Kind.ENUM_TYPE_EXTENSION;if(W8.isInputObjectType(D))return OD.Kind.INPUT_OBJECT_TYPE_EXTENSION;TX.invariant(!1,"Unexpected type: "+SX.inspect(D))}function aA(D){switch(D){case OD.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case OD.Kind.OBJECT_TYPE_EXTENSION:return"object";case OD.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case OD.Kind.UNION_TYPE_EXTENSION:return"union";case OD.Kind.ENUM_TYPE_EXTENSION:return"enum";case OD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:TX.invariant(!1,"Unexpected kind: "+SX.inspect(D))}}});var L9=Q((hX)=>{Object.defineProperty(hX,"__esModule",{value:!0});hX.ProvidedRequiredArgumentsOnDirectivesRule=fX;hX.ProvidedRequiredArgumentsRule=oA;var _X=PD(),uX=t0(),kX=v(),xX=r(),nA=rD(),C9=a(),iA=gD();function oA(D){return{...fX(D),Field:{leave(F){var P;let B=D.getFieldDef();if(!B)return!1;let Z=new Set((P=F.arguments)===null||P===void 0?void 0:P.map((q)=>q.name.value));for(let q of B.args)if(!Z.has(q.name)&&C9.isRequiredArgument(q)){let X=_X.inspect(q.type);D.reportError(new kX.GraphQLError(`Field "${B.name}" argument "${q.name}" of type "${X}" is required, but it was not provided.`,{nodes:F}))}}}}}function fX(D){var F;let P=Object.create(null),B=D.getSchema(),Z=(F=B===null||B===void 0?void 0:B.getDirectives())!==null&&F!==void 0?F:iA.specifiedDirectives;for(let J of Z)P[J.name]=uX.keyMap(J.args.filter(C9.isRequiredArgument),(Y)=>Y.name);let q=D.getDocument().definitions;for(let J of q)if(J.kind===xX.Kind.DIRECTIVE_DEFINITION){var X;let Y=(X=J.arguments)!==null&&X!==void 0?X:[];P[J.name.value]=uX.keyMap(Y.filter(tA),(H)=>H.name.value)}return{Directive:{leave(J){let Y=J.name.value,H=P[Y];if(H){var W;let U=(W=J.arguments)!==null&&W!==void 0?W:[],O=new Set(U.map((z)=>z.name.value));for(let[z,I]of Object.entries(H))if(!O.has(z)){let R=C9.isType(I.type)?_X.inspect(I.type):nA.print(I.type);D.reportError(new kX.GraphQLError(`Directive "@${Y}" argument "${z}" of type "${R}" is required, but it was not provided.`,{nodes:J}))}}}}}}function tA(D){return D.type.kind===xX.Kind.NON_NULL_TYPE&&D.defaultValue==null}});var w9=Q((mX)=>{Object.defineProperty(mX,"__esModule",{value:!0});mX.ScalarLeafsRule=FC;var vX=PD(),gX=v(),yX=a();function FC(D){return{Field(F){let P=D.getType(),B=F.selectionSet;if(P){if(yX.isLeafType(yX.getNamedType(P))){if(B){let Z=F.name.value,q=vX.inspect(P);D.reportError(new gX.GraphQLError(`Field "${Z}" must not have a selection since type "${q}" has no subfields.`,{nodes:B}))}}else if(!B){let Z=F.name.value,q=vX.inspect(P);D.reportError(new gX.GraphQLError(`Field "${Z}" of type "${q}" must have a selection of subfields. Did you mean "${Z} { ... }"?`,{nodes:F}))}}}}}});var V9=Q((lX)=>{Object.defineProperty(lX,"__esModule",{value:!0});lX.printPathArray=BC;function BC(D){return D.map((F)=>typeof F==="number"?"["+F.toString()+"]":"."+F).join("")}});var Q1=Q((cX)=>{Object.defineProperty(cX,"__esModule",{value:!0});cX.addPath=qC;cX.pathToArray=XC;function qC(D,F,P){return{prev:D,key:F,typename:P}}function XC(D){let F=[],P=D;while(P)F.push(P.key),P=P.prev;return F.reverse()}});var j9=Q((dX)=>{Object.defineProperty(dX,"__esModule",{value:!0});dX.coerceInputValue=GC;var HC=o0(),n6=PD(),UC=_D(),WC=l6(),OC=E0(),R0=Q1(),zC=V9(),QC=e0(),m0=v(),G1=a();function GC(D,F,P=RC){return R1(D,F,P,void 0)}function RC(D,F,P){let B="Invalid value "+n6.inspect(F);if(D.length>0)B+=` at "value${zC.printPathArray(D)}"`;throw P.message=B+": "+P.message,P}function R1(D,F,P,B){if(G1.isNonNullType(F)){if(D!=null)return R1(D,F.ofType,P,B);P(R0.pathToArray(B),D,new m0.GraphQLError(`Expected non-nullable type "${n6.inspect(F)}" not to be null.`));return}if(D==null)return null;if(G1.isListType(F)){let Z=F.ofType;if(WC.isIterableObject(D))return Array.from(D,(q,X)=>{let J=R0.addPath(B,X,void 0);return R1(q,Z,P,J)});return[R1(D,Z,P,B)]}if(G1.isInputObjectType(F)){if(!OC.isObjectLike(D)){P(R0.pathToArray(B),D,new m0.GraphQLError(`Expected type "${F.name}" to be an object.`));return}let Z={},q=F.getFields();for(let X of Object.values(q)){let J=D[X.name];if(J===void 0){if(X.defaultValue!==void 0)Z[X.name]=X.defaultValue;else if(G1.isNonNullType(X.type)){let Y=n6.inspect(X.type);P(R0.pathToArray(B),D,new m0.GraphQLError(`Field "${X.name}" of required type "${Y}" was not provided.`))}continue}Z[X.name]=R1(J,X.type,P,R0.addPath(B,X.name,F.name))}for(let X of Object.keys(D))if(!q[X]){let J=QC.suggestionList(X,Object.keys(F.getFields()));P(R0.pathToArray(B),D,new m0.GraphQLError(`Field "${X}" is not defined by type "${F.name}".`+HC.didYouMean(J)))}if(F.isOneOf){let X=Object.keys(Z);if(X.length!==1)P(R0.pathToArray(B),D,new m0.GraphQLError(`Exactly one key must be specified for OneOf type "${F.name}".`));let J=X[0],Y=Z[J];if(Y===null)P(R0.pathToArray(B).concat(J),Y,new m0.GraphQLError(`Field "${J}" must be non-null.`))}return Z}if(G1.isLeafType(F)){let Z;try{Z=F.parseValue(D)}catch(q){if(q instanceof m0.GraphQLError)P(R0.pathToArray(B),D,q);else P(R0.pathToArray(B),D,new m0.GraphQLError(`Expected type "${F.name}". `+q.message,{originalError:q}));return}if(Z===void 0)P(R0.pathToArray(B),D,new m0.GraphQLError(`Expected type "${F.name}".`));return Z}UC.invariant(!1,"Unexpected input type: "+n6.inspect(F))}});var $1=Q((rX)=>{Object.defineProperty(rX,"__esModule",{value:!0});rX.valueFromAST=I1;var $C=PD(),MC=_D(),KC=t0(),O8=r(),_2=a();function I1(D,F,P){if(!D)return;if(D.kind===O8.Kind.VARIABLE){let B=D.name.value;if(P==null||P[B]===void 0)return;let Z=P[B];if(Z===null&&_2.isNonNullType(F))return;return Z}if(_2.isNonNullType(F)){if(D.kind===O8.Kind.NULL)return;return I1(D,F.ofType,P)}if(D.kind===O8.Kind.NULL)return null;if(_2.isListType(F)){let B=F.ofType;if(D.kind===O8.Kind.LIST){let q=[];for(let X of D.values)if(pX(X,P)){if(_2.isNonNullType(B))return;q.push(null)}else{let J=I1(X,B,P);if(J===void 0)return;q.push(J)}return q}let Z=I1(D,B,P);if(Z===void 0)return;return[Z]}if(_2.isInputObjectType(F)){if(D.kind!==O8.Kind.OBJECT)return;let B=Object.create(null),Z=KC.keyMap(D.fields,(q)=>q.name.value);for(let q of Object.values(F.getFields())){let X=Z[q.name];if(!X||pX(X.value,P)){if(q.defaultValue!==void 0)B[q.name]=q.defaultValue;else if(_2.isNonNullType(q.type))return;continue}let J=I1(X.value,q.type,P);if(J===void 0)return;B[q.name]=J}if(F.isOneOf){let q=Object.keys(B);if(q.length!==1)return;if(B[q[0]]===null)return}return B}if(_2.isLeafType(F)){let B;try{B=F.parseLiteral(D,P)}catch(Z){return}if(B===void 0)return;return B}MC.invariant(!1,"Unexpected input type: "+$C.inspect(F))}function pX(D,F){return D.kind===O8.Kind.VARIABLE&&(F==null||F[D.name.value]===void 0)}});var G8=Q((tX)=>{Object.defineProperty(tX,"__esModule",{value:!0});tX.getArgumentValues=iX;tX.getDirectiveValues=bC;tX.getVariableValues=VC;var z8=PD(),AC=t0(),CC=V9(),l0=v(),aX=r(),sX=rD(),Q8=a(),LC=j9(),wC=V0(),nX=$1();function VC(D,F,P,B){let Z=[],q=B===null||B===void 0?void 0:B.maxErrors;try{let X=jC(D,F,P,(J)=>{if(q!=null&&Z.length>=q)throw new l0.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");Z.push(J)});if(Z.length===0)return{coerced:X}}catch(X){Z.push(X)}return{errors:Z}}function jC(D,F,P,B){let Z={};for(let q of F){let X=q.variable.name.value,J=wC.typeFromAST(D,q.type);if(!Q8.isInputType(J)){let H=sX.print(q.type);B(new l0.GraphQLError(`Variable "$${X}" expected value of type "${H}" which cannot be used as an input type.`,{nodes:q.type}));continue}if(!oX(P,X)){if(q.defaultValue)Z[X]=nX.valueFromAST(q.defaultValue,J);else if(Q8.isNonNullType(J)){let H=z8.inspect(J);B(new l0.GraphQLError(`Variable "$${X}" of required type "${H}" was not provided.`,{nodes:q}))}continue}let Y=P[X];if(Y===null&&Q8.isNonNullType(J)){let H=z8.inspect(J);B(new l0.GraphQLError(`Variable "$${X}" of non-null type "${H}" must not be null.`,{nodes:q}));continue}Z[X]=LC.coerceInputValue(Y,J,(H,W,U)=>{let O=`Variable "$${X}" got invalid value `+z8.inspect(W);if(H.length>0)O+=` at "${X}${CC.printPathArray(H)}"`;B(new l0.GraphQLError(O+"; "+U.message,{nodes:q,originalError:U}))})}return Z}function iX(D,F,P){var B;let Z={},q=(B=F.arguments)!==null&&B!==void 0?B:[],X=AC.keyMap(q,(J)=>J.name.value);for(let J of D.args){let{name:Y,type:H}=J,W=X[Y];if(!W){if(J.defaultValue!==void 0)Z[Y]=J.defaultValue;else if(Q8.isNonNullType(H))throw new l0.GraphQLError(`Argument "${Y}" of required type "${z8.inspect(H)}" was not provided.`,{nodes:F});continue}let U=W.value,O=U.kind===aX.Kind.NULL;if(U.kind===aX.Kind.VARIABLE){let I=U.name.value;if(P==null||!oX(P,I)){if(J.defaultValue!==void 0)Z[Y]=J.defaultValue;else if(Q8.isNonNullType(H))throw new l0.GraphQLError(`Argument "${Y}" of required type "${z8.inspect(H)}" was provided the variable "$${I}" which was not provided a runtime value.`,{nodes:U});continue}O=P[I]==null}if(O&&Q8.isNonNullType(H))throw new l0.GraphQLError(`Argument "${Y}" of non-null type "${z8.inspect(H)}" must not be null.`,{nodes:U});let z=nX.valueFromAST(U,H,P);if(z===void 0)throw new l0.GraphQLError(`Argument "${Y}" has invalid value ${sX.print(U)}.`,{nodes:U});Z[Y]=z}return Z}function bC(D,F,P){var B;let Z=(B=F.directives)===null||B===void 0?void 0:B.find((q)=>q.name.value===D.name);if(Z)return iX(D,Z,P)}function oX(D,F){return Object.prototype.hasOwnProperty.call(D,F)}});var o6=Q((PJ)=>{Object.defineProperty(PJ,"__esModule",{value:!0});PJ.collectFields=kC;PJ.collectSubfields=xC;var b9=r(),uC=a(),eX=gD(),_C=V0(),DJ=G8();function kC(D,F,P,B,Z){let q=new Map;return i6(D,F,P,B,Z,q,new Set),q}function xC(D,F,P,B,Z){let q=new Map,X=new Set;for(let J of Z)if(J.selectionSet)i6(D,F,P,B,J.selectionSet,q,X);return q}function i6(D,F,P,B,Z,q,X){for(let J of Z.selections)switch(J.kind){case b9.Kind.FIELD:{if(!S9(P,J))continue;let Y=fC(J),H=q.get(Y);if(H!==void 0)H.push(J);else q.set(Y,[J]);break}case b9.Kind.INLINE_FRAGMENT:{if(!S9(P,J)||!FJ(D,J,B))continue;i6(D,F,P,B,J.selectionSet,q,X);break}case b9.Kind.FRAGMENT_SPREAD:{let Y=J.name.value;if(X.has(Y)||!S9(P,J))continue;X.add(Y);let H=F[Y];if(!H||!FJ(D,H,B))continue;i6(D,F,P,B,H.selectionSet,q,X);break}}}function S9(D,F){let P=DJ.getDirectiveValues(eX.GraphQLSkipDirective,F,D);if((P===null||P===void 0?void 0:P.if)===!0)return!1;let B=DJ.getDirectiveValues(eX.GraphQLIncludeDirective,F,D);if((B===null||B===void 0?void 0:B.if)===!1)return!1;return!0}function FJ(D,F,P){let B=F.typeCondition;if(!B)return!0;let Z=_C.typeFromAST(D,B);if(Z===P)return!0;if(uC.isAbstractType(Z))return D.isSubType(Z,P);return!1}function fC(D){return D.alias?D.alias.value:D.name.value}});var T9=Q((ZJ)=>{Object.defineProperty(ZJ,"__esModule",{value:!0});ZJ.SingleFieldSubscriptionsRule=mC;var BJ=v(),gC=r(),yC=o6();function mC(D){return{OperationDefinition(F){if(F.operation==="subscription"){let P=D.getSchema(),B=P.getSubscriptionType();if(B){let Z=F.name?F.name.value:null,q=Object.create(null),X=D.getDocument(),J=Object.create(null);for(let H of X.definitions)if(H.kind===gC.Kind.FRAGMENT_DEFINITION)J[H.name.value]=H;let Y=yC.collectFields(P,J,q,B,F.selectionSet);if(Y.size>1){let U=[...Y.values()].slice(1).flat();D.reportError(new BJ.GraphQLError(Z!=null?`Subscription "${Z}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:U}))}for(let H of Y.values())if(H[0].name.value.startsWith("__"))D.reportError(new BJ.GraphQLError(Z!=null?`Subscription "${Z}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:H}))}}}}}});var t6=Q((qJ)=>{Object.defineProperty(qJ,"__esModule",{value:!0});qJ.groupBy=cC;function cC(D,F){let P=new Map;for(let B of D){let Z=F(B),q=P.get(Z);if(q===void 0)P.set(Z,[B]);else q.push(B)}return P}});var N9=Q((XJ)=>{Object.defineProperty(XJ,"__esModule",{value:!0});XJ.UniqueArgumentDefinitionNamesRule=aC;var pC=t6(),rC=v();function aC(D){return{DirectiveDefinition(B){var Z;let q=(Z=B.arguments)!==null&&Z!==void 0?Z:[];return P(`@${B.name.value}`,q)},InterfaceTypeDefinition:F,InterfaceTypeExtension:F,ObjectTypeDefinition:F,ObjectTypeExtension:F};function F(B){var Z;let q=B.name.value,X=(Z=B.fields)!==null&&Z!==void 0?Z:[];for(let Y of X){var J;let H=Y.name.value,W=(J=Y.arguments)!==null&&J!==void 0?J:[];P(`${q}.${H}`,W)}return!1}function P(B,Z){let q=pC.groupBy(Z,(X)=>X.name.value);for(let[X,J]of q)if(J.length>1)D.reportError(new rC.GraphQLError(`Argument "${B}(${X}:)" can only be defined once.`,{nodes:J.map((Y)=>Y.name)}));return!1}}});var u9=Q((JJ)=>{Object.defineProperty(JJ,"__esModule",{value:!0});JJ.UniqueArgumentNamesRule=oC;var nC=t6(),iC=v();function oC(D){return{Field:F,Directive:F};function F(P){var B;let Z=(B=P.arguments)!==null&&B!==void 0?B:[],q=nC.groupBy(Z,(X)=>X.name.value);for(let[X,J]of q)if(J.length>1)D.reportError(new iC.GraphQLError(`There can be only one argument named "${X}".`,{nodes:J.map((Y)=>Y.name)}))}}});var _9=Q((HJ)=>{Object.defineProperty(HJ,"__esModule",{value:!0});HJ.UniqueDirectiveNamesRule=eC;var YJ=v();function eC(D){let F=Object.create(null),P=D.getSchema();return{DirectiveDefinition(B){let Z=B.name.value;if(P!==null&&P!==void 0&&P.getDirective(Z)){D.reportError(new YJ.GraphQLError(`Directive "@${Z}" already exists in the schema. It cannot be redefined.`,{nodes:B.name}));return}if(F[Z])D.reportError(new YJ.GraphQLError(`There can be only one directive named "@${Z}".`,{nodes:[F[Z],B.name]}));else F[Z]=B.name;return!1}}}});var x9=Q((WJ)=>{Object.defineProperty(WJ,"__esModule",{value:!0});WJ.UniqueDirectivesPerLocationRule=BL;var FL=v(),k9=r(),UJ=u2(),PL=gD();function BL(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():PL.specifiedDirectives;for(let J of B)F[J.name]=!J.isRepeatable;let Z=D.getDocument().definitions;for(let J of Z)if(J.kind===k9.Kind.DIRECTIVE_DEFINITION)F[J.name.value]=!J.repeatable;let q=Object.create(null),X=Object.create(null);return{enter(J){if(!("directives"in J)||!J.directives)return;let Y;if(J.kind===k9.Kind.SCHEMA_DEFINITION||J.kind===k9.Kind.SCHEMA_EXTENSION)Y=q;else if(UJ.isTypeDefinitionNode(J)||UJ.isTypeExtensionNode(J)){let H=J.name.value;if(Y=X[H],Y===void 0)X[H]=Y=Object.create(null)}else Y=Object.create(null);for(let H of J.directives){let W=H.name.value;if(F[W])if(Y[W])D.reportError(new FL.GraphQLError(`The directive "@${W}" can only be used once at this location.`,{nodes:[Y[W],H]}));else Y[W]=H}}}}});var f9=Q((zJ)=>{Object.defineProperty(zJ,"__esModule",{value:!0});zJ.UniqueEnumValueNamesRule=XL;var OJ=v(),qL=a();function XL(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);return{EnumTypeDefinition:Z,EnumTypeExtension:Z};function Z(q){var X;let J=q.name.value;if(!B[J])B[J]=Object.create(null);let Y=(X=q.values)!==null&&X!==void 0?X:[],H=B[J];for(let W of Y){let U=W.name.value,O=P[J];if(qL.isEnumType(O)&&O.getValue(U))D.reportError(new OJ.GraphQLError(`Enum value "${J}.${U}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:W.name}));else if(H[U])D.reportError(new OJ.GraphQLError(`Enum value "${J}.${U}" can only be defined once.`,{nodes:[H[U],W.name]}));else H[U]=W.name}return!1}}});var v9=Q((GJ)=>{Object.defineProperty(GJ,"__esModule",{value:!0});GJ.UniqueFieldDefinitionNamesRule=YL;var QJ=v(),h9=a();function YL(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);return{InputObjectTypeDefinition:Z,InputObjectTypeExtension:Z,InterfaceTypeDefinition:Z,InterfaceTypeExtension:Z,ObjectTypeDefinition:Z,ObjectTypeExtension:Z};function Z(q){var X;let J=q.name.value;if(!B[J])B[J]=Object.create(null);let Y=(X=q.fields)!==null&&X!==void 0?X:[],H=B[J];for(let W of Y){let U=W.name.value;if(HL(P[J],U))D.reportError(new QJ.GraphQLError(`Field "${J}.${U}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:W.name}));else if(H[U])D.reportError(new QJ.GraphQLError(`Field "${J}.${U}" can only be defined once.`,{nodes:[H[U],W.name]}));else H[U]=W.name}return!1}}function HL(D,F){if(h9.isObjectType(D)||h9.isInterfaceType(D)||h9.isInputObjectType(D))return D.getFields()[F]!=null;return!1}});var g9=Q((RJ)=>{Object.defineProperty(RJ,"__esModule",{value:!0});RJ.UniqueFragmentNamesRule=OL;var WL=v();function OL(D){let F=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(P){let B=P.name.value;if(F[B])D.reportError(new WL.GraphQLError(`There can be only one fragment named "${B}".`,{nodes:[F[B],P.name]}));else F[B]=P.name;return!1}}}});var y9=Q((IJ)=>{Object.defineProperty(IJ,"__esModule",{value:!0});IJ.UniqueInputFieldNamesRule=RL;var QL=_D(),GL=v();function RL(D){let F=[],P=Object.create(null);return{ObjectValue:{enter(){F.push(P),P=Object.create(null)},leave(){let B=F.pop();B||QL.invariant(!1),P=B}},ObjectField(B){let Z=B.name.value;if(P[Z])D.reportError(new GL.GraphQLError(`There can be only one input field named "${Z}".`,{nodes:[P[Z],B.name]}));else P[Z]=B.name}}}});var m9=Q(($J)=>{Object.defineProperty($J,"__esModule",{value:!0});$J.UniqueOperationNamesRule=ML;var $L=v();function ML(D){let F=Object.create(null);return{OperationDefinition(P){let B=P.name;if(B)if(F[B.value])D.reportError(new $L.GraphQLError(`There can be only one operation named "${B.value}".`,{nodes:[F[B.value],B]}));else F[B.value]=B;return!1},FragmentDefinition:()=>!1}}});var l9=Q((KJ)=>{Object.defineProperty(KJ,"__esModule",{value:!0});KJ.UniqueOperationTypesRule=EL;var MJ=v();function EL(D){let F=D.getSchema(),P=Object.create(null),B=F?{query:F.getQueryType(),mutation:F.getMutationType(),subscription:F.getSubscriptionType()}:{};return{SchemaDefinition:Z,SchemaExtension:Z};function Z(q){var X;let J=(X=q.operationTypes)!==null&&X!==void 0?X:[];for(let Y of J){let H=Y.operation,W=P[H];if(B[H])D.reportError(new MJ.GraphQLError(`Type for ${H} already defined in the schema. It cannot be redefined.`,{nodes:Y}));else if(W)D.reportError(new MJ.GraphQLError(`There can be only one ${H} type in schema.`,{nodes:[W,Y]}));else P[H]=Y}return!1}}});var c9=Q((AJ)=>{Object.defineProperty(AJ,"__esModule",{value:!0});AJ.UniqueTypeNamesRule=CL;var EJ=v();function CL(D){let F=Object.create(null),P=D.getSchema();return{ScalarTypeDefinition:B,ObjectTypeDefinition:B,InterfaceTypeDefinition:B,UnionTypeDefinition:B,EnumTypeDefinition:B,InputObjectTypeDefinition:B};function B(Z){let q=Z.name.value;if(P!==null&&P!==void 0&&P.getType(q)){D.reportError(new EJ.GraphQLError(`Type "${q}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:Z.name}));return}if(F[q])D.reportError(new EJ.GraphQLError(`There can be only one type named "${q}".`,{nodes:[F[q],Z.name]}));else F[q]=Z.name;return!1}}});var d9=Q((CJ)=>{Object.defineProperty(CJ,"__esModule",{value:!0});CJ.UniqueVariableNamesRule=jL;var wL=t6(),VL=v();function jL(D){return{OperationDefinition(F){var P;let B=(P=F.variableDefinitions)!==null&&P!==void 0?P:[],Z=wL.groupBy(B,(q)=>q.variable.name.value);for(let[q,X]of Z)if(X.length>1)D.reportError(new VL.GraphQLError(`There can be only one variable named "$${q}".`,{nodes:X.map((J)=>J.variable.name)}))}}}});var r9=Q((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.ValuesOfCorrectTypeRule=uL;var SL=o0(),M1=PD(),TL=t0(),NL=e0(),b0=v(),p9=r(),e6=rD(),j0=a();function uL(D){let F={};return{OperationDefinition:{enter(){F={}}},VariableDefinition(P){F[P.variable.name.value]=P},ListValue(P){let B=j0.getNullableType(D.getParentInputType());if(!j0.isListType(B))return k2(D,P),!1},ObjectValue(P){let B=j0.getNamedType(D.getInputType());if(!j0.isInputObjectType(B))return k2(D,P),!1;let Z=TL.keyMap(P.fields,(q)=>q.name.value);for(let q of Object.values(B.getFields()))if(!Z[q.name]&&j0.isRequiredInputField(q)){let J=M1.inspect(q.type);D.reportError(new b0.GraphQLError(`Field "${B.name}.${q.name}" of required type "${J}" was not provided.`,{nodes:P}))}if(B.isOneOf)_L(D,P,B,Z,F)},ObjectField(P){let B=j0.getNamedType(D.getParentInputType());if(!D.getInputType()&&j0.isInputObjectType(B)){let q=NL.suggestionList(P.name.value,Object.keys(B.getFields()));D.reportError(new b0.GraphQLError(`Field "${P.name.value}" is not defined by type "${B.name}".`+SL.didYouMean(q),{nodes:P}))}},NullValue(P){let B=D.getInputType();if(j0.isNonNullType(B))D.reportError(new b0.GraphQLError(`Expected value of type "${M1.inspect(B)}", found ${e6.print(P)}.`,{nodes:P}))},EnumValue:(P)=>k2(D,P),IntValue:(P)=>k2(D,P),FloatValue:(P)=>k2(D,P),StringValue:(P)=>k2(D,P),BooleanValue:(P)=>k2(D,P)}}function k2(D,F){let P=D.getInputType();if(!P)return;let B=j0.getNamedType(P);if(!j0.isLeafType(B)){let Z=M1.inspect(P);D.reportError(new b0.GraphQLError(`Expected value of type "${Z}", found ${e6.print(F)}.`,{nodes:F}));return}try{if(B.parseLiteral(F,void 0)===void 0){let q=M1.inspect(P);D.reportError(new b0.GraphQLError(`Expected value of type "${q}", found ${e6.print(F)}.`,{nodes:F}))}}catch(Z){let q=M1.inspect(P);if(Z instanceof b0.GraphQLError)D.reportError(Z);else D.reportError(new b0.GraphQLError(`Expected value of type "${q}", found ${e6.print(F)}; `+Z.message,{nodes:F,originalError:Z}))}}function _L(D,F,P,B,Z){var q;let X=Object.keys(B);if(X.length!==1){D.reportError(new b0.GraphQLError(`OneOf Input Object "${P.name}" must specify exactly one key.`,{nodes:[F]}));return}let Y=(q=B[X[0]])===null||q===void 0?void 0:q.value,H=!Y||Y.kind===p9.Kind.NULL,W=(Y===null||Y===void 0?void 0:Y.kind)===p9.Kind.VARIABLE;if(H){D.reportError(new b0.GraphQLError(`Field "${P.name}.${X[0]}" must be non-null.`,{nodes:[F]}));return}if(W){let U=Y.name.value;if(Z[U].type.kind!==p9.Kind.NON_NULL_TYPE)D.reportError(new b0.GraphQLError(`Variable "${U}" must be non-nullable to be used for OneOf Input Object "${P.name}".`,{nodes:[F]}))}}});var a9=Q((wJ)=>{Object.defineProperty(wJ,"__esModule",{value:!0});wJ.VariablesAreInputTypesRule=gL;var xL=v(),fL=rD(),hL=a(),vL=V0();function gL(D){return{VariableDefinition(F){let P=vL.typeFromAST(D.getSchema(),F.type);if(P!==void 0&&!hL.isInputType(P)){let B=F.variable.name.value,Z=fL.print(F.type);D.reportError(new xL.GraphQLError(`Variable "$${B}" cannot be non-input type "${Z}".`,{nodes:F.type}))}}}}});var s9=Q((SJ)=>{Object.defineProperty(SJ,"__esModule",{value:!0});SJ.VariablesInAllowedPositionRule=dL;var VJ=PD(),mL=v(),lL=r(),jJ=a(),bJ=P1(),cL=V0();function dL(D){let F=Object.create(null);return{OperationDefinition:{enter(){F=Object.create(null)},leave(P){let B=D.getRecursiveVariableUsages(P);for(let{node:Z,type:q,defaultValue:X}of B){let J=Z.name.value,Y=F[J];if(Y&&q){let H=D.getSchema(),W=cL.typeFromAST(H,Y.type);if(W&&!pL(H,W,Y.defaultValue,q,X)){let U=VJ.inspect(W),O=VJ.inspect(q);D.reportError(new mL.GraphQLError(`Variable "$${J}" of type "${U}" used in position expecting type "${O}".`,{nodes:[Y,Z]}))}}}}},VariableDefinition(P){F[P.variable.name.value]=P}}}function pL(D,F,P,B,Z){if(jJ.isNonNullType(B)&&!jJ.isNonNullType(F)){if(!(P!=null&&P.kind!==lL.Kind.NULL)&&Z===void 0)return!1;let J=B.ofType;return bJ.isTypeSubTypeOf(D,F,J)}return bJ.isTypeSubTypeOf(D,F,B)}});var n9=Q((vJ)=>{Object.defineProperty(vJ,"__esModule",{value:!0});vJ.specifiedSDLRules=vJ.specifiedRules=vJ.recommendedRules=void 0;var aL=i4(),sL=o4(),nL=t4(),TJ=e4(),NJ=P9(),iL=B9(),uJ=q9(),oL=X9(),tL=J9(),eL=Y9(),Dw=H9(),Fw=U9(),Pw=W9(),Bw=O9(),Zw=M9(),qw=E9(),Xw=A9(),_J=L9(),Jw=w9(),Yw=T9(),Hw=N9(),kJ=u9(),Uw=_9(),xJ=x9(),Ww=f9(),Ow=v9(),zw=g9(),fJ=y9(),Qw=m9(),Gw=l9(),Rw=c9(),Iw=d9(),$w=r9(),Mw=a9(),Kw=s9(),hJ=Object.freeze([eL.MaxIntrospectionDepthRule]);vJ.recommendedRules=hJ;var Ew=Object.freeze([aL.ExecutableDefinitionsRule,Qw.UniqueOperationNamesRule,oL.LoneAnonymousOperationRule,Yw.SingleFieldSubscriptionsRule,uJ.KnownTypeNamesRule,nL.FragmentsOnCompositeTypesRule,Mw.VariablesAreInputTypesRule,Jw.ScalarLeafsRule,sL.FieldsOnCorrectTypeRule,zw.UniqueFragmentNamesRule,iL.KnownFragmentNamesRule,Pw.NoUnusedFragmentsRule,qw.PossibleFragmentSpreadsRule,Dw.NoFragmentCyclesRule,Iw.UniqueVariableNamesRule,Fw.NoUndefinedVariablesRule,Bw.NoUnusedVariablesRule,NJ.KnownDirectivesRule,xJ.UniqueDirectivesPerLocationRule,TJ.KnownArgumentNamesRule,kJ.UniqueArgumentNamesRule,$w.ValuesOfCorrectTypeRule,_J.ProvidedRequiredArgumentsRule,Kw.VariablesInAllowedPositionRule,Zw.OverlappingFieldsCanBeMergedRule,fJ.UniqueInputFieldNamesRule,...hJ]);vJ.specifiedRules=Ew;var Aw=Object.freeze([tL.LoneSchemaDefinitionRule,Gw.UniqueOperationTypesRule,Rw.UniqueTypeNamesRule,Ww.UniqueEnumValueNamesRule,Ow.UniqueFieldDefinitionNamesRule,Hw.UniqueArgumentDefinitionNamesRule,Uw.UniqueDirectiveNamesRule,uJ.KnownTypeNamesRule,NJ.KnownDirectivesRule,xJ.UniqueDirectivesPerLocationRule,Xw.PossibleTypeExtensionsRule,TJ.KnownArgumentNamesOnDirectivesRule,kJ.UniqueArgumentNamesRule,fJ.UniqueInputFieldNamesRule,_J.ProvidedRequiredArgumentsOnDirectivesRule]);vJ.specifiedSDLRules=Aw});var i9=Q((dJ)=>{Object.defineProperty(dJ,"__esModule",{value:!0});dJ.ValidationContext=dJ.SDLValidationContext=dJ.ASTValidationContext=void 0;var yJ=r(),ww=L2(),mJ=d6();class D3{constructor(D,F){this._ast=D,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=F}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(D){this._onError(D)}getDocument(){return this._ast}getFragment(D){let F;if(this._fragments)F=this._fragments;else{F=Object.create(null);for(let P of this.getDocument().definitions)if(P.kind===yJ.Kind.FRAGMENT_DEFINITION)F[P.name.value]=P;this._fragments=F}return F[D]}getFragmentSpreads(D){let F=this._fragmentSpreads.get(D);if(!F){F=[];let P=[D],B;while(B=P.pop())for(let Z of B.selections)if(Z.kind===yJ.Kind.FRAGMENT_SPREAD)F.push(Z);else if(Z.selectionSet)P.push(Z.selectionSet);this._fragmentSpreads.set(D,F)}return F}getRecursivelyReferencedFragments(D){let F=this._recursivelyReferencedFragments.get(D);if(!F){F=[];let P=Object.create(null),B=[D.selectionSet],Z;while(Z=B.pop())for(let q of this.getFragmentSpreads(Z)){let X=q.name.value;if(P[X]!==!0){P[X]=!0;let J=this.getFragment(X);if(J)F.push(J),B.push(J.selectionSet)}}this._recursivelyReferencedFragments.set(D,F)}return F}}dJ.ASTValidationContext=D3;class lJ extends D3{constructor(D,F,P){super(D,P);this._schema=F}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}dJ.SDLValidationContext=lJ;class cJ extends D3{constructor(D,F,P,B){super(F,B);this._schema=D,this._typeInfo=P,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(D){let F=this._variableUsages.get(D);if(!F){let P=[],B=new mJ.TypeInfo(this._schema);ww.visit(D,mJ.visitWithTypeInfo(B,{VariableDefinition:()=>!1,Variable(Z){P.push({node:Z,type:B.getInputType(),defaultValue:B.getDefaultValue()})}})),F=P,this._variableUsages.set(D,F)}return F}getRecursiveVariableUsages(D){let F=this._recursiveVariableUsages.get(D);if(!F){F=this.getVariableUsages(D);for(let P of this.getRecursivelyReferencedFragments(D))F=F.concat(this.getVariableUsages(P));this._recursiveVariableUsages.set(D,F)}return F}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}dJ.ValidationContext=cJ});var K1=Q((nJ)=>{Object.defineProperty(nJ,"__esModule",{value:!0});nJ.assertValidSDL=uw;nJ.assertValidSDLExtension=_w;nJ.validate=Nw;nJ.validateSDL=o9;var bw=hD(),Sw=v(),F3=L2(),Tw=O1(),rJ=d6(),aJ=n9(),sJ=i9();function Nw(D,F,P=aJ.specifiedRules,B,Z=new rJ.TypeInfo(D)){var q;let X=(q=B===null||B===void 0?void 0:B.maxErrors)!==null&&q!==void 0?q:100;F||bw.devAssert(!1,"Must provide document."),Tw.assertValidSchema(D);let J=Object.freeze({}),Y=[],H=new sJ.ValidationContext(D,F,Z,(U)=>{if(Y.length>=X)throw Y.push(new Sw.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),J;Y.push(U)}),W=F3.visitInParallel(P.map((U)=>U(H)));try{F3.visit(F,rJ.visitWithTypeInfo(Z,W))}catch(U){if(U!==J)throw U}return Y}function o9(D,F,P=aJ.specifiedSDLRules){let B=[],Z=new sJ.SDLValidationContext(D,F,(X)=>{B.push(X)}),q=P.map((X)=>X(Z));return F3.visit(D,F3.visitInParallel(q)),B}function uw(D){let F=o9(D);if(F.length!==0)throw new Error(F.map((P)=>P.message).join(`
75
75
 
76
76
  `))}function _w(D,F){let P=o9(D,F);if(P.length!==0)throw new Error(P.map((B)=>B.message).join(`
77
77
 
78
- `))}});var oJ=Q((iJ)=>{Object.defineProperty(iJ,"__esModule",{value:!0});iJ.memoize3=vw;function vw(D){let F;return function P(B,Z,q){if(F===void 0)F=new WeakMap;let X=F.get(B);if(X===void 0)X=new WeakMap,F.set(B,X);let J=X.get(Z);if(J===void 0)J=new WeakMap,X.set(Z,J);let Y=J.get(q);if(Y===void 0)Y=D(B,Z,q),J.set(q,Y);return Y}}});var eJ=Q((tJ)=>{Object.defineProperty(tJ,"__esModule",{value:!0});tJ.promiseForObject=yw;function yw(D){return Promise.all(Object.values(D)).then((F)=>{let P=Object.create(null);for(let[B,Z]of Object.keys(D).entries())P[Z]=F[B];return P})}});var FY=Q((DY)=>{Object.defineProperty(DY,"__esModule",{value:!0});DY.promiseReduce=cw;var lw=K6();function cw(D,F,P){let B=P;for(let Z of D)B=lw.isPromise(B)?B.then((q)=>F(q,Z)):F(B,Z);return B}});var ZY=Q((BY)=>{Object.defineProperty(BY,"__esModule",{value:!0});BY.toError=rw;var pw=PD();function rw(D){return D instanceof Error?D:new PY(D)}class PY extends Error{constructor(D){super("Unexpected error value: "+pw.inspect(D));this.name="NonErrorThrown",this.thrownValue=D}}});var P3=Q((qY)=>{Object.defineProperty(qY,"__esModule",{value:!0});qY.locatedError=iw;var sw=ZY(),nw=v();function iw(D,F,P){var B;let Z=sw.toError(D);if(ow(Z))return Z;return new nw.GraphQLError(Z.message,{nodes:(B=Z.nodes)!==null&&B!==void 0?B:F,source:Z.source,positions:Z.positions,path:P,originalError:Z})}function ow(D){return Array.isArray(D.path)}});var E1=Q((MY)=>{Object.defineProperty(MY,"__esModule",{value:!0});MY.assertValidExecutionArguments=zY;MY.buildExecutionContext=QY;MY.buildResolveInfo=RY;MY.defaultTypeResolver=MY.defaultFieldResolver=void 0;MY.execute=OY;MY.executeSync=qV;MY.getFieldDef=$Y;var e9=hD(),x2=PD(),ew=_D(),DV=l6(),P7=E0(),I0=K6(),FV=oJ(),f2=z1(),XY=eJ(),PV=FY(),eD=v(),Z3=P3(),t9=A0(),JY=r(),B2=a(),R8=tD(),BV=W1(),UY=o6(),WY=G8(),ZV=FV.memoize3((D,F,P)=>UY.collectSubfields(D.schema,D.fragments,D.variableValues,F,P));function OY(D){arguments.length<2||e9.devAssert(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:F,document:P,variableValues:B,rootValue:Z}=D;zY(F,P,B);let q=QY(D);if(!("schema"in q))return{errors:q};try{let{operation:X}=q,J=XV(q,X,Z);if(I0.isPromise(J))return J.then((Y)=>B3(Y,q.errors),(Y)=>{return q.errors.push(Y),B3(null,q.errors)});return B3(J,q.errors)}catch(X){return q.errors.push(X),B3(null,q.errors)}}function qV(D){let F=OY(D);if(I0.isPromise(F))throw new Error("GraphQL execution failed to complete synchronously.");return F}function B3(D,F){return F.length===0?{data:D}:{errors:F,data:D}}function zY(D,F,P){F||e9.devAssert(!1,"Must provide document."),BV.assertValidSchema(D),P==null||P7.isObjectLike(P)||e9.devAssert(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function QY(D){var F,P;let{schema:B,document:Z,rootValue:q,contextValue:X,variableValues:J,operationName:Y,fieldResolver:H,typeResolver:W,subscribeFieldResolver:U}=D,O,z=Object.create(null);for(let $ of Z.definitions)switch($.kind){case JY.Kind.OPERATION_DEFINITION:if(Y==null){if(O!==void 0)return[new eD.GraphQLError("Must provide operation name if query contains multiple operations.")];O=$}else if(((F=$.name)===null||F===void 0?void 0:F.value)===Y)O=$;break;case JY.Kind.FRAGMENT_DEFINITION:z[$.name.value]=$;break;default:}if(!O){if(Y!=null)return[new eD.GraphQLError(`Unknown operation named "${Y}".`)];return[new eD.GraphQLError("Must provide an operation.")]}let I=(P=O.variableDefinitions)!==null&&P!==void 0?P:[],R=WY.getVariableValues(B,I,J!==null&&J!==void 0?J:{},{maxErrors:50});if(R.errors)return R.errors;return{schema:B,fragments:z,rootValue:q,contextValue:X,operation:O,variableValues:R.coerced,fieldResolver:H!==null&&H!==void 0?H:F7,typeResolver:W!==null&&W!==void 0?W:IY,subscribeFieldResolver:U!==null&&U!==void 0?U:F7,errors:[]}}function XV(D,F,P){let B=D.schema.getRootType(F.operation);if(B==null)throw new eD.GraphQLError(`Schema is not configured to execute ${F.operation} operation.`,{nodes:F});let Z=UY.collectFields(D.schema,D.fragments,D.variableValues,B,F.selectionSet),q=void 0;switch(F.operation){case t9.OperationTypeNode.QUERY:return q3(D,B,P,q,Z);case t9.OperationTypeNode.MUTATION:return JV(D,B,P,q,Z);case t9.OperationTypeNode.SUBSCRIPTION:return q3(D,B,P,q,Z)}}function JV(D,F,P,B,Z){return PV.promiseReduce(Z.entries(),(q,[X,J])=>{let Y=f2.addPath(B,X,F.name),H=GY(D,F,P,J,Y);if(H===void 0)return q;if(I0.isPromise(H))return H.then((W)=>{return q[X]=W,q});return q[X]=H,q},Object.create(null))}function q3(D,F,P,B,Z){let q=Object.create(null),X=!1;try{for(let[J,Y]of Z.entries()){let H=f2.addPath(B,J,F.name),W=GY(D,F,P,Y,H);if(W!==void 0){if(q[J]=W,I0.isPromise(W))X=!0}}}catch(J){if(X)return XY.promiseForObject(q).finally(()=>{throw J});throw J}if(!X)return q;return XY.promiseForObject(q)}function GY(D,F,P,B,Z){var q;let X=$Y(D.schema,F,B[0]);if(!X)return;let J=X.type,Y=(q=X.resolve)!==null&&q!==void 0?q:D.fieldResolver,H=RY(D,X,B,F,Z);try{let W=WY.getArgumentValues(X,B[0],D.variableValues),U=D.contextValue,O=Y(P,W,U,H),z;if(I0.isPromise(O))z=O.then((I)=>K1(D,J,B,H,Z,I));else z=K1(D,J,B,H,Z,O);if(I0.isPromise(z))return z.then(void 0,(I)=>{let R=Z3.locatedError(I,B,f2.pathToArray(Z));return X3(R,J,D)});return z}catch(W){let U=Z3.locatedError(W,B,f2.pathToArray(Z));return X3(U,J,D)}}function RY(D,F,P,B,Z){return{fieldName:F.name,fieldNodes:P,returnType:F.type,parentType:B,path:Z,schema:D.schema,fragments:D.fragments,rootValue:D.rootValue,operation:D.operation,variableValues:D.variableValues}}function X3(D,F,P){if(B2.isNonNullType(F))throw D;return P.errors.push(D),null}function K1(D,F,P,B,Z,q){if(q instanceof Error)throw q;if(B2.isNonNullType(F)){let X=K1(D,F.ofType,P,B,Z,q);if(X===null)throw new Error(`Cannot return null for non-nullable field ${B.parentType.name}.${B.fieldName}.`);return X}if(q==null)return null;if(B2.isListType(F))return YV(D,F,P,B,Z,q);if(B2.isLeafType(F))return HV(F,q);if(B2.isAbstractType(F))return UV(D,F,P,B,Z,q);if(B2.isObjectType(F))return D7(D,F,P,B,Z,q);ew.invariant(!1,"Cannot complete value of unexpected output type: "+x2.inspect(F))}function YV(D,F,P,B,Z,q){if(!DV.isIterableObject(q))throw new eD.GraphQLError(`Expected Iterable, but did not find one for field "${B.parentType.name}.${B.fieldName}".`);let X=F.ofType,J=!1,Y=Array.from(q,(H,W)=>{let U=f2.addPath(Z,W,void 0);try{let O;if(I0.isPromise(H))O=H.then((z)=>K1(D,X,P,B,U,z));else O=K1(D,X,P,B,U,H);if(I0.isPromise(O))return J=!0,O.then(void 0,(z)=>{let I=Z3.locatedError(z,P,f2.pathToArray(U));return X3(I,X,D)});return O}catch(O){let z=Z3.locatedError(O,P,f2.pathToArray(U));return X3(z,X,D)}});return J?Promise.all(Y):Y}function HV(D,F){let P=D.serialize(F);if(P==null)throw new Error(`Expected \`${x2.inspect(D)}.serialize(${x2.inspect(F)})\` to return non-nullable value, returned: ${x2.inspect(P)}`);return P}function UV(D,F,P,B,Z,q){var X;let J=(X=F.resolveType)!==null&&X!==void 0?X:D.typeResolver,Y=D.contextValue,H=J(q,Y,B,F);if(I0.isPromise(H))return H.then((W)=>D7(D,YY(W,D,F,P,B,q),P,B,Z,q));return D7(D,YY(H,D,F,P,B,q),P,B,Z,q)}function YY(D,F,P,B,Z,q){if(D==null)throw new eD.GraphQLError(`Abstract type "${P.name}" must resolve to an Object type at runtime for field "${Z.parentType.name}.${Z.fieldName}". Either the "${P.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,B);if(B2.isObjectType(D))throw new eD.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof D!=="string")throw new eD.GraphQLError(`Abstract type "${P.name}" must resolve to an Object type at runtime for field "${Z.parentType.name}.${Z.fieldName}" with value ${x2.inspect(q)}, received "${x2.inspect(D)}".`);let X=F.schema.getType(D);if(X==null)throw new eD.GraphQLError(`Abstract type "${P.name}" was resolved to a type "${D}" that does not exist inside the schema.`,{nodes:B});if(!B2.isObjectType(X))throw new eD.GraphQLError(`Abstract type "${P.name}" was resolved to a non-object type "${D}".`,{nodes:B});if(!F.schema.isSubType(P,X))throw new eD.GraphQLError(`Runtime Object type "${X.name}" is not a possible type for "${P.name}".`,{nodes:B});return X}function D7(D,F,P,B,Z,q){let X=ZV(D,F,P);if(F.isTypeOf){let J=F.isTypeOf(q,D.contextValue,B);if(I0.isPromise(J))return J.then((Y)=>{if(!Y)throw HY(F,q,P);return q3(D,F,q,Z,X)});if(!J)throw HY(F,q,P)}return q3(D,F,q,Z,X)}function HY(D,F,P){return new eD.GraphQLError(`Expected value of type "${D.name}" but got: ${x2.inspect(F)}.`,{nodes:P})}var IY=function(D,F,P,B){if(P7.isObjectLike(D)&&typeof D.__typename==="string")return D.__typename;let Z=P.schema.getPossibleTypes(B),q=[];for(let X=0;X<Z.length;X++){let J=Z[X];if(J.isTypeOf){let Y=J.isTypeOf(D,F,P);if(I0.isPromise(Y))q[X]=Y;else if(Y)return J.name}}if(q.length)return Promise.all(q).then((X)=>{for(let J=0;J<X.length;J++)if(X[J])return Z[J].name})};MY.defaultTypeResolver=IY;var F7=function(D,F,P,B){if(P7.isObjectLike(D)||typeof D==="function"){let Z=D[B.fieldName];if(typeof Z==="function")return D[B.fieldName](F,P,B);return Z}};MY.defaultFieldResolver=F7;function $Y(D,F,P){let B=P.name.value;if(B===R8.SchemaMetaFieldDef.name&&D.getQueryType()===F)return R8.SchemaMetaFieldDef;else if(B===R8.TypeMetaFieldDef.name&&D.getQueryType()===F)return R8.TypeMetaFieldDef;else if(B===R8.TypeNameMetaFieldDef.name)return R8.TypeNameMetaFieldDef;return F.getFields()[B]}});var CY=Q((AY)=>{Object.defineProperty(AY,"__esModule",{value:!0});AY.graphql=LV;AY.graphqlSync=wV;var $V=hD(),MV=K6(),KV=X8(),EV=W1(),AV=M1(),CV=E1();function LV(D){return new Promise((F)=>F(EY(D)))}function wV(D){let F=EY(D);if(MV.isPromise(F))throw new Error("GraphQL execution failed to complete synchronously.");return F}function EY(D){arguments.length<2||$V.devAssert(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:F,source:P,rootValue:B,contextValue:Z,variableValues:q,operationName:X,fieldResolver:J,typeResolver:Y}=D,H=EV.validateSchema(F);if(H.length>0)return{errors:H};let W;try{W=KV.parse(P)}catch(O){return{errors:[O]}}let U=AV.validate(F,W);if(U.length>0)return{errors:U};return CV.execute({schema:F,document:W,rootValue:B,contextValue:Z,variableValues:q,operationName:X,fieldResolver:J,typeResolver:Y})}});var VY=Q((C)=>{Object.defineProperty(C,"__esModule",{value:!0});Object.defineProperty(C,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return $0.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(C,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return c0.GRAPHQL_MAX_INT}});Object.defineProperty(C,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return c0.GRAPHQL_MIN_INT}});Object.defineProperty(C,"GraphQLBoolean",{enumerable:!0,get:function(){return c0.GraphQLBoolean}});Object.defineProperty(C,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return $0.GraphQLDeprecatedDirective}});Object.defineProperty(C,"GraphQLDirective",{enumerable:!0,get:function(){return $0.GraphQLDirective}});Object.defineProperty(C,"GraphQLEnumType",{enumerable:!0,get:function(){return g.GraphQLEnumType}});Object.defineProperty(C,"GraphQLFloat",{enumerable:!0,get:function(){return c0.GraphQLFloat}});Object.defineProperty(C,"GraphQLID",{enumerable:!0,get:function(){return c0.GraphQLID}});Object.defineProperty(C,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return $0.GraphQLIncludeDirective}});Object.defineProperty(C,"GraphQLInputObjectType",{enumerable:!0,get:function(){return g.GraphQLInputObjectType}});Object.defineProperty(C,"GraphQLInt",{enumerable:!0,get:function(){return c0.GraphQLInt}});Object.defineProperty(C,"GraphQLInterfaceType",{enumerable:!0,get:function(){return g.GraphQLInterfaceType}});Object.defineProperty(C,"GraphQLList",{enumerable:!0,get:function(){return g.GraphQLList}});Object.defineProperty(C,"GraphQLNonNull",{enumerable:!0,get:function(){return g.GraphQLNonNull}});Object.defineProperty(C,"GraphQLObjectType",{enumerable:!0,get:function(){return g.GraphQLObjectType}});Object.defineProperty(C,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return $0.GraphQLOneOfDirective}});Object.defineProperty(C,"GraphQLScalarType",{enumerable:!0,get:function(){return g.GraphQLScalarType}});Object.defineProperty(C,"GraphQLSchema",{enumerable:!0,get:function(){return B7.GraphQLSchema}});Object.defineProperty(C,"GraphQLSkipDirective",{enumerable:!0,get:function(){return $0.GraphQLSkipDirective}});Object.defineProperty(C,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return $0.GraphQLSpecifiedByDirective}});Object.defineProperty(C,"GraphQLString",{enumerable:!0,get:function(){return c0.GraphQLString}});Object.defineProperty(C,"GraphQLUnionType",{enumerable:!0,get:function(){return g.GraphQLUnionType}});Object.defineProperty(C,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return mD.SchemaMetaFieldDef}});Object.defineProperty(C,"TypeKind",{enumerable:!0,get:function(){return mD.TypeKind}});Object.defineProperty(C,"TypeMetaFieldDef",{enumerable:!0,get:function(){return mD.TypeMetaFieldDef}});Object.defineProperty(C,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return mD.TypeNameMetaFieldDef}});Object.defineProperty(C,"__Directive",{enumerable:!0,get:function(){return mD.__Directive}});Object.defineProperty(C,"__DirectiveLocation",{enumerable:!0,get:function(){return mD.__DirectiveLocation}});Object.defineProperty(C,"__EnumValue",{enumerable:!0,get:function(){return mD.__EnumValue}});Object.defineProperty(C,"__Field",{enumerable:!0,get:function(){return mD.__Field}});Object.defineProperty(C,"__InputValue",{enumerable:!0,get:function(){return mD.__InputValue}});Object.defineProperty(C,"__Schema",{enumerable:!0,get:function(){return mD.__Schema}});Object.defineProperty(C,"__Type",{enumerable:!0,get:function(){return mD.__Type}});Object.defineProperty(C,"__TypeKind",{enumerable:!0,get:function(){return mD.__TypeKind}});Object.defineProperty(C,"assertAbstractType",{enumerable:!0,get:function(){return g.assertAbstractType}});Object.defineProperty(C,"assertCompositeType",{enumerable:!0,get:function(){return g.assertCompositeType}});Object.defineProperty(C,"assertDirective",{enumerable:!0,get:function(){return $0.assertDirective}});Object.defineProperty(C,"assertEnumType",{enumerable:!0,get:function(){return g.assertEnumType}});Object.defineProperty(C,"assertEnumValueName",{enumerable:!0,get:function(){return wY.assertEnumValueName}});Object.defineProperty(C,"assertInputObjectType",{enumerable:!0,get:function(){return g.assertInputObjectType}});Object.defineProperty(C,"assertInputType",{enumerable:!0,get:function(){return g.assertInputType}});Object.defineProperty(C,"assertInterfaceType",{enumerable:!0,get:function(){return g.assertInterfaceType}});Object.defineProperty(C,"assertLeafType",{enumerable:!0,get:function(){return g.assertLeafType}});Object.defineProperty(C,"assertListType",{enumerable:!0,get:function(){return g.assertListType}});Object.defineProperty(C,"assertName",{enumerable:!0,get:function(){return wY.assertName}});Object.defineProperty(C,"assertNamedType",{enumerable:!0,get:function(){return g.assertNamedType}});Object.defineProperty(C,"assertNonNullType",{enumerable:!0,get:function(){return g.assertNonNullType}});Object.defineProperty(C,"assertNullableType",{enumerable:!0,get:function(){return g.assertNullableType}});Object.defineProperty(C,"assertObjectType",{enumerable:!0,get:function(){return g.assertObjectType}});Object.defineProperty(C,"assertOutputType",{enumerable:!0,get:function(){return g.assertOutputType}});Object.defineProperty(C,"assertScalarType",{enumerable:!0,get:function(){return g.assertScalarType}});Object.defineProperty(C,"assertSchema",{enumerable:!0,get:function(){return B7.assertSchema}});Object.defineProperty(C,"assertType",{enumerable:!0,get:function(){return g.assertType}});Object.defineProperty(C,"assertUnionType",{enumerable:!0,get:function(){return g.assertUnionType}});Object.defineProperty(C,"assertValidSchema",{enumerable:!0,get:function(){return LY.assertValidSchema}});Object.defineProperty(C,"assertWrappingType",{enumerable:!0,get:function(){return g.assertWrappingType}});Object.defineProperty(C,"getNamedType",{enumerable:!0,get:function(){return g.getNamedType}});Object.defineProperty(C,"getNullableType",{enumerable:!0,get:function(){return g.getNullableType}});Object.defineProperty(C,"introspectionTypes",{enumerable:!0,get:function(){return mD.introspectionTypes}});Object.defineProperty(C,"isAbstractType",{enumerable:!0,get:function(){return g.isAbstractType}});Object.defineProperty(C,"isCompositeType",{enumerable:!0,get:function(){return g.isCompositeType}});Object.defineProperty(C,"isDirective",{enumerable:!0,get:function(){return $0.isDirective}});Object.defineProperty(C,"isEnumType",{enumerable:!0,get:function(){return g.isEnumType}});Object.defineProperty(C,"isInputObjectType",{enumerable:!0,get:function(){return g.isInputObjectType}});Object.defineProperty(C,"isInputType",{enumerable:!0,get:function(){return g.isInputType}});Object.defineProperty(C,"isInterfaceType",{enumerable:!0,get:function(){return g.isInterfaceType}});Object.defineProperty(C,"isIntrospectionType",{enumerable:!0,get:function(){return mD.isIntrospectionType}});Object.defineProperty(C,"isLeafType",{enumerable:!0,get:function(){return g.isLeafType}});Object.defineProperty(C,"isListType",{enumerable:!0,get:function(){return g.isListType}});Object.defineProperty(C,"isNamedType",{enumerable:!0,get:function(){return g.isNamedType}});Object.defineProperty(C,"isNonNullType",{enumerable:!0,get:function(){return g.isNonNullType}});Object.defineProperty(C,"isNullableType",{enumerable:!0,get:function(){return g.isNullableType}});Object.defineProperty(C,"isObjectType",{enumerable:!0,get:function(){return g.isObjectType}});Object.defineProperty(C,"isOutputType",{enumerable:!0,get:function(){return g.isOutputType}});Object.defineProperty(C,"isRequiredArgument",{enumerable:!0,get:function(){return g.isRequiredArgument}});Object.defineProperty(C,"isRequiredInputField",{enumerable:!0,get:function(){return g.isRequiredInputField}});Object.defineProperty(C,"isScalarType",{enumerable:!0,get:function(){return g.isScalarType}});Object.defineProperty(C,"isSchema",{enumerable:!0,get:function(){return B7.isSchema}});Object.defineProperty(C,"isSpecifiedDirective",{enumerable:!0,get:function(){return $0.isSpecifiedDirective}});Object.defineProperty(C,"isSpecifiedScalarType",{enumerable:!0,get:function(){return c0.isSpecifiedScalarType}});Object.defineProperty(C,"isType",{enumerable:!0,get:function(){return g.isType}});Object.defineProperty(C,"isUnionType",{enumerable:!0,get:function(){return g.isUnionType}});Object.defineProperty(C,"isWrappingType",{enumerable:!0,get:function(){return g.isWrappingType}});Object.defineProperty(C,"resolveObjMapThunk",{enumerable:!0,get:function(){return g.resolveObjMapThunk}});Object.defineProperty(C,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return g.resolveReadonlyArrayThunk}});Object.defineProperty(C,"specifiedDirectives",{enumerable:!0,get:function(){return $0.specifiedDirectives}});Object.defineProperty(C,"specifiedScalarTypes",{enumerable:!0,get:function(){return c0.specifiedScalarTypes}});Object.defineProperty(C,"validateSchema",{enumerable:!0,get:function(){return LY.validateSchema}});var B7=T2(),g=a(),$0=gD(),c0=w0(),mD=tD(),LY=W1(),wY=o8()});var bY=Q((o)=>{Object.defineProperty(o,"__esModule",{value:!0});Object.defineProperty(o,"BREAK",{enumerable:!0,get:function(){return A1.BREAK}});Object.defineProperty(o,"DirectiveLocation",{enumerable:!0,get:function(){return kV.DirectiveLocation}});Object.defineProperty(o,"Kind",{enumerable:!0,get:function(){return TV.Kind}});Object.defineProperty(o,"Lexer",{enumerable:!0,get:function(){return uV.Lexer}});Object.defineProperty(o,"Location",{enumerable:!0,get:function(){return Z7.Location}});Object.defineProperty(o,"OperationTypeNode",{enumerable:!0,get:function(){return Z7.OperationTypeNode}});Object.defineProperty(o,"Source",{enumerable:!0,get:function(){return bV.Source}});Object.defineProperty(o,"Token",{enumerable:!0,get:function(){return Z7.Token}});Object.defineProperty(o,"TokenKind",{enumerable:!0,get:function(){return NV.TokenKind}});Object.defineProperty(o,"getEnterLeaveForKind",{enumerable:!0,get:function(){return A1.getEnterLeaveForKind}});Object.defineProperty(o,"getLocation",{enumerable:!0,get:function(){return SV.getLocation}});Object.defineProperty(o,"getVisitFn",{enumerable:!0,get:function(){return A1.getVisitFn}});Object.defineProperty(o,"isConstValueNode",{enumerable:!0,get:function(){return S0.isConstValueNode}});Object.defineProperty(o,"isDefinitionNode",{enumerable:!0,get:function(){return S0.isDefinitionNode}});Object.defineProperty(o,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return S0.isExecutableDefinitionNode}});Object.defineProperty(o,"isSelectionNode",{enumerable:!0,get:function(){return S0.isSelectionNode}});Object.defineProperty(o,"isTypeDefinitionNode",{enumerable:!0,get:function(){return S0.isTypeDefinitionNode}});Object.defineProperty(o,"isTypeExtensionNode",{enumerable:!0,get:function(){return S0.isTypeExtensionNode}});Object.defineProperty(o,"isTypeNode",{enumerable:!0,get:function(){return S0.isTypeNode}});Object.defineProperty(o,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return S0.isTypeSystemDefinitionNode}});Object.defineProperty(o,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return S0.isTypeSystemExtensionNode}});Object.defineProperty(o,"isValueNode",{enumerable:!0,get:function(){return S0.isValueNode}});Object.defineProperty(o,"parse",{enumerable:!0,get:function(){return J3.parse}});Object.defineProperty(o,"parseConstValue",{enumerable:!0,get:function(){return J3.parseConstValue}});Object.defineProperty(o,"parseType",{enumerable:!0,get:function(){return J3.parseType}});Object.defineProperty(o,"parseValue",{enumerable:!0,get:function(){return J3.parseValue}});Object.defineProperty(o,"print",{enumerable:!0,get:function(){return _V.print}});Object.defineProperty(o,"printLocation",{enumerable:!0,get:function(){return jY.printLocation}});Object.defineProperty(o,"printSourceLocation",{enumerable:!0,get:function(){return jY.printSourceLocation}});Object.defineProperty(o,"visit",{enumerable:!0,get:function(){return A1.visit}});Object.defineProperty(o,"visitInParallel",{enumerable:!0,get:function(){return A1.visitInParallel}});var bV=j6(),SV=E6(),jY=P4(),TV=r(),NV=p8(),uV=w6(),J3=X8(),_V=rD(),A1=L2(),Z7=A0(),S0=u2(),kV=B8()});var TY=Q((SY)=>{Object.defineProperty(SY,"__esModule",{value:!0});SY.isAsyncIterable=xV;function xV(D){return typeof(D===null||D===void 0?void 0:D[Symbol.asyncIterator])==="function"}});var uY=Q((NY)=>{Object.defineProperty(NY,"__esModule",{value:!0});NY.mapAsyncIterator=hV;function hV(D,F){let P=D[Symbol.asyncIterator]();async function B(Z){if(Z.done)return Z;try{return{value:await F(Z.value),done:!1}}catch(q){if(typeof P.return==="function")try{await P.return()}catch(X){}throw q}}return{async next(){return B(await P.next())},async return(){return typeof P.return==="function"?B(await P.return()):{value:void 0,done:!0}},async throw(Z){if(typeof P.throw==="function")return B(await P.throw(Z));throw Z},[Symbol.asyncIterator](){return this}}}});var hY=Q((fY)=>{Object.defineProperty(fY,"__esModule",{value:!0});fY.createSourceEventStream=xY;fY.subscribe=pV;var gV=hD(),yV=PD(),kY=TY(),_Y=z1(),q7=v(),mV=P3(),lV=o6(),C1=E1(),cV=uY(),dV=G8();async function pV(D){arguments.length<2||gV.devAssert(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let F=await xY(D);if(!kY.isAsyncIterable(F))return F;let P=(B)=>C1.execute({...D,rootValue:B});return cV.mapAsyncIterator(F,P)}function rV(D){let F=D[0];if(F&&"document"in F)return F;return{schema:F,document:D[1],rootValue:D[2],contextValue:D[3],variableValues:D[4],operationName:D[5],subscribeFieldResolver:D[6]}}async function xY(...D){let F=rV(D),{schema:P,document:B,variableValues:Z}=F;C1.assertValidExecutionArguments(P,B,Z);let q=C1.buildExecutionContext(F);if(!("schema"in q))return{errors:q};try{let X=await aV(q);if(!kY.isAsyncIterable(X))throw new Error(`Subscription field must return Async Iterable. Received: ${yV.inspect(X)}.`);return X}catch(X){if(X instanceof q7.GraphQLError)return{errors:[X]};throw X}}async function aV(D){let{schema:F,fragments:P,operation:B,variableValues:Z,rootValue:q}=D,X=F.getSubscriptionType();if(X==null)throw new q7.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:B});let J=lV.collectFields(F,P,Z,X,B.selectionSet),[Y,H]=[...J.entries()][0],W=C1.getFieldDef(F,X,H[0]);if(!W){let I=H[0].name.value;throw new q7.GraphQLError(`The subscription field "${I}" is not defined.`,{nodes:H})}let U=_Y.addPath(void 0,Y,X.name),O=C1.buildResolveInfo(D,W,H,X,U);try{var z;let I=dV.getArgumentValues(W,H[0],Z),R=D.contextValue,E=await((z=W.subscribe)!==null&&z!==void 0?z:D.subscribeFieldResolver)(q,I,R,O);if(E instanceof Error)throw E;return E}catch(I){throw mV.locatedError(I,H,_Y.pathToArray(U))}}});var gY=Q((D0)=>{Object.defineProperty(D0,"__esModule",{value:!0});Object.defineProperty(D0,"createSourceEventStream",{enumerable:!0,get:function(){return vY.createSourceEventStream}});Object.defineProperty(D0,"defaultFieldResolver",{enumerable:!0,get:function(){return Y3.defaultFieldResolver}});Object.defineProperty(D0,"defaultTypeResolver",{enumerable:!0,get:function(){return Y3.defaultTypeResolver}});Object.defineProperty(D0,"execute",{enumerable:!0,get:function(){return Y3.execute}});Object.defineProperty(D0,"executeSync",{enumerable:!0,get:function(){return Y3.executeSync}});Object.defineProperty(D0,"getArgumentValues",{enumerable:!0,get:function(){return X7.getArgumentValues}});Object.defineProperty(D0,"getDirectiveValues",{enumerable:!0,get:function(){return X7.getDirectiveValues}});Object.defineProperty(D0,"getVariableValues",{enumerable:!0,get:function(){return X7.getVariableValues}});Object.defineProperty(D0,"responsePathAsArray",{enumerable:!0,get:function(){return iV.pathToArray}});Object.defineProperty(D0,"subscribe",{enumerable:!0,get:function(){return vY.subscribe}});var iV=z1(),Y3=E1(),vY=hY(),X7=G8()});var mY=Q((yY)=>{Object.defineProperty(yY,"__esModule",{value:!0});yY.NoDeprecatedCustomRule=oV;var J7=_D(),L1=v(),Y7=a();function oV(D){return{Field(F){let P=D.getFieldDef(),B=P===null||P===void 0?void 0:P.deprecationReason;if(P&&B!=null){let Z=D.getParentType();Z!=null||J7.invariant(!1),D.reportError(new L1.GraphQLError(`The field ${Z.name}.${P.name} is deprecated. ${B}`,{nodes:F}))}},Argument(F){let P=D.getArgument(),B=P===null||P===void 0?void 0:P.deprecationReason;if(P&&B!=null){let Z=D.getDirective();if(Z!=null)D.reportError(new L1.GraphQLError(`Directive "@${Z.name}" argument "${P.name}" is deprecated. ${B}`,{nodes:F}));else{let q=D.getParentType(),X=D.getFieldDef();q!=null&&X!=null||J7.invariant(!1),D.reportError(new L1.GraphQLError(`Field "${q.name}.${X.name}" argument "${P.name}" is deprecated. ${B}`,{nodes:F}))}}},ObjectField(F){let P=Y7.getNamedType(D.getParentInputType());if(Y7.isInputObjectType(P)){let B=P.getFields()[F.name.value],Z=B===null||B===void 0?void 0:B.deprecationReason;if(Z!=null)D.reportError(new L1.GraphQLError(`The input field ${P.name}.${B.name} is deprecated. ${Z}`,{nodes:F}))}},EnumValue(F){let P=D.getEnumValue(),B=P===null||P===void 0?void 0:P.deprecationReason;if(P&&B!=null){let Z=Y7.getNamedType(D.getInputType());Z!=null||J7.invariant(!1),D.reportError(new L1.GraphQLError(`The enum value "${Z.name}.${P.name}" is deprecated. ${B}`,{nodes:F}))}}}}});var cY=Q((lY)=>{Object.defineProperty(lY,"__esModule",{value:!0});lY.NoSchemaIntrospectionCustomRule=Pj;var eV=v(),Dj=a(),Fj=tD();function Pj(D){return{Field(F){let P=Dj.getNamedType(D.getType());if(P&&Fj.isIntrospectionType(P))D.reportError(new eV.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${F.name.value}".`,{nodes:F}))}}}});var pY=Q((l)=>{Object.defineProperty(l,"__esModule",{value:!0});Object.defineProperty(l,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Xj.ExecutableDefinitionsRule}});Object.defineProperty(l,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Jj.FieldsOnCorrectTypeRule}});Object.defineProperty(l,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Yj.FragmentsOnCompositeTypesRule}});Object.defineProperty(l,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Hj.KnownArgumentNamesRule}});Object.defineProperty(l,"KnownDirectivesRule",{enumerable:!0,get:function(){return Uj.KnownDirectivesRule}});Object.defineProperty(l,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return Wj.KnownFragmentNamesRule}});Object.defineProperty(l,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Oj.KnownTypeNamesRule}});Object.defineProperty(l,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return zj.LoneAnonymousOperationRule}});Object.defineProperty(l,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return _j.LoneSchemaDefinitionRule}});Object.defineProperty(l,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return uj.MaxIntrospectionDepthRule}});Object.defineProperty(l,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return mj.NoDeprecatedCustomRule}});Object.defineProperty(l,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return Qj.NoFragmentCyclesRule}});Object.defineProperty(l,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return lj.NoSchemaIntrospectionCustomRule}});Object.defineProperty(l,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return Gj.NoUndefinedVariablesRule}});Object.defineProperty(l,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Rj.NoUnusedFragmentsRule}});Object.defineProperty(l,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return Ij.NoUnusedVariablesRule}});Object.defineProperty(l,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return $j.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(l,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Mj.PossibleFragmentSpreadsRule}});Object.defineProperty(l,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return yj.PossibleTypeExtensionsRule}});Object.defineProperty(l,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Kj.ProvidedRequiredArgumentsRule}});Object.defineProperty(l,"ScalarLeafsRule",{enumerable:!0,get:function(){return Ej.ScalarLeafsRule}});Object.defineProperty(l,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Aj.SingleFieldSubscriptionsRule}});Object.defineProperty(l,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return vj.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(l,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Cj.UniqueArgumentNamesRule}});Object.defineProperty(l,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return gj.UniqueDirectiveNamesRule}});Object.defineProperty(l,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return Lj.UniqueDirectivesPerLocationRule}});Object.defineProperty(l,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return fj.UniqueEnumValueNamesRule}});Object.defineProperty(l,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return hj.UniqueFieldDefinitionNamesRule}});Object.defineProperty(l,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return wj.UniqueFragmentNamesRule}});Object.defineProperty(l,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return Vj.UniqueInputFieldNamesRule}});Object.defineProperty(l,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return jj.UniqueOperationNamesRule}});Object.defineProperty(l,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return kj.UniqueOperationTypesRule}});Object.defineProperty(l,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return xj.UniqueTypeNamesRule}});Object.defineProperty(l,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return bj.UniqueVariableNamesRule}});Object.defineProperty(l,"ValidationContext",{enumerable:!0,get:function(){return qj.ValidationContext}});Object.defineProperty(l,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return Sj.ValuesOfCorrectTypeRule}});Object.defineProperty(l,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return Tj.VariablesAreInputTypesRule}});Object.defineProperty(l,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Nj.VariablesInAllowedPositionRule}});Object.defineProperty(l,"recommendedRules",{enumerable:!0,get:function(){return dY.recommendedRules}});Object.defineProperty(l,"specifiedRules",{enumerable:!0,get:function(){return dY.specifiedRules}});Object.defineProperty(l,"validate",{enumerable:!0,get:function(){return Zj.validate}});var Zj=M1(),qj=i9(),dY=n9(),Xj=i4(),Jj=o4(),Yj=t4(),Hj=e4(),Uj=P9(),Wj=B9(),Oj=q9(),zj=X9(),Qj=H9(),Gj=U9(),Rj=W9(),Ij=O9(),$j=M9(),Mj=E9(),Kj=L9(),Ej=w9(),Aj=T9(),Cj=u9(),Lj=x9(),wj=g9(),Vj=y9(),jj=m9(),bj=d9(),Sj=r9(),Tj=a9(),Nj=s9(),uj=Y9(),_j=J9(),kj=l9(),xj=c9(),fj=f9(),hj=v9(),vj=N9(),gj=_9(),yj=A9(),mj=mY(),lj=cY()});var rY=Q((h2)=>{Object.defineProperty(h2,"__esModule",{value:!0});Object.defineProperty(h2,"GraphQLError",{enumerable:!0,get:function(){return H7.GraphQLError}});Object.defineProperty(h2,"formatError",{enumerable:!0,get:function(){return H7.formatError}});Object.defineProperty(h2,"locatedError",{enumerable:!0,get:function(){return dj.locatedError}});Object.defineProperty(h2,"printError",{enumerable:!0,get:function(){return H7.printError}});Object.defineProperty(h2,"syntaxError",{enumerable:!0,get:function(){return cj.syntaxError}});var H7=v(),cj=A6(),dj=P3()});var U7=Q((aY)=>{Object.defineProperty(aY,"__esModule",{value:!0});aY.getIntrospectionQuery=pj;function pj(D){let F={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...D},P=F.descriptions?"description":"",B=F.specifiedByUrl?"specifiedByURL":"",Z=F.directiveIsRepeatable?"isRepeatable":"",q=F.schemaDescription?P:"";function X(Y){return F.inputValueDeprecation?Y:""}let J=F.oneOf?"isOneOf":"";return`
78
+ `))}});var oJ=Q((iJ)=>{Object.defineProperty(iJ,"__esModule",{value:!0});iJ.memoize3=vw;function vw(D){let F;return function P(B,Z,q){if(F===void 0)F=new WeakMap;let X=F.get(B);if(X===void 0)X=new WeakMap,F.set(B,X);let J=X.get(Z);if(J===void 0)J=new WeakMap,X.set(Z,J);let Y=J.get(q);if(Y===void 0)Y=D(B,Z,q),J.set(q,Y);return Y}}});var eJ=Q((tJ)=>{Object.defineProperty(tJ,"__esModule",{value:!0});tJ.promiseForObject=yw;function yw(D){return Promise.all(Object.values(D)).then((F)=>{let P=Object.create(null);for(let[B,Z]of Object.keys(D).entries())P[Z]=F[B];return P})}});var FY=Q((DY)=>{Object.defineProperty(DY,"__esModule",{value:!0});DY.promiseReduce=cw;var lw=K6();function cw(D,F,P){let B=P;for(let Z of D)B=lw.isPromise(B)?B.then((q)=>F(q,Z)):F(B,Z);return B}});var ZY=Q((BY)=>{Object.defineProperty(BY,"__esModule",{value:!0});BY.toError=rw;var pw=PD();function rw(D){return D instanceof Error?D:new PY(D)}class PY extends Error{constructor(D){super("Unexpected error value: "+pw.inspect(D));this.name="NonErrorThrown",this.thrownValue=D}}});var P3=Q((qY)=>{Object.defineProperty(qY,"__esModule",{value:!0});qY.locatedError=iw;var sw=ZY(),nw=v();function iw(D,F,P){var B;let Z=sw.toError(D);if(ow(Z))return Z;return new nw.GraphQLError(Z.message,{nodes:(B=Z.nodes)!==null&&B!==void 0?B:F,source:Z.source,positions:Z.positions,path:P,originalError:Z})}function ow(D){return Array.isArray(D.path)}});var A1=Q((MY)=>{Object.defineProperty(MY,"__esModule",{value:!0});MY.assertValidExecutionArguments=zY;MY.buildExecutionContext=QY;MY.buildResolveInfo=RY;MY.defaultTypeResolver=MY.defaultFieldResolver=void 0;MY.execute=OY;MY.executeSync=qV;MY.getFieldDef=$Y;var e9=hD(),x2=PD(),ew=_D(),DV=l6(),P7=E0(),I0=K6(),FV=oJ(),f2=Q1(),XY=eJ(),PV=FY(),eD=v(),Z3=P3(),t9=A0(),JY=r(),B2=a(),R8=tD(),BV=O1(),UY=o6(),WY=G8(),ZV=FV.memoize3((D,F,P)=>UY.collectSubfields(D.schema,D.fragments,D.variableValues,F,P));function OY(D){arguments.length<2||e9.devAssert(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:F,document:P,variableValues:B,rootValue:Z}=D;zY(F,P,B);let q=QY(D);if(!("schema"in q))return{errors:q};try{let{operation:X}=q,J=XV(q,X,Z);if(I0.isPromise(J))return J.then((Y)=>B3(Y,q.errors),(Y)=>{return q.errors.push(Y),B3(null,q.errors)});return B3(J,q.errors)}catch(X){return q.errors.push(X),B3(null,q.errors)}}function qV(D){let F=OY(D);if(I0.isPromise(F))throw new Error("GraphQL execution failed to complete synchronously.");return F}function B3(D,F){return F.length===0?{data:D}:{errors:F,data:D}}function zY(D,F,P){F||e9.devAssert(!1,"Must provide document."),BV.assertValidSchema(D),P==null||P7.isObjectLike(P)||e9.devAssert(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function QY(D){var F,P;let{schema:B,document:Z,rootValue:q,contextValue:X,variableValues:J,operationName:Y,fieldResolver:H,typeResolver:W,subscribeFieldResolver:U}=D,O,z=Object.create(null);for(let $ of Z.definitions)switch($.kind){case JY.Kind.OPERATION_DEFINITION:if(Y==null){if(O!==void 0)return[new eD.GraphQLError("Must provide operation name if query contains multiple operations.")];O=$}else if(((F=$.name)===null||F===void 0?void 0:F.value)===Y)O=$;break;case JY.Kind.FRAGMENT_DEFINITION:z[$.name.value]=$;break;default:}if(!O){if(Y!=null)return[new eD.GraphQLError(`Unknown operation named "${Y}".`)];return[new eD.GraphQLError("Must provide an operation.")]}let I=(P=O.variableDefinitions)!==null&&P!==void 0?P:[],R=WY.getVariableValues(B,I,J!==null&&J!==void 0?J:{},{maxErrors:50});if(R.errors)return R.errors;return{schema:B,fragments:z,rootValue:q,contextValue:X,operation:O,variableValues:R.coerced,fieldResolver:H!==null&&H!==void 0?H:F7,typeResolver:W!==null&&W!==void 0?W:IY,subscribeFieldResolver:U!==null&&U!==void 0?U:F7,errors:[]}}function XV(D,F,P){let B=D.schema.getRootType(F.operation);if(B==null)throw new eD.GraphQLError(`Schema is not configured to execute ${F.operation} operation.`,{nodes:F});let Z=UY.collectFields(D.schema,D.fragments,D.variableValues,B,F.selectionSet),q=void 0;switch(F.operation){case t9.OperationTypeNode.QUERY:return q3(D,B,P,q,Z);case t9.OperationTypeNode.MUTATION:return JV(D,B,P,q,Z);case t9.OperationTypeNode.SUBSCRIPTION:return q3(D,B,P,q,Z)}}function JV(D,F,P,B,Z){return PV.promiseReduce(Z.entries(),(q,[X,J])=>{let Y=f2.addPath(B,X,F.name),H=GY(D,F,P,J,Y);if(H===void 0)return q;if(I0.isPromise(H))return H.then((W)=>{return q[X]=W,q});return q[X]=H,q},Object.create(null))}function q3(D,F,P,B,Z){let q=Object.create(null),X=!1;try{for(let[J,Y]of Z.entries()){let H=f2.addPath(B,J,F.name),W=GY(D,F,P,Y,H);if(W!==void 0){if(q[J]=W,I0.isPromise(W))X=!0}}}catch(J){if(X)return XY.promiseForObject(q).finally(()=>{throw J});throw J}if(!X)return q;return XY.promiseForObject(q)}function GY(D,F,P,B,Z){var q;let X=$Y(D.schema,F,B[0]);if(!X)return;let J=X.type,Y=(q=X.resolve)!==null&&q!==void 0?q:D.fieldResolver,H=RY(D,X,B,F,Z);try{let W=WY.getArgumentValues(X,B[0],D.variableValues),U=D.contextValue,O=Y(P,W,U,H),z;if(I0.isPromise(O))z=O.then((I)=>E1(D,J,B,H,Z,I));else z=E1(D,J,B,H,Z,O);if(I0.isPromise(z))return z.then(void 0,(I)=>{let R=Z3.locatedError(I,B,f2.pathToArray(Z));return X3(R,J,D)});return z}catch(W){let U=Z3.locatedError(W,B,f2.pathToArray(Z));return X3(U,J,D)}}function RY(D,F,P,B,Z){return{fieldName:F.name,fieldNodes:P,returnType:F.type,parentType:B,path:Z,schema:D.schema,fragments:D.fragments,rootValue:D.rootValue,operation:D.operation,variableValues:D.variableValues}}function X3(D,F,P){if(B2.isNonNullType(F))throw D;return P.errors.push(D),null}function E1(D,F,P,B,Z,q){if(q instanceof Error)throw q;if(B2.isNonNullType(F)){let X=E1(D,F.ofType,P,B,Z,q);if(X===null)throw new Error(`Cannot return null for non-nullable field ${B.parentType.name}.${B.fieldName}.`);return X}if(q==null)return null;if(B2.isListType(F))return YV(D,F,P,B,Z,q);if(B2.isLeafType(F))return HV(F,q);if(B2.isAbstractType(F))return UV(D,F,P,B,Z,q);if(B2.isObjectType(F))return D7(D,F,P,B,Z,q);ew.invariant(!1,"Cannot complete value of unexpected output type: "+x2.inspect(F))}function YV(D,F,P,B,Z,q){if(!DV.isIterableObject(q))throw new eD.GraphQLError(`Expected Iterable, but did not find one for field "${B.parentType.name}.${B.fieldName}".`);let X=F.ofType,J=!1,Y=Array.from(q,(H,W)=>{let U=f2.addPath(Z,W,void 0);try{let O;if(I0.isPromise(H))O=H.then((z)=>E1(D,X,P,B,U,z));else O=E1(D,X,P,B,U,H);if(I0.isPromise(O))return J=!0,O.then(void 0,(z)=>{let I=Z3.locatedError(z,P,f2.pathToArray(U));return X3(I,X,D)});return O}catch(O){let z=Z3.locatedError(O,P,f2.pathToArray(U));return X3(z,X,D)}});return J?Promise.all(Y):Y}function HV(D,F){let P=D.serialize(F);if(P==null)throw new Error(`Expected \`${x2.inspect(D)}.serialize(${x2.inspect(F)})\` to return non-nullable value, returned: ${x2.inspect(P)}`);return P}function UV(D,F,P,B,Z,q){var X;let J=(X=F.resolveType)!==null&&X!==void 0?X:D.typeResolver,Y=D.contextValue,H=J(q,Y,B,F);if(I0.isPromise(H))return H.then((W)=>D7(D,YY(W,D,F,P,B,q),P,B,Z,q));return D7(D,YY(H,D,F,P,B,q),P,B,Z,q)}function YY(D,F,P,B,Z,q){if(D==null)throw new eD.GraphQLError(`Abstract type "${P.name}" must resolve to an Object type at runtime for field "${Z.parentType.name}.${Z.fieldName}". Either the "${P.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,B);if(B2.isObjectType(D))throw new eD.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof D!=="string")throw new eD.GraphQLError(`Abstract type "${P.name}" must resolve to an Object type at runtime for field "${Z.parentType.name}.${Z.fieldName}" with value ${x2.inspect(q)}, received "${x2.inspect(D)}".`);let X=F.schema.getType(D);if(X==null)throw new eD.GraphQLError(`Abstract type "${P.name}" was resolved to a type "${D}" that does not exist inside the schema.`,{nodes:B});if(!B2.isObjectType(X))throw new eD.GraphQLError(`Abstract type "${P.name}" was resolved to a non-object type "${D}".`,{nodes:B});if(!F.schema.isSubType(P,X))throw new eD.GraphQLError(`Runtime Object type "${X.name}" is not a possible type for "${P.name}".`,{nodes:B});return X}function D7(D,F,P,B,Z,q){let X=ZV(D,F,P);if(F.isTypeOf){let J=F.isTypeOf(q,D.contextValue,B);if(I0.isPromise(J))return J.then((Y)=>{if(!Y)throw HY(F,q,P);return q3(D,F,q,Z,X)});if(!J)throw HY(F,q,P)}return q3(D,F,q,Z,X)}function HY(D,F,P){return new eD.GraphQLError(`Expected value of type "${D.name}" but got: ${x2.inspect(F)}.`,{nodes:P})}var IY=function(D,F,P,B){if(P7.isObjectLike(D)&&typeof D.__typename==="string")return D.__typename;let Z=P.schema.getPossibleTypes(B),q=[];for(let X=0;X<Z.length;X++){let J=Z[X];if(J.isTypeOf){let Y=J.isTypeOf(D,F,P);if(I0.isPromise(Y))q[X]=Y;else if(Y)return J.name}}if(q.length)return Promise.all(q).then((X)=>{for(let J=0;J<X.length;J++)if(X[J])return Z[J].name})};MY.defaultTypeResolver=IY;var F7=function(D,F,P,B){if(P7.isObjectLike(D)||typeof D==="function"){let Z=D[B.fieldName];if(typeof Z==="function")return D[B.fieldName](F,P,B);return Z}};MY.defaultFieldResolver=F7;function $Y(D,F,P){let B=P.name.value;if(B===R8.SchemaMetaFieldDef.name&&D.getQueryType()===F)return R8.SchemaMetaFieldDef;else if(B===R8.TypeMetaFieldDef.name&&D.getQueryType()===F)return R8.TypeMetaFieldDef;else if(B===R8.TypeNameMetaFieldDef.name)return R8.TypeNameMetaFieldDef;return F.getFields()[B]}});var CY=Q((AY)=>{Object.defineProperty(AY,"__esModule",{value:!0});AY.graphql=LV;AY.graphqlSync=wV;var $V=hD(),MV=K6(),KV=X8(),EV=O1(),AV=K1(),CV=A1();function LV(D){return new Promise((F)=>F(EY(D)))}function wV(D){let F=EY(D);if(MV.isPromise(F))throw new Error("GraphQL execution failed to complete synchronously.");return F}function EY(D){arguments.length<2||$V.devAssert(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:F,source:P,rootValue:B,contextValue:Z,variableValues:q,operationName:X,fieldResolver:J,typeResolver:Y}=D,H=EV.validateSchema(F);if(H.length>0)return{errors:H};let W;try{W=KV.parse(P)}catch(O){return{errors:[O]}}let U=AV.validate(F,W);if(U.length>0)return{errors:U};return CV.execute({schema:F,document:W,rootValue:B,contextValue:Z,variableValues:q,operationName:X,fieldResolver:J,typeResolver:Y})}});var VY=Q((C)=>{Object.defineProperty(C,"__esModule",{value:!0});Object.defineProperty(C,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return $0.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(C,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return c0.GRAPHQL_MAX_INT}});Object.defineProperty(C,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return c0.GRAPHQL_MIN_INT}});Object.defineProperty(C,"GraphQLBoolean",{enumerable:!0,get:function(){return c0.GraphQLBoolean}});Object.defineProperty(C,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return $0.GraphQLDeprecatedDirective}});Object.defineProperty(C,"GraphQLDirective",{enumerable:!0,get:function(){return $0.GraphQLDirective}});Object.defineProperty(C,"GraphQLEnumType",{enumerable:!0,get:function(){return g.GraphQLEnumType}});Object.defineProperty(C,"GraphQLFloat",{enumerable:!0,get:function(){return c0.GraphQLFloat}});Object.defineProperty(C,"GraphQLID",{enumerable:!0,get:function(){return c0.GraphQLID}});Object.defineProperty(C,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return $0.GraphQLIncludeDirective}});Object.defineProperty(C,"GraphQLInputObjectType",{enumerable:!0,get:function(){return g.GraphQLInputObjectType}});Object.defineProperty(C,"GraphQLInt",{enumerable:!0,get:function(){return c0.GraphQLInt}});Object.defineProperty(C,"GraphQLInterfaceType",{enumerable:!0,get:function(){return g.GraphQLInterfaceType}});Object.defineProperty(C,"GraphQLList",{enumerable:!0,get:function(){return g.GraphQLList}});Object.defineProperty(C,"GraphQLNonNull",{enumerable:!0,get:function(){return g.GraphQLNonNull}});Object.defineProperty(C,"GraphQLObjectType",{enumerable:!0,get:function(){return g.GraphQLObjectType}});Object.defineProperty(C,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return $0.GraphQLOneOfDirective}});Object.defineProperty(C,"GraphQLScalarType",{enumerable:!0,get:function(){return g.GraphQLScalarType}});Object.defineProperty(C,"GraphQLSchema",{enumerable:!0,get:function(){return B7.GraphQLSchema}});Object.defineProperty(C,"GraphQLSkipDirective",{enumerable:!0,get:function(){return $0.GraphQLSkipDirective}});Object.defineProperty(C,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return $0.GraphQLSpecifiedByDirective}});Object.defineProperty(C,"GraphQLString",{enumerable:!0,get:function(){return c0.GraphQLString}});Object.defineProperty(C,"GraphQLUnionType",{enumerable:!0,get:function(){return g.GraphQLUnionType}});Object.defineProperty(C,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return mD.SchemaMetaFieldDef}});Object.defineProperty(C,"TypeKind",{enumerable:!0,get:function(){return mD.TypeKind}});Object.defineProperty(C,"TypeMetaFieldDef",{enumerable:!0,get:function(){return mD.TypeMetaFieldDef}});Object.defineProperty(C,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return mD.TypeNameMetaFieldDef}});Object.defineProperty(C,"__Directive",{enumerable:!0,get:function(){return mD.__Directive}});Object.defineProperty(C,"__DirectiveLocation",{enumerable:!0,get:function(){return mD.__DirectiveLocation}});Object.defineProperty(C,"__EnumValue",{enumerable:!0,get:function(){return mD.__EnumValue}});Object.defineProperty(C,"__Field",{enumerable:!0,get:function(){return mD.__Field}});Object.defineProperty(C,"__InputValue",{enumerable:!0,get:function(){return mD.__InputValue}});Object.defineProperty(C,"__Schema",{enumerable:!0,get:function(){return mD.__Schema}});Object.defineProperty(C,"__Type",{enumerable:!0,get:function(){return mD.__Type}});Object.defineProperty(C,"__TypeKind",{enumerable:!0,get:function(){return mD.__TypeKind}});Object.defineProperty(C,"assertAbstractType",{enumerable:!0,get:function(){return g.assertAbstractType}});Object.defineProperty(C,"assertCompositeType",{enumerable:!0,get:function(){return g.assertCompositeType}});Object.defineProperty(C,"assertDirective",{enumerable:!0,get:function(){return $0.assertDirective}});Object.defineProperty(C,"assertEnumType",{enumerable:!0,get:function(){return g.assertEnumType}});Object.defineProperty(C,"assertEnumValueName",{enumerable:!0,get:function(){return wY.assertEnumValueName}});Object.defineProperty(C,"assertInputObjectType",{enumerable:!0,get:function(){return g.assertInputObjectType}});Object.defineProperty(C,"assertInputType",{enumerable:!0,get:function(){return g.assertInputType}});Object.defineProperty(C,"assertInterfaceType",{enumerable:!0,get:function(){return g.assertInterfaceType}});Object.defineProperty(C,"assertLeafType",{enumerable:!0,get:function(){return g.assertLeafType}});Object.defineProperty(C,"assertListType",{enumerable:!0,get:function(){return g.assertListType}});Object.defineProperty(C,"assertName",{enumerable:!0,get:function(){return wY.assertName}});Object.defineProperty(C,"assertNamedType",{enumerable:!0,get:function(){return g.assertNamedType}});Object.defineProperty(C,"assertNonNullType",{enumerable:!0,get:function(){return g.assertNonNullType}});Object.defineProperty(C,"assertNullableType",{enumerable:!0,get:function(){return g.assertNullableType}});Object.defineProperty(C,"assertObjectType",{enumerable:!0,get:function(){return g.assertObjectType}});Object.defineProperty(C,"assertOutputType",{enumerable:!0,get:function(){return g.assertOutputType}});Object.defineProperty(C,"assertScalarType",{enumerable:!0,get:function(){return g.assertScalarType}});Object.defineProperty(C,"assertSchema",{enumerable:!0,get:function(){return B7.assertSchema}});Object.defineProperty(C,"assertType",{enumerable:!0,get:function(){return g.assertType}});Object.defineProperty(C,"assertUnionType",{enumerable:!0,get:function(){return g.assertUnionType}});Object.defineProperty(C,"assertValidSchema",{enumerable:!0,get:function(){return LY.assertValidSchema}});Object.defineProperty(C,"assertWrappingType",{enumerable:!0,get:function(){return g.assertWrappingType}});Object.defineProperty(C,"getNamedType",{enumerable:!0,get:function(){return g.getNamedType}});Object.defineProperty(C,"getNullableType",{enumerable:!0,get:function(){return g.getNullableType}});Object.defineProperty(C,"introspectionTypes",{enumerable:!0,get:function(){return mD.introspectionTypes}});Object.defineProperty(C,"isAbstractType",{enumerable:!0,get:function(){return g.isAbstractType}});Object.defineProperty(C,"isCompositeType",{enumerable:!0,get:function(){return g.isCompositeType}});Object.defineProperty(C,"isDirective",{enumerable:!0,get:function(){return $0.isDirective}});Object.defineProperty(C,"isEnumType",{enumerable:!0,get:function(){return g.isEnumType}});Object.defineProperty(C,"isInputObjectType",{enumerable:!0,get:function(){return g.isInputObjectType}});Object.defineProperty(C,"isInputType",{enumerable:!0,get:function(){return g.isInputType}});Object.defineProperty(C,"isInterfaceType",{enumerable:!0,get:function(){return g.isInterfaceType}});Object.defineProperty(C,"isIntrospectionType",{enumerable:!0,get:function(){return mD.isIntrospectionType}});Object.defineProperty(C,"isLeafType",{enumerable:!0,get:function(){return g.isLeafType}});Object.defineProperty(C,"isListType",{enumerable:!0,get:function(){return g.isListType}});Object.defineProperty(C,"isNamedType",{enumerable:!0,get:function(){return g.isNamedType}});Object.defineProperty(C,"isNonNullType",{enumerable:!0,get:function(){return g.isNonNullType}});Object.defineProperty(C,"isNullableType",{enumerable:!0,get:function(){return g.isNullableType}});Object.defineProperty(C,"isObjectType",{enumerable:!0,get:function(){return g.isObjectType}});Object.defineProperty(C,"isOutputType",{enumerable:!0,get:function(){return g.isOutputType}});Object.defineProperty(C,"isRequiredArgument",{enumerable:!0,get:function(){return g.isRequiredArgument}});Object.defineProperty(C,"isRequiredInputField",{enumerable:!0,get:function(){return g.isRequiredInputField}});Object.defineProperty(C,"isScalarType",{enumerable:!0,get:function(){return g.isScalarType}});Object.defineProperty(C,"isSchema",{enumerable:!0,get:function(){return B7.isSchema}});Object.defineProperty(C,"isSpecifiedDirective",{enumerable:!0,get:function(){return $0.isSpecifiedDirective}});Object.defineProperty(C,"isSpecifiedScalarType",{enumerable:!0,get:function(){return c0.isSpecifiedScalarType}});Object.defineProperty(C,"isType",{enumerable:!0,get:function(){return g.isType}});Object.defineProperty(C,"isUnionType",{enumerable:!0,get:function(){return g.isUnionType}});Object.defineProperty(C,"isWrappingType",{enumerable:!0,get:function(){return g.isWrappingType}});Object.defineProperty(C,"resolveObjMapThunk",{enumerable:!0,get:function(){return g.resolveObjMapThunk}});Object.defineProperty(C,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return g.resolveReadonlyArrayThunk}});Object.defineProperty(C,"specifiedDirectives",{enumerable:!0,get:function(){return $0.specifiedDirectives}});Object.defineProperty(C,"specifiedScalarTypes",{enumerable:!0,get:function(){return c0.specifiedScalarTypes}});Object.defineProperty(C,"validateSchema",{enumerable:!0,get:function(){return LY.validateSchema}});var B7=T2(),g=a(),$0=gD(),c0=w0(),mD=tD(),LY=O1(),wY=t8()});var bY=Q((o)=>{Object.defineProperty(o,"__esModule",{value:!0});Object.defineProperty(o,"BREAK",{enumerable:!0,get:function(){return C1.BREAK}});Object.defineProperty(o,"DirectiveLocation",{enumerable:!0,get:function(){return kV.DirectiveLocation}});Object.defineProperty(o,"Kind",{enumerable:!0,get:function(){return TV.Kind}});Object.defineProperty(o,"Lexer",{enumerable:!0,get:function(){return uV.Lexer}});Object.defineProperty(o,"Location",{enumerable:!0,get:function(){return Z7.Location}});Object.defineProperty(o,"OperationTypeNode",{enumerable:!0,get:function(){return Z7.OperationTypeNode}});Object.defineProperty(o,"Source",{enumerable:!0,get:function(){return bV.Source}});Object.defineProperty(o,"Token",{enumerable:!0,get:function(){return Z7.Token}});Object.defineProperty(o,"TokenKind",{enumerable:!0,get:function(){return NV.TokenKind}});Object.defineProperty(o,"getEnterLeaveForKind",{enumerable:!0,get:function(){return C1.getEnterLeaveForKind}});Object.defineProperty(o,"getLocation",{enumerable:!0,get:function(){return SV.getLocation}});Object.defineProperty(o,"getVisitFn",{enumerable:!0,get:function(){return C1.getVisitFn}});Object.defineProperty(o,"isConstValueNode",{enumerable:!0,get:function(){return S0.isConstValueNode}});Object.defineProperty(o,"isDefinitionNode",{enumerable:!0,get:function(){return S0.isDefinitionNode}});Object.defineProperty(o,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return S0.isExecutableDefinitionNode}});Object.defineProperty(o,"isSelectionNode",{enumerable:!0,get:function(){return S0.isSelectionNode}});Object.defineProperty(o,"isTypeDefinitionNode",{enumerable:!0,get:function(){return S0.isTypeDefinitionNode}});Object.defineProperty(o,"isTypeExtensionNode",{enumerable:!0,get:function(){return S0.isTypeExtensionNode}});Object.defineProperty(o,"isTypeNode",{enumerable:!0,get:function(){return S0.isTypeNode}});Object.defineProperty(o,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return S0.isTypeSystemDefinitionNode}});Object.defineProperty(o,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return S0.isTypeSystemExtensionNode}});Object.defineProperty(o,"isValueNode",{enumerable:!0,get:function(){return S0.isValueNode}});Object.defineProperty(o,"parse",{enumerable:!0,get:function(){return J3.parse}});Object.defineProperty(o,"parseConstValue",{enumerable:!0,get:function(){return J3.parseConstValue}});Object.defineProperty(o,"parseType",{enumerable:!0,get:function(){return J3.parseType}});Object.defineProperty(o,"parseValue",{enumerable:!0,get:function(){return J3.parseValue}});Object.defineProperty(o,"print",{enumerable:!0,get:function(){return _V.print}});Object.defineProperty(o,"printLocation",{enumerable:!0,get:function(){return jY.printLocation}});Object.defineProperty(o,"printSourceLocation",{enumerable:!0,get:function(){return jY.printSourceLocation}});Object.defineProperty(o,"visit",{enumerable:!0,get:function(){return C1.visit}});Object.defineProperty(o,"visitInParallel",{enumerable:!0,get:function(){return C1.visitInParallel}});var bV=j6(),SV=E6(),jY=P4(),TV=r(),NV=r8(),uV=w6(),J3=X8(),_V=rD(),C1=L2(),Z7=A0(),S0=u2(),kV=B8()});var TY=Q((SY)=>{Object.defineProperty(SY,"__esModule",{value:!0});SY.isAsyncIterable=xV;function xV(D){return typeof(D===null||D===void 0?void 0:D[Symbol.asyncIterator])==="function"}});var uY=Q((NY)=>{Object.defineProperty(NY,"__esModule",{value:!0});NY.mapAsyncIterator=hV;function hV(D,F){let P=D[Symbol.asyncIterator]();async function B(Z){if(Z.done)return Z;try{return{value:await F(Z.value),done:!1}}catch(q){if(typeof P.return==="function")try{await P.return()}catch(X){}throw q}}return{async next(){return B(await P.next())},async return(){return typeof P.return==="function"?B(await P.return()):{value:void 0,done:!0}},async throw(Z){if(typeof P.throw==="function")return B(await P.throw(Z));throw Z},[Symbol.asyncIterator](){return this}}}});var hY=Q((fY)=>{Object.defineProperty(fY,"__esModule",{value:!0});fY.createSourceEventStream=xY;fY.subscribe=pV;var gV=hD(),yV=PD(),kY=TY(),_Y=Q1(),q7=v(),mV=P3(),lV=o6(),L1=A1(),cV=uY(),dV=G8();async function pV(D){arguments.length<2||gV.devAssert(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let F=await xY(D);if(!kY.isAsyncIterable(F))return F;let P=(B)=>L1.execute({...D,rootValue:B});return cV.mapAsyncIterator(F,P)}function rV(D){let F=D[0];if(F&&"document"in F)return F;return{schema:F,document:D[1],rootValue:D[2],contextValue:D[3],variableValues:D[4],operationName:D[5],subscribeFieldResolver:D[6]}}async function xY(...D){let F=rV(D),{schema:P,document:B,variableValues:Z}=F;L1.assertValidExecutionArguments(P,B,Z);let q=L1.buildExecutionContext(F);if(!("schema"in q))return{errors:q};try{let X=await aV(q);if(!kY.isAsyncIterable(X))throw new Error(`Subscription field must return Async Iterable. Received: ${yV.inspect(X)}.`);return X}catch(X){if(X instanceof q7.GraphQLError)return{errors:[X]};throw X}}async function aV(D){let{schema:F,fragments:P,operation:B,variableValues:Z,rootValue:q}=D,X=F.getSubscriptionType();if(X==null)throw new q7.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:B});let J=lV.collectFields(F,P,Z,X,B.selectionSet),[Y,H]=[...J.entries()][0],W=L1.getFieldDef(F,X,H[0]);if(!W){let I=H[0].name.value;throw new q7.GraphQLError(`The subscription field "${I}" is not defined.`,{nodes:H})}let U=_Y.addPath(void 0,Y,X.name),O=L1.buildResolveInfo(D,W,H,X,U);try{var z;let I=dV.getArgumentValues(W,H[0],Z),R=D.contextValue,E=await((z=W.subscribe)!==null&&z!==void 0?z:D.subscribeFieldResolver)(q,I,R,O);if(E instanceof Error)throw E;return E}catch(I){throw mV.locatedError(I,H,_Y.pathToArray(U))}}});var gY=Q((D0)=>{Object.defineProperty(D0,"__esModule",{value:!0});Object.defineProperty(D0,"createSourceEventStream",{enumerable:!0,get:function(){return vY.createSourceEventStream}});Object.defineProperty(D0,"defaultFieldResolver",{enumerable:!0,get:function(){return Y3.defaultFieldResolver}});Object.defineProperty(D0,"defaultTypeResolver",{enumerable:!0,get:function(){return Y3.defaultTypeResolver}});Object.defineProperty(D0,"execute",{enumerable:!0,get:function(){return Y3.execute}});Object.defineProperty(D0,"executeSync",{enumerable:!0,get:function(){return Y3.executeSync}});Object.defineProperty(D0,"getArgumentValues",{enumerable:!0,get:function(){return X7.getArgumentValues}});Object.defineProperty(D0,"getDirectiveValues",{enumerable:!0,get:function(){return X7.getDirectiveValues}});Object.defineProperty(D0,"getVariableValues",{enumerable:!0,get:function(){return X7.getVariableValues}});Object.defineProperty(D0,"responsePathAsArray",{enumerable:!0,get:function(){return iV.pathToArray}});Object.defineProperty(D0,"subscribe",{enumerable:!0,get:function(){return vY.subscribe}});var iV=Q1(),Y3=A1(),vY=hY(),X7=G8()});var mY=Q((yY)=>{Object.defineProperty(yY,"__esModule",{value:!0});yY.NoDeprecatedCustomRule=oV;var J7=_D(),w1=v(),Y7=a();function oV(D){return{Field(F){let P=D.getFieldDef(),B=P===null||P===void 0?void 0:P.deprecationReason;if(P&&B!=null){let Z=D.getParentType();Z!=null||J7.invariant(!1),D.reportError(new w1.GraphQLError(`The field ${Z.name}.${P.name} is deprecated. ${B}`,{nodes:F}))}},Argument(F){let P=D.getArgument(),B=P===null||P===void 0?void 0:P.deprecationReason;if(P&&B!=null){let Z=D.getDirective();if(Z!=null)D.reportError(new w1.GraphQLError(`Directive "@${Z.name}" argument "${P.name}" is deprecated. ${B}`,{nodes:F}));else{let q=D.getParentType(),X=D.getFieldDef();q!=null&&X!=null||J7.invariant(!1),D.reportError(new w1.GraphQLError(`Field "${q.name}.${X.name}" argument "${P.name}" is deprecated. ${B}`,{nodes:F}))}}},ObjectField(F){let P=Y7.getNamedType(D.getParentInputType());if(Y7.isInputObjectType(P)){let B=P.getFields()[F.name.value],Z=B===null||B===void 0?void 0:B.deprecationReason;if(Z!=null)D.reportError(new w1.GraphQLError(`The input field ${P.name}.${B.name} is deprecated. ${Z}`,{nodes:F}))}},EnumValue(F){let P=D.getEnumValue(),B=P===null||P===void 0?void 0:P.deprecationReason;if(P&&B!=null){let Z=Y7.getNamedType(D.getInputType());Z!=null||J7.invariant(!1),D.reportError(new w1.GraphQLError(`The enum value "${Z.name}.${P.name}" is deprecated. ${B}`,{nodes:F}))}}}}});var cY=Q((lY)=>{Object.defineProperty(lY,"__esModule",{value:!0});lY.NoSchemaIntrospectionCustomRule=Pj;var eV=v(),Dj=a(),Fj=tD();function Pj(D){return{Field(F){let P=Dj.getNamedType(D.getType());if(P&&Fj.isIntrospectionType(P))D.reportError(new eV.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${F.name.value}".`,{nodes:F}))}}}});var pY=Q((l)=>{Object.defineProperty(l,"__esModule",{value:!0});Object.defineProperty(l,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return Xj.ExecutableDefinitionsRule}});Object.defineProperty(l,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return Jj.FieldsOnCorrectTypeRule}});Object.defineProperty(l,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return Yj.FragmentsOnCompositeTypesRule}});Object.defineProperty(l,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return Hj.KnownArgumentNamesRule}});Object.defineProperty(l,"KnownDirectivesRule",{enumerable:!0,get:function(){return Uj.KnownDirectivesRule}});Object.defineProperty(l,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return Wj.KnownFragmentNamesRule}});Object.defineProperty(l,"KnownTypeNamesRule",{enumerable:!0,get:function(){return Oj.KnownTypeNamesRule}});Object.defineProperty(l,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return zj.LoneAnonymousOperationRule}});Object.defineProperty(l,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return _j.LoneSchemaDefinitionRule}});Object.defineProperty(l,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return uj.MaxIntrospectionDepthRule}});Object.defineProperty(l,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return mj.NoDeprecatedCustomRule}});Object.defineProperty(l,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return Qj.NoFragmentCyclesRule}});Object.defineProperty(l,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return lj.NoSchemaIntrospectionCustomRule}});Object.defineProperty(l,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return Gj.NoUndefinedVariablesRule}});Object.defineProperty(l,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return Rj.NoUnusedFragmentsRule}});Object.defineProperty(l,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return Ij.NoUnusedVariablesRule}});Object.defineProperty(l,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return $j.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(l,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Mj.PossibleFragmentSpreadsRule}});Object.defineProperty(l,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return yj.PossibleTypeExtensionsRule}});Object.defineProperty(l,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Kj.ProvidedRequiredArgumentsRule}});Object.defineProperty(l,"ScalarLeafsRule",{enumerable:!0,get:function(){return Ej.ScalarLeafsRule}});Object.defineProperty(l,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Aj.SingleFieldSubscriptionsRule}});Object.defineProperty(l,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return vj.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(l,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Cj.UniqueArgumentNamesRule}});Object.defineProperty(l,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return gj.UniqueDirectiveNamesRule}});Object.defineProperty(l,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return Lj.UniqueDirectivesPerLocationRule}});Object.defineProperty(l,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return fj.UniqueEnumValueNamesRule}});Object.defineProperty(l,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return hj.UniqueFieldDefinitionNamesRule}});Object.defineProperty(l,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return wj.UniqueFragmentNamesRule}});Object.defineProperty(l,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return Vj.UniqueInputFieldNamesRule}});Object.defineProperty(l,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return jj.UniqueOperationNamesRule}});Object.defineProperty(l,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return kj.UniqueOperationTypesRule}});Object.defineProperty(l,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return xj.UniqueTypeNamesRule}});Object.defineProperty(l,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return bj.UniqueVariableNamesRule}});Object.defineProperty(l,"ValidationContext",{enumerable:!0,get:function(){return qj.ValidationContext}});Object.defineProperty(l,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return Sj.ValuesOfCorrectTypeRule}});Object.defineProperty(l,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return Tj.VariablesAreInputTypesRule}});Object.defineProperty(l,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Nj.VariablesInAllowedPositionRule}});Object.defineProperty(l,"recommendedRules",{enumerable:!0,get:function(){return dY.recommendedRules}});Object.defineProperty(l,"specifiedRules",{enumerable:!0,get:function(){return dY.specifiedRules}});Object.defineProperty(l,"validate",{enumerable:!0,get:function(){return Zj.validate}});var Zj=K1(),qj=i9(),dY=n9(),Xj=i4(),Jj=o4(),Yj=t4(),Hj=e4(),Uj=P9(),Wj=B9(),Oj=q9(),zj=X9(),Qj=H9(),Gj=U9(),Rj=W9(),Ij=O9(),$j=M9(),Mj=E9(),Kj=L9(),Ej=w9(),Aj=T9(),Cj=u9(),Lj=x9(),wj=g9(),Vj=y9(),jj=m9(),bj=d9(),Sj=r9(),Tj=a9(),Nj=s9(),uj=Y9(),_j=J9(),kj=l9(),xj=c9(),fj=f9(),hj=v9(),vj=N9(),gj=_9(),yj=A9(),mj=mY(),lj=cY()});var rY=Q((h2)=>{Object.defineProperty(h2,"__esModule",{value:!0});Object.defineProperty(h2,"GraphQLError",{enumerable:!0,get:function(){return H7.GraphQLError}});Object.defineProperty(h2,"formatError",{enumerable:!0,get:function(){return H7.formatError}});Object.defineProperty(h2,"locatedError",{enumerable:!0,get:function(){return dj.locatedError}});Object.defineProperty(h2,"printError",{enumerable:!0,get:function(){return H7.printError}});Object.defineProperty(h2,"syntaxError",{enumerable:!0,get:function(){return cj.syntaxError}});var H7=v(),cj=A6(),dj=P3()});var U7=Q((aY)=>{Object.defineProperty(aY,"__esModule",{value:!0});aY.getIntrospectionQuery=pj;function pj(D){let F={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...D},P=F.descriptions?"description":"",B=F.specifiedByUrl?"specifiedByURL":"",Z=F.directiveIsRepeatable?"isRepeatable":"",q=F.schemaDescription?P:"";function X(Y){return F.inputValueDeprecation?Y:""}let J=F.oneOf?"isOneOf":"";return`
79
79
  query IntrospectionQuery {
80
80
  __schema {
81
81
  ${q}
@@ -181,7 +181,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
181
181
  }
182
182
  }
183
183
  }
184
- `}});var nY=Q((sY)=>{Object.defineProperty(sY,"__esModule",{value:!0});sY.getOperationAST=sj;var aj=r();function sj(D,F){let P=null;for(let Z of D.definitions)if(Z.kind===aj.Kind.OPERATION_DEFINITION){var B;if(F==null){if(P)return null;P=Z}else if(((B=Z.name)===null||B===void 0?void 0:B.value)===F)return Z}return P}});var oY=Q((iY)=>{Object.defineProperty(iY,"__esModule",{value:!0});iY.getOperationRootType=ij;var H3=v();function ij(D,F){if(F.operation==="query"){let P=D.getQueryType();if(!P)throw new H3.GraphQLError("Schema does not define the required query root type.",{nodes:F});return P}if(F.operation==="mutation"){let P=D.getMutationType();if(!P)throw new H3.GraphQLError("Schema is not configured for mutations.",{nodes:F});return P}if(F.operation==="subscription"){let P=D.getSubscriptionType();if(!P)throw new H3.GraphQLError("Schema is not configured for subscriptions.",{nodes:F});return P}throw new H3.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:F})}});var eY=Q((tY)=>{Object.defineProperty(tY,"__esModule",{value:!0});tY.introspectionFromSchema=Pb;var tj=_D(),ej=X8(),Db=E1(),Fb=U7();function Pb(D,F){let P={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...F},B=ej.parse(Fb.getIntrospectionQuery(P)),Z=Db.executeSync({schema:D,document:B});return!Z.errors&&Z.data||tj.invariant(!1),Z.data}});var PH=Q((FH)=>{Object.defineProperty(FH,"__esModule",{value:!0});FH.buildClientSchema=Ub;var Zb=hD(),aD=PD(),DH=E0(),U3=n8(),qb=X8(),sD=a(),Xb=gD(),T0=tD(),Jb=w0(),Yb=T2(),Hb=I1();function Ub(D,F){DH.isObjectLike(D)&&DH.isObjectLike(D.__schema)||Zb.devAssert(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${aD.inspect(D)}.`);let P=D.__schema,B=U3.keyValMap(P.types,(M)=>M.name,(M)=>O(M));for(let M of[...Jb.specifiedScalarTypes,...T0.introspectionTypes])if(B[M.name])B[M.name]=M;let Z=P.queryType?W(P.queryType):null,q=P.mutationType?W(P.mutationType):null,X=P.subscriptionType?W(P.subscriptionType):null,J=P.directives?P.directives.map(j):[];return new Yb.GraphQLSchema({description:P.description,query:Z,mutation:q,subscription:X,types:Object.values(B),directives:J,assumeValid:F===null||F===void 0?void 0:F.assumeValid});function Y(M){if(M.kind===T0.TypeKind.LIST){let k=M.ofType;if(!k)throw new Error("Decorated type deeper than introspection query.");return new sD.GraphQLList(Y(k))}if(M.kind===T0.TypeKind.NON_NULL){let k=M.ofType;if(!k)throw new Error("Decorated type deeper than introspection query.");let QD=Y(k);return new sD.GraphQLNonNull(sD.assertNullableType(QD))}return H(M)}function H(M){let k=M.name;if(!k)throw new Error(`Unknown type reference: ${aD.inspect(M)}.`);let QD=B[k];if(!QD)throw new Error(`Invalid or incomplete schema, unknown type: ${k}. Ensure that a full introspection query is used in order to build a client schema.`);return QD}function W(M){return sD.assertObjectType(H(M))}function U(M){return sD.assertInterfaceType(H(M))}function O(M){if(M!=null&&M.name!=null&&M.kind!=null)switch(M.kind){case T0.TypeKind.SCALAR:return z(M);case T0.TypeKind.OBJECT:return R(M);case T0.TypeKind.INTERFACE:return $(M);case T0.TypeKind.UNION:return E(M);case T0.TypeKind.ENUM:return w(M);case T0.TypeKind.INPUT_OBJECT:return A(M)}let k=aD.inspect(M);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${k}.`)}function z(M){return new sD.GraphQLScalarType({name:M.name,description:M.description,specifiedByURL:M.specifiedByURL})}function I(M){if(M.interfaces===null&&M.kind===T0.TypeKind.INTERFACE)return[];if(!M.interfaces){let k=aD.inspect(M);throw new Error(`Introspection result missing interfaces: ${k}.`)}return M.interfaces.map(U)}function R(M){return new sD.GraphQLObjectType({name:M.name,description:M.description,interfaces:()=>I(M),fields:()=>S(M)})}function $(M){return new sD.GraphQLInterfaceType({name:M.name,description:M.description,interfaces:()=>I(M),fields:()=>S(M)})}function E(M){if(!M.possibleTypes){let k=aD.inspect(M);throw new Error(`Introspection result missing possibleTypes: ${k}.`)}return new sD.GraphQLUnionType({name:M.name,description:M.description,types:()=>M.possibleTypes.map(W)})}function w(M){if(!M.enumValues){let k=aD.inspect(M);throw new Error(`Introspection result missing enumValues: ${k}.`)}return new sD.GraphQLEnumType({name:M.name,description:M.description,values:U3.keyValMap(M.enumValues,(k)=>k.name,(k)=>({description:k.description,deprecationReason:k.deprecationReason}))})}function A(M){if(!M.inputFields){let k=aD.inspect(M);throw new Error(`Introspection result missing inputFields: ${k}.`)}return new sD.GraphQLInputObjectType({name:M.name,description:M.description,fields:()=>T(M.inputFields),isOneOf:M.isOneOf})}function S(M){if(!M.fields)throw new Error(`Introspection result missing fields: ${aD.inspect(M)}.`);return U3.keyValMap(M.fields,(k)=>k.name,V)}function V(M){let k=Y(M.type);if(!sD.isOutputType(k)){let QD=aD.inspect(k);throw new Error(`Introspection must provide output type for fields, but received: ${QD}.`)}if(!M.args){let QD=aD.inspect(M);throw new Error(`Introspection result missing field args: ${QD}.`)}return{description:M.description,deprecationReason:M.deprecationReason,type:k,args:T(M.args)}}function T(M){return U3.keyValMap(M,(k)=>k.name,m)}function m(M){let k=Y(M.type);if(!sD.isInputType(k)){let BD=aD.inspect(k);throw new Error(`Introspection must provide input type for arguments, but received: ${BD}.`)}let QD=M.defaultValue!=null?Hb.valueFromAST(qb.parseValue(M.defaultValue),k):void 0;return{description:M.description,type:k,defaultValue:QD,deprecationReason:M.deprecationReason}}function j(M){if(!M.args){let k=aD.inspect(M);throw new Error(`Introspection result missing directive args: ${k}.`)}if(!M.locations){let k=aD.inspect(M);throw new Error(`Introspection result missing directive locations: ${k}.`)}return new Xb.GraphQLDirective({name:M.name,description:M.description,isRepeatable:M.isRepeatable,locations:M.locations.slice(),args:T(M.args)})}}});var O7=Q((WH)=>{Object.defineProperty(WH,"__esModule",{value:!0});WH.extendSchema=Ib;WH.extendSchemaImpl=UH;var Ob=hD(),zb=PD(),Qb=_D(),Gb=t0(),w1=R4(),F0=r(),BH=u2(),zD=a(),V1=gD(),YH=tD(),HH=w0(),ZH=T2(),Rb=M1(),W7=G8(),qH=I1();function Ib(D,F,P){if(ZH.assertSchema(D),F!=null&&F.kind===F0.Kind.DOCUMENT||Ob.devAssert(!1,"Must provide valid Document AST."),(P===null||P===void 0?void 0:P.assumeValid)!==!0&&(P===null||P===void 0?void 0:P.assumeValidSDL)!==!0)Rb.assertValidSDLExtension(F,D);let B=D.toConfig(),Z=UH(B,F,P);return B===Z?D:new ZH.GraphQLSchema(Z)}function UH(D,F,P){var B,Z,q,X;let J=[],Y=Object.create(null),H=[],W,U=[];for(let K of F.definitions)if(K.kind===F0.Kind.SCHEMA_DEFINITION)W=K;else if(K.kind===F0.Kind.SCHEMA_EXTENSION)U.push(K);else if(BH.isTypeDefinitionNode(K))J.push(K);else if(BH.isTypeExtensionNode(K)){let x=K.name.value,N=Y[x];Y[x]=N?N.concat([K]):[K]}else if(K.kind===F0.Kind.DIRECTIVE_DEFINITION)H.push(K);if(Object.keys(Y).length===0&&J.length===0&&H.length===0&&U.length===0&&W==null)return D;let O=Object.create(null);for(let K of D.types)O[K.name]=w(K);for(let K of J){var z;let x=K.name.value;O[x]=(z=XH[x])!==null&&z!==void 0?z:PG(K)}let I={query:D.query&&$(D.query),mutation:D.mutation&&$(D.mutation),subscription:D.subscription&&$(D.subscription),...W&&QD([W]),...QD(U)};return{description:(B=W)===null||B===void 0?void 0:(Z=B.description)===null||Z===void 0?void 0:Z.value,...I,types:Object.values(O),directives:[...D.directives.map(E),...H.map(FG)],extensions:Object.create(null),astNode:(q=W)!==null&&q!==void 0?q:D.astNode,extensionASTNodes:D.extensionASTNodes.concat(U),assumeValid:(X=P===null||P===void 0?void 0:P.assumeValid)!==null&&X!==void 0?X:!1};function R(K){if(zD.isListType(K))return new zD.GraphQLList(R(K.ofType));if(zD.isNonNullType(K))return new zD.GraphQLNonNull(R(K.ofType));return $(K)}function $(K){return O[K.name]}function E(K){let x=K.toConfig();return new V1.GraphQLDirective({...x,args:w1.mapValue(x.args,k)})}function w(K){if(YH.isIntrospectionType(K)||HH.isSpecifiedScalarType(K))return K;if(zD.isScalarType(K))return V(K);if(zD.isObjectType(K))return T(K);if(zD.isInterfaceType(K))return m(K);if(zD.isUnionType(K))return j(K);if(zD.isEnumType(K))return S(K);if(zD.isInputObjectType(K))return A(K);Qb.invariant(!1,"Unexpected type: "+zb.inspect(K))}function A(K){var x;let N=K.toConfig(),h=(x=Y[N.name])!==null&&x!==void 0?x:[];return new zD.GraphQLInputObjectType({...N,fields:()=>({...w1.mapValue(N.fields,(JD)=>({...JD,type:R(JD.type)})),...yP(h)}),extensionASTNodes:N.extensionASTNodes.concat(h)})}function S(K){var x;let N=K.toConfig(),h=(x=Y[K.name])!==null&&x!==void 0?x:[];return new zD.GraphQLEnumType({...N,values:{...N.values,...mP(h)},extensionASTNodes:N.extensionASTNodes.concat(h)})}function V(K){var x;let N=K.toConfig(),h=(x=Y[N.name])!==null&&x!==void 0?x:[],JD=N.specifiedByURL;for(let HD of h){var AD;JD=(AD=JH(HD))!==null&&AD!==void 0?AD:JD}return new zD.GraphQLScalarType({...N,specifiedByURL:JD,extensionASTNodes:N.extensionASTNodes.concat(h)})}function T(K){var x;let N=K.toConfig(),h=(x=Y[N.name])!==null&&x!==void 0?x:[];return new zD.GraphQLObjectType({...N,interfaces:()=>[...K.getInterfaces().map($),...I6(h)],fields:()=>({...w1.mapValue(N.fields,M),...R6(h)}),extensionASTNodes:N.extensionASTNodes.concat(h)})}function m(K){var x;let N=K.toConfig(),h=(x=Y[N.name])!==null&&x!==void 0?x:[];return new zD.GraphQLInterfaceType({...N,interfaces:()=>[...K.getInterfaces().map($),...I6(h)],fields:()=>({...w1.mapValue(N.fields,M),...R6(h)}),extensionASTNodes:N.extensionASTNodes.concat(h)})}function j(K){var x;let N=K.toConfig(),h=(x=Y[N.name])!==null&&x!==void 0?x:[];return new zD.GraphQLUnionType({...N,types:()=>[...K.getTypes().map($),...lP(h)],extensionASTNodes:N.extensionASTNodes.concat(h)})}function M(K){return{...K,type:R(K.type),args:K.args&&w1.mapValue(K.args,k)}}function k(K){return{...K,type:R(K.type)}}function QD(K){let x={};for(let h of K){var N;let JD=(N=h.operationTypes)!==null&&N!==void 0?N:[];for(let AD of JD)x[AD.operation]=BD(AD.type)}return x}function BD(K){var x;let N=K.name.value,h=(x=XH[N])!==null&&x!==void 0?x:O[N];if(h===void 0)throw new Error(`Unknown type: "${N}".`);return h}function i0(K){if(K.kind===F0.Kind.LIST_TYPE)return new zD.GraphQLList(i0(K.type));if(K.kind===F0.Kind.NON_NULL_TYPE)return new zD.GraphQLNonNull(i0(K.type));return BD(K)}function FG(K){var x;return new V1.GraphQLDirective({name:K.name.value,description:(x=K.description)===null||x===void 0?void 0:x.value,locations:K.locations.map(({value:N})=>N),isRepeatable:K.repeatable,args:gP(K.arguments),astNode:K})}function R6(K){let x=Object.create(null);for(let JD of K){var N;let AD=(N=JD.fields)!==null&&N!==void 0?N:[];for(let HD of AD){var h;x[HD.name.value]={type:i0(HD.type),description:(h=HD.description)===null||h===void 0?void 0:h.value,args:gP(HD.arguments),deprecationReason:W3(HD),astNode:HD}}}return x}function gP(K){let x=K!==null&&K!==void 0?K:[],N=Object.create(null);for(let JD of x){var h;let AD=i0(JD.type);N[JD.name.value]={type:AD,description:(h=JD.description)===null||h===void 0?void 0:h.value,defaultValue:qH.valueFromAST(JD.defaultValue,AD),deprecationReason:W3(JD),astNode:JD}}return N}function yP(K){let x=Object.create(null);for(let JD of K){var N;let AD=(N=JD.fields)!==null&&N!==void 0?N:[];for(let HD of AD){var h;let P8=i0(HD.type);x[HD.name.value]={type:P8,description:(h=HD.description)===null||h===void 0?void 0:h.value,defaultValue:qH.valueFromAST(HD.defaultValue,P8),deprecationReason:W3(HD),astNode:HD}}}return x}function mP(K){let x=Object.create(null);for(let JD of K){var N;let AD=(N=JD.values)!==null&&N!==void 0?N:[];for(let HD of AD){var h;x[HD.name.value]={description:(h=HD.description)===null||h===void 0?void 0:h.value,deprecationReason:W3(HD),astNode:HD}}}return x}function I6(K){return K.flatMap((x)=>{var N,h;return(N=(h=x.interfaces)===null||h===void 0?void 0:h.map(BD))!==null&&N!==void 0?N:[]})}function lP(K){return K.flatMap((x)=>{var N,h;return(N=(h=x.types)===null||h===void 0?void 0:h.map(BD))!==null&&N!==void 0?N:[]})}function PG(K){var x;let N=K.name.value,h=(x=Y[N])!==null&&x!==void 0?x:[];switch(K.kind){case F0.Kind.OBJECT_TYPE_DEFINITION:{var JD;let H0=[K,...h];return new zD.GraphQLObjectType({name:N,description:(JD=K.description)===null||JD===void 0?void 0:JD.value,interfaces:()=>I6(H0),fields:()=>R6(H0),astNode:K,extensionASTNodes:h})}case F0.Kind.INTERFACE_TYPE_DEFINITION:{var AD;let H0=[K,...h];return new zD.GraphQLInterfaceType({name:N,description:(AD=K.description)===null||AD===void 0?void 0:AD.value,interfaces:()=>I6(H0),fields:()=>R6(H0),astNode:K,extensionASTNodes:h})}case F0.Kind.ENUM_TYPE_DEFINITION:{var HD;let H0=[K,...h];return new zD.GraphQLEnumType({name:N,description:(HD=K.description)===null||HD===void 0?void 0:HD.value,values:mP(H0),astNode:K,extensionASTNodes:h})}case F0.Kind.UNION_TYPE_DEFINITION:{var P8;let H0=[K,...h];return new zD.GraphQLUnionType({name:N,description:(P8=K.description)===null||P8===void 0?void 0:P8.value,types:()=>lP(H0),astNode:K,extensionASTNodes:h})}case F0.Kind.SCALAR_TYPE_DEFINITION:{var a5;return new zD.GraphQLScalarType({name:N,description:(a5=K.description)===null||a5===void 0?void 0:a5.value,specifiedByURL:JH(K),astNode:K,extensionASTNodes:h})}case F0.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var s5;let H0=[K,...h];return new zD.GraphQLInputObjectType({name:N,description:(s5=K.description)===null||s5===void 0?void 0:s5.value,fields:()=>yP(H0),astNode:K,extensionASTNodes:h,isOneOf:$b(K)})}}}}var XH=Gb.keyMap([...HH.specifiedScalarTypes,...YH.introspectionTypes],(D)=>D.name);function W3(D){let F=W7.getDirectiveValues(V1.GraphQLDeprecatedDirective,D);return F===null||F===void 0?void 0:F.reason}function JH(D){let F=W7.getDirectiveValues(V1.GraphQLSpecifiedByDirective,D);return F===null||F===void 0?void 0:F.url}function $b(D){return Boolean(W7.getDirectiveValues(V1.GraphQLOneOfDirective,D))}});var QH=Q((zH)=>{Object.defineProperty(zH,"__esModule",{value:!0});zH.buildASTSchema=OH;zH.buildSchema=bb;var Eb=hD(),Ab=r(),Cb=X8(),Lb=gD(),wb=T2(),Vb=M1(),jb=O7();function OH(D,F){if(D!=null&&D.kind===Ab.Kind.DOCUMENT||Eb.devAssert(!1,"Must provide valid Document AST."),(F===null||F===void 0?void 0:F.assumeValid)!==!0&&(F===null||F===void 0?void 0:F.assumeValidSDL)!==!0)Vb.assertValidSDL(D);let P={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},B=jb.extendSchemaImpl(P,D,F);if(B.astNode==null)for(let q of B.types)switch(q.name){case"Query":B.query=q;break;case"Mutation":B.mutation=q;break;case"Subscription":B.subscription=q;break}let Z=[...B.directives,...Lb.specifiedDirectives.filter((q)=>B.directives.every((X)=>X.name!==q.name))];return new wb.GraphQLSchema({...B,directives:Z})}function bb(D,F){let P=Cb.parse(D,{noLocation:F===null||F===void 0?void 0:F.noLocation,allowLegacyFragmentVariables:F===null||F===void 0?void 0:F.allowLegacyFragmentVariables});return OH(P,{assumeValidSDL:F===null||F===void 0?void 0:F.assumeValidSDL,assumeValid:F===null||F===void 0?void 0:F.assumeValid})}});var $H=Q((IH)=>{Object.defineProperty(IH,"__esModule",{value:!0});IH.lexicographicSortSchema=hb;var Nb=PD(),ub=_D(),_b=n8(),GH=i8(),vD=a(),kb=gD(),xb=tD(),fb=T2();function hb(D){let F=D.toConfig(),P=_b.keyValMap(z7(F.types),(O)=>O.name,U);return new fb.GraphQLSchema({...F,types:Object.values(P),directives:z7(F.directives).map(X),query:q(F.query),mutation:q(F.mutation),subscription:q(F.subscription)});function B(O){if(vD.isListType(O))return new vD.GraphQLList(B(O.ofType));else if(vD.isNonNullType(O))return new vD.GraphQLNonNull(B(O.ofType));return Z(O)}function Z(O){return P[O.name]}function q(O){return O&&Z(O)}function X(O){let z=O.toConfig();return new kb.GraphQLDirective({...z,locations:RH(z.locations,(I)=>I),args:J(z.args)})}function J(O){return O3(O,(z)=>({...z,type:B(z.type)}))}function Y(O){return O3(O,(z)=>({...z,type:B(z.type),args:z.args&&J(z.args)}))}function H(O){return O3(O,(z)=>({...z,type:B(z.type)}))}function W(O){return z7(O).map(Z)}function U(O){if(vD.isScalarType(O)||xb.isIntrospectionType(O))return O;if(vD.isObjectType(O)){let z=O.toConfig();return new vD.GraphQLObjectType({...z,interfaces:()=>W(z.interfaces),fields:()=>Y(z.fields)})}if(vD.isInterfaceType(O)){let z=O.toConfig();return new vD.GraphQLInterfaceType({...z,interfaces:()=>W(z.interfaces),fields:()=>Y(z.fields)})}if(vD.isUnionType(O)){let z=O.toConfig();return new vD.GraphQLUnionType({...z,types:()=>W(z.types)})}if(vD.isEnumType(O)){let z=O.toConfig();return new vD.GraphQLEnumType({...z,values:O3(z.values,(I)=>I)})}if(vD.isInputObjectType(O)){let z=O.toConfig();return new vD.GraphQLInputObjectType({...z,fields:()=>H(z.fields)})}ub.invariant(!1,"Unexpected type: "+Nb.inspect(O))}}function O3(D,F){let P=Object.create(null);for(let B of Object.keys(D).sort(GH.naturalCompare))P[B]=F(D[B]);return P}function z7(D){return RH(D,(F)=>F.name)}function RH(D,F){return D.slice().sort((P,B)=>{let Z=F(P),q=F(B);return GH.naturalCompare(Z,q)})}});var VH=Q((wH)=>{Object.defineProperty(wH,"__esModule",{value:!0});wH.printIntrospectionSchema=pb;wH.printSchema=db;wH.printType=EH;var gb=PD(),yb=_D(),mb=d8(),G7=r(),z3=rD(),I8=a(),R7=gD(),MH=tD(),lb=w0(),cb=Y1();function db(D){return KH(D,(F)=>!R7.isSpecifiedDirective(F),rb)}function pb(D){return KH(D,R7.isSpecifiedDirective,MH.isIntrospectionType)}function rb(D){return!lb.isSpecifiedScalarType(D)&&!MH.isIntrospectionType(D)}function KH(D,F,P){let B=D.getDirectives().filter(F),Z=Object.values(D.getTypeMap()).filter(P);return[ab(D),...B.map((q)=>FS(q)),...Z.map((q)=>EH(q))].filter(Boolean).join(`
184
+ `}});var nY=Q((sY)=>{Object.defineProperty(sY,"__esModule",{value:!0});sY.getOperationAST=sj;var aj=r();function sj(D,F){let P=null;for(let Z of D.definitions)if(Z.kind===aj.Kind.OPERATION_DEFINITION){var B;if(F==null){if(P)return null;P=Z}else if(((B=Z.name)===null||B===void 0?void 0:B.value)===F)return Z}return P}});var oY=Q((iY)=>{Object.defineProperty(iY,"__esModule",{value:!0});iY.getOperationRootType=ij;var H3=v();function ij(D,F){if(F.operation==="query"){let P=D.getQueryType();if(!P)throw new H3.GraphQLError("Schema does not define the required query root type.",{nodes:F});return P}if(F.operation==="mutation"){let P=D.getMutationType();if(!P)throw new H3.GraphQLError("Schema is not configured for mutations.",{nodes:F});return P}if(F.operation==="subscription"){let P=D.getSubscriptionType();if(!P)throw new H3.GraphQLError("Schema is not configured for subscriptions.",{nodes:F});return P}throw new H3.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:F})}});var eY=Q((tY)=>{Object.defineProperty(tY,"__esModule",{value:!0});tY.introspectionFromSchema=Pb;var tj=_D(),ej=X8(),Db=A1(),Fb=U7();function Pb(D,F){let P={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...F},B=ej.parse(Fb.getIntrospectionQuery(P)),Z=Db.executeSync({schema:D,document:B});return!Z.errors&&Z.data||tj.invariant(!1),Z.data}});var PH=Q((FH)=>{Object.defineProperty(FH,"__esModule",{value:!0});FH.buildClientSchema=Ub;var Zb=hD(),aD=PD(),DH=E0(),U3=i8(),qb=X8(),sD=a(),Xb=gD(),T0=tD(),Jb=w0(),Yb=T2(),Hb=$1();function Ub(D,F){DH.isObjectLike(D)&&DH.isObjectLike(D.__schema)||Zb.devAssert(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${aD.inspect(D)}.`);let P=D.__schema,B=U3.keyValMap(P.types,(M)=>M.name,(M)=>O(M));for(let M of[...Jb.specifiedScalarTypes,...T0.introspectionTypes])if(B[M.name])B[M.name]=M;let Z=P.queryType?W(P.queryType):null,q=P.mutationType?W(P.mutationType):null,X=P.subscriptionType?W(P.subscriptionType):null,J=P.directives?P.directives.map(j):[];return new Yb.GraphQLSchema({description:P.description,query:Z,mutation:q,subscription:X,types:Object.values(B),directives:J,assumeValid:F===null||F===void 0?void 0:F.assumeValid});function Y(M){if(M.kind===T0.TypeKind.LIST){let k=M.ofType;if(!k)throw new Error("Decorated type deeper than introspection query.");return new sD.GraphQLList(Y(k))}if(M.kind===T0.TypeKind.NON_NULL){let k=M.ofType;if(!k)throw new Error("Decorated type deeper than introspection query.");let QD=Y(k);return new sD.GraphQLNonNull(sD.assertNullableType(QD))}return H(M)}function H(M){let k=M.name;if(!k)throw new Error(`Unknown type reference: ${aD.inspect(M)}.`);let QD=B[k];if(!QD)throw new Error(`Invalid or incomplete schema, unknown type: ${k}. Ensure that a full introspection query is used in order to build a client schema.`);return QD}function W(M){return sD.assertObjectType(H(M))}function U(M){return sD.assertInterfaceType(H(M))}function O(M){if(M!=null&&M.name!=null&&M.kind!=null)switch(M.kind){case T0.TypeKind.SCALAR:return z(M);case T0.TypeKind.OBJECT:return R(M);case T0.TypeKind.INTERFACE:return $(M);case T0.TypeKind.UNION:return E(M);case T0.TypeKind.ENUM:return w(M);case T0.TypeKind.INPUT_OBJECT:return A(M)}let k=aD.inspect(M);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${k}.`)}function z(M){return new sD.GraphQLScalarType({name:M.name,description:M.description,specifiedByURL:M.specifiedByURL})}function I(M){if(M.interfaces===null&&M.kind===T0.TypeKind.INTERFACE)return[];if(!M.interfaces){let k=aD.inspect(M);throw new Error(`Introspection result missing interfaces: ${k}.`)}return M.interfaces.map(U)}function R(M){return new sD.GraphQLObjectType({name:M.name,description:M.description,interfaces:()=>I(M),fields:()=>S(M)})}function $(M){return new sD.GraphQLInterfaceType({name:M.name,description:M.description,interfaces:()=>I(M),fields:()=>S(M)})}function E(M){if(!M.possibleTypes){let k=aD.inspect(M);throw new Error(`Introspection result missing possibleTypes: ${k}.`)}return new sD.GraphQLUnionType({name:M.name,description:M.description,types:()=>M.possibleTypes.map(W)})}function w(M){if(!M.enumValues){let k=aD.inspect(M);throw new Error(`Introspection result missing enumValues: ${k}.`)}return new sD.GraphQLEnumType({name:M.name,description:M.description,values:U3.keyValMap(M.enumValues,(k)=>k.name,(k)=>({description:k.description,deprecationReason:k.deprecationReason}))})}function A(M){if(!M.inputFields){let k=aD.inspect(M);throw new Error(`Introspection result missing inputFields: ${k}.`)}return new sD.GraphQLInputObjectType({name:M.name,description:M.description,fields:()=>T(M.inputFields),isOneOf:M.isOneOf})}function S(M){if(!M.fields)throw new Error(`Introspection result missing fields: ${aD.inspect(M)}.`);return U3.keyValMap(M.fields,(k)=>k.name,V)}function V(M){let k=Y(M.type);if(!sD.isOutputType(k)){let QD=aD.inspect(k);throw new Error(`Introspection must provide output type for fields, but received: ${QD}.`)}if(!M.args){let QD=aD.inspect(M);throw new Error(`Introspection result missing field args: ${QD}.`)}return{description:M.description,deprecationReason:M.deprecationReason,type:k,args:T(M.args)}}function T(M){return U3.keyValMap(M,(k)=>k.name,m)}function m(M){let k=Y(M.type);if(!sD.isInputType(k)){let BD=aD.inspect(k);throw new Error(`Introspection must provide input type for arguments, but received: ${BD}.`)}let QD=M.defaultValue!=null?Hb.valueFromAST(qb.parseValue(M.defaultValue),k):void 0;return{description:M.description,type:k,defaultValue:QD,deprecationReason:M.deprecationReason}}function j(M){if(!M.args){let k=aD.inspect(M);throw new Error(`Introspection result missing directive args: ${k}.`)}if(!M.locations){let k=aD.inspect(M);throw new Error(`Introspection result missing directive locations: ${k}.`)}return new Xb.GraphQLDirective({name:M.name,description:M.description,isRepeatable:M.isRepeatable,locations:M.locations.slice(),args:T(M.args)})}}});var O7=Q((WH)=>{Object.defineProperty(WH,"__esModule",{value:!0});WH.extendSchema=Ib;WH.extendSchemaImpl=UH;var Ob=hD(),zb=PD(),Qb=_D(),Gb=t0(),V1=R4(),F0=r(),BH=u2(),zD=a(),j1=gD(),YH=tD(),HH=w0(),ZH=T2(),Rb=K1(),W7=G8(),qH=$1();function Ib(D,F,P){if(ZH.assertSchema(D),F!=null&&F.kind===F0.Kind.DOCUMENT||Ob.devAssert(!1,"Must provide valid Document AST."),(P===null||P===void 0?void 0:P.assumeValid)!==!0&&(P===null||P===void 0?void 0:P.assumeValidSDL)!==!0)Rb.assertValidSDLExtension(F,D);let B=D.toConfig(),Z=UH(B,F,P);return B===Z?D:new ZH.GraphQLSchema(Z)}function UH(D,F,P){var B,Z,q,X;let J=[],Y=Object.create(null),H=[],W,U=[];for(let K of F.definitions)if(K.kind===F0.Kind.SCHEMA_DEFINITION)W=K;else if(K.kind===F0.Kind.SCHEMA_EXTENSION)U.push(K);else if(BH.isTypeDefinitionNode(K))J.push(K);else if(BH.isTypeExtensionNode(K)){let x=K.name.value,N=Y[x];Y[x]=N?N.concat([K]):[K]}else if(K.kind===F0.Kind.DIRECTIVE_DEFINITION)H.push(K);if(Object.keys(Y).length===0&&J.length===0&&H.length===0&&U.length===0&&W==null)return D;let O=Object.create(null);for(let K of D.types)O[K.name]=w(K);for(let K of J){var z;let x=K.name.value;O[x]=(z=XH[x])!==null&&z!==void 0?z:PG(K)}let I={query:D.query&&$(D.query),mutation:D.mutation&&$(D.mutation),subscription:D.subscription&&$(D.subscription),...W&&QD([W]),...QD(U)};return{description:(B=W)===null||B===void 0?void 0:(Z=B.description)===null||Z===void 0?void 0:Z.value,...I,types:Object.values(O),directives:[...D.directives.map(E),...H.map(FG)],extensions:Object.create(null),astNode:(q=W)!==null&&q!==void 0?q:D.astNode,extensionASTNodes:D.extensionASTNodes.concat(U),assumeValid:(X=P===null||P===void 0?void 0:P.assumeValid)!==null&&X!==void 0?X:!1};function R(K){if(zD.isListType(K))return new zD.GraphQLList(R(K.ofType));if(zD.isNonNullType(K))return new zD.GraphQLNonNull(R(K.ofType));return $(K)}function $(K){return O[K.name]}function E(K){let x=K.toConfig();return new j1.GraphQLDirective({...x,args:V1.mapValue(x.args,k)})}function w(K){if(YH.isIntrospectionType(K)||HH.isSpecifiedScalarType(K))return K;if(zD.isScalarType(K))return V(K);if(zD.isObjectType(K))return T(K);if(zD.isInterfaceType(K))return m(K);if(zD.isUnionType(K))return j(K);if(zD.isEnumType(K))return S(K);if(zD.isInputObjectType(K))return A(K);Qb.invariant(!1,"Unexpected type: "+zb.inspect(K))}function A(K){var x;let N=K.toConfig(),h=(x=Y[N.name])!==null&&x!==void 0?x:[];return new zD.GraphQLInputObjectType({...N,fields:()=>({...V1.mapValue(N.fields,(JD)=>({...JD,type:R(JD.type)})),...yP(h)}),extensionASTNodes:N.extensionASTNodes.concat(h)})}function S(K){var x;let N=K.toConfig(),h=(x=Y[K.name])!==null&&x!==void 0?x:[];return new zD.GraphQLEnumType({...N,values:{...N.values,...mP(h)},extensionASTNodes:N.extensionASTNodes.concat(h)})}function V(K){var x;let N=K.toConfig(),h=(x=Y[N.name])!==null&&x!==void 0?x:[],JD=N.specifiedByURL;for(let HD of h){var AD;JD=(AD=JH(HD))!==null&&AD!==void 0?AD:JD}return new zD.GraphQLScalarType({...N,specifiedByURL:JD,extensionASTNodes:N.extensionASTNodes.concat(h)})}function T(K){var x;let N=K.toConfig(),h=(x=Y[N.name])!==null&&x!==void 0?x:[];return new zD.GraphQLObjectType({...N,interfaces:()=>[...K.getInterfaces().map($),...I6(h)],fields:()=>({...V1.mapValue(N.fields,M),...R6(h)}),extensionASTNodes:N.extensionASTNodes.concat(h)})}function m(K){var x;let N=K.toConfig(),h=(x=Y[N.name])!==null&&x!==void 0?x:[];return new zD.GraphQLInterfaceType({...N,interfaces:()=>[...K.getInterfaces().map($),...I6(h)],fields:()=>({...V1.mapValue(N.fields,M),...R6(h)}),extensionASTNodes:N.extensionASTNodes.concat(h)})}function j(K){var x;let N=K.toConfig(),h=(x=Y[N.name])!==null&&x!==void 0?x:[];return new zD.GraphQLUnionType({...N,types:()=>[...K.getTypes().map($),...lP(h)],extensionASTNodes:N.extensionASTNodes.concat(h)})}function M(K){return{...K,type:R(K.type),args:K.args&&V1.mapValue(K.args,k)}}function k(K){return{...K,type:R(K.type)}}function QD(K){let x={};for(let h of K){var N;let JD=(N=h.operationTypes)!==null&&N!==void 0?N:[];for(let AD of JD)x[AD.operation]=BD(AD.type)}return x}function BD(K){var x;let N=K.name.value,h=(x=XH[N])!==null&&x!==void 0?x:O[N];if(h===void 0)throw new Error(`Unknown type: "${N}".`);return h}function i0(K){if(K.kind===F0.Kind.LIST_TYPE)return new zD.GraphQLList(i0(K.type));if(K.kind===F0.Kind.NON_NULL_TYPE)return new zD.GraphQLNonNull(i0(K.type));return BD(K)}function FG(K){var x;return new j1.GraphQLDirective({name:K.name.value,description:(x=K.description)===null||x===void 0?void 0:x.value,locations:K.locations.map(({value:N})=>N),isRepeatable:K.repeatable,args:gP(K.arguments),astNode:K})}function R6(K){let x=Object.create(null);for(let JD of K){var N;let AD=(N=JD.fields)!==null&&N!==void 0?N:[];for(let HD of AD){var h;x[HD.name.value]={type:i0(HD.type),description:(h=HD.description)===null||h===void 0?void 0:h.value,args:gP(HD.arguments),deprecationReason:W3(HD),astNode:HD}}}return x}function gP(K){let x=K!==null&&K!==void 0?K:[],N=Object.create(null);for(let JD of x){var h;let AD=i0(JD.type);N[JD.name.value]={type:AD,description:(h=JD.description)===null||h===void 0?void 0:h.value,defaultValue:qH.valueFromAST(JD.defaultValue,AD),deprecationReason:W3(JD),astNode:JD}}return N}function yP(K){let x=Object.create(null);for(let JD of K){var N;let AD=(N=JD.fields)!==null&&N!==void 0?N:[];for(let HD of AD){var h;let P8=i0(HD.type);x[HD.name.value]={type:P8,description:(h=HD.description)===null||h===void 0?void 0:h.value,defaultValue:qH.valueFromAST(HD.defaultValue,P8),deprecationReason:W3(HD),astNode:HD}}}return x}function mP(K){let x=Object.create(null);for(let JD of K){var N;let AD=(N=JD.values)!==null&&N!==void 0?N:[];for(let HD of AD){var h;x[HD.name.value]={description:(h=HD.description)===null||h===void 0?void 0:h.value,deprecationReason:W3(HD),astNode:HD}}}return x}function I6(K){return K.flatMap((x)=>{var N,h;return(N=(h=x.interfaces)===null||h===void 0?void 0:h.map(BD))!==null&&N!==void 0?N:[]})}function lP(K){return K.flatMap((x)=>{var N,h;return(N=(h=x.types)===null||h===void 0?void 0:h.map(BD))!==null&&N!==void 0?N:[]})}function PG(K){var x;let N=K.name.value,h=(x=Y[N])!==null&&x!==void 0?x:[];switch(K.kind){case F0.Kind.OBJECT_TYPE_DEFINITION:{var JD;let H0=[K,...h];return new zD.GraphQLObjectType({name:N,description:(JD=K.description)===null||JD===void 0?void 0:JD.value,interfaces:()=>I6(H0),fields:()=>R6(H0),astNode:K,extensionASTNodes:h})}case F0.Kind.INTERFACE_TYPE_DEFINITION:{var AD;let H0=[K,...h];return new zD.GraphQLInterfaceType({name:N,description:(AD=K.description)===null||AD===void 0?void 0:AD.value,interfaces:()=>I6(H0),fields:()=>R6(H0),astNode:K,extensionASTNodes:h})}case F0.Kind.ENUM_TYPE_DEFINITION:{var HD;let H0=[K,...h];return new zD.GraphQLEnumType({name:N,description:(HD=K.description)===null||HD===void 0?void 0:HD.value,values:mP(H0),astNode:K,extensionASTNodes:h})}case F0.Kind.UNION_TYPE_DEFINITION:{var P8;let H0=[K,...h];return new zD.GraphQLUnionType({name:N,description:(P8=K.description)===null||P8===void 0?void 0:P8.value,types:()=>lP(H0),astNode:K,extensionASTNodes:h})}case F0.Kind.SCALAR_TYPE_DEFINITION:{var a5;return new zD.GraphQLScalarType({name:N,description:(a5=K.description)===null||a5===void 0?void 0:a5.value,specifiedByURL:JH(K),astNode:K,extensionASTNodes:h})}case F0.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var s5;let H0=[K,...h];return new zD.GraphQLInputObjectType({name:N,description:(s5=K.description)===null||s5===void 0?void 0:s5.value,fields:()=>yP(H0),astNode:K,extensionASTNodes:h,isOneOf:$b(K)})}}}}var XH=Gb.keyMap([...HH.specifiedScalarTypes,...YH.introspectionTypes],(D)=>D.name);function W3(D){let F=W7.getDirectiveValues(j1.GraphQLDeprecatedDirective,D);return F===null||F===void 0?void 0:F.reason}function JH(D){let F=W7.getDirectiveValues(j1.GraphQLSpecifiedByDirective,D);return F===null||F===void 0?void 0:F.url}function $b(D){return Boolean(W7.getDirectiveValues(j1.GraphQLOneOfDirective,D))}});var QH=Q((zH)=>{Object.defineProperty(zH,"__esModule",{value:!0});zH.buildASTSchema=OH;zH.buildSchema=bb;var Eb=hD(),Ab=r(),Cb=X8(),Lb=gD(),wb=T2(),Vb=K1(),jb=O7();function OH(D,F){if(D!=null&&D.kind===Ab.Kind.DOCUMENT||Eb.devAssert(!1,"Must provide valid Document AST."),(F===null||F===void 0?void 0:F.assumeValid)!==!0&&(F===null||F===void 0?void 0:F.assumeValidSDL)!==!0)Vb.assertValidSDL(D);let P={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},B=jb.extendSchemaImpl(P,D,F);if(B.astNode==null)for(let q of B.types)switch(q.name){case"Query":B.query=q;break;case"Mutation":B.mutation=q;break;case"Subscription":B.subscription=q;break}let Z=[...B.directives,...Lb.specifiedDirectives.filter((q)=>B.directives.every((X)=>X.name!==q.name))];return new wb.GraphQLSchema({...B,directives:Z})}function bb(D,F){let P=Cb.parse(D,{noLocation:F===null||F===void 0?void 0:F.noLocation,allowLegacyFragmentVariables:F===null||F===void 0?void 0:F.allowLegacyFragmentVariables});return OH(P,{assumeValidSDL:F===null||F===void 0?void 0:F.assumeValidSDL,assumeValid:F===null||F===void 0?void 0:F.assumeValid})}});var $H=Q((IH)=>{Object.defineProperty(IH,"__esModule",{value:!0});IH.lexicographicSortSchema=hb;var Nb=PD(),ub=_D(),_b=i8(),GH=o8(),vD=a(),kb=gD(),xb=tD(),fb=T2();function hb(D){let F=D.toConfig(),P=_b.keyValMap(z7(F.types),(O)=>O.name,U);return new fb.GraphQLSchema({...F,types:Object.values(P),directives:z7(F.directives).map(X),query:q(F.query),mutation:q(F.mutation),subscription:q(F.subscription)});function B(O){if(vD.isListType(O))return new vD.GraphQLList(B(O.ofType));else if(vD.isNonNullType(O))return new vD.GraphQLNonNull(B(O.ofType));return Z(O)}function Z(O){return P[O.name]}function q(O){return O&&Z(O)}function X(O){let z=O.toConfig();return new kb.GraphQLDirective({...z,locations:RH(z.locations,(I)=>I),args:J(z.args)})}function J(O){return O3(O,(z)=>({...z,type:B(z.type)}))}function Y(O){return O3(O,(z)=>({...z,type:B(z.type),args:z.args&&J(z.args)}))}function H(O){return O3(O,(z)=>({...z,type:B(z.type)}))}function W(O){return z7(O).map(Z)}function U(O){if(vD.isScalarType(O)||xb.isIntrospectionType(O))return O;if(vD.isObjectType(O)){let z=O.toConfig();return new vD.GraphQLObjectType({...z,interfaces:()=>W(z.interfaces),fields:()=>Y(z.fields)})}if(vD.isInterfaceType(O)){let z=O.toConfig();return new vD.GraphQLInterfaceType({...z,interfaces:()=>W(z.interfaces),fields:()=>Y(z.fields)})}if(vD.isUnionType(O)){let z=O.toConfig();return new vD.GraphQLUnionType({...z,types:()=>W(z.types)})}if(vD.isEnumType(O)){let z=O.toConfig();return new vD.GraphQLEnumType({...z,values:O3(z.values,(I)=>I)})}if(vD.isInputObjectType(O)){let z=O.toConfig();return new vD.GraphQLInputObjectType({...z,fields:()=>H(z.fields)})}ub.invariant(!1,"Unexpected type: "+Nb.inspect(O))}}function O3(D,F){let P=Object.create(null);for(let B of Object.keys(D).sort(GH.naturalCompare))P[B]=F(D[B]);return P}function z7(D){return RH(D,(F)=>F.name)}function RH(D,F){return D.slice().sort((P,B)=>{let Z=F(P),q=F(B);return GH.naturalCompare(Z,q)})}});var VH=Q((wH)=>{Object.defineProperty(wH,"__esModule",{value:!0});wH.printIntrospectionSchema=pb;wH.printSchema=db;wH.printType=EH;var gb=PD(),yb=_D(),mb=p8(),G7=r(),z3=rD(),I8=a(),R7=gD(),MH=tD(),lb=w0(),cb=H1();function db(D){return KH(D,(F)=>!R7.isSpecifiedDirective(F),rb)}function pb(D){return KH(D,R7.isSpecifiedDirective,MH.isIntrospectionType)}function rb(D){return!lb.isSpecifiedScalarType(D)&&!MH.isIntrospectionType(D)}function KH(D,F,P){let B=D.getDirectives().filter(F),Z=Object.values(D.getTypeMap()).filter(P);return[ab(D),...B.map((q)=>FS(q)),...Z.map((q)=>EH(q))].filter(Boolean).join(`
185
185
 
186
186
  `)}function ab(D){if(D.description==null&&sb(D))return;let F=[],P=D.getQueryType();if(P)F.push(` query: ${P.name}`);let B=D.getMutationType();if(B)F.push(` mutation: ${B.name}`);let Z=D.getSubscriptionType();if(Z)F.push(` subscription: ${Z.name}`);return P0(D)+`schema {
187
187
  ${F.join(`
@@ -195,28 +195,28 @@ ${F.join(`
195
195
  `+F+")"}function Q7(D){let F=cb.astFromValue(D.defaultValue,D.type),P=D.name+": "+String(D.type);if(F)P+=` = ${z3.print(F)}`;return P+$7(D.deprecationReason)}function FS(D){return P0(D)+"directive @"+D.name+LH(D.args)+(D.isRepeatable?" repeatable":"")+" on "+D.locations.join(" | ")}function $7(D){if(D==null)return"";if(D!==R7.DEFAULT_DEPRECATION_REASON)return` @deprecated(reason: ${z3.print({kind:G7.Kind.STRING,value:D})})`;return" @deprecated"}function PS(D){if(D.specifiedByURL==null)return"";return` @specifiedBy(url: ${z3.print({kind:G7.Kind.STRING,value:D.specifiedByURL})})`}function P0(D,F="",P=!0){let{description:B}=D;if(B==null)return"";let Z=z3.print({kind:G7.Kind.STRING,value:B,block:mb.isPrintableAsBlockString(B)});return(F&&!P?`
196
196
  `+F:F)+Z.replace(/\n/g,`
197
197
  `+F)+`
198
- `}});var bH=Q((jH)=>{Object.defineProperty(jH,"__esModule",{value:!0});jH.concatAST=JS;var XS=r();function JS(D){let F=[];for(let P of D)F.push(...P.definitions);return{kind:XS.Kind.DOCUMENT,definitions:F}}});var uH=Q((NH)=>{Object.defineProperty(NH,"__esModule",{value:!0});NH.separateOperations=US;var Q3=r(),HS=L2();function US(D){let F=[],P=Object.create(null);for(let Z of D.definitions)switch(Z.kind){case Q3.Kind.OPERATION_DEFINITION:F.push(Z);break;case Q3.Kind.FRAGMENT_DEFINITION:P[Z.name.value]=SH(Z.selectionSet);break;default:}let B=Object.create(null);for(let Z of F){let q=new Set;for(let J of SH(Z.selectionSet))TH(q,P,J);let X=Z.name?Z.name.value:"";B[X]={kind:Q3.Kind.DOCUMENT,definitions:D.definitions.filter((J)=>J===Z||J.kind===Q3.Kind.FRAGMENT_DEFINITION&&q.has(J.name.value))}}return B}function TH(D,F,P){if(!D.has(P)){D.add(P);let B=F[P];if(B!==void 0)for(let Z of B)TH(D,F,Z)}}function SH(D){let F=[];return HS.visit(D,{FragmentSpread(P){F.push(P.name.value)}}),F}});var fH=Q((xH)=>{Object.defineProperty(xH,"__esModule",{value:!0});xH.stripIgnoredCharacters=zS;var OS=d8(),_H=w6(),kH=j6(),M7=p8();function zS(D){let F=kH.isSource(D)?D:new kH.Source(D),P=F.body,B=new _H.Lexer(F),Z="",q=!1;while(B.advance().kind!==M7.TokenKind.EOF){let X=B.token,J=X.kind,Y=!_H.isPunctuatorTokenKind(X.kind);if(q){if(Y||X.kind===M7.TokenKind.SPREAD)Z+=" "}let H=P.slice(X.start,X.end);if(J===M7.TokenKind.BLOCK_STRING)Z+=OS.printBlockString(X.value,{minimize:!0});else Z+=H;q=Y}return Z}});var gH=Q((vH)=>{Object.defineProperty(vH,"__esModule",{value:!0});vH.assertValidName=$S;vH.isValidNameError=hH;var GS=hD(),RS=v(),IS=o8();function $S(D){let F=hH(D);if(F)throw F;return D}function hH(D){if(typeof D==="string"||GS.devAssert(!1,"Expected name to be a string."),D.startsWith("__"))return new RS.GraphQLError(`Name "${D}" must not begin with "__", which is reserved by GraphQL introspection.`);try{IS.assertName(D)}catch(F){return F}}});var nH=Q((aH)=>{Object.defineProperty(aH,"__esModule",{value:!0});aH.DangerousChangeType=aH.BreakingChangeType=void 0;aH.findBreakingChanges=VS;aH.findDangerousChanges=jS;var ES=PD(),pH=_D(),yH=t0(),AS=rD(),e=a(),CS=w0(),LS=Y1(),wS=Q9(),$D;aH.BreakingChangeType=$D;(function(D){D.TYPE_REMOVED="TYPE_REMOVED",D.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",D.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",D.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",D.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",D.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",D.FIELD_REMOVED="FIELD_REMOVED",D.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",D.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",D.ARG_REMOVED="ARG_REMOVED",D.ARG_CHANGED_KIND="ARG_CHANGED_KIND",D.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",D.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",D.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",D.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",D.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})($D||(aH.BreakingChangeType=$D={}));var M0;aH.DangerousChangeType=M0;(function(D){D.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",D.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",D.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",D.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",D.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",D.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(M0||(aH.DangerousChangeType=M0={}));function VS(D,F){return rH(D,F).filter((P)=>(P.type in $D))}function jS(D,F){return rH(D,F).filter((P)=>(P.type in M0))}function rH(D,F){return[...SS(D,F),...bS(D,F)]}function bS(D,F){let P=[],B=d0(D.getDirectives(),F.getDirectives());for(let Z of B.removed)P.push({type:$D.DIRECTIVE_REMOVED,description:`${Z.name} was removed.`});for(let[Z,q]of B.persisted){let X=d0(Z.args,q.args);for(let J of X.added)if(e.isRequiredArgument(J))P.push({type:$D.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${J.name} on directive ${Z.name} was added.`});for(let J of X.removed)P.push({type:$D.DIRECTIVE_ARG_REMOVED,description:`${J.name} was removed from ${Z.name}.`});if(Z.isRepeatable&&!q.isRepeatable)P.push({type:$D.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${Z.name}.`});for(let J of Z.locations)if(!q.locations.includes(J))P.push({type:$D.DIRECTIVE_LOCATION_REMOVED,description:`${J} was removed from ${Z.name}.`})}return P}function SS(D,F){let P=[],B=d0(Object.values(D.getTypeMap()),Object.values(F.getTypeMap()));for(let Z of B.removed)P.push({type:$D.TYPE_REMOVED,description:CS.isSpecifiedScalarType(Z)?`Standard scalar ${Z.name} was removed because it is not referenced anymore.`:`${Z.name} was removed.`});for(let[Z,q]of B.persisted)if(e.isEnumType(Z)&&e.isEnumType(q))P.push(...uS(Z,q));else if(e.isUnionType(Z)&&e.isUnionType(q))P.push(...NS(Z,q));else if(e.isInputObjectType(Z)&&e.isInputObjectType(q))P.push(...TS(Z,q));else if(e.isObjectType(Z)&&e.isObjectType(q))P.push(...lH(Z,q),...mH(Z,q));else if(e.isInterfaceType(Z)&&e.isInterfaceType(q))P.push(...lH(Z,q),...mH(Z,q));else if(Z.constructor!==q.constructor)P.push({type:$D.TYPE_CHANGED_KIND,description:`${Z.name} changed from ${cH(Z)} to ${cH(q)}.`});return P}function TS(D,F){let P=[],B=d0(Object.values(D.getFields()),Object.values(F.getFields()));for(let Z of B.added)if(e.isRequiredInputField(Z))P.push({type:$D.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${Z.name} on input type ${D.name} was added.`});else P.push({type:M0.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${Z.name} on input type ${D.name} was added.`});for(let Z of B.removed)P.push({type:$D.FIELD_REMOVED,description:`${D.name}.${Z.name} was removed.`});for(let[Z,q]of B.persisted)if(!b1(Z.type,q.type))P.push({type:$D.FIELD_CHANGED_KIND,description:`${D.name}.${Z.name} changed type from ${String(Z.type)} to ${String(q.type)}.`});return P}function NS(D,F){let P=[],B=d0(D.getTypes(),F.getTypes());for(let Z of B.added)P.push({type:M0.TYPE_ADDED_TO_UNION,description:`${Z.name} was added to union type ${D.name}.`});for(let Z of B.removed)P.push({type:$D.TYPE_REMOVED_FROM_UNION,description:`${Z.name} was removed from union type ${D.name}.`});return P}function uS(D,F){let P=[],B=d0(D.getValues(),F.getValues());for(let Z of B.added)P.push({type:M0.VALUE_ADDED_TO_ENUM,description:`${Z.name} was added to enum type ${D.name}.`});for(let Z of B.removed)P.push({type:$D.VALUE_REMOVED_FROM_ENUM,description:`${Z.name} was removed from enum type ${D.name}.`});return P}function mH(D,F){let P=[],B=d0(D.getInterfaces(),F.getInterfaces());for(let Z of B.added)P.push({type:M0.IMPLEMENTED_INTERFACE_ADDED,description:`${Z.name} added to interfaces implemented by ${D.name}.`});for(let Z of B.removed)P.push({type:$D.IMPLEMENTED_INTERFACE_REMOVED,description:`${D.name} no longer implements interface ${Z.name}.`});return P}function lH(D,F){let P=[],B=d0(Object.values(D.getFields()),Object.values(F.getFields()));for(let Z of B.removed)P.push({type:$D.FIELD_REMOVED,description:`${D.name}.${Z.name} was removed.`});for(let[Z,q]of B.persisted)if(P.push(..._S(D,Z,q)),!j1(Z.type,q.type))P.push({type:$D.FIELD_CHANGED_KIND,description:`${D.name}.${Z.name} changed type from ${String(Z.type)} to ${String(q.type)}.`});return P}function _S(D,F,P){let B=[],Z=d0(F.args,P.args);for(let q of Z.removed)B.push({type:$D.ARG_REMOVED,description:`${D.name}.${F.name} arg ${q.name} was removed.`});for(let[q,X]of Z.persisted)if(!b1(q.type,X.type))B.push({type:$D.ARG_CHANGED_KIND,description:`${D.name}.${F.name} arg ${q.name} has changed type from ${String(q.type)} to ${String(X.type)}.`});else if(q.defaultValue!==void 0)if(X.defaultValue===void 0)B.push({type:M0.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${F.name} arg ${q.name} defaultValue was removed.`});else{let Y=dH(q.defaultValue,q.type),H=dH(X.defaultValue,X.type);if(Y!==H)B.push({type:M0.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${F.name} arg ${q.name} has changed defaultValue from ${Y} to ${H}.`})}for(let q of Z.added)if(e.isRequiredArgument(q))B.push({type:$D.REQUIRED_ARG_ADDED,description:`A required arg ${q.name} on ${D.name}.${F.name} was added.`});else B.push({type:M0.OPTIONAL_ARG_ADDED,description:`An optional arg ${q.name} on ${D.name}.${F.name} was added.`});return B}function j1(D,F){if(e.isListType(D))return e.isListType(F)&&j1(D.ofType,F.ofType)||e.isNonNullType(F)&&j1(D,F.ofType);if(e.isNonNullType(D))return e.isNonNullType(F)&&j1(D.ofType,F.ofType);return e.isNamedType(F)&&D.name===F.name||e.isNonNullType(F)&&j1(D,F.ofType)}function b1(D,F){if(e.isListType(D))return e.isListType(F)&&b1(D.ofType,F.ofType);if(e.isNonNullType(D))return e.isNonNullType(F)&&b1(D.ofType,F.ofType)||!e.isNonNullType(F)&&b1(D.ofType,F);return e.isNamedType(F)&&D.name===F.name}function cH(D){if(e.isScalarType(D))return"a Scalar type";if(e.isObjectType(D))return"an Object type";if(e.isInterfaceType(D))return"an Interface type";if(e.isUnionType(D))return"a Union type";if(e.isEnumType(D))return"an Enum type";if(e.isInputObjectType(D))return"an Input type";pH.invariant(!1,"Unexpected type: "+ES.inspect(D))}function dH(D,F){let P=LS.astFromValue(D,F);return P!=null||pH.invariant(!1),AS.print(wS.sortValueNode(P))}function d0(D,F){let P=[],B=[],Z=[],q=yH.keyMap(D,({name:J})=>J),X=yH.keyMap(F,({name:J})=>J);for(let J of D){let Y=X[J.name];if(Y===void 0)B.push(J);else Z.push([J,Y])}for(let J of F)if(q[J.name]===void 0)P.push(J);return{added:P,persisted:Z,removed:B}}});var eH=Q((t)=>{Object.defineProperty(t,"__esModule",{value:!0});Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return G3.BreakingChangeType}});Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return G3.DangerousChangeType}});Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return oH.TypeInfo}});Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return tH.assertValidName}});Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return rS.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return iH.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return yS.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return iH.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return aS.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return sS.concatAST}});Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return A7.doTypesOverlap}});Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return mS.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return G3.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return G3.findDangerousChanges}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return fS.getIntrospectionQuery}});Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return hS.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return vS.getOperationRootType}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return gS.introspectionFromSchema}});Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return A7.isEqualType}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return A7.isTypeSubTypeOf}});Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return tH.isValidNameError}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return lS.lexicographicSortSchema}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return E7.printIntrospectionSchema}});Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return E7.printSchema}});Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return E7.printType}});Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return nS.separateOperations}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return iS.stripIgnoredCharacters}});Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return cS.typeFromAST}});Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return dS.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return pS.valueFromASTUntyped}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return oH.visitWithTypeInfo}});var fS=U7(),hS=nY(),vS=oY(),gS=eY(),yS=PH(),iH=QH(),mS=O7(),lS=$H(),E7=VH(),cS=V0(),dS=I1(),pS=K4(),rS=Y1(),oH=d6(),aS=j9(),sS=bH(),nS=uH(),iS=fH(),A7=F1(),tH=gH(),G3=nH()});var u0=Q((G)=>{Object.defineProperty(G,"__esModule",{value:!0});Object.defineProperty(G,"BREAK",{enumerable:!0,get:function(){return DD.BREAK}});Object.defineProperty(G,"BreakingChangeType",{enumerable:!0,get:function(){return FD.BreakingChangeType}});Object.defineProperty(G,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return L.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(G,"DangerousChangeType",{enumerable:!0,get:function(){return FD.DangerousChangeType}});Object.defineProperty(G,"DirectiveLocation",{enumerable:!0,get:function(){return DD.DirectiveLocation}});Object.defineProperty(G,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return c.ExecutableDefinitionsRule}});Object.defineProperty(G,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return c.FieldsOnCorrectTypeRule}});Object.defineProperty(G,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(G,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return L.GRAPHQL_MAX_INT}});Object.defineProperty(G,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return L.GRAPHQL_MIN_INT}});Object.defineProperty(G,"GraphQLBoolean",{enumerable:!0,get:function(){return L.GraphQLBoolean}});Object.defineProperty(G,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return L.GraphQLDeprecatedDirective}});Object.defineProperty(G,"GraphQLDirective",{enumerable:!0,get:function(){return L.GraphQLDirective}});Object.defineProperty(G,"GraphQLEnumType",{enumerable:!0,get:function(){return L.GraphQLEnumType}});Object.defineProperty(G,"GraphQLError",{enumerable:!0,get:function(){return S1.GraphQLError}});Object.defineProperty(G,"GraphQLFloat",{enumerable:!0,get:function(){return L.GraphQLFloat}});Object.defineProperty(G,"GraphQLID",{enumerable:!0,get:function(){return L.GraphQLID}});Object.defineProperty(G,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return L.GraphQLIncludeDirective}});Object.defineProperty(G,"GraphQLInputObjectType",{enumerable:!0,get:function(){return L.GraphQLInputObjectType}});Object.defineProperty(G,"GraphQLInt",{enumerable:!0,get:function(){return L.GraphQLInt}});Object.defineProperty(G,"GraphQLInterfaceType",{enumerable:!0,get:function(){return L.GraphQLInterfaceType}});Object.defineProperty(G,"GraphQLList",{enumerable:!0,get:function(){return L.GraphQLList}});Object.defineProperty(G,"GraphQLNonNull",{enumerable:!0,get:function(){return L.GraphQLNonNull}});Object.defineProperty(G,"GraphQLObjectType",{enumerable:!0,get:function(){return L.GraphQLObjectType}});Object.defineProperty(G,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return L.GraphQLOneOfDirective}});Object.defineProperty(G,"GraphQLScalarType",{enumerable:!0,get:function(){return L.GraphQLScalarType}});Object.defineProperty(G,"GraphQLSchema",{enumerable:!0,get:function(){return L.GraphQLSchema}});Object.defineProperty(G,"GraphQLSkipDirective",{enumerable:!0,get:function(){return L.GraphQLSkipDirective}});Object.defineProperty(G,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return L.GraphQLSpecifiedByDirective}});Object.defineProperty(G,"GraphQLString",{enumerable:!0,get:function(){return L.GraphQLString}});Object.defineProperty(G,"GraphQLUnionType",{enumerable:!0,get:function(){return L.GraphQLUnionType}});Object.defineProperty(G,"Kind",{enumerable:!0,get:function(){return DD.Kind}});Object.defineProperty(G,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return c.KnownArgumentNamesRule}});Object.defineProperty(G,"KnownDirectivesRule",{enumerable:!0,get:function(){return c.KnownDirectivesRule}});Object.defineProperty(G,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return c.KnownFragmentNamesRule}});Object.defineProperty(G,"KnownTypeNamesRule",{enumerable:!0,get:function(){return c.KnownTypeNamesRule}});Object.defineProperty(G,"Lexer",{enumerable:!0,get:function(){return DD.Lexer}});Object.defineProperty(G,"Location",{enumerable:!0,get:function(){return DD.Location}});Object.defineProperty(G,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return c.LoneAnonymousOperationRule}});Object.defineProperty(G,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return c.LoneSchemaDefinitionRule}});Object.defineProperty(G,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return c.MaxIntrospectionDepthRule}});Object.defineProperty(G,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return c.NoDeprecatedCustomRule}});Object.defineProperty(G,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return c.NoFragmentCyclesRule}});Object.defineProperty(G,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return c.NoSchemaIntrospectionCustomRule}});Object.defineProperty(G,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return c.NoUndefinedVariablesRule}});Object.defineProperty(G,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return c.NoUnusedFragmentsRule}});Object.defineProperty(G,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return c.NoUnusedVariablesRule}});Object.defineProperty(G,"OperationTypeNode",{enumerable:!0,get:function(){return DD.OperationTypeNode}});Object.defineProperty(G,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return c.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(G,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return c.PossibleFragmentSpreadsRule}});Object.defineProperty(G,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return c.PossibleTypeExtensionsRule}});Object.defineProperty(G,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return c.ProvidedRequiredArgumentsRule}});Object.defineProperty(G,"ScalarLeafsRule",{enumerable:!0,get:function(){return c.ScalarLeafsRule}});Object.defineProperty(G,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return L.SchemaMetaFieldDef}});Object.defineProperty(G,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return c.SingleFieldSubscriptionsRule}});Object.defineProperty(G,"Source",{enumerable:!0,get:function(){return DD.Source}});Object.defineProperty(G,"Token",{enumerable:!0,get:function(){return DD.Token}});Object.defineProperty(G,"TokenKind",{enumerable:!0,get:function(){return DD.TokenKind}});Object.defineProperty(G,"TypeInfo",{enumerable:!0,get:function(){return FD.TypeInfo}});Object.defineProperty(G,"TypeKind",{enumerable:!0,get:function(){return L.TypeKind}});Object.defineProperty(G,"TypeMetaFieldDef",{enumerable:!0,get:function(){return L.TypeMetaFieldDef}});Object.defineProperty(G,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return L.TypeNameMetaFieldDef}});Object.defineProperty(G,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return c.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(G,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return c.UniqueArgumentNamesRule}});Object.defineProperty(G,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return c.UniqueDirectiveNamesRule}});Object.defineProperty(G,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return c.UniqueDirectivesPerLocationRule}});Object.defineProperty(G,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return c.UniqueEnumValueNamesRule}});Object.defineProperty(G,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return c.UniqueFieldDefinitionNamesRule}});Object.defineProperty(G,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return c.UniqueFragmentNamesRule}});Object.defineProperty(G,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return c.UniqueInputFieldNamesRule}});Object.defineProperty(G,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return c.UniqueOperationNamesRule}});Object.defineProperty(G,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return c.UniqueOperationTypesRule}});Object.defineProperty(G,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return c.UniqueTypeNamesRule}});Object.defineProperty(G,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return c.UniqueVariableNamesRule}});Object.defineProperty(G,"ValidationContext",{enumerable:!0,get:function(){return c.ValidationContext}});Object.defineProperty(G,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return c.ValuesOfCorrectTypeRule}});Object.defineProperty(G,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return c.VariablesAreInputTypesRule}});Object.defineProperty(G,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return c.VariablesInAllowedPositionRule}});Object.defineProperty(G,"__Directive",{enumerable:!0,get:function(){return L.__Directive}});Object.defineProperty(G,"__DirectiveLocation",{enumerable:!0,get:function(){return L.__DirectiveLocation}});Object.defineProperty(G,"__EnumValue",{enumerable:!0,get:function(){return L.__EnumValue}});Object.defineProperty(G,"__Field",{enumerable:!0,get:function(){return L.__Field}});Object.defineProperty(G,"__InputValue",{enumerable:!0,get:function(){return L.__InputValue}});Object.defineProperty(G,"__Schema",{enumerable:!0,get:function(){return L.__Schema}});Object.defineProperty(G,"__Type",{enumerable:!0,get:function(){return L.__Type}});Object.defineProperty(G,"__TypeKind",{enumerable:!0,get:function(){return L.__TypeKind}});Object.defineProperty(G,"assertAbstractType",{enumerable:!0,get:function(){return L.assertAbstractType}});Object.defineProperty(G,"assertCompositeType",{enumerable:!0,get:function(){return L.assertCompositeType}});Object.defineProperty(G,"assertDirective",{enumerable:!0,get:function(){return L.assertDirective}});Object.defineProperty(G,"assertEnumType",{enumerable:!0,get:function(){return L.assertEnumType}});Object.defineProperty(G,"assertEnumValueName",{enumerable:!0,get:function(){return L.assertEnumValueName}});Object.defineProperty(G,"assertInputObjectType",{enumerable:!0,get:function(){return L.assertInputObjectType}});Object.defineProperty(G,"assertInputType",{enumerable:!0,get:function(){return L.assertInputType}});Object.defineProperty(G,"assertInterfaceType",{enumerable:!0,get:function(){return L.assertInterfaceType}});Object.defineProperty(G,"assertLeafType",{enumerable:!0,get:function(){return L.assertLeafType}});Object.defineProperty(G,"assertListType",{enumerable:!0,get:function(){return L.assertListType}});Object.defineProperty(G,"assertName",{enumerable:!0,get:function(){return L.assertName}});Object.defineProperty(G,"assertNamedType",{enumerable:!0,get:function(){return L.assertNamedType}});Object.defineProperty(G,"assertNonNullType",{enumerable:!0,get:function(){return L.assertNonNullType}});Object.defineProperty(G,"assertNullableType",{enumerable:!0,get:function(){return L.assertNullableType}});Object.defineProperty(G,"assertObjectType",{enumerable:!0,get:function(){return L.assertObjectType}});Object.defineProperty(G,"assertOutputType",{enumerable:!0,get:function(){return L.assertOutputType}});Object.defineProperty(G,"assertScalarType",{enumerable:!0,get:function(){return L.assertScalarType}});Object.defineProperty(G,"assertSchema",{enumerable:!0,get:function(){return L.assertSchema}});Object.defineProperty(G,"assertType",{enumerable:!0,get:function(){return L.assertType}});Object.defineProperty(G,"assertUnionType",{enumerable:!0,get:function(){return L.assertUnionType}});Object.defineProperty(G,"assertValidName",{enumerable:!0,get:function(){return FD.assertValidName}});Object.defineProperty(G,"assertValidSchema",{enumerable:!0,get:function(){return L.assertValidSchema}});Object.defineProperty(G,"assertWrappingType",{enumerable:!0,get:function(){return L.assertWrappingType}});Object.defineProperty(G,"astFromValue",{enumerable:!0,get:function(){return FD.astFromValue}});Object.defineProperty(G,"buildASTSchema",{enumerable:!0,get:function(){return FD.buildASTSchema}});Object.defineProperty(G,"buildClientSchema",{enumerable:!0,get:function(){return FD.buildClientSchema}});Object.defineProperty(G,"buildSchema",{enumerable:!0,get:function(){return FD.buildSchema}});Object.defineProperty(G,"coerceInputValue",{enumerable:!0,get:function(){return FD.coerceInputValue}});Object.defineProperty(G,"concatAST",{enumerable:!0,get:function(){return FD.concatAST}});Object.defineProperty(G,"createSourceEventStream",{enumerable:!0,get:function(){return N0.createSourceEventStream}});Object.defineProperty(G,"defaultFieldResolver",{enumerable:!0,get:function(){return N0.defaultFieldResolver}});Object.defineProperty(G,"defaultTypeResolver",{enumerable:!0,get:function(){return N0.defaultTypeResolver}});Object.defineProperty(G,"doTypesOverlap",{enumerable:!0,get:function(){return FD.doTypesOverlap}});Object.defineProperty(G,"execute",{enumerable:!0,get:function(){return N0.execute}});Object.defineProperty(G,"executeSync",{enumerable:!0,get:function(){return N0.executeSync}});Object.defineProperty(G,"extendSchema",{enumerable:!0,get:function(){return FD.extendSchema}});Object.defineProperty(G,"findBreakingChanges",{enumerable:!0,get:function(){return FD.findBreakingChanges}});Object.defineProperty(G,"findDangerousChanges",{enumerable:!0,get:function(){return FD.findDangerousChanges}});Object.defineProperty(G,"formatError",{enumerable:!0,get:function(){return S1.formatError}});Object.defineProperty(G,"getArgumentValues",{enumerable:!0,get:function(){return N0.getArgumentValues}});Object.defineProperty(G,"getDirectiveValues",{enumerable:!0,get:function(){return N0.getDirectiveValues}});Object.defineProperty(G,"getEnterLeaveForKind",{enumerable:!0,get:function(){return DD.getEnterLeaveForKind}});Object.defineProperty(G,"getIntrospectionQuery",{enumerable:!0,get:function(){return FD.getIntrospectionQuery}});Object.defineProperty(G,"getLocation",{enumerable:!0,get:function(){return DD.getLocation}});Object.defineProperty(G,"getNamedType",{enumerable:!0,get:function(){return L.getNamedType}});Object.defineProperty(G,"getNullableType",{enumerable:!0,get:function(){return L.getNullableType}});Object.defineProperty(G,"getOperationAST",{enumerable:!0,get:function(){return FD.getOperationAST}});Object.defineProperty(G,"getOperationRootType",{enumerable:!0,get:function(){return FD.getOperationRootType}});Object.defineProperty(G,"getVariableValues",{enumerable:!0,get:function(){return N0.getVariableValues}});Object.defineProperty(G,"getVisitFn",{enumerable:!0,get:function(){return DD.getVisitFn}});Object.defineProperty(G,"graphql",{enumerable:!0,get:function(){return FU.graphql}});Object.defineProperty(G,"graphqlSync",{enumerable:!0,get:function(){return FU.graphqlSync}});Object.defineProperty(G,"introspectionFromSchema",{enumerable:!0,get:function(){return FD.introspectionFromSchema}});Object.defineProperty(G,"introspectionTypes",{enumerable:!0,get:function(){return L.introspectionTypes}});Object.defineProperty(G,"isAbstractType",{enumerable:!0,get:function(){return L.isAbstractType}});Object.defineProperty(G,"isCompositeType",{enumerable:!0,get:function(){return L.isCompositeType}});Object.defineProperty(G,"isConstValueNode",{enumerable:!0,get:function(){return DD.isConstValueNode}});Object.defineProperty(G,"isDefinitionNode",{enumerable:!0,get:function(){return DD.isDefinitionNode}});Object.defineProperty(G,"isDirective",{enumerable:!0,get:function(){return L.isDirective}});Object.defineProperty(G,"isEnumType",{enumerable:!0,get:function(){return L.isEnumType}});Object.defineProperty(G,"isEqualType",{enumerable:!0,get:function(){return FD.isEqualType}});Object.defineProperty(G,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return DD.isExecutableDefinitionNode}});Object.defineProperty(G,"isInputObjectType",{enumerable:!0,get:function(){return L.isInputObjectType}});Object.defineProperty(G,"isInputType",{enumerable:!0,get:function(){return L.isInputType}});Object.defineProperty(G,"isInterfaceType",{enumerable:!0,get:function(){return L.isInterfaceType}});Object.defineProperty(G,"isIntrospectionType",{enumerable:!0,get:function(){return L.isIntrospectionType}});Object.defineProperty(G,"isLeafType",{enumerable:!0,get:function(){return L.isLeafType}});Object.defineProperty(G,"isListType",{enumerable:!0,get:function(){return L.isListType}});Object.defineProperty(G,"isNamedType",{enumerable:!0,get:function(){return L.isNamedType}});Object.defineProperty(G,"isNonNullType",{enumerable:!0,get:function(){return L.isNonNullType}});Object.defineProperty(G,"isNullableType",{enumerable:!0,get:function(){return L.isNullableType}});Object.defineProperty(G,"isObjectType",{enumerable:!0,get:function(){return L.isObjectType}});Object.defineProperty(G,"isOutputType",{enumerable:!0,get:function(){return L.isOutputType}});Object.defineProperty(G,"isRequiredArgument",{enumerable:!0,get:function(){return L.isRequiredArgument}});Object.defineProperty(G,"isRequiredInputField",{enumerable:!0,get:function(){return L.isRequiredInputField}});Object.defineProperty(G,"isScalarType",{enumerable:!0,get:function(){return L.isScalarType}});Object.defineProperty(G,"isSchema",{enumerable:!0,get:function(){return L.isSchema}});Object.defineProperty(G,"isSelectionNode",{enumerable:!0,get:function(){return DD.isSelectionNode}});Object.defineProperty(G,"isSpecifiedDirective",{enumerable:!0,get:function(){return L.isSpecifiedDirective}});Object.defineProperty(G,"isSpecifiedScalarType",{enumerable:!0,get:function(){return L.isSpecifiedScalarType}});Object.defineProperty(G,"isType",{enumerable:!0,get:function(){return L.isType}});Object.defineProperty(G,"isTypeDefinitionNode",{enumerable:!0,get:function(){return DD.isTypeDefinitionNode}});Object.defineProperty(G,"isTypeExtensionNode",{enumerable:!0,get:function(){return DD.isTypeExtensionNode}});Object.defineProperty(G,"isTypeNode",{enumerable:!0,get:function(){return DD.isTypeNode}});Object.defineProperty(G,"isTypeSubTypeOf",{enumerable:!0,get:function(){return FD.isTypeSubTypeOf}});Object.defineProperty(G,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return DD.isTypeSystemDefinitionNode}});Object.defineProperty(G,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return DD.isTypeSystemExtensionNode}});Object.defineProperty(G,"isUnionType",{enumerable:!0,get:function(){return L.isUnionType}});Object.defineProperty(G,"isValidNameError",{enumerable:!0,get:function(){return FD.isValidNameError}});Object.defineProperty(G,"isValueNode",{enumerable:!0,get:function(){return DD.isValueNode}});Object.defineProperty(G,"isWrappingType",{enumerable:!0,get:function(){return L.isWrappingType}});Object.defineProperty(G,"lexicographicSortSchema",{enumerable:!0,get:function(){return FD.lexicographicSortSchema}});Object.defineProperty(G,"locatedError",{enumerable:!0,get:function(){return S1.locatedError}});Object.defineProperty(G,"parse",{enumerable:!0,get:function(){return DD.parse}});Object.defineProperty(G,"parseConstValue",{enumerable:!0,get:function(){return DD.parseConstValue}});Object.defineProperty(G,"parseType",{enumerable:!0,get:function(){return DD.parseType}});Object.defineProperty(G,"parseValue",{enumerable:!0,get:function(){return DD.parseValue}});Object.defineProperty(G,"print",{enumerable:!0,get:function(){return DD.print}});Object.defineProperty(G,"printError",{enumerable:!0,get:function(){return S1.printError}});Object.defineProperty(G,"printIntrospectionSchema",{enumerable:!0,get:function(){return FD.printIntrospectionSchema}});Object.defineProperty(G,"printLocation",{enumerable:!0,get:function(){return DD.printLocation}});Object.defineProperty(G,"printSchema",{enumerable:!0,get:function(){return FD.printSchema}});Object.defineProperty(G,"printSourceLocation",{enumerable:!0,get:function(){return DD.printSourceLocation}});Object.defineProperty(G,"printType",{enumerable:!0,get:function(){return FD.printType}});Object.defineProperty(G,"recommendedRules",{enumerable:!0,get:function(){return c.recommendedRules}});Object.defineProperty(G,"resolveObjMapThunk",{enumerable:!0,get:function(){return L.resolveObjMapThunk}});Object.defineProperty(G,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return L.resolveReadonlyArrayThunk}});Object.defineProperty(G,"responsePathAsArray",{enumerable:!0,get:function(){return N0.responsePathAsArray}});Object.defineProperty(G,"separateOperations",{enumerable:!0,get:function(){return FD.separateOperations}});Object.defineProperty(G,"specifiedDirectives",{enumerable:!0,get:function(){return L.specifiedDirectives}});Object.defineProperty(G,"specifiedRules",{enumerable:!0,get:function(){return c.specifiedRules}});Object.defineProperty(G,"specifiedScalarTypes",{enumerable:!0,get:function(){return L.specifiedScalarTypes}});Object.defineProperty(G,"stripIgnoredCharacters",{enumerable:!0,get:function(){return FD.stripIgnoredCharacters}});Object.defineProperty(G,"subscribe",{enumerable:!0,get:function(){return N0.subscribe}});Object.defineProperty(G,"syntaxError",{enumerable:!0,get:function(){return S1.syntaxError}});Object.defineProperty(G,"typeFromAST",{enumerable:!0,get:function(){return FD.typeFromAST}});Object.defineProperty(G,"validate",{enumerable:!0,get:function(){return c.validate}});Object.defineProperty(G,"validateSchema",{enumerable:!0,get:function(){return L.validateSchema}});Object.defineProperty(G,"valueFromAST",{enumerable:!0,get:function(){return FD.valueFromAST}});Object.defineProperty(G,"valueFromASTUntyped",{enumerable:!0,get:function(){return FD.valueFromASTUntyped}});Object.defineProperty(G,"version",{enumerable:!0,get:function(){return DU.version}});Object.defineProperty(G,"versionInfo",{enumerable:!0,get:function(){return DU.versionInfo}});Object.defineProperty(G,"visit",{enumerable:!0,get:function(){return DD.visit}});Object.defineProperty(G,"visitInParallel",{enumerable:!0,get:function(){return DD.visitInParallel}});Object.defineProperty(G,"visitWithTypeInfo",{enumerable:!0,get:function(){return FD.visitWithTypeInfo}});var DU=UB(),FU=CY(),L=VY(),DD=bY(),N0=gY(),c=pY(),S1=rY(),FD=eH()});var SU=Q((md,bU)=>{bU.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var y7=Q((ld,NU)=>{var v1=SU(),TU={};for(let D of Object.keys(v1))TU[v1[D]]=D;var f={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};NU.exports=f;for(let D of Object.keys(f)){if(!("channels"in f[D]))throw new Error("missing channels property: "+D);if(!("labels"in f[D]))throw new Error("missing channel labels property: "+D);if(f[D].labels.length!==f[D].channels)throw new Error("channel and label counts mismatch: "+D);let{channels:F,labels:P}=f[D];delete f[D].channels,delete f[D].labels,Object.defineProperty(f[D],"channels",{value:F}),Object.defineProperty(f[D],"labels",{value:P})}f.rgb.hsl=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255,Z=Math.min(F,P,B),q=Math.max(F,P,B),X=q-Z,J,Y;if(q===Z)J=0;else if(F===q)J=(P-B)/X;else if(P===q)J=2+(B-F)/X;else if(B===q)J=4+(F-P)/X;if(J=Math.min(J*60,360),J<0)J+=360;let H=(Z+q)/2;if(q===Z)Y=0;else if(H<=0.5)Y=X/(q+Z);else Y=X/(2-q-Z);return[J,Y*100,H*100]};f.rgb.hsv=function(D){let F,P,B,Z,q,X=D[0]/255,J=D[1]/255,Y=D[2]/255,H=Math.max(X,J,Y),W=H-Math.min(X,J,Y),U=function(O){return(H-O)/6/W+0.5};if(W===0)Z=0,q=0;else{if(q=W/H,F=U(X),P=U(J),B=U(Y),X===H)Z=B-P;else if(J===H)Z=0.3333333333333333+F-B;else if(Y===H)Z=0.6666666666666666+P-F;if(Z<0)Z+=1;else if(Z>1)Z-=1}return[Z*360,q*100,H*100]};f.rgb.hwb=function(D){let F=D[0],P=D[1],B=D[2],Z=f.rgb.hsl(D)[0],q=0.00392156862745098*Math.min(F,Math.min(P,B));return B=1-0.00392156862745098*Math.max(F,Math.max(P,B)),[Z,q*100,B*100]};f.rgb.cmyk=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255,Z=Math.min(1-F,1-P,1-B),q=(1-F-Z)/(1-Z)||0,X=(1-P-Z)/(1-Z)||0,J=(1-B-Z)/(1-Z)||0;return[q*100,X*100,J*100,Z*100]};function MT(D,F){return(D[0]-F[0])**2+(D[1]-F[1])**2+(D[2]-F[2])**2}f.rgb.keyword=function(D){let F=TU[D];if(F)return F;let P=1/0,B;for(let Z of Object.keys(v1)){let q=v1[Z],X=MT(D,q);if(X<P)P=X,B=Z}return B};f.keyword.rgb=function(D){return v1[D]};f.rgb.xyz=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255;F=F>0.04045?((F+0.055)/1.055)**2.4:F/12.92,P=P>0.04045?((P+0.055)/1.055)**2.4:P/12.92,B=B>0.04045?((B+0.055)/1.055)**2.4:B/12.92;let Z=F*0.4124+P*0.3576+B*0.1805,q=F*0.2126+P*0.7152+B*0.0722,X=F*0.0193+P*0.1192+B*0.9505;return[Z*100,q*100,X*100]};f.rgb.lab=function(D){let F=f.rgb.xyz(D),P=F[0],B=F[1],Z=F[2];P/=95.047,B/=100,Z/=108.883,P=P>0.008856?P**0.3333333333333333:7.787*P+0.13793103448275862,B=B>0.008856?B**0.3333333333333333:7.787*B+0.13793103448275862,Z=Z>0.008856?Z**0.3333333333333333:7.787*Z+0.13793103448275862;let q=116*B-16,X=500*(P-B),J=200*(B-Z);return[q,X,J]};f.hsl.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100,Z,q,X;if(P===0)return X=B*255,[X,X,X];if(B<0.5)Z=B*(1+P);else Z=B+P-B*P;let J=2*B-Z,Y=[0,0,0];for(let H=0;H<3;H++){if(q=F+0.3333333333333333*-(H-1),q<0)q++;if(q>1)q--;if(6*q<1)X=J+(Z-J)*6*q;else if(2*q<1)X=Z;else if(3*q<2)X=J+(Z-J)*(0.6666666666666666-q)*6;else X=J;Y[H]=X*255}return Y};f.hsl.hsv=function(D){let F=D[0],P=D[1]/100,B=D[2]/100,Z=P,q=Math.max(B,0.01);B*=2,P*=B<=1?B:2-B,Z*=q<=1?q:2-q;let X=(B+P)/2,J=B===0?2*Z/(q+Z):2*P/(B+P);return[F,J*100,X*100]};f.hsv.rgb=function(D){let F=D[0]/60,P=D[1]/100,B=D[2]/100,Z=Math.floor(F)%6,q=F-Math.floor(F),X=255*B*(1-P),J=255*B*(1-P*q),Y=255*B*(1-P*(1-q));switch(B*=255,Z){case 0:return[B,Y,X];case 1:return[J,B,X];case 2:return[X,B,Y];case 3:return[X,J,B];case 4:return[Y,X,B];case 5:return[B,X,J]}};f.hsv.hsl=function(D){let F=D[0],P=D[1]/100,B=D[2]/100,Z=Math.max(B,0.01),q,X;X=(2-P)*B;let J=(2-P)*Z;return q=P*Z,q/=J<=1?J:2-J,q=q||0,X/=2,[F,q*100,X*100]};f.hwb.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100,Z=P+B,q;if(Z>1)P/=Z,B/=Z;let X=Math.floor(6*F),J=1-B;if(q=6*F-X,(X&1)!==0)q=1-q;let Y=P+q*(J-P),H,W,U;switch(X){default:case 6:case 0:H=J,W=Y,U=P;break;case 1:H=Y,W=J,U=P;break;case 2:H=P,W=J,U=Y;break;case 3:H=P,W=Y,U=J;break;case 4:H=Y,W=P,U=J;break;case 5:H=J,W=P,U=Y;break}return[H*255,W*255,U*255]};f.cmyk.rgb=function(D){let F=D[0]/100,P=D[1]/100,B=D[2]/100,Z=D[3]/100,q=1-Math.min(1,F*(1-Z)+Z),X=1-Math.min(1,P*(1-Z)+Z),J=1-Math.min(1,B*(1-Z)+Z);return[q*255,X*255,J*255]};f.xyz.rgb=function(D){let F=D[0]/100,P=D[1]/100,B=D[2]/100,Z,q,X;return Z=F*3.2406+P*-1.5372+B*-0.4986,q=F*-0.9689+P*1.8758+B*0.0415,X=F*0.0557+P*-0.204+B*1.057,Z=Z>0.0031308?1.055*Z**0.4166666666666667-0.055:Z*12.92,q=q>0.0031308?1.055*q**0.4166666666666667-0.055:q*12.92,X=X>0.0031308?1.055*X**0.4166666666666667-0.055:X*12.92,Z=Math.min(Math.max(0,Z),1),q=Math.min(Math.max(0,q),1),X=Math.min(Math.max(0,X),1),[Z*255,q*255,X*255]};f.xyz.lab=function(D){let F=D[0],P=D[1],B=D[2];F/=95.047,P/=100,B/=108.883,F=F>0.008856?F**0.3333333333333333:7.787*F+0.13793103448275862,P=P>0.008856?P**0.3333333333333333:7.787*P+0.13793103448275862,B=B>0.008856?B**0.3333333333333333:7.787*B+0.13793103448275862;let Z=116*P-16,q=500*(F-P),X=200*(P-B);return[Z,q,X]};f.lab.xyz=function(D){let F=D[0],P=D[1],B=D[2],Z,q,X;q=(F+16)/116,Z=P/500+q,X=q-B/200;let J=q**3,Y=Z**3,H=X**3;return q=J>0.008856?J:(q-0.13793103448275862)/7.787,Z=Y>0.008856?Y:(Z-0.13793103448275862)/7.787,X=H>0.008856?H:(X-0.13793103448275862)/7.787,Z*=95.047,q*=100,X*=108.883,[Z,q,X]};f.lab.lch=function(D){let F=D[0],P=D[1],B=D[2],Z;if(Z=Math.atan2(B,P)*360/2/Math.PI,Z<0)Z+=360;let X=Math.sqrt(P*P+B*B);return[F,X,Z]};f.lch.lab=function(D){let F=D[0],P=D[1],Z=D[2]/360*2*Math.PI,q=P*Math.cos(Z),X=P*Math.sin(Z);return[F,q,X]};f.rgb.ansi16=function(D,F=null){let[P,B,Z]=D,q=F===null?f.rgb.hsv(D)[2]:F;if(q=Math.round(q/50),q===0)return 30;let X=30+(Math.round(Z/255)<<2|Math.round(B/255)<<1|Math.round(P/255));if(q===2)X+=60;return X};f.hsv.ansi16=function(D){return f.rgb.ansi16(f.hsv.rgb(D),D[2])};f.rgb.ansi256=function(D){let F=D[0],P=D[1],B=D[2];if(F===P&&P===B){if(F<8)return 16;if(F>248)return 231;return Math.round((F-8)/247*24)+232}return 16+36*Math.round(F/255*5)+6*Math.round(P/255*5)+Math.round(B/255*5)};f.ansi16.rgb=function(D){let F=D%10;if(F===0||F===7){if(D>50)F+=3.5;return F=F/10.5*255,[F,F,F]}let P=(~~(D>50)+1)*0.5,B=(F&1)*P*255,Z=(F>>1&1)*P*255,q=(F>>2&1)*P*255;return[B,Z,q]};f.ansi256.rgb=function(D){if(D>=232){let q=(D-232)*10+8;return[q,q,q]}D-=16;let F,P=Math.floor(D/36)/5*255,B=Math.floor((F=D%36)/6)/5*255,Z=F%6/5*255;return[P,B,Z]};f.rgb.hex=function(D){let P=(((Math.round(D[0])&255)<<16)+((Math.round(D[1])&255)<<8)+(Math.round(D[2])&255)).toString(16).toUpperCase();return"000000".substring(P.length)+P};f.hex.rgb=function(D){let F=D.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!F)return[0,0,0];let P=F[0];if(F[0].length===3)P=P.split("").map((J)=>{return J+J}).join("");let B=parseInt(P,16),Z=B>>16&255,q=B>>8&255,X=B&255;return[Z,q,X]};f.rgb.hcg=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255,Z=Math.max(Math.max(F,P),B),q=Math.min(Math.min(F,P),B),X=Z-q,J,Y;if(X<1)J=q/(1-X);else J=0;if(X<=0)Y=0;else if(Z===F)Y=(P-B)/X%6;else if(Z===P)Y=2+(B-F)/X;else Y=4+(F-P)/X;return Y/=6,Y%=1,[Y*360,X*100,J*100]};f.hsl.hcg=function(D){let F=D[1]/100,P=D[2]/100,B=P<0.5?2*F*P:2*F*(1-P),Z=0;if(B<1)Z=(P-0.5*B)/(1-B);return[D[0],B*100,Z*100]};f.hsv.hcg=function(D){let F=D[1]/100,P=D[2]/100,B=F*P,Z=0;if(B<1)Z=(P-B)/(1-B);return[D[0],B*100,Z*100]};f.hcg.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100;if(P===0)return[B*255,B*255,B*255];let Z=[0,0,0],q=F%1*6,X=q%1,J=1-X,Y=0;switch(Math.floor(q)){case 0:Z[0]=1,Z[1]=X,Z[2]=0;break;case 1:Z[0]=J,Z[1]=1,Z[2]=0;break;case 2:Z[0]=0,Z[1]=1,Z[2]=X;break;case 3:Z[0]=0,Z[1]=J,Z[2]=1;break;case 4:Z[0]=X,Z[1]=0,Z[2]=1;break;default:Z[0]=1,Z[1]=0,Z[2]=J}return Y=(1-P)*B,[(P*Z[0]+Y)*255,(P*Z[1]+Y)*255,(P*Z[2]+Y)*255]};f.hcg.hsv=function(D){let F=D[1]/100,P=D[2]/100,B=F+P*(1-F),Z=0;if(B>0)Z=F/B;return[D[0],Z*100,B*100]};f.hcg.hsl=function(D){let F=D[1]/100,B=D[2]/100*(1-F)+0.5*F,Z=0;if(B>0&&B<0.5)Z=F/(2*B);else if(B>=0.5&&B<1)Z=F/(2*(1-B));return[D[0],Z*100,B*100]};f.hcg.hwb=function(D){let F=D[1]/100,P=D[2]/100,B=F+P*(1-F);return[D[0],(B-F)*100,(1-B)*100]};f.hwb.hcg=function(D){let F=D[1]/100,B=1-D[2]/100,Z=B-F,q=0;if(Z<1)q=(B-Z)/(1-Z);return[D[0],Z*100,q*100]};f.apple.rgb=function(D){return[D[0]/65535*255,D[1]/65535*255,D[2]/65535*255]};f.rgb.apple=function(D){return[D[0]/255*65535,D[1]/255*65535,D[2]/255*65535]};f.gray.rgb=function(D){return[D[0]/100*255,D[0]/100*255,D[0]/100*255]};f.gray.hsl=function(D){return[0,0,D[0]]};f.gray.hsv=f.gray.hsl;f.gray.hwb=function(D){return[0,100,D[0]]};f.gray.cmyk=function(D){return[0,0,0,D[0]]};f.gray.lab=function(D){return[D[0],0,0]};f.gray.hex=function(D){let F=Math.round(D[0]/100*255)&255,B=((F<<16)+(F<<8)+F).toString(16).toUpperCase();return"000000".substring(B.length)+B};f.rgb.gray=function(D){return[(D[0]+D[1]+D[2])/3/255*100]}});var _U=Q((cd,uU)=>{var T3=y7();function KT(){let D={},F=Object.keys(T3);for(let P=F.length,B=0;B<P;B++)D[F[B]]={distance:-1,parent:null};return D}function ET(D){let F=KT(),P=[D];F[D].distance=0;while(P.length){let B=P.pop(),Z=Object.keys(T3[B]);for(let q=Z.length,X=0;X<q;X++){let J=Z[X],Y=F[J];if(Y.distance===-1)Y.distance=F[B].distance+1,Y.parent=B,P.unshift(J)}}return F}function AT(D,F){return function(P){return F(D(P))}}function CT(D,F){let P=[F[D].parent,D],B=T3[F[D].parent][D],Z=F[D].parent;while(F[Z].parent)P.unshift(F[Z].parent),B=AT(T3[F[Z].parent][Z],B),Z=F[Z].parent;return B.conversion=P,B}uU.exports=function(D){let F=ET(D),P={},B=Object.keys(F);for(let Z=B.length,q=0;q<Z;q++){let X=B[q];if(F[X].parent===null)continue;P[X]=CT(X,F)}return P}});var xU=Q((dd,kU)=>{var m7=y7(),LT=_U(),C8={},wT=Object.keys(m7);function VT(D){let F=function(...P){let B=P[0];if(B===void 0||B===null)return B;if(B.length>1)P=B;return D(P)};if("conversion"in D)F.conversion=D.conversion;return F}function jT(D){let F=function(...P){let B=P[0];if(B===void 0||B===null)return B;if(B.length>1)P=B;let Z=D(P);if(typeof Z==="object")for(let q=Z.length,X=0;X<q;X++)Z[X]=Math.round(Z[X]);return Z};if("conversion"in D)F.conversion=D.conversion;return F}wT.forEach((D)=>{C8[D]={},Object.defineProperty(C8[D],"channels",{value:m7[D].channels}),Object.defineProperty(C8[D],"labels",{value:m7[D].labels});let F=LT(D);Object.keys(F).forEach((B)=>{let Z=F[B];C8[D][B]=jT(Z),C8[D][B].raw=VT(Z)})});kU.exports=C8});var g1=Q((pd,yU)=>{var fU=(D,F)=>(...P)=>{return`\x1B[${D(...P)+F}m`},hU=(D,F)=>(...P)=>{let B=D(...P);return`\x1B[${38+F};5;${B}m`},vU=(D,F)=>(...P)=>{let B=D(...P);return`\x1B[${38+F};2;${B[0]};${B[1]};${B[2]}m`},N3=(D)=>D,gU=(D,F,P)=>[D,F,P],L8=(D,F,P)=>{Object.defineProperty(D,F,{get:()=>{let B=P();return Object.defineProperty(D,F,{value:B,enumerable:!0,configurable:!0}),B},enumerable:!0,configurable:!0})},l7,w8=(D,F,P,B)=>{if(l7===void 0)l7=xU();let Z=B?10:0,q={};for(let[X,J]of Object.entries(l7)){let Y=X==="ansi16"?"ansi":X;if(X===F)q[Y]=D(P,Z);else if(typeof J==="object")q[Y]=D(J[F],Z)}return q};function bT(){let D=new Map,F={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};F.color.gray=F.color.blackBright,F.bgColor.bgGray=F.bgColor.bgBlackBright,F.color.grey=F.color.blackBright,F.bgColor.bgGrey=F.bgColor.bgBlackBright;for(let[P,B]of Object.entries(F)){for(let[Z,q]of Object.entries(B))F[Z]={open:`\x1B[${q[0]}m`,close:`\x1B[${q[1]}m`},B[Z]=F[Z],D.set(q[0],q[1]);Object.defineProperty(F,P,{value:B,enumerable:!1})}return Object.defineProperty(F,"codes",{value:D,enumerable:!1}),F.color.close="\x1B[39m",F.bgColor.close="\x1B[49m",L8(F.color,"ansi",()=>w8(fU,"ansi16",N3,!1)),L8(F.color,"ansi256",()=>w8(hU,"ansi256",N3,!1)),L8(F.color,"ansi16m",()=>w8(vU,"rgb",gU,!1)),L8(F.bgColor,"ansi",()=>w8(fU,"ansi16",N3,!0)),L8(F.bgColor,"ansi256",()=>w8(hU,"ansi256",N3,!0)),L8(F.bgColor,"ansi16m",()=>w8(vU,"rgb",gU,!0)),F}Object.defineProperty(yU,"exports",{enumerable:!0,get:bT})});var u3=Q((rd,mU)=>{mU.exports=(D,F=process.argv)=>{let P=D.startsWith("-")?"":D.length===1?"-":"--",B=F.indexOf(P+D),Z=F.indexOf("--");return B!==-1&&(Z===-1||B<Z)}});var dU=Q((ad,cU)=>{var ST=pD("os"),lU=pD("tty"),B0=u3(),{env:TD}=process,J2;if(B0("no-color")||B0("no-colors")||B0("color=false")||B0("color=never"))J2=0;else if(B0("color")||B0("colors")||B0("color=true")||B0("color=always"))J2=1;if("FORCE_COLOR"in TD)if(TD.FORCE_COLOR==="true")J2=1;else if(TD.FORCE_COLOR==="false")J2=0;else J2=TD.FORCE_COLOR.length===0?1:Math.min(parseInt(TD.FORCE_COLOR,10),3);function c7(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function d7(D,F){if(J2===0)return 0;if(B0("color=16m")||B0("color=full")||B0("color=truecolor"))return 3;if(B0("color=256"))return 2;if(D&&!F&&J2===void 0)return 0;let P=J2||0;if(TD.TERM==="dumb")return P;if(process.platform==="win32"){let B=ST.release().split(".");if(Number(B[0])>=10&&Number(B[2])>=10586)return Number(B[2])>=14931?3:2;return 1}if("CI"in TD){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((B)=>(B in TD))||TD.CI_NAME==="codeship")return 1;return P}if("TEAMCITY_VERSION"in TD)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(TD.TEAMCITY_VERSION)?1:0;if(TD.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in TD){let B=parseInt((TD.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(TD.TERM_PROGRAM){case"iTerm.app":return B>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(TD.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(TD.TERM))return 1;if("COLORTERM"in TD)return 1;return P}function TT(D){let F=d7(D,D&&D.isTTY);return c7(F)}cU.exports={supportsColor:TT,stdout:c7(d7(!0,lU.isatty(1))),stderr:c7(d7(!0,lU.isatty(2)))}});var rU=Q((sd,pU)=>{var NT=(D,F,P)=>{let B=D.indexOf(F);if(B===-1)return D;let Z=F.length,q=0,X="";do X+=D.substr(q,B-q)+F+P,q=B+Z,B=D.indexOf(F,q);while(B!==-1);return X+=D.substr(q),X},uT=(D,F,P,B)=>{let Z=0,q="";do{let X=D[B-1]==="\r";q+=D.substr(Z,(X?B-1:B)-Z)+F+(X?`\r
198
+ `}});var bH=Q((jH)=>{Object.defineProperty(jH,"__esModule",{value:!0});jH.concatAST=JS;var XS=r();function JS(D){let F=[];for(let P of D)F.push(...P.definitions);return{kind:XS.Kind.DOCUMENT,definitions:F}}});var uH=Q((NH)=>{Object.defineProperty(NH,"__esModule",{value:!0});NH.separateOperations=US;var Q3=r(),HS=L2();function US(D){let F=[],P=Object.create(null);for(let Z of D.definitions)switch(Z.kind){case Q3.Kind.OPERATION_DEFINITION:F.push(Z);break;case Q3.Kind.FRAGMENT_DEFINITION:P[Z.name.value]=SH(Z.selectionSet);break;default:}let B=Object.create(null);for(let Z of F){let q=new Set;for(let J of SH(Z.selectionSet))TH(q,P,J);let X=Z.name?Z.name.value:"";B[X]={kind:Q3.Kind.DOCUMENT,definitions:D.definitions.filter((J)=>J===Z||J.kind===Q3.Kind.FRAGMENT_DEFINITION&&q.has(J.name.value))}}return B}function TH(D,F,P){if(!D.has(P)){D.add(P);let B=F[P];if(B!==void 0)for(let Z of B)TH(D,F,Z)}}function SH(D){let F=[];return HS.visit(D,{FragmentSpread(P){F.push(P.name.value)}}),F}});var fH=Q((xH)=>{Object.defineProperty(xH,"__esModule",{value:!0});xH.stripIgnoredCharacters=zS;var OS=p8(),_H=w6(),kH=j6(),M7=r8();function zS(D){let F=kH.isSource(D)?D:new kH.Source(D),P=F.body,B=new _H.Lexer(F),Z="",q=!1;while(B.advance().kind!==M7.TokenKind.EOF){let X=B.token,J=X.kind,Y=!_H.isPunctuatorTokenKind(X.kind);if(q){if(Y||X.kind===M7.TokenKind.SPREAD)Z+=" "}let H=P.slice(X.start,X.end);if(J===M7.TokenKind.BLOCK_STRING)Z+=OS.printBlockString(X.value,{minimize:!0});else Z+=H;q=Y}return Z}});var gH=Q((vH)=>{Object.defineProperty(vH,"__esModule",{value:!0});vH.assertValidName=$S;vH.isValidNameError=hH;var GS=hD(),RS=v(),IS=t8();function $S(D){let F=hH(D);if(F)throw F;return D}function hH(D){if(typeof D==="string"||GS.devAssert(!1,"Expected name to be a string."),D.startsWith("__"))return new RS.GraphQLError(`Name "${D}" must not begin with "__", which is reserved by GraphQL introspection.`);try{IS.assertName(D)}catch(F){return F}}});var nH=Q((aH)=>{Object.defineProperty(aH,"__esModule",{value:!0});aH.DangerousChangeType=aH.BreakingChangeType=void 0;aH.findBreakingChanges=VS;aH.findDangerousChanges=jS;var ES=PD(),pH=_D(),yH=t0(),AS=rD(),e=a(),CS=w0(),LS=H1(),wS=Q9(),$D;aH.BreakingChangeType=$D;(function(D){D.TYPE_REMOVED="TYPE_REMOVED",D.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",D.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",D.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",D.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",D.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",D.FIELD_REMOVED="FIELD_REMOVED",D.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",D.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",D.ARG_REMOVED="ARG_REMOVED",D.ARG_CHANGED_KIND="ARG_CHANGED_KIND",D.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",D.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",D.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",D.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",D.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})($D||(aH.BreakingChangeType=$D={}));var M0;aH.DangerousChangeType=M0;(function(D){D.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",D.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",D.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",D.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",D.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",D.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(M0||(aH.DangerousChangeType=M0={}));function VS(D,F){return rH(D,F).filter((P)=>(P.type in $D))}function jS(D,F){return rH(D,F).filter((P)=>(P.type in M0))}function rH(D,F){return[...SS(D,F),...bS(D,F)]}function bS(D,F){let P=[],B=d0(D.getDirectives(),F.getDirectives());for(let Z of B.removed)P.push({type:$D.DIRECTIVE_REMOVED,description:`${Z.name} was removed.`});for(let[Z,q]of B.persisted){let X=d0(Z.args,q.args);for(let J of X.added)if(e.isRequiredArgument(J))P.push({type:$D.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${J.name} on directive ${Z.name} was added.`});for(let J of X.removed)P.push({type:$D.DIRECTIVE_ARG_REMOVED,description:`${J.name} was removed from ${Z.name}.`});if(Z.isRepeatable&&!q.isRepeatable)P.push({type:$D.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${Z.name}.`});for(let J of Z.locations)if(!q.locations.includes(J))P.push({type:$D.DIRECTIVE_LOCATION_REMOVED,description:`${J} was removed from ${Z.name}.`})}return P}function SS(D,F){let P=[],B=d0(Object.values(D.getTypeMap()),Object.values(F.getTypeMap()));for(let Z of B.removed)P.push({type:$D.TYPE_REMOVED,description:CS.isSpecifiedScalarType(Z)?`Standard scalar ${Z.name} was removed because it is not referenced anymore.`:`${Z.name} was removed.`});for(let[Z,q]of B.persisted)if(e.isEnumType(Z)&&e.isEnumType(q))P.push(...uS(Z,q));else if(e.isUnionType(Z)&&e.isUnionType(q))P.push(...NS(Z,q));else if(e.isInputObjectType(Z)&&e.isInputObjectType(q))P.push(...TS(Z,q));else if(e.isObjectType(Z)&&e.isObjectType(q))P.push(...lH(Z,q),...mH(Z,q));else if(e.isInterfaceType(Z)&&e.isInterfaceType(q))P.push(...lH(Z,q),...mH(Z,q));else if(Z.constructor!==q.constructor)P.push({type:$D.TYPE_CHANGED_KIND,description:`${Z.name} changed from ${cH(Z)} to ${cH(q)}.`});return P}function TS(D,F){let P=[],B=d0(Object.values(D.getFields()),Object.values(F.getFields()));for(let Z of B.added)if(e.isRequiredInputField(Z))P.push({type:$D.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${Z.name} on input type ${D.name} was added.`});else P.push({type:M0.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${Z.name} on input type ${D.name} was added.`});for(let Z of B.removed)P.push({type:$D.FIELD_REMOVED,description:`${D.name}.${Z.name} was removed.`});for(let[Z,q]of B.persisted)if(!S1(Z.type,q.type))P.push({type:$D.FIELD_CHANGED_KIND,description:`${D.name}.${Z.name} changed type from ${String(Z.type)} to ${String(q.type)}.`});return P}function NS(D,F){let P=[],B=d0(D.getTypes(),F.getTypes());for(let Z of B.added)P.push({type:M0.TYPE_ADDED_TO_UNION,description:`${Z.name} was added to union type ${D.name}.`});for(let Z of B.removed)P.push({type:$D.TYPE_REMOVED_FROM_UNION,description:`${Z.name} was removed from union type ${D.name}.`});return P}function uS(D,F){let P=[],B=d0(D.getValues(),F.getValues());for(let Z of B.added)P.push({type:M0.VALUE_ADDED_TO_ENUM,description:`${Z.name} was added to enum type ${D.name}.`});for(let Z of B.removed)P.push({type:$D.VALUE_REMOVED_FROM_ENUM,description:`${Z.name} was removed from enum type ${D.name}.`});return P}function mH(D,F){let P=[],B=d0(D.getInterfaces(),F.getInterfaces());for(let Z of B.added)P.push({type:M0.IMPLEMENTED_INTERFACE_ADDED,description:`${Z.name} added to interfaces implemented by ${D.name}.`});for(let Z of B.removed)P.push({type:$D.IMPLEMENTED_INTERFACE_REMOVED,description:`${D.name} no longer implements interface ${Z.name}.`});return P}function lH(D,F){let P=[],B=d0(Object.values(D.getFields()),Object.values(F.getFields()));for(let Z of B.removed)P.push({type:$D.FIELD_REMOVED,description:`${D.name}.${Z.name} was removed.`});for(let[Z,q]of B.persisted)if(P.push(..._S(D,Z,q)),!b1(Z.type,q.type))P.push({type:$D.FIELD_CHANGED_KIND,description:`${D.name}.${Z.name} changed type from ${String(Z.type)} to ${String(q.type)}.`});return P}function _S(D,F,P){let B=[],Z=d0(F.args,P.args);for(let q of Z.removed)B.push({type:$D.ARG_REMOVED,description:`${D.name}.${F.name} arg ${q.name} was removed.`});for(let[q,X]of Z.persisted)if(!S1(q.type,X.type))B.push({type:$D.ARG_CHANGED_KIND,description:`${D.name}.${F.name} arg ${q.name} has changed type from ${String(q.type)} to ${String(X.type)}.`});else if(q.defaultValue!==void 0)if(X.defaultValue===void 0)B.push({type:M0.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${F.name} arg ${q.name} defaultValue was removed.`});else{let Y=dH(q.defaultValue,q.type),H=dH(X.defaultValue,X.type);if(Y!==H)B.push({type:M0.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${F.name} arg ${q.name} has changed defaultValue from ${Y} to ${H}.`})}for(let q of Z.added)if(e.isRequiredArgument(q))B.push({type:$D.REQUIRED_ARG_ADDED,description:`A required arg ${q.name} on ${D.name}.${F.name} was added.`});else B.push({type:M0.OPTIONAL_ARG_ADDED,description:`An optional arg ${q.name} on ${D.name}.${F.name} was added.`});return B}function b1(D,F){if(e.isListType(D))return e.isListType(F)&&b1(D.ofType,F.ofType)||e.isNonNullType(F)&&b1(D,F.ofType);if(e.isNonNullType(D))return e.isNonNullType(F)&&b1(D.ofType,F.ofType);return e.isNamedType(F)&&D.name===F.name||e.isNonNullType(F)&&b1(D,F.ofType)}function S1(D,F){if(e.isListType(D))return e.isListType(F)&&S1(D.ofType,F.ofType);if(e.isNonNullType(D))return e.isNonNullType(F)&&S1(D.ofType,F.ofType)||!e.isNonNullType(F)&&S1(D.ofType,F);return e.isNamedType(F)&&D.name===F.name}function cH(D){if(e.isScalarType(D))return"a Scalar type";if(e.isObjectType(D))return"an Object type";if(e.isInterfaceType(D))return"an Interface type";if(e.isUnionType(D))return"a Union type";if(e.isEnumType(D))return"an Enum type";if(e.isInputObjectType(D))return"an Input type";pH.invariant(!1,"Unexpected type: "+ES.inspect(D))}function dH(D,F){let P=LS.astFromValue(D,F);return P!=null||pH.invariant(!1),AS.print(wS.sortValueNode(P))}function d0(D,F){let P=[],B=[],Z=[],q=yH.keyMap(D,({name:J})=>J),X=yH.keyMap(F,({name:J})=>J);for(let J of D){let Y=X[J.name];if(Y===void 0)B.push(J);else Z.push([J,Y])}for(let J of F)if(q[J.name]===void 0)P.push(J);return{added:P,persisted:Z,removed:B}}});var eH=Q((t)=>{Object.defineProperty(t,"__esModule",{value:!0});Object.defineProperty(t,"BreakingChangeType",{enumerable:!0,get:function(){return G3.BreakingChangeType}});Object.defineProperty(t,"DangerousChangeType",{enumerable:!0,get:function(){return G3.DangerousChangeType}});Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return oH.TypeInfo}});Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return tH.assertValidName}});Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return rS.astFromValue}});Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return iH.buildASTSchema}});Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return yS.buildClientSchema}});Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return iH.buildSchema}});Object.defineProperty(t,"coerceInputValue",{enumerable:!0,get:function(){return aS.coerceInputValue}});Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return sS.concatAST}});Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return A7.doTypesOverlap}});Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return mS.extendSchema}});Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return G3.findBreakingChanges}});Object.defineProperty(t,"findDangerousChanges",{enumerable:!0,get:function(){return G3.findDangerousChanges}});Object.defineProperty(t,"getIntrospectionQuery",{enumerable:!0,get:function(){return fS.getIntrospectionQuery}});Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return hS.getOperationAST}});Object.defineProperty(t,"getOperationRootType",{enumerable:!0,get:function(){return vS.getOperationRootType}});Object.defineProperty(t,"introspectionFromSchema",{enumerable:!0,get:function(){return gS.introspectionFromSchema}});Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return A7.isEqualType}});Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return A7.isTypeSubTypeOf}});Object.defineProperty(t,"isValidNameError",{enumerable:!0,get:function(){return tH.isValidNameError}});Object.defineProperty(t,"lexicographicSortSchema",{enumerable:!0,get:function(){return lS.lexicographicSortSchema}});Object.defineProperty(t,"printIntrospectionSchema",{enumerable:!0,get:function(){return E7.printIntrospectionSchema}});Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return E7.printSchema}});Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return E7.printType}});Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return nS.separateOperations}});Object.defineProperty(t,"stripIgnoredCharacters",{enumerable:!0,get:function(){return iS.stripIgnoredCharacters}});Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return cS.typeFromAST}});Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return dS.valueFromAST}});Object.defineProperty(t,"valueFromASTUntyped",{enumerable:!0,get:function(){return pS.valueFromASTUntyped}});Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return oH.visitWithTypeInfo}});var fS=U7(),hS=nY(),vS=oY(),gS=eY(),yS=PH(),iH=QH(),mS=O7(),lS=$H(),E7=VH(),cS=V0(),dS=$1(),pS=K4(),rS=H1(),oH=d6(),aS=j9(),sS=bH(),nS=uH(),iS=fH(),A7=P1(),tH=gH(),G3=nH()});var u0=Q((G)=>{Object.defineProperty(G,"__esModule",{value:!0});Object.defineProperty(G,"BREAK",{enumerable:!0,get:function(){return DD.BREAK}});Object.defineProperty(G,"BreakingChangeType",{enumerable:!0,get:function(){return FD.BreakingChangeType}});Object.defineProperty(G,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return L.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(G,"DangerousChangeType",{enumerable:!0,get:function(){return FD.DangerousChangeType}});Object.defineProperty(G,"DirectiveLocation",{enumerable:!0,get:function(){return DD.DirectiveLocation}});Object.defineProperty(G,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return c.ExecutableDefinitionsRule}});Object.defineProperty(G,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return c.FieldsOnCorrectTypeRule}});Object.defineProperty(G,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return c.FragmentsOnCompositeTypesRule}});Object.defineProperty(G,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return L.GRAPHQL_MAX_INT}});Object.defineProperty(G,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return L.GRAPHQL_MIN_INT}});Object.defineProperty(G,"GraphQLBoolean",{enumerable:!0,get:function(){return L.GraphQLBoolean}});Object.defineProperty(G,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return L.GraphQLDeprecatedDirective}});Object.defineProperty(G,"GraphQLDirective",{enumerable:!0,get:function(){return L.GraphQLDirective}});Object.defineProperty(G,"GraphQLEnumType",{enumerable:!0,get:function(){return L.GraphQLEnumType}});Object.defineProperty(G,"GraphQLError",{enumerable:!0,get:function(){return T1.GraphQLError}});Object.defineProperty(G,"GraphQLFloat",{enumerable:!0,get:function(){return L.GraphQLFloat}});Object.defineProperty(G,"GraphQLID",{enumerable:!0,get:function(){return L.GraphQLID}});Object.defineProperty(G,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return L.GraphQLIncludeDirective}});Object.defineProperty(G,"GraphQLInputObjectType",{enumerable:!0,get:function(){return L.GraphQLInputObjectType}});Object.defineProperty(G,"GraphQLInt",{enumerable:!0,get:function(){return L.GraphQLInt}});Object.defineProperty(G,"GraphQLInterfaceType",{enumerable:!0,get:function(){return L.GraphQLInterfaceType}});Object.defineProperty(G,"GraphQLList",{enumerable:!0,get:function(){return L.GraphQLList}});Object.defineProperty(G,"GraphQLNonNull",{enumerable:!0,get:function(){return L.GraphQLNonNull}});Object.defineProperty(G,"GraphQLObjectType",{enumerable:!0,get:function(){return L.GraphQLObjectType}});Object.defineProperty(G,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return L.GraphQLOneOfDirective}});Object.defineProperty(G,"GraphQLScalarType",{enumerable:!0,get:function(){return L.GraphQLScalarType}});Object.defineProperty(G,"GraphQLSchema",{enumerable:!0,get:function(){return L.GraphQLSchema}});Object.defineProperty(G,"GraphQLSkipDirective",{enumerable:!0,get:function(){return L.GraphQLSkipDirective}});Object.defineProperty(G,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return L.GraphQLSpecifiedByDirective}});Object.defineProperty(G,"GraphQLString",{enumerable:!0,get:function(){return L.GraphQLString}});Object.defineProperty(G,"GraphQLUnionType",{enumerable:!0,get:function(){return L.GraphQLUnionType}});Object.defineProperty(G,"Kind",{enumerable:!0,get:function(){return DD.Kind}});Object.defineProperty(G,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return c.KnownArgumentNamesRule}});Object.defineProperty(G,"KnownDirectivesRule",{enumerable:!0,get:function(){return c.KnownDirectivesRule}});Object.defineProperty(G,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return c.KnownFragmentNamesRule}});Object.defineProperty(G,"KnownTypeNamesRule",{enumerable:!0,get:function(){return c.KnownTypeNamesRule}});Object.defineProperty(G,"Lexer",{enumerable:!0,get:function(){return DD.Lexer}});Object.defineProperty(G,"Location",{enumerable:!0,get:function(){return DD.Location}});Object.defineProperty(G,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return c.LoneAnonymousOperationRule}});Object.defineProperty(G,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return c.LoneSchemaDefinitionRule}});Object.defineProperty(G,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return c.MaxIntrospectionDepthRule}});Object.defineProperty(G,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return c.NoDeprecatedCustomRule}});Object.defineProperty(G,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return c.NoFragmentCyclesRule}});Object.defineProperty(G,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return c.NoSchemaIntrospectionCustomRule}});Object.defineProperty(G,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return c.NoUndefinedVariablesRule}});Object.defineProperty(G,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return c.NoUnusedFragmentsRule}});Object.defineProperty(G,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return c.NoUnusedVariablesRule}});Object.defineProperty(G,"OperationTypeNode",{enumerable:!0,get:function(){return DD.OperationTypeNode}});Object.defineProperty(G,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return c.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(G,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return c.PossibleFragmentSpreadsRule}});Object.defineProperty(G,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return c.PossibleTypeExtensionsRule}});Object.defineProperty(G,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return c.ProvidedRequiredArgumentsRule}});Object.defineProperty(G,"ScalarLeafsRule",{enumerable:!0,get:function(){return c.ScalarLeafsRule}});Object.defineProperty(G,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return L.SchemaMetaFieldDef}});Object.defineProperty(G,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return c.SingleFieldSubscriptionsRule}});Object.defineProperty(G,"Source",{enumerable:!0,get:function(){return DD.Source}});Object.defineProperty(G,"Token",{enumerable:!0,get:function(){return DD.Token}});Object.defineProperty(G,"TokenKind",{enumerable:!0,get:function(){return DD.TokenKind}});Object.defineProperty(G,"TypeInfo",{enumerable:!0,get:function(){return FD.TypeInfo}});Object.defineProperty(G,"TypeKind",{enumerable:!0,get:function(){return L.TypeKind}});Object.defineProperty(G,"TypeMetaFieldDef",{enumerable:!0,get:function(){return L.TypeMetaFieldDef}});Object.defineProperty(G,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return L.TypeNameMetaFieldDef}});Object.defineProperty(G,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return c.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(G,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return c.UniqueArgumentNamesRule}});Object.defineProperty(G,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return c.UniqueDirectiveNamesRule}});Object.defineProperty(G,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return c.UniqueDirectivesPerLocationRule}});Object.defineProperty(G,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return c.UniqueEnumValueNamesRule}});Object.defineProperty(G,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return c.UniqueFieldDefinitionNamesRule}});Object.defineProperty(G,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return c.UniqueFragmentNamesRule}});Object.defineProperty(G,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return c.UniqueInputFieldNamesRule}});Object.defineProperty(G,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return c.UniqueOperationNamesRule}});Object.defineProperty(G,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return c.UniqueOperationTypesRule}});Object.defineProperty(G,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return c.UniqueTypeNamesRule}});Object.defineProperty(G,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return c.UniqueVariableNamesRule}});Object.defineProperty(G,"ValidationContext",{enumerable:!0,get:function(){return c.ValidationContext}});Object.defineProperty(G,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return c.ValuesOfCorrectTypeRule}});Object.defineProperty(G,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return c.VariablesAreInputTypesRule}});Object.defineProperty(G,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return c.VariablesInAllowedPositionRule}});Object.defineProperty(G,"__Directive",{enumerable:!0,get:function(){return L.__Directive}});Object.defineProperty(G,"__DirectiveLocation",{enumerable:!0,get:function(){return L.__DirectiveLocation}});Object.defineProperty(G,"__EnumValue",{enumerable:!0,get:function(){return L.__EnumValue}});Object.defineProperty(G,"__Field",{enumerable:!0,get:function(){return L.__Field}});Object.defineProperty(G,"__InputValue",{enumerable:!0,get:function(){return L.__InputValue}});Object.defineProperty(G,"__Schema",{enumerable:!0,get:function(){return L.__Schema}});Object.defineProperty(G,"__Type",{enumerable:!0,get:function(){return L.__Type}});Object.defineProperty(G,"__TypeKind",{enumerable:!0,get:function(){return L.__TypeKind}});Object.defineProperty(G,"assertAbstractType",{enumerable:!0,get:function(){return L.assertAbstractType}});Object.defineProperty(G,"assertCompositeType",{enumerable:!0,get:function(){return L.assertCompositeType}});Object.defineProperty(G,"assertDirective",{enumerable:!0,get:function(){return L.assertDirective}});Object.defineProperty(G,"assertEnumType",{enumerable:!0,get:function(){return L.assertEnumType}});Object.defineProperty(G,"assertEnumValueName",{enumerable:!0,get:function(){return L.assertEnumValueName}});Object.defineProperty(G,"assertInputObjectType",{enumerable:!0,get:function(){return L.assertInputObjectType}});Object.defineProperty(G,"assertInputType",{enumerable:!0,get:function(){return L.assertInputType}});Object.defineProperty(G,"assertInterfaceType",{enumerable:!0,get:function(){return L.assertInterfaceType}});Object.defineProperty(G,"assertLeafType",{enumerable:!0,get:function(){return L.assertLeafType}});Object.defineProperty(G,"assertListType",{enumerable:!0,get:function(){return L.assertListType}});Object.defineProperty(G,"assertName",{enumerable:!0,get:function(){return L.assertName}});Object.defineProperty(G,"assertNamedType",{enumerable:!0,get:function(){return L.assertNamedType}});Object.defineProperty(G,"assertNonNullType",{enumerable:!0,get:function(){return L.assertNonNullType}});Object.defineProperty(G,"assertNullableType",{enumerable:!0,get:function(){return L.assertNullableType}});Object.defineProperty(G,"assertObjectType",{enumerable:!0,get:function(){return L.assertObjectType}});Object.defineProperty(G,"assertOutputType",{enumerable:!0,get:function(){return L.assertOutputType}});Object.defineProperty(G,"assertScalarType",{enumerable:!0,get:function(){return L.assertScalarType}});Object.defineProperty(G,"assertSchema",{enumerable:!0,get:function(){return L.assertSchema}});Object.defineProperty(G,"assertType",{enumerable:!0,get:function(){return L.assertType}});Object.defineProperty(G,"assertUnionType",{enumerable:!0,get:function(){return L.assertUnionType}});Object.defineProperty(G,"assertValidName",{enumerable:!0,get:function(){return FD.assertValidName}});Object.defineProperty(G,"assertValidSchema",{enumerable:!0,get:function(){return L.assertValidSchema}});Object.defineProperty(G,"assertWrappingType",{enumerable:!0,get:function(){return L.assertWrappingType}});Object.defineProperty(G,"astFromValue",{enumerable:!0,get:function(){return FD.astFromValue}});Object.defineProperty(G,"buildASTSchema",{enumerable:!0,get:function(){return FD.buildASTSchema}});Object.defineProperty(G,"buildClientSchema",{enumerable:!0,get:function(){return FD.buildClientSchema}});Object.defineProperty(G,"buildSchema",{enumerable:!0,get:function(){return FD.buildSchema}});Object.defineProperty(G,"coerceInputValue",{enumerable:!0,get:function(){return FD.coerceInputValue}});Object.defineProperty(G,"concatAST",{enumerable:!0,get:function(){return FD.concatAST}});Object.defineProperty(G,"createSourceEventStream",{enumerable:!0,get:function(){return N0.createSourceEventStream}});Object.defineProperty(G,"defaultFieldResolver",{enumerable:!0,get:function(){return N0.defaultFieldResolver}});Object.defineProperty(G,"defaultTypeResolver",{enumerable:!0,get:function(){return N0.defaultTypeResolver}});Object.defineProperty(G,"doTypesOverlap",{enumerable:!0,get:function(){return FD.doTypesOverlap}});Object.defineProperty(G,"execute",{enumerable:!0,get:function(){return N0.execute}});Object.defineProperty(G,"executeSync",{enumerable:!0,get:function(){return N0.executeSync}});Object.defineProperty(G,"extendSchema",{enumerable:!0,get:function(){return FD.extendSchema}});Object.defineProperty(G,"findBreakingChanges",{enumerable:!0,get:function(){return FD.findBreakingChanges}});Object.defineProperty(G,"findDangerousChanges",{enumerable:!0,get:function(){return FD.findDangerousChanges}});Object.defineProperty(G,"formatError",{enumerable:!0,get:function(){return T1.formatError}});Object.defineProperty(G,"getArgumentValues",{enumerable:!0,get:function(){return N0.getArgumentValues}});Object.defineProperty(G,"getDirectiveValues",{enumerable:!0,get:function(){return N0.getDirectiveValues}});Object.defineProperty(G,"getEnterLeaveForKind",{enumerable:!0,get:function(){return DD.getEnterLeaveForKind}});Object.defineProperty(G,"getIntrospectionQuery",{enumerable:!0,get:function(){return FD.getIntrospectionQuery}});Object.defineProperty(G,"getLocation",{enumerable:!0,get:function(){return DD.getLocation}});Object.defineProperty(G,"getNamedType",{enumerable:!0,get:function(){return L.getNamedType}});Object.defineProperty(G,"getNullableType",{enumerable:!0,get:function(){return L.getNullableType}});Object.defineProperty(G,"getOperationAST",{enumerable:!0,get:function(){return FD.getOperationAST}});Object.defineProperty(G,"getOperationRootType",{enumerable:!0,get:function(){return FD.getOperationRootType}});Object.defineProperty(G,"getVariableValues",{enumerable:!0,get:function(){return N0.getVariableValues}});Object.defineProperty(G,"getVisitFn",{enumerable:!0,get:function(){return DD.getVisitFn}});Object.defineProperty(G,"graphql",{enumerable:!0,get:function(){return FU.graphql}});Object.defineProperty(G,"graphqlSync",{enumerable:!0,get:function(){return FU.graphqlSync}});Object.defineProperty(G,"introspectionFromSchema",{enumerable:!0,get:function(){return FD.introspectionFromSchema}});Object.defineProperty(G,"introspectionTypes",{enumerable:!0,get:function(){return L.introspectionTypes}});Object.defineProperty(G,"isAbstractType",{enumerable:!0,get:function(){return L.isAbstractType}});Object.defineProperty(G,"isCompositeType",{enumerable:!0,get:function(){return L.isCompositeType}});Object.defineProperty(G,"isConstValueNode",{enumerable:!0,get:function(){return DD.isConstValueNode}});Object.defineProperty(G,"isDefinitionNode",{enumerable:!0,get:function(){return DD.isDefinitionNode}});Object.defineProperty(G,"isDirective",{enumerable:!0,get:function(){return L.isDirective}});Object.defineProperty(G,"isEnumType",{enumerable:!0,get:function(){return L.isEnumType}});Object.defineProperty(G,"isEqualType",{enumerable:!0,get:function(){return FD.isEqualType}});Object.defineProperty(G,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return DD.isExecutableDefinitionNode}});Object.defineProperty(G,"isInputObjectType",{enumerable:!0,get:function(){return L.isInputObjectType}});Object.defineProperty(G,"isInputType",{enumerable:!0,get:function(){return L.isInputType}});Object.defineProperty(G,"isInterfaceType",{enumerable:!0,get:function(){return L.isInterfaceType}});Object.defineProperty(G,"isIntrospectionType",{enumerable:!0,get:function(){return L.isIntrospectionType}});Object.defineProperty(G,"isLeafType",{enumerable:!0,get:function(){return L.isLeafType}});Object.defineProperty(G,"isListType",{enumerable:!0,get:function(){return L.isListType}});Object.defineProperty(G,"isNamedType",{enumerable:!0,get:function(){return L.isNamedType}});Object.defineProperty(G,"isNonNullType",{enumerable:!0,get:function(){return L.isNonNullType}});Object.defineProperty(G,"isNullableType",{enumerable:!0,get:function(){return L.isNullableType}});Object.defineProperty(G,"isObjectType",{enumerable:!0,get:function(){return L.isObjectType}});Object.defineProperty(G,"isOutputType",{enumerable:!0,get:function(){return L.isOutputType}});Object.defineProperty(G,"isRequiredArgument",{enumerable:!0,get:function(){return L.isRequiredArgument}});Object.defineProperty(G,"isRequiredInputField",{enumerable:!0,get:function(){return L.isRequiredInputField}});Object.defineProperty(G,"isScalarType",{enumerable:!0,get:function(){return L.isScalarType}});Object.defineProperty(G,"isSchema",{enumerable:!0,get:function(){return L.isSchema}});Object.defineProperty(G,"isSelectionNode",{enumerable:!0,get:function(){return DD.isSelectionNode}});Object.defineProperty(G,"isSpecifiedDirective",{enumerable:!0,get:function(){return L.isSpecifiedDirective}});Object.defineProperty(G,"isSpecifiedScalarType",{enumerable:!0,get:function(){return L.isSpecifiedScalarType}});Object.defineProperty(G,"isType",{enumerable:!0,get:function(){return L.isType}});Object.defineProperty(G,"isTypeDefinitionNode",{enumerable:!0,get:function(){return DD.isTypeDefinitionNode}});Object.defineProperty(G,"isTypeExtensionNode",{enumerable:!0,get:function(){return DD.isTypeExtensionNode}});Object.defineProperty(G,"isTypeNode",{enumerable:!0,get:function(){return DD.isTypeNode}});Object.defineProperty(G,"isTypeSubTypeOf",{enumerable:!0,get:function(){return FD.isTypeSubTypeOf}});Object.defineProperty(G,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return DD.isTypeSystemDefinitionNode}});Object.defineProperty(G,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return DD.isTypeSystemExtensionNode}});Object.defineProperty(G,"isUnionType",{enumerable:!0,get:function(){return L.isUnionType}});Object.defineProperty(G,"isValidNameError",{enumerable:!0,get:function(){return FD.isValidNameError}});Object.defineProperty(G,"isValueNode",{enumerable:!0,get:function(){return DD.isValueNode}});Object.defineProperty(G,"isWrappingType",{enumerable:!0,get:function(){return L.isWrappingType}});Object.defineProperty(G,"lexicographicSortSchema",{enumerable:!0,get:function(){return FD.lexicographicSortSchema}});Object.defineProperty(G,"locatedError",{enumerable:!0,get:function(){return T1.locatedError}});Object.defineProperty(G,"parse",{enumerable:!0,get:function(){return DD.parse}});Object.defineProperty(G,"parseConstValue",{enumerable:!0,get:function(){return DD.parseConstValue}});Object.defineProperty(G,"parseType",{enumerable:!0,get:function(){return DD.parseType}});Object.defineProperty(G,"parseValue",{enumerable:!0,get:function(){return DD.parseValue}});Object.defineProperty(G,"print",{enumerable:!0,get:function(){return DD.print}});Object.defineProperty(G,"printError",{enumerable:!0,get:function(){return T1.printError}});Object.defineProperty(G,"printIntrospectionSchema",{enumerable:!0,get:function(){return FD.printIntrospectionSchema}});Object.defineProperty(G,"printLocation",{enumerable:!0,get:function(){return DD.printLocation}});Object.defineProperty(G,"printSchema",{enumerable:!0,get:function(){return FD.printSchema}});Object.defineProperty(G,"printSourceLocation",{enumerable:!0,get:function(){return DD.printSourceLocation}});Object.defineProperty(G,"printType",{enumerable:!0,get:function(){return FD.printType}});Object.defineProperty(G,"recommendedRules",{enumerable:!0,get:function(){return c.recommendedRules}});Object.defineProperty(G,"resolveObjMapThunk",{enumerable:!0,get:function(){return L.resolveObjMapThunk}});Object.defineProperty(G,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return L.resolveReadonlyArrayThunk}});Object.defineProperty(G,"responsePathAsArray",{enumerable:!0,get:function(){return N0.responsePathAsArray}});Object.defineProperty(G,"separateOperations",{enumerable:!0,get:function(){return FD.separateOperations}});Object.defineProperty(G,"specifiedDirectives",{enumerable:!0,get:function(){return L.specifiedDirectives}});Object.defineProperty(G,"specifiedRules",{enumerable:!0,get:function(){return c.specifiedRules}});Object.defineProperty(G,"specifiedScalarTypes",{enumerable:!0,get:function(){return L.specifiedScalarTypes}});Object.defineProperty(G,"stripIgnoredCharacters",{enumerable:!0,get:function(){return FD.stripIgnoredCharacters}});Object.defineProperty(G,"subscribe",{enumerable:!0,get:function(){return N0.subscribe}});Object.defineProperty(G,"syntaxError",{enumerable:!0,get:function(){return T1.syntaxError}});Object.defineProperty(G,"typeFromAST",{enumerable:!0,get:function(){return FD.typeFromAST}});Object.defineProperty(G,"validate",{enumerable:!0,get:function(){return c.validate}});Object.defineProperty(G,"validateSchema",{enumerable:!0,get:function(){return L.validateSchema}});Object.defineProperty(G,"valueFromAST",{enumerable:!0,get:function(){return FD.valueFromAST}});Object.defineProperty(G,"valueFromASTUntyped",{enumerable:!0,get:function(){return FD.valueFromASTUntyped}});Object.defineProperty(G,"version",{enumerable:!0,get:function(){return DU.version}});Object.defineProperty(G,"versionInfo",{enumerable:!0,get:function(){return DU.versionInfo}});Object.defineProperty(G,"visit",{enumerable:!0,get:function(){return DD.visit}});Object.defineProperty(G,"visitInParallel",{enumerable:!0,get:function(){return DD.visitInParallel}});Object.defineProperty(G,"visitWithTypeInfo",{enumerable:!0,get:function(){return FD.visitWithTypeInfo}});var DU=UB(),FU=CY(),L=VY(),DD=bY(),N0=gY(),c=pY(),T1=rY(),FD=eH()});var SU=Q((md,bU)=>{bU.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var y7=Q((ld,NU)=>{var v1=SU(),TU={};for(let D of Object.keys(v1))TU[v1[D]]=D;var f={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};NU.exports=f;for(let D of Object.keys(f)){if(!("channels"in f[D]))throw new Error("missing channels property: "+D);if(!("labels"in f[D]))throw new Error("missing channel labels property: "+D);if(f[D].labels.length!==f[D].channels)throw new Error("channel and label counts mismatch: "+D);let{channels:F,labels:P}=f[D];delete f[D].channels,delete f[D].labels,Object.defineProperty(f[D],"channels",{value:F}),Object.defineProperty(f[D],"labels",{value:P})}f.rgb.hsl=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255,Z=Math.min(F,P,B),q=Math.max(F,P,B),X=q-Z,J,Y;if(q===Z)J=0;else if(F===q)J=(P-B)/X;else if(P===q)J=2+(B-F)/X;else if(B===q)J=4+(F-P)/X;if(J=Math.min(J*60,360),J<0)J+=360;let H=(Z+q)/2;if(q===Z)Y=0;else if(H<=0.5)Y=X/(q+Z);else Y=X/(2-q-Z);return[J,Y*100,H*100]};f.rgb.hsv=function(D){let F,P,B,Z,q,X=D[0]/255,J=D[1]/255,Y=D[2]/255,H=Math.max(X,J,Y),W=H-Math.min(X,J,Y),U=function(O){return(H-O)/6/W+0.5};if(W===0)Z=0,q=0;else{if(q=W/H,F=U(X),P=U(J),B=U(Y),X===H)Z=B-P;else if(J===H)Z=0.3333333333333333+F-B;else if(Y===H)Z=0.6666666666666666+P-F;if(Z<0)Z+=1;else if(Z>1)Z-=1}return[Z*360,q*100,H*100]};f.rgb.hwb=function(D){let F=D[0],P=D[1],B=D[2],Z=f.rgb.hsl(D)[0],q=0.00392156862745098*Math.min(F,Math.min(P,B));return B=1-0.00392156862745098*Math.max(F,Math.max(P,B)),[Z,q*100,B*100]};f.rgb.cmyk=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255,Z=Math.min(1-F,1-P,1-B),q=(1-F-Z)/(1-Z)||0,X=(1-P-Z)/(1-Z)||0,J=(1-B-Z)/(1-Z)||0;return[q*100,X*100,J*100,Z*100]};function MT(D,F){return(D[0]-F[0])**2+(D[1]-F[1])**2+(D[2]-F[2])**2}f.rgb.keyword=function(D){let F=TU[D];if(F)return F;let P=1/0,B;for(let Z of Object.keys(v1)){let q=v1[Z],X=MT(D,q);if(X<P)P=X,B=Z}return B};f.keyword.rgb=function(D){return v1[D]};f.rgb.xyz=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255;F=F>0.04045?((F+0.055)/1.055)**2.4:F/12.92,P=P>0.04045?((P+0.055)/1.055)**2.4:P/12.92,B=B>0.04045?((B+0.055)/1.055)**2.4:B/12.92;let Z=F*0.4124+P*0.3576+B*0.1805,q=F*0.2126+P*0.7152+B*0.0722,X=F*0.0193+P*0.1192+B*0.9505;return[Z*100,q*100,X*100]};f.rgb.lab=function(D){let F=f.rgb.xyz(D),P=F[0],B=F[1],Z=F[2];P/=95.047,B/=100,Z/=108.883,P=P>0.008856?P**0.3333333333333333:7.787*P+0.13793103448275862,B=B>0.008856?B**0.3333333333333333:7.787*B+0.13793103448275862,Z=Z>0.008856?Z**0.3333333333333333:7.787*Z+0.13793103448275862;let q=116*B-16,X=500*(P-B),J=200*(B-Z);return[q,X,J]};f.hsl.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100,Z,q,X;if(P===0)return X=B*255,[X,X,X];if(B<0.5)Z=B*(1+P);else Z=B+P-B*P;let J=2*B-Z,Y=[0,0,0];for(let H=0;H<3;H++){if(q=F+0.3333333333333333*-(H-1),q<0)q++;if(q>1)q--;if(6*q<1)X=J+(Z-J)*6*q;else if(2*q<1)X=Z;else if(3*q<2)X=J+(Z-J)*(0.6666666666666666-q)*6;else X=J;Y[H]=X*255}return Y};f.hsl.hsv=function(D){let F=D[0],P=D[1]/100,B=D[2]/100,Z=P,q=Math.max(B,0.01);B*=2,P*=B<=1?B:2-B,Z*=q<=1?q:2-q;let X=(B+P)/2,J=B===0?2*Z/(q+Z):2*P/(B+P);return[F,J*100,X*100]};f.hsv.rgb=function(D){let F=D[0]/60,P=D[1]/100,B=D[2]/100,Z=Math.floor(F)%6,q=F-Math.floor(F),X=255*B*(1-P),J=255*B*(1-P*q),Y=255*B*(1-P*(1-q));switch(B*=255,Z){case 0:return[B,Y,X];case 1:return[J,B,X];case 2:return[X,B,Y];case 3:return[X,J,B];case 4:return[Y,X,B];case 5:return[B,X,J]}};f.hsv.hsl=function(D){let F=D[0],P=D[1]/100,B=D[2]/100,Z=Math.max(B,0.01),q,X;X=(2-P)*B;let J=(2-P)*Z;return q=P*Z,q/=J<=1?J:2-J,q=q||0,X/=2,[F,q*100,X*100]};f.hwb.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100,Z=P+B,q;if(Z>1)P/=Z,B/=Z;let X=Math.floor(6*F),J=1-B;if(q=6*F-X,(X&1)!==0)q=1-q;let Y=P+q*(J-P),H,W,U;switch(X){default:case 6:case 0:H=J,W=Y,U=P;break;case 1:H=Y,W=J,U=P;break;case 2:H=P,W=J,U=Y;break;case 3:H=P,W=Y,U=J;break;case 4:H=Y,W=P,U=J;break;case 5:H=J,W=P,U=Y;break}return[H*255,W*255,U*255]};f.cmyk.rgb=function(D){let F=D[0]/100,P=D[1]/100,B=D[2]/100,Z=D[3]/100,q=1-Math.min(1,F*(1-Z)+Z),X=1-Math.min(1,P*(1-Z)+Z),J=1-Math.min(1,B*(1-Z)+Z);return[q*255,X*255,J*255]};f.xyz.rgb=function(D){let F=D[0]/100,P=D[1]/100,B=D[2]/100,Z,q,X;return Z=F*3.2406+P*-1.5372+B*-0.4986,q=F*-0.9689+P*1.8758+B*0.0415,X=F*0.0557+P*-0.204+B*1.057,Z=Z>0.0031308?1.055*Z**0.4166666666666667-0.055:Z*12.92,q=q>0.0031308?1.055*q**0.4166666666666667-0.055:q*12.92,X=X>0.0031308?1.055*X**0.4166666666666667-0.055:X*12.92,Z=Math.min(Math.max(0,Z),1),q=Math.min(Math.max(0,q),1),X=Math.min(Math.max(0,X),1),[Z*255,q*255,X*255]};f.xyz.lab=function(D){let F=D[0],P=D[1],B=D[2];F/=95.047,P/=100,B/=108.883,F=F>0.008856?F**0.3333333333333333:7.787*F+0.13793103448275862,P=P>0.008856?P**0.3333333333333333:7.787*P+0.13793103448275862,B=B>0.008856?B**0.3333333333333333:7.787*B+0.13793103448275862;let Z=116*P-16,q=500*(F-P),X=200*(P-B);return[Z,q,X]};f.lab.xyz=function(D){let F=D[0],P=D[1],B=D[2],Z,q,X;q=(F+16)/116,Z=P/500+q,X=q-B/200;let J=q**3,Y=Z**3,H=X**3;return q=J>0.008856?J:(q-0.13793103448275862)/7.787,Z=Y>0.008856?Y:(Z-0.13793103448275862)/7.787,X=H>0.008856?H:(X-0.13793103448275862)/7.787,Z*=95.047,q*=100,X*=108.883,[Z,q,X]};f.lab.lch=function(D){let F=D[0],P=D[1],B=D[2],Z;if(Z=Math.atan2(B,P)*360/2/Math.PI,Z<0)Z+=360;let X=Math.sqrt(P*P+B*B);return[F,X,Z]};f.lch.lab=function(D){let F=D[0],P=D[1],Z=D[2]/360*2*Math.PI,q=P*Math.cos(Z),X=P*Math.sin(Z);return[F,q,X]};f.rgb.ansi16=function(D,F=null){let[P,B,Z]=D,q=F===null?f.rgb.hsv(D)[2]:F;if(q=Math.round(q/50),q===0)return 30;let X=30+(Math.round(Z/255)<<2|Math.round(B/255)<<1|Math.round(P/255));if(q===2)X+=60;return X};f.hsv.ansi16=function(D){return f.rgb.ansi16(f.hsv.rgb(D),D[2])};f.rgb.ansi256=function(D){let F=D[0],P=D[1],B=D[2];if(F===P&&P===B){if(F<8)return 16;if(F>248)return 231;return Math.round((F-8)/247*24)+232}return 16+36*Math.round(F/255*5)+6*Math.round(P/255*5)+Math.round(B/255*5)};f.ansi16.rgb=function(D){let F=D%10;if(F===0||F===7){if(D>50)F+=3.5;return F=F/10.5*255,[F,F,F]}let P=(~~(D>50)+1)*0.5,B=(F&1)*P*255,Z=(F>>1&1)*P*255,q=(F>>2&1)*P*255;return[B,Z,q]};f.ansi256.rgb=function(D){if(D>=232){let q=(D-232)*10+8;return[q,q,q]}D-=16;let F,P=Math.floor(D/36)/5*255,B=Math.floor((F=D%36)/6)/5*255,Z=F%6/5*255;return[P,B,Z]};f.rgb.hex=function(D){let P=(((Math.round(D[0])&255)<<16)+((Math.round(D[1])&255)<<8)+(Math.round(D[2])&255)).toString(16).toUpperCase();return"000000".substring(P.length)+P};f.hex.rgb=function(D){let F=D.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!F)return[0,0,0];let P=F[0];if(F[0].length===3)P=P.split("").map((J)=>{return J+J}).join("");let B=parseInt(P,16),Z=B>>16&255,q=B>>8&255,X=B&255;return[Z,q,X]};f.rgb.hcg=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255,Z=Math.max(Math.max(F,P),B),q=Math.min(Math.min(F,P),B),X=Z-q,J,Y;if(X<1)J=q/(1-X);else J=0;if(X<=0)Y=0;else if(Z===F)Y=(P-B)/X%6;else if(Z===P)Y=2+(B-F)/X;else Y=4+(F-P)/X;return Y/=6,Y%=1,[Y*360,X*100,J*100]};f.hsl.hcg=function(D){let F=D[1]/100,P=D[2]/100,B=P<0.5?2*F*P:2*F*(1-P),Z=0;if(B<1)Z=(P-0.5*B)/(1-B);return[D[0],B*100,Z*100]};f.hsv.hcg=function(D){let F=D[1]/100,P=D[2]/100,B=F*P,Z=0;if(B<1)Z=(P-B)/(1-B);return[D[0],B*100,Z*100]};f.hcg.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100;if(P===0)return[B*255,B*255,B*255];let Z=[0,0,0],q=F%1*6,X=q%1,J=1-X,Y=0;switch(Math.floor(q)){case 0:Z[0]=1,Z[1]=X,Z[2]=0;break;case 1:Z[0]=J,Z[1]=1,Z[2]=0;break;case 2:Z[0]=0,Z[1]=1,Z[2]=X;break;case 3:Z[0]=0,Z[1]=J,Z[2]=1;break;case 4:Z[0]=X,Z[1]=0,Z[2]=1;break;default:Z[0]=1,Z[1]=0,Z[2]=J}return Y=(1-P)*B,[(P*Z[0]+Y)*255,(P*Z[1]+Y)*255,(P*Z[2]+Y)*255]};f.hcg.hsv=function(D){let F=D[1]/100,P=D[2]/100,B=F+P*(1-F),Z=0;if(B>0)Z=F/B;return[D[0],Z*100,B*100]};f.hcg.hsl=function(D){let F=D[1]/100,B=D[2]/100*(1-F)+0.5*F,Z=0;if(B>0&&B<0.5)Z=F/(2*B);else if(B>=0.5&&B<1)Z=F/(2*(1-B));return[D[0],Z*100,B*100]};f.hcg.hwb=function(D){let F=D[1]/100,P=D[2]/100,B=F+P*(1-F);return[D[0],(B-F)*100,(1-B)*100]};f.hwb.hcg=function(D){let F=D[1]/100,B=1-D[2]/100,Z=B-F,q=0;if(Z<1)q=(B-Z)/(1-Z);return[D[0],Z*100,q*100]};f.apple.rgb=function(D){return[D[0]/65535*255,D[1]/65535*255,D[2]/65535*255]};f.rgb.apple=function(D){return[D[0]/255*65535,D[1]/255*65535,D[2]/255*65535]};f.gray.rgb=function(D){return[D[0]/100*255,D[0]/100*255,D[0]/100*255]};f.gray.hsl=function(D){return[0,0,D[0]]};f.gray.hsv=f.gray.hsl;f.gray.hwb=function(D){return[0,100,D[0]]};f.gray.cmyk=function(D){return[0,0,0,D[0]]};f.gray.lab=function(D){return[D[0],0,0]};f.gray.hex=function(D){let F=Math.round(D[0]/100*255)&255,B=((F<<16)+(F<<8)+F).toString(16).toUpperCase();return"000000".substring(B.length)+B};f.rgb.gray=function(D){return[(D[0]+D[1]+D[2])/3/255*100]}});var _U=Q((cd,uU)=>{var T3=y7();function KT(){let D={},F=Object.keys(T3);for(let P=F.length,B=0;B<P;B++)D[F[B]]={distance:-1,parent:null};return D}function ET(D){let F=KT(),P=[D];F[D].distance=0;while(P.length){let B=P.pop(),Z=Object.keys(T3[B]);for(let q=Z.length,X=0;X<q;X++){let J=Z[X],Y=F[J];if(Y.distance===-1)Y.distance=F[B].distance+1,Y.parent=B,P.unshift(J)}}return F}function AT(D,F){return function(P){return F(D(P))}}function CT(D,F){let P=[F[D].parent,D],B=T3[F[D].parent][D],Z=F[D].parent;while(F[Z].parent)P.unshift(F[Z].parent),B=AT(T3[F[Z].parent][Z],B),Z=F[Z].parent;return B.conversion=P,B}uU.exports=function(D){let F=ET(D),P={},B=Object.keys(F);for(let Z=B.length,q=0;q<Z;q++){let X=B[q];if(F[X].parent===null)continue;P[X]=CT(X,F)}return P}});var xU=Q((dd,kU)=>{var m7=y7(),LT=_U(),L8={},wT=Object.keys(m7);function VT(D){let F=function(...P){let B=P[0];if(B===void 0||B===null)return B;if(B.length>1)P=B;return D(P)};if("conversion"in D)F.conversion=D.conversion;return F}function jT(D){let F=function(...P){let B=P[0];if(B===void 0||B===null)return B;if(B.length>1)P=B;let Z=D(P);if(typeof Z==="object")for(let q=Z.length,X=0;X<q;X++)Z[X]=Math.round(Z[X]);return Z};if("conversion"in D)F.conversion=D.conversion;return F}wT.forEach((D)=>{L8[D]={},Object.defineProperty(L8[D],"channels",{value:m7[D].channels}),Object.defineProperty(L8[D],"labels",{value:m7[D].labels});let F=LT(D);Object.keys(F).forEach((B)=>{let Z=F[B];L8[D][B]=jT(Z),L8[D][B].raw=VT(Z)})});kU.exports=L8});var g1=Q((pd,yU)=>{var fU=(D,F)=>(...P)=>{return`\x1B[${D(...P)+F}m`},hU=(D,F)=>(...P)=>{let B=D(...P);return`\x1B[${38+F};5;${B}m`},vU=(D,F)=>(...P)=>{let B=D(...P);return`\x1B[${38+F};2;${B[0]};${B[1]};${B[2]}m`},N3=(D)=>D,gU=(D,F,P)=>[D,F,P],w8=(D,F,P)=>{Object.defineProperty(D,F,{get:()=>{let B=P();return Object.defineProperty(D,F,{value:B,enumerable:!0,configurable:!0}),B},enumerable:!0,configurable:!0})},l7,V8=(D,F,P,B)=>{if(l7===void 0)l7=xU();let Z=B?10:0,q={};for(let[X,J]of Object.entries(l7)){let Y=X==="ansi16"?"ansi":X;if(X===F)q[Y]=D(P,Z);else if(typeof J==="object")q[Y]=D(J[F],Z)}return q};function bT(){let D=new Map,F={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};F.color.gray=F.color.blackBright,F.bgColor.bgGray=F.bgColor.bgBlackBright,F.color.grey=F.color.blackBright,F.bgColor.bgGrey=F.bgColor.bgBlackBright;for(let[P,B]of Object.entries(F)){for(let[Z,q]of Object.entries(B))F[Z]={open:`\x1B[${q[0]}m`,close:`\x1B[${q[1]}m`},B[Z]=F[Z],D.set(q[0],q[1]);Object.defineProperty(F,P,{value:B,enumerable:!1})}return Object.defineProperty(F,"codes",{value:D,enumerable:!1}),F.color.close="\x1B[39m",F.bgColor.close="\x1B[49m",w8(F.color,"ansi",()=>V8(fU,"ansi16",N3,!1)),w8(F.color,"ansi256",()=>V8(hU,"ansi256",N3,!1)),w8(F.color,"ansi16m",()=>V8(vU,"rgb",gU,!1)),w8(F.bgColor,"ansi",()=>V8(fU,"ansi16",N3,!0)),w8(F.bgColor,"ansi256",()=>V8(hU,"ansi256",N3,!0)),w8(F.bgColor,"ansi16m",()=>V8(vU,"rgb",gU,!0)),F}Object.defineProperty(yU,"exports",{enumerable:!0,get:bT})});var u3=Q((rd,mU)=>{mU.exports=(D,F=process.argv)=>{let P=D.startsWith("-")?"":D.length===1?"-":"--",B=F.indexOf(P+D),Z=F.indexOf("--");return B!==-1&&(Z===-1||B<Z)}});var dU=Q((ad,cU)=>{var ST=pD("os"),lU=pD("tty"),B0=u3(),{env:TD}=process,J2;if(B0("no-color")||B0("no-colors")||B0("color=false")||B0("color=never"))J2=0;else if(B0("color")||B0("colors")||B0("color=true")||B0("color=always"))J2=1;if("FORCE_COLOR"in TD)if(TD.FORCE_COLOR==="true")J2=1;else if(TD.FORCE_COLOR==="false")J2=0;else J2=TD.FORCE_COLOR.length===0?1:Math.min(parseInt(TD.FORCE_COLOR,10),3);function c7(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function d7(D,F){if(J2===0)return 0;if(B0("color=16m")||B0("color=full")||B0("color=truecolor"))return 3;if(B0("color=256"))return 2;if(D&&!F&&J2===void 0)return 0;let P=J2||0;if(TD.TERM==="dumb")return P;if(process.platform==="win32"){let B=ST.release().split(".");if(Number(B[0])>=10&&Number(B[2])>=10586)return Number(B[2])>=14931?3:2;return 1}if("CI"in TD){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((B)=>(B in TD))||TD.CI_NAME==="codeship")return 1;return P}if("TEAMCITY_VERSION"in TD)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(TD.TEAMCITY_VERSION)?1:0;if(TD.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in TD){let B=parseInt((TD.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(TD.TERM_PROGRAM){case"iTerm.app":return B>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(TD.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(TD.TERM))return 1;if("COLORTERM"in TD)return 1;return P}function TT(D){let F=d7(D,D&&D.isTTY);return c7(F)}cU.exports={supportsColor:TT,stdout:c7(d7(!0,lU.isatty(1))),stderr:c7(d7(!0,lU.isatty(2)))}});var rU=Q((sd,pU)=>{var NT=(D,F,P)=>{let B=D.indexOf(F);if(B===-1)return D;let Z=F.length,q=0,X="";do X+=D.substr(q,B-q)+F+P,q=B+Z,B=D.indexOf(F,q);while(B!==-1);return X+=D.substr(q),X},uT=(D,F,P,B)=>{let Z=0,q="";do{let X=D[B-1]==="\r";q+=D.substr(Z,(X?B-1:B)-Z)+F+(X?`\r
199
199
  `:`
200
200
  `)+P,Z=B+1,B=D.indexOf(`
201
201
  `,Z)}while(B!==-1);return q+=D.substr(Z),q};pU.exports={stringReplaceAll:NT,stringEncaseCRLFWithFirstIndex:uT}});var oU=Q((nd,iU)=>{var _T=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,aU=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,kT=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,xT=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,fT=new Map([["n",`
202
- `],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function nU(D){let F=D[0]==="u",P=D[1]==="{";if(F&&!P&&D.length===5||D[0]==="x"&&D.length===3)return String.fromCharCode(parseInt(D.slice(1),16));if(F&&P)return String.fromCodePoint(parseInt(D.slice(2,-1),16));return fT.get(D)||D}function hT(D,F){let P=[],B=F.trim().split(/\s*,\s*/g),Z;for(let q of B){let X=Number(q);if(!Number.isNaN(X))P.push(X);else if(Z=q.match(kT))P.push(Z[2].replace(xT,(J,Y,H)=>Y?nU(Y):H));else throw new Error(`Invalid Chalk template style argument: ${q} (in style '${D}')`)}return P}function vT(D){aU.lastIndex=0;let F=[],P;while((P=aU.exec(D))!==null){let B=P[1];if(P[2]){let Z=hT(B,P[2]);F.push([B].concat(Z))}else F.push([B])}return F}function sU(D,F){let P={};for(let Z of F)for(let q of Z.styles)P[q[0]]=Z.inverse?null:q.slice(1);let B=D;for(let[Z,q]of Object.entries(P)){if(!Array.isArray(q))continue;if(!(Z in B))throw new Error(`Unknown Chalk style: ${Z}`);B=q.length>0?B[Z](...q):B[Z]}return B}iU.exports=(D,F)=>{let P=[],B=[],Z=[];if(F.replace(_T,(q,X,J,Y,H,W)=>{if(X)Z.push(nU(X));else if(Y){let U=Z.join("");Z=[],B.push(P.length===0?U:sU(D,P)(U)),P.push({inverse:J,styles:vT(Y)})}else if(H){if(P.length===0)throw new Error("Found extraneous } in Chalk template literal");B.push(sU(D,P)(Z.join(""))),Z=[],P.pop()}else Z.push(W)}),B.push(Z.join("")),P.length>0){let q=`Chalk template literal is missing ${P.length} closing bracket${P.length===1?"":"s"} (\`}\`)`;throw new Error(q)}return B.join("")}});var n7=Q((id,ZW)=>{var y1=g1(),{stdout:r7,stderr:a7}=dU(),{stringReplaceAll:gT,stringEncaseCRLFWithFirstIndex:yT}=rU(),{isArray:_3}=Array,eU=["ansi","ansi","ansi256","ansi16m"],V8=Object.create(null),mT=(D,F={})=>{if(F.level&&!(Number.isInteger(F.level)&&F.level>=0&&F.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let P=r7?r7.level:0;D.level=F.level===void 0?P:F.level};class DW{constructor(D){return FW(D)}}var FW=(D)=>{let F={};return mT(F,D),F.template=(...P)=>BW(F.template,...P),Object.setPrototypeOf(F,k3.prototype),Object.setPrototypeOf(F.template,F),F.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},F.template.Instance=DW,F.template};function k3(D){return FW(D)}for(let[D,F]of Object.entries(y1))V8[D]={get(){let P=x3(this,s7(F.open,F.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:P}),P}};V8.visible={get(){let D=x3(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var PW=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of PW)V8[D]={get(){let{level:F}=this;return function(...P){let B=s7(y1.color[eU[F]][D](...P),y1.color.close,this._styler);return x3(this,B,this._isEmpty)}}};for(let D of PW){let F="bg"+D[0].toUpperCase()+D.slice(1);V8[F]={get(){let{level:P}=this;return function(...B){let Z=s7(y1.bgColor[eU[P]][D](...B),y1.bgColor.close,this._styler);return x3(this,Z,this._isEmpty)}}}}var lT=Object.defineProperties(()=>{},{...V8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),s7=(D,F,P)=>{let B,Z;if(P===void 0)B=D,Z=F;else B=P.openAll+D,Z=F+P.closeAll;return{open:D,close:F,openAll:B,closeAll:Z,parent:P}},x3=(D,F,P)=>{let B=(...Z)=>{if(_3(Z[0])&&_3(Z[0].raw))return tU(B,BW(B,...Z));return tU(B,Z.length===1?""+Z[0]:Z.join(" "))};return Object.setPrototypeOf(B,lT),B._generator=D,B._styler=F,B._isEmpty=P,B},tU=(D,F)=>{if(D.level<=0||!F)return D._isEmpty?"":F;let P=D._styler;if(P===void 0)return F;let{openAll:B,closeAll:Z}=P;if(F.indexOf("\x1B")!==-1)while(P!==void 0)F=gT(F,P.close,P.open),P=P.parent;let q=F.indexOf(`
203
- `);if(q!==-1)F=yT(F,Z,B,q);return B+F+Z},p7,BW=(D,...F)=>{let[P]=F;if(!_3(P)||!_3(P.raw))return F.join(" ");let B=F.slice(1),Z=[P.raw[0]];for(let q=1;q<P.length;q++)Z.push(String(B[q-1]).replace(/[{}\\]/g,"\\$&"),String(P.raw[q]));if(p7===void 0)p7=oU();return p7(D,Z.join(""))};Object.defineProperties(k3.prototype,V8);var f3=k3();f3.supportsColor=r7;f3.stderr=k3({level:a7?a7.level:0});f3.stderr.supportsColor=a7;ZW.exports=f3});var qW=Q((od,cT)=>{cT.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots13:{interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},sand:{interval:80,frames:["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["\uD83D\uDE04 ","\uD83D\uDE1D "]},monkey:{interval:300,frames:["\uD83D\uDE48 ","\uD83D\uDE48 ","\uD83D\uDE49 ","\uD83D\uDE4A "]},hearts:{interval:100,frames:["\uD83D\uDC9B ","\uD83D\uDC99 ","\uD83D\uDC9C ","\uD83D\uDC9A ","❤️ "]},clock:{interval:100,frames:["\uD83D\uDD5B ","\uD83D\uDD50 ","\uD83D\uDD51 ","\uD83D\uDD52 ","\uD83D\uDD53 ","\uD83D\uDD54 ","\uD83D\uDD55 ","\uD83D\uDD56 ","\uD83D\uDD57 ","\uD83D\uDD58 ","\uD83D\uDD59 ","\uD83D\uDD5A "]},earth:{interval:180,frames:["\uD83C\uDF0D ","\uD83C\uDF0E ","\uD83C\uDF0F "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["\uD83C\uDF11 ","\uD83C\uDF12 ","\uD83C\uDF13 ","\uD83C\uDF14 ","\uD83C\uDF15 ","\uD83C\uDF16 ","\uD83C\uDF17 ","\uD83C\uDF18 "]},runner:{interval:140,frames:["\uD83D\uDEB6 ","\uD83C\uDFC3 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","\uD83C\uDF24 ","⛅️ ","\uD83C\uDF25 ","☁️ ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","⛈ ","\uD83C\uDF28 ","\uD83C\uDF27 ","\uD83C\uDF28 ","☁️ ","\uD83C\uDF25 ","⛅️ ","\uD83C\uDF24 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["\uD83C\uDF32","\uD83C\uDF84"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["\uD83E\uDD18 ","\uD83E\uDD1F ","\uD83D\uDD96 ","✋ ","\uD83E\uDD1A ","\uD83D\uDC46 "]},fistBump:{interval:80,frames:["\uD83E\uDD1C    \uD83E\uDD1B ","\uD83E\uDD1C    \uD83E\uDD1B ","\uD83E\uDD1C    \uD83E\uDD1B "," \uD83E\uDD1C  \uD83E\uDD1B  ","  \uD83E\uDD1C\uD83E\uDD1B   "," \uD83E\uDD1C✨\uD83E\uDD1B   ","\uD83E\uDD1C ✨ \uD83E\uDD1B  "]},soccerHeader:{interval:80,frames:[" \uD83E\uDDD1⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️\uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 ","\uD83E\uDDD1 ⚽️ \uD83E\uDDD1 "]},mindblown:{interval:160,frames:["\uD83D\uDE10 ","\uD83D\uDE10 ","\uD83D\uDE2E ","\uD83D\uDE2E ","\uD83D\uDE26 ","\uD83D\uDE26 ","\uD83D\uDE27 ","\uD83D\uDE27 ","\uD83E\uDD2F ","\uD83D\uDCA5 ","✨ ","  ","  ","  "]},speaker:{interval:160,frames:["\uD83D\uDD08 ","\uD83D\uDD09 ","\uD83D\uDD0A ","\uD83D\uDD09 "]},orangePulse:{interval:100,frames:["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 "]},bluePulse:{interval:100,frames:["\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},orangeBluePulse:{interval:100,frames:["\uD83D\uDD38 ","\uD83D\uDD36 ","\uD83D\uDFE0 ","\uD83D\uDFE0 ","\uD83D\uDD36 ","\uD83D\uDD39 ","\uD83D\uDD37 ","\uD83D\uDD35 ","\uD83D\uDD35 ","\uD83D\uDD37 "]},timeTravel:{interval:100,frames:["\uD83D\uDD5B ","\uD83D\uDD5A ","\uD83D\uDD59 ","\uD83D\uDD58 ","\uD83D\uDD57 ","\uD83D\uDD56 ","\uD83D\uDD55 ","\uD83D\uDD54 ","\uD83D\uDD53 ","\uD83D\uDD52 ","\uD83D\uDD51 ","\uD83D\uDD50 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},dwarfFortress:{interval:80,frames:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}}});var YW=Q((td,JW)=>{var h3=Object.assign({},qW()),XW=Object.keys(h3);Object.defineProperty(h3,"random",{get(){let D=Math.floor(Math.random()*XW.length),F=XW[D];return h3[F]}});JW.exports=h3});var zW=Q((Gp,OW)=>{OW.exports=rT;function pT(D){let F={defaultWidth:0,output:process.stdout,tty:pD("tty")};if(!D)return F;return Object.keys(F).forEach(function(P){if(!D[P])D[P]=F[P]}),D}function rT(D){let F=pT(D);if(F.output.getWindowSize)return F.output.getWindowSize()[0]||F.defaultWidth;if(F.tty.getWindowSize)return F.tty.getWindowSize()[1]||F.defaultWidth;if(F.output.columns)return F.output.columns;if(process.env.CLI_WIDTH){let P=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(P)&&P!==0)return P}return F.defaultWidth}});var GW=Q((Rp,QW)=>{QW.exports=({onlyFirst:D=!1}={})=>{let F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}});var IW=Q((Ip,RW)=>{var aT=GW();RW.exports=(D)=>typeof D==="string"?D.replace(aT(),""):D});var MW=Q(($p,o7)=>{var $W=(D)=>{if(Number.isNaN(D))return!1;if(D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141))return!0;return!1};o7.exports=$W;o7.exports.default=$W});var EW=Q((Mp,KW)=>{KW.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var CW=Q((Kp,t7)=>{var sT=IW(),nT=MW(),iT=EW(),AW=(D)=>{if(typeof D!=="string"||D.length===0)return 0;if(D=sT(D),D.length===0)return 0;D=D.replace(iT()," ");let F=0;for(let P=0;P<D.length;P++){let B=D.codePointAt(P);if(B<=31||B>=127&&B<=159)continue;if(B>=768&&B<=879)continue;if(B>65535)P++;F+=nT(B)?2:1}return F};t7.exports=AW;t7.exports.default=AW});var wW=Q((Ep,LW)=>{LW.exports=({onlyFirst:D=!1}={})=>{let F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}});var jW=Q((Ap,VW)=>{var oT=wW();VW.exports=(D)=>typeof D==="string"?D.replace(oT(),""):D});var TW=Q((Cp,SW)=>{var m1=CW(),tT=jW(),eT=g1(),DF=new Set(["\x1B","›"]),bW=(D)=>`${DF.values().next().value}[${D}m`,DN=(D)=>D.split(" ").map((F)=>m1(F)),e7=(D,F,P)=>{let B=[...F],Z=!1,q=m1(tT(D[D.length-1]));for(let[X,J]of B.entries()){let Y=m1(J);if(q+Y<=P)D[D.length-1]+=J;else D.push(J),q=0;if(DF.has(J))Z=!0;else if(Z&&J==="m"){Z=!1;continue}if(Z)continue;if(q+=Y,q===P&&X<B.length-1)D.push(""),q=0}if(!q&&D[D.length-1].length>0&&D.length>1)D[D.length-2]+=D.pop()},FN=(D)=>{let F=D.split(" "),P=F.length;while(P>0){if(m1(F[P-1])>0)break;P--}if(P===F.length)return D;return F.slice(0,P).join(" ")+F.slice(P).join("")},PN=(D,F,P={})=>{if(P.trim!==!1&&D.trim()==="")return"";let B="",Z="",q,X=DN(D),J=[""];for(let[Y,H]of D.split(" ").entries()){if(P.trim!==!1)J[J.length-1]=J[J.length-1].trimLeft();let W=m1(J[J.length-1]);if(Y!==0){if(W>=F&&(P.wordWrap===!1||P.trim===!1))J.push(""),W=0;if(W>0||P.trim===!1)J[J.length-1]+=" ",W++}if(P.hard&&X[Y]>F){let U=F-W,O=1+Math.floor((X[Y]-U-1)/F);if(Math.floor((X[Y]-1)/F)<O)J.push("");e7(J,H,F);continue}if(W+X[Y]>F&&W>0&&X[Y]>0){if(P.wordWrap===!1&&W<F){e7(J,H,F);continue}J.push("")}if(W+X[Y]>F&&P.wordWrap===!1){e7(J,H,F);continue}J[J.length-1]+=H}if(P.trim!==!1)J=J.map(FN);B=J.join(`
202
+ `],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function nU(D){let F=D[0]==="u",P=D[1]==="{";if(F&&!P&&D.length===5||D[0]==="x"&&D.length===3)return String.fromCharCode(parseInt(D.slice(1),16));if(F&&P)return String.fromCodePoint(parseInt(D.slice(2,-1),16));return fT.get(D)||D}function hT(D,F){let P=[],B=F.trim().split(/\s*,\s*/g),Z;for(let q of B){let X=Number(q);if(!Number.isNaN(X))P.push(X);else if(Z=q.match(kT))P.push(Z[2].replace(xT,(J,Y,H)=>Y?nU(Y):H));else throw new Error(`Invalid Chalk template style argument: ${q} (in style '${D}')`)}return P}function vT(D){aU.lastIndex=0;let F=[],P;while((P=aU.exec(D))!==null){let B=P[1];if(P[2]){let Z=hT(B,P[2]);F.push([B].concat(Z))}else F.push([B])}return F}function sU(D,F){let P={};for(let Z of F)for(let q of Z.styles)P[q[0]]=Z.inverse?null:q.slice(1);let B=D;for(let[Z,q]of Object.entries(P)){if(!Array.isArray(q))continue;if(!(Z in B))throw new Error(`Unknown Chalk style: ${Z}`);B=q.length>0?B[Z](...q):B[Z]}return B}iU.exports=(D,F)=>{let P=[],B=[],Z=[];if(F.replace(_T,(q,X,J,Y,H,W)=>{if(X)Z.push(nU(X));else if(Y){let U=Z.join("");Z=[],B.push(P.length===0?U:sU(D,P)(U)),P.push({inverse:J,styles:vT(Y)})}else if(H){if(P.length===0)throw new Error("Found extraneous } in Chalk template literal");B.push(sU(D,P)(Z.join(""))),Z=[],P.pop()}else Z.push(W)}),B.push(Z.join("")),P.length>0){let q=`Chalk template literal is missing ${P.length} closing bracket${P.length===1?"":"s"} (\`}\`)`;throw new Error(q)}return B.join("")}});var n7=Q((id,ZW)=>{var y1=g1(),{stdout:r7,stderr:a7}=dU(),{stringReplaceAll:gT,stringEncaseCRLFWithFirstIndex:yT}=rU(),{isArray:_3}=Array,eU=["ansi","ansi","ansi256","ansi16m"],j8=Object.create(null),mT=(D,F={})=>{if(F.level&&!(Number.isInteger(F.level)&&F.level>=0&&F.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let P=r7?r7.level:0;D.level=F.level===void 0?P:F.level};class DW{constructor(D){return FW(D)}}var FW=(D)=>{let F={};return mT(F,D),F.template=(...P)=>BW(F.template,...P),Object.setPrototypeOf(F,k3.prototype),Object.setPrototypeOf(F.template,F),F.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},F.template.Instance=DW,F.template};function k3(D){return FW(D)}for(let[D,F]of Object.entries(y1))j8[D]={get(){let P=x3(this,s7(F.open,F.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:P}),P}};j8.visible={get(){let D=x3(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var PW=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of PW)j8[D]={get(){let{level:F}=this;return function(...P){let B=s7(y1.color[eU[F]][D](...P),y1.color.close,this._styler);return x3(this,B,this._isEmpty)}}};for(let D of PW){let F="bg"+D[0].toUpperCase()+D.slice(1);j8[F]={get(){let{level:P}=this;return function(...B){let Z=s7(y1.bgColor[eU[P]][D](...B),y1.bgColor.close,this._styler);return x3(this,Z,this._isEmpty)}}}}var lT=Object.defineProperties(()=>{},{...j8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),s7=(D,F,P)=>{let B,Z;if(P===void 0)B=D,Z=F;else B=P.openAll+D,Z=F+P.closeAll;return{open:D,close:F,openAll:B,closeAll:Z,parent:P}},x3=(D,F,P)=>{let B=(...Z)=>{if(_3(Z[0])&&_3(Z[0].raw))return tU(B,BW(B,...Z));return tU(B,Z.length===1?""+Z[0]:Z.join(" "))};return Object.setPrototypeOf(B,lT),B._generator=D,B._styler=F,B._isEmpty=P,B},tU=(D,F)=>{if(D.level<=0||!F)return D._isEmpty?"":F;let P=D._styler;if(P===void 0)return F;let{openAll:B,closeAll:Z}=P;if(F.indexOf("\x1B")!==-1)while(P!==void 0)F=gT(F,P.close,P.open),P=P.parent;let q=F.indexOf(`
203
+ `);if(q!==-1)F=yT(F,Z,B,q);return B+F+Z},p7,BW=(D,...F)=>{let[P]=F;if(!_3(P)||!_3(P.raw))return F.join(" ");let B=F.slice(1),Z=[P.raw[0]];for(let q=1;q<P.length;q++)Z.push(String(B[q-1]).replace(/[{}\\]/g,"\\$&"),String(P.raw[q]));if(p7===void 0)p7=oU();return p7(D,Z.join(""))};Object.defineProperties(k3.prototype,j8);var f3=k3();f3.supportsColor=r7;f3.stderr=k3({level:a7?a7.level:0});f3.stderr.supportsColor=a7;ZW.exports=f3});var qW=Q((od,cT)=>{cT.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots13:{interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},sand:{interval:80,frames:["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},dwarfFortress:{interval:80,frames:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}}});var YW=Q((td,JW)=>{var h3=Object.assign({},qW()),XW=Object.keys(h3);Object.defineProperty(h3,"random",{get(){let D=Math.floor(Math.random()*XW.length),F=XW[D];return h3[F]}});JW.exports=h3});var zW=Q((Gp,OW)=>{OW.exports=rT;function pT(D){let F={defaultWidth:0,output:process.stdout,tty:pD("tty")};if(!D)return F;return Object.keys(F).forEach(function(P){if(!D[P])D[P]=F[P]}),D}function rT(D){let F=pT(D);if(F.output.getWindowSize)return F.output.getWindowSize()[0]||F.defaultWidth;if(F.tty.getWindowSize)return F.tty.getWindowSize()[1]||F.defaultWidth;if(F.output.columns)return F.output.columns;if(process.env.CLI_WIDTH){let P=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(P)&&P!==0)return P}return F.defaultWidth}});var GW=Q((Rp,QW)=>{QW.exports=({onlyFirst:D=!1}={})=>{let F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}});var IW=Q((Ip,RW)=>{var aT=GW();RW.exports=(D)=>typeof D==="string"?D.replace(aT(),""):D});var MW=Q(($p,o7)=>{var $W=(D)=>{if(Number.isNaN(D))return!1;if(D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141))return!0;return!1};o7.exports=$W;o7.exports.default=$W});var EW=Q((Mp,KW)=>{KW.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var CW=Q((Kp,t7)=>{var sT=IW(),nT=MW(),iT=EW(),AW=(D)=>{if(typeof D!=="string"||D.length===0)return 0;if(D=sT(D),D.length===0)return 0;D=D.replace(iT()," ");let F=0;for(let P=0;P<D.length;P++){let B=D.codePointAt(P);if(B<=31||B>=127&&B<=159)continue;if(B>=768&&B<=879)continue;if(B>65535)P++;F+=nT(B)?2:1}return F};t7.exports=AW;t7.exports.default=AW});var wW=Q((Ep,LW)=>{LW.exports=({onlyFirst:D=!1}={})=>{let F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}});var jW=Q((Ap,VW)=>{var oT=wW();VW.exports=(D)=>typeof D==="string"?D.replace(oT(),""):D});var TW=Q((Cp,SW)=>{var m1=CW(),tT=jW(),eT=g1(),DF=new Set(["\x1B","›"]),bW=(D)=>`${DF.values().next().value}[${D}m`,DN=(D)=>D.split(" ").map((F)=>m1(F)),e7=(D,F,P)=>{let B=[...F],Z=!1,q=m1(tT(D[D.length-1]));for(let[X,J]of B.entries()){let Y=m1(J);if(q+Y<=P)D[D.length-1]+=J;else D.push(J),q=0;if(DF.has(J))Z=!0;else if(Z&&J==="m"){Z=!1;continue}if(Z)continue;if(q+=Y,q===P&&X<B.length-1)D.push(""),q=0}if(!q&&D[D.length-1].length>0&&D.length>1)D[D.length-2]+=D.pop()},FN=(D)=>{let F=D.split(" "),P=F.length;while(P>0){if(m1(F[P-1])>0)break;P--}if(P===F.length)return D;return F.slice(0,P).join(" ")+F.slice(P).join("")},PN=(D,F,P={})=>{if(P.trim!==!1&&D.trim()==="")return"";let B="",Z="",q,X=DN(D),J=[""];for(let[Y,H]of D.split(" ").entries()){if(P.trim!==!1)J[J.length-1]=J[J.length-1].trimLeft();let W=m1(J[J.length-1]);if(Y!==0){if(W>=F&&(P.wordWrap===!1||P.trim===!1))J.push(""),W=0;if(W>0||P.trim===!1)J[J.length-1]+=" ",W++}if(P.hard&&X[Y]>F){let U=F-W,O=1+Math.floor((X[Y]-U-1)/F);if(Math.floor((X[Y]-1)/F)<O)J.push("");e7(J,H,F);continue}if(W+X[Y]>F&&W>0&&X[Y]>0){if(P.wordWrap===!1&&W<F){e7(J,H,F);continue}J.push("")}if(W+X[Y]>F&&P.wordWrap===!1){e7(J,H,F);continue}J[J.length-1]+=H}if(P.trim!==!1)J=J.map(FN);B=J.join(`
204
204
  `);for(let[Y,H]of[...B].entries()){if(Z+=H,DF.has(H)){let U=parseFloat(/\d[^m]*/.exec(B.slice(Y,Y+4)));q=U===39?null:U}let W=eT.codes.get(Number(q));if(q&&W){if(B[Y+1]===`
205
205
  `)Z+=bW(W);else if(H===`
206
206
  `)Z+=bW(q)}}return Z};SW.exports=(D,F,P)=>{return String(D).normalize().replace(/\r\n/g,`
207
207
  `).split(`
208
208
  `).map((B)=>PN(B,F,P)).join(`
209
- `)}});var vW=Q((xp,hW)=>{var qN=pD("stream");class fW extends qN{#P=null;constructor(D={}){super(D);this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=D.replace,this._prompt=D.prompt||null,this._hadControl=!1}#F(D,F){if(this._dest)return this._dest[D];if(this._src)return this._src[D];return F}#D(D,...F){if(typeof this._dest?.[D]==="function")this._dest[D](...F);if(typeof this._src?.[D]==="function")this._src[D](...F)}get isTTY(){if(this.#P!==null)return this.#P;return this.#F("isTTY",!1)}set isTTY(D){this.#P=D}get rows(){return this.#F("rows")}get columns(){return this.#F("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(D){this._src=D}pipe(D,F){return this._dest=D,super.pipe(D,F)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(D){if(this.muted){if(!this.replace)return!0;if(D.match(/^\u001b/)){if(D.indexOf(this._prompt)===0)D=D.slice(this._prompt.length),D=D.replace(/./g,this.replace),D=this._prompt+D;return this._hadControl=!0,this.emit("data",D)}else{if(this._prompt&&this._hadControl&&D.indexOf(this._prompt)===0)this._hadControl=!1,this.emit("data",this._prompt),D=D.slice(this._prompt.length);D=D.toString().replace(/./g,this.replace)}}this.emit("data",D)}end(D){if(this.muted)if(D&&this.replace)D=D.toString().replace(/./g,this.replace);else D=null;if(D)this.emit("data",D);this.emit("end")}destroy(...D){return this.#D("destroy",...D)}destroySoon(...D){return this.#D("destroySoon",...D)}close(...D){return this.#D("close",...D)}}hW.exports=fW});var dW=Q((mp,cW)=>{cW.exports=({onlyFirst:D=!1}={})=>{let F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}});var rW=Q((lp,pW)=>{var YN=dW();pW.exports=(D)=>typeof D==="string"?D.replace(YN(),""):D});var YF=Q((HN,JF)=>{var n=HN;HN.default=n;var ZD="\x1B[",c1="\x1B]",j8="\x07",m3=";",aW=!1;n.cursorTo=(D,F)=>{if(typeof D!=="number")throw new TypeError("The `x` argument is required");if(typeof F!=="number")return ZD+(D+1)+"G";return ZD+(F+1)+";"+(D+1)+"H"};n.cursorMove=(D,F)=>{if(typeof D!=="number")throw new TypeError("The `x` argument is required");let P="";if(D<0)P+=ZD+-D+"D";else if(D>0)P+=ZD+D+"C";if(F<0)P+=ZD+-F+"A";else if(F>0)P+=ZD+F+"B";return P};n.cursorUp=(D=1)=>ZD+D+"A";n.cursorDown=(D=1)=>ZD+D+"B";n.cursorForward=(D=1)=>ZD+D+"C";n.cursorBackward=(D=1)=>ZD+D+"D";n.cursorLeft=ZD+"G";n.cursorSavePosition=aW?"\x1B7":ZD+"s";n.cursorRestorePosition=aW?"\x1B8":ZD+"u";n.cursorGetPosition=ZD+"6n";n.cursorNextLine=ZD+"E";n.cursorPrevLine=ZD+"F";n.cursorHide=ZD+"?25l";n.cursorShow=ZD+"?25h";n.eraseLines=(D)=>{let F="";for(let P=0;P<D;P++)F+=n.eraseLine+(P<D-1?n.cursorUp():"");if(D)F+=n.cursorLeft;return F};n.eraseEndLine=ZD+"K";n.eraseStartLine=ZD+"1K";n.eraseLine=ZD+"2K";n.eraseDown=ZD+"J";n.eraseUp=ZD+"1J";n.eraseScreen=ZD+"2J";n.scrollUp=ZD+"S";n.scrollDown=ZD+"T";n.clearScreen="\x1Bc";n.clearTerminal=process.platform==="win32"?`${n.eraseScreen}${ZD}0f`:`${n.eraseScreen}${ZD}3J${ZD}H`;n.beep=j8;n.link=(D,F)=>{return[c1,"8",m3,m3,F,j8,D,c1,"8",m3,m3,j8].join("")};n.image=(D,F={})=>{let P=`${c1}1337;File=inline=1`;if(F.width)P+=`;width=${F.width}`;if(F.height)P+=`;height=${F.height}`;if(F.preserveAspectRatio===!1)P+=";preserveAspectRatio=0";return P+":"+D.toString("base64")+j8};n.iTerm={setCwd:(D=process.cwd())=>`${c1}50;CurrentDir=${D}${j8}`,annotation:(D,F={})=>{let P=`${c1}1337;`,B=typeof F.x!=="undefined",Z=typeof F.y!=="undefined";if((B||Z)&&!(B&&Z&&typeof F.length!=="undefined"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");if(D=D.replace(/\|/g,""),P+=F.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",F.length>0)P+=(B?[D,F.length,F.x,F.y]:[F.length,D]).join("|");else P+=D;return P+j8}}});var BO=Q(($r,PO)=>{var $N=pD("os"),FO=pD("tty"),Z0=u3(),{env:ND}=process,U2;if(Z0("no-color")||Z0("no-colors")||Z0("color=false")||Z0("color=never"))U2=0;else if(Z0("color")||Z0("colors")||Z0("color=true")||Z0("color=always"))U2=1;if("FORCE_COLOR"in ND)if(ND.FORCE_COLOR==="true")U2=1;else if(ND.FORCE_COLOR==="false")U2=0;else U2=ND.FORCE_COLOR.length===0?1:Math.min(parseInt(ND.FORCE_COLOR,10),3);function HF(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function UF(D,F){if(U2===0)return 0;if(Z0("color=16m")||Z0("color=full")||Z0("color=truecolor"))return 3;if(Z0("color=256"))return 2;if(D&&!F&&U2===void 0)return 0;let P=U2||0;if(ND.TERM==="dumb")return P;if(process.platform==="win32"){let B=$N.release().split(".");if(Number(B[0])>=10&&Number(B[2])>=10586)return Number(B[2])>=14931?3:2;return 1}if("CI"in ND){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((B)=>(B in ND))||ND.CI_NAME==="codeship")return 1;return P}if("TEAMCITY_VERSION"in ND)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ND.TEAMCITY_VERSION)?1:0;if(ND.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ND){let B=parseInt((ND.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ND.TERM_PROGRAM){case"iTerm.app":return B>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(ND.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ND.TERM))return 1;if("COLORTERM"in ND)return 1;return P}function MN(D){let F=UF(D,D&&D.isTTY);return HF(F)}PO.exports={supportsColor:MN,stdout:HF(UF(!0,FO.isatty(1))),stderr:HF(UF(!0,FO.isatty(2)))}});var qO=Q((Mr,ZO)=>{var KN=(D,F,P)=>{let B=D.indexOf(F);if(B===-1)return D;let Z=F.length,q=0,X="";do X+=D.substr(q,B-q)+F+P,q=B+Z,B=D.indexOf(F,q);while(B!==-1);return X+=D.substr(q),X},EN=(D,F,P,B)=>{let Z=0,q="";do{let X=D[B-1]==="\r";q+=D.substr(Z,(X?B-1:B)-Z)+F+(X?`\r
209
+ `)}});var vW=Q((xp,hW)=>{var qN=pD("stream");class fW extends qN{#P=null;constructor(D={}){super(D);this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=D.replace,this._prompt=D.prompt||null,this._hadControl=!1}#F(D,F){if(this._dest)return this._dest[D];if(this._src)return this._src[D];return F}#D(D,...F){if(typeof this._dest?.[D]==="function")this._dest[D](...F);if(typeof this._src?.[D]==="function")this._src[D](...F)}get isTTY(){if(this.#P!==null)return this.#P;return this.#F("isTTY",!1)}set isTTY(D){this.#P=D}get rows(){return this.#F("rows")}get columns(){return this.#F("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(D){this._src=D}pipe(D,F){return this._dest=D,super.pipe(D,F)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(D){if(this.muted){if(!this.replace)return!0;if(D.match(/^\u001b/)){if(D.indexOf(this._prompt)===0)D=D.slice(this._prompt.length),D=D.replace(/./g,this.replace),D=this._prompt+D;return this._hadControl=!0,this.emit("data",D)}else{if(this._prompt&&this._hadControl&&D.indexOf(this._prompt)===0)this._hadControl=!1,this.emit("data",this._prompt),D=D.slice(this._prompt.length);D=D.toString().replace(/./g,this.replace)}}this.emit("data",D)}end(D){if(this.muted)if(D&&this.replace)D=D.toString().replace(/./g,this.replace);else D=null;if(D)this.emit("data",D);this.emit("end")}destroy(...D){return this.#D("destroy",...D)}destroySoon(...D){return this.#D("destroySoon",...D)}close(...D){return this.#D("close",...D)}}hW.exports=fW});var dW=Q((mp,cW)=>{cW.exports=({onlyFirst:D=!1}={})=>{let F=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(F,D?void 0:"g")}});var rW=Q((lp,pW)=>{var YN=dW();pW.exports=(D)=>typeof D==="string"?D.replace(YN(),""):D});var YF=Q((HN,JF)=>{var n=HN;HN.default=n;var ZD="\x1B[",c1="\x1B]",b8="\x07",m3=";",aW=process.env.TERM_PROGRAM==="Apple_Terminal";n.cursorTo=(D,F)=>{if(typeof D!=="number")throw new TypeError("The `x` argument is required");if(typeof F!=="number")return ZD+(D+1)+"G";return ZD+(F+1)+";"+(D+1)+"H"};n.cursorMove=(D,F)=>{if(typeof D!=="number")throw new TypeError("The `x` argument is required");let P="";if(D<0)P+=ZD+-D+"D";else if(D>0)P+=ZD+D+"C";if(F<0)P+=ZD+-F+"A";else if(F>0)P+=ZD+F+"B";return P};n.cursorUp=(D=1)=>ZD+D+"A";n.cursorDown=(D=1)=>ZD+D+"B";n.cursorForward=(D=1)=>ZD+D+"C";n.cursorBackward=(D=1)=>ZD+D+"D";n.cursorLeft=ZD+"G";n.cursorSavePosition=aW?"\x1B7":ZD+"s";n.cursorRestorePosition=aW?"\x1B8":ZD+"u";n.cursorGetPosition=ZD+"6n";n.cursorNextLine=ZD+"E";n.cursorPrevLine=ZD+"F";n.cursorHide=ZD+"?25l";n.cursorShow=ZD+"?25h";n.eraseLines=(D)=>{let F="";for(let P=0;P<D;P++)F+=n.eraseLine+(P<D-1?n.cursorUp():"");if(D)F+=n.cursorLeft;return F};n.eraseEndLine=ZD+"K";n.eraseStartLine=ZD+"1K";n.eraseLine=ZD+"2K";n.eraseDown=ZD+"J";n.eraseUp=ZD+"1J";n.eraseScreen=ZD+"2J";n.scrollUp=ZD+"S";n.scrollDown=ZD+"T";n.clearScreen="\x1Bc";n.clearTerminal=process.platform==="win32"?`${n.eraseScreen}${ZD}0f`:`${n.eraseScreen}${ZD}3J${ZD}H`;n.beep=b8;n.link=(D,F)=>{return[c1,"8",m3,m3,F,b8,D,c1,"8",m3,m3,b8].join("")};n.image=(D,F={})=>{let P=`${c1}1337;File=inline=1`;if(F.width)P+=`;width=${F.width}`;if(F.height)P+=`;height=${F.height}`;if(F.preserveAspectRatio===!1)P+=";preserveAspectRatio=0";return P+":"+D.toString("base64")+b8};n.iTerm={setCwd:(D=process.cwd())=>`${c1}50;CurrentDir=${D}${b8}`,annotation:(D,F={})=>{let P=`${c1}1337;`,B=typeof F.x!=="undefined",Z=typeof F.y!=="undefined";if((B||Z)&&!(B&&Z&&typeof F.length!=="undefined"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");if(D=D.replace(/\|/g,""),P+=F.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",F.length>0)P+=(B?[D,F.length,F.x,F.y]:[F.length,D]).join("|");else P+=D;return P+b8}}});var BO=Q(($r,PO)=>{var $N=pD("os"),FO=pD("tty"),Z0=u3(),{env:ND}=process,U2;if(Z0("no-color")||Z0("no-colors")||Z0("color=false")||Z0("color=never"))U2=0;else if(Z0("color")||Z0("colors")||Z0("color=true")||Z0("color=always"))U2=1;if("FORCE_COLOR"in ND)if(ND.FORCE_COLOR==="true")U2=1;else if(ND.FORCE_COLOR==="false")U2=0;else U2=ND.FORCE_COLOR.length===0?1:Math.min(parseInt(ND.FORCE_COLOR,10),3);function HF(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function UF(D,F){if(U2===0)return 0;if(Z0("color=16m")||Z0("color=full")||Z0("color=truecolor"))return 3;if(Z0("color=256"))return 2;if(D&&!F&&U2===void 0)return 0;let P=U2||0;if(ND.TERM==="dumb")return P;if(process.platform==="win32"){let B=$N.release().split(".");if(Number(B[0])>=10&&Number(B[2])>=10586)return Number(B[2])>=14931?3:2;return 1}if("CI"in ND){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((B)=>(B in ND))||ND.CI_NAME==="codeship")return 1;return P}if("TEAMCITY_VERSION"in ND)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ND.TEAMCITY_VERSION)?1:0;if(ND.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ND){let B=parseInt((ND.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ND.TERM_PROGRAM){case"iTerm.app":return B>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(ND.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ND.TERM))return 1;if("COLORTERM"in ND)return 1;return P}function MN(D){let F=UF(D,D&&D.isTTY);return HF(F)}PO.exports={supportsColor:MN,stdout:HF(UF(!0,FO.isatty(1))),stderr:HF(UF(!0,FO.isatty(2)))}});var qO=Q((Mr,ZO)=>{var KN=(D,F,P)=>{let B=D.indexOf(F);if(B===-1)return D;let Z=F.length,q=0,X="";do X+=D.substr(q,B-q)+F+P,q=B+Z,B=D.indexOf(F,q);while(B!==-1);return X+=D.substr(q),X},EN=(D,F,P,B)=>{let Z=0,q="";do{let X=D[B-1]==="\r";q+=D.substr(Z,(X?B-1:B)-Z)+F+(X?`\r
210
210
  `:`
211
211
  `)+P,Z=B+1,B=D.indexOf(`
212
212
  `,Z)}while(B!==-1);return q+=D.substr(Z),q};ZO.exports={stringReplaceAll:KN,stringEncaseCRLFWithFirstIndex:EN}});var UO=Q((Kr,HO)=>{var AN=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,XO=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,CN=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,LN=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,wN=new Map([["n",`
213
- `],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function YO(D){let F=D[0]==="u",P=D[1]==="{";if(F&&!P&&D.length===5||D[0]==="x"&&D.length===3)return String.fromCharCode(parseInt(D.slice(1),16));if(F&&P)return String.fromCodePoint(parseInt(D.slice(2,-1),16));return wN.get(D)||D}function VN(D,F){let P=[],B=F.trim().split(/\s*,\s*/g),Z;for(let q of B){let X=Number(q);if(!Number.isNaN(X))P.push(X);else if(Z=q.match(CN))P.push(Z[2].replace(LN,(J,Y,H)=>Y?YO(Y):H));else throw new Error(`Invalid Chalk template style argument: ${q} (in style '${D}')`)}return P}function jN(D){XO.lastIndex=0;let F=[],P;while((P=XO.exec(D))!==null){let B=P[1];if(P[2]){let Z=VN(B,P[2]);F.push([B].concat(Z))}else F.push([B])}return F}function JO(D,F){let P={};for(let Z of F)for(let q of Z.styles)P[q[0]]=Z.inverse?null:q.slice(1);let B=D;for(let[Z,q]of Object.entries(P)){if(!Array.isArray(q))continue;if(!(Z in B))throw new Error(`Unknown Chalk style: ${Z}`);B=q.length>0?B[Z](...q):B[Z]}return B}HO.exports=(D,F)=>{let P=[],B=[],Z=[];if(F.replace(AN,(q,X,J,Y,H,W)=>{if(X)Z.push(YO(X));else if(Y){let U=Z.join("");Z=[],B.push(P.length===0?U:JO(D,P)(U)),P.push({inverse:J,styles:jN(Y)})}else if(H){if(P.length===0)throw new Error("Found extraneous } in Chalk template literal");B.push(JO(D,P)(Z.join(""))),Z=[],P.pop()}else Z.push(W)}),B.push(Z.join("")),P.length>0){let q=`Chalk template literal is missing ${P.length} closing bracket${P.length===1?"":"s"} (\`}\`)`;throw new Error(q)}return B.join("")}});var $O=Q((Er,IO)=>{var d1=g1(),{stdout:OF,stderr:zF}=BO(),{stringReplaceAll:bN,stringEncaseCRLFWithFirstIndex:SN}=qO(),{isArray:p3}=Array,OO=["ansi","ansi","ansi256","ansi16m"],S8=Object.create(null),TN=(D,F={})=>{if(F.level&&!(Number.isInteger(F.level)&&F.level>=0&&F.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let P=OF?OF.level:0;D.level=F.level===void 0?P:F.level};class zO{constructor(D){return QO(D)}}var QO=(D)=>{let F={};return TN(F,D),F.template=(...P)=>RO(F.template,...P),Object.setPrototypeOf(F,r3.prototype),Object.setPrototypeOf(F.template,F),F.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},F.template.Instance=zO,F.template};function r3(D){return QO(D)}for(let[D,F]of Object.entries(d1))S8[D]={get(){let P=a3(this,QF(F.open,F.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:P}),P}};S8.visible={get(){let D=a3(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var GO=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of GO)S8[D]={get(){let{level:F}=this;return function(...P){let B=QF(d1.color[OO[F]][D](...P),d1.color.close,this._styler);return a3(this,B,this._isEmpty)}}};for(let D of GO){let F="bg"+D[0].toUpperCase()+D.slice(1);S8[F]={get(){let{level:P}=this;return function(...B){let Z=QF(d1.bgColor[OO[P]][D](...B),d1.bgColor.close,this._styler);return a3(this,Z,this._isEmpty)}}}}var NN=Object.defineProperties(()=>{},{...S8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),QF=(D,F,P)=>{let B,Z;if(P===void 0)B=D,Z=F;else B=P.openAll+D,Z=F+P.closeAll;return{open:D,close:F,openAll:B,closeAll:Z,parent:P}},a3=(D,F,P)=>{let B=(...Z)=>{if(p3(Z[0])&&p3(Z[0].raw))return WO(B,RO(B,...Z));return WO(B,Z.length===1?""+Z[0]:Z.join(" "))};return Object.setPrototypeOf(B,NN),B._generator=D,B._styler=F,B._isEmpty=P,B},WO=(D,F)=>{if(D.level<=0||!F)return D._isEmpty?"":F;let P=D._styler;if(P===void 0)return F;let{openAll:B,closeAll:Z}=P;if(F.indexOf("\x1B")!==-1)while(P!==void 0)F=bN(F,P.close,P.open),P=P.parent;let q=F.indexOf(`
214
- `);if(q!==-1)F=SN(F,Z,B,q);return B+F+Z},WF,RO=(D,...F)=>{let[P]=F;if(!p3(P)||!p3(P.raw))return F.join(" ");let B=F.slice(1),Z=[P.raw[0]];for(let q=1;q<P.length;q++)Z.push(String(B[q-1]).replace(/[{}\\]/g,"\\$&"),String(P.raw[q]));if(WF===void 0)WF=UO();return WF(D,Z.join(""))};Object.defineProperties(r3.prototype,S8);var s3=r3();s3.supportsColor=OF;s3.stderr=r3({level:zF?zF.level:0});s3.stderr.supportsColor=zF;IO.exports=s3});var CO=Q((Sr,AO)=>{var _N=pD("os"),EO=pD("tty"),q0=u3(),{env:uD}=process,O2;if(q0("no-color")||q0("no-colors")||q0("color=false")||q0("color=never"))O2=0;else if(q0("color")||q0("colors")||q0("color=true")||q0("color=always"))O2=1;if("FORCE_COLOR"in uD)if(uD.FORCE_COLOR==="true")O2=1;else if(uD.FORCE_COLOR==="false")O2=0;else O2=uD.FORCE_COLOR.length===0?1:Math.min(parseInt(uD.FORCE_COLOR,10),3);function GF(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function RF(D,F){if(O2===0)return 0;if(q0("color=16m")||q0("color=full")||q0("color=truecolor"))return 3;if(q0("color=256"))return 2;if(D&&!F&&O2===void 0)return 0;let P=O2||0;if(uD.TERM==="dumb")return P;if(process.platform==="win32"){let B=_N.release().split(".");if(Number(B[0])>=10&&Number(B[2])>=10586)return Number(B[2])>=14931?3:2;return 1}if("CI"in uD){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((B)=>(B in uD))||uD.CI_NAME==="codeship")return 1;return P}if("TEAMCITY_VERSION"in uD)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(uD.TEAMCITY_VERSION)?1:0;if(uD.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in uD){let B=parseInt((uD.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(uD.TERM_PROGRAM){case"iTerm.app":return B>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(uD.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(uD.TERM))return 1;if("COLORTERM"in uD)return 1;return P}function kN(D){let F=RF(D,D&&D.isTTY);return GF(F)}AO.exports={supportsColor:kN,stdout:GF(RF(!0,EO.isatty(1))),stderr:GF(RF(!0,EO.isatty(2)))}});var wO=Q((Tr,LO)=>{var xN=(D,F,P)=>{let B=D.indexOf(F);if(B===-1)return D;let Z=F.length,q=0,X="";do X+=D.substr(q,B-q)+F+P,q=B+Z,B=D.indexOf(F,q);while(B!==-1);return X+=D.substr(q),X},fN=(D,F,P,B)=>{let Z=0,q="";do{let X=D[B-1]==="\r";q+=D.substr(Z,(X?B-1:B)-Z)+F+(X?`\r
213
+ `],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function YO(D){let F=D[0]==="u",P=D[1]==="{";if(F&&!P&&D.length===5||D[0]==="x"&&D.length===3)return String.fromCharCode(parseInt(D.slice(1),16));if(F&&P)return String.fromCodePoint(parseInt(D.slice(2,-1),16));return wN.get(D)||D}function VN(D,F){let P=[],B=F.trim().split(/\s*,\s*/g),Z;for(let q of B){let X=Number(q);if(!Number.isNaN(X))P.push(X);else if(Z=q.match(CN))P.push(Z[2].replace(LN,(J,Y,H)=>Y?YO(Y):H));else throw new Error(`Invalid Chalk template style argument: ${q} (in style '${D}')`)}return P}function jN(D){XO.lastIndex=0;let F=[],P;while((P=XO.exec(D))!==null){let B=P[1];if(P[2]){let Z=VN(B,P[2]);F.push([B].concat(Z))}else F.push([B])}return F}function JO(D,F){let P={};for(let Z of F)for(let q of Z.styles)P[q[0]]=Z.inverse?null:q.slice(1);let B=D;for(let[Z,q]of Object.entries(P)){if(!Array.isArray(q))continue;if(!(Z in B))throw new Error(`Unknown Chalk style: ${Z}`);B=q.length>0?B[Z](...q):B[Z]}return B}HO.exports=(D,F)=>{let P=[],B=[],Z=[];if(F.replace(AN,(q,X,J,Y,H,W)=>{if(X)Z.push(YO(X));else if(Y){let U=Z.join("");Z=[],B.push(P.length===0?U:JO(D,P)(U)),P.push({inverse:J,styles:jN(Y)})}else if(H){if(P.length===0)throw new Error("Found extraneous } in Chalk template literal");B.push(JO(D,P)(Z.join(""))),Z=[],P.pop()}else Z.push(W)}),B.push(Z.join("")),P.length>0){let q=`Chalk template literal is missing ${P.length} closing bracket${P.length===1?"":"s"} (\`}\`)`;throw new Error(q)}return B.join("")}});var $O=Q((Er,IO)=>{var d1=g1(),{stdout:OF,stderr:zF}=BO(),{stringReplaceAll:bN,stringEncaseCRLFWithFirstIndex:SN}=qO(),{isArray:p3}=Array,OO=["ansi","ansi","ansi256","ansi16m"],T8=Object.create(null),TN=(D,F={})=>{if(F.level&&!(Number.isInteger(F.level)&&F.level>=0&&F.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let P=OF?OF.level:0;D.level=F.level===void 0?P:F.level};class zO{constructor(D){return QO(D)}}var QO=(D)=>{let F={};return TN(F,D),F.template=(...P)=>RO(F.template,...P),Object.setPrototypeOf(F,r3.prototype),Object.setPrototypeOf(F.template,F),F.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},F.template.Instance=zO,F.template};function r3(D){return QO(D)}for(let[D,F]of Object.entries(d1))T8[D]={get(){let P=a3(this,QF(F.open,F.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:P}),P}};T8.visible={get(){let D=a3(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var GO=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of GO)T8[D]={get(){let{level:F}=this;return function(...P){let B=QF(d1.color[OO[F]][D](...P),d1.color.close,this._styler);return a3(this,B,this._isEmpty)}}};for(let D of GO){let F="bg"+D[0].toUpperCase()+D.slice(1);T8[F]={get(){let{level:P}=this;return function(...B){let Z=QF(d1.bgColor[OO[P]][D](...B),d1.bgColor.close,this._styler);return a3(this,Z,this._isEmpty)}}}}var NN=Object.defineProperties(()=>{},{...T8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),QF=(D,F,P)=>{let B,Z;if(P===void 0)B=D,Z=F;else B=P.openAll+D,Z=F+P.closeAll;return{open:D,close:F,openAll:B,closeAll:Z,parent:P}},a3=(D,F,P)=>{let B=(...Z)=>{if(p3(Z[0])&&p3(Z[0].raw))return WO(B,RO(B,...Z));return WO(B,Z.length===1?""+Z[0]:Z.join(" "))};return Object.setPrototypeOf(B,NN),B._generator=D,B._styler=F,B._isEmpty=P,B},WO=(D,F)=>{if(D.level<=0||!F)return D._isEmpty?"":F;let P=D._styler;if(P===void 0)return F;let{openAll:B,closeAll:Z}=P;if(F.indexOf("\x1B")!==-1)while(P!==void 0)F=bN(F,P.close,P.open),P=P.parent;let q=F.indexOf(`
214
+ `);if(q!==-1)F=SN(F,Z,B,q);return B+F+Z},WF,RO=(D,...F)=>{let[P]=F;if(!p3(P)||!p3(P.raw))return F.join(" ");let B=F.slice(1),Z=[P.raw[0]];for(let q=1;q<P.length;q++)Z.push(String(B[q-1]).replace(/[{}\\]/g,"\\$&"),String(P.raw[q]));if(WF===void 0)WF=UO();return WF(D,Z.join(""))};Object.defineProperties(r3.prototype,T8);var s3=r3();s3.supportsColor=OF;s3.stderr=r3({level:zF?zF.level:0});s3.stderr.supportsColor=zF;IO.exports=s3});var CO=Q((Sr,AO)=>{var _N=pD("os"),EO=pD("tty"),q0=u3(),{env:uD}=process,O2;if(q0("no-color")||q0("no-colors")||q0("color=false")||q0("color=never"))O2=0;else if(q0("color")||q0("colors")||q0("color=true")||q0("color=always"))O2=1;if("FORCE_COLOR"in uD)if(uD.FORCE_COLOR==="true")O2=1;else if(uD.FORCE_COLOR==="false")O2=0;else O2=uD.FORCE_COLOR.length===0?1:Math.min(parseInt(uD.FORCE_COLOR,10),3);function GF(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function RF(D,F){if(O2===0)return 0;if(q0("color=16m")||q0("color=full")||q0("color=truecolor"))return 3;if(q0("color=256"))return 2;if(D&&!F&&O2===void 0)return 0;let P=O2||0;if(uD.TERM==="dumb")return P;if(process.platform==="win32"){let B=_N.release().split(".");if(Number(B[0])>=10&&Number(B[2])>=10586)return Number(B[2])>=14931?3:2;return 1}if("CI"in uD){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((B)=>(B in uD))||uD.CI_NAME==="codeship")return 1;return P}if("TEAMCITY_VERSION"in uD)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(uD.TEAMCITY_VERSION)?1:0;if(uD.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in uD){let B=parseInt((uD.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(uD.TERM_PROGRAM){case"iTerm.app":return B>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(uD.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(uD.TERM))return 1;if("COLORTERM"in uD)return 1;return P}function kN(D){let F=RF(D,D&&D.isTTY);return GF(F)}AO.exports={supportsColor:kN,stdout:GF(RF(!0,EO.isatty(1))),stderr:GF(RF(!0,EO.isatty(2)))}});var wO=Q((Tr,LO)=>{var xN=(D,F,P)=>{let B=D.indexOf(F);if(B===-1)return D;let Z=F.length,q=0,X="";do X+=D.substr(q,B-q)+F+P,q=B+Z,B=D.indexOf(F,q);while(B!==-1);return X+=D.substr(q),X},fN=(D,F,P,B)=>{let Z=0,q="";do{let X=D[B-1]==="\r";q+=D.substr(Z,(X?B-1:B)-Z)+F+(X?`\r
215
215
  `:`
216
216
  `)+P,Z=B+1,B=D.indexOf(`
217
217
  `,Z)}while(B!==-1);return q+=D.substr(Z),q};LO.exports={stringReplaceAll:xN,stringEncaseCRLFWithFirstIndex:fN}});var TO=Q((Nr,SO)=>{var hN=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,VO=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,vN=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,gN=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,yN=new Map([["n",`
218
- `],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function bO(D){let F=D[0]==="u",P=D[1]==="{";if(F&&!P&&D.length===5||D[0]==="x"&&D.length===3)return String.fromCharCode(parseInt(D.slice(1),16));if(F&&P)return String.fromCodePoint(parseInt(D.slice(2,-1),16));return yN.get(D)||D}function mN(D,F){let P=[],B=F.trim().split(/\s*,\s*/g),Z;for(let q of B){let X=Number(q);if(!Number.isNaN(X))P.push(X);else if(Z=q.match(vN))P.push(Z[2].replace(gN,(J,Y,H)=>Y?bO(Y):H));else throw new Error(`Invalid Chalk template style argument: ${q} (in style '${D}')`)}return P}function lN(D){VO.lastIndex=0;let F=[],P;while((P=VO.exec(D))!==null){let B=P[1];if(P[2]){let Z=mN(B,P[2]);F.push([B].concat(Z))}else F.push([B])}return F}function jO(D,F){let P={};for(let Z of F)for(let q of Z.styles)P[q[0]]=Z.inverse?null:q.slice(1);let B=D;for(let[Z,q]of Object.entries(P)){if(!Array.isArray(q))continue;if(!(Z in B))throw new Error(`Unknown Chalk style: ${Z}`);B=q.length>0?B[Z](...q):B[Z]}return B}SO.exports=(D,F)=>{let P=[],B=[],Z=[];if(F.replace(hN,(q,X,J,Y,H,W)=>{if(X)Z.push(bO(X));else if(Y){let U=Z.join("");Z=[],B.push(P.length===0?U:jO(D,P)(U)),P.push({inverse:J,styles:lN(Y)})}else if(H){if(P.length===0)throw new Error("Found extraneous } in Chalk template literal");B.push(jO(D,P)(Z.join(""))),Z=[],P.pop()}else Z.push(W)}),B.push(Z.join("")),P.length>0){let q=`Chalk template literal is missing ${P.length} closing bracket${P.length===1?"":"s"} (\`}\`)`;throw new Error(q)}return B.join("")}});var e3=Q((ur,hO)=>{var p1=g1(),{stdout:$F,stderr:MF}=CO(),{stringReplaceAll:cN,stringEncaseCRLFWithFirstIndex:dN}=wO(),{isArray:n3}=Array,uO=["ansi","ansi","ansi256","ansi16m"],N8=Object.create(null),pN=(D,F={})=>{if(F.level&&!(Number.isInteger(F.level)&&F.level>=0&&F.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let P=$F?$F.level:0;D.level=F.level===void 0?P:F.level};class _O{constructor(D){return kO(D)}}var kO=(D)=>{let F={};return pN(F,D),F.template=(...P)=>fO(F.template,...P),Object.setPrototypeOf(F,i3.prototype),Object.setPrototypeOf(F.template,F),F.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},F.template.Instance=_O,F.template};function i3(D){return kO(D)}for(let[D,F]of Object.entries(p1))N8[D]={get(){let P=o3(this,KF(F.open,F.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:P}),P}};N8.visible={get(){let D=o3(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var xO=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of xO)N8[D]={get(){let{level:F}=this;return function(...P){let B=KF(p1.color[uO[F]][D](...P),p1.color.close,this._styler);return o3(this,B,this._isEmpty)}}};for(let D of xO){let F="bg"+D[0].toUpperCase()+D.slice(1);N8[F]={get(){let{level:P}=this;return function(...B){let Z=KF(p1.bgColor[uO[P]][D](...B),p1.bgColor.close,this._styler);return o3(this,Z,this._isEmpty)}}}}var rN=Object.defineProperties(()=>{},{...N8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),KF=(D,F,P)=>{let B,Z;if(P===void 0)B=D,Z=F;else B=P.openAll+D,Z=F+P.closeAll;return{open:D,close:F,openAll:B,closeAll:Z,parent:P}},o3=(D,F,P)=>{let B=(...Z)=>{if(n3(Z[0])&&n3(Z[0].raw))return NO(B,fO(B,...Z));return NO(B,Z.length===1?""+Z[0]:Z.join(" "))};return Object.setPrototypeOf(B,rN),B._generator=D,B._styler=F,B._isEmpty=P,B},NO=(D,F)=>{if(D.level<=0||!F)return D._isEmpty?"":F;let P=D._styler;if(P===void 0)return F;let{openAll:B,closeAll:Z}=P;if(F.indexOf("\x1B")!==-1)while(P!==void 0)F=cN(F,P.close,P.open),P=P.parent;let q=F.indexOf(`
219
- `);if(q!==-1)F=dN(F,Z,B,q);return B+F+Z},IF,fO=(D,...F)=>{let[P]=F;if(!n3(P)||!n3(P.raw))return F.join(" ");let B=F.slice(1),Z=[P.raw[0]];for(let q=1;q<P.length;q++)Z.push(String(B[q-1]).replace(/[{}\\]/g,"\\$&"),String(P.raw[q]));if(IF===void 0)IF=TO();return IF(D,Z.join(""))};Object.defineProperties(i3.prototype,N8);var t3=i3();t3.supportsColor=$F;t3.stderr=i3({level:MF?MF.level:0});t3.stderr.supportsColor=MF;hO.exports=t3});var i=Q((Ju)=>{var wF=Symbol.for("yaml.alias"),lO=Symbol.for("yaml.document"),q5=Symbol.for("yaml.map"),cO=Symbol.for("yaml.pair"),VF=Symbol.for("yaml.scalar"),X5=Symbol.for("yaml.seq"),a0=Symbol.for("yaml.node.type"),Du=(D)=>!!D&&typeof D==="object"&&D[a0]===wF,Fu=(D)=>!!D&&typeof D==="object"&&D[a0]===lO,Pu=(D)=>!!D&&typeof D==="object"&&D[a0]===q5,Bu=(D)=>!!D&&typeof D==="object"&&D[a0]===cO,dO=(D)=>!!D&&typeof D==="object"&&D[a0]===VF,Zu=(D)=>!!D&&typeof D==="object"&&D[a0]===X5;function pO(D){if(D&&typeof D==="object")switch(D[a0]){case q5:case X5:return!0}return!1}function qu(D){if(D&&typeof D==="object")switch(D[a0]){case wF:case q5:case VF:case X5:return!0}return!1}var Xu=(D)=>(dO(D)||pO(D))&&!!D.anchor;Ju.ALIAS=wF;Ju.DOC=lO;Ju.MAP=q5;Ju.NODE_TYPE=a0;Ju.PAIR=cO;Ju.SCALAR=VF;Ju.SEQ=X5;Ju.hasAnchor=Xu;Ju.isAlias=Du;Ju.isCollection=pO;Ju.isDocument=Fu;Ju.isMap=Pu;Ju.isNode=qu;Ju.isPair=Bu;Ju.isScalar=dO;Ju.isSeq=Zu});var a1=Q((Lu)=>{var VD=i(),dD=Symbol("break visit"),rO=Symbol("skip children"),x0=Symbol("remove node");function J5(D,F){let P=aO(F);if(VD.isDocument(D)){if(u8(null,D.contents,P,Object.freeze([D]))===x0)D.contents=null}else u8(null,D,P,Object.freeze([]))}J5.BREAK=dD;J5.SKIP=rO;J5.REMOVE=x0;function u8(D,F,P,B){let Z=sO(D,F,P,B);if(VD.isNode(Z)||VD.isPair(Z))return nO(D,B,Z),u8(D,Z,P,B);if(typeof Z!=="symbol"){if(VD.isCollection(F)){B=Object.freeze(B.concat(F));for(let q=0;q<F.items.length;++q){let X=u8(q,F.items[q],P,B);if(typeof X==="number")q=X-1;else if(X===dD)return dD;else if(X===x0)F.items.splice(q,1),q-=1}}else if(VD.isPair(F)){B=Object.freeze(B.concat(F));let q=u8("key",F.key,P,B);if(q===dD)return dD;else if(q===x0)F.key=null;let X=u8("value",F.value,P,B);if(X===dD)return dD;else if(X===x0)F.value=null}}return Z}async function Y5(D,F){let P=aO(F);if(VD.isDocument(D)){if(await _8(null,D.contents,P,Object.freeze([D]))===x0)D.contents=null}else await _8(null,D,P,Object.freeze([]))}Y5.BREAK=dD;Y5.SKIP=rO;Y5.REMOVE=x0;async function _8(D,F,P,B){let Z=await sO(D,F,P,B);if(VD.isNode(Z)||VD.isPair(Z))return nO(D,B,Z),_8(D,Z,P,B);if(typeof Z!=="symbol"){if(VD.isCollection(F)){B=Object.freeze(B.concat(F));for(let q=0;q<F.items.length;++q){let X=await _8(q,F.items[q],P,B);if(typeof X==="number")q=X-1;else if(X===dD)return dD;else if(X===x0)F.items.splice(q,1),q-=1}}else if(VD.isPair(F)){B=Object.freeze(B.concat(F));let q=await _8("key",F.key,P,B);if(q===dD)return dD;else if(q===x0)F.key=null;let X=await _8("value",F.value,P,B);if(X===dD)return dD;else if(X===x0)F.value=null}}return Z}function aO(D){if(typeof D==="object"&&(D.Collection||D.Node||D.Value))return Object.assign({Alias:D.Node,Map:D.Node,Scalar:D.Node,Seq:D.Node},D.Value&&{Map:D.Value,Scalar:D.Value,Seq:D.Value},D.Collection&&{Map:D.Collection,Seq:D.Collection},D);return D}function sO(D,F,P,B){if(typeof P==="function")return P(D,F,B);if(VD.isMap(F))return P.Map?.(D,F,B);if(VD.isSeq(F))return P.Seq?.(D,F,B);if(VD.isPair(F))return P.Pair?.(D,F,B);if(VD.isScalar(F))return P.Scalar?.(D,F,B);if(VD.isAlias(F))return P.Alias?.(D,F,B);return}function nO(D,F,P){let B=F[F.length-1];if(VD.isCollection(B))B.items[D]=P;else if(VD.isPair(B))if(D==="key")B.key=P;else B.value=P;else if(VD.isDocument(B))B.contents=P;else{let Z=VD.isAlias(B)?"alias":"scalar";throw new Error(`Cannot replace node with ${Z} parent`)}}Lu.visit=J5;Lu.visitAsync=Y5});var jF=Q((Tu)=>{var iO=i(),ju=a1(),bu={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Su=(D)=>D.replace(/[!,[\]{}]/g,(F)=>bu[F]);class J0{constructor(D,F){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},J0.defaultYaml,D),this.tags=Object.assign({},J0.defaultTags,F)}clone(){let D=new J0(this.yaml,this.tags);return D.docStart=this.docStart,D}atDocument(){let D=new J0(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:J0.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},J0.defaultTags);break}return D}add(D,F){if(this.atNextDocument)this.yaml={explicit:J0.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},J0.defaultTags),this.atNextDocument=!1;let P=D.trim().split(/[ \t]+/),B=P.shift();switch(B){case"%TAG":{if(P.length!==2){if(F(0,"%TAG directive should contain exactly two parts"),P.length<2)return!1}let[Z,q]=P;return this.tags[Z]=q,!0}case"%YAML":{if(this.yaml.explicit=!0,P.length!==1)return F(0,"%YAML directive should contain exactly one part"),!1;let[Z]=P;if(Z==="1.1"||Z==="1.2")return this.yaml.version=Z,!0;else{let q=/^\d+\.\d+$/.test(Z);return F(6,`Unsupported YAML version ${Z}`,q),!1}}default:return F(0,`Unknown directive ${B}`,!0),!1}}tagName(D,F){if(D==="!")return"!";if(D[0]!=="!")return F(`Not a valid tag: ${D}`),null;if(D[1]==="<"){let q=D.slice(2,-1);if(q==="!"||q==="!!")return F(`Verbatim tags aren't resolved, so ${D} is invalid.`),null;if(D[D.length-1]!==">")F("Verbatim tags must end with a >");return q}let[,P,B]=D.match(/^(.*!)([^!]*)$/s);if(!B)F(`The ${D} tag has no suffix`);let Z=this.tags[P];if(Z)try{return Z+decodeURIComponent(B)}catch(q){return F(String(q)),null}if(P==="!")return D;return F(`Could not resolve tag: ${D}`),null}tagString(D){for(let[F,P]of Object.entries(this.tags))if(D.startsWith(P))return F+Su(D.substring(P.length));return D[0]==="!"?D:`!<${D}>`}toString(D){let F=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],P=Object.entries(this.tags),B;if(D&&P.length>0&&iO.isNode(D.contents)){let Z={};ju.visit(D.contents,(q,X)=>{if(iO.isNode(X)&&X.tag)Z[X.tag]=!0}),B=Object.keys(Z)}else B=[];for(let[Z,q]of P){if(Z==="!!"&&q==="tag:yaml.org,2002:")continue;if(!D||B.some((X)=>X.startsWith(q)))F.push(`%TAG ${Z} ${q}`)}return F.join(`
218
+ `],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function bO(D){let F=D[0]==="u",P=D[1]==="{";if(F&&!P&&D.length===5||D[0]==="x"&&D.length===3)return String.fromCharCode(parseInt(D.slice(1),16));if(F&&P)return String.fromCodePoint(parseInt(D.slice(2,-1),16));return yN.get(D)||D}function mN(D,F){let P=[],B=F.trim().split(/\s*,\s*/g),Z;for(let q of B){let X=Number(q);if(!Number.isNaN(X))P.push(X);else if(Z=q.match(vN))P.push(Z[2].replace(gN,(J,Y,H)=>Y?bO(Y):H));else throw new Error(`Invalid Chalk template style argument: ${q} (in style '${D}')`)}return P}function lN(D){VO.lastIndex=0;let F=[],P;while((P=VO.exec(D))!==null){let B=P[1];if(P[2]){let Z=mN(B,P[2]);F.push([B].concat(Z))}else F.push([B])}return F}function jO(D,F){let P={};for(let Z of F)for(let q of Z.styles)P[q[0]]=Z.inverse?null:q.slice(1);let B=D;for(let[Z,q]of Object.entries(P)){if(!Array.isArray(q))continue;if(!(Z in B))throw new Error(`Unknown Chalk style: ${Z}`);B=q.length>0?B[Z](...q):B[Z]}return B}SO.exports=(D,F)=>{let P=[],B=[],Z=[];if(F.replace(hN,(q,X,J,Y,H,W)=>{if(X)Z.push(bO(X));else if(Y){let U=Z.join("");Z=[],B.push(P.length===0?U:jO(D,P)(U)),P.push({inverse:J,styles:lN(Y)})}else if(H){if(P.length===0)throw new Error("Found extraneous } in Chalk template literal");B.push(jO(D,P)(Z.join(""))),Z=[],P.pop()}else Z.push(W)}),B.push(Z.join("")),P.length>0){let q=`Chalk template literal is missing ${P.length} closing bracket${P.length===1?"":"s"} (\`}\`)`;throw new Error(q)}return B.join("")}});var e3=Q((ur,hO)=>{var p1=g1(),{stdout:$F,stderr:MF}=CO(),{stringReplaceAll:cN,stringEncaseCRLFWithFirstIndex:dN}=wO(),{isArray:n3}=Array,uO=["ansi","ansi","ansi256","ansi16m"],u8=Object.create(null),pN=(D,F={})=>{if(F.level&&!(Number.isInteger(F.level)&&F.level>=0&&F.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let P=$F?$F.level:0;D.level=F.level===void 0?P:F.level};class _O{constructor(D){return kO(D)}}var kO=(D)=>{let F={};return pN(F,D),F.template=(...P)=>fO(F.template,...P),Object.setPrototypeOf(F,i3.prototype),Object.setPrototypeOf(F.template,F),F.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},F.template.Instance=_O,F.template};function i3(D){return kO(D)}for(let[D,F]of Object.entries(p1))u8[D]={get(){let P=o3(this,KF(F.open,F.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:P}),P}};u8.visible={get(){let D=o3(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var xO=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of xO)u8[D]={get(){let{level:F}=this;return function(...P){let B=KF(p1.color[uO[F]][D](...P),p1.color.close,this._styler);return o3(this,B,this._isEmpty)}}};for(let D of xO){let F="bg"+D[0].toUpperCase()+D.slice(1);u8[F]={get(){let{level:P}=this;return function(...B){let Z=KF(p1.bgColor[uO[P]][D](...B),p1.bgColor.close,this._styler);return o3(this,Z,this._isEmpty)}}}}var rN=Object.defineProperties(()=>{},{...u8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),KF=(D,F,P)=>{let B,Z;if(P===void 0)B=D,Z=F;else B=P.openAll+D,Z=F+P.closeAll;return{open:D,close:F,openAll:B,closeAll:Z,parent:P}},o3=(D,F,P)=>{let B=(...Z)=>{if(n3(Z[0])&&n3(Z[0].raw))return NO(B,fO(B,...Z));return NO(B,Z.length===1?""+Z[0]:Z.join(" "))};return Object.setPrototypeOf(B,rN),B._generator=D,B._styler=F,B._isEmpty=P,B},NO=(D,F)=>{if(D.level<=0||!F)return D._isEmpty?"":F;let P=D._styler;if(P===void 0)return F;let{openAll:B,closeAll:Z}=P;if(F.indexOf("\x1B")!==-1)while(P!==void 0)F=cN(F,P.close,P.open),P=P.parent;let q=F.indexOf(`
219
+ `);if(q!==-1)F=dN(F,Z,B,q);return B+F+Z},IF,fO=(D,...F)=>{let[P]=F;if(!n3(P)||!n3(P.raw))return F.join(" ");let B=F.slice(1),Z=[P.raw[0]];for(let q=1;q<P.length;q++)Z.push(String(B[q-1]).replace(/[{}\\]/g,"\\$&"),String(P.raw[q]));if(IF===void 0)IF=TO();return IF(D,Z.join(""))};Object.defineProperties(i3.prototype,u8);var t3=i3();t3.supportsColor=$F;t3.stderr=i3({level:MF?MF.level:0});t3.stderr.supportsColor=MF;hO.exports=t3});var i=Q((Ju)=>{var wF=Symbol.for("yaml.alias"),lO=Symbol.for("yaml.document"),q5=Symbol.for("yaml.map"),cO=Symbol.for("yaml.pair"),VF=Symbol.for("yaml.scalar"),X5=Symbol.for("yaml.seq"),a0=Symbol.for("yaml.node.type"),Du=(D)=>!!D&&typeof D==="object"&&D[a0]===wF,Fu=(D)=>!!D&&typeof D==="object"&&D[a0]===lO,Pu=(D)=>!!D&&typeof D==="object"&&D[a0]===q5,Bu=(D)=>!!D&&typeof D==="object"&&D[a0]===cO,dO=(D)=>!!D&&typeof D==="object"&&D[a0]===VF,Zu=(D)=>!!D&&typeof D==="object"&&D[a0]===X5;function pO(D){if(D&&typeof D==="object")switch(D[a0]){case q5:case X5:return!0}return!1}function qu(D){if(D&&typeof D==="object")switch(D[a0]){case wF:case q5:case VF:case X5:return!0}return!1}var Xu=(D)=>(dO(D)||pO(D))&&!!D.anchor;Ju.ALIAS=wF;Ju.DOC=lO;Ju.MAP=q5;Ju.NODE_TYPE=a0;Ju.PAIR=cO;Ju.SCALAR=VF;Ju.SEQ=X5;Ju.hasAnchor=Xu;Ju.isAlias=Du;Ju.isCollection=pO;Ju.isDocument=Fu;Ju.isMap=Pu;Ju.isNode=qu;Ju.isPair=Bu;Ju.isScalar=dO;Ju.isSeq=Zu});var a1=Q((Lu)=>{var VD=i(),dD=Symbol("break visit"),rO=Symbol("skip children"),x0=Symbol("remove node");function J5(D,F){let P=aO(F);if(VD.isDocument(D)){if(_8(null,D.contents,P,Object.freeze([D]))===x0)D.contents=null}else _8(null,D,P,Object.freeze([]))}J5.BREAK=dD;J5.SKIP=rO;J5.REMOVE=x0;function _8(D,F,P,B){let Z=sO(D,F,P,B);if(VD.isNode(Z)||VD.isPair(Z))return nO(D,B,Z),_8(D,Z,P,B);if(typeof Z!=="symbol"){if(VD.isCollection(F)){B=Object.freeze(B.concat(F));for(let q=0;q<F.items.length;++q){let X=_8(q,F.items[q],P,B);if(typeof X==="number")q=X-1;else if(X===dD)return dD;else if(X===x0)F.items.splice(q,1),q-=1}}else if(VD.isPair(F)){B=Object.freeze(B.concat(F));let q=_8("key",F.key,P,B);if(q===dD)return dD;else if(q===x0)F.key=null;let X=_8("value",F.value,P,B);if(X===dD)return dD;else if(X===x0)F.value=null}}return Z}async function Y5(D,F){let P=aO(F);if(VD.isDocument(D)){if(await k8(null,D.contents,P,Object.freeze([D]))===x0)D.contents=null}else await k8(null,D,P,Object.freeze([]))}Y5.BREAK=dD;Y5.SKIP=rO;Y5.REMOVE=x0;async function k8(D,F,P,B){let Z=await sO(D,F,P,B);if(VD.isNode(Z)||VD.isPair(Z))return nO(D,B,Z),k8(D,Z,P,B);if(typeof Z!=="symbol"){if(VD.isCollection(F)){B=Object.freeze(B.concat(F));for(let q=0;q<F.items.length;++q){let X=await k8(q,F.items[q],P,B);if(typeof X==="number")q=X-1;else if(X===dD)return dD;else if(X===x0)F.items.splice(q,1),q-=1}}else if(VD.isPair(F)){B=Object.freeze(B.concat(F));let q=await k8("key",F.key,P,B);if(q===dD)return dD;else if(q===x0)F.key=null;let X=await k8("value",F.value,P,B);if(X===dD)return dD;else if(X===x0)F.value=null}}return Z}function aO(D){if(typeof D==="object"&&(D.Collection||D.Node||D.Value))return Object.assign({Alias:D.Node,Map:D.Node,Scalar:D.Node,Seq:D.Node},D.Value&&{Map:D.Value,Scalar:D.Value,Seq:D.Value},D.Collection&&{Map:D.Collection,Seq:D.Collection},D);return D}function sO(D,F,P,B){if(typeof P==="function")return P(D,F,B);if(VD.isMap(F))return P.Map?.(D,F,B);if(VD.isSeq(F))return P.Seq?.(D,F,B);if(VD.isPair(F))return P.Pair?.(D,F,B);if(VD.isScalar(F))return P.Scalar?.(D,F,B);if(VD.isAlias(F))return P.Alias?.(D,F,B);return}function nO(D,F,P){let B=F[F.length-1];if(VD.isCollection(B))B.items[D]=P;else if(VD.isPair(B))if(D==="key")B.key=P;else B.value=P;else if(VD.isDocument(B))B.contents=P;else{let Z=VD.isAlias(B)?"alias":"scalar";throw new Error(`Cannot replace node with ${Z} parent`)}}Lu.visit=J5;Lu.visitAsync=Y5});var jF=Q((Tu)=>{var iO=i(),ju=a1(),bu={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Su=(D)=>D.replace(/[!,[\]{}]/g,(F)=>bu[F]);class J0{constructor(D,F){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},J0.defaultYaml,D),this.tags=Object.assign({},J0.defaultTags,F)}clone(){let D=new J0(this.yaml,this.tags);return D.docStart=this.docStart,D}atDocument(){let D=new J0(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:J0.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},J0.defaultTags);break}return D}add(D,F){if(this.atNextDocument)this.yaml={explicit:J0.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},J0.defaultTags),this.atNextDocument=!1;let P=D.trim().split(/[ \t]+/),B=P.shift();switch(B){case"%TAG":{if(P.length!==2){if(F(0,"%TAG directive should contain exactly two parts"),P.length<2)return!1}let[Z,q]=P;return this.tags[Z]=q,!0}case"%YAML":{if(this.yaml.explicit=!0,P.length!==1)return F(0,"%YAML directive should contain exactly one part"),!1;let[Z]=P;if(Z==="1.1"||Z==="1.2")return this.yaml.version=Z,!0;else{let q=/^\d+\.\d+$/.test(Z);return F(6,`Unsupported YAML version ${Z}`,q),!1}}default:return F(0,`Unknown directive ${B}`,!0),!1}}tagName(D,F){if(D==="!")return"!";if(D[0]!=="!")return F(`Not a valid tag: ${D}`),null;if(D[1]==="<"){let q=D.slice(2,-1);if(q==="!"||q==="!!")return F(`Verbatim tags aren't resolved, so ${D} is invalid.`),null;if(D[D.length-1]!==">")F("Verbatim tags must end with a >");return q}let[,P,B]=D.match(/^(.*!)([^!]*)$/s);if(!B)F(`The ${D} tag has no suffix`);let Z=this.tags[P];if(Z)try{return Z+decodeURIComponent(B)}catch(q){return F(String(q)),null}if(P==="!")return D;return F(`Could not resolve tag: ${D}`),null}tagString(D){for(let[F,P]of Object.entries(this.tags))if(D.startsWith(P))return F+Su(D.substring(P.length));return D[0]==="!"?D:`!<${D}>`}toString(D){let F=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],P=Object.entries(this.tags),B;if(D&&P.length>0&&iO.isNode(D.contents)){let Z={};ju.visit(D.contents,(q,X)=>{if(iO.isNode(X)&&X.tag)Z[X.tag]=!0}),B=Object.keys(Z)}else B=[];for(let[Z,q]of P){if(Z==="!!"&&q==="tag:yaml.org,2002:")continue;if(!D||B.some((X)=>X.startsWith(q)))F.push(`%TAG ${Z} ${q}`)}return F.join(`
220
220
  `)}}J0.defaultYaml={explicit:!1,version:"1.2"};J0.defaultTags={"!!":"tag:yaml.org,2002:"};Tu.Directives=J0});var H5=Q((xu)=>{var oO=i(),uu=a1();function _u(D){if(/[\x00-\x19\s,[\]{}]/.test(D)){let P=`Anchor must not contain whitespace or control characters: ${JSON.stringify(D)}`;throw new Error(P)}return!0}function tO(D){let F=new Set;return uu.visit(D,{Value(P,B){if(B.anchor)F.add(B.anchor)}}),F}function eO(D,F){for(let P=1;;++P){let B=`${D}${P}`;if(!F.has(B))return B}}function ku(D,F){let P=[],B=new Map,Z=null;return{onAnchor:(q)=>{if(P.push(q),!Z)Z=tO(D);let X=eO(F,Z);return Z.add(X),X},setAnchors:()=>{for(let q of P){let X=B.get(q);if(typeof X==="object"&&X.anchor&&(oO.isScalar(X.node)||oO.isCollection(X.node)))X.node.anchor=X.anchor;else{let J=new Error("Failed to resolve repeated object (this should not happen)");throw J.source=q,J}}},sourceObjects:B}}xu.anchorIsValid=_u;xu.anchorNames=tO;xu.createNodeAnchors=ku;xu.findNewAnchor=eO});var bF=Q((yu)=>{function s1(D,F,P,B){if(B&&typeof B==="object")if(Array.isArray(B))for(let Z=0,q=B.length;Z<q;++Z){let X=B[Z],J=s1(D,B,String(Z),X);if(J===void 0)delete B[Z];else if(J!==X)B[Z]=J}else if(B instanceof Map)for(let Z of Array.from(B.keys())){let q=B.get(Z),X=s1(D,B,Z,q);if(X===void 0)B.delete(Z);else if(X!==q)B.set(Z,X)}else if(B instanceof Set)for(let Z of Array.from(B)){let q=s1(D,B,Z,Z);if(q===void 0)B.delete(Z);else if(q!==Z)B.delete(Z),B.add(q)}else for(let[Z,q]of Object.entries(B)){let X=s1(D,B,Z,q);if(X===void 0)delete B[Z];else if(X!==q)B[Z]=X}return D.call(F,P,B)}yu.applyReviver=s1});var z2=Q((cu)=>{var lu=i();function Dz(D,F,P){if(Array.isArray(D))return D.map((B,Z)=>Dz(B,String(Z),P));if(D&&typeof D.toJSON==="function"){if(!P||!lu.hasAnchor(D))return D.toJSON(F,P);let B={aliasCount:0,count:1,res:void 0};P.anchors.set(D,B),P.onCreate=(q)=>{B.res=q,delete P.onCreate};let Z=D.toJSON(F,P);if(P.onCreate)P.onCreate(Z);return Z}if(typeof D==="bigint"&&!P?.keep)return Number(D);return D}cu.toJS=Dz});var U5=Q((au)=>{var pu=bF(),Fz=i(),ru=z2();class Pz{constructor(D){Object.defineProperty(this,Fz.NODE_TYPE,{value:D})}clone(){let D=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)D.range=this.range.slice();return D}toJS(D,{mapAsMap:F,maxAliasCount:P,onAnchor:B,reviver:Z}={}){if(!Fz.isDocument(D))throw new TypeError("A document argument is required");let q={anchors:new Map,doc:D,keep:!0,mapAsMap:F===!0,mapKeyWarned:!1,maxAliasCount:typeof P==="number"?P:100},X=ru.toJS(this,"",q);if(typeof B==="function")for(let{count:J,res:Y}of q.anchors.values())B(Y,J);return typeof Z==="function"?pu.applyReviver(Z,{"":X},"",X):X}}au.NodeBase=Pz});var n1=Q((tu)=>{var nu=H5(),Bz=a1(),W5=i(),iu=U5(),ou=z2();class Zz extends iu.NodeBase{constructor(D){super(W5.ALIAS);this.source=D,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(D){let F=void 0;return Bz.visit(D,{Node:(P,B)=>{if(B===this)return Bz.visit.BREAK;if(B.anchor===this.source)F=B}}),F}toJSON(D,F){if(!F)return{source:this.source};let{anchors:P,doc:B,maxAliasCount:Z}=F,q=this.resolve(B);if(!q){let J=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(J)}let X=P.get(q);if(!X)ou.toJS(q,null,F),X=P.get(q);if(!X||X.res===void 0)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(Z>=0){if(X.count+=1,X.aliasCount===0)X.aliasCount=O5(B,q,P);if(X.count*X.aliasCount>Z)throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return X.res}toString(D,F,P){let B=`*${this.source}`;if(D){if(nu.anchorIsValid(this.source),D.options.verifyAliasOrder&&!D.anchors.has(this.source)){let Z=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(Z)}if(D.implicitKey)return`${B} `}return B}}function O5(D,F,P){if(W5.isAlias(F)){let B=F.resolve(D),Z=P&&B&&P.get(B);return Z?Z.count*Z.aliasCount:0}else if(W5.isCollection(F)){let B=0;for(let Z of F.items){let q=O5(D,Z,P);if(q>B)B=q}return B}else if(W5.isPair(F)){let B=O5(D,F.key,P),Z=O5(D,F.value,P);return Math.max(B,Z)}return 1}tu.Alias=Zz});var ED=Q((Z_)=>{var D_=i(),F_=U5(),P_=z2(),B_=(D)=>!D||typeof D!=="function"&&typeof D!=="object";class a2 extends F_.NodeBase{constructor(D){super(D_.SCALAR);this.value=D}toJSON(D,F){return F?.keep?this.value:P_.toJS(this.value,D,F)}toString(){return String(this.value)}}a2.BLOCK_FOLDED="BLOCK_FOLDED";a2.BLOCK_LITERAL="BLOCK_LITERAL";a2.PLAIN="PLAIN";a2.QUOTE_DOUBLE="QUOTE_DOUBLE";a2.QUOTE_SINGLE="QUOTE_SINGLE";Z_.Scalar=a2;Z_.isScalarValue=B_});var i1=Q((W_)=>{var J_=n1(),s2=i(),qz=ED(),Y_="tag:yaml.org,2002:";function H_(D,F,P){if(F){let B=P.filter((q)=>q.tag===F),Z=B.find((q)=>!q.format)??B[0];if(!Z)throw new Error(`Tag ${F} not found`);return Z}return P.find((B)=>B.identify?.(D)&&!B.format)}function U_(D,F,P){if(s2.isDocument(D))D=D.contents;if(s2.isNode(D))return D;if(s2.isPair(D)){let U=P.schema[s2.MAP].createNode?.(P.schema,null,P);return U.items.push(D),U}if(D instanceof String||D instanceof Number||D instanceof Boolean||typeof BigInt!=="undefined"&&D instanceof BigInt)D=D.valueOf();let{aliasDuplicateObjects:B,onAnchor:Z,onTagObj:q,schema:X,sourceObjects:J}=P,Y=void 0;if(B&&D&&typeof D==="object")if(Y=J.get(D),Y){if(!Y.anchor)Y.anchor=Z(D);return new J_.Alias(Y.anchor)}else Y={anchor:null,node:null},J.set(D,Y);if(F?.startsWith("!!"))F=Y_+F.slice(2);let H=H_(D,F,X.tags);if(!H){if(D&&typeof D.toJSON==="function")D=D.toJSON();if(!D||typeof D!=="object"){let U=new qz.Scalar(D);if(Y)Y.node=U;return U}H=D instanceof Map?X[s2.MAP]:(Symbol.iterator in Object(D))?X[s2.SEQ]:X[s2.MAP]}if(q)q(H),delete P.onTagObj;let W=H?.createNode?H.createNode(P.schema,D,P):typeof H?.nodeClass?.from==="function"?H.nodeClass.from(P.schema,D,P):new qz.Scalar(D);if(F)W.tag=F;else if(!H.default)W.tag=H.tag;if(Y)Y.node=W;return W}W_.createNode=U_});var z5=Q((G_)=>{var z_=i1(),f0=i(),Q_=U5();function SF(D,F,P){let B=P;for(let Z=F.length-1;Z>=0;--Z){let q=F[Z];if(typeof q==="number"&&Number.isInteger(q)&&q>=0){let X=[];X[q]=B,B=X}else B=new Map([[q,B]])}return z_.createNode(B,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:D,sourceObjects:new Map})}var Xz=(D)=>D==null||typeof D==="object"&&!!D[Symbol.iterator]().next().done;class Jz extends Q_.NodeBase{constructor(D,F){super(D);Object.defineProperty(this,"schema",{value:F,configurable:!0,enumerable:!1,writable:!0})}clone(D){let F=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(D)F.schema=D;if(F.items=F.items.map((P)=>f0.isNode(P)||f0.isPair(P)?P.clone(D):P),this.range)F.range=this.range.slice();return F}addIn(D,F){if(Xz(D))this.add(F);else{let[P,...B]=D,Z=this.get(P,!0);if(f0.isCollection(Z))Z.addIn(B,F);else if(Z===void 0&&this.schema)this.set(P,SF(this.schema,B,F));else throw new Error(`Expected YAML collection at ${P}. Remaining path: ${B}`)}}deleteIn(D){let[F,...P]=D;if(P.length===0)return this.delete(F);let B=this.get(F,!0);if(f0.isCollection(B))return B.deleteIn(P);else throw new Error(`Expected YAML collection at ${F}. Remaining path: ${P}`)}getIn(D,F){let[P,...B]=D,Z=this.get(P,!0);if(B.length===0)return!F&&f0.isScalar(Z)?Z.value:Z;else return f0.isCollection(Z)?Z.getIn(B,F):void 0}hasAllNullValues(D){return this.items.every((F)=>{if(!f0.isPair(F))return!1;let P=F.value;return P==null||D&&f0.isScalar(P)&&P.value==null&&!P.commentBefore&&!P.comment&&!P.tag})}hasIn(D){let[F,...P]=D;if(P.length===0)return this.has(F);let B=this.get(F,!0);return f0.isCollection(B)?B.hasIn(P):!1}setIn(D,F){let[P,...B]=D;if(B.length===0)this.set(P,F);else{let Z=this.get(P,!0);if(f0.isCollection(Z))Z.setIn(B,F);else if(Z===void 0&&this.schema)this.set(P,SF(this.schema,B,F));else throw new Error(`Expected YAML collection at ${P}. Remaining path: ${B}`)}}}G_.Collection=Jz;G_.collectionFromPath=SF;G_.isEmptyPath=Xz});var o1=Q((E_)=>{var M_=(D)=>D.replace(/^(?!$)(?: $)?/gm,"#");function TF(D,F){if(/^\n+$/.test(D))return D.substring(1);return F?D.replace(/^(?! *$)/gm,F):D}var K_=(D,F,P)=>D.endsWith(`
221
221
  `)?TF(P,F):P.includes(`
222
222
  `)?`
@@ -232,10 +232,10 @@ ${F}${D.slice(S+1,V)}`}}return w}function Yz(D,F,P){let B=F,Z=F+1,q=D[Z];while(q
232
232
  `;while(P[Y+2]==="\\"&&P[Y+3]==="n"&&P[Y+4]!=='"')X+=`
233
233
  `,Y+=2;if(X+=q,P[Y+2]===" ")X+="\\";Y+=1,J=Y+1}break;default:Y+=1}}return X=J?X+P.slice(J):P,B?X:Q2.foldFlowLines(X,q,Q2.FOLD_QUOTED,G5(F,!1))}function NF(D,F){if(F.options.singleQuote===!1||F.implicitKey&&D.includes(`
234
234
  `)||/[ \t]\n|\n[ \t]/.test(D))return t1(D,F);let P=F.indent||(R5(D)?" ":""),B="'"+D.replace(/'/g,"''").replace(/\n+/g,`$&
235
- ${P}`)+"'";return F.implicitKey?B:Q2.foldFlowLines(B,P,Q2.FOLD_FLOW,G5(F,!1))}function k8(D,F){let{singleQuote:P}=F.options,B;if(P===!1)B=t1;else{let Z=D.includes('"'),q=D.includes("'");if(Z&&!q)B=NF;else if(q&&!Z)B=t1;else B=P?NF:t1}return B(D,F)}var uF;try{uF=new RegExp(`(^|(?<!
235
+ ${P}`)+"'";return F.implicitKey?B:Q2.foldFlowLines(B,P,Q2.FOLD_FLOW,G5(F,!1))}function x8(D,F){let{singleQuote:P}=F.options,B;if(P===!1)B=t1;else{let Z=D.includes('"'),q=D.includes("'");if(Z&&!q)B=NF;else if(q&&!Z)B=t1;else B=P?NF:t1}return B(D,F)}var uF;try{uF=new RegExp(`(^|(?<!
236
236
  ))
237
237
  +(?!
238
- |$)`,"g")}catch{uF=/\n+(?!\n|$)/g}function Q5({comment:D,type:F,value:P},B,Z,q){let{blockQuote:X,commentString:J,lineWidth:Y}=B.options;if(!X||/\n[\t ]+$/.test(P)||/^\s*$/.test(P))return k8(P,B);let H=B.indent||(B.forceBlockIndent||R5(P)?" ":""),W=X==="literal"?!0:X==="folded"||F===h0.Scalar.BLOCK_FOLDED?!1:F===h0.Scalar.BLOCK_LITERAL?!0:!N_(P,Y,H.length);if(!P)return W?`|
238
+ |$)`,"g")}catch{uF=/\n+(?!\n|$)/g}function Q5({comment:D,type:F,value:P},B,Z,q){let{blockQuote:X,commentString:J,lineWidth:Y}=B.options;if(!X||/\n[\t ]+$/.test(P)||/^\s*$/.test(P))return x8(P,B);let H=B.indent||(B.forceBlockIndent||R5(P)?" ":""),W=X==="literal"?!0:X==="folded"||F===h0.Scalar.BLOCK_FOLDED?!1:F===h0.Scalar.BLOCK_LITERAL?!0:!N_(P,Y,H.length);if(!P)return W?`|
239
239
  `:`>
240
240
  `;let U,O;for(O=P.length;O>0;--O){let T=P[O-1];if(T!==`
241
241
  `&&T!=="\t"&&T!==" ")break}let z=P.substring(O),I=z.indexOf(`
@@ -245,10 +245,10 @@ ${P}`)+"'";return F.implicitKey?B:Q2.foldFlowLines(B,P,Q2.FOLD_FLOW,G5(F,!1))}fu
245
245
  ${H}${w}${P}${z}`;P=P.replace(/\n+/g,`
246
246
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${H}`);let V=Q2.foldFlowLines(`${w}${P}${z}`,H,Q2.FOLD_BLOCK,G5(B,!0));return`${S}
247
247
  ${H}${V}`}function u_(D,F,P,B){let{type:Z,value:q}=D,{actualString:X,implicitKey:J,indent:Y,indentStep:H,inFlow:W}=F;if(J&&q.includes(`
248
- `)||W&&/[[\]{},]/.test(q))return k8(q,F);if(!q||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(q))return J||W||!q.includes(`
249
- `)?k8(q,F):Q5(D,F,P,B);if(!J&&!W&&Z!==h0.Scalar.PLAIN&&q.includes(`
250
- `))return Q5(D,F,P,B);if(R5(q)){if(Y==="")return F.forceBlockIndent=!0,Q5(D,F,P,B);else if(J&&Y===H)return k8(q,F)}let U=q.replace(/\n+/g,`$&
251
- ${Y}`);if(X){let O=(R)=>R.default&&R.tag!=="tag:yaml.org,2002:str"&&R.test?.test(U),{compat:z,tags:I}=F.doc.schema;if(I.some(O)||z?.some(O))return k8(q,F)}return J?U:Q2.foldFlowLines(U,Y,Q2.FOLD_FLOW,G5(F,!1))}function __(D,F,P,B){let{implicitKey:Z,inFlow:q}=F,X=typeof D.value==="string"?D:Object.assign({},D,{value:String(D.value)}),{type:J}=D;if(J!==h0.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(X.value))J=h0.Scalar.QUOTE_DOUBLE}let Y=(W)=>{switch(W){case h0.Scalar.BLOCK_FOLDED:case h0.Scalar.BLOCK_LITERAL:return Z||q?k8(X.value,F):Q5(X,F,P,B);case h0.Scalar.QUOTE_DOUBLE:return t1(X.value,F);case h0.Scalar.QUOTE_SINGLE:return NF(X.value,F);case h0.Scalar.PLAIN:return u_(X,F,P,B);default:return null}},H=Y(J);if(H===null){let{defaultKeyType:W,defaultStringType:U}=F.options,O=Z&&W||U;if(H=Y(O),H===null)throw new Error(`Unsupported default string type ${O}`)}return H}k_.stringifyString=__});var D6=Q((c_)=>{var f_=H5(),G2=i(),h_=o1(),v_=e1();function g_(D,F){let P=Object.assign({blockQuote:!0,commentString:h_.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},D.schema.toStringOptions,F),B;switch(P.collectionStyle){case"block":B=!1;break;case"flow":B=!0;break;default:B=null}return{anchors:new Set,doc:D,flowCollectionPadding:P.flowCollectionPadding?" ":"",indent:"",indentStep:typeof P.indent==="number"?" ".repeat(P.indent):" ",inFlow:B,options:P}}function y_(D,F){if(F.tag){let Z=D.filter((q)=>q.tag===F.tag);if(Z.length>0)return Z.find((q)=>q.format===F.format)??Z[0]}let P=void 0,B;if(G2.isScalar(F)){B=F.value;let Z=D.filter((q)=>q.identify?.(B));if(Z.length>1){let q=Z.filter((X)=>X.test);if(q.length>0)Z=q}P=Z.find((q)=>q.format===F.format)??Z.find((q)=>!q.format)}else B=F,P=D.find((Z)=>Z.nodeClass&&B instanceof Z.nodeClass);if(!P){let Z=B?.constructor?.name??typeof B;throw new Error(`Tag not resolved for ${Z} value`)}return P}function m_(D,F,{anchors:P,doc:B}){if(!B.directives)return"";let Z=[],q=(G2.isScalar(D)||G2.isCollection(D))&&D.anchor;if(q&&f_.anchorIsValid(q))P.add(q),Z.push(`&${q}`);let X=D.tag?D.tag:F.default?null:F.tag;if(X)Z.push(B.directives.tagString(X));return Z.join(" ")}function l_(D,F,P,B){if(G2.isPair(D))return D.toString(F,P,B);if(G2.isAlias(D)){if(F.doc.directives)return D.toString(F);if(F.resolvedAliases?.has(D))throw new TypeError("Cannot stringify circular structure without alias nodes");else{if(F.resolvedAliases)F.resolvedAliases.add(D);else F.resolvedAliases=new Set([D]);D=D.resolve(F.doc)}}let Z=void 0,q=G2.isNode(D)?D:F.doc.createNode(D,{onTagObj:(Y)=>Z=Y});if(!Z)Z=y_(F.doc.schema.tags,q);let X=m_(q,Z,F);if(X.length>0)F.indentAtStart=(F.indentAtStart??0)+X.length+1;let J=typeof Z.stringify==="function"?Z.stringify(q,F,P,B):G2.isScalar(q)?v_.stringifyString(q,F,P,B):q.toString(F,P,B);if(!X)return J;return G2.isScalar(q)||J[0]==="{"||J[0]==="["?`${X} ${J}`:`${X}
248
+ `)||W&&/[[\]{},]/.test(q))return x8(q,F);if(!q||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(q))return J||W||!q.includes(`
249
+ `)?x8(q,F):Q5(D,F,P,B);if(!J&&!W&&Z!==h0.Scalar.PLAIN&&q.includes(`
250
+ `))return Q5(D,F,P,B);if(R5(q)){if(Y==="")return F.forceBlockIndent=!0,Q5(D,F,P,B);else if(J&&Y===H)return x8(q,F)}let U=q.replace(/\n+/g,`$&
251
+ ${Y}`);if(X){let O=(R)=>R.default&&R.tag!=="tag:yaml.org,2002:str"&&R.test?.test(U),{compat:z,tags:I}=F.doc.schema;if(I.some(O)||z?.some(O))return x8(q,F)}return J?U:Q2.foldFlowLines(U,Y,Q2.FOLD_FLOW,G5(F,!1))}function __(D,F,P,B){let{implicitKey:Z,inFlow:q}=F,X=typeof D.value==="string"?D:Object.assign({},D,{value:String(D.value)}),{type:J}=D;if(J!==h0.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(X.value))J=h0.Scalar.QUOTE_DOUBLE}let Y=(W)=>{switch(W){case h0.Scalar.BLOCK_FOLDED:case h0.Scalar.BLOCK_LITERAL:return Z||q?x8(X.value,F):Q5(X,F,P,B);case h0.Scalar.QUOTE_DOUBLE:return t1(X.value,F);case h0.Scalar.QUOTE_SINGLE:return NF(X.value,F);case h0.Scalar.PLAIN:return u_(X,F,P,B);default:return null}},H=Y(J);if(H===null){let{defaultKeyType:W,defaultStringType:U}=F.options,O=Z&&W||U;if(H=Y(O),H===null)throw new Error(`Unsupported default string type ${O}`)}return H}k_.stringifyString=__});var D6=Q((c_)=>{var f_=H5(),G2=i(),h_=o1(),v_=e1();function g_(D,F){let P=Object.assign({blockQuote:!0,commentString:h_.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},D.schema.toStringOptions,F),B;switch(P.collectionStyle){case"block":B=!1;break;case"flow":B=!0;break;default:B=null}return{anchors:new Set,doc:D,flowCollectionPadding:P.flowCollectionPadding?" ":"",indent:"",indentStep:typeof P.indent==="number"?" ".repeat(P.indent):" ",inFlow:B,options:P}}function y_(D,F){if(F.tag){let Z=D.filter((q)=>q.tag===F.tag);if(Z.length>0)return Z.find((q)=>q.format===F.format)??Z[0]}let P=void 0,B;if(G2.isScalar(F)){B=F.value;let Z=D.filter((q)=>q.identify?.(B));if(Z.length>1){let q=Z.filter((X)=>X.test);if(q.length>0)Z=q}P=Z.find((q)=>q.format===F.format)??Z.find((q)=>!q.format)}else B=F,P=D.find((Z)=>Z.nodeClass&&B instanceof Z.nodeClass);if(!P){let Z=B?.constructor?.name??typeof B;throw new Error(`Tag not resolved for ${Z} value`)}return P}function m_(D,F,{anchors:P,doc:B}){if(!B.directives)return"";let Z=[],q=(G2.isScalar(D)||G2.isCollection(D))&&D.anchor;if(q&&f_.anchorIsValid(q))P.add(q),Z.push(`&${q}`);let X=D.tag?D.tag:F.default?null:F.tag;if(X)Z.push(B.directives.tagString(X));return Z.join(" ")}function l_(D,F,P,B){if(G2.isPair(D))return D.toString(F,P,B);if(G2.isAlias(D)){if(F.doc.directives)return D.toString(F);if(F.resolvedAliases?.has(D))throw new TypeError("Cannot stringify circular structure without alias nodes");else{if(F.resolvedAliases)F.resolvedAliases.add(D);else F.resolvedAliases=new Set([D]);D=D.resolve(F.doc)}}let Z=void 0,q=G2.isNode(D)?D:F.doc.createNode(D,{onTagObj:(Y)=>Z=Y});if(!Z)Z=y_(F.doc.schema.tags,q);let X=m_(q,Z,F);if(X.length>0)F.indentAtStart=(F.indentAtStart??0)+X.length+1;let J=typeof Z.stringify==="function"?Z.stringify(q,F,P,B):G2.isScalar(q)?v_.stringifyString(q,F,P,B):q.toString(F,P,B);if(!X)return J;return G2.isScalar(q)||J[0]==="{"||J[0]==="["?`${X} ${J}`:`${X}
252
252
  ${F.indent}${J}`}c_.createStringifyContext=g_;c_.stringify=l_});var Oz=Q((a_)=>{var s0=i(),Uz=ED(),Wz=D6(),F6=o1();function r_({key:D,value:F},P,B,Z){let{allNullValues:q,doc:X,indent:J,indentStep:Y,options:{commentString:H,indentSeq:W,simpleKeys:U}}=P,O=s0.isNode(D)&&D.comment||null;if(U){if(O)throw new Error("With simple keys, key nodes cannot have comments");if(s0.isCollection(D)||!s0.isNode(D)&&typeof D==="object")throw new Error("With simple keys, collection cannot be used as a key value")}let z=!U&&(!D||O&&F==null&&!P.inFlow||s0.isCollection(D)||(s0.isScalar(D)?D.type===Uz.Scalar.BLOCK_FOLDED||D.type===Uz.Scalar.BLOCK_LITERAL:typeof D==="object"));P=Object.assign({},P,{allNullValues:!1,implicitKey:!z&&(U||!q),indent:J+Y});let I=!1,R=!1,$=Wz.stringify(D,P,()=>I=!0,()=>R=!0);if(!z&&!P.inFlow&&$.length>1024){if(U)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");z=!0}if(P.inFlow){if(q||F==null){if(I&&B)B();return $===""?"?":z?`? ${$}`:$}}else if(q&&!U||F==null&&z){if($=`? ${$}`,O&&!I)$+=F6.lineComment($,P.indent,H(O));else if(R&&Z)Z();return $}if(I)O=null;if(z){if(O)$+=F6.lineComment($,P.indent,H(O));$=`? ${$}
253
253
  ${J}:`}else if($=`${$}:`,O)$+=F6.lineComment($,P.indent,H(O));let E,w,A;if(s0.isNode(F))E=!!F.spaceBefore,w=F.commentBefore,A=F.comment;else if(E=!1,w=null,A=null,F&&typeof F==="object")F=X.createNode(F);if(P.implicitKey=!1,!z&&!O&&s0.isScalar(F))P.indentAtStart=$.length+1;if(R=!1,!W&&Y.length>=2&&!P.inFlow&&!z&&s0.isSeq(F)&&!F.flow&&!F.tag&&!F.anchor)P.indent=P.indent.substring(2);let S=!1,V=Wz.stringify(F,P,()=>S=!0,()=>R=!0),T=" ";if(O||E||w){if(T=E?`
254
254
  `:"",w){let m=H(w);T+=`
@@ -266,13 +266,13 @@ ${Y}${R}`:`
266
266
  `)))H=!0;U.push(E),W=U.length}let{start:O,end:z}=P;if(U.length===0)return O+z;else{if(!H){let I=U.reduce((R,$)=>R+$.length+2,2);H=F.options.lineWidth>0&&I>F.options.lineWidth}if(H){let I=O;for(let R of U)I+=R?`
267
267
  ${q}${Z}${R}`:`
268
268
  `;return`${I}
269
- ${Z}${z}`}else return`${O}${X}${U.join(" ")}${X}${z}`}}function C5({indent:D,options:{commentString:F}},P,B,Z){if(B&&Z)B=B.replace(/^\n+/,"");if(B){let q=A5.indentComment(F(B),D);P.push(q.trimStart())}}Kk.stringifyCollection=Ik});var $2=Q((Vk)=>{var Ak=hF(),Ck=fF(),Lk=z5(),I2=i(),L5=R2(),wk=ED();function B6(D,F){let P=I2.isScalar(F)?F.value:F;for(let B of D)if(I2.isPair(B)){if(B.key===F||B.key===P)return B;if(I2.isScalar(B.key)&&B.key.value===P)return B}return}class Mz extends Lk.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(D){super(I2.MAP,D);this.items=[]}static from(D,F,P){let{keepUndefined:B,replacer:Z}=P,q=new this(D),X=(J,Y)=>{if(typeof Z==="function")Y=Z.call(F,J,Y);else if(Array.isArray(Z)&&!Z.includes(J))return;if(Y!==void 0||B)q.items.push(L5.createPair(J,Y,P))};if(F instanceof Map)for(let[J,Y]of F)X(J,Y);else if(F&&typeof F==="object")for(let J of Object.keys(F))X(J,F[J]);if(typeof D.sortMapEntries==="function")q.items.sort(D.sortMapEntries);return q}add(D,F){let P;if(I2.isPair(D))P=D;else if(!D||typeof D!=="object"||!("key"in D))P=new L5.Pair(D,D?.value);else P=new L5.Pair(D.key,D.value);let B=B6(this.items,P.key),Z=this.schema?.sortMapEntries;if(B){if(!F)throw new Error(`Key ${P.key} already set`);if(I2.isScalar(B.value)&&wk.isScalarValue(P.value))B.value.value=P.value;else B.value=P.value}else if(Z){let q=this.items.findIndex((X)=>Z(P,X)<0);if(q===-1)this.items.push(P);else this.items.splice(q,0,P)}else this.items.push(P)}delete(D){let F=B6(this.items,D);if(!F)return!1;return this.items.splice(this.items.indexOf(F),1).length>0}get(D,F){let B=B6(this.items,D)?.value;return(!F&&I2.isScalar(B)?B.value:B)??void 0}has(D){return!!B6(this.items,D)}set(D,F){this.add(new L5.Pair(D,F),!0)}toJSON(D,F,P){let B=P?new P:F?.mapAsMap?new Map:{};if(F?.onCreate)F.onCreate(B);for(let Z of this.items)Ck.addPairToJSMap(F,B,Z);return B}toString(D,F,P){if(!D)return JSON.stringify(this);for(let B of this.items)if(!I2.isPair(B))throw new Error(`Map items must all be pairs; found ${JSON.stringify(B)} instead`);if(!D.allNullValues&&this.hasAllNullValues(!1))D=Object.assign({},D,{allNullValues:!0});return Ak.stringifyCollection(this,D,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:D.indent||"",onChompKeep:P,onComment:F})}}Vk.YAMLMap=Mz;Vk.findPair=B6});var x8=Q((Nk)=>{var Sk=i(),Kz=$2(),Tk={collection:"map",default:!0,nodeClass:Kz.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(D,F){if(!Sk.isMap(D))F("Expected a mapping for this tag");return D},createNode:(D,F,P)=>Kz.YAMLMap.from(D,F,P)};Nk.map=Tk});var M2=Q((vk)=>{var _k=i1(),kk=hF(),xk=z5(),V5=i(),fk=ED(),hk=z2();class Ez extends xk.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(D){super(V5.SEQ,D);this.items=[]}add(D){this.items.push(D)}delete(D){let F=w5(D);if(typeof F!=="number")return!1;return this.items.splice(F,1).length>0}get(D,F){let P=w5(D);if(typeof P!=="number")return;let B=this.items[P];return!F&&V5.isScalar(B)?B.value:B}has(D){let F=w5(D);return typeof F==="number"&&F<this.items.length}set(D,F){let P=w5(D);if(typeof P!=="number")throw new Error(`Expected a valid index, not ${D}.`);let B=this.items[P];if(V5.isScalar(B)&&fk.isScalarValue(F))B.value=F;else this.items[P]=F}toJSON(D,F){let P=[];if(F?.onCreate)F.onCreate(P);let B=0;for(let Z of this.items)P.push(hk.toJS(Z,String(B++),F));return P}toString(D,F,P){if(!D)return JSON.stringify(this);return kk.stringifyCollection(this,D,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(D.indent||"")+" ",onChompKeep:P,onComment:F})}static from(D,F,P){let{replacer:B}=P,Z=new this(D);if(F&&Symbol.iterator in Object(F)){let q=0;for(let X of F){if(typeof B==="function"){let J=F instanceof Set?X:String(q++);X=B.call(F,J,X)}Z.items.push(_k.createNode(X,void 0,P))}}return Z}}function w5(D){let F=V5.isScalar(D)?D.value:D;if(F&&typeof F==="string")F=Number(F);return typeof F==="number"&&Number.isInteger(F)&&F>=0?F:null}vk.YAMLSeq=Ez});var f8=Q((lk)=>{var yk=i(),Az=M2(),mk={collection:"seq",default:!0,nodeClass:Az.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(D,F){if(!yk.isSeq(D))F("Expected a sequence for this tag");return D},createNode:(D,F,P)=>Az.YAMLSeq.from(D,F,P)};lk.seq=mk});var Z6=Q((rk)=>{var dk=e1(),pk={identify:(D)=>typeof D==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(D)=>D,stringify(D,F,P,B){return F=Object.assign({actualString:!0},F),dk.stringifyString(D,F,P,B)}};rk.string=pk});var j5=Q((sk)=>{var Cz=ED(),Lz={identify:(D)=>D==null,createNode:()=>new Cz.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Cz.Scalar(null),stringify:({source:D},F)=>typeof D==="string"&&Lz.test.test(D)?D:F.options.nullStr};sk.nullTag=Lz});var vF=Q((ok)=>{var ik=ED(),wz={identify:(D)=>typeof D==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(D)=>new ik.Scalar(D[0]==="t"||D[0]==="T"),stringify({source:D,value:F},P){if(D&&wz.test.test(D)){let B=D[0]==="t"||D[0]==="T";if(F===B)return D}return F?P.options.trueStr:P.options.falseStr}};ok.boolTag=wz});var h8=Q((Dx)=>{function ek({format:D,minFractionDigits:F,tag:P,value:B}){if(typeof B==="bigint")return String(B);let Z=typeof B==="number"?B:Number(B);if(!isFinite(Z))return isNaN(Z)?".nan":Z<0?"-.inf":".inf";let q=JSON.stringify(B);if(!D&&F&&(!P||P==="tag:yaml.org,2002:float")&&/^\d/.test(q)){let X=q.indexOf(".");if(X<0)X=q.length,q+=".";let J=F-(q.length-X-1);while(J-- >0)q+="0"}return q}Dx.stringifyNumber=ek});var yF=Q((Xx)=>{var Px=ED(),gF=h8(),Bx={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(D)=>D.slice(-3).toLowerCase()==="nan"?NaN:D[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:gF.stringifyNumber},Zx={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(D)=>parseFloat(D),stringify(D){let F=Number(D.value);return isFinite(F)?F.toExponential():gF.stringifyNumber(D)}},qx={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(D){let F=new Px.Scalar(parseFloat(D)),P=D.indexOf(".");if(P!==-1&&D[D.length-1]==="0")F.minFractionDigits=D.length-P-1;return F},stringify:gF.stringifyNumber};Xx.float=qx;Xx.floatExp=Zx;Xx.floatNaN=Bx});var lF=Q((zx)=>{var Vz=h8(),b5=(D)=>typeof D==="bigint"||Number.isInteger(D),mF=(D,F,P,{intAsBigInt:B})=>B?BigInt(D):parseInt(D.substring(F),P);function jz(D,F,P){let{value:B}=D;if(b5(B)&&B>=0)return P+B.toString(F);return Vz.stringifyNumber(D)}var Ux={identify:(D)=>b5(D)&&D>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(D,F,P)=>mF(D,2,8,P),stringify:(D)=>jz(D,8,"0o")},Wx={identify:b5,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(D,F,P)=>mF(D,0,10,P),stringify:Vz.stringifyNumber},Ox={identify:(D)=>b5(D)&&D>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(D,F,P)=>mF(D,2,16,P),stringify:(D)=>jz(D,16,"0x")};zx.int=Wx;zx.intHex=Ox;zx.intOct=Ux});var bz=Q((Cx)=>{var Ix=x8(),$x=j5(),Mx=f8(),Kx=Z6(),Ex=vF(),cF=yF(),dF=lF(),Ax=[Ix.map,Mx.seq,Kx.string,$x.nullTag,Ex.boolTag,dF.intOct,dF.int,dF.intHex,cF.floatNaN,cF.floatExp,cF.float];Cx.schema=Ax});var Tz=Q((Nx)=>{var wx=ED(),Vx=x8(),jx=f8();function Sz(D){return typeof D==="bigint"||Number.isInteger(D)}var S5=({value:D})=>JSON.stringify(D),bx=[{identify:(D)=>typeof D==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(D)=>D,stringify:S5},{identify:(D)=>D==null,createNode:()=>new wx.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:S5},{identify:(D)=>typeof D==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:(D)=>D==="true",stringify:S5},{identify:Sz,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(D,F,{intAsBigInt:P})=>P?BigInt(D):parseInt(D,10),stringify:({value:D})=>Sz(D)?D.toString():JSON.stringify(D)},{identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(D)=>parseFloat(D),stringify:S5}],Sx={default:!0,tag:"",test:/^/,resolve(D,F){return F(`Unresolved plain scalar ${JSON.stringify(D)}`),D}},Tx=[Vx.map,jx.seq].concat(bx,Sx);Nx.schema=Tx});var rF=Q((xx)=>{var pF=ED(),_x=e1(),kx={identify:(D)=>D instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(D,F){if(typeof Buffer==="function")return Buffer.from(D,"base64");else if(typeof atob==="function"){let P=atob(D.replace(/[\n\r]/g,"")),B=new Uint8Array(P.length);for(let Z=0;Z<P.length;++Z)B[Z]=P.charCodeAt(Z);return B}else return F("This environment does not support reading binary tags; either Buffer or atob is required"),D},stringify({comment:D,type:F,value:P},B,Z,q){let X=P,J;if(typeof Buffer==="function")J=X instanceof Buffer?X.toString("base64"):Buffer.from(X.buffer).toString("base64");else if(typeof btoa==="function"){let Y="";for(let H=0;H<X.length;++H)Y+=String.fromCharCode(X[H]);J=btoa(Y)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(!F)F=pF.Scalar.BLOCK_LITERAL;if(F!==pF.Scalar.QUOTE_DOUBLE){let Y=Math.max(B.options.lineWidth-B.indent.length,B.options.minContentWidth),H=Math.ceil(J.length/Y),W=new Array(H);for(let U=0,O=0;U<H;++U,O+=Y)W[U]=J.substr(O,Y);J=W.join(F===pF.Scalar.BLOCK_LITERAL?`
269
+ ${Z}${z}`}else return`${O}${X}${U.join(" ")}${X}${z}`}}function C5({indent:D,options:{commentString:F}},P,B,Z){if(B&&Z)B=B.replace(/^\n+/,"");if(B){let q=A5.indentComment(F(B),D);P.push(q.trimStart())}}Kk.stringifyCollection=Ik});var $2=Q((Vk)=>{var Ak=hF(),Ck=fF(),Lk=z5(),I2=i(),L5=R2(),wk=ED();function B6(D,F){let P=I2.isScalar(F)?F.value:F;for(let B of D)if(I2.isPair(B)){if(B.key===F||B.key===P)return B;if(I2.isScalar(B.key)&&B.key.value===P)return B}return}class Mz extends Lk.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(D){super(I2.MAP,D);this.items=[]}static from(D,F,P){let{keepUndefined:B,replacer:Z}=P,q=new this(D),X=(J,Y)=>{if(typeof Z==="function")Y=Z.call(F,J,Y);else if(Array.isArray(Z)&&!Z.includes(J))return;if(Y!==void 0||B)q.items.push(L5.createPair(J,Y,P))};if(F instanceof Map)for(let[J,Y]of F)X(J,Y);else if(F&&typeof F==="object")for(let J of Object.keys(F))X(J,F[J]);if(typeof D.sortMapEntries==="function")q.items.sort(D.sortMapEntries);return q}add(D,F){let P;if(I2.isPair(D))P=D;else if(!D||typeof D!=="object"||!("key"in D))P=new L5.Pair(D,D?.value);else P=new L5.Pair(D.key,D.value);let B=B6(this.items,P.key),Z=this.schema?.sortMapEntries;if(B){if(!F)throw new Error(`Key ${P.key} already set`);if(I2.isScalar(B.value)&&wk.isScalarValue(P.value))B.value.value=P.value;else B.value=P.value}else if(Z){let q=this.items.findIndex((X)=>Z(P,X)<0);if(q===-1)this.items.push(P);else this.items.splice(q,0,P)}else this.items.push(P)}delete(D){let F=B6(this.items,D);if(!F)return!1;return this.items.splice(this.items.indexOf(F),1).length>0}get(D,F){let B=B6(this.items,D)?.value;return(!F&&I2.isScalar(B)?B.value:B)??void 0}has(D){return!!B6(this.items,D)}set(D,F){this.add(new L5.Pair(D,F),!0)}toJSON(D,F,P){let B=P?new P:F?.mapAsMap?new Map:{};if(F?.onCreate)F.onCreate(B);for(let Z of this.items)Ck.addPairToJSMap(F,B,Z);return B}toString(D,F,P){if(!D)return JSON.stringify(this);for(let B of this.items)if(!I2.isPair(B))throw new Error(`Map items must all be pairs; found ${JSON.stringify(B)} instead`);if(!D.allNullValues&&this.hasAllNullValues(!1))D=Object.assign({},D,{allNullValues:!0});return Ak.stringifyCollection(this,D,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:D.indent||"",onChompKeep:P,onComment:F})}}Vk.YAMLMap=Mz;Vk.findPair=B6});var f8=Q((Nk)=>{var Sk=i(),Kz=$2(),Tk={collection:"map",default:!0,nodeClass:Kz.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(D,F){if(!Sk.isMap(D))F("Expected a mapping for this tag");return D},createNode:(D,F,P)=>Kz.YAMLMap.from(D,F,P)};Nk.map=Tk});var M2=Q((vk)=>{var _k=i1(),kk=hF(),xk=z5(),V5=i(),fk=ED(),hk=z2();class Ez extends xk.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(D){super(V5.SEQ,D);this.items=[]}add(D){this.items.push(D)}delete(D){let F=w5(D);if(typeof F!=="number")return!1;return this.items.splice(F,1).length>0}get(D,F){let P=w5(D);if(typeof P!=="number")return;let B=this.items[P];return!F&&V5.isScalar(B)?B.value:B}has(D){let F=w5(D);return typeof F==="number"&&F<this.items.length}set(D,F){let P=w5(D);if(typeof P!=="number")throw new Error(`Expected a valid index, not ${D}.`);let B=this.items[P];if(V5.isScalar(B)&&fk.isScalarValue(F))B.value=F;else this.items[P]=F}toJSON(D,F){let P=[];if(F?.onCreate)F.onCreate(P);let B=0;for(let Z of this.items)P.push(hk.toJS(Z,String(B++),F));return P}toString(D,F,P){if(!D)return JSON.stringify(this);return kk.stringifyCollection(this,D,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(D.indent||"")+" ",onChompKeep:P,onComment:F})}static from(D,F,P){let{replacer:B}=P,Z=new this(D);if(F&&Symbol.iterator in Object(F)){let q=0;for(let X of F){if(typeof B==="function"){let J=F instanceof Set?X:String(q++);X=B.call(F,J,X)}Z.items.push(_k.createNode(X,void 0,P))}}return Z}}function w5(D){let F=V5.isScalar(D)?D.value:D;if(F&&typeof F==="string")F=Number(F);return typeof F==="number"&&Number.isInteger(F)&&F>=0?F:null}vk.YAMLSeq=Ez});var h8=Q((lk)=>{var yk=i(),Az=M2(),mk={collection:"seq",default:!0,nodeClass:Az.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(D,F){if(!yk.isSeq(D))F("Expected a sequence for this tag");return D},createNode:(D,F,P)=>Az.YAMLSeq.from(D,F,P)};lk.seq=mk});var Z6=Q((rk)=>{var dk=e1(),pk={identify:(D)=>typeof D==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(D)=>D,stringify(D,F,P,B){return F=Object.assign({actualString:!0},F),dk.stringifyString(D,F,P,B)}};rk.string=pk});var j5=Q((sk)=>{var Cz=ED(),Lz={identify:(D)=>D==null,createNode:()=>new Cz.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Cz.Scalar(null),stringify:({source:D},F)=>typeof D==="string"&&Lz.test.test(D)?D:F.options.nullStr};sk.nullTag=Lz});var vF=Q((ok)=>{var ik=ED(),wz={identify:(D)=>typeof D==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(D)=>new ik.Scalar(D[0]==="t"||D[0]==="T"),stringify({source:D,value:F},P){if(D&&wz.test.test(D)){let B=D[0]==="t"||D[0]==="T";if(F===B)return D}return F?P.options.trueStr:P.options.falseStr}};ok.boolTag=wz});var v8=Q((Dx)=>{function ek({format:D,minFractionDigits:F,tag:P,value:B}){if(typeof B==="bigint")return String(B);let Z=typeof B==="number"?B:Number(B);if(!isFinite(Z))return isNaN(Z)?".nan":Z<0?"-.inf":".inf";let q=JSON.stringify(B);if(!D&&F&&(!P||P==="tag:yaml.org,2002:float")&&/^\d/.test(q)){let X=q.indexOf(".");if(X<0)X=q.length,q+=".";let J=F-(q.length-X-1);while(J-- >0)q+="0"}return q}Dx.stringifyNumber=ek});var yF=Q((Xx)=>{var Px=ED(),gF=v8(),Bx={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(D)=>D.slice(-3).toLowerCase()==="nan"?NaN:D[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:gF.stringifyNumber},Zx={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(D)=>parseFloat(D),stringify(D){let F=Number(D.value);return isFinite(F)?F.toExponential():gF.stringifyNumber(D)}},qx={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(D){let F=new Px.Scalar(parseFloat(D)),P=D.indexOf(".");if(P!==-1&&D[D.length-1]==="0")F.minFractionDigits=D.length-P-1;return F},stringify:gF.stringifyNumber};Xx.float=qx;Xx.floatExp=Zx;Xx.floatNaN=Bx});var lF=Q((zx)=>{var Vz=v8(),b5=(D)=>typeof D==="bigint"||Number.isInteger(D),mF=(D,F,P,{intAsBigInt:B})=>B?BigInt(D):parseInt(D.substring(F),P);function jz(D,F,P){let{value:B}=D;if(b5(B)&&B>=0)return P+B.toString(F);return Vz.stringifyNumber(D)}var Ux={identify:(D)=>b5(D)&&D>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(D,F,P)=>mF(D,2,8,P),stringify:(D)=>jz(D,8,"0o")},Wx={identify:b5,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(D,F,P)=>mF(D,0,10,P),stringify:Vz.stringifyNumber},Ox={identify:(D)=>b5(D)&&D>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(D,F,P)=>mF(D,2,16,P),stringify:(D)=>jz(D,16,"0x")};zx.int=Wx;zx.intHex=Ox;zx.intOct=Ux});var bz=Q((Cx)=>{var Ix=f8(),$x=j5(),Mx=h8(),Kx=Z6(),Ex=vF(),cF=yF(),dF=lF(),Ax=[Ix.map,Mx.seq,Kx.string,$x.nullTag,Ex.boolTag,dF.intOct,dF.int,dF.intHex,cF.floatNaN,cF.floatExp,cF.float];Cx.schema=Ax});var Tz=Q((Nx)=>{var wx=ED(),Vx=f8(),jx=h8();function Sz(D){return typeof D==="bigint"||Number.isInteger(D)}var S5=({value:D})=>JSON.stringify(D),bx=[{identify:(D)=>typeof D==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(D)=>D,stringify:S5},{identify:(D)=>D==null,createNode:()=>new wx.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:S5},{identify:(D)=>typeof D==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:(D)=>D==="true",stringify:S5},{identify:Sz,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(D,F,{intAsBigInt:P})=>P?BigInt(D):parseInt(D,10),stringify:({value:D})=>Sz(D)?D.toString():JSON.stringify(D)},{identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(D)=>parseFloat(D),stringify:S5}],Sx={default:!0,tag:"",test:/^/,resolve(D,F){return F(`Unresolved plain scalar ${JSON.stringify(D)}`),D}},Tx=[Vx.map,jx.seq].concat(bx,Sx);Nx.schema=Tx});var rF=Q((xx)=>{var pF=ED(),_x=e1(),kx={identify:(D)=>D instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(D,F){if(typeof Buffer==="function")return Buffer.from(D,"base64");else if(typeof atob==="function"){let P=atob(D.replace(/[\n\r]/g,"")),B=new Uint8Array(P.length);for(let Z=0;Z<P.length;++Z)B[Z]=P.charCodeAt(Z);return B}else return F("This environment does not support reading binary tags; either Buffer or atob is required"),D},stringify({comment:D,type:F,value:P},B,Z,q){let X=P,J;if(typeof Buffer==="function")J=X instanceof Buffer?X.toString("base64"):Buffer.from(X.buffer).toString("base64");else if(typeof btoa==="function"){let Y="";for(let H=0;H<X.length;++H)Y+=String.fromCharCode(X[H]);J=btoa(Y)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(!F)F=pF.Scalar.BLOCK_LITERAL;if(F!==pF.Scalar.QUOTE_DOUBLE){let Y=Math.max(B.options.lineWidth-B.indent.length,B.options.minContentWidth),H=Math.ceil(J.length/Y),W=new Array(H);for(let U=0,O=0;U<H;++U,O+=Y)W[U]=J.substr(O,Y);J=W.join(F===pF.Scalar.BLOCK_LITERAL?`
270
270
  `:" ")}return _x.stringifyString({comment:D,type:F,value:J},B,Z,q)}};xx.binary=kx});var N5=Q((yx)=>{var T5=i(),aF=R2(),hx=ED(),vx=M2();function Nz(D,F){if(T5.isSeq(D))for(let P=0;P<D.items.length;++P){let B=D.items[P];if(T5.isPair(B))continue;else if(T5.isMap(B)){if(B.items.length>1)F("Each pair must have its own sequence indicator");let Z=B.items[0]||new aF.Pair(new hx.Scalar(null));if(B.commentBefore)Z.key.commentBefore=Z.key.commentBefore?`${B.commentBefore}
271
271
  ${Z.key.commentBefore}`:B.commentBefore;if(B.comment){let q=Z.value??Z.key;q.comment=q.comment?`${B.comment}
272
- ${q.comment}`:B.comment}B=Z}D.items[P]=T5.isPair(B)?B:new aF.Pair(B)}else F("Expected a sequence for this tag");return D}function uz(D,F,P){let{replacer:B}=P,Z=new vx.YAMLSeq(D);Z.tag="tag:yaml.org,2002:pairs";let q=0;if(F&&Symbol.iterator in Object(F))for(let X of F){if(typeof B==="function")X=B.call(F,String(q++),X);let J,Y;if(Array.isArray(X))if(X.length===2)J=X[0],Y=X[1];else throw new TypeError(`Expected [key, value] tuple: ${X}`);else if(X&&X instanceof Object){let H=Object.keys(X);if(H.length===1)J=H[0],Y=X[J];else throw new TypeError(`Expected tuple with one key, not ${H.length} keys`)}else J=X;Z.items.push(aF.createPair(J,Y,P))}return Z}var gx={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Nz,createNode:uz};yx.createPairs=uz;yx.pairs=gx;yx.resolvePairs=Nz});var nF=Q((rx)=>{var _z=i(),sF=z2(),q6=$2(),dx=M2(),kz=N5();class i2 extends dx.YAMLSeq{constructor(){super();this.add=q6.YAMLMap.prototype.add.bind(this),this.delete=q6.YAMLMap.prototype.delete.bind(this),this.get=q6.YAMLMap.prototype.get.bind(this),this.has=q6.YAMLMap.prototype.has.bind(this),this.set=q6.YAMLMap.prototype.set.bind(this),this.tag=i2.tag}toJSON(D,F){if(!F)return super.toJSON(D);let P=new Map;if(F?.onCreate)F.onCreate(P);for(let B of this.items){let Z,q;if(_z.isPair(B))Z=sF.toJS(B.key,"",F),q=sF.toJS(B.value,Z,F);else Z=sF.toJS(B,"",F);if(P.has(Z))throw new Error("Ordered maps must not include duplicate keys");P.set(Z,q)}return P}static from(D,F,P){let B=kz.createPairs(D,F,P),Z=new this;return Z.items=B.items,Z}}i2.tag="tag:yaml.org,2002:omap";var px={collection:"seq",identify:(D)=>D instanceof Map,nodeClass:i2,default:!1,tag:"tag:yaml.org,2002:omap",resolve(D,F){let P=kz.resolvePairs(D,F),B=[];for(let{key:Z}of P.items)if(_z.isScalar(Z))if(B.includes(Z.value))F(`Ordered maps must not include duplicate keys: ${Z.value}`);else B.push(Z.value);return Object.assign(new i2,P)},createNode:(D,F,P)=>i2.from(D,F,P)};rx.YAMLOMap=i2;rx.omap=px});var gz=Q((nx)=>{var xz=ED();function fz({value:D,source:F},P){if(F&&(D?hz:vz).test.test(F))return F;return D?P.options.trueStr:P.options.falseStr}var hz={identify:(D)=>D===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new xz.Scalar(!0),stringify:fz},vz={identify:(D)=>D===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new xz.Scalar(!1),stringify:fz};nx.falseTag=vz;nx.trueTag=hz});var yz=Q((Pf)=>{var tx=ED(),iF=h8(),ex={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(D)=>D.slice(-3).toLowerCase()==="nan"?NaN:D[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:iF.stringifyNumber},Df={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(D)=>parseFloat(D.replace(/_/g,"")),stringify(D){let F=Number(D.value);return isFinite(F)?F.toExponential():iF.stringifyNumber(D)}},Ff={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(D){let F=new tx.Scalar(parseFloat(D.replace(/_/g,""))),P=D.indexOf(".");if(P!==-1){let B=D.substring(P+1).replace(/_/g,"");if(B[B.length-1]==="0")F.minFractionDigits=B.length}return F},stringify:iF.stringifyNumber};Pf.float=Ff;Pf.floatExp=Df;Pf.floatNaN=ex});var lz=Q((Uf)=>{var mz=h8(),X6=(D)=>typeof D==="bigint"||Number.isInteger(D);function u5(D,F,P,{intAsBigInt:B}){let Z=D[0];if(Z==="-"||Z==="+")F+=1;if(D=D.substring(F).replace(/_/g,""),B){switch(P){case 2:D=`0b${D}`;break;case 8:D=`0o${D}`;break;case 16:D=`0x${D}`;break}let X=BigInt(D);return Z==="-"?BigInt(-1)*X:X}let q=parseInt(D,P);return Z==="-"?-1*q:q}function oF(D,F,P){let{value:B}=D;if(X6(B)){let Z=B.toString(F);return B<0?"-"+P+Z.substr(1):P+Z}return mz.stringifyNumber(D)}var Xf={identify:X6,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(D,F,P)=>u5(D,2,2,P),stringify:(D)=>oF(D,2,"0b")},Jf={identify:X6,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(D,F,P)=>u5(D,1,8,P),stringify:(D)=>oF(D,8,"0")},Yf={identify:X6,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(D,F,P)=>u5(D,0,10,P),stringify:mz.stringifyNumber},Hf={identify:X6,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(D,F,P)=>u5(D,2,16,P),stringify:(D)=>oF(D,16,"0x")};Uf.int=Yf;Uf.intBin=Xf;Uf.intHex=Hf;Uf.intOct=Jf});var tF=Q((Rf)=>{var x5=i(),_5=R2(),k5=$2();class o2 extends k5.YAMLMap{constructor(D){super(D);this.tag=o2.tag}add(D){let F;if(x5.isPair(D))F=D;else if(D&&typeof D==="object"&&"key"in D&&"value"in D&&D.value===null)F=new _5.Pair(D.key,null);else F=new _5.Pair(D,null);if(!k5.findPair(this.items,F.key))this.items.push(F)}get(D,F){let P=k5.findPair(this.items,D);return!F&&x5.isPair(P)?x5.isScalar(P.key)?P.key.value:P.key:P}set(D,F){if(typeof F!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof F}`);let P=k5.findPair(this.items,D);if(P&&!F)this.items.splice(this.items.indexOf(P),1);else if(!P&&F)this.items.push(new _5.Pair(D))}toJSON(D,F){return super.toJSON(D,F,Set)}toString(D,F,P){if(!D)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},D,{allNullValues:!0}),F,P);else throw new Error("Set items must all have null values")}static from(D,F,P){let{replacer:B}=P,Z=new this(D);if(F&&Symbol.iterator in Object(F))for(let q of F){if(typeof B==="function")q=B.call(F,q,q);Z.items.push(_5.createPair(q,null,P))}return Z}}o2.tag="tag:yaml.org,2002:set";var Gf={collection:"map",identify:(D)=>D instanceof Set,nodeClass:o2,default:!1,tag:"tag:yaml.org,2002:set",createNode:(D,F,P)=>o2.from(D,F,P),resolve(D,F){if(x5.isMap(D))if(D.hasAllNullValues(!0))return Object.assign(new o2,D);else F("Set items must all have null values");else F("Expected a mapping for this tag");return D}};Rf.YAMLSet=o2;Rf.set=Gf});var DP=Q((Af)=>{var Mf=h8();function eF(D,F){let P=D[0],B=P==="-"||P==="+"?D.substring(1):D,Z=(X)=>F?BigInt(X):Number(X),q=B.replace(/_/g,"").split(":").reduce((X,J)=>X*Z(60)+Z(J),Z(0));return P==="-"?Z(-1)*q:q}function cz(D){let{value:F}=D,P=(X)=>X;if(typeof F==="bigint")P=(X)=>BigInt(X);else if(isNaN(F)||!isFinite(F))return Mf.stringifyNumber(D);let B="";if(F<0)B="-",F*=P(-1);let Z=P(60),q=[F%Z];if(F<60)q.unshift(0);else if(F=(F-q[0])/Z,q.unshift(F%Z),F>=60)F=(F-q[0])/Z,q.unshift(F);return B+q.map((X)=>String(X).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Kf={identify:(D)=>typeof D==="bigint"||Number.isInteger(D),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(D,F,{intAsBigInt:P})=>eF(D,P),stringify:cz},Ef={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(D)=>eF(D,!1),stringify:cz},dz={identify:(D)=>D instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(D){let F=D.match(dz.test);if(!F)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,P,B,Z,q,X,J]=F.map(Number),Y=F[7]?Number((F[7]+"00").substr(1,3)):0,H=Date.UTC(P,B-1,Z,q||0,X||0,J||0,Y),W=F[8];if(W&&W!=="Z"){let U=eF(W,!1);if(Math.abs(U)<30)U*=60;H-=60000*U}return new Date(H)},stringify:({value:D})=>D.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};Af.floatTime=Ef;Af.intTime=Kf;Af.timestamp=dz});var rz=Q((ff)=>{var Vf=x8(),jf=j5(),bf=f8(),Sf=Z6(),Tf=rF(),pz=gz(),FP=yz(),f5=lz(),Nf=M5(),uf=nF(),_f=N5(),kf=tF(),PP=DP(),xf=[Vf.map,bf.seq,Sf.string,jf.nullTag,pz.trueTag,pz.falseTag,f5.intBin,f5.intOct,f5.int,f5.intHex,FP.floatNaN,FP.floatExp,FP.float,Tf.binary,Nf.merge,uf.omap,_f.pairs,kf.set,PP.intTime,PP.floatTime,PP.timestamp];ff.schema=xf});var PQ=Q((pf)=>{var iz=x8(),vf=j5(),oz=f8(),gf=Z6(),yf=vF(),BP=yF(),ZP=lF(),mf=bz(),lf=Tz(),tz=rF(),J6=M5(),ez=nF(),DQ=N5(),az=rz(),FQ=tF(),h5=DP(),sz=new Map([["core",mf.schema],["failsafe",[iz.map,oz.seq,gf.string]],["json",lf.schema],["yaml11",az.schema],["yaml-1.1",az.schema]]),nz={binary:tz.binary,bool:yf.boolTag,float:BP.float,floatExp:BP.floatExp,floatNaN:BP.floatNaN,floatTime:h5.floatTime,int:ZP.int,intHex:ZP.intHex,intOct:ZP.intOct,intTime:h5.intTime,map:iz.map,merge:J6.merge,null:vf.nullTag,omap:ez.omap,pairs:DQ.pairs,seq:oz.seq,set:FQ.set,timestamp:h5.timestamp},cf={"tag:yaml.org,2002:binary":tz.binary,"tag:yaml.org,2002:merge":J6.merge,"tag:yaml.org,2002:omap":ez.omap,"tag:yaml.org,2002:pairs":DQ.pairs,"tag:yaml.org,2002:set":FQ.set,"tag:yaml.org,2002:timestamp":h5.timestamp};function df(D,F,P){let B=sz.get(F);if(B&&!D)return P&&!B.includes(J6.merge)?B.concat(J6.merge):B.slice();let Z=B;if(!Z)if(Array.isArray(D))Z=[];else{let q=Array.from(sz.keys()).filter((X)=>X!=="yaml11").map((X)=>JSON.stringify(X)).join(", ");throw new Error(`Unknown schema "${F}"; use one of ${q} or define customTags array`)}if(Array.isArray(D))for(let q of D)Z=Z.concat(q);else if(typeof D==="function")Z=D(Z.slice());if(P)Z=Z.concat(J6.merge);return Z.reduce((q,X)=>{let J=typeof X==="string"?nz[X]:X;if(!J){let Y=JSON.stringify(X),H=Object.keys(nz).map((W)=>JSON.stringify(W)).join(", ");throw new Error(`Unknown custom tag ${Y}; use one of ${H}`)}if(!q.includes(J))q.push(J);return q},[])}pf.coreKnownTags=cf;pf.getTags=df});var JP=Q((ef)=>{var qP=i(),sf=x8(),nf=f8(),of=Z6(),v5=PQ(),tf=(D,F)=>D.key<F.key?-1:D.key>F.key?1:0;class XP{constructor({compat:D,customTags:F,merge:P,resolveKnownTags:B,schema:Z,sortMapEntries:q,toStringDefaults:X}){this.compat=Array.isArray(D)?v5.getTags(D,"compat"):D?v5.getTags(null,D):null,this.name=typeof Z==="string"&&Z||"core",this.knownTags=B?v5.coreKnownTags:{},this.tags=v5.getTags(F,this.name,P),this.toStringOptions=X??null,Object.defineProperty(this,qP.MAP,{value:sf.map}),Object.defineProperty(this,qP.SCALAR,{value:of.string}),Object.defineProperty(this,qP.SEQ,{value:nf.seq}),this.sortMapEntries=typeof q==="function"?q:q===!0?tf:null}clone(){let D=Object.create(XP.prototype,Object.getOwnPropertyDescriptors(this));return D.tags=this.tags.slice(),D}}ef.Schema=XP});var BQ=Q((Bh)=>{var Fh=i(),YP=D6(),Y6=o1();function Ph(D,F){let P=[],B=F.directives===!0;if(F.directives!==!1&&D.directives){let Y=D.directives.toString(D);if(Y)P.push(Y),B=!0;else if(D.directives.docStart)B=!0}if(B)P.push("---");let Z=YP.createStringifyContext(D,F),{commentString:q}=Z.options;if(D.commentBefore){if(P.length!==1)P.unshift("");let Y=q(D.commentBefore);P.unshift(Y6.indentComment(Y,""))}let X=!1,J=null;if(D.contents){if(Fh.isNode(D.contents)){if(D.contents.spaceBefore&&B)P.push("");if(D.contents.commentBefore){let W=q(D.contents.commentBefore);P.push(Y6.indentComment(W,""))}Z.forceBlockIndent=!!D.comment,J=D.contents.comment}let Y=J?void 0:()=>X=!0,H=YP.stringify(D.contents,Z,()=>J=null,Y);if(J)H+=Y6.lineComment(H,"",q(J));if((H[0]==="|"||H[0]===">")&&P[P.length-1]==="---")P[P.length-1]=`--- ${H}`;else P.push(H)}else P.push(YP.stringify(D.contents,Z));if(D.directives?.docEnd)if(D.comment){let Y=q(D.comment);if(Y.includes(`
272
+ ${q.comment}`:B.comment}B=Z}D.items[P]=T5.isPair(B)?B:new aF.Pair(B)}else F("Expected a sequence for this tag");return D}function uz(D,F,P){let{replacer:B}=P,Z=new vx.YAMLSeq(D);Z.tag="tag:yaml.org,2002:pairs";let q=0;if(F&&Symbol.iterator in Object(F))for(let X of F){if(typeof B==="function")X=B.call(F,String(q++),X);let J,Y;if(Array.isArray(X))if(X.length===2)J=X[0],Y=X[1];else throw new TypeError(`Expected [key, value] tuple: ${X}`);else if(X&&X instanceof Object){let H=Object.keys(X);if(H.length===1)J=H[0],Y=X[J];else throw new TypeError(`Expected tuple with one key, not ${H.length} keys`)}else J=X;Z.items.push(aF.createPair(J,Y,P))}return Z}var gx={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Nz,createNode:uz};yx.createPairs=uz;yx.pairs=gx;yx.resolvePairs=Nz});var nF=Q((rx)=>{var _z=i(),sF=z2(),q6=$2(),dx=M2(),kz=N5();class i2 extends dx.YAMLSeq{constructor(){super();this.add=q6.YAMLMap.prototype.add.bind(this),this.delete=q6.YAMLMap.prototype.delete.bind(this),this.get=q6.YAMLMap.prototype.get.bind(this),this.has=q6.YAMLMap.prototype.has.bind(this),this.set=q6.YAMLMap.prototype.set.bind(this),this.tag=i2.tag}toJSON(D,F){if(!F)return super.toJSON(D);let P=new Map;if(F?.onCreate)F.onCreate(P);for(let B of this.items){let Z,q;if(_z.isPair(B))Z=sF.toJS(B.key,"",F),q=sF.toJS(B.value,Z,F);else Z=sF.toJS(B,"",F);if(P.has(Z))throw new Error("Ordered maps must not include duplicate keys");P.set(Z,q)}return P}static from(D,F,P){let B=kz.createPairs(D,F,P),Z=new this;return Z.items=B.items,Z}}i2.tag="tag:yaml.org,2002:omap";var px={collection:"seq",identify:(D)=>D instanceof Map,nodeClass:i2,default:!1,tag:"tag:yaml.org,2002:omap",resolve(D,F){let P=kz.resolvePairs(D,F),B=[];for(let{key:Z}of P.items)if(_z.isScalar(Z))if(B.includes(Z.value))F(`Ordered maps must not include duplicate keys: ${Z.value}`);else B.push(Z.value);return Object.assign(new i2,P)},createNode:(D,F,P)=>i2.from(D,F,P)};rx.YAMLOMap=i2;rx.omap=px});var gz=Q((nx)=>{var xz=ED();function fz({value:D,source:F},P){if(F&&(D?hz:vz).test.test(F))return F;return D?P.options.trueStr:P.options.falseStr}var hz={identify:(D)=>D===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new xz.Scalar(!0),stringify:fz},vz={identify:(D)=>D===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new xz.Scalar(!1),stringify:fz};nx.falseTag=vz;nx.trueTag=hz});var yz=Q((Pf)=>{var tx=ED(),iF=v8(),ex={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(D)=>D.slice(-3).toLowerCase()==="nan"?NaN:D[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:iF.stringifyNumber},Df={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(D)=>parseFloat(D.replace(/_/g,"")),stringify(D){let F=Number(D.value);return isFinite(F)?F.toExponential():iF.stringifyNumber(D)}},Ff={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(D){let F=new tx.Scalar(parseFloat(D.replace(/_/g,""))),P=D.indexOf(".");if(P!==-1){let B=D.substring(P+1).replace(/_/g,"");if(B[B.length-1]==="0")F.minFractionDigits=B.length}return F},stringify:iF.stringifyNumber};Pf.float=Ff;Pf.floatExp=Df;Pf.floatNaN=ex});var lz=Q((Uf)=>{var mz=v8(),X6=(D)=>typeof D==="bigint"||Number.isInteger(D);function u5(D,F,P,{intAsBigInt:B}){let Z=D[0];if(Z==="-"||Z==="+")F+=1;if(D=D.substring(F).replace(/_/g,""),B){switch(P){case 2:D=`0b${D}`;break;case 8:D=`0o${D}`;break;case 16:D=`0x${D}`;break}let X=BigInt(D);return Z==="-"?BigInt(-1)*X:X}let q=parseInt(D,P);return Z==="-"?-1*q:q}function oF(D,F,P){let{value:B}=D;if(X6(B)){let Z=B.toString(F);return B<0?"-"+P+Z.substr(1):P+Z}return mz.stringifyNumber(D)}var Xf={identify:X6,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(D,F,P)=>u5(D,2,2,P),stringify:(D)=>oF(D,2,"0b")},Jf={identify:X6,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(D,F,P)=>u5(D,1,8,P),stringify:(D)=>oF(D,8,"0")},Yf={identify:X6,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(D,F,P)=>u5(D,0,10,P),stringify:mz.stringifyNumber},Hf={identify:X6,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(D,F,P)=>u5(D,2,16,P),stringify:(D)=>oF(D,16,"0x")};Uf.int=Yf;Uf.intBin=Xf;Uf.intHex=Hf;Uf.intOct=Jf});var tF=Q((Rf)=>{var x5=i(),_5=R2(),k5=$2();class o2 extends k5.YAMLMap{constructor(D){super(D);this.tag=o2.tag}add(D){let F;if(x5.isPair(D))F=D;else if(D&&typeof D==="object"&&"key"in D&&"value"in D&&D.value===null)F=new _5.Pair(D.key,null);else F=new _5.Pair(D,null);if(!k5.findPair(this.items,F.key))this.items.push(F)}get(D,F){let P=k5.findPair(this.items,D);return!F&&x5.isPair(P)?x5.isScalar(P.key)?P.key.value:P.key:P}set(D,F){if(typeof F!=="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof F}`);let P=k5.findPair(this.items,D);if(P&&!F)this.items.splice(this.items.indexOf(P),1);else if(!P&&F)this.items.push(new _5.Pair(D))}toJSON(D,F){return super.toJSON(D,F,Set)}toString(D,F,P){if(!D)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},D,{allNullValues:!0}),F,P);else throw new Error("Set items must all have null values")}static from(D,F,P){let{replacer:B}=P,Z=new this(D);if(F&&Symbol.iterator in Object(F))for(let q of F){if(typeof B==="function")q=B.call(F,q,q);Z.items.push(_5.createPair(q,null,P))}return Z}}o2.tag="tag:yaml.org,2002:set";var Gf={collection:"map",identify:(D)=>D instanceof Set,nodeClass:o2,default:!1,tag:"tag:yaml.org,2002:set",createNode:(D,F,P)=>o2.from(D,F,P),resolve(D,F){if(x5.isMap(D))if(D.hasAllNullValues(!0))return Object.assign(new o2,D);else F("Set items must all have null values");else F("Expected a mapping for this tag");return D}};Rf.YAMLSet=o2;Rf.set=Gf});var DP=Q((Af)=>{var Mf=v8();function eF(D,F){let P=D[0],B=P==="-"||P==="+"?D.substring(1):D,Z=(X)=>F?BigInt(X):Number(X),q=B.replace(/_/g,"").split(":").reduce((X,J)=>X*Z(60)+Z(J),Z(0));return P==="-"?Z(-1)*q:q}function cz(D){let{value:F}=D,P=(X)=>X;if(typeof F==="bigint")P=(X)=>BigInt(X);else if(isNaN(F)||!isFinite(F))return Mf.stringifyNumber(D);let B="";if(F<0)B="-",F*=P(-1);let Z=P(60),q=[F%Z];if(F<60)q.unshift(0);else if(F=(F-q[0])/Z,q.unshift(F%Z),F>=60)F=(F-q[0])/Z,q.unshift(F);return B+q.map((X)=>String(X).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Kf={identify:(D)=>typeof D==="bigint"||Number.isInteger(D),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(D,F,{intAsBigInt:P})=>eF(D,P),stringify:cz},Ef={identify:(D)=>typeof D==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(D)=>eF(D,!1),stringify:cz},dz={identify:(D)=>D instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(D){let F=D.match(dz.test);if(!F)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,P,B,Z,q,X,J]=F.map(Number),Y=F[7]?Number((F[7]+"00").substr(1,3)):0,H=Date.UTC(P,B-1,Z,q||0,X||0,J||0,Y),W=F[8];if(W&&W!=="Z"){let U=eF(W,!1);if(Math.abs(U)<30)U*=60;H-=60000*U}return new Date(H)},stringify:({value:D})=>D.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};Af.floatTime=Ef;Af.intTime=Kf;Af.timestamp=dz});var rz=Q((ff)=>{var Vf=f8(),jf=j5(),bf=h8(),Sf=Z6(),Tf=rF(),pz=gz(),FP=yz(),f5=lz(),Nf=M5(),uf=nF(),_f=N5(),kf=tF(),PP=DP(),xf=[Vf.map,bf.seq,Sf.string,jf.nullTag,pz.trueTag,pz.falseTag,f5.intBin,f5.intOct,f5.int,f5.intHex,FP.floatNaN,FP.floatExp,FP.float,Tf.binary,Nf.merge,uf.omap,_f.pairs,kf.set,PP.intTime,PP.floatTime,PP.timestamp];ff.schema=xf});var PQ=Q((pf)=>{var iz=f8(),vf=j5(),oz=h8(),gf=Z6(),yf=vF(),BP=yF(),ZP=lF(),mf=bz(),lf=Tz(),tz=rF(),J6=M5(),ez=nF(),DQ=N5(),az=rz(),FQ=tF(),h5=DP(),sz=new Map([["core",mf.schema],["failsafe",[iz.map,oz.seq,gf.string]],["json",lf.schema],["yaml11",az.schema],["yaml-1.1",az.schema]]),nz={binary:tz.binary,bool:yf.boolTag,float:BP.float,floatExp:BP.floatExp,floatNaN:BP.floatNaN,floatTime:h5.floatTime,int:ZP.int,intHex:ZP.intHex,intOct:ZP.intOct,intTime:h5.intTime,map:iz.map,merge:J6.merge,null:vf.nullTag,omap:ez.omap,pairs:DQ.pairs,seq:oz.seq,set:FQ.set,timestamp:h5.timestamp},cf={"tag:yaml.org,2002:binary":tz.binary,"tag:yaml.org,2002:merge":J6.merge,"tag:yaml.org,2002:omap":ez.omap,"tag:yaml.org,2002:pairs":DQ.pairs,"tag:yaml.org,2002:set":FQ.set,"tag:yaml.org,2002:timestamp":h5.timestamp};function df(D,F,P){let B=sz.get(F);if(B&&!D)return P&&!B.includes(J6.merge)?B.concat(J6.merge):B.slice();let Z=B;if(!Z)if(Array.isArray(D))Z=[];else{let q=Array.from(sz.keys()).filter((X)=>X!=="yaml11").map((X)=>JSON.stringify(X)).join(", ");throw new Error(`Unknown schema "${F}"; use one of ${q} or define customTags array`)}if(Array.isArray(D))for(let q of D)Z=Z.concat(q);else if(typeof D==="function")Z=D(Z.slice());if(P)Z=Z.concat(J6.merge);return Z.reduce((q,X)=>{let J=typeof X==="string"?nz[X]:X;if(!J){let Y=JSON.stringify(X),H=Object.keys(nz).map((W)=>JSON.stringify(W)).join(", ");throw new Error(`Unknown custom tag ${Y}; use one of ${H}`)}if(!q.includes(J))q.push(J);return q},[])}pf.coreKnownTags=cf;pf.getTags=df});var JP=Q((ef)=>{var qP=i(),sf=f8(),nf=h8(),of=Z6(),v5=PQ(),tf=(D,F)=>D.key<F.key?-1:D.key>F.key?1:0;class XP{constructor({compat:D,customTags:F,merge:P,resolveKnownTags:B,schema:Z,sortMapEntries:q,toStringDefaults:X}){this.compat=Array.isArray(D)?v5.getTags(D,"compat"):D?v5.getTags(null,D):null,this.name=typeof Z==="string"&&Z||"core",this.knownTags=B?v5.coreKnownTags:{},this.tags=v5.getTags(F,this.name,P),this.toStringOptions=X??null,Object.defineProperty(this,qP.MAP,{value:sf.map}),Object.defineProperty(this,qP.SCALAR,{value:of.string}),Object.defineProperty(this,qP.SEQ,{value:nf.seq}),this.sortMapEntries=typeof q==="function"?q:q===!0?tf:null}clone(){let D=Object.create(XP.prototype,Object.getOwnPropertyDescriptors(this));return D.tags=this.tags.slice(),D}}ef.Schema=XP});var BQ=Q((Bh)=>{var Fh=i(),YP=D6(),Y6=o1();function Ph(D,F){let P=[],B=F.directives===!0;if(F.directives!==!1&&D.directives){let Y=D.directives.toString(D);if(Y)P.push(Y),B=!0;else if(D.directives.docStart)B=!0}if(B)P.push("---");let Z=YP.createStringifyContext(D,F),{commentString:q}=Z.options;if(D.commentBefore){if(P.length!==1)P.unshift("");let Y=q(D.commentBefore);P.unshift(Y6.indentComment(Y,""))}let X=!1,J=null;if(D.contents){if(Fh.isNode(D.contents)){if(D.contents.spaceBefore&&B)P.push("");if(D.contents.commentBefore){let W=q(D.contents.commentBefore);P.push(Y6.indentComment(W,""))}Z.forceBlockIndent=!!D.comment,J=D.contents.comment}let Y=J?void 0:()=>X=!0,H=YP.stringify(D.contents,Z,()=>J=null,Y);if(J)H+=Y6.lineComment(H,"",q(J));if((H[0]==="|"||H[0]===">")&&P[P.length-1]==="---")P[P.length-1]=`--- ${H}`;else P.push(H)}else P.push(YP.stringify(D.contents,Z));if(D.directives?.docEnd)if(D.comment){let Y=q(D.comment);if(Y.includes(`
273
273
  `))P.push("..."),P.push(Y6.indentComment(Y,""));else P.push(`... ${Y}`)}else P.push("...");else{let Y=D.comment;if(Y&&X)Y=Y.replace(/^\n+/,"");if(Y){if((!X||J)&&P[P.length-1]!=="")P.push("");P.push(Y6.indentComment(q(Y),""))}}return P.join(`
274
274
  `)+`
275
- `}Bh.stringifyDocument=Ph});var H6=Q((Oh)=>{var qh=n1(),v8=z5(),Y0=i(),Xh=R2(),Jh=z2(),Yh=JP(),Hh=BQ(),HP=H5(),Uh=bF(),Wh=i1(),UP=jF();class WP{constructor(D,F,P){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Y0.NODE_TYPE,{value:Y0.DOC});let B=null;if(typeof F==="function"||Array.isArray(F))B=F;else if(P===void 0&&F)P=F,F=void 0;let Z=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},P);this.options=Z;let{version:q}=Z;if(P?._directives){if(this.directives=P._directives.atDocument(),this.directives.yaml.explicit)q=this.directives.yaml.version}else this.directives=new UP.Directives({version:q});this.setSchema(q,P),this.contents=D===void 0?null:this.createNode(D,B,P)}clone(){let D=Object.create(WP.prototype,{[Y0.NODE_TYPE]:{value:Y0.DOC}});if(D.commentBefore=this.commentBefore,D.comment=this.comment,D.errors=this.errors.slice(),D.warnings=this.warnings.slice(),D.options=Object.assign({},this.options),this.directives)D.directives=this.directives.clone();if(D.schema=this.schema.clone(),D.contents=Y0.isNode(this.contents)?this.contents.clone(D.schema):this.contents,this.range)D.range=this.range.slice();return D}add(D){if(g8(this.contents))this.contents.add(D)}addIn(D,F){if(g8(this.contents))this.contents.addIn(D,F)}createAlias(D,F){if(!D.anchor){let P=HP.anchorNames(this);D.anchor=!F||P.has(F)?HP.findNewAnchor(F||"a",P):F}return new qh.Alias(D.anchor)}createNode(D,F,P){let B=void 0;if(typeof F==="function")D=F.call({"":D},"",D),B=F;else if(Array.isArray(F)){let R=(E)=>typeof E==="number"||E instanceof String||E instanceof Number,$=F.filter(R).map(String);if($.length>0)F=F.concat($);B=F}else if(P===void 0&&F)P=F,F=void 0;let{aliasDuplicateObjects:Z,anchorPrefix:q,flow:X,keepUndefined:J,onTagObj:Y,tag:H}=P??{},{onAnchor:W,setAnchors:U,sourceObjects:O}=HP.createNodeAnchors(this,q||"a"),z={aliasDuplicateObjects:Z??!0,keepUndefined:J??!1,onAnchor:W,onTagObj:Y,replacer:B,schema:this.schema,sourceObjects:O},I=Wh.createNode(D,H,z);if(X&&Y0.isCollection(I))I.flow=!0;return U(),I}createPair(D,F,P={}){let B=this.createNode(D,null,P),Z=this.createNode(F,null,P);return new Xh.Pair(B,Z)}delete(D){return g8(this.contents)?this.contents.delete(D):!1}deleteIn(D){if(v8.isEmptyPath(D)){if(this.contents==null)return!1;return this.contents=null,!0}return g8(this.contents)?this.contents.deleteIn(D):!1}get(D,F){return Y0.isCollection(this.contents)?this.contents.get(D,F):void 0}getIn(D,F){if(v8.isEmptyPath(D))return!F&&Y0.isScalar(this.contents)?this.contents.value:this.contents;return Y0.isCollection(this.contents)?this.contents.getIn(D,F):void 0}has(D){return Y0.isCollection(this.contents)?this.contents.has(D):!1}hasIn(D){if(v8.isEmptyPath(D))return this.contents!==void 0;return Y0.isCollection(this.contents)?this.contents.hasIn(D):!1}set(D,F){if(this.contents==null)this.contents=v8.collectionFromPath(this.schema,[D],F);else if(g8(this.contents))this.contents.set(D,F)}setIn(D,F){if(v8.isEmptyPath(D))this.contents=F;else if(this.contents==null)this.contents=v8.collectionFromPath(this.schema,Array.from(D),F);else if(g8(this.contents))this.contents.setIn(D,F)}setSchema(D,F={}){if(typeof D==="number")D=String(D);let P;switch(D){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new UP.Directives({version:"1.1"});P={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=D;else this.directives=new UP.Directives({version:D});P={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;P=null;break;default:{let B=JSON.stringify(D);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${B}`)}}if(F.schema instanceof Object)this.schema=F.schema;else if(P)this.schema=new Yh.Schema(Object.assign(P,F));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:D,jsonArg:F,mapAsMap:P,maxAliasCount:B,onAnchor:Z,reviver:q}={}){let X={anchors:new Map,doc:this,keep:!D,mapAsMap:P===!0,mapKeyWarned:!1,maxAliasCount:typeof B==="number"?B:100},J=Jh.toJS(this.contents,F??"",X);if(typeof Z==="function")for(let{count:Y,res:H}of X.anchors.values())Z(H,Y);return typeof q==="function"?Uh.applyReviver(q,{"":J},"",J):J}toJSON(D,F){return this.toJS({json:!0,jsonArg:D,mapAsMap:!1,onAnchor:F})}toString(D={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in D&&(!Number.isInteger(D.indent)||Number(D.indent)<=0)){let F=JSON.stringify(D.indent);throw new Error(`"indent" option must be a positive integer, not ${F}`)}return Hh.stringifyDocument(this,D)}}function g8(D){if(Y0.isCollection(D))return!0;throw new Error("Expected a YAML collection as document contents")}Oh.Document=WP});var U6=Q((Gh)=>{class g5 extends Error{constructor(D,F,P,B){super();this.name=D,this.code=P,this.message=B,this.pos=F}}class ZQ extends g5{constructor(D,F,P){super("YAMLParseError",D,F,P)}}class qQ extends g5{constructor(D,F,P){super("YAMLWarning",D,F,P)}}var Qh=(D,F)=>(P)=>{if(P.pos[0]===-1)return;P.linePos=P.pos.map((J)=>F.linePos(J));let{line:B,col:Z}=P.linePos[0];P.message+=` at line ${B}, column ${Z}`;let q=Z-1,X=D.substring(F.lineStarts[B-1],F.lineStarts[B]).replace(/[\n\r]+$/,"");if(q>=60&&X.length>80){let J=Math.min(q-39,X.length-79);X="…"+X.substring(J),q-=J-1}if(X.length>80)X=X.substring(0,79)+"…";if(B>1&&/^ *$/.test(X.substring(0,q))){let J=D.substring(F.lineStarts[B-2],F.lineStarts[B-1]);if(J.length>80)J=J.substring(0,79)+`…
275
+ `}Bh.stringifyDocument=Ph});var H6=Q((Oh)=>{var qh=n1(),g8=z5(),Y0=i(),Xh=R2(),Jh=z2(),Yh=JP(),Hh=BQ(),HP=H5(),Uh=bF(),Wh=i1(),UP=jF();class WP{constructor(D,F,P){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Y0.NODE_TYPE,{value:Y0.DOC});let B=null;if(typeof F==="function"||Array.isArray(F))B=F;else if(P===void 0&&F)P=F,F=void 0;let Z=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},P);this.options=Z;let{version:q}=Z;if(P?._directives){if(this.directives=P._directives.atDocument(),this.directives.yaml.explicit)q=this.directives.yaml.version}else this.directives=new UP.Directives({version:q});this.setSchema(q,P),this.contents=D===void 0?null:this.createNode(D,B,P)}clone(){let D=Object.create(WP.prototype,{[Y0.NODE_TYPE]:{value:Y0.DOC}});if(D.commentBefore=this.commentBefore,D.comment=this.comment,D.errors=this.errors.slice(),D.warnings=this.warnings.slice(),D.options=Object.assign({},this.options),this.directives)D.directives=this.directives.clone();if(D.schema=this.schema.clone(),D.contents=Y0.isNode(this.contents)?this.contents.clone(D.schema):this.contents,this.range)D.range=this.range.slice();return D}add(D){if(y8(this.contents))this.contents.add(D)}addIn(D,F){if(y8(this.contents))this.contents.addIn(D,F)}createAlias(D,F){if(!D.anchor){let P=HP.anchorNames(this);D.anchor=!F||P.has(F)?HP.findNewAnchor(F||"a",P):F}return new qh.Alias(D.anchor)}createNode(D,F,P){let B=void 0;if(typeof F==="function")D=F.call({"":D},"",D),B=F;else if(Array.isArray(F)){let R=(E)=>typeof E==="number"||E instanceof String||E instanceof Number,$=F.filter(R).map(String);if($.length>0)F=F.concat($);B=F}else if(P===void 0&&F)P=F,F=void 0;let{aliasDuplicateObjects:Z,anchorPrefix:q,flow:X,keepUndefined:J,onTagObj:Y,tag:H}=P??{},{onAnchor:W,setAnchors:U,sourceObjects:O}=HP.createNodeAnchors(this,q||"a"),z={aliasDuplicateObjects:Z??!0,keepUndefined:J??!1,onAnchor:W,onTagObj:Y,replacer:B,schema:this.schema,sourceObjects:O},I=Wh.createNode(D,H,z);if(X&&Y0.isCollection(I))I.flow=!0;return U(),I}createPair(D,F,P={}){let B=this.createNode(D,null,P),Z=this.createNode(F,null,P);return new Xh.Pair(B,Z)}delete(D){return y8(this.contents)?this.contents.delete(D):!1}deleteIn(D){if(g8.isEmptyPath(D)){if(this.contents==null)return!1;return this.contents=null,!0}return y8(this.contents)?this.contents.deleteIn(D):!1}get(D,F){return Y0.isCollection(this.contents)?this.contents.get(D,F):void 0}getIn(D,F){if(g8.isEmptyPath(D))return!F&&Y0.isScalar(this.contents)?this.contents.value:this.contents;return Y0.isCollection(this.contents)?this.contents.getIn(D,F):void 0}has(D){return Y0.isCollection(this.contents)?this.contents.has(D):!1}hasIn(D){if(g8.isEmptyPath(D))return this.contents!==void 0;return Y0.isCollection(this.contents)?this.contents.hasIn(D):!1}set(D,F){if(this.contents==null)this.contents=g8.collectionFromPath(this.schema,[D],F);else if(y8(this.contents))this.contents.set(D,F)}setIn(D,F){if(g8.isEmptyPath(D))this.contents=F;else if(this.contents==null)this.contents=g8.collectionFromPath(this.schema,Array.from(D),F);else if(y8(this.contents))this.contents.setIn(D,F)}setSchema(D,F={}){if(typeof D==="number")D=String(D);let P;switch(D){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new UP.Directives({version:"1.1"});P={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=D;else this.directives=new UP.Directives({version:D});P={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;P=null;break;default:{let B=JSON.stringify(D);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${B}`)}}if(F.schema instanceof Object)this.schema=F.schema;else if(P)this.schema=new Yh.Schema(Object.assign(P,F));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:D,jsonArg:F,mapAsMap:P,maxAliasCount:B,onAnchor:Z,reviver:q}={}){let X={anchors:new Map,doc:this,keep:!D,mapAsMap:P===!0,mapKeyWarned:!1,maxAliasCount:typeof B==="number"?B:100},J=Jh.toJS(this.contents,F??"",X);if(typeof Z==="function")for(let{count:Y,res:H}of X.anchors.values())Z(H,Y);return typeof q==="function"?Uh.applyReviver(q,{"":J},"",J):J}toJSON(D,F){return this.toJS({json:!0,jsonArg:D,mapAsMap:!1,onAnchor:F})}toString(D={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in D&&(!Number.isInteger(D.indent)||Number(D.indent)<=0)){let F=JSON.stringify(D.indent);throw new Error(`"indent" option must be a positive integer, not ${F}`)}return Hh.stringifyDocument(this,D)}}function y8(D){if(Y0.isCollection(D))return!0;throw new Error("Expected a YAML collection as document contents")}Oh.Document=WP});var U6=Q((Gh)=>{class g5 extends Error{constructor(D,F,P,B){super();this.name=D,this.code=P,this.message=B,this.pos=F}}class ZQ extends g5{constructor(D,F,P){super("YAMLParseError",D,F,P)}}class qQ extends g5{constructor(D,F,P){super("YAMLWarning",D,F,P)}}var Qh=(D,F)=>(P)=>{if(P.pos[0]===-1)return;P.linePos=P.pos.map((J)=>F.linePos(J));let{line:B,col:Z}=P.linePos[0];P.message+=` at line ${B}, column ${Z}`;let q=Z-1,X=D.substring(F.lineStarts[B-1],F.lineStarts[B]).replace(/[\n\r]+$/,"");if(q>=60&&X.length>80){let J=Math.min(q-39,X.length-79);X="…"+X.substring(J),q-=J-1}if(X.length>80)X=X.substring(0,79)+"…";if(B>1&&/^ *$/.test(X.substring(0,q))){let J=D.substring(F.lineStarts[B-2],F.lineStarts[B-1]);if(J.length>80)J=J.substring(0,79)+`…
276
276
  `;X=J+X}if(/[^ ]/.test(X)){let J=1,Y=P.linePos[1];if(Y&&Y.line===B&&Y.col>Z)J=Math.max(1,Math.min(Y.col-Z,80-q));let H=" ".repeat(q)+"^".repeat(J);P.message+=`:
277
277
 
278
278
  ${X}
@@ -280,7 +280,7 @@ ${H}
280
280
  `}};Gh.YAMLError=g5;Gh.YAMLParseError=ZQ;Gh.YAMLWarning=qQ;Gh.prettifyError=Qh});var W6=Q((Eh)=>{function Kh(D,{flow:F,indicator:P,next:B,offset:Z,onError:q,parentIndent:X,startOnNewline:J}){let Y=!1,H=J,W=J,U="",O="",z=!1,I=!1,R=null,$=null,E=null,w=null,A=null,S=null,V=null;for(let j of D){if(I){if(j.type!=="space"&&j.type!=="newline"&&j.type!=="comma")q(j.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");I=!1}if(R){if(H&&j.type!=="comment"&&j.type!=="newline")q(R,"TAB_AS_INDENT","Tabs are not allowed as indentation");R=null}switch(j.type){case"space":if(!F&&(P!=="doc-start"||B?.type!=="flow-collection")&&j.source.includes("\t"))R=j;W=!0;break;case"comment":{if(!W)q(j,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let M=j.source.substring(1)||" ";if(!U)U=M;else U+=O+M;O="",H=!1;break}case"newline":if(H)if(U)U+=j.source;else Y=!0;else O+=j.source;if(H=!0,z=!0,$||E)w=j;W=!0;break;case"anchor":if($)q(j,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(j.source.endsWith(":"))q(j.offset+j.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);if($=j,V===null)V=j.offset;H=!1,W=!1,I=!0;break;case"tag":{if(E)q(j,"MULTIPLE_TAGS","A node can have at most one tag");if(E=j,V===null)V=j.offset;H=!1,W=!1,I=!0;break}case P:if($||E)q(j,"BAD_PROP_ORDER",`Anchors and tags must be after the ${j.source} indicator`);if(S)q(j,"UNEXPECTED_TOKEN",`Unexpected ${j.source} in ${F??"collection"}`);S=j,H=P==="seq-item-ind"||P==="explicit-key-ind",W=!1;break;case"comma":if(F){if(A)q(j,"UNEXPECTED_TOKEN",`Unexpected , in ${F}`);A=j,H=!1,W=!1;break}default:q(j,"UNEXPECTED_TOKEN",`Unexpected ${j.type} token`),H=!1,W=!1}}let T=D[D.length-1],m=T?T.offset+T.source.length:Z;if(I&&B&&B.type!=="space"&&B.type!=="newline"&&B.type!=="comma"&&(B.type!=="scalar"||B.source!==""))q(B.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(R&&(H&&R.indent<=X||B?.type==="block-map"||B?.type==="block-seq"))q(R,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:A,found:S,spaceBefore:Y,comment:U,hasNewline:z,anchor:$,tag:E,newlineAfterProp:w,end:m,start:V??m}}Eh.resolveProps=Kh});var y5=Q((Ch)=>{function OP(D){if(!D)return null;switch(D.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(D.source.includes(`
281
281
  `))return!0;if(D.end){for(let F of D.end)if(F.type==="newline")return!0}return!1;case"flow-collection":for(let F of D.items){for(let P of F.start)if(P.type==="newline")return!0;if(F.sep){for(let P of F.sep)if(P.type==="newline")return!0}if(OP(F.key)||OP(F.value))return!0}return!1;default:return!0}}Ch.containsNewline=OP});var zP=Q((jh)=>{var wh=y5();function Vh(D,F,P){if(F?.type==="flow-collection"){let B=F.end[0];if(B.indent===D&&(B.source==="]"||B.source==="}")&&wh.containsNewline(F))P(B,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}jh.flowIndentCheck=Vh});var QP=Q((Th)=>{var XQ=i();function Sh(D,F,P){let{uniqueKeys:B}=D.options;if(B===!1)return!1;let Z=typeof B==="function"?B:(q,X)=>q===X||XQ.isScalar(q)&&XQ.isScalar(X)&&q.value===X.value;return F.some((q)=>Z(q.key,P))}Th.mapIncludes=Sh});var WQ=Q((fh)=>{var JQ=R2(),uh=$2(),YQ=W6(),_h=y5(),HQ=zP(),kh=QP(),UQ="All mapping items must start at the same column";function xh({composeNode:D,composeEmptyNode:F},P,B,Z,q){let J=new(q?.nodeClass??uh.YAMLMap)(P.schema);if(P.atRoot)P.atRoot=!1;let Y=B.offset,H=null;for(let W of B.items){let{start:U,key:O,sep:z,value:I}=W,R=YQ.resolveProps(U,{indicator:"explicit-key-ind",next:O??z?.[0],offset:Y,onError:Z,parentIndent:B.indent,startOnNewline:!0}),$=!R.found;if($){if(O){if(O.type==="block-seq")Z(Y,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in O&&O.indent!==B.indent)Z(Y,"BAD_INDENT",UQ)}if(!R.anchor&&!R.tag&&!z){if(H=R.end,R.comment)if(J.comment)J.comment+=`
282
282
  `+R.comment;else J.comment=R.comment;continue}if(R.newlineAfterProp||_h.containsNewline(O))Z(O??U[U.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(R.found?.indent!==B.indent)Z(Y,"BAD_INDENT",UQ);P.atKey=!0;let E=R.end,w=O?D(P,O,R,Z):F(P,E,U,null,R,Z);if(P.schema.compat)HQ.flowIndentCheck(B.indent,O,Z);if(P.atKey=!1,kh.mapIncludes(P,J.items,w))Z(E,"DUPLICATE_KEY","Map keys must be unique");let A=YQ.resolveProps(z??[],{indicator:"map-value-ind",next:I,offset:w.range[2],onError:Z,parentIndent:B.indent,startOnNewline:!O||O.type==="block-scalar"});if(Y=A.end,A.found){if($){if(I?.type==="block-map"&&!A.hasNewline)Z(Y,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if(P.options.strict&&R.start<A.found.offset-1024)Z(w.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let S=I?D(P,I,A,Z):F(P,Y,z,null,A,Z);if(P.schema.compat)HQ.flowIndentCheck(B.indent,I,Z);Y=S.range[2];let V=new JQ.Pair(w,S);if(P.options.keepSourceTokens)V.srcToken=W;J.items.push(V)}else{if($)Z(w.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(A.comment)if(w.comment)w.comment+=`
283
- `+A.comment;else w.comment=A.comment;let S=new JQ.Pair(w);if(P.options.keepSourceTokens)S.srcToken=W;J.items.push(S)}}if(H&&H<Y)Z(H,"IMPOSSIBLE","Map comment with trailing content");return J.range=[B.offset,Y,H??Y],J}fh.resolveBlockMap=xh});var OQ=Q((lh)=>{var vh=M2(),gh=W6(),yh=zP();function mh({composeNode:D,composeEmptyNode:F},P,B,Z,q){let J=new(q?.nodeClass??vh.YAMLSeq)(P.schema);if(P.atRoot)P.atRoot=!1;if(P.atKey)P.atKey=!1;let Y=B.offset,H=null;for(let{start:W,value:U}of B.items){let O=gh.resolveProps(W,{indicator:"seq-item-ind",next:U,offset:Y,onError:Z,parentIndent:B.indent,startOnNewline:!0});if(!O.found)if(O.anchor||O.tag||U)if(U&&U.type==="block-seq")Z(O.end,"BAD_INDENT","All sequence items must start at the same column");else Z(Y,"MISSING_CHAR","Sequence item without - indicator");else{if(H=O.end,O.comment)J.comment=O.comment;continue}let z=U?D(P,U,O,Z):F(P,O.end,W,null,O,Z);if(P.schema.compat)yh.flowIndentCheck(B.indent,U,Z);Y=z.range[2],J.items.push(z)}return J.range=[B.offset,Y,H??Y],J}lh.resolveBlockSeq=mh});var y8=Q((ph)=>{function dh(D,F,P,B){let Z="";if(D){let q=!1,X="";for(let J of D){let{source:Y,type:H}=J;switch(H){case"space":q=!0;break;case"comment":{if(P&&!q)B(J,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let W=Y.substring(1)||" ";if(!Z)Z=W;else Z+=X+W;X="";break}case"newline":if(Z)X+=Y;q=!0;break;default:B(J,"UNEXPECTED_TOKEN",`Unexpected ${H} at node end`)}F+=Y.length}}return{comment:Z,offset:F}}ph.resolveEnd=dh});var GQ=Q((Dv)=>{var ah=i(),sh=R2(),zQ=$2(),nh=M2(),ih=y8(),QQ=W6(),oh=y5(),th=QP(),GP="Block collections are not allowed within flow collections",RP=(D)=>D&&(D.type==="block-map"||D.type==="block-seq");function eh({composeNode:D,composeEmptyNode:F},P,B,Z,q){let X=B.start.source==="{",J=X?"flow map":"flow sequence",H=new(q?.nodeClass??(X?zQ.YAMLMap:nh.YAMLSeq))(P.schema);H.flow=!0;let W=P.atRoot;if(W)P.atRoot=!1;if(P.atKey)P.atKey=!1;let U=B.offset+B.start.source.length;for(let $=0;$<B.items.length;++$){let E=B.items[$],{start:w,key:A,sep:S,value:V}=E,T=QQ.resolveProps(w,{flow:J,indicator:"explicit-key-ind",next:A??S?.[0],offset:U,onError:Z,parentIndent:B.indent,startOnNewline:!1});if(!T.found){if(!T.anchor&&!T.tag&&!S&&!V){if($===0&&T.comma)Z(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${J}`);else if($<B.items.length-1)Z(T.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${J}`);if(T.comment)if(H.comment)H.comment+=`
283
+ `+A.comment;else w.comment=A.comment;let S=new JQ.Pair(w);if(P.options.keepSourceTokens)S.srcToken=W;J.items.push(S)}}if(H&&H<Y)Z(H,"IMPOSSIBLE","Map comment with trailing content");return J.range=[B.offset,Y,H??Y],J}fh.resolveBlockMap=xh});var OQ=Q((lh)=>{var vh=M2(),gh=W6(),yh=zP();function mh({composeNode:D,composeEmptyNode:F},P,B,Z,q){let J=new(q?.nodeClass??vh.YAMLSeq)(P.schema);if(P.atRoot)P.atRoot=!1;if(P.atKey)P.atKey=!1;let Y=B.offset,H=null;for(let{start:W,value:U}of B.items){let O=gh.resolveProps(W,{indicator:"seq-item-ind",next:U,offset:Y,onError:Z,parentIndent:B.indent,startOnNewline:!0});if(!O.found)if(O.anchor||O.tag||U)if(U&&U.type==="block-seq")Z(O.end,"BAD_INDENT","All sequence items must start at the same column");else Z(Y,"MISSING_CHAR","Sequence item without - indicator");else{if(H=O.end,O.comment)J.comment=O.comment;continue}let z=U?D(P,U,O,Z):F(P,O.end,W,null,O,Z);if(P.schema.compat)yh.flowIndentCheck(B.indent,U,Z);Y=z.range[2],J.items.push(z)}return J.range=[B.offset,Y,H??Y],J}lh.resolveBlockSeq=mh});var m8=Q((ph)=>{function dh(D,F,P,B){let Z="";if(D){let q=!1,X="";for(let J of D){let{source:Y,type:H}=J;switch(H){case"space":q=!0;break;case"comment":{if(P&&!q)B(J,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let W=Y.substring(1)||" ";if(!Z)Z=W;else Z+=X+W;X="";break}case"newline":if(Z)X+=Y;q=!0;break;default:B(J,"UNEXPECTED_TOKEN",`Unexpected ${H} at node end`)}F+=Y.length}}return{comment:Z,offset:F}}ph.resolveEnd=dh});var GQ=Q((Dv)=>{var ah=i(),sh=R2(),zQ=$2(),nh=M2(),ih=m8(),QQ=W6(),oh=y5(),th=QP(),GP="Block collections are not allowed within flow collections",RP=(D)=>D&&(D.type==="block-map"||D.type==="block-seq");function eh({composeNode:D,composeEmptyNode:F},P,B,Z,q){let X=B.start.source==="{",J=X?"flow map":"flow sequence",H=new(q?.nodeClass??(X?zQ.YAMLMap:nh.YAMLSeq))(P.schema);H.flow=!0;let W=P.atRoot;if(W)P.atRoot=!1;if(P.atKey)P.atKey=!1;let U=B.offset+B.start.source.length;for(let $=0;$<B.items.length;++$){let E=B.items[$],{start:w,key:A,sep:S,value:V}=E,T=QQ.resolveProps(w,{flow:J,indicator:"explicit-key-ind",next:A??S?.[0],offset:U,onError:Z,parentIndent:B.indent,startOnNewline:!1});if(!T.found){if(!T.anchor&&!T.tag&&!S&&!V){if($===0&&T.comma)Z(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${J}`);else if($<B.items.length-1)Z(T.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${J}`);if(T.comment)if(H.comment)H.comment+=`
284
284
  `+T.comment;else H.comment=T.comment;U=T.end;continue}if(!X&&P.options.strict&&oh.containsNewline(A))Z(A,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if($===0){if(T.comma)Z(T.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${J}`)}else{if(!T.comma)Z(T.start,"MISSING_CHAR",`Missing , between ${J} items`);if(T.comment){let m="";D:for(let j of w)switch(j.type){case"comma":case"space":break;case"comment":m=j.source.substring(1);break D;default:break D}if(m){let j=H.items[H.items.length-1];if(ah.isPair(j))j=j.value??j.key;if(j.comment)j.comment+=`
285
285
  `+m;else j.comment=m;T.comment=T.comment.substring(m.length+1)}}}if(!X&&!S&&!T.found){let m=V?D(P,V,T,Z):F(P,T.end,S,null,T,Z);if(H.items.push(m),U=m.range[2],RP(V))Z(m.range,"BLOCK_IN_FLOW",GP)}else{P.atKey=!0;let m=T.end,j=A?D(P,A,T,Z):F(P,m,w,null,T,Z);if(RP(A))Z(j.range,"BLOCK_IN_FLOW",GP);P.atKey=!1;let M=QQ.resolveProps(S??[],{flow:J,indicator:"map-value-ind",next:V,offset:j.range[2],onError:Z,parentIndent:B.indent,startOnNewline:!1});if(M.found){if(!X&&!T.found&&P.options.strict){if(S)for(let BD of S){if(BD===M.found)break;if(BD.type==="newline"){Z(BD,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(T.start<M.found.offset-1024)Z(M.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(V)if("source"in V&&V.source&&V.source[0]===":")Z(V,"MISSING_CHAR",`Missing space after : in ${J}`);else Z(M.start,"MISSING_CHAR",`Missing , or : between ${J} items`);let k=V?D(P,V,M,Z):M.found?F(P,M.end,S,null,M,Z):null;if(k){if(RP(V))Z(k.range,"BLOCK_IN_FLOW",GP)}else if(M.comment)if(j.comment)j.comment+=`
286
286
  `+M.comment;else j.comment=M.comment;let QD=new sh.Pair(j,k);if(P.options.keepSourceTokens)QD.srcToken=E;if(X){let BD=H;if(th.mapIncludes(P,BD.items,j))Z(m,"DUPLICATE_KEY","Map keys must be unique");BD.items.push(QD)}else{let BD=new zQ.YAMLMap(P.schema);BD.flow=!0,BD.items.push(QD);let i0=(k??j).range;BD.range=[j.range[0],i0[1],i0[2]],H.items.push(BD)}U=k?k.range[2]:M.end}}let O=X?"}":"]",[z,...I]=B.end,R=U;if(z&&z.source===O)R=z.offset+z.source.length;else{let $=J[0].toUpperCase()+J.substring(1),E=W?`${$} must end with a ${O}`:`${$} in block collection must be sufficiently indented and end with a ${O}`;if(Z(U,W?"MISSING_CHAR":"BAD_INDENT",E),z&&z.source.length!==1)I.unshift(z)}if(I.length>0){let $=ih.resolveEnd(I,R,P.options.strict,Z);if($.comment)if(H.comment)H.comment+=`
@@ -299,8 +299,8 @@ ${H}
299
299
  `+X[R][0].slice(Y);if(U[U.length-1]!==`
300
300
  `)U+=`
301
301
  `;break;default:U+=`
302
- `}let I=B+Z.length+F.source.length;return{value:U,type:q,comment:Z.comment,range:[B,I,I]}}function zv({offset:D,props:F},P,B){if(F[0].type!=="block-scalar-header")return B(F[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:Z}=F[0],q=Z[0],X=0,J="",Y=-1;for(let O=1;O<Z.length;++O){let z=Z[O];if(!J&&(z==="-"||z==="+"))J=z;else{let I=Number(z);if(!X&&I)X=I;else if(Y===-1)Y=D+O}}if(Y!==-1)B(Y,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${Z}`);let H=!1,W="",U=Z.length;for(let O=1;O<F.length;++O){let z=F[O];switch(z.type){case"space":H=!0;case"newline":U+=z.source.length;break;case"comment":if(P&&!H)B(z,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");U+=z.source.length,W=z.source.substring(1);break;case"error":B(z,"UNEXPECTED_TOKEN",z.message),U+=z.source.length;break;default:{let I=`Unexpected token in block scalar header: ${z.type}`;B(z,"UNEXPECTED_TOKEN",I);let R=z.source;if(R&&typeof R==="string")U+=R.length}}}return{mode:q,indent:X,chomp:J,comment:W,length:U}}function Qv(D){let F=D.split(/\n( *)/),P=F[0],B=P.match(/^( *)/),q=[B?.[1]?[B[1],P.slice(B[1].length)]:["",P]];for(let X=1;X<F.length;X+=2)q.push([F[X],F[X+1]]);return q}Gv.resolveBlockScalar=Ov});var EP=Q((wv)=>{var KP=ED(),Iv=y8();function $v(D,F,P){let{offset:B,type:Z,source:q,end:X}=D,J,Y,H=(O,z,I)=>P(B+O,z,I);switch(Z){case"scalar":J=KP.Scalar.PLAIN,Y=Mv(q,H);break;case"single-quoted-scalar":J=KP.Scalar.QUOTE_SINGLE,Y=Kv(q,H);break;case"double-quoted-scalar":J=KP.Scalar.QUOTE_DOUBLE,Y=Ev(q,H);break;default:return P(D,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${Z}`),{value:"",type:null,comment:"",range:[B,B+q.length,B+q.length]}}let W=B+q.length,U=Iv.resolveEnd(X,W,F,P);return{value:Y,type:J,comment:U.comment,range:[B,W,U.offset]}}function Mv(D,F){let P="";switch(D[0]){case"\t":P="a tab character";break;case",":P="flow indicator character ,";break;case"%":P="directive indicator character %";break;case"|":case">":{P=`block scalar indicator ${D[0]}`;break}case"@":case"`":{P=`reserved character ${D[0]}`;break}}if(P)F(0,"BAD_SCALAR_START",`Plain value cannot start with ${P}`);return IQ(D)}function Kv(D,F){if(D[D.length-1]!=="'"||D.length===1)F(D.length,"MISSING_CHAR","Missing closing 'quote");return IQ(D.slice(1,-1)).replace(/''/g,"'")}function IQ(D){let F,P;try{F=new RegExp(`(.*?)(?<![ \t])[ \t]*\r?
303
- `,"sy"),P=new RegExp(`[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?
302
+ `}let I=B+Z.length+F.source.length;return{value:U,type:q,comment:Z.comment,range:[B,I,I]}}function zv({offset:D,props:F},P,B){if(F[0].type!=="block-scalar-header")return B(F[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:Z}=F[0],q=Z[0],X=0,J="",Y=-1;for(let O=1;O<Z.length;++O){let z=Z[O];if(!J&&(z==="-"||z==="+"))J=z;else{let I=Number(z);if(!X&&I)X=I;else if(Y===-1)Y=D+O}}if(Y!==-1)B(Y,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${Z}`);let H=!1,W="",U=Z.length;for(let O=1;O<F.length;++O){let z=F[O];switch(z.type){case"space":H=!0;case"newline":U+=z.source.length;break;case"comment":if(P&&!H)B(z,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");U+=z.source.length,W=z.source.substring(1);break;case"error":B(z,"UNEXPECTED_TOKEN",z.message),U+=z.source.length;break;default:{let I=`Unexpected token in block scalar header: ${z.type}`;B(z,"UNEXPECTED_TOKEN",I);let R=z.source;if(R&&typeof R==="string")U+=R.length}}}return{mode:q,indent:X,chomp:J,comment:W,length:U}}function Qv(D){let F=D.split(/\n( *)/),P=F[0],B=P.match(/^( *)/),q=[B?.[1]?[B[1],P.slice(B[1].length)]:["",P]];for(let X=1;X<F.length;X+=2)q.push([F[X],F[X+1]]);return q}Gv.resolveBlockScalar=Ov});var EP=Q((wv)=>{var KP=ED(),Iv=m8();function $v(D,F,P){let{offset:B,type:Z,source:q,end:X}=D,J,Y,H=(O,z,I)=>P(B+O,z,I);switch(Z){case"scalar":J=KP.Scalar.PLAIN,Y=Mv(q,H);break;case"single-quoted-scalar":J=KP.Scalar.QUOTE_SINGLE,Y=Kv(q,H);break;case"double-quoted-scalar":J=KP.Scalar.QUOTE_DOUBLE,Y=Ev(q,H);break;default:return P(D,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${Z}`),{value:"",type:null,comment:"",range:[B,B+q.length,B+q.length]}}let W=B+q.length,U=Iv.resolveEnd(X,W,F,P);return{value:Y,type:J,comment:U.comment,range:[B,W,U.offset]}}function Mv(D,F){let P="";switch(D[0]){case"\t":P="a tab character";break;case",":P="flow indicator character ,";break;case"%":P="directive indicator character %";break;case"|":case">":{P=`block scalar indicator ${D[0]}`;break}case"@":case"`":{P=`reserved character ${D[0]}`;break}}if(P)F(0,"BAD_SCALAR_START",`Plain value cannot start with ${P}`);return IQ(D)}function Kv(D,F){if(D[D.length-1]!=="'"||D.length===1)F(D.length,"MISSING_CHAR","Missing closing 'quote");return IQ(D.slice(1,-1)).replace(/''/g,"'")}function IQ(D){let F,P;try{F=new RegExp(`(.*?)(?<![ ])[ ]*\r?
303
+ `,"sy"),P=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
304
304
  `,"sy")}catch{F=/(.*?)[ \t]*\r?\n/sy,P=/[ \t]*(.*?)[ \t]*\r?\n/sy}let B=F.exec(D);if(!B)return D;let Z=B[1],q=" ",X=F.lastIndex;P.lastIndex=X;while(B=P.exec(D)){if(B[1]==="")if(q===`
305
305
  `)Z+=q;else q=`
306
306
  `;else Z+=q+B[1],q=" ";X=P.lastIndex}let J=/[ \t]*(.*)/sy;return J.lastIndex=X,B=J.exec(D),Z+q+(B?.[1]??"")}function Ev(D,F){let P="";for(let B=1;B<D.length-1;++B){let Z=D[B];if(Z==="\r"&&D[B+1]===`
@@ -314,7 +314,7 @@ ${H}
314
314
  `)break;if(B===`
315
315
  `)P+=`
316
316
  `;F+=1,B=D[F+1]}if(!P)P=" ";return{fold:P,offset:F}}var Cv={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
317
- `,r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function Lv(D,F,P,B){let Z=D.substr(F,P),X=Z.length===P&&/^[0-9a-fA-F]+$/.test(Z)?parseInt(Z,16):NaN;if(isNaN(X)){let J=D.substr(F-2,P+2);return B(F-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${J}`),J}return String.fromCodePoint(X)}wv.resolveFlowScalar=$v});var MQ=Q((uv)=>{var t2=i(),$Q=ED(),jv=MP(),bv=EP();function Sv(D,F,P,B){let{value:Z,type:q,comment:X,range:J}=F.type==="block-scalar"?jv.resolveBlockScalar(D,F,B):bv.resolveFlowScalar(F,D.options.strict,B),Y=P?D.directives.tagName(P.source,(U)=>B(P,"TAG_RESOLVE_FAILED",U)):null,H;if(D.options.stringKeys&&D.atKey)H=D.schema[t2.SCALAR];else if(Y)H=Tv(D.schema,Z,Y,P,B);else if(F.type==="scalar")H=Nv(D,Z,F,B);else H=D.schema[t2.SCALAR];let W;try{let U=H.resolve(Z,(O)=>B(P??F,"TAG_RESOLVE_FAILED",O),D.options);W=t2.isScalar(U)?U:new $Q.Scalar(U)}catch(U){let O=U instanceof Error?U.message:String(U);B(P??F,"TAG_RESOLVE_FAILED",O),W=new $Q.Scalar(Z)}if(W.range=J,W.source=Z,q)W.type=q;if(Y)W.tag=Y;if(H.format)W.format=H.format;if(X)W.comment=X;return W}function Tv(D,F,P,B,Z){if(P==="!")return D[t2.SCALAR];let q=[];for(let J of D.tags)if(!J.collection&&J.tag===P)if(J.default&&J.test)q.push(J);else return J;for(let J of q)if(J.test?.test(F))return J;let X=D.knownTags[P];if(X&&!X.collection)return D.tags.push(Object.assign({},X,{default:!1,test:void 0})),X;return Z(B,"TAG_RESOLVE_FAILED",`Unresolved tag: ${P}`,P!=="tag:yaml.org,2002:str"),D[t2.SCALAR]}function Nv({atKey:D,directives:F,schema:P},B,Z,q){let X=P.tags.find((J)=>(J.default===!0||D&&J.default==="key")&&J.test?.test(B))||P[t2.SCALAR];if(P.compat){let J=P.compat.find((Y)=>Y.default&&Y.test?.test(B))??P[t2.SCALAR];if(X.tag!==J.tag){let Y=F.tagString(X.tag),H=F.tagString(J.tag),W=`Value may be parsed as either ${Y} or ${H}`;q(Z,"TAG_RESOLVE_FAILED",W,!0)}}return X}uv.composeScalar=Sv});var KQ=Q((xv)=>{function kv(D,F,P){if(F){if(P===null)P=F.length;for(let B=P-1;B>=0;--B){let Z=F[B];switch(Z.type){case"space":case"comment":case"newline":D-=Z.source.length;continue}Z=F[++B];while(Z?.type==="space")D+=Z.source.length,Z=F[++B];break}}return D}xv.emptyScalarPosition=kv});var CQ=Q((dv)=>{var hv=n1(),vv=i(),gv=RQ(),EQ=MQ(),yv=y8(),mv=KQ(),lv={composeNode:AQ,composeEmptyNode:AP};function AQ(D,F,P,B){let Z=D.atKey,{spaceBefore:q,comment:X,anchor:J,tag:Y}=P,H,W=!0;switch(F.type){case"alias":if(H=cv(D,F,B),J||Y)B(F,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(H=EQ.composeScalar(D,F,Y,B),J)H.anchor=J.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":if(H=gv.composeCollection(lv,D,F,P,B),J)H.anchor=J.source.substring(1);break;default:{let U=F.type==="error"?F.message:`Unsupported token (type: ${F.type})`;B(F,"UNEXPECTED_TOKEN",U),H=AP(D,F.offset,void 0,null,P,B),W=!1}}if(J&&H.anchor==="")B(J,"BAD_ALIAS","Anchor cannot be an empty string");if(Z&&D.options.stringKeys&&(!vv.isScalar(H)||typeof H.value!=="string"||H.tag&&H.tag!=="tag:yaml.org,2002:str"))B(Y??F,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(q)H.spaceBefore=!0;if(X)if(F.type==="scalar"&&F.source==="")H.comment=X;else H.commentBefore=X;if(D.options.keepSourceTokens&&W)H.srcToken=F;return H}function AP(D,F,P,B,{spaceBefore:Z,comment:q,anchor:X,tag:J,end:Y},H){let W={type:"scalar",offset:mv.emptyScalarPosition(F,P,B),indent:-1,source:""},U=EQ.composeScalar(D,W,J,H);if(X){if(U.anchor=X.source.substring(1),U.anchor==="")H(X,"BAD_ALIAS","Anchor cannot be an empty string")}if(Z)U.spaceBefore=!0;if(q)U.comment=q,U.range[2]=Y;return U}function cv({options:D},{offset:F,source:P,end:B},Z){let q=new hv.Alias(P.substring(1));if(q.source==="")Z(F,"BAD_ALIAS","Alias cannot be an empty string");if(q.source.endsWith(":"))Z(F+P.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let X=F+P.length,J=yv.resolveEnd(B,X,D.strict,Z);if(q.range=[F,X,J.offset],J.comment)q.comment=J.comment;return q}dv.composeEmptyNode=AP;dv.composeNode=AQ});var wQ=Q((ov)=>{var av=H6(),LQ=CQ(),sv=y8(),nv=W6();function iv(D,F,{offset:P,start:B,value:Z,end:q},X){let J=Object.assign({_directives:F},D),Y=new av.Document(void 0,J),H={atKey:!1,atRoot:!0,directives:Y.directives,options:Y.options,schema:Y.schema},W=nv.resolveProps(B,{indicator:"doc-start",next:Z??q?.[0],offset:P,onError:X,parentIndent:0,startOnNewline:!0});if(W.found){if(Y.directives.docStart=!0,Z&&(Z.type==="block-map"||Z.type==="block-seq")&&!W.hasNewline)X(W.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}Y.contents=Z?LQ.composeNode(H,Z,W,X):LQ.composeEmptyNode(H,W.end,B,null,W,X);let U=Y.contents.range[2],O=sv.resolveEnd(q,U,!1,X);if(O.comment)Y.comment=O.comment;return Y.range=[P,U,O.offset],Y}ov.composeDoc=iv});var CP=Q((Bg)=>{var ev=jF(),Dg=H6(),O6=U6(),VQ=i(),Fg=wQ(),Pg=y8();function z6(D){if(typeof D==="number")return[D,D+1];if(Array.isArray(D))return D.length===2?D:[D[0],D[1]];let{offset:F,source:P}=D;return[F,F+(typeof P==="string"?P.length:1)]}function jQ(D){let F="",P=!1,B=!1;for(let Z=0;Z<D.length;++Z){let q=D[Z];switch(q[0]){case"#":F+=(F===""?"":B?`
317
+ `,r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function Lv(D,F,P,B){let Z=D.substr(F,P),X=Z.length===P&&/^[0-9a-fA-F]+$/.test(Z)?parseInt(Z,16):NaN;if(isNaN(X)){let J=D.substr(F-2,P+2);return B(F-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${J}`),J}return String.fromCodePoint(X)}wv.resolveFlowScalar=$v});var MQ=Q((uv)=>{var t2=i(),$Q=ED(),jv=MP(),bv=EP();function Sv(D,F,P,B){let{value:Z,type:q,comment:X,range:J}=F.type==="block-scalar"?jv.resolveBlockScalar(D,F,B):bv.resolveFlowScalar(F,D.options.strict,B),Y=P?D.directives.tagName(P.source,(U)=>B(P,"TAG_RESOLVE_FAILED",U)):null,H;if(D.options.stringKeys&&D.atKey)H=D.schema[t2.SCALAR];else if(Y)H=Tv(D.schema,Z,Y,P,B);else if(F.type==="scalar")H=Nv(D,Z,F,B);else H=D.schema[t2.SCALAR];let W;try{let U=H.resolve(Z,(O)=>B(P??F,"TAG_RESOLVE_FAILED",O),D.options);W=t2.isScalar(U)?U:new $Q.Scalar(U)}catch(U){let O=U instanceof Error?U.message:String(U);B(P??F,"TAG_RESOLVE_FAILED",O),W=new $Q.Scalar(Z)}if(W.range=J,W.source=Z,q)W.type=q;if(Y)W.tag=Y;if(H.format)W.format=H.format;if(X)W.comment=X;return W}function Tv(D,F,P,B,Z){if(P==="!")return D[t2.SCALAR];let q=[];for(let J of D.tags)if(!J.collection&&J.tag===P)if(J.default&&J.test)q.push(J);else return J;for(let J of q)if(J.test?.test(F))return J;let X=D.knownTags[P];if(X&&!X.collection)return D.tags.push(Object.assign({},X,{default:!1,test:void 0})),X;return Z(B,"TAG_RESOLVE_FAILED",`Unresolved tag: ${P}`,P!=="tag:yaml.org,2002:str"),D[t2.SCALAR]}function Nv({atKey:D,directives:F,schema:P},B,Z,q){let X=P.tags.find((J)=>(J.default===!0||D&&J.default==="key")&&J.test?.test(B))||P[t2.SCALAR];if(P.compat){let J=P.compat.find((Y)=>Y.default&&Y.test?.test(B))??P[t2.SCALAR];if(X.tag!==J.tag){let Y=F.tagString(X.tag),H=F.tagString(J.tag),W=`Value may be parsed as either ${Y} or ${H}`;q(Z,"TAG_RESOLVE_FAILED",W,!0)}}return X}uv.composeScalar=Sv});var KQ=Q((xv)=>{function kv(D,F,P){if(F){if(P===null)P=F.length;for(let B=P-1;B>=0;--B){let Z=F[B];switch(Z.type){case"space":case"comment":case"newline":D-=Z.source.length;continue}Z=F[++B];while(Z?.type==="space")D+=Z.source.length,Z=F[++B];break}}return D}xv.emptyScalarPosition=kv});var CQ=Q((dv)=>{var hv=n1(),vv=i(),gv=RQ(),EQ=MQ(),yv=m8(),mv=KQ(),lv={composeNode:AQ,composeEmptyNode:AP};function AQ(D,F,P,B){let Z=D.atKey,{spaceBefore:q,comment:X,anchor:J,tag:Y}=P,H,W=!0;switch(F.type){case"alias":if(H=cv(D,F,B),J||Y)B(F,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(H=EQ.composeScalar(D,F,Y,B),J)H.anchor=J.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":if(H=gv.composeCollection(lv,D,F,P,B),J)H.anchor=J.source.substring(1);break;default:{let U=F.type==="error"?F.message:`Unsupported token (type: ${F.type})`;B(F,"UNEXPECTED_TOKEN",U),H=AP(D,F.offset,void 0,null,P,B),W=!1}}if(J&&H.anchor==="")B(J,"BAD_ALIAS","Anchor cannot be an empty string");if(Z&&D.options.stringKeys&&(!vv.isScalar(H)||typeof H.value!=="string"||H.tag&&H.tag!=="tag:yaml.org,2002:str"))B(Y??F,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(q)H.spaceBefore=!0;if(X)if(F.type==="scalar"&&F.source==="")H.comment=X;else H.commentBefore=X;if(D.options.keepSourceTokens&&W)H.srcToken=F;return H}function AP(D,F,P,B,{spaceBefore:Z,comment:q,anchor:X,tag:J,end:Y},H){let W={type:"scalar",offset:mv.emptyScalarPosition(F,P,B),indent:-1,source:""},U=EQ.composeScalar(D,W,J,H);if(X){if(U.anchor=X.source.substring(1),U.anchor==="")H(X,"BAD_ALIAS","Anchor cannot be an empty string")}if(Z)U.spaceBefore=!0;if(q)U.comment=q,U.range[2]=Y;return U}function cv({options:D},{offset:F,source:P,end:B},Z){let q=new hv.Alias(P.substring(1));if(q.source==="")Z(F,"BAD_ALIAS","Alias cannot be an empty string");if(q.source.endsWith(":"))Z(F+P.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let X=F+P.length,J=yv.resolveEnd(B,X,D.strict,Z);if(q.range=[F,X,J.offset],J.comment)q.comment=J.comment;return q}dv.composeEmptyNode=AP;dv.composeNode=AQ});var wQ=Q((ov)=>{var av=H6(),LQ=CQ(),sv=m8(),nv=W6();function iv(D,F,{offset:P,start:B,value:Z,end:q},X){let J=Object.assign({_directives:F},D),Y=new av.Document(void 0,J),H={atKey:!1,atRoot:!0,directives:Y.directives,options:Y.options,schema:Y.schema},W=nv.resolveProps(B,{indicator:"doc-start",next:Z??q?.[0],offset:P,onError:X,parentIndent:0,startOnNewline:!0});if(W.found){if(Y.directives.docStart=!0,Z&&(Z.type==="block-map"||Z.type==="block-seq")&&!W.hasNewline)X(W.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}Y.contents=Z?LQ.composeNode(H,Z,W,X):LQ.composeEmptyNode(H,W.end,B,null,W,X);let U=Y.contents.range[2],O=sv.resolveEnd(q,U,!1,X);if(O.comment)Y.comment=O.comment;return Y.range=[P,U,O.offset],Y}ov.composeDoc=iv});var CP=Q((Bg)=>{var ev=jF(),Dg=H6(),O6=U6(),VQ=i(),Fg=wQ(),Pg=m8();function z6(D){if(typeof D==="number")return[D,D+1];if(Array.isArray(D))return D.length===2?D:[D[0],D[1]];let{offset:F,source:P}=D;return[F,F+(typeof P==="string"?P.length:1)]}function jQ(D){let F="",P=!1,B=!1;for(let Z=0;Z<D.length;++Z){let q=D[Z];switch(q[0]){case"#":F+=(F===""?"":B?`
318
318
 
319
319
  `:`
320
320
  `)+(q.substring(1)||" "),P=!0,B=!1;break;case"%":if(D[Z+1]?.[0]!=="#")Z+=1;P=!1;break;default:if(!P)B=!0;P=!1}}return{comment:F,afterEmptyLine:B}}class bQ{constructor(D={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(F,P,B,Z)=>{let q=z6(F);if(Z)this.warnings.push(new O6.YAMLWarning(q,P,B));else this.errors.push(new O6.YAMLParseError(q,P,B))},this.directives=new ev.Directives({version:D.version||"1.2"}),this.options=D}decorate(D,F){let{comment:P,afterEmptyLine:B}=jQ(this.prelude);if(P){let Z=D.contents;if(F)D.comment=D.comment?`${D.comment}
@@ -333,7 +333,7 @@ ${F.comment}`:F.comment}this.doc.range[2]=F.offset;break}default:this.errors.pus
333
333
  `:case`\r
334
334
  `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(D[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}bg.createScalarToken=VP.createScalarToken;bg.resolveAsScalar=VP.resolveAsScalar;bg.setScalarValue=VP.setScalarValue;bg.stringify=Ag.stringify;bg.visit=Cg.visit;bg.BOM=jP;bg.DOCUMENT=bP;bg.FLOW_END=SP;bg.SCALAR=TP;bg.isCollection=Lg;bg.isScalar=wg;bg.prettyToken=Vg;bg.tokenType=jg});var uP=Q((dg)=>{var Q6=c5();function K0(D){switch(D){case void 0:case" ":case`
335
335
  `:case"\r":case"\t":return!0;default:return!1}}var fQ=new Set("0123456789ABCDEFabcdef"),lg=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),d5=new Set(",[]{}"),cg=new Set(` ,[]{}
336
- \r\t`),NP=(D)=>!D||cg.has(D);class hQ{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(D,F=!1){if(D){if(typeof D!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+D:D,this.lineEndPos=null}this.atEnd=!F;let P=this.next??"stream";while(P&&(F||this.hasChars(1)))P=yield*this.parseNext(P)}atLineEnd(){let D=this.pos,F=this.buffer[D];while(F===" "||F==="\t")F=this.buffer[++D];if(!F||F==="#"||F===`
336
+ \r `),NP=(D)=>!D||cg.has(D);class hQ{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(D,F=!1){if(D){if(typeof D!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+D:D,this.lineEndPos=null}this.atEnd=!F;let P=this.next??"stream";while(P&&(F||this.hasChars(1)))P=yield*this.parseNext(P)}atLineEnd(){let D=this.pos,F=this.buffer[D];while(F===" "||F==="\t")F=this.buffer[++D];if(!F||F==="#"||F===`
337
337
  `)return!0;if(F==="\r")return this.buffer[D+1]===`
338
338
  `;return!1}charAt(D){return this.buffer[this.pos+D]}continueScalar(D){let F=this.buffer[D];if(this.indentNext>0){let P=0;while(F===" ")F=this.buffer[++P+D];if(F==="\r"){let B=this.buffer[P+D+1];if(B===`
339
339
  `||!B&&!this.atEnd)return D+P+1}return F===`
@@ -350,13 +350,13 @@ ${F.comment}`:F.comment}this.doc.range[2]=F.offset;break}default:this.errors.pus
350
350
  `,Z=this.buffer[P+1];else F=P;if(Z==="#"||D&&d5.has(Z))break;if(B===`
351
351
  `){let q=this.continueScalar(P+1);if(q===-1)break;P=Math.max(P,q-2)}}else{if(D&&d5.has(B))break;F=P}if(!B&&!this.atEnd)return this.setNext("plain-scalar");return yield Q6.SCALAR,yield*this.pushToIndex(F+1,!0),D?"flow":"doc"}*pushCount(D){if(D>0)return yield this.buffer.substr(this.pos,D),this.pos+=D,D;return 0}*pushToIndex(D,F){let P=this.buffer.slice(this.pos,D);if(P)return yield P,this.pos+=P.length,P.length;else if(F)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(NP))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let D=this.flowLevel>0,F=this.charAt(1);if(K0(F)||D&&d5.has(F)){if(!D)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;return(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let D=this.pos+2,F=this.buffer[D];while(!K0(F)&&F!==">")F=this.buffer[++D];return yield*this.pushToIndex(F===">"?D+1:D,!1)}else{let D=this.pos+1,F=this.buffer[D];while(F)if(lg.has(F))F=this.buffer[++D];else if(F==="%"&&fQ.has(this.buffer[D+1])&&fQ.has(this.buffer[D+2]))F=this.buffer[D+=3];else break;return yield*this.pushToIndex(D,!1)}}*pushNewline(){let D=this.buffer[this.pos];if(D===`
352
352
  `)return yield*this.pushCount(1);else if(D==="\r"&&this.charAt(1)===`
353
- `)return yield*this.pushCount(2);else return 0}*pushSpaces(D){let F=this.pos-1,P;do P=this.buffer[++F];while(P===" "||D&&P==="\t");let B=F-this.pos;if(B>0)yield this.buffer.substr(this.pos,B),this.pos=F;return B}*pushUntil(D){let F=this.pos,P=this.buffer[F];while(!D(P))P=this.buffer[++F];return yield*this.pushToIndex(F,!1)}}dg.Lexer=hQ});var _P=Q((rg)=>{class vQ{constructor(){this.lineStarts=[],this.addNewLine=(D)=>this.lineStarts.push(D),this.linePos=(D)=>{let F=0,P=this.lineStarts.length;while(F<P){let Z=F+P>>1;if(this.lineStarts[Z]<D)F=Z+1;else P=Z}if(this.lineStarts[F]===D)return{line:F+1,col:1};if(F===0)return{line:0,col:D};let B=this.lineStarts[F-1];return{line:F,col:D-B+1}}}}rg.LineCounter=vQ});var kP=Q((ng)=>{var gQ=c5(),sg=uP();function D8(D,F){for(let P=0;P<D.length;++P)if(D[P].type===F)return!0;return!1}function yQ(D){for(let F=0;F<D.length;++F)switch(D[F].type){case"space":case"comment":case"newline":break;default:return F}return-1}function lQ(D){switch(D?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function p5(D){switch(D.type){case"document":return D.start;case"block-map":{let F=D.items[D.items.length-1];return F.sep??F.start}case"block-seq":return D.items[D.items.length-1].start;default:return[]}}function m8(D){if(D.length===0)return[];let F=D.length;D:while(--F>=0)switch(D[F].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break D}while(D[++F]?.type==="space");return D.splice(F,D.length)}function mQ(D){if(D.start.type==="flow-seq-start"){for(let F of D.items)if(F.sep&&!F.value&&!D8(F.start,"explicit-key-ind")&&!D8(F.sep,"map-value-ind")){if(F.key)F.value=F.key;if(delete F.key,lQ(F.value))if(F.value.end)Array.prototype.push.apply(F.value.end,F.sep);else F.value.end=F.sep;else Array.prototype.push.apply(F.start,F.sep);delete F.sep}}}class cQ{constructor(D){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new sg.Lexer,this.onNewLine=D}*parse(D,F=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let P of this.lexer.lex(D,F))yield*this.next(P);if(!F)yield*this.end()}*next(D){if(this.source=D,process.env.LOG_TOKENS)console.log("|",gQ.prettyToken(D));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=D.length;return}let F=gQ.tokenType(D);if(!F){let P=`Not a YAML token: ${D}`;yield*this.pop({type:"error",offset:this.offset,message:P,source:D}),this.offset+=D.length}else if(F==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=F,yield*this.step(),F){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+D.length);break;case"space":if(this.atNewLine&&D[0]===" ")this.indent+=D.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=D.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=D.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let D=this.peek(1);if(this.type==="doc-end"&&(!D||D.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!D)return yield*this.stream();switch(D.type){case"document":return yield*this.document(D);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(D);case"block-scalar":return yield*this.blockScalar(D);case"block-map":return yield*this.blockMap(D);case"block-seq":return yield*this.blockSequence(D);case"flow-collection":return yield*this.flowCollection(D);case"doc-end":return yield*this.documentEnd(D)}yield*this.pop()}peek(D){return this.stack[this.stack.length-D]}*pop(D){let F=D??this.stack.pop();if(!F)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield F;else{let P=this.peek(1);if(F.type==="block-scalar")F.indent="indent"in P?P.indent:0;else if(F.type==="flow-collection"&&P.type==="document")F.indent=0;if(F.type==="flow-collection")mQ(F);switch(P.type){case"document":P.value=F;break;case"block-scalar":P.props.push(F);break;case"block-map":{let B=P.items[P.items.length-1];if(B.value){P.items.push({start:[],key:F,sep:[]}),this.onKeyLine=!0;return}else if(B.sep)B.value=F;else{Object.assign(B,{key:F,sep:[]}),this.onKeyLine=!B.explicitKey;return}break}case"block-seq":{let B=P.items[P.items.length-1];if(B.value)P.items.push({start:[],value:F});else B.value=F;break}case"flow-collection":{let B=P.items[P.items.length-1];if(!B||B.value)P.items.push({start:[],key:F,sep:[]});else if(B.sep)B.value=F;else Object.assign(B,{key:F,sep:[]});return}default:yield*this.pop(),yield*this.pop(F)}if((P.type==="document"||P.type==="block-map"||P.type==="block-seq")&&(F.type==="block-map"||F.type==="block-seq")){let B=F.items[F.items.length-1];if(B&&!B.sep&&!B.value&&B.start.length>0&&yQ(B.start)===-1&&(F.indent===0||B.start.every((Z)=>Z.type!=="comment"||Z.indent<F.indent))){if(P.type==="document")P.end=B.start;else P.items.push({start:B.start});F.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let D={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")D.start.push(this.sourceToken);this.stack.push(D);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(D){if(D.value)return yield*this.lineEnd(D);switch(this.type){case"doc-start":{if(yQ(D.start)!==-1)yield*this.pop(),yield*this.step();else D.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":D.start.push(this.sourceToken);return}let F=this.startBlockValue(D);if(F)this.stack.push(F);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(D){if(this.type==="map-value-ind"){let F=p5(this.peek(2)),P=m8(F),B;if(D.end)B=D.end,B.push(this.sourceToken),delete D.end;else B=[this.sourceToken];let Z={type:"block-map",offset:D.offset,indent:D.indent,items:[{start:P,key:D,sep:B}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=Z}else yield*this.lineEnd(D)}*blockScalar(D){switch(this.type){case"space":case"comment":case"newline":D.props.push(this.sourceToken);return;case"scalar":if(D.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let F=this.source.indexOf(`
353
+ `)return yield*this.pushCount(2);else return 0}*pushSpaces(D){let F=this.pos-1,P;do P=this.buffer[++F];while(P===" "||D&&P==="\t");let B=F-this.pos;if(B>0)yield this.buffer.substr(this.pos,B),this.pos=F;return B}*pushUntil(D){let F=this.pos,P=this.buffer[F];while(!D(P))P=this.buffer[++F];return yield*this.pushToIndex(F,!1)}}dg.Lexer=hQ});var _P=Q((rg)=>{class vQ{constructor(){this.lineStarts=[],this.addNewLine=(D)=>this.lineStarts.push(D),this.linePos=(D)=>{let F=0,P=this.lineStarts.length;while(F<P){let Z=F+P>>1;if(this.lineStarts[Z]<D)F=Z+1;else P=Z}if(this.lineStarts[F]===D)return{line:F+1,col:1};if(F===0)return{line:0,col:D};let B=this.lineStarts[F-1];return{line:F,col:D-B+1}}}}rg.LineCounter=vQ});var kP=Q((ng)=>{var gQ=c5(),sg=uP();function D8(D,F){for(let P=0;P<D.length;++P)if(D[P].type===F)return!0;return!1}function yQ(D){for(let F=0;F<D.length;++F)switch(D[F].type){case"space":case"comment":case"newline":break;default:return F}return-1}function lQ(D){switch(D?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function p5(D){switch(D.type){case"document":return D.start;case"block-map":{let F=D.items[D.items.length-1];return F.sep??F.start}case"block-seq":return D.items[D.items.length-1].start;default:return[]}}function l8(D){if(D.length===0)return[];let F=D.length;D:while(--F>=0)switch(D[F].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break D}while(D[++F]?.type==="space");return D.splice(F,D.length)}function mQ(D){if(D.start.type==="flow-seq-start"){for(let F of D.items)if(F.sep&&!F.value&&!D8(F.start,"explicit-key-ind")&&!D8(F.sep,"map-value-ind")){if(F.key)F.value=F.key;if(delete F.key,lQ(F.value))if(F.value.end)Array.prototype.push.apply(F.value.end,F.sep);else F.value.end=F.sep;else Array.prototype.push.apply(F.start,F.sep);delete F.sep}}}class cQ{constructor(D){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new sg.Lexer,this.onNewLine=D}*parse(D,F=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let P of this.lexer.lex(D,F))yield*this.next(P);if(!F)yield*this.end()}*next(D){if(this.source=D,process.env.LOG_TOKENS)console.log("|",gQ.prettyToken(D));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=D.length;return}let F=gQ.tokenType(D);if(!F){let P=`Not a YAML token: ${D}`;yield*this.pop({type:"error",offset:this.offset,message:P,source:D}),this.offset+=D.length}else if(F==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=F,yield*this.step(),F){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+D.length);break;case"space":if(this.atNewLine&&D[0]===" ")this.indent+=D.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=D.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=D.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let D=this.peek(1);if(this.type==="doc-end"&&(!D||D.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!D)return yield*this.stream();switch(D.type){case"document":return yield*this.document(D);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(D);case"block-scalar":return yield*this.blockScalar(D);case"block-map":return yield*this.blockMap(D);case"block-seq":return yield*this.blockSequence(D);case"flow-collection":return yield*this.flowCollection(D);case"doc-end":return yield*this.documentEnd(D)}yield*this.pop()}peek(D){return this.stack[this.stack.length-D]}*pop(D){let F=D??this.stack.pop();if(!F)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield F;else{let P=this.peek(1);if(F.type==="block-scalar")F.indent="indent"in P?P.indent:0;else if(F.type==="flow-collection"&&P.type==="document")F.indent=0;if(F.type==="flow-collection")mQ(F);switch(P.type){case"document":P.value=F;break;case"block-scalar":P.props.push(F);break;case"block-map":{let B=P.items[P.items.length-1];if(B.value){P.items.push({start:[],key:F,sep:[]}),this.onKeyLine=!0;return}else if(B.sep)B.value=F;else{Object.assign(B,{key:F,sep:[]}),this.onKeyLine=!B.explicitKey;return}break}case"block-seq":{let B=P.items[P.items.length-1];if(B.value)P.items.push({start:[],value:F});else B.value=F;break}case"flow-collection":{let B=P.items[P.items.length-1];if(!B||B.value)P.items.push({start:[],key:F,sep:[]});else if(B.sep)B.value=F;else Object.assign(B,{key:F,sep:[]});return}default:yield*this.pop(),yield*this.pop(F)}if((P.type==="document"||P.type==="block-map"||P.type==="block-seq")&&(F.type==="block-map"||F.type==="block-seq")){let B=F.items[F.items.length-1];if(B&&!B.sep&&!B.value&&B.start.length>0&&yQ(B.start)===-1&&(F.indent===0||B.start.every((Z)=>Z.type!=="comment"||Z.indent<F.indent))){if(P.type==="document")P.end=B.start;else P.items.push({start:B.start});F.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let D={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")D.start.push(this.sourceToken);this.stack.push(D);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(D){if(D.value)return yield*this.lineEnd(D);switch(this.type){case"doc-start":{if(yQ(D.start)!==-1)yield*this.pop(),yield*this.step();else D.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":D.start.push(this.sourceToken);return}let F=this.startBlockValue(D);if(F)this.stack.push(F);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(D){if(this.type==="map-value-ind"){let F=p5(this.peek(2)),P=l8(F),B;if(D.end)B=D.end,B.push(this.sourceToken),delete D.end;else B=[this.sourceToken];let Z={type:"block-map",offset:D.offset,indent:D.indent,items:[{start:P,key:D,sep:B}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=Z}else yield*this.lineEnd(D)}*blockScalar(D){switch(this.type){case"space":case"comment":case"newline":D.props.push(this.sourceToken);return;case"scalar":if(D.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let F=this.source.indexOf(`
354
354
  `)+1;while(F!==0)this.onNewLine(this.offset+F),F=this.source.indexOf(`
355
- `,F)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(D){let F=D.items[D.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,F.value){let P="end"in F.value?F.value.end:void 0;if((Array.isArray(P)?P[P.length-1]:void 0)?.type==="comment")P?.push(this.sourceToken);else D.items.push({start:[this.sourceToken]})}else if(F.sep)F.sep.push(this.sourceToken);else F.start.push(this.sourceToken);return;case"space":case"comment":if(F.value)D.items.push({start:[this.sourceToken]});else if(F.sep)F.sep.push(this.sourceToken);else{if(this.atIndentedComment(F.start,D.indent)){let B=D.items[D.items.length-2]?.value?.end;if(Array.isArray(B)){Array.prototype.push.apply(B,F.start),B.push(this.sourceToken),D.items.pop();return}}F.start.push(this.sourceToken)}return}if(this.indent>=D.indent){let P=!this.onKeyLine&&this.indent===D.indent,B=P&&(F.sep||F.explicitKey)&&this.type!=="seq-item-ind",Z=[];if(B&&F.sep&&!F.value){let q=[];for(let X=0;X<F.sep.length;++X){let J=F.sep[X];switch(J.type){case"newline":q.push(X);break;case"space":break;case"comment":if(J.indent>D.indent)q.length=0;break;default:q.length=0}}if(q.length>=2)Z=F.sep.splice(q[1])}switch(this.type){case"anchor":case"tag":if(B||F.value)Z.push(this.sourceToken),D.items.push({start:Z}),this.onKeyLine=!0;else if(F.sep)F.sep.push(this.sourceToken);else F.start.push(this.sourceToken);return;case"explicit-key-ind":if(!F.sep&&!F.explicitKey)F.start.push(this.sourceToken),F.explicitKey=!0;else if(B||F.value)Z.push(this.sourceToken),D.items.push({start:Z,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(F.explicitKey)if(!F.sep)if(D8(F.start,"newline"))Object.assign(F,{key:null,sep:[this.sourceToken]});else{let q=m8(F.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:q,key:null,sep:[this.sourceToken]}]})}else if(F.value)D.items.push({start:[],key:null,sep:[this.sourceToken]});else if(D8(F.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Z,key:null,sep:[this.sourceToken]}]});else if(lQ(F.key)&&!D8(F.sep,"newline")){let q=m8(F.start),X=F.key,J=F.sep;J.push(this.sourceToken),delete F.key,delete F.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:q,key:X,sep:J}]})}else if(Z.length>0)F.sep=F.sep.concat(Z,this.sourceToken);else F.sep.push(this.sourceToken);else if(!F.sep)Object.assign(F,{key:null,sep:[this.sourceToken]});else if(F.value||B)D.items.push({start:Z,key:null,sep:[this.sourceToken]});else if(D8(F.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else F.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let q=this.flowScalar(this.type);if(B||F.value)D.items.push({start:Z,key:q,sep:[]}),this.onKeyLine=!0;else if(F.sep)this.stack.push(q);else Object.assign(F,{key:q,sep:[]}),this.onKeyLine=!0;return}default:{let q=this.startBlockValue(D);if(q){if(P&&q.type!=="block-seq")D.items.push({start:Z});this.stack.push(q);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(D){let F=D.items[D.items.length-1];switch(this.type){case"newline":if(F.value){let P="end"in F.value?F.value.end:void 0;if((Array.isArray(P)?P[P.length-1]:void 0)?.type==="comment")P?.push(this.sourceToken);else D.items.push({start:[this.sourceToken]})}else F.start.push(this.sourceToken);return;case"space":case"comment":if(F.value)D.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(F.start,D.indent)){let B=D.items[D.items.length-2]?.value?.end;if(Array.isArray(B)){Array.prototype.push.apply(B,F.start),B.push(this.sourceToken),D.items.pop();return}}F.start.push(this.sourceToken)}return;case"anchor":case"tag":if(F.value||this.indent<=D.indent)break;F.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==D.indent)break;if(F.value||D8(F.start,"seq-item-ind"))D.items.push({start:[this.sourceToken]});else F.start.push(this.sourceToken);return}if(this.indent>D.indent){let P=this.startBlockValue(D);if(P){this.stack.push(P);return}}yield*this.pop(),yield*this.step()}*flowCollection(D){let F=D.items[D.items.length-1];if(this.type==="flow-error-end"){let P;do yield*this.pop(),P=this.peek(1);while(P&&P.type==="flow-collection")}else if(D.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!F||F.sep)D.items.push({start:[this.sourceToken]});else F.start.push(this.sourceToken);return;case"map-value-ind":if(!F||F.value)D.items.push({start:[],key:null,sep:[this.sourceToken]});else if(F.sep)F.sep.push(this.sourceToken);else Object.assign(F,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!F||F.value)D.items.push({start:[this.sourceToken]});else if(F.sep)F.sep.push(this.sourceToken);else F.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let B=this.flowScalar(this.type);if(!F||F.value)D.items.push({start:[],key:B,sep:[]});else if(F.sep)this.stack.push(B);else Object.assign(F,{key:B,sep:[]});return}case"flow-map-end":case"flow-seq-end":D.end.push(this.sourceToken);return}let P=this.startBlockValue(D);if(P)this.stack.push(P);else yield*this.pop(),yield*this.step()}else{let P=this.peek(2);if(P.type==="block-map"&&(this.type==="map-value-ind"&&P.indent===D.indent||this.type==="newline"&&!P.items[P.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&P.type!=="flow-collection"){let B=p5(P),Z=m8(B);mQ(D);let q=D.end.splice(1,D.end.length);q.push(this.sourceToken);let X={type:"block-map",offset:D.offset,indent:D.indent,items:[{start:Z,key:D,sep:q}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=X}else yield*this.lineEnd(D)}}flowScalar(D){if(this.onNewLine){let F=this.source.indexOf(`
355
+ `,F)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(D){let F=D.items[D.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,F.value){let P="end"in F.value?F.value.end:void 0;if((Array.isArray(P)?P[P.length-1]:void 0)?.type==="comment")P?.push(this.sourceToken);else D.items.push({start:[this.sourceToken]})}else if(F.sep)F.sep.push(this.sourceToken);else F.start.push(this.sourceToken);return;case"space":case"comment":if(F.value)D.items.push({start:[this.sourceToken]});else if(F.sep)F.sep.push(this.sourceToken);else{if(this.atIndentedComment(F.start,D.indent)){let B=D.items[D.items.length-2]?.value?.end;if(Array.isArray(B)){Array.prototype.push.apply(B,F.start),B.push(this.sourceToken),D.items.pop();return}}F.start.push(this.sourceToken)}return}if(this.indent>=D.indent){let P=!this.onKeyLine&&this.indent===D.indent,B=P&&(F.sep||F.explicitKey)&&this.type!=="seq-item-ind",Z=[];if(B&&F.sep&&!F.value){let q=[];for(let X=0;X<F.sep.length;++X){let J=F.sep[X];switch(J.type){case"newline":q.push(X);break;case"space":break;case"comment":if(J.indent>D.indent)q.length=0;break;default:q.length=0}}if(q.length>=2)Z=F.sep.splice(q[1])}switch(this.type){case"anchor":case"tag":if(B||F.value)Z.push(this.sourceToken),D.items.push({start:Z}),this.onKeyLine=!0;else if(F.sep)F.sep.push(this.sourceToken);else F.start.push(this.sourceToken);return;case"explicit-key-ind":if(!F.sep&&!F.explicitKey)F.start.push(this.sourceToken),F.explicitKey=!0;else if(B||F.value)Z.push(this.sourceToken),D.items.push({start:Z,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(F.explicitKey)if(!F.sep)if(D8(F.start,"newline"))Object.assign(F,{key:null,sep:[this.sourceToken]});else{let q=l8(F.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:q,key:null,sep:[this.sourceToken]}]})}else if(F.value)D.items.push({start:[],key:null,sep:[this.sourceToken]});else if(D8(F.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:Z,key:null,sep:[this.sourceToken]}]});else if(lQ(F.key)&&!D8(F.sep,"newline")){let q=l8(F.start),X=F.key,J=F.sep;J.push(this.sourceToken),delete F.key,delete F.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:q,key:X,sep:J}]})}else if(Z.length>0)F.sep=F.sep.concat(Z,this.sourceToken);else F.sep.push(this.sourceToken);else if(!F.sep)Object.assign(F,{key:null,sep:[this.sourceToken]});else if(F.value||B)D.items.push({start:Z,key:null,sep:[this.sourceToken]});else if(D8(F.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else F.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let q=this.flowScalar(this.type);if(B||F.value)D.items.push({start:Z,key:q,sep:[]}),this.onKeyLine=!0;else if(F.sep)this.stack.push(q);else Object.assign(F,{key:q,sep:[]}),this.onKeyLine=!0;return}default:{let q=this.startBlockValue(D);if(q){if(P&&q.type!=="block-seq")D.items.push({start:Z});this.stack.push(q);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(D){let F=D.items[D.items.length-1];switch(this.type){case"newline":if(F.value){let P="end"in F.value?F.value.end:void 0;if((Array.isArray(P)?P[P.length-1]:void 0)?.type==="comment")P?.push(this.sourceToken);else D.items.push({start:[this.sourceToken]})}else F.start.push(this.sourceToken);return;case"space":case"comment":if(F.value)D.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(F.start,D.indent)){let B=D.items[D.items.length-2]?.value?.end;if(Array.isArray(B)){Array.prototype.push.apply(B,F.start),B.push(this.sourceToken),D.items.pop();return}}F.start.push(this.sourceToken)}return;case"anchor":case"tag":if(F.value||this.indent<=D.indent)break;F.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==D.indent)break;if(F.value||D8(F.start,"seq-item-ind"))D.items.push({start:[this.sourceToken]});else F.start.push(this.sourceToken);return}if(this.indent>D.indent){let P=this.startBlockValue(D);if(P){this.stack.push(P);return}}yield*this.pop(),yield*this.step()}*flowCollection(D){let F=D.items[D.items.length-1];if(this.type==="flow-error-end"){let P;do yield*this.pop(),P=this.peek(1);while(P&&P.type==="flow-collection")}else if(D.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!F||F.sep)D.items.push({start:[this.sourceToken]});else F.start.push(this.sourceToken);return;case"map-value-ind":if(!F||F.value)D.items.push({start:[],key:null,sep:[this.sourceToken]});else if(F.sep)F.sep.push(this.sourceToken);else Object.assign(F,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!F||F.value)D.items.push({start:[this.sourceToken]});else if(F.sep)F.sep.push(this.sourceToken);else F.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let B=this.flowScalar(this.type);if(!F||F.value)D.items.push({start:[],key:B,sep:[]});else if(F.sep)this.stack.push(B);else Object.assign(F,{key:B,sep:[]});return}case"flow-map-end":case"flow-seq-end":D.end.push(this.sourceToken);return}let P=this.startBlockValue(D);if(P)this.stack.push(P);else yield*this.pop(),yield*this.step()}else{let P=this.peek(2);if(P.type==="block-map"&&(this.type==="map-value-ind"&&P.indent===D.indent||this.type==="newline"&&!P.items[P.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&P.type!=="flow-collection"){let B=p5(P),Z=l8(B);mQ(D);let q=D.end.splice(1,D.end.length);q.push(this.sourceToken);let X={type:"block-map",offset:D.offset,indent:D.indent,items:[{start:Z,key:D,sep:q}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=X}else yield*this.lineEnd(D)}}flowScalar(D){if(this.onNewLine){let F=this.source.indexOf(`
356
356
  `)+1;while(F!==0)this.onNewLine(this.offset+F),F=this.source.indexOf(`
357
- `,F)+1}return{type:D,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(D){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let F=p5(D),P=m8(F);return P.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:P,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let F=p5(D),P=m8(F);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:P,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(D,F){if(this.type!=="comment")return!1;if(this.indent<=F)return!1;return D.every((P)=>P.type==="newline"||P.type==="space")}*documentEnd(D){if(this.type!=="doc-mode"){if(D.end)D.end.push(this.sourceToken);else D.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(D){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if(D.end)D.end.push(this.sourceToken);else D.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}ng.Parser=cQ});var sQ=Q((Zy)=>{var dQ=CP(),og=H6(),G6=U6(),tg=_F(),eg=i(),Dy=_P(),pQ=kP();function rQ(D){let F=D.prettyErrors!==!1;return{lineCounter:D.lineCounter||F&&new Dy.LineCounter||null,prettyErrors:F}}function Fy(D,F={}){let{lineCounter:P,prettyErrors:B}=rQ(F),Z=new pQ.Parser(P?.addNewLine),q=new dQ.Composer(F),X=Array.from(q.compose(Z.parse(D)));if(B&&P)for(let J of X)J.errors.forEach(G6.prettifyError(D,P)),J.warnings.forEach(G6.prettifyError(D,P));if(X.length>0)return X;return Object.assign([],{empty:!0},q.streamInfo())}function aQ(D,F={}){let{lineCounter:P,prettyErrors:B}=rQ(F),Z=new pQ.Parser(P?.addNewLine),q=new dQ.Composer(F),X=null;for(let J of q.compose(Z.parse(D),!0,D.length))if(!X)X=J;else if(X.options.logLevel!=="silent"){X.errors.push(new G6.YAMLParseError(J.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(B&&P)X.errors.forEach(G6.prettifyError(D,P)),X.warnings.forEach(G6.prettifyError(D,P));return X}function Py(D,F,P){let B=void 0;if(typeof F==="function")B=F;else if(P===void 0&&F&&typeof F==="object")P=F;let Z=aQ(D,P);if(!Z)return null;if(Z.warnings.forEach((q)=>tg.warn(Z.options.logLevel,q)),Z.errors.length>0)if(Z.options.logLevel!=="silent")throw Z.errors[0];else Z.errors=[];return Z.toJS(Object.assign({reviver:B},P))}function By(D,F,P){let B=null;if(typeof F==="function"||Array.isArray(F))B=F;else if(P===void 0&&F)P=F;if(typeof P==="string")P=P.length;if(typeof P==="number"){let Z=Math.round(P);P=Z<1?void 0:Z>8?{indent:8}:{indent:Z}}if(D===void 0){let{keepUndefined:Z}=P??F??{};if(!Z)return}if(eg.isDocument(D)&&!B)return D.toString(P);return new og.Document(D,B,P).toString(P)}Zy.parse=Py;Zy.parseAllDocuments=Fy;Zy.parseDocument=aQ;Zy.stringify=By});var iQ=Q((Ey)=>{var Hy=CP(),Uy=H6(),Wy=JP(),xP=U6(),Oy=n1(),K2=i(),zy=R2(),Qy=ED(),Gy=$2(),Ry=M2(),Iy=c5(),$y=uP(),My=_P(),Ky=kP(),r5=sQ(),nQ=a1();Ey.Composer=Hy.Composer;Ey.Document=Uy.Document;Ey.Schema=Wy.Schema;Ey.YAMLError=xP.YAMLError;Ey.YAMLParseError=xP.YAMLParseError;Ey.YAMLWarning=xP.YAMLWarning;Ey.Alias=Oy.Alias;Ey.isAlias=K2.isAlias;Ey.isCollection=K2.isCollection;Ey.isDocument=K2.isDocument;Ey.isMap=K2.isMap;Ey.isNode=K2.isNode;Ey.isPair=K2.isPair;Ey.isScalar=K2.isScalar;Ey.isSeq=K2.isSeq;Ey.Pair=zy.Pair;Ey.Scalar=Qy.Scalar;Ey.YAMLMap=Gy.YAMLMap;Ey.YAMLSeq=Ry.YAMLSeq;Ey.CST=Iy;Ey.Lexer=$y.Lexer;Ey.LineCounter=My.LineCounter;Ey.Parser=Ky.Parser;Ey.parse=r5.parse;Ey.parseAllDocuments=r5.parseAllDocuments;Ey.parseDocument=r5.parseDocument;Ey.stringify=r5.stringify;Ey.visit=nQ.visit;Ey.visitAsync=nQ.visitAsync});var $6={name:"@samarium.sdk/new",version:"0.20.0",main:"bin/samarium",type:"module",repository:{type:"git",url:"https://github.com/liontariai/samarium",directory:"packages/new"},keywords:["graphql","typescript","compiler","api","sdk","openapi","oas3","oas3.1","swagger","graphql-sdk","graphql-codegen"],homepage:"https://liontari.ai",bin:{samarium:"bin/samarium"},publishConfig:{access:"public"},files:["bin/**/*","README.md","package.json"],scripts:{prettier:"prettier --write .",bundle:"bun bundle.js",prepublishOnly:"bun run bundle",test:"bun test"},prettier:{tabWidth:4},devDependencies:{"bun-types":"^1.1.29","@samarium.sdk/make":"workspace:*"},peerDependencies:{typescript:"^5.0.0"},dependencies:{"@inquirer/prompts":"^5.0.5",commander:"^11.1.0","detect-indent":"^7.0.1",prettier:"^3.2.5",yaml:"^2.6.0"}};var XB=UD(qB(),1),{program:Hm,createCommand:Um,createArgument:Wm,createOption:Om,CommanderError:zm,InvalidArgumentError:Qm,InvalidOptionArgumentError:Gm,Command:JB,Argument:Rm,Option:Im,Help:$m}=XB.default;var RU=UD(u0(),1);var A3=UD(u0(),1);class Z2 extends Error{response;request;constructor(D,F){let P=`${Z2.extractMessage(D)}: ${JSON.stringify({response:D,request:F})}`;super(P);if(Object.setPrototypeOf(this,Z2.prototype),this.response=D,this.request=F,typeof Error.captureStackTrace==="function")Error.captureStackTrace(this,Z2)}static extractMessage(D){return D.errors?.[0]?.message??`GraphQL Error (Code: ${String(D.status)})`}}var C7=(D)=>D.toUpperCase(),R3=(D)=>{return typeof D==="function"?D():D},L7=(D,F)=>D.map((P,B)=>[P,F[B]]),v2=(D)=>{let F={};if(D instanceof Headers)F=oS(D);else if(Array.isArray(D))D.forEach(([P,B])=>{if(P&&B!==void 0)F[P]=B});else if(D)F=D;return F},oS=(D)=>{let F={};return D.forEach((P,B)=>{F[B]=P}),F},BU=(D)=>{try{let F=D();if(tS(F))return F.catch((P)=>{return PU(P)});return F}catch(F){return PU(F)}},PU=(D)=>{if(D instanceof Error)return D;return new Error(String(D))},tS=(D)=>{return typeof D==="object"&&D!==null&&"then"in D&&typeof D.then==="function"&&"catch"in D&&typeof D.catch==="function"&&"finally"in D&&typeof D.finally==="function"},I3=(D)=>{throw new Error(`Unhandled case: ${String(D)}`)},T1=(D)=>{return typeof D==="object"&&D!==null&&!Array.isArray(D)};var ZU=(D,F)=>{return D.documents?D:{documents:D,requestHeaders:F,signal:void 0}};var qU=(D,F,P)=>{return D.query?D:{query:D,variables:F,requestHeaders:P,signal:void 0}};var YU=UD(u0(),1);var w7="Accept",$3="Content-Type",N1="application/json",M3="application/graphql-response+json";var V7=(D)=>D.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),HU=(D)=>{let F=D.toLowerCase();return F.includes(M3)||F.includes(N1)},j7=(D)=>{try{if(Array.isArray(D))return{_tag:"Batch",executionResults:D.map(XU)};else if(T1(D))return{_tag:"Single",executionResult:XU(D)};else throw new Error(`Invalid execution result: result is not object or array.
357
+ `,F)+1}return{type:D,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(D){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let F=p5(D),P=l8(F);return P.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:P,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let F=p5(D),P=l8(F);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:P,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(D,F){if(this.type!=="comment")return!1;if(this.indent<=F)return!1;return D.every((P)=>P.type==="newline"||P.type==="space")}*documentEnd(D){if(this.type!=="doc-mode"){if(D.end)D.end.push(this.sourceToken);else D.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(D){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if(D.end)D.end.push(this.sourceToken);else D.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}ng.Parser=cQ});var sQ=Q((Zy)=>{var dQ=CP(),og=H6(),G6=U6(),tg=_F(),eg=i(),Dy=_P(),pQ=kP();function rQ(D){let F=D.prettyErrors!==!1;return{lineCounter:D.lineCounter||F&&new Dy.LineCounter||null,prettyErrors:F}}function Fy(D,F={}){let{lineCounter:P,prettyErrors:B}=rQ(F),Z=new pQ.Parser(P?.addNewLine),q=new dQ.Composer(F),X=Array.from(q.compose(Z.parse(D)));if(B&&P)for(let J of X)J.errors.forEach(G6.prettifyError(D,P)),J.warnings.forEach(G6.prettifyError(D,P));if(X.length>0)return X;return Object.assign([],{empty:!0},q.streamInfo())}function aQ(D,F={}){let{lineCounter:P,prettyErrors:B}=rQ(F),Z=new pQ.Parser(P?.addNewLine),q=new dQ.Composer(F),X=null;for(let J of q.compose(Z.parse(D),!0,D.length))if(!X)X=J;else if(X.options.logLevel!=="silent"){X.errors.push(new G6.YAMLParseError(J.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(B&&P)X.errors.forEach(G6.prettifyError(D,P)),X.warnings.forEach(G6.prettifyError(D,P));return X}function Py(D,F,P){let B=void 0;if(typeof F==="function")B=F;else if(P===void 0&&F&&typeof F==="object")P=F;let Z=aQ(D,P);if(!Z)return null;if(Z.warnings.forEach((q)=>tg.warn(Z.options.logLevel,q)),Z.errors.length>0)if(Z.options.logLevel!=="silent")throw Z.errors[0];else Z.errors=[];return Z.toJS(Object.assign({reviver:B},P))}function By(D,F,P){let B=null;if(typeof F==="function"||Array.isArray(F))B=F;else if(P===void 0&&F)P=F;if(typeof P==="string")P=P.length;if(typeof P==="number"){let Z=Math.round(P);P=Z<1?void 0:Z>8?{indent:8}:{indent:Z}}if(D===void 0){let{keepUndefined:Z}=P??F??{};if(!Z)return}if(eg.isDocument(D)&&!B)return D.toString(P);return new og.Document(D,B,P).toString(P)}Zy.parse=Py;Zy.parseAllDocuments=Fy;Zy.parseDocument=aQ;Zy.stringify=By});var iQ=Q((Ey)=>{var Hy=CP(),Uy=H6(),Wy=JP(),xP=U6(),Oy=n1(),K2=i(),zy=R2(),Qy=ED(),Gy=$2(),Ry=M2(),Iy=c5(),$y=uP(),My=_P(),Ky=kP(),r5=sQ(),nQ=a1();Ey.Composer=Hy.Composer;Ey.Document=Uy.Document;Ey.Schema=Wy.Schema;Ey.YAMLError=xP.YAMLError;Ey.YAMLParseError=xP.YAMLParseError;Ey.YAMLWarning=xP.YAMLWarning;Ey.Alias=Oy.Alias;Ey.isAlias=K2.isAlias;Ey.isCollection=K2.isCollection;Ey.isDocument=K2.isDocument;Ey.isMap=K2.isMap;Ey.isNode=K2.isNode;Ey.isPair=K2.isPair;Ey.isScalar=K2.isScalar;Ey.isSeq=K2.isSeq;Ey.Pair=zy.Pair;Ey.Scalar=Qy.Scalar;Ey.YAMLMap=Gy.YAMLMap;Ey.YAMLSeq=Ry.YAMLSeq;Ey.CST=Iy;Ey.Lexer=$y.Lexer;Ey.LineCounter=My.LineCounter;Ey.Parser=Ky.Parser;Ey.parse=r5.parse;Ey.parseAllDocuments=r5.parseAllDocuments;Ey.parseDocument=r5.parseDocument;Ey.stringify=r5.stringify;Ey.visit=nQ.visit;Ey.visitAsync=nQ.visitAsync});var $6={name:"@samarium.sdk/new",version:"0.21.1",main:"bin/samarium",type:"module",repository:{type:"git",url:"https://github.com/liontariai/samarium",directory:"packages/new"},keywords:["graphql","typescript","compiler","api","sdk","openapi","oas3","oas3.1","swagger","graphql-sdk","graphql-codegen"],homepage:"https://liontari.ai",bin:{samarium:"bin/samarium"},publishConfig:{access:"public"},files:["bin/**/*","README.md","package.json"],scripts:{prettier:"prettier --write .",bundle:"bun bundle.js",prepublishOnly:"bun run bundle",test:"bun test"},prettier:{tabWidth:4},devDependencies:{"bun-types":"^1.1.29","@samarium.sdk/make":"workspace:*"},peerDependencies:{typescript:"^5.0.0"},dependencies:{"@inquirer/prompts":"^5.0.5",commander:"^11.1.0","detect-indent":"^7.0.1",prettier:"^3.2.5",yaml:"^2.6.0"}};var XB=UD(qB(),1),{program:Hm,createCommand:Um,createArgument:Wm,createOption:Om,CommanderError:zm,InvalidArgumentError:Qm,InvalidOptionArgumentError:Gm,Command:JB,Argument:Rm,Option:Im,Help:$m}=XB.default;var RU=UD(u0(),1);var A3=UD(u0(),1);class Z2 extends Error{response;request;constructor(D,F){let P=`${Z2.extractMessage(D)}: ${JSON.stringify({response:D,request:F})}`;super(P);if(Object.setPrototypeOf(this,Z2.prototype),this.response=D,this.request=F,typeof Error.captureStackTrace==="function")Error.captureStackTrace(this,Z2)}static extractMessage(D){return D.errors?.[0]?.message??`GraphQL Error (Code: ${String(D.status)})`}}var C7=(D)=>D.toUpperCase(),R3=(D)=>{return typeof D==="function"?D():D},L7=(D,F)=>D.map((P,B)=>[P,F[B]]),v2=(D)=>{let F={};if(D instanceof Headers)F=oS(D);else if(Array.isArray(D))D.forEach(([P,B])=>{if(P&&B!==void 0)F[P]=B});else if(D)F=D;return F},oS=(D)=>{let F={};return D.forEach((P,B)=>{F[B]=P}),F},BU=(D)=>{try{let F=D();if(tS(F))return F.catch((P)=>{return PU(P)});return F}catch(F){return PU(F)}},PU=(D)=>{if(D instanceof Error)return D;return new Error(String(D))},tS=(D)=>{return typeof D==="object"&&D!==null&&"then"in D&&typeof D.then==="function"&&"catch"in D&&typeof D.catch==="function"&&"finally"in D&&typeof D.finally==="function"},I3=(D)=>{throw new Error(`Unhandled case: ${String(D)}`)},N1=(D)=>{return typeof D==="object"&&D!==null&&!Array.isArray(D)};var ZU=(D,F)=>{return D.documents?D:{documents:D,requestHeaders:F,signal:void 0}};var qU=(D,F,P)=>{return D.query?D:{query:D,variables:F,requestHeaders:P,signal:void 0}};var YU=UD(u0(),1);var w7="Accept",$3="Content-Type",u1="application/json",M3="application/graphql-response+json";var V7=(D)=>D.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),HU=(D)=>{let F=D.toLowerCase();return F.includes(M3)||F.includes(u1)},j7=(D)=>{try{if(Array.isArray(D))return{_tag:"Batch",executionResults:D.map(XU)};else if(N1(D))return{_tag:"Single",executionResult:XU(D)};else throw new Error(`Invalid execution result: result is not object or array.
358
358
  Got:
359
- ${String(D)}`)}catch(F){return F}},XU=(D)=>{if(typeof D!=="object"||D===null)throw new Error("Invalid execution result: result is not object");let F=void 0,P=void 0,B=void 0;if("errors"in D){if(!T1(D.errors)&&!Array.isArray(D.errors))throw new Error("Invalid execution result: errors is not plain object OR array");F=D.errors}if("data"in D){if(!T1(D.data)&&D.data!==null)throw new Error("Invalid execution result: data is not plain object");P=D.data}if("extensions"in D){if(!T1(D.extensions))throw new Error("Invalid execution result: extensions is not plain object");B=D.extensions}return{data:P,errors:F,extensions:B}},UU=(D)=>D._tag==="Batch"?D.executionResults.some(JU):JU(D.executionResult),JU=(D)=>Array.isArray(D.errors)?D.errors.length>0:Boolean(D.errors),b7=(D)=>{return typeof D==="object"&&D!==null&&"kind"in D&&D.kind===YU.Kind.OPERATION_DEFINITION};var WU=UD(u0(),1),OU=UD(u0(),1),zU=UD(u0(),1),eS=(D)=>{let F=void 0,P=D.definitions.filter(b7);if(P.length===1)F=P[0].name?.value;return F},DT=(D)=>{let F=!1,P=D.definitions.filter(b7);if(P.length===1)F=P[0].operation===WU.OperationTypeNode.MUTATION;return F},u1=(D,F)=>{let P=typeof D==="string"?D:zU.print(D),B=!1,Z=void 0;if(F)return{expression:P,isMutation:B,operationName:Z};let q=BU(()=>typeof D==="string"?OU.parse(D):D);if(q instanceof Error)return{expression:P,isMutation:B,operationName:Z};return Z=eS(q),B=DT(q),{expression:P,operationName:Z,isMutation:B}};var K3=JSON;var E3=async(D)=>{let F={...D,method:D.request._tag==="Single"?D.request.document.isMutation?"POST":C7(D.method??"post"):D.request.hasMutations?"POST":C7(D.method??"post"),fetchOptions:{...D.fetchOptions,errorPolicy:D.fetchOptions.errorPolicy??"none"}},B=await PT(F.method)(F);if(!B.ok)return new Z2({status:B.status,headers:B.headers},{query:D.request._tag==="Single"?D.request.document.expression:D.request.query,variables:D.request.variables});let Z=await FT(B,D.fetchOptions.jsonSerializer??K3);if(Z instanceof Error)throw Z;let q={status:B.status,headers:B.headers};if(UU(Z)&&F.fetchOptions.errorPolicy==="none"){let X=Z._tag==="Batch"?{...Z.executionResults,...q}:{...Z.executionResult,...q};return new Z2(X,{query:D.request._tag==="Single"?D.request.document.expression:D.request.query,variables:D.request.variables})}switch(Z._tag){case"Single":return{...q,...QU(F)(Z.executionResult)};case"Batch":return{...q,data:Z.executionResults.map(QU(F))};default:I3(Z)}},QU=(D)=>(F)=>{return{extensions:F.extensions,data:F.data,errors:D.fetchOptions.errorPolicy==="all"?F.errors:void 0}},FT=async(D,F)=>{let P=D.headers.get($3),B=await D.text();if(P&&HU(P))return j7(F.parse(B));else return j7(B)},PT=(D)=>async(F)=>{let P=new Headers(F.headers),B=null,Z=void 0;if(!P.has(w7))P.set(w7,[M3,N1].join(", "));if(D==="POST"){if(Z=(F.fetchOptions.jsonSerializer??K3).stringify(BT(F)),typeof Z==="string"&&!P.has($3))P.set($3,N1)}else B=ZT(F);let q={method:D,headers:P,body:Z,...F.fetchOptions},X=new URL(F.url),J=q;if(F.middleware){let H=await Promise.resolve(F.middleware({...q,url:F.url,operationName:F.request._tag==="Single"?F.request.document.operationName:void 0,variables:F.request.variables})),{url:W,...U}=H;X=new URL(W),J=U}if(B)B.forEach((H,W)=>{X.searchParams.append(W,H)});return await(F.fetch??fetch)(X,J)},BT=(D)=>{switch(D.request._tag){case"Single":return{query:D.request.document.expression,variables:D.request.variables,operationName:D.request.document.operationName};case"Batch":return L7(D.request.query,D.request.variables??[]).map(([F,P])=>({query:F,variables:P}));default:throw I3(D.request)}},ZT=(D)=>{let F=D.fetchOptions.jsonSerializer??K3,P=new URLSearchParams;switch(D.request._tag){case"Single":{if(P.append("query",V7(D.request.document.expression)),D.request.variables)P.append("variables",F.stringify(D.request.variables));if(D.request.document.operationName)P.append("operationName",D.request.document.operationName);return P}case"Batch":{let B=D.request.variables?.map((X)=>F.stringify(X))??[],Z=D.request.query.map(V7),q=L7(Z,B).map(([X,J])=>({query:X,variables:J}));return P.append("query",F.stringify(q)),P}default:throw I3(D.request)}};class g2{url;requestConfig;constructor(D,F={}){this.url=D,this.requestConfig=F}rawRequest=async(...D)=>{let[F,P,B]=D,Z=qU(F,P,B),{headers:q,fetch:X=globalThis.fetch,method:J="POST",requestMiddleware:Y,responseMiddleware:H,excludeOperationName:W,...U}=this.requestConfig,{url:O}=this;if(Z.signal!==void 0)U.signal=Z.signal;let z=u1(Z.query,W),I=await E3({url:O,request:{_tag:"Single",document:z,variables:Z.variables},headers:{...v2(R3(q)),...v2(Z.requestHeaders)},fetch:X,method:J,fetchOptions:U,middleware:Y});if(H)await H(I,{operationName:z.operationName,variables:P,url:this.url});if(I instanceof Error)throw I;return I};async request(D,...F){let[P,B]=F,Z=GU(D,P,B),{headers:q,fetch:X=globalThis.fetch,method:J="POST",requestMiddleware:Y,responseMiddleware:H,excludeOperationName:W,...U}=this.requestConfig,{url:O}=this;if(Z.signal!==void 0)U.signal=Z.signal;let z=u1(Z.document,W),I=await E3({url:O,request:{_tag:"Single",document:z,variables:Z.variables},headers:{...v2(R3(q)),...v2(Z.requestHeaders)},fetch:X,method:J,fetchOptions:U,middleware:Y});if(H)await H(I,{operationName:z.operationName,variables:Z.variables,url:this.url});if(I instanceof Error)throw I;return I.data}async batchRequests(D,F){let P=ZU(D,F),{headers:B,excludeOperationName:Z,...q}=this.requestConfig;if(P.signal!==void 0)q.signal=P.signal;let X=P.documents.map(({document:U})=>u1(U,Z)),J=X.map(({expression:U})=>U),Y=X.some(({isMutation:U})=>U),H=P.documents.map(({variables:U})=>U),W=await E3({url:this.url,request:{_tag:"Batch",operationName:void 0,query:J,hasMutations:Y,variables:H},headers:{...v2(R3(B)),...v2(P.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:q,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware)await this.requestConfig.responseMiddleware(W,{operationName:void 0,variables:H,url:this.url});if(W instanceof Error)throw W;return W.data}setHeaders(D){return this.requestConfig.headers=D,this}setHeader(D,F){let{headers:P}=this.requestConfig;if(P)P[D]=F;else this.requestConfig.headers={[D]:F};return this}setEndpoint(D){return this.url=D,this}}var GU=(D,F,P)=>{return D.document?D:{document:D,variables:F,requestHeaders:P,signal:void 0}};async function y2(D,F){try{let B=await new g2(D).request(A3.getIntrospectionQuery(),void 0,new Headers(F?.map((q)=>q.split("="))));return A3.buildClientSchema(B)}catch(P){throw P}}import qT from"fs";var S7=async(D,F)=>{let P=await y2(D.url,D.headers),B=RU.printSchema(P);qT.writeFileSync(F,B)};var C3=UD(u0(),1),L3=UD(u0(),1),MD=UD(u0(),1),XT=Object.defineProperty,$U=(D,F)=>{for(var P in F)XT(D,P,{get:F[P],enumerable:!0,configurable:!0,set:(B)=>F[P]=()=>B})};class MU{collector;options;authConfig;static FieldValueWrapperType;static EnumTypesMapped;static HelperTypes;static HelperFunctions;typeMeta;typeName;originalFullTypeName;constructor(D,F,P,B){this.collector=F,this.options=P,this.authConfig=B,this.typeMeta=F.getType(D),this.originalFullTypeName=D,this.typeName=this.originalTypeNameToTypescriptFriendlyName(D)}originalTypeNameToTypescriptFriendlyName(D){return D.replaceAll("[","").replaceAll("]","Array").replaceAll("!","NotNull")}originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F=""){return`${D.replaceAll("[","").replaceAll("]","").replaceAll("!","")}${F}`}originalTypeNameToTypescriptTypeName(D,F=""){return`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F)}${Array.from({length:D.split("[").length-1}).fill("[]").join("")}`}static makeRootOperationFunction(D){throw new Error("Method not implemented.")}}var JT=`const Proxy = global.Proxy;
359
+ ${String(D)}`)}catch(F){return F}},XU=(D)=>{if(typeof D!=="object"||D===null)throw new Error("Invalid execution result: result is not object");let F=void 0,P=void 0,B=void 0;if("errors"in D){if(!N1(D.errors)&&!Array.isArray(D.errors))throw new Error("Invalid execution result: errors is not plain object OR array");F=D.errors}if("data"in D){if(!N1(D.data)&&D.data!==null)throw new Error("Invalid execution result: data is not plain object");P=D.data}if("extensions"in D){if(!N1(D.extensions))throw new Error("Invalid execution result: extensions is not plain object");B=D.extensions}return{data:P,errors:F,extensions:B}},UU=(D)=>D._tag==="Batch"?D.executionResults.some(JU):JU(D.executionResult),JU=(D)=>Array.isArray(D.errors)?D.errors.length>0:Boolean(D.errors),b7=(D)=>{return typeof D==="object"&&D!==null&&"kind"in D&&D.kind===YU.Kind.OPERATION_DEFINITION};var WU=UD(u0(),1),OU=UD(u0(),1),zU=UD(u0(),1),eS=(D)=>{let F=void 0,P=D.definitions.filter(b7);if(P.length===1)F=P[0].name?.value;return F},DT=(D)=>{let F=!1,P=D.definitions.filter(b7);if(P.length===1)F=P[0].operation===WU.OperationTypeNode.MUTATION;return F},_1=(D,F)=>{let P=typeof D==="string"?D:zU.print(D),B=!1,Z=void 0;if(F)return{expression:P,isMutation:B,operationName:Z};let q=BU(()=>typeof D==="string"?OU.parse(D):D);if(q instanceof Error)return{expression:P,isMutation:B,operationName:Z};return Z=eS(q),B=DT(q),{expression:P,operationName:Z,isMutation:B}};var K3=JSON;var E3=async(D)=>{let F={...D,method:D.request._tag==="Single"?D.request.document.isMutation?"POST":C7(D.method??"post"):D.request.hasMutations?"POST":C7(D.method??"post"),fetchOptions:{...D.fetchOptions,errorPolicy:D.fetchOptions.errorPolicy??"none"}},B=await PT(F.method)(F);if(!B.ok)return new Z2({status:B.status,headers:B.headers},{query:D.request._tag==="Single"?D.request.document.expression:D.request.query,variables:D.request.variables});let Z=await FT(B,D.fetchOptions.jsonSerializer??K3);if(Z instanceof Error)throw Z;let q={status:B.status,headers:B.headers};if(UU(Z)&&F.fetchOptions.errorPolicy==="none"){let X=Z._tag==="Batch"?{...Z.executionResults,...q}:{...Z.executionResult,...q};return new Z2(X,{query:D.request._tag==="Single"?D.request.document.expression:D.request.query,variables:D.request.variables})}switch(Z._tag){case"Single":return{...q,...QU(F)(Z.executionResult)};case"Batch":return{...q,data:Z.executionResults.map(QU(F))};default:I3(Z)}},QU=(D)=>(F)=>{return{extensions:F.extensions,data:F.data,errors:D.fetchOptions.errorPolicy==="all"?F.errors:void 0}},FT=async(D,F)=>{let P=D.headers.get($3),B=await D.text();if(P&&HU(P))return j7(F.parse(B));else return j7(B)},PT=(D)=>async(F)=>{let P=new Headers(F.headers),B=null,Z=void 0;if(!P.has(w7))P.set(w7,[M3,u1].join(", "));if(D==="POST"){if(Z=(F.fetchOptions.jsonSerializer??K3).stringify(BT(F)),typeof Z==="string"&&!P.has($3))P.set($3,u1)}else B=ZT(F);let q={method:D,headers:P,body:Z,...F.fetchOptions},X=new URL(F.url),J=q;if(F.middleware){let H=await Promise.resolve(F.middleware({...q,url:F.url,operationName:F.request._tag==="Single"?F.request.document.operationName:void 0,variables:F.request.variables})),{url:W,...U}=H;X=new URL(W),J=U}if(B)B.forEach((H,W)=>{X.searchParams.append(W,H)});return await(F.fetch??fetch)(X,J)},BT=(D)=>{switch(D.request._tag){case"Single":return{query:D.request.document.expression,variables:D.request.variables,operationName:D.request.document.operationName};case"Batch":return L7(D.request.query,D.request.variables??[]).map(([F,P])=>({query:F,variables:P}));default:throw I3(D.request)}},ZT=(D)=>{let F=D.fetchOptions.jsonSerializer??K3,P=new URLSearchParams;switch(D.request._tag){case"Single":{if(P.append("query",V7(D.request.document.expression)),D.request.variables)P.append("variables",F.stringify(D.request.variables));if(D.request.document.operationName)P.append("operationName",D.request.document.operationName);return P}case"Batch":{let B=D.request.variables?.map((X)=>F.stringify(X))??[],Z=D.request.query.map(V7),q=L7(Z,B).map(([X,J])=>({query:X,variables:J}));return P.append("query",F.stringify(q)),P}default:throw I3(D.request)}};class g2{url;requestConfig;constructor(D,F={}){this.url=D,this.requestConfig=F}rawRequest=async(...D)=>{let[F,P,B]=D,Z=qU(F,P,B),{headers:q,fetch:X=globalThis.fetch,method:J="POST",requestMiddleware:Y,responseMiddleware:H,excludeOperationName:W,...U}=this.requestConfig,{url:O}=this;if(Z.signal!==void 0)U.signal=Z.signal;let z=_1(Z.query,W),I=await E3({url:O,request:{_tag:"Single",document:z,variables:Z.variables},headers:{...v2(R3(q)),...v2(Z.requestHeaders)},fetch:X,method:J,fetchOptions:U,middleware:Y});if(H)await H(I,{operationName:z.operationName,variables:P,url:this.url});if(I instanceof Error)throw I;return I};async request(D,...F){let[P,B]=F,Z=GU(D,P,B),{headers:q,fetch:X=globalThis.fetch,method:J="POST",requestMiddleware:Y,responseMiddleware:H,excludeOperationName:W,...U}=this.requestConfig,{url:O}=this;if(Z.signal!==void 0)U.signal=Z.signal;let z=_1(Z.document,W),I=await E3({url:O,request:{_tag:"Single",document:z,variables:Z.variables},headers:{...v2(R3(q)),...v2(Z.requestHeaders)},fetch:X,method:J,fetchOptions:U,middleware:Y});if(H)await H(I,{operationName:z.operationName,variables:Z.variables,url:this.url});if(I instanceof Error)throw I;return I.data}async batchRequests(D,F){let P=ZU(D,F),{headers:B,excludeOperationName:Z,...q}=this.requestConfig;if(P.signal!==void 0)q.signal=P.signal;let X=P.documents.map(({document:U})=>_1(U,Z)),J=X.map(({expression:U})=>U),Y=X.some(({isMutation:U})=>U),H=P.documents.map(({variables:U})=>U),W=await E3({url:this.url,request:{_tag:"Batch",operationName:void 0,query:J,hasMutations:Y,variables:H},headers:{...v2(R3(B)),...v2(P.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:q,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware)await this.requestConfig.responseMiddleware(W,{operationName:void 0,variables:H,url:this.url});if(W instanceof Error)throw W;return W.data}setHeaders(D){return this.requestConfig.headers=D,this}setHeader(D,F){let{headers:P}=this.requestConfig;if(P)P[D]=F;else this.requestConfig.headers={[D]:F};return this}setEndpoint(D){return this.url=D,this}}var GU=(D,F,P)=>{return D.document?D:{document:D,variables:F,requestHeaders:P,signal:void 0}};async function y2(D,F){try{let B=await new g2(D).request(A3.getIntrospectionQuery(),void 0,new Headers(F?.map((q)=>q.split("="))));return A3.buildClientSchema(B)}catch(P){throw P}}import qT from"fs";var S7=async(D,F)=>{let P=await y2(D.url,D.headers),B=RU.printSchema(P);qT.writeFileSync(F,B)};var C3=UD(u0(),1),L3=UD(u0(),1),MD=UD(u0(),1),XT=Object.defineProperty,$U=(D,F)=>{for(var P in F)XT(D,P,{get:F[P],enumerable:!0,configurable:!0,set:(B)=>F[P]=()=>B})};class MU{collector;options;authConfig;static FieldValueWrapperType;static EnumTypesMapped;static HelperTypes;static HelperFunctions;typeMeta;typeName;originalFullTypeName;constructor(D,F,P,B){this.collector=F,this.options=P,this.authConfig=B,this.typeMeta=F.getType(D),this.originalFullTypeName=D,this.typeName=this.originalTypeNameToTypescriptFriendlyName(D)}originalTypeNameToTypescriptFriendlyName(D){return D.replaceAll("[","").replaceAll("]","Array").replaceAll("!","NotNull")}originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F=""){return`${D.replaceAll("[","").replaceAll("]","").replaceAll("!","")}${F}`}originalTypeNameToTypescriptTypeName(D,F=""){return`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F)}${Array.from({length:D.split("[").length-1}).fill("[]").join("")}`}static makeRootOperationFunction(D){throw new Error("Method not implemented.")}}var JT=`const Proxy = global.Proxy;
360
360
  Proxy.prototype = {};
361
361
 
362
362
  type FnOrPromisOrPrimitive =
@@ -414,7 +414,8 @@ export class RootOperation {
414
414
  public static [OPTIONS] = {
415
415
  headers: {},
416
416
  fetcher: undefined as unknown as (
417
- request: Request,
417
+ input: string | URL | globalThis.Request,
418
+ init?: RequestInit,
418
419
  ) => Promise<Response>,
419
420
  _auth_fn: undefined as
420
421
  | (() => string | { [key: string]: string })
@@ -542,19 +543,19 @@ export class RootOperation {
542
543
  },
543
544
  headers: Record<string, string> = {},
544
545
  ) {
545
- const request = new Request("[ENDPOINT]", {
546
- method: "POST",
547
- headers: {
548
- "Content-Type": "application/json",
549
- ...headers,
550
- },
551
- body: JSON.stringify({
552
- query: \`\${[...query.fragments.values()].join("\\n")}\\n \${query.query}\`.trim(),
553
- variables: query.variables,
554
- }),
555
- });
556
546
  const res = await (RootOperation[OPTIONS].fetcher ?? globalThis.fetch)(
557
- request,
547
+ "[ENDPOINT]",
548
+ {
549
+ method: "POST",
550
+ headers: {
551
+ "Content-Type": "application/json",
552
+ ...headers,
553
+ },
554
+ body: JSON.stringify({
555
+ query: \`\${[...query.fragments.values()].join("\\n")}\\n \${query.query}\`.trim(),
556
+ variables: query.variables,
557
+ }),
558
+ },
558
559
  );
559
560
  const result = (await res.json()) as { data: any; errors: any[] };
560
561
 
@@ -1401,7 +1402,7 @@ export class SelectionWrapper<
1401
1402
  `)}
1402
1403
  };`};static HelperTypes=(D)=>`
1403
1404
  export interface ScalarTypeMapWithCustom {
1404
- ${D.map((F)=>`"${F.name}": ${F.scalarTSType};`).join(`
1405
+ ${D.map((F)=>`"${F.name.replaceAll("!","")}": ${F.scalarTSType?.replaceAll("!","")};`).filter((F,P,B)=>B.findIndex((Z)=>Z===F)===P).join(`
1405
1406
  `)}
1406
1407
  }
1407
1408
  export interface ScalarTypeMapDefault {
@@ -1840,7 +1841,10 @@ export class SelectionWrapper<
1840
1841
  const __init__ = (options: {
1841
1842
  ${F?"auth?: FnOrPromisOrPrimitive;":""}
1842
1843
  headers?: { [key: string]: string };
1843
- fetcher?: (request: Request) => Promise<Response>;
1844
+ fetcher?: (
1845
+ input: string | URL | globalThis.Request,
1846
+ init?: RequestInit,
1847
+ ) => Promise<Response>;
1844
1848
  scalars?: {
1845
1849
  [key in keyof ScalarTypeMapDefault]?: (
1846
1850
  v: string,
@@ -2208,7 +2212,7 @@ export class SelectionWrapper<
2208
2212
  };`).join(`
2209
2213
  `)}
2210
2214
  }
2211
- `}}class _1{collector;options;static FieldValueWrapperType;static EnumTypesMapped;static HelperTypes;static HelperFunctions;typeMeta;typeName;originalFullTypeName;constructor(D,F,P){this.collector=F,this.options=P,this.typeMeta=F.getType(D),this.originalFullTypeName=D,this.typeName=this.originalTypeNameToTypescriptFriendlyName(D)}static originalTypeNameToTypescriptFriendlyName(D){return D.replaceAll("[","").replaceAll("]","Array").replaceAll("!","")}originalTypeNameToTypescriptFriendlyName(D){return _1.originalTypeNameToTypescriptFriendlyName(D)}static originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F=""){return`${D.replaceAll("[","").replaceAll("]","").replaceAll("!","")}${F}`}originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F=""){return _1.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F)}static originalTypeNameToTypescriptTypeName(D,F=""){return`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F)}${Array.from({length:D.split("[").length-1}).fill("[]").join("")}`}originalTypeNameToTypescriptTypeName(D,F=""){return _1.originalTypeNameToTypescriptTypeName(D,F)}static makeRootOperationFunction(D,F,P,B){throw new Error("Method not implemented.")}}var YT=`const Proxy = global.Proxy;
2215
+ `}}class $8{collector;options;static FieldValueWrapperType;static EnumTypesMapped;static HelperTypes;static HelperFunctions;typeMeta;typeName;originalFullTypeName;constructor(D,F,P){this.collector=F,this.options=P,this.typeMeta=F.getType(D),this.originalFullTypeName=D,this.typeName=this.originalTypeNameToTypescriptFriendlyName(D)}static reservedKeywords=["import","const","export"];static originalTypeNameToTypescriptFriendlyName(D){if($8.reservedKeywords.includes(D))D=`_${D}`;return D.replaceAll("/","_").replaceAll("[","").replaceAll("]","Array").replaceAll("!","")}originalTypeNameToTypescriptFriendlyName(D){return $8.originalTypeNameToTypescriptFriendlyName(D)}static originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F=""){return`${D.replaceAll("/","_").replaceAll("[","").replaceAll("]","").replaceAll("!","")}${F}`}originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F=""){return $8.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F)}static originalTypeNameToTypescriptTypeName(D,F=""){return`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(D,F)}${Array.from({length:D.split("[").length-1}).fill("[]").join("")}`}originalTypeNameToTypescriptTypeName(D,F=""){return $8.originalTypeNameToTypescriptTypeName(D,F)}static makeRootOperationFunction(D,F,P,B){throw new Error("Method not implemented.")}}var YT=`const Proxy = global.Proxy;
2212
2216
  Proxy.prototype = {};
2213
2217
 
2214
2218
  export const _ = Symbol("_") as any;
@@ -3109,7 +3113,7 @@ export class SelectionWrapper<
3109
3113
  );
3110
3114
  }
3111
3115
  }
3112
- `;class q2 extends _1{collector;options;static ScalarTypeMap=new Map([["String","string"],["Int","number"],["Float","number"],["Boolean","boolean"],["ID","string"],["Date","Date"],["DateTime","Date"],["DateTimeISO","Date"],["Time","Date"],["JSON","Record<string, any>"]]);ScalarTypeMap=()=>new Map([...q2.ScalarTypeMap.entries()]);static FieldValueWrapperType=YT;static EnumTypesMapped=(D)=>{return`export interface EnumTypesMapped {
3116
+ `;class q2 extends $8{collector;options;static ScalarTypeMap=new Map([["String","string"],["Int","number"],["Float","number"],["Boolean","boolean"],["ID","string"],["Date","Date"],["DateTime","Date"],["DateTimeISO","Date"],["Time","Date"],["JSON","Record<string, any>"]]);ScalarTypeMap=()=>new Map([...q2.ScalarTypeMap.entries()]);static FieldValueWrapperType=YT;static EnumTypesMapped=(D)=>{return`export interface EnumTypesMapped {
3113
3117
  ${Array.from(D.enumsTypes.keys()).map((F)=>F.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")).filter((F,P,B)=>B.indexOf(F)===P).map((F)=>`"${F}": ${F},`).join(`
3114
3118
  `)}
3115
3119
  };`};static UnionTypesMapped=(D)=>{return`export interface UnionTypesMapped {
@@ -3455,16 +3459,16 @@ export class SelectionWrapper<
3455
3459
  return _SLFN as ReturnType<SLFN<T, F, N, TNP, TAD>>;
3456
3460
  };
3457
3461
  `;constructor(D,F,P){super(D,F,P);this.collector=F,this.options=P}makeEnumType(){let D=this.originalTypeNameToTypescriptTypeNameWithoutModifiers(this.originalFullTypeName);if(this.typeMeta.enumValues.length===0)console.warn(`Schema contains empty enum: ${this.typeMeta.name}.
3458
- This is not allowed in GraphQL, but it happens. Please check your schema. Code is still generated and will work, but the type is being set to undefined.`);let F=(q)=>{if(!isNaN(Number(q))){if(Number(q)<0)return`minus_${q.slice(1)}`;return`_${q}`}return q.replace(/[^a-zA-Z0-9_]/g,"_").replace(/^[0-9]/,"_$&")},P=this.typeMeta.enumValues.length===0?"undefined":this.typeMeta.enumValues.map((q)=>`"${q.name}"`).join(" | "),B=this.typeMeta.enumValues.map((q)=>`${q.description?`/** ${q.description} */
3462
+ This is not allowed in GraphQL, but it happens. Please check your schema. Code is still generated and will work, but the type is being set to undefined.`);let F=(q)=>{if(!isNaN(Number(q))){let X=Number(q);if(X<0)return`minus_${q.slice(1)}`;return`_${X}`}return q.replace(/[^a-zA-Z0-9_]/g,"_").replace(/^[0-9]/,"_$&")},P=this.typeMeta.enumValues.length===0?"undefined":this.typeMeta.enumValues.map((q)=>`"${q.name}"`).join(" | "),B=this.typeMeta.enumValues.map((q)=>`${q.description?`/** ${q.description.replaceAll("*/","\\*\\/")} */
3459
3463
  `:""}${F(q.name)} = "${q.name}",`).join(`
3460
3464
  `),Z=(q)=>`
3461
3465
  export type ${q} = ${P};
3462
3466
  export enum ${q}Enum {
3463
3467
  ${B}
3464
3468
  };
3465
- `;if(this.collector.hasEnumTypeName(D)&&this.collector.getEnumTypeByName(D)!==Z(D)){let q=0,X=[D];while(this.collector.hasEnumTypeName(X.join("_")))X=[D,(++q).toString()];this.typeMeta.name=X.join("_"),this.collector.addEnumType(this.typeMeta,Z(this.typeMeta.name))}else this.typeMeta.name=D,this.collector.addEnumType(this.typeMeta,Z(D));return D}makeSelectionTypeInputValueForFieldWrapperType(D,F){let P="";if(F.isEnum)P=F.ofType.name.replaceAll("!","").replaceAll("[","").replaceAll("]","");else P=this.ScalarTypeMap().get(F.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??(F.scalarTSType?`ScalarTypeMapWithCustom["${F.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:"any");if(F.isList)return`${Array.from({length:F.isList}).map((B)=>"Array<").join("")}${P}${Array.from({length:F.isList}).map((B)=>">").join("")}`;return P}makeSelectionTypeInputValueForField(D,F=[],P=!1){let B=D.description?`/* ${D.description} */
3469
+ `;if(this.collector.hasEnumTypeName(D)&&this.collector.getEnumTypeByName(D)!==Z(D)){let q=0,X=[D];while(this.collector.hasEnumTypeName(X.join("_")))X=[D,(++q).toString()];this.typeMeta.name=X.join("_"),this.collector.addEnumType(this.typeMeta,Z(this.typeMeta.name))}else this.typeMeta.name=D,this.collector.addEnumType(this.typeMeta,Z(D));return D}makeSelectionTypeInputValueForFieldWrapperType(D,F){let P="";if(F.isEnum)P=F.ofType.name.replaceAll("!","").replaceAll("[","").replaceAll("]","");else P=this.ScalarTypeMap().get(F.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??(F.scalarTSType?`ScalarTypeMapWithCustom["${F.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:"any");if(F.isList)return`${Array.from({length:F.isList}).map((B)=>"Array<").join("")}${P}${Array.from({length:F.isList}).map((B)=>">").join("")}`;return P}makeSelectionTypeInputValueForField(D,F=[],P=!1){let B=D.description?`/* ${D.description.replaceAll("*/","\\*\\/")} */
3466
3470
  `:"";if(D.type.isScalar||D.type.isEnum){let Z=this.makeSelectionTypeInputValueForFieldWrapperType(D.name,D.type);return this.collector.addSelectionType(D.type,Z),`${B}${D.name}${D.type.isNonNull?"":"?"}: ${Z};`}else if(D.type.isUnion&&D.type.possibleTypes.every((Z)=>Z.isScalar||Z.isEnum))return`${B}${D.name}${D.type.isNonNull?"":"?"}: ${Array.from({length:D.type.isList}).map((Z)=>"Array<").join("")}${D.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}
3467
- ${Array.from({length:D.type.isList}).map((Z)=>">").join("")};`;else if(D.type.ofType){let Z=new q2(D.type.ofType.name,this.collector,this.options).makeSelectionType();return`${B}${D.name}${D.type.isNonNull?"":"?"}: ${this.originalTypeNameToTypescriptTypeName(D.type.ofType.name,!D.type.isInput&&D.type.isList?"Array":"").replaceAll("!","")}`}else throw console.error(D.type),new Error(`Unknown type for field ${D.name}: ${D.type.name}`)}makeSelectionType(){if(this.typeMeta.isScalar||this.typeMeta.isEnum)return this.makeSelectionTypeInputValueForFieldWrapperType(this.typeName,this.typeMeta);let D=this.typeMeta.isInput?`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(this.originalFullTypeName)}`:this.typeName;if(this.collector.hasSelectionType(this.typeMeta))return D;let F="";if(this.typeMeta.isUnion){let P=this.typeMeta.possibleTypes.map((B)=>B.isScalar||B.isEnum?this.makeSelectionTypeInputValueForFieldWrapperType(B.name,B):this.typeMeta.isInput?`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(B.name)}`:`${this.originalTypeNameToTypescriptFriendlyName(B.name)}`).join(" | ");F=`
3471
+ ${Array.from({length:D.type.isList}).map((Z)=>">").join("")};`;else if(D.type.ofType){let Z=new q2(D.type.ofType.name,this.collector,this.options).makeSelectionType();return`${B}"${D.name}"${D.type.isNonNull?"":"?"}: ${this.originalTypeNameToTypescriptTypeName(D.type.ofType.name,!D.type.isInput&&D.type.isList?"Array":"").replaceAll("!","")}`}else throw console.error(D.type),new Error(`Unknown type for field "${D.name}": ${D.type.name}`)}makeSelectionType(){if(this.typeMeta.isScalar||this.typeMeta.isEnum)return this.makeSelectionTypeInputValueForFieldWrapperType(this.typeName,this.typeMeta);let D=this.typeMeta.isInput?`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(this.originalFullTypeName)}`:this.typeName;if(this.collector.hasSelectionType(this.typeMeta))return D;let F="";if(this.typeMeta.isUnion){let P=this.typeMeta.possibleTypes.map((B)=>B.isScalar||B.isEnum?this.makeSelectionTypeInputValueForFieldWrapperType(B.name,B):this.typeMeta.isInput?`${this.originalTypeNameToTypescriptTypeNameWithoutModifiers(B.name)}`:`${this.originalTypeNameToTypescriptFriendlyName(B.name)}`).join(" | ");F=`
3468
3472
  export type ${D} = ${P};
3469
3473
  `}else F=`
3470
3474
  export type ${D} = {
@@ -3478,7 +3482,7 @@ export class SelectionWrapper<
3478
3482
  {},
3479
3483
  this,
3480
3484
  undefined,
3481
- )`}makeSelectionFunctionInputObjectValueForField(D,F){let P=D.type;if(P.isScalar||P.isEnum||P.isUnion&&P.possibleTypes.every((B)=>B.isScalar||B.isEnum)){let B=this.makeSelectionFunctionInputObjectValueForFieldWrapper(D,F);return this.collector.addSelectionFunction(P,B),`${D.name}: ${B}`}else if(P.ofType){let B=new q2(P.ofType.name,this.collector,this.options).makeSelectionFunction();return`${D.name}: ${B}.bind({ collector: this, fieldName: "${D.name}" })`}else throw console.error(P),new Error(`Unknown type for field ${D.name}: ${P.name}`)}makeSelectionFunction(){if(this.typeMeta.isScalar||this.typeMeta.isEnum)return`new SelectionWrapper(
3485
+ )`}makeSelectionFunctionInputObjectValueForField(D,F){let P=D.type;if(P.isScalar||P.isEnum||P.isUnion&&P.possibleTypes.every((B)=>B.isScalar||B.isEnum)){let B=this.makeSelectionFunctionInputObjectValueForFieldWrapper(D,F);return this.collector.addSelectionFunction(P,B),`"${D.name}": ${B}`}else if(P.ofType){let B=new q2(P.ofType.name,this.collector,this.options).makeSelectionFunction();return`"${D.name}": ${B}.bind({ collector: this, fieldName: "${D.name}" })`}else throw console.error(P),new Error(`Unknown type for field "${D.name}": ${P.name}`)}makeSelectionFunction(){if(this.typeMeta.isScalar||this.typeMeta.isEnum)return`new SelectionWrapper(
3482
3486
  "${this.typeName}",
3483
3487
  "${this.typeMeta.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}",
3484
3488
  ${this.typeMeta.isList??0},
@@ -3486,7 +3490,7 @@ export class SelectionWrapper<
3486
3490
  this
3487
3491
  )`;let D=`${this.typeName}Selection`;if(this.collector.hasSelectionFunction(this.typeMeta))return D;else this.collector.addSelectionFunction(this.typeMeta,D);let F=this.typeMeta.fields.some((X)=>X.type.isScalar||X.type.isEnum),P="";if(this.typeMeta.isUnion&&this.typeMeta.possibleTypes.filter((X)=>!X.isScalar&&!X.isEnum).length)P=`
3488
3492
  $on: {
3489
- ${this.typeMeta.possibleTypes.filter((X)=>!X.isScalar&&!X.isEnum).map((X)=>`${X.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}: ${this.originalTypeNameToTypescriptFriendlyName(X.name)}Selection.bind({
3493
+ ${this.typeMeta.possibleTypes.filter((X)=>!X.isScalar&&!X.isEnum).map((X)=>`"${X.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}": ${this.originalTypeNameToTypescriptFriendlyName(X.name)}Selection.bind({
3490
3494
  collector: this,
3491
3495
  fieldName: "",
3492
3496
  }),`).join(`
@@ -3525,7 +3529,7 @@ export class SelectionWrapper<
3525
3529
  );
3526
3530
  `,q=this.typeMeta.isUnion?"":`
3527
3531
  type ReturnTypeFrom${D} = {
3528
- ${Array.from(B).map(([X,J])=>`${X}: ${J}`).join(`
3532
+ ${Array.from(B).map(([X,J])=>`"${X}": ${J}`).join(`
3529
3533
  `)}
3530
3534
  } & {
3531
3535
  ${F?`
@@ -3533,7 +3537,7 @@ export class SelectionWrapper<
3533
3537
  `:""}
3534
3538
  };`;return this.collector.addSelectionFunction(this.typeMeta,`${q}
3535
3539
  ${Z}
3536
- `),D}static makeOperationFunctions(D,F,P){let B=new Map,Z=[],q=[],X=(J)=>{if(J.includes("-")||!isNaN(+J.at(0)))return`"${J}"`;return J};for(let J of D){let Y=J.args.filter(($)=>$.location==="query").some(($)=>J.args.filter((E)=>E.location==="path").some((E)=>E.name===$.name)),H=J.args.filter(($)=>$.location==="body").some(($)=>J.args.filter((E)=>E.location==="query").some((E)=>E.name===$.name)||J.args.filter((E)=>E.location==="path").some((E)=>E.name===$.name)),W=()=>{if(!J.args.length)return;let $=`${J.name.slice(0,1).toUpperCase()}${J.name.slice(1)}Args`;if(!F.hasArgumentMeta($)){let w=`{ ${J.args.map((A)=>{if(A.name==="$"&&(Y||H))return A.type.inputFields.map((S)=>`${X(S.name)}: {
3540
+ `),D}static makeOperationFunctions(D,F,P){let B=new Map,Z=[],q=[],X=(J)=>{if(J.includes("-")||J.includes("+")||!isNaN(+J.at(0)))return`"${J}"`;return J};for(let J of D){let Y=J.args.filter(($)=>$.location==="query").some(($)=>J.args.filter((E)=>E.location==="path").some((E)=>E.name===$.name)),H=J.args.filter(($)=>$.location==="body").some(($)=>J.args.filter((E)=>E.location==="query").some((E)=>E.name===$.name)||J.args.filter((E)=>E.location==="path").some((E)=>E.name===$.name)),W=()=>{if(!J.args.length)return;let $=`${J.name.slice(0,1).toUpperCase()}${J.name.slice(1)}Args`;if(!F.hasArgumentMeta($)){let w=`{ ${J.args.map((A)=>{if(A.name==="$"&&(Y||H))return A.type.inputFields.map((S)=>`${X(S.name)}: {
3537
3541
  type: "${S.type.name}",
3538
3542
  location: "${A.location}",
3539
3543
  },`).join(`
@@ -3544,14 +3548,14 @@ export class SelectionWrapper<
3544
3548
  type: "${A.type.name}",
3545
3549
  location: "${A.location}",
3546
3550
  },`}).join(" ")} }`;F.addArgumentMeta($,`export const ${$}Meta = ${w} as const;`)}return{argsTypeName:$}},U=()=>{let $=(A)=>{let S=A.type.isScalar,V=A.type.isEnum,T=A.type.isInput,m=`${X(A.name)}${A.type.isNonNull?"":"?"}`,j="any";if(S)j=this.ScalarTypeMap.get(A.type.name.replaceAll("!",""))??"any";else if(T||V)j=`${this.originalTypeNameToTypescriptTypeName(A.type.name)}`;return{description:A.description,argKey:m,argType:j}};if(!J.args.length)return;let E=J.args.some((A)=>A.type.isNonNull),w=`${J.name.slice(0,1).toUpperCase()}${J.name.slice(1)}Args`;if(!F.hasArgumentType(w)){let A;if(J.args.length===1&&J.args[0].name==="$")A=J.args[0].type.isScalar&&J.args[0].type.scalarTSType?`ScalarTypeMapWithCustom["${J.args[0].type.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:new q2(J.args[0].type.name,F,P).makeSelectionType();else A=`{ ${J.args.map((V)=>{if(V.name==="$"&&(Y||H))return V.type.inputFields.map((M)=>{let{description:k,argType:QD,argKey:BD}=$(M);return`
3547
- ${k?`/** ${k??`${BD}`} */`:""}
3551
+ ${k?`/** ${k.replaceAll("*/","\\*\\/")??`${BD}`} */`:""}
3548
3552
  ${BD}: ${QD};
3549
3553
  `}).join(`
3550
3554
  `);else if(V.name==="$"&&!Y&&!H){let{description:M,argType:k}=$(V);return`
3551
- ${M?`/** ${M??`${V.location==="query"?"$query":"$body"}`} */`:""}
3555
+ ${M?`/** ${M.replaceAll("*/","\\*\\/")??`${V.location==="query"?"$query":"$body"}`} */`:""}
3552
3556
  ${V.location==="query"?"$query":"$body"}: ${k};
3553
3557
  `}let{description:T,argType:m,argKey:j}=$(V);return`
3554
- ${T?`/** ${T??`${j}`} */`:""}
3558
+ ${T?`/** ${T.replaceAll("*/","\\*\\/")??`${j}`} */`:""}
3555
3559
  ${j}: ${m};
3556
3560
  `}).join(" ")} }`;F.addArgumentType(w,`export type ${w} = ${A};`)}return{argsTypeName:w,hasAtLeastOneNonNullArg:E}},O=W(),z=U(),I=J.type.isScalar||J.type.isEnum?`makeSLFNScalarOp(
3557
3561
  makeScalarOperationSelection(
@@ -3565,7 +3569,7 @@ export class SelectionWrapper<
3565
3569
  ${J.type.isList??0},
3566
3570
  ${z?"args":"undefined"}
3567
3571
  )`:new q2(J.type.name,F,P).makeSelectionFunction(),R=`
3568
- ${J.name}: (${z?`args: ${z.argsTypeName}`:""}) =>
3572
+ "${J.name}": (${z?`args: ${z.argsTypeName}`:""}) =>
3569
3573
  ${I}.bind({
3570
3574
  collector: this,
3571
3575
  fieldName: "${J.name}",
@@ -3592,7 +3596,7 @@ export class SelectionWrapper<
3592
3596
  >
3593
3597
  >,`);if(!J.type.isScalar&&!J.type.isEnum)Z.push(R);else q.push(R)}return{fnsWithoutScalarOps:Z,fnsScalarOps:q,makeSelectionFunctionInputReturnTypeParts:B}}static makeRootOperationFunction(D,F,P,B){let{fnsWithoutScalarOps:Z,fnsScalarOps:q,makeSelectionFunctionInputReturnTypeParts:X}=this.makeOperationFunctions(D,F,P);return`
3594
3598
  export type ReturnTypeFromRootOperationWithoutScalarOps = {
3595
- ${Array.from(X).map(([Y,H])=>`${Y}: ${H}`).join(`
3599
+ ${Array.from(X).map(([Y,H])=>`"${Y}": ${H}`).join(`
3596
3600
  `)}
3597
3601
  };
3598
3602
  export function _makeRootOperationInput(this: any) {
@@ -3802,16 +3806,16 @@ export class SelectionWrapper<
3802
3806
  export default __client__ as typeof __client__ & {
3803
3807
  init: typeof __init__;
3804
3808
  };
3805
- `}}var k1={};$U(k1,{Generator:()=>EU});var HT=(D,F,P,B)=>{let q=F?.includes("@typedef")?F?.match(/@typedef\s*{(.*)}/)?.[1]:void 0,X={name:D,description:F,isScalar:!0,scalarTSType:q??P,isEnum:!1,isObject:!1,isUnion:!1,isList:0,isNonNull:!1,fields:[],possibleTypes:[],inputFields:[],isInput:!1,enumValues:[],isInterface:!1,isQuery:!1,isMutation:!1,isSubscription:!1};return X.ofType=X,B.addType(X),B.addCustomScalar(X),X},UT=(D,F,P)=>{let B={types:[],directives:[],query:[],mutation:[],subscription:[]};for(let Y in D.getTypeMap()){if(!F.includeSchemaDefinition){if(["__Schema","__Type","__TypeKind","__Field","__InputValue","__EnumValue","__Directive"].includes(Y))continue}let H=D.getTypeMap()[Y];if(H instanceof MD.GraphQLScalarType){if(["String","Int","Float","Boolean","ID","Date","DateTime","DateTimeISO","Time","JSON"].includes(Y))continue;B.types.push(HT(Y,H.description??void 0,"any",P))}}let Z=P.customScalars.size>0,q=D.getQueryType();if(q)for(let Y of Object.values(q.getFields()))B.query.push(T7(D,Y,"query",F,P));let X=D.getMutationType();if(X)for(let Y of Object.values(X.getFields()))B.mutation.push(T7(D,Y,"mutation",F,P));let J=D.getSubscriptionType();if(J)for(let Y of Object.values(J.getFields()))B.subscription.push(T7(D,Y,"subscription",F,P));for(let Y in D.getTypeMap()){if(!F.includeSchemaDefinition){if(["__Schema","__Type","__TypeKind","__Field","__InputValue","__EnumValue","__Directive"].includes(Y))continue}let H=D.getTypeMap()[Y];if(MD.isObjectType(H)||Z&&MD.isInputObjectType(H)||MD.isInterfaceType(H))B.types.push(x1(D,H,F,P))}for(let Y of D.getDirectives())B.directives.push(WT(D,Y,F,P));return B},T7=(D,F,P,B,Z)=>{let q={name:F.name,description:F.description??void 0,operation:P,args:[],type:x1(D,F.type,B,Z)};for(let X in F.args){let J=F.args[X];q.args.push(w3(D,J,B,Z))}return q},w3=(D,F,P,B)=>{return{name:F.name,hasArgs:!1,args:[],description:F.description??void 0,type:x1(D,F.type,P,B)}},x1=(D,F,P,B)=>{let Z=MD.getNamedType(F),q={name:F.toString(),description:Z.description??void 0,isList:F.toString().split("[").length-1,isNonNull:F.toString().endsWith("!"),isScalar:Z instanceof MD.GraphQLScalarType,isEnum:Z instanceof MD.GraphQLEnumType,isInput:Z instanceof MD.GraphQLInputObjectType,isInterface:Z instanceof MD.GraphQLInterfaceType,isObject:Z instanceof MD.GraphQLObjectType,isUnion:Z instanceof MD.GraphQLUnionType,isQuery:!1,isMutation:!1,isSubscription:!1,fields:[],possibleTypes:[],enumValues:[],inputFields:[]};if(B.hasType(q.name))return B.getType(q.name);else B.addType(q);if(q.ofType=q,q.isEnum)for(let X of Z.getValues())q.enumValues.push({name:X.name,description:X.description??void 0});if(q.isInput){let X=Z.getFields();for(let J in X)q.inputFields.push(w3(D,X[J],P,B))}if(q.isInterface){let X=Z.getFields();for(let J in X)q.fields.push(IU(D,X[J],P,B))}if(q.isObject){let X=Z.getFields();for(let J in X)q.fields.push(IU(D,X[J],P,B))}if(q.isUnion)for(let X of Z.getTypes())q.possibleTypes.push(x1(D,X,P,B));if(Z instanceof MD.GraphQLObjectType){if(Z.name==="Query")q.isQuery=!0;else if(Z.name==="Mutation")q.isMutation=!0;else if(Z.name==="Subscription")q.isSubscription=!0}return B.addType(q),q},IU=(D,F,P,B)=>{let Z={name:F.name,description:F.description??void 0,hasArgs:Object.keys(F.args).length>0,args:[],type:x1(D,F.type,P,B)};for(let q in F.args){let X=F.args[q];Z.args.push(w3(D,X,P,B))}return Z},WT=(D,F,P,B)=>{let Z={name:F.name,description:F.description??void 0,locations:F.locations,args:[]};for(let q in F.args){let X=F.args[q];Z.args.push(w3(D,X,P,B))}return B.addType({name:`Directive_${F.name}`,description:F.description??void 0,isList:0,isNonNull:!1,isScalar:!1,isEnum:!1,isInput:!1,isInterface:!1,isObject:!1,isUnion:!1,isQuery:!1,isMutation:!1,isSubscription:!1,fields:[],possibleTypes:[],enumValues:[],inputFields:[],isDirective:Z}),Z};class KU{QueryTypeName;MutationTypeName;SubscriptionTypeName;OperationTypeNames;constructor(D,F,P){this.QueryTypeName=D,this.MutationTypeName=F,this.SubscriptionTypeName=P,this.OperationTypeNames=[D,F,P].filter((B)=>B)}_types=new Map;get types(){return this._types}addType(D){this._types.set(D.name,D)}hasType(D){return this._types.has(D)}getType(D){return this._types.get(D)}_customScalars=new Map;get customScalars(){return this._customScalars}addCustomScalar(D){this._customScalars.set(D.name,D)}hasCustomScalar(D){return this._customScalars.has(D)}getCustomScalar(D){return this._customScalars.get(D)}removeCustomScalar(D){this._customScalars.delete(D)}_enumsTypes=new Map;get enumsTypes(){return this._enumsTypes}addEnumType(D,F){this._enumsTypes.set(D,F)}hasEnumType(D){if(!D)return!1;return this._enumsTypes.has(D)}getEnumType(D){return this._enumsTypes.get(D)}_argumentTypes=new Map;get argumentTypes(){return this._argumentTypes}addArgumentType(D,F){this._argumentTypes.set(D,F)}hasArgumentType(D){return this._argumentTypes.has(D)}getArgumentType(D){return this._argumentTypes.get(D)}_argumentMeta=new Map;get argumentMeta(){return this._argumentMeta}addArgumentMeta(D,F){this._argumentMeta.set(D,F)}hasArgumentMeta(D){return this._argumentMeta.has(D)}getArgumentMeta(D){return this._argumentMeta.get(D)}_directivesFunctions=new Map;get directivesFunctions(){return this._directivesFunctions}addDirectiveFunction(D,F){this._directivesFunctions.set(D,F)}hasDirectiveFunction(D){return this._directivesFunctions.has(D)}getDirectiveFunction(D){return this._directivesFunctions.get(D)}_selectionTypes=new Map;get selectionTypes(){return this._selectionTypes}addSelectionType(D,F){this._selectionTypes.set(D,F)}hasSelectionType(D){if(!D)return!1;return this._selectionTypes.has(D)}getSelectionType(D){return this._selectionTypes.get(D)}_selectionFunctions=new Map;get selectionFunctions(){return this._selectionFunctions}addSelectionFunction(D,F){this._selectionFunctions.set(D,F)}hasSelectionFunction(D){if(!D)return!1;return this._selectionFunctions.has(D)}getSelectionFunction(D){return this._selectionFunctions.get(D)}}class EU{Codegen;constructor(D){this.Codegen=D}async generate({schema:D,options:F,authConfig:P}){let B=D.getQueryType()?.name,Z=D.getMutationType()?.name,q=D.getSubscriptionType()?.name,X=new KU(B,Z,q);UT(D,F,X);for(let[Y,H]of X.types.entries()){if(!H.isEnum)continue;new this.Codegen(Y,X,F,P).makeEnumType()}for(let[Y,H]of X.types.entries()){if(!H.isInput)continue;new this.Codegen(Y,X,F,P).makeSelectionType()}for(let[Y,H]of X.types.entries()){if(!H.isDirective?.locations.some((W)=>[L3.DirectiveLocation.FIELD,L3.DirectiveLocation.FRAGMENT_SPREAD,L3.DirectiveLocation.INLINE_FRAGMENT].includes(W)))continue;new this.Codegen(Y,X,F,P).makeDirective()}for(let[Y,H]of X.types.entries()){if(H.isScalar||H.isInput||H.isEnum||H.isDirective)continue;new this.Codegen(Y,X,F,P).makeSelectionType(),new this.Codegen(Y,X,F,P).makeSelectionFunction()}return[this.Codegen.FieldValueWrapperType,this.Codegen.HelperTypes(Array.from(X.customScalars.values())),this.Codegen.HelperFunctions,...[...X.enumsTypes.entries()].map(([Y,H])=>H).filter((Y,H,W)=>W.indexOf(Y)===H),...[...X.argumentTypes.entries()].map(([Y,H])=>H).filter((Y,H,W)=>W.indexOf(Y)===H),...[...X.argumentMeta.entries()].map(([Y,H])=>H).filter((Y,H,W)=>W.indexOf(Y)===H),...[...X.selectionTypes.entries()].filter(([Y])=>Y.isInput||X.customScalars.size>0&&Y.isObject).map(([Y,H])=>H).filter((Y,H,W)=>W.indexOf(Y)===H),this.Codegen.EnumTypesMapped(X),...[...X.selectionFunctions.entries()].filter(([Y])=>!Y.isScalar&&!Y.isEnum&&!Y.isInput).map(([Y,H])=>H),...[...X.directivesFunctions.entries()].map(([Y,H])=>H),this.Codegen.makeRootOperationFunction(X,P)].join(`
3806
- `)}}var f1={};$U(f1,{Generator:()=>CU});var SD=(D,F="$")=>{let P="";for(let B of D.filter(Boolean))P+=B.charAt(0).toUpperCase()+B.slice(1)+F;return P.slice(0,P.length-F.length).replaceAll("-","_").replaceAll(".","_")},OT=(D,F,P)=>{let B={types:[],operations:[],customScalars:[]};for(let[Z,q]of Object.entries(D?.components?.schemas??{}))B.types.push(lD(D,Z,q,"schemas",{isNonNull:!1},P));for(let[Z,q]of Object.entries(D?.paths??{})){if("$ref"in q)continue;for(let[X,J]of Object.entries(q)){if(!J)continue;if("$ref"in J){console.warn(`TODO: Handle $ref in methodValue for ${Z}`);continue}let Y=GT(D,Z,X,J,F,P);if(!Y)continue;B.operations.push(Y)}}return B},N7=(D,F,P,B)=>{let Z={name:D,description:F,isScalar:!0,scalarTSType:P,isEnum:!1,isObject:!1,isUnion:!1,isList:0,isNonNull:!1,fields:[],possibleTypes:[],inputFields:[],isInput:!1,enumValues:[]};return Z.ofType=Z,B.addType(Z),B.addCustomScalar(Z),Z},u7=(D,F)=>{let P=F?.isInput??D.isInput,B=F?.isNonNull??D.isNonNull;return`${D.name.slice(0,P&&B?-1:void 0)}${P?`${B?"Input!":"Input"}`:""}`.replaceAll("-","_")},_7=(D,F)=>{if(D.isInput||D.isScalar)return D;let P=u7(D,{isInput:!0}),B={...D,name:P,isInput:!0,isObject:!1,inputFields:D.fields.map((Z)=>({...Z,location:"$",type:_7(Z.type,F)})),fields:[],possibleTypes:D.possibleTypes.map((Z)=>_7(Z,F))};return B.ofType=B,F.addType(B),B},lD=(D,F,P,B,Z,q)=>{if("ofType"in P)return P;if("$ref"in P){let H=P.$ref.split("/");H.shift();let W=H.shift(),U=H.shift(),O=H.shift(),z=D[W]?.[U]?.[O];if(z)return lD(D,SD([Z.operationResponseType?"":F,O]),z,U,{isNonNull:Z.isNonNull},q);throw new Error(`Reference ${P.$ref} not found`)}if("schema"in P)return lD(D,F,P.schema,"schemas",{isNonNull:Z.isNonNull,operationResponseType:Z.operationResponseType},q);let X=P;if("properties"in X&&!("type"in X))X.type="object";let J={name:Z.operationResponseType?F:Z.isNonNull?`${F}!`:F,description:X.description,isObject:"type"in X&&(X.type==="object"||JSON.stringify(X.type)===JSON.stringify(["object","null"])),fields:[],isUnion:!!X.oneOf||!!X.anyOf||!!X.allOf,possibleTypes:[],isList:0,isNonNull:Z.isNonNull,isScalar:!1,scalarTSType:void 0,isEnum:{schemas:!!X.enum,parameters:!1,responses:!1,requestBodies:!1,headers:!1}[B],enumValues:[],isInput:B==="parameters"||B==="headers"||B==="requestBodies",inputFields:[],ofType:void 0};J.isScalar=!J.isObject&&!J.isUnion&&!J.isEnum&&!J.isInput;let Y=u7(J);if(q.hasType(Y))return q.getType(Y);else J.name=Y,q.addType(J);if(J.ofType=J,J.isEnum){let H=X;for(let W of[...H.enum??[]])J.enumValues.push({name:String(W),description:X.description,type:lD(D,F,X,B,{isNonNull:Z.isNonNull},q)})}if(J.isInput){let H=X;if("content"in H){let W=H;for(let[U,O]of Object.entries(W.content??{})){q.removeType(Y);let z=_7(lD(D,F,O,B,{isNonNull:W.required??!1},q),q);if(z.fields.length===1&&!!z.fields[0].type.scalarTSType)return q.removeType(Y),J=z.fields[0].type,q.addType(J),J;else return q.removeType(Y),J=z,q.addType(J),J}}if("schema"in H&&"in"in H){let W=H;if(W.schema)J.inputFields.push($8(D,W.name,W.schema,B,W.in,{isNonNull:W.required??!1},q));else J.inputFields.push($8(D,W.name,lD(D,SD([F,"Input",W.name]),W.content["application/json"],B,{isNonNull:W.required??!1},q),B,W.in,{isNonNull:W.required??!1},q))}if("schema"in H&&!("in"in H)){let W=H;if(W.schema)J.inputFields.push($8(D,SD([F,"Header"]),W.schema,B,"header",{isNonNull:W.required??!1},q));else J.inputFields.push($8(D,SD([F,"Header"]),lD(D,SD([F,"Input","Header"]),W.content["application/json"],B,{isNonNull:W.required??!1},q),B,"header",{isNonNull:W.required??!1},q))}}if(J.isObject){let H=X,W=H.properties;for(let[z,I]of Object.entries(W??{})){let R="$ref"in I;q.removeType(SD([F,z]));let $=lD(D,SD([F,z]),I,B,{isNonNull:H.required?.includes(z)??!1},q),E=zT(D,z,$,{isNonNull:H.required?.includes(z)??!1},q);J.fields.push(E)}let U,O=H.additionalProperties;if(O===!0||JSON.stringify(O)===JSON.stringify({}))U=N7(SD([F,"AdditionalProperties"]),"Additional properties","Record<string, any>",q),J.fields.push({name:SD([F,"Any"]),description:"Additional properties",type:U});else if(typeof O==="object")if("type"in O&&O.type==="string")U=N7(SD([F,"AdditionalProperties"]),"Additional properties","Record<string, string>",q),J.fields.push({name:SD([F,"AdditionalProperties"]),description:"Additional properties",type:U});else{let z="$ref"in O,I=lD(D,z?"":SD([F,"AdditionalProperties"]),O,B,{isNonNull:!1},q),R=I.name.replaceAll("!","").replaceAll("[","").replaceAll("]","");R={Int:"number",Float:"number",String:"string",Boolean:"boolean"}[R]??R;let $=R+(I.isList?Array.from({length:I.isList}).map((E)=>"[]").join(""):"");if(I.isScalar&&I.scalarTSType)U=I,J.fields.push({name:SD([F,R]),description:"Additional properties",type:U});else U=N7(SD([F,R]),"Additional properties",`Record<string, ${$}>`,q),J.fields.push({name:SD([F,R]),description:"Additional properties",type:U})}if(U&&J.fields.length===1)return q.removeType(Y),q.addType(U),U}if(J.isUnion){let H=0;for(let W of[...X.oneOf??[],...X.anyOf??[],...X.allOf??[]]){H++,q.removeType(Y);let U="$ref"in W;J.possibleTypes.push(lD(D,U?"":`${F}Subtype${H}`,W,B,{isNonNull:Z.isNonNull},q))}if(J.possibleTypes.length===1){let W=J.possibleTypes[0];J={...W,isList:J.isList,ofType:W,name:J.name}}}if(J.isScalar){let H=X;if(H.type==="array"){let W="$ref"in X.items;if(!W||X.items.$ref!==`#/components/${B}/${Y}`)q.removeType(Y);J.isList++;let U=lD(D,W?"":F,X.items,"schemas",{isNonNull:Z.isNonNull},q),O=J.isList+=U?.isList??0;J={...U,isList:O,name:`[${U.name}]`},J.ofType=J}else if(typeof H.type==="string"){q.removeType(Y),J.name=SD([H.type]);let W={double:"Float",float:"Float",integer:"Int",long:"Int",int32:"Int",int64:"Int",number:"Float",byte:"Int"};if(H.format&&H.format.toLowerCase()in W)J.name=W[H.format.toLowerCase()]}else if(Array.isArray(H))q.removeType(Y),J.name=SD(H);if(Z.isNonNull&&!J.name.endsWith("!"))q.removeType(Y),J.name=`${J.name}!`;J.name=u7(J)}return q.addType(J),J},$8=(D,F,P,B,Z,q,X)=>{return{name:F,description:P.description,location:Z,type:lD(D,F,P,B,q,X)}},zT=(D,F,P,B,Z)=>{return{name:F,description:P.description,type:lD(D,F,P,"schemas",B,Z)}},QT={get:"Get",post:"Create",put:"Update",delete:"Delete",patch:"Patch",options:"Options",head:"Head",trace:"Trace"},GT=(D,F,P,B,Z,q)=>{if(!B.responses){console.warn("Operation has no responses!");return}let X=Object.entries(B.responses).filter(([U,O])=>U.toString().startsWith("2")).sort(([U,O],[z,I])=>+U-+z),J=X.length>0?X[0][1]:B.responses.default,Y=Object.entries(B.responses).filter(([U,O])=>U.toString().startsWith("4")||U.toString().startsWith("5"));if(!J){console.warn("Operation has no success response!",B);return}let H=B.operationId?.replaceAll("-","_")??SD([QT[P],...F.split("/").flatMap((U)=>[U.includes("{")?"By":"",U.replace(/{([^}]+)}/g,"$1")].filter((O)=>O.length>0))],""),W={name:H,description:B.description,path:F,method:P,args:[],type:lD(D,H,"content"in J?J.content["application/json"]??Object.entries(J.content).find(([U,O])=>O)?.[1]:J,"responses",{isNonNull:!1,operationResponseType:!0},q)};for(let U of B.parameters??[]){let O="$ref"in U?U.$ref.split("/").pop():U.name,z="in"in U?U.in:U.$ref.split("/").at(-2),I={parameters:"query",requestBodies:"body",headers:"header",cookie:"cookie",path:"path",query:"query",header:"header"}[z];W.args.push($8(D,O,U,"parameters",I,{isNonNull:"$ref"in U?!1:U.required??!1},q))}if(B.requestBody){let U=B.requestBody,O=$8(D,`${H}RequestBody`,U,"requestBodies","body",{isNonNull:U.required??!1},q);O.name="$",W.args.push(O)}return W};class AU{constructor(){}_types=new Map;get types(){return this._types}addType(D){this._types.set(D.name,D)}hasType(D){return this._types.has(D)}getType(D){return this._types.get(D)}removeType(D){this._types.delete(D)}_customScalars=new Map;get customScalars(){return this._customScalars}addCustomScalar(D){this._customScalars.set(D.name,D)}hasCustomScalar(D){return this._customScalars.has(D)}getCustomScalar(D){return this._customScalars.get(D)}removeCustomScalar(D){this._customScalars.delete(D)}_enumsTypes=new Map;get enumsTypes(){return this._enumsTypes}addEnumType(D,F){this._enumsTypes.set(D,F)}hasEnumType(D){if(!D)return!1;return this._enumsTypes.has(D)}hasEnumTypeName(D){for(let[F,P]of this._enumsTypes.entries())if(F.name===D)return!0;return!1}getEnumType(D){return this._enumsTypes.get(D)}getEnumTypeByName(D){for(let[F,P]of this._enumsTypes.entries())if(F.name===D)return P;return""}_argumentTypes=new Map;get argumentTypes(){return this._argumentTypes}addArgumentType(D,F){this._argumentTypes.set(D,F)}hasArgumentType(D){return this._argumentTypes.has(D)}getArgumentType(D){return this._argumentTypes.get(D)}_argumentMeta=new Map;get argumentMeta(){return this._argumentMeta}addArgumentMeta(D,F){this._argumentMeta.set(D,F)}hasArgumentMeta(D){return this._argumentMeta.has(D)}getArgumentMeta(D){return this._argumentMeta.get(D)}_selectionTypes=new Map;get selectionTypes(){return this._selectionTypes}addSelectionType(D,F){this._selectionTypes.set(D,F)}hasSelectionType(D){if(!D)return!1;return this._selectionTypes.has(D)}getSelectionType(D){return this._selectionTypes.get(D)}_selectionFunctions=new Map;get selectionFunctions(){return this._selectionFunctions}addSelectionFunction(D,F){this._selectionFunctions.set(D,F)}hasSelectionFunction(D){if(!D)return!1;return this._selectionFunctions.has(D)}getSelectionFunction(D){return this._selectionFunctions.get(D)}}class CU{Codegen;constructor(D){this.Codegen=D}async generate({schema:D,options:F,authConfig:P}){let B=new AU,Z=OT(D,F,B);for(let[J,Y]of B.types.entries()){if(!Y.isEnum)continue;new this.Codegen(J,B,F).makeEnumType()}for(let[J,Y]of B.types.entries()){if(!Y.isInput)continue;new this.Codegen(J,B,F).makeSelectionType()}for(let[J,Y]of B.types.entries()){if(Y.isScalar||Y.isInput||Y.isEnum)continue;new this.Codegen(J,B,F).makeSelectionType(),new this.Codegen(J,B,F).makeSelectionFunction()}let q=this.Codegen.makeRootOperationFunction(Z.operations,B,F,P);return[this.Codegen.FieldValueWrapperType,this.Codegen.HelperTypes(Array.from(B.customScalars.values())),this.Codegen.HelperFunctions,...[...B.enumsTypes.entries()].map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),...[...B.argumentTypes.entries()].map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),...[...B.argumentMeta.entries()].map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),...[...B.selectionTypes.entries()].filter(([J])=>!J.isScalar&&!J.isEnum&&!(J.isScalar&&J.isUnion)).map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),this.Codegen.EnumTypesMapped(B),this.Codegen.UnionTypesMapped(B),...[...B.selectionFunctions.entries()].filter(([J])=>!J.isScalar&&!J.isEnum&&!J.isInput&&!(J.isScalar&&J.isUnion)).map(([J,Y])=>Y).filter((J)=>!J.startsWith("new SelectionWrapper")).filter((J,Y,H)=>H.indexOf(J)===Y),q].join(`
3807
- `)}}var X2={GraphQL:{default:m2},OpenAPI:{default:q2}};import gO from"fs";import r1 from"fs";import AF from"path";var M8=(D)=>{process.stdout.write("\x1Bc"),process.stdout.write(`
3809
+ `}}var k1={};$U(k1,{Generator:()=>EU});var HT=(D,F,P,B)=>{let q=F?.includes("@typedef")?F?.match(/@typedef\s*{(.*)}/)?.[1]:void 0,X={name:D,description:F,isScalar:!0,scalarTSType:q??P,isEnum:!1,isObject:!1,isUnion:!1,isList:0,isNonNull:!1,fields:[],possibleTypes:[],inputFields:[],isInput:!1,enumValues:[],isInterface:!1,isQuery:!1,isMutation:!1,isSubscription:!1};X.ofType=X,B.addType(X),B.addCustomScalar(X);let J={...X,name:`${X.name}!`,isNonNull:!0};return J.ofType=J,B.addType(J),B.addCustomScalar(J),X},UT=(D,F,P)=>{let B={types:[],directives:[],query:[],mutation:[],subscription:[]};for(let Y in D.getTypeMap()){if(!F.includeSchemaDefinition){if(["__Schema","__Type","__TypeKind","__Field","__InputValue","__EnumValue","__Directive"].includes(Y))continue}let H=D.getTypeMap()[Y];if(H instanceof MD.GraphQLScalarType){if(["String","Int","Float","Boolean","ID","Date","DateTime","DateTimeISO","Time","JSON"].includes(Y))continue;B.types.push(HT(Y,H.description??void 0,"any",P))}}let Z=P.customScalars.size>0,q=D.getQueryType();if(q)for(let Y of Object.values(q.getFields()))B.query.push(T7(D,Y,"query",F,P));let X=D.getMutationType();if(X)for(let Y of Object.values(X.getFields()))B.mutation.push(T7(D,Y,"mutation",F,P));let J=D.getSubscriptionType();if(J)for(let Y of Object.values(J.getFields()))B.subscription.push(T7(D,Y,"subscription",F,P));for(let Y in D.getTypeMap()){if(!F.includeSchemaDefinition){if(["__Schema","__Type","__TypeKind","__Field","__InputValue","__EnumValue","__Directive"].includes(Y))continue}let H=D.getTypeMap()[Y];if(MD.isObjectType(H)||Z&&MD.isInputObjectType(H)||MD.isInterfaceType(H))B.types.push(x1(D,H,F,P))}for(let Y of D.getDirectives())B.directives.push(WT(D,Y,F,P));return B},T7=(D,F,P,B,Z)=>{let q={name:F.name,description:F.description??void 0,operation:P,args:[],type:x1(D,F.type,B,Z)};for(let X in F.args){let J=F.args[X];q.args.push(w3(D,J,B,Z))}return q},w3=(D,F,P,B)=>{return{name:F.name,hasArgs:!1,args:[],description:F.description??void 0,type:x1(D,F.type,P,B)}},x1=(D,F,P,B)=>{let Z=MD.getNamedType(F),q={name:F.toString(),description:Z.description??void 0,isList:F.toString().split("[").length-1,isNonNull:F.toString().endsWith("!"),isScalar:Z instanceof MD.GraphQLScalarType,isEnum:Z instanceof MD.GraphQLEnumType,isInput:Z instanceof MD.GraphQLInputObjectType,isInterface:Z instanceof MD.GraphQLInterfaceType,isObject:Z instanceof MD.GraphQLObjectType,isUnion:Z instanceof MD.GraphQLUnionType,isQuery:!1,isMutation:!1,isSubscription:!1,fields:[],possibleTypes:[],enumValues:[],inputFields:[]};if(B.hasType(q.name))return B.getType(q.name);else B.addType(q);if(q.ofType=q,q.isEnum)for(let X of Z.getValues())q.enumValues.push({name:X.name,description:X.description??void 0});if(q.isInput){let X=Z.getFields();for(let J in X)q.inputFields.push(w3(D,X[J],P,B))}if(q.isInterface){let X=Z.getFields();for(let J in X)q.fields.push(IU(D,X[J],P,B))}if(q.isObject){let X=Z.getFields();for(let J in X)q.fields.push(IU(D,X[J],P,B))}if(q.isUnion)for(let X of Z.getTypes())q.possibleTypes.push(x1(D,X,P,B));if(Z instanceof MD.GraphQLObjectType){if(Z.name==="Query")q.isQuery=!0;else if(Z.name==="Mutation")q.isMutation=!0;else if(Z.name==="Subscription")q.isSubscription=!0}return B.addType(q),q},IU=(D,F,P,B)=>{let Z={name:F.name,description:F.description??void 0,hasArgs:Object.keys(F.args).length>0,args:[],type:x1(D,F.type,P,B)};for(let q in F.args){let X=F.args[q];Z.args.push(w3(D,X,P,B))}return Z},WT=(D,F,P,B)=>{let Z={name:F.name,description:F.description??void 0,locations:F.locations,args:[]};for(let q in F.args){let X=F.args[q];Z.args.push(w3(D,X,P,B))}return B.addType({name:`Directive_${F.name}`,description:F.description??void 0,isList:0,isNonNull:!1,isScalar:!1,isEnum:!1,isInput:!1,isInterface:!1,isObject:!1,isUnion:!1,isQuery:!1,isMutation:!1,isSubscription:!1,fields:[],possibleTypes:[],enumValues:[],inputFields:[],isDirective:Z}),Z};class KU{QueryTypeName;MutationTypeName;SubscriptionTypeName;OperationTypeNames;constructor(D,F,P){this.QueryTypeName=D,this.MutationTypeName=F,this.SubscriptionTypeName=P,this.OperationTypeNames=[D,F,P].filter((B)=>B)}_types=new Map;get types(){return this._types}addType(D){this._types.set(D.name,D)}hasType(D){return this._types.has(D)}getType(D){return this._types.get(D)}_customScalars=new Map;get customScalars(){return this._customScalars}addCustomScalar(D){this._customScalars.set(D.name,D)}hasCustomScalar(D){return this._customScalars.has(D)}getCustomScalar(D){return this._customScalars.get(D)}removeCustomScalar(D){this._customScalars.delete(D)}_enumsTypes=new Map;get enumsTypes(){return this._enumsTypes}addEnumType(D,F){this._enumsTypes.set(D,F)}hasEnumType(D){if(!D)return!1;return this._enumsTypes.has(D)}getEnumType(D){return this._enumsTypes.get(D)}_argumentTypes=new Map;get argumentTypes(){return this._argumentTypes}addArgumentType(D,F){this._argumentTypes.set(D,F)}hasArgumentType(D){return this._argumentTypes.has(D)}getArgumentType(D){return this._argumentTypes.get(D)}_argumentMeta=new Map;get argumentMeta(){return this._argumentMeta}addArgumentMeta(D,F){this._argumentMeta.set(D,F)}hasArgumentMeta(D){return this._argumentMeta.has(D)}getArgumentMeta(D){return this._argumentMeta.get(D)}_directivesFunctions=new Map;get directivesFunctions(){return this._directivesFunctions}addDirectiveFunction(D,F){this._directivesFunctions.set(D,F)}hasDirectiveFunction(D){return this._directivesFunctions.has(D)}getDirectiveFunction(D){return this._directivesFunctions.get(D)}_selectionTypes=new Map;get selectionTypes(){return this._selectionTypes}addSelectionType(D,F){this._selectionTypes.set(D,F)}hasSelectionType(D){if(!D)return!1;return this._selectionTypes.has(D)}getSelectionType(D){return this._selectionTypes.get(D)}_selectionFunctions=new Map;get selectionFunctions(){return this._selectionFunctions}addSelectionFunction(D,F){this._selectionFunctions.set(D,F)}hasSelectionFunction(D){if(!D)return!1;return this._selectionFunctions.has(D)}getSelectionFunction(D){return this._selectionFunctions.get(D)}}class EU{Codegen;constructor(D){this.Codegen=D}async generate({schema:D,options:F,authConfig:P}){let B=D.getQueryType()?.name,Z=D.getMutationType()?.name,q=D.getSubscriptionType()?.name,X=new KU(B,Z,q);UT(D,F,X);for(let[Y,H]of X.types.entries()){if(!H.isEnum)continue;new this.Codegen(Y,X,F,P).makeEnumType()}for(let[Y,H]of X.types.entries()){if(!H.isInput)continue;new this.Codegen(Y,X,F,P).makeSelectionType()}for(let[Y,H]of X.types.entries()){if(!H.isDirective?.locations.some((W)=>[L3.DirectiveLocation.FIELD,L3.DirectiveLocation.FRAGMENT_SPREAD,L3.DirectiveLocation.INLINE_FRAGMENT].includes(W)))continue;new this.Codegen(Y,X,F,P).makeDirective()}for(let[Y,H]of X.types.entries()){if(H.isScalar||H.isInput||H.isEnum||H.isDirective)continue;new this.Codegen(Y,X,F,P).makeSelectionType(),new this.Codegen(Y,X,F,P).makeSelectionFunction()}return[this.Codegen.FieldValueWrapperType,this.Codegen.HelperTypes(Array.from(X.customScalars.values())),this.Codegen.HelperFunctions,...[...X.enumsTypes.entries()].map(([Y,H])=>H).filter((Y,H,W)=>W.indexOf(Y)===H),...[...X.argumentTypes.entries()].map(([Y,H])=>H).filter((Y,H,W)=>W.indexOf(Y)===H),...[...X.argumentMeta.entries()].map(([Y,H])=>H).filter((Y,H,W)=>W.indexOf(Y)===H),...[...X.selectionTypes.entries()].filter(([Y])=>Y.isInput||X.customScalars.size>0&&Y.isObject).map(([Y,H])=>H).filter((Y,H,W)=>W.indexOf(Y)===H),this.Codegen.EnumTypesMapped(X),...[...X.selectionFunctions.entries()].filter(([Y])=>!Y.isScalar&&!Y.isEnum&&!Y.isInput).map(([Y,H])=>H),...[...X.directivesFunctions.entries()].map(([Y,H])=>H),this.Codegen.makeRootOperationFunction(X,P)].join(`
3810
+ `)}}var f1={};$U(f1,{Generator:()=>CU});var SD=(D,F="$")=>{let P="";for(let B of D.filter(Boolean))P+=B.charAt(0).toUpperCase()+B.slice(1)+F;return P.slice(0,P.length-F.length).replaceAll("/","_").replaceAll("-","_").replaceAll(".","_")},OT=(D,F,P)=>{let B={types:[],operations:[],customScalars:[]};for(let[Z,q]of Object.entries(D?.components?.schemas??{}))B.types.push(lD(D,Z,q,"schemas",{isNonNull:!1},P));for(let[Z,q]of Object.entries(D?.paths??{})){if("$ref"in q)continue;for(let[X,J]of Object.entries(q)){if(!J)continue;if("$ref"in J){console.warn(`TODO: Handle $ref in methodValue for ${Z}`);continue}let Y=GT(D,Z,X,J,F,P);if(!Y)continue;B.operations.push(Y)}}return B},N7=(D,F,P,B)=>{let Z={name:D,description:F,isScalar:!0,scalarTSType:P,isEnum:!1,isObject:!1,isUnion:!1,isList:0,isNonNull:!1,fields:[],possibleTypes:[],inputFields:[],isInput:!1,enumValues:[]};return Z.ofType=Z,B.addType(Z),B.addCustomScalar(Z),Z},u7=(D,F)=>{let P=F?.isInput??D.isInput,B=F?.isNonNull??D.isNonNull;return`${D.name.slice(0,P&&B?-1:void 0)}${P?`${B?"Input!":"Input"}`:""}`.replaceAll("-","_")},_7=(D,F)=>{if(D.isInput||D.isScalar)return D;let P=u7(D,{isInput:!0}),B={...D,name:P,isInput:!0,isObject:!1,inputFields:D.fields.map((Z)=>({...Z,location:"$",type:_7(Z.type,F)})),fields:[],possibleTypes:D.possibleTypes.map((Z)=>_7(Z,F))};return B.ofType=B,F.addType(B),B},lD=(D,F,P,B,Z,q)=>{if("ofType"in P)return P;if("$ref"in P){let H=P.$ref.split("/");H.shift();let W=H.shift(),U=H.shift(),O=H.shift(),z=D[W]?.[U]?.[O];if(z)return lD(D,SD([Z.operationResponseType?"":F,O]),z,U,{isNonNull:Z.isNonNull},q);throw new Error(`Reference ${P.$ref} not found`)}if("schema"in P)return lD(D,F,P.schema,"schemas",{isNonNull:Z.isNonNull,operationResponseType:Z.operationResponseType},q);let X=P;if("properties"in X&&!("type"in X))X.type="object";let J={name:Z.operationResponseType?F:Z.isNonNull?`${F}!`:F,description:X.description,isObject:"type"in X&&(X.type==="object"||JSON.stringify(X.type)===JSON.stringify(["object","null"])),fields:[],isUnion:!!X.oneOf||!!X.anyOf||!!X.allOf,possibleTypes:[],isList:0,isNonNull:Z.isNonNull,isScalar:!1,scalarTSType:void 0,isEnum:{schemas:!!X.enum,parameters:!1,responses:!1,requestBodies:!1,headers:!1}[B],enumValues:[],isInput:B==="parameters"||B==="headers"||B==="requestBodies",inputFields:[],ofType:void 0};J.isScalar=!J.isObject&&!J.isUnion&&!J.isEnum&&!J.isInput;let Y=u7(J);if(q.hasType(Y))return q.getType(Y);else J.name=Y,q.addType(J);if(J.ofType=J,J.isEnum){let H=X;for(let W of[...H.enum??[]])J.enumValues.push({name:String(W),description:X.description,type:lD(D,F,X,B,{isNonNull:Z.isNonNull},q)})}if(J.isInput){let H=X;if("content"in H){let W=H;for(let[U,O]of Object.entries(W.content??{})){q.removeType(Y);let z=_7(lD(D,F,O,B,{isNonNull:W.required??!1},q),q);if(z.fields.length===1&&!!z.fields[0].type.scalarTSType)return q.removeType(Y),J=z.fields[0].type,q.addType(J),J;else return q.removeType(Y),J=z,q.addType(J),J}}if("schema"in H&&"in"in H){let W=H;if(W.schema)J.inputFields.push(M8(D,W.name,W.schema,B,W.in,{isNonNull:W.required??!1},q));else J.inputFields.push(M8(D,W.name,lD(D,SD([F,"Input",W.name]),W.content["application/json"],B,{isNonNull:W.required??!1},q),B,W.in,{isNonNull:W.required??!1},q))}if("schema"in H&&!("in"in H)){let W=H;if(W.schema)J.inputFields.push(M8(D,SD([F,"Header"]),W.schema,B,"header",{isNonNull:W.required??!1},q));else J.inputFields.push(M8(D,SD([F,"Header"]),lD(D,SD([F,"Input","Header"]),W.content["application/json"],B,{isNonNull:W.required??!1},q),B,"header",{isNonNull:W.required??!1},q))}}if(J.isObject){let H=X,W=H.properties;for(let[z,I]of Object.entries(W??{})){let R="$ref"in I;q.removeType(SD([F,z]));let $=lD(D,SD([F,z]),I,B,{isNonNull:H.required?.includes(z)??!1},q),E=zT(D,z,$,{isNonNull:H.required?.includes(z)??!1},q);J.fields.push(E)}let U,O=H.additionalProperties;if(O===!0||JSON.stringify(O)===JSON.stringify({}))U=N7(SD([F,"AdditionalProperties"]),"Additional properties","Record<string, any>",q),J.fields.push({name:SD([F,"Any"]),description:"Additional properties",type:U});else if(typeof O==="object")if("type"in O&&O.type==="string")U=N7(SD([F,"AdditionalProperties"]),"Additional properties","Record<string, string>",q),J.fields.push({name:SD([F,"AdditionalProperties"]),description:"Additional properties",type:U});else{let z="$ref"in O,I=lD(D,z?"":SD([F,"AdditionalProperties"]),O,B,{isNonNull:!1},q),R=I.name.replaceAll("!","").replaceAll("[","").replaceAll("]","");R={Int:"number",Float:"number",String:"string",Boolean:"boolean"}[R]??R;let $=R+(I.isList?Array.from({length:I.isList}).map((E)=>"[]").join(""):"");if(I.isScalar&&I.scalarTSType)U=I,J.fields.push({name:SD([F,R]),description:"Additional properties",type:U});else U=N7(SD([F,R]),"Additional properties",`Record<string, ${$}>`,q),J.fields.push({name:SD([F,R]),description:"Additional properties",type:U})}if(U&&J.fields.length===1)return q.removeType(Y),q.addType(U),U}if(J.isUnion){let H=0;for(let W of[...X.oneOf??[],...X.anyOf??[],...X.allOf??[]]){H++,q.removeType(Y);let U="$ref"in W;J.possibleTypes.push(lD(D,U?"":`${F}Subtype${H}`,W,B,{isNonNull:Z.isNonNull},q))}if(J.possibleTypes.length===1){let W=J.possibleTypes[0];J={...W,isList:J.isList,ofType:W,name:J.name}}}if(J.isScalar){let H=X;if(H.type==="array"){let W="$ref"in X.items;if(!W||X.items.$ref!==`#/components/${B}/${Y}`)q.removeType(Y);J.isList++;let U=lD(D,W?"":F,X.items,"schemas",{isNonNull:Z.isNonNull},q),O=J.isList+=U?.isList??0;J={...U,isList:O,name:`[${U.name}]`},J.ofType=J}else if(typeof H.type==="string"){q.removeType(Y),J.name=SD([H.type]);let W={double:"Float",float:"Float",integer:"Int",long:"Int",int32:"Int",int64:"Int",number:"Float",byte:"Int"};if(H.format&&H.format.toLowerCase()in W)J.name=W[H.format.toLowerCase()]}else if(Array.isArray(H))q.removeType(Y),J.name=SD(H);if(Z.isNonNull&&!J.name.endsWith("!"))q.removeType(Y),J.name=`${J.name}!`;J.name=u7(J)}return q.addType(J),J},M8=(D,F,P,B,Z,q,X)=>{return{name:F,description:P.description,location:Z,type:lD(D,F,P,B,q,X)}},zT=(D,F,P,B,Z)=>{return{name:F,description:P.description,type:lD(D,F,P,"schemas",B,Z)}},QT={get:"Get",post:"Create",put:"Update",delete:"Delete",patch:"Patch",options:"Options",head:"Head",trace:"Trace"},GT=(D,F,P,B,Z,q)=>{if(!B.responses){console.warn("Operation has no responses!");return}let X=Object.entries(B.responses).filter(([U,O])=>U.toString().startsWith("2")).sort(([U,O],[z,I])=>+U-+z),J=X.length>0?X[0][1]:B.responses.default,Y=Object.entries(B.responses).filter(([U,O])=>U.toString().startsWith("4")||U.toString().startsWith("5"));if(!J){console.warn("Operation has no success response!",B);return}let H=B.operationId?.replaceAll(".","_").replaceAll("/","_").replaceAll("-","_")??SD([QT[P],...F.split("/").flatMap((U)=>[U.includes("{")?"By":"",U.replace(/{([^}]+)}/g,"$1")].filter((O)=>O.length>0))],""),W={name:H,description:B.description,path:F,method:P,args:[],type:lD(D,H,"content"in J?J.content["application/json"]??Object.entries(J.content).find(([U,O])=>O)?.[1]:J,"responses",{isNonNull:!1,operationResponseType:!0},q)};for(let U of B.parameters??[]){let O="$ref"in U?U.$ref.split("/").pop():U.name,z="in"in U?U.in:U.$ref.split("/").at(-2),I={parameters:"query",requestBodies:"body",headers:"header",cookie:"cookie",path:"path",query:"query",header:"header"}[z];W.args.push(M8(D,O,U,"parameters",I,{isNonNull:"$ref"in U?!1:U.required??!1},q))}if(B.requestBody){let U=B.requestBody,O=M8(D,`${H}RequestBody`,U,"requestBodies","body",{isNonNull:U.required??!1},q);O.name="$",W.args.push(O)}return W};class AU{constructor(){}_types=new Map;get types(){return this._types}addType(D){this._types.set(D.name,D)}hasType(D){return this._types.has(D)}getType(D){return this._types.get(D)}removeType(D){this._types.delete(D)}_customScalars=new Map;get customScalars(){return this._customScalars}addCustomScalar(D){this._customScalars.set(D.name,D)}hasCustomScalar(D){return this._customScalars.has(D)}getCustomScalar(D){return this._customScalars.get(D)}removeCustomScalar(D){this._customScalars.delete(D)}_enumsTypes=new Map;get enumsTypes(){return this._enumsTypes}addEnumType(D,F){this._enumsTypes.set(D,F)}hasEnumType(D){if(!D)return!1;return this._enumsTypes.has(D)}hasEnumTypeName(D){for(let[F,P]of this._enumsTypes.entries())if(F.name===D)return!0;return!1}getEnumType(D){return this._enumsTypes.get(D)}getEnumTypeByName(D){for(let[F,P]of this._enumsTypes.entries())if(F.name===D)return P;return""}_argumentTypes=new Map;get argumentTypes(){return this._argumentTypes}addArgumentType(D,F){this._argumentTypes.set(D,F)}hasArgumentType(D){return this._argumentTypes.has(D)}getArgumentType(D){return this._argumentTypes.get(D)}_argumentMeta=new Map;get argumentMeta(){return this._argumentMeta}addArgumentMeta(D,F){this._argumentMeta.set(D,F)}hasArgumentMeta(D){return this._argumentMeta.has(D)}getArgumentMeta(D){return this._argumentMeta.get(D)}_selectionTypes=new Map;get selectionTypes(){return this._selectionTypes}addSelectionType(D,F){this._selectionTypes.set(D,F)}hasSelectionType(D){if(!D)return!1;return this._selectionTypes.has(D)}getSelectionType(D){return this._selectionTypes.get(D)}_selectionFunctions=new Map;get selectionFunctions(){return this._selectionFunctions}addSelectionFunction(D,F){this._selectionFunctions.set(D,F)}hasSelectionFunction(D){if(!D)return!1;return this._selectionFunctions.has(D)}getSelectionFunction(D){return this._selectionFunctions.get(D)}}class CU{Codegen;constructor(D){this.Codegen=D}async generate({schema:D,options:F,authConfig:P}){let B=new AU,Z=OT(D,F,B);for(let[J,Y]of B.types.entries()){if(!Y.isEnum)continue;new this.Codegen(J,B,F).makeEnumType()}for(let[J,Y]of B.types.entries()){if(!Y.isInput)continue;new this.Codegen(J,B,F).makeSelectionType()}for(let[J,Y]of B.types.entries()){if(Y.isScalar||Y.isInput||Y.isEnum)continue;new this.Codegen(J,B,F).makeSelectionType(),new this.Codegen(J,B,F).makeSelectionFunction()}let q=this.Codegen.makeRootOperationFunction(Z.operations,B,F,P);return[this.Codegen.FieldValueWrapperType,this.Codegen.HelperTypes(Array.from(B.customScalars.values())),this.Codegen.HelperFunctions,...[...B.enumsTypes.entries()].map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),...[...B.argumentTypes.entries()].map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),...[...B.argumentMeta.entries()].map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),...[...B.selectionTypes.entries()].filter(([J])=>!J.isScalar&&!J.isEnum&&!(J.isScalar&&J.isUnion)).map(([J,Y])=>Y).filter((J,Y,H)=>H.indexOf(J)===Y),this.Codegen.EnumTypesMapped(B),this.Codegen.UnionTypesMapped(B),...[...B.selectionFunctions.entries()].filter(([J])=>!J.isScalar&&!J.isEnum&&!J.isInput&&!(J.isScalar&&J.isUnion)).map(([J,Y])=>Y).filter((J)=>!J.startsWith("new SelectionWrapper")).filter((J,Y,H)=>H.indexOf(J)===Y),q].join(`
3811
+ `)}}var X2={GraphQL:{default:m2},OpenAPI:{default:q2}};import gO from"fs";import r1 from"fs";import AF from"path";var K8=(D)=>{process.stdout.write("\x1Bc"),process.stdout.write(`
3808
3812
  _____ _
3809
3813
  / ___| (_)
3810
3814
  \\ \`--. __ _ _ __ ___ __ _ _ __ _ _ _ _ __ ___
3811
3815
  \\\`--. \\ / _\` || '_ \` _ \\ / _\` || '__|| || | | || '_ \` _ \\
3812
3816
  /\\__/ /| (_| || | | | | || (_| || | | || |_| || | | | | |
3813
3817
  \\____/ \\__,_||_| |_| |_| \\__,_||_| |_| \\__,_||_| |_| |_|
3814
- `),console.log(" "),console.log(`v${$6.version}`),console.log(" "),console.log("Welcome to the Samarium CLI Assistant"),console.log(" "),console.log(`This assistant will help you compile an ${D} API into a samarium typescript sdk.`),console.log(" ")};var V3=(D)=>D.name==="up"||D.name==="k"||D.ctrl&&D.name==="p",k7=(D)=>D.name==="down"||D.name==="j"||D.ctrl&&D.name==="n";var j3=(D)=>D.name==="backspace",LU=(D)=>"123456789".includes(D.name),K8=(D)=>D.name==="enter"||D.name==="return";class x7 extends Error{message="Prompt was canceled"}class f7 extends Error{}class h7 extends Error{}class h1 extends Error{}import{AsyncResource as dT}from"node:async_hooks";import{AsyncLocalStorage as RT,AsyncResource as IT}from"node:async_hooks";var wU=new RT;function $T(D){return{rl:D,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function VU(D,F){let P=$T(D);return wU.run(P,()=>{F(P)})}function E8(){let D=wU.getStore();if(!D)throw new h7("[Inquirer] Hook functions can only be called from within a prompt");return D}function v7(){return E8().rl}function g7(D){let F=(...P)=>{let B=E8(),Z=!1,q=B.handleChange;B.handleChange=()=>{Z=!0};let X=D(...P);if(Z)q();return B.handleChange=q,X};return IT.bind(F)}function A8(D){let F=E8(),{index:P}=F,B={get(){return F.hooks[P]},set(q){F.hooks[P]=q},initialized:P in F.hooks},Z=D(B);return F.index++,Z}function jU(){E8().handleChange()}var b3={queue(D){let F=E8(),{index:P}=F;F.hooksEffect.push(()=>{F.hooksCleanup[P]?.();let B=D(v7());if(B!=null&&typeof B!=="function")throw new h1("useEffect return value must be a cleanup function or nothing.");F.hooksCleanup[P]=B})},run(){let D=E8();g7(()=>{D.hooksEffect.forEach((F)=>{F()}),D.hooksEffect.length=0})()}};function fD(D){return A8((F)=>{let P=(Z)=>{if(F.get()!==Z)F.set(Z),jU()};if(F.initialized)return[F.get(),P];let B=typeof D==="function"?D():D;return F.set(B),[B,P]})}function S3(D,F){A8((P)=>{let B=P.get();if(!Array.isArray(B)||F.some((q,X)=>!Object.is(q,B[X])))b3.queue(D);P.set(F)})}var _0=UD(n7(),1),i7=UD(YW(),1),HW={prefix:_0.default.green("?"),spinner:{interval:i7.default.dots.interval,frames:i7.default.dots.frames.map((D)=>_0.default.yellow(D))},style:{answer:_0.default.cyan,message:_0.default.bold,error:(D)=>_0.default.red(`> ${D}`),defaultAnswer:(D)=>_0.default.dim(`(${D})`),help:_0.default.dim,highlight:_0.default.cyan,key:(D)=>_0.default.cyan.bold(`<${D}>`)}};function UW(D){if(typeof D!=="object"||D===null)return!1;let F=D;while(Object.getPrototypeOf(F)!==null)F=Object.getPrototypeOf(F);return Object.getPrototypeOf(D)===F}function WW(...D){let F={};for(let P of D)for(let[B,Z]of Object.entries(P)){let q=F[B];F[B]=UW(q)&&UW(Z)?WW(q,Z):Z}return F}function p0(...D){let F=[HW,...D.filter((P)=>P!=null)];return WW(...F)}function l2({isLoading:D=!1,theme:F}){let[P,B]=fD(0),{prefix:Z,spinner:q}=p0(F);if(S3(()=>{if(D){let X=setTimeout(dT.bind(()=>{B(P+1)}),q.interval);return()=>clearTimeout(X)}},[D,P]),D){let X=P%q.frames.length;return q.frames[X]}return Z}function v3(D,F){return A8((P)=>{let B=P.get();if(!B||B.dependencies.length!==F.length||B.dependencies.some((Z,q)=>Z!==F[q])){let Z=D();return P.set({value:Z,dependencies:F}),Z}return B.value})}function Y2(D){return fD({current:D})[0]}function c2(D){let F=Y2(D);F.current=D,S3((P)=>{let B=g7((Z,q)=>{F.current(q,P)});return P.input.on("keypress",B),()=>{P.input.removeListener("keypress",B)}},[])}var NW=UD(zW(),1),uW=UD(TW(),1);function l1(D,F){return D.split(`
3818
+ `),console.log(" "),console.log(`v${$6.version}`),console.log(" "),console.log("Welcome to the Samarium CLI Assistant"),console.log(" "),console.log(`This assistant will help you compile an ${D} API into a samarium typescript sdk.`),console.log(" ")};var V3=(D)=>D.name==="up"||D.name==="k"||D.ctrl&&D.name==="p",k7=(D)=>D.name==="down"||D.name==="j"||D.ctrl&&D.name==="n";var j3=(D)=>D.name==="backspace",LU=(D)=>"123456789".includes(D.name),E8=(D)=>D.name==="enter"||D.name==="return";class x7 extends Error{message="Prompt was canceled"}class f7 extends Error{}class h7 extends Error{}class h1 extends Error{}import{AsyncResource as dT}from"node:async_hooks";import{AsyncLocalStorage as RT,AsyncResource as IT}from"node:async_hooks";var wU=new RT;function $T(D){return{rl:D,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function VU(D,F){let P=$T(D);return wU.run(P,()=>{F(P)})}function A8(){let D=wU.getStore();if(!D)throw new h7("[Inquirer] Hook functions can only be called from within a prompt");return D}function v7(){return A8().rl}function g7(D){let F=(...P)=>{let B=A8(),Z=!1,q=B.handleChange;B.handleChange=()=>{Z=!0};let X=D(...P);if(Z)q();return B.handleChange=q,X};return IT.bind(F)}function C8(D){let F=A8(),{index:P}=F,B={get(){return F.hooks[P]},set(q){F.hooks[P]=q},initialized:P in F.hooks},Z=D(B);return F.index++,Z}function jU(){A8().handleChange()}var b3={queue(D){let F=A8(),{index:P}=F;F.hooksEffect.push(()=>{F.hooksCleanup[P]?.();let B=D(v7());if(B!=null&&typeof B!=="function")throw new h1("useEffect return value must be a cleanup function or nothing.");F.hooksCleanup[P]=B})},run(){let D=A8();g7(()=>{D.hooksEffect.forEach((F)=>{F()}),D.hooksEffect.length=0})()}};function fD(D){return C8((F)=>{let P=(Z)=>{if(F.get()!==Z)F.set(Z),jU()};if(F.initialized)return[F.get(),P];let B=typeof D==="function"?D():D;return F.set(B),[B,P]})}function S3(D,F){C8((P)=>{let B=P.get();if(!Array.isArray(B)||F.some((q,X)=>!Object.is(q,B[X])))b3.queue(D);P.set(F)})}var _0=UD(n7(),1),i7=UD(YW(),1),HW={prefix:_0.default.green("?"),spinner:{interval:i7.default.dots.interval,frames:i7.default.dots.frames.map((D)=>_0.default.yellow(D))},style:{answer:_0.default.cyan,message:_0.default.bold,error:(D)=>_0.default.red(`> ${D}`),defaultAnswer:(D)=>_0.default.dim(`(${D})`),help:_0.default.dim,highlight:_0.default.cyan,key:(D)=>_0.default.cyan.bold(`<${D}>`)}};function UW(D){if(typeof D!=="object"||D===null)return!1;let F=D;while(Object.getPrototypeOf(F)!==null)F=Object.getPrototypeOf(F);return Object.getPrototypeOf(D)===F}function WW(...D){let F={};for(let P of D)for(let[B,Z]of Object.entries(P)){let q=F[B];F[B]=UW(q)&&UW(Z)?WW(q,Z):Z}return F}function p0(...D){let F=[HW,...D.filter((P)=>P!=null)];return WW(...F)}function l2({isLoading:D=!1,theme:F}){let[P,B]=fD(0),{prefix:Z,spinner:q}=p0(F);if(S3(()=>{if(D){let X=setTimeout(dT.bind(()=>{B(P+1)}),q.interval);return()=>clearTimeout(X)}},[D,P]),D){let X=P%q.frames.length;return q.frames[X]}return Z}function v3(D,F){return C8((P)=>{let B=P.get();if(!B||B.dependencies.length!==F.length||B.dependencies.some((Z,q)=>Z!==F[q])){let Z=D();return P.set({value:Z,dependencies:F}),Z}return B.value})}function Y2(D){return fD({current:D})[0]}function c2(D){let F=Y2(D);F.current=D,S3((P)=>{let B=g7((Z,q)=>{F.current(q,P)});return P.input.on("keypress",B),()=>{P.input.removeListener("keypress",B)}},[])}var NW=UD(zW(),1),uW=UD(TW(),1);function l1(D,F){return D.split(`
3815
3819
  `).flatMap((P)=>uW.default(P,F,{trim:!1,hard:!0}).split(`
3816
3820
  `).map((B)=>B.trimEnd())).join(`
3817
3821
  `)}function g3(){return NW.default({defaultWidth:80,output:v7().output})}function BN(D,F){return l1(D,F).split(`
@@ -3821,23 +3825,23 @@ export class SelectionWrapper<
3821
3825
  `).pop()??"";class l3{rl;height=0;extraLinesUnderPrompt=0;cursorPos;constructor(D){this.rl=D,this.rl=D,this.cursorPos=D.getCursorPos()}render(D,F=""){let P=WN(D),B=nW.default(P),Z=B;if(this.rl.line.length>0)Z=Z.slice(0,-this.rl.line.length);this.rl.setPrompt(Z),this.cursorPos=this.rl.getCursorPos();let q=g3();if(D=l1(D,q),F=l1(F,q),B.length%q===0)D+=`
3822
3826
  `;let X=D+(F?`
3823
3827
  `+F:""),Y=Math.floor(B.length/q)-this.cursorPos.rows+(F?sW(F):0);if(Y>0)X+=H2.default.cursorUp(Y);X+=H2.default.cursorTo(this.cursorPos.cols),this.clean(),this.rl.output.unmute(),this.extraLinesUnderPrompt=Y,this.height=sW(X),this.rl.output.write(X),this.rl.output.mute()}checkCursorPos(){let D=this.rl.getCursorPos();if(D.cols!==this.cursorPos.cols)this.rl.output.unmute(),this.rl.output.write(H2.default.cursorTo(D.cols)),this.rl.output.mute(),this.cursorPos=D}clean(){this.rl.output.unmute(),this.rl.output.write([this.extraLinesUnderPrompt>0?H2.default.cursorDown(this.extraLinesUnderPrompt):"",H2.default.eraseLines(this.height)].join("")),this.extraLinesUnderPrompt=0,this.rl.output.mute()}clearContent(){this.rl.output.unmute(),this.rl.output.write([this.extraLinesUnderPrompt>0?H2.default.cursorDown(this.extraLinesUnderPrompt):"",`
3824
- `].join("")),this.rl.output.mute()}done(){this.rl.setPrompt(""),this.rl.output.unmute(),this.rl.output.write(H2.default.cursorShow),this.rl.output.end(),this.rl.close()}}function p2(D){return(P,B)=>{let Z=B?.input??process.stdin,q=new oW.default;q.pipe(B?.output??process.stdout);let X=iW.createInterface({terminal:!0,input:Z,output:q}),J=new l3(X),Y=()=>{},H=new PF((W,U)=>{VU(X,(O)=>{function z(){J.checkCursorPos()}let I=lW((w,A)=>{R(),U(new f7(`User force closed the prompt with ${w} ${A}`))});function R(){try{O.hooksCleanup.forEach((w)=>{w?.()})}catch(w){U(w)}if(B?.clearPromptOnDone)J.clean();else J.clearContent();J.done(),I(),O.rl.input.removeListener("keypress",z)}Y=()=>{R(),U(new x7)};function $(w){setImmediate(()=>{R(),W(w)})}function E(w){O.index=0,O.handleChange=()=>E(w);try{let A=D(P,$),[S,V]=typeof A==="string"?[A]:A;J.render(S,V),b3.run()}catch(A){R(),U(A)}}E(P),O.rl.input.on("keypress",z)})});return H.cancel=Y,H}}var DO=UD(n7(),1);import k0 from"node:process";function ON(){if(k0.platform!=="win32")return k0.env.TERM!=="linux";return Boolean(k0.env.WT_SESSION)||Boolean(k0.env.TERMINUS_SUBLIME)||k0.env.ConEmuTask==="{cmd::Cmder}"||k0.env.TERM_PROGRAM==="Terminus-Sublime"||k0.env.TERM_PROGRAM==="vscode"||k0.env.TERM==="xterm-256color"||k0.env.TERM==="alacritty"||k0.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var tW={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},eW={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},zN={tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},QN={...tW,...eW},GN={...tW,...zN},RN=ON(),IN=RN?QN:GN,c3=IN,tp=Object.entries(eW);class b8{separator=DO.default.dim(Array.from({length:15}).join(c3.line));type="separator";constructor(D){if(D)this.separator=D}static isSeparator(D){return Boolean(D&&D.type==="separator")}}var d3=p2((D,F)=>{let{transformer:P=(O)=>O?"yes":"no"}=D,[B,Z]=fD("pending"),[q,X]=fD(""),J=p0(D.theme),Y=l2({theme:J});c2((O,z)=>{if(K8(O)){let I=D.default!==!1;if(/^(y|yes)/i.test(q))I=!0;else if(/^(n|no)/i.test(q))I=!1;X(P(I)),Z("done"),F(I)}else X(z.line)});let H=q,W="";if(B==="done")H=J.style.answer(q);else W=` ${J.style.defaultAnswer(D.default===!1?"y/N":"Y/n")}`;let U=J.style.message(D.message);return`${Y} ${U}${W} ${H}`});var r0=p2((D,F)=>{let{validate:P=()=>!0}=D,B=p0(D.theme),[Z,q]=fD("pending"),[X="",J]=fD(D.default),[Y,H]=fD(),[W,U]=fD(""),z=l2({isLoading:Z==="loading",theme:B});c2(async(w,A)=>{if(Z!=="pending")return;if(K8(w)){let S=W||X;q("loading");let V=await P(S);if(V===!0)U(S),q("done"),F(S);else A.write(W),H(V||"You must provide a valid value"),q("pending")}else if(j3(w)&&!W)J(void 0);else if(w.name==="tab"&&!W)J(void 0),A.clearLine(0),A.write(X),U(X);else U(A.line),H(void 0)});let I=B.style.message(D.message),R=W;if(typeof D.transformer==="function")R=D.transformer(W,{isFinal:Z==="done"});else if(Z==="done")R=B.style.answer(W);let $;if(X&&Z!=="done"&&!W)$=B.style.defaultAnswer(X);let E="";if(Y)E=B.style.error(Y);return[[z,I,$,R].filter((w)=>w!==void 0).join(" "),E]});var MO=UD($O(),1);var KO=UD(YF(),1);var uN={icon:{cursor:c3.pointer},style:{disabled:(D)=>MO.default.dim(`- ${D}`)},helpMode:"auto"};function T8(D){return!b8.isSeparator(D)&&!D.disabled}var W2=p2((D,F)=>{let{choices:P,loop:B=!0,pageSize:Z=7}=D,q=Y2(!0),X=p0(uN,D.theme),J=l2({theme:X}),[Y,H]=fD("pending"),W=Y2(),U=v3(()=>{let V=P.findIndex(T8),T=P.findLastIndex(T8);if(V<0)throw new h1("[select prompt] No selectable choices. All choices are disabled.");return{first:V,last:T}},[P]),O=v3(()=>{if(!("default"in D))return-1;return P.findIndex((V)=>T8(V)&&V.value===D.default)},[D.default,P]),[z,I]=fD(O===-1?U.first:O),R=P[z];c2((V,T)=>{if(clearTimeout(W.current),K8(V))H("done"),F(R.value);else if(V3(V)||k7(V)){if(T.clearLine(0),B||V3(V)&&z!==U.first||k7(V)&&z!==U.last){let m=V3(V)?-1:1,j=z;do j=(j+m+P.length)%P.length;while(!T8(P[j]));I(j)}}else if(LU(V)){T.clearLine(0);let m=Number(V.name)-1,j=P[m];if(j!=null&&T8(j))I(m)}else if(j3(V))T.clearLine(0);else{let m=T.line.toLowerCase(),j=P.findIndex((M)=>{if(b8.isSeparator(M)||!T8(M))return!1;return String(M.name||M.value).toLowerCase().startsWith(m)});if(j>=0)I(j);W.current=setTimeout(()=>{T.clearLine(0)},700)}});let $=X.style.message(D.message),E="",w="";if(X.helpMode==="always"||X.helpMode==="auto"&&q.current)if(q.current=!1,P.length>Z)w=`
3825
- ${X.style.help("(Use arrow keys to reveal more choices)")}`;else E=X.style.help("(Use arrow keys)");let A=FF({items:P,active:z,renderItem({item:V,isActive:T}){if(b8.isSeparator(V))return` ${V.separator}`;let m=V.name||V.value;if(V.disabled){let k=typeof V.disabled==="string"?V.disabled:"(disabled)";return X.style.disabled(`${m} ${k}`)}let j=T?X.style.highlight:(k)=>k,M=T?X.icon.cursor:" ";return j(`${M} ${m}`)},pageSize:Z,loop:B});if(Y==="done"){let V=R.name||String(R.value);return`${J} ${$} ${X.style.answer(V)}`}let S=R.description?`
3828
+ `].join("")),this.rl.output.mute()}done(){this.rl.setPrompt(""),this.rl.output.unmute(),this.rl.output.write(H2.default.cursorShow),this.rl.output.end(),this.rl.close()}}function p2(D){return(P,B)=>{let Z=B?.input??process.stdin,q=new oW.default;q.pipe(B?.output??process.stdout);let X=iW.createInterface({terminal:!0,input:Z,output:q}),J=new l3(X),Y=()=>{},H=new PF((W,U)=>{VU(X,(O)=>{function z(){J.checkCursorPos()}let I=lW((w,A)=>{R(),U(new f7(`User force closed the prompt with ${w} ${A}`))});function R(){try{O.hooksCleanup.forEach((w)=>{w?.()})}catch(w){U(w)}if(B?.clearPromptOnDone)J.clean();else J.clearContent();J.done(),I(),O.rl.input.removeListener("keypress",z)}Y=()=>{R(),U(new x7)};function $(w){setImmediate(()=>{R(),W(w)})}function E(w){O.index=0,O.handleChange=()=>E(w);try{let A=D(P,$),[S,V]=typeof A==="string"?[A]:A;J.render(S,V),b3.run()}catch(A){R(),U(A)}}E(P),O.rl.input.on("keypress",z)})});return H.cancel=Y,H}}var DO=UD(n7(),1);import k0 from"node:process";function ON(){if(k0.platform!=="win32")return k0.env.TERM!=="linux";return Boolean(k0.env.WT_SESSION)||Boolean(k0.env.TERMINUS_SUBLIME)||k0.env.ConEmuTask==="{cmd::Cmder}"||k0.env.TERM_PROGRAM==="Terminus-Sublime"||k0.env.TERM_PROGRAM==="vscode"||k0.env.TERM==="xterm-256color"||k0.env.TERM==="alacritty"||k0.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var tW={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},eW={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},zN={tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},QN={...tW,...eW},GN={...tW,...zN},RN=ON(),IN=RN?QN:GN,c3=IN,tp=Object.entries(eW);class S8{separator=DO.default.dim(Array.from({length:15}).join(c3.line));type="separator";constructor(D){if(D)this.separator=D}static isSeparator(D){return Boolean(D&&D.type==="separator")}}var d3=p2((D,F)=>{let{transformer:P=(O)=>O?"yes":"no"}=D,[B,Z]=fD("pending"),[q,X]=fD(""),J=p0(D.theme),Y=l2({theme:J});c2((O,z)=>{if(E8(O)){let I=D.default!==!1;if(/^(y|yes)/i.test(q))I=!0;else if(/^(n|no)/i.test(q))I=!1;X(P(I)),Z("done"),F(I)}else X(z.line)});let H=q,W="";if(B==="done")H=J.style.answer(q);else W=` ${J.style.defaultAnswer(D.default===!1?"y/N":"Y/n")}`;let U=J.style.message(D.message);return`${Y} ${U}${W} ${H}`});var r0=p2((D,F)=>{let{validate:P=()=>!0}=D,B=p0(D.theme),[Z,q]=fD("pending"),[X="",J]=fD(D.default),[Y,H]=fD(),[W,U]=fD(""),z=l2({isLoading:Z==="loading",theme:B});c2(async(w,A)=>{if(Z!=="pending")return;if(E8(w)){let S=W||X;q("loading");let V=await P(S);if(V===!0)U(S),q("done"),F(S);else A.write(W),H(V||"You must provide a valid value"),q("pending")}else if(j3(w)&&!W)J(void 0);else if(w.name==="tab"&&!W)J(void 0),A.clearLine(0),A.write(X),U(X);else U(A.line),H(void 0)});let I=B.style.message(D.message),R=W;if(typeof D.transformer==="function")R=D.transformer(W,{isFinal:Z==="done"});else if(Z==="done")R=B.style.answer(W);let $;if(X&&Z!=="done"&&!W)$=B.style.defaultAnswer(X);let E="";if(Y)E=B.style.error(Y);return[[z,I,$,R].filter((w)=>w!==void 0).join(" "),E]});var MO=UD($O(),1);var KO=UD(YF(),1);var uN={icon:{cursor:c3.pointer},style:{disabled:(D)=>MO.default.dim(`- ${D}`)},helpMode:"auto"};function N8(D){return!S8.isSeparator(D)&&!D.disabled}var W2=p2((D,F)=>{let{choices:P,loop:B=!0,pageSize:Z=7}=D,q=Y2(!0),X=p0(uN,D.theme),J=l2({theme:X}),[Y,H]=fD("pending"),W=Y2(),U=v3(()=>{let V=P.findIndex(N8),T=P.findLastIndex(N8);if(V<0)throw new h1("[select prompt] No selectable choices. All choices are disabled.");return{first:V,last:T}},[P]),O=v3(()=>{if(!("default"in D))return-1;return P.findIndex((V)=>N8(V)&&V.value===D.default)},[D.default,P]),[z,I]=fD(O===-1?U.first:O),R=P[z];c2((V,T)=>{if(clearTimeout(W.current),E8(V))H("done"),F(R.value);else if(V3(V)||k7(V)){if(T.clearLine(0),B||V3(V)&&z!==U.first||k7(V)&&z!==U.last){let m=V3(V)?-1:1,j=z;do j=(j+m+P.length)%P.length;while(!N8(P[j]));I(j)}}else if(LU(V)){T.clearLine(0);let m=Number(V.name)-1,j=P[m];if(j!=null&&N8(j))I(m)}else if(j3(V))T.clearLine(0);else{let m=T.line.toLowerCase(),j=P.findIndex((M)=>{if(S8.isSeparator(M)||!N8(M))return!1;return String(M.name||M.value).toLowerCase().startsWith(m)});if(j>=0)I(j);W.current=setTimeout(()=>{T.clearLine(0)},700)}});let $=X.style.message(D.message),E="",w="";if(X.helpMode==="always"||X.helpMode==="auto"&&q.current)if(q.current=!1,P.length>Z)w=`
3829
+ ${X.style.help("(Use arrow keys to reveal more choices)")}`;else E=X.style.help("(Use arrow keys)");let A=FF({items:P,active:z,renderItem({item:V,isActive:T}){if(S8.isSeparator(V))return` ${V.separator}`;let m=V.name||V.value;if(V.disabled){let k=typeof V.disabled==="string"?V.disabled:"(disabled)";return X.style.disabled(`${m} ${k}`)}let j=T?X.style.highlight:(k)=>k,M=T?X.icon.cursor:" ";return j(`${M} ${m}`)},pageSize:Z,loop:B});if(Y==="done"){let V=R.name||String(R.value);return`${J} ${$} ${X.style.answer(V)}`}let S=R.description?`
3826
3830
  ${R.description}`:"";return`${[J,$,E].filter(Boolean).join(" ")}
3827
- ${A}${S}${w}${KO.default.cursorHide}`});var r2=UD(e3(),1);var aN=/^(?:( )+|\t+)/;function vO(D,F){let P=new Map,B=0,Z,q;for(let X of D.split(/\n/g)){if(!X)continue;let J,Y,H,W,U,O=X.match(aN);if(O===null)B=0,Z="";else{if(J=O[0].length,Y=O[1]?"space":"tab",F&&Y==="space"&&J===1)continue;if(Y!==Z)B=0;Z=Y,H=1,W=0;let z=J-B;if(B=J,z===0)H=0,W=1;else{let I=z>0?z:-z;q=sN(Y,I)}U=P.get(q),U=U===void 0?[1,0]:[U[0]+H,U[1]+W],P.set(q,U)}}return P}function sN(D,F){return(D==="space"?"s":"t")+String(F)}function nN(D){let P=D[0]==="s"?"space":"tab",B=Number(D.slice(1));return{type:P,amount:B}}function iN(D){let F,P=0,B=0;for(let[Z,[q,X]]of D)if(q>P||q===P&&X>B)P=q,B=X,F=Z;return F}function oN(D,F){return(D==="space"?" ":"\t").repeat(F)}function EF(D){if(typeof D!=="string")throw new TypeError("Expected a string");let F=vO(D,!0);if(F.size===0)F=vO(D,!1);let P=iN(F),B,Z=0,q="";if(P!==void 0)({type:B,amount:Z}=nN(P)),q=oN(B,Z);return{amount:Z,type:B,indent:q}}var X0=async(D,F,P,B=!1)=>{let Z=/<([^>]+)>|\[([^\]]+)\]/g,q,X=[];while(q=Z.exec(F))X.push(q[1]??q[2]);if(X.length>0){if(!B)M8(D),B=!1;let J=F.replace(Z,(Y)=>`\x1B[32m${Y}\x1B[0m`);if(await d3({message:`${P} contains placeholders: ${J} . Do you want to replace them with actual values?`})){let Y=[];for(let H of X){let W=await r0({message:`Enter value for placeholder ${H}:`});Y.push(W)}F=F.replace(Z,()=>Y.shift()??""),console.log(`${P} has been updated to: ${F}`),console.log(" ")}else console.log(`${P} has not been updated. Using the original value: ${F}`),console.log(" ");return F}return F},D5=async(D)=>{let F="";while(!F){F=await r0({message:D});try{new URL(F)}catch(P){console.log("Invalid URL"),F=""}}return F},F5=async()=>{let D=await W2({message:"The endpoint seems to need authorization, choose the header name, or enter a custom name:",default:"Authorization",choices:[{name:"Authorization",value:"Authorization"},{name:"X-Authorization",value:"X-Authorization"},{name:"X-Api-Key",value:"X-Api-Key"},{name:"custom",value:"custom"}]});if(D==="custom")while(!D||D==="custom")D=await r0({message:"Enter the header name:"});let F="";while(!F)F=await r0({message:"Enter the header value:"});return[D,F]},P5=async(D=["."])=>{while(!0){let F=r1.readdirSync(D.join("/"),{withFileTypes:!0}),P=await W2({message:`Navigate to the output directory: ${D.join("/")}`,default:".",choices:[{name:"[create new directory]",value:"[new_dir]",description:"Current directory"},{name:".",value:".",description:"Current directory"},{name:"..",value:"..",description:"Parent directory"},...F.filter((B)=>B.isDirectory()).map((B)=>({name:B.name,value:B.name}))]});if(D.push(P),P==="[new_dir]"){D.pop();let B=await r0({message:"Enter the new directory name:"});r1.mkdirSync(AF.resolve(...D,B)),D.push(B);break}if(P===".")break;if(P===".."){D.pop(),D.pop();continue}}return D},B5=async(D)=>{let F=await r0({message:D,default:"sdk.ts"});if(!F.endsWith(".ts"))F+=".ts";return F},cD={import:r2.default.rgb(185,126,180),name:r2.default.rgb(156,220,254),from:r2.default.rgb(185,126,180),string:r2.default.rgb(206,145,120)},Z5=async(D,F)=>{let P=!1;if(r1.existsSync("tsconfig.json")&&await d3({message:`
3831
+ ${A}${S}${w}${KO.default.cursorHide}`});var r2=UD(e3(),1);var aN=/^(?:( )+|\t+)/;function vO(D,F){let P=new Map,B=0,Z,q;for(let X of D.split(/\n/g)){if(!X)continue;let J,Y,H,W,U,O=X.match(aN);if(O===null)B=0,Z="";else{if(J=O[0].length,Y=O[1]?"space":"tab",F&&Y==="space"&&J===1)continue;if(Y!==Z)B=0;Z=Y,H=1,W=0;let z=J-B;if(B=J,z===0)H=0,W=1;else{let I=z>0?z:-z;q=sN(Y,I)}U=P.get(q),U=U===void 0?[1,0]:[U[0]+H,U[1]+W],P.set(q,U)}}return P}function sN(D,F){return(D==="space"?"s":"t")+String(F)}function nN(D){let P=D[0]==="s"?"space":"tab",B=Number(D.slice(1));return{type:P,amount:B}}function iN(D){let F,P=0,B=0;for(let[Z,[q,X]]of D)if(q>P||q===P&&X>B)P=q,B=X,F=Z;return F}function oN(D,F){return(D==="space"?" ":"\t").repeat(F)}function EF(D){if(typeof D!=="string")throw new TypeError("Expected a string");let F=vO(D,!0);if(F.size===0)F=vO(D,!1);let P=iN(F),B,Z=0,q="";if(P!==void 0)({type:B,amount:Z}=nN(P)),q=oN(B,Z);return{amount:Z,type:B,indent:q}}var X0=async(D,F,P,B=!1)=>{let Z=/<([^>]+)>|\[([^\]]+)\]/g,q,X=[];while(q=Z.exec(F))X.push(q[1]??q[2]);if(X.length>0){if(!B)K8(D),B=!1;let J=F.replace(Z,(Y)=>`\x1B[32m${Y}\x1B[0m`);if(await d3({message:`${P} contains placeholders: ${J} . Do you want to replace them with actual values?`})){let Y=[];for(let H of X){let W=await r0({message:`Enter value for placeholder ${H}:`});Y.push(W)}F=F.replace(Z,()=>Y.shift()??""),console.log(`${P} has been updated to: ${F}`),console.log(" ")}else console.log(`${P} has not been updated. Using the original value: ${F}`),console.log(" ");return F}return F},D5=async(D)=>{let F="";while(!F){F=await r0({message:D});try{new URL(F)}catch(P){console.log("Invalid URL"),F=""}}return F},F5=async()=>{let D=await W2({message:"The endpoint seems to need authorization, choose the header name, or enter a custom name:",default:"Authorization",choices:[{name:"Authorization",value:"Authorization"},{name:"X-Authorization",value:"X-Authorization"},{name:"X-Api-Key",value:"X-Api-Key"},{name:"custom",value:"custom"}]});if(D==="custom")while(!D||D==="custom")D=await r0({message:"Enter the header name:"});let F="";while(!F)F=await r0({message:"Enter the header value:"});return[D,F]},P5=async(D=["."])=>{while(!0){let F=r1.readdirSync(D.join("/"),{withFileTypes:!0}),P=await W2({message:`Navigate to the output directory: ${D.join("/")}`,default:".",choices:[{name:"[create new directory]",value:"[new_dir]",description:"Current directory"},{name:".",value:".",description:"Current directory"},{name:"..",value:"..",description:"Parent directory"},...F.filter((B)=>B.isDirectory()).map((B)=>({name:B.name,value:B.name}))]});if(D.push(P),P==="[new_dir]"){D.pop();let B=await r0({message:"Enter the new directory name:"});r1.mkdirSync(AF.resolve(...D,B)),D.push(B);break}if(P===".")break;if(P===".."){D.pop(),D.pop();continue}}return D},B5=async(D)=>{let F=await r0({message:D,default:"sdk.ts"});if(!F.endsWith(".ts"))F+=".ts";return F},cD={import:r2.default.rgb(185,126,180),name:r2.default.rgb(156,220,254),from:r2.default.rgb(185,126,180),string:r2.default.rgb(206,145,120)},Z5=async(D,F)=>{let P=!1;if(r1.existsSync("tsconfig.json")&&await d3({message:`
3828
3832
  File 'tsconfig.json' detected. Do you want to add an import alias for the generated file?`,default:!1})){console.log(" ");let B=await r0({message:"Enter the alias name:",default:D.replace(".ts","")}),Z=r1.readFileSync("tsconfig.json","utf-8");Z=Z.replace(/\/\/.*/g,"");let q=EF(Z).indent||" ",X=JSON.parse(Z),J=X.compilerOptions?.baseUrl||".",Y=AF.relative(AF.resolve(process.cwd(),J),F);if(!X.compilerOptions)X.compilerOptions={};if(!X.compilerOptions.paths)X.compilerOptions.paths={};X.compilerOptions.paths[B]=[Y],r1.writeFileSync("tsconfig.json",JSON.stringify(X,null,q)),console.log(`
3829
3833
  ${r2.default.green("Done! Alias added to 'tsconfig.json'.")}
3830
3834
  ${r2.default.green("Go ahead and import the generated file in your project:")}
3831
3835
 
3832
3836
  ${cD.import("import")} ${cD.name(B)} ${cD.from("from")} ${cD.string(`"${B}"`)};
3833
- `),P=!0}return P};var CF=async(D,F,P,B={})=>{let Z=!0;if(D.url=await X0("GraphQL",D.url,"The URL",Z),D.headers?.length)for(let Y of D.headers){let H=await X0("GraphQL",Y,"The header",Z);D.headers[D.headers.indexOf(Y)]=H}if(B.endpoint)B.endpoint=await X0("GraphQL",B.endpoint,"The endpoint",Z);if(B.authHeaderName)B.authHeaderName=await X0("GraphQL",B.authHeaderName,"The auth header name",Z);P=await X0("GraphQL",P,"The output file",Z);let q;try{q=await y2(D.url,D.headers)}catch(Y){if(Y.response?.status===401||Y.response?.status===403){console.error(`Introspection failed: HTTP ${Y.response.status} Unauthorized. Please check your headers.`);return}console.error("Failed to introspect schema",Y);return}let J=await new k1.Generator(X2.GraphQL[F]).generate({schema:q,options:{},authConfig:D.headers?{headerName:D.headers.length===1?D.headers[0].split("=")[0]:"Authorization"}:void 0});if(!P.endsWith(".ts"))P+=".ts";gO.mkdirSync(P.split("/").slice(0,-1).join("/"),{recursive:!0}),gO.writeFileSync(P,J.replace("[AUTH_HEADER_NAME]",B.authHeaderName??"Authorization").replace("[ENDPOINT]",B.endpoint??D.url))};var LF=UD(e3(),1);import tN from"fs";import yO from"path";var mO=async()=>{M8("GraphQL");let D=await D5("Enter the graphql endpoint url:"),F,P;try{F=await y2(D)}catch(X){if(X.response?.status===401||X.response?.status===403){let[J,Y]=await F5();try{F=await y2(D,[`${J}=${Y}`]),P=J}catch(H){console.error("Error: ",H.message);return}}else{console.error("Error: ",X.message),console.error("Failed to introspect schema");return}}if(!F){console.error("Failed to introspect schema");return}let B=await P5(["."]),Z=await B5("Enter the output filename:"),q=yO.resolve(...B,Z);try{let J=await new k1.Generator(X2.GraphQL.default).generate({schema:F,options:{},authConfig:P?{headerName:P}:void 0});tN.writeFileSync(q,J.replace("[ENDPOINT]",D))}catch(X){console.error("Error: ",X.message),console.error("Failed to generate code");return}if(!await Z5(Z,q))console.log(`
3837
+ `),P=!0}return P};var CF=async(D,F,P,B={})=>{let Z=!0;if(D.url=await X0("GraphQL",D.url,"The URL",Z),D.headers?.length)for(let Y of D.headers){let H=await X0("GraphQL",Y,"The header",Z);D.headers[D.headers.indexOf(Y)]=H}if(B.endpoint)B.endpoint=await X0("GraphQL",B.endpoint,"The endpoint",Z);if(B.authHeaderName)B.authHeaderName=await X0("GraphQL",B.authHeaderName,"The auth header name",Z);P=await X0("GraphQL",P,"The output file",Z);let q;try{q=await y2(D.url,D.headers)}catch(Y){if(Y.response?.status===401||Y.response?.status===403){console.error(`Introspection failed: HTTP ${Y.response.status} Unauthorized. Please check your headers.`);return}console.error("Failed to introspect schema",Y);return}let J=await new k1.Generator(X2.GraphQL[F]).generate({schema:q,options:{},authConfig:D.headers?{headerName:D.headers.length===1?D.headers[0].split("=")[0]:"Authorization"}:void 0});if(!P.endsWith(".ts"))P+=".ts";gO.mkdirSync(P.split("/").slice(0,-1).join("/"),{recursive:!0}),gO.writeFileSync(P,J.replace("[AUTH_HEADER_NAME]",B.authHeaderName??"Authorization").replace("[ENDPOINT]",B.endpoint??D.url))};var LF=UD(e3(),1);import tN from"fs";import yO from"path";var mO=async()=>{K8("GraphQL");let D=await D5("Enter the graphql endpoint url:"),F,P;try{F=await y2(D)}catch(X){if(X.response?.status===401||X.response?.status===403){let[J,Y]=await F5();try{F=await y2(D,[`${J}=${Y}`]),P=J}catch(H){console.error("Error: ",H.message);return}}else{console.error("Error: ",X.message),console.error("Failed to introspect schema");return}}if(!F){console.error("Failed to introspect schema");return}let B=await P5(["."]),Z=await B5("Enter the output filename:"),q=yO.resolve(...B,Z);try{let J=await new k1.Generator(X2.GraphQL.default).generate({schema:F,options:{},authConfig:P?{headerName:P}:void 0});tN.writeFileSync(q,J.replace("[ENDPOINT]",D))}catch(X){console.error("Error: ",X.message),console.error("Failed to generate code");return}if(!await Z5(Z,q))console.log(`
3834
3838
  ${LF.default.green(`Done! Generated file saved at ${q}.`)}
3835
3839
  ${LF.default.green("Go ahead and import the generated file in your project:")}
3836
3840
 
3837
3841
  ${cD.import("import")} ${cD.name(Z.replace(".ts",""))} ${cD.from("from")} ${cD.string(`"./${yO.relative(process.cwd(),q.replace(".ts",""))}"`)};
3838
- `);console.log(" "),console.log("Please star the repo if you liked it! https://github.com/liontariai/samarium"),console.log(" ")};var oQ=UD(iQ(),1);async function F8(D,F){let B=await(await fetch(D,{headers:F?.map((Z)=>Z.split("="))})).text();try{return JSON.parse(B)}catch(Z){return oQ.default.parse(B)}}import oy from"fs";var fP=async(D,F)=>{let P=await F8(D.url,D.headers);oy.writeFileSync(F,JSON.stringify(P,null,2))};import tQ from"fs";var hP=async(D,F,P,B={})=>{let Z=!0;if(D.url=await X0("OpenAPI",D.url,"The URL",Z),D.headers?.length)for(let Y of D.headers){let H=await X0("OpenAPI",Y,"The header",Z);D.headers[D.headers.indexOf(Y)]=H}if(B.endpoint)B.endpoint=await X0("OpenAPI",B.endpoint,"The endpoint",Z);if(B.authHeaderName)B.authHeaderName=await X0("OpenAPI",B.authHeaderName,"The auth header name",Z);P=await X0("OpenAPI",P,"The output file",Z);let q;try{q=await F8(D.url,D.headers)}catch(Y){if(Y.response?.status===401||Y.response?.status===403){console.error(`Introspection failed: HTTP ${Y.response.status} Unauthorized. Please check your headers.`);return}console.error("Failed to introspect schema",Y);return}let J=await new f1.Generator(X2.OpenAPI[F]).generate({schema:q,options:{},authConfig:D.headers?{headerName:D.headers.length===1?D.headers[0].split("=")[0]:"Authorization"}:void 0});if(!P.endsWith(".ts"))P+=".ts";tQ.mkdirSync(P.split("/").slice(0,-1).join("/"),{recursive:!0}),tQ.writeFileSync(P,J.replace("[ENDPOINT]",B.endpoint??q.servers?.[0]?.url??D.url))};var vP=UD(e3(),1);import ty from"fs";import eQ from"path";var DG=async()=>{M8("OpenAPI");let D=await D5("Enter the url to the OpenAPI schema json or yaml file:"),F,P;try{F=await F8(D)}catch(X){if(X.response?.status===401||X.response?.status===403){let[J,Y]=await F5();try{F=await F8(D,[`${J}=${Y}`]),P=J}catch(H){console.error("Error: ",H.message);return}}else{console.error("Error: ",X.message),console.error("Failed to introspect schema");return}}if(!F){console.error("Failed to introspect schema");return}let B=await P5(["."]),Z=await B5("Enter the output filename:"),q=eQ.resolve(...B,Z);try{let J=await new f1.Generator(X2.OpenAPI.default).generate({schema:F,options:{},authConfig:P?{headerName:P}:void 0});ty.writeFileSync(q,J.replace("[ENDPOINT]",F.servers?.[0]?.url??D))}catch(X){console.error("Error: ",X.message),console.error("Failed to generate code");return}if(!await Z5(Z,q))console.log(`
3842
+ `);console.log(" "),console.log("Please star the repo if you liked it! https://github.com/liontariai/samarium"),console.log(" ")};var oQ=UD(iQ(),1);async function F8(D,F){let B=await(await fetch(D,{headers:F?.map((Z)=>Z.split("="))})).text();try{return JSON.parse(B)}catch(Z){return oQ.default.parse(B)}}import oy from"fs";var fP=async(D,F)=>{let P=await F8(D.url,D.headers);oy.writeFileSync(F,JSON.stringify(P,null,2))};import tQ from"fs";var hP=async(D,F,P,B={})=>{let Z=!0;if(D.url=await X0("OpenAPI",D.url,"The URL",Z),D.headers?.length)for(let Y of D.headers){let H=await X0("OpenAPI",Y,"The header",Z);D.headers[D.headers.indexOf(Y)]=H}if(B.endpoint)B.endpoint=await X0("OpenAPI",B.endpoint,"The endpoint",Z);if(B.authHeaderName)B.authHeaderName=await X0("OpenAPI",B.authHeaderName,"The auth header name",Z);P=await X0("OpenAPI",P,"The output file",Z);let q;try{q=await F8(D.url,D.headers)}catch(Y){if(Y.response?.status===401||Y.response?.status===403){console.error(`Introspection failed: HTTP ${Y.response.status} Unauthorized. Please check your headers.`);return}console.error("Failed to introspect schema",Y);return}let J=await new f1.Generator(X2.OpenAPI[F]).generate({schema:q,options:{},authConfig:D.headers?{headerName:D.headers.length===1?D.headers[0].split("=")[0]:"Authorization"}:void 0});if(!P.endsWith(".ts"))P+=".ts";tQ.mkdirSync(P.split("/").slice(0,-1).join("/"),{recursive:!0}),tQ.writeFileSync(P,J.replace("[ENDPOINT]",B.endpoint??q.servers?.[0]?.url??D.url))};var vP=UD(e3(),1);import ty from"fs";import eQ from"path";var DG=async()=>{K8("OpenAPI");let D=await D5("Enter the url to the OpenAPI schema json or yaml file:"),F,P;try{F=await F8(D)}catch(X){if(X.response?.status===401||X.response?.status===403){let[J,Y]=await F5();try{F=await F8(D,[`${J}=${Y}`]),P=J}catch(H){console.error("Error: ",H.message);return}}else{console.error("Error: ",X.message),console.error("Failed to introspect schema");return}}if(!F){console.error("Failed to introspect schema");return}let B=await P5(["."]),Z=await B5("Enter the output filename:"),q=eQ.resolve(...B,Z);try{let J=await new f1.Generator(X2.OpenAPI.default).generate({schema:F,options:{},authConfig:P?{headerName:P}:void 0});ty.writeFileSync(q,J.replace("[ENDPOINT]",F.servers?.[0]?.url??D))}catch(X){console.error("Error: ",X.message),console.error("Failed to generate code");return}if(!await Z5(Z,q))console.log(`
3839
3843
  ${vP.default.green(`Done! Generated file saved at ${q}.`)}
3840
3844
  ${vP.default.green("Go ahead and import the generated file in your project:")}
3841
3845
 
3842
3846
  ${cD.import("import")} ${cD.name(Z.replace(".ts",""))} ${cD.from("from")} ${cD.string(`"./${eQ.relative(process.cwd(),q.replace(".ts",""))}"`)};
3843
- `);console.log(" "),console.log("Please star the repo if you liked it! https://github.com/liontariai/samarium"),console.log(" ")};function l8(D,F){return F.concat([D])}var n0=new JB;n0.name("samarium").description("CLI Description").version($6.version);n0.command("ui",{isDefault:!0}).description("Start the assistant UI").action(async()=>{if(await W2({message:"Do you want to compile GraphQL or OpenAPI?",choices:[{name:"GraphQL",value:"GraphQL",description:"GraphQL"},{name:"OpenAPI",value:"OpenAPI",description:"OpenAPI"}]})==="GraphQL")await mO().catch((F)=>{});else await DG().catch((F)=>{})});n0.command("introspect <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",l8,[]).description("This command is deprecated. Use the explicit command instead: introspect-gql or introspect-openapi").action(async(D,F,{header:P}={})=>{if(await W2({message:"Do you want to introspect GraphQL or OpenAPI?",choices:[{name:"GraphQL",value:"GraphQL",description:"GraphQL"},{name:"OpenAPI",value:"OpenAPI",description:"OpenAPI"}]})==="GraphQL")await S7({url:D,headers:P},F);else await fP({url:D,headers:P},F)});n0.command("introspect-gql <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",l8,[]).description("Introspect a GraphQL schema").action(async(D,F,{header:P}={})=>{await S7({url:D,headers:P},F)});n0.command("introspect-openapi <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",l8,[]).description("Introspect an OpenAPI schema").action(async(D,F,{header:P}={})=>{await fP({url:D,headers:P},F)});n0.command("generate <url> <output>").alias("g").description("This command is deprecated. Use the explicit command instead: generate-gql or generate-openapi").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",l8,[]).option("--endpoint [endpoint]","Endpoint to use in the generated code, defaults to the schema introspection URL").option("--auth-header-name [authHeaderName]","Name of the header to use for authorization. Defaults to first header name, if headers are provided.").action(async(D,F,{header:P,endpoint:B,authHeaderName:Z}={})=>{if(await W2({message:"Do you want to compile GraphQL or OpenAPI?",choices:[{name:"GraphQL",value:"GraphQL",description:"GraphQL"},{name:"OpenAPI",value:"OpenAPI",description:"OpenAPI"}]})==="GraphQL")await CF({url:D,headers:P},"default",F,{endpoint:B,authHeaderName:Z});else await hP({url:D,headers:P},"default",F,{endpoint:B,authHeaderName:Z})});n0.command("generate-gql <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",l8,[]).option("--endpoint [endpoint]","Endpoint to use in the generated code, defaults to the schema introspection URL").option("--auth-header-name [authHeaderName]","Name of the header to use for authorization. Defaults to first header name, if headers are provided.").description("Generate code from a GraphQL schema").action(async(D,F,{header:P,endpoint:B,authHeaderName:Z}={})=>{await CF({url:D,headers:P},"default",F,{endpoint:B,authHeaderName:Z})});n0.command("generate-openapi <url> <output>").alias("generate-oas").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",l8,[]).option("--endpoint [endpoint]","Endpoint to use in the generated code, defaults to the schema introspection URL").option("--auth-header-name [authHeaderName]","Name of the header to use for authorization. Defaults to first header name, if headers are provided.").description("Generate code from a GraphQL schema").action(async(D,F,{header:P,endpoint:B,authHeaderName:Z}={})=>{await hP({url:D,headers:P},"default",F,{endpoint:B,authHeaderName:Z})});n0.parse(process.argv);
3847
+ `);console.log(" "),console.log("Please star the repo if you liked it! https://github.com/liontariai/samarium"),console.log(" ")};function c8(D,F){return F.concat([D])}var n0=new JB;n0.name("samarium").description("CLI Description").version($6.version);n0.command("ui",{isDefault:!0}).description("Start the assistant UI").action(async()=>{if(await W2({message:"Do you want to compile GraphQL or OpenAPI?",choices:[{name:"GraphQL",value:"GraphQL",description:"GraphQL"},{name:"OpenAPI",value:"OpenAPI",description:"OpenAPI"}]})==="GraphQL")await mO().catch((F)=>{});else await DG().catch((F)=>{})});n0.command("introspect <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",c8,[]).description("This command is deprecated. Use the explicit command instead: introspect-gql or introspect-openapi").action(async(D,F,{header:P}={})=>{if(await W2({message:"Do you want to introspect GraphQL or OpenAPI?",choices:[{name:"GraphQL",value:"GraphQL",description:"GraphQL"},{name:"OpenAPI",value:"OpenAPI",description:"OpenAPI"}]})==="GraphQL")await S7({url:D,headers:P},F);else await fP({url:D,headers:P},F)});n0.command("introspect-gql <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",c8,[]).description("Introspect a GraphQL schema").action(async(D,F,{header:P}={})=>{await S7({url:D,headers:P},F)});n0.command("introspect-openapi <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",c8,[]).description("Introspect an OpenAPI schema").action(async(D,F,{header:P}={})=>{await fP({url:D,headers:P},F)});n0.command("generate <url> <output>").alias("g").description("This command is deprecated. Use the explicit command instead: generate-gql or generate-openapi").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",c8,[]).option("--endpoint [endpoint]","Endpoint to use in the generated code, defaults to the schema introspection URL").option("--auth-header-name [authHeaderName]","Name of the header to use for authorization. Defaults to first header name, if headers are provided.").action(async(D,F,{header:P,endpoint:B,authHeaderName:Z}={})=>{if(await W2({message:"Do you want to compile GraphQL or OpenAPI?",choices:[{name:"GraphQL",value:"GraphQL",description:"GraphQL"},{name:"OpenAPI",value:"OpenAPI",description:"OpenAPI"}]})==="GraphQL")await CF({url:D,headers:P},"default",F,{endpoint:B,authHeaderName:Z});else await hP({url:D,headers:P},"default",F,{endpoint:B,authHeaderName:Z})});n0.command("generate-gql <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",c8,[]).option("--endpoint [endpoint]","Endpoint to use in the generated code, defaults to the schema introspection URL").option("--auth-header-name [authHeaderName]","Name of the header to use for authorization. Defaults to first header name, if headers are provided.").description("Generate code from a GraphQL schema").action(async(D,F,{header:P,endpoint:B,authHeaderName:Z}={})=>{await CF({url:D,headers:P},"default",F,{endpoint:B,authHeaderName:Z})});n0.command("generate-openapi <url> <output>").alias("generate-oas").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",c8,[]).option("--endpoint [endpoint]","Endpoint to use in the generated code, defaults to the schema introspection URL").option("--auth-header-name [authHeaderName]","Name of the header to use for authorization. Defaults to first header name, if headers are provided.").description("Generate code from a GraphQL schema").action(async(D,F,{header:P,endpoint:B,authHeaderName:Z}={})=>{await hP({url:D,headers:P},"default",F,{endpoint:B,authHeaderName:Z})});n0.parse(process.argv);