@samarium.sdk/new 0.24.3 → 0.24.4

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 +295 -306
  2. package/package.json +4 -4
package/bin/samarium CHANGED
@@ -1,35 +1,35 @@
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 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
- `).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
- `)}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
2
+ import{createRequire as dz}from"node:module";var yz=Object.create;var{getPrototypeOf:mz,defineProperty:EP,getOwnPropertyNames:lz}=Object;var cz=Object.prototype.hasOwnProperty;var RD=(D,F,P)=>{P=D!=null?yz(mz(D)):{};let B=F||!D||!D.__esModule?EP(P,"default",{value:D,enumerable:!0}):P;for(let Z of lz(D))if(!cz.call(B,Z))EP(B,Z,{get:()=>D[Z],enumerable:!0});return B};var Q=(D,F)=>()=>(F||D((F={exports:{}}).exports,F),F.exports);var vD=dz(import.meta.url);var l8=Q((rz)=>{class k5 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 KP extends k5{constructor(D){super(1,"commander.invalidArgument",D);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}rz.CommanderError=k5;rz.InvalidArgumentError=KP});var R1=Q((oz)=>{var{InvalidArgumentError:nz}=l8();class AP{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 nz(`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 iz(D){let F=D.name()+(D.variadic===!0?"...":"");return D.required?"<"+F+">":"["+F+"]"}oz.Argument=AP;oz.humanReadableArgName=iz});var x5=Q((FQ)=>{var{humanReadableArgName:DQ}=R1();class CP{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)=>DQ(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,X=2;function q(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
+ `).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 U=F.visibleArguments(D).map((z)=>{return q(F.argumentTerm(z),F.argumentDescription(z))});if(U.length>0)Y=Y.concat(["Arguments:",J(U),""]);let W=F.visibleOptions(D).map((z)=>{return q(F.optionTerm(z),F.optionDescription(z))});if(W.length>0)Y=Y.concat(["Options:",J(W),""]);if(this.showGlobalOptions){let z=F.visibleGlobalOptions(D).map((I)=>{return q(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 q(F.subcommandTerm(z),F.subcommandDescription(z))});if(O.length>0)Y=Y.concat(["Commands:",J(O),""]);return Y.join(`
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 X=new RegExp(`[\\n][${" \\f\\t\\v   -    \uFEFF"}]+`);if(D.match(X))return D;let q=F-P;if(q<B)return D;let J=D.slice(0,P),Y=D.slice(P).replace(`\r
5
5
  `,`
6
- `),H=" ".repeat(P),U=`\\s${"​"}`,O=new RegExp(`
7
- |.{1,${X-1}}([${U}]|$)|[^${U}]+?([${U}]|$)`,"g"),z=Y.match(O)||[];return J+z.map((I,R)=>{if(I===`
6
+ `),H=" ".repeat(P),W=`\\s${"​"}`,O=new RegExp(`
7
+ |.{1,${q-1}}([${W}]|$)|[^${W}]+?([${W}]|$)`,"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}=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`
9
+ `)}}FQ.Help=CP});var f5=Q((XQ)=>{var{InvalidArgumentError:BQ}=l8();class LP{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=wP(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 BQ(`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 ZQ(this.name().replace(/^no-/,""))}is(D){return this.short===D||this.long===D}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class VP{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 ZQ(D){return D.split("-").reduce((F,P)=>{return F+P[0].toUpperCase()+P.slice(1)})}function wP(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}}XQ.Option=LP;XQ.splitOptionFlags=wP;XQ.DualOptions=VP});var jP=Q((WQ)=>{function HQ(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 X=1;if(D[Z-1]===F[B-1])X=0;else X=1;if(P[Z][B]=Math.min(P[Z-1][B]+1,P[Z][B-1]+1,P[Z-1][B-1]+X),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 UQ(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((q)=>q.slice(2));let B=[],Z=3,X=0.4;if(F.forEach((q)=>{if(q.length<=1)return;let J=HQ(D,q),Y=Math.max(D.length,q.length);if((Y-J)/Y>X){if(J<Z)Z=J,B=[q];else if(J===Z)B.push(q)}}),B.sort((q,J)=>q.localeCompare(J)),P)B=B.map((q)=>`--${q}`);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}=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
- - 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
- 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
11
+ (Did you mean ${B[0]}?)`;return""}WQ.suggestSimilar=UQ});var NP=Q((MQ)=>{var zQ=vD("events").EventEmitter,h5=vD("child_process"),x2=vD("path"),g5=vD("fs"),OD=vD("process"),{Argument:QQ,humanReadableArgName:GQ}=R1(),{CommanderError:v5}=l8(),{Help:RQ}=x5(),{Option:bP,splitOptionFlags:IQ,DualOptions:$Q}=f5(),{suggestSimilar:SP}=jP();class y5 extends zQ{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)=>OD.stdout.write(F),writeErr:(F)=>OD.stderr.write(F),getOutHelpWidth:()=>OD.stdout.isTTY?OD.stdout.columns:void 0,getErrHelpWidth:()=>OD.stderr.isTTY?OD.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[,X,q]=D.match(/([^ ]+) *(.*)/),J=this.createCommand(X);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,q)J.arguments(q);if(this.commands.push(J),J.parent=this,J.copyInheritedSettings(this),B)return this;return J}createCommand(D){return new y5(D)}createHelp(){return Object.assign(new RQ,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
+ - 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 QQ(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
+ 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 v5(D,F,P));OD.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 bP(D,F)}_callParseArg(D,F,P,B){try{return D.parseArg(F,P)}catch(Z){if(Z.code==="commander.invalidArgument"){let X=`${B} ${Z.message}`;this.error(X,{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,X,q)=>{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,X);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,q)};if(this.on("option:"+F,(Z)=>{let X=`error: option '${D.flags}' argument '${Z}' is invalid.`;B(Z,X,"cli")}),D.envVar)this.on("optionEnv:"+F,(Z)=>{let X=`error: option '${D.flags}' value '${Z}' from env '${D.envVar}' is invalid.`;B(Z,X,"env")});return this}_optionEx(D,F,P,B,Z){if(typeof F==="object"&&F instanceof bP)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let X=this.createOption(F,P);if(X.makeOptionMandatory(!!D.mandatory),typeof B==="function")X.default(Z).argParser(B);else if(B instanceof RegExp){let q=B;B=(J,Y)=>{let H=q.exec(J);return H?H[0]:Y},X.default(Z).argParser(B)}else X.default(B);return this.addOption(X)}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=OD.argv,OD.versions&&OD.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(OD.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,U){let W=x2.resolve(H,U);if(g5.existsSync(W))return W;if(B.includes(x2.extname(U)))return;let O=B.find((z)=>g5.existsSync(`${W}${z}`));if(O)return`${W}${O}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let X=D._executableFile||`${this._name}-${D._name}`,q=this._executableDir||"";if(this._scriptPath){let H;try{H=g5.realpathSync(this._scriptPath)}catch(U){H=this._scriptPath}q=x2.resolve(x2.dirname(H),q)}if(q){let H=Z(q,X);if(!H&&!D._executableFile&&this._scriptPath){let U=x2.basename(this._scriptPath,x2.extname(this._scriptPath));if(U!==this._name)H=Z(q,`${U}-${D._name}`)}X=H||X}P=B.includes(x2.extname(X));let J;if(OD.platform!=="win32")if(P)F.unshift(X),F=uP(OD.execArgv).concat(F),J=h5.spawn(OD.argv[0],F,{stdio:"inherit"});else J=h5.spawn(X,F,{stdio:"inherit"});else F.unshift(X),F=uP(OD.execArgv).concat(F),J=h5.spawn(OD.execPath,F,{stdio:"inherit"});if(!J.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((U)=>{OD.on(U,()=>{if(J.killed===!1&&J.exitCode===null)J.kill(U)})});let Y=this._exitCallback;if(!Y)J.on("close",OD.exit.bind(OD));else J.on("close",()=>{Y(new v5(OD.exitCode||0,"commander.executeSubCommandAsync","(close)"))});J.on("error",(H)=>{if(H.code==="ENOENT"){let U=q?`searched for local subcommand relative to directory '${q}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",W=`'${X}' 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
15
15
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
16
- - ${W}`;throw new Error(U)}else if(H.code==="EACCES")throw new Error(`'${q}' not executable`);if(!Y)WD.exit(1);else{let W=new D4(1,"commander.executeSubCommandAsync","(error)");W.nestedError=H,Y(W)}}),this.runningCommand=J}_dispatchSubcommand(D,F,P){let B=this._findCommand(D);if(!B)this.help({error:!0});let Z;return Z=this._chainOrCallSubCommandHook(Z,B,"preSubcommand"),Z=this._chainOrCall(Z,()=>{if(B._executableHandler)this._executeSubCommand(B,F.concat(P));else return B._parseCommand(F,P)}),Z}_dispatchHelpCommand(D){if(!D)this.help();let F=this._findCommand(D);if(F&&!F._executableHandler)F.help();return this._dispatchSubcommand(D,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((D,F)=>{if(D.required&&this.args[F]==null)this.missingArgument(D.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let D=(P,B,Z)=>{let q=B;if(B!==null&&P.parseArg){let X=`error: command-argument value '${B}' is invalid for argument '${P.name()}'.`;q=this._callParseArg(P,B,Z,X)}return q};this._checkNumberOfArguments();let F=[];this.registeredArguments.forEach((P,B)=>{let Z=P.defaultValue;if(P.variadic){if(B<this.args.length){if(Z=this.args.slice(B),P.parseArg)Z=Z.reduce((q,X)=>{return D(P,X,q)},P.defaultValue)}else if(Z===void 0)Z=[]}else if(B<this.args.length){if(Z=this.args[B],P.parseArg)Z=D(P,Z,P.defaultValue)}F[B]=Z}),this.processedArgs=F}_chainOrCall(D,F){if(D&&D.then&&typeof D.then==="function")return D.then(()=>F());return F()}_chainOrCallHooks(D,F){let P=D,B=[];if(this._getCommandAndAncestors().reverse().filter((Z)=>Z._lifeCycleHooks[F]!==void 0).forEach((Z)=>{Z._lifeCycleHooks[F].forEach((q)=>{B.push({hookedCommand:Z,callback:q})})}),F==="postAction")B.reverse();return B.forEach((Z)=>{P=this._chainOrCall(P,()=>{return Z.callback(Z.hookedCommand,this)})}),P}_chainOrCallSubCommandHook(D,F,P){let B=D;if(this._lifeCycleHooks[P]!==void 0)this._lifeCycleHooks[P].forEach((Z)=>{B=this._chainOrCall(B,()=>{return Z(this,F)})});return B}_parseCommand(D,F){let P=this.parseOptions(F);if(this._parseOptionsEnv(),this._parseOptionsImplied(),D=D.concat(P.operands),F=P.unknown,this.args=D.concat(F),D&&this._findCommand(D[0]))return this._dispatchSubcommand(D[0],D.slice(1),F);if(this._hasImplicitHelpCommand()&&D[0]===this._helpCommandName)return this._dispatchHelpCommand(D[1]);if(this._defaultCommandName)return eP(this,F),this._dispatchSubcommand(this._defaultCommandName,D,F);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});eP(this,P.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let B=()=>{if(P.unknown.length>0)this.unknownOption(P.unknown[0])},Z=`command:${this.name()}`;if(this._actionHandler){B(),this._processArguments();let q;if(q=this._chainOrCallHooks(q,"preAction"),q=this._chainOrCall(q,()=>this._actionHandler(this.processedArgs)),this.parent)q=this._chainOrCall(q,()=>{this.parent.emit(Z,D,F)});return q=this._chainOrCallHooks(q,"postAction"),q}if(this.parent&&this.parent.listenerCount(Z))B(),this._processArguments(),this.parent.emit(Z,D,F);else if(D.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",D,F);if(this.listenerCount("command:*"))this.emit("command:*",D,F);else if(this.commands.length)this.unknownCommand();else B(),this._processArguments()}else if(this.commands.length)B(),this.help({error:!0});else B(),this._processArguments()}_findCommand(D){if(!D)return;return this.commands.find((F)=>F._name===D||F._aliases.includes(D))}_findOption(D){return this.options.find((F)=>F.is(D))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((D)=>{D.options.forEach((F)=>{if(F.mandatory&&D.getOptionValue(F.attributeName())===void 0)D.missingMandatoryOptionValue(F)})})}_checkForConflictingLocalOptions(){let D=this.options.filter((P)=>{let B=P.attributeName();if(this.getOptionValue(B)===void 0)return!1;return this.getOptionValueSource(B)!=="default"});D.filter((P)=>P.conflictsWith.length>0).forEach((P)=>{let B=D.find((Z)=>P.conflictsWith.includes(Z.attributeName()));if(B)this._conflictingOption(P,B)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((D)=>{D._checkForConflictingLocalOptions()})}parseOptions(D){let F=[],P=[],B=F,Z=D.slice();function q(J){return J.length>1&&J[0]==="-"}let X=null;while(Z.length){let J=Z.shift();if(J==="--"){if(B===P)B.push(J);B.push(...Z);break}if(X&&!q(J)){this.emit(`option:${X.name()}`,J);continue}if(X=null,q(J)){let Y=this._findOption(J);if(Y){if(Y.required){let H=Z.shift();if(H===void 0)this.optionMissingArgument(Y);this.emit(`option:${Y.name()}`,H)}else if(Y.optional){let H=null;if(Z.length>0&&!q(Z[0]))H=Z.shift();this.emit(`option:${Y.name()}`,H)}else this.emit(`option:${Y.name()}`);X=Y.variadic?Y:null;continue}}if(J.length>2&&J[0]==="-"&&J[1]!=="-"){let Y=this._findOption(`-${J[1]}`);if(Y){if(Y.required||Y.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${Y.name()}`,J.slice(2));else this.emit(`option:${Y.name()}`),Z.unshift(`-${J.slice(2)}`);continue}}if(/^--[^=]+=/.test(J)){let Y=J.indexOf("="),H=this._findOption(J.slice(0,Y));if(H&&(H.required||H.optional)){this.emit(`option:${H.name()}`,J.slice(Y+1));continue}}if(q(J))B=P;if((this._enablePositionalOptions||this._passThroughOptions)&&F.length===0&&P.length===0){if(this._findCommand(J)){if(F.push(J),Z.length>0)P.push(...Z);break}else if(J===this._helpCommandName&&this._hasImplicitHelpCommand()){if(F.push(J),Z.length>0)F.push(...Z);break}else if(this._defaultCommandName){if(P.push(J),Z.length>0)P.push(...Z);break}}if(this._passThroughOptions){if(B.push(J),Z.length>0)B.push(...Z);break}B.push(J)}return{operands:F,unknown:P}}opts(){if(this._storeOptionsAsProperties){let D={},F=this.options.length;for(let P=0;P<F;P++){let B=this.options[P].attributeName();D[B]=B===this._versionOptionName?this._version:this[B]}return D}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((D,F)=>Object.assign(D,F.opts()),{})}error(D,F){if(this._outputConfiguration.outputError(`${D}
16
+ - ${U}`;throw new Error(W)}else if(H.code==="EACCES")throw new Error(`'${X}' not executable`);if(!Y)OD.exit(1);else{let U=new v5(1,"commander.executeSubCommandAsync","(error)");U.nestedError=H,Y(U)}}),this.runningCommand=J}_dispatchSubcommand(D,F,P){let B=this._findCommand(D);if(!B)this.help({error:!0});let Z;return Z=this._chainOrCallSubCommandHook(Z,B,"preSubcommand"),Z=this._chainOrCall(Z,()=>{if(B._executableHandler)this._executeSubCommand(B,F.concat(P));else return B._parseCommand(F,P)}),Z}_dispatchHelpCommand(D){if(!D)this.help();let F=this._findCommand(D);if(F&&!F._executableHandler)F.help();return this._dispatchSubcommand(D,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((D,F)=>{if(D.required&&this.args[F]==null)this.missingArgument(D.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let D=(P,B,Z)=>{let X=B;if(B!==null&&P.parseArg){let q=`error: command-argument value '${B}' is invalid for argument '${P.name()}'.`;X=this._callParseArg(P,B,Z,q)}return X};this._checkNumberOfArguments();let F=[];this.registeredArguments.forEach((P,B)=>{let Z=P.defaultValue;if(P.variadic){if(B<this.args.length){if(Z=this.args.slice(B),P.parseArg)Z=Z.reduce((X,q)=>{return D(P,q,X)},P.defaultValue)}else if(Z===void 0)Z=[]}else if(B<this.args.length){if(Z=this.args[B],P.parseArg)Z=D(P,Z,P.defaultValue)}F[B]=Z}),this.processedArgs=F}_chainOrCall(D,F){if(D&&D.then&&typeof D.then==="function")return D.then(()=>F());return F()}_chainOrCallHooks(D,F){let P=D,B=[];if(this._getCommandAndAncestors().reverse().filter((Z)=>Z._lifeCycleHooks[F]!==void 0).forEach((Z)=>{Z._lifeCycleHooks[F].forEach((X)=>{B.push({hookedCommand:Z,callback:X})})}),F==="postAction")B.reverse();return B.forEach((Z)=>{P=this._chainOrCall(P,()=>{return Z.callback(Z.hookedCommand,this)})}),P}_chainOrCallSubCommandHook(D,F,P){let B=D;if(this._lifeCycleHooks[P]!==void 0)this._lifeCycleHooks[P].forEach((Z)=>{B=this._chainOrCall(B,()=>{return Z(this,F)})});return B}_parseCommand(D,F){let P=this.parseOptions(F);if(this._parseOptionsEnv(),this._parseOptionsImplied(),D=D.concat(P.operands),F=P.unknown,this.args=D.concat(F),D&&this._findCommand(D[0]))return this._dispatchSubcommand(D[0],D.slice(1),F);if(this._hasImplicitHelpCommand()&&D[0]===this._helpCommandName)return this._dispatchHelpCommand(D[1]);if(this._defaultCommandName)return TP(this,F),this._dispatchSubcommand(this._defaultCommandName,D,F);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});TP(this,P.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let B=()=>{if(P.unknown.length>0)this.unknownOption(P.unknown[0])},Z=`command:${this.name()}`;if(this._actionHandler){B(),this._processArguments();let X;if(X=this._chainOrCallHooks(X,"preAction"),X=this._chainOrCall(X,()=>this._actionHandler(this.processedArgs)),this.parent)X=this._chainOrCall(X,()=>{this.parent.emit(Z,D,F)});return X=this._chainOrCallHooks(X,"postAction"),X}if(this.parent&&this.parent.listenerCount(Z))B(),this._processArguments(),this.parent.emit(Z,D,F);else if(D.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",D,F);if(this.listenerCount("command:*"))this.emit("command:*",D,F);else if(this.commands.length)this.unknownCommand();else B(),this._processArguments()}else if(this.commands.length)B(),this.help({error:!0});else B(),this._processArguments()}_findCommand(D){if(!D)return;return this.commands.find((F)=>F._name===D||F._aliases.includes(D))}_findOption(D){return this.options.find((F)=>F.is(D))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((D)=>{D.options.forEach((F)=>{if(F.mandatory&&D.getOptionValue(F.attributeName())===void 0)D.missingMandatoryOptionValue(F)})})}_checkForConflictingLocalOptions(){let D=this.options.filter((P)=>{let B=P.attributeName();if(this.getOptionValue(B)===void 0)return!1;return this.getOptionValueSource(B)!=="default"});D.filter((P)=>P.conflictsWith.length>0).forEach((P)=>{let B=D.find((Z)=>P.conflictsWith.includes(Z.attributeName()));if(B)this._conflictingOption(P,B)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((D)=>{D._checkForConflictingLocalOptions()})}parseOptions(D){let F=[],P=[],B=F,Z=D.slice();function X(J){return J.length>1&&J[0]==="-"}let q=null;while(Z.length){let J=Z.shift();if(J==="--"){if(B===P)B.push(J);B.push(...Z);break}if(q&&!X(J)){this.emit(`option:${q.name()}`,J);continue}if(q=null,X(J)){let Y=this._findOption(J);if(Y){if(Y.required){let H=Z.shift();if(H===void 0)this.optionMissingArgument(Y);this.emit(`option:${Y.name()}`,H)}else if(Y.optional){let H=null;if(Z.length>0&&!X(Z[0]))H=Z.shift();this.emit(`option:${Y.name()}`,H)}else this.emit(`option:${Y.name()}`);q=Y.variadic?Y:null;continue}}if(J.length>2&&J[0]==="-"&&J[1]!=="-"){let Y=this._findOption(`-${J[1]}`);if(Y){if(Y.required||Y.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${Y.name()}`,J.slice(2));else this.emit(`option:${Y.name()}`),Z.unshift(`-${J.slice(2)}`);continue}}if(/^--[^=]+=/.test(J)){let Y=J.indexOf("="),H=this._findOption(J.slice(0,Y));if(H&&(H.required||H.optional)){this.emit(`option:${H.name()}`,J.slice(Y+1));continue}}if(X(J))B=P;if((this._enablePositionalOptions||this._passThroughOptions)&&F.length===0&&P.length===0){if(this._findCommand(J)){if(F.push(J),Z.length>0)P.push(...Z);break}else if(J===this._helpCommandName&&this._hasImplicitHelpCommand()){if(F.push(J),Z.length>0)F.push(...Z);break}else if(this._defaultCommandName){if(P.push(J),Z.length>0)P.push(...Z);break}}if(this._passThroughOptions){if(B.push(J),Z.length>0)B.push(...Z);break}B.push(J)}return{operands:F,unknown:P}}opts(){if(this._storeOptionsAsProperties){let D={},F=this.options.length;for(let P=0;P<F;P++){let B=this.options[P].attributeName();D[B]=B===this._versionOptionName?this._version:this[B]}return D}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((D,F)=>Object.assign(D,F.opts()),{})}error(D,F){if(this._outputConfiguration.outputError(`${D}
17
17
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
18
18
  `);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
19
- `),this.outputHelp({error:!0});let 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
- `),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
- 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}=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
- `,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
- `)}});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+=`
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 OD.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()}`,OD.env[D.envVar]);else this.emit(`optionEnv:${D.name()}`)}})}_parseOptionsImplied(){let D=new $Q(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=(X)=>{let q=X.attributeName(),J=this.getOptionValue(q),Y=this.options.find((U)=>U.negate&&q===U.attributeName()),H=this.options.find((U)=>!U.negate&&q===U.attributeName());if(Y&&(Y.presetArg===void 0&&J===!1||Y.presetArg!==void 0&&J===Y.presetArg))return Y;return H||X},B=(X)=>{let q=P(X),J=q.attributeName();if(this.getOptionValueSource(J)==="env")return`environment variable '${q.envVar}'`;return`option '${q.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 X=Z.createHelp().visibleOptions(Z).filter((q)=>q.long).map((q)=>q.long);B=B.concat(X),Z=Z.parent}while(Z&&!Z._enablePositionalOptions);F=SP(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=SP(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
+ `),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 GQ(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=x2.basename(D,x2.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=IQ(this._helpFlags);return this._helpShortFlag=P.shortFlag,this._helpLongFlag=P.longFlag,this}help(D){this.outputHelp(D);let F=OD.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
+ Expecting one of '${P.join("', '")}'`);let B=`${D}Help`;return this.on(B,(Z)=>{let X;if(typeof F==="function")X=F({error:Z.error,command:Z.command});else X=F;if(X)Z.write(`${X}
22
+ `)}),this}}function TP(D,F){if(D._hasHelpOption&&F.find((B)=>B===D._helpLongFlag||B===D._helpShortFlag))D.outputHelp(),D._exit(0,"commander.helpDisplayed","(outputHelp)")}function uP(D){return D.map((F)=>{if(!F.startsWith("--inspect"))return F;let P,B="127.0.0.1",Z="9229",X;if((X=F.match(/^(--inspect(-brk)?)$/))!==null)P=X[1];else if((X=F.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(P=X[1],/^\d+$/.test(X[3]))Z=X[3];else B=X[3];else if((X=F.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)P=X[1],B=X[3],Z=X[4];if(P&&Z!=="0")return`${P}=${B}:${parseInt(Z)+1}`;return F})}MQ.Command=y5});var fP=Q((H2,xP)=>{var{Argument:KQ}=R1(),{Command:_P}=NP(),{CommanderError:AQ,InvalidArgumentError:kP}=l8(),{Help:CQ}=x5(),{Option:LQ}=f5();H2=xP.exports=new _P;H2.program=H2;H2.Command=_P;H2.Option=LQ;H2.Argument=KQ;H2.Help=CQ;H2.CommanderError=AQ;H2.InvalidArgumentError=kP;H2.InvalidOptionArgumentError=kP});var mP=Q((vP)=>{Object.defineProperty(vP,"__esModule",{value:!0});vP.versionInfo=vP.version=void 0;var VQ="16.11.0";vP.version=VQ;var wQ=Object.freeze({major:16,minor:11,patch:0,preReleaseTag:null});vP.versionInfo=wQ});var hD=Q((lP)=>{Object.defineProperty(lP,"__esModule",{value:!0});lP.devAssert=bQ;function bQ(D,F){if(!Boolean(D))throw new Error(F)}});var I1=Q((cP)=>{Object.defineProperty(cP,"__esModule",{value:!0});cP.isPromise=TQ;function TQ(D){return typeof(D===null||D===void 0?void 0:D.then)==="function"}});var K2=Q((dP)=>{Object.defineProperty(dP,"__esModule",{value:!0});dP.isObjectLike=NQ;function NQ(D){return typeof D=="object"&&D!==null}});var kD=Q((pP)=>{Object.defineProperty(pP,"__esModule",{value:!0});pP.invariant=kQ;function kQ(D,F){if(!Boolean(D))throw new Error(F!=null?F:"Unexpected invariant triggered.")}});var $1=Q((rP)=>{Object.defineProperty(rP,"__esModule",{value:!0});rP.getLocation=gQ;var fQ=kD(),hQ=/\r\n|[\n\r]/g;function gQ(D,F){let P=0,B=1;for(let Z of D.body.matchAll(hQ)){if(typeof Z.index==="number"||(0,fQ.invariant)(!1),Z.index>=F)break;P=Z.index+Z[0].length,B+=1}return{line:B,column:F+1-P}}});var m5=Q((nP)=>{Object.defineProperty(nP,"__esModule",{value:!0});nP.printLocation=mQ;nP.printSourceLocation=sP;var yQ=$1();function mQ(D){return sP(D.source,(0,yQ.getLocation)(D.source,D.start))}function sP(D,F){let P=D.locationOffset.column-1,B="".padStart(P)+D.body,Z=F.line-1,X=D.locationOffset.line-1,q=F.line+X,J=F.line===1?P:0,Y=F.column+J,H=`${D.name}:${q}:${Y}
23
+ `,U=B.split(/\r\n|[\n\r]/g),W=U[Z];if(W.length>120){let O=Math.floor(Y/80),z=Y%80,I=[];for(let R=0;R<W.length;R+=80)I.push(W.slice(R,R+80));return H+aP([[`${q} |`,I[0]],...I.slice(1,O+1).map((R)=>["|",R]),["|","^".padStart(z)],["|",I[O+1]]])}return H+aP([[`${q-1} |`,U[Z-1]],[`${q} |`,W],["|","^".padStart(Y)],[`${q+1} |`,U[Z+1]]])}function aP(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
+ `)}});var g=Q((eP)=>{Object.defineProperty(eP,"__esModule",{value:!0});eP.GraphQLError=void 0;eP.formatError=aQ;eP.printError=rQ;var dQ=K2(),iP=$1(),oP=m5();function pQ(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 l5 extends Error{constructor(D,...F){var P,B,Z;let{nodes:X,source:q,positions:J,path:Y,originalError:H,extensions:U}=pQ(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=tP(Array.isArray(X)?X:X?[X]:void 0);let W=tP((P=this.nodes)===null||P===void 0?void 0:P.map((z)=>z.loc).filter((z)=>z!=null));this.source=q!==null&&q!==void 0?q:W===null||W===void 0?void 0:(B=W[0])===null||B===void 0?void 0:B.source,this.positions=J!==null&&J!==void 0?J:W===null||W===void 0?void 0:W.map((z)=>z.start),this.locations=J&&q?J.map((z)=>(0,iP.getLocation)(q,z)):W===null||W===void 0?void 0:W.map((z)=>(0,iP.getLocation)(z.source,z.start));let O=(0,dQ.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=U!==null&&U!==void 0?U: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,l5);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
- `+KB.printLocation(F.loc)}else if(this.source&&this.locations)for(let F of this.locations)D+=`
26
+ `+(0,oP.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 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
- `;if(U+=P,W||H)U+=`
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
- `,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 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.
28
+ `+(0,oP.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}}eP.GraphQLError=l5;function tP(D){return D===void 0||D.length===0?void 0:D}function rQ(D){return D.toString()}function aQ(D){return D.toJSON()}});var M1=Q((FB)=>{Object.defineProperty(FB,"__esModule",{value:!0});FB.syntaxError=oQ;var iQ=g();function oQ(D,F,P){return new iQ.GraphQLError(`Syntax Error: ${P}`,{source:D,positions:[F]})}});var A2=Q((XB)=>{Object.defineProperty(XB,"__esModule",{value:!0});XB.Token=XB.QueryDocumentKeys=XB.OperationTypeNode=XB.Location=void 0;XB.isNode=DG;class PB{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}}}XB.Location=PB;class BB{constructor(D,F,P,B,Z,X){this.kind=D,this.start=F,this.end=P,this.line=B,this.column=Z,this.value=X,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}}}XB.Token=BB;var ZB={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"]};XB.QueryDocumentKeys=ZB;var eQ=new Set(Object.keys(ZB));function DG(D){let F=D===null||D===void 0?void 0:D.kind;return typeof F==="string"&&eQ.has(F)}var c5;XB.OperationTypeNode=c5;(function(D){D.QUERY="query",D.MUTATION="mutation",D.SUBSCRIPTION="subscription"})(c5||(XB.OperationTypeNode=c5={}))});var B8=Q((YB)=>{Object.defineProperty(YB,"__esModule",{value:!0});YB.DirectiveLocation=void 0;var d5;YB.DirectiveLocation=d5;(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"})(d5||(YB.DirectiveLocation=d5={}))});var s=Q((HB)=>{Object.defineProperty(HB,"__esModule",{value:!0});HB.Kind=void 0;var r5;HB.Kind=r5;(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"})(r5||(HB.Kind=r5={}))});var E1=Q((WB)=>{Object.defineProperty(WB,"__esModule",{value:!0});WB.isDigit=UB;WB.isLetter=s5;WB.isNameContinue=qG;WB.isNameStart=XG;WB.isWhiteSpace=ZG;function ZG(D){return D===9||D===32}function UB(D){return D>=48&&D<=57}function s5(D){return D>=97&&D<=122||D>=65&&D<=90}function XG(D){return s5(D)||D===95}function qG(D){return s5(D)||UB(D)||D===95}});var c8=Q((OB)=>{Object.defineProperty(OB,"__esModule",{value:!0});OB.dedentBlockStringLines=OG;OB.isPrintableAsBlockString=QG;OB.printBlockString=GG;var n5=E1();function OG(D){var F;let P=Number.MAX_SAFE_INTEGER,B=null,Z=-1;for(let q=0;q<D.length;++q){var X;let J=D[q],Y=zG(J);if(Y===J.length)continue;if(B=(X=B)!==null&&X!==void 0?X:q,Z=q,q!==0&&Y<P)P=Y}return D.map((q,J)=>J===0?q:q.slice(P)).slice((F=B)!==null&&F!==void 0?F:0,Z+1)}function zG(D){let F=0;while(F<D.length&&(0,n5.isWhiteSpace)(D.charCodeAt(F)))++F;return F}function QG(D){if(D==="")return!0;let F=!0,P=!1,B=!0,Z=!1;for(let X=0;X<D.length;++X)switch(D.codePointAt(X)){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 GG(D,F){let P=D.replace(/"""/g,'\\"""'),B=P.split(/\r\n|[\n\r]/g),Z=B.length===1,X=B.length>1&&B.slice(1).every((z)=>z.length===0||(0,n5.isWhiteSpace)(z.charCodeAt(0))),q=P.endsWith('\\"""'),J=D.endsWith('"')&&!q,Y=D.endsWith("\\"),H=J||Y,U=!(F!==null&&F!==void 0&&F.minimize)&&(!Z||D.length>70||H||X||q),W="",O=Z&&(0,n5.isWhiteSpace)(D.charCodeAt(0));if(U&&!O||X)W+=`
29
+ `;if(W+=P,U||H)W+=`
30
+ `;return'"""'+W+'"""'}});var d8=Q((zB)=>{Object.defineProperty(zB,"__esModule",{value:!0});zB.TokenKind=void 0;var i5;zB.TokenKind=i5;(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"})(i5||(zB.TokenKind=i5={}))});var A1=Q((MB)=>{Object.defineProperty(MB,"__esModule",{value:!0});MB.Lexer=void 0;MB.isPunctuatorTokenKind=EG;var U2=M1(),GB=A2(),MG=c8(),$0=E1(),r=d8();class RB{constructor(D){let F=new GB.Token(r.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!==r.TokenKind.EOF)do if(D.next)D=D.next;else{let F=KG(this,D.end);D.next=F,F.prev=D,D=F}while(D.kind===r.TokenKind.COMMENT);return D}}MB.Lexer=RB;function EG(D){return D===r.TokenKind.BANG||D===r.TokenKind.DOLLAR||D===r.TokenKind.AMP||D===r.TokenKind.PAREN_L||D===r.TokenKind.PAREN_R||D===r.TokenKind.SPREAD||D===r.TokenKind.COLON||D===r.TokenKind.EQUALS||D===r.TokenKind.AT||D===r.TokenKind.BRACKET_L||D===r.TokenKind.BRACKET_R||D===r.TokenKind.BRACE_L||D===r.TokenKind.PIPE||D===r.TokenKind.BRACE_R}function Z8(D){return D>=0&&D<=55295||D>=57344&&D<=1114111}function K1(D,F){return IB(D.charCodeAt(F))&&$B(D.charCodeAt(F+1))}function IB(D){return D>=55296&&D<=56319}function $B(D){return D>=56320&&D<=57343}function M0(D,F){let P=D.source.body.codePointAt(F);if(P===void 0)return r.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 AD(D,F,P,B,Z){let X=D.line,q=1+P-D.lineStart;return new GB.Token(F,P,B,X,q,Z)}function KG(D,F){let P=D.source.body,B=P.length,Z=F;while(Z<B){let X=P.charCodeAt(Z);switch(X){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 AG(D,Z);case 33:return AD(D,r.TokenKind.BANG,Z,Z+1);case 36:return AD(D,r.TokenKind.DOLLAR,Z,Z+1);case 38:return AD(D,r.TokenKind.AMP,Z,Z+1);case 40:return AD(D,r.TokenKind.PAREN_L,Z,Z+1);case 41:return AD(D,r.TokenKind.PAREN_R,Z,Z+1);case 46:if(P.charCodeAt(Z+1)===46&&P.charCodeAt(Z+2)===46)return AD(D,r.TokenKind.SPREAD,Z,Z+3);break;case 58:return AD(D,r.TokenKind.COLON,Z,Z+1);case 61:return AD(D,r.TokenKind.EQUALS,Z,Z+1);case 64:return AD(D,r.TokenKind.AT,Z,Z+1);case 91:return AD(D,r.TokenKind.BRACKET_L,Z,Z+1);case 93:return AD(D,r.TokenKind.BRACKET_R,Z,Z+1);case 123:return AD(D,r.TokenKind.BRACE_L,Z,Z+1);case 124:return AD(D,r.TokenKind.PIPE,Z,Z+1);case 125:return AD(D,r.TokenKind.BRACE_R,Z,Z+1);case 34:if(P.charCodeAt(Z+1)===34&&P.charCodeAt(Z+2)===34)return bG(D,Z);return LG(D,Z)}if((0,$0.isDigit)(X)||X===45)return CG(D,Z,X);if((0,$0.isNameStart)(X))return SG(D,Z);throw(0,U2.syntaxError)(D.source,Z,X===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Z8(X)||K1(P,Z)?`Unexpected character: ${M0(D,Z)}.`:`Invalid character: ${M0(D,Z)}.`)}return AD(D,r.TokenKind.EOF,B,B)}function AG(D,F){let P=D.source.body,B=P.length,Z=F+1;while(Z<B){let X=P.charCodeAt(Z);if(X===10||X===13)break;if(Z8(X))++Z;else if(K1(P,Z))Z+=2;else break}return AD(D,r.TokenKind.COMMENT,F,Z,P.slice(F+1,Z))}function CG(D,F,P){let B=D.source.body,Z=F,X=P,q=!1;if(X===45)X=B.charCodeAt(++Z);if(X===48){if(X=B.charCodeAt(++Z),(0,$0.isDigit)(X))throw(0,U2.syntaxError)(D.source,Z,`Invalid number, unexpected digit after 0: ${M0(D,Z)}.`)}else Z=t5(D,Z,X),X=B.charCodeAt(Z);if(X===46)q=!0,X=B.charCodeAt(++Z),Z=t5(D,Z,X),X=B.charCodeAt(Z);if(X===69||X===101){if(q=!0,X=B.charCodeAt(++Z),X===43||X===45)X=B.charCodeAt(++Z);Z=t5(D,Z,X),X=B.charCodeAt(Z)}if(X===46||(0,$0.isNameStart)(X))throw(0,U2.syntaxError)(D.source,Z,`Invalid number, expected digit but got: ${M0(D,Z)}.`);return AD(D,q?r.TokenKind.FLOAT:r.TokenKind.INT,F,Z,B.slice(F,Z))}function t5(D,F,P){if(!(0,$0.isDigit)(P))throw(0,U2.syntaxError)(D.source,F,`Invalid number, expected digit but got: ${M0(D,F)}.`);let B=D.source.body,Z=F+1;while((0,$0.isDigit)(B.charCodeAt(Z)))++Z;return Z}function LG(D,F){let P=D.source.body,B=P.length,Z=F+1,X=Z,q="";while(Z<B){let J=P.charCodeAt(Z);if(J===34)return q+=P.slice(X,Z),AD(D,r.TokenKind.STRING,F,Z+1,q);if(J===92){q+=P.slice(X,Z);let Y=P.charCodeAt(Z+1)===117?P.charCodeAt(Z+2)===123?VG(D,Z):wG(D,Z):jG(D,Z);q+=Y.value,Z+=Y.size,X=Z;continue}if(J===10||J===13)break;if(Z8(J))++Z;else if(K1(P,Z))Z+=2;else throw(0,U2.syntaxError)(D.source,Z,`Invalid character within String: ${M0(D,Z)}.`)}throw(0,U2.syntaxError)(D.source,Z,"Unterminated string.")}function VG(D,F){let P=D.source.body,B=0,Z=3;while(Z<12){let X=P.charCodeAt(F+Z++);if(X===125){if(Z<5||!Z8(B))break;return{value:String.fromCodePoint(B),size:Z}}if(B=B<<4|p8(X),B<0)break}throw(0,U2.syntaxError)(D.source,F,`Invalid Unicode escape sequence: "${P.slice(F,F+Z)}".`)}function wG(D,F){let P=D.source.body,B=QB(P,F+2);if(Z8(B))return{value:String.fromCodePoint(B),size:6};if(IB(B)){if(P.charCodeAt(F+6)===92&&P.charCodeAt(F+7)===117){let Z=QB(P,F+8);if($B(Z))return{value:String.fromCodePoint(B,Z),size:12}}}throw(0,U2.syntaxError)(D.source,F,`Invalid Unicode escape sequence: "${P.slice(F,F+6)}".`)}function QB(D,F){return p8(D.charCodeAt(F))<<12|p8(D.charCodeAt(F+1))<<8|p8(D.charCodeAt(F+2))<<4|p8(D.charCodeAt(F+3))}function p8(D){return D>=48&&D<=57?D-48:D>=65&&D<=70?D-55:D>=97&&D<=102?D-87:-1}function jG(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
+ `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,U2.syntaxError)(D.source,F,`Invalid character escape sequence: "${P.slice(F,F+2)}".`)}function bG(D,F){let P=D.source.body,B=P.length,Z=D.lineStart,X=F+3,q=X,J="",Y=[];while(X<B){let H=P.charCodeAt(X);if(H===34&&P.charCodeAt(X+1)===34&&P.charCodeAt(X+2)===34){J+=P.slice(q,X),Y.push(J);let U=AD(D,r.TokenKind.BLOCK_STRING,F,X+3,(0,MG.dedentBlockStringLines)(Y).join(`
32
+ `));return D.line+=Y.length-1,D.lineStart=Z,U}if(H===92&&P.charCodeAt(X+1)===34&&P.charCodeAt(X+2)===34&&P.charCodeAt(X+3)===34){J+=P.slice(q,X),q=X+1,X+=4;continue}if(H===10||H===13){if(J+=P.slice(q,X),Y.push(J),H===13&&P.charCodeAt(X+1)===10)X+=2;else++X;J="",q=X,Z=X;continue}if(Z8(H))++X;else if(K1(P,X))X+=2;else throw(0,U2.syntaxError)(D.source,X,`Invalid character within String: ${M0(D,X)}.`)}throw(0,U2.syntaxError)(D.source,X,"Unterminated string.")}function SG(D,F){let P=D.source.body,B=P.length,Z=F+1;while(Z<B){let X=P.charCodeAt(Z);if((0,$0.isNameContinue)(X))++Z;else break}return AD(D,r.TokenKind.NAME,F,Z,P.slice(F,Z))}});var ZD=Q((AB)=>{Object.defineProperty(AB,"__esModule",{value:!0});AB.inspect=NG;var uG=10,KB=2;function NG(D){return C1(D,[])}function C1(D,F){switch(typeof D){case"string":return JSON.stringify(D);case"function":return D.name?`[function ${D.name}]`:"[function]";case"object":return _G(D,F);default:return String(D)}}function _G(D,F){if(D===null)return"null";if(F.includes(D))return"[Circular]";let P=[...F,D];if(kG(D)){let B=D.toJSON();if(B!==D)return typeof B==="string"?B:C1(B,P)}else if(Array.isArray(D))return fG(D,P);return xG(D,P)}function kG(D){return typeof D.toJSON==="function"}function xG(D,F){let P=Object.entries(D);if(P.length===0)return"{}";if(F.length>KB)return"["+hG(D)+"]";return"{ "+P.map(([Z,X])=>Z+": "+C1(X,F)).join(", ")+" }"}function fG(D,F){if(D.length===0)return"[]";if(F.length>KB)return"[Array]";let P=Math.min(uG,D.length),B=D.length-P,Z=[];for(let X=0;X<P;++X)Z.push(C1(D[X],F));if(B===1)Z.push("... 1 more item");else if(B>1)Z.push(`... ${B} more items`);return"["+Z.join(", ")+"]"}function hG(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 r8=Q((CB)=>{Object.defineProperty(CB,"__esModule",{value:!0});CB.instanceOf=void 0;var vG=ZD(),yG=globalThis.process&&!1,mG=yG?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],X=Symbol.toStringTag in F?F[Symbol.toStringTag]:(B=F.constructor)===null||B===void 0?void 0:B.name;if(Z===X){let q=(0,vG.inspect)(F);throw new Error(`Cannot use ${Z} "${q}" 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,48 +40,48 @@ 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=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,`
43
+ spurious results.`)}}return!1};CB.instanceOf=mG});var L1=Q((VB)=>{Object.defineProperty(VB,"__esModule",{value:!0});VB.Source=void 0;VB.isSource=dG;var e5=hD(),lG=ZD(),cG=r8();class D4{constructor(D,F="GraphQL request",P={line:1,column:1}){typeof D==="string"||(0,e5.devAssert)(!1,`Body must be a string. Received: ${(0,lG.inspect)(D)}.`),this.body=D,this.name=F,this.locationOffset=P,this.locationOffset.line>0||(0,e5.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,e5.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}VB.Source=D4;function dG(D){return(0,cG.instanceOf)(D,D4)}});var q8=Q((TB)=>{Object.defineProperty(TB,"__esModule",{value:!0});TB.Parser=void 0;TB.parse=aG;TB.parseConstValue=nG;TB.parseType=iG;TB.parseValue=sG;var E0=M1(),a8=A2(),rG=B8(),y=s(),bB=A1(),jB=L1(),b=d8();function aG(D,F){let P=new X8(D,F),B=P.parseDocument();return Object.defineProperty(B,"tokenCount",{enumerable:!1,value:P.tokenCount}),B}function sG(D,F){let P=new X8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseValueLiteral(!1);return P.expectToken(b.TokenKind.EOF),B}function nG(D,F){let P=new X8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseConstValueLiteral();return P.expectToken(b.TokenKind.EOF),B}function iG(D,F){let P=new X8(D,F);P.expectToken(b.TokenKind.SOF);let B=P.parseTypeReference();return P.expectToken(b.TokenKind.EOF),B}class X8{constructor(D,F={}){let P=(0,jB.isSource)(D)?D:new jB.Source(D);this._lexer=new bB.Lexer(P),this._options=F,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}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(0,E0.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:a8.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 a8.OperationTypeNode.QUERY;case"mutation":return a8.OperationTypeNode.MUTATION;case"subscription":return a8.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(0,E0.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(),X=this.parseFieldsDefinition();return this.node(D,{kind:y.Kind.OBJECT_TYPE_DEFINITION,description:F,name:P,interfaces:B,directives:Z,fields:X})}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(),X=this.parseConstDirectives();return this.node(D,{kind:y.Kind.FIELD_DEFINITION,description:F,name:P,arguments:B,type:Z,directives:X})}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 X=this.parseConstDirectives();return this.node(D,{kind:y.Kind.INPUT_VALUE_DEFINITION,description:F,name:P,type:B,defaultValue:Z,directives:X})}parseInterfaceTypeDefinition(){let D=this._lexer.token,F=this.parseDescription();this.expectKeyword("interface");let P=this.parseName(),B=this.parseImplementsInterfaces(),Z=this.parseConstDirectives(),X=this.parseFieldsDefinition();return this.node(D,{kind:y.Kind.INTERFACE_TYPE_DEFINITION,description:F,name:P,interfaces:B,directives:Z,fields:X})}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(0,E0.syntaxError)(this._lexer.source,this._lexer.token.start,`${V1(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 X=this.parseDirectiveLocations();return this.node(D,{kind:y.Kind.DIRECTIVE_DEFINITION,description:F,name:P,arguments:B,repeatable:Z,locations:X})}parseDirectiveLocations(){return this.delimitedMany(b.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let D=this._lexer.token,F=this.parseName();if(Object.prototype.hasOwnProperty.call(rG.DirectiveLocation,F.value))return F;throw this.unexpected(D)}node(D,F){if(this._options.noLocation!==!0)F.loc=new a8.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(0,E0.syntaxError)(this._lexer.source,F.start,`Expected ${SB(D)}, found ${V1(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(0,E0.syntaxError)(this._lexer.source,F.start,`Expected "${D}", found ${V1(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(0,E0.syntaxError)(this._lexer.source,F.start,`Unexpected ${V1(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(F.kind!==b.TokenKind.EOF){if(++this._tokenCounter,D!==void 0&&this._tokenCounter>D)throw(0,E0.syntaxError)(this._lexer.source,F.start,`Document contains more that ${D} tokens. Parsing aborted.`)}}}TB.Parser=X8;function V1(D){let F=D.value;return SB(D.kind)+(F!=null?` "${F}"`:"")}function SB(D){return(0,bB.isPunctuatorTokenKind)(D)?`"${D}"`:D}});var n2=Q((NB)=>{Object.defineProperty(NB,"__esModule",{value:!0});NB.didYouMean=PR;var FR=5;function PR(D,F){let[P,B]=F?[D,F]:[void 0,D],Z=" Did you mean ";if(P)Z+=P+" ";let X=B.map((Y)=>`"${Y}"`);switch(X.length){case 0:return"";case 1:return Z+X[0]+"?";case 2:return Z+X[0]+" or "+X[1]+"?"}let q=X.slice(0,FR),J=q.pop();return Z+q.join(", ")+", or "+J+"?"}});var kB=Q((_B)=>{Object.defineProperty(_B,"__esModule",{value:!0});_B.identityFunc=ZR;function ZR(D){return D}});var i2=Q((xB)=>{Object.defineProperty(xB,"__esModule",{value:!0});xB.keyMap=qR;function qR(D,F){let P=Object.create(null);for(let B of D)P[F(B)]=B;return P}});var s8=Q((fB)=>{Object.defineProperty(fB,"__esModule",{value:!0});fB.keyValMap=YR;function YR(D,F,P){let B=Object.create(null);for(let Z of D)B[F(Z)]=P(Z);return B}});var F4=Q((hB)=>{Object.defineProperty(hB,"__esModule",{value:!0});hB.mapValue=UR;function UR(D,F){let P=Object.create(null);for(let B of Object.keys(D))P[B]=F(D[B],B);return P}});var n8=Q((gB)=>{Object.defineProperty(gB,"__esModule",{value:!0});gB.naturalCompare=OR;function OR(D,F){let P=0,B=0;while(P<D.length&&B<F.length){let Z=D.charCodeAt(P),X=F.charCodeAt(B);if(w1(Z)&&w1(X)){let q=0;do++P,q=q*10+Z-P4,Z=D.charCodeAt(P);while(w1(Z)&&q>0);let J=0;do++B,J=J*10+X-P4,X=F.charCodeAt(B);while(w1(X)&&J>0);if(q<J)return-1;if(q>J)return 1}else{if(Z<X)return-1;if(Z>X)return 1;++P,++B}}return D.length-F.length}var P4=48,zR=57;function w1(D){return!isNaN(D)&&P4<=D&&D<=zR}});var o2=Q((mB)=>{Object.defineProperty(mB,"__esModule",{value:!0});mB.suggestionList=RR;var GR=n8();function RR(D,F){let P=Object.create(null),B=new yB(D),Z=Math.floor(D.length*0.4)+1;for(let X of F){let q=B.measure(X,Z);if(q!==void 0)P[X]=q}return Object.keys(P).sort((X,q)=>{let J=P[X]-P[q];return J!==0?J:(0,GR.naturalCompare)(X,q)})}class yB{constructor(D){this._input=D,this._inputLowerCase=D.toLowerCase(),this._inputArray=vB(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=vB(P),Z=this._inputArray;if(B.length<Z.length){let H=B;B=Z,Z=H}let X=B.length,q=Z.length;if(X-q>F)return;let J=this._rows;for(let H=0;H<=q;H++)J[0][H]=H;for(let H=1;H<=X;H++){let U=J[(H-1)%3],W=J[H%3],O=W[0]=H;for(let z=1;z<=q;z++){let I=B[H-1]===Z[z-1]?0:1,R=Math.min(U[z]+1,W[z-1]+1,U[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;W[z]=R}if(O>F)return}let Y=J[X%3][q];return Y<=F?Y:void 0}}function vB(D){let F=D.length,P=new Array(F);for(let B=0;B<F;++B)P[B]=D.charCodeAt(B);return P}});var j1=Q((lB)=>{Object.defineProperty(lB,"__esModule",{value:!0});lB.toObjMap=$R;function $R(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 dB=Q((cB)=>{Object.defineProperty(cB,"__esModule",{value:!0});cB.printString=ER;function ER(D){return`"${D.replace(KR,AR)}"`}var KR=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function AR(D){return CR[D.charCodeAt(0)]}var CR=["\\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 K0=Q((rB)=>{Object.defineProperty(rB,"__esModule",{value:!0});rB.BREAK=void 0;rB.getEnterLeaveForKind=b1;rB.getVisitFn=SR;rB.visit=jR;rB.visitInParallel=bR;var VR=hD(),wR=ZD(),B4=A2(),pB=s(),J8=Object.freeze({});rB.BREAK=J8;function jR(D,F,P=B4.QueryDocumentKeys){let B=new Map;for(let K of Object.values(pB.Kind))B.set(K,b1(F,K));let Z=void 0,X=Array.isArray(D),q=[D],J=-1,Y=[],H=D,U=void 0,W=void 0,O=[],z=[];do{J++;let K=J===q.length,j=K&&Y.length!==0;if(K){if(U=z.length===0?void 0:O[O.length-1],H=W,W=z.pop(),j)if(X){H=H.slice();let S=0;for(let[C,u]of Y){let m=C-S;if(u===null)H.splice(m,1),S++;else H[m]=u}}else{H={...H};for(let[S,C]of Y)H[S]=C}J=Z.index,q=Z.keys,Y=Z.edits,X=Z.inArray,Z=Z.prev}else if(W){if(U=X?J:q[J],H=W[U],H===null||H===void 0)continue;O.push(U)}let A;if(!Array.isArray(H)){var I,R;(0,B4.isNode)(H)||(0,VR.devAssert)(!1,`Invalid AST Node: ${(0,wR.inspect)(H)}.`);let S=K?(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,U,W,O,z),A===J8)break;if(A===!1){if(!K){O.pop();continue}}else if(A!==void 0){if(Y.push([U,A]),!K)if((0,B4.isNode)(A))H=A;else{O.pop();continue}}}if(A===void 0&&j)Y.push([U,H]);if(K)O.pop();else{var $;if(Z={inArray:X,index:J,keys:q,edits:Y,prev:Z},X=Array.isArray(H),q=X?H:($=P[H.kind])!==null&&$!==void 0?$:[],J=-1,Y=[],W)z.push(W);W=H}}while(Z!==void 0);if(Y.length!==0)return Y[Y.length-1][1];return D}function bR(D){let F=new Array(D.length).fill(null),P=Object.create(null);for(let B of Object.values(pB.Kind)){let Z=!1,X=new Array(D.length).fill(void 0),q=new Array(D.length).fill(void 0);for(let Y=0;Y<D.length;++Y){let{enter:H,leave:U}=b1(D[Y],B);Z||(Z=H!=null||U!=null),X[Y]=H,q[Y]=U}if(!Z)continue;let J={enter(...Y){let H=Y[0];for(let W=0;W<D.length;W++)if(F[W]===null){var U;let O=(U=X[W])===null||U===void 0?void 0:U.apply(D[W],Y);if(O===!1)F[W]=H;else if(O===J8)F[W]=J8;else if(O!==void 0)return O}},leave(...Y){let H=Y[0];for(let W=0;W<D.length;W++)if(F[W]===null){var U;let O=(U=q[W])===null||U===void 0?void 0:U.apply(D[W],Y);if(O===J8)F[W]=J8;else if(O!==void 0&&O!==!1)return O}else if(F[W]===H)F[W]=null}};P[B]=J}return P}function b1(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 SR(D,F,P){let{enter:B,leave:Z}=b1(D,F);return P?Z:B}});var rD=Q((nB)=>{Object.defineProperty(nB,"__esModule",{value:!0});nB.print=hR;var kR=c8(),xR=dB(),fR=K0();function hR(D){return(0,fR.visit)(D,vR)}var gR=80,vR={Name:{leave:(D)=>D.value},Variable:{leave:(D)=>"$"+D.name},Document:{leave:(D)=>_(D.definitions,`
44
44
 
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
- `,u6(_(P,`
45
+ `)},OperationDefinition:{leave(D){let F=a("(",_(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+a(" = ",P)+a(" ",_(B," "))},SelectionSet:{leave:({selections:D})=>W2(D)},Field:{leave({alias:D,name:F,arguments:P,directives:B,selectionSet:Z}){let X=a("",D,": ")+F,q=X+a("(",_(P,", "),")");if(q.length>gR)q=X+a(`(
46
+ `,S1(_(P,`
47
47
  `)),`
48
- )`);return _([X,_(B," "),Z]," ")}},Argument:{leave:({name:D,value:F})=>D+": "+F},FragmentSpread:{leave:({name:D,directives:F})=>"..."+D+p(" ",_(F," "))},InlineFragment:{leave:({typeCondition:D,directives:F,selectionSet:P})=>_(["...",p("on ",D),_(F," "),P]," ")},FragmentDefinition:{leave:({name:D,typeCondition:F,variableDefinitions:P,directives:B,selectionSet:Z})=>`fragment ${D}${p("(",_(P,", "),")")} on ${F} ${p("",_(B," ")," ")}`+Z},IntValue:{leave:({value:D})=>D},FloatValue:{leave:({value:D})=>D},StringValue:{leave:({value:D,block:F})=>F?oI.printBlockString(D):tI.printString(D)},BooleanValue:{leave:({value:D})=>D?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:D})=>D},ListValue:{leave:({values:D})=>"["+_(D,", ")+"]"},ObjectValue:{leave:({fields:D})=>"{"+_(D,", ")+"}"},ObjectField:{leave:({name:D,value:F})=>D+": "+F},Directive:{leave:({name:D,arguments:F})=>"@"+D+p("(",_(F,", "),")")},NamedType:{leave:({name:D})=>D},ListType:{leave:({type:D})=>"["+D+"]"},NonNullType:{leave:({type:D})=>D+"!"},SchemaDefinition:{leave:({description:D,directives:F,operationTypes:P})=>p("",D,`
49
- `)+_(["schema",_(F," "),O0(P)]," ")},OperationTypeDefinition:{leave:({operation:D,type:F})=>D+": "+F},ScalarTypeDefinition:{leave:({description:D,name:F,directives:P})=>p("",D,`
50
- `)+_(["scalar",F,_(P," ")]," ")},ObjectTypeDefinition:{leave:({description:D,name:F,interfaces:P,directives:B,fields:Z})=>p("",D,`
51
- `)+_(["type",F,p("implements ",_(P," & ")),_(B," "),O0(Z)]," ")},FieldDefinition:{leave:({description:D,name:F,arguments:P,type:B,directives:Z})=>p("",D,`
52
- `)+F+(IZ(P)?p(`(
53
- `,u6(_(P,`
48
+ )`);return _([q,_(B," "),Z]," ")}},Argument:{leave:({name:D,value:F})=>D+": "+F},FragmentSpread:{leave:({name:D,directives:F})=>"..."+D+a(" ",_(F," "))},InlineFragment:{leave:({typeCondition:D,directives:F,selectionSet:P})=>_(["...",a("on ",D),_(F," "),P]," ")},FragmentDefinition:{leave:({name:D,typeCondition:F,variableDefinitions:P,directives:B,selectionSet:Z})=>`fragment ${D}${a("(",_(P,", "),")")} on ${F} ${a("",_(B," ")," ")}`+Z},IntValue:{leave:({value:D})=>D},FloatValue:{leave:({value:D})=>D},StringValue:{leave:({value:D,block:F})=>F?(0,kR.printBlockString)(D):(0,xR.printString)(D)},BooleanValue:{leave:({value:D})=>D?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:D})=>D},ListValue:{leave:({values:D})=>"["+_(D,", ")+"]"},ObjectValue:{leave:({fields:D})=>"{"+_(D,", ")+"}"},ObjectField:{leave:({name:D,value:F})=>D+": "+F},Directive:{leave:({name:D,arguments:F})=>"@"+D+a("(",_(F,", "),")")},NamedType:{leave:({name:D})=>D},ListType:{leave:({type:D})=>"["+D+"]"},NonNullType:{leave:({type:D})=>D+"!"},SchemaDefinition:{leave:({description:D,directives:F,operationTypes:P})=>a("",D,`
49
+ `)+_(["schema",_(F," "),W2(P)]," ")},OperationTypeDefinition:{leave:({operation:D,type:F})=>D+": "+F},ScalarTypeDefinition:{leave:({description:D,name:F,directives:P})=>a("",D,`
50
+ `)+_(["scalar",F,_(P," ")]," ")},ObjectTypeDefinition:{leave:({description:D,name:F,interfaces:P,directives:B,fields:Z})=>a("",D,`
51
+ `)+_(["type",F,a("implements ",_(P," & ")),_(B," "),W2(Z)]," ")},FieldDefinition:{leave:({description:D,name:F,arguments:P,type:B,directives:Z})=>a("",D,`
52
+ `)+F+(sB(P)?a(`(
53
+ `,S1(_(P,`
54
54
  `)),`
55
- )`):p("(",_(P,", "),")"))+": "+B+p(" ",_(Z," "))},InputValueDefinition:{leave:({description:D,name:F,type:P,defaultValue:B,directives:Z})=>p("",D,`
56
- `)+_([F+": "+P,p("= ",B),_(Z," ")]," ")},InterfaceTypeDefinition:{leave:({description:D,name:F,interfaces:P,directives:B,fields:Z})=>p("",D,`
57
- `)+_(["interface",F,p("implements ",_(P," & ")),_(B," "),O0(Z)]," ")},UnionTypeDefinition:{leave:({description:D,name:F,directives:P,types:B})=>p("",D,`
58
- `)+_(["union",F,_(P," "),p("= ",_(B," | "))]," ")},EnumTypeDefinition:{leave:({description:D,name:F,directives:P,values:B})=>p("",D,`
59
- `)+_(["enum",F,_(P," "),O0(B)]," ")},EnumValueDefinition:{leave:({description:D,name:F,directives:P})=>p("",D,`
60
- `)+_([F,_(P," ")]," ")},InputObjectTypeDefinition:{leave:({description:D,name:F,directives:P,fields:B})=>p("",D,`
61
- `)+_(["input",F,_(P," "),O0(B)]," ")},DirectiveDefinition:{leave:({description:D,name:F,arguments:P,repeatable:B,locations:Z})=>p("",D,`
62
- `)+"directive @"+F+(IZ(P)?p(`(
63
- `,u6(_(P,`
55
+ )`):a("(",_(P,", "),")"))+": "+B+a(" ",_(Z," "))},InputValueDefinition:{leave:({description:D,name:F,type:P,defaultValue:B,directives:Z})=>a("",D,`
56
+ `)+_([F+": "+P,a("= ",B),_(Z," ")]," ")},InterfaceTypeDefinition:{leave:({description:D,name:F,interfaces:P,directives:B,fields:Z})=>a("",D,`
57
+ `)+_(["interface",F,a("implements ",_(P," & ")),_(B," "),W2(Z)]," ")},UnionTypeDefinition:{leave:({description:D,name:F,directives:P,types:B})=>a("",D,`
58
+ `)+_(["union",F,_(P," "),a("= ",_(B," | "))]," ")},EnumTypeDefinition:{leave:({description:D,name:F,directives:P,values:B})=>a("",D,`
59
+ `)+_(["enum",F,_(P," "),W2(B)]," ")},EnumValueDefinition:{leave:({description:D,name:F,directives:P})=>a("",D,`
60
+ `)+_([F,_(P," ")]," ")},InputObjectTypeDefinition:{leave:({description:D,name:F,directives:P,fields:B})=>a("",D,`
61
+ `)+_(["input",F,_(P," "),W2(B)]," ")},DirectiveDefinition:{leave:({description:D,name:F,arguments:P,repeatable:B,locations:Z})=>a("",D,`
62
+ `)+"directive @"+F+(sB(P)?a(`(
63
+ `,S1(_(P,`
64
64
  `)),`
65
- )`):p("(",_(P,", "),")"))+(B?" repeatable":"")+" on "+_(Z," | ")},SchemaExtension:{leave:({directives:D,operationTypes:F})=>_(["extend schema",_(D," "),O0(F)]," ")},ScalarTypeExtension:{leave:({name:D,directives:F})=>_(["extend scalar",D,_(F," ")]," ")},ObjectTypeExtension:{leave:({name:D,interfaces:F,directives:P,fields:B})=>_(["extend type",D,p("implements ",_(F," & ")),_(P," "),O0(B)]," ")},InterfaceTypeExtension:{leave:({name:D,interfaces:F,directives:P,fields:B})=>_(["extend interface",D,p("implements ",_(F," & ")),_(P," "),O0(B)]," ")},UnionTypeExtension:{leave:({name:D,directives:F,types:P})=>_(["extend union",D,_(F," "),p("= ",_(P," | "))]," ")},EnumTypeExtension:{leave:({name:D,directives:F,values:P})=>_(["extend enum",D,_(F," "),O0(P)]," ")},InputObjectTypeExtension:{leave:({name:D,directives:F,fields:P})=>_(["extend input",D,_(F," "),O0(P)]," ")}};function _(D,F=""){var P;return(P=D===null||D===void 0?void 0:D.filter((B)=>B).join(F))!==null&&P!==void 0?P:""}function O0(D){return p(`{
66
- `,u6(_(D,`
65
+ )`):a("(",_(P,", "),")"))+(B?" repeatable":"")+" on "+_(Z," | ")},SchemaExtension:{leave:({directives:D,operationTypes:F})=>_(["extend schema",_(D," "),W2(F)]," ")},ScalarTypeExtension:{leave:({name:D,directives:F})=>_(["extend scalar",D,_(F," ")]," ")},ObjectTypeExtension:{leave:({name:D,interfaces:F,directives:P,fields:B})=>_(["extend type",D,a("implements ",_(F," & ")),_(P," "),W2(B)]," ")},InterfaceTypeExtension:{leave:({name:D,interfaces:F,directives:P,fields:B})=>_(["extend interface",D,a("implements ",_(F," & ")),_(P," "),W2(B)]," ")},UnionTypeExtension:{leave:({name:D,directives:F,types:P})=>_(["extend union",D,_(F," "),a("= ",_(P," | "))]," ")},EnumTypeExtension:{leave:({name:D,directives:F,values:P})=>_(["extend enum",D,_(F," "),W2(P)]," ")},InputObjectTypeExtension:{leave:({name:D,directives:F,fields:P})=>_(["extend input",D,_(F," "),W2(P)]," ")}};function _(D,F=""){var P;return(P=D===null||D===void 0?void 0:D.filter((B)=>B).join(F))!==null&&P!==void 0?P:""}function W2(D){return a(`{
66
+ `,S1(_(D,`
67
67
  `)),`
68
- }`)}function p(D,F,P=""){return F!=null&&F!==""?D+F+P:""}function u6(D){return p(" ",D.replace(/\n/g,`
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$=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.
68
+ }`)}function a(D,F,P=""){return F!=null&&F!==""?D+F+P:""}function S1(D){return a(" ",D.replace(/\n/g,`
69
+ `))}function sB(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 X4=Q((iB)=>{Object.defineProperty(iB,"__esModule",{value:!0});iB.valueFromASTUntyped=Z4;var mR=s8(),f2=s();function Z4(D,F){switch(D.kind){case f2.Kind.NULL:return null;case f2.Kind.INT:return parseInt(D.value,10);case f2.Kind.FLOAT:return parseFloat(D.value);case f2.Kind.STRING:case f2.Kind.ENUM:case f2.Kind.BOOLEAN:return D.value;case f2.Kind.LIST:return D.values.map((P)=>Z4(P,F));case f2.Kind.OBJECT:return(0,mR.keyValMap)(D.fields,(P)=>P.name.value,(P)=>Z4(P.value,F));case f2.Kind.VARIABLE:return F===null||F===void 0?void 0:F[D.name.value]}}});var i8=Q((DZ)=>{Object.defineProperty(DZ,"__esModule",{value:!0});DZ.assertEnumValueName=cR;DZ.assertName=eB;var oB=hD(),T1=g(),tB=E1();function eB(D){if(D!=null||(0,oB.devAssert)(!1,"Must provide name."),typeof D==="string"||(0,oB.devAssert)(!1,"Expected name to be a string."),D.length===0)throw new T1.GraphQLError("Expected name to be a non-empty string.");for(let F=1;F<D.length;++F)if(!(0,tB.isNameContinue)(D.charCodeAt(F)))throw new T1.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${D}" does not.`);if(!(0,tB.isNameStart)(D.charCodeAt(0)))throw new T1.GraphQLError(`Names must start with [_a-zA-Z] but "${D}" does not.`);return D}function cR(D){if(D==="true"||D==="false"||D==="null")throw new T1.GraphQLError(`Enum values cannot be named: ${D}`);return eB(D)}});var n=Q((QZ)=>{Object.defineProperty(QZ,"__esModule",{value:!0});QZ.GraphQLUnionType=QZ.GraphQLScalarType=QZ.GraphQLObjectType=QZ.GraphQLNonNull=QZ.GraphQLList=QZ.GraphQLInterfaceType=QZ.GraphQLInputObjectType=QZ.GraphQLEnumType=void 0;QZ.argsToArgsConfig=zZ;QZ.assertAbstractType=WI;QZ.assertCompositeType=UI;QZ.assertEnumType=BI;QZ.assertInputObjectType=ZI;QZ.assertInputType=JI;QZ.assertInterfaceType=FI;QZ.assertLeafType=HI;QZ.assertListType=XI;QZ.assertNamedType=GI;QZ.assertNonNullType=qI;QZ.assertNullableType=zI;QZ.assertObjectType=DI;QZ.assertOutputType=YI;QZ.assertScalarType=eR;QZ.assertType=tR;QZ.assertUnionType=PI;QZ.assertWrappingType=OI;QZ.defineArguments=WZ;QZ.getNamedType=RI;QZ.getNullableType=QI;QZ.isAbstractType=JZ;QZ.isCompositeType=qZ;QZ.isEnumType=V0;QZ.isInputObjectType=t8;QZ.isInputType=q4;QZ.isInterfaceType=C0;QZ.isLeafType=XZ;QZ.isListType=k1;QZ.isNamedType=YZ;QZ.isNonNullType=e2;QZ.isNullableType=U4;QZ.isObjectType=H8;QZ.isOutputType=J4;QZ.isRequiredArgument=II;QZ.isRequiredInputField=EI;QZ.isScalarType=A0;QZ.isType=_1;QZ.isUnionType=L0;QZ.isWrappingType=e8;QZ.resolveObjMapThunk=O4;QZ.resolveReadonlyArrayThunk=W4;var SD=hD(),rR=n2(),FZ=kB(),YD=ZD(),t2=r8(),aR=K2(),sR=i2(),ZZ=s8(),N1=F4(),nR=o2(),C2=j1(),o8=g(),iR=s(),PZ=rD(),oR=X4(),L2=i8();function _1(D){return A0(D)||H8(D)||C0(D)||L0(D)||V0(D)||t8(D)||k1(D)||e2(D)}function tR(D){if(!_1(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL type.`);return D}function A0(D){return(0,t2.instanceOf)(D,z4)}function eR(D){if(!A0(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Scalar type.`);return D}function H8(D){return(0,t2.instanceOf)(D,Q4)}function DI(D){if(!H8(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Object type.`);return D}function C0(D){return(0,t2.instanceOf)(D,G4)}function FI(D){if(!C0(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Interface type.`);return D}function L0(D){return(0,t2.instanceOf)(D,R4)}function PI(D){if(!L0(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Union type.`);return D}function V0(D){return(0,t2.instanceOf)(D,I4)}function BI(D){if(!V0(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Enum type.`);return D}function t8(D){return(0,t2.instanceOf)(D,$4)}function ZI(D){if(!t8(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Input Object type.`);return D}function k1(D){return(0,t2.instanceOf)(D,Y4)}function XI(D){if(!k1(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL List type.`);return D}function e2(D){return(0,t2.instanceOf)(D,H4)}function qI(D){if(!e2(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL Non-Null type.`);return D}function q4(D){return A0(D)||V0(D)||t8(D)||e8(D)&&q4(D.ofType)}function JI(D){if(!q4(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL input type.`);return D}function J4(D){return A0(D)||H8(D)||C0(D)||L0(D)||V0(D)||e8(D)&&J4(D.ofType)}function YI(D){if(!J4(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL output type.`);return D}function XZ(D){return A0(D)||V0(D)}function HI(D){if(!XZ(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL leaf type.`);return D}function qZ(D){return H8(D)||C0(D)||L0(D)}function UI(D){if(!qZ(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL composite type.`);return D}function JZ(D){return C0(D)||L0(D)}function WI(D){if(!JZ(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL abstract type.`);return D}class Y4{constructor(D){_1(D)||(0,SD.devAssert)(!1,`Expected ${(0,YD.inspect)(D)} to be a GraphQL type.`),this.ofType=D}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}QZ.GraphQLList=Y4;class H4{constructor(D){U4(D)||(0,SD.devAssert)(!1,`Expected ${(0,YD.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()}}QZ.GraphQLNonNull=H4;function e8(D){return k1(D)||e2(D)}function OI(D){if(!e8(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL wrapping type.`);return D}function U4(D){return _1(D)&&!e2(D)}function zI(D){if(!U4(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL nullable type.`);return D}function QI(D){if(D)return e2(D)?D.ofType:D}function YZ(D){return A0(D)||H8(D)||C0(D)||L0(D)||V0(D)||t8(D)}function GI(D){if(!YZ(D))throw new Error(`Expected ${(0,YD.inspect)(D)} to be a GraphQL named type.`);return D}function RI(D){if(D){let F=D;while(e8(F))F=F.ofType;return F}}function W4(D){return typeof D==="function"?D():D}function O4(D){return typeof D==="function"?D():D}class z4{constructor(D){var F,P,B,Z;let X=(F=D.parseValue)!==null&&F!==void 0?F:FZ.identityFunc;if(this.name=(0,L2.assertName)(D.name),this.description=D.description,this.specifiedByURL=D.specifiedByURL,this.serialize=(P=D.serialize)!==null&&P!==void 0?P:FZ.identityFunc,this.parseValue=X,this.parseLiteral=(B=D.parseLiteral)!==null&&B!==void 0?B:(q,J)=>X((0,oR.valueFromASTUntyped)(q,J)),this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(Z=D.extensionASTNodes)!==null&&Z!==void 0?Z:[],D.specifiedByURL==null||typeof D.specifiedByURL==="string"||(0,SD.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,YD.inspect)(D.specifiedByURL)}.`),D.serialize==null||typeof D.serialize==="function"||(0,SD.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"||(0,SD.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()}}QZ.GraphQLScalarType=z4;class Q4{constructor(D){var F;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.isTypeOf=D.isTypeOf,this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._fields=()=>UZ(D),this._interfaces=()=>HZ(D),D.isTypeOf==null||typeof D.isTypeOf==="function"||(0,SD.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,YD.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:OZ(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}QZ.GraphQLObjectType=Q4;function HZ(D){var F;let P=W4((F=D.interfaces)!==null&&F!==void 0?F:[]);return Array.isArray(P)||(0,SD.devAssert)(!1,`${D.name} interfaces must be an Array or a function which returns an Array.`),P}function UZ(D){let F=O4(D.fields);return Y8(F)||(0,SD.devAssert)(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,N1.mapValue)(F,(P,B)=>{var Z;Y8(P)||(0,SD.devAssert)(!1,`${D.name}.${B} field config must be an object.`),P.resolve==null||typeof P.resolve==="function"||(0,SD.devAssert)(!1,`${D.name}.${B} field resolver must be a function if provided, but got: ${(0,YD.inspect)(P.resolve)}.`);let X=(Z=P.args)!==null&&Z!==void 0?Z:{};return Y8(X)||(0,SD.devAssert)(!1,`${D.name}.${B} args must be an object with argument names as keys.`),{name:(0,L2.assertName)(B),description:P.description,type:P.type,args:WZ(X),resolve:P.resolve,subscribe:P.subscribe,deprecationReason:P.deprecationReason,extensions:(0,C2.toObjMap)(P.extensions),astNode:P.astNode}})}function WZ(D){return Object.entries(D).map(([F,P])=>({name:(0,L2.assertName)(F),description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:(0,C2.toObjMap)(P.extensions),astNode:P.astNode}))}function Y8(D){return(0,aR.isObjectLike)(D)&&!Array.isArray(D)}function OZ(D){return(0,N1.mapValue)(D,(F)=>({description:F.description,type:F.type,args:zZ(F.args),resolve:F.resolve,subscribe:F.subscribe,deprecationReason:F.deprecationReason,extensions:F.extensions,astNode:F.astNode}))}function zZ(D){return(0,ZZ.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 II(D){return e2(D.type)&&D.defaultValue===void 0}class G4{constructor(D){var F;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._fields=UZ.bind(void 0,D),this._interfaces=HZ.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||(0,SD.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,YD.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:OZ(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}QZ.GraphQLInterfaceType=G4;class R4{constructor(D){var F;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.resolveType=D.resolveType,this.extensions=(0,C2.toObjMap)(D.extensions),this.astNode=D.astNode,this.extensionASTNodes=(F=D.extensionASTNodes)!==null&&F!==void 0?F:[],this._types=$I.bind(void 0,D),D.resolveType==null||typeof D.resolveType==="function"||(0,SD.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,YD.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()}}QZ.GraphQLUnionType=R4;function $I(D){let F=W4(D.types);return Array.isArray(F)||(0,SD.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${D.name}.`),F}class I4{constructor(D){var F;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.extensions=(0,C2.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:BZ(this.name,D.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){if(typeof this._values==="function")this._values=BZ(this.name,this._values());return this._values}getValue(D){if(this._nameLookup===null)this._nameLookup=(0,sR.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 o8.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,YD.inspect)(D)}`);return F.name}parseValue(D){if(typeof D!=="string"){let P=(0,YD.inspect)(D);throw new o8.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${P}.`+u1(this,P))}let F=this.getValue(D);if(F==null)throw new o8.GraphQLError(`Value "${D}" does not exist in "${this.name}" enum.`+u1(this,D));return F.value}parseLiteral(D,F){if(D.kind!==iR.Kind.ENUM){let B=(0,PZ.print)(D);throw new o8.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${B}.`+u1(this,B),{nodes:D})}let P=this.getValue(D.value);if(P==null){let B=(0,PZ.print)(D);throw new o8.GraphQLError(`Value "${B}" does not exist in "${this.name}" enum.`+u1(this,B),{nodes:D})}return P.value}toConfig(){let D=(0,ZZ.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()}}QZ.GraphQLEnumType=I4;function u1(D,F){let P=D.getValues().map((Z)=>Z.name),B=(0,nR.suggestionList)(F,P);return(0,rR.didYouMean)("the enum value",B)}function BZ(D,F){return Y8(F)||(0,SD.devAssert)(!1,`${D} values must be an object with value names as keys.`),Object.entries(F).map(([P,B])=>{return Y8(B)||(0,SD.devAssert)(!1,`${D}.${P} must refer to an object with a "value" key representing an internal value but got: ${(0,YD.inspect)(B)}.`),{name:(0,L2.assertEnumValueName)(P),description:B.description,value:B.value!==void 0?B.value:P,deprecationReason:B.deprecationReason,extensions:(0,C2.toObjMap)(B.extensions),astNode:B.astNode}})}class $4{constructor(D){var F,P;this.name=(0,L2.assertName)(D.name),this.description=D.description,this.extensions=(0,C2.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=MI.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=(0,N1.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()}}QZ.GraphQLInputObjectType=$4;function MI(D){let F=O4(D.fields);return Y8(F)||(0,SD.devAssert)(!1,`${D.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,N1.mapValue)(F,(P,B)=>{return!("resolve"in P)||(0,SD.devAssert)(!1,`${D.name}.${B} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,L2.assertName)(B),description:P.description,type:P.type,defaultValue:P.defaultValue,deprecationReason:P.deprecationReason,extensions:(0,C2.toObjMap)(P.extensions),astNode:P.astNode}})}function EI(D){return e2(D.type)&&D.defaultValue===void 0}});var D6=Q((RZ)=>{Object.defineProperty(RZ,"__esModule",{value:!0});RZ.doTypesOverlap=R$;RZ.isEqualType=M4;RZ.isTypeSubTypeOf=x1;var xD=n();function M4(D,F){if(D===F)return!0;if((0,xD.isNonNullType)(D)&&(0,xD.isNonNullType)(F))return M4(D.ofType,F.ofType);if((0,xD.isListType)(D)&&(0,xD.isListType)(F))return M4(D.ofType,F.ofType);return!1}function x1(D,F,P){if(F===P)return!0;if((0,xD.isNonNullType)(P)){if((0,xD.isNonNullType)(F))return x1(D,F.ofType,P.ofType);return!1}if((0,xD.isNonNullType)(F))return x1(D,F.ofType,P);if((0,xD.isListType)(P)){if((0,xD.isListType)(F))return x1(D,F.ofType,P.ofType);return!1}if((0,xD.isListType)(F))return!1;return(0,xD.isAbstractType)(P)&&((0,xD.isInterfaceType)(F)||(0,xD.isObjectType)(F))&&D.isSubType(P,F)}function R$(D,F,P){if(F===P)return!0;if((0,xD.isAbstractType)(F)){if((0,xD.isAbstractType)(P))return D.getPossibleTypes(F).some((B)=>D.isSubType(P,B));return D.isSubType(F,P)}if((0,xD.isAbstractType)(P))return D.isSubType(P,F);return!1}});var V2=Q((LZ)=>{Object.defineProperty(LZ,"__esModule",{value:!0});LZ.GraphQLString=LZ.GraphQLInt=LZ.GraphQLID=LZ.GraphQLFloat=LZ.GraphQLBoolean=LZ.GRAPHQL_MIN_INT=LZ.GRAPHQL_MAX_INT=void 0;LZ.isSpecifiedScalarType=E$;LZ.specifiedScalarTypes=void 0;var O2=ZD(),IZ=K2(),TD=g(),w0=s(),F6=rD(),P6=n(),f1=2147483647;LZ.GRAPHQL_MAX_INT=f1;var h1=-2147483648;LZ.GRAPHQL_MIN_INT=h1;var $Z=new P6.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=B6(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 TD.GraphQLError(`Int cannot represent non-integer value: ${(0,O2.inspect)(F)}`);if(P>f1||P<h1)throw new TD.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,O2.inspect)(F));return P},parseValue(D){if(typeof D!=="number"||!Number.isInteger(D))throw new TD.GraphQLError(`Int cannot represent non-integer value: ${(0,O2.inspect)(D)}`);if(D>f1||D<h1)throw new TD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D}`);return D},parseLiteral(D){if(D.kind!==w0.Kind.INT)throw new TD.GraphQLError(`Int cannot represent non-integer value: ${(0,F6.print)(D)}`,{nodes:D});let F=parseInt(D.value,10);if(F>f1||F<h1)throw new TD.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${D.value}`,{nodes:D});return F}});LZ.GraphQLInt=$Z;var MZ=new P6.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=B6(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 TD.GraphQLError(`Float cannot represent non numeric value: ${(0,O2.inspect)(F)}`);return P},parseValue(D){if(typeof D!=="number"||!Number.isFinite(D))throw new TD.GraphQLError(`Float cannot represent non numeric value: ${(0,O2.inspect)(D)}`);return D},parseLiteral(D){if(D.kind!==w0.Kind.FLOAT&&D.kind!==w0.Kind.INT)throw new TD.GraphQLError(`Float cannot represent non numeric value: ${(0,F6.print)(D)}`,D);return parseFloat(D.value)}});LZ.GraphQLFloat=MZ;var EZ=new P6.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=B6(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 TD.GraphQLError(`String cannot represent value: ${(0,O2.inspect)(D)}`)},parseValue(D){if(typeof D!=="string")throw new TD.GraphQLError(`String cannot represent a non string value: ${(0,O2.inspect)(D)}`);return D},parseLiteral(D){if(D.kind!==w0.Kind.STRING)throw new TD.GraphQLError(`String cannot represent a non string value: ${(0,F6.print)(D)}`,{nodes:D});return D.value}});LZ.GraphQLString=EZ;var KZ=new P6.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(D){let F=B6(D);if(typeof F==="boolean")return F;if(Number.isFinite(F))return F!==0;throw new TD.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,O2.inspect)(F)}`)},parseValue(D){if(typeof D!=="boolean")throw new TD.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,O2.inspect)(D)}`);return D},parseLiteral(D){if(D.kind!==w0.Kind.BOOLEAN)throw new TD.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,F6.print)(D)}`,{nodes:D});return D.value}});LZ.GraphQLBoolean=KZ;var AZ=new P6.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=B6(D);if(typeof F==="string")return F;if(Number.isInteger(F))return String(F);throw new TD.GraphQLError(`ID cannot represent value: ${(0,O2.inspect)(D)}`)},parseValue(D){if(typeof D==="string")return D;if(typeof D==="number"&&Number.isInteger(D))return D.toString();throw new TD.GraphQLError(`ID cannot represent value: ${(0,O2.inspect)(D)}`)},parseLiteral(D){if(D.kind!==w0.Kind.STRING&&D.kind!==w0.Kind.INT)throw new TD.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,F6.print)(D),{nodes:D});return D.value}});LZ.GraphQLID=AZ;var CZ=Object.freeze([EZ,$Z,MZ,KZ,AZ]);LZ.specifiedScalarTypes=CZ;function E$(D){return CZ.some(({name:F})=>D.name===F)}function B6(D){if((0,IZ.isObjectLike)(D)){if(typeof D.valueOf==="function"){let F=D.valueOf();if(!(0,IZ.isObjectLike)(F))return F}if(typeof D.toJSON==="function")return D.toJSON()}return D}});var yD=Q((fZ)=>{Object.defineProperty(fZ,"__esModule",{value:!0});fZ.GraphQLSpecifiedByDirective=fZ.GraphQLSkipDirective=fZ.GraphQLOneOfDirective=fZ.GraphQLIncludeDirective=fZ.GraphQLDirective=fZ.GraphQLDeprecatedDirective=fZ.DEFAULT_DEPRECATION_REASON=void 0;fZ.assertDirective=_$;fZ.isDirective=bZ;fZ.isSpecifiedDirective=k$;fZ.specifiedDirectives=void 0;var jZ=hD(),b$=ZD(),S$=r8(),T$=K2(),u$=j1(),nD=B8(),N$=i8(),Z6=n(),g1=V2();function bZ(D){return(0,S$.instanceOf)(D,D0)}function _$(D){if(!bZ(D))throw new Error(`Expected ${(0,b$.inspect)(D)} to be a GraphQL directive.`);return D}class D0{constructor(D){var F,P;this.name=(0,N$.assertName)(D.name),this.description=D.description,this.locations=D.locations,this.isRepeatable=(F=D.isRepeatable)!==null&&F!==void 0?F:!1,this.extensions=(0,u$.toObjMap)(D.extensions),this.astNode=D.astNode,Array.isArray(D.locations)||(0,jZ.devAssert)(!1,`@${D.name} locations must be an Array.`);let B=(P=D.args)!==null&&P!==void 0?P:{};(0,T$.isObjectLike)(B)&&!Array.isArray(B)||(0,jZ.devAssert)(!1,`@${D.name} args must be an object with argument names as keys.`),this.args=(0,Z6.defineArguments)(B)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,Z6.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}fZ.GraphQLDirective=D0;var SZ=new D0({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 Z6.GraphQLNonNull(g1.GraphQLBoolean),description:"Included when true."}}});fZ.GraphQLIncludeDirective=SZ;var TZ=new D0({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 Z6.GraphQLNonNull(g1.GraphQLBoolean),description:"Skipped when true."}}});fZ.GraphQLSkipDirective=TZ;var uZ="No longer supported";fZ.DEFAULT_DEPRECATION_REASON=uZ;var NZ=new D0({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:g1.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:uZ}}});fZ.GraphQLDeprecatedDirective=NZ;var _Z=new D0({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[nD.DirectiveLocation.SCALAR],args:{url:{type:new Z6.GraphQLNonNull(g1.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});fZ.GraphQLSpecifiedByDirective=_Z;var kZ=new D0({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[nD.DirectiveLocation.INPUT_OBJECT],args:{}});fZ.GraphQLOneOfDirective=kZ;var xZ=Object.freeze([SZ,TZ,NZ,_Z,kZ]);fZ.specifiedDirectives=xZ;function k$(D){return xZ.some(({name:F})=>F===D.name)}});var v1=Q((vZ)=>{Object.defineProperty(vZ,"__esModule",{value:!0});vZ.isIterableObject=d$;function d$(D){return typeof D==="object"&&typeof(D===null||D===void 0?void 0:D[Symbol.iterator])==="function"}});var J6=Q((lZ)=>{Object.defineProperty(lZ,"__esModule",{value:!0});lZ.astFromValue=q6;var yZ=ZD(),r$=kD(),a$=v1(),s$=K2(),iD=s(),X6=n(),n$=V2();function q6(D,F){if((0,X6.isNonNullType)(F)){let P=q6(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((0,X6.isListType)(F)){let P=F.ofType;if((0,a$.isIterableObject)(D)){let B=[];for(let Z of D){let X=q6(Z,P);if(X!=null)B.push(X)}return{kind:iD.Kind.LIST,values:B}}return q6(D,P)}if((0,X6.isInputObjectType)(F)){if(!(0,s$.isObjectLike)(D))return null;let P=[];for(let B of Object.values(F.getFields())){let Z=q6(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((0,X6.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 mZ.test(B)?{kind:iD.Kind.INT,value:B}:{kind:iD.Kind.FLOAT,value:B}}if(typeof P==="string"){if((0,X6.isEnumType)(F))return{kind:iD.Kind.ENUM,value:P};if(F===n$.GraphQLID&&mZ.test(P))return{kind:iD.Kind.INT,value:P};return{kind:iD.Kind.STRING,value:P}}throw new TypeError(`Cannot convert value to AST: ${(0,yZ.inspect)(P)}.`)}(0,r$.invariant)(!1,"Unexpected input type: "+(0,yZ.inspect)(F))}var mZ=/^-?(?:0|[1-9][0-9]*)$/});var tD=Q((dZ)=>{Object.defineProperty(dZ,"__esModule",{value:!0});dZ.introspectionTypes=dZ.__TypeKind=dZ.__Type=dZ.__Schema=dZ.__InputValue=dZ.__Field=dZ.__EnumValue=dZ.__DirectiveLocation=dZ.__Directive=dZ.TypeNameMetaFieldDef=dZ.TypeMetaFieldDef=dZ.TypeKind=dZ.SchemaMetaFieldDef=void 0;dZ.isIntrospectionType=ZM;var o$=ZD(),t$=kD(),VD=B8(),e$=rD(),DM=J6(),N=n(),JD=V2(),E4=new N.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:JD.GraphQLString,resolve:(D)=>D.description},types:{description:"A list of all types supported by this server.",type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(oD))),resolve(D){return Object.values(D.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new N.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 N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(K4))),resolve:(D)=>D.getDirectives()}})});dZ.__Schema=E4;var K4=new N.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(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(`
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 N.GraphQLNonNull(JD.GraphQLString),resolve:(D)=>D.name},description:{type:JD.GraphQLString,resolve:(D)=>D.description},isRepeatable:{type:new N.GraphQLNonNull(JD.GraphQLBoolean),resolve:(D)=>D.isRepeatable},locations:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(A4))),resolve:(D)=>D.locations},args:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(Y6))),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){return F?D.args:D.args.filter((P)=>P.deprecationReason==null)}}})});dZ.__Directive=K4;var A4=new N.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:VD.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:VD.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:VD.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:VD.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:VD.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:VD.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:VD.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:VD.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:VD.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:VD.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:VD.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:VD.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:VD.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:VD.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:VD.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:VD.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:VD.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:VD.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:VD.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});dZ.__DirectiveLocation=A4;var oD=new N.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 N.GraphQLNonNull(V4),resolve(D){if((0,N.isScalarType)(D))return wD.SCALAR;if((0,N.isObjectType)(D))return wD.OBJECT;if((0,N.isInterfaceType)(D))return wD.INTERFACE;if((0,N.isUnionType)(D))return wD.UNION;if((0,N.isEnumType)(D))return wD.ENUM;if((0,N.isInputObjectType)(D))return wD.INPUT_OBJECT;if((0,N.isListType)(D))return wD.LIST;if((0,N.isNonNullType)(D))return wD.NON_NULL;(0,t$.invariant)(!1,`Unexpected type: "${(0,o$.inspect)(D)}".`)}},name:{type:JD.GraphQLString,resolve:(D)=>("name"in D)?D.name:void 0},description:{type:JD.GraphQLString,resolve:(D)=>("description"in D)?D.description:void 0},specifiedByURL:{type:JD.GraphQLString,resolve:(D)=>("specifiedByURL"in D)?D.specifiedByURL:void 0},fields:{type:new N.GraphQLList(new N.GraphQLNonNull(C4)),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if((0,N.isObjectType)(D)||(0,N.isInterfaceType)(D)){let P=Object.values(D.getFields());return F?P:P.filter((B)=>B.deprecationReason==null)}}},interfaces:{type:new N.GraphQLList(new N.GraphQLNonNull(oD)),resolve(D){if((0,N.isObjectType)(D)||(0,N.isInterfaceType)(D))return D.getInterfaces()}},possibleTypes:{type:new N.GraphQLList(new N.GraphQLNonNull(oD)),resolve(D,F,P,{schema:B}){if((0,N.isAbstractType)(D))return B.getPossibleTypes(D)}},enumValues:{type:new N.GraphQLList(new N.GraphQLNonNull(L4)),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if((0,N.isEnumType)(D)){let P=D.getValues();return F?P:P.filter((B)=>B.deprecationReason==null)}}},inputFields:{type:new N.GraphQLList(new N.GraphQLNonNull(Y6)),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){if((0,N.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:JD.GraphQLBoolean,resolve:(D)=>{if((0,N.isInputObjectType)(D))return D.isOneOf}}})});dZ.__Type=oD;var C4=new N.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 N.GraphQLNonNull(JD.GraphQLString),resolve:(D)=>D.name},description:{type:JD.GraphQLString,resolve:(D)=>D.description},args:{type:new N.GraphQLNonNull(new N.GraphQLList(new N.GraphQLNonNull(Y6))),args:{includeDeprecated:{type:JD.GraphQLBoolean,defaultValue:!1}},resolve(D,{includeDeprecated:F}){return F?D.args:D.args.filter((P)=>P.deprecationReason==null)}},type:{type:new N.GraphQLNonNull(oD),resolve:(D)=>D.type},isDeprecated:{type:new N.GraphQLNonNull(JD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:JD.GraphQLString,resolve:(D)=>D.deprecationReason}})});dZ.__Field=C4;var Y6=new N.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 N.GraphQLNonNull(JD.GraphQLString),resolve:(D)=>D.name},description:{type:JD.GraphQLString,resolve:(D)=>D.description},type:{type:new N.GraphQLNonNull(oD),resolve:(D)=>D.type},defaultValue:{type:JD.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(D){let{type:F,defaultValue:P}=D,B=(0,DM.astFromValue)(P,F);return B?(0,e$.print)(B):null}},isDeprecated:{type:new N.GraphQLNonNull(JD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:JD.GraphQLString,resolve:(D)=>D.deprecationReason}})});dZ.__InputValue=Y6;var L4=new N.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 N.GraphQLNonNull(JD.GraphQLString),resolve:(D)=>D.name},description:{type:JD.GraphQLString,resolve:(D)=>D.description},isDeprecated:{type:new N.GraphQLNonNull(JD.GraphQLBoolean),resolve:(D)=>D.deprecationReason!=null},deprecationReason:{type:JD.GraphQLString,resolve:(D)=>D.deprecationReason}})});dZ.__EnumValue=L4;var wD;dZ.TypeKind=wD;(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"})(wD||(dZ.TypeKind=wD={}));var V4=new N.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:wD.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:wD.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:wD.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:wD.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:wD.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:wD.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:wD.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:wD.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});dZ.__TypeKind=V4;var FM={name:"__schema",type:new N.GraphQLNonNull(E4),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};dZ.SchemaMetaFieldDef=FM;var PM={name:"__type",type:oD,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new N.GraphQLNonNull(JD.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};dZ.TypeMetaFieldDef=PM;var BM={name:"__typename",type:new N.GraphQLNonNull(JD.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};dZ.TypeNameMetaFieldDef=BM;var cZ=Object.freeze([E4,K4,A4,oD,C4,Y6,L4,V4]);dZ.introspectionTypes=cZ;function ZM(D){return cZ.some(({name:F})=>D.name===F)}});var j0=Q((nZ)=>{Object.defineProperty(nZ,"__esModule",{value:!0});nZ.GraphQLSchema=void 0;nZ.assertSchema=KM;nZ.isSchema=sZ;var y1=hD(),j4=ZD(),IM=r8(),$M=K2(),MM=j1(),w4=A2(),z2=n(),aZ=yD(),EM=tD();function sZ(D){return(0,IM.instanceOf)(D,b4)}function KM(D){if(!sZ(D))throw new Error(`Expected ${(0,j4.inspect)(D)} to be a GraphQL schema.`);return D}class b4{constructor(D){var F,P;this.__validationErrors=D.assumeValid===!0?[]:void 0,(0,$M.isObjectLike)(D)||(0,y1.devAssert)(!1,"Must provide configuration object."),!D.types||Array.isArray(D.types)||(0,y1.devAssert)(!1,`"types" must be Array if provided but got: ${(0,j4.inspect)(D.types)}.`),!D.directives||Array.isArray(D.directives)||(0,y1.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,j4.inspect)(D.directives)}.`),this.description=D.description,this.extensions=(0,MM.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:aZ.specifiedDirectives;let B=new Set(D.types);if(D.types!=null)for(let Z of D.types)B.delete(Z),Q2(Z,B);if(this._queryType!=null)Q2(this._queryType,B);if(this._mutationType!=null)Q2(this._mutationType,B);if(this._subscriptionType!=null)Q2(this._subscriptionType,B);for(let Z of this._directives)if((0,aZ.isDirective)(Z))for(let X of Z.args)Q2(X.type,B);Q2(EM.__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 X=Z.name;if(X||(0,y1.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[X]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${X}".`);if(this._typeMap[X]=Z,(0,z2.isInterfaceType)(Z)){for(let q of Z.getInterfaces())if((0,z2.isInterfaceType)(q)){let J=this._implementationsMap[q.name];if(J===void 0)J=this._implementationsMap[q.name]={objects:[],interfaces:[]};J.interfaces.push(Z)}}else if((0,z2.isObjectType)(Z)){for(let q of Z.getInterfaces())if((0,z2.isInterfaceType)(q)){let J=this._implementationsMap[q.name];if(J===void 0)J=this._implementationsMap[q.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 w4.OperationTypeNode.QUERY:return this.getQueryType();case w4.OperationTypeNode.MUTATION:return this.getMutationType();case w4.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(D){return this.getTypeMap()[D]}getPossibleTypes(D){return(0,z2.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),(0,z2.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}}}nZ.GraphQLSchema=b4;function Q2(D,F){let P=(0,z2.getNamedType)(D);if(!F.has(P)){if(F.add(P),(0,z2.isUnionType)(P))for(let B of P.getTypes())Q2(B,F);else if((0,z2.isObjectType)(P)||(0,z2.isInterfaceType)(P)){for(let B of P.getInterfaces())Q2(B,F);for(let B of Object.values(P.getFields())){Q2(B.type,F);for(let Z of B.args)Q2(Z.type,F)}}else if((0,z2.isInputObjectType)(P))for(let B of Object.values(P.getFields()))Q2(B.type,F)}return F}});var U6=Q((ZX)=>{Object.defineProperty(ZX,"__esModule",{value:!0});ZX.assertValidSchema=jM;ZX.validateSchema=PX;var fD=ZD(),LM=g(),S4=A2(),oZ=D6(),ID=n(),FX=yD(),VM=tD(),wM=j0();function PX(D){if((0,wM.assertSchema)(D),D.__validationErrors)return D.__validationErrors;let F=new BX(D);bM(F),SM(F),TM(F);let P=F.getErrors();return D.__validationErrors=P,P}function jM(D){let F=PX(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)}.`,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(`
74
+ `))}class BX{constructor(D){this._errors=[],this.schema=D}reportError(D,F){let P=Array.isArray(F)?F.filter(Boolean):F;this._errors.push(new LM.GraphQLError(D,{nodes:P}))}getErrors(){return this._errors}}function bM(D){let F=D.schema,P=F.getQueryType();if(!P)D.reportError("Query root type must be provided.",F.astNode);else if(!(0,ID.isObjectType)(P)){var B;D.reportError(`Query root type must be Object type, it cannot be ${(0,fD.inspect)(P)}.`,(B=T4(F,S4.OperationTypeNode.QUERY))!==null&&B!==void 0?B:P.astNode)}let Z=F.getMutationType();if(Z&&!(0,ID.isObjectType)(Z)){var X;D.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,fD.inspect)(Z)}.`,(X=T4(F,S4.OperationTypeNode.MUTATION))!==null&&X!==void 0?X:Z.astNode)}let q=F.getSubscriptionType();if(q&&!(0,ID.isObjectType)(q)){var J;D.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,fD.inspect)(q)}.`,(J=T4(F,S4.OperationTypeNode.SUBSCRIPTION))!==null&&J!==void 0?J:q.astNode)}}function T4(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 SM(D){for(let P of D.schema.getDirectives()){if(!(0,FX.isDirective)(P)){D.reportError(`Expected directive but got: ${(0,fD.inspect)(P)}.`,P===null||P===void 0?void 0:P.astNode);continue}if(b0(D,P),P.locations.length===0)D.reportError(`Directive @${P.name} must include 1 or more locations.`,P.astNode);for(let B of P.args){if(b0(D,B),!(0,ID.isInputType)(B.type))D.reportError(`The type of @${P.name}(${B.name}:) must be Input Type but got: ${(0,fD.inspect)(B.type)}.`,B.astNode);if((0,ID.isRequiredArgument)(B)&&B.deprecationReason!=null){var F;D.reportError(`Required argument @${P.name}(${B.name}:) cannot be deprecated.`,[u4(B.astNode),(F=B.astNode)===null||F===void 0?void 0:F.type])}}}}function b0(D,F){if(F.name.startsWith("__"))D.reportError(`Name "${F.name}" must not begin with "__", which is reserved by GraphQL introspection.`,F.astNode)}function TM(D){let F=hM(D),P=D.schema.getTypeMap();for(let B of Object.values(P)){if(!(0,ID.isNamedType)(B)){D.reportError(`Expected GraphQL named type but got: ${(0,fD.inspect)(B)}.`,B.astNode);continue}if(!(0,VM.isIntrospectionType)(B))b0(D,B);if((0,ID.isObjectType)(B))tZ(D,B),eZ(D,B);else if((0,ID.isInterfaceType)(B))tZ(D,B),eZ(D,B);else if((0,ID.isUnionType)(B))_M(D,B);else if((0,ID.isEnumType)(B))kM(D,B);else if((0,ID.isInputObjectType)(B))xM(D,B),F(B)}}function tZ(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 q of P){if(b0(D,q),!(0,ID.isOutputType)(q.type)){var B;D.reportError(`The type of ${F.name}.${q.name} must be Output Type but got: ${(0,fD.inspect)(q.type)}.`,(B=q.astNode)===null||B===void 0?void 0:B.type)}for(let J of q.args){let Y=J.name;if(b0(D,J),!(0,ID.isInputType)(J.type)){var Z;D.reportError(`The type of ${F.name}.${q.name}(${Y}:) must be Input Type but got: ${(0,fD.inspect)(J.type)}.`,(Z=J.astNode)===null||Z===void 0?void 0:Z.type)}if((0,ID.isRequiredArgument)(J)&&J.deprecationReason!=null){var X;D.reportError(`Required argument ${F.name}.${q.name}(${Y}:) cannot be deprecated.`,[u4(J.astNode),(X=J.astNode)===null||X===void 0?void 0:X.type])}}}}function eZ(D,F){let P=Object.create(null);for(let B of F.getInterfaces()){if(!(0,ID.isInterfaceType)(B)){D.reportError(`Type ${(0,fD.inspect)(F)} must only implement Interface types, it cannot implement ${(0,fD.inspect)(B)}.`,H6(F,B));continue}if(F===B){D.reportError(`Type ${F.name} cannot implement itself because it would create a circular reference.`,H6(F,B));continue}if(P[B.name]){D.reportError(`Type ${F.name} can only implement ${B.name} once.`,H6(F,B));continue}P[B.name]=!0,NM(D,F,B),uM(D,F,B)}}function uM(D,F,P){let B=F.getFields();for(let Y of Object.values(P.getFields())){let H=Y.name,U=B[H];if(!U){D.reportError(`Interface field ${P.name}.${H} expected but ${F.name} does not provide it.`,[Y.astNode,F.astNode,...F.extensionASTNodes]);continue}if(!(0,oZ.isTypeSubTypeOf)(D.schema,U.type,Y.type)){var Z,X;D.reportError(`Interface field ${P.name}.${H} expects type ${(0,fD.inspect)(Y.type)} but ${F.name}.${H} is type ${(0,fD.inspect)(U.type)}.`,[(Z=Y.astNode)===null||Z===void 0?void 0:Z.type,(X=U.astNode)===null||X===void 0?void 0:X.type])}for(let W of Y.args){let O=W.name,z=U.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.`,[W.astNode,U.astNode]);continue}if(!(0,oZ.isEqualType)(W.type,z.type)){var q,J;D.reportError(`Interface field argument ${P.name}.${H}(${O}:) expects type ${(0,fD.inspect)(W.type)} but ${F.name}.${H}(${O}:) is type ${(0,fD.inspect)(z.type)}.`,[(q=W.astNode)===null||q===void 0?void 0:q.type,(J=z.astNode)===null||J===void 0?void 0:J.type])}}for(let W of U.args){let O=W.name;if(!Y.args.find((I)=>I.name===O)&&(0,ID.isRequiredArgument)(W))D.reportError(`Object field ${F.name}.${H} includes required argument ${O} that is missing from the Interface field ${P.name}.${H}.`,[W.astNode,Y.astNode])}}}function NM(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}.`,[...H6(P,Z),...H6(F,P)])}function _M(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.`,DX(F,Z.name));continue}if(B[Z.name]=!0,!(0,ID.isObjectType)(Z))D.reportError(`Union type ${F.name} can only include Object types, it cannot include ${(0,fD.inspect)(Z)}.`,DX(F,String(Z)))}}function kM(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)b0(D,B)}function xM(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 X of P){if(b0(D,X),!(0,ID.isInputType)(X.type)){var B;D.reportError(`The type of ${F.name}.${X.name} must be Input Type but got: ${(0,fD.inspect)(X.type)}.`,(B=X.astNode)===null||B===void 0?void 0:B.type)}if((0,ID.isRequiredInputField)(X)&&X.deprecationReason!=null){var Z;D.reportError(`Required input field ${F.name}.${X.name} cannot be deprecated.`,[u4(X.astNode),(Z=X.astNode)===null||Z===void 0?void 0:Z.type])}if(F.isOneOf)fM(F,X,D)}}function fM(D,F,P){if((0,ID.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 hM(D){let F=Object.create(null),P=[],B=Object.create(null);return Z;function Z(X){if(F[X.name])return;F[X.name]=!0,B[X.name]=P.length;let q=Object.values(X.getFields());for(let J of q)if((0,ID.isNonNullType)(J.type)&&(0,ID.isInputObjectType)(J.type.ofType)){let Y=J.type.ofType,H=B[Y.name];if(P.push(J),H===void 0)Z(Y);else{let U=P.slice(H),W=U.map((O)=>O.name).join(".");D.reportError(`Cannot reference Input Object "${Y.name}" within itself through a series of non-null fields: "${W}".`,U.map((O)=>O.astNode))}P.pop()}B[X.name]=void 0}}function H6(D,F){let{astNode:P,extensionASTNodes:B}=D;return(P!=null?[P,...B]:B).flatMap((X)=>{var q;return(q=X.interfaces)!==null&&q!==void 0?q:[]}).filter((X)=>X.name.value===F.name)}function DX(D,F){let{astNode:P,extensionASTNodes:B}=D;return(P!=null?[P,...B]:B).flatMap((X)=>{var q;return(q=X.types)!==null&&q!==void 0?q:[]}).filter((X)=>X.name.value===F)}function u4(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===FX.GraphQLDeprecatedDirective.name)}});var w2=Q((qX)=>{Object.defineProperty(qX,"__esModule",{value:!0});qX.typeFromAST=_4;var N4=s(),XX=n();function _4(D,F){switch(F.kind){case N4.Kind.LIST_TYPE:{let P=_4(D,F.type);return P&&new XX.GraphQLList(P)}case N4.Kind.NON_NULL_TYPE:{let P=_4(D,F.type);return P&&new XX.GraphQLNonNull(P)}case N4.Kind.NAMED_TYPE:return D.getType(F.name.value)}}});var m1=Q((UX)=>{Object.defineProperty(UX,"__esModule",{value:!0});UX.TypeInfo=void 0;UX.visitWithTypeInfo=cM;var mM=A2(),$D=s(),JX=K0(),MD=n(),U8=tD(),YX=w2();class HX{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:lM,F){if((0,MD.isInputType)(F))this._inputTypeStack.push(F);if((0,MD.isCompositeType)(F))this._parentTypeStack.push(F);if((0,MD.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 $D.Kind.SELECTION_SET:{let B=(0,MD.getNamedType)(this.getType());this._parentTypeStack.push((0,MD.isCompositeType)(B)?B:void 0);break}case $D.Kind.FIELD:{let B=this.getParentType(),Z,X;if(B){if(Z=this._getFieldDef(F,B,D),Z)X=Z.type}this._fieldDefStack.push(Z),this._typeStack.push((0,MD.isOutputType)(X)?X:void 0);break}case $D.Kind.DIRECTIVE:this._directive=F.getDirective(D.name.value);break;case $D.Kind.OPERATION_DEFINITION:{let B=F.getRootType(D.operation);this._typeStack.push((0,MD.isObjectType)(B)?B:void 0);break}case $D.Kind.INLINE_FRAGMENT:case $D.Kind.FRAGMENT_DEFINITION:{let B=D.typeCondition,Z=B?(0,YX.typeFromAST)(F,B):(0,MD.getNamedType)(this.getType());this._typeStack.push((0,MD.isOutputType)(Z)?Z:void 0);break}case $D.Kind.VARIABLE_DEFINITION:{let B=(0,YX.typeFromAST)(F,D.type);this._inputTypeStack.push((0,MD.isInputType)(B)?B:void 0);break}case $D.Kind.ARGUMENT:{var P;let B,Z,X=(P=this.getDirective())!==null&&P!==void 0?P:this.getFieldDef();if(X){if(B=X.args.find((q)=>q.name===D.name.value),B)Z=B.type}this._argument=B,this._defaultValueStack.push(B?B.defaultValue:void 0),this._inputTypeStack.push((0,MD.isInputType)(Z)?Z:void 0);break}case $D.Kind.LIST:{let B=(0,MD.getNullableType)(this.getInputType()),Z=(0,MD.isListType)(B)?B.ofType:B;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,MD.isInputType)(Z)?Z:void 0);break}case $D.Kind.OBJECT_FIELD:{let B=(0,MD.getNamedType)(this.getInputType()),Z,X;if((0,MD.isInputObjectType)(B)){if(X=B.getFields()[D.name.value],X)Z=X.type}this._defaultValueStack.push(X?X.defaultValue:void 0),this._inputTypeStack.push((0,MD.isInputType)(Z)?Z:void 0);break}case $D.Kind.ENUM:{let B=(0,MD.getNamedType)(this.getInputType()),Z;if((0,MD.isEnumType)(B))Z=B.getValue(D.value);this._enumValue=Z;break}default:}}leave(D){switch(D.kind){case $D.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case $D.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case $D.Kind.DIRECTIVE:this._directive=null;break;case $D.Kind.OPERATION_DEFINITION:case $D.Kind.INLINE_FRAGMENT:case $D.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case $D.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case $D.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case $D.Kind.LIST:case $D.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case $D.Kind.ENUM:this._enumValue=null;break;default:}}}UX.TypeInfo=HX;function lM(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&&(0,MD.isCompositeType)(F))return U8.TypeNameMetaFieldDef;if((0,MD.isObjectType)(F)||(0,MD.isInterfaceType)(F))return F.getFields()[B]}function cM(D,F){return{enter(...P){let B=P[0];D.enter(B);let Z=(0,JX.getEnterLeaveForKind)(F,B.kind).enter;if(Z){let X=Z.apply(F,P);if(X!==void 0){if(D.leave(B),(0,mM.isNode)(X))D.enter(X)}return X}},leave(...P){let B=P[0],Z=(0,JX.getEnterLeaveForKind)(F,B.kind).leave,X;if(Z)X=Z.apply(F,P);return D.leave(B),X}}}});var S0=Q(($X)=>{Object.defineProperty($X,"__esModule",{value:!0});$X.isConstValueNode=k4;$X.isDefinitionNode=pM;$X.isExecutableDefinitionNode=OX;$X.isSelectionNode=rM;$X.isTypeDefinitionNode=GX;$X.isTypeExtensionNode=IX;$X.isTypeNode=aM;$X.isTypeSystemDefinitionNode=QX;$X.isTypeSystemExtensionNode=RX;$X.isValueNode=zX;var i=s();function pM(D){return OX(D)||QX(D)||RX(D)}function OX(D){return D.kind===i.Kind.OPERATION_DEFINITION||D.kind===i.Kind.FRAGMENT_DEFINITION}function rM(D){return D.kind===i.Kind.FIELD||D.kind===i.Kind.FRAGMENT_SPREAD||D.kind===i.Kind.INLINE_FRAGMENT}function zX(D){return D.kind===i.Kind.VARIABLE||D.kind===i.Kind.INT||D.kind===i.Kind.FLOAT||D.kind===i.Kind.STRING||D.kind===i.Kind.BOOLEAN||D.kind===i.Kind.NULL||D.kind===i.Kind.ENUM||D.kind===i.Kind.LIST||D.kind===i.Kind.OBJECT}function k4(D){return zX(D)&&(D.kind===i.Kind.LIST?D.values.some(k4):D.kind===i.Kind.OBJECT?D.fields.some((F)=>k4(F.value)):D.kind!==i.Kind.VARIABLE)}function aM(D){return D.kind===i.Kind.NAMED_TYPE||D.kind===i.Kind.LIST_TYPE||D.kind===i.Kind.NON_NULL_TYPE}function QX(D){return D.kind===i.Kind.SCHEMA_DEFINITION||GX(D)||D.kind===i.Kind.DIRECTIVE_DEFINITION}function GX(D){return D.kind===i.Kind.SCALAR_TYPE_DEFINITION||D.kind===i.Kind.OBJECT_TYPE_DEFINITION||D.kind===i.Kind.INTERFACE_TYPE_DEFINITION||D.kind===i.Kind.UNION_TYPE_DEFINITION||D.kind===i.Kind.ENUM_TYPE_DEFINITION||D.kind===i.Kind.INPUT_OBJECT_TYPE_DEFINITION}function RX(D){return D.kind===i.Kind.SCHEMA_EXTENSION||IX(D)}function IX(D){return D.kind===i.Kind.SCALAR_TYPE_EXTENSION||D.kind===i.Kind.OBJECT_TYPE_EXTENSION||D.kind===i.Kind.INTERFACE_TYPE_EXTENSION||D.kind===i.Kind.UNION_TYPE_EXTENSION||D.kind===i.Kind.ENUM_TYPE_EXTENSION||D.kind===i.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var x4=Q((EX)=>{Object.defineProperty(EX,"__esModule",{value:!0});EX.ExecutableDefinitionsRule=qE;var ZE=g(),MX=s(),XE=S0();function qE(D){return{Document(F){for(let P of F.definitions)if(!(0,XE.isExecutableDefinitionNode)(P)){let B=P.kind===MX.Kind.SCHEMA_DEFINITION||P.kind===MX.Kind.SCHEMA_EXTENSION?"schema":'"'+P.name.value+'"';D.reportError(new ZE.GraphQLError(`The ${B} definition is not executable.`,{nodes:P}))}return!1}}}});var f4=Q((AX)=>{Object.defineProperty(AX,"__esModule",{value:!0});AX.FieldsOnCorrectTypeRule=WE;var KX=n2(),YE=n8(),HE=o2(),UE=g(),W6=n();function WE(D){return{Field(F){let P=D.getParentType();if(P){if(!D.getFieldDef()){let Z=D.getSchema(),X=F.name.value,q=(0,KX.didYouMean)("to use an inline fragment on",OE(Z,P,X));if(q==="")q=(0,KX.didYouMean)(zE(P,X));D.reportError(new UE.GraphQLError(`Cannot query field "${X}" on type "${P.name}".`+q,{nodes:F}))}}}}}function OE(D,F,P){if(!(0,W6.isAbstractType)(F))return[];let B=new Set,Z=Object.create(null);for(let q of D.getPossibleTypes(F)){if(!q.getFields()[P])continue;B.add(q),Z[q.name]=1;for(let J of q.getInterfaces()){var X;if(!J.getFields()[P])continue;B.add(J),Z[J.name]=((X=Z[J.name])!==null&&X!==void 0?X:0)+1}}return[...B].sort((q,J)=>{let Y=Z[J.name]-Z[q.name];if(Y!==0)return Y;if((0,W6.isInterfaceType)(q)&&D.isSubType(q,J))return-1;if((0,W6.isInterfaceType)(J)&&D.isSubType(J,q))return 1;return(0,YE.naturalCompare)(q.name,J.name)}).map((q)=>q.name)}function zE(D,F){if((0,W6.isObjectType)(D)||(0,W6.isInterfaceType)(D)){let P=Object.keys(D.getFields());return(0,HE.suggestionList)(F,P)}return[]}});var h4=Q((jX)=>{Object.defineProperty(jX,"__esModule",{value:!0});jX.FragmentsOnCompositeTypesRule=GE;var CX=g(),LX=rD(),VX=n(),wX=w2();function GE(D){return{InlineFragment(F){let P=F.typeCondition;if(P){let B=(0,wX.typeFromAST)(D.getSchema(),P);if(B&&!(0,VX.isCompositeType)(B)){let Z=(0,LX.print)(P);D.reportError(new CX.GraphQLError(`Fragment cannot condition on non composite type "${Z}".`,{nodes:P}))}}},FragmentDefinition(F){let P=(0,wX.typeFromAST)(D.getSchema(),F.typeCondition);if(P&&!(0,VX.isCompositeType)(P)){let B=(0,LX.print)(F.typeCondition);D.reportError(new CX.GraphQLError(`Fragment "${F.name.value}" cannot condition on non composite type "${B}".`,{nodes:F.typeCondition}))}}}}});var g4=Q((NX)=>{Object.defineProperty(NX,"__esModule",{value:!0});NX.KnownArgumentNamesOnDirectivesRule=uX;NX.KnownArgumentNamesRule=ME;var bX=n2(),SX=o2(),TX=g(),IE=s(),$E=yD();function ME(D){return{...uX(D),Argument(F){let P=D.getArgument(),B=D.getFieldDef(),Z=D.getParentType();if(!P&&B&&Z){let X=F.name.value,q=B.args.map((Y)=>Y.name),J=(0,SX.suggestionList)(X,q);D.reportError(new TX.GraphQLError(`Unknown argument "${X}" on field "${Z.name}.${B.name}".`+(0,bX.didYouMean)(J),{nodes:F}))}}}}function uX(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():$E.specifiedDirectives;for(let q of B)F[q.name]=q.args.map((J)=>J.name);let Z=D.getDocument().definitions;for(let q of Z)if(q.kind===IE.Kind.DIRECTIVE_DEFINITION){var X;let J=(X=q.arguments)!==null&&X!==void 0?X:[];F[q.name.value]=J.map((Y)=>Y.name.value)}return{Directive(q){let J=q.name.value,Y=F[J];if(q.arguments&&Y)for(let H of q.arguments){let U=H.name.value;if(!Y.includes(U)){let W=(0,SX.suggestionList)(U,Y);D.reportError(new TX.GraphQLError(`Unknown argument "${U}" on directive "@${J}".`+(0,bX.didYouMean)(W),{nodes:H}))}}return!1}}}});var m4=Q((kX)=>{Object.defineProperty(kX,"__esModule",{value:!0});kX.KnownDirectivesRule=LE;var AE=ZD(),v4=kD(),_X=g(),y4=A2(),jD=B8(),UD=s(),CE=yD();function LE(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():CE.specifiedDirectives;for(let X of B)F[X.name]=X.locations;let Z=D.getDocument().definitions;for(let X of Z)if(X.kind===UD.Kind.DIRECTIVE_DEFINITION)F[X.name.value]=X.locations.map((q)=>q.value);return{Directive(X,q,J,Y,H){let U=X.name.value,W=F[U];if(!W){D.reportError(new _X.GraphQLError(`Unknown directive "@${U}".`,{nodes:X}));return}let O=VE(H);if(O&&!W.includes(O))D.reportError(new _X.GraphQLError(`Directive "@${U}" may not be used on ${O}.`,{nodes:X}))}}}function VE(D){let F=D[D.length-1];switch("kind"in F||(0,v4.invariant)(!1),F.kind){case UD.Kind.OPERATION_DEFINITION:return wE(F.operation);case UD.Kind.FIELD:return jD.DirectiveLocation.FIELD;case UD.Kind.FRAGMENT_SPREAD:return jD.DirectiveLocation.FRAGMENT_SPREAD;case UD.Kind.INLINE_FRAGMENT:return jD.DirectiveLocation.INLINE_FRAGMENT;case UD.Kind.FRAGMENT_DEFINITION:return jD.DirectiveLocation.FRAGMENT_DEFINITION;case UD.Kind.VARIABLE_DEFINITION:return jD.DirectiveLocation.VARIABLE_DEFINITION;case UD.Kind.SCHEMA_DEFINITION:case UD.Kind.SCHEMA_EXTENSION:return jD.DirectiveLocation.SCHEMA;case UD.Kind.SCALAR_TYPE_DEFINITION:case UD.Kind.SCALAR_TYPE_EXTENSION:return jD.DirectiveLocation.SCALAR;case UD.Kind.OBJECT_TYPE_DEFINITION:case UD.Kind.OBJECT_TYPE_EXTENSION:return jD.DirectiveLocation.OBJECT;case UD.Kind.FIELD_DEFINITION:return jD.DirectiveLocation.FIELD_DEFINITION;case UD.Kind.INTERFACE_TYPE_DEFINITION:case UD.Kind.INTERFACE_TYPE_EXTENSION:return jD.DirectiveLocation.INTERFACE;case UD.Kind.UNION_TYPE_DEFINITION:case UD.Kind.UNION_TYPE_EXTENSION:return jD.DirectiveLocation.UNION;case UD.Kind.ENUM_TYPE_DEFINITION:case UD.Kind.ENUM_TYPE_EXTENSION:return jD.DirectiveLocation.ENUM;case UD.Kind.ENUM_VALUE_DEFINITION:return jD.DirectiveLocation.ENUM_VALUE;case UD.Kind.INPUT_OBJECT_TYPE_DEFINITION:case UD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return jD.DirectiveLocation.INPUT_OBJECT;case UD.Kind.INPUT_VALUE_DEFINITION:{let P=D[D.length-3];return"kind"in P||(0,v4.invariant)(!1),P.kind===UD.Kind.INPUT_OBJECT_TYPE_DEFINITION?jD.DirectiveLocation.INPUT_FIELD_DEFINITION:jD.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,v4.invariant)(!1,"Unexpected kind: "+(0,AE.inspect)(F.kind))}}function wE(D){switch(D){case y4.OperationTypeNode.QUERY:return jD.DirectiveLocation.QUERY;case y4.OperationTypeNode.MUTATION:return jD.DirectiveLocation.MUTATION;case y4.OperationTypeNode.SUBSCRIPTION:return jD.DirectiveLocation.SUBSCRIPTION}}});var l4=Q((xX)=>{Object.defineProperty(xX,"__esModule",{value:!0});xX.KnownFragmentNamesRule=SE;var bE=g();function SE(D){return{FragmentSpread(F){let P=F.name.value;if(!D.getFragment(P))D.reportError(new bE.GraphQLError(`Unknown fragment "${P}".`,{nodes:F.name}))}}}});var d4=Q((hX)=>{Object.defineProperty(hX,"__esModule",{value:!0});hX.KnownTypeNamesRule=fE;var uE=n2(),NE=o2(),_E=g(),c4=S0(),kE=tD(),xE=V2();function fE(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);for(let X of D.getDocument().definitions)if((0,c4.isTypeDefinitionNode)(X))B[X.name.value]=!0;let Z=[...Object.keys(P),...Object.keys(B)];return{NamedType(X,q,J,Y,H){let U=X.name.value;if(!P[U]&&!B[U]){var W;let O=(W=H[2])!==null&&W!==void 0?W:J,z=O!=null&&hE(O);if(z&&fX.includes(U))return;let I=(0,NE.suggestionList)(U,z?fX.concat(Z):Z);D.reportError(new _E.GraphQLError(`Unknown type "${U}".`+(0,uE.didYouMean)(I),{nodes:X}))}}}}var fX=[...xE.specifiedScalarTypes,...kE.introspectionTypes].map((D)=>D.name);function hE(D){return"kind"in D&&((0,c4.isTypeSystemDefinitionNode)(D)||(0,c4.isTypeSystemExtensionNode)(D))}});var p4=Q((gX)=>{Object.defineProperty(gX,"__esModule",{value:!0});gX.LoneAnonymousOperationRule=mE;var vE=g(),yE=s();function mE(D){let F=0;return{Document(P){F=P.definitions.filter((B)=>B.kind===yE.Kind.OPERATION_DEFINITION).length},OperationDefinition(P){if(!P.name&&F>1)D.reportError(new vE.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:P}))}}}});var r4=Q((yX)=>{Object.defineProperty(yX,"__esModule",{value:!0});yX.LoneSchemaDefinitionRule=cE;var vX=g();function cE(D){var F,P,B;let Z=D.getSchema(),X=(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(),q=0;return{SchemaDefinition(J){if(X){D.reportError(new vX.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:J}));return}if(q>0)D.reportError(new vX.GraphQLError("Must provide only one schema definition.",{nodes:J}));++q}}}});var a4=Q((lX)=>{Object.defineProperty(lX,"__esModule",{value:!0});lX.MaxIntrospectionDepthRule=aE;var pE=g(),mX=s(),rE=3;function aE(D){function F(P,B=Object.create(null),Z=0){if(P.kind===mX.Kind.FRAGMENT_SPREAD){let X=P.name.value;if(B[X]===!0)return!1;let q=D.getFragment(X);if(!q)return!1;try{return B[X]=!0,F(q,B,Z)}finally{B[X]=void 0}}if(P.kind===mX.Kind.FIELD&&(P.name.value==="fields"||P.name.value==="interfaces"||P.name.value==="possibleTypes"||P.name.value==="inputFields")){if(Z++,Z>=rE)return!0}if("selectionSet"in P&&P.selectionSet){for(let X of P.selectionSet.selections)if(F(X,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 pE.GraphQLError("Maximum introspection depth exceeded",{nodes:[P]})),!1}}}}});var s4=Q((cX)=>{Object.defineProperty(cX,"__esModule",{value:!0});cX.NoFragmentCyclesRule=iE;var nE=g();function iE(D){let F=Object.create(null),P=[],B=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(X){return Z(X),!1}};function Z(X){if(F[X.name.value])return;let q=X.name.value;F[q]=!0;let J=D.getFragmentSpreads(X.selectionSet);if(J.length===0)return;B[q]=P.length;for(let Y of J){let H=Y.name.value,U=B[H];if(P.push(Y),U===void 0){let W=D.getFragment(H);if(W)Z(W)}else{let W=P.slice(U),O=W.slice(0,-1).map((z)=>'"'+z.name.value+'"').join(", ");D.reportError(new nE.GraphQLError(`Cannot spread fragment "${H}" within itself`+(O!==""?` via ${O}.`:"."),{nodes:W}))}P.pop()}B[q]=void 0}}});var n4=Q((dX)=>{Object.defineProperty(dX,"__esModule",{value:!0});dX.NoUndefinedVariablesRule=eE;var tE=g();function eE(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 X=Z.name.value;if(F[X]!==!0)D.reportError(new tE.GraphQLError(P.name?`Variable "$${X}" is not defined by operation "${P.name.value}".`:`Variable "$${X}" is not defined.`,{nodes:[Z,P]}))}}},VariableDefinition(P){F[P.variable.name.value]=!0}}}});var i4=Q((pX)=>{Object.defineProperty(pX,"__esModule",{value:!0});pX.NoUnusedFragmentsRule=PK;var FK=g();function PK(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 X of D.getRecursivelyReferencedFragments(Z))B[X.name.value]=!0;for(let Z of P){let X=Z.name.value;if(B[X]!==!0)D.reportError(new FK.GraphQLError(`Fragment "${X}" is never used.`,{nodes:Z}))}}}}}});var o4=Q((rX)=>{Object.defineProperty(rX,"__esModule",{value:!0});rX.NoUnusedVariablesRule=XK;var ZK=g();function XK(D){let F=[];return{OperationDefinition:{enter(){F=[]},leave(P){let B=Object.create(null),Z=D.getRecursiveVariableUsages(P);for(let{node:X}of Z)B[X.name.value]=!0;for(let X of F){let q=X.variable.name.value;if(B[q]!==!0)D.reportError(new ZK.GraphQLError(P.name?`Variable "$${q}" is never used in operation "${P.name.value}".`:`Variable "$${q}" is never used.`,{nodes:X}))}}},VariableDefinition(P){F.push(P)}}}});var e4=Q((aX)=>{Object.defineProperty(aX,"__esModule",{value:!0});aX.sortValueNode=t4;var JK=n8(),h2=s();function t4(D){switch(D.kind){case h2.Kind.OBJECT:return{...D,fields:YK(D.fields)};case h2.Kind.LIST:return{...D,values:D.values.map(t4)};case h2.Kind.INT:case h2.Kind.FLOAT:case h2.Kind.STRING:case h2.Kind.BOOLEAN:case h2.Kind.NULL:case h2.Kind.ENUM:case h2.Kind.VARIABLE:return D}}function YK(D){return D.map((F)=>({...F,value:t4(F.value)})).sort((F,P)=>(0,JK.naturalCompare)(F.name.value,P.name.value))}});var X9=Q((Fq)=>{Object.defineProperty(Fq,"__esModule",{value:!0});Fq.OverlappingFieldsCanBeMergedRule=zK;var sX=ZD(),UK=g(),D9=s(),WK=rD(),mD=n(),OK=e4(),iX=w2();function oX(D){if(Array.isArray(D))return D.map(([F,P])=>`subfields "${F}" conflict because `+oX(P)).join(" and ");return D}function zK(D){let F=new Z9,P=new Dq,B=new Map;return{SelectionSet(Z){let X=QK(D,B,F,P,D.getParentType(),Z);for(let[[q,J],Y,H]of X){let U=oX(J);D.reportError(new UK.GraphQLError(`Fields "${q}" conflict because ${U}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:Y.concat(H)}))}}}}function QK(D,F,P,B,Z,X){let q=[],[J,Y]=d1(D,F,Z,X);if(RK(D,q,F,P,B,J),Y.length!==0)for(let H=0;H<Y.length;H++){l1(D,q,F,P,B,!1,J,Y[H]);for(let U=H+1;U<Y.length;U++)c1(D,q,F,P,B,!1,Y[H],Y[U])}return q}function l1(D,F,P,B,Z,X,q,J){if(B.has(q,J,X))return;B.add(q,J,X);let Y=D.getFragment(J);if(!Y)return;let[H,U]=P9(D,P,Y);if(q===H)return;B9(D,F,P,B,Z,X,q,H);for(let W of U)l1(D,F,P,B,Z,X,q,W)}function c1(D,F,P,B,Z,X,q,J){if(q===J)return;if(Z.has(q,J,X))return;Z.add(q,J,X);let Y=D.getFragment(q),H=D.getFragment(J);if(!Y||!H)return;let[U,W]=P9(D,P,Y),[O,z]=P9(D,P,H);B9(D,F,P,B,Z,X,U,O);for(let I of z)c1(D,F,P,B,Z,X,q,I);for(let I of W)c1(D,F,P,B,Z,X,I,J)}function GK(D,F,P,B,Z,X,q,J,Y){let H=[],[U,W]=d1(D,F,X,q),[O,z]=d1(D,F,J,Y);B9(D,H,F,P,B,Z,U,O);for(let I of z)l1(D,H,F,P,B,Z,U,I);for(let I of W)l1(D,H,F,P,B,Z,O,I);for(let I of W)for(let R of z)c1(D,H,F,P,B,Z,I,R);return H}function RK(D,F,P,B,Z,X){for(let[q,J]of Object.entries(X))if(J.length>1)for(let Y=0;Y<J.length;Y++)for(let H=Y+1;H<J.length;H++){let U=tX(D,P,B,Z,!1,q,J[Y],J[H]);if(U)F.push(U)}}function B9(D,F,P,B,Z,X,q,J){for(let[Y,H]of Object.entries(q)){let U=J[Y];if(U)for(let W of H)for(let O of U){let z=tX(D,P,B,Z,X,Y,W,O);if(z)F.push(z)}}}function tX(D,F,P,B,Z,X,q,J){let[Y,H,U]=q,[W,O,z]=J,I=Z||Y!==W&&(0,mD.isObjectType)(Y)&&(0,mD.isObjectType)(W);if(!I){let A=H.name.value,S=O.name.value;if(A!==S)return[[X,`"${A}" and "${S}" are different fields`],[H],[O]];if(!IK(H,O))return[[X,"they have differing arguments"],[H],[O]]}let R=U===null||U===void 0?void 0:U.type,$=z===null||z===void 0?void 0:z.type;if(R&&$&&F9(R,$))return[[X,`they return conflicting types "${(0,sX.inspect)(R)}" and "${(0,sX.inspect)($)}"`],[H],[O]];let K=H.selectionSet,j=O.selectionSet;if(K&&j){let A=GK(D,F,P,B,I,(0,mD.getNamedType)(R),K,(0,mD.getNamedType)($),j);return $K(A,X,H,O)}}function IK(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:X,value:q})=>[X.value,q]));return P.every((X)=>{let q=X.value,J=Z.get(X.name.value);if(J===void 0)return!1;return nX(q)===nX(J)})}function nX(D){return(0,WK.print)((0,OK.sortValueNode)(D))}function F9(D,F){if((0,mD.isListType)(D))return(0,mD.isListType)(F)?F9(D.ofType,F.ofType):!0;if((0,mD.isListType)(F))return!0;if((0,mD.isNonNullType)(D))return(0,mD.isNonNullType)(F)?F9(D.ofType,F.ofType):!0;if((0,mD.isNonNullType)(F))return!0;if((0,mD.isLeafType)(D)||(0,mD.isLeafType)(F))return D!==F;return!1}function d1(D,F,P,B){let Z=F.get(B);if(Z)return Z;let X=Object.create(null),q=Object.create(null);eX(D,P,B,X,q);let J=[X,Object.keys(q)];return F.set(B,J),J}function P9(D,F,P){let B=F.get(P.selectionSet);if(B)return B;let Z=(0,iX.typeFromAST)(D.getSchema(),P.typeCondition);return d1(D,F,Z,P.selectionSet)}function eX(D,F,P,B,Z){for(let X of P.selections)switch(X.kind){case D9.Kind.FIELD:{let q=X.name.value,J;if((0,mD.isObjectType)(F)||(0,mD.isInterfaceType)(F))J=F.getFields()[q];let Y=X.alias?X.alias.value:q;if(!B[Y])B[Y]=[];B[Y].push([F,X,J]);break}case D9.Kind.FRAGMENT_SPREAD:Z[X.name.value]=!0;break;case D9.Kind.INLINE_FRAGMENT:{let q=X.typeCondition,J=q?(0,iX.typeFromAST)(D.getSchema(),q):F;eX(D,J,X.selectionSet,B,Z);break}}}function $K(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 Z9{constructor(){this._data=new Map}has(D,F,P){var B;let Z=(B=this._data.get(D))===null||B===void 0?void 0:B.get(F);if(Z===void 0)return!1;return P?!0:P===Z}add(D,F,P){let B=this._data.get(D);if(B===void 0)this._data.set(D,new Map([[F,P]]));else B.set(F,P)}}class Dq{constructor(){this._orderedPairSet=new Z9}has(D,F,P){return D<F?this._orderedPairSet.has(D,F,P):this._orderedPairSet.has(F,D,P)}add(D,F,P){if(D<F)this._orderedPairSet.add(D,F,P);else this._orderedPairSet.add(F,D,P)}}});var J9=Q((Zq)=>{Object.defineProperty(Zq,"__esModule",{value:!0});Zq.PossibleFragmentSpreadsRule=KK;var p1=ZD(),Pq=g(),q9=n(),Bq=D6(),EK=w2();function KK(D){return{InlineFragment(F){let P=D.getType(),B=D.getParentType();if((0,q9.isCompositeType)(P)&&(0,q9.isCompositeType)(B)&&!(0,Bq.doTypesOverlap)(D.getSchema(),P,B)){let Z=(0,p1.inspect)(B),X=(0,p1.inspect)(P);D.reportError(new Pq.GraphQLError(`Fragment cannot be spread here as objects of type "${Z}" can never be of type "${X}".`,{nodes:F}))}},FragmentSpread(F){let P=F.name.value,B=AK(D,P),Z=D.getParentType();if(B&&Z&&!(0,Bq.doTypesOverlap)(D.getSchema(),B,Z)){let X=(0,p1.inspect)(Z),q=(0,p1.inspect)(B);D.reportError(new Pq.GraphQLError(`Fragment "${P}" cannot be spread here as objects of type "${X}" can never be of type "${q}".`,{nodes:F}))}}}}function AK(D,F){let P=D.getFragment(F);if(P){let B=(0,EK.typeFromAST)(D.getSchema(),P.typeCondition);if((0,q9.isCompositeType)(B))return B}}});var Y9=Q((Yq)=>{Object.defineProperty(Yq,"__esModule",{value:!0});Yq.PossibleTypeExtensionsRule=jK;var LK=n2(),qq=ZD(),Jq=kD(),VK=o2(),Xq=g(),zD=s(),wK=S0(),W8=n();function jK(D){let F=D.getSchema(),P=Object.create(null);for(let Z of D.getDocument().definitions)if((0,wK.isTypeDefinitionNode)(Z))P[Z.name.value]=Z;return{ScalarTypeExtension:B,ObjectTypeExtension:B,InterfaceTypeExtension:B,UnionTypeExtension:B,EnumTypeExtension:B,InputObjectTypeExtension:B};function B(Z){let X=Z.name.value,q=P[X],J=F===null||F===void 0?void 0:F.getType(X),Y;if(q)Y=bK[q.kind];else if(J)Y=SK(J);if(Y){if(Y!==Z.kind){let H=TK(Z.kind);D.reportError(new Xq.GraphQLError(`Cannot extend non-${H} type "${X}".`,{nodes:q?[q,Z]:Z}))}}else{let H=Object.keys({...P,...F===null||F===void 0?void 0:F.getTypeMap()}),U=(0,VK.suggestionList)(X,H);D.reportError(new Xq.GraphQLError(`Cannot extend type "${X}" because it is not defined.`+(0,LK.didYouMean)(U),{nodes:Z.name}))}}}var bK={[zD.Kind.SCALAR_TYPE_DEFINITION]:zD.Kind.SCALAR_TYPE_EXTENSION,[zD.Kind.OBJECT_TYPE_DEFINITION]:zD.Kind.OBJECT_TYPE_EXTENSION,[zD.Kind.INTERFACE_TYPE_DEFINITION]:zD.Kind.INTERFACE_TYPE_EXTENSION,[zD.Kind.UNION_TYPE_DEFINITION]:zD.Kind.UNION_TYPE_EXTENSION,[zD.Kind.ENUM_TYPE_DEFINITION]:zD.Kind.ENUM_TYPE_EXTENSION,[zD.Kind.INPUT_OBJECT_TYPE_DEFINITION]:zD.Kind.INPUT_OBJECT_TYPE_EXTENSION};function SK(D){if((0,W8.isScalarType)(D))return zD.Kind.SCALAR_TYPE_EXTENSION;if((0,W8.isObjectType)(D))return zD.Kind.OBJECT_TYPE_EXTENSION;if((0,W8.isInterfaceType)(D))return zD.Kind.INTERFACE_TYPE_EXTENSION;if((0,W8.isUnionType)(D))return zD.Kind.UNION_TYPE_EXTENSION;if((0,W8.isEnumType)(D))return zD.Kind.ENUM_TYPE_EXTENSION;if((0,W8.isInputObjectType)(D))return zD.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,Jq.invariant)(!1,"Unexpected type: "+(0,qq.inspect)(D))}function TK(D){switch(D){case zD.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case zD.Kind.OBJECT_TYPE_EXTENSION:return"object";case zD.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case zD.Kind.UNION_TYPE_EXTENSION:return"union";case zD.Kind.ENUM_TYPE_EXTENSION:return"enum";case zD.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,Jq.invariant)(!1,"Unexpected kind: "+(0,qq.inspect)(D))}}});var U9=Q((Qq)=>{Object.defineProperty(Qq,"__esModule",{value:!0});Qq.ProvidedRequiredArgumentsOnDirectivesRule=zq;Qq.ProvidedRequiredArgumentsRule=kK;var Uq=ZD(),Hq=i2(),Wq=g(),Oq=s(),NK=rD(),H9=n(),_K=yD();function kK(D){return{...zq(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((X)=>X.name.value));for(let X of B.args)if(!Z.has(X.name)&&(0,H9.isRequiredArgument)(X)){let q=(0,Uq.inspect)(X.type);D.reportError(new Wq.GraphQLError(`Field "${B.name}" argument "${X.name}" of type "${q}" is required, but it was not provided.`,{nodes:F}))}}}}}function zq(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:_K.specifiedDirectives;for(let J of Z)P[J.name]=(0,Hq.keyMap)(J.args.filter(H9.isRequiredArgument),(Y)=>Y.name);let X=D.getDocument().definitions;for(let J of X)if(J.kind===Oq.Kind.DIRECTIVE_DEFINITION){var q;let Y=(q=J.arguments)!==null&&q!==void 0?q:[];P[J.name.value]=(0,Hq.keyMap)(Y.filter(xK),(H)=>H.name.value)}return{Directive:{leave(J){let Y=J.name.value,H=P[Y];if(H){var U;let W=(U=J.arguments)!==null&&U!==void 0?U:[],O=new Set(W.map((z)=>z.name.value));for(let[z,I]of Object.entries(H))if(!O.has(z)){let R=(0,H9.isType)(I.type)?(0,Uq.inspect)(I.type):(0,NK.print)(I.type);D.reportError(new Wq.GraphQLError(`Directive "@${Y}" argument "${z}" of type "${R}" is required, but it was not provided.`,{nodes:J}))}}}}}}function xK(D){return D.type.kind===Oq.Kind.NON_NULL_TYPE&&D.defaultValue==null}});var z9=Q((Rq)=>{Object.defineProperty(Rq,"__esModule",{value:!0});Rq.ScalarLeafsRule=gK;var W9=ZD(),O9=g(),Gq=n();function gK(D){return{Field(F){let P=D.getType(),B=F.selectionSet;if(P){if((0,Gq.isLeafType)((0,Gq.getNamedType)(P))){if(B){let Z=F.name.value,X=(0,W9.inspect)(P);D.reportError(new O9.GraphQLError(`Field "${Z}" must not have a selection since type "${X}" has no subfields.`,{nodes:B}))}}else if(!B){let Z=F.name.value,X=(0,W9.inspect)(P);D.reportError(new O9.GraphQLError(`Field "${Z}" of type "${X}" must have a selection of subfields. Did you mean "${Z} { ... }"?`,{nodes:F}))}else if(B.selections.length===0){let Z=F.name.value,X=(0,W9.inspect)(P);D.reportError(new O9.GraphQLError(`Field "${Z}" of type "${X}" must have at least one field selected.`,{nodes:F}))}}}}}});var Q9=Q((Iq)=>{Object.defineProperty(Iq,"__esModule",{value:!0});Iq.printPathArray=yK;function yK(D){return D.map((F)=>typeof F==="number"?"["+F.toString()+"]":"."+F).join("")}});var O6=Q(($q)=>{Object.defineProperty($q,"__esModule",{value:!0});$q.addPath=lK;$q.pathToArray=cK;function lK(D,F,P){return{prev:D,key:F,typename:P}}function cK(D){let F=[],P=D;while(P)F.push(P.key),P=P.prev;return F.reverse()}});var G9=Q((Mq)=>{Object.defineProperty(Mq,"__esModule",{value:!0});Mq.coerceInputValue=tK;var rK=n2(),r1=ZD(),aK=kD(),sK=v1(),nK=K2(),G2=O6(),iK=Q9(),oK=o2(),g2=g(),z6=n();function tK(D,F,P=eK){return Q6(D,F,P,void 0)}function eK(D,F,P){let B="Invalid value "+(0,r1.inspect)(F);if(D.length>0)B+=` at "value${(0,iK.printPathArray)(D)}"`;throw P.message=B+": "+P.message,P}function Q6(D,F,P,B){if((0,z6.isNonNullType)(F)){if(D!=null)return Q6(D,F.ofType,P,B);P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Expected non-nullable type "${(0,r1.inspect)(F)}" not to be null.`));return}if(D==null)return null;if((0,z6.isListType)(F)){let Z=F.ofType;if((0,sK.isIterableObject)(D))return Array.from(D,(X,q)=>{let J=(0,G2.addPath)(B,q,void 0);return Q6(X,Z,P,J)});return[Q6(D,Z,P,B)]}if((0,z6.isInputObjectType)(F)){if(!(0,nK.isObjectLike)(D)||Array.isArray(D)){P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Expected type "${F.name}" to be an object.`));return}let Z={},X=F.getFields();for(let q of Object.values(X)){let J=D[q.name];if(J===void 0){if(q.defaultValue!==void 0)Z[q.name]=q.defaultValue;else if((0,z6.isNonNullType)(q.type)){let Y=(0,r1.inspect)(q.type);P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Field "${q.name}" of required type "${Y}" was not provided.`))}continue}Z[q.name]=Q6(J,q.type,P,(0,G2.addPath)(B,q.name,F.name))}for(let q of Object.keys(D))if(!X[q]){let J=(0,oK.suggestionList)(q,Object.keys(F.getFields()));P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Field "${q}" is not defined by type "${F.name}".`+(0,rK.didYouMean)(J)))}if(F.isOneOf){let q=Object.keys(Z);if(q.length!==1)P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Exactly one key must be specified for OneOf type "${F.name}".`));let J=q[0],Y=Z[J];if(Y===null)P((0,G2.pathToArray)(B).concat(J),Y,new g2.GraphQLError(`Field "${J}" must be non-null.`))}return Z}if((0,z6.isLeafType)(F)){let Z;try{Z=F.parseValue(D)}catch(X){if(X instanceof g2.GraphQLError)P((0,G2.pathToArray)(B),D,X);else P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Expected type "${F.name}". `+X.message,{originalError:X}));return}if(Z===void 0)P((0,G2.pathToArray)(B),D,new g2.GraphQLError(`Expected type "${F.name}".`));return Z}(0,aK.invariant)(!1,"Unexpected input type: "+(0,r1.inspect)(F))}});var R6=Q((Kq)=>{Object.defineProperty(Kq,"__esModule",{value:!0});Kq.valueFromAST=G6;var FA=ZD(),PA=kD(),BA=i2(),O8=s(),T0=n();function G6(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&&(0,T0.isNonNullType)(F))return;return Z}if((0,T0.isNonNullType)(F)){if(D.kind===O8.Kind.NULL)return;return G6(D,F.ofType,P)}if(D.kind===O8.Kind.NULL)return null;if((0,T0.isListType)(F)){let B=F.ofType;if(D.kind===O8.Kind.LIST){let X=[];for(let q of D.values)if(Eq(q,P)){if((0,T0.isNonNullType)(B))return;X.push(null)}else{let J=G6(q,B,P);if(J===void 0)return;X.push(J)}return X}let Z=G6(D,B,P);if(Z===void 0)return;return[Z]}if((0,T0.isInputObjectType)(F)){if(D.kind!==O8.Kind.OBJECT)return;let B=Object.create(null),Z=(0,BA.keyMap)(D.fields,(X)=>X.name.value);for(let X of Object.values(F.getFields())){let q=Z[X.name];if(!q||Eq(q.value,P)){if(X.defaultValue!==void 0)B[X.name]=X.defaultValue;else if((0,T0.isNonNullType)(X.type))return;continue}let J=G6(q.value,X.type,P);if(J===void 0)return;B[X.name]=J}if(F.isOneOf){let X=Object.keys(B);if(X.length!==1)return;if(B[X[0]]===null)return}return B}if((0,T0.isLeafType)(F)){let B;try{B=F.parseLiteral(D,P)}catch(Z){return}if(B===void 0)return;return B}(0,PA.invariant)(!1,"Unexpected input type: "+(0,FA.inspect)(F))}function Eq(D,F){return D.kind===O8.Kind.VARIABLE&&(F==null||F[D.name.value]===void 0)}});var G8=Q((jq)=>{Object.defineProperty(jq,"__esModule",{value:!0});jq.getArgumentValues=Vq;jq.getDirectiveValues=WA;jq.getVariableValues=HA;var z8=ZD(),XA=i2(),qA=Q9(),v2=g(),Aq=s(),Cq=rD(),Q8=n(),JA=G9(),YA=w2(),Lq=R6();function HA(D,F,P,B){let Z=[],X=B===null||B===void 0?void 0:B.maxErrors;try{let q=UA(D,F,P,(J)=>{if(X!=null&&Z.length>=X)throw new v2.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");Z.push(J)});if(Z.length===0)return{coerced:q}}catch(q){Z.push(q)}return{errors:Z}}function UA(D,F,P,B){let Z={};for(let X of F){let q=X.variable.name.value,J=(0,YA.typeFromAST)(D,X.type);if(!(0,Q8.isInputType)(J)){let H=(0,Cq.print)(X.type);B(new v2.GraphQLError(`Variable "$${q}" expected value of type "${H}" which cannot be used as an input type.`,{nodes:X.type}));continue}if(!wq(P,q)){if(X.defaultValue)Z[q]=(0,Lq.valueFromAST)(X.defaultValue,J);else if((0,Q8.isNonNullType)(J)){let H=(0,z8.inspect)(J);B(new v2.GraphQLError(`Variable "$${q}" of required type "${H}" was not provided.`,{nodes:X}))}continue}let Y=P[q];if(Y===null&&(0,Q8.isNonNullType)(J)){let H=(0,z8.inspect)(J);B(new v2.GraphQLError(`Variable "$${q}" of non-null type "${H}" must not be null.`,{nodes:X}));continue}Z[q]=(0,JA.coerceInputValue)(Y,J,(H,U,W)=>{let O=`Variable "$${q}" got invalid value `+(0,z8.inspect)(U);if(H.length>0)O+=` at "${q}${(0,qA.printPathArray)(H)}"`;B(new v2.GraphQLError(O+"; "+W.message,{nodes:X,originalError:W}))})}return Z}function Vq(D,F,P){var B;let Z={},X=(B=F.arguments)!==null&&B!==void 0?B:[],q=(0,XA.keyMap)(X,(J)=>J.name.value);for(let J of D.args){let{name:Y,type:H}=J,U=q[Y];if(!U){if(J.defaultValue!==void 0)Z[Y]=J.defaultValue;else if((0,Q8.isNonNullType)(H))throw new v2.GraphQLError(`Argument "${Y}" of required type "${(0,z8.inspect)(H)}" was not provided.`,{nodes:F});continue}let W=U.value,O=W.kind===Aq.Kind.NULL;if(W.kind===Aq.Kind.VARIABLE){let I=W.name.value;if(P==null||!wq(P,I)){if(J.defaultValue!==void 0)Z[Y]=J.defaultValue;else if((0,Q8.isNonNullType)(H))throw new v2.GraphQLError(`Argument "${Y}" of required type "${(0,z8.inspect)(H)}" was provided the variable "$${I}" which was not provided a runtime value.`,{nodes:W});continue}O=P[I]==null}if(O&&(0,Q8.isNonNullType)(H))throw new v2.GraphQLError(`Argument "${Y}" of non-null type "${(0,z8.inspect)(H)}" must not be null.`,{nodes:W});let z=(0,Lq.valueFromAST)(W,H,P);if(z===void 0)throw new v2.GraphQLError(`Argument "${Y}" has invalid value ${(0,Cq.print)(W)}.`,{nodes:W});Z[Y]=z}return Z}function WA(D,F,P){var B;let Z=(B=F.directives)===null||B===void 0?void 0:B.find((X)=>X.name.value===D.name);if(Z)return Vq(D,Z,P)}function wq(D,F){return Object.prototype.hasOwnProperty.call(D,F)}});var s1=Q((uq)=>{Object.defineProperty(uq,"__esModule",{value:!0});uq.collectFields=IA;uq.collectSubfields=$A;var R9=s(),GA=n(),bq=yD(),RA=w2(),Sq=G8();function IA(D,F,P,B,Z){let X=new Map;return a1(D,F,P,B,Z,X,new Set),X}function $A(D,F,P,B,Z){let X=new Map,q=new Set;for(let J of Z)if(J.selectionSet)a1(D,F,P,B,J.selectionSet,X,q);return X}function a1(D,F,P,B,Z,X,q){for(let J of Z.selections)switch(J.kind){case R9.Kind.FIELD:{if(!I9(P,J))continue;let Y=MA(J),H=X.get(Y);if(H!==void 0)H.push(J);else X.set(Y,[J]);break}case R9.Kind.INLINE_FRAGMENT:{if(!I9(P,J)||!Tq(D,J,B))continue;a1(D,F,P,B,J.selectionSet,X,q);break}case R9.Kind.FRAGMENT_SPREAD:{let Y=J.name.value;if(q.has(Y)||!I9(P,J))continue;q.add(Y);let H=F[Y];if(!H||!Tq(D,H,B))continue;a1(D,F,P,B,H.selectionSet,X,q);break}}}function I9(D,F){let P=(0,Sq.getDirectiveValues)(bq.GraphQLSkipDirective,F,D);if((P===null||P===void 0?void 0:P.if)===!0)return!1;let B=(0,Sq.getDirectiveValues)(bq.GraphQLIncludeDirective,F,D);if((B===null||B===void 0?void 0:B.if)===!1)return!1;return!0}function Tq(D,F,P){let B=F.typeCondition;if(!B)return!0;let Z=(0,RA.typeFromAST)(D,B);if(Z===P)return!0;if((0,GA.isAbstractType)(Z))return D.isSubType(Z,P);return!1}function MA(D){return D.alias?D.alias.value:D.name.value}});var $9=Q((_q)=>{Object.defineProperty(_q,"__esModule",{value:!0});_q.SingleFieldSubscriptionsRule=LA;var Nq=g(),AA=s(),CA=s1();function LA(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,X=Object.create(null),q=D.getDocument(),J=Object.create(null);for(let H of q.definitions)if(H.kind===AA.Kind.FRAGMENT_DEFINITION)J[H.name.value]=H;let Y=(0,CA.collectFields)(P,J,X,B,F.selectionSet);if(Y.size>1){let W=[...Y.values()].slice(1).flat();D.reportError(new Nq.GraphQLError(Z!=null?`Subscription "${Z}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:W}))}for(let H of Y.values())if(H[0].name.value.startsWith("__"))D.reportError(new Nq.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 n1=Q((kq)=>{Object.defineProperty(kq,"__esModule",{value:!0});kq.groupBy=wA;function wA(D,F){let P=new Map;for(let B of D){let Z=F(B),X=P.get(Z);if(X===void 0)P.set(Z,[B]);else X.push(B)}return P}});var M9=Q((xq)=>{Object.defineProperty(xq,"__esModule",{value:!0});xq.UniqueArgumentDefinitionNamesRule=TA;var bA=n1(),SA=g();function TA(D){return{DirectiveDefinition(B){var Z;let X=(Z=B.arguments)!==null&&Z!==void 0?Z:[];return P(`@${B.name.value}`,X)},InterfaceTypeDefinition:F,InterfaceTypeExtension:F,ObjectTypeDefinition:F,ObjectTypeExtension:F};function F(B){var Z;let X=B.name.value,q=(Z=B.fields)!==null&&Z!==void 0?Z:[];for(let Y of q){var J;let H=Y.name.value,U=(J=Y.arguments)!==null&&J!==void 0?J:[];P(`${X}.${H}`,U)}return!1}function P(B,Z){let X=(0,bA.groupBy)(Z,(q)=>q.name.value);for(let[q,J]of X)if(J.length>1)D.reportError(new SA.GraphQLError(`Argument "${B}(${q}:)" can only be defined once.`,{nodes:J.map((Y)=>Y.name)}));return!1}}});var E9=Q((fq)=>{Object.defineProperty(fq,"__esModule",{value:!0});fq.UniqueArgumentNamesRule=kA;var NA=n1(),_A=g();function kA(D){return{Field:F,Directive:F};function F(P){var B;let Z=(B=P.arguments)!==null&&B!==void 0?B:[],X=(0,NA.groupBy)(Z,(q)=>q.name.value);for(let[q,J]of X)if(J.length>1)D.reportError(new _A.GraphQLError(`There can be only one argument named "${q}".`,{nodes:J.map((Y)=>Y.name)}))}}});var K9=Q((gq)=>{Object.defineProperty(gq,"__esModule",{value:!0});gq.UniqueDirectiveNamesRule=fA;var hq=g();function fA(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 hq.GraphQLError(`Directive "@${Z}" already exists in the schema. It cannot be redefined.`,{nodes:B.name}));return}if(F[Z])D.reportError(new hq.GraphQLError(`There can be only one directive named "@${Z}".`,{nodes:[F[Z],B.name]}));else F[Z]=B.name;return!1}}}});var C9=Q((yq)=>{Object.defineProperty(yq,"__esModule",{value:!0});yq.UniqueDirectivesPerLocationRule=yA;var gA=g(),A9=s(),vq=S0(),vA=yD();function yA(D){let F=Object.create(null),P=D.getSchema(),B=P?P.getDirectives():vA.specifiedDirectives;for(let J of B)F[J.name]=!J.isRepeatable;let Z=D.getDocument().definitions;for(let J of Z)if(J.kind===A9.Kind.DIRECTIVE_DEFINITION)F[J.name.value]=!J.repeatable;let X=Object.create(null),q=Object.create(null);return{enter(J){if(!("directives"in J)||!J.directives)return;let Y;if(J.kind===A9.Kind.SCHEMA_DEFINITION||J.kind===A9.Kind.SCHEMA_EXTENSION)Y=X;else if((0,vq.isTypeDefinitionNode)(J)||(0,vq.isTypeExtensionNode)(J)){let H=J.name.value;if(Y=q[H],Y===void 0)q[H]=Y=Object.create(null)}else Y=Object.create(null);for(let H of J.directives){let U=H.name.value;if(F[U])if(Y[U])D.reportError(new gA.GraphQLError(`The directive "@${U}" can only be used once at this location.`,{nodes:[Y[U],H]}));else Y[U]=H}}}}});var L9=Q((lq)=>{Object.defineProperty(lq,"__esModule",{value:!0});lq.UniqueEnumValueNamesRule=cA;var mq=g(),lA=n();function cA(D){let F=D.getSchema(),P=F?F.getTypeMap():Object.create(null),B=Object.create(null);return{EnumTypeDefinition:Z,EnumTypeExtension:Z};function Z(X){var q;let J=X.name.value;if(!B[J])B[J]=Object.create(null);let Y=(q=X.values)!==null&&q!==void 0?q:[],H=B[J];for(let U of Y){let W=U.name.value,O=P[J];if((0,lA.isEnumType)(O)&&O.getValue(W))D.reportError(new mq.GraphQLError(`Enum value "${J}.${W}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:U.name}));else if(H[W])D.reportError(new mq.GraphQLError(`Enum value "${J}.${W}" can only be defined once.`,{nodes:[H[W],U.name]}));else H[W]=U.name}return!1}}});var w9=Q((dq)=>{Object.defineProperty(dq,"__esModule",{value:!0});dq.UniqueFieldDefinitionNamesRule=pA;var cq=g(),V9=n();function pA(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(X){var q;let J=X.name.value;if(!B[J])B[J]=Object.create(null);let Y=(q=X.fields)!==null&&q!==void 0?q:[],H=B[J];for(let U of Y){let W=U.name.value;if(rA(P[J],W))D.reportError(new cq.GraphQLError(`Field "${J}.${W}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:U.name}));else if(H[W])D.reportError(new cq.GraphQLError(`Field "${J}.${W}" can only be defined once.`,{nodes:[H[W],U.name]}));else H[W]=U.name}return!1}}function rA(D,F){if((0,V9.isObjectType)(D)||(0,V9.isInterfaceType)(D)||(0,V9.isInputObjectType)(D))return D.getFields()[F]!=null;return!1}});var j9=Q((pq)=>{Object.defineProperty(pq,"__esModule",{value:!0});pq.UniqueFragmentNamesRule=nA;var sA=g();function nA(D){let F=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(P){let B=P.name.value;if(F[B])D.reportError(new sA.GraphQLError(`There can be only one fragment named "${B}".`,{nodes:[F[B],P.name]}));else F[B]=P.name;return!1}}}});var b9=Q((rq)=>{Object.defineProperty(rq,"__esModule",{value:!0});rq.UniqueInputFieldNamesRule=eA;var oA=kD(),tA=g();function eA(D){let F=[],P=Object.create(null);return{ObjectValue:{enter(){F.push(P),P=Object.create(null)},leave(){let B=F.pop();B||(0,oA.invariant)(!1),P=B}},ObjectField(B){let Z=B.name.value;if(P[Z])D.reportError(new tA.GraphQLError(`There can be only one input field named "${Z}".`,{nodes:[P[Z],B.name]}));else P[Z]=B.name}}}});var S9=Q((aq)=>{Object.defineProperty(aq,"__esModule",{value:!0});aq.UniqueOperationNamesRule=PC;var FC=g();function PC(D){let F=Object.create(null);return{OperationDefinition(P){let B=P.name;if(B)if(F[B.value])D.reportError(new FC.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 T9=Q((nq)=>{Object.defineProperty(nq,"__esModule",{value:!0});nq.UniqueOperationTypesRule=ZC;var sq=g();function ZC(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(X){var q;let J=(q=X.operationTypes)!==null&&q!==void 0?q:[];for(let Y of J){let H=Y.operation,U=P[H];if(B[H])D.reportError(new sq.GraphQLError(`Type for ${H} already defined in the schema. It cannot be redefined.`,{nodes:Y}));else if(U)D.reportError(new sq.GraphQLError(`There can be only one ${H} type in schema.`,{nodes:[U,Y]}));else P[H]=Y}return!1}}});var u9=Q((oq)=>{Object.defineProperty(oq,"__esModule",{value:!0});oq.UniqueTypeNamesRule=qC;var iq=g();function qC(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 X=Z.name.value;if(P!==null&&P!==void 0&&P.getType(X)){D.reportError(new iq.GraphQLError(`Type "${X}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:Z.name}));return}if(F[X])D.reportError(new iq.GraphQLError(`There can be only one type named "${X}".`,{nodes:[F[X],Z.name]}));else F[X]=Z.name;return!1}}});var N9=Q((tq)=>{Object.defineProperty(tq,"__esModule",{value:!0});tq.UniqueVariableNamesRule=UC;var YC=n1(),HC=g();function UC(D){return{OperationDefinition(F){var P;let B=(P=F.variableDefinitions)!==null&&P!==void 0?P:[],Z=(0,YC.groupBy)(B,(X)=>X.variable.name.value);for(let[X,q]of Z)if(q.length>1)D.reportError(new HC.GraphQLError(`There can be only one variable named "$${X}".`,{nodes:q.map((J)=>J.variable.name)}))}}}});var k9=Q((eq)=>{Object.defineProperty(eq,"__esModule",{value:!0});eq.ValuesOfCorrectTypeRule=GC;var OC=n2(),I6=ZD(),zC=i2(),QC=o2(),b2=g(),_9=s(),i1=rD(),j2=n();function GC(D){let F={};return{OperationDefinition:{enter(){F={}}},VariableDefinition(P){F[P.variable.name.value]=P},ListValue(P){let B=(0,j2.getNullableType)(D.getParentInputType());if(!(0,j2.isListType)(B))return u0(D,P),!1},ObjectValue(P){let B=(0,j2.getNamedType)(D.getInputType());if(!(0,j2.isInputObjectType)(B))return u0(D,P),!1;let Z=(0,zC.keyMap)(P.fields,(X)=>X.name.value);for(let X of Object.values(B.getFields()))if(!Z[X.name]&&(0,j2.isRequiredInputField)(X)){let J=(0,I6.inspect)(X.type);D.reportError(new b2.GraphQLError(`Field "${B.name}.${X.name}" of required type "${J}" was not provided.`,{nodes:P}))}if(B.isOneOf)RC(D,P,B,Z,F)},ObjectField(P){let B=(0,j2.getNamedType)(D.getParentInputType());if(!D.getInputType()&&(0,j2.isInputObjectType)(B)){let X=(0,QC.suggestionList)(P.name.value,Object.keys(B.getFields()));D.reportError(new b2.GraphQLError(`Field "${P.name.value}" is not defined by type "${B.name}".`+(0,OC.didYouMean)(X),{nodes:P}))}},NullValue(P){let B=D.getInputType();if((0,j2.isNonNullType)(B))D.reportError(new b2.GraphQLError(`Expected value of type "${(0,I6.inspect)(B)}", found ${(0,i1.print)(P)}.`,{nodes:P}))},EnumValue:(P)=>u0(D,P),IntValue:(P)=>u0(D,P),FloatValue:(P)=>u0(D,P),StringValue:(P)=>u0(D,P),BooleanValue:(P)=>u0(D,P)}}function u0(D,F){let P=D.getInputType();if(!P)return;let B=(0,j2.getNamedType)(P);if(!(0,j2.isLeafType)(B)){let Z=(0,I6.inspect)(P);D.reportError(new b2.GraphQLError(`Expected value of type "${Z}", found ${(0,i1.print)(F)}.`,{nodes:F}));return}try{if(B.parseLiteral(F,void 0)===void 0){let X=(0,I6.inspect)(P);D.reportError(new b2.GraphQLError(`Expected value of type "${X}", found ${(0,i1.print)(F)}.`,{nodes:F}))}}catch(Z){let X=(0,I6.inspect)(P);if(Z instanceof b2.GraphQLError)D.reportError(Z);else D.reportError(new b2.GraphQLError(`Expected value of type "${X}", found ${(0,i1.print)(F)}; `+Z.message,{nodes:F,originalError:Z}))}}function RC(D,F,P,B,Z){var X;let q=Object.keys(B);if(q.length!==1){D.reportError(new b2.GraphQLError(`OneOf Input Object "${P.name}" must specify exactly one key.`,{nodes:[F]}));return}let Y=(X=B[q[0]])===null||X===void 0?void 0:X.value,H=!Y||Y.kind===_9.Kind.NULL,U=(Y===null||Y===void 0?void 0:Y.kind)===_9.Kind.VARIABLE;if(H){D.reportError(new b2.GraphQLError(`Field "${P.name}.${q[0]}" must be non-null.`,{nodes:[F]}));return}if(U){let W=Y.name.value;if(Z[W].type.kind!==_9.Kind.NON_NULL_TYPE)D.reportError(new b2.GraphQLError(`Variable "${W}" must be non-nullable to be used for OneOf Input Object "${P.name}".`,{nodes:[F]}))}}});var x9=Q((DJ)=>{Object.defineProperty(DJ,"__esModule",{value:!0});DJ.VariablesAreInputTypesRule=AC;var $C=g(),MC=rD(),EC=n(),KC=w2();function AC(D){return{VariableDefinition(F){let P=(0,KC.typeFromAST)(D.getSchema(),F.type);if(P!==void 0&&!(0,EC.isInputType)(P)){let B=F.variable.name.value,Z=(0,MC.print)(F.type);D.reportError(new $C.GraphQLError(`Variable "$${B}" cannot be non-input type "${Z}".`,{nodes:F.type}))}}}}});var f9=Q((ZJ)=>{Object.defineProperty(ZJ,"__esModule",{value:!0});ZJ.VariablesInAllowedPositionRule=wC;var FJ=ZD(),PJ=g(),LC=s(),o1=n(),BJ=D6(),VC=w2();function wC(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:X,defaultValue:q,parentType:J}of B){let Y=Z.name.value,H=F[Y];if(H&&X){let U=D.getSchema(),W=(0,VC.typeFromAST)(U,H.type);if(W&&!jC(U,W,H.defaultValue,X,q)){let O=(0,FJ.inspect)(W),z=(0,FJ.inspect)(X);D.reportError(new PJ.GraphQLError(`Variable "$${Y}" of type "${O}" used in position expecting type "${z}".`,{nodes:[H,Z]}))}if((0,o1.isInputObjectType)(J)&&J.isOneOf&&(0,o1.isNullableType)(W))D.reportError(new PJ.GraphQLError(`Variable "$${Y}" is of type "${W}" but must be non-nullable to be used for OneOf Input Object "${J}".`,{nodes:[H,Z]}))}}}},VariableDefinition(P){F[P.variable.name.value]=P}}}function jC(D,F,P,B,Z){if((0,o1.isNonNullType)(B)&&!(0,o1.isNonNullType)(F)){if(!(P!=null&&P.kind!==LC.Kind.NULL)&&Z===void 0)return!1;let J=B.ofType;return(0,BJ.isTypeSubTypeOf)(D,F,J)}return(0,BJ.isTypeSubTypeOf)(D,F,B)}});var h9=Q((zJ)=>{Object.defineProperty(zJ,"__esModule",{value:!0});zJ.specifiedSDLRules=zJ.specifiedRules=zJ.recommendedRules=void 0;var SC=x4(),TC=f4(),uC=h4(),XJ=g4(),qJ=m4(),NC=l4(),JJ=d4(),_C=p4(),kC=r4(),xC=a4(),fC=s4(),hC=n4(),gC=i4(),vC=o4(),yC=X9(),mC=J9(),lC=Y9(),YJ=U9(),cC=z9(),dC=$9(),pC=M9(),HJ=E9(),rC=K9(),UJ=C9(),aC=L9(),sC=w9(),nC=j9(),WJ=b9(),iC=S9(),oC=T9(),tC=u9(),eC=N9(),DL=k9(),FL=x9(),PL=f9(),OJ=Object.freeze([xC.MaxIntrospectionDepthRule]);zJ.recommendedRules=OJ;var BL=Object.freeze([SC.ExecutableDefinitionsRule,iC.UniqueOperationNamesRule,_C.LoneAnonymousOperationRule,dC.SingleFieldSubscriptionsRule,JJ.KnownTypeNamesRule,uC.FragmentsOnCompositeTypesRule,FL.VariablesAreInputTypesRule,cC.ScalarLeafsRule,TC.FieldsOnCorrectTypeRule,nC.UniqueFragmentNamesRule,NC.KnownFragmentNamesRule,gC.NoUnusedFragmentsRule,mC.PossibleFragmentSpreadsRule,fC.NoFragmentCyclesRule,eC.UniqueVariableNamesRule,hC.NoUndefinedVariablesRule,vC.NoUnusedVariablesRule,qJ.KnownDirectivesRule,UJ.UniqueDirectivesPerLocationRule,XJ.KnownArgumentNamesRule,HJ.UniqueArgumentNamesRule,DL.ValuesOfCorrectTypeRule,YJ.ProvidedRequiredArgumentsRule,PL.VariablesInAllowedPositionRule,yC.OverlappingFieldsCanBeMergedRule,WJ.UniqueInputFieldNamesRule,...OJ]);zJ.specifiedRules=BL;var ZL=Object.freeze([kC.LoneSchemaDefinitionRule,oC.UniqueOperationTypesRule,tC.UniqueTypeNamesRule,aC.UniqueEnumValueNamesRule,sC.UniqueFieldDefinitionNamesRule,pC.UniqueArgumentDefinitionNamesRule,rC.UniqueDirectiveNamesRule,JJ.KnownTypeNamesRule,qJ.KnownDirectivesRule,UJ.UniqueDirectivesPerLocationRule,lC.PossibleTypeExtensionsRule,XJ.KnownArgumentNamesOnDirectivesRule,HJ.UniqueArgumentNamesRule,WJ.UniqueInputFieldNamesRule,YJ.ProvidedRequiredArgumentsOnDirectivesRule]);zJ.specifiedSDLRules=ZL});var g9=Q((MJ)=>{Object.defineProperty(MJ,"__esModule",{value:!0});MJ.ValidationContext=MJ.SDLValidationContext=MJ.ASTValidationContext=void 0;var GJ=s(),JL=K0(),RJ=m1();class t1{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===GJ.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===GJ.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 X of this.getFragmentSpreads(Z)){let q=X.name.value;if(P[q]!==!0){P[q]=!0;let J=this.getFragment(q);if(J)F.push(J),B.push(J.selectionSet)}}this._recursivelyReferencedFragments.set(D,F)}return F}}MJ.ASTValidationContext=t1;class IJ extends t1{constructor(D,F,P){super(D,P);this._schema=F}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}MJ.SDLValidationContext=IJ;class $J extends t1{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 RJ.TypeInfo(this._schema);(0,JL.visit)(D,(0,RJ.visitWithTypeInfo)(B,{VariableDefinition:()=>!1,Variable(Z){P.push({node:Z,type:B.getInputType(),defaultValue:B.getDefaultValue(),parentType:B.getParentInputType()})}})),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()}}MJ.ValidationContext=$J});var $6=Q((LJ)=>{Object.defineProperty(LJ,"__esModule",{value:!0});LJ.assertValidSDL=QL;LJ.assertValidSDLExtension=GL;LJ.validate=zL;LJ.validateSDL=v9;var UL=hD(),WL=g(),e1=K0(),OL=U6(),KJ=m1(),AJ=h9(),CJ=g9();function zL(D,F,P=AJ.specifiedRules,B,Z=new KJ.TypeInfo(D)){var X;let q=(X=B===null||B===void 0?void 0:B.maxErrors)!==null&&X!==void 0?X:100;F||(0,UL.devAssert)(!1,"Must provide document."),(0,OL.assertValidSchema)(D);let J=Object.freeze({}),Y=[],H=new CJ.ValidationContext(D,F,Z,(W)=>{if(Y.length>=q)throw Y.push(new WL.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),J;Y.push(W)}),U=(0,e1.visitInParallel)(P.map((W)=>W(H)));try{(0,e1.visit)(F,(0,KJ.visitWithTypeInfo)(Z,U))}catch(W){if(W!==J)throw W}return Y}function v9(D,F,P=AJ.specifiedSDLRules){let B=[],Z=new CJ.SDLValidationContext(D,F,(q)=>{B.push(q)}),X=P.map((q)=>q(Z));return(0,e1.visit)(D,(0,e1.visitInParallel)(X)),B}function QL(D){let F=v9(D);if(F.length!==0)throw new Error(F.map((P)=>P.message).join(`
75
75
 
76
- `))}function _w(D,F){let P=o9(D,F);if(P.length!==0)throw new Error(P.map((B)=>B.message).join(`
76
+ `))}function GL(D,F){let P=v9(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 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`
78
+ `))}});var wJ=Q((VJ)=>{Object.defineProperty(VJ,"__esModule",{value:!0});VJ.memoize3=EL;function EL(D){let F;return function P(B,Z,X){if(F===void 0)F=new WeakMap;let q=F.get(B);if(q===void 0)q=new WeakMap,F.set(B,q);let J=q.get(Z);if(J===void 0)J=new WeakMap,q.set(Z,J);let Y=J.get(X);if(Y===void 0)Y=D(B,Z,X),J.set(X,Y);return Y}}});var bJ=Q((jJ)=>{Object.defineProperty(jJ,"__esModule",{value:!0});jJ.promiseForObject=AL;function AL(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 TJ=Q((SJ)=>{Object.defineProperty(SJ,"__esModule",{value:!0});SJ.promiseReduce=VL;var LL=I1();function VL(D,F,P){let B=P;for(let Z of D)B=(0,LL.isPromise)(B)?B.then((X)=>F(X,Z)):F(B,Z);return B}});var _J=Q((NJ)=>{Object.defineProperty(NJ,"__esModule",{value:!0});NJ.toError=bL;var jL=ZD();function bL(D){return D instanceof Error?D:new uJ(D)}class uJ extends Error{constructor(D){super("Unexpected error value: "+(0,jL.inspect)(D));this.name="NonErrorThrown",this.thrownValue=D}}});var D3=Q((kJ)=>{Object.defineProperty(kJ,"__esModule",{value:!0});kJ.locatedError=NL;var TL=_J(),uL=g();function NL(D,F,P){var B;let Z=(0,TL.toError)(D);if(_L(Z))return Z;return new uL.GraphQLError(Z.message,{nodes:(B=Z.nodes)!==null&&B!==void 0?B:F,source:Z.source,positions:Z.positions,path:P,originalError:Z})}function _L(D){return Array.isArray(D.path)}});var E6=Q((sJ)=>{Object.defineProperty(sJ,"__esModule",{value:!0});sJ.assertValidExecutionArguments=lJ;sJ.buildExecutionContext=cJ;sJ.buildResolveInfo=pJ;sJ.defaultTypeResolver=sJ.defaultFieldResolver=void 0;sJ.execute=mJ;sJ.executeSync=mL;sJ.getFieldDef=aJ;var m9=hD(),N0=ZD(),xL=kD(),fL=v1(),d9=K2(),R2=I1(),hL=wJ(),_0=O6(),xJ=bJ(),gL=TJ(),eD=g(),P3=D3(),y9=A2(),fJ=s(),F0=n(),R8=tD(),vL=U6(),vJ=s1(),yJ=G8(),yL=(0,hL.memoize3)((D,F,P)=>(0,vJ.collectSubfields)(D.schema,D.fragments,D.variableValues,F,P));function mJ(D){arguments.length<2||(0,m9.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;lJ(F,P,B);let X=cJ(D);if(!("schema"in X))return{errors:X};try{let{operation:q}=X,J=lL(X,q,Z);if((0,R2.isPromise)(J))return J.then((Y)=>F3(Y,X.errors),(Y)=>{return X.errors.push(Y),F3(null,X.errors)});return F3(J,X.errors)}catch(q){return X.errors.push(q),F3(null,X.errors)}}function mL(D){let F=mJ(D);if((0,R2.isPromise)(F))throw new Error("GraphQL execution failed to complete synchronously.");return F}function F3(D,F){return F.length===0?{data:D}:{errors:F,data:D}}function lJ(D,F,P){F||(0,m9.devAssert)(!1,"Must provide document."),(0,vL.assertValidSchema)(D),P==null||(0,d9.isObjectLike)(P)||(0,m9.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 cJ(D){var F,P,B;let{schema:Z,document:X,rootValue:q,contextValue:J,variableValues:Y,operationName:H,fieldResolver:U,typeResolver:W,subscribeFieldResolver:O,options:z}=D,I,R=Object.create(null);for(let j of X.definitions)switch(j.kind){case fJ.Kind.OPERATION_DEFINITION:if(H==null){if(I!==void 0)return[new eD.GraphQLError("Must provide operation name if query contains multiple operations.")];I=j}else if(((F=j.name)===null||F===void 0?void 0:F.value)===H)I=j;break;case fJ.Kind.FRAGMENT_DEFINITION:R[j.name.value]=j;break;default:}if(!I){if(H!=null)return[new eD.GraphQLError(`Unknown operation named "${H}".`)];return[new eD.GraphQLError("Must provide an operation.")]}let $=(P=I.variableDefinitions)!==null&&P!==void 0?P:[],K=(0,yJ.getVariableValues)(Z,$,Y!==null&&Y!==void 0?Y:{},{maxErrors:(B=z===null||z===void 0?void 0:z.maxCoercionErrors)!==null&&B!==void 0?B:50});if(K.errors)return K.errors;return{schema:Z,fragments:R,rootValue:q,contextValue:J,operation:I,variableValues:K.coerced,fieldResolver:U!==null&&U!==void 0?U:c9,typeResolver:W!==null&&W!==void 0?W:rJ,subscribeFieldResolver:O!==null&&O!==void 0?O:c9,errors:[]}}function lL(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=(0,vJ.collectFields)(D.schema,D.fragments,D.variableValues,B,F.selectionSet),X=void 0;switch(F.operation){case y9.OperationTypeNode.QUERY:return B3(D,B,P,X,Z);case y9.OperationTypeNode.MUTATION:return cL(D,B,P,X,Z);case y9.OperationTypeNode.SUBSCRIPTION:return B3(D,B,P,X,Z)}}function cL(D,F,P,B,Z){return(0,gL.promiseReduce)(Z.entries(),(X,[q,J])=>{let Y=(0,_0.addPath)(B,q,F.name),H=dJ(D,F,P,J,Y);if(H===void 0)return X;if((0,R2.isPromise)(H))return H.then((U)=>{return X[q]=U,X});return X[q]=H,X},Object.create(null))}function B3(D,F,P,B,Z){let X=Object.create(null),q=!1;try{for(let[J,Y]of Z.entries()){let H=(0,_0.addPath)(B,J,F.name),U=dJ(D,F,P,Y,H);if(U!==void 0){if(X[J]=U,(0,R2.isPromise)(U))q=!0}}}catch(J){if(q)return(0,xJ.promiseForObject)(X).finally(()=>{throw J});throw J}if(!q)return X;return(0,xJ.promiseForObject)(X)}function dJ(D,F,P,B,Z){var X;let q=aJ(D.schema,F,B[0]);if(!q)return;let J=q.type,Y=(X=q.resolve)!==null&&X!==void 0?X:D.fieldResolver,H=pJ(D,q,B,F,Z);try{let U=(0,yJ.getArgumentValues)(q,B[0],D.variableValues),W=D.contextValue,O=Y(P,U,W,H),z;if((0,R2.isPromise)(O))z=O.then((I)=>M6(D,J,B,H,Z,I));else z=M6(D,J,B,H,Z,O);if((0,R2.isPromise)(z))return z.then(void 0,(I)=>{let R=(0,P3.locatedError)(I,B,(0,_0.pathToArray)(Z));return Z3(R,J,D)});return z}catch(U){let W=(0,P3.locatedError)(U,B,(0,_0.pathToArray)(Z));return Z3(W,J,D)}}function pJ(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 Z3(D,F,P){if((0,F0.isNonNullType)(F))throw D;return P.errors.push(D),null}function M6(D,F,P,B,Z,X){if(X instanceof Error)throw X;if((0,F0.isNonNullType)(F)){let q=M6(D,F.ofType,P,B,Z,X);if(q===null)throw new Error(`Cannot return null for non-nullable field ${B.parentType.name}.${B.fieldName}.`);return q}if(X==null)return null;if((0,F0.isListType)(F))return dL(D,F,P,B,Z,X);if((0,F0.isLeafType)(F))return pL(F,X);if((0,F0.isAbstractType)(F))return rL(D,F,P,B,Z,X);if((0,F0.isObjectType)(F))return l9(D,F,P,B,Z,X);(0,xL.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,N0.inspect)(F))}function dL(D,F,P,B,Z,X){if(!(0,fL.isIterableObject)(X))throw new eD.GraphQLError(`Expected Iterable, but did not find one for field "${B.parentType.name}.${B.fieldName}".`);let q=F.ofType,J=!1,Y=Array.from(X,(H,U)=>{let W=(0,_0.addPath)(Z,U,void 0);try{let O;if((0,R2.isPromise)(H))O=H.then((z)=>M6(D,q,P,B,W,z));else O=M6(D,q,P,B,W,H);if((0,R2.isPromise)(O))return J=!0,O.then(void 0,(z)=>{let I=(0,P3.locatedError)(z,P,(0,_0.pathToArray)(W));return Z3(I,q,D)});return O}catch(O){let z=(0,P3.locatedError)(O,P,(0,_0.pathToArray)(W));return Z3(z,q,D)}});return J?Promise.all(Y):Y}function pL(D,F){let P=D.serialize(F);if(P==null)throw new Error(`Expected \`${(0,N0.inspect)(D)}.serialize(${(0,N0.inspect)(F)})\` to return non-nullable value, returned: ${(0,N0.inspect)(P)}`);return P}function rL(D,F,P,B,Z,X){var q;let J=(q=F.resolveType)!==null&&q!==void 0?q:D.typeResolver,Y=D.contextValue,H=J(X,Y,B,F);if((0,R2.isPromise)(H))return H.then((U)=>l9(D,hJ(U,D,F,P,B,X),P,B,Z,X));return l9(D,hJ(H,D,F,P,B,X),P,B,Z,X)}function hJ(D,F,P,B,Z,X){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((0,F0.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 ${(0,N0.inspect)(X)}, received "${(0,N0.inspect)(D)}".`);let q=F.schema.getType(D);if(q==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(!(0,F0.isObjectType)(q))throw new eD.GraphQLError(`Abstract type "${P.name}" was resolved to a non-object type "${D}".`,{nodes:B});if(!F.schema.isSubType(P,q))throw new eD.GraphQLError(`Runtime Object type "${q.name}" is not a possible type for "${P.name}".`,{nodes:B});return q}function l9(D,F,P,B,Z,X){let q=yL(D,F,P);if(F.isTypeOf){let J=F.isTypeOf(X,D.contextValue,B);if((0,R2.isPromise)(J))return J.then((Y)=>{if(!Y)throw gJ(F,X,P);return B3(D,F,X,Z,q)});if(!J)throw gJ(F,X,P)}return B3(D,F,X,Z,q)}function gJ(D,F,P){return new eD.GraphQLError(`Expected value of type "${D.name}" but got: ${(0,N0.inspect)(F)}.`,{nodes:P})}var rJ=function(D,F,P,B){if((0,d9.isObjectLike)(D)&&typeof D.__typename==="string")return D.__typename;let Z=P.schema.getPossibleTypes(B),X=[];for(let q=0;q<Z.length;q++){let J=Z[q];if(J.isTypeOf){let Y=J.isTypeOf(D,F,P);if((0,R2.isPromise)(Y))X[q]=Y;else if(Y)return J.name}}if(X.length)return Promise.all(X).then((q)=>{for(let J=0;J<q.length;J++)if(q[J])return Z[J].name})};sJ.defaultTypeResolver=rJ;var c9=function(D,F,P,B){if((0,d9.isObjectLike)(D)||typeof D==="function"){let Z=D[B.fieldName];if(typeof Z==="function")return D[B.fieldName](F,P,B);return Z}};sJ.defaultFieldResolver=c9;function aJ(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 tJ=Q((oJ)=>{Object.defineProperty(oJ,"__esModule",{value:!0});oJ.graphql=qV;oJ.graphqlSync=JV;var DV=hD(),FV=I1(),PV=q8(),BV=U6(),ZV=$6(),XV=E6();function qV(D){return new Promise((F)=>F(iJ(D)))}function JV(D){let F=iJ(D);if((0,FV.isPromise)(F))throw new Error("GraphQL execution failed to complete synchronously.");return F}function iJ(D){arguments.length<2||(0,DV.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:X,operationName:q,fieldResolver:J,typeResolver:Y}=D,H=(0,BV.validateSchema)(F);if(H.length>0)return{errors:H};let U;try{U=(0,PV.parse)(P)}catch(O){return{errors:[O]}}let W=(0,ZV.validate)(F,U);if(W.length>0)return{errors:W};return(0,XV.execute)({schema:F,document:U,rootValue:B,contextValue:Z,variableValues:X,operationName:q,fieldResolver:J,typeResolver:Y})}});var FY=Q((L)=>{Object.defineProperty(L,"__esModule",{value:!0});Object.defineProperty(L,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return I2.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(L,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return y2.GRAPHQL_MAX_INT}});Object.defineProperty(L,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return y2.GRAPHQL_MIN_INT}});Object.defineProperty(L,"GraphQLBoolean",{enumerable:!0,get:function(){return y2.GraphQLBoolean}});Object.defineProperty(L,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return I2.GraphQLDeprecatedDirective}});Object.defineProperty(L,"GraphQLDirective",{enumerable:!0,get:function(){return I2.GraphQLDirective}});Object.defineProperty(L,"GraphQLEnumType",{enumerable:!0,get:function(){return v.GraphQLEnumType}});Object.defineProperty(L,"GraphQLFloat",{enumerable:!0,get:function(){return y2.GraphQLFloat}});Object.defineProperty(L,"GraphQLID",{enumerable:!0,get:function(){return y2.GraphQLID}});Object.defineProperty(L,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return I2.GraphQLIncludeDirective}});Object.defineProperty(L,"GraphQLInputObjectType",{enumerable:!0,get:function(){return v.GraphQLInputObjectType}});Object.defineProperty(L,"GraphQLInt",{enumerable:!0,get:function(){return y2.GraphQLInt}});Object.defineProperty(L,"GraphQLInterfaceType",{enumerable:!0,get:function(){return v.GraphQLInterfaceType}});Object.defineProperty(L,"GraphQLList",{enumerable:!0,get:function(){return v.GraphQLList}});Object.defineProperty(L,"GraphQLNonNull",{enumerable:!0,get:function(){return v.GraphQLNonNull}});Object.defineProperty(L,"GraphQLObjectType",{enumerable:!0,get:function(){return v.GraphQLObjectType}});Object.defineProperty(L,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return I2.GraphQLOneOfDirective}});Object.defineProperty(L,"GraphQLScalarType",{enumerable:!0,get:function(){return v.GraphQLScalarType}});Object.defineProperty(L,"GraphQLSchema",{enumerable:!0,get:function(){return p9.GraphQLSchema}});Object.defineProperty(L,"GraphQLSkipDirective",{enumerable:!0,get:function(){return I2.GraphQLSkipDirective}});Object.defineProperty(L,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return I2.GraphQLSpecifiedByDirective}});Object.defineProperty(L,"GraphQLString",{enumerable:!0,get:function(){return y2.GraphQLString}});Object.defineProperty(L,"GraphQLUnionType",{enumerable:!0,get:function(){return v.GraphQLUnionType}});Object.defineProperty(L,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return lD.SchemaMetaFieldDef}});Object.defineProperty(L,"TypeKind",{enumerable:!0,get:function(){return lD.TypeKind}});Object.defineProperty(L,"TypeMetaFieldDef",{enumerable:!0,get:function(){return lD.TypeMetaFieldDef}});Object.defineProperty(L,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return lD.TypeNameMetaFieldDef}});Object.defineProperty(L,"__Directive",{enumerable:!0,get:function(){return lD.__Directive}});Object.defineProperty(L,"__DirectiveLocation",{enumerable:!0,get:function(){return lD.__DirectiveLocation}});Object.defineProperty(L,"__EnumValue",{enumerable:!0,get:function(){return lD.__EnumValue}});Object.defineProperty(L,"__Field",{enumerable:!0,get:function(){return lD.__Field}});Object.defineProperty(L,"__InputValue",{enumerable:!0,get:function(){return lD.__InputValue}});Object.defineProperty(L,"__Schema",{enumerable:!0,get:function(){return lD.__Schema}});Object.defineProperty(L,"__Type",{enumerable:!0,get:function(){return lD.__Type}});Object.defineProperty(L,"__TypeKind",{enumerable:!0,get:function(){return lD.__TypeKind}});Object.defineProperty(L,"assertAbstractType",{enumerable:!0,get:function(){return v.assertAbstractType}});Object.defineProperty(L,"assertCompositeType",{enumerable:!0,get:function(){return v.assertCompositeType}});Object.defineProperty(L,"assertDirective",{enumerable:!0,get:function(){return I2.assertDirective}});Object.defineProperty(L,"assertEnumType",{enumerable:!0,get:function(){return v.assertEnumType}});Object.defineProperty(L,"assertEnumValueName",{enumerable:!0,get:function(){return DY.assertEnumValueName}});Object.defineProperty(L,"assertInputObjectType",{enumerable:!0,get:function(){return v.assertInputObjectType}});Object.defineProperty(L,"assertInputType",{enumerable:!0,get:function(){return v.assertInputType}});Object.defineProperty(L,"assertInterfaceType",{enumerable:!0,get:function(){return v.assertInterfaceType}});Object.defineProperty(L,"assertLeafType",{enumerable:!0,get:function(){return v.assertLeafType}});Object.defineProperty(L,"assertListType",{enumerable:!0,get:function(){return v.assertListType}});Object.defineProperty(L,"assertName",{enumerable:!0,get:function(){return DY.assertName}});Object.defineProperty(L,"assertNamedType",{enumerable:!0,get:function(){return v.assertNamedType}});Object.defineProperty(L,"assertNonNullType",{enumerable:!0,get:function(){return v.assertNonNullType}});Object.defineProperty(L,"assertNullableType",{enumerable:!0,get:function(){return v.assertNullableType}});Object.defineProperty(L,"assertObjectType",{enumerable:!0,get:function(){return v.assertObjectType}});Object.defineProperty(L,"assertOutputType",{enumerable:!0,get:function(){return v.assertOutputType}});Object.defineProperty(L,"assertScalarType",{enumerable:!0,get:function(){return v.assertScalarType}});Object.defineProperty(L,"assertSchema",{enumerable:!0,get:function(){return p9.assertSchema}});Object.defineProperty(L,"assertType",{enumerable:!0,get:function(){return v.assertType}});Object.defineProperty(L,"assertUnionType",{enumerable:!0,get:function(){return v.assertUnionType}});Object.defineProperty(L,"assertValidSchema",{enumerable:!0,get:function(){return eJ.assertValidSchema}});Object.defineProperty(L,"assertWrappingType",{enumerable:!0,get:function(){return v.assertWrappingType}});Object.defineProperty(L,"getNamedType",{enumerable:!0,get:function(){return v.getNamedType}});Object.defineProperty(L,"getNullableType",{enumerable:!0,get:function(){return v.getNullableType}});Object.defineProperty(L,"introspectionTypes",{enumerable:!0,get:function(){return lD.introspectionTypes}});Object.defineProperty(L,"isAbstractType",{enumerable:!0,get:function(){return v.isAbstractType}});Object.defineProperty(L,"isCompositeType",{enumerable:!0,get:function(){return v.isCompositeType}});Object.defineProperty(L,"isDirective",{enumerable:!0,get:function(){return I2.isDirective}});Object.defineProperty(L,"isEnumType",{enumerable:!0,get:function(){return v.isEnumType}});Object.defineProperty(L,"isInputObjectType",{enumerable:!0,get:function(){return v.isInputObjectType}});Object.defineProperty(L,"isInputType",{enumerable:!0,get:function(){return v.isInputType}});Object.defineProperty(L,"isInterfaceType",{enumerable:!0,get:function(){return v.isInterfaceType}});Object.defineProperty(L,"isIntrospectionType",{enumerable:!0,get:function(){return lD.isIntrospectionType}});Object.defineProperty(L,"isLeafType",{enumerable:!0,get:function(){return v.isLeafType}});Object.defineProperty(L,"isListType",{enumerable:!0,get:function(){return v.isListType}});Object.defineProperty(L,"isNamedType",{enumerable:!0,get:function(){return v.isNamedType}});Object.defineProperty(L,"isNonNullType",{enumerable:!0,get:function(){return v.isNonNullType}});Object.defineProperty(L,"isNullableType",{enumerable:!0,get:function(){return v.isNullableType}});Object.defineProperty(L,"isObjectType",{enumerable:!0,get:function(){return v.isObjectType}});Object.defineProperty(L,"isOutputType",{enumerable:!0,get:function(){return v.isOutputType}});Object.defineProperty(L,"isRequiredArgument",{enumerable:!0,get:function(){return v.isRequiredArgument}});Object.defineProperty(L,"isRequiredInputField",{enumerable:!0,get:function(){return v.isRequiredInputField}});Object.defineProperty(L,"isScalarType",{enumerable:!0,get:function(){return v.isScalarType}});Object.defineProperty(L,"isSchema",{enumerable:!0,get:function(){return p9.isSchema}});Object.defineProperty(L,"isSpecifiedDirective",{enumerable:!0,get:function(){return I2.isSpecifiedDirective}});Object.defineProperty(L,"isSpecifiedScalarType",{enumerable:!0,get:function(){return y2.isSpecifiedScalarType}});Object.defineProperty(L,"isType",{enumerable:!0,get:function(){return v.isType}});Object.defineProperty(L,"isUnionType",{enumerable:!0,get:function(){return v.isUnionType}});Object.defineProperty(L,"isWrappingType",{enumerable:!0,get:function(){return v.isWrappingType}});Object.defineProperty(L,"resolveObjMapThunk",{enumerable:!0,get:function(){return v.resolveObjMapThunk}});Object.defineProperty(L,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return v.resolveReadonlyArrayThunk}});Object.defineProperty(L,"specifiedDirectives",{enumerable:!0,get:function(){return I2.specifiedDirectives}});Object.defineProperty(L,"specifiedScalarTypes",{enumerable:!0,get:function(){return y2.specifiedScalarTypes}});Object.defineProperty(L,"validateSchema",{enumerable:!0,get:function(){return eJ.validateSchema}});var p9=j0(),v=n(),I2=yD(),y2=V2(),lD=tD(),eJ=U6(),DY=i8()});var BY=Q((e)=>{Object.defineProperty(e,"__esModule",{value:!0});Object.defineProperty(e,"BREAK",{enumerable:!0,get:function(){return K6.BREAK}});Object.defineProperty(e,"DirectiveLocation",{enumerable:!0,get:function(){return RV.DirectiveLocation}});Object.defineProperty(e,"Kind",{enumerable:!0,get:function(){return OV.Kind}});Object.defineProperty(e,"Lexer",{enumerable:!0,get:function(){return QV.Lexer}});Object.defineProperty(e,"Location",{enumerable:!0,get:function(){return r9.Location}});Object.defineProperty(e,"OperationTypeNode",{enumerable:!0,get:function(){return r9.OperationTypeNode}});Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return UV.Source}});Object.defineProperty(e,"Token",{enumerable:!0,get:function(){return r9.Token}});Object.defineProperty(e,"TokenKind",{enumerable:!0,get:function(){return zV.TokenKind}});Object.defineProperty(e,"getEnterLeaveForKind",{enumerable:!0,get:function(){return K6.getEnterLeaveForKind}});Object.defineProperty(e,"getLocation",{enumerable:!0,get:function(){return WV.getLocation}});Object.defineProperty(e,"getVisitFn",{enumerable:!0,get:function(){return K6.getVisitFn}});Object.defineProperty(e,"isConstValueNode",{enumerable:!0,get:function(){return S2.isConstValueNode}});Object.defineProperty(e,"isDefinitionNode",{enumerable:!0,get:function(){return S2.isDefinitionNode}});Object.defineProperty(e,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return S2.isExecutableDefinitionNode}});Object.defineProperty(e,"isSelectionNode",{enumerable:!0,get:function(){return S2.isSelectionNode}});Object.defineProperty(e,"isTypeDefinitionNode",{enumerable:!0,get:function(){return S2.isTypeDefinitionNode}});Object.defineProperty(e,"isTypeExtensionNode",{enumerable:!0,get:function(){return S2.isTypeExtensionNode}});Object.defineProperty(e,"isTypeNode",{enumerable:!0,get:function(){return S2.isTypeNode}});Object.defineProperty(e,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return S2.isTypeSystemDefinitionNode}});Object.defineProperty(e,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return S2.isTypeSystemExtensionNode}});Object.defineProperty(e,"isValueNode",{enumerable:!0,get:function(){return S2.isValueNode}});Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return X3.parse}});Object.defineProperty(e,"parseConstValue",{enumerable:!0,get:function(){return X3.parseConstValue}});Object.defineProperty(e,"parseType",{enumerable:!0,get:function(){return X3.parseType}});Object.defineProperty(e,"parseValue",{enumerable:!0,get:function(){return X3.parseValue}});Object.defineProperty(e,"print",{enumerable:!0,get:function(){return GV.print}});Object.defineProperty(e,"printLocation",{enumerable:!0,get:function(){return PY.printLocation}});Object.defineProperty(e,"printSourceLocation",{enumerable:!0,get:function(){return PY.printSourceLocation}});Object.defineProperty(e,"visit",{enumerable:!0,get:function(){return K6.visit}});Object.defineProperty(e,"visitInParallel",{enumerable:!0,get:function(){return K6.visitInParallel}});var UV=L1(),WV=$1(),PY=m5(),OV=s(),zV=d8(),QV=A1(),X3=q8(),GV=rD(),K6=K0(),r9=A2(),S2=S0(),RV=B8()});var XY=Q((ZY)=>{Object.defineProperty(ZY,"__esModule",{value:!0});ZY.isAsyncIterable=IV;function IV(D){return typeof(D===null||D===void 0?void 0:D[Symbol.asyncIterator])==="function"}});var JY=Q((qY)=>{Object.defineProperty(qY,"__esModule",{value:!0});qY.mapAsyncIterator=MV;function MV(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(X){if(typeof P.return==="function")try{await P.return()}catch(q){}throw X}}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 OY=Q((WY)=>{Object.defineProperty(WY,"__esModule",{value:!0});WY.createSourceEventStream=UY;WY.subscribe=jV;var KV=hD(),AV=ZD(),HY=XY(),YY=O6(),a9=g(),CV=D3(),LV=s1(),A6=E6(),VV=JY(),wV=G8();async function jV(D){arguments.length<2||(0,KV.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let F=await UY(D);if(!(0,HY.isAsyncIterable)(F))return F;let P=(B)=>(0,A6.execute)({...D,rootValue:B});return(0,VV.mapAsyncIterator)(F,P)}function bV(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 UY(...D){let F=bV(D),{schema:P,document:B,variableValues:Z}=F;(0,A6.assertValidExecutionArguments)(P,B,Z);let X=(0,A6.buildExecutionContext)(F);if(!("schema"in X))return{errors:X};try{let q=await SV(X);if(!(0,HY.isAsyncIterable)(q))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,AV.inspect)(q)}.`);return q}catch(q){if(q instanceof a9.GraphQLError)return{errors:[q]};throw q}}async function SV(D){let{schema:F,fragments:P,operation:B,variableValues:Z,rootValue:X}=D,q=F.getSubscriptionType();if(q==null)throw new a9.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:B});let J=(0,LV.collectFields)(F,P,Z,q,B.selectionSet),[Y,H]=[...J.entries()][0],U=(0,A6.getFieldDef)(F,q,H[0]);if(!U){let I=H[0].name.value;throw new a9.GraphQLError(`The subscription field "${I}" is not defined.`,{nodes:H})}let W=(0,YY.addPath)(void 0,Y,q.name),O=(0,A6.buildResolveInfo)(D,U,H,q,W);try{var z;let I=(0,wV.getArgumentValues)(U,H[0],Z),R=D.contextValue,K=await((z=U.subscribe)!==null&&z!==void 0?z:D.subscribeFieldResolver)(X,I,R,O);if(K instanceof Error)throw K;return K}catch(I){throw(0,CV.locatedError)(I,H,(0,YY.pathToArray)(W))}}});var QY=Q((D2)=>{Object.defineProperty(D2,"__esModule",{value:!0});Object.defineProperty(D2,"createSourceEventStream",{enumerable:!0,get:function(){return zY.createSourceEventStream}});Object.defineProperty(D2,"defaultFieldResolver",{enumerable:!0,get:function(){return q3.defaultFieldResolver}});Object.defineProperty(D2,"defaultTypeResolver",{enumerable:!0,get:function(){return q3.defaultTypeResolver}});Object.defineProperty(D2,"execute",{enumerable:!0,get:function(){return q3.execute}});Object.defineProperty(D2,"executeSync",{enumerable:!0,get:function(){return q3.executeSync}});Object.defineProperty(D2,"getArgumentValues",{enumerable:!0,get:function(){return s9.getArgumentValues}});Object.defineProperty(D2,"getDirectiveValues",{enumerable:!0,get:function(){return s9.getDirectiveValues}});Object.defineProperty(D2,"getVariableValues",{enumerable:!0,get:function(){return s9.getVariableValues}});Object.defineProperty(D2,"responsePathAsArray",{enumerable:!0,get:function(){return NV.pathToArray}});Object.defineProperty(D2,"subscribe",{enumerable:!0,get:function(){return zY.subscribe}});var NV=O6(),q3=E6(),zY=OY(),s9=G8()});var RY=Q((GY)=>{Object.defineProperty(GY,"__esModule",{value:!0});GY.NoDeprecatedCustomRule=_V;var n9=kD(),C6=g(),i9=n();function _V(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||(0,n9.invariant)(!1),D.reportError(new C6.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 C6.GraphQLError(`Directive "@${Z.name}" argument "${P.name}" is deprecated. ${B}`,{nodes:F}));else{let X=D.getParentType(),q=D.getFieldDef();X!=null&&q!=null||(0,n9.invariant)(!1),D.reportError(new C6.GraphQLError(`Field "${X.name}.${q.name}" argument "${P.name}" is deprecated. ${B}`,{nodes:F}))}}},ObjectField(F){let P=(0,i9.getNamedType)(D.getParentInputType());if((0,i9.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 C6.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=(0,i9.getNamedType)(D.getInputType());Z!=null||(0,n9.invariant)(!1),D.reportError(new C6.GraphQLError(`The enum value "${Z.name}.${P.name}" is deprecated. ${B}`,{nodes:F}))}}}}});var $Y=Q((IY)=>{Object.defineProperty(IY,"__esModule",{value:!0});IY.NoSchemaIntrospectionCustomRule=gV;var xV=g(),fV=n(),hV=tD();function gV(D){return{Field(F){let P=(0,fV.getNamedType)(D.getType());if(P&&(0,hV.isIntrospectionType)(P))D.reportError(new xV.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${F.name.value}".`,{nodes:F}))}}}});var EY=Q((l)=>{Object.defineProperty(l,"__esModule",{value:!0});Object.defineProperty(l,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return lV.ExecutableDefinitionsRule}});Object.defineProperty(l,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return cV.FieldsOnCorrectTypeRule}});Object.defineProperty(l,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return dV.FragmentsOnCompositeTypesRule}});Object.defineProperty(l,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return pV.KnownArgumentNamesRule}});Object.defineProperty(l,"KnownDirectivesRule",{enumerable:!0,get:function(){return rV.KnownDirectivesRule}});Object.defineProperty(l,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return aV.KnownFragmentNamesRule}});Object.defineProperty(l,"KnownTypeNamesRule",{enumerable:!0,get:function(){return sV.KnownTypeNamesRule}});Object.defineProperty(l,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return nV.LoneAnonymousOperationRule}});Object.defineProperty(l,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return Gw.LoneSchemaDefinitionRule}});Object.defineProperty(l,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Qw.MaxIntrospectionDepthRule}});Object.defineProperty(l,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return Cw.NoDeprecatedCustomRule}});Object.defineProperty(l,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return iV.NoFragmentCyclesRule}});Object.defineProperty(l,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return Lw.NoSchemaIntrospectionCustomRule}});Object.defineProperty(l,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return oV.NoUndefinedVariablesRule}});Object.defineProperty(l,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return tV.NoUnusedFragmentsRule}});Object.defineProperty(l,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return eV.NoUnusedVariablesRule}});Object.defineProperty(l,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return Dw.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(l,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return Fw.PossibleFragmentSpreadsRule}});Object.defineProperty(l,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return Aw.PossibleTypeExtensionsRule}});Object.defineProperty(l,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return Pw.ProvidedRequiredArgumentsRule}});Object.defineProperty(l,"ScalarLeafsRule",{enumerable:!0,get:function(){return Bw.ScalarLeafsRule}});Object.defineProperty(l,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return Zw.SingleFieldSubscriptionsRule}});Object.defineProperty(l,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Ew.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(l,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return Xw.UniqueArgumentNamesRule}});Object.defineProperty(l,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return Kw.UniqueDirectiveNamesRule}});Object.defineProperty(l,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return qw.UniqueDirectivesPerLocationRule}});Object.defineProperty(l,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return $w.UniqueEnumValueNamesRule}});Object.defineProperty(l,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return Mw.UniqueFieldDefinitionNamesRule}});Object.defineProperty(l,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return Jw.UniqueFragmentNamesRule}});Object.defineProperty(l,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return Yw.UniqueInputFieldNamesRule}});Object.defineProperty(l,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return Hw.UniqueOperationNamesRule}});Object.defineProperty(l,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return Rw.UniqueOperationTypesRule}});Object.defineProperty(l,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return Iw.UniqueTypeNamesRule}});Object.defineProperty(l,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return Uw.UniqueVariableNamesRule}});Object.defineProperty(l,"ValidationContext",{enumerable:!0,get:function(){return mV.ValidationContext}});Object.defineProperty(l,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return Ww.ValuesOfCorrectTypeRule}});Object.defineProperty(l,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return Ow.VariablesAreInputTypesRule}});Object.defineProperty(l,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return zw.VariablesInAllowedPositionRule}});Object.defineProperty(l,"recommendedRules",{enumerable:!0,get:function(){return MY.recommendedRules}});Object.defineProperty(l,"specifiedRules",{enumerable:!0,get:function(){return MY.specifiedRules}});Object.defineProperty(l,"validate",{enumerable:!0,get:function(){return yV.validate}});var yV=$6(),mV=g9(),MY=h9(),lV=x4(),cV=f4(),dV=h4(),pV=g4(),rV=m4(),aV=l4(),sV=d4(),nV=p4(),iV=s4(),oV=n4(),tV=i4(),eV=o4(),Dw=X9(),Fw=J9(),Pw=U9(),Bw=z9(),Zw=$9(),Xw=E9(),qw=C9(),Jw=j9(),Yw=b9(),Hw=S9(),Uw=N9(),Ww=k9(),Ow=x9(),zw=f9(),Qw=a4(),Gw=r4(),Rw=T9(),Iw=u9(),$w=L9(),Mw=w9(),Ew=M9(),Kw=K9(),Aw=Y9(),Cw=RY(),Lw=$Y()});var KY=Q((k0)=>{Object.defineProperty(k0,"__esModule",{value:!0});Object.defineProperty(k0,"GraphQLError",{enumerable:!0,get:function(){return o9.GraphQLError}});Object.defineProperty(k0,"formatError",{enumerable:!0,get:function(){return o9.formatError}});Object.defineProperty(k0,"locatedError",{enumerable:!0,get:function(){return ww.locatedError}});Object.defineProperty(k0,"printError",{enumerable:!0,get:function(){return o9.printError}});Object.defineProperty(k0,"syntaxError",{enumerable:!0,get:function(){return Vw.syntaxError}});var o9=g(),Vw=M1(),ww=D3()});var t9=Q((AY)=>{Object.defineProperty(AY,"__esModule",{value:!0});AY.getIntrospectionQuery=jw;function jw(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":"",X=F.schemaDescription?P:"";function q(Y){return F.inputValueDeprecation?Y:""}let J=F.oneOf?"isOneOf":"";return`
79
79
  query IntrospectionQuery {
80
80
  __schema {
81
- ${q}
82
- queryType { name }
83
- mutationType { name }
84
- subscriptionType { name }
81
+ ${X}
82
+ queryType { name kind }
83
+ mutationType { name kind }
84
+ subscriptionType { name kind }
85
85
  types {
86
86
  ...FullType
87
87
  }
@@ -90,7 +90,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
90
90
  ${P}
91
91
  ${Z}
92
92
  locations
93
- args${X("(includeDeprecated: true)")} {
93
+ args${q("(includeDeprecated: true)")} {
94
94
  ...InputValue
95
95
  }
96
96
  }
@@ -106,7 +106,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
106
106
  fields(includeDeprecated: true) {
107
107
  name
108
108
  ${P}
109
- args${X("(includeDeprecated: true)")} {
109
+ args${q("(includeDeprecated: true)")} {
110
110
  ...InputValue
111
111
  }
112
112
  type {
@@ -115,7 +115,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
115
115
  isDeprecated
116
116
  deprecationReason
117
117
  }
118
- inputFields${X("(includeDeprecated: true)")} {
118
+ inputFields${q("(includeDeprecated: true)")} {
119
119
  ...InputValue
120
120
  }
121
121
  interfaces {
@@ -137,8 +137,8 @@ In some cases, you need to provide options to alter GraphQL's execution behavior
137
137
  ${P}
138
138
  type { ...TypeRef }
139
139
  defaultValue
140
- ${X("isDeprecated")}
141
- ${X("deprecationReason")}
140
+ ${q("isDeprecated")}
141
+ ${q("deprecationReason")}
142
142
  }
143
143
 
144
144
  fragment TypeRef on __Type {
@@ -181,187 +181,177 @@ 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=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(`
184
+ `}});var LY=Q((CY)=>{Object.defineProperty(CY,"__esModule",{value:!0});CY.getOperationAST=Tw;var Sw=s();function Tw(D,F){let P=null;for(let Z of D.definitions)if(Z.kind===Sw.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 wY=Q((VY)=>{Object.defineProperty(VY,"__esModule",{value:!0});VY.getOperationRootType=Nw;var J3=g();function Nw(D,F){if(F.operation==="query"){let P=D.getQueryType();if(!P)throw new J3.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 J3.GraphQLError("Schema is not configured for mutations.",{nodes:F});return P}if(F.operation==="subscription"){let P=D.getSubscriptionType();if(!P)throw new J3.GraphQLError("Schema is not configured for subscriptions.",{nodes:F});return P}throw new J3.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:F})}});var bY=Q((jY)=>{Object.defineProperty(jY,"__esModule",{value:!0});jY.introspectionFromSchema=gw;var kw=kD(),xw=q8(),fw=E6(),hw=t9();function gw(D,F){let P={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...F},B=(0,xw.parse)((0,hw.getIntrospectionQuery)(P)),Z=(0,fw.executeSync)({schema:D,document:B});return!Z.errors&&Z.data||(0,kw.invariant)(!1),Z.data}});var uY=Q((TY)=>{Object.defineProperty(TY,"__esModule",{value:!0});TY.buildClientSchema=rw;var yw=hD(),aD=ZD(),SY=K2(),Y3=s8(),mw=q8(),sD=n(),lw=yD(),T2=tD(),cw=V2(),dw=j0(),pw=R6();function rw(D,F){(0,SY.isObjectLike)(D)&&(0,SY.isObjectLike)(D.__schema)||(0,yw.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,aD.inspect)(D)}.`);let P=D.__schema,B=(0,Y3.keyValMap)(P.types,(M)=>M.name,(M)=>O(M));for(let M of[...cw.specifiedScalarTypes,...T2.introspectionTypes])if(B[M.name])B[M.name]=M;let Z=P.queryType?U(P.queryType):null,X=P.mutationType?U(P.mutationType):null,q=P.subscriptionType?U(P.subscriptionType):null,J=P.directives?P.directives.map(w):[];return new dw.GraphQLSchema({description:P.description,query:Z,mutation:X,subscription:q,types:Object.values(B),directives:J,assumeValid:F===null||F===void 0?void 0:F.assumeValid});function Y(M){if(M.kind===T2.TypeKind.LIST){let h=M.ofType;if(!h)throw new Error("Decorated type deeper than introspection query.");return new sD.GraphQLList(Y(h))}if(M.kind===T2.TypeKind.NON_NULL){let h=M.ofType;if(!h)throw new Error("Decorated type deeper than introspection query.");let GD=Y(h);return new sD.GraphQLNonNull((0,sD.assertNullableType)(GD))}return H(M)}function H(M){let h=M.name;if(!h)throw new Error(`Unknown type reference: ${(0,aD.inspect)(M)}.`);let GD=B[h];if(!GD)throw new Error(`Invalid or incomplete schema, unknown type: ${h}. Ensure that a full introspection query is used in order to build a client schema.`);return GD}function U(M){return(0,sD.assertObjectType)(H(M))}function W(M){return(0,sD.assertInterfaceType)(H(M))}function O(M){if(M!=null&&M.name!=null&&M.kind!=null)switch(M.kind){case T2.TypeKind.SCALAR:return z(M);case T2.TypeKind.OBJECT:return R(M);case T2.TypeKind.INTERFACE:return $(M);case T2.TypeKind.UNION:return K(M);case T2.TypeKind.ENUM:return j(M);case T2.TypeKind.INPUT_OBJECT:return A(M)}let h=(0,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: ${h}.`)}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===T2.TypeKind.INTERFACE)return[];if(!M.interfaces){let h=(0,aD.inspect)(M);throw new Error(`Introspection result missing interfaces: ${h}.`)}return M.interfaces.map(W)}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 K(M){if(!M.possibleTypes){let h=(0,aD.inspect)(M);throw new Error(`Introspection result missing possibleTypes: ${h}.`)}return new sD.GraphQLUnionType({name:M.name,description:M.description,types:()=>M.possibleTypes.map(U)})}function j(M){if(!M.enumValues){let h=(0,aD.inspect)(M);throw new Error(`Introspection result missing enumValues: ${h}.`)}return new sD.GraphQLEnumType({name:M.name,description:M.description,values:(0,Y3.keyValMap)(M.enumValues,(h)=>h.name,(h)=>({description:h.description,deprecationReason:h.deprecationReason}))})}function A(M){if(!M.inputFields){let h=(0,aD.inspect)(M);throw new Error(`Introspection result missing inputFields: ${h}.`)}return new sD.GraphQLInputObjectType({name:M.name,description:M.description,fields:()=>u(M.inputFields),isOneOf:M.isOneOf})}function S(M){if(!M.fields)throw new Error(`Introspection result missing fields: ${(0,aD.inspect)(M)}.`);return(0,Y3.keyValMap)(M.fields,(h)=>h.name,C)}function C(M){let h=Y(M.type);if(!(0,sD.isOutputType)(h)){let GD=(0,aD.inspect)(h);throw new Error(`Introspection must provide output type for fields, but received: ${GD}.`)}if(!M.args){let GD=(0,aD.inspect)(M);throw new Error(`Introspection result missing field args: ${GD}.`)}return{description:M.description,deprecationReason:M.deprecationReason,type:h,args:u(M.args)}}function u(M){return(0,Y3.keyValMap)(M,(h)=>h.name,m)}function m(M){let h=Y(M.type);if(!(0,sD.isInputType)(h)){let XD=(0,aD.inspect)(h);throw new Error(`Introspection must provide input type for arguments, but received: ${XD}.`)}let GD=M.defaultValue!=null?(0,pw.valueFromAST)((0,mw.parseValue)(M.defaultValue),h):void 0;return{description:M.description,type:h,defaultValue:GD,deprecationReason:M.deprecationReason}}function w(M){if(!M.args){let h=(0,aD.inspect)(M);throw new Error(`Introspection result missing directive args: ${h}.`)}if(!M.locations){let h=(0,aD.inspect)(M);throw new Error(`Introspection result missing directive locations: ${h}.`)}return new lw.GraphQLDirective({name:M.name,description:M.description,isRepeatable:M.isRepeatable,locations:M.locations.slice(),args:u(M.args)})}}});var D7=Q((yY)=>{Object.defineProperty(yY,"__esModule",{value:!0});yY.extendSchema=ew;yY.extendSchemaImpl=vY;var sw=hD(),nw=ZD(),iw=kD(),ow=i2(),L6=F4(),F2=s(),NY=S0(),QD=n(),V6=yD(),hY=tD(),gY=V2(),_Y=j0(),tw=$6(),e9=G8(),kY=R6();function ew(D,F,P){if((0,_Y.assertSchema)(D),F!=null&&F.kind===F2.Kind.DOCUMENT||(0,sw.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)(0,tw.assertValidSDLExtension)(F,D);let B=D.toConfig(),Z=vY(B,F,P);return B===Z?D:new _Y.GraphQLSchema(Z)}function vY(D,F,P){var B,Z,X,q;let J=[],Y=Object.create(null),H=[],U,W=[];for(let E of F.definitions)if(E.kind===F2.Kind.SCHEMA_DEFINITION)U=E;else if(E.kind===F2.Kind.SCHEMA_EXTENSION)W.push(E);else if((0,NY.isTypeDefinitionNode)(E))J.push(E);else if((0,NY.isTypeExtensionNode)(E)){let k=E.name.value,T=Y[k];Y[k]=T?T.concat([E]):[E]}else if(E.kind===F2.Kind.DIRECTIVE_DEFINITION)H.push(E);if(Object.keys(Y).length===0&&J.length===0&&H.length===0&&W.length===0&&U==null)return D;let O=Object.create(null);for(let E of D.types)O[E.name]=j(E);for(let E of J){var z;let k=E.name.value;O[k]=(z=xY[k])!==null&&z!==void 0?z:vz(E)}let I={query:D.query&&$(D.query),mutation:D.mutation&&$(D.mutation),subscription:D.subscription&&$(D.subscription),...U&&GD([U]),...GD(W)};return{description:(B=U)===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(K),...H.map(gz)],extensions:Object.create(null),astNode:(X=U)!==null&&X!==void 0?X:D.astNode,extensionASTNodes:D.extensionASTNodes.concat(W),assumeValid:(q=P===null||P===void 0?void 0:P.assumeValid)!==null&&q!==void 0?q:!1};function R(E){if((0,QD.isListType)(E))return new QD.GraphQLList(R(E.ofType));if((0,QD.isNonNullType)(E))return new QD.GraphQLNonNull(R(E.ofType));return $(E)}function $(E){return O[E.name]}function K(E){let k=E.toConfig();return new V6.GraphQLDirective({...k,args:(0,L6.mapValue)(k.args,h)})}function j(E){if((0,hY.isIntrospectionType)(E)||(0,gY.isSpecifiedScalarType)(E))return E;if((0,QD.isScalarType)(E))return C(E);if((0,QD.isObjectType)(E))return u(E);if((0,QD.isInterfaceType)(E))return m(E);if((0,QD.isUnionType)(E))return w(E);if((0,QD.isEnumType)(E))return S(E);if((0,QD.isInputObjectType)(E))return A(E);(0,iw.invariant)(!1,"Unexpected type: "+(0,nw.inspect)(E))}function A(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[];return new QD.GraphQLInputObjectType({...T,fields:()=>({...(0,L6.mapValue)(T.fields,(HD)=>({...HD,type:R(HD.type)})),...IP(f)}),extensionASTNodes:T.extensionASTNodes.concat(f)})}function S(E){var k;let T=E.toConfig(),f=(k=Y[E.name])!==null&&k!==void 0?k:[];return new QD.GraphQLEnumType({...T,values:{...T.values,...$P(f)},extensionASTNodes:T.extensionASTNodes.concat(f)})}function C(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[],HD=T.specifiedByURL;for(let WD of f){var LD;HD=(LD=fY(WD))!==null&&LD!==void 0?LD:HD}return new QD.GraphQLScalarType({...T,specifiedByURL:HD,extensionASTNodes:T.extensionASTNodes.concat(f)})}function u(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[];return new QD.GraphQLObjectType({...T,interfaces:()=>[...E.getInterfaces().map($),...Q1(f)],fields:()=>({...(0,L6.mapValue)(T.fields,M),...z1(f)}),extensionASTNodes:T.extensionASTNodes.concat(f)})}function m(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[];return new QD.GraphQLInterfaceType({...T,interfaces:()=>[...E.getInterfaces().map($),...Q1(f)],fields:()=>({...(0,L6.mapValue)(T.fields,M),...z1(f)}),extensionASTNodes:T.extensionASTNodes.concat(f)})}function w(E){var k;let T=E.toConfig(),f=(k=Y[T.name])!==null&&k!==void 0?k:[];return new QD.GraphQLUnionType({...T,types:()=>[...E.getTypes().map($),...MP(f)],extensionASTNodes:T.extensionASTNodes.concat(f)})}function M(E){return{...E,type:R(E.type),args:E.args&&(0,L6.mapValue)(E.args,h)}}function h(E){return{...E,type:R(E.type)}}function GD(E){let k={};for(let f of E){var T;let HD=(T=f.operationTypes)!==null&&T!==void 0?T:[];for(let LD of HD)k[LD.operation]=XD(LD.type)}return k}function XD(E){var k;let T=E.name.value,f=(k=xY[T])!==null&&k!==void 0?k:O[T];if(f===void 0)throw new Error(`Unknown type: "${T}".`);return f}function s2(E){if(E.kind===F2.Kind.LIST_TYPE)return new QD.GraphQLList(s2(E.type));if(E.kind===F2.Kind.NON_NULL_TYPE)return new QD.GraphQLNonNull(s2(E.type));return XD(E)}function gz(E){var k;return new V6.GraphQLDirective({name:E.name.value,description:(k=E.description)===null||k===void 0?void 0:k.value,locations:E.locations.map(({value:T})=>T),isRepeatable:E.repeatable,args:RP(E.arguments),astNode:E})}function z1(E){let k=Object.create(null);for(let HD of E){var T;let LD=(T=HD.fields)!==null&&T!==void 0?T:[];for(let WD of LD){var f;k[WD.name.value]={type:s2(WD.type),description:(f=WD.description)===null||f===void 0?void 0:f.value,args:RP(WD.arguments),deprecationReason:H3(WD),astNode:WD}}}return k}function RP(E){let k=E!==null&&E!==void 0?E:[],T=Object.create(null);for(let HD of k){var f;let LD=s2(HD.type);T[HD.name.value]={type:LD,description:(f=HD.description)===null||f===void 0?void 0:f.value,defaultValue:(0,kY.valueFromAST)(HD.defaultValue,LD),deprecationReason:H3(HD),astNode:HD}}return T}function IP(E){let k=Object.create(null);for(let HD of E){var T;let LD=(T=HD.fields)!==null&&T!==void 0?T:[];for(let WD of LD){var f;let P8=s2(WD.type);k[WD.name.value]={type:P8,description:(f=WD.description)===null||f===void 0?void 0:f.value,defaultValue:(0,kY.valueFromAST)(WD.defaultValue,P8),deprecationReason:H3(WD),astNode:WD}}}return k}function $P(E){let k=Object.create(null);for(let HD of E){var T;let LD=(T=HD.values)!==null&&T!==void 0?T:[];for(let WD of LD){var f;k[WD.name.value]={description:(f=WD.description)===null||f===void 0?void 0:f.value,deprecationReason:H3(WD),astNode:WD}}}return k}function Q1(E){return E.flatMap((k)=>{var T,f;return(T=(f=k.interfaces)===null||f===void 0?void 0:f.map(XD))!==null&&T!==void 0?T:[]})}function MP(E){return E.flatMap((k)=>{var T,f;return(T=(f=k.types)===null||f===void 0?void 0:f.map(XD))!==null&&T!==void 0?T:[]})}function vz(E){var k;let T=E.name.value,f=(k=Y[T])!==null&&k!==void 0?k:[];switch(E.kind){case F2.Kind.OBJECT_TYPE_DEFINITION:{var HD;let Y2=[E,...f];return new QD.GraphQLObjectType({name:T,description:(HD=E.description)===null||HD===void 0?void 0:HD.value,interfaces:()=>Q1(Y2),fields:()=>z1(Y2),astNode:E,extensionASTNodes:f})}case F2.Kind.INTERFACE_TYPE_DEFINITION:{var LD;let Y2=[E,...f];return new QD.GraphQLInterfaceType({name:T,description:(LD=E.description)===null||LD===void 0?void 0:LD.value,interfaces:()=>Q1(Y2),fields:()=>z1(Y2),astNode:E,extensionASTNodes:f})}case F2.Kind.ENUM_TYPE_DEFINITION:{var WD;let Y2=[E,...f];return new QD.GraphQLEnumType({name:T,description:(WD=E.description)===null||WD===void 0?void 0:WD.value,values:$P(Y2),astNode:E,extensionASTNodes:f})}case F2.Kind.UNION_TYPE_DEFINITION:{var P8;let Y2=[E,...f];return new QD.GraphQLUnionType({name:T,description:(P8=E.description)===null||P8===void 0?void 0:P8.value,types:()=>MP(Y2),astNode:E,extensionASTNodes:f})}case F2.Kind.SCALAR_TYPE_DEFINITION:{var N5;return new QD.GraphQLScalarType({name:T,description:(N5=E.description)===null||N5===void 0?void 0:N5.value,specifiedByURL:fY(E),astNode:E,extensionASTNodes:f})}case F2.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var _5;let Y2=[E,...f];return new QD.GraphQLInputObjectType({name:T,description:(_5=E.description)===null||_5===void 0?void 0:_5.value,fields:()=>IP(Y2),astNode:E,extensionASTNodes:f,isOneOf:Dj(E)})}}}}var xY=(0,ow.keyMap)([...gY.specifiedScalarTypes,...hY.introspectionTypes],(D)=>D.name);function H3(D){let F=(0,e9.getDirectiveValues)(V6.GraphQLDeprecatedDirective,D);return F===null||F===void 0?void 0:F.reason}function fY(D){let F=(0,e9.getDirectiveValues)(V6.GraphQLSpecifiedByDirective,D);return F===null||F===void 0?void 0:F.url}function Dj(D){return Boolean((0,e9.getDirectiveValues)(V6.GraphQLOneOfDirective,D))}});var cY=Q((lY)=>{Object.defineProperty(lY,"__esModule",{value:!0});lY.buildASTSchema=mY;lY.buildSchema=Uj;var Bj=hD(),Zj=s(),Xj=q8(),qj=yD(),Jj=j0(),Yj=$6(),Hj=D7();function mY(D,F){if(D!=null&&D.kind===Zj.Kind.DOCUMENT||(0,Bj.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)(0,Yj.assertValidSDL)(D);let P={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},B=(0,Hj.extendSchemaImpl)(P,D,F);if(B.astNode==null)for(let X of B.types)switch(X.name){case"Query":B.query=X;break;case"Mutation":B.mutation=X;break;case"Subscription":B.subscription=X;break}let Z=[...B.directives,...qj.specifiedDirectives.filter((X)=>B.directives.every((q)=>q.name!==X.name))];return new Jj.GraphQLSchema({...B,directives:Z})}function Uj(D,F){let P=(0,Xj.parse)(D,{noLocation:F===null||F===void 0?void 0:F.noLocation,allowLegacyFragmentVariables:F===null||F===void 0?void 0:F.allowLegacyFragmentVariables});return mY(P,{assumeValidSDL:F===null||F===void 0?void 0:F.assumeValidSDL,assumeValid:F===null||F===void 0?void 0:F.assumeValid})}});var aY=Q((rY)=>{Object.defineProperty(rY,"__esModule",{value:!0});rY.lexicographicSortSchema=Mj;var zj=ZD(),Qj=kD(),Gj=s8(),dY=n8(),gD=n(),Rj=yD(),Ij=tD(),$j=j0();function Mj(D){let F=D.toConfig(),P=(0,Gj.keyValMap)(F7(F.types),(O)=>O.name,W);return new $j.GraphQLSchema({...F,types:Object.values(P),directives:F7(F.directives).map(q),query:X(F.query),mutation:X(F.mutation),subscription:X(F.subscription)});function B(O){if((0,gD.isListType)(O))return new gD.GraphQLList(B(O.ofType));else if((0,gD.isNonNullType)(O))return new gD.GraphQLNonNull(B(O.ofType));return Z(O)}function Z(O){return P[O.name]}function X(O){return O&&Z(O)}function q(O){let z=O.toConfig();return new Rj.GraphQLDirective({...z,locations:pY(z.locations,(I)=>I),args:J(z.args)})}function J(O){return U3(O,(z)=>({...z,type:B(z.type)}))}function Y(O){return U3(O,(z)=>({...z,type:B(z.type),args:z.args&&J(z.args)}))}function H(O){return U3(O,(z)=>({...z,type:B(z.type)}))}function U(O){return F7(O).map(Z)}function W(O){if((0,gD.isScalarType)(O)||(0,Ij.isIntrospectionType)(O))return O;if((0,gD.isObjectType)(O)){let z=O.toConfig();return new gD.GraphQLObjectType({...z,interfaces:()=>U(z.interfaces),fields:()=>Y(z.fields)})}if((0,gD.isInterfaceType)(O)){let z=O.toConfig();return new gD.GraphQLInterfaceType({...z,interfaces:()=>U(z.interfaces),fields:()=>Y(z.fields)})}if((0,gD.isUnionType)(O)){let z=O.toConfig();return new gD.GraphQLUnionType({...z,types:()=>U(z.types)})}if((0,gD.isEnumType)(O)){let z=O.toConfig();return new gD.GraphQLEnumType({...z,values:U3(z.values,(I)=>I)})}if((0,gD.isInputObjectType)(O)){let z=O.toConfig();return new gD.GraphQLInputObjectType({...z,fields:()=>H(z.fields)})}(0,Qj.invariant)(!1,"Unexpected type: "+(0,zj.inspect)(O))}}function U3(D,F){let P=Object.create(null);for(let B of Object.keys(D).sort(dY.naturalCompare))P[B]=F(D[B]);return P}function F7(D){return pY(D,(F)=>F.name)}function pY(D,F){return D.slice().sort((P,B)=>{let Z=F(P),X=F(B);return(0,dY.naturalCompare)(Z,X)})}});var FH=Q((DH)=>{Object.defineProperty(DH,"__esModule",{value:!0});DH.printIntrospectionSchema=jj;DH.printSchema=wj;DH.printType=iY;var Kj=ZD(),Aj=kD(),Cj=c8(),B7=s(),W3=rD(),I8=n(),Z7=yD(),sY=tD(),Lj=V2(),Vj=J6();function wj(D){return nY(D,(F)=>!(0,Z7.isSpecifiedDirective)(F),bj)}function jj(D){return nY(D,Z7.isSpecifiedDirective,sY.isIntrospectionType)}function bj(D){return!(0,Lj.isSpecifiedScalarType)(D)&&!(0,sY.isIntrospectionType)(D)}function nY(D,F,P){let B=D.getDirectives().filter(F),Z=Object.values(D.getTypeMap()).filter(P);return[Sj(D),...B.map((X)=>hj(X)),...Z.map((X)=>iY(X))].filter(Boolean).join(`
185
185
 
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 {
186
+ `)}function Sj(D){if(D.description==null&&Tj(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 P2(D)+`schema {
187
187
  ${F.join(`
188
188
  `)}
189
- }`}function sb(D){let F=D.getQueryType();if(F&&F.name!=="Query")return!1;let P=D.getMutationType();if(P&&P.name!=="Mutation")return!1;let B=D.getSubscriptionType();if(B&&B.name!=="Subscription")return!1;return!0}function EH(D){if(I8.isScalarType(D))return nb(D);if(I8.isObjectType(D))return ib(D);if(I8.isInterfaceType(D))return ob(D);if(I8.isUnionType(D))return tb(D);if(I8.isEnumType(D))return eb(D);if(I8.isInputObjectType(D))return DS(D);yb.invariant(!1,"Unexpected type: "+gb.inspect(D))}function nb(D){return P0(D)+`scalar ${D.name}`+PS(D)}function AH(D){let F=D.getInterfaces();return F.length?" implements "+F.map((P)=>P.name).join(" & "):""}function ib(D){return P0(D)+`type ${D.name}`+AH(D)+CH(D)}function ob(D){return P0(D)+`interface ${D.name}`+AH(D)+CH(D)}function tb(D){let F=D.getTypes(),P=F.length?" = "+F.join(" | "):"";return P0(D)+"union "+D.name+P}function eb(D){let F=D.getValues().map((P,B)=>P0(P," ",!B)+" "+P.name+$7(P.deprecationReason));return P0(D)+`enum ${D.name}`+I7(F)}function DS(D){let F=Object.values(D.getFields()).map((P,B)=>P0(P," ",!B)+" "+Q7(P));return P0(D)+`input ${D.name}`+(D.isOneOf?" @oneOf":"")+I7(F)}function CH(D){let F=Object.values(D.getFields()).map((P,B)=>P0(P," ",!B)+" "+P.name+LH(P.args," ")+": "+String(P.type)+$7(P.deprecationReason));return I7(F)}function I7(D){return D.length!==0?` {
189
+ }`}function Tj(D){let F=D.getQueryType();if(F&&F.name!=="Query")return!1;let P=D.getMutationType();if(P&&P.name!=="Mutation")return!1;let B=D.getSubscriptionType();if(B&&B.name!=="Subscription")return!1;return!0}function iY(D){if((0,I8.isScalarType)(D))return uj(D);if((0,I8.isObjectType)(D))return Nj(D);if((0,I8.isInterfaceType)(D))return _j(D);if((0,I8.isUnionType)(D))return kj(D);if((0,I8.isEnumType)(D))return xj(D);if((0,I8.isInputObjectType)(D))return fj(D);(0,Aj.invariant)(!1,"Unexpected type: "+(0,Kj.inspect)(D))}function uj(D){return P2(D)+`scalar ${D.name}`+gj(D)}function oY(D){let F=D.getInterfaces();return F.length?" implements "+F.map((P)=>P.name).join(" & "):""}function Nj(D){return P2(D)+`type ${D.name}`+oY(D)+tY(D)}function _j(D){return P2(D)+`interface ${D.name}`+oY(D)+tY(D)}function kj(D){let F=D.getTypes(),P=F.length?" = "+F.join(" | "):"";return P2(D)+"union "+D.name+P}function xj(D){let F=D.getValues().map((P,B)=>P2(P," ",!B)+" "+P.name+q7(P.deprecationReason));return P2(D)+`enum ${D.name}`+X7(F)}function fj(D){let F=Object.values(D.getFields()).map((P,B)=>P2(P," ",!B)+" "+P7(P));return P2(D)+`input ${D.name}`+(D.isOneOf?" @oneOf":"")+X7(F)}function tY(D){let F=Object.values(D.getFields()).map((P,B)=>P2(P," ",!B)+" "+P.name+eY(P.args," ")+": "+String(P.type)+q7(P.deprecationReason));return X7(F)}function X7(D){return D.length!==0?` {
190
190
  `+D.join(`
191
191
  `)+`
192
- }`:""}function LH(D,F=""){if(D.length===0)return"";if(D.every((P)=>!P.description))return"("+D.map(Q7).join(", ")+")";return`(
193
- `+D.map((P,B)=>P0(P," "+F,!B)+" "+F+Q7(P)).join(`
192
+ }`:""}function eY(D,F=""){if(D.length===0)return"";if(D.every((P)=>!P.description))return"("+D.map(P7).join(", ")+")";return`(
193
+ `+D.map((P,B)=>P2(P," "+F,!B)+" "+F+P7(P)).join(`
194
194
  `)+`
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?`
195
+ `+F+")"}function P7(D){let F=(0,Vj.astFromValue)(D.defaultValue,D.type),P=D.name+": "+String(D.type);if(F)P+=` = ${(0,W3.print)(F)}`;return P+q7(D.deprecationReason)}function hj(D){return P2(D)+"directive @"+D.name+eY(D.args)+(D.isRepeatable?" repeatable":"")+" on "+D.locations.join(" | ")}function q7(D){if(D==null)return"";if(D!==Z7.DEFAULT_DEPRECATION_REASON)return` @deprecated(reason: ${(0,W3.print)({kind:B7.Kind.STRING,value:D})})`;return" @deprecated"}function gj(D){if(D.specifiedByURL==null)return"";return` @specifiedBy(url: ${(0,W3.print)({kind:B7.Kind.STRING,value:D.specifiedByURL})})`}function P2(D,F="",P=!0){let{description:B}=D;if(B==null)return"";let Z=(0,W3.print)({kind:B7.Kind.STRING,value:B,block:(0,Cj.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=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
- `:`
200
- `)+P,Z=B+1,B=D.indexOf(`
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"],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
- `);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
- `)Z+=bW(W);else if(H===`
206
- `)Z+=bW(q)}}return Z};SW.exports=(D,F,P)=>{return String(D).normalize().replace(/\r\n/g,`
198
+ `}});var BH=Q((PH)=>{Object.defineProperty(PH,"__esModule",{value:!0});PH.concatAST=cj;var lj=s();function cj(D){let F=[];for(let P of D)F.push(...P.definitions);return{kind:lj.Kind.DOCUMENT,definitions:F}}});var JH=Q((qH)=>{Object.defineProperty(qH,"__esModule",{value:!0});qH.separateOperations=rj;var O3=s(),pj=K0();function rj(D){let F=[],P=Object.create(null);for(let Z of D.definitions)switch(Z.kind){case O3.Kind.OPERATION_DEFINITION:F.push(Z);break;case O3.Kind.FRAGMENT_DEFINITION:P[Z.name.value]=ZH(Z.selectionSet);break;default:}let B=Object.create(null);for(let Z of F){let X=new Set;for(let J of ZH(Z.selectionSet))XH(X,P,J);let q=Z.name?Z.name.value:"";B[q]={kind:O3.Kind.DOCUMENT,definitions:D.definitions.filter((J)=>J===Z||J.kind===O3.Kind.FRAGMENT_DEFINITION&&X.has(J.name.value))}}return B}function XH(D,F,P){if(!D.has(P)){D.add(P);let B=F[P];if(B!==void 0)for(let Z of B)XH(D,F,Z)}}function ZH(D){let F=[];return(0,pj.visit)(D,{FragmentSpread(P){F.push(P.name.value)}}),F}});var WH=Q((UH)=>{Object.defineProperty(UH,"__esModule",{value:!0});UH.stripIgnoredCharacters=nj;var sj=c8(),YH=A1(),HH=L1(),J7=d8();function nj(D){let F=(0,HH.isSource)(D)?D:new HH.Source(D),P=F.body,B=new YH.Lexer(F),Z="",X=!1;while(B.advance().kind!==J7.TokenKind.EOF){let q=B.token,J=q.kind,Y=!(0,YH.isPunctuatorTokenKind)(q.kind);if(X){if(Y||q.kind===J7.TokenKind.SPREAD)Z+=" "}let H=P.slice(q.start,q.end);if(J===J7.TokenKind.BLOCK_STRING)Z+=(0,sj.printBlockString)(q.value,{minimize:!0});else Z+=H;X=Y}return Z}});var QH=Q((zH)=>{Object.defineProperty(zH,"__esModule",{value:!0});zH.assertValidName=Db;zH.isValidNameError=OH;var oj=hD(),tj=g(),ej=i8();function Db(D){let F=OH(D);if(F)throw F;return D}function OH(D){if(typeof D==="string"||(0,oj.devAssert)(!1,"Expected name to be a string."),D.startsWith("__"))return new tj.GraphQLError(`Name "${D}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,ej.assertName)(D)}catch(F){return F}}});var LH=Q((AH)=>{Object.defineProperty(AH,"__esModule",{value:!0});AH.DangerousChangeType=AH.BreakingChangeType=void 0;AH.findBreakingChanges=Yb;AH.findDangerousChanges=Hb;var Bb=ZD(),EH=kD(),GH=i2(),Zb=rD(),FD=n(),Xb=V2(),qb=J6(),Jb=e4(),ED;AH.BreakingChangeType=ED;(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"})(ED||(AH.BreakingChangeType=ED={}));var $2;AH.DangerousChangeType=$2;(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"})($2||(AH.DangerousChangeType=$2={}));function Yb(D,F){return KH(D,F).filter((P)=>(P.type in ED))}function Hb(D,F){return KH(D,F).filter((P)=>(P.type in $2))}function KH(D,F){return[...Wb(D,F),...Ub(D,F)]}function Ub(D,F){let P=[],B=m2(D.getDirectives(),F.getDirectives());for(let Z of B.removed)P.push({type:ED.DIRECTIVE_REMOVED,description:`${Z.name} was removed.`});for(let[Z,X]of B.persisted){let q=m2(Z.args,X.args);for(let J of q.added)if((0,FD.isRequiredArgument)(J))P.push({type:ED.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${J.name} on directive ${Z.name} was added.`});for(let J of q.removed)P.push({type:ED.DIRECTIVE_ARG_REMOVED,description:`${J.name} was removed from ${Z.name}.`});if(Z.isRepeatable&&!X.isRepeatable)P.push({type:ED.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${Z.name}.`});for(let J of Z.locations)if(!X.locations.includes(J))P.push({type:ED.DIRECTIVE_LOCATION_REMOVED,description:`${J} was removed from ${Z.name}.`})}return P}function Wb(D,F){let P=[],B=m2(Object.values(D.getTypeMap()),Object.values(F.getTypeMap()));for(let Z of B.removed)P.push({type:ED.TYPE_REMOVED,description:(0,Xb.isSpecifiedScalarType)(Z)?`Standard scalar ${Z.name} was removed because it is not referenced anymore.`:`${Z.name} was removed.`});for(let[Z,X]of B.persisted)if((0,FD.isEnumType)(Z)&&(0,FD.isEnumType)(X))P.push(...Qb(Z,X));else if((0,FD.isUnionType)(Z)&&(0,FD.isUnionType)(X))P.push(...zb(Z,X));else if((0,FD.isInputObjectType)(Z)&&(0,FD.isInputObjectType)(X))P.push(...Ob(Z,X));else if((0,FD.isObjectType)(Z)&&(0,FD.isObjectType)(X))P.push(...IH(Z,X),...RH(Z,X));else if((0,FD.isInterfaceType)(Z)&&(0,FD.isInterfaceType)(X))P.push(...IH(Z,X),...RH(Z,X));else if(Z.constructor!==X.constructor)P.push({type:ED.TYPE_CHANGED_KIND,description:`${Z.name} changed from ${$H(Z)} to ${$H(X)}.`});return P}function Ob(D,F){let P=[],B=m2(Object.values(D.getFields()),Object.values(F.getFields()));for(let Z of B.added)if((0,FD.isRequiredInputField)(Z))P.push({type:ED.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${Z.name} on input type ${D.name} was added.`});else P.push({type:$2.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:ED.FIELD_REMOVED,description:`${D.name}.${Z.name} was removed.`});for(let[Z,X]of B.persisted)if(!j6(Z.type,X.type))P.push({type:ED.FIELD_CHANGED_KIND,description:`${D.name}.${Z.name} changed type from ${String(Z.type)} to ${String(X.type)}.`});return P}function zb(D,F){let P=[],B=m2(D.getTypes(),F.getTypes());for(let Z of B.added)P.push({type:$2.TYPE_ADDED_TO_UNION,description:`${Z.name} was added to union type ${D.name}.`});for(let Z of B.removed)P.push({type:ED.TYPE_REMOVED_FROM_UNION,description:`${Z.name} was removed from union type ${D.name}.`});return P}function Qb(D,F){let P=[],B=m2(D.getValues(),F.getValues());for(let Z of B.added)P.push({type:$2.VALUE_ADDED_TO_ENUM,description:`${Z.name} was added to enum type ${D.name}.`});for(let Z of B.removed)P.push({type:ED.VALUE_REMOVED_FROM_ENUM,description:`${Z.name} was removed from enum type ${D.name}.`});return P}function RH(D,F){let P=[],B=m2(D.getInterfaces(),F.getInterfaces());for(let Z of B.added)P.push({type:$2.IMPLEMENTED_INTERFACE_ADDED,description:`${Z.name} added to interfaces implemented by ${D.name}.`});for(let Z of B.removed)P.push({type:ED.IMPLEMENTED_INTERFACE_REMOVED,description:`${D.name} no longer implements interface ${Z.name}.`});return P}function IH(D,F){let P=[],B=m2(Object.values(D.getFields()),Object.values(F.getFields()));for(let Z of B.removed)P.push({type:ED.FIELD_REMOVED,description:`${D.name}.${Z.name} was removed.`});for(let[Z,X]of B.persisted)if(P.push(...Gb(D,Z,X)),!w6(Z.type,X.type))P.push({type:ED.FIELD_CHANGED_KIND,description:`${D.name}.${Z.name} changed type from ${String(Z.type)} to ${String(X.type)}.`});return P}function Gb(D,F,P){let B=[],Z=m2(F.args,P.args);for(let X of Z.removed)B.push({type:ED.ARG_REMOVED,description:`${D.name}.${F.name} arg ${X.name} was removed.`});for(let[X,q]of Z.persisted)if(!j6(X.type,q.type))B.push({type:ED.ARG_CHANGED_KIND,description:`${D.name}.${F.name} arg ${X.name} has changed type from ${String(X.type)} to ${String(q.type)}.`});else if(X.defaultValue!==void 0)if(q.defaultValue===void 0)B.push({type:$2.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${F.name} arg ${X.name} defaultValue was removed.`});else{let Y=MH(X.defaultValue,X.type),H=MH(q.defaultValue,q.type);if(Y!==H)B.push({type:$2.ARG_DEFAULT_VALUE_CHANGE,description:`${D.name}.${F.name} arg ${X.name} has changed defaultValue from ${Y} to ${H}.`})}for(let X of Z.added)if((0,FD.isRequiredArgument)(X))B.push({type:ED.REQUIRED_ARG_ADDED,description:`A required arg ${X.name} on ${D.name}.${F.name} was added.`});else B.push({type:$2.OPTIONAL_ARG_ADDED,description:`An optional arg ${X.name} on ${D.name}.${F.name} was added.`});return B}function w6(D,F){if((0,FD.isListType)(D))return(0,FD.isListType)(F)&&w6(D.ofType,F.ofType)||(0,FD.isNonNullType)(F)&&w6(D,F.ofType);if((0,FD.isNonNullType)(D))return(0,FD.isNonNullType)(F)&&w6(D.ofType,F.ofType);return(0,FD.isNamedType)(F)&&D.name===F.name||(0,FD.isNonNullType)(F)&&w6(D,F.ofType)}function j6(D,F){if((0,FD.isListType)(D))return(0,FD.isListType)(F)&&j6(D.ofType,F.ofType);if((0,FD.isNonNullType)(D))return(0,FD.isNonNullType)(F)&&j6(D.ofType,F.ofType)||!(0,FD.isNonNullType)(F)&&j6(D.ofType,F);return(0,FD.isNamedType)(F)&&D.name===F.name}function $H(D){if((0,FD.isScalarType)(D))return"a Scalar type";if((0,FD.isObjectType)(D))return"an Object type";if((0,FD.isInterfaceType)(D))return"an Interface type";if((0,FD.isUnionType)(D))return"a Union type";if((0,FD.isEnumType)(D))return"an Enum type";if((0,FD.isInputObjectType)(D))return"an Input type";(0,EH.invariant)(!1,"Unexpected type: "+(0,Bb.inspect)(D))}function MH(D,F){let P=(0,qb.astFromValue)(D,F);return P!=null||(0,EH.invariant)(!1),(0,Zb.print)((0,Jb.sortValueNode)(P))}function m2(D,F){let P=[],B=[],Z=[],X=(0,GH.keyMap)(D,({name:J})=>J),q=(0,GH.keyMap)(F,({name:J})=>J);for(let J of D){let Y=q[J.name];if(Y===void 0)B.push(J);else Z.push([J,Y])}for(let J of F)if(X[J.name]===void 0)P.push(J);return{added:P,persisted:Z,removed:B}}});var bH=Q((DD)=>{Object.defineProperty(DD,"__esModule",{value:!0});Object.defineProperty(DD,"BreakingChangeType",{enumerable:!0,get:function(){return z3.BreakingChangeType}});Object.defineProperty(DD,"DangerousChangeType",{enumerable:!0,get:function(){return z3.DangerousChangeType}});Object.defineProperty(DD,"TypeInfo",{enumerable:!0,get:function(){return wH.TypeInfo}});Object.defineProperty(DD,"assertValidName",{enumerable:!0,get:function(){return jH.assertValidName}});Object.defineProperty(DD,"astFromValue",{enumerable:!0,get:function(){return bb.astFromValue}});Object.defineProperty(DD,"buildASTSchema",{enumerable:!0,get:function(){return VH.buildASTSchema}});Object.defineProperty(DD,"buildClientSchema",{enumerable:!0,get:function(){return Ab.buildClientSchema}});Object.defineProperty(DD,"buildSchema",{enumerable:!0,get:function(){return VH.buildSchema}});Object.defineProperty(DD,"coerceInputValue",{enumerable:!0,get:function(){return Sb.coerceInputValue}});Object.defineProperty(DD,"concatAST",{enumerable:!0,get:function(){return Tb.concatAST}});Object.defineProperty(DD,"doTypesOverlap",{enumerable:!0,get:function(){return U7.doTypesOverlap}});Object.defineProperty(DD,"extendSchema",{enumerable:!0,get:function(){return Cb.extendSchema}});Object.defineProperty(DD,"findBreakingChanges",{enumerable:!0,get:function(){return z3.findBreakingChanges}});Object.defineProperty(DD,"findDangerousChanges",{enumerable:!0,get:function(){return z3.findDangerousChanges}});Object.defineProperty(DD,"getIntrospectionQuery",{enumerable:!0,get:function(){return $b.getIntrospectionQuery}});Object.defineProperty(DD,"getOperationAST",{enumerable:!0,get:function(){return Mb.getOperationAST}});Object.defineProperty(DD,"getOperationRootType",{enumerable:!0,get:function(){return Eb.getOperationRootType}});Object.defineProperty(DD,"introspectionFromSchema",{enumerable:!0,get:function(){return Kb.introspectionFromSchema}});Object.defineProperty(DD,"isEqualType",{enumerable:!0,get:function(){return U7.isEqualType}});Object.defineProperty(DD,"isTypeSubTypeOf",{enumerable:!0,get:function(){return U7.isTypeSubTypeOf}});Object.defineProperty(DD,"isValidNameError",{enumerable:!0,get:function(){return jH.isValidNameError}});Object.defineProperty(DD,"lexicographicSortSchema",{enumerable:!0,get:function(){return Lb.lexicographicSortSchema}});Object.defineProperty(DD,"printIntrospectionSchema",{enumerable:!0,get:function(){return H7.printIntrospectionSchema}});Object.defineProperty(DD,"printSchema",{enumerable:!0,get:function(){return H7.printSchema}});Object.defineProperty(DD,"printType",{enumerable:!0,get:function(){return H7.printType}});Object.defineProperty(DD,"separateOperations",{enumerable:!0,get:function(){return ub.separateOperations}});Object.defineProperty(DD,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Nb.stripIgnoredCharacters}});Object.defineProperty(DD,"typeFromAST",{enumerable:!0,get:function(){return Vb.typeFromAST}});Object.defineProperty(DD,"valueFromAST",{enumerable:!0,get:function(){return wb.valueFromAST}});Object.defineProperty(DD,"valueFromASTUntyped",{enumerable:!0,get:function(){return jb.valueFromASTUntyped}});Object.defineProperty(DD,"visitWithTypeInfo",{enumerable:!0,get:function(){return wH.visitWithTypeInfo}});var $b=t9(),Mb=LY(),Eb=wY(),Kb=bY(),Ab=uY(),VH=cY(),Cb=D7(),Lb=aY(),H7=FH(),Vb=w2(),wb=R6(),jb=X4(),bb=J6(),wH=m1(),Sb=G9(),Tb=BH(),ub=JH(),Nb=WH(),U7=D6(),jH=QH(),z3=LH()});var l2=Q((G)=>{Object.defineProperty(G,"__esModule",{value:!0});Object.defineProperty(G,"BREAK",{enumerable:!0,get:function(){return PD.BREAK}});Object.defineProperty(G,"BreakingChangeType",{enumerable:!0,get:function(){return BD.BreakingChangeType}});Object.defineProperty(G,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return V.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(G,"DangerousChangeType",{enumerable:!0,get:function(){return BD.DangerousChangeType}});Object.defineProperty(G,"DirectiveLocation",{enumerable:!0,get:function(){return PD.DirectiveLocation}});Object.defineProperty(G,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return d.ExecutableDefinitionsRule}});Object.defineProperty(G,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return d.FieldsOnCorrectTypeRule}});Object.defineProperty(G,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return d.FragmentsOnCompositeTypesRule}});Object.defineProperty(G,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return V.GRAPHQL_MAX_INT}});Object.defineProperty(G,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return V.GRAPHQL_MIN_INT}});Object.defineProperty(G,"GraphQLBoolean",{enumerable:!0,get:function(){return V.GraphQLBoolean}});Object.defineProperty(G,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return V.GraphQLDeprecatedDirective}});Object.defineProperty(G,"GraphQLDirective",{enumerable:!0,get:function(){return V.GraphQLDirective}});Object.defineProperty(G,"GraphQLEnumType",{enumerable:!0,get:function(){return V.GraphQLEnumType}});Object.defineProperty(G,"GraphQLError",{enumerable:!0,get:function(){return b6.GraphQLError}});Object.defineProperty(G,"GraphQLFloat",{enumerable:!0,get:function(){return V.GraphQLFloat}});Object.defineProperty(G,"GraphQLID",{enumerable:!0,get:function(){return V.GraphQLID}});Object.defineProperty(G,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return V.GraphQLIncludeDirective}});Object.defineProperty(G,"GraphQLInputObjectType",{enumerable:!0,get:function(){return V.GraphQLInputObjectType}});Object.defineProperty(G,"GraphQLInt",{enumerable:!0,get:function(){return V.GraphQLInt}});Object.defineProperty(G,"GraphQLInterfaceType",{enumerable:!0,get:function(){return V.GraphQLInterfaceType}});Object.defineProperty(G,"GraphQLList",{enumerable:!0,get:function(){return V.GraphQLList}});Object.defineProperty(G,"GraphQLNonNull",{enumerable:!0,get:function(){return V.GraphQLNonNull}});Object.defineProperty(G,"GraphQLObjectType",{enumerable:!0,get:function(){return V.GraphQLObjectType}});Object.defineProperty(G,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return V.GraphQLOneOfDirective}});Object.defineProperty(G,"GraphQLScalarType",{enumerable:!0,get:function(){return V.GraphQLScalarType}});Object.defineProperty(G,"GraphQLSchema",{enumerable:!0,get:function(){return V.GraphQLSchema}});Object.defineProperty(G,"GraphQLSkipDirective",{enumerable:!0,get:function(){return V.GraphQLSkipDirective}});Object.defineProperty(G,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return V.GraphQLSpecifiedByDirective}});Object.defineProperty(G,"GraphQLString",{enumerable:!0,get:function(){return V.GraphQLString}});Object.defineProperty(G,"GraphQLUnionType",{enumerable:!0,get:function(){return V.GraphQLUnionType}});Object.defineProperty(G,"Kind",{enumerable:!0,get:function(){return PD.Kind}});Object.defineProperty(G,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return d.KnownArgumentNamesRule}});Object.defineProperty(G,"KnownDirectivesRule",{enumerable:!0,get:function(){return d.KnownDirectivesRule}});Object.defineProperty(G,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return d.KnownFragmentNamesRule}});Object.defineProperty(G,"KnownTypeNamesRule",{enumerable:!0,get:function(){return d.KnownTypeNamesRule}});Object.defineProperty(G,"Lexer",{enumerable:!0,get:function(){return PD.Lexer}});Object.defineProperty(G,"Location",{enumerable:!0,get:function(){return PD.Location}});Object.defineProperty(G,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return d.LoneAnonymousOperationRule}});Object.defineProperty(G,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return d.LoneSchemaDefinitionRule}});Object.defineProperty(G,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return d.MaxIntrospectionDepthRule}});Object.defineProperty(G,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return d.NoDeprecatedCustomRule}});Object.defineProperty(G,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return d.NoFragmentCyclesRule}});Object.defineProperty(G,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return d.NoSchemaIntrospectionCustomRule}});Object.defineProperty(G,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return d.NoUndefinedVariablesRule}});Object.defineProperty(G,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return d.NoUnusedFragmentsRule}});Object.defineProperty(G,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return d.NoUnusedVariablesRule}});Object.defineProperty(G,"OperationTypeNode",{enumerable:!0,get:function(){return PD.OperationTypeNode}});Object.defineProperty(G,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return d.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(G,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return d.PossibleFragmentSpreadsRule}});Object.defineProperty(G,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return d.PossibleTypeExtensionsRule}});Object.defineProperty(G,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return d.ProvidedRequiredArgumentsRule}});Object.defineProperty(G,"ScalarLeafsRule",{enumerable:!0,get:function(){return d.ScalarLeafsRule}});Object.defineProperty(G,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return V.SchemaMetaFieldDef}});Object.defineProperty(G,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return d.SingleFieldSubscriptionsRule}});Object.defineProperty(G,"Source",{enumerable:!0,get:function(){return PD.Source}});Object.defineProperty(G,"Token",{enumerable:!0,get:function(){return PD.Token}});Object.defineProperty(G,"TokenKind",{enumerable:!0,get:function(){return PD.TokenKind}});Object.defineProperty(G,"TypeInfo",{enumerable:!0,get:function(){return BD.TypeInfo}});Object.defineProperty(G,"TypeKind",{enumerable:!0,get:function(){return V.TypeKind}});Object.defineProperty(G,"TypeMetaFieldDef",{enumerable:!0,get:function(){return V.TypeMetaFieldDef}});Object.defineProperty(G,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return V.TypeNameMetaFieldDef}});Object.defineProperty(G,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return d.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(G,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return d.UniqueArgumentNamesRule}});Object.defineProperty(G,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return d.UniqueDirectiveNamesRule}});Object.defineProperty(G,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return d.UniqueDirectivesPerLocationRule}});Object.defineProperty(G,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return d.UniqueEnumValueNamesRule}});Object.defineProperty(G,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return d.UniqueFieldDefinitionNamesRule}});Object.defineProperty(G,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return d.UniqueFragmentNamesRule}});Object.defineProperty(G,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return d.UniqueInputFieldNamesRule}});Object.defineProperty(G,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return d.UniqueOperationNamesRule}});Object.defineProperty(G,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return d.UniqueOperationTypesRule}});Object.defineProperty(G,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return d.UniqueTypeNamesRule}});Object.defineProperty(G,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return d.UniqueVariableNamesRule}});Object.defineProperty(G,"ValidationContext",{enumerable:!0,get:function(){return d.ValidationContext}});Object.defineProperty(G,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return d.ValuesOfCorrectTypeRule}});Object.defineProperty(G,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return d.VariablesAreInputTypesRule}});Object.defineProperty(G,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return d.VariablesInAllowedPositionRule}});Object.defineProperty(G,"__Directive",{enumerable:!0,get:function(){return V.__Directive}});Object.defineProperty(G,"__DirectiveLocation",{enumerable:!0,get:function(){return V.__DirectiveLocation}});Object.defineProperty(G,"__EnumValue",{enumerable:!0,get:function(){return V.__EnumValue}});Object.defineProperty(G,"__Field",{enumerable:!0,get:function(){return V.__Field}});Object.defineProperty(G,"__InputValue",{enumerable:!0,get:function(){return V.__InputValue}});Object.defineProperty(G,"__Schema",{enumerable:!0,get:function(){return V.__Schema}});Object.defineProperty(G,"__Type",{enumerable:!0,get:function(){return V.__Type}});Object.defineProperty(G,"__TypeKind",{enumerable:!0,get:function(){return V.__TypeKind}});Object.defineProperty(G,"assertAbstractType",{enumerable:!0,get:function(){return V.assertAbstractType}});Object.defineProperty(G,"assertCompositeType",{enumerable:!0,get:function(){return V.assertCompositeType}});Object.defineProperty(G,"assertDirective",{enumerable:!0,get:function(){return V.assertDirective}});Object.defineProperty(G,"assertEnumType",{enumerable:!0,get:function(){return V.assertEnumType}});Object.defineProperty(G,"assertEnumValueName",{enumerable:!0,get:function(){return V.assertEnumValueName}});Object.defineProperty(G,"assertInputObjectType",{enumerable:!0,get:function(){return V.assertInputObjectType}});Object.defineProperty(G,"assertInputType",{enumerable:!0,get:function(){return V.assertInputType}});Object.defineProperty(G,"assertInterfaceType",{enumerable:!0,get:function(){return V.assertInterfaceType}});Object.defineProperty(G,"assertLeafType",{enumerable:!0,get:function(){return V.assertLeafType}});Object.defineProperty(G,"assertListType",{enumerable:!0,get:function(){return V.assertListType}});Object.defineProperty(G,"assertName",{enumerable:!0,get:function(){return V.assertName}});Object.defineProperty(G,"assertNamedType",{enumerable:!0,get:function(){return V.assertNamedType}});Object.defineProperty(G,"assertNonNullType",{enumerable:!0,get:function(){return V.assertNonNullType}});Object.defineProperty(G,"assertNullableType",{enumerable:!0,get:function(){return V.assertNullableType}});Object.defineProperty(G,"assertObjectType",{enumerable:!0,get:function(){return V.assertObjectType}});Object.defineProperty(G,"assertOutputType",{enumerable:!0,get:function(){return V.assertOutputType}});Object.defineProperty(G,"assertScalarType",{enumerable:!0,get:function(){return V.assertScalarType}});Object.defineProperty(G,"assertSchema",{enumerable:!0,get:function(){return V.assertSchema}});Object.defineProperty(G,"assertType",{enumerable:!0,get:function(){return V.assertType}});Object.defineProperty(G,"assertUnionType",{enumerable:!0,get:function(){return V.assertUnionType}});Object.defineProperty(G,"assertValidName",{enumerable:!0,get:function(){return BD.assertValidName}});Object.defineProperty(G,"assertValidSchema",{enumerable:!0,get:function(){return V.assertValidSchema}});Object.defineProperty(G,"assertWrappingType",{enumerable:!0,get:function(){return V.assertWrappingType}});Object.defineProperty(G,"astFromValue",{enumerable:!0,get:function(){return BD.astFromValue}});Object.defineProperty(G,"buildASTSchema",{enumerable:!0,get:function(){return BD.buildASTSchema}});Object.defineProperty(G,"buildClientSchema",{enumerable:!0,get:function(){return BD.buildClientSchema}});Object.defineProperty(G,"buildSchema",{enumerable:!0,get:function(){return BD.buildSchema}});Object.defineProperty(G,"coerceInputValue",{enumerable:!0,get:function(){return BD.coerceInputValue}});Object.defineProperty(G,"concatAST",{enumerable:!0,get:function(){return BD.concatAST}});Object.defineProperty(G,"createSourceEventStream",{enumerable:!0,get:function(){return u2.createSourceEventStream}});Object.defineProperty(G,"defaultFieldResolver",{enumerable:!0,get:function(){return u2.defaultFieldResolver}});Object.defineProperty(G,"defaultTypeResolver",{enumerable:!0,get:function(){return u2.defaultTypeResolver}});Object.defineProperty(G,"doTypesOverlap",{enumerable:!0,get:function(){return BD.doTypesOverlap}});Object.defineProperty(G,"execute",{enumerable:!0,get:function(){return u2.execute}});Object.defineProperty(G,"executeSync",{enumerable:!0,get:function(){return u2.executeSync}});Object.defineProperty(G,"extendSchema",{enumerable:!0,get:function(){return BD.extendSchema}});Object.defineProperty(G,"findBreakingChanges",{enumerable:!0,get:function(){return BD.findBreakingChanges}});Object.defineProperty(G,"findDangerousChanges",{enumerable:!0,get:function(){return BD.findDangerousChanges}});Object.defineProperty(G,"formatError",{enumerable:!0,get:function(){return b6.formatError}});Object.defineProperty(G,"getArgumentValues",{enumerable:!0,get:function(){return u2.getArgumentValues}});Object.defineProperty(G,"getDirectiveValues",{enumerable:!0,get:function(){return u2.getDirectiveValues}});Object.defineProperty(G,"getEnterLeaveForKind",{enumerable:!0,get:function(){return PD.getEnterLeaveForKind}});Object.defineProperty(G,"getIntrospectionQuery",{enumerable:!0,get:function(){return BD.getIntrospectionQuery}});Object.defineProperty(G,"getLocation",{enumerable:!0,get:function(){return PD.getLocation}});Object.defineProperty(G,"getNamedType",{enumerable:!0,get:function(){return V.getNamedType}});Object.defineProperty(G,"getNullableType",{enumerable:!0,get:function(){return V.getNullableType}});Object.defineProperty(G,"getOperationAST",{enumerable:!0,get:function(){return BD.getOperationAST}});Object.defineProperty(G,"getOperationRootType",{enumerable:!0,get:function(){return BD.getOperationRootType}});Object.defineProperty(G,"getVariableValues",{enumerable:!0,get:function(){return u2.getVariableValues}});Object.defineProperty(G,"getVisitFn",{enumerable:!0,get:function(){return PD.getVisitFn}});Object.defineProperty(G,"graphql",{enumerable:!0,get:function(){return TH.graphql}});Object.defineProperty(G,"graphqlSync",{enumerable:!0,get:function(){return TH.graphqlSync}});Object.defineProperty(G,"introspectionFromSchema",{enumerable:!0,get:function(){return BD.introspectionFromSchema}});Object.defineProperty(G,"introspectionTypes",{enumerable:!0,get:function(){return V.introspectionTypes}});Object.defineProperty(G,"isAbstractType",{enumerable:!0,get:function(){return V.isAbstractType}});Object.defineProperty(G,"isCompositeType",{enumerable:!0,get:function(){return V.isCompositeType}});Object.defineProperty(G,"isConstValueNode",{enumerable:!0,get:function(){return PD.isConstValueNode}});Object.defineProperty(G,"isDefinitionNode",{enumerable:!0,get:function(){return PD.isDefinitionNode}});Object.defineProperty(G,"isDirective",{enumerable:!0,get:function(){return V.isDirective}});Object.defineProperty(G,"isEnumType",{enumerable:!0,get:function(){return V.isEnumType}});Object.defineProperty(G,"isEqualType",{enumerable:!0,get:function(){return BD.isEqualType}});Object.defineProperty(G,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return PD.isExecutableDefinitionNode}});Object.defineProperty(G,"isInputObjectType",{enumerable:!0,get:function(){return V.isInputObjectType}});Object.defineProperty(G,"isInputType",{enumerable:!0,get:function(){return V.isInputType}});Object.defineProperty(G,"isInterfaceType",{enumerable:!0,get:function(){return V.isInterfaceType}});Object.defineProperty(G,"isIntrospectionType",{enumerable:!0,get:function(){return V.isIntrospectionType}});Object.defineProperty(G,"isLeafType",{enumerable:!0,get:function(){return V.isLeafType}});Object.defineProperty(G,"isListType",{enumerable:!0,get:function(){return V.isListType}});Object.defineProperty(G,"isNamedType",{enumerable:!0,get:function(){return V.isNamedType}});Object.defineProperty(G,"isNonNullType",{enumerable:!0,get:function(){return V.isNonNullType}});Object.defineProperty(G,"isNullableType",{enumerable:!0,get:function(){return V.isNullableType}});Object.defineProperty(G,"isObjectType",{enumerable:!0,get:function(){return V.isObjectType}});Object.defineProperty(G,"isOutputType",{enumerable:!0,get:function(){return V.isOutputType}});Object.defineProperty(G,"isRequiredArgument",{enumerable:!0,get:function(){return V.isRequiredArgument}});Object.defineProperty(G,"isRequiredInputField",{enumerable:!0,get:function(){return V.isRequiredInputField}});Object.defineProperty(G,"isScalarType",{enumerable:!0,get:function(){return V.isScalarType}});Object.defineProperty(G,"isSchema",{enumerable:!0,get:function(){return V.isSchema}});Object.defineProperty(G,"isSelectionNode",{enumerable:!0,get:function(){return PD.isSelectionNode}});Object.defineProperty(G,"isSpecifiedDirective",{enumerable:!0,get:function(){return V.isSpecifiedDirective}});Object.defineProperty(G,"isSpecifiedScalarType",{enumerable:!0,get:function(){return V.isSpecifiedScalarType}});Object.defineProperty(G,"isType",{enumerable:!0,get:function(){return V.isType}});Object.defineProperty(G,"isTypeDefinitionNode",{enumerable:!0,get:function(){return PD.isTypeDefinitionNode}});Object.defineProperty(G,"isTypeExtensionNode",{enumerable:!0,get:function(){return PD.isTypeExtensionNode}});Object.defineProperty(G,"isTypeNode",{enumerable:!0,get:function(){return PD.isTypeNode}});Object.defineProperty(G,"isTypeSubTypeOf",{enumerable:!0,get:function(){return BD.isTypeSubTypeOf}});Object.defineProperty(G,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return PD.isTypeSystemDefinitionNode}});Object.defineProperty(G,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return PD.isTypeSystemExtensionNode}});Object.defineProperty(G,"isUnionType",{enumerable:!0,get:function(){return V.isUnionType}});Object.defineProperty(G,"isValidNameError",{enumerable:!0,get:function(){return BD.isValidNameError}});Object.defineProperty(G,"isValueNode",{enumerable:!0,get:function(){return PD.isValueNode}});Object.defineProperty(G,"isWrappingType",{enumerable:!0,get:function(){return V.isWrappingType}});Object.defineProperty(G,"lexicographicSortSchema",{enumerable:!0,get:function(){return BD.lexicographicSortSchema}});Object.defineProperty(G,"locatedError",{enumerable:!0,get:function(){return b6.locatedError}});Object.defineProperty(G,"parse",{enumerable:!0,get:function(){return PD.parse}});Object.defineProperty(G,"parseConstValue",{enumerable:!0,get:function(){return PD.parseConstValue}});Object.defineProperty(G,"parseType",{enumerable:!0,get:function(){return PD.parseType}});Object.defineProperty(G,"parseValue",{enumerable:!0,get:function(){return PD.parseValue}});Object.defineProperty(G,"print",{enumerable:!0,get:function(){return PD.print}});Object.defineProperty(G,"printError",{enumerable:!0,get:function(){return b6.printError}});Object.defineProperty(G,"printIntrospectionSchema",{enumerable:!0,get:function(){return BD.printIntrospectionSchema}});Object.defineProperty(G,"printLocation",{enumerable:!0,get:function(){return PD.printLocation}});Object.defineProperty(G,"printSchema",{enumerable:!0,get:function(){return BD.printSchema}});Object.defineProperty(G,"printSourceLocation",{enumerable:!0,get:function(){return PD.printSourceLocation}});Object.defineProperty(G,"printType",{enumerable:!0,get:function(){return BD.printType}});Object.defineProperty(G,"recommendedRules",{enumerable:!0,get:function(){return d.recommendedRules}});Object.defineProperty(G,"resolveObjMapThunk",{enumerable:!0,get:function(){return V.resolveObjMapThunk}});Object.defineProperty(G,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return V.resolveReadonlyArrayThunk}});Object.defineProperty(G,"responsePathAsArray",{enumerable:!0,get:function(){return u2.responsePathAsArray}});Object.defineProperty(G,"separateOperations",{enumerable:!0,get:function(){return BD.separateOperations}});Object.defineProperty(G,"specifiedDirectives",{enumerable:!0,get:function(){return V.specifiedDirectives}});Object.defineProperty(G,"specifiedRules",{enumerable:!0,get:function(){return d.specifiedRules}});Object.defineProperty(G,"specifiedScalarTypes",{enumerable:!0,get:function(){return V.specifiedScalarTypes}});Object.defineProperty(G,"stripIgnoredCharacters",{enumerable:!0,get:function(){return BD.stripIgnoredCharacters}});Object.defineProperty(G,"subscribe",{enumerable:!0,get:function(){return u2.subscribe}});Object.defineProperty(G,"syntaxError",{enumerable:!0,get:function(){return b6.syntaxError}});Object.defineProperty(G,"typeFromAST",{enumerable:!0,get:function(){return BD.typeFromAST}});Object.defineProperty(G,"validate",{enumerable:!0,get:function(){return d.validate}});Object.defineProperty(G,"validateSchema",{enumerable:!0,get:function(){return V.validateSchema}});Object.defineProperty(G,"valueFromAST",{enumerable:!0,get:function(){return BD.valueFromAST}});Object.defineProperty(G,"valueFromASTUntyped",{enumerable:!0,get:function(){return BD.valueFromASTUntyped}});Object.defineProperty(G,"version",{enumerable:!0,get:function(){return SH.version}});Object.defineProperty(G,"versionInfo",{enumerable:!0,get:function(){return SH.versionInfo}});Object.defineProperty(G,"visit",{enumerable:!0,get:function(){return PD.visit}});Object.defineProperty(G,"visitInParallel",{enumerable:!0,get:function(){return PD.visitInParallel}});Object.defineProperty(G,"visitWithTypeInfo",{enumerable:!0,get:function(){return BD.visitWithTypeInfo}});var SH=mP(),TH=tJ(),V=FY(),PD=BY(),u2=QY(),d=EY(),b6=KY(),BD=bH()});var w3=Q((tl,PU)=>{var FS=vD("node:tty"),PS=FS?.WriteStream?.prototype?.hasColors?.()??!1,p=(D,F)=>{if(!PS)return(Z)=>Z;let P=`\x1B[${D}m`,B=`\x1B[${F}m`;return(Z)=>{let X=Z+"",q=X.indexOf(B);if(q===-1)return P+X+B;let J=P,Y=0;while(q!==-1)J+=X.slice(Y,q)+P,Y=q+B.length,q=X.indexOf(B,Y);return J+=X.slice(Y)+B,J}},c={};c.reset=p(0,0);c.bold=p(1,22);c.dim=p(2,22);c.italic=p(3,23);c.underline=p(4,24);c.overline=p(53,55);c.inverse=p(7,27);c.hidden=p(8,28);c.strikethrough=p(9,29);c.black=p(30,39);c.red=p(31,39);c.green=p(32,39);c.yellow=p(33,39);c.blue=p(34,39);c.magenta=p(35,39);c.cyan=p(36,39);c.white=p(37,39);c.gray=p(90,39);c.bgBlack=p(40,49);c.bgRed=p(41,49);c.bgGreen=p(42,49);c.bgYellow=p(43,49);c.bgBlue=p(44,49);c.bgMagenta=p(45,49);c.bgCyan=p(46,49);c.bgWhite=p(47,49);c.bgGray=p(100,49);c.redBright=p(91,39);c.greenBright=p(92,39);c.yellowBright=p(93,39);c.blueBright=p(94,39);c.magentaBright=p(95,39);c.cyanBright=p(96,39);c.whiteBright=p(97,39);c.bgRedBright=p(101,49);c.bgGreenBright=p(102,49);c.bgYellowBright=p(103,49);c.bgBlueBright=p(104,49);c.bgMagentaBright=p(105,49);c.bgCyanBright=p(106,49);c.bgWhiteBright=p(107,49);PU.exports=c});var UU=Q((Mc,HU)=>{HU.exports=US;function HS(D){let F={defaultWidth:0,output:process.stdout,tty:vD("tty")};if(!D)return F;return Object.keys(F).forEach(function(P){if(!D[P])D[P]=F[P]}),D}function US(D){let F=HS(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 OU=Q((Ec,WU)=>{WU.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 j3=Q((Kc,zU)=>{var WS=OU();zU.exports=(D)=>typeof D==="string"?D.replace(WS(),""):D});var GU=Q((Ac,S7)=>{var QU=(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};S7.exports=QU;S7.exports.default=QU});var IU=Q((Cc,RU)=>{RU.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 MU=Q((Lc,T7)=>{var OS=j3(),zS=GU(),QS=IU(),$U=(D)=>{if(typeof D!=="string"||D.length===0)return 0;if(D=OS(D),D.length===0)return 0;D=D.replace(QS()," ");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+=zS(B)?2:1}return F};T7.exports=$U;T7.exports.default=$U});var KU=Q((Vc,EU)=>{EU.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 u7=Q((wc,CU)=>{var h6=KU(),AU={};for(let D of Object.keys(h6))AU[h6[D]]=D;var x={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"]}};CU.exports=x;for(let D of Object.keys(x)){if(!("channels"in x[D]))throw new Error("missing channels property: "+D);if(!("labels"in x[D]))throw new Error("missing channel labels property: "+D);if(x[D].labels.length!==x[D].channels)throw new Error("channel and label counts mismatch: "+D);let{channels:F,labels:P}=x[D];delete x[D].channels,delete x[D].labels,Object.defineProperty(x[D],"channels",{value:F}),Object.defineProperty(x[D],"labels",{value:P})}x.rgb.hsl=function(D){let F=D[0]/255,P=D[1]/255,B=D[2]/255,Z=Math.min(F,P,B),X=Math.max(F,P,B),q=X-Z,J,Y;if(X===Z)J=0;else if(F===X)J=(P-B)/q;else if(P===X)J=2+(B-F)/q;else if(B===X)J=4+(F-P)/q;if(J=Math.min(J*60,360),J<0)J+=360;let H=(Z+X)/2;if(X===Z)Y=0;else if(H<=0.5)Y=q/(X+Z);else Y=q/(2-X-Z);return[J,Y*100,H*100]};x.rgb.hsv=function(D){let F,P,B,Z,X,q=D[0]/255,J=D[1]/255,Y=D[2]/255,H=Math.max(q,J,Y),U=H-Math.min(q,J,Y),W=function(O){return(H-O)/6/U+0.5};if(U===0)Z=0,X=0;else{if(X=U/H,F=W(q),P=W(J),B=W(Y),q===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,X*100,H*100]};x.rgb.hwb=function(D){let F=D[0],P=D[1],B=D[2],Z=x.rgb.hsl(D)[0],X=0.00392156862745098*Math.min(F,Math.min(P,B));return B=1-0.00392156862745098*Math.max(F,Math.max(P,B)),[Z,X*100,B*100]};x.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),X=(1-F-Z)/(1-Z)||0,q=(1-P-Z)/(1-Z)||0,J=(1-B-Z)/(1-Z)||0;return[X*100,q*100,J*100,Z*100]};function GS(D,F){return(D[0]-F[0])**2+(D[1]-F[1])**2+(D[2]-F[2])**2}x.rgb.keyword=function(D){let F=AU[D];if(F)return F;let P=1/0,B;for(let Z of Object.keys(h6)){let X=h6[Z],q=GS(D,X);if(q<P)P=q,B=Z}return B};x.keyword.rgb=function(D){return h6[D]};x.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,X=F*0.2126+P*0.7152+B*0.0722,q=F*0.0193+P*0.1192+B*0.9505;return[Z*100,X*100,q*100]};x.rgb.lab=function(D){let F=x.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 X=116*B-16,q=500*(P-B),J=200*(B-Z);return[X,q,J]};x.hsl.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100,Z,X,q;if(P===0)return q=B*255,[q,q,q];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(X=F+0.3333333333333333*-(H-1),X<0)X++;if(X>1)X--;if(6*X<1)q=J+(Z-J)*6*X;else if(2*X<1)q=Z;else if(3*X<2)q=J+(Z-J)*(0.6666666666666666-X)*6;else q=J;Y[H]=q*255}return Y};x.hsl.hsv=function(D){let F=D[0],P=D[1]/100,B=D[2]/100,Z=P,X=Math.max(B,0.01);B*=2,P*=B<=1?B:2-B,Z*=X<=1?X:2-X;let q=(B+P)/2,J=B===0?2*Z/(X+Z):2*P/(B+P);return[F,J*100,q*100]};x.hsv.rgb=function(D){let F=D[0]/60,P=D[1]/100,B=D[2]/100,Z=Math.floor(F)%6,X=F-Math.floor(F),q=255*B*(1-P),J=255*B*(1-P*X),Y=255*B*(1-P*(1-X));switch(B*=255,Z){case 0:return[B,Y,q];case 1:return[J,B,q];case 2:return[q,B,Y];case 3:return[q,J,B];case 4:return[Y,q,B];case 5:return[B,q,J]}};x.hsv.hsl=function(D){let F=D[0],P=D[1]/100,B=D[2]/100,Z=Math.max(B,0.01),X,q;q=(2-P)*B;let J=(2-P)*Z;return X=P*Z,X/=J<=1?J:2-J,X=X||0,q/=2,[F,X*100,q*100]};x.hwb.rgb=function(D){let F=D[0]/360,P=D[1]/100,B=D[2]/100,Z=P+B,X;if(Z>1)P/=Z,B/=Z;let q=Math.floor(6*F),J=1-B;if(X=6*F-q,(q&1)!==0)X=1-X;let Y=P+X*(J-P),H,U,W;switch(q){default:case 6:case 0:H=J,U=Y,W=P;break;case 1:H=Y,U=J,W=P;break;case 2:H=P,U=J,W=Y;break;case 3:H=P,U=Y,W=J;break;case 4:H=Y,U=P,W=J;break;case 5:H=J,U=P,W=Y;break}return[H*255,U*255,W*255]};x.cmyk.rgb=function(D){let F=D[0]/100,P=D[1]/100,B=D[2]/100,Z=D[3]/100,X=1-Math.min(1,F*(1-Z)+Z),q=1-Math.min(1,P*(1-Z)+Z),J=1-Math.min(1,B*(1-Z)+Z);return[X*255,q*255,J*255]};x.xyz.rgb=function(D){let F=D[0]/100,P=D[1]/100,B=D[2]/100,Z,X,q;return Z=F*3.2406+P*-1.5372+B*-0.4986,X=F*-0.9689+P*1.8758+B*0.0415,q=F*0.0557+P*-0.204+B*1.057,Z=Z>0.0031308?1.055*Z**0.4166666666666667-0.055:Z*12.92,X=X>0.0031308?1.055*X**0.4166666666666667-0.055:X*12.92,q=q>0.0031308?1.055*q**0.4166666666666667-0.055:q*12.92,Z=Math.min(Math.max(0,Z),1),X=Math.min(Math.max(0,X),1),q=Math.min(Math.max(0,q),1),[Z*255,X*255,q*255]};x.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,X=500*(F-P),q=200*(P-B);return[Z,X,q]};x.lab.xyz=function(D){let F=D[0],P=D[1],B=D[2],Z,X,q;X=(F+16)/116,Z=P/500+X,q=X-B/200;let J=X**3,Y=Z**3,H=q**3;return X=J>0.008856?J:(X-0.13793103448275862)/7.787,Z=Y>0.008856?Y:(Z-0.13793103448275862)/7.787,q=H>0.008856?H:(q-0.13793103448275862)/7.787,Z*=95.047,X*=100,q*=108.883,[Z,X,q]};x.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 q=Math.sqrt(P*P+B*B);return[F,q,Z]};x.lch.lab=function(D){let F=D[0],P=D[1],Z=D[2]/360*2*Math.PI,X=P*Math.cos(Z),q=P*Math.sin(Z);return[F,X,q]};x.rgb.ansi16=function(D,F=null){let[P,B,Z]=D,X=F===null?x.rgb.hsv(D)[2]:F;if(X=Math.round(X/50),X===0)return 30;let q=30+(Math.round(Z/255)<<2|Math.round(B/255)<<1|Math.round(P/255));if(X===2)q+=60;return q};x.hsv.ansi16=function(D){return x.rgb.ansi16(x.hsv.rgb(D),D[2])};x.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)};x.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,X=(F>>2&1)*P*255;return[B,Z,X]};x.ansi256.rgb=function(D){if(D>=232){let X=(D-232)*10+8;return[X,X,X]}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]};x.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};x.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,X=B>>8&255,q=B&255;return[Z,X,q]};x.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),X=Math.min(Math.min(F,P),B),q=Z-X,J,Y;if(q<1)J=X/(1-q);else J=0;if(q<=0)Y=0;else if(Z===F)Y=(P-B)/q%6;else if(Z===P)Y=2+(B-F)/q;else Y=4+(F-P)/q;return Y/=6,Y%=1,[Y*360,q*100,J*100]};x.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]};x.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]};x.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],X=F%1*6,q=X%1,J=1-q,Y=0;switch(Math.floor(X)){case 0:Z[0]=1,Z[1]=q,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]=q;break;case 3:Z[0]=0,Z[1]=J,Z[2]=1;break;case 4:Z[0]=q,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]};x.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]};x.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]};x.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]};x.hwb.hcg=function(D){let F=D[1]/100,B=1-D[2]/100,Z=B-F,X=0;if(Z<1)X=(B-Z)/(1-Z);return[D[0],Z*100,X*100]};x.apple.rgb=function(D){return[D[0]/65535*255,D[1]/65535*255,D[2]/65535*255]};x.rgb.apple=function(D){return[D[0]/255*65535,D[1]/255*65535,D[2]/255*65535]};x.gray.rgb=function(D){return[D[0]/100*255,D[0]/100*255,D[0]/100*255]};x.gray.hsl=function(D){return[0,0,D[0]]};x.gray.hsv=x.gray.hsl;x.gray.hwb=function(D){return[0,100,D[0]]};x.gray.cmyk=function(D){return[0,0,0,D[0]]};x.gray.lab=function(D){return[D[0],0,0]};x.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};x.rgb.gray=function(D){return[(D[0]+D[1]+D[2])/3/255*100]}});var VU=Q((jc,LU)=>{var b3=u7();function RS(){let D={},F=Object.keys(b3);for(let P=F.length,B=0;B<P;B++)D[F[B]]={distance:-1,parent:null};return D}function IS(D){let F=RS(),P=[D];F[D].distance=0;while(P.length){let B=P.pop(),Z=Object.keys(b3[B]);for(let X=Z.length,q=0;q<X;q++){let J=Z[q],Y=F[J];if(Y.distance===-1)Y.distance=F[B].distance+1,Y.parent=B,P.unshift(J)}}return F}function $S(D,F){return function(P){return F(D(P))}}function MS(D,F){let P=[F[D].parent,D],B=b3[F[D].parent][D],Z=F[D].parent;while(F[Z].parent)P.unshift(F[Z].parent),B=$S(b3[F[Z].parent][Z],B),Z=F[Z].parent;return B.conversion=P,B}LU.exports=function(D){let F=IS(D),P={},B=Object.keys(F);for(let Z=B.length,X=0;X<Z;X++){let q=B[X];if(F[q].parent===null)continue;P[q]=MS(q,F)}return P}});var jU=Q((bc,wU)=>{var N7=u7(),ES=VU(),L8={},KS=Object.keys(N7);function AS(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 CS(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 X=Z.length,q=0;q<X;q++)Z[q]=Math.round(Z[q]);return Z};if("conversion"in D)F.conversion=D.conversion;return F}KS.forEach((D)=>{L8[D]={},Object.defineProperty(L8[D],"channels",{value:N7[D].channels}),Object.defineProperty(L8[D],"labels",{value:N7[D].labels});let F=ES(D);Object.keys(F).forEach((B)=>{let Z=F[B];L8[D][B]=CS(Z),L8[D][B].raw=AS(Z)})});wU.exports=L8});var k7=Q((Sc,NU)=>{var bU=(D,F)=>(...P)=>{return`\x1B[${D(...P)+F}m`},SU=(D,F)=>(...P)=>{let B=D(...P);return`\x1B[${38+F};5;${B}m`},TU=(D,F)=>(...P)=>{let B=D(...P);return`\x1B[${38+F};2;${B[0]};${B[1]};${B[2]}m`},S3=(D)=>D,uU=(D,F,P)=>[D,F,P],V8=(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})},_7,w8=(D,F,P,B)=>{if(_7===void 0)_7=jU();let Z=B?10:0,X={};for(let[q,J]of Object.entries(_7)){let Y=q==="ansi16"?"ansi":q;if(q===F)X[Y]=D(P,Z);else if(typeof J==="object")X[Y]=D(J[F],Z)}return X};function LS(){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,X]of Object.entries(B))F[Z]={open:`\x1B[${X[0]}m`,close:`\x1B[${X[1]}m`},B[Z]=F[Z],D.set(X[0],X[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",V8(F.color,"ansi",()=>w8(bU,"ansi16",S3,!1)),V8(F.color,"ansi256",()=>w8(SU,"ansi256",S3,!1)),V8(F.color,"ansi16m",()=>w8(TU,"rgb",uU,!1)),V8(F.bgColor,"ansi",()=>w8(bU,"ansi16",S3,!0)),V8(F.bgColor,"ansi256",()=>w8(SU,"ansi256",S3,!0)),V8(F.bgColor,"ansi16m",()=>w8(TU,"rgb",uU,!0)),F}Object.defineProperty(NU,"exports",{enumerable:!0,get:LS})});var xU=Q((Tc,kU)=>{var g6=MU(),VS=j3(),wS=k7(),f7=new Set(["\x1B","›"]),_U=(D)=>`${f7.values().next().value}[${D}m`,jS=(D)=>D.split(" ").map((F)=>g6(F)),x7=(D,F,P)=>{let B=[...F],Z=!1,X=g6(VS(D[D.length-1]));for(let[q,J]of B.entries()){let Y=g6(J);if(X+Y<=P)D[D.length-1]+=J;else D.push(J),X=0;if(f7.has(J))Z=!0;else if(Z&&J==="m"){Z=!1;continue}if(Z)continue;if(X+=Y,X===P&&q<B.length-1)D.push(""),X=0}if(!X&&D[D.length-1].length>0&&D.length>1)D[D.length-2]+=D.pop()},bS=(D)=>{let F=D.split(" "),P=F.length;while(P>0){if(g6(F[P-1])>0)break;P--}if(P===F.length)return D;return F.slice(0,P).join(" ")+F.slice(P).join("")},SS=(D,F,P={})=>{if(P.trim!==!1&&D.trim()==="")return"";let B="",Z="",X,q=jS(D),J=[""];for(let[Y,H]of D.split(" ").entries()){if(P.trim!==!1)J[J.length-1]=J[J.length-1].trimLeft();let U=g6(J[J.length-1]);if(Y!==0){if(U>=F&&(P.wordWrap===!1||P.trim===!1))J.push(""),U=0;if(U>0||P.trim===!1)J[J.length-1]+=" ",U++}if(P.hard&&q[Y]>F){let W=F-U,O=1+Math.floor((q[Y]-W-1)/F);if(Math.floor((q[Y]-1)/F)<O)J.push("");x7(J,H,F);continue}if(U+q[Y]>F&&U>0&&q[Y]>0){if(P.wordWrap===!1&&U<F){x7(J,H,F);continue}J.push("")}if(U+q[Y]>F&&P.wordWrap===!1){x7(J,H,F);continue}J[J.length-1]+=H}if(P.trim!==!1)J=J.map(bS);B=J.join(`
199
+ `);for(let[Y,H]of[...B].entries()){if(Z+=H,f7.has(H)){let W=parseFloat(/\d[^m]*/.exec(B.slice(Y,Y+4)));X=W===39?null:W}let U=wS.codes.get(Number(X));if(X&&U){if(B[Y+1]===`
200
+ `)Z+=_U(U);else if(H===`
201
+ `)Z+=_U(X)}}return Z};kU.exports=(D,F,P)=>{return String(D).normalize().replace(/\r\n/g,`
207
202
  `).split(`
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]",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
- `:`
211
- `)+P,Z=B+1,B=D.indexOf(`
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"],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
203
+ `).map((B)=>SS(B,F,P)).join(`
204
+ `)}});var cU=Q((mc,lU)=>{var NS=vD("stream");class mU extends NS{#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)}}lU.exports=mU});var c7=Q((xS,l7)=>{var o=xS;xS.default=o;var qD="\x1B[",y6="\x1B]",j8="\x07",N3=";",sU=process.env.TERM_PROGRAM==="Apple_Terminal";o.cursorTo=(D,F)=>{if(typeof D!=="number")throw new TypeError("The `x` argument is required");if(typeof F!=="number")return qD+(D+1)+"G";return qD+(F+1)+";"+(D+1)+"H"};o.cursorMove=(D,F)=>{if(typeof D!=="number")throw new TypeError("The `x` argument is required");let P="";if(D<0)P+=qD+-D+"D";else if(D>0)P+=qD+D+"C";if(F<0)P+=qD+-F+"A";else if(F>0)P+=qD+F+"B";return P};o.cursorUp=(D=1)=>qD+D+"A";o.cursorDown=(D=1)=>qD+D+"B";o.cursorForward=(D=1)=>qD+D+"C";o.cursorBackward=(D=1)=>qD+D+"D";o.cursorLeft=qD+"G";o.cursorSavePosition=sU?"\x1B7":qD+"s";o.cursorRestorePosition=sU?"\x1B8":qD+"u";o.cursorGetPosition=qD+"6n";o.cursorNextLine=qD+"E";o.cursorPrevLine=qD+"F";o.cursorHide=qD+"?25l";o.cursorShow=qD+"?25h";o.eraseLines=(D)=>{let F="";for(let P=0;P<D;P++)F+=o.eraseLine+(P<D-1?o.cursorUp():"");if(D)F+=o.cursorLeft;return F};o.eraseEndLine=qD+"K";o.eraseStartLine=qD+"1K";o.eraseLine=qD+"2K";o.eraseDown=qD+"J";o.eraseUp=qD+"1J";o.eraseScreen=qD+"2J";o.scrollUp=qD+"S";o.scrollDown=qD+"T";o.clearScreen="\x1Bc";o.clearTerminal=process.platform==="win32"?`${o.eraseScreen}${qD}0f`:`${o.eraseScreen}${qD}3J${qD}H`;o.beep=j8;o.link=(D,F)=>{return[y6,"8",N3,N3,F,j8,D,y6,"8",N3,N3,j8].join("")};o.image=(D,F={})=>{let P=`${y6}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};o.iTerm={setCwd:(D=process.cwd())=>`${y6}50;CurrentDir=${D}${j8}`,annotation:(D,F={})=>{let P=`${y6}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 BW=Q((Sd,PW)=>{PW.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 qW=Q((Td,XW)=>{var mS=vD("os"),ZW=vD("tty"),Z2=BW(),{env:ND}=process,Y0;if(Z2("no-color")||Z2("no-colors")||Z2("color=false")||Z2("color=never"))Y0=0;else if(Z2("color")||Z2("colors")||Z2("color=true")||Z2("color=always"))Y0=1;if("FORCE_COLOR"in ND)if(ND.FORCE_COLOR==="true")Y0=1;else if(ND.FORCE_COLOR==="false")Y0=0;else Y0=ND.FORCE_COLOR.length===0?1:Math.min(parseInt(ND.FORCE_COLOR,10),3);function r7(D){if(D===0)return!1;return{level:D,hasBasic:!0,has256:D>=2,has16m:D>=3}}function a7(D,F){if(Y0===0)return 0;if(Z2("color=16m")||Z2("color=full")||Z2("color=truecolor"))return 3;if(Z2("color=256"))return 2;if(D&&!F&&Y0===void 0)return 0;let P=Y0||0;if(ND.TERM==="dumb")return P;if(process.platform==="win32"){let B=mS.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 lS(D){let F=a7(D,D&&D.isTTY);return r7(F)}XW.exports={supportsColor:lS,stdout:r7(a7(!0,ZW.isatty(1))),stderr:r7(a7(!0,ZW.isatty(2)))}});var YW=Q((ud,JW)=>{var cS=(D,F,P)=>{let B=D.indexOf(F);if(B===-1)return D;let Z=F.length,X=0,q="";do q+=D.substr(X,B-X)+F+P,X=B+Z,B=D.indexOf(F,X);while(B!==-1);return q+=D.substr(X),q},dS=(D,F,P,B)=>{let Z=0,X="";do{let q=D[B-1]==="\r";X+=D.substr(Z,(q?B-1:B)-Z)+F+(q?`\r
215
205
  `:`
216
206
  `)+P,Z=B+1,B=D.indexOf(`
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"],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
- `)}}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
- `)?TF(P,F):P.includes(`
207
+ `,Z)}while(B!==-1);return X+=D.substr(Z),X};JW.exports={stringReplaceAll:cS,stringEncaseCRLFWithFirstIndex:dS}});var zW=Q((Nd,OW)=>{var pS=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,HW=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,rS=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,aS=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,sS=new Map([["n",`
208
+ `],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\x00"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function WW(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 sS.get(D)||D}function nS(D,F){let P=[],B=F.trim().split(/\s*,\s*/g),Z;for(let X of B){let q=Number(X);if(!Number.isNaN(q))P.push(q);else if(Z=X.match(rS))P.push(Z[2].replace(aS,(J,Y,H)=>Y?WW(Y):H));else throw new Error(`Invalid Chalk template style argument: ${X} (in style '${D}')`)}return P}function iS(D){HW.lastIndex=0;let F=[],P;while((P=HW.exec(D))!==null){let B=P[1];if(P[2]){let Z=nS(B,P[2]);F.push([B].concat(Z))}else F.push([B])}return F}function UW(D,F){let P={};for(let Z of F)for(let X of Z.styles)P[X[0]]=Z.inverse?null:X.slice(1);let B=D;for(let[Z,X]of Object.entries(P)){if(!Array.isArray(X))continue;if(!(Z in B))throw new Error(`Unknown Chalk style: ${Z}`);B=X.length>0?B[Z](...X):B[Z]}return B}OW.exports=(D,F)=>{let P=[],B=[],Z=[];if(F.replace(pS,(X,q,J,Y,H,U)=>{if(q)Z.push(WW(q));else if(Y){let W=Z.join("");Z=[],B.push(P.length===0?W:UW(D,P)(W)),P.push({inverse:J,styles:iS(Y)})}else if(H){if(P.length===0)throw new Error("Found extraneous } in Chalk template literal");B.push(UW(D,P)(Z.join(""))),Z=[],P.pop()}else Z.push(U)}),B.push(Z.join("")),P.length>0){let X=`Chalk template literal is missing ${P.length} closing bracket${P.length===1?"":"s"} (\`}\`)`;throw new Error(X)}return B.join("")}});var v3=Q((_d,EW)=>{var m6=k7(),{stdout:n7,stderr:i7}=qW(),{stringReplaceAll:oS,stringEncaseCRLFWithFirstIndex:tS}=YW(),{isArray:x3}=Array,GW=["ansi","ansi","ansi256","ansi16m"],S8=Object.create(null),eS=(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=n7?n7.level:0;D.level=F.level===void 0?P:F.level};class RW{constructor(D){return IW(D)}}var IW=(D)=>{let F={};return eS(F,D),F.template=(...P)=>MW(F.template,...P),Object.setPrototypeOf(F,f3.prototype),Object.setPrototypeOf(F.template,F),F.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},F.template.Instance=RW,F.template};function f3(D){return IW(D)}for(let[D,F]of Object.entries(m6))S8[D]={get(){let P=h3(this,o7(F.open,F.close,this._styler),this._isEmpty);return Object.defineProperty(this,D,{value:P}),P}};S8.visible={get(){let D=h3(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:D}),D}};var $W=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let D of $W)S8[D]={get(){let{level:F}=this;return function(...P){let B=o7(m6.color[GW[F]][D](...P),m6.color.close,this._styler);return h3(this,B,this._isEmpty)}}};for(let D of $W){let F="bg"+D[0].toUpperCase()+D.slice(1);S8[F]={get(){let{level:P}=this;return function(...B){let Z=o7(m6.bgColor[GW[P]][D](...B),m6.bgColor.close,this._styler);return h3(this,Z,this._isEmpty)}}}}var DT=Object.defineProperties(()=>{},{...S8,level:{enumerable:!0,get(){return this._generator.level},set(D){this._generator.level=D}}}),o7=(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}},h3=(D,F,P)=>{let B=(...Z)=>{if(x3(Z[0])&&x3(Z[0].raw))return QW(B,MW(B,...Z));return QW(B,Z.length===1?""+Z[0]:Z.join(" "))};return Object.setPrototypeOf(B,DT),B._generator=D,B._styler=F,B._isEmpty=P,B},QW=(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=oS(F,P.close,P.open),P=P.parent;let X=F.indexOf(`
209
+ `);if(X!==-1)F=tS(F,Z,B,X);return B+F+Z},s7,MW=(D,...F)=>{let[P]=F;if(!x3(P)||!x3(P.raw))return F.join(" ");let B=F.slice(1),Z=[P.raw[0]];for(let X=1;X<P.length;X++)Z.push(String(B[X-1]).replace(/[{}\\]/g,"\\$&"),String(P.raw[X]));if(s7===void 0)s7=zW();return s7(D,Z.join(""))};Object.defineProperties(f3.prototype,S8);var g3=f3();g3.supportsColor=n7;g3.stderr=f3({level:i7?i7.level:0});g3.stderr.supportsColor=i7;EW.exports=g3});var t=Q((GT)=>{var PF=Symbol.for("yaml.alias"),VW=Symbol.for("yaml.document"),p3=Symbol.for("yaml.map"),wW=Symbol.for("yaml.pair"),BF=Symbol.for("yaml.scalar"),r3=Symbol.for("yaml.seq"),p2=Symbol.for("yaml.node.type"),YT=(D)=>!!D&&typeof D==="object"&&D[p2]===PF,HT=(D)=>!!D&&typeof D==="object"&&D[p2]===VW,UT=(D)=>!!D&&typeof D==="object"&&D[p2]===p3,WT=(D)=>!!D&&typeof D==="object"&&D[p2]===wW,jW=(D)=>!!D&&typeof D==="object"&&D[p2]===BF,OT=(D)=>!!D&&typeof D==="object"&&D[p2]===r3;function bW(D){if(D&&typeof D==="object")switch(D[p2]){case p3:case r3:return!0}return!1}function zT(D){if(D&&typeof D==="object")switch(D[p2]){case PF:case p3:case BF:case r3:return!0}return!1}var QT=(D)=>(jW(D)||bW(D))&&!!D.anchor;GT.ALIAS=PF;GT.DOC=VW;GT.MAP=p3;GT.NODE_TYPE=p2;GT.PAIR=wW;GT.SCALAR=BF;GT.SEQ=r3;GT.hasAnchor=QT;GT.isAlias=YT;GT.isCollection=bW;GT.isDocument=HT;GT.isMap=UT;GT.isNode=zT;GT.isPair=WT;GT.isScalar=jW;GT.isSeq=OT});var c6=Q((NT)=>{var bD=t(),pD=Symbol("break visit"),SW=Symbol("skip children"),_2=Symbol("remove node");function a3(D,F){let P=TW(F);if(bD.isDocument(D)){if(T8(null,D.contents,P,Object.freeze([D]))===_2)D.contents=null}else T8(null,D,P,Object.freeze([]))}a3.BREAK=pD;a3.SKIP=SW;a3.REMOVE=_2;function T8(D,F,P,B){let Z=uW(D,F,P,B);if(bD.isNode(Z)||bD.isPair(Z))return NW(D,B,Z),T8(D,Z,P,B);if(typeof Z!=="symbol"){if(bD.isCollection(F)){B=Object.freeze(B.concat(F));for(let X=0;X<F.items.length;++X){let q=T8(X,F.items[X],P,B);if(typeof q==="number")X=q-1;else if(q===pD)return pD;else if(q===_2)F.items.splice(X,1),X-=1}}else if(bD.isPair(F)){B=Object.freeze(B.concat(F));let X=T8("key",F.key,P,B);if(X===pD)return pD;else if(X===_2)F.key=null;let q=T8("value",F.value,P,B);if(q===pD)return pD;else if(q===_2)F.value=null}}return Z}async function s3(D,F){let P=TW(F);if(bD.isDocument(D)){if(await u8(null,D.contents,P,Object.freeze([D]))===_2)D.contents=null}else await u8(null,D,P,Object.freeze([]))}s3.BREAK=pD;s3.SKIP=SW;s3.REMOVE=_2;async function u8(D,F,P,B){let Z=await uW(D,F,P,B);if(bD.isNode(Z)||bD.isPair(Z))return NW(D,B,Z),u8(D,Z,P,B);if(typeof Z!=="symbol"){if(bD.isCollection(F)){B=Object.freeze(B.concat(F));for(let X=0;X<F.items.length;++X){let q=await u8(X,F.items[X],P,B);if(typeof q==="number")X=q-1;else if(q===pD)return pD;else if(q===_2)F.items.splice(X,1),X-=1}}else if(bD.isPair(F)){B=Object.freeze(B.concat(F));let X=await u8("key",F.key,P,B);if(X===pD)return pD;else if(X===_2)F.key=null;let q=await u8("value",F.value,P,B);if(q===pD)return pD;else if(q===_2)F.value=null}}return Z}function TW(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 uW(D,F,P,B){if(typeof P==="function")return P(D,F,B);if(bD.isMap(F))return P.Map?.(D,F,B);if(bD.isSeq(F))return P.Seq?.(D,F,B);if(bD.isPair(F))return P.Pair?.(D,F,B);if(bD.isScalar(F))return P.Scalar?.(D,F,B);if(bD.isAlias(F))return P.Alias?.(D,F,B);return}function NW(D,F,P){let B=F[F.length-1];if(bD.isCollection(B))B.items[D]=P;else if(bD.isPair(B))if(D==="key")B.key=P;else B.value=P;else if(bD.isDocument(B))B.contents=P;else{let Z=bD.isAlias(B)?"alias":"scalar";throw new Error(`Cannot replace node with ${Z} parent`)}}NT.visit=a3;NT.visitAsync=s3});var ZF=Q((gT)=>{var _W=t(),xT=c6(),fT={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},hT=(D)=>D.replace(/[!,[\]{}]/g,(F)=>fT[F]);class q2{constructor(D,F){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},q2.defaultYaml,D),this.tags=Object.assign({},q2.defaultTags,F)}clone(){let D=new q2(this.yaml,this.tags);return D.docStart=this.docStart,D}atDocument(){let D=new q2(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:q2.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},q2.defaultTags);break}return D}add(D,F){if(this.atNextDocument)this.yaml={explicit:q2.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},q2.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,X]=P;return this.tags[Z]=X,!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 X=/^\d+\.\d+$/.test(Z);return F(6,`Unsupported YAML version ${Z}`,X),!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 X=D.slice(2,-1);if(X==="!"||X==="!!")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 X}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(X){return F(String(X)),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+hT(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&&_W.isNode(D.contents)){let Z={};xT.visit(D.contents,(X,q)=>{if(_W.isNode(q)&&q.tag)Z[q.tag]=!0}),B=Object.keys(Z)}else B=[];for(let[Z,X]of P){if(Z==="!!"&&X==="tag:yaml.org,2002:")continue;if(!D||B.some((q)=>q.startsWith(X)))F.push(`%TAG ${Z} ${X}`)}return F.join(`
210
+ `)}}q2.defaultYaml={explicit:!1,version:"1.2"};q2.defaultTags={"!!":"tag:yaml.org,2002:"};gT.Directives=q2});var n3=Q((cT)=>{var kW=t(),yT=c6();function mT(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 xW(D){let F=new Set;return yT.visit(D,{Value(P,B){if(B.anchor)F.add(B.anchor)}}),F}function fW(D,F){for(let P=1;;++P){let B=`${D}${P}`;if(!F.has(B))return B}}function lT(D,F){let P=[],B=new Map,Z=null;return{onAnchor:(X)=>{P.push(X),Z??(Z=xW(D));let q=fW(F,Z);return Z.add(q),q},setAnchors:()=>{for(let X of P){let q=B.get(X);if(typeof q==="object"&&q.anchor&&(kW.isScalar(q.node)||kW.isCollection(q.node)))q.node.anchor=q.anchor;else{let J=new Error("Failed to resolve repeated object (this should not happen)");throw J.source=X,J}}},sourceObjects:B}}cT.anchorIsValid=mT;cT.anchorNames=xW;cT.createNodeAnchors=lT;cT.findNewAnchor=fW});var XF=Q((sT)=>{function d6(D,F,P,B){if(B&&typeof B==="object")if(Array.isArray(B))for(let Z=0,X=B.length;Z<X;++Z){let q=B[Z],J=d6(D,B,String(Z),q);if(J===void 0)delete B[Z];else if(J!==q)B[Z]=J}else if(B instanceof Map)for(let Z of Array.from(B.keys())){let X=B.get(Z),q=d6(D,B,Z,X);if(q===void 0)B.delete(Z);else if(q!==X)B.set(Z,q)}else if(B instanceof Set)for(let Z of Array.from(B)){let X=d6(D,B,Z,Z);if(X===void 0)B.delete(Z);else if(X!==Z)B.delete(Z),B.add(X)}else for(let[Z,X]of Object.entries(B)){let q=d6(D,B,Z,X);if(q===void 0)delete B[Z];else if(q!==X)B[Z]=q}return D.call(F,P,B)}sT.applyReviver=d6});var H0=Q((oT)=>{var iT=t();function hW(D,F,P){if(Array.isArray(D))return D.map((B,Z)=>hW(B,String(Z),P));if(D&&typeof D.toJSON==="function"){if(!P||!iT.hasAnchor(D))return D.toJSON(F,P);let B={aliasCount:0,count:1,res:void 0};P.anchors.set(D,B),P.onCreate=(X)=>{B.res=X,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}oT.toJS=hW});var i3=Q((Fu)=>{var eT=XF(),gW=t(),Du=H0();class vW{constructor(D){Object.defineProperty(this,gW.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(!gW.isDocument(D))throw new TypeError("A document argument is required");let X={anchors:new Map,doc:D,keep:!0,mapAsMap:F===!0,mapKeyWarned:!1,maxAliasCount:typeof P==="number"?P:100},q=Du.toJS(this,"",X);if(typeof B==="function")for(let{count:J,res:Y}of X.anchors.values())B(Y,J);return typeof Z==="function"?eT.applyReviver(Z,{"":q},"",q):q}}Fu.NodeBase=vW});var p6=Q((Ju)=>{var Bu=n3(),Zu=c6(),N8=t(),Xu=i3(),qu=H0();class yW extends Xu.NodeBase{constructor(D){super(N8.ALIAS);this.source=D,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(D,F){let P;if(F?.aliasResolveCache)P=F.aliasResolveCache;else if(P=[],Zu.visit(D,{Node:(Z,X)=>{if(N8.isAlias(X)||N8.hasAnchor(X))P.push(X)}}),F)F.aliasResolveCache=P;let B=void 0;for(let Z of P){if(Z===this)break;if(Z.anchor===this.source)B=Z}return B}toJSON(D,F){if(!F)return{source:this.source};let{anchors:P,doc:B,maxAliasCount:Z}=F,X=this.resolve(B,F);if(!X){let J=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(J)}let q=P.get(X);if(!q)qu.toJS(X,null,F),q=P.get(X);if(!q||q.res===void 0)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(Z>=0){if(q.count+=1,q.aliasCount===0)q.aliasCount=o3(B,X,P);if(q.count*q.aliasCount>Z)throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return q.res}toString(D,F,P){let B=`*${this.source}`;if(D){if(Bu.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 o3(D,F,P){if(N8.isAlias(F)){let B=F.resolve(D),Z=P&&B&&P.get(B);return Z?Z.count*Z.aliasCount:0}else if(N8.isCollection(F)){let B=0;for(let Z of F.items){let X=o3(D,Z,P);if(X>B)B=X}return B}else if(N8.isPair(F)){let B=o3(D,F.key,P),Z=o3(D,F.value,P);return Math.max(B,Z)}return 1}Ju.Alias=yW});var CD=Q((zu)=>{var Hu=t(),Uu=i3(),Wu=H0(),Ou=(D)=>!D||typeof D!=="function"&&typeof D!=="object";class s0 extends Uu.NodeBase{constructor(D){super(Hu.SCALAR);this.value=D}toJSON(D,F){return F?.keep?this.value:Wu.toJS(this.value,D,F)}toString(){return String(this.value)}}s0.BLOCK_FOLDED="BLOCK_FOLDED";s0.BLOCK_LITERAL="BLOCK_LITERAL";s0.PLAIN="PLAIN";s0.QUOTE_DOUBLE="QUOTE_DOUBLE";s0.QUOTE_SINGLE="QUOTE_SINGLE";zu.Scalar=s0;zu.isScalarValue=Ou});var r6=Q((Eu)=>{var Ru=p6(),n0=t(),mW=CD(),Iu="tag:yaml.org,2002:";function $u(D,F,P){if(F){let B=P.filter((X)=>X.tag===F),Z=B.find((X)=>!X.format)??B[0];if(!Z)throw new Error(`Tag ${F} not found`);return Z}return P.find((B)=>B.identify?.(D)&&!B.format)}function Mu(D,F,P){if(n0.isDocument(D))D=D.contents;if(n0.isNode(D))return D;if(n0.isPair(D)){let W=P.schema[n0.MAP].createNode?.(P.schema,null,P);return W.items.push(D),W}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:X,schema:q,sourceObjects:J}=P,Y=void 0;if(B&&D&&typeof D==="object")if(Y=J.get(D),Y)return Y.anchor??(Y.anchor=Z(D)),new Ru.Alias(Y.anchor);else Y={anchor:null,node:null},J.set(D,Y);if(F?.startsWith("!!"))F=Iu+F.slice(2);let H=$u(D,F,q.tags);if(!H){if(D&&typeof D.toJSON==="function")D=D.toJSON();if(!D||typeof D!=="object"){let W=new mW.Scalar(D);if(Y)Y.node=W;return W}H=D instanceof Map?q[n0.MAP]:(Symbol.iterator in Object(D))?q[n0.SEQ]:q[n0.MAP]}if(X)X(H),delete P.onTagObj;let U=H?.createNode?H.createNode(P.schema,D,P):typeof H?.nodeClass?.from==="function"?H.nodeClass.from(P.schema,D,P):new mW.Scalar(D);if(F)U.tag=F;else if(!H.default)U.tag=H.tag;if(Y)Y.node=U;return U}Eu.createNode=Mu});var t3=Q((Lu)=>{var Au=r6(),k2=t(),Cu=i3();function qF(D,F,P){let B=P;for(let Z=F.length-1;Z>=0;--Z){let X=F[Z];if(typeof X==="number"&&Number.isInteger(X)&&X>=0){let q=[];q[X]=B,B=q}else B=new Map([[X,B]])}return Au.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 lW=(D)=>D==null||typeof D==="object"&&!!D[Symbol.iterator]().next().done;class cW extends Cu.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)=>k2.isNode(P)||k2.isPair(P)?P.clone(D):P),this.range)F.range=this.range.slice();return F}addIn(D,F){if(lW(D))this.add(F);else{let[P,...B]=D,Z=this.get(P,!0);if(k2.isCollection(Z))Z.addIn(B,F);else if(Z===void 0&&this.schema)this.set(P,qF(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(k2.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&&k2.isScalar(Z)?Z.value:Z;else return k2.isCollection(Z)?Z.getIn(B,F):void 0}hasAllNullValues(D){return this.items.every((F)=>{if(!k2.isPair(F))return!1;let P=F.value;return P==null||D&&k2.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 k2.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(k2.isCollection(Z))Z.setIn(B,F);else if(Z===void 0&&this.schema)this.set(P,qF(this.schema,B,F));else throw new Error(`Expected YAML collection at ${P}. Remaining path: ${B}`)}}}Lu.Collection=cW;Lu.collectionFromPath=qF;Lu.isEmptyPath=lW});var a6=Q((Tu)=>{var bu=(D)=>D.replace(/^(?!$)(?: $)?/gm,"#");function JF(D,F){if(/^\n+$/.test(D))return D.substring(1);return F?D.replace(/^(?! *$)/gm,F):D}var Su=(D,F,P)=>D.endsWith(`
211
+ `)?JF(P,F):P.includes(`
222
212
  `)?`
223
- `+TF(P,F):(D.endsWith(" ")?"":" ")+P;E_.indentComment=TF;E_.lineComment=K_;E_.stringifyComment=M_});var Hz=Q((V_)=>{function w_(D,F,P="flow",{indentAtStart:B,lineWidth:Z=80,minContentWidth:q=20,onFold:X,onOverflow:J}={}){if(!Z||Z<0)return D;if(Z<q)q=0;let Y=Math.max(1+q,1+Z-F.length);if(D.length<=Y)return D;let H=[],W={},U=Z-F.length;if(typeof B==="number")if(B>Z-Math.max(2,q))H.push(0);else U=Z-B;let O=void 0,z=void 0,I=!1,R=-1,$=-1,E=-1;if(P==="block"){if(R=Yz(D,R,F.length),R!==-1)U=R+Y}for(let A;A=D[R+=1];){if(P==="quoted"&&A==="\\"){switch($=R,D[R+1]){case"x":R+=3;break;case"u":R+=5;break;case"U":R+=9;break;default:R+=1}E=R}if(A===`
224
- `){if(P==="block")R=Yz(D,R,F.length);U=R+F.length+Y,O=void 0}else{if(A===" "&&z&&z!==" "&&z!==`
213
+ `+JF(P,F):(D.endsWith(" ")?"":" ")+P;Tu.indentComment=JF;Tu.lineComment=Su;Tu.stringifyComment=bu});var pW=Q((xu)=>{function ku(D,F,P="flow",{indentAtStart:B,lineWidth:Z=80,minContentWidth:X=20,onFold:q,onOverflow:J}={}){if(!Z||Z<0)return D;if(Z<X)X=0;let Y=Math.max(1+X,1+Z-F.length);if(D.length<=Y)return D;let H=[],U={},W=Z-F.length;if(typeof B==="number")if(B>Z-Math.max(2,X))H.push(0);else W=Z-B;let O=void 0,z=void 0,I=!1,R=-1,$=-1,K=-1;if(P==="block"){if(R=dW(D,R,F.length),R!==-1)W=R+Y}for(let A;A=D[R+=1];){if(P==="quoted"&&A==="\\"){switch($=R,D[R+1]){case"x":R+=3;break;case"u":R+=5;break;case"U":R+=9;break;default:R+=1}K=R}if(A===`
214
+ `){if(P==="block")R=dW(D,R,F.length);W=R+F.length+Y,O=void 0}else{if(A===" "&&z&&z!==" "&&z!==`
225
215
  `&&z!=="\t"){let S=D[R+1];if(S&&S!==" "&&S!==`
226
- `&&S!=="\t")O=R}if(R>=U)if(O)H.push(O),U=O+Y,O=void 0;else if(P==="quoted"){while(z===" "||z==="\t")z=A,A=D[R+=1],I=!0;let S=R>E+1?R-2:$-1;if(W[S])return D;H.push(S),W[S]=!0,U=S+Y,O=void 0}else I=!0}z=A}if(I&&J)J();if(H.length===0)return D;if(X)X();let w=D.slice(0,H[0]);for(let A=0;A<H.length;++A){let S=H[A],V=H[A+1]||D.length;if(S===0)w=`
227
- ${F}${D.slice(0,V)}`;else{if(P==="quoted"&&W[S])w+=`${D[S]}\\`;w+=`
228
- ${F}${D.slice(S+1,V)}`}}return w}function Yz(D,F,P){let B=F,Z=F+1,q=D[Z];while(q===" "||q==="\t")if(F<Z+P)q=D[++F];else{do q=D[++F];while(q&&q!==`
229
- `);B=F,Z=F+1,q=D[Z]}return B}V_.FOLD_BLOCK="block";V_.FOLD_FLOW="flow";V_.FOLD_QUOTED="quoted";V_.foldFlowLines=w_});var e1=Q((k_)=>{var h0=ED(),Q2=Hz(),G5=(D,F)=>({indentAtStart:F?D.indent.length:D.indentAtStart,lineWidth:D.options.lineWidth,minContentWidth:D.options.minContentWidth}),R5=(D)=>/^(%|---|\.\.\.)/m.test(D);function N_(D,F,P){if(!F||F<0)return!1;let B=F-P,Z=D.length;if(Z<=B)return!1;for(let q=0,X=0;q<Z;++q)if(D[q]===`
230
- `){if(q-X>B)return!0;if(X=q+1,Z-X<=B)return!1}return!0}function t1(D,F){let P=JSON.stringify(D);if(F.options.doubleQuotedAsJSON)return P;let{implicitKey:B}=F,Z=F.options.doubleQuotedMinMultiLineLength,q=F.indent||(R5(D)?" ":""),X="",J=0;for(let Y=0,H=P[Y];H;H=P[++Y]){if(H===" "&&P[Y+1]==="\\"&&P[Y+2]==="n")X+=P.slice(J,Y)+"\\ ",Y+=1,J=Y,H="\\";if(H==="\\")switch(P[Y+1]){case"u":{X+=P.slice(J,Y);let W=P.substr(Y+2,4);switch(W){case"0000":X+="\\0";break;case"0007":X+="\\a";break;case"000b":X+="\\v";break;case"001b":X+="\\e";break;case"0085":X+="\\N";break;case"00a0":X+="\\_";break;case"2028":X+="\\L";break;case"2029":X+="\\P";break;default:if(W.substr(0,2)==="00")X+="\\x"+W.substr(2);else X+=P.substr(Y,6)}Y+=5,J=Y+1}break;case"n":if(B||P[Y+2]==='"'||P.length<Z)Y+=1;else{X+=P.slice(J,Y)+`
231
-
232
- `;while(P[Y+2]==="\\"&&P[Y+3]==="n"&&P[Y+4]!=='"')X+=`
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
- `)||/[ \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 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(`(^|(?<!
216
+ `&&S!=="\t")O=R}if(R>=W)if(O)H.push(O),W=O+Y,O=void 0;else if(P==="quoted"){while(z===" "||z==="\t")z=A,A=D[R+=1],I=!0;let S=R>K+1?R-2:$-1;if(U[S])return D;H.push(S),U[S]=!0,W=S+Y,O=void 0}else I=!0}z=A}if(I&&J)J();if(H.length===0)return D;if(q)q();let j=D.slice(0,H[0]);for(let A=0;A<H.length;++A){let S=H[A],C=H[A+1]||D.length;if(S===0)j=`
217
+ ${F}${D.slice(0,C)}`;else{if(P==="quoted"&&U[S])j+=`${D[S]}\\`;j+=`
218
+ ${F}${D.slice(S+1,C)}`}}return j}function dW(D,F,P){let B=F,Z=F+1,X=D[Z];while(X===" "||X==="\t")if(F<Z+P)X=D[++F];else{do X=D[++F];while(X&&X!==`
219
+ `);B=F,Z=F+1,X=D[Z]}return B}xu.FOLD_BLOCK="block";xu.FOLD_FLOW="flow";xu.FOLD_QUOTED="quoted";xu.foldFlowLines=ku});var n6=Q((cu)=>{var M2=CD(),U0=pW(),D5=(D,F)=>({indentAtStart:F?D.indent.length:D.indentAtStart,lineWidth:D.options.lineWidth,minContentWidth:D.options.minContentWidth}),F5=(D)=>/^(%|---|\.\.\.)/m.test(D);function yu(D,F,P){if(!F||F<0)return!1;let B=F-P,Z=D.length;if(Z<=B)return!1;for(let X=0,q=0;X<Z;++X)if(D[X]===`
220
+ `){if(X-q>B)return!0;if(q=X+1,Z-q<=B)return!1}return!0}function s6(D,F){let P=JSON.stringify(D);if(F.options.doubleQuotedAsJSON)return P;let{implicitKey:B}=F,Z=F.options.doubleQuotedMinMultiLineLength,X=F.indent||(F5(D)?" ":""),q="",J=0;for(let Y=0,H=P[Y];H;H=P[++Y]){if(H===" "&&P[Y+1]==="\\"&&P[Y+2]==="n")q+=P.slice(J,Y)+"\\ ",Y+=1,J=Y,H="\\";if(H==="\\")switch(P[Y+1]){case"u":{q+=P.slice(J,Y);let U=P.substr(Y+2,4);switch(U){case"0000":q+="\\0";break;case"0007":q+="\\a";break;case"000b":q+="\\v";break;case"001b":q+="\\e";break;case"0085":q+="\\N";break;case"00a0":q+="\\_";break;case"2028":q+="\\L";break;case"2029":q+="\\P";break;default:if(U.substr(0,2)==="00")q+="\\x"+U.substr(2);else q+=P.substr(Y,6)}Y+=5,J=Y+1}break;case"n":if(B||P[Y+2]==='"'||P.length<Z)Y+=1;else{q+=P.slice(J,Y)+`
221
+
222
+ `;while(P[Y+2]==="\\"&&P[Y+3]==="n"&&P[Y+4]!=='"')q+=`
223
+ `,Y+=2;if(q+=X,P[Y+2]===" ")q+="\\";Y+=1,J=Y+1}break;default:Y+=1}}return q=J?q+P.slice(J):P,B?q:U0.foldFlowLines(q,X,U0.FOLD_QUOTED,D5(F,!1))}function YF(D,F){if(F.options.singleQuote===!1||F.implicitKey&&D.includes(`
224
+ `)||/[ \t]\n|\n[ \t]/.test(D))return s6(D,F);let P=F.indent||(F5(D)?" ":""),B="'"+D.replace(/'/g,"''").replace(/\n+/g,`$&
225
+ ${P}`)+"'";return F.implicitKey?B:U0.foldFlowLines(B,P,U0.FOLD_FLOW,D5(F,!1))}function _8(D,F){let{singleQuote:P}=F.options,B;if(P===!1)B=s6;else{let Z=D.includes('"'),X=D.includes("'");if(Z&&!X)B=YF;else if(X&&!Z)B=s6;else B=P?YF:s6}return B(D,F)}var HF;try{HF=new RegExp(`(^|(?<!
236
226
  ))
237
227
  +(?!
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?`|
228
+ |$)`,"g")}catch{HF=/\n+(?!\n|$)/g}function e3({comment:D,type:F,value:P},B,Z,X){let{blockQuote:q,commentString:J,lineWidth:Y}=B.options;if(!q||/\n[\t ]+$/.test(P)||/^\s*$/.test(P))return _8(P,B);let H=B.indent||(B.forceBlockIndent||F5(P)?" ":""),U=q==="literal"?!0:q==="folded"||F===M2.Scalar.BLOCK_FOLDED?!1:F===M2.Scalar.BLOCK_LITERAL?!0:!yu(P,Y,H.length);if(!P)return U?`|
239
229
  `:`>
240
- `;let U,O;for(O=P.length;O>0;--O){let T=P[O-1];if(T!==`
241
- `&&T!=="\t"&&T!==" ")break}let z=P.substring(O),I=z.indexOf(`
242
- `);if(I===-1)U="-";else if(P===z||I!==z.length-1){if(U="+",q)q()}else U="";if(z){if(P=P.slice(0,-z.length),z[z.length-1]===`
243
- `)z=z.slice(0,-1);z=z.replace(uF,`$&${H}`)}let R=!1,$,E=-1;for($=0;$<P.length;++$){let T=P[$];if(T===" ")R=!0;else if(T===`
244
- `)E=$;else break}let w=P.substring(0,E<$?E+1:$);if(w)P=P.substring(w.length),w=w.replace(/\n+/g,`$&${H}`);let S=(W?"|":">")+(R?H?"2":"1":"")+U;if(D){if(S+=" "+J(D.replace(/ ?[\r\n]+/g," ")),Z)Z()}if(W)return P=P.replace(/\n+/g,`$&${H}`),`${S}
245
- ${H}${w}${P}${z}`;P=P.replace(/\n+/g,`
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
- ${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 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
- ${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
- ${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
- `:"",w){let m=H(w);T+=`
255
- ${F6.indentComment(m,P.indent)}`}if(V===""&&!P.inFlow){if(T===`
256
- `)T=`
257
-
258
- `}else T+=`
259
- ${P.indent}`}else if(!z&&s0.isCollection(F)){let m=V[0],j=V.indexOf(`
260
- `),M=j!==-1,k=P.inFlow??F.flow??F.items.length===0;if(M||!k){let QD=!1;if(M&&(m==="&"||m==="!")){let BD=V.indexOf(" ");if(m==="&"&&BD!==-1&&BD<j&&V[BD+1]==="!")BD=V.indexOf(" ",BD+1);if(BD===-1||j<BD)QD=!0}if(!QD)T=`
261
- ${P.indent}`}}else if(V===""||V[0]===`
262
- `)T="";if($+=T+V,P.inFlow){if(S&&B)B()}else if(A&&!S)$+=F6.lineComment($,P.indent,H(A));else if(R&&Z)Z();return $}a_.stringifyPair=r_});var _F=Q((o_)=>{function n_(D,...F){if(D==="debug")console.log(...F)}function i_(D,F){if(D==="debug"||D==="warn")if(typeof process!=="undefined"&&process.emitWarning)process.emitWarning(F);else console.warn(F)}o_.debug=n_;o_.warn=i_});var M5=Q((Fk)=>{var P6=i(),zz=ED(),I5="<<",$5={identify:(D)=>D===I5||typeof D==="symbol"&&D.description===I5,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new zz.Scalar(Symbol(I5)),{addToJSMap:Qz}),stringify:()=>I5},Dk=(D,F)=>($5.identify(F)||P6.isScalar(F)&&(!F.type||F.type===zz.Scalar.PLAIN)&&$5.identify(F.value))&&D?.doc.schema.tags.some((P)=>P.tag===$5.tag&&P.default);function Qz(D,F,P){if(P=D&&P6.isAlias(P)?P.resolve(D.doc):P,P6.isSeq(P))for(let B of P.items)kF(D,F,B);else if(Array.isArray(P))for(let B of P)kF(D,F,B);else kF(D,F,P)}function kF(D,F,P){let B=D&&P6.isAlias(P)?P.resolve(D.doc):P;if(!P6.isMap(B))throw new Error("Merge sources must be maps or map aliases");let Z=B.toJSON(null,D,Map);for(let[q,X]of Z)if(F instanceof Map){if(!F.has(q))F.set(q,X)}else if(F instanceof Set)F.add(q);else if(!Object.prototype.hasOwnProperty.call(F,q))Object.defineProperty(F,q,{value:X,writable:!0,enumerable:!0,configurable:!0});return F}Fk.addMergeToJSMap=Qz;Fk.isMergeKey=Dk;Fk.merge=$5});var fF=Q((Hk)=>{var qk=_F(),Gz=M5(),Xk=D6(),Rz=i(),xF=z2();function Jk(D,F,{key:P,value:B}){if(Rz.isNode(P)&&P.addToJSMap)P.addToJSMap(D,F,B);else if(Gz.isMergeKey(D,P))Gz.addMergeToJSMap(D,F,B);else{let Z=xF.toJS(P,"",D);if(F instanceof Map)F.set(Z,xF.toJS(B,Z,D));else if(F instanceof Set)F.add(Z);else{let q=Yk(P,Z,D),X=xF.toJS(B,q,D);if(q in F)Object.defineProperty(F,q,{value:X,writable:!0,enumerable:!0,configurable:!0});else F[q]=X}}return F}function Yk(D,F,P){if(F===null)return"";if(typeof F!=="object")return String(F);if(Rz.isNode(D)&&P?.doc){let B=Xk.createStringifyContext(P.doc,{});B.anchors=new Set;for(let q of P.anchors.keys())B.anchors.add(q.anchor);B.inFlow=!0,B.inStringifyKey=!0;let Z=D.toString(B);if(!P.mapKeyWarned){let q=JSON.stringify(Z);if(q.length>40)q=q.substring(0,36)+'..."';qk.warn(P.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${q}. Set mapAsMap: true to use object keys.`),P.mapKeyWarned=!0}return Z}return JSON.stringify(F)}Hk.addPairToJSMap=Jk});var R2=Q((Qk)=>{var Iz=i1(),Wk=Oz(),Ok=fF(),K5=i();function zk(D,F,P){let B=Iz.createNode(D,void 0,P),Z=Iz.createNode(F,void 0,P);return new E5(B,Z)}class E5{constructor(D,F=null){Object.defineProperty(this,K5.NODE_TYPE,{value:K5.PAIR}),this.key=D,this.value=F}clone(D){let{key:F,value:P}=this;if(K5.isNode(F))F=F.clone(D);if(K5.isNode(P))P=P.clone(D);return new E5(F,P)}toJSON(D,F){let P=F?.mapAsMap?new Map:{};return Ok.addPairToJSMap(F,P,this)}toString(D,F,P){return D?.doc?Wk.stringifyPair(this,D,F,P):JSON.stringify(this)}}Qk.Pair=E5;Qk.createPair=zk});var hF=Q((Kk)=>{var n2=i(),$z=D6(),A5=o1();function Ik(D,F,P){return(F.inFlow??D.flow?Mk:$k)(D,F,P)}function $k({comment:D,items:F},P,{blockItemPrefix:B,flowChars:Z,itemIndent:q,onChompKeep:X,onComment:J}){let{indent:Y,options:{commentString:H}}=P,W=Object.assign({},P,{indent:q,type:null}),U=!1,O=[];for(let I=0;I<F.length;++I){let R=F[I],$=null;if(n2.isNode(R)){if(!U&&R.spaceBefore)O.push("");if(C5(P,O,R.commentBefore,U),R.comment)$=R.comment}else if(n2.isPair(R)){let w=n2.isNode(R.key)?R.key:null;if(w){if(!U&&w.spaceBefore)O.push("");C5(P,O,w.commentBefore,U)}}U=!1;let E=$z.stringify(R,W,()=>$=null,()=>U=!0);if($)E+=A5.lineComment(E,q,H($));if(U&&$)U=!1;O.push(B+E)}let z;if(O.length===0)z=Z.start+Z.end;else{z=O[0];for(let I=1;I<O.length;++I){let R=O[I];z+=R?`
230
+ `;let W,O;for(O=P.length;O>0;--O){let C=P[O-1];if(C!==`
231
+ `&&C!=="\t"&&C!==" ")break}let z=P.substring(O),I=z.indexOf(`
232
+ `);if(I===-1)W="-";else if(P===z||I!==z.length-1){if(W="+",X)X()}else W="";if(z){if(P=P.slice(0,-z.length),z[z.length-1]===`
233
+ `)z=z.slice(0,-1);z=z.replace(HF,`$&${H}`)}let R=!1,$,K=-1;for($=0;$<P.length;++$){let C=P[$];if(C===" ")R=!0;else if(C===`
234
+ `)K=$;else break}let j=P.substring(0,K<$?K+1:$);if(j)P=P.substring(j.length),j=j.replace(/\n+/g,`$&${H}`);let S=(R?H?"2":"1":"")+W;if(D){if(S+=" "+J(D.replace(/ ?[\r\n]+/g," ")),Z)Z()}if(!U){let C=P.replace(/\n+/g,`
235
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${H}`),u=!1,m=D5(B,!0);if(q!=="folded"&&F!==M2.Scalar.BLOCK_FOLDED)m.onOverflow=()=>{u=!0};let w=U0.foldFlowLines(`${j}${C}${z}`,H,U0.FOLD_BLOCK,m);if(!u)return`>${S}
236
+ ${H}${w}`}return P=P.replace(/\n+/g,`$&${H}`),`|${S}
237
+ ${H}${j}${P}${z}`}function mu(D,F,P,B){let{type:Z,value:X}=D,{actualString:q,implicitKey:J,indent:Y,indentStep:H,inFlow:U}=F;if(J&&X.includes(`
238
+ `)||U&&/[[\]{},]/.test(X))return _8(X,F);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(X))return J||U||!X.includes(`
239
+ `)?_8(X,F):e3(D,F,P,B);if(!J&&!U&&Z!==M2.Scalar.PLAIN&&X.includes(`
240
+ `))return e3(D,F,P,B);if(F5(X)){if(Y==="")return F.forceBlockIndent=!0,e3(D,F,P,B);else if(J&&Y===H)return _8(X,F)}let W=X.replace(/\n+/g,`$&
241
+ ${Y}`);if(q){let O=(R)=>R.default&&R.tag!=="tag:yaml.org,2002:str"&&R.test?.test(W),{compat:z,tags:I}=F.doc.schema;if(I.some(O)||z?.some(O))return _8(X,F)}return J?W:U0.foldFlowLines(W,Y,U0.FOLD_FLOW,D5(F,!1))}function lu(D,F,P,B){let{implicitKey:Z,inFlow:X}=F,q=typeof D.value==="string"?D:Object.assign({},D,{value:String(D.value)}),{type:J}=D;if(J!==M2.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(q.value))J=M2.Scalar.QUOTE_DOUBLE}let Y=(U)=>{switch(U){case M2.Scalar.BLOCK_FOLDED:case M2.Scalar.BLOCK_LITERAL:return Z||X?_8(q.value,F):e3(q,F,P,B);case M2.Scalar.QUOTE_DOUBLE:return s6(q.value,F);case M2.Scalar.QUOTE_SINGLE:return YF(q.value,F);case M2.Scalar.PLAIN:return mu(q,F,P,B);default:return null}},H=Y(J);if(H===null){let{defaultKeyType:U,defaultStringType:W}=F.options,O=Z&&U||W;if(H=Y(O),H===null)throw new Error(`Unsupported default string type ${O}`)}return H}cu.stringifyString=lu});var i6=Q((tu)=>{var pu=n3(),W0=t(),ru=a6(),au=n6();function su(D,F){let P=Object.assign({blockQuote:!0,commentString:ru.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 nu(D,F){if(F.tag){let Z=D.filter((X)=>X.tag===F.tag);if(Z.length>0)return Z.find((X)=>X.format===F.format)??Z[0]}let P=void 0,B;if(W0.isScalar(F)){B=F.value;let Z=D.filter((X)=>X.identify?.(B));if(Z.length>1){let X=Z.filter((q)=>q.test);if(X.length>0)Z=X}P=Z.find((X)=>X.format===F.format)??Z.find((X)=>!X.format)}else B=F,P=D.find((Z)=>Z.nodeClass&&B instanceof Z.nodeClass);if(!P){let Z=B?.constructor?.name??(B===null?"null":typeof B);throw new Error(`Tag not resolved for ${Z} value`)}return P}function iu(D,F,{anchors:P,doc:B}){if(!B.directives)return"";let Z=[],X=(W0.isScalar(D)||W0.isCollection(D))&&D.anchor;if(X&&pu.anchorIsValid(X))P.add(X),Z.push(`&${X}`);let q=D.tag??(F.default?null:F.tag);if(q)Z.push(B.directives.tagString(q));return Z.join(" ")}function ou(D,F,P,B){if(W0.isPair(D))return D.toString(F,P,B);if(W0.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,X=W0.isNode(D)?D:F.doc.createNode(D,{onTagObj:(Y)=>Z=Y});Z??(Z=nu(F.doc.schema.tags,X));let q=iu(X,Z,F);if(q.length>0)F.indentAtStart=(F.indentAtStart??0)+q.length+1;let J=typeof Z.stringify==="function"?Z.stringify(X,F,P,B):W0.isScalar(X)?au.stringifyString(X,F,P,B):X.toString(F,P,B);if(!q)return J;return W0.isScalar(X)||J[0]==="{"||J[0]==="["?`${q} ${J}`:`${q}
242
+ ${F.indent}${J}`}tu.createStringifyContext=su;tu.stringify=ou});var sW=Q((PN)=>{var r2=t(),rW=CD(),aW=i6(),o6=a6();function FN({key:D,value:F},P,B,Z){let{allNullValues:X,doc:q,indent:J,indentStep:Y,options:{commentString:H,indentSeq:U,simpleKeys:W}}=P,O=r2.isNode(D)&&D.comment||null;if(W){if(O)throw new Error("With simple keys, key nodes cannot have comments");if(r2.isCollection(D)||!r2.isNode(D)&&typeof D==="object")throw new Error("With simple keys, collection cannot be used as a key value")}let z=!W&&(!D||O&&F==null&&!P.inFlow||r2.isCollection(D)||(r2.isScalar(D)?D.type===rW.Scalar.BLOCK_FOLDED||D.type===rW.Scalar.BLOCK_LITERAL:typeof D==="object"));P=Object.assign({},P,{allNullValues:!1,implicitKey:!z&&(W||!X),indent:J+Y});let I=!1,R=!1,$=aW.stringify(D,P,()=>I=!0,()=>R=!0);if(!z&&!P.inFlow&&$.length>1024){if(W)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");z=!0}if(P.inFlow){if(X||F==null){if(I&&B)B();return $===""?"?":z?`? ${$}`:$}}else if(X&&!W||F==null&&z){if($=`? ${$}`,O&&!I)$+=o6.lineComment($,P.indent,H(O));else if(R&&Z)Z();return $}if(I)O=null;if(z){if(O)$+=o6.lineComment($,P.indent,H(O));$=`? ${$}
243
+ ${J}:`}else if($=`${$}:`,O)$+=o6.lineComment($,P.indent,H(O));let K,j,A;if(r2.isNode(F))K=!!F.spaceBefore,j=F.commentBefore,A=F.comment;else if(K=!1,j=null,A=null,F&&typeof F==="object")F=q.createNode(F);if(P.implicitKey=!1,!z&&!O&&r2.isScalar(F))P.indentAtStart=$.length+1;if(R=!1,!U&&Y.length>=2&&!P.inFlow&&!z&&r2.isSeq(F)&&!F.flow&&!F.tag&&!F.anchor)P.indent=P.indent.substring(2);let S=!1,C=aW.stringify(F,P,()=>S=!0,()=>R=!0),u=" ";if(O||K||j){if(u=K?`
244
+ `:"",j){let m=H(j);u+=`
245
+ ${o6.indentComment(m,P.indent)}`}if(C===""&&!P.inFlow){if(u===`
246
+ `)u=`
247
+
248
+ `}else u+=`
249
+ ${P.indent}`}else if(!z&&r2.isCollection(F)){let m=C[0],w=C.indexOf(`
250
+ `),M=w!==-1,h=P.inFlow??F.flow??F.items.length===0;if(M||!h){let GD=!1;if(M&&(m==="&"||m==="!")){let XD=C.indexOf(" ");if(m==="&"&&XD!==-1&&XD<w&&C[XD+1]==="!")XD=C.indexOf(" ",XD+1);if(XD===-1||w<XD)GD=!0}if(!GD)u=`
251
+ ${P.indent}`}}else if(C===""||C[0]===`
252
+ `)u="";if($+=u+C,P.inFlow){if(S&&B)B()}else if(A&&!S)$+=o6.lineComment($,P.indent,H(A));else if(R&&Z)Z();return $}PN.stringifyPair=FN});var UF=Q((qN)=>{var nW=vD("process");function ZN(D,...F){if(D==="debug")console.log(...F)}function XN(D,F){if(D==="debug"||D==="warn")if(typeof nW.emitWarning==="function")nW.emitWarning(F);else console.warn(F)}qN.debug=ZN;qN.warn=XN});var Z5=Q((UN)=>{var t6=t(),iW=CD(),P5="<<",B5={identify:(D)=>D===P5||typeof D==="symbol"&&D.description===P5,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new iW.Scalar(Symbol(P5)),{addToJSMap:oW}),stringify:()=>P5},HN=(D,F)=>(B5.identify(F)||t6.isScalar(F)&&(!F.type||F.type===iW.Scalar.PLAIN)&&B5.identify(F.value))&&D?.doc.schema.tags.some((P)=>P.tag===B5.tag&&P.default);function oW(D,F,P){if(P=D&&t6.isAlias(P)?P.resolve(D.doc):P,t6.isSeq(P))for(let B of P.items)WF(D,F,B);else if(Array.isArray(P))for(let B of P)WF(D,F,B);else WF(D,F,P)}function WF(D,F,P){let B=D&&t6.isAlias(P)?P.resolve(D.doc):P;if(!t6.isMap(B))throw new Error("Merge sources must be maps or map aliases");let Z=B.toJSON(null,D,Map);for(let[X,q]of Z)if(F instanceof Map){if(!F.has(X))F.set(X,q)}else if(F instanceof Set)F.add(X);else if(!Object.prototype.hasOwnProperty.call(F,X))Object.defineProperty(F,X,{value:q,writable:!0,enumerable:!0,configurable:!0});return F}UN.addMergeToJSMap=oW;UN.isMergeKey=HN;UN.merge=B5});var zF=Q(($N)=>{var QN=UF(),tW=Z5(),GN=i6(),eW=t(),OF=H0();function RN(D,F,{key:P,value:B}){if(eW.isNode(P)&&P.addToJSMap)P.addToJSMap(D,F,B);else if(tW.isMergeKey(D,P))tW.addMergeToJSMap(D,F,B);else{let Z=OF.toJS(P,"",D);if(F instanceof Map)F.set(Z,OF.toJS(B,Z,D));else if(F instanceof Set)F.add(Z);else{let X=IN(P,Z,D),q=OF.toJS(B,X,D);if(X in F)Object.defineProperty(F,X,{value:q,writable:!0,enumerable:!0,configurable:!0});else F[X]=q}}return F}function IN(D,F,P){if(F===null)return"";if(typeof F!=="object")return String(F);if(eW.isNode(D)&&P?.doc){let B=GN.createStringifyContext(P.doc,{});B.anchors=new Set;for(let X of P.anchors.keys())B.anchors.add(X.anchor);B.inFlow=!0,B.inStringifyKey=!0;let Z=D.toString(B);if(!P.mapKeyWarned){let X=JSON.stringify(Z);if(X.length>40)X=X.substring(0,36)+'..."';QN.warn(P.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${X}. Set mapAsMap: true to use object keys.`),P.mapKeyWarned=!0}return Z}return JSON.stringify(F)}$N.addPairToJSMap=RN});var O0=Q((CN)=>{var DO=r6(),EN=sW(),KN=zF(),X5=t();function AN(D,F,P){let B=DO.createNode(D,void 0,P),Z=DO.createNode(F,void 0,P);return new q5(B,Z)}class q5{constructor(D,F=null){Object.defineProperty(this,X5.NODE_TYPE,{value:X5.PAIR}),this.key=D,this.value=F}clone(D){let{key:F,value:P}=this;if(X5.isNode(F))F=F.clone(D);if(X5.isNode(P))P=P.clone(D);return new q5(F,P)}toJSON(D,F){let P=F?.mapAsMap?new Map:{};return KN.addPairToJSMap(F,P,this)}toString(D,F,P){return D?.doc?EN.stringifyPair(this,D,F,P):JSON.stringify(this)}}CN.Pair=q5;CN.createPair=AN});var QF=Q((SN)=>{var i0=t(),FO=i6(),J5=a6();function wN(D,F,P){return(F.inFlow??D.flow?bN:jN)(D,F,P)}function jN({comment:D,items:F},P,{blockItemPrefix:B,flowChars:Z,itemIndent:X,onChompKeep:q,onComment:J}){let{indent:Y,options:{commentString:H}}=P,U=Object.assign({},P,{indent:X,type:null}),W=!1,O=[];for(let I=0;I<F.length;++I){let R=F[I],$=null;if(i0.isNode(R)){if(!W&&R.spaceBefore)O.push("");if(Y5(P,O,R.commentBefore,W),R.comment)$=R.comment}else if(i0.isPair(R)){let j=i0.isNode(R.key)?R.key:null;if(j){if(!W&&j.spaceBefore)O.push("");Y5(P,O,j.commentBefore,W)}}W=!1;let K=FO.stringify(R,U,()=>$=null,()=>W=!0);if($)K+=J5.lineComment(K,X,H($));if(W&&$)W=!1;O.push(B+K)}let z;if(O.length===0)z=Z.start+Z.end;else{z=O[0];for(let I=1;I<O.length;++I){let R=O[I];z+=R?`
263
253
  ${Y}${R}`:`
264
254
  `}}if(D){if(z+=`
265
- `+A5.indentComment(H(D),Y),J)J()}else if(U&&X)X();return z}function Mk({items:D},F,{flowChars:P,itemIndent:B}){let{indent:Z,indentStep:q,flowCollectionPadding:X,options:{commentString:J}}=F;B+=q;let Y=Object.assign({},F,{indent:B,inFlow:!0,type:null}),H=!1,W=0,U=[];for(let I=0;I<D.length;++I){let R=D[I],$=null;if(n2.isNode(R)){if(R.spaceBefore)U.push("");if(C5(F,U,R.commentBefore,!1),R.comment)$=R.comment}else if(n2.isPair(R)){let w=n2.isNode(R.key)?R.key:null;if(w){if(w.spaceBefore)U.push("");if(C5(F,U,w.commentBefore,!1),w.comment)H=!0}let A=n2.isNode(R.value)?R.value:null;if(A){if(A.comment)$=A.comment;if(A.commentBefore)H=!0}else if(R.value==null&&w?.comment)$=w.comment}if($)H=!0;let E=$z.stringify(R,Y,()=>$=null);if(I<D.length-1)E+=",";if($)E+=A5.lineComment(E,B,J($));if(!H&&(U.length>W||E.includes(`
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
- ${q}${Z}${R}`:`
255
+ `+J5.indentComment(H(D),Y),J)J()}else if(W&&q)q();return z}function bN({items:D},F,{flowChars:P,itemIndent:B}){let{indent:Z,indentStep:X,flowCollectionPadding:q,options:{commentString:J}}=F;B+=X;let Y=Object.assign({},F,{indent:B,inFlow:!0,type:null}),H=!1,U=0,W=[];for(let I=0;I<D.length;++I){let R=D[I],$=null;if(i0.isNode(R)){if(R.spaceBefore)W.push("");if(Y5(F,W,R.commentBefore,!1),R.comment)$=R.comment}else if(i0.isPair(R)){let j=i0.isNode(R.key)?R.key:null;if(j){if(j.spaceBefore)W.push("");if(Y5(F,W,j.commentBefore,!1),j.comment)H=!0}let A=i0.isNode(R.value)?R.value:null;if(A){if(A.comment)$=A.comment;if(A.commentBefore)H=!0}else if(R.value==null&&j?.comment)$=j.comment}if($)H=!0;let K=FO.stringify(R,Y,()=>$=null);if(I<D.length-1)K+=",";if($)K+=J5.lineComment(K,B,J($));if(!H&&(W.length>U||K.includes(`
256
+ `)))H=!0;W.push(K),U=W.length}let{start:O,end:z}=P;if(W.length===0)return O+z;else{if(!H){let I=W.reduce((R,$)=>R+$.length+2,2);H=F.options.lineWidth>0&&I>F.options.lineWidth}if(H){let I=O;for(let R of W)I+=R?`
257
+ ${X}${Z}${R}`:`
268
258
  `;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 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
- `:" ")}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
- ${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=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
- `))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(`
259
+ ${Z}${z}`}else return`${O}${q}${W.join(" ")}${q}${z}`}}function Y5({indent:D,options:{commentString:F}},P,B,Z){if(B&&Z)B=B.replace(/^\n+/,"");if(B){let X=J5.indentComment(F(B),D);P.push(X.trimStart())}}SN.stringifyCollection=wN});var Q0=Q((xN)=>{var uN=QF(),NN=zF(),_N=t3(),z0=t(),H5=O0(),kN=CD();function e6(D,F){let P=z0.isScalar(F)?F.value:F;for(let B of D)if(z0.isPair(B)){if(B.key===F||B.key===P)return B;if(z0.isScalar(B.key)&&B.key.value===P)return B}return}class PO extends _N.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(D){super(z0.MAP,D);this.items=[]}static from(D,F,P){let{keepUndefined:B,replacer:Z}=P,X=new this(D),q=(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)X.items.push(H5.createPair(J,Y,P))};if(F instanceof Map)for(let[J,Y]of F)q(J,Y);else if(F&&typeof F==="object")for(let J of Object.keys(F))q(J,F[J]);if(typeof D.sortMapEntries==="function")X.items.sort(D.sortMapEntries);return X}add(D,F){let P;if(z0.isPair(D))P=D;else if(!D||typeof D!=="object"||!("key"in D))P=new H5.Pair(D,D?.value);else P=new H5.Pair(D.key,D.value);let B=e6(this.items,P.key),Z=this.schema?.sortMapEntries;if(B){if(!F)throw new Error(`Key ${P.key} already set`);if(z0.isScalar(B.value)&&kN.isScalarValue(P.value))B.value.value=P.value;else B.value=P.value}else if(Z){let X=this.items.findIndex((q)=>Z(P,q)<0);if(X===-1)this.items.push(P);else this.items.splice(X,0,P)}else this.items.push(P)}delete(D){let F=e6(this.items,D);if(!F)return!1;return this.items.splice(this.items.indexOf(F),1).length>0}get(D,F){let B=e6(this.items,D)?.value;return(!F&&z0.isScalar(B)?B.value:B)??void 0}has(D){return!!e6(this.items,D)}set(D,F){this.add(new H5.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)NN.addPairToJSMap(F,B,Z);return B}toString(D,F,P){if(!D)return JSON.stringify(this);for(let B of this.items)if(!z0.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 uN.stringifyCollection(this,D,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:D.indent||"",onChompKeep:P,onComment:F})}}xN.YAMLMap=PO;xN.findPair=e6});var k8=Q((yN)=>{var gN=t(),BO=Q0(),vN={collection:"map",default:!0,nodeClass:BO.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(D,F){if(!gN.isMap(D))F("Expected a mapping for this tag");return D},createNode:(D,F,P)=>BO.YAMLMap.from(D,F,P)};yN.map=vN});var G0=Q((aN)=>{var lN=r6(),cN=QF(),dN=t3(),W5=t(),pN=CD(),rN=H0();class ZO extends dN.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(D){super(W5.SEQ,D);this.items=[]}add(D){this.items.push(D)}delete(D){let F=U5(D);if(typeof F!=="number")return!1;return this.items.splice(F,1).length>0}get(D,F){let P=U5(D);if(typeof P!=="number")return;let B=this.items[P];return!F&&W5.isScalar(B)?B.value:B}has(D){let F=U5(D);return typeof F==="number"&&F<this.items.length}set(D,F){let P=U5(D);if(typeof P!=="number")throw new Error(`Expected a valid index, not ${D}.`);let B=this.items[P];if(W5.isScalar(B)&&pN.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(rN.toJS(Z,String(B++),F));return P}toString(D,F,P){if(!D)return JSON.stringify(this);return cN.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 X=0;for(let q of F){if(typeof B==="function"){let J=F instanceof Set?q:String(X++);q=B.call(F,J,q)}Z.items.push(lN.createNode(q,void 0,P))}}return Z}}function U5(D){let F=W5.isScalar(D)?D.value:D;if(F&&typeof F==="string")F=Number(F);return typeof F==="number"&&Number.isInteger(F)&&F>=0?F:null}aN.YAMLSeq=ZO});var x8=Q((oN)=>{var nN=t(),XO=G0(),iN={collection:"seq",default:!0,nodeClass:XO.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(D,F){if(!nN.isSeq(D))F("Expected a sequence for this tag");return D},createNode:(D,F,P)=>XO.YAMLSeq.from(D,F,P)};oN.seq=iN});var D1=Q((F_)=>{var eN=n6(),D_={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),eN.stringifyString(D,F,P,B)}};F_.string=D_});var O5=Q((B_)=>{var qO=CD(),JO={identify:(D)=>D==null,createNode:()=>new qO.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new qO.Scalar(null),stringify:({source:D},F)=>typeof D==="string"&&JO.test.test(D)?D:F.options.nullStr};B_.nullTag=JO});var GF=Q((q_)=>{var X_=CD(),YO={identify:(D)=>typeof D==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(D)=>new X_.Scalar(D[0]==="t"||D[0]==="T"),stringify({source:D,value:F},P){if(D&&YO.test.test(D)){let B=D[0]==="t"||D[0]==="T";if(F===B)return D}return F?P.options.trueStr:P.options.falseStr}};q_.boolTag=YO});var f8=Q((H_)=>{function Y_({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 X=JSON.stringify(B);if(!D&&F&&(!P||P==="tag:yaml.org,2002:float")&&/^\d/.test(X)){let q=X.indexOf(".");if(q<0)q=X.length,X+=".";let J=F-(X.length-q-1);while(J-- >0)X+="0"}return X}H_.stringifyNumber=Y_});var IF=Q((G_)=>{var W_=CD(),RF=f8(),O_={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:RF.stringifyNumber},z_={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():RF.stringifyNumber(D)}},Q_={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 W_.Scalar(parseFloat(D)),P=D.indexOf(".");if(P!==-1&&D[D.length-1]==="0")F.minFractionDigits=D.length-P-1;return F},stringify:RF.stringifyNumber};G_.float=Q_;G_.floatExp=z_;G_.floatNaN=O_});var MF=Q((A_)=>{var HO=f8(),z5=(D)=>typeof D==="bigint"||Number.isInteger(D),$F=(D,F,P,{intAsBigInt:B})=>B?BigInt(D):parseInt(D.substring(F),P);function UO(D,F,P){let{value:B}=D;if(z5(B)&&B>=0)return P+B.toString(F);return HO.stringifyNumber(D)}var M_={identify:(D)=>z5(D)&&D>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(D,F,P)=>$F(D,2,8,P),stringify:(D)=>UO(D,8,"0o")},E_={identify:z5,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(D,F,P)=>$F(D,0,10,P),stringify:HO.stringifyNumber},K_={identify:(D)=>z5(D)&&D>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(D,F,P)=>$F(D,2,16,P),stringify:(D)=>UO(D,16,"0x")};A_.int=E_;A_.intHex=K_;A_.intOct=M_});var WO=Q((N_)=>{var w_=k8(),j_=O5(),b_=x8(),S_=D1(),T_=GF(),EF=IF(),KF=MF(),u_=[w_.map,b_.seq,S_.string,j_.nullTag,T_.boolTag,KF.intOct,KF.int,KF.intHex,EF.floatNaN,EF.floatExp,EF.float];N_.schema=u_});var zO=Q((y_)=>{var k_=CD(),x_=k8(),f_=x8();function OO(D){return typeof D==="bigint"||Number.isInteger(D)}var Q5=({value:D})=>JSON.stringify(D),h_=[{identify:(D)=>typeof D==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(D)=>D,stringify:Q5},{identify:(D)=>D==null,createNode:()=>new k_.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Q5},{identify:(D)=>typeof D==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:(D)=>D==="true",stringify:Q5},{identify:OO,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})=>OO(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:Q5}],g_={default:!0,tag:"",test:/^/,resolve(D,F){return F(`Unresolved plain scalar ${JSON.stringify(D)}`),D}},v_=[x_.map,f_.seq].concat(h_,g_);y_.schema=v_});var CF=Q((d_)=>{var F1=vD("buffer"),AF=CD(),l_=n6(),c_={identify:(D)=>D instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(D,F){if(typeof F1.Buffer==="function")return F1.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,X){if(!P)return"";let q=P,J;if(typeof F1.Buffer==="function")J=q instanceof F1.Buffer?q.toString("base64"):F1.Buffer.from(q.buffer).toString("base64");else if(typeof btoa==="function"){let Y="";for(let H=0;H<q.length;++H)Y+=String.fromCharCode(q[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=AF.Scalar.BLOCK_LITERAL),F!==AF.Scalar.QUOTE_DOUBLE){let Y=Math.max(B.options.lineWidth-B.indent.length,B.options.minContentWidth),H=Math.ceil(J.length/Y),U=new Array(H);for(let W=0,O=0;W<H;++W,O+=Y)U[W]=J.substr(O,Y);J=U.join(F===AF.Scalar.BLOCK_LITERAL?`
260
+ `:" ")}return l_.stringifyString({comment:D,type:F,value:J},B,Z,X)}};d_.binary=c_});var R5=Q((n_)=>{var G5=t(),LF=O0(),r_=CD(),a_=G0();function QO(D,F){if(G5.isSeq(D))for(let P=0;P<D.items.length;++P){let B=D.items[P];if(G5.isPair(B))continue;else if(G5.isMap(B)){if(B.items.length>1)F("Each pair must have its own sequence indicator");let Z=B.items[0]||new LF.Pair(new r_.Scalar(null));if(B.commentBefore)Z.key.commentBefore=Z.key.commentBefore?`${B.commentBefore}
261
+ ${Z.key.commentBefore}`:B.commentBefore;if(B.comment){let X=Z.value??Z.key;X.comment=X.comment?`${B.comment}
262
+ ${X.comment}`:B.comment}B=Z}D.items[P]=G5.isPair(B)?B:new LF.Pair(B)}else F("Expected a sequence for this tag");return D}function GO(D,F,P){let{replacer:B}=P,Z=new a_.YAMLSeq(D);Z.tag="tag:yaml.org,2002:pairs";let X=0;if(F&&Symbol.iterator in Object(F))for(let q of F){if(typeof B==="function")q=B.call(F,String(X++),q);let J,Y;if(Array.isArray(q))if(q.length===2)J=q[0],Y=q[1];else throw new TypeError(`Expected [key, value] tuple: ${q}`);else if(q&&q instanceof Object){let H=Object.keys(q);if(H.length===1)J=H[0],Y=q[J];else throw new TypeError(`Expected tuple with one key, not ${H.length} keys`)}else J=q;Z.items.push(LF.createPair(J,Y,P))}return Z}var s_={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:QO,createNode:GO};n_.createPairs=GO;n_.pairs=s_;n_.resolvePairs=QO});var wF=Q((Fk)=>{var RO=t(),VF=H0(),P1=Q0(),e_=G0(),IO=R5();class o0 extends e_.YAMLSeq{constructor(){super();this.add=P1.YAMLMap.prototype.add.bind(this),this.delete=P1.YAMLMap.prototype.delete.bind(this),this.get=P1.YAMLMap.prototype.get.bind(this),this.has=P1.YAMLMap.prototype.has.bind(this),this.set=P1.YAMLMap.prototype.set.bind(this),this.tag=o0.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,X;if(RO.isPair(B))Z=VF.toJS(B.key,"",F),X=VF.toJS(B.value,Z,F);else Z=VF.toJS(B,"",F);if(P.has(Z))throw new Error("Ordered maps must not include duplicate keys");P.set(Z,X)}return P}static from(D,F,P){let B=IO.createPairs(D,F,P),Z=new this;return Z.items=B.items,Z}}o0.tag="tag:yaml.org,2002:omap";var Dk={collection:"seq",identify:(D)=>D instanceof Map,nodeClass:o0,default:!1,tag:"tag:yaml.org,2002:omap",resolve(D,F){let P=IO.resolvePairs(D,F),B=[];for(let{key:Z}of P.items)if(RO.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 o0,P)},createNode:(D,F,P)=>o0.from(D,F,P)};Fk.YAMLOMap=o0;Fk.omap=Dk});var AO=Q((Zk)=>{var $O=CD();function MO({value:D,source:F},P){if(F&&(D?EO:KO).test.test(F))return F;return D?P.options.trueStr:P.options.falseStr}var EO={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 $O.Scalar(!0),stringify:MO},KO={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 $O.Scalar(!1),stringify:MO};Zk.falseTag=KO;Zk.trueTag=EO});var CO=Q((Wk)=>{var Jk=CD(),jF=f8(),Yk={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:jF.stringifyNumber},Hk={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():jF.stringifyNumber(D)}},Uk={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 Jk.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:jF.stringifyNumber};Wk.float=Uk;Wk.floatExp=Hk;Wk.floatNaN=Yk});var VO=Q((Mk)=>{var LO=f8(),B1=(D)=>typeof D==="bigint"||Number.isInteger(D);function I5(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 q=BigInt(D);return Z==="-"?BigInt(-1)*q:q}let X=parseInt(D,P);return Z==="-"?-1*X:X}function bF(D,F,P){let{value:B}=D;if(B1(B)){let Z=B.toString(F);return B<0?"-"+P+Z.substr(1):P+Z}return LO.stringifyNumber(D)}var Gk={identify:B1,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(D,F,P)=>I5(D,2,2,P),stringify:(D)=>bF(D,2,"0b")},Rk={identify:B1,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(D,F,P)=>I5(D,1,8,P),stringify:(D)=>bF(D,8,"0")},Ik={identify:B1,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(D,F,P)=>I5(D,0,10,P),stringify:LO.stringifyNumber},$k={identify:B1,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(D,F,P)=>I5(D,2,16,P),stringify:(D)=>bF(D,16,"0x")};Mk.int=Ik;Mk.intBin=Gk;Mk.intHex=$k;Mk.intOct=Rk});var SF=Q((Vk)=>{var E5=t(),$5=O0(),M5=Q0();class t0 extends M5.YAMLMap{constructor(D){super(D);this.tag=t0.tag}add(D){let F;if(E5.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(!M5.findPair(this.items,F.key))this.items.push(F)}get(D,F){let P=M5.findPair(this.items,D);return!F&&E5.isPair(P)?E5.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=M5.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 X of F){if(typeof B==="function")X=B.call(F,X,X);Z.items.push($5.createPair(X,null,P))}return Z}}t0.tag="tag:yaml.org,2002:set";var Lk={collection:"map",identify:(D)=>D instanceof Set,nodeClass:t0,default:!1,tag:"tag:yaml.org,2002:set",createNode:(D,F,P)=>t0.from(D,F,P),resolve(D,F){if(E5.isMap(D))if(D.hasAllNullValues(!0))return Object.assign(new t0,D);else F("Set items must all have null values");else F("Expected a mapping for this tag");return D}};Vk.YAMLSet=t0;Vk.set=Lk});var uF=Q((uk)=>{var bk=f8();function TF(D,F){let P=D[0],B=P==="-"||P==="+"?D.substring(1):D,Z=(q)=>F?BigInt(q):Number(q),X=B.replace(/_/g,"").split(":").reduce((q,J)=>q*Z(60)+Z(J),Z(0));return P==="-"?Z(-1)*X:X}function wO(D){let{value:F}=D,P=(q)=>q;if(typeof F==="bigint")P=(q)=>BigInt(q);else if(isNaN(F)||!isFinite(F))return bk.stringifyNumber(D);let B="";if(F<0)B="-",F*=P(-1);let Z=P(60),X=[F%Z];if(F<60)X.unshift(0);else if(F=(F-X[0])/Z,X.unshift(F%Z),F>=60)F=(F-X[0])/Z,X.unshift(F);return B+X.map((q)=>String(q).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var Sk={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})=>TF(D,P),stringify:wO},Tk={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)=>TF(D,!1),stringify:wO},jO={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(jO.test);if(!F)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,P,B,Z,X,q,J]=F.map(Number),Y=F[7]?Number((F[7]+"00").substr(1,3)):0,H=Date.UTC(P,B-1,Z,X||0,q||0,J||0,Y),U=F[8];if(U&&U!=="Z"){let W=TF(U,!1);if(Math.abs(W)<30)W*=60;H-=60000*W}return new Date(H)},stringify:({value:D})=>D?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};uk.floatTime=Tk;uk.intTime=Sk;uk.timestamp=jO});var SO=Q((pk)=>{var xk=k8(),fk=O5(),hk=x8(),gk=D1(),vk=CF(),bO=AO(),NF=CO(),K5=VO(),yk=Z5(),mk=wF(),lk=R5(),ck=SF(),_F=uF(),dk=[xk.map,hk.seq,gk.string,fk.nullTag,bO.trueTag,bO.falseTag,K5.intBin,K5.intOct,K5.int,K5.intHex,NF.floatNaN,NF.floatExp,NF.float,vk.binary,yk.merge,mk.omap,lk.pairs,ck.set,_F.intTime,_F.floatTime,_F.timestamp];pk.schema=dk});var vO=Q((Dx)=>{var _O=k8(),ak=O5(),kO=x8(),sk=D1(),nk=GF(),kF=IF(),xF=MF(),ik=WO(),ok=zO(),xO=CF(),Z1=Z5(),fO=wF(),hO=R5(),TO=SO(),gO=SF(),A5=uF(),uO=new Map([["core",ik.schema],["failsafe",[_O.map,kO.seq,sk.string]],["json",ok.schema],["yaml11",TO.schema],["yaml-1.1",TO.schema]]),NO={binary:xO.binary,bool:nk.boolTag,float:kF.float,floatExp:kF.floatExp,floatNaN:kF.floatNaN,floatTime:A5.floatTime,int:xF.int,intHex:xF.intHex,intOct:xF.intOct,intTime:A5.intTime,map:_O.map,merge:Z1.merge,null:ak.nullTag,omap:fO.omap,pairs:hO.pairs,seq:kO.seq,set:gO.set,timestamp:A5.timestamp},tk={"tag:yaml.org,2002:binary":xO.binary,"tag:yaml.org,2002:merge":Z1.merge,"tag:yaml.org,2002:omap":fO.omap,"tag:yaml.org,2002:pairs":hO.pairs,"tag:yaml.org,2002:set":gO.set,"tag:yaml.org,2002:timestamp":A5.timestamp};function ek(D,F,P){let B=uO.get(F);if(B&&!D)return P&&!B.includes(Z1.merge)?B.concat(Z1.merge):B.slice();let Z=B;if(!Z)if(Array.isArray(D))Z=[];else{let X=Array.from(uO.keys()).filter((q)=>q!=="yaml11").map((q)=>JSON.stringify(q)).join(", ");throw new Error(`Unknown schema "${F}"; use one of ${X} or define customTags array`)}if(Array.isArray(D))for(let X of D)Z=Z.concat(X);else if(typeof D==="function")Z=D(Z.slice());if(P)Z=Z.concat(Z1.merge);return Z.reduce((X,q)=>{let J=typeof q==="string"?NO[q]:q;if(!J){let Y=JSON.stringify(q),H=Object.keys(NO).map((U)=>JSON.stringify(U)).join(", ");throw new Error(`Unknown custom tag ${Y}; use one of ${H}`)}if(!X.includes(J))X.push(J);return X},[])}Dx.coreKnownTags=tk;Dx.getTags=ek});var gF=Q((Jx)=>{var fF=t(),Bx=k8(),Zx=x8(),Xx=D1(),C5=vO(),qx=(D,F)=>D.key<F.key?-1:D.key>F.key?1:0;class hF{constructor({compat:D,customTags:F,merge:P,resolveKnownTags:B,schema:Z,sortMapEntries:X,toStringDefaults:q}){this.compat=Array.isArray(D)?C5.getTags(D,"compat"):D?C5.getTags(null,D):null,this.name=typeof Z==="string"&&Z||"core",this.knownTags=B?C5.coreKnownTags:{},this.tags=C5.getTags(F,this.name,P),this.toStringOptions=q??null,Object.defineProperty(this,fF.MAP,{value:Bx.map}),Object.defineProperty(this,fF.SCALAR,{value:Xx.string}),Object.defineProperty(this,fF.SEQ,{value:Zx.seq}),this.sortMapEntries=typeof X==="function"?X:X===!0?qx:null}clone(){let D=Object.create(hF.prototype,Object.getOwnPropertyDescriptors(this));return D.tags=this.tags.slice(),D}}Jx.Schema=hF});var yO=Q((Wx)=>{var Hx=t(),vF=i6(),X1=a6();function Ux(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=vF.createStringifyContext(D,F),{commentString:X}=Z.options;if(D.commentBefore){if(P.length!==1)P.unshift("");let Y=X(D.commentBefore);P.unshift(X1.indentComment(Y,""))}let q=!1,J=null;if(D.contents){if(Hx.isNode(D.contents)){if(D.contents.spaceBefore&&B)P.push("");if(D.contents.commentBefore){let U=X(D.contents.commentBefore);P.push(X1.indentComment(U,""))}Z.forceBlockIndent=!!D.comment,J=D.contents.comment}let Y=J?void 0:()=>q=!0,H=vF.stringify(D.contents,Z,()=>J=null,Y);if(J)H+=X1.lineComment(H,"",X(J));if((H[0]==="|"||H[0]===">")&&P[P.length-1]==="---")P[P.length-1]=`--- ${H}`;else P.push(H)}else P.push(vF.stringify(D.contents,Z));if(D.directives?.docEnd)if(D.comment){let Y=X(D.comment);if(Y.includes(`
263
+ `))P.push("..."),P.push(X1.indentComment(Y,""));else P.push(`... ${Y}`)}else P.push("...");else{let Y=D.comment;if(Y&&q)Y=Y.replace(/^\n+/,"");if(Y){if((!q||J)&&P[P.length-1]!=="")P.push("");P.push(X1.indentComment(X(Y),""))}}return P.join(`
274
264
  `)+`
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
- `;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+=`:
265
+ `}Wx.stringifyDocument=Ux});var q1=Q((Ex)=>{var zx=p6(),h8=t3(),J2=t(),Qx=O0(),Gx=H0(),Rx=gF(),Ix=yO(),yF=n3(),$x=XF(),Mx=r6(),mF=ZF();class lF{constructor(D,F,P){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,J2.NODE_TYPE,{value:J2.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:X}=Z;if(P?._directives){if(this.directives=P._directives.atDocument(),this.directives.yaml.explicit)X=this.directives.yaml.version}else this.directives=new mF.Directives({version:X});this.setSchema(X,P),this.contents=D===void 0?null:this.createNode(D,B,P)}clone(){let D=Object.create(lF.prototype,{[J2.NODE_TYPE]:{value:J2.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=J2.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=yF.anchorNames(this);D.anchor=!F||P.has(F)?yF.findNewAnchor(F||"a",P):F}return new zx.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=(K)=>typeof K==="number"||K instanceof String||K 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:X,flow:q,keepUndefined:J,onTagObj:Y,tag:H}=P??{},{onAnchor:U,setAnchors:W,sourceObjects:O}=yF.createNodeAnchors(this,X||"a"),z={aliasDuplicateObjects:Z??!0,keepUndefined:J??!1,onAnchor:U,onTagObj:Y,replacer:B,schema:this.schema,sourceObjects:O},I=Mx.createNode(D,H,z);if(q&&J2.isCollection(I))I.flow=!0;return W(),I}createPair(D,F,P={}){let B=this.createNode(D,null,P),Z=this.createNode(F,null,P);return new Qx.Pair(B,Z)}delete(D){return g8(this.contents)?this.contents.delete(D):!1}deleteIn(D){if(h8.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 J2.isCollection(this.contents)?this.contents.get(D,F):void 0}getIn(D,F){if(h8.isEmptyPath(D))return!F&&J2.isScalar(this.contents)?this.contents.value:this.contents;return J2.isCollection(this.contents)?this.contents.getIn(D,F):void 0}has(D){return J2.isCollection(this.contents)?this.contents.has(D):!1}hasIn(D){if(h8.isEmptyPath(D))return this.contents!==void 0;return J2.isCollection(this.contents)?this.contents.hasIn(D):!1}set(D,F){if(this.contents==null)this.contents=h8.collectionFromPath(this.schema,[D],F);else if(g8(this.contents))this.contents.set(D,F)}setIn(D,F){if(h8.isEmptyPath(D))this.contents=F;else if(this.contents==null)this.contents=h8.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 mF.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 mF.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 Rx.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:X}={}){let q={anchors:new Map,doc:this,keep:!D,mapAsMap:P===!0,mapKeyWarned:!1,maxAliasCount:typeof B==="number"?B:100},J=Gx.toJS(this.contents,F??"",q);if(typeof Z==="function")for(let{count:Y,res:H}of q.anchors.values())Z(H,Y);return typeof X==="function"?$x.applyReviver(X,{"":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 Ix.stringifyDocument(this,D)}}function g8(D){if(J2.isCollection(D))return!0;throw new Error("Expected a YAML collection as document contents")}Ex.Document=lF});var J1=Q((Cx)=>{class L5 extends Error{constructor(D,F,P,B){super();this.name=D,this.code=P,this.message=B,this.pos=F}}class mO extends L5{constructor(D,F,P){super("YAMLParseError",D,F,P)}}class lO extends L5{constructor(D,F,P){super("YAMLWarning",D,F,P)}}var Ax=(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 X=Z-1,q=D.substring(F.lineStarts[B-1],F.lineStarts[B]).replace(/[\n\r]+$/,"");if(X>=60&&q.length>80){let J=Math.min(X-39,q.length-79);q="…"+q.substring(J),X-=J-1}if(q.length>80)q=q.substring(0,79)+"…";if(B>1&&/^ *$/.test(q.substring(0,X))){let J=D.substring(F.lineStarts[B-2],F.lineStarts[B-1]);if(J.length>80)J=J.substring(0,79)+`…
266
+ `;q=J+q}if(/[^ ]/.test(q)){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-X));let H=" ".repeat(X)+"^".repeat(J);P.message+=`:
277
267
 
278
- ${X}
268
+ ${q}
279
269
  ${H}
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
- `))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
- `+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 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
- `+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
- `+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
- `+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+=`
287
- `+$.comment;else H.comment=$.comment;H.range=[B.offset,R,$.offset]}else H.range=[B.offset,R,R];return H}Dv.resolveFlowCollection=eh});var RQ=Q((Uv)=>{var Pv=i(),Bv=ED(),Zv=$2(),qv=M2(),Xv=WQ(),Jv=OQ(),Yv=GQ();function IP(D,F,P,B,Z,q){let X=P.type==="block-map"?Xv.resolveBlockMap(D,F,P,B,q):P.type==="block-seq"?Jv.resolveBlockSeq(D,F,P,B,q):Yv.resolveFlowCollection(D,F,P,B,q),J=X.constructor;if(Z==="!"||Z===J.tagName)return X.tag=J.tagName,X;if(Z)X.tag=Z;return X}function Hv(D,F,P,B,Z){let q=B.tag,X=!q?null:F.directives.tagName(q.source,(O)=>Z(q,"TAG_RESOLVE_FAILED",O));if(P.type==="block-seq"){let{anchor:O,newlineAfterProp:z}=B,I=O&&q?O.offset>q.offset?O:q:O??q;if(I&&(!z||z.offset<I.offset))Z(I,"MISSING_CHAR","Missing newline after block sequence props")}let J=P.type==="block-map"?"map":P.type==="block-seq"?"seq":P.start.source==="{"?"map":"seq";if(!q||!X||X==="!"||X===Zv.YAMLMap.tagName&&J==="map"||X===qv.YAMLSeq.tagName&&J==="seq")return IP(D,F,P,Z,X);let Y=F.schema.tags.find((O)=>O.tag===X&&O.collection===J);if(!Y){let O=F.schema.knownTags[X];if(O&&O.collection===J)F.schema.tags.push(Object.assign({},O,{default:!1})),Y=O;else{if(O?.collection)Z(q,"BAD_COLLECTION_TYPE",`${O.tag} used for ${J} collection, but expects ${O.collection}`,!0);else Z(q,"TAG_RESOLVE_FAILED",`Unresolved tag: ${X}`,!0);return IP(D,F,P,Z,X)}}let H=IP(D,F,P,Z,X,Y),W=Y.resolve?.(H,(O)=>Z(q,"TAG_RESOLVE_FAILED",O),F.options)??H,U=Pv.isNode(W)?W:new Bv.Scalar(W);if(U.range=H.range,U.tag=X,Y?.format)U.format=Y.format;return U}Uv.composeCollection=Hv});var MP=Q((Gv)=>{var $P=ED();function Ov(D,F,P){let B=F.offset,Z=zv(F,D.options.strict,P);if(!Z)return{value:"",type:null,comment:"",range:[B,B,B]};let q=Z.mode===">"?$P.Scalar.BLOCK_FOLDED:$P.Scalar.BLOCK_LITERAL,X=F.source?Qv(F.source):[],J=X.length;for(let R=X.length-1;R>=0;--R){let $=X[R][1];if($===""||$==="\r")J=R;else break}if(J===0){let R=Z.chomp==="+"&&X.length>0?`
288
- `.repeat(Math.max(1,X.length-1)):"",$=B+Z.length;if(F.source)$+=F.source.length;return{value:R,type:q,comment:Z.comment,range:[B,$,$]}}let Y=F.indent+Z.indent,H=F.offset+Z.length,W=0;for(let R=0;R<J;++R){let[$,E]=X[R];if(E===""||E==="\r"){if(Z.indent===0&&$.length>Y)Y=$.length}else{if($.length<Y)P(H+$.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(Z.indent===0)Y=$.length;if(W=R,Y===0&&!D.atRoot)P(H,"BAD_INDENT","Block scalar values in collections must be indented");break}H+=$.length+E.length+1}for(let R=X.length-1;R>=J;--R)if(X[R][0].length>Y)J=R+1;let U="",O="",z=!1;for(let R=0;R<W;++R)U+=X[R][0].slice(Y)+`
289
- `;for(let R=W;R<J;++R){let[$,E]=X[R];H+=$.length+E.length+1;let w=E[E.length-1]==="\r";if(w)E=E.slice(0,-1);if(E&&$.length<Y){let S=`Block scalar lines must not be less indented than their ${Z.indent?"explicit indentation indicator":"first line"}`;P(H-E.length-(w?2:1),"BAD_INDENT",S),$=""}if(q===$P.Scalar.BLOCK_LITERAL)U+=O+$.slice(Y)+E,O=`
290
- `;else if($.length>Y||E[0]==="\t"){if(O===" ")O=`
270
+ `}};Cx.YAMLError=L5;Cx.YAMLParseError=mO;Cx.YAMLWarning=lO;Cx.prettifyError=Ax});var Y1=Q((Sx)=>{function bx(D,{flow:F,indicator:P,next:B,offset:Z,onError:X,parentIndent:q,startOnNewline:J}){let Y=!1,H=J,U=J,W="",O="",z=!1,I=!1,R=null,$=null,K=null,j=null,A=null,S=null,C=null;for(let w of D){if(I){if(w.type!=="space"&&w.type!=="newline"&&w.type!=="comma")X(w.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");I=!1}if(R){if(H&&w.type!=="comment"&&w.type!=="newline")X(R,"TAB_AS_INDENT","Tabs are not allowed as indentation");R=null}switch(w.type){case"space":if(!F&&(P!=="doc-start"||B?.type!=="flow-collection")&&w.source.includes("\t"))R=w;U=!0;break;case"comment":{if(!U)X(w,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let M=w.source.substring(1)||" ";if(!W)W=M;else W+=O+M;O="",H=!1;break}case"newline":if(H){if(W)W+=w.source;else if(!S||P!=="seq-item-ind")Y=!0}else O+=w.source;if(H=!0,z=!0,$||K)j=w;U=!0;break;case"anchor":if($)X(w,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(w.source.endsWith(":"))X(w.offset+w.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);$=w,C??(C=w.offset),H=!1,U=!1,I=!0;break;case"tag":{if(K)X(w,"MULTIPLE_TAGS","A node can have at most one tag");K=w,C??(C=w.offset),H=!1,U=!1,I=!0;break}case P:if($||K)X(w,"BAD_PROP_ORDER",`Anchors and tags must be after the ${w.source} indicator`);if(S)X(w,"UNEXPECTED_TOKEN",`Unexpected ${w.source} in ${F??"collection"}`);S=w,H=P==="seq-item-ind"||P==="explicit-key-ind",U=!1;break;case"comma":if(F){if(A)X(w,"UNEXPECTED_TOKEN",`Unexpected , in ${F}`);A=w,H=!1,U=!1;break}default:X(w,"UNEXPECTED_TOKEN",`Unexpected ${w.type} token`),H=!1,U=!1}}let u=D[D.length-1],m=u?u.offset+u.source.length:Z;if(I&&B&&B.type!=="space"&&B.type!=="newline"&&B.type!=="comma"&&(B.type!=="scalar"||B.source!==""))X(B.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(R&&(H&&R.indent<=q||B?.type==="block-map"||B?.type==="block-seq"))X(R,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:A,found:S,spaceBefore:Y,comment:W,hasNewline:z,anchor:$,tag:K,newlineAfterProp:j,end:m,start:C??m}}Sx.resolveProps=bx});var V5=Q((ux)=>{function cF(D){if(!D)return null;switch(D.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(D.source.includes(`
271
+ `))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(cF(F.key)||cF(F.value))return!0}return!1;default:return!0}}ux.containsNewline=cF});var dF=Q((xx)=>{var _x=V5();function kx(D,F,P){if(F?.type==="flow-collection"){let B=F.end[0];if(B.indent===D&&(B.source==="]"||B.source==="}")&&_x.containsNewline(F))P(B,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}xx.flowIndentCheck=kx});var pF=Q((gx)=>{var cO=t();function hx(D,F,P){let{uniqueKeys:B}=D.options;if(B===!1)return!1;let Z=typeof B==="function"?B:(X,q)=>X===q||cO.isScalar(X)&&cO.isScalar(q)&&X.value===q.value;return F.some((X)=>Z(X.key,P))}gx.mapIncludes=hx});var sO=Q((dx)=>{var dO=O0(),yx=Q0(),pO=Y1(),mx=V5(),rO=dF(),lx=pF(),aO="All mapping items must start at the same column";function cx({composeNode:D,composeEmptyNode:F},P,B,Z,X){let J=new(X?.nodeClass??yx.YAMLMap)(P.schema);if(P.atRoot)P.atRoot=!1;let Y=B.offset,H=null;for(let U of B.items){let{start:W,key:O,sep:z,value:I}=U,R=pO.resolveProps(W,{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",aO)}if(!R.anchor&&!R.tag&&!z){if(H=R.end,R.comment)if(J.comment)J.comment+=`
272
+ `+R.comment;else J.comment=R.comment;continue}if(R.newlineAfterProp||mx.containsNewline(O))Z(O??W[W.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",aO);P.atKey=!0;let K=R.end,j=O?D(P,O,R,Z):F(P,K,W,null,R,Z);if(P.schema.compat)rO.flowIndentCheck(B.indent,O,Z);if(P.atKey=!1,lx.mapIncludes(P,J.items,j))Z(K,"DUPLICATE_KEY","Map keys must be unique");let A=pO.resolveProps(z??[],{indicator:"map-value-ind",next:I,offset:j.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(j.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)rO.flowIndentCheck(B.indent,I,Z);Y=S.range[2];let C=new dO.Pair(j,S);if(P.options.keepSourceTokens)C.srcToken=U;J.items.push(C)}else{if($)Z(j.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(A.comment)if(j.comment)j.comment+=`
273
+ `+A.comment;else j.comment=A.comment;let S=new dO.Pair(j);if(P.options.keepSourceTokens)S.srcToken=U;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}dx.resolveBlockMap=cx});var nO=Q((ix)=>{var rx=G0(),ax=Y1(),sx=dF();function nx({composeNode:D,composeEmptyNode:F},P,B,Z,X){let J=new(X?.nodeClass??rx.YAMLSeq)(P.schema);if(P.atRoot)P.atRoot=!1;if(P.atKey)P.atKey=!1;let Y=B.offset,H=null;for(let{start:U,value:W}of B.items){let O=ax.resolveProps(U,{indicator:"seq-item-ind",next:W,offset:Y,onError:Z,parentIndent:B.indent,startOnNewline:!0});if(!O.found)if(O.anchor||O.tag||W)if(W&&W.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=W?D(P,W,O,Z):F(P,O.end,U,null,O,Z);if(P.schema.compat)sx.flowIndentCheck(B.indent,W,Z);Y=z.range[2],J.items.push(z)}return J.range=[B.offset,Y,H??Y],J}ix.resolveBlockSeq=nx});var v8=Q((ex)=>{function tx(D,F,P,B){let Z="";if(D){let X=!1,q="";for(let J of D){let{source:Y,type:H}=J;switch(H){case"space":X=!0;break;case"comment":{if(P&&!X)B(J,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let U=Y.substring(1)||" ";if(!Z)Z=U;else Z+=q+U;q="";break}case"newline":if(Z)q+=Y;X=!0;break;default:B(J,"UNEXPECTED_TOKEN",`Unexpected ${H} at node end`)}F+=Y.length}}return{comment:Z,offset:F}}ex.resolveEnd=tx});var tO=Q((Yf)=>{var Ff=t(),Pf=O0(),iO=Q0(),Bf=G0(),Zf=v8(),oO=Y1(),Xf=V5(),qf=pF(),rF="Block collections are not allowed within flow collections",aF=(D)=>D&&(D.type==="block-map"||D.type==="block-seq");function Jf({composeNode:D,composeEmptyNode:F},P,B,Z,X){let q=B.start.source==="{",J=q?"flow map":"flow sequence",H=new(X?.nodeClass??(q?iO.YAMLMap:Bf.YAMLSeq))(P.schema);H.flow=!0;let U=P.atRoot;if(U)P.atRoot=!1;if(P.atKey)P.atKey=!1;let W=B.offset+B.start.source.length;for(let $=0;$<B.items.length;++$){let K=B.items[$],{start:j,key:A,sep:S,value:C}=K,u=oO.resolveProps(j,{flow:J,indicator:"explicit-key-ind",next:A??S?.[0],offset:W,onError:Z,parentIndent:B.indent,startOnNewline:!1});if(!u.found){if(!u.anchor&&!u.tag&&!S&&!C){if($===0&&u.comma)Z(u.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${J}`);else if($<B.items.length-1)Z(u.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${J}`);if(u.comment)if(H.comment)H.comment+=`
274
+ `+u.comment;else H.comment=u.comment;W=u.end;continue}if(!q&&P.options.strict&&Xf.containsNewline(A))Z(A,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if($===0){if(u.comma)Z(u.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${J}`)}else{if(!u.comma)Z(u.start,"MISSING_CHAR",`Missing , between ${J} items`);if(u.comment){let m="";D:for(let w of j)switch(w.type){case"comma":case"space":break;case"comment":m=w.source.substring(1);break D;default:break D}if(m){let w=H.items[H.items.length-1];if(Ff.isPair(w))w=w.value??w.key;if(w.comment)w.comment+=`
275
+ `+m;else w.comment=m;u.comment=u.comment.substring(m.length+1)}}}if(!q&&!S&&!u.found){let m=C?D(P,C,u,Z):F(P,u.end,S,null,u,Z);if(H.items.push(m),W=m.range[2],aF(C))Z(m.range,"BLOCK_IN_FLOW",rF)}else{P.atKey=!0;let m=u.end,w=A?D(P,A,u,Z):F(P,m,j,null,u,Z);if(aF(A))Z(w.range,"BLOCK_IN_FLOW",rF);P.atKey=!1;let M=oO.resolveProps(S??[],{flow:J,indicator:"map-value-ind",next:C,offset:w.range[2],onError:Z,parentIndent:B.indent,startOnNewline:!1});if(M.found){if(!q&&!u.found&&P.options.strict){if(S)for(let XD of S){if(XD===M.found)break;if(XD.type==="newline"){Z(XD,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(u.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(C)if("source"in C&&C.source&&C.source[0]===":")Z(C,"MISSING_CHAR",`Missing space after : in ${J}`);else Z(M.start,"MISSING_CHAR",`Missing , or : between ${J} items`);let h=C?D(P,C,M,Z):M.found?F(P,M.end,S,null,M,Z):null;if(h){if(aF(C))Z(h.range,"BLOCK_IN_FLOW",rF)}else if(M.comment)if(w.comment)w.comment+=`
276
+ `+M.comment;else w.comment=M.comment;let GD=new Pf.Pair(w,h);if(P.options.keepSourceTokens)GD.srcToken=K;if(q){let XD=H;if(qf.mapIncludes(P,XD.items,w))Z(m,"DUPLICATE_KEY","Map keys must be unique");XD.items.push(GD)}else{let XD=new iO.YAMLMap(P.schema);XD.flow=!0,XD.items.push(GD);let s2=(h??w).range;XD.range=[w.range[0],s2[1],s2[2]],H.items.push(XD)}W=h?h.range[2]:M.end}}let O=q?"}":"]",[z,...I]=B.end,R=W;if(z&&z.source===O)R=z.offset+z.source.length;else{let $=J[0].toUpperCase()+J.substring(1),K=U?`${$} must end with a ${O}`:`${$} in block collection must be sufficiently indented and end with a ${O}`;if(Z(W,U?"MISSING_CHAR":"BAD_INDENT",K),z&&z.source.length!==1)I.unshift(z)}if(I.length>0){let $=Zf.resolveEnd(I,R,P.options.strict,Z);if($.comment)if(H.comment)H.comment+=`
277
+ `+$.comment;else H.comment=$.comment;H.range=[B.offset,R,$.offset]}else H.range=[B.offset,R,R];return H}Yf.resolveFlowCollection=Jf});var eO=Q(($f)=>{var Uf=t(),Wf=CD(),Of=Q0(),zf=G0(),Qf=sO(),Gf=nO(),Rf=tO();function sF(D,F,P,B,Z,X){let q=P.type==="block-map"?Qf.resolveBlockMap(D,F,P,B,X):P.type==="block-seq"?Gf.resolveBlockSeq(D,F,P,B,X):Rf.resolveFlowCollection(D,F,P,B,X),J=q.constructor;if(Z==="!"||Z===J.tagName)return q.tag=J.tagName,q;if(Z)q.tag=Z;return q}function If(D,F,P,B,Z){let X=B.tag,q=!X?null:F.directives.tagName(X.source,(O)=>Z(X,"TAG_RESOLVE_FAILED",O));if(P.type==="block-seq"){let{anchor:O,newlineAfterProp:z}=B,I=O&&X?O.offset>X.offset?O:X:O??X;if(I&&(!z||z.offset<I.offset))Z(I,"MISSING_CHAR","Missing newline after block sequence props")}let J=P.type==="block-map"?"map":P.type==="block-seq"?"seq":P.start.source==="{"?"map":"seq";if(!X||!q||q==="!"||q===Of.YAMLMap.tagName&&J==="map"||q===zf.YAMLSeq.tagName&&J==="seq")return sF(D,F,P,Z,q);let Y=F.schema.tags.find((O)=>O.tag===q&&O.collection===J);if(!Y){let O=F.schema.knownTags[q];if(O&&O.collection===J)F.schema.tags.push(Object.assign({},O,{default:!1})),Y=O;else{if(O)Z(X,"BAD_COLLECTION_TYPE",`${O.tag} used for ${J} collection, but expects ${O.collection??"scalar"}`,!0);else Z(X,"TAG_RESOLVE_FAILED",`Unresolved tag: ${q}`,!0);return sF(D,F,P,Z,q)}}let H=sF(D,F,P,Z,q,Y),U=Y.resolve?.(H,(O)=>Z(X,"TAG_RESOLVE_FAILED",O),F.options)??H,W=Uf.isNode(U)?U:new Wf.Scalar(U);if(W.range=H.range,W.tag=q,Y?.format)W.format=Y.format;return W}$f.composeCollection=If});var iF=Q((Cf)=>{var nF=CD();function Ef(D,F,P){let B=F.offset,Z=Kf(F,D.options.strict,P);if(!Z)return{value:"",type:null,comment:"",range:[B,B,B]};let X=Z.mode===">"?nF.Scalar.BLOCK_FOLDED:nF.Scalar.BLOCK_LITERAL,q=F.source?Af(F.source):[],J=q.length;for(let R=q.length-1;R>=0;--R){let $=q[R][1];if($===""||$==="\r")J=R;else break}if(J===0){let R=Z.chomp==="+"&&q.length>0?`
278
+ `.repeat(Math.max(1,q.length-1)):"",$=B+Z.length;if(F.source)$+=F.source.length;return{value:R,type:X,comment:Z.comment,range:[B,$,$]}}let Y=F.indent+Z.indent,H=F.offset+Z.length,U=0;for(let R=0;R<J;++R){let[$,K]=q[R];if(K===""||K==="\r"){if(Z.indent===0&&$.length>Y)Y=$.length}else{if($.length<Y)P(H+$.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(Z.indent===0)Y=$.length;if(U=R,Y===0&&!D.atRoot)P(H,"BAD_INDENT","Block scalar values in collections must be indented");break}H+=$.length+K.length+1}for(let R=q.length-1;R>=J;--R)if(q[R][0].length>Y)J=R+1;let W="",O="",z=!1;for(let R=0;R<U;++R)W+=q[R][0].slice(Y)+`
279
+ `;for(let R=U;R<J;++R){let[$,K]=q[R];H+=$.length+K.length+1;let j=K[K.length-1]==="\r";if(j)K=K.slice(0,-1);if(K&&$.length<Y){let S=`Block scalar lines must not be less indented than their ${Z.indent?"explicit indentation indicator":"first line"}`;P(H-K.length-(j?2:1),"BAD_INDENT",S),$=""}if(X===nF.Scalar.BLOCK_LITERAL)W+=O+$.slice(Y)+K,O=`
280
+ `;else if($.length>Y||K[0]==="\t"){if(O===" ")O=`
291
281
  `;else if(!z&&O===`
292
282
  `)O=`
293
283
 
294
- `;U+=O+$.slice(Y)+E,O=`
295
- `,z=!0}else if(E==="")if(O===`
296
- `)U+=`
284
+ `;W+=O+$.slice(Y)+K,O=`
285
+ `,z=!0}else if(K==="")if(O===`
286
+ `)W+=`
297
287
  `;else O=`
298
- `;else U+=O+E,O=" ",z=!1}switch(Z.chomp){case"-":break;case"+":for(let R=J;R<X.length;++R)U+=`
299
- `+X[R][0].slice(Y);if(U[U.length-1]!==`
300
- `)U+=`
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=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?
288
+ `;else W+=O+K,O=" ",z=!1}switch(Z.chomp){case"-":break;case"+":for(let R=J;R<q.length;++R)W+=`
289
+ `+q[R][0].slice(Y);if(W[W.length-1]!==`
290
+ `)W+=`
291
+ `;break;default:W+=`
292
+ `}let I=B+Z.length+F.source.length;return{value:W,type:X,comment:Z.comment,range:[B,I,I]}}function Kf({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],X=Z[0],q=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(!q&&I)q=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,U="",W=Z.length;for(let O=1;O<F.length;++O){let z=F[O];switch(z.type){case"space":H=!0;case"newline":W+=z.source.length;break;case"comment":if(P&&!H)B(z,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");W+=z.source.length,U=z.source.substring(1);break;case"error":B(z,"UNEXPECTED_TOKEN",z.message),W+=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")W+=R.length}}}return{mode:X,indent:q,chomp:J,comment:U,length:W}}function Af(D){let F=D.split(/\n( *)/),P=F[0],B=P.match(/^( *)/),X=[B?.[1]?[B[1],P.slice(B[1].length)]:["",P]];for(let q=1;q<F.length;q+=2)X.push([F[q],F[q+1]]);return X}Cf.resolveBlockScalar=Ef});var tF=Q((_f)=>{var oF=CD(),Vf=v8();function wf(D,F,P){let{offset:B,type:Z,source:X,end:q}=D,J,Y,H=(O,z,I)=>P(B+O,z,I);switch(Z){case"scalar":J=oF.Scalar.PLAIN,Y=jf(X,H);break;case"single-quoted-scalar":J=oF.Scalar.QUOTE_SINGLE,Y=bf(X,H);break;case"double-quoted-scalar":J=oF.Scalar.QUOTE_DOUBLE,Y=Sf(X,H);break;default:return P(D,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${Z}`),{value:"",type:null,comment:"",range:[B,B+X.length,B+X.length]}}let U=B+X.length,W=Vf.resolveEnd(q,U,F,P);return{value:Y,type:J,comment:W.comment,range:[B,U,W.offset]}}function jf(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 Dz(D)}function bf(D,F){if(D[D.length-1]!=="'"||D.length===1)F(D.length,"MISSING_CHAR","Missing closing 'quote");return Dz(D.slice(1,-1)).replace(/''/g,"'")}function Dz(D){let F,P;try{F=new RegExp(`(.*?)(?<![ ])[ ]*\r?
303
293
  `,"sy"),P=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
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
- `)Z+=q;else q=`
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]===`
294
+ `,"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],X=" ",q=F.lastIndex;P.lastIndex=q;while(B=P.exec(D)){if(B[1]==="")if(X===`
295
+ `)Z+=X;else X=`
296
+ `;else Z+=X+B[1],X=" ";q=P.lastIndex}let J=/[ \t]*(.*)/sy;return J.lastIndex=q,B=J.exec(D),Z+X+(B?.[1]??"")}function Sf(D,F){let P="";for(let B=1;B<D.length-1;++B){let Z=D[B];if(Z==="\r"&&D[B+1]===`
307
297
  `)continue;if(Z===`
308
- `){let{fold:q,offset:X}=Av(D,B);P+=q,B=X}else if(Z==="\\"){let q=D[++B],X=Cv[q];if(X)P+=X;else if(q===`
309
- `){q=D[B+1];while(q===" "||q==="\t")q=D[++B+1]}else if(q==="\r"&&D[B+1]===`
310
- `){q=D[++B+1];while(q===" "||q==="\t")q=D[++B+1]}else if(q==="x"||q==="u"||q==="U"){let J={x:2,u:4,U:8}[q];P+=Lv(D,B+1,J,F),B+=J}else{let J=D.substr(B-1,2);F(B-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${J}`),P+=J}}else if(Z===" "||Z==="\t"){let q=B,X=D[B+1];while(X===" "||X==="\t")X=D[++B+1];if(X!==`
311
- `&&!(X==="\r"&&D[B+2]===`
312
- `))P+=B>q?D.slice(q,B+1):Z}else P+=Z}if(D[D.length-1]!=='"'||D.length===1)F(D.length,"MISSING_CHAR",'Missing closing "quote');return P}function Av(D,F){let P="",B=D[F+1];while(B===" "||B==="\t"||B===`
298
+ `){let{fold:X,offset:q}=Tf(D,B);P+=X,B=q}else if(Z==="\\"){let X=D[++B],q=uf[X];if(q)P+=q;else if(X===`
299
+ `){X=D[B+1];while(X===" "||X==="\t")X=D[++B+1]}else if(X==="\r"&&D[B+1]===`
300
+ `){X=D[++B+1];while(X===" "||X==="\t")X=D[++B+1]}else if(X==="x"||X==="u"||X==="U"){let J={x:2,u:4,U:8}[X];P+=Nf(D,B+1,J,F),B+=J}else{let J=D.substr(B-1,2);F(B-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${J}`),P+=J}}else if(Z===" "||Z==="\t"){let X=B,q=D[B+1];while(q===" "||q==="\t")q=D[++B+1];if(q!==`
301
+ `&&!(q==="\r"&&D[B+2]===`
302
+ `))P+=B>X?D.slice(X,B+1):Z}else P+=Z}if(D[D.length-1]!=='"'||D.length===1)F(D.length,"MISSING_CHAR",'Missing closing "quote');return P}function Tf(D,F){let P="",B=D[F+1];while(B===" "||B==="\t"||B===`
313
303
  `||B==="\r"){if(B==="\r"&&D[F+2]!==`
314
304
  `)break;if(B===`
315
305
  `)P+=`
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=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?`
306
+ `;F+=1,B=D[F+1]}if(!P)P=" ";return{fold:P,offset:F}}var uf={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
307
+ `,r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function Nf(D,F,P,B){let Z=D.substr(F,P),q=Z.length===P&&/^[0-9a-fA-F]+$/.test(Z)?parseInt(Z,16):NaN;if(isNaN(q)){let J=D.substr(F-2,P+2);return B(F-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${J}`),J}return String.fromCodePoint(q)}_f.resolveFlowScalar=wf});var Pz=Q((yf)=>{var e0=t(),Fz=CD(),xf=iF(),ff=tF();function hf(D,F,P,B){let{value:Z,type:X,comment:q,range:J}=F.type==="block-scalar"?xf.resolveBlockScalar(D,F,B):ff.resolveFlowScalar(F,D.options.strict,B),Y=P?D.directives.tagName(P.source,(W)=>B(P,"TAG_RESOLVE_FAILED",W)):null,H;if(D.options.stringKeys&&D.atKey)H=D.schema[e0.SCALAR];else if(Y)H=gf(D.schema,Z,Y,P,B);else if(F.type==="scalar")H=vf(D,Z,F,B);else H=D.schema[e0.SCALAR];let U;try{let W=H.resolve(Z,(O)=>B(P??F,"TAG_RESOLVE_FAILED",O),D.options);U=e0.isScalar(W)?W:new Fz.Scalar(W)}catch(W){let O=W instanceof Error?W.message:String(W);B(P??F,"TAG_RESOLVE_FAILED",O),U=new Fz.Scalar(Z)}if(U.range=J,U.source=Z,X)U.type=X;if(Y)U.tag=Y;if(H.format)U.format=H.format;if(q)U.comment=q;return U}function gf(D,F,P,B,Z){if(P==="!")return D[e0.SCALAR];let X=[];for(let J of D.tags)if(!J.collection&&J.tag===P)if(J.default&&J.test)X.push(J);else return J;for(let J of X)if(J.test?.test(F))return J;let q=D.knownTags[P];if(q&&!q.collection)return D.tags.push(Object.assign({},q,{default:!1,test:void 0})),q;return Z(B,"TAG_RESOLVE_FAILED",`Unresolved tag: ${P}`,P!=="tag:yaml.org,2002:str"),D[e0.SCALAR]}function vf({atKey:D,directives:F,schema:P},B,Z,X){let q=P.tags.find((J)=>(J.default===!0||D&&J.default==="key")&&J.test?.test(B))||P[e0.SCALAR];if(P.compat){let J=P.compat.find((Y)=>Y.default&&Y.test?.test(B))??P[e0.SCALAR];if(q.tag!==J.tag){let Y=F.tagString(q.tag),H=F.tagString(J.tag),U=`Value may be parsed as either ${Y} or ${H}`;X(Z,"TAG_RESOLVE_FAILED",U,!0)}}return q}yf.composeScalar=hf});var Bz=Q((cf)=>{function lf(D,F,P){if(F){P??(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}cf.emptyScalarPosition=lf});var qz=Q((ef)=>{var pf=p6(),rf=t(),af=eO(),Zz=Pz(),sf=v8(),nf=Bz(),of={composeNode:Xz,composeEmptyNode:eF};function Xz(D,F,P,B){let Z=D.atKey,{spaceBefore:X,comment:q,anchor:J,tag:Y}=P,H,U=!0;switch(F.type){case"alias":if(H=tf(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=Zz.composeScalar(D,F,Y,B),J)H.anchor=J.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":if(H=af.composeCollection(of,D,F,P,B),J)H.anchor=J.source.substring(1);break;default:{let W=F.type==="error"?F.message:`Unsupported token (type: ${F.type})`;B(F,"UNEXPECTED_TOKEN",W),H=eF(D,F.offset,void 0,null,P,B),U=!1}}if(J&&H.anchor==="")B(J,"BAD_ALIAS","Anchor cannot be an empty string");if(Z&&D.options.stringKeys&&(!rf.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(X)H.spaceBefore=!0;if(q)if(F.type==="scalar"&&F.source==="")H.comment=q;else H.commentBefore=q;if(D.options.keepSourceTokens&&U)H.srcToken=F;return H}function eF(D,F,P,B,{spaceBefore:Z,comment:X,anchor:q,tag:J,end:Y},H){let U={type:"scalar",offset:nf.emptyScalarPosition(F,P,B),indent:-1,source:""},W=Zz.composeScalar(D,U,J,H);if(q){if(W.anchor=q.source.substring(1),W.anchor==="")H(q,"BAD_ALIAS","Anchor cannot be an empty string")}if(Z)W.spaceBefore=!0;if(X)W.comment=X,W.range[2]=Y;return W}function tf({options:D},{offset:F,source:P,end:B},Z){let X=new pf.Alias(P.substring(1));if(X.source==="")Z(F,"BAD_ALIAS","Alias cannot be an empty string");if(X.source.endsWith(":"))Z(F+P.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let q=F+P.length,J=sf.resolveEnd(B,q,D.strict,Z);if(X.range=[F,q,J.offset],J.comment)X.comment=J.comment;return X}ef.composeEmptyNode=eF;ef.composeNode=Xz});var Yz=Q((qh)=>{var Ph=q1(),Jz=qz(),Bh=v8(),Zh=Y1();function Xh(D,F,{offset:P,start:B,value:Z,end:X},q){let J=Object.assign({_directives:F},D),Y=new Ph.Document(void 0,J),H={atKey:!1,atRoot:!0,directives:Y.directives,options:Y.options,schema:Y.schema},U=Zh.resolveProps(B,{indicator:"doc-start",next:Z??X?.[0],offset:P,onError:q,parentIndent:0,startOnNewline:!0});if(U.found){if(Y.directives.docStart=!0,Z&&(Z.type==="block-map"||Z.type==="block-seq")&&!U.hasNewline)q(U.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}Y.contents=Z?Jz.composeNode(H,Z,U,q):Jz.composeEmptyNode(H,U.end,B,null,U,q);let W=Y.contents.range[2],O=Bh.resolveEnd(X,W,!1,q);if(O.comment)Y.comment=O.comment;return Y.range=[P,W,O.offset],Y}qh.composeDoc=Xh});var DP=Q((zh)=>{var Yh=vD("process"),Hh=ZF(),Uh=q1(),H1=J1(),Hz=t(),Wh=Yz(),Oh=v8();function U1(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 Uz(D){let F="",P=!1,B=!1;for(let Z=0;Z<D.length;++Z){let X=D[Z];switch(X[0]){case"#":F+=(F===""?"":B?`
318
308
 
319
309
  `:`
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}
321
- ${P}`:P;else if(B||D.directives.docStart||!Z)D.commentBefore=P;else if(VQ.isCollection(Z)&&!Z.flow&&Z.items.length>0){let q=Z.items[0];if(VQ.isPair(q))q=q.key;let X=q.commentBefore;q.commentBefore=X?`${P}
322
- ${X}`:P}else{let q=Z.commentBefore;Z.commentBefore=q?`${P}
323
- ${q}`:P}}if(F)Array.prototype.push.apply(D.errors,this.errors),Array.prototype.push.apply(D.warnings,this.warnings);else D.errors=this.errors,D.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:jQ(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(D,F=!1,P=-1){for(let B of D)yield*this.next(B);yield*this.end(F,P)}*next(D){if(process.env.LOG_STREAM)console.dir(D,{depth:null});switch(D.type){case"directive":this.directives.add(D.source,(F,P,B)=>{let Z=z6(D);Z[0]+=F,this.onError(Z,"BAD_DIRECTIVE",P,B)}),this.prelude.push(D.source),this.atDirectives=!0;break;case"document":{let F=Fg.composeDoc(this.options,this.directives,D,this.onError);if(this.atDirectives&&!F.directives.docStart)this.onError(D,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(F,!1),this.doc)yield this.doc;this.doc=F,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(D.source);break;case"error":{let F=D.source?`${D.message}: ${JSON.stringify(D.source)}`:D.message,P=new O6.YAMLParseError(z6(D),"UNEXPECTED_TOKEN",F);if(this.atDirectives||!this.doc)this.errors.push(P);else this.doc.errors.push(P);break}case"doc-end":{if(!this.doc){this.errors.push(new O6.YAMLParseError(z6(D),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let F=Pg.resolveEnd(D.end,D.offset+D.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),F.comment){let P=this.doc.comment;this.doc.comment=P?`${P}
324
- ${F.comment}`:F.comment}this.doc.range[2]=F.offset;break}default:this.errors.push(new O6.YAMLParseError(z6(D),"UNEXPECTED_TOKEN",`Unsupported token ${D.type}`))}}*end(D=!1,F=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(D){let P=Object.assign({_directives:this.directives},this.options),B=new Dg.Document(void 0,P);if(this.atDirectives)this.onError(F,"MISSING_CHAR","Missing directives-end indicator line");B.range=[0,F,F],this.decorate(B,!1),yield B}}}Bg.Composer=bQ});var NQ=Q((Og)=>{var qg=MP(),Xg=EP(),Jg=U6(),SQ=e1();function Yg(D,F=!0,P){if(D){let B=(Z,q,X)=>{let J=typeof Z==="number"?Z:Array.isArray(Z)?Z[0]:Z.offset;if(P)P(J,q,X);else throw new Jg.YAMLParseError([J,J+1],q,X)};switch(D.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Xg.resolveFlowScalar(D,F,B);case"block-scalar":return qg.resolveBlockScalar({options:{strict:F}},D,B)}}return null}function Hg(D,F){let{implicitKey:P=!1,indent:B,inFlow:Z=!1,offset:q=-1,type:X="PLAIN"}=F,J=SQ.stringifyString({type:X,value:D},{implicitKey:P,indent:B>0?" ".repeat(B):"",inFlow:Z,options:{blockQuote:!0,lineWidth:-1}}),Y=F.end??[{type:"newline",offset:-1,indent:B,source:`
310
+ `)+(X.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 Wz{constructor(D={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(F,P,B,Z)=>{let X=U1(F);if(Z)this.warnings.push(new H1.YAMLWarning(X,P,B));else this.errors.push(new H1.YAMLParseError(X,P,B))},this.directives=new Hh.Directives({version:D.version||"1.2"}),this.options=D}decorate(D,F){let{comment:P,afterEmptyLine:B}=Uz(this.prelude);if(P){let Z=D.contents;if(F)D.comment=D.comment?`${D.comment}
311
+ ${P}`:P;else if(B||D.directives.docStart||!Z)D.commentBefore=P;else if(Hz.isCollection(Z)&&!Z.flow&&Z.items.length>0){let X=Z.items[0];if(Hz.isPair(X))X=X.key;let q=X.commentBefore;X.commentBefore=q?`${P}
312
+ ${q}`:P}else{let X=Z.commentBefore;Z.commentBefore=X?`${P}
313
+ ${X}`:P}}if(F)Array.prototype.push.apply(D.errors,this.errors),Array.prototype.push.apply(D.warnings,this.warnings);else D.errors=this.errors,D.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Uz(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(D,F=!1,P=-1){for(let B of D)yield*this.next(B);yield*this.end(F,P)}*next(D){if(Yh.env.LOG_STREAM)console.dir(D,{depth:null});switch(D.type){case"directive":this.directives.add(D.source,(F,P,B)=>{let Z=U1(D);Z[0]+=F,this.onError(Z,"BAD_DIRECTIVE",P,B)}),this.prelude.push(D.source),this.atDirectives=!0;break;case"document":{let F=Wh.composeDoc(this.options,this.directives,D,this.onError);if(this.atDirectives&&!F.directives.docStart)this.onError(D,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(F,!1),this.doc)yield this.doc;this.doc=F,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(D.source);break;case"error":{let F=D.source?`${D.message}: ${JSON.stringify(D.source)}`:D.message,P=new H1.YAMLParseError(U1(D),"UNEXPECTED_TOKEN",F);if(this.atDirectives||!this.doc)this.errors.push(P);else this.doc.errors.push(P);break}case"doc-end":{if(!this.doc){this.errors.push(new H1.YAMLParseError(U1(D),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let F=Oh.resolveEnd(D.end,D.offset+D.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),F.comment){let P=this.doc.comment;this.doc.comment=P?`${P}
314
+ ${F.comment}`:F.comment}this.doc.range[2]=F.offset;break}default:this.errors.push(new H1.YAMLParseError(U1(D),"UNEXPECTED_TOKEN",`Unsupported token ${D.type}`))}}*end(D=!1,F=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(D){let P=Object.assign({_directives:this.directives},this.options),B=new Uh.Document(void 0,P);if(this.atDirectives)this.onError(F,"MISSING_CHAR","Missing directives-end indicator line");B.range=[0,F,F],this.decorate(B,!1),yield B}}}zh.Composer=Wz});var Qz=Q((Ah)=>{var Gh=iF(),Rh=tF(),Ih=J1(),Oz=n6();function $h(D,F=!0,P){if(D){let B=(Z,X,q)=>{let J=typeof Z==="number"?Z:Array.isArray(Z)?Z[0]:Z.offset;if(P)P(J,X,q);else throw new Ih.YAMLParseError([J,J+1],X,q)};switch(D.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Rh.resolveFlowScalar(D,F,B);case"block-scalar":return Gh.resolveBlockScalar({options:{strict:F}},D,B)}}return null}function Mh(D,F){let{implicitKey:P=!1,indent:B,inFlow:Z=!1,offset:X=-1,type:q="PLAIN"}=F,J=Oz.stringifyString({type:q,value:D},{implicitKey:P,indent:B>0?" ".repeat(B):"",inFlow:Z,options:{blockQuote:!0,lineWidth:-1}}),Y=F.end??[{type:"newline",offset:-1,indent:B,source:`
325
315
  `}];switch(J[0]){case"|":case">":{let H=J.indexOf(`
326
- `),W=J.substring(0,H),U=J.substring(H+1)+`
327
- `,O=[{type:"block-scalar-header",offset:q,indent:B,source:W}];if(!TQ(O,Y))O.push({type:"newline",offset:-1,indent:B,source:`
328
- `});return{type:"block-scalar",offset:q,indent:B,props:O,source:U}}case'"':return{type:"double-quoted-scalar",offset:q,indent:B,source:J,end:Y};case"'":return{type:"single-quoted-scalar",offset:q,indent:B,source:J,end:Y};default:return{type:"scalar",offset:q,indent:B,source:J,end:Y}}}function Ug(D,F,P={}){let{afterKey:B=!1,implicitKey:Z=!1,inFlow:q=!1,type:X}=P,J="indent"in D?D.indent:null;if(B&&typeof J==="number")J+=2;if(!X)switch(D.type){case"single-quoted-scalar":X="QUOTE_SINGLE";break;case"double-quoted-scalar":X="QUOTE_DOUBLE";break;case"block-scalar":{let H=D.props[0];if(H.type!=="block-scalar-header")throw new Error("Invalid block scalar header");X=H.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:X="PLAIN"}let Y=SQ.stringifyString({type:X,value:F},{implicitKey:Z||J===null,indent:J!==null&&J>0?" ".repeat(J):"",inFlow:q,options:{blockQuote:!0,lineWidth:-1}});switch(Y[0]){case"|":case">":Wg(D,Y);break;case'"':LP(D,Y,"double-quoted-scalar");break;case"'":LP(D,Y,"single-quoted-scalar");break;default:LP(D,Y,"scalar")}}function Wg(D,F){let P=F.indexOf(`
316
+ `),U=J.substring(0,H),W=J.substring(H+1)+`
317
+ `,O=[{type:"block-scalar-header",offset:X,indent:B,source:U}];if(!zz(O,Y))O.push({type:"newline",offset:-1,indent:B,source:`
318
+ `});return{type:"block-scalar",offset:X,indent:B,props:O,source:W}}case'"':return{type:"double-quoted-scalar",offset:X,indent:B,source:J,end:Y};case"'":return{type:"single-quoted-scalar",offset:X,indent:B,source:J,end:Y};default:return{type:"scalar",offset:X,indent:B,source:J,end:Y}}}function Eh(D,F,P={}){let{afterKey:B=!1,implicitKey:Z=!1,inFlow:X=!1,type:q}=P,J="indent"in D?D.indent:null;if(B&&typeof J==="number")J+=2;if(!q)switch(D.type){case"single-quoted-scalar":q="QUOTE_SINGLE";break;case"double-quoted-scalar":q="QUOTE_DOUBLE";break;case"block-scalar":{let H=D.props[0];if(H.type!=="block-scalar-header")throw new Error("Invalid block scalar header");q=H.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:q="PLAIN"}let Y=Oz.stringifyString({type:q,value:F},{implicitKey:Z||J===null,indent:J!==null&&J>0?" ".repeat(J):"",inFlow:X,options:{blockQuote:!0,lineWidth:-1}});switch(Y[0]){case"|":case">":Kh(D,Y);break;case'"':FP(D,Y,"double-quoted-scalar");break;case"'":FP(D,Y,"single-quoted-scalar");break;default:FP(D,Y,"scalar")}}function Kh(D,F){let P=F.indexOf(`
329
319
  `),B=F.substring(0,P),Z=F.substring(P+1)+`
330
- `;if(D.type==="block-scalar"){let q=D.props[0];if(q.type!=="block-scalar-header")throw new Error("Invalid block scalar header");q.source=B,D.source=Z}else{let{offset:q}=D,X="indent"in D?D.indent:-1,J=[{type:"block-scalar-header",offset:q,indent:X,source:B}];if(!TQ(J,"end"in D?D.end:void 0))J.push({type:"newline",offset:-1,indent:X,source:`
331
- `});for(let Y of Object.keys(D))if(Y!=="type"&&Y!=="offset")delete D[Y];Object.assign(D,{type:"block-scalar",indent:X,props:J,source:Z})}}function TQ(D,F){if(F)for(let P of F)switch(P.type){case"space":case"comment":D.push(P);break;case"newline":return D.push(P),!0}return!1}function LP(D,F,P){switch(D.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":D.type=P,D.source=F;break;case"block-scalar":{let B=D.props.slice(1),Z=F.length;if(D.props[0].type==="block-scalar-header")Z-=D.props[0].source.length;for(let q of B)q.offset+=Z;delete D.props,Object.assign(D,{type:P,source:F,end:B});break}case"block-map":case"block-seq":{let Z={type:"newline",offset:D.offset+F.length,indent:D.indent,source:`
332
- `};delete D.items,Object.assign(D,{type:P,source:F,end:[Z]});break}default:{let B="indent"in D?D.indent:-1,Z="end"in D&&Array.isArray(D.end)?D.end.filter((q)=>q.type==="space"||q.type==="comment"||q.type==="newline"):[];for(let q of Object.keys(D))if(q!=="type"&&q!=="offset")delete D[q];Object.assign(D,{type:P,indent:B,source:F,end:Z})}}}Og.createScalarToken=Hg;Og.resolveAsScalar=Yg;Og.setScalarValue=Ug});var uQ=Q((Ig)=>{var Rg=(D)=>("type"in D)?l5(D):m5(D);function l5(D){switch(D.type){case"block-scalar":{let F="";for(let P of D.props)F+=l5(P);return F+D.source}case"block-map":case"block-seq":{let F="";for(let P of D.items)F+=m5(P);return F}case"flow-collection":{let F=D.start.source;for(let P of D.items)F+=m5(P);for(let P of D.end)F+=P.source;return F}case"document":{let F=m5(D);if(D.end)for(let P of D.end)F+=P.source;return F}default:{let F=D.source;if("end"in D&&D.end)for(let P of D.end)F+=P.source;return F}}}function m5({start:D,key:F,sep:P,value:B}){let Z="";for(let q of D)Z+=q.source;if(F)Z+=l5(F);if(P)for(let q of P)Z+=q.source;if(B)Z+=l5(B);return Z}Ig.stringify=Rg});var xQ=Q((Kg)=>{var wP=Symbol("break visit"),Mg=Symbol("skip children"),_Q=Symbol("remove item");function e2(D,F){if("type"in D&&D.type==="document")D={start:D.start,value:D.value};kQ(Object.freeze([]),D,F)}e2.BREAK=wP;e2.SKIP=Mg;e2.REMOVE=_Q;e2.itemAtPath=(D,F)=>{let P=D;for(let[B,Z]of F){let q=P?.[B];if(q&&"items"in q)P=q.items[Z];else return}return P};e2.parentCollection=(D,F)=>{let P=e2.itemAtPath(D,F.slice(0,-1)),B=F[F.length-1][0],Z=P?.[B];if(Z&&"items"in Z)return Z;throw new Error("Parent collection not found")};function kQ(D,F,P){let B=P(F,D);if(typeof B==="symbol")return B;for(let Z of["key","value"]){let q=F[Z];if(q&&"items"in q){for(let X=0;X<q.items.length;++X){let J=kQ(Object.freeze(D.concat([[Z,X]])),q.items[X],P);if(typeof J==="number")X=J-1;else if(J===wP)return wP;else if(J===_Q)q.items.splice(X,1),X-=1}if(typeof B==="function"&&Z==="key")B=B(F,D)}}return typeof B==="function"?B(F,D):B}Kg.visit=e2});var c5=Q((bg)=>{var VP=NQ(),Ag=uQ(),Cg=xQ(),jP="\uFEFF",bP="\x02",SP="\x18",TP="\x1F",Lg=(D)=>!!D&&("items"in D),wg=(D)=>!!D&&(D.type==="scalar"||D.type==="single-quoted-scalar"||D.type==="double-quoted-scalar"||D.type==="block-scalar");function Vg(D){switch(D){case jP:return"<BOM>";case bP:return"<DOC>";case SP:return"<FLOW_END>";case TP:return"<SCALAR>";default:return JSON.stringify(D)}}function jg(D){switch(D){case jP:return"byte-order-mark";case bP:return"doc-mode";case SP:return"flow-error-end";case TP:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
320
+ `;if(D.type==="block-scalar"){let X=D.props[0];if(X.type!=="block-scalar-header")throw new Error("Invalid block scalar header");X.source=B,D.source=Z}else{let{offset:X}=D,q="indent"in D?D.indent:-1,J=[{type:"block-scalar-header",offset:X,indent:q,source:B}];if(!zz(J,"end"in D?D.end:void 0))J.push({type:"newline",offset:-1,indent:q,source:`
321
+ `});for(let Y of Object.keys(D))if(Y!=="type"&&Y!=="offset")delete D[Y];Object.assign(D,{type:"block-scalar",indent:q,props:J,source:Z})}}function zz(D,F){if(F)for(let P of F)switch(P.type){case"space":case"comment":D.push(P);break;case"newline":return D.push(P),!0}return!1}function FP(D,F,P){switch(D.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":D.type=P,D.source=F;break;case"block-scalar":{let B=D.props.slice(1),Z=F.length;if(D.props[0].type==="block-scalar-header")Z-=D.props[0].source.length;for(let X of B)X.offset+=Z;delete D.props,Object.assign(D,{type:P,source:F,end:B});break}case"block-map":case"block-seq":{let Z={type:"newline",offset:D.offset+F.length,indent:D.indent,source:`
322
+ `};delete D.items,Object.assign(D,{type:P,source:F,end:[Z]});break}default:{let B="indent"in D?D.indent:-1,Z="end"in D&&Array.isArray(D.end)?D.end.filter((X)=>X.type==="space"||X.type==="comment"||X.type==="newline"):[];for(let X of Object.keys(D))if(X!=="type"&&X!=="offset")delete D[X];Object.assign(D,{type:P,indent:B,source:F,end:Z})}}}Ah.createScalarToken=Mh;Ah.resolveAsScalar=$h;Ah.setScalarValue=Eh});var Gz=Q((jh)=>{var wh=(D)=>("type"in D)?j5(D):w5(D);function j5(D){switch(D.type){case"block-scalar":{let F="";for(let P of D.props)F+=j5(P);return F+D.source}case"block-map":case"block-seq":{let F="";for(let P of D.items)F+=w5(P);return F}case"flow-collection":{let F=D.start.source;for(let P of D.items)F+=w5(P);for(let P of D.end)F+=P.source;return F}case"document":{let F=w5(D);if(D.end)for(let P of D.end)F+=P.source;return F}default:{let F=D.source;if("end"in D&&D.end)for(let P of D.end)F+=P.source;return F}}}function w5({start:D,key:F,sep:P,value:B}){let Z="";for(let X of D)Z+=X.source;if(F)Z+=j5(F);if(P)for(let X of P)Z+=X.source;if(B)Z+=j5(B);return Z}jh.stringify=wh});var $z=Q((Th)=>{var PP=Symbol("break visit"),Sh=Symbol("skip children"),Rz=Symbol("remove item");function D8(D,F){if("type"in D&&D.type==="document")D={start:D.start,value:D.value};Iz(Object.freeze([]),D,F)}D8.BREAK=PP;D8.SKIP=Sh;D8.REMOVE=Rz;D8.itemAtPath=(D,F)=>{let P=D;for(let[B,Z]of F){let X=P?.[B];if(X&&"items"in X)P=X.items[Z];else return}return P};D8.parentCollection=(D,F)=>{let P=D8.itemAtPath(D,F.slice(0,-1)),B=F[F.length-1][0],Z=P?.[B];if(Z&&"items"in Z)return Z;throw new Error("Parent collection not found")};function Iz(D,F,P){let B=P(F,D);if(typeof B==="symbol")return B;for(let Z of["key","value"]){let X=F[Z];if(X&&"items"in X){for(let q=0;q<X.items.length;++q){let J=Iz(Object.freeze(D.concat([[Z,q]])),X.items[q],P);if(typeof J==="number")q=J-1;else if(J===PP)return PP;else if(J===Rz)X.items.splice(q,1),q-=1}if(typeof B==="function"&&Z==="key")B=B(F,D)}}return typeof B==="function"?B(F,D):B}Th.visit=D8});var b5=Q((gh)=>{var BP=Qz(),Nh=Gz(),_h=$z(),ZP="\uFEFF",XP="\x02",qP="\x18",JP="\x1F",kh=(D)=>!!D&&("items"in D),xh=(D)=>!!D&&(D.type==="scalar"||D.type==="single-quoted-scalar"||D.type==="double-quoted-scalar"||D.type==="block-scalar");function fh(D){switch(D){case ZP:return"<BOM>";case XP:return"<DOC>";case qP:return"<FLOW_END>";case JP:return"<SCALAR>";default:return JSON.stringify(D)}}function hh(D){switch(D){case ZP:return"byte-order-mark";case XP:return"doc-mode";case qP:return"flow-error-end";case JP:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
333
323
  `:case`\r
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
- `: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 `),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===`
324
+ `: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}gh.createScalarToken=BP.createScalarToken;gh.resolveAsScalar=BP.resolveAsScalar;gh.setScalarValue=BP.setScalarValue;gh.stringify=Nh.stringify;gh.visit=_h.visit;gh.BOM=ZP;gh.DOCUMENT=XP;gh.FLOW_END=qP;gh.SCALAR=JP;gh.isCollection=kh;gh.isScalar=xh;gh.prettyToken=fh;gh.tokenType=hh});var HP=Q((Dg)=>{var W1=b5();function E2(D){switch(D){case void 0:case" ":case`
325
+ `:case"\r":case"\t":return!0;default:return!1}}var Mz=new Set("0123456789ABCDEFabcdef"),th=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),S5=new Set(",[]{}"),eh=new Set(` ,[]{}
326
+ \r `),YP=(D)=>!D||eh.has(D);class Ez{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
327
  `)return!0;if(F==="\r")return this.buffer[D+1]===`
338
328
  `;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
329
  `||!B&&!this.atEnd)return D+P+1}return F===`
340
- `||P>=this.indentNext||!F&&!this.atEnd?D+P:-1}if(F==="-"||F==="."){let P=this.buffer.substr(D,3);if((P==="---"||P==="...")&&K0(this.buffer[D+3]))return-1}return D}getLine(){let D=this.lineEndPos;if(typeof D!=="number"||D!==-1&&D<this.pos)D=this.buffer.indexOf(`
341
- `,this.pos),this.lineEndPos=D;if(D===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[D-1]==="\r")D-=1;return this.buffer.substring(this.pos,D)}hasChars(D){return this.pos+D<=this.buffer.length}setNext(D){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=D,null}peek(D){return this.buffer.substr(this.pos,D)}*parseNext(D){switch(D){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let D=this.getLine();if(D===null)return this.setNext("stream");if(D[0]===Q6.BOM)yield*this.pushCount(1),D=D.substring(1);if(D[0]==="%"){let F=D.length,P=D.indexOf("#");while(P!==-1){let Z=D[P-1];if(Z===" "||Z==="\t"){F=P-1;break}else P=D.indexOf("#",P+1)}while(!0){let Z=D[F-1];if(Z===" "||Z==="\t")F-=1;else break}let B=(yield*this.pushCount(F))+(yield*this.pushSpaces(!0));return yield*this.pushCount(D.length-B),this.pushNewline(),"stream"}if(this.atLineEnd()){let F=yield*this.pushSpaces(!0);return yield*this.pushCount(D.length-F),yield*this.pushNewline(),"stream"}return yield Q6.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let D=this.charAt(0);if(!D&&!this.atEnd)return this.setNext("line-start");if(D==="-"||D==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let F=this.peek(3);if((F==="---"||F==="...")&&K0(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,F==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!K0(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[D,F]=this.peek(2);if(!F&&!this.atEnd)return this.setNext("block-start");if((D==="-"||D==="?"||D===":")&&K0(F)){let P=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=P,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let D=this.getLine();if(D===null)return this.setNext("doc");let F=yield*this.pushIndicators();switch(D[F]){case"#":yield*this.pushCount(D.length-F);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(NP),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return F+=yield*this.parseBlockScalarHeader(),F+=yield*this.pushSpaces(!0),yield*this.pushCount(D.length-F),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let D,F,P=-1;do{if(D=yield*this.pushNewline(),D>0)F=yield*this.pushSpaces(!1),this.indentValue=P=F;else F=0;F+=yield*this.pushSpaces(!0)}while(D+F>0);let B=this.getLine();if(B===null)return this.setNext("flow");if(P!==-1&&P<this.indentNext&&B[0]!=="#"||P===0&&(B.startsWith("---")||B.startsWith("..."))&&K0(B[3])){if(!(P===this.indentNext-1&&this.flowLevel===1&&(B[0]==="]"||B[0]==="}")))return this.flowLevel=0,yield Q6.FLOW_END,yield*this.parseLineStart()}let Z=0;while(B[Z]===",")Z+=yield*this.pushCount(1),Z+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(Z+=yield*this.pushIndicators(),B[Z]){case void 0:return"flow";case"#":return yield*this.pushCount(B.length-Z),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(NP),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let q=this.charAt(1);if(this.flowKey||K0(q)||q===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let D=this.charAt(0),F=this.buffer.indexOf(D,this.pos+1);if(D==="'")while(F!==-1&&this.buffer[F+1]==="'")F=this.buffer.indexOf("'",F+2);else while(F!==-1){let Z=0;while(this.buffer[F-1-Z]==="\\")Z+=1;if(Z%2===0)break;F=this.buffer.indexOf('"',F+1)}let P=this.buffer.substring(0,F),B=P.indexOf(`
330
+ `||P>=this.indentNext||!F&&!this.atEnd?D+P:-1}if(F==="-"||F==="."){let P=this.buffer.substr(D,3);if((P==="---"||P==="...")&&E2(this.buffer[D+3]))return-1}return D}getLine(){let D=this.lineEndPos;if(typeof D!=="number"||D!==-1&&D<this.pos)D=this.buffer.indexOf(`
331
+ `,this.pos),this.lineEndPos=D;if(D===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[D-1]==="\r")D-=1;return this.buffer.substring(this.pos,D)}hasChars(D){return this.pos+D<=this.buffer.length}setNext(D){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=D,null}peek(D){return this.buffer.substr(this.pos,D)}*parseNext(D){switch(D){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let D=this.getLine();if(D===null)return this.setNext("stream");if(D[0]===W1.BOM)yield*this.pushCount(1),D=D.substring(1);if(D[0]==="%"){let F=D.length,P=D.indexOf("#");while(P!==-1){let Z=D[P-1];if(Z===" "||Z==="\t"){F=P-1;break}else P=D.indexOf("#",P+1)}while(!0){let Z=D[F-1];if(Z===" "||Z==="\t")F-=1;else break}let B=(yield*this.pushCount(F))+(yield*this.pushSpaces(!0));return yield*this.pushCount(D.length-B),this.pushNewline(),"stream"}if(this.atLineEnd()){let F=yield*this.pushSpaces(!0);return yield*this.pushCount(D.length-F),yield*this.pushNewline(),"stream"}return yield W1.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let D=this.charAt(0);if(!D&&!this.atEnd)return this.setNext("line-start");if(D==="-"||D==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let F=this.peek(3);if((F==="---"||F==="...")&&E2(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,F==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!E2(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[D,F]=this.peek(2);if(!F&&!this.atEnd)return this.setNext("block-start");if((D==="-"||D==="?"||D===":")&&E2(F)){let P=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=P,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let D=this.getLine();if(D===null)return this.setNext("doc");let F=yield*this.pushIndicators();switch(D[F]){case"#":yield*this.pushCount(D.length-F);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(YP),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return F+=yield*this.parseBlockScalarHeader(),F+=yield*this.pushSpaces(!0),yield*this.pushCount(D.length-F),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let D,F,P=-1;do{if(D=yield*this.pushNewline(),D>0)F=yield*this.pushSpaces(!1),this.indentValue=P=F;else F=0;F+=yield*this.pushSpaces(!0)}while(D+F>0);let B=this.getLine();if(B===null)return this.setNext("flow");if(P!==-1&&P<this.indentNext&&B[0]!=="#"||P===0&&(B.startsWith("---")||B.startsWith("..."))&&E2(B[3])){if(!(P===this.indentNext-1&&this.flowLevel===1&&(B[0]==="]"||B[0]==="}")))return this.flowLevel=0,yield W1.FLOW_END,yield*this.parseLineStart()}let Z=0;while(B[Z]===",")Z+=yield*this.pushCount(1),Z+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(Z+=yield*this.pushIndicators(),B[Z]){case void 0:return"flow";case"#":return yield*this.pushCount(B.length-Z),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(YP),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let X=this.charAt(1);if(this.flowKey||E2(X)||X===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let D=this.charAt(0),F=this.buffer.indexOf(D,this.pos+1);if(D==="'")while(F!==-1&&this.buffer[F+1]==="'")F=this.buffer.indexOf("'",F+2);else while(F!==-1){let Z=0;while(this.buffer[F-1-Z]==="\\")Z+=1;if(Z%2===0)break;F=this.buffer.indexOf('"',F+1)}let P=this.buffer.substring(0,F),B=P.indexOf(`
342
332
  `,this.pos);if(B!==-1){while(B!==-1){let Z=this.continueScalar(B+1);if(Z===-1)break;B=P.indexOf(`
343
- `,Z)}if(B!==-1)F=B-(P[B-1]==="\r"?2:1)}if(F===-1){if(!this.atEnd)return this.setNext("quoted-scalar");F=this.buffer.length}return yield*this.pushToIndex(F+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let D=this.pos;while(!0){let F=this.buffer[++D];if(F==="+")this.blockScalarKeep=!0;else if(F>"0"&&F<="9")this.blockScalarIndent=Number(F)-1;else if(F!=="-")break}return yield*this.pushUntil((F)=>K0(F)||F==="#")}*parseBlockScalar(){let D=this.pos-1,F=0,P;D:for(let Z=this.pos;P=this.buffer[Z];++Z)switch(P){case" ":F+=1;break;case`
344
- `:D=Z,F=0;break;case"\r":{let q=this.buffer[Z+1];if(!q&&!this.atEnd)return this.setNext("block-scalar");if(q===`
333
+ `,Z)}if(B!==-1)F=B-(P[B-1]==="\r"?2:1)}if(F===-1){if(!this.atEnd)return this.setNext("quoted-scalar");F=this.buffer.length}return yield*this.pushToIndex(F+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let D=this.pos;while(!0){let F=this.buffer[++D];if(F==="+")this.blockScalarKeep=!0;else if(F>"0"&&F<="9")this.blockScalarIndent=Number(F)-1;else if(F!=="-")break}return yield*this.pushUntil((F)=>E2(F)||F==="#")}*parseBlockScalar(){let D=this.pos-1,F=0,P;D:for(let Z=this.pos;P=this.buffer[Z];++Z)switch(P){case" ":F+=1;break;case`
334
+ `:D=Z,F=0;break;case"\r":{let X=this.buffer[Z+1];if(!X&&!this.atEnd)return this.setNext("block-scalar");if(X===`
345
335
  `)break}default:break D}if(!P&&!this.atEnd)return this.setNext("block-scalar");if(F>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=F;else this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let Z=this.continueScalar(D+1);if(Z===-1)break;D=this.buffer.indexOf(`
346
336
  `,Z)}while(D!==-1);if(D===-1){if(!this.atEnd)return this.setNext("block-scalar");D=this.buffer.length}}let B=D+1;P=this.buffer[B];while(P===" ")P=this.buffer[++B];if(P==="\t"){while(P==="\t"||P===" "||P==="\r"||P===`
347
- `)P=this.buffer[++B];D=B-1}else if(!this.blockScalarKeep)do{let Z=D-1,q=this.buffer[Z];if(q==="\r")q=this.buffer[--Z];let X=Z;while(q===" ")q=this.buffer[--Z];if(q===`
348
- `&&Z>=this.pos&&Z+1+F>X)D=Z;else break}while(!0);return yield Q6.SCALAR,yield*this.pushToIndex(D+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let D=this.flowLevel>0,F=this.pos-1,P=this.pos-1,B;while(B=this.buffer[++P])if(B===":"){let Z=this.buffer[P+1];if(K0(Z)||D&&d5.has(Z))break;F=P}else if(K0(B)){let Z=this.buffer[P+1];if(B==="\r")if(Z===`
337
+ `)P=this.buffer[++B];D=B-1}else if(!this.blockScalarKeep)do{let Z=D-1,X=this.buffer[Z];if(X==="\r")X=this.buffer[--Z];let q=Z;while(X===" ")X=this.buffer[--Z];if(X===`
338
+ `&&Z>=this.pos&&Z+1+F>q)D=Z;else break}while(!0);return yield W1.SCALAR,yield*this.pushToIndex(D+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let D=this.flowLevel>0,F=this.pos-1,P=this.pos-1,B;while(B=this.buffer[++P])if(B===":"){let Z=this.buffer[P+1];if(E2(Z)||D&&S5.has(Z))break;F=P}else if(E2(B)){let Z=this.buffer[P+1];if(B==="\r")if(Z===`
349
339
  `)P+=1,B=`
350
- `,Z=this.buffer[P+1];else F=P;if(Z==="#"||D&&d5.has(Z))break;if(B===`
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===`
340
+ `,Z=this.buffer[P+1];else F=P;if(Z==="#"||D&&S5.has(Z))break;if(B===`
341
+ `){let X=this.continueScalar(P+1);if(X===-1)break;P=Math.max(P,X-2)}}else{if(D&&S5.has(B))break;F=P}if(!B&&!this.atEnd)return this.setNext("plain-scalar");return yield W1.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(YP))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let D=this.flowLevel>0,F=this.charAt(1);if(E2(F)||D&&S5.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(!E2(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(th.has(F))F=this.buffer[++D];else if(F==="%"&&Mz.has(this.buffer[D+1])&&Mz.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
342
  `)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 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(`
343
+ `)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=Ez});var UP=Q((Pg)=>{class Kz{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}}}}Pg.LineCounter=Kz});var WP=Q((qg)=>{var Zg=vD("process"),Az=b5(),Xg=HP();function R0(D,F){for(let P=0;P<D.length;++P)if(D[P].type===F)return!0;return!1}function Cz(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 Vz(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 T5(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 y8(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 Lz(D){if(D.start.type==="flow-seq-start"){for(let F of D.items)if(F.sep&&!F.value&&!R0(F.start,"explicit-key-ind")&&!R0(F.sep,"map-value-ind")){if(F.key)F.value=F.key;if(delete F.key,Vz(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 wz{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 Xg.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,Zg.env.LOG_TOKENS)console.log("|",Az.prettyToken(D));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=D.length;return}let F=Az.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")Lz(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&&Cz(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(Cz(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=T5(this.peek(2)),P=y8(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
344
  `)+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=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(`
345
+ `,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 X=[];for(let q=0;q<F.sep.length;++q){let J=F.sep[q];switch(J.type){case"newline":X.push(q);break;case"space":break;case"comment":if(J.indent>D.indent)X.length=0;break;default:X.length=0}}if(X.length>=2)Z=F.sep.splice(X[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(R0(F.start,"newline"))Object.assign(F,{key:null,sep:[this.sourceToken]});else{let X=y8(F.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:X,key:null,sep:[this.sourceToken]}]})}else if(F.value)D.items.push({start:[],key:null,sep:[this.sourceToken]});else if(R0(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(Vz(F.key)&&!R0(F.sep,"newline")){let X=y8(F.start),q=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:X,key:q,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(R0(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 X=this.flowScalar(this.type);if(B||F.value)D.items.push({start:Z,key:X,sep:[]}),this.onKeyLine=!0;else if(F.sep)this.stack.push(X);else Object.assign(F,{key:X,sep:[]}),this.onKeyLine=!0;return}default:{let X=this.startBlockValue(D);if(X){if(X.type==="block-seq"){if(!F.explicitKey&&F.sep&&!R0(F.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if(P)D.items.push({start:Z});this.stack.push(X);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||R0(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=T5(P),Z=y8(B);Lz(D);let X=D.end.splice(1,D.end.length);X.push(this.sourceToken);let q={type:"block-map",offset:D.offset,indent:D.indent,items:[{start:Z,key:D,sep:X}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=q}else yield*this.lineEnd(D)}}flowScalar(D){if(this.onNewLine){let F=this.source.indexOf(`
356
346
  `)+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=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.24.3",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.
347
+ `,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=T5(D),P=y8(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=T5(D),P=y8(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()}}}qg.Parser=wz});var uz=Q((Gg)=>{var jz=DP(),Yg=q1(),O1=J1(),Hg=UF(),Ug=t(),Wg=UP(),bz=WP();function Sz(D){let F=D.prettyErrors!==!1;return{lineCounter:D.lineCounter||F&&new Wg.LineCounter||null,prettyErrors:F}}function Og(D,F={}){let{lineCounter:P,prettyErrors:B}=Sz(F),Z=new bz.Parser(P?.addNewLine),X=new jz.Composer(F),q=Array.from(X.compose(Z.parse(D)));if(B&&P)for(let J of q)J.errors.forEach(O1.prettifyError(D,P)),J.warnings.forEach(O1.prettifyError(D,P));if(q.length>0)return q;return Object.assign([],{empty:!0},X.streamInfo())}function Tz(D,F={}){let{lineCounter:P,prettyErrors:B}=Sz(F),Z=new bz.Parser(P?.addNewLine),X=new jz.Composer(F),q=null;for(let J of X.compose(Z.parse(D),!0,D.length))if(!q)q=J;else if(q.options.logLevel!=="silent"){q.errors.push(new O1.YAMLParseError(J.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(B&&P)q.errors.forEach(O1.prettifyError(D,P)),q.warnings.forEach(O1.prettifyError(D,P));return q}function zg(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=Tz(D,P);if(!Z)return null;if(Z.warnings.forEach((X)=>Hg.warn(Z.options.logLevel,X)),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 Qg(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(Ug.isDocument(D)&&!B)return D.toString(P);return new Yg.Document(D,B,P).toString(P)}Gg.parse=zg;Gg.parseAllDocuments=Og;Gg.parseDocument=Tz;Gg.stringify=Qg});var _z=Q((Ng)=>{var Eg=DP(),Kg=q1(),Ag=gF(),OP=J1(),Cg=p6(),I0=t(),Lg=O0(),Vg=CD(),wg=Q0(),jg=G0(),bg=b5(),Sg=HP(),Tg=UP(),ug=WP(),u5=uz(),Nz=c6();Ng.Composer=Eg.Composer;Ng.Document=Kg.Document;Ng.Schema=Ag.Schema;Ng.YAMLError=OP.YAMLError;Ng.YAMLParseError=OP.YAMLParseError;Ng.YAMLWarning=OP.YAMLWarning;Ng.Alias=Cg.Alias;Ng.isAlias=I0.isAlias;Ng.isCollection=I0.isCollection;Ng.isDocument=I0.isDocument;Ng.isMap=I0.isMap;Ng.isNode=I0.isNode;Ng.isPair=I0.isPair;Ng.isScalar=I0.isScalar;Ng.isSeq=I0.isSeq;Ng.Pair=Lg.Pair;Ng.Scalar=Vg.Scalar;Ng.YAMLMap=wg.YAMLMap;Ng.YAMLSeq=jg.YAMLSeq;Ng.CST=bg;Ng.Lexer=Sg.Lexer;Ng.LineCounter=Tg.LineCounter;Ng.Parser=ug.Parser;Ng.parse=u5.parse;Ng.parseAllDocuments=u5.parseAllDocuments;Ng.parseDocument=u5.parseDocument;Ng.stringify=u5.stringify;Ng.visit=Nz.visit;Ng.visitAsync=Nz.visitAsync});var G1={name:"@samarium.sdk/new",version:"0.24.4",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.ts",prepublishOnly:"bun run bundle",test:"bun test"},prettier:{tabWidth:4},devDependencies:{"bun-types":"^1.2.19","@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 hP=RD(fP(),1),{program:Ev,createCommand:Kv,createArgument:Av,createOption:Cv,CommanderError:Lv,InvalidArgumentError:Vv,InvalidOptionArgumentError:wv,Command:gP,Argument:jv,Option:bv,Help:Sv}=hP.default;var dH=RD(l2(),1);var E3=RD(l2(),1);class P0 extends Error{response;request;constructor(D,F){let P=`${P0.extractMessage(D)}: ${JSON.stringify({response:D,request:F})}`;super(P);if(Object.setPrototypeOf(this,P0.prototype),this.response=D,this.request=F,typeof Error.captureStackTrace==="function")Error.captureStackTrace(this,P0)}static extractMessage(D){return D.errors?.[0]?.message??`GraphQL Error (Code: ${String(D.status)})`}}var W7=(D)=>D.toUpperCase(),Q3=(D)=>{return typeof D==="function"?D():D},O7=(D,F)=>D.map((P,B)=>[P,F[B]]),x0=(D)=>{let F={};if(D instanceof Headers)F=_b(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},_b=(D)=>{let F={};return D.forEach((P,B)=>{F[B]=P}),F},NH=(D)=>{try{let F=D();if(kb(F))return F.catch((P)=>{return uH(P)});return F}catch(F){return uH(F)}},uH=(D)=>{if(D instanceof Error)return D;return new Error(String(D))},kb=(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"},G3=(D)=>{throw new Error(`Unhandled case: ${String(D)}`)},S6=(D)=>{return typeof D==="object"&&D!==null&&!Array.isArray(D)};var _H=(D,F)=>{return D.documents?D:{documents:D,requestHeaders:F,signal:void 0}};var kH=(D,F,P)=>{return D.query?D:{query:D,variables:F,requestHeaders:P,signal:void 0}};var hH=RD(l2(),1);var z7="Accept",R3="Content-Type",T6="application/json",I3="application/graphql-response+json";var Q7=(D)=>D.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),gH=(D)=>{let F=D.toLowerCase();return F.includes(I3)||F.includes(T6)},G7=(D)=>{try{if(Array.isArray(D))return{_tag:"Batch",executionResults:D.map(xH)};else if(S6(D))return{_tag:"Single",executionResult:xH(D)};else throw new Error(`Invalid execution result: result is not object or array.
358
348
  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(!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 = globalThis.Proxy;
349
+ ${String(D)}`)}catch(F){return F}},xH=(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(!S6(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(!S6(D.data)&&D.data!==null)throw new Error("Invalid execution result: data is not plain object");P=D.data}if("extensions"in D){if(!S6(D.extensions))throw new Error("Invalid execution result: extensions is not plain object");B=D.extensions}return{data:P,errors:F,extensions:B}},vH=(D)=>D._tag==="Batch"?D.executionResults.some(fH):fH(D.executionResult),fH=(D)=>Array.isArray(D.errors)?D.errors.length>0:Boolean(D.errors),R7=(D)=>{return typeof D==="object"&&D!==null&&"kind"in D&&D.kind===hH.Kind.OPERATION_DEFINITION};var yH=RD(l2(),1),mH=RD(l2(),1),xb=(D)=>{let F=void 0,P=D.definitions.filter(R7);if(P.length===1)F=P[0].name?.value;return F},fb=(D)=>{let F=!1,P=D.definitions.filter(R7);if(P.length===1)F=P[0].operation==="mutation";return F},u6=(D,F)=>{let P=typeof D==="string"?D:mH.print(D),B=!1,Z=void 0;if(F)return{expression:P,isMutation:B,operationName:Z};let X=NH(()=>typeof D==="string"?yH.parse(D):D);if(X instanceof Error)return{expression:P,isMutation:B,operationName:Z};return Z=xb(X),B=fb(X),{expression:P,operationName:Z,isMutation:B}};var $3=JSON;var M3=async(D)=>{let F={...D,method:D.request._tag==="Single"?D.request.document.isMutation?"POST":W7(D.method??"post"):D.request.hasMutations?"POST":W7(D.method??"post"),fetchOptions:{...D.fetchOptions,errorPolicy:D.fetchOptions.errorPolicy??"none"}},B=await gb(F.method)(F);if(!B.ok)return new P0({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 hb(B,D.fetchOptions.jsonSerializer??$3);if(Z instanceof Error)throw Z;let X={status:B.status,headers:B.headers};if(vH(Z)&&F.fetchOptions.errorPolicy==="none"){let q=Z._tag==="Batch"?{...Z.executionResults,...X}:{...Z.executionResult,...X};return new P0(q,{query:D.request._tag==="Single"?D.request.document.expression:D.request.query,variables:D.request.variables})}switch(Z._tag){case"Single":return{...X,...lH(F)(Z.executionResult)};case"Batch":return{...X,data:Z.executionResults.map(lH(F))};default:G3(Z)}},lH=(D)=>(F)=>{return{extensions:F.extensions,data:F.data,errors:D.fetchOptions.errorPolicy==="all"?F.errors:void 0}},hb=async(D,F)=>{let P=D.headers.get(R3),B=await D.text();if(P&&gH(P))return G7(F.parse(B));else return G7(B)},gb=(D)=>async(F)=>{let P=new Headers(F.headers),B=null,Z=void 0;if(!P.has(z7))P.set(z7,[I3,T6].join(", "));if(D==="POST"){if(Z=(F.fetchOptions.jsonSerializer??$3).stringify(vb(F)),typeof Z==="string"&&!P.has(R3))P.set(R3,T6)}else B=yb(F);let X={method:D,headers:P,body:Z,...F.fetchOptions},q=new URL(F.url),J=X;if(F.middleware){let H=await Promise.resolve(F.middleware({...X,url:F.url,operationName:F.request._tag==="Single"?F.request.document.operationName:void 0,variables:F.request.variables})),{url:U,...W}=H;q=new URL(U),J=W}if(B)B.forEach((H,U)=>{q.searchParams.append(U,H)});return await(F.fetch??fetch)(q,J)},vb=(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 O7(D.request.query,D.request.variables??[]).map(([F,P])=>({query:F,variables:P}));default:throw G3(D.request)}},yb=(D)=>{let F=D.fetchOptions.jsonSerializer??$3,P=new URLSearchParams;switch(D.request._tag){case"Single":{if(P.append("query",Q7(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((q)=>F.stringify(q))??[],Z=D.request.query.map(Q7),X=O7(Z,B).map(([q,J])=>({query:q,variables:J}));return P.append("query",F.stringify(X)),P}default:throw G3(D.request)}};class f0{url;requestConfig;constructor(D,F={}){this.url=D,this.requestConfig=F}rawRequest=async(...D)=>{let[F,P,B]=D,Z=kH(F,P,B),{headers:X,fetch:q=globalThis.fetch,method:J="POST",requestMiddleware:Y,responseMiddleware:H,excludeOperationName:U,...W}=this.requestConfig,{url:O}=this;if(Z.signal!==void 0)W.signal=Z.signal;let z=u6(Z.query,U),I=await M3({url:O,request:{_tag:"Single",document:z,variables:Z.variables},headers:{...x0(Q3(X)),...x0(Z.requestHeaders)},fetch:q,method:J,fetchOptions:W,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=cH(D,P,B),{headers:X,fetch:q=globalThis.fetch,method:J="POST",requestMiddleware:Y,responseMiddleware:H,excludeOperationName:U,...W}=this.requestConfig,{url:O}=this;if(Z.signal!==void 0)W.signal=Z.signal;let z=u6(Z.document,U),I=await M3({url:O,request:{_tag:"Single",document:z,variables:Z.variables},headers:{...x0(Q3(X)),...x0(Z.requestHeaders)},fetch:q,method:J,fetchOptions:W,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=_H(D,F),{headers:B,excludeOperationName:Z,...X}=this.requestConfig;if(P.signal!==void 0)X.signal=P.signal;let q=P.documents.map(({document:W})=>u6(W,Z)),J=q.map(({expression:W})=>W),Y=q.some(({isMutation:W})=>W),H=P.documents.map(({variables:W})=>W),U=await M3({url:this.url,request:{_tag:"Batch",operationName:void 0,query:J,hasMutations:Y,variables:H},headers:{...x0(Q3(B)),...x0(P.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:X,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware)await this.requestConfig.responseMiddleware(U,{operationName:void 0,variables:H,url:this.url});if(U instanceof Error)throw U;return U.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 cH=(D,F,P)=>{return D.document?D:{document:D,variables:F,requestHeaders:P,signal:void 0}};async function h0(D,F){try{let B=await new f0(D).request(E3.getIntrospectionQuery(),void 0,new Headers(F?.map((X)=>X.split("="))));return E3.buildClientSchema(B)}catch(P){throw P}}import mb from"fs";var I7=async(D,F)=>{let P=await h0(D.url,D.headers),B=dH.printSchema(P);mb.writeFileSync(F,B)};var K3=RD(l2(),1),A3=RD(l2(),1),KD=RD(l2(),1),lb=Object.defineProperty,rH=(D,F)=>{for(var P in F)lb(D,P,{get:F[P],enumerable:!0,configurable:!0,set:(B)=>F[P]=()=>B})};class aH{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 cb=`const Proxy = globalThis.Proxy;
360
350
  Proxy.prototype = {};
361
351
 
362
352
  type FnOrPromisOrPrimitive =
363
- | (() => string | { [key: string]: string })
364
- | (() => Promise<string | { [key: string]: string }>)
353
+ | (() => string | { [key: string]: string } | undefined)
354
+ | (() => Promise<string | { [key: string]: string } | undefined>)
365
355
  | string
366
356
  | { [key: string]: string };
367
357
  export const _ = Symbol("_") as any;
@@ -425,8 +415,8 @@ export class RootOperation {
425
415
  >,
426
416
 
427
417
  _auth_fn: undefined as
428
- | (() => string | { [key: string]: string })
429
- | (() => Promise<string | { [key: string]: string }>)
418
+ | (() => string | { [key: string]: string } | undefined)
419
+ | (() => Promise<string | { [key: string]: string } | undefined>)
430
420
  | undefined,
431
421
  scalars: {
432
422
  DateTime: (value: string) => new Date(value),
@@ -1500,8 +1490,7 @@ export class SelectionWrapper<
1500
1490
  val.value,
1501
1491
 
1502
1492
  // this is only for subscriptions
1503
- SLW_NEEDS_CLONE:
1504
- true,
1493
+ SLW_NEEDS_CLONE: true,
1505
1494
  }),
1506
1495
  };
1507
1496
  });
@@ -1705,7 +1694,7 @@ export class SelectionWrapper<
1705
1694
  );
1706
1695
  }
1707
1696
  }
1708
- `;class m2 extends MU{collector;options;authConfig;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([...m2.ScalarTypeMap.entries()]);static FieldValueWrapperType=JT;static EnumTypesMapped=(D)=>{return`export interface EnumTypesMapped {
1697
+ `;class g0 extends aH{collector;options;authConfig;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([...g0.ScalarTypeMap.entries()]);static FieldValueWrapperType=cb;static EnumTypesMapped=(D)=>{return`export interface EnumTypesMapped {
1709
1698
  ${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(`
1710
1699
  `)}
1711
1700
  };`};static HelperTypes=(D)=>`
@@ -1714,7 +1703,7 @@ export class SelectionWrapper<
1714
1703
  `)}
1715
1704
  }
1716
1705
  export interface ScalarTypeMapDefault {
1717
- ${Array.from(m2.ScalarTypeMap).map(([F,P])=>`"${F}": ${P};`).join(`
1706
+ ${Array.from(g0.ScalarTypeMap).map(([F,P])=>`"${F}": ${P};`).join(`
1718
1707
  `)}
1719
1708
  };
1720
1709
 
@@ -2232,16 +2221,16 @@ export class SelectionWrapper<
2232
2221
  };
2233
2222
  `;constructor(D,F,P,B){super(D,F,P,B);this.collector=F,this.options=P,this.authConfig=B}makeEnumType(){let D=this.originalTypeNameToTypescriptTypeNameWithoutModifiers(this.originalFullTypeName);if(this.collector.hasEnumType(this.typeMeta))return D;if(this.typeMeta.enumValues.length===0)console.warn(`Schema contains empty enum: ${this.typeMeta.name}.
2234
2223
  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=this.typeMeta.description?.split(`
2235
- `).filter((B)=>B.startsWith("@property")).reduce((B,Z)=>{let q=Z.match(/@property \{"(.*?)"\} (.*?)$/),X=q?.[1],J=q?.[2];if(X&&J)B[X]=J;return B},{})??{},P=`
2224
+ `).filter((B)=>B.startsWith("@property")).reduce((B,Z)=>{let X=Z.match(/@property \{"(.*?)"\} (.*?)$/),q=X?.[1],J=X?.[2];if(q&&J)B[q]=J;return B},{})??{},P=`
2236
2225
  export type ${D} = ${this.typeMeta.enumValues.length===0?"undefined":this.typeMeta.enumValues.map((B)=>`"${B.name}"`).join(" | ")};
2237
2226
  export enum ${D}Enum {
2238
2227
  ${this.typeMeta.enumValues.map((B)=>{let Z=F[B.name];return`${B.description?`/** ${B.description} */
2239
2228
  `:""}${Z??B.name} = "${B.name}",`}).join(`
2240
2229
  `)}
2241
2230
  };
2242
- `;return this.collector.addEnumType(this.typeMeta,P),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=()=>{let q=D.args.some((J)=>J.type.isNonNull),X=`${F.join()}${D.name.slice(0,1).toUpperCase()}${D.name.slice(1)}Args`;if(!this.collector.hasArgumentType(X)){let Y=`{ ${D.args.map((H)=>{let W=H.type.isScalar,U=H.type.isEnum,O=H.type.isInput,z=`${H.name}${H.type.isNonNull?"":"?"}`,I="any";if(W)I=H.type.scalarTSType?`ScalarTypeMapWithCustom["${H.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:this.ScalarTypeMap().get(H.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??"any";else if(O||U)I=this.originalTypeNameToTypescriptTypeName(H.type.name);return`${H.description?`/** ${H.description??`${z}`} */`:""}
2243
- ${z}: ${I};`}).join(" ")} }`;this.collector.addArgumentType(X,`export type ${X} = ${Y};`)}return{argsTypeName:X,hasAtLeastOneNonNullArg:q}},Z=D.description?`/* ${D.description} */
2244
- `:"";if(D.type.isScalar||D.type.isEnum){let q=this.makeSelectionTypeInputValueForFieldWrapperType(D.name,D.type);if(this.collector.addSelectionType(D.type,q),D.hasArgs){let{argsTypeName:X,hasAtLeastOneNonNullArg:J}=B();return`${Z}${D.name}: (args${J?"":"?"}: ${X}) => ${q};`}return`${Z}${D.name}${D.type.isNonNull?"":"?"}: ${q};`}else if(D.type.ofType){let q=new m2(D.type.ofType.name,this.collector,this.options);q.makeSelectionFunction();let X=q.originalTypeNameToTypescriptTypeName(q.originalFullTypeName);if(D.hasArgs){let{argsTypeName:J,hasAtLeastOneNonNullArg:Y}=B();return`${Z}${D.name}: (args${Y?"":"?"}: ${J} ) => ${X};`}if(P)return`${Z}${D.name}${D.type.isNonNull?"":"?"}: ${this.originalTypeNameToTypescriptTypeName(D.type.ofType.name)};`;return`${Z}${D.name}${D.type.isNonNull?"":"?"}: ${X};`}else throw console.error(D.type),new Error(`Unknown type for field ${D.name}: ${D.type.name}`)}makeSelectionType(){if(this.typeMeta.isDirective)return"";if(this.typeMeta.isScalar||this.typeMeta.isEnum)return this.makeSelectionTypeInputValueForFieldWrapperType(this.typeName,this.typeMeta);let D=this.originalTypeNameToTypescriptTypeNameWithoutModifiers(this.originalFullTypeName);if(this.collector.hasSelectionType(this.typeMeta))return D;let F="";if(this.typeMeta.isUnion){let P=this.typeMeta.possibleTypes.map((B)=>this.originalTypeNameToTypescriptFriendlyName(B.name)).join(" | ");F=`
2231
+ `;return this.collector.addEnumType(this.typeMeta,P),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=()=>{let X=D.args.some((J)=>J.type.isNonNull),q=`${F.join()}${D.name.slice(0,1).toUpperCase()}${D.name.slice(1)}Args`;if(!this.collector.hasArgumentType(q)){let Y=`{ ${D.args.map((H)=>{let U=H.type.isScalar,W=H.type.isEnum,O=H.type.isInput,z=`${H.name}${H.type.isNonNull?"":"?"}`,I="any";if(U)I=H.type.scalarTSType?`ScalarTypeMapWithCustom["${H.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:this.ScalarTypeMap().get(H.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??"any";else if(O||W)I=this.originalTypeNameToTypescriptTypeName(H.type.name);return`${H.description?`/** ${H.description??`${z}`} */`:""}
2232
+ ${z}: ${I};`}).join(" ")} }`;this.collector.addArgumentType(q,`export type ${q} = ${Y};`)}return{argsTypeName:q,hasAtLeastOneNonNullArg:X}},Z=D.description?`/* ${D.description} */
2233
+ `:"";if(D.type.isScalar||D.type.isEnum){let X=this.makeSelectionTypeInputValueForFieldWrapperType(D.name,D.type);if(this.collector.addSelectionType(D.type,X),D.hasArgs){let{argsTypeName:q,hasAtLeastOneNonNullArg:J}=B();return`${Z}${D.name}: (args${J?"":"?"}: ${q}) => ${X};`}return`${Z}${D.name}${D.type.isNonNull?"":"?"}: ${X};`}else if(D.type.ofType){let X=new g0(D.type.ofType.name,this.collector,this.options);X.makeSelectionFunction();let q=X.originalTypeNameToTypescriptTypeName(X.originalFullTypeName);if(D.hasArgs){let{argsTypeName:J,hasAtLeastOneNonNullArg:Y}=B();return`${Z}${D.name}: (args${Y?"":"?"}: ${J} ) => ${q};`}if(P)return`${Z}${D.name}${D.type.isNonNull?"":"?"}: ${this.originalTypeNameToTypescriptTypeName(D.type.ofType.name)};`;return`${Z}${D.name}${D.type.isNonNull?"":"?"}: ${q};`}else throw console.error(D.type),new Error(`Unknown type for field ${D.name}: ${D.type.name}`)}makeSelectionType(){if(this.typeMeta.isDirective)return"";if(this.typeMeta.isScalar||this.typeMeta.isEnum)return this.makeSelectionTypeInputValueForFieldWrapperType(this.typeName,this.typeMeta);let D=this.originalTypeNameToTypescriptTypeNameWithoutModifiers(this.originalFullTypeName);if(this.collector.hasSelectionType(this.typeMeta))return D;let F="";if(this.typeMeta.isUnion){let P=this.typeMeta.possibleTypes.map((B)=>this.originalTypeNameToTypescriptFriendlyName(B.name)).join(" | ");F=`
2245
2234
  export type ${D} = ${P};
2246
2235
  `}else F=`
2247
2236
  export type ${D} = {
@@ -2255,9 +2244,9 @@ export class SelectionWrapper<
2255
2244
  {},
2256
2245
  this,
2257
2246
  undefined,
2258
- ${D.hasArgs?`args, ${P}Meta`:""})`}makeSelectionFunctionInputObjectValueForField(D,F){let P=()=>{let Z=`${F.join()}${D.name.slice(0,1).toUpperCase()}${D.name.slice(1)}Args`;if(!this.collector.hasArgumentMeta(Z)){let X=`{ ${D.args.map((J)=>{return`${J.name}: "${J.type.name}",`}).join(" ")} }`;this.collector.addArgumentMeta(Z,`export const ${Z}Meta = ${X} as const;`)}return{argsTypeName:Z}},B=D.type;if(B.isScalar||B.isEnum){let Z=this.makeSelectionFunctionInputObjectValueForFieldWrapper(D,F);if(D.hasArgs)P();return this.collector.addSelectionFunction(B,Z),`${D.name}: ${Z}`}else if(B.ofType){let Z=new m2(B.ofType.name,this.collector,this.options).makeSelectionFunction();if(D.hasArgs){let{argsTypeName:q}=P();return`${D.name}: (args: ${q}) => ${Z}.bind({ collector: this, fieldName: "${D.name}", args, argsMeta: ${q}Meta })`}return`${D.name}: ${Z}.bind({ collector: this, fieldName: "${D.name}" })`}else throw console.error(B),new Error(`Unknown type for field ${D.name}: ${B.name}`)}makeDirective(){if(!this.typeMeta.isDirective)return"";let D=`_directive_${this.typeMeta.isDirective.name}`;if(this.collector.hasDirectiveFunction(this.typeMeta.isDirective))return D;let F=`${this.typeName}Args`;if(!this.collector.hasArgumentType(F)){let B=this.typeMeta.isDirective.args.map((Z)=>{let q=Z.type.isScalar,X=Z.type.isEnum,J=Z.type.isInput,Y=`${Z.name}${Z.type.isNonNull?"":"?"}`,H="any";if(q)H=Z.type.scalarTSType?`ScalarTypeMapWithCustom["${Z.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:this.ScalarTypeMap().get(Z.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??"any";else if(J||X)H=this.originalTypeNameToTypescriptTypeName(Z.type.name);return`
2247
+ ${D.hasArgs?`args, ${P}Meta`:""})`}makeSelectionFunctionInputObjectValueForField(D,F){let P=()=>{let Z=`${F.join()}${D.name.slice(0,1).toUpperCase()}${D.name.slice(1)}Args`;if(!this.collector.hasArgumentMeta(Z)){let q=`{ ${D.args.map((J)=>{return`${J.name}: "${J.type.name}",`}).join(" ")} }`;this.collector.addArgumentMeta(Z,`export const ${Z}Meta = ${q} as const;`)}return{argsTypeName:Z}},B=D.type;if(B.isScalar||B.isEnum){let Z=this.makeSelectionFunctionInputObjectValueForFieldWrapper(D,F);if(D.hasArgs)P();return this.collector.addSelectionFunction(B,Z),`${D.name}: ${Z}`}else if(B.ofType){let Z=new g0(B.ofType.name,this.collector,this.options).makeSelectionFunction();if(D.hasArgs){let{argsTypeName:X}=P();return`${D.name}: (args: ${X}) => ${Z}.bind({ collector: this, fieldName: "${D.name}", args, argsMeta: ${X}Meta })`}return`${D.name}: ${Z}.bind({ collector: this, fieldName: "${D.name}" })`}else throw console.error(B),new Error(`Unknown type for field ${D.name}: ${B.name}`)}makeDirective(){if(!this.typeMeta.isDirective)return"";let D=`_directive_${this.typeMeta.isDirective.name}`;if(this.collector.hasDirectiveFunction(this.typeMeta.isDirective))return D;let F=`${this.typeName}Args`;if(!this.collector.hasArgumentType(F)){let B=this.typeMeta.isDirective.args.map((Z)=>{let X=Z.type.isScalar,q=Z.type.isEnum,J=Z.type.isInput,Y=`${Z.name}${Z.type.isNonNull?"":"?"}`,H="any";if(X)H=Z.type.scalarTSType?`ScalarTypeMapWithCustom["${Z.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]","")}"]`:this.ScalarTypeMap().get(Z.type.name.replaceAll("!","").replaceAll("[","").replaceAll("]",""))??"any";else if(J||q)H=this.originalTypeNameToTypescriptTypeName(Z.type.name);return`
2259
2248
  /** ${Z.description??`${Y}`} */
2260
- ${Y}: ${H};`}).join(" ");this.collector.addArgumentType(F,`export type ${F} = { ${B} };`)}if(!this.collector.hasArgumentMeta(F)){let Z=`{ ${this.typeMeta.isDirective.args.map((q)=>{return`${q.name}: "${q.type.name}",`}).join(" ")} }`;this.collector.addArgumentMeta(F,`export const ${F}Meta = ${Z} as const;`)}let P=`
2249
+ ${Y}: ${H};`}).join(" ");this.collector.addArgumentType(F,`export type ${F} = { ${B} };`)}if(!this.collector.hasArgumentMeta(F)){let Z=`{ ${this.typeMeta.isDirective.args.map((X)=>{return`${X.name}: "${X.type.name}",`}).join(" ")} }`;this.collector.addArgumentMeta(F,`export const ${F}Meta = ${Z} as const;`)}let P=`
2261
2250
  export const ${D} = (
2262
2251
  args: ${F}
2263
2252
  ) => <F>(
@@ -2274,7 +2263,7 @@ export class SelectionWrapper<
2274
2263
  ${this.typeMeta.isList??0},
2275
2264
  {},
2276
2265
  this
2277
- )`;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((H)=>H.type.isScalar||H.type.isEnum),P=this.typeMeta.name===this.collector.QueryTypeName||this.typeMeta.name===this.collector.MutationTypeName||this.typeMeta.name===this.collector.SubscriptionTypeName,B=this.typeMeta.name===this.collector.SubscriptionTypeName,Z=this.originalTypeNameToTypescriptTypeName(this.originalFullTypeName),q="";if(this.typeMeta.isUnion)q=`
2266
+ )`;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((H)=>H.type.isScalar||H.type.isEnum),P=this.typeMeta.name===this.collector.QueryTypeName||this.typeMeta.name===this.collector.MutationTypeName||this.typeMeta.name===this.collector.SubscriptionTypeName,B=this.typeMeta.name===this.collector.SubscriptionTypeName,Z=this.originalTypeNameToTypescriptTypeName(this.originalFullTypeName),X="";if(this.typeMeta.isUnion)X=`
2278
2267
  $on: {
2279
2268
  ${this.typeMeta.possibleTypes.map((H)=>`${H.name}: ${this.originalTypeNameToTypescriptFriendlyName(H.name)}Selection.bind({
2280
2269
  collector: this,
@@ -2283,7 +2272,7 @@ export class SelectionWrapper<
2283
2272
  }),`).join(`
2284
2273
  `)}
2285
2274
  }
2286
- `;else q=`
2275
+ `;else X=`
2287
2276
  $fragment: <F extends (this: any, ...args: any[]) => any>(f: F) =>
2288
2277
  f.bind({
2289
2278
  collector: this,
@@ -2305,13 +2294,13 @@ export class SelectionWrapper<
2305
2294
  opts as any,
2306
2295
  collector
2307
2296
  ) as any
2308
- `;let X=new Map,J=`
2297
+ `;let q=new Map,J=`
2309
2298
  export function make${D}Input(this: any) ${this.typeMeta.isUnion?"":`: ReturnTypeFrom${D}`} {
2310
2299
  return {
2311
- ${this.typeMeta.fields.map((H)=>[H,this.makeSelectionFunctionInputObjectValueForField(H,this.typeMeta.isInput?[]:[this.typeName])]).map(([H,W])=>{let U=`
2300
+ ${this.typeMeta.fields.map((H)=>[H,this.makeSelectionFunctionInputObjectValueForField(H,this.typeMeta.isInput?[]:[this.typeName])]).map(([H,U])=>{let W=`
2312
2301
  $lazy: (
2313
2302
  ${H.hasArgs?`args: ${this.typeName}${H.name.slice(0,1).toUpperCase()}${H.name.slice(1)}Args`:""}
2314
- ) => Promise<"T">`;return X.set(H.name,[`${H.hasArgs?`(
2303
+ ) => Promise<"T">`;return q.set(H.name,[`${H.hasArgs?`(
2315
2304
  args: ${this.typeName}${H.name.slice(0,1).toUpperCase()}${H.name.slice(1)}Args
2316
2305
  ) =>`:""}`,`${H.type.isScalar||H.type.isEnum?`SelectionWrapperImpl<"${H.name}", "${H.type.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}${H.type.isNonNull?"!":""}", ${H.type.isList}, {}, ${H.hasArgs?`${this.typeName}${H.name.slice(0,1).toUpperCase()}${H.name.slice(1)}Args`:"undefined"}>`:`ReturnType<
2317
2306
  SLFN<
@@ -2322,20 +2311,20 @@ export class SelectionWrapper<
2322
2311
  ${H.type.isList??0}
2323
2312
  ${P?`,
2324
2313
  {
2325
- ${U} ${this.authConfig?`& {
2314
+ ${W} ${this.authConfig?`& {
2326
2315
  auth: (auth: FnOrPromisOrPrimitive) => Promise<"T">;
2327
2316
  }`:""};
2328
- ${this.authConfig?`auth: (auth: FnOrPromisOrPrimitive) => Promise<"T"> & {${U}}`:""}
2317
+ ${this.authConfig?`auth: (auth: FnOrPromisOrPrimitive) => Promise<"T"> & {${W}}`:""}
2329
2318
  },
2330
2319
  "$lazy" ${this.authConfig?'| "auth"':""},
2331
2320
  AS_PROMISE
2332
2321
  ${B?", 1":""}
2333
2322
  `:""}
2334
2323
  >
2335
- >`}`]),`${W},`}).join(`
2324
+ >`}`]),`${U},`}).join(`
2336
2325
  `)}
2337
2326
 
2338
- ${q}
2327
+ ${X}
2339
2328
  } as const;
2340
2329
  };
2341
2330
  export const ${D} = makeSLFN(
@@ -2346,11 +2335,11 @@ export class SelectionWrapper<
2346
2335
  );
2347
2336
  `,Y=this.typeMeta.isUnion?"":`
2348
2337
  type ReturnTypeFrom${D}RetTypes<AS_PROMISE = 0> = {
2349
- ${Array.from(X).map(([H,[W,U]])=>`${H}: ${U}`).join(`
2338
+ ${Array.from(q).map(([H,[U,W]])=>`${H}: ${W}`).join(`
2350
2339
  `)}
2351
2340
  }
2352
2341
  type ReturnTypeFrom${D} = {
2353
- ${Array.from(X).map(([H,[W,U]])=>`${H}: ${W} ReturnTypeFrom${D}RetTypes["${H}"]`).join(`
2342
+ ${Array.from(q).map(([H,[U,W]])=>`${H}: ${U} ReturnTypeFrom${D}RetTypes["${H}"]`).join(`
2354
2343
  `)}
2355
2344
  } & {
2356
2345
  $fragment: <F extends (this: any, ...args: any[]) => any>(
@@ -2364,20 +2353,20 @@ export class SelectionWrapper<
2364
2353
  $all: selectAllFunc<AllNonFuncFieldsFromType<${Z}>, "${Z}">;
2365
2354
  };`;return this.collector.addSelectionFunction(this.typeMeta,`${Y}
2366
2355
  ${J}
2367
- `),D}static makeRootOperationFunction(D,F){let{QueryTypeName:P,MutationTypeName:B,SubscriptionTypeName:Z}=D,q=[P,B,Z].filter(Boolean),X=[...D.types.values()].filter((Y)=>Y.isDirective?.locations.some((H)=>[C3.DirectiveLocation.FIELD,C3.DirectiveLocation.FRAGMENT_SPREAD,C3.DirectiveLocation.INLINE_FRAGMENT].includes(H))).map((Y)=>{return`"${Y.isDirective.name}": ${new m2(Y.name,D,{}).makeDirective()}`});return`
2368
- ${X?.length?`export const $directives = {
2369
- ${X.join(`,
2356
+ `),D}static makeRootOperationFunction(D,F){let{QueryTypeName:P,MutationTypeName:B,SubscriptionTypeName:Z}=D,X=[P,B,Z].filter(Boolean),q=[...D.types.values()].filter((Y)=>Y.isDirective?.locations.some((H)=>[K3.DirectiveLocation.FIELD,K3.DirectiveLocation.FRAGMENT_SPREAD,K3.DirectiveLocation.INLINE_FRAGMENT].includes(H))).map((Y)=>{return`"${Y.isDirective.name}": ${new g0(Y.name,D,{}).makeDirective()}`});return`
2357
+ ${q?.length?`export const $directives = {
2358
+ ${q.join(`,
2370
2359
  `)}
2371
2360
  } as const;`:""}
2372
2361
  export function _makeRootOperationInput(this: any) {
2373
2362
  return {
2374
- ${q.filter((Y)=>D.types.has(Y)).map((Y)=>{return`${Y}: ${Y}Selection.bind({
2363
+ ${X.filter((Y)=>D.types.has(Y)).map((Y)=>{return`${Y}: ${Y}Selection.bind({
2375
2364
  collector: this,
2376
2365
  isRootType: "${Y}",
2377
2366
  }),`}).join(`
2378
2367
  `)}
2379
2368
 
2380
- ${X?.length?`
2369
+ ${q?.length?`
2381
2370
  $directives,`:""}
2382
2371
  } as const;
2383
2372
  };
@@ -2527,15 +2516,15 @@ export class SelectionWrapper<
2527
2516
  value: __init__,
2528
2517
  });
2529
2518
 
2530
- const _makeOperationShortcut = <O extends ${q.map((Y)=>`"${Y}"`).join(" | ")}>(
2519
+ const _makeOperationShortcut = <O extends ${X.map((Y)=>`"${Y}"`).join(" | ")}>(
2531
2520
  operation: O,
2532
2521
  field: Exclude<
2533
- ${q.length===1?`keyof ReturnTypeFrom${q[0]}Selection,`:`typeof operation extends "${q[0]}"
2534
- ? keyof ReturnTypeFrom${q[0]}Selection
2535
- : ${q.length>2?`
2536
- typeof operation extends "${q[1]}"
2537
- ? keyof ReturnTypeFrom${q[1]}Selection
2538
- : keyof ReturnTypeFrom${q[2]}Selection,`:`keyof ReturnTypeFrom${q[1]}Selection,`}`}
2522
+ ${X.length===1?`keyof ReturnTypeFrom${X[0]}Selection,`:`typeof operation extends "${X[0]}"
2523
+ ? keyof ReturnTypeFrom${X[0]}Selection
2524
+ : ${X.length>2?`
2525
+ typeof operation extends "${X[1]}"
2526
+ ? keyof ReturnTypeFrom${X[1]}Selection
2527
+ : keyof ReturnTypeFrom${X[2]}Selection,`:`keyof ReturnTypeFrom${X[1]}Selection,`}`}
2539
2528
  "$fragment" | "$scalars" | "$all"
2540
2529
  >,
2541
2530
  ) => {
@@ -2546,34 +2535,34 @@ export class SelectionWrapper<
2546
2535
  );
2547
2536
  const rootRef = { ref: root };
2548
2537
 
2549
- let fieldFn: ${q.map((Y)=>`
2538
+ let fieldFn: ${X.map((Y)=>`
2550
2539
  ReturnTypeFrom${Y}Selection[Exclude<
2551
2540
  keyof ReturnTypeFrom${Y}Selection,
2552
2541
  "$fragment" | "$scalars" | "$all"
2553
2542
  >]`).join(" | ")};
2554
2543
 
2555
- ${q.length>1?`if (operation === "${q[0]}") {`:""}
2544
+ ${X.length>1?`if (operation === "${X[0]}") {`:""}
2556
2545
  fieldFn =
2557
- make${q[0]}SelectionInput.bind(rootRef)()[
2546
+ make${X[0]}SelectionInput.bind(rootRef)()[
2558
2547
  field as Exclude<
2559
- keyof ReturnTypeFrom${q[0]}Selection,
2548
+ keyof ReturnTypeFrom${X[0]}Selection,
2560
2549
  "$fragment" | "$scalars" | "$all"
2561
2550
  >
2562
2551
  ];
2563
- ${q.length>1?`} else ${q.length>2?`if (operation === "${q[1]}")`:""}`:""}${q.length>1?`{
2552
+ ${X.length>1?`} else ${X.length>2?`if (operation === "${X[1]}")`:""}`:""}${X.length>1?`{
2564
2553
  fieldFn =
2565
- make${q[1]}SelectionInput.bind(rootRef)()[
2554
+ make${X[1]}SelectionInput.bind(rootRef)()[
2566
2555
  field as Exclude<
2567
- keyof ReturnTypeFrom${q[1]}Selection,
2556
+ keyof ReturnTypeFrom${X[1]}Selection,
2568
2557
  "$fragment" | "$scalars" | "$all"
2569
2558
  >
2570
2559
  ];
2571
2560
  }`:""}
2572
- ${q.length>2?`else {
2561
+ ${X.length>2?`else {
2573
2562
  fieldFn =
2574
- make${q[2]}SelectionInput.bind(rootRef)()[
2563
+ make${X[2]}SelectionInput.bind(rootRef)()[
2575
2564
  field as Exclude<
2576
- keyof ReturnTypeFrom${q[2]}Selection,
2565
+ keyof ReturnTypeFrom${X[2]}Selection,
2577
2566
  "$fragment" | "$scalars" | "$all"
2578
2567
  >
2579
2568
  ];
@@ -2757,7 +2746,7 @@ export class SelectionWrapper<
2757
2746
  }
2758
2747
  };
2759
2748
 
2760
- ${q.map((Y)=>`
2749
+ ${X.map((Y)=>`
2761
2750
  Object.defineProperty(__client__, "${Y.toLowerCase()}", {
2762
2751
  enumerable: false,
2763
2752
  get() {
@@ -2783,7 +2772,7 @@ export class SelectionWrapper<
2783
2772
  export default __client__ as typeof __client__ & {
2784
2773
  init: typeof __init__;
2785
2774
  } & {
2786
- ${q.map((Y)=>({op:Y,wrapForAsyncIter:(H)=>Y===Z?`AsyncIterable<${H}>`:`Promise<${H}>`})).map(({op:Y,wrapForAsyncIter:H})=>`${Y?.toLowerCase()}: {
2775
+ ${X.map((Y)=>({op:Y,wrapForAsyncIter:(H)=>Y===Z?`AsyncIterable<${H}>`:`Promise<${H}>`})).map(({op:Y,wrapForAsyncIter:H})=>`${Y?.toLowerCase()}: {
2787
2776
  [field in Exclude<
2788
2777
  keyof ReturnType<typeof make${Y}SelectionInput>,
2789
2778
  "$fragment" | "$scalars" | "$all"
@@ -2847,7 +2836,7 @@ export class SelectionWrapper<
2847
2836
  };`).join(`
2848
2837
  `)}
2849
2838
  }
2850
- `}}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;
2839
+ `}}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 db=`const Proxy = global.Proxy;
2851
2840
  Proxy.prototype = {};
2852
2841
 
2853
2842
  export const _ = Symbol("_") as any;
@@ -3748,11 +3737,11 @@ export class SelectionWrapper<
3748
3737
  );
3749
3738
  }
3750
3739
  }
3751
- `;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 {
3740
+ `;class B0 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([...B0.ScalarTypeMap.entries()]);static FieldValueWrapperType=db;static EnumTypesMapped=(D)=>{return`export interface EnumTypesMapped {
3752
3741
  ${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(`
3753
3742
  `)}
3754
3743
  };`};static UnionTypesMapped=(D)=>{return`export interface UnionTypesMapped {
3755
- ${Array.from(D.types.entries()).filter(([F,P])=>P.isUnion).map(([F,P])=>[F.replaceAll("[","").replaceAll("]","").replaceAll("!",""),P]).filter(([F,P],B,Z)=>Z.map(([q])=>q).indexOf(F)===B).map(([F,P])=>`"${F}": ${F}${P.isList&&!P.isInput?"Array":""};`).filter((F,P,B)=>B.indexOf(F)===P).join(`
3744
+ ${Array.from(D.types.entries()).filter(([F,P])=>P.isUnion).map(([F,P])=>[F.replaceAll("[","").replaceAll("]","").replaceAll("!",""),P]).filter(([F,P],B,Z)=>Z.map(([X])=>X).indexOf(F)===B).map(([F,P])=>`"${F}": ${F}${P.isList&&!P.isInput?"Array":""};`).filter((F,P,B)=>B.indexOf(F)===P).join(`
3756
3745
  `)}
3757
3746
  };`};static HelperTypes=(D)=>`
3758
3747
  export interface ScalarTypeMapWithCustom {
@@ -3760,7 +3749,7 @@ export class SelectionWrapper<
3760
3749
  `)}
3761
3750
  }
3762
3751
  export interface ScalarTypeMapDefault {
3763
- ${Array.from(q2.ScalarTypeMap).map(([F,P])=>`"${F}": ${P};`).join(`
3752
+ ${Array.from(B0.ScalarTypeMap).map(([F,P])=>`"${F}": ${P};`).join(`
3764
3753
  `)}
3765
3754
  };
3766
3755
 
@@ -4094,16 +4083,16 @@ export class SelectionWrapper<
4094
4083
  return _SLFN as ReturnType<SLFN<T, F, N, TNP, TAD>>;
4095
4084
  };
4096
4085
  `;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}.
4097
- 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("*/","\\*\\/")} */
4098
- `:""}${F(q.name)} = "${q.name}",`).join(`
4099
- `),Z=(q)=>`
4100
- export type ${q} = ${P};
4101
- export enum ${q}Enum {
4086
+ 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=(X)=>{if(!isNaN(Number(X))){let q=Number(X);if(q<0)return`minus_${X.slice(1)}`;return`_${q}`}return X.replace(/[^a-zA-Z0-9_]/g,"_").replace(/^[0-9]/,"_$&")},P=this.typeMeta.enumValues.length===0?"undefined":this.typeMeta.enumValues.map((X)=>`"${X.name}"`).join(" | "),B=this.typeMeta.enumValues.map((X)=>`${X.description?`/** ${X.description.replaceAll("*/","\\*\\/")} */
4087
+ `:""}${F(X.name)} = "${X.name}",`).join(`
4088
+ `),Z=(X)=>`
4089
+ export type ${X} = ${P};
4090
+ export enum ${X}Enum {
4102
4091
  ${B}
4103
4092
  };
4104
- `;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("*/","\\*\\/")} */
4093
+ `;if(this.collector.hasEnumTypeName(D)&&this.collector.getEnumTypeByName(D)!==Z(D)){let X=0,q=[D];while(this.collector.hasEnumTypeName(q.join("_")))q=[D,(++X).toString()];this.typeMeta.name=q.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("*/","\\*\\/")} */
4105
4094
  `:"";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("]","")}
4106
- ${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=`
4095
+ ${Array.from({length:D.type.isList}).map((Z)=>">").join("")};`;else if(D.type.ofType){let Z=new B0(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=`
4107
4096
  export type ${D} = ${P};
4108
4097
  `}else F=`
4109
4098
  export type ${D} = {
@@ -4117,15 +4106,15 @@ export class SelectionWrapper<
4117
4106
  {},
4118
4107
  this,
4119
4108
  undefined,
4120
- )`}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(
4109
+ )`}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 B0(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(
4121
4110
  "${this.typeName}",
4122
4111
  "${this.typeMeta.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}",
4123
4112
  ${this.typeMeta.isList??0},
4124
4113
  {},
4125
4114
  this
4126
- )`;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=`
4115
+ )`;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((q)=>q.type.isScalar||q.type.isEnum),P="";if(this.typeMeta.isUnion&&this.typeMeta.possibleTypes.filter((q)=>!q.isScalar&&!q.isEnum).length)P=`
4127
4116
  $on: {
4128
- ${this.typeMeta.possibleTypes.filter((X)=>!X.isScalar&&!X.isEnum).map((X)=>`"${X.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}": ${this.originalTypeNameToTypescriptFriendlyName(X.name)}Selection.bind({
4117
+ ${this.typeMeta.possibleTypes.filter((q)=>!q.isScalar&&!q.isEnum).map((q)=>`"${q.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}": ${this.originalTypeNameToTypescriptFriendlyName(q.name)}Selection.bind({
4129
4118
  collector: this,
4130
4119
  fieldName: "",
4131
4120
  }),`).join(`
@@ -4142,13 +4131,13 @@ export class SelectionWrapper<
4142
4131
  `:""}`;let B=new Map,Z=`
4143
4132
  export function make${D}Input(this: any) ${this.typeMeta.isUnion?"":`: ReturnTypeFrom${D}`} {
4144
4133
  return {
4145
- ${this.typeMeta.fields.map((X)=>[X,this.makeSelectionFunctionInputObjectValueForField(X,this.typeMeta.isInput?[]:[this.typeName])]).map(([X,J])=>{return B.set(X.name,`${X.type.isScalar||X.type.isEnum||X.type.isUnion&&X.type.possibleTypes.every((Y)=>Y.isScalar||Y.isEnum)?`SelectionWrapperImpl<"${X.name}", "${X.type.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}", ${X.type.isList}, {}, undefined>`:`ReturnType<
4134
+ ${this.typeMeta.fields.map((q)=>[q,this.makeSelectionFunctionInputObjectValueForField(q,this.typeMeta.isInput?[]:[this.typeName])]).map(([q,J])=>{return B.set(q.name,`${q.type.isScalar||q.type.isEnum||q.type.isUnion&&q.type.possibleTypes.every((Y)=>Y.isScalar||Y.isEnum)?`SelectionWrapperImpl<"${q.name}", "${q.type.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}", ${q.type.isList}, {}, undefined>`:`ReturnType<
4146
4135
  SLFN<
4147
4136
  {},
4148
- ReturnType<typeof make${super.originalTypeNameToTypescriptFriendlyName(X.type.name)}SelectionInput>,
4149
- "${super.originalTypeNameToTypescriptFriendlyName(X.type.name)}Selection",
4150
- "${super.originalTypeNameToTypescriptTypeNameWithoutModifiers(X.type.name)}",
4151
- ${X.type.isList??0}
4137
+ ReturnType<typeof make${super.originalTypeNameToTypescriptFriendlyName(q.type.name)}SelectionInput>,
4138
+ "${super.originalTypeNameToTypescriptFriendlyName(q.type.name)}Selection",
4139
+ "${super.originalTypeNameToTypescriptTypeNameWithoutModifiers(q.type.name)}",
4140
+ ${q.type.isList??0}
4152
4141
  >
4153
4142
  >`}`),`${J},`}).join(`
4154
4143
  `)}
@@ -4162,37 +4151,37 @@ export class SelectionWrapper<
4162
4151
  "${this.originalFullTypeName.replaceAll("[","").replaceAll("]","").replaceAll("!","")}",
4163
4152
  ${this.typeMeta.isList??0}
4164
4153
  );
4165
- `,q=this.typeMeta.isUnion?"":`
4154
+ `,X=this.typeMeta.isUnion?"":`
4166
4155
  type ReturnTypeFrom${D} = {
4167
- ${Array.from(B).map(([X,J])=>`"${X}": ${J}`).join(`
4156
+ ${Array.from(B).map(([q,J])=>`"${q}": ${J}`).join(`
4168
4157
  `)}
4169
4158
  } & {
4170
4159
  ${F?`
4171
4160
  $scalars: () => SLWsFromSelection<ReturnType<typeof ${`make${D}Input`}>>;
4172
4161
  `:""}
4173
- };`;return this.collector.addSelectionFunction(this.typeMeta,`${q}
4162
+ };`;return this.collector.addSelectionFunction(this.typeMeta,`${X}
4174
4163
  ${Z}
4175
- `),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)}: {
4164
+ `),D}static makeOperationFunctions(D,F,P){let B=new Map,Z=[],X=[],q=(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((K)=>K.location==="path").some((K)=>K.name===$.name)),H=J.args.filter(($)=>$.location==="body").some(($)=>J.args.filter((K)=>K.location==="query").some((K)=>K.name===$.name)||J.args.filter((K)=>K.location==="path").some((K)=>K.name===$.name)),U=()=>{if(!J.args.length)return;let $=`${J.name.slice(0,1).toUpperCase()}${J.name.slice(1)}Args`;if(!F.hasArgumentMeta($)){let j=`{ ${J.args.map((A)=>{if(A.name==="$"&&(Y||H))return A.type.inputFields.map((S)=>`${q(S.name)}: {
4176
4165
  type: "${S.type.name}",
4177
4166
  location: "${A.location}",
4178
4167
  },`).join(`
4179
4168
  `);else if(A.name==="$"&&!Y&&!H)return`${A.location==="query"?"$query":"$body"}: {
4180
4169
  type: "${A.type.name}",
4181
4170
  location: "${A.location}",
4182
- },`;return`${X(A.name)}: {
4171
+ },`;return`${q(A.name)}: {
4183
4172
  type: "${A.type.name}",
4184
4173
  location: "${A.location}",
4185
- },`}).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`
4186
- ${k?`/** ${k.replaceAll("*/","\\*\\/")??`${BD}`} */`:""}
4187
- ${BD}: ${QD};
4174
+ },`}).join(" ")} }`;F.addArgumentMeta($,`export const ${$}Meta = ${j} as const;`)}return{argsTypeName:$}},W=()=>{let $=(A)=>{let S=A.type.isScalar,C=A.type.isEnum,u=A.type.isInput,m=`${q(A.name)}${A.type.isNonNull?"":"?"}`,w="any";if(S)w=this.ScalarTypeMap.get(A.type.name.replaceAll("!",""))??"any";else if(u||C)w=`${this.originalTypeNameToTypescriptTypeName(A.type.name)}`;return{description:A.description,argKey:m,argType:w}};if(!J.args.length)return;let K=J.args.some((A)=>A.type.isNonNull),j=`${J.name.slice(0,1).toUpperCase()}${J.name.slice(1)}Args`;if(!F.hasArgumentType(j)){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 B0(J.args[0].type.name,F,P).makeSelectionType();else A=`{ ${J.args.map((C)=>{if(C.name==="$"&&(Y||H))return C.type.inputFields.map((M)=>{let{description:h,argType:GD,argKey:XD}=$(M);return`
4175
+ ${h?`/** ${h.replaceAll("*/","\\*\\/")??`${XD}`} */`:""}
4176
+ ${XD}: ${GD};
4188
4177
  `}).join(`
4189
- `);else if(V.name==="$"&&!Y&&!H){let{description:M,argType:k}=$(V);return`
4190
- ${M?`/** ${M.replaceAll("*/","\\*\\/")??`${V.location==="query"?"$query":"$body"}`} */`:""}
4191
- ${V.location==="query"?"$query":"$body"}: ${k};
4192
- `}let{description:T,argType:m,argKey:j}=$(V);return`
4193
- ${T?`/** ${T.replaceAll("*/","\\*\\/")??`${j}`} */`:""}
4194
- ${j}: ${m};
4195
- `}).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(
4178
+ `);else if(C.name==="$"&&!Y&&!H){let{description:M,argType:h}=$(C);return`
4179
+ ${M?`/** ${M.replaceAll("*/","\\*\\/")??`${C.location==="query"?"$query":"$body"}`} */`:""}
4180
+ ${C.location==="query"?"$query":"$body"}: ${h};
4181
+ `}let{description:u,argType:m,argKey:w}=$(C);return`
4182
+ ${u?`/** ${u.replaceAll("*/","\\*\\/")??`${w}`} */`:""}
4183
+ ${w}: ${m};
4184
+ `}).join(" ")} }`;F.addArgumentType(j,`export type ${j} = ${A};`)}return{argsTypeName:j,hasAtLeastOneNonNullArg:K}},O=U(),z=W(),I=J.type.isScalar||J.type.isEnum?`makeSLFNScalarOp(
4196
4185
  makeScalarOperationSelection(
4197
4186
  "${J.name}",
4198
4187
  "${J.type.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}",
@@ -4203,7 +4192,7 @@ export class SelectionWrapper<
4203
4192
  "${J.type.name.replaceAll("[","").replaceAll("]","").replaceAll("!","")}",
4204
4193
  ${J.type.isList??0},
4205
4194
  ${z?"args":"undefined"}
4206
- )`:new q2(J.type.name,F,P).makeSelectionFunction(),R=`
4195
+ )`:new B0(J.type.name,F,P).makeSelectionFunction(),R=`
4207
4196
  "${J.name}": (${z?`args: ${z.argsTypeName}`:""}) =>
4208
4197
  ${I}.bind({
4209
4198
  collector: this,
@@ -4229,9 +4218,9 @@ export class SelectionWrapper<
4229
4218
  },
4230
4219
  "$lazy"
4231
4220
  >
4232
- >,`);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`
4221
+ >,`);if(!J.type.isScalar&&!J.type.isEnum)Z.push(R);else X.push(R)}return{fnsWithoutScalarOps:Z,fnsScalarOps:X,makeSelectionFunctionInputReturnTypeParts:B}}static makeRootOperationFunction(D,F,P,B){let{fnsWithoutScalarOps:Z,fnsScalarOps:X,makeSelectionFunctionInputReturnTypeParts:q}=this.makeOperationFunctions(D,F,P);return`
4233
4222
  export type ReturnTypeFromRootOperationWithoutScalarOps = {
4234
- ${Array.from(X).map(([Y,H])=>`"${Y}": ${H}`).join(`
4223
+ ${Array.from(q).map(([Y,H])=>`"${Y}": ${H}`).join(`
4235
4224
  `)}
4236
4225
  };
4237
4226
  export function _makeRootOperationInput(this: any) {
@@ -4241,7 +4230,7 @@ export class SelectionWrapper<
4241
4230
  } as const;
4242
4231
 
4243
4232
  const withScalarOps = {
4244
- ${q.join(`
4233
+ ${X.join(`
4245
4234
  `)}
4246
4235
  } as const;
4247
4236
 
@@ -4441,42 +4430,42 @@ export class SelectionWrapper<
4441
4430
  export default __client__ as typeof __client__ & {
4442
4431
  init: typeof __init__;
4443
4432
  };
4444
- `}}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,"Record<string | number | symbol, unknown>",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||Y.isObject||Y.isUnion).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(`
4445
- `)}}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(`
4446
- `)}}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(`
4433
+ `}}var N6={};rH(N6,{Generator:()=>nH});var pb=(D,F,P,B)=>{let X=F?.includes("@typedef")?F?.match(/@typedef\s*{(.*)}/)?.[1]:void 0,q={name:D,description:F,isScalar:!0,scalarTSType:X??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};q.ofType=q,B.addType(q),B.addCustomScalar(q);let J={...q,name:`${q.name}!`,isNonNull:!0};return J.ofType=J,B.addType(J),B.addCustomScalar(J),q},rb=(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 KD.GraphQLScalarType){if(["String","Int","Float","Boolean","ID","Date","DateTime","DateTimeISO","Time","JSON"].includes(Y))continue;B.types.push(pb(Y,H.description??void 0,"Record<string | number | symbol, unknown>",P))}}let Z=P.customScalars.size>0,X=D.getQueryType();if(X)for(let Y of Object.values(X.getFields()))B.query.push($7(D,Y,"query",F,P));let q=D.getMutationType();if(q)for(let Y of Object.values(q.getFields()))B.mutation.push($7(D,Y,"mutation",F,P));let J=D.getSubscriptionType();if(J)for(let Y of Object.values(J.getFields()))B.subscription.push($7(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(KD.isObjectType(H)||Z&&KD.isInputObjectType(H)||KD.isInterfaceType(H))B.types.push(_6(D,H,F,P))}for(let Y of D.getDirectives())B.directives.push(ab(D,Y,F,P));return B},$7=(D,F,P,B,Z)=>{let X={name:F.name,description:F.description??void 0,operation:P,args:[],type:_6(D,F.type,B,Z)};for(let q in F.args){let J=F.args[q];X.args.push(C3(D,J,B,Z))}return X},C3=(D,F,P,B)=>{return{name:F.name,hasArgs:!1,args:[],description:F.description??void 0,type:_6(D,F.type,P,B)}},_6=(D,F,P,B)=>{let Z=KD.getNamedType(F),X={name:F.toString(),description:Z.description??void 0,isList:F.toString().split("[").length-1,isNonNull:F.toString().endsWith("!"),isScalar:Z instanceof KD.GraphQLScalarType,isEnum:Z instanceof KD.GraphQLEnumType,isInput:Z instanceof KD.GraphQLInputObjectType,isInterface:Z instanceof KD.GraphQLInterfaceType,isObject:Z instanceof KD.GraphQLObjectType,isUnion:Z instanceof KD.GraphQLUnionType,isQuery:!1,isMutation:!1,isSubscription:!1,fields:[],possibleTypes:[],enumValues:[],inputFields:[]};if(B.hasType(X.name))return B.getType(X.name);else B.addType(X);if(X.ofType=X,X.isEnum)for(let q of Z.getValues())X.enumValues.push({name:q.name,description:q.description??void 0});if(X.isInput){let q=Z.getFields();for(let J in q)X.inputFields.push(C3(D,q[J],P,B))}if(X.isInterface){let q=Z.getFields();for(let J in q)X.fields.push(pH(D,q[J],P,B))}if(X.isObject){let q=Z.getFields();for(let J in q)X.fields.push(pH(D,q[J],P,B))}if(X.isUnion)for(let q of Z.getTypes())X.possibleTypes.push(_6(D,q,P,B));if(Z instanceof KD.GraphQLObjectType){if(Z.name==="Query")X.isQuery=!0;else if(Z.name==="Mutation")X.isMutation=!0;else if(Z.name==="Subscription")X.isSubscription=!0}return B.addType(X),X},pH=(D,F,P,B)=>{let Z={name:F.name,description:F.description??void 0,hasArgs:Object.keys(F.args).length>0,args:[],type:_6(D,F.type,P,B)};for(let X in F.args){let q=F.args[X];Z.args.push(C3(D,q,P,B))}return Z},ab=(D,F,P,B)=>{let Z={name:F.name,description:F.description??void 0,locations:F.locations,args:[]};for(let X in F.args){let q=F.args[X];Z.args.push(C3(D,q,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 sH{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 nH{Codegen;constructor(D){this.Codegen=D}async generate({schema:D,options:F,authConfig:P}){let B=D.getQueryType()?.name,Z=D.getMutationType()?.name,X=D.getSubscriptionType()?.name,q=new sH(B,Z,X);rb(D,F,q);for(let[Y,H]of q.types.entries()){if(!H.isEnum)continue;new this.Codegen(Y,q,F,P).makeEnumType()}for(let[Y,H]of q.types.entries()){if(!H.isInput)continue;new this.Codegen(Y,q,F,P).makeSelectionType()}for(let[Y,H]of q.types.entries()){if(!H.isDirective?.locations.some((U)=>[A3.DirectiveLocation.FIELD,A3.DirectiveLocation.FRAGMENT_SPREAD,A3.DirectiveLocation.INLINE_FRAGMENT].includes(U)))continue;new this.Codegen(Y,q,F,P).makeDirective()}for(let[Y,H]of q.types.entries()){if(H.isScalar||H.isInput||H.isEnum||H.isDirective)continue;new this.Codegen(Y,q,F,P).makeSelectionType(),new this.Codegen(Y,q,F,P).makeSelectionFunction()}return[this.Codegen.FieldValueWrapperType,this.Codegen.HelperTypes(Array.from(q.customScalars.values())),this.Codegen.HelperFunctions,...[...q.enumsTypes.entries()].map(([Y,H])=>H).filter((Y,H,U)=>U.indexOf(Y)===H),...[...q.argumentTypes.entries()].map(([Y,H])=>H).filter((Y,H,U)=>U.indexOf(Y)===H),...[...q.argumentMeta.entries()].map(([Y,H])=>H).filter((Y,H,U)=>U.indexOf(Y)===H),...[...q.selectionTypes.entries()].filter(([Y])=>Y.isInput||Y.isObject||Y.isUnion).map(([Y,H])=>H).filter((Y,H,U)=>U.indexOf(Y)===H),this.Codegen.EnumTypesMapped(q),...[...q.selectionFunctions.entries()].filter(([Y])=>!Y.isScalar&&!Y.isEnum&&!Y.isInput).map(([Y,H])=>H),...[...q.directivesFunctions.entries()].map(([Y,H])=>H),this.Codegen.makeRootOperationFunction(q,P)].join(`
4434
+ `)}}var k6={};rH(k6,{Generator:()=>oH});var uD=(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(".","_")},sb=(D,F,P)=>{let B={types:[],operations:[],customScalars:[]};for(let[Z,X]of Object.entries(D?.components?.schemas??{}))B.types.push(cD(D,Z,X,"schemas",{isNonNull:!1},P));for(let[Z,X]of Object.entries(D?.paths??{})){if("$ref"in X)continue;for(let[q,J]of Object.entries(X)){if(!J)continue;if("$ref"in J){console.warn(`TODO: Handle $ref in methodValue for ${Z}`);continue}let Y=ob(D,Z,q,J,F,P);if(!Y)continue;B.operations.push(Y)}}return B},M7=(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},E7=(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("-","_")},K7=(D,F)=>{if(D.isInput||D.isScalar)return D;let P=E7(D,{isInput:!0}),B={...D,name:P,isInput:!0,isObject:!1,inputFields:D.fields.map((Z)=>({...Z,location:"$",type:K7(Z.type,F)})),fields:[],possibleTypes:D.possibleTypes.map((Z)=>K7(Z,F))};return B.ofType=B,F.addType(B),B},cD=(D,F,P,B,Z,X)=>{if("ofType"in P)return P;if("$ref"in P){let H=P.$ref.split("/");H.shift();let U=H.shift(),W=H.shift(),O=H.shift(),z=D[U]?.[W]?.[O];if(z)return cD(D,uD([Z.operationResponseType?"":F,O]),z,W,{isNonNull:Z.isNonNull},X);throw new Error(`Reference ${P.$ref} not found`)}if("schema"in P)return cD(D,F,P.schema,"schemas",{isNonNull:Z.isNonNull,operationResponseType:Z.operationResponseType},X);let q=P;if("properties"in q&&!("type"in q))q.type="object";let J={name:Z.operationResponseType?F:Z.isNonNull?`${F}!`:F,description:q.description,isObject:"type"in q&&(q.type==="object"||JSON.stringify(q.type)===JSON.stringify(["object","null"])),fields:[],isUnion:!!q.oneOf||!!q.anyOf||!!q.allOf,possibleTypes:[],isList:0,isNonNull:Z.isNonNull,isScalar:!1,scalarTSType:void 0,isEnum:{schemas:!!q.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=E7(J);if(X.hasType(Y))return X.getType(Y);else J.name=Y,X.addType(J);if(J.ofType=J,J.isEnum){let H=q;for(let U of[...H.enum??[]])J.enumValues.push({name:String(U),description:q.description,type:cD(D,F,q,B,{isNonNull:Z.isNonNull},X)})}if(J.isInput){let H=q;if("content"in H){let U=H;for(let[W,O]of Object.entries(U.content??{})){X.removeType(Y);let z=K7(cD(D,F,O,B,{isNonNull:U.required??!1},X),X);if(z.fields.length===1&&!!z.fields[0].type.scalarTSType)return X.removeType(Y),J=z.fields[0].type,X.addType(J),J;else return X.removeType(Y),J=z,X.addType(J),J}}if("schema"in H&&"in"in H){let U=H;if(U.schema)J.inputFields.push(M8(D,U.name,U.schema,B,U.in,{isNonNull:U.required??!1},X));else J.inputFields.push(M8(D,U.name,cD(D,uD([F,"Input",U.name]),U.content["application/json"],B,{isNonNull:U.required??!1},X),B,U.in,{isNonNull:U.required??!1},X))}if("schema"in H&&!("in"in H)){let U=H;if(U.schema)J.inputFields.push(M8(D,uD([F,"Header"]),U.schema,B,"header",{isNonNull:U.required??!1},X));else J.inputFields.push(M8(D,uD([F,"Header"]),cD(D,uD([F,"Input","Header"]),U.content["application/json"],B,{isNonNull:U.required??!1},X),B,"header",{isNonNull:U.required??!1},X))}}if(J.isObject){let H=q,U=H.properties;for(let[z,I]of Object.entries(U??{})){let R="$ref"in I;X.removeType(uD([F,z]));let $=cD(D,uD([F,z]),I,B,{isNonNull:H.required?.includes(z)??!1},X),K=nb(D,z,$,{isNonNull:H.required?.includes(z)??!1},X);J.fields.push(K)}let W,O=H.additionalProperties;if(O===!0||JSON.stringify(O)===JSON.stringify({}))W=M7(uD([F,"AdditionalProperties"]),"Additional properties","Record<string, any>",X),J.fields.push({name:uD([F,"Any"]),description:"Additional properties",type:W});else if(typeof O==="object")if("type"in O&&O.type==="string")W=M7(uD([F,"AdditionalProperties"]),"Additional properties","Record<string, string>",X),J.fields.push({name:uD([F,"AdditionalProperties"]),description:"Additional properties",type:W});else{let z="$ref"in O,I=cD(D,z?"":uD([F,"AdditionalProperties"]),O,B,{isNonNull:!1},X),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((K)=>"[]").join(""):"");if(I.isScalar&&I.scalarTSType)W=I,J.fields.push({name:uD([F,R]),description:"Additional properties",type:W});else W=M7(uD([F,R]),"Additional properties",`Record<string, ${$}>`,X),J.fields.push({name:uD([F,R]),description:"Additional properties",type:W})}if(W&&J.fields.length===1)return X.removeType(Y),X.addType(W),W}if(J.isUnion){let H=0;for(let U of[...q.oneOf??[],...q.anyOf??[],...q.allOf??[]]){H++,X.removeType(Y);let W="$ref"in U;J.possibleTypes.push(cD(D,W?"":`${F}Subtype${H}`,U,B,{isNonNull:Z.isNonNull},X))}if(J.possibleTypes.length===1){let U=J.possibleTypes[0];J={...U,isList:J.isList,ofType:U,name:J.name}}}if(J.isScalar){let H=q;if(H.type==="array"){let U="$ref"in q.items;if(!U||q.items.$ref!==`#/components/${B}/${Y}`)X.removeType(Y);J.isList++;let W=cD(D,U?"":F,q.items,"schemas",{isNonNull:Z.isNonNull},X),O=J.isList+=W?.isList??0;J={...W,isList:O,name:`[${W.name}]`},J.ofType=J}else if(typeof H.type==="string"){X.removeType(Y),J.name=uD([H.type]);let U={double:"Float",float:"Float",integer:"Int",long:"Int",int32:"Int",int64:"Int",number:"Float",byte:"Int"};if(H.format&&H.format.toLowerCase()in U)J.name=U[H.format.toLowerCase()]}else if(Array.isArray(H))X.removeType(Y),J.name=uD(H);if(Z.isNonNull&&!J.name.endsWith("!"))X.removeType(Y),J.name=`${J.name}!`;J.name=E7(J)}return X.addType(J),J},M8=(D,F,P,B,Z,X,q)=>{return{name:F,description:P.description,location:Z,type:cD(D,F,P,B,X,q)}},nb=(D,F,P,B,Z)=>{return{name:F,description:P.description,type:cD(D,F,P,"schemas",B,Z)}},ib={get:"Get",post:"Create",put:"Update",delete:"Delete",patch:"Patch",options:"Options",head:"Head",trace:"Trace"},ob=(D,F,P,B,Z,X)=>{if(!B.responses){console.warn("Operation has no responses!");return}let q=Object.entries(B.responses).filter(([W,O])=>W.toString().startsWith("2")).sort(([W,O],[z,I])=>+W-+z),J=q.length>0?q[0][1]:B.responses.default,Y=Object.entries(B.responses).filter(([W,O])=>W.toString().startsWith("4")||W.toString().startsWith("5"));if(!J){console.warn("Operation has no success response!",B);return}let H=B.operationId?.replaceAll(".","_").replaceAll("/","_").replaceAll("-","_")??uD([ib[P],...F.split("/").flatMap((W)=>[W.includes("{")?"By":"",W.replace(/{([^}]+)}/g,"$1")].filter((O)=>O.length>0))],""),U={name:H,description:B.description,path:F,method:P,args:[],type:cD(D,H,"content"in J?J.content["application/json"]??Object.entries(J.content).find(([W,O])=>O)?.[1]:J,"responses",{isNonNull:!1,operationResponseType:!0},X)};for(let W of B.parameters??[]){let O="$ref"in W?W.$ref.split("/").pop():W.name,z="in"in W?W.in:W.$ref.split("/").at(-2),I={parameters:"query",requestBodies:"body",headers:"header",cookie:"cookie",path:"path",query:"query",header:"header"}[z];U.args.push(M8(D,O,W,"parameters",I,{isNonNull:"$ref"in W?!1:W.required??!1},X))}if(B.requestBody){let W=B.requestBody,O=M8(D,`${H}RequestBody`,W,"requestBodies","body",{isNonNull:W.required??!1},X);O.name="$",U.args.push(O)}return U};class iH{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 oH{Codegen;constructor(D){this.Codegen=D}async generate({schema:D,options:F,authConfig:P}){let B=new iH,Z=sb(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 X=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),X].join(`
4435
+ `)}}var Z0={GraphQL:{default:g0},OpenAPI:{default:B0}};import AW from"fs";import l6 from"fs";import e7 from"path";var E8=(D)=>{process.stdout.write("\x1Bc"),process.stdout.write(`
4447
4436
  _____ _
4448
4437
  / ___| (_)
4449
4438
  \\ \`--. __ _ _ __ ___ __ _ _ __ _ _ _ _ __ ___
4450
4439
  \\\`--. \\ / _\` || '_ \` _ \\ / _\` || '__|| || | | || '_ \` _ \\
4451
4440
  /\\__/ /| (_| || | | | | || (_| || | | || |_| || | | | | |
4452
4441
  \\____/ \\__,_||_| |_| |_| \\__,_||_| |_| \\__,_||_| |_| |_|
4453
- `),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(`
4454
- `).flatMap((P)=>uW.default(P,F,{trim:!1,hard:!0}).split(`
4442
+ `),console.log(" "),console.log(`v${G1.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 L3=(D)=>D.name==="up"||D.name==="k"||D.ctrl&&D.name==="p",A7=(D)=>D.name==="down"||D.name==="j"||D.ctrl&&D.name==="n";var V3=(D)=>D.name==="backspace",tH=(D)=>"123456789".includes(D.name),K8=(D)=>D.name==="enter"||D.name==="return";class C7 extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(D){super();this.cause=D?.cause}}class L7 extends Error{name="CancelPromptError";message="Prompt was canceled"}class V7 extends Error{name="ExitPromptError"}class w7 extends Error{name="HookError"}class x6 extends Error{name="ValidationError"}import{AsyncResource as YU}from"node:async_hooks";import{AsyncLocalStorage as tb,AsyncResource as eb}from"node:async_hooks";var eH=new tb;function DS(D){return{rl:D,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function DU(D,F){let P=DS(D);return eH.run(P,()=>{function B(Z){P.handleChange=()=>{P.index=0,Z()},P.handleChange()}return F(B)})}function v0(){let D=eH.getStore();if(!D)throw new w7("[Inquirer] Hook functions can only be called from within a prompt");return D}function j7(){return v0().rl}function b7(D){let F=(...P)=>{let B=v0(),Z=!1,X=B.handleChange;B.handleChange=()=>{Z=!0};let q=D(...P);if(Z)X();return B.handleChange=X,q};return eb.bind(F)}function A8(D){let F=v0(),{index:P}=F,B={get(){return F.hooks[P]},set(X){F.hooks[P]=X},initialized:P in F.hooks},Z=D(B);return F.index++,Z}function FU(){v0().handleChange()}var y0={queue(D){let F=v0(),{index:P}=F;F.hooksEffect.push(()=>{F.hooksCleanup[P]?.();let B=D(j7());if(B!=null&&typeof B!=="function")throw new x6("useEffect return value must be a cleanup function or nothing.");F.hooksCleanup[P]=B})},run(){let D=v0();b7(()=>{D.hooksEffect.forEach((F)=>{F()}),D.hooksEffect.length=0})()},clearAll(){let D=v0();D.hooksCleanup.forEach((F)=>{F?.()}),D.hooksEffect.length=0,D.hooksCleanup.length=0}};function _D(D){return A8((F)=>{let P=(Z)=>{if(F.get()!==Z)F.set(Z),FU()};if(F.initialized)return[F.get(),P];let B=typeof D==="function"?D():D;return F.set(B),[B,P]})}function m0(D,F){A8((P)=>{let B=P.get();if(!Array.isArray(B)||F.some((X,q)=>!Object.is(X,B[q])))y0.queue(D);P.set(F)})}var B2=RD(w3(),1);import N2 from"node:process";function BS(){if(N2.platform!=="win32")return N2.env.TERM!=="linux";return Boolean(N2.env.WT_SESSION)||Boolean(N2.env.TERMINUS_SUBLIME)||N2.env.ConEmuTask==="{cmd::Cmder}"||N2.env.TERM_PROGRAM==="Terminus-Sublime"||N2.env.TERM_PROGRAM==="vscode"||N2.env.TERM==="xterm-256color"||N2.env.TERM==="alacritty"||N2.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var BU={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:"╱"},ZU={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:"⅒"},ZS={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"},XS={...BU,...ZU},qS={...BU,...ZS},JS=BS(),YS=JS?XS:qS,C8=YS,Dc=Object.entries(ZU);var XU={prefix:{idle:B2.default.blue("?"),done:B2.default.green(C8.tick)},spinner:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"].map((D)=>B2.default.yellow(D))},style:{answer:B2.default.cyan,message:B2.default.bold,error:(D)=>B2.default.red(`> ${D}`),defaultAnswer:(D)=>B2.default.dim(`(${D})`),help:B2.default.dim,highlight:B2.default.cyan,key:(D)=>B2.default.cyan(B2.default.bold(`<${D}>`))}};function qU(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 JU(...D){let F={};for(let P of D)for(let[B,Z]of Object.entries(P)){let X=F[B];F[B]=qU(X)&&qU(Z)?JU(X,Z):Z}return F}function c2(...D){let F=[XU,...D.filter((P)=>P!=null)];return JU(...F)}function l0({status:D="idle",theme:F}){let[P,B]=_D(!1),[Z,X]=_D(0),{prefix:q,spinner:J}=c2(F);if(m0(()=>{if(D==="loading"){let H,U=-1,W=setTimeout(YU.bind(()=>{B(!0),H=setInterval(YU.bind(()=>{U=U+1,X(U%J.frames.length)}),J.interval)}),300);return()=>{clearTimeout(W),clearInterval(H)}}else B(!1)},[D]),P)return J.frames[Z];return typeof q==="string"?q:q[D==="loading"?"idle":D]}function f6(D,F){return A8((P)=>{let B=P.get();if(!B||B.dependencies.length!==F.length||B.dependencies.some((Z,X)=>Z!==F[X])){let Z=D();return P.set({value:Z,dependencies:F}),Z}return B.value})}function X0(D){return _D({current:D})[0]}function c0(D){let F=X0(D);F.current=D,m0((P)=>{let B=!1,Z=b7((X,q)=>{if(B)return;F.current(q,P)});return P.input.on("keypress",Z),()=>{B=!0,P.input.removeListener("keypress",Z)}},[])}var fU=RD(UU(),1),hU=RD(xU(),1);function v6(D,F){return D.split(`
4443
+ `).flatMap((P)=>hU.default(P,F,{trim:!1,hard:!0}).split(`
4455
4444
  `).map((B)=>B.trimEnd())).join(`
4456
- `)}function g3(){return NW.default({defaultWidth:80,output:v7().output})}function BN(D,F){return l1(D,F).split(`
4457
- `)}function ZN(D,F){let P=F.length,B=(D%P+P)%P;return[...F.slice(B),...F.slice(0,B)]}function _W({items:D,width:F,renderItem:P,active:B,position:Z,pageSize:q}){let X=D.map((I,R)=>({item:I,index:R,isActive:R===B})),J=ZN(B-Z,X).slice(0,q),Y=(I)=>BN(P(J[I]),F),H=Array.from({length:q}),W=Y(Z).slice(0,q),U=Z+W.length<=q?Z:q-W.length;H.splice(U,W.length,...W);let O=U+W.length,z=Z+1;while(O<q&&z<J.length){for(let I of Y(z))if(H[O++]=I,O>=q)break;z++}O=U-1,z=Z-1;while(O>=0&&z>=0){for(let I of Y(z).reverse())if(H[O--]=I,O<0)break;z--}return H.filter((I)=>typeof I==="string")}function kW({active:D,pageSize:F,total:P}){let B=Math.floor(F/2);if(P<=F||D<B)return D;if(D>=P-B)return D+F-P;return B}function xW({active:D,lastActive:F,total:P,pageSize:B,pointer:Z}){if(P<=B)return D;if(F<D&&D-F<B)return Math.min(Math.floor(B/2),Z+D-F);return Z}function FF({items:D,active:F,renderItem:P,pageSize:B,loop:Z=!0}){let q=Y2({position:0,lastActive:0}),X=Z?xW({active:F,lastActive:q.current.lastActive,total:D.length,pageSize:B,pointer:q.current.position}):kW({active:F,total:D.length,pageSize:B});return q.current.position=X,q.current.lastActive=F,_W({items:D,width:g3(),renderItem:P,active:F,position:X,pageSize:B}).join(`
4458
- `)}import*as iW from"node:readline";class PF extends Promise{cancel=()=>{}}var oW=UD(vW(),1);var d2=[];d2.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32")d2.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")d2.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var y3=(D)=>!!D&&typeof D==="object"&&typeof D.removeListener==="function"&&typeof D.emit==="function"&&typeof D.reallyExit==="function"&&typeof D.listeners==="function"&&typeof D.kill==="function"&&typeof D.pid==="number"&&typeof D.on==="function",BF=Symbol.for("signal-exit emitter"),ZF=globalThis,XN=Object.defineProperty.bind(Object);class gW{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(ZF[BF])return ZF[BF];XN(ZF,BF,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(D,F){this.listeners[D].push(F)}removeListener(D,F){let P=this.listeners[D],B=P.indexOf(F);if(B===-1)return;if(B===0&&P.length===1)P.length=0;else P.splice(B,1)}emit(D,F,P){if(this.emitted[D])return!1;this.emitted[D]=!0;let B=!1;for(let Z of this.listeners[D])B=Z(F,P)===!0||B;if(D==="exit")B=this.emit("afterExit",F,P)||B;return B}}class XF{}var JN=(D)=>{return{onExit(F,P){return D.onExit(F,P)},load(){return D.load()},unload(){return D.unload()}}};class yW extends XF{onExit(){return()=>{}}load(){}unload(){}}class mW extends XF{#P=qF.platform==="win32"?"SIGINT":"SIGHUP";#F=new gW;#D;#q;#X;#Z={};#B=!1;constructor(D){super();this.#D=D,this.#Z={};for(let F of d2)this.#Z[F]=()=>{let P=this.#D.listeners(F),{count:B}=this.#F,Z=D;if(typeof Z.__signal_exit_emitter__==="object"&&typeof Z.__signal_exit_emitter__.count==="number")B+=Z.__signal_exit_emitter__.count;if(P.length===B){this.unload();let q=this.#F.emit("exit",null,F),X=F==="SIGHUP"?this.#P:F;if(!q)D.kill(D.pid,X)}};this.#X=D.reallyExit,this.#q=D.emit}onExit(D,F){if(!y3(this.#D))return()=>{};if(this.#B===!1)this.load();let P=F?.alwaysLast?"afterExit":"exit";return this.#F.on(P,D),()=>{if(this.#F.removeListener(P,D),this.#F.listeners.exit.length===0&&this.#F.listeners.afterExit.length===0)this.unload()}}load(){if(this.#B)return;this.#B=!0,this.#F.count+=1;for(let D of d2)try{let F=this.#Z[D];if(F)this.#D.on(D,F)}catch(F){}this.#D.emit=(D,...F)=>{return this.#Y(D,...F)},this.#D.reallyExit=(D)=>{return this.#J(D)}}unload(){if(!this.#B)return;this.#B=!1,d2.forEach((D)=>{let F=this.#Z[D];if(!F)throw new Error("Listener not defined for signal: "+D);try{this.#D.removeListener(D,F)}catch(P){}}),this.#D.emit=this.#q,this.#D.reallyExit=this.#X,this.#F.count-=1}#J(D){if(!y3(this.#D))return 0;return this.#D.exitCode=D||0,this.#F.emit("exit",this.#D.exitCode,null),this.#X.call(this.#D,this.#D.exitCode)}#Y(D,...F){let P=this.#q;if(D==="exit"&&y3(this.#D)){if(typeof F[0]==="number")this.#D.exitCode=F[0];let B=P.call(this.#D,D,...F);return this.#F.emit("exit",this.#D.exitCode,null),B}else return P.call(this.#D,D,...F)}}var qF=globalThis.process,{onExit:lW,load:vp,unload:gp}=JN(y3(qF)?new mW(qF):new yW);var nW=UD(rW(),1),H2=UD(YF(),1);var sW=(D)=>D.split(`
4459
- `).length,WN=(D)=>D.split(`
4460
- `).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+=`
4461
- `;let X=D+(F?`
4462
- `+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):"",`
4463
- `].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=`
4464
- ${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?`
4465
- ${R.description}`:"";return`${[J,$,E].filter(Boolean).join(" ")}
4466
- ${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:`
4467
- 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(`
4468
- ${r2.default.green("Done! Alias added to 'tsconfig.json'.")}
4469
- ${r2.default.green("Go ahead and import the generated file in your project:")}
4470
-
4471
- ${cD.import("import")} ${cD.name(B)} ${cD.from("from")} ${cD.string(`"${B}"`)};
4472
- `),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.replaceAll("[AUTH_HEADER_NAME]",B.authHeaderName??"Authorization").replaceAll("[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.replaceAll("[ENDPOINT]",D))}catch(X){console.error("Error: ",X.message),console.error("Failed to generate code");return}if(!await Z5(Z,q))console.log(`
4473
- ${LF.default.green(`Done! Generated file saved at ${q}.`)}
4474
- ${LF.default.green("Go ahead and import the generated file in your project:")}
4475
-
4476
- ${cD.import("import")} ${cD.name(Z.replace(".ts",""))} ${cD.from("from")} ${cD.string(`"./${yO.relative(process.cwd(),q.replace(".ts",""))}"`)};
4477
- `);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.replaceAll("[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.replaceAll("[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(`
4478
- ${vP.default.green(`Done! Generated file saved at ${q}.`)}
4479
- ${vP.default.green("Go ahead and import the generated file in your project:")}
4480
-
4481
- ${cD.import("import")} ${cD.name(Z.replace(".ts",""))} ${cD.from("from")} ${cD.string(`"./${eQ.relative(process.cwd(),q.replace(".ts",""))}"`)};
4482
- `);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);
4445
+ `)}function T3(){return fU.default({defaultWidth:80,output:j7().output})}function TS(D,F){return v6(D,F).split(`
4446
+ `)}function uS(D,F){let P=F.length,B=(D%P+P)%P;return[...F.slice(B),...F.slice(0,B)]}function gU({items:D,width:F,renderItem:P,active:B,position:Z,pageSize:X}){let q=D.map((I,R)=>({item:I,index:R,isActive:R===B})),J=uS(B-Z,q).slice(0,X),Y=(I)=>J[I]==null?[]:TS(P(J[I]),F),H=Array.from({length:X}),U=Y(Z).slice(0,X),W=Z+U.length<=X?Z:X-U.length;H.splice(W,U.length,...U);let O=W+U.length,z=Z+1;while(O<X&&z<J.length){for(let I of Y(z))if(H[O++]=I,O>=X)break;z++}O=W-1,z=Z-1;while(O>=0&&z>=0){for(let I of Y(z).reverse())if(H[O--]=I,O<0)break;z--}return H.filter((I)=>typeof I==="string")}function vU({active:D,pageSize:F,total:P}){let B=Math.floor(F/2);if(P<=F||D<B)return D;if(D>=P-B)return D+F-P;return B}function yU({active:D,lastActive:F,total:P,pageSize:B,pointer:Z}){if(P<=B)return D;if(F<D&&D-F<B)return Math.min(Math.floor(B/2),Z+D-F);return Z}function h7({items:D,active:F,renderItem:P,pageSize:B,loop:Z=!0}){let X=X0({position:0,lastActive:0}),q=Z?yU({active:F,lastActive:X.current.lastActive,total:D.length,pageSize:B,pointer:X.current.position}):vU({active:F,total:D.length,pageSize:B});return X.current.position=q,X.current.lastActive=F,gU({items:D,width:T3(),renderItem:P,active:F,position:q,pageSize:B}).join(`
4447
+ `)}var eU=RD(cU(),1);import*as tU from"node:readline";import{AsyncResource as gS}from"node:async_hooks";var d0=[];d0.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32")d0.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")d0.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var u3=(D)=>!!D&&typeof D==="object"&&typeof D.removeListener==="function"&&typeof D.emit==="function"&&typeof D.reallyExit==="function"&&typeof D.listeners==="function"&&typeof D.kill==="function"&&typeof D.pid==="number"&&typeof D.on==="function",g7=Symbol.for("signal-exit emitter"),v7=globalThis,_S=Object.defineProperty.bind(Object);class dU{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(v7[g7])return v7[g7];_S(v7,g7,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(D,F){this.listeners[D].push(F)}removeListener(D,F){let P=this.listeners[D],B=P.indexOf(F);if(B===-1)return;if(B===0&&P.length===1)P.length=0;else P.splice(B,1)}emit(D,F,P){if(this.emitted[D])return!1;this.emitted[D]=!0;let B=!1;for(let Z of this.listeners[D])B=Z(F,P)===!0||B;if(D==="exit")B=this.emit("afterExit",F,P)||B;return B}}class m7{}var kS=(D)=>{return{onExit(F,P){return D.onExit(F,P)},load(){return D.load()},unload(){return D.unload()}}};class pU extends m7{onExit(){return()=>{}}load(){}unload(){}}class rU extends m7{#P=y7.platform==="win32"?"SIGINT":"SIGHUP";#F=new dU;#D;#X;#q;#Z={};#B=!1;constructor(D){super();this.#D=D,this.#Z={};for(let F of d0)this.#Z[F]=()=>{let P=this.#D.listeners(F),{count:B}=this.#F,Z=D;if(typeof Z.__signal_exit_emitter__==="object"&&typeof Z.__signal_exit_emitter__.count==="number")B+=Z.__signal_exit_emitter__.count;if(P.length===B){this.unload();let X=this.#F.emit("exit",null,F),q=F==="SIGHUP"?this.#P:F;if(!X)D.kill(D.pid,q)}};this.#q=D.reallyExit,this.#X=D.emit}onExit(D,F){if(!u3(this.#D))return()=>{};if(this.#B===!1)this.load();let P=F?.alwaysLast?"afterExit":"exit";return this.#F.on(P,D),()=>{if(this.#F.removeListener(P,D),this.#F.listeners.exit.length===0&&this.#F.listeners.afterExit.length===0)this.unload()}}load(){if(this.#B)return;this.#B=!0,this.#F.count+=1;for(let D of d0)try{let F=this.#Z[D];if(F)this.#D.on(D,F)}catch(F){}this.#D.emit=(D,...F)=>{return this.#Y(D,...F)},this.#D.reallyExit=(D)=>{return this.#J(D)}}unload(){if(!this.#B)return;this.#B=!1,d0.forEach((D)=>{let F=this.#Z[D];if(!F)throw new Error("Listener not defined for signal: "+D);try{this.#D.removeListener(D,F)}catch(P){}}),this.#D.emit=this.#X,this.#D.reallyExit=this.#q,this.#F.count-=1}#J(D){if(!u3(this.#D))return 0;return this.#D.exitCode=D||0,this.#F.emit("exit",this.#D.exitCode,null),this.#q.call(this.#D,this.#D.exitCode)}#Y(D,...F){let P=this.#X;if(D==="exit"&&u3(this.#D)){if(typeof F[0]==="number")this.#D.exitCode=F[0];let B=P.call(this.#D,D,...F);return this.#F.emit("exit",this.#D.exitCode,null),B}else return P.call(this.#D,D,...F)}}var y7=globalThis.process,{onExit:aU,load:dc,unload:pc}=kS(u3(y7)?new rU(y7):new pU);var oU=RD(j3(),1),q0=RD(c7(),1);var nU=(D)=>D.split(`
4448
+ `).length,hS=(D)=>D.split(`
4449
+ `).pop()??"";function iU(D){return D>0?q0.default.cursorDown(D):""}class _3{rl;height=0;extraLinesUnderPrompt=0;cursorPos;constructor(D){this.rl=D,this.rl=D,this.cursorPos=D.getCursorPos()}write(D){this.rl.output.unmute(),this.rl.output.write(D),this.rl.output.mute()}render(D,F=""){let P=hS(D),B=oU.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 X=T3();if(D=v6(D,X),F=v6(F,X),B.length%X===0)D+=`
4450
+ `;let q=D+(F?`
4451
+ `+F:""),Y=Math.floor(B.length/X)-this.cursorPos.rows+(F?nU(F):0);if(Y>0)q+=q0.default.cursorUp(Y);q+=q0.default.cursorTo(this.cursorPos.cols),this.write(iU(this.extraLinesUnderPrompt)+q0.default.eraseLines(this.height)+q),this.extraLinesUnderPrompt=Y,this.height=nU(q)}checkCursorPos(){let D=this.rl.getCursorPos();if(D.cols!==this.cursorPos.cols)this.write(q0.default.cursorTo(D.cols)),this.cursorPos=D}done({clearContent:D}){this.rl.setPrompt("");let F=iU(this.extraLinesUnderPrompt);F+=D?q0.default.eraseLines(this.height):`
4452
+ `,F+=q0.default.cursorShow,this.write(F),this.rl.close()}}class d7 extends Promise{static withResolver(){let D,F;return{promise:new Promise((B,Z)=>{D=B,F=Z}),resolve:D,reject:F}}}function p0(D){return(P,B={})=>{let{input:Z=process.stdin,signal:X}=B,q=new Set,J=new eU.default;J.pipe(B.output??process.stdout);let Y=tU.createInterface({terminal:!0,input:Z,output:J}),H=new _3(Y),{promise:U,resolve:W,reject:O}=d7.withResolver(),z=()=>O(new L7);if(X){let R=()=>O(new C7({cause:X.reason}));if(X.aborted)return R(),Object.assign(U,{cancel:z});X.addEventListener("abort",R),q.add(()=>X.removeEventListener("abort",R))}q.add(aU((R,$)=>{O(new V7(`User force closed the prompt with ${R} ${$}`))}));let I=()=>H.checkCursorPos();return Y.input.on("keypress",I),q.add(()=>Y.input.removeListener("keypress",I)),DU(Y,(R)=>{let $=gS.bind(()=>y0.clearAll());return Y.on("close",$),q.add(()=>Y.removeListener("close",$)),R(()=>{try{let K=D(P,(S)=>{setImmediate(()=>W(S))}),[j,A]=typeof K==="string"?[K]:K;H.render(j,A),y0.run()}catch(K){O(K)}}),Object.assign(U.then((K)=>{return y0.clearAll(),K},(K)=>{throw y0.clearAll(),K}).finally(()=>{q.forEach((K)=>K()),H.done({clearContent:Boolean(B?.clearPromptOnDone)}),J.end()}).then(()=>U),{cancel:z})})}}var DW=RD(w3(),1);class r0{separator=DW.default.dim(Array.from({length:15}).join(C8.line));type="separator";constructor(D){if(D)this.separator=D}static isSeparator(D){return Boolean(D&&typeof D==="object"&&"type"in D&&D.type==="separator")}}var k3=p0((D,F)=>{let{transformer:P=(O)=>O?"yes":"no"}=D,[B,Z]=_D("pending"),[X,q]=_D(""),J=c2(D.theme),Y=l0({theme:J});c0((O,z)=>{if(K8(O)){let I=D.default!==!1;if(/^(y|yes)/i.test(X))I=!0;else if(/^(n|no)/i.test(X))I=!1;q(P(I)),Z("done"),F(I)}else q(z.line)});let H=X,U="";if(B==="done")H=J.style.answer(X);else U=` ${J.style.defaultAnswer(D.default===!1?"y/N":"Y/n")}`;let W=J.style.message(D.message);return`${Y} ${W}${U} ${H}`});var d2=p0((D,F)=>{let{required:P,validate:B=()=>!0}=D,Z=c2(D.theme),[X,q]=_D("pending"),[J="",Y]=_D(D.default),[H,U]=_D(),[W,O]=_D(""),I=l0({isLoading:X==="loading",theme:Z});c0(async(A,S)=>{if(X!=="pending")return;if(K8(A)){let C=W||J;q("loading");let u=P&&!C?"You must provide a value":await B(C);if(u===!0)O(C),q("done"),F(C);else S.write(W),U(u||"You must provide a valid value"),q("pending")}else if(V3(A)&&!W)Y(void 0);else if(A.name==="tab"&&!W)Y(void 0),S.clearLine(0),S.write(J),O(J);else O(S.line),U(void 0)});let R=Z.style.message(D.message),$=W;if(typeof D.transformer==="function")$=D.transformer(W,{isFinal:X==="done"});else if(X==="done")$=Z.style.answer(W);let K;if(J&&X!=="done"&&!W)K=Z.style.defaultAnswer(J);let j="";if(H)j=Z.style.error(H);return[[I,R,K,$].filter((A)=>A!==void 0).join(" "),j]});var p7=RD(w3(),1);var FW=RD(c7(),1);var vS={icon:{cursor:C8.pointer},style:{disabled:(D)=>p7.default.dim(`- ${D}`),description:(D)=>p7.default.cyan(D)},helpMode:"auto"};function b8(D){return!r0.isSeparator(D)&&!D.disabled}function yS(D){return D.map((F)=>{if(r0.isSeparator(F))return F;if(typeof F==="string")return{value:F,name:F,short:F,disabled:!1};let P=F.name??String(F.value);return{value:F.value,name:P,description:F.description,short:F.short??P,disabled:F.disabled??!1}})}var J0=p0((D,F)=>{let{loop:P=!0,pageSize:B=7}=D,Z=X0(!0),X=c2(vS,D.theme),q=l0({theme:X}),[J,Y]=_D("pending"),H=X0(),U=f6(()=>yS(D.choices),[D.choices]),W=f6(()=>{let C=U.findIndex(b8),u=U.findLastIndex(b8);if(C<0)throw new x6("[select prompt] No selectable choices. All choices are disabled.");return{first:C,last:u}},[U]),O=f6(()=>{if(!("default"in D))return-1;return U.findIndex((C)=>b8(C)&&C.value===D.default)},[D.default,U]),[z,I]=_D(O===-1?W.first:O),R=U[z];c0((C,u)=>{if(clearTimeout(H.current),K8(C))Y("done"),F(R.value);else if(L3(C)||A7(C)){if(u.clearLine(0),P||L3(C)&&z!==W.first||A7(C)&&z!==W.last){let m=L3(C)?-1:1,w=z;do w=(w+m+U.length)%U.length;while(!b8(U[w]));I(w)}}else if(tH(C)){u.clearLine(0);let m=Number(C.name)-1,w=U[m];if(w!=null&&b8(w))I(m)}else if(V3(C))u.clearLine(0);else{let m=u.line.toLowerCase(),w=U.findIndex((M)=>{if(r0.isSeparator(M)||!b8(M))return!1;return M.name.toLowerCase().startsWith(m)});if(w>=0)I(w);H.current=setTimeout(()=>{u.clearLine(0)},700)}}),m0(()=>()=>{clearTimeout(H.current)},[]);let $=X.style.message(D.message),K="",j="";if(X.helpMode==="always"||X.helpMode==="auto"&&Z.current)if(Z.current=!1,U.length>B)j=`
4453
+ ${X.style.help("(Use arrow keys to reveal more choices)")}`;else K=X.style.help("(Use arrow keys)");let A=h7({items:U,active:z,renderItem({item:C,isActive:u}){if(r0.isSeparator(C))return` ${C.separator}`;if(C.disabled){let M=typeof C.disabled==="string"?C.disabled:"(disabled)";return X.style.disabled(`${C.name} ${M}`)}let m=u?X.style.highlight:(M)=>M,w=u?X.icon.cursor:" ";return m(`${w} ${C.name}`)},pageSize:B,loop:P});if(J==="done")return`${q} ${$} ${X.style.answer(R.short)}`;let S=R.description?`
4454
+ ${X.style.description(R.description)}`:"";return`${[q,$,K].filter(Boolean).join(" ")}
4455
+ ${A}${j}${S}${FW.default.cursorHide}`});var a0=RD(v3(),1);var FT=/^(?:( )+|\t+)/;function KW(D,F){let P=new Map,B=0,Z,X;for(let q of D.split(/\n/g)){if(!q)continue;let J,Y,H,U,W,O=q.match(FT);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,U=0;let z=J-B;if(B=J,z===0)H=0,U=1;else{let I=z>0?z:-z;X=PT(Y,I)}W=P.get(X),W=W===void 0?[1,0]:[W[0]+H,W[1]+U],P.set(X,W)}}return P}function PT(D,F){return(D==="space"?"s":"t")+String(F)}function BT(D){let P=D[0]==="s"?"space":"tab",B=Number(D.slice(1));return{type:P,amount:B}}function ZT(D){let F,P=0,B=0;for(let[Z,[X,q]]of D)if(X>P||X===P&&q>B)P=X,B=q,F=Z;return F}function XT(D,F){return(D==="space"?" ":"\t").repeat(F)}function t7(D){if(typeof D!=="string")throw new TypeError("Expected a string");let F=KW(D,!0);if(F.size===0)F=KW(D,!1);let P=ZT(F),B,Z=0,X="";if(P!==void 0)({type:B,amount:Z}=BT(P)),X=XT(B,Z);return{amount:Z,type:B,indent:X}}var X2=async(D,F,P,B=!1)=>{let Z=/<([^>]+)>|\[([^\]]+)\]/g,X,q=[];while(X=Z.exec(F))q.push(X[1]??X[2]);if(q.length>0){if(!B)E8(D),B=!1;let J=F.replace(Z,(Y)=>`\x1B[32m${Y}\x1B[0m`);if(await k3({message:`${P} contains placeholders: ${J} . Do you want to replace them with actual values?`})){let Y=[];for(let H of q){let U=await d2({message:`Enter value for placeholder ${H}:`});Y.push(U)}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},y3=async(D)=>{let F="";while(!F){F=await d2({message:D});try{new URL(F)}catch(P){console.log("Invalid URL"),F=""}}return F},m3=async()=>{let D=await J0({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 d2({message:"Enter the header name:"});let F="";while(!F)F=await d2({message:"Enter the header value:"});return[D,F]},l3=async(D=["."])=>{while(!0){let F=l6.readdirSync(D.join("/"),{withFileTypes:!0}),P=await J0({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 d2({message:"Enter the new directory name:"});l6.mkdirSync(e7.resolve(...D,B)),D.push(B);break}if(P===".")break;if(P===".."){D.pop(),D.pop();continue}}return D},c3=async(D)=>{let F=await d2({message:D,default:"sdk.ts"});if(!F.endsWith(".ts"))F+=".ts";return F},dD={import:a0.default.rgb(185,126,180),name:a0.default.rgb(156,220,254),from:a0.default.rgb(185,126,180),string:a0.default.rgb(206,145,120)},d3=async(D,F)=>{let P=!1;if(l6.existsSync("tsconfig.json")&&await k3({message:`
4456
+ File 'tsconfig.json' detected. Do you want to add an import alias for the generated file?`,default:!1})){console.log(" ");let B=await d2({message:"Enter the alias name:",default:D.replace(".ts","")}),Z=l6.readFileSync("tsconfig.json","utf-8");Z=Z.replace(/\/\/.*/g,"");let X=t7(Z).indent||" ",q=JSON.parse(Z),J=q.compilerOptions?.baseUrl||".",Y=e7.relative(e7.resolve(process.cwd(),J),F);if(!q.compilerOptions)q.compilerOptions={};if(!q.compilerOptions.paths)q.compilerOptions.paths={};q.compilerOptions.paths[B]=[Y],l6.writeFileSync("tsconfig.json",JSON.stringify(q,null,X)),console.log(`
4457
+ ${a0.default.green("Done! Alias added to 'tsconfig.json'.")}
4458
+ ${a0.default.green("Go ahead and import the generated file in your project:")}
4459
+
4460
+ ${dD.import("import")} ${dD.name(B)} ${dD.from("from")} ${dD.string(`"${B}"`)};
4461
+ `),P=!0}return P};var DF=async(D,F,P,B={})=>{let Z=!0;if(D.url=await X2("GraphQL",D.url,"The URL",Z),D.headers?.length)for(let Y of D.headers){let H=await X2("GraphQL",Y,"The header",Z);D.headers[D.headers.indexOf(Y)]=H}if(B.endpoint)B.endpoint=await X2("GraphQL",B.endpoint,"The endpoint",Z);if(B.authHeaderName)B.authHeaderName=await X2("GraphQL",B.authHeaderName,"The auth header name",Z);P=await X2("GraphQL",P,"The output file",Z);let X;try{X=await h0(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 N6.Generator(Z0.GraphQL[F]).generate({schema:X,options:{},authConfig:D.headers?{headerName:D.headers.length===1?D.headers[0].split("=")[0]:"Authorization"}:void 0});if(!P.endsWith(".ts"))P+=".ts";AW.mkdirSync(P.split("/").slice(0,-1).join("/"),{recursive:!0}),AW.writeFileSync(P,J.replaceAll("[AUTH_HEADER_NAME]",B.authHeaderName??"Authorization").replaceAll("[ENDPOINT]",B.endpoint??D.url))};var FF=RD(v3(),1);import qT from"fs";import CW from"path";var LW=async()=>{E8("GraphQL");let D=await y3("Enter the graphql endpoint url:"),F,P;try{F=await h0(D)}catch(q){if(q.response?.status===401||q.response?.status===403){let[J,Y]=await m3();try{F=await h0(D,[`${J}=${Y}`]),P=J}catch(H){console.error("Error: ",H.message);return}}else{console.error("Error: ",q.message),console.error("Failed to introspect schema");return}}if(!F){console.error("Failed to introspect schema");return}let B=await l3(["."]),Z=await c3("Enter the output filename:"),X=CW.resolve(...B,Z);try{let J=await new N6.Generator(Z0.GraphQL.default).generate({schema:F,options:{},authConfig:P?{headerName:P}:void 0});qT.writeFileSync(X,J.replaceAll("[ENDPOINT]",D))}catch(q){console.error("Error: ",q.message),console.error("Failed to generate code");return}if(!await d3(Z,X))console.log(`
4462
+ ${FF.default.green(`Done! Generated file saved at ${X}.`)}
4463
+ ${FF.default.green("Go ahead and import the generated file in your project:")}
4464
+
4465
+ ${dD.import("import")} ${dD.name(Z.replace(".ts",""))} ${dD.from("from")} ${dD.string(`"./${CW.relative(process.cwd(),X.replace(".ts",""))}"`)};
4466
+ `);console.log(" "),console.log("Please star the repo if you liked it! https://github.com/liontariai/samarium"),console.log(" ")};var kz=RD(_z(),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 kz.default.parse(B)}}import Yv from"fs";var zP=async(D,F)=>{let P=await F8(D.url,D.headers);Yv.writeFileSync(F,JSON.stringify(P,null,2))};import xz from"fs";var QP=async(D,F,P,B={})=>{let Z=!0;if(D.url=await X2("OpenAPI",D.url,"The URL",Z),D.headers?.length)for(let Y of D.headers){let H=await X2("OpenAPI",Y,"The header",Z);D.headers[D.headers.indexOf(Y)]=H}if(B.endpoint)B.endpoint=await X2("OpenAPI",B.endpoint,"The endpoint",Z);if(B.authHeaderName)B.authHeaderName=await X2("OpenAPI",B.authHeaderName,"The auth header name",Z);P=await X2("OpenAPI",P,"The output file",Z);let X;try{X=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 k6.Generator(Z0.OpenAPI[F]).generate({schema:X,options:{},authConfig:D.headers?{headerName:D.headers.length===1?D.headers[0].split("=")[0]:"Authorization"}:void 0});if(!P.endsWith(".ts"))P+=".ts";xz.mkdirSync(P.split("/").slice(0,-1).join("/"),{recursive:!0}),xz.writeFileSync(P,J.replaceAll("[ENDPOINT]",B.endpoint??X.servers?.[0]?.url??D.url))};var GP=RD(v3(),1);import Hv from"fs";import fz from"path";var hz=async()=>{E8("OpenAPI");let D=await y3("Enter the url to the OpenAPI schema json or yaml file:"),F,P;try{F=await F8(D)}catch(q){if(q.response?.status===401||q.response?.status===403){let[J,Y]=await m3();try{F=await F8(D,[`${J}=${Y}`]),P=J}catch(H){console.error("Error: ",H.message);return}}else{console.error("Error: ",q.message),console.error("Failed to introspect schema");return}}if(!F){console.error("Failed to introspect schema");return}let B=await l3(["."]),Z=await c3("Enter the output filename:"),X=fz.resolve(...B,Z);try{let J=await new k6.Generator(Z0.OpenAPI.default).generate({schema:F,options:{},authConfig:P?{headerName:P}:void 0});Hv.writeFileSync(X,J.replaceAll("[ENDPOINT]",F.servers?.[0]?.url??D))}catch(q){console.error("Error: ",q.message),console.error("Failed to generate code");return}if(!await d3(Z,X))console.log(`
4467
+ ${GP.default.green(`Done! Generated file saved at ${X}.`)}
4468
+ ${GP.default.green("Go ahead and import the generated file in your project:")}
4469
+
4470
+ ${dD.import("import")} ${dD.name(Z.replace(".ts",""))} ${dD.from("from")} ${dD.string(`"./${fz.relative(process.cwd(),X.replace(".ts",""))}"`)};
4471
+ `);console.log(" "),console.log("Please star the repo if you liked it! https://github.com/liontariai/samarium"),console.log(" ")};function m8(D,F){return F.concat([D])}var a2=new gP;a2.name("samarium").description("CLI Description").version(G1.version);a2.command("ui",{isDefault:!0}).description("Start the assistant UI").action(async()=>{if(await J0({message:"Do you want to compile GraphQL or OpenAPI?",choices:[{name:"GraphQL",value:"GraphQL",description:"GraphQL"},{name:"OpenAPI",value:"OpenAPI",description:"OpenAPI"}]})==="GraphQL")await LW().catch((F)=>{});else await hz().catch((F)=>{})});a2.command("introspect <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",m8,[]).description("This command is deprecated. Use the explicit command instead: introspect-gql or introspect-openapi").action(async(D,F,{header:P}={})=>{if(await J0({message:"Do you want to introspect GraphQL or OpenAPI?",choices:[{name:"GraphQL",value:"GraphQL",description:"GraphQL"},{name:"OpenAPI",value:"OpenAPI",description:"OpenAPI"}]})==="GraphQL")await I7({url:D,headers:P},F);else await zP({url:D,headers:P},F)});a2.command("introspect-gql <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",m8,[]).description("Introspect a GraphQL schema").action(async(D,F,{header:P}={})=>{await I7({url:D,headers:P},F)});a2.command("introspect-openapi <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",m8,[]).description("Introspect an OpenAPI schema").action(async(D,F,{header:P}={})=>{await zP({url:D,headers:P},F)});a2.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'",m8,[]).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 J0({message:"Do you want to compile GraphQL or OpenAPI?",choices:[{name:"GraphQL",value:"GraphQL",description:"GraphQL"},{name:"OpenAPI",value:"OpenAPI",description:"OpenAPI"}]})==="GraphQL")await DF({url:D,headers:P},"default",F,{endpoint:B,authHeaderName:Z});else await QP({url:D,headers:P},"default",F,{endpoint:B,authHeaderName:Z})});a2.command("generate-gql <url> <output>").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",m8,[]).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 DF({url:D,headers:P},"default",F,{endpoint:B,authHeaderName:Z})});a2.command("generate-openapi <url> <output>").alias("generate-oas").option("-h, --header [header]","Header to send with the request, e.g. 'Authorization=Bearer 1234'",m8,[]).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 QP({url:D,headers:P},"default",F,{endpoint:B,authHeaderName:Z})});a2.parse(process.argv);