yourails_sep_academy_web 0.85.2 → 0.87.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js/893.96d0e2c2120d1708e598.js +1 -0
- package/dist/js/bundle.min.js +27 -24
- package/dist/js/bundle.min.js.gz +0 -0
- package/dist/js/index.75ec74bc5046815be804.js +2 -0
- package/dist/js/{index.2371326b68ac71917646.js.LICENSE.txt → index.75ec74bc5046815be804.js.LICENSE.txt} +20 -4
- package/dist/manifest.json +2 -2
- package/package.json +5 -3
- package/dist/js/893.3816b24948f72c12a999.js +0 -1
- package/dist/js/index.2371326b68ac71917646.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkyourails_sep_academy_web=self.webpackChunkyourails_sep_academy_web||[]).push([[893],{893:(e,n,t)=>{t.r(n),t.d(n,{BREAK:()=>Yn.sP,BreakingChangeType:()=>Io,DEFAULT_DEPRECATION_REASON:()=>tn,DangerousChangeType:()=>_o,DirectiveLocation:()=>Ce.H,ExecutableDefinitionsRule:()=>Wn,FieldsOnCorrectTypeRule:()=>et,FragmentsOnCompositeTypesRule:()=>nt,GRAPHQL_MAX_INT:()=>Pe,GRAPHQL_MIN_INT:()=>Ge,GraphQLBoolean:()=>He,GraphQLDeprecatedDirective:()=>rn,GraphQLDirective:()=>We,GraphQLEnumType:()=>Ae,GraphQLError:()=>c.eO,GraphQLFloat:()=>Qe,GraphQLID:()=>Ye,GraphQLIncludeDirective:()=>en,GraphQLInputObjectType:()=>Fe,GraphQLInt:()=>Be,GraphQLInterfaceType:()=>De,GraphQLList:()=>ae,GraphQLNonNull:()=>ue,GraphQLObjectType:()=>Ne,GraphQLOneOfDirective:()=>sn,GraphQLScalarType:()=>Te,GraphQLSchema:()=>$n,GraphQLSkipDirective:()=>nn,GraphQLSpecifiedByDirective:()=>on,GraphQLString:()=>qe,GraphQLUnionType:()=>$e,Kind:()=>S.b,KnownArgumentNamesRule:()=>tt,KnownDirectivesRule:()=>ot,KnownFragmentNamesRule:()=>it,KnownTypeNamesRule:()=>st,Lexer:()=>Wr.J,Location:()=>l.aZ,LoneAnonymousOperationRule:()=>ut,LoneSchemaDefinitionRule:()=>ct,MaxIntrospectionDepthRule:()=>pt,NoDeprecatedCustomRule:()=>oo,NoFragmentCyclesRule:()=>dt,NoSchemaIntrospectionCustomRule:()=>io,NoUndefinedVariablesRule:()=>ft,NoUnusedFragmentsRule:()=>mt,NoUnusedVariablesRule:()=>yt,OperationTypeNode:()=>l.cE,OverlappingFieldsCanBeMergedRule:()=>Et,PossibleFragmentSpreadsRule:()=>Rt,PossibleTypeExtensionsRule:()=>At,ProvidedRequiredArgumentsRule:()=>Vt,ScalarLeafsRule:()=>kt,SchemaMetaFieldDef:()=>bn,SingleFieldSubscriptionsRule:()=>Wt,Source:()=>zr.k,Token:()=>l.ou,TokenKind:()=>eo.Y,TypeInfo:()=>Xn,TypeKind:()=>Nn,TypeMetaFieldDef:()=>On,TypeNameMetaFieldDef:()=>In,UniqueArgumentDefinitionNamesRule:()=>nr,UniqueArgumentNamesRule:()=>tr,UniqueDirectiveNamesRule:()=>rr,UniqueDirectivesPerLocationRule:()=>or,UniqueEnumValueNamesRule:()=>ir,UniqueFieldDefinitionNamesRule:()=>sr,UniqueFragmentNamesRule:()=>ur,UniqueInputFieldNamesRule:()=>cr,UniqueOperationNamesRule:()=>lr,UniqueOperationTypesRule:()=>pr,UniqueTypeNamesRule:()=>dr,UniqueVariableNamesRule:()=>fr,ValidationContext:()=>Ir,ValuesOfCorrectTypeRule:()=>mr,VariablesAreInputTypesRule:()=>hr,VariablesInAllowedPositionRule:()=>vr,__Directive:()=>mn,__DirectiveLocation:()=>yn,__EnumValue:()=>Tn,__Field:()=>vn,__InputValue:()=>En,__Schema:()=>fn,__Type:()=>hn,__TypeKind:()=>gn,assertAbstractType:()=>se,assertCompositeType:()=>oe,assertDirective:()=>Ze,assertEnumType:()=>Q,assertEnumValueName:()=>L,assertInputObjectType:()=>H,assertInputType:()=>Z,assertInterfaceType:()=>C,assertLeafType:()=>te,assertListType:()=>J,assertName:()=>A,assertNamedType:()=>ye,assertNonNullType:()=>z,assertNullableType:()=>de,assertObjectType:()=>j,assertOutputType:()=>ee,assertScalarType:()=>k,assertSchema:()=>Dn,assertType:()=>F,assertUnionType:()=>G,assertValidName:()=>qo,assertValidSchema:()=>Ln,assertWrappingType:()=>le,astFromValue:()=>pn,buildASTSchema:()=>Eo,buildClientSchema:()=>po,buildSchema:()=>To,coerceInputValue:()=>Ct,concatAST:()=>Co,createSourceEventStream:()=>ro,defaultFieldResolver:()=>qr,defaultTypeResolver:()=>Qr,doTypesOverlap:()=>Me,execute:()=>Ar,executeSync:()=>Lr,extendSchema:()=>fo,findBreakingChanges:()=>Yo,findDangerousChanges:()=>Jo,formatError:()=>c.Wk,getArgumentValues:()=>Ht,getDirectiveValues:()=>Yt,getEnterLeaveForKind:()=>Yn.XO,getIntrospectionQuery:()=>ao,getLocation:()=>Kr.g,getNamedType:()=>he,getNullableType:()=>fe,getOperationAST:()=>uo,getOperationRootType:()=>co,getVariableValues:()=>qt,getVisitFn:()=>Yn.UY,graphql:()=>Yr,graphqlSync:()=>Jr,introspectionFromSchema:()=>lo,introspectionTypes:()=>_n,isAbstractType:()=>ie,isCompositeType:()=>re,isConstValueNode:()=>Zn.TZ,isDefinitionNode:()=>Zn.MD,isDirective:()=>Ke,isEnumType:()=>B,isEqualType:()=>xe,isExecutableDefinitionNode:()=>Zn._m,isInputObjectType:()=>q,isInputType:()=>K,isInterfaceType:()=>M,isIntrospectionType:()=>wn,isLeafType:()=>ne,isListType:()=>Y,isNamedType:()=>me,isNonNullType:()=>X,isNullableType:()=>pe,isObjectType:()=>x,isOutputType:()=>W,isRequiredArgument:()=>Se,isRequiredInputField:()=>ke,isScalarType:()=>U,isSchema:()=>Sn,isSelectionNode:()=>Zn.VK,isSpecifiedDirective:()=>un,isSpecifiedScalarType:()=>Xe,isType:()=>V,isTypeDefinitionNode:()=>Zn.a6,isTypeExtensionNode:()=>Zn.i7,isTypeNode:()=>Zn.dI,isTypeSubTypeOf:()=>je,isTypeSystemDefinitionNode:()=>Zn.xu,isTypeSystemExtensionNode:()=>Zn.fT,isUnionType:()=>P,isValidNameError:()=>Ho,isValueNode:()=>Zn.aR,isWrappingType:()=>ce,lexicographicSortSchema:()=>No,locatedError:()=>$r,parse:()=>a.qg,parseConstValue:()=>a.u8,parseType:()=>a.Mb,parseValue:()=>a.$x,print:()=>D.y,printError:()=>c.yJ,printIntrospectionSchema:()=>Do,printLocation:()=>Zr.V,printSchema:()=>So,printSourceLocation:()=>Zr.C,printType:()=>Lo,recommendedRules:()=>Tr,resolveObjMapThunk:()=>Ee,resolveReadonlyArrayThunk:()=>ve,responsePathAsArray:()=>Mt,separateOperations:()=>Po,specifiedDirectives:()=>an,specifiedRules:()=>Nr,specifiedScalarTypes:()=>Je,stripIgnoredCharacters:()=>Qo,subscribe:()=>to,syntaxError:()=>so.I,typeFromAST:()=>Jn,validate:()=>_r,validateSchema:()=>An,valueFromAST:()=>Bt,valueFromASTUntyped:()=>$,version:()=>r,versionInfo:()=>o,visit:()=>Yn.YR,visitInParallel:()=>Yn.oP,visitWithTypeInfo:()=>Kn});const r="16.10.0",o=Object.freeze({major:16,minor:10,patch:0,preReleaseTag:null});var i=t(6286);function s(e){return"function"==typeof(null==e?void 0:e.then)}var a=t(9004),u=t(129),c=t(4786),l=t(475);const p=5;function d(e,n){const[t,r]=n?[e,n]:[void 0,e];let o=" Did you mean ";t&&(o+=t+" ");const i=r.map((e=>`"${e}"`));switch(i.length){case 0:return"";case 1:return o+i[0]+"?";case 2:return o+i[0]+" or "+i[1]+"?"}const s=i.slice(0,p),a=s.pop();return o+s.join(", ")+", or "+a+"?"}function f(e){return e}var m=t(4621),y=t(2475);function h(e,n){const t=Object.create(null);for(const r of e)t[n(r)]=r;return t}function v(e,n,t){const r=Object.create(null);for(const o of e)r[n(o)]=t(o);return r}function E(e,n){const t=Object.create(null);for(const r of Object.keys(e))t[r]=n(e[r],r);return t}function T(e,n){let t=0,r=0;for(;t<e.length&&r<n.length;){let o=e.charCodeAt(t),i=n.charCodeAt(r);if(b(o)&&b(i)){let s=0;do{++t,s=10*s+o-N,o=e.charCodeAt(t)}while(b(o)&&s>0);let a=0;do{++r,a=10*a+i-N,i=n.charCodeAt(r)}while(b(i)&&a>0);if(s<a)return-1;if(s>a)return 1}else{if(o<i)return-1;if(o>i)return 1;++t,++r}}return e.length-n.length}const N=48,g=57;function b(e){return!isNaN(e)&&N<=e&&e<=g}function O(e,n){const t=Object.create(null),r=new I(e),o=Math.floor(.4*e.length)+1;for(const e of n){const n=r.measure(e,o);void 0!==n&&(t[e]=n)}return Object.keys(t).sort(((e,n)=>{const r=t[e]-t[n];return 0!==r?r:T(e,n)}))}class I{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=_(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,n){if(this._input===e)return 0;const t=e.toLowerCase();if(this._inputLowerCase===t)return 1;let r=_(t),o=this._inputArray;if(r.length<o.length){const e=r;r=o,o=e}const i=r.length,s=o.length;if(i-s>n)return;const a=this._rows;for(let e=0;e<=s;e++)a[0][e]=e;for(let e=1;e<=i;e++){const t=a[(e-1)%3],i=a[e%3];let u=i[0]=e;for(let n=1;n<=s;n++){const s=r[e-1]===o[n-1]?0:1;let c=Math.min(t[n]+1,i[n-1]+1,t[n-1]+s);if(e>1&&n>1&&r[e-1]===o[n-2]&&r[e-2]===o[n-1]){const t=a[(e-2)%3][n-2];c=Math.min(c,t+1)}c<u&&(u=c),i[n]=c}if(u>n)return}const u=a[i%3][s];return u<=n?u:void 0}}function _(e){const n=e.length,t=new Array(n);for(let r=0;r<n;++r)t[r]=e.charCodeAt(r);return t}function w(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const n=Object.create(null);for(const[t,r]of Object.entries(e))n[t]=r;return n}var S=t(3298),D=t(6547);function $(e,n){switch(e.kind){case S.b.NULL:return null;case S.b.INT:return parseInt(e.value,10);case S.b.FLOAT:return parseFloat(e.value);case S.b.STRING:case S.b.ENUM:case S.b.BOOLEAN:return e.value;case S.b.LIST:return e.values.map((e=>$(e,n)));case S.b.OBJECT:return v(e.fields,(e=>e.name.value),(e=>$(e.value,n)));case S.b.VARIABLE:return null==n?void 0:n[e.name.value]}}var R=t(9646);function A(e){if(null!=e||(0,i.U)(!1,"Must provide name."),"string"==typeof e||(0,i.U)(!1,"Expected name to be a string."),0===e.length)throw new c.eO("Expected name to be a non-empty string.");for(let n=1;n<e.length;++n)if(!(0,R.xr)(e.charCodeAt(n)))throw new c.eO(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,R.un)(e.charCodeAt(0)))throw new c.eO(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function L(e){if("true"===e||"false"===e||"null"===e)throw new c.eO(`Enum values cannot be named: ${e}`);return A(e)}function V(e){return U(e)||x(e)||M(e)||P(e)||B(e)||q(e)||Y(e)||X(e)}function F(e){if(!V(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL type.`);return e}function U(e){return(0,m.h)(e,Te)}function k(e){if(!U(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Scalar type.`);return e}function x(e){return(0,m.h)(e,Ne)}function j(e){if(!x(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Object type.`);return e}function M(e){return(0,m.h)(e,De)}function C(e){if(!M(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Interface type.`);return e}function P(e){return(0,m.h)(e,$e)}function G(e){if(!P(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Union type.`);return e}function B(e){return(0,m.h)(e,Ae)}function Q(e){if(!B(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Enum type.`);return e}function q(e){return(0,m.h)(e,Fe)}function H(e){if(!q(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Input Object type.`);return e}function Y(e){return(0,m.h)(e,ae)}function J(e){if(!Y(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL List type.`);return e}function X(e){return(0,m.h)(e,ue)}function z(e){if(!X(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL Non-Null type.`);return e}function K(e){return U(e)||B(e)||q(e)||ce(e)&&K(e.ofType)}function Z(e){if(!K(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL input type.`);return e}function W(e){return U(e)||x(e)||M(e)||P(e)||B(e)||ce(e)&&W(e.ofType)}function ee(e){if(!W(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL output type.`);return e}function ne(e){return U(e)||B(e)}function te(e){if(!ne(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL leaf type.`);return e}function re(e){return x(e)||M(e)||P(e)}function oe(e){if(!re(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL composite type.`);return e}function ie(e){return M(e)||P(e)}function se(e){if(!ie(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL abstract type.`);return e}class ae{constructor(e){V(e)||(0,i.U)(!1,`Expected ${(0,u.N)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class ue{constructor(e){pe(e)||(0,i.U)(!1,`Expected ${(0,u.N)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function ce(e){return Y(e)||X(e)}function le(e){if(!ce(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL wrapping type.`);return e}function pe(e){return V(e)&&!X(e)}function de(e){if(!pe(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL nullable type.`);return e}function fe(e){if(e)return X(e)?e.ofType:e}function me(e){return U(e)||x(e)||M(e)||P(e)||B(e)||q(e)}function ye(e){if(!me(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL named type.`);return e}function he(e){if(e){let n=e;for(;ce(n);)n=n.ofType;return n}}function ve(e){return"function"==typeof e?e():e}function Ee(e){return"function"==typeof e?e():e}class Te{constructor(e){var n,t,r,o;const s=null!==(n=e.parseValue)&&void 0!==n?n:f;this.name=A(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(t=e.serialize)&&void 0!==t?t:f,this.parseValue=s,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,n)=>s($(e,n)),this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(o=e.extensionASTNodes)&&void 0!==o?o:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,i.U)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,u.N)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,i.U)(!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.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,i.U)(!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()}}class Ne{constructor(e){var n;this.name=A(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._fields=()=>be(e),this._interfaces=()=>ge(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,i.U)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,u.N)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:_e(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ge(e){var n;const t=ve(null!==(n=e.interfaces)&&void 0!==n?n:[]);return Array.isArray(t)||(0,i.U)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),t}function be(e){const n=Ee(e.fields);return Ie(n)||(0,i.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),E(n,((n,t)=>{var r;Ie(n)||(0,i.U)(!1,`${e.name}.${t} field config must be an object.`),null==n.resolve||"function"==typeof n.resolve||(0,i.U)(!1,`${e.name}.${t} field resolver must be a function if provided, but got: ${(0,u.N)(n.resolve)}.`);const o=null!==(r=n.args)&&void 0!==r?r:{};return Ie(o)||(0,i.U)(!1,`${e.name}.${t} args must be an object with argument names as keys.`),{name:A(t),description:n.description,type:n.type,args:Oe(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:w(n.extensions),astNode:n.astNode}}))}function Oe(e){return Object.entries(e).map((([e,n])=>({name:A(e),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:w(n.extensions),astNode:n.astNode})))}function Ie(e){return(0,y.Z)(e)&&!Array.isArray(e)}function _e(e){return E(e,(e=>({description:e.description,type:e.type,args:we(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function we(e){return v(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Se(e){return X(e.type)&&void 0===e.defaultValue}class De{constructor(e){var n;this.name=A(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._fields=be.bind(void 0,e),this._interfaces=ge.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,i.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,u.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:_e(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class $e{constructor(e){var n;this.name=A(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._types=Re.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,i.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,u.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),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()}}function Re(e){const n=ve(e.types);return Array.isArray(n)||(0,i.U)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),n}class Ae{constructor(e){var n;this.name=A(e.name),this.description=e.description,this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._values="function"==typeof e.values?e.values:Ve(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=Ve(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=h(this.getValues(),(e=>e.name))),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map((e=>[e.value,e]))));const n=this._valueLookup.get(e);if(void 0===n)throw new c.eO(`Enum "${this.name}" cannot represent value: ${(0,u.N)(e)}`);return n.name}parseValue(e){if("string"!=typeof e){const n=(0,u.N)(e);throw new c.eO(`Enum "${this.name}" cannot represent non-string value: ${n}.`+Le(this,n))}const n=this.getValue(e);if(null==n)throw new c.eO(`Value "${e}" does not exist in "${this.name}" enum.`+Le(this,e));return n.value}parseLiteral(e,n){if(e.kind!==S.b.ENUM){const n=(0,D.y)(e);throw new c.eO(`Enum "${this.name}" cannot represent non-enum value: ${n}.`+Le(this,n),{nodes:e})}const t=this.getValue(e.value);if(null==t){const n=(0,D.y)(e);throw new c.eO(`Value "${n}" does not exist in "${this.name}" enum.`+Le(this,n),{nodes:e})}return t.value}toConfig(){const e=v(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Le(e,n){return d("the enum value",O(n,e.getValues().map((e=>e.name))))}function Ve(e,n){return Ie(n)||(0,i.U)(!1,`${e} values must be an object with value names as keys.`),Object.entries(n).map((([n,t])=>(Ie(t)||(0,i.U)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,u.N)(t)}.`),{name:L(n),description:t.description,value:void 0!==t.value?t.value:n,deprecationReason:t.deprecationReason,extensions:w(t.extensions),astNode:t.astNode})))}class Fe{constructor(e){var n,t;this.name=A(e.name),this.description=e.description,this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this.isOneOf=null!==(t=e.isOneOf)&&void 0!==t&&t,this._fields=Ue.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=E(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function Ue(e){const n=Ee(e.fields);return Ie(n)||(0,i.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),E(n,((n,t)=>(!("resolve"in n)||(0,i.U)(!1,`${e.name}.${t} field has a resolve property, but Input Types cannot define resolvers.`),{name:A(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:w(n.extensions),astNode:n.astNode})))}function ke(e){return X(e.type)&&void 0===e.defaultValue}function xe(e,n){return e===n||(X(e)&&X(n)||!(!Y(e)||!Y(n)))&&xe(e.ofType,n.ofType)}function je(e,n,t){return n===t||(X(t)?!!X(n)&&je(e,n.ofType,t.ofType):X(n)?je(e,n.ofType,t):Y(t)?!!Y(n)&&je(e,n.ofType,t.ofType):!Y(n)&&(ie(t)&&(M(n)||x(n))&&e.isSubType(t,n)))}function Me(e,n,t){return n===t||(ie(n)?ie(t)?e.getPossibleTypes(n).some((n=>e.isSubType(t,n))):e.isSubType(n,t):!!ie(t)&&e.isSubType(t,n))}var Ce=t(2369);const Pe=2147483647,Ge=-2147483648,Be=new Te({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(e){const n=ze(e);if("boolean"==typeof n)return n?1:0;let t=n;if("string"==typeof n&&""!==n&&(t=Number(n)),"number"!=typeof t||!Number.isInteger(t))throw new c.eO(`Int cannot represent non-integer value: ${(0,u.N)(n)}`);if(t>Pe||t<Ge)throw new c.eO("Int cannot represent non 32-bit signed integer value: "+(0,u.N)(n));return t},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new c.eO(`Int cannot represent non-integer value: ${(0,u.N)(e)}`);if(e>Pe||e<Ge)throw new c.eO(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==S.b.INT)throw new c.eO(`Int cannot represent non-integer value: ${(0,D.y)(e)}`,{nodes:e});const n=parseInt(e.value,10);if(n>Pe||n<Ge)throw new c.eO(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return n}}),Qe=new Te({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(e){const n=ze(e);if("boolean"==typeof n)return n?1:0;let t=n;if("string"==typeof n&&""!==n&&(t=Number(n)),"number"!=typeof t||!Number.isFinite(t))throw new c.eO(`Float cannot represent non numeric value: ${(0,u.N)(n)}`);return t},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new c.eO(`Float cannot represent non numeric value: ${(0,u.N)(e)}`);return e},parseLiteral(e){if(e.kind!==S.b.FLOAT&&e.kind!==S.b.INT)throw new c.eO(`Float cannot represent non numeric value: ${(0,D.y)(e)}`,e);return parseFloat(e.value)}}),qe=new Te({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(e){const n=ze(e);if("string"==typeof n)return n;if("boolean"==typeof n)return n?"true":"false";if("number"==typeof n&&Number.isFinite(n))return n.toString();throw new c.eO(`String cannot represent value: ${(0,u.N)(e)}`)},parseValue(e){if("string"!=typeof e)throw new c.eO(`String cannot represent a non string value: ${(0,u.N)(e)}`);return e},parseLiteral(e){if(e.kind!==S.b.STRING)throw new c.eO(`String cannot represent a non string value: ${(0,D.y)(e)}`,{nodes:e});return e.value}}),He=new Te({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const n=ze(e);if("boolean"==typeof n)return n;if(Number.isFinite(n))return 0!==n;throw new c.eO(`Boolean cannot represent a non boolean value: ${(0,u.N)(n)}`)},parseValue(e){if("boolean"!=typeof e)throw new c.eO(`Boolean cannot represent a non boolean value: ${(0,u.N)(e)}`);return e},parseLiteral(e){if(e.kind!==S.b.BOOLEAN)throw new c.eO(`Boolean cannot represent a non boolean value: ${(0,D.y)(e)}`,{nodes:e});return e.value}}),Ye=new Te({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(e){const n=ze(e);if("string"==typeof n)return n;if(Number.isInteger(n))return String(n);throw new c.eO(`ID cannot represent value: ${(0,u.N)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new c.eO(`ID cannot represent value: ${(0,u.N)(e)}`)},parseLiteral(e){if(e.kind!==S.b.STRING&&e.kind!==S.b.INT)throw new c.eO("ID cannot represent a non-string and non-integer value: "+(0,D.y)(e),{nodes:e});return e.value}}),Je=Object.freeze([qe,Be,Qe,He,Ye]);function Xe(e){return Je.some((({name:n})=>e.name===n))}function ze(e){if((0,y.Z)(e)){if("function"==typeof e.valueOf){const n=e.valueOf();if(!(0,y.Z)(n))return n}if("function"==typeof e.toJSON)return e.toJSON()}return e}function Ke(e){return(0,m.h)(e,We)}function Ze(e){if(!Ke(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL directive.`);return e}class We{constructor(e){var n,t;this.name=A(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(n=e.isRepeatable)&&void 0!==n&&n,this.extensions=w(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,i.U)(!1,`@${e.name} locations must be an Array.`);const r=null!==(t=e.args)&&void 0!==t?t:{};(0,y.Z)(r)&&!Array.isArray(r)||(0,i.U)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=Oe(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:we(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const en=new We({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ce.H.FIELD,Ce.H.FRAGMENT_SPREAD,Ce.H.INLINE_FRAGMENT],args:{if:{type:new ue(He),description:"Included when true."}}}),nn=new We({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ce.H.FIELD,Ce.H.FRAGMENT_SPREAD,Ce.H.INLINE_FRAGMENT],args:{if:{type:new ue(He),description:"Skipped when true."}}}),tn="No longer supported",rn=new We({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ce.H.FIELD_DEFINITION,Ce.H.ARGUMENT_DEFINITION,Ce.H.INPUT_FIELD_DEFINITION,Ce.H.ENUM_VALUE],args:{reason:{type:qe,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:tn}}}),on=new We({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ce.H.SCALAR],args:{url:{type:new ue(qe),description:"The URL that specifies the behavior of this scalar."}}}),sn=new We({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ce.H.INPUT_OBJECT],args:{}}),an=Object.freeze([en,nn,rn,on,sn]);function un(e){return an.some((({name:n})=>n===e.name))}var cn=t(1181);function ln(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function pn(e,n){if(X(n)){const t=pn(e,n.ofType);return(null==t?void 0:t.kind)===S.b.NULL?null:t}if(null===e)return{kind:S.b.NULL};if(void 0===e)return null;if(Y(n)){const t=n.ofType;if(ln(e)){const n=[];for(const r of e){const e=pn(r,t);null!=e&&n.push(e)}return{kind:S.b.LIST,values:n}}return pn(e,t)}if(q(n)){if(!(0,y.Z)(e))return null;const t=[];for(const r of Object.values(n.getFields())){const n=pn(e[r.name],r.type);n&&t.push({kind:S.b.OBJECT_FIELD,name:{kind:S.b.NAME,value:r.name},value:n})}return{kind:S.b.OBJECT,fields:t}}if(ne(n)){const t=n.serialize(e);if(null==t)return null;if("boolean"==typeof t)return{kind:S.b.BOOLEAN,value:t};if("number"==typeof t&&Number.isFinite(t)){const e=String(t);return dn.test(e)?{kind:S.b.INT,value:e}:{kind:S.b.FLOAT,value:e}}if("string"==typeof t)return B(n)?{kind:S.b.ENUM,value:t}:n===Ye&&dn.test(t)?{kind:S.b.INT,value:t}:{kind:S.b.STRING,value:t};throw new TypeError(`Cannot convert value to AST: ${(0,u.N)(t)}.`)}(0,cn.V)(!1,"Unexpected input type: "+(0,u.N)(n))}const dn=/^-?(?:0|[1-9][0-9]*)$/,fn=new Ne({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:qe,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ue(new ae(new ue(hn))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new ue(hn),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:hn,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:hn,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ue(new ae(new ue(mn))),resolve:e=>e.getDirectives()}})}),mn=new Ne({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn 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 ue(qe),resolve:e=>e.name},description:{type:qe,resolve:e=>e.description},isRepeatable:{type:new ue(He),resolve:e=>e.isRepeatable},locations:{type:new ue(new ae(new ue(yn))),resolve:e=>e.locations},args:{type:new ue(new ae(new ue(En))),args:{includeDeprecated:{type:He,defaultValue:!1}},resolve:(e,{includeDeprecated:n})=>n?e.args:e.args.filter((e=>null==e.deprecationReason))}})}),yn=new Ae({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:Ce.H.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Ce.H.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Ce.H.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Ce.H.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Ce.H.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Ce.H.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Ce.H.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Ce.H.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Ce.H.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Ce.H.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Ce.H.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Ce.H.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Ce.H.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Ce.H.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Ce.H.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Ce.H.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Ce.H.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Ce.H.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Ce.H.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),hn=new Ne({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 ue(gn),resolve:e=>U(e)?Nn.SCALAR:x(e)?Nn.OBJECT:M(e)?Nn.INTERFACE:P(e)?Nn.UNION:B(e)?Nn.ENUM:q(e)?Nn.INPUT_OBJECT:Y(e)?Nn.LIST:X(e)?Nn.NON_NULL:void(0,cn.V)(!1,`Unexpected type: "${(0,u.N)(e)}".`)},name:{type:qe,resolve:e=>"name"in e?e.name:void 0},description:{type:qe,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:qe,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ae(new ue(vn)),args:{includeDeprecated:{type:He,defaultValue:!1}},resolve(e,{includeDeprecated:n}){if(x(e)||M(e)){const t=Object.values(e.getFields());return n?t:t.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new ae(new ue(hn)),resolve(e){if(x(e)||M(e))return e.getInterfaces()}},possibleTypes:{type:new ae(new ue(hn)),resolve(e,n,t,{schema:r}){if(ie(e))return r.getPossibleTypes(e)}},enumValues:{type:new ae(new ue(Tn)),args:{includeDeprecated:{type:He,defaultValue:!1}},resolve(e,{includeDeprecated:n}){if(B(e)){const t=e.getValues();return n?t:t.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new ae(new ue(En)),args:{includeDeprecated:{type:He,defaultValue:!1}},resolve(e,{includeDeprecated:n}){if(q(e)){const t=Object.values(e.getFields());return n?t:t.filter((e=>null==e.deprecationReason))}}},ofType:{type:hn,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:He,resolve:e=>{if(q(e))return e.isOneOf}}})}),vn=new Ne({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 ue(qe),resolve:e=>e.name},description:{type:qe,resolve:e=>e.description},args:{type:new ue(new ae(new ue(En))),args:{includeDeprecated:{type:He,defaultValue:!1}},resolve:(e,{includeDeprecated:n})=>n?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new ue(hn),resolve:e=>e.type},isDeprecated:{type:new ue(He),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:qe,resolve:e=>e.deprecationReason}})}),En=new Ne({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 ue(qe),resolve:e=>e.name},description:{type:qe,resolve:e=>e.description},type:{type:new ue(hn),resolve:e=>e.type},defaultValue:{type:qe,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:n,defaultValue:t}=e,r=pn(t,n);return r?(0,D.y)(r):null}},isDeprecated:{type:new ue(He),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:qe,resolve:e=>e.deprecationReason}})}),Tn=new Ne({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 ue(qe),resolve:e=>e.name},description:{type:qe,resolve:e=>e.description},isDeprecated:{type:new ue(He),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:qe,resolve:e=>e.deprecationReason}})});var Nn;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(Nn||(Nn={}));const gn=new Ae({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Nn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Nn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Nn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Nn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Nn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Nn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Nn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Nn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),bn={name:"__schema",type:new ue(fn),description:"Access the current type schema of this server.",args:[],resolve:(e,n,t,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},On={name:"__type",type:hn,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ue(qe),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:n},t,{schema:r})=>r.getType(n),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},In={name:"__typename",type:new ue(qe),description:"The name of the current Object type at runtime.",args:[],resolve:(e,n,t,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},_n=Object.freeze([fn,mn,yn,hn,vn,En,Tn,gn]);function wn(e){return _n.some((({name:n})=>e.name===n))}function Sn(e){return(0,m.h)(e,$n)}function Dn(e){if(!Sn(e))throw new Error(`Expected ${(0,u.N)(e)} to be a GraphQL schema.`);return e}class $n{constructor(e){var n,t;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,y.Z)(e)||(0,i.U)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,i.U)(!1,`"types" must be Array if provided but got: ${(0,u.N)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,i.U)(!1,`"directives" must be Array if provided but got: ${(0,u.N)(e.directives)}.`),this.description=e.description,this.extensions=w(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(n=e.extensionASTNodes)&&void 0!==n?n:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(t=e.directives)&&void 0!==t?t:an;const r=new Set(e.types);if(null!=e.types)for(const n of e.types)r.delete(n),Rn(n,r);null!=this._queryType&&Rn(this._queryType,r),null!=this._mutationType&&Rn(this._mutationType,r),null!=this._subscriptionType&&Rn(this._subscriptionType,r);for(const e of this._directives)if(Ke(e))for(const n of e.args)Rn(n.type,r);Rn(fn,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of r){if(null==e)continue;const n=e.name;if(n||(0,i.U)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[n])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${n}".`);if(this._typeMap[n]=e,M(e)){for(const n of e.getInterfaces())if(M(n)){let t=this._implementationsMap[n.name];void 0===t&&(t=this._implementationsMap[n.name]={objects:[],interfaces:[]}),t.interfaces.push(e)}}else if(x(e))for(const n of e.getInterfaces())if(M(n)){let t=this._implementationsMap[n.name];void 0===t&&(t=this._implementationsMap[n.name]={objects:[],interfaces:[]}),t.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case l.cE.QUERY:return this.getQueryType();case l.cE.MUTATION:return this.getMutationType();case l.cE.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return P(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const n=this._implementationsMap[e.name];return null!=n?n:{objects:[],interfaces:[]}}isSubType(e,n){let t=this._subTypeMap[e.name];if(void 0===t){if(t=Object.create(null),P(e))for(const n of e.getTypes())t[n.name]=!0;else{const n=this.getImplementations(e);for(const e of n.objects)t[e.name]=!0;for(const e of n.interfaces)t[e.name]=!0}this._subTypeMap[e.name]=t}return void 0!==t[n.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((n=>n.name===e))}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:void 0!==this.__validationErrors}}}function Rn(e,n){const t=he(e);if(!n.has(t))if(n.add(t),P(t))for(const e of t.getTypes())Rn(e,n);else if(x(t)||M(t)){for(const e of t.getInterfaces())Rn(e,n);for(const e of Object.values(t.getFields())){Rn(e.type,n);for(const t of e.args)Rn(t.type,n)}}else if(q(t))for(const e of Object.values(t.getFields()))Rn(e.type,n);return n}function An(e){if(Dn(e),e.__validationErrors)return e.__validationErrors;const n=new Vn(e);!function(e){const n=e.schema,t=n.getQueryType();if(t){if(!x(t)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,u.N)(t)}.`,null!==(r=Fn(n,l.cE.QUERY))&&void 0!==r?r:t.astNode)}}else e.reportError("Query root type must be provided.",n.astNode);const o=n.getMutationType();var i;o&&!x(o)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,u.N)(o)}.`,null!==(i=Fn(n,l.cE.MUTATION))&&void 0!==i?i:o.astNode);const s=n.getSubscriptionType();var a;s&&!x(s)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,u.N)(s)}.`,null!==(a=Fn(n,l.cE.SUBSCRIPTION))&&void 0!==a?a:s.astNode)}(n),function(e){for(const t of e.schema.getDirectives())if(Ke(t)){Un(e,t),0===t.locations.length&&e.reportError(`Directive @${t.name} must include 1 or more locations.`,t.astNode);for(const r of t.args){var n;if(Un(e,r),K(r.type)||e.reportError(`The type of @${t.name}(${r.name}:) must be Input Type but got: ${(0,u.N)(r.type)}.`,r.astNode),Se(r)&&null!=r.deprecationReason)e.reportError(`Required argument @${t.name}(${r.name}:) cannot be deprecated.`,[Hn(r.astNode),null===(n=r.astNode)||void 0===n?void 0:n.type])}}else e.reportError(`Expected directive but got: ${(0,u.N)(t)}.`,null==t?void 0:t.astNode)}(n),function(e){const n=function(e){const n=Object.create(null),t=[],r=Object.create(null);return o;function o(i){if(n[i.name])return;n[i.name]=!0,r[i.name]=t.length;const s=Object.values(i.getFields());for(const n of s)if(X(n.type)&&q(n.type.ofType)){const i=n.type.ofType,s=r[i.name];if(t.push(n),void 0===s)o(i);else{const n=t.slice(s),r=n.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${i.name}" within itself through a series of non-null fields: "${r}".`,n.map((e=>e.astNode)))}t.pop()}r[i.name]=void 0}}(e),t=e.schema.getTypeMap();for(const r of Object.values(t))me(r)?(wn(r)||Un(e,r),x(r)||M(r)?(kn(e,r),xn(e,r)):P(r)?Cn(e,r):B(r)?Pn(e,r):q(r)&&(Gn(e,r),n(r))):e.reportError(`Expected GraphQL named type but got: ${(0,u.N)(r)}.`,r.astNode)}(n);const t=n.getErrors();return e.__validationErrors=t,t}function Ln(e){const n=An(e);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))}class Vn{constructor(e){this._errors=[],this.schema=e}reportError(e,n){const t=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new c.eO(e,{nodes:t}))}getErrors(){return this._errors}}function Fn(e,n){var t;return null===(t=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var n;return null!==(n=null==e?void 0:e.operationTypes)&&void 0!==n?n:[]})).find((e=>e.operation===n)))||void 0===t?void 0:t.type}function Un(e,n){n.name.startsWith("__")&&e.reportError(`Name "${n.name}" must not begin with "__", which is reserved by GraphQL introspection.`,n.astNode)}function kn(e,n){const t=Object.values(n.getFields());0===t.length&&e.reportError(`Type ${n.name} must define one or more fields.`,[n.astNode,...n.extensionASTNodes]);for(const s of t){var r;if(Un(e,s),!W(s.type))e.reportError(`The type of ${n.name}.${s.name} must be Output Type but got: ${(0,u.N)(s.type)}.`,null===(r=s.astNode)||void 0===r?void 0:r.type);for(const t of s.args){const r=t.name;var o,i;if(Un(e,t),!K(t.type))e.reportError(`The type of ${n.name}.${s.name}(${r}:) must be Input Type but got: ${(0,u.N)(t.type)}.`,null===(o=t.astNode)||void 0===o?void 0:o.type);if(Se(t)&&null!=t.deprecationReason)e.reportError(`Required argument ${n.name}.${s.name}(${r}:) cannot be deprecated.`,[Hn(t.astNode),null===(i=t.astNode)||void 0===i?void 0:i.type])}}}function xn(e,n){const t=Object.create(null);for(const r of n.getInterfaces())M(r)?n!==r?t[r.name]?e.reportError(`Type ${n.name} can only implement ${r.name} once.`,Qn(n,r)):(t[r.name]=!0,Mn(e,n,r),jn(e,n,r)):e.reportError(`Type ${n.name} cannot implement itself because it would create a circular reference.`,Qn(n,r)):e.reportError(`Type ${(0,u.N)(n)} must only implement Interface types, it cannot implement ${(0,u.N)(r)}.`,Qn(n,r))}function jn(e,n,t){const r=n.getFields();for(const c of Object.values(t.getFields())){const l=c.name,p=r[l];if(p){var o,i;if(!je(e.schema,p.type,c.type))e.reportError(`Interface field ${t.name}.${l} expects type ${(0,u.N)(c.type)} but ${n.name}.${l} is type ${(0,u.N)(p.type)}.`,[null===(o=c.astNode)||void 0===o?void 0:o.type,null===(i=p.astNode)||void 0===i?void 0:i.type]);for(const r of c.args){const o=r.name,i=p.args.find((e=>e.name===o));var s,a;if(i){if(!xe(r.type,i.type))e.reportError(`Interface field argument ${t.name}.${l}(${o}:) expects type ${(0,u.N)(r.type)} but ${n.name}.${l}(${o}:) is type ${(0,u.N)(i.type)}.`,[null===(s=r.astNode)||void 0===s?void 0:s.type,null===(a=i.astNode)||void 0===a?void 0:a.type])}else e.reportError(`Interface field argument ${t.name}.${l}(${o}:) expected but ${n.name}.${l} does not provide it.`,[r.astNode,p.astNode])}for(const r of p.args){const o=r.name;!c.args.find((e=>e.name===o))&&Se(r)&&e.reportError(`Object field ${n.name}.${l} includes required argument ${o} that is missing from the Interface field ${t.name}.${l}.`,[r.astNode,c.astNode])}}else e.reportError(`Interface field ${t.name}.${l} expected but ${n.name} does not provide it.`,[c.astNode,n.astNode,...n.extensionASTNodes])}}function Mn(e,n,t){const r=n.getInterfaces();for(const o of t.getInterfaces())r.includes(o)||e.reportError(o===n?`Type ${n.name} cannot implement ${t.name} because it would create a circular reference.`:`Type ${n.name} must implement ${o.name} because it is implemented by ${t.name}.`,[...Qn(t,o),...Qn(n,t)])}function Cn(e,n){const t=n.getTypes();0===t.length&&e.reportError(`Union type ${n.name} must define one or more member types.`,[n.astNode,...n.extensionASTNodes]);const r=Object.create(null);for(const o of t)r[o.name]?e.reportError(`Union type ${n.name} can only include type ${o.name} once.`,qn(n,o.name)):(r[o.name]=!0,x(o)||e.reportError(`Union type ${n.name} can only include Object types, it cannot include ${(0,u.N)(o)}.`,qn(n,String(o))))}function Pn(e,n){const t=n.getValues();0===t.length&&e.reportError(`Enum type ${n.name} must define one or more values.`,[n.astNode,...n.extensionASTNodes]);for(const n of t)Un(e,n)}function Gn(e,n){const t=Object.values(n.getFields());0===t.length&&e.reportError(`Input Object type ${n.name} must define one or more fields.`,[n.astNode,...n.extensionASTNodes]);for(const i of t){var r,o;if(Un(e,i),!K(i.type))e.reportError(`The type of ${n.name}.${i.name} must be Input Type but got: ${(0,u.N)(i.type)}.`,null===(r=i.astNode)||void 0===r?void 0:r.type);if(ke(i)&&null!=i.deprecationReason)e.reportError(`Required input field ${n.name}.${i.name} cannot be deprecated.`,[Hn(i.astNode),null===(o=i.astNode)||void 0===o?void 0:o.type]);n.isOneOf&&Bn(n,i,e)}}function Bn(e,n,t){var r;X(n.type)&&t.reportError(`OneOf input field ${e.name}.${n.name} must be nullable.`,null===(r=n.astNode)||void 0===r?void 0:r.type);void 0!==n.defaultValue&&t.reportError(`OneOf input field ${e.name}.${n.name} cannot have a default value.`,n.astNode)}function Qn(e,n){const{astNode:t,extensionASTNodes:r}=e;return(null!=t?[t,...r]:r).flatMap((e=>{var n;return null!==(n=e.interfaces)&&void 0!==n?n:[]})).filter((e=>e.name.value===n.name))}function qn(e,n){const{astNode:t,extensionASTNodes:r}=e;return(null!=t?[t,...r]:r).flatMap((e=>{var n;return null!==(n=e.types)&&void 0!==n?n:[]})).filter((e=>e.name.value===n))}function Hn(e){var n;return null==e||null===(n=e.directives)||void 0===n?void 0:n.find((e=>e.name.value===rn.name))}var Yn=t(4705);function Jn(e,n){switch(n.kind){case S.b.LIST_TYPE:{const t=Jn(e,n.type);return t&&new ae(t)}case S.b.NON_NULL_TYPE:{const t=Jn(e,n.type);return t&&new ue(t)}case S.b.NAMED_TYPE:return e.getType(n.name.value)}}class Xn{constructor(e,n,t){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=t?t:zn,n&&(K(n)&&this._inputTypeStack.push(n),re(n)&&this._parentTypeStack.push(n),W(n)&&this._typeStack.push(n))}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(e){const n=this._schema;switch(e.kind){case S.b.SELECTION_SET:{const e=he(this.getType());this._parentTypeStack.push(re(e)?e:void 0);break}case S.b.FIELD:{const t=this.getParentType();let r,o;t&&(r=this._getFieldDef(n,t,e),r&&(o=r.type)),this._fieldDefStack.push(r),this._typeStack.push(W(o)?o:void 0);break}case S.b.DIRECTIVE:this._directive=n.getDirective(e.name.value);break;case S.b.OPERATION_DEFINITION:{const t=n.getRootType(e.operation);this._typeStack.push(x(t)?t:void 0);break}case S.b.INLINE_FRAGMENT:case S.b.FRAGMENT_DEFINITION:{const t=e.typeCondition,r=t?Jn(n,t):he(this.getType());this._typeStack.push(W(r)?r:void 0);break}case S.b.VARIABLE_DEFINITION:{const t=Jn(n,e.type);this._inputTypeStack.push(K(t)?t:void 0);break}case S.b.ARGUMENT:{var t;let n,r;const o=null!==(t=this.getDirective())&&void 0!==t?t:this.getFieldDef();o&&(n=o.args.find((n=>n.name===e.name.value)),n&&(r=n.type)),this._argument=n,this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(K(r)?r:void 0);break}case S.b.LIST:{const e=fe(this.getInputType()),n=Y(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(K(n)?n:void 0);break}case S.b.OBJECT_FIELD:{const n=he(this.getInputType());let t,r;q(n)&&(r=n.getFields()[e.name.value],r&&(t=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(K(t)?t:void 0);break}case S.b.ENUM:{const n=he(this.getInputType());let t;B(n)&&(t=n.getValue(e.value)),this._enumValue=t;break}}}leave(e){switch(e.kind){case S.b.SELECTION_SET:this._parentTypeStack.pop();break;case S.b.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case S.b.DIRECTIVE:this._directive=null;break;case S.b.OPERATION_DEFINITION:case S.b.INLINE_FRAGMENT:case S.b.FRAGMENT_DEFINITION:this._typeStack.pop();break;case S.b.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case S.b.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case S.b.LIST:case S.b.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case S.b.ENUM:this._enumValue=null}}}function zn(e,n,t){const r=t.name.value;return r===bn.name&&e.getQueryType()===n?bn:r===On.name&&e.getQueryType()===n?On:r===In.name&&re(n)?In:x(n)||M(n)?n.getFields()[r]:void 0}function Kn(e,n){return{enter(...t){const r=t[0];e.enter(r);const o=(0,Yn.XO)(n,r.kind).enter;if(o){const i=o.apply(n,t);return void 0!==i&&(e.leave(r),(0,l.Ll)(i)&&e.enter(i)),i}},leave(...t){const r=t[0],o=(0,Yn.XO)(n,r.kind).leave;let i;return o&&(i=o.apply(n,t)),e.leave(r),i}}}var Zn=t(6623);function Wn(e){return{Document(n){for(const t of n.definitions)if(!(0,Zn._m)(t)){const n=t.kind===S.b.SCHEMA_DEFINITION||t.kind===S.b.SCHEMA_EXTENSION?"schema":'"'+t.name.value+'"';e.reportError(new c.eO(`The ${n} definition is not executable.`,{nodes:t}))}return!1}}}function et(e){return{Field(n){const t=e.getParentType();if(t){if(!e.getFieldDef()){const r=e.getSchema(),o=n.name.value;let i=d("to use an inline fragment on",function(e,n,t){if(!ie(n))return[];const r=new Set,o=Object.create(null);for(const s of e.getPossibleTypes(n))if(s.getFields()[t]){r.add(s),o[s.name]=1;for(const e of s.getInterfaces()){var i;e.getFields()[t]&&(r.add(e),o[e.name]=(null!==(i=o[e.name])&&void 0!==i?i:0)+1)}}return[...r].sort(((n,t)=>{const r=o[t.name]-o[n.name];return 0!==r?r:M(n)&&e.isSubType(n,t)?-1:M(t)&&e.isSubType(t,n)?1:T(n.name,t.name)})).map((e=>e.name))}(r,t,o));""===i&&(i=d(function(e,n){if(x(e)||M(e)){return O(n,Object.keys(e.getFields()))}return[]}(t,o))),e.reportError(new c.eO(`Cannot query field "${o}" on type "${t.name}".`+i,{nodes:n}))}}}}}function nt(e){return{InlineFragment(n){const t=n.typeCondition;if(t){const n=Jn(e.getSchema(),t);if(n&&!re(n)){const n=(0,D.y)(t);e.reportError(new c.eO(`Fragment cannot condition on non composite type "${n}".`,{nodes:t}))}}},FragmentDefinition(n){const t=Jn(e.getSchema(),n.typeCondition);if(t&&!re(t)){const t=(0,D.y)(n.typeCondition);e.reportError(new c.eO(`Fragment "${n.name.value}" cannot condition on non composite type "${t}".`,{nodes:n.typeCondition}))}}}}function tt(e){return{...rt(e),Argument(n){const t=e.getArgument(),r=e.getFieldDef(),o=e.getParentType();if(!t&&r&&o){const t=n.name.value,i=O(t,r.args.map((e=>e.name)));e.reportError(new c.eO(`Unknown argument "${t}" on field "${o.name}.${r.name}".`+d(i),{nodes:n}))}}}}function rt(e){const n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():an;for(const e of r)n[e.name]=e.args.map((e=>e.name));const o=e.getDocument().definitions;for(const e of o)if(e.kind===S.b.DIRECTIVE_DEFINITION){var i;const t=null!==(i=e.arguments)&&void 0!==i?i:[];n[e.name.value]=t.map((e=>e.name.value))}return{Directive(t){const r=t.name.value,o=n[r];if(t.arguments&&o)for(const n of t.arguments){const t=n.name.value;if(!o.includes(t)){const i=O(t,o);e.reportError(new c.eO(`Unknown argument "${t}" on directive "@${r}".`+d(i),{nodes:n}))}}return!1}}}function ot(e){const n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():an;for(const e of r)n[e.name]=e.locations;const o=e.getDocument().definitions;for(const e of o)e.kind===S.b.DIRECTIVE_DEFINITION&&(n[e.name.value]=e.locations.map((e=>e.value)));return{Directive(t,r,o,i,s){const a=t.name.value,p=n[a];if(!p)return void e.reportError(new c.eO(`Unknown directive "@${a}".`,{nodes:t}));const d=function(e){const n=e[e.length-1];switch("kind"in n||(0,cn.V)(!1),n.kind){case S.b.OPERATION_DEFINITION:return function(e){switch(e){case l.cE.QUERY:return Ce.H.QUERY;case l.cE.MUTATION:return Ce.H.MUTATION;case l.cE.SUBSCRIPTION:return Ce.H.SUBSCRIPTION}}(n.operation);case S.b.FIELD:return Ce.H.FIELD;case S.b.FRAGMENT_SPREAD:return Ce.H.FRAGMENT_SPREAD;case S.b.INLINE_FRAGMENT:return Ce.H.INLINE_FRAGMENT;case S.b.FRAGMENT_DEFINITION:return Ce.H.FRAGMENT_DEFINITION;case S.b.VARIABLE_DEFINITION:return Ce.H.VARIABLE_DEFINITION;case S.b.SCHEMA_DEFINITION:case S.b.SCHEMA_EXTENSION:return Ce.H.SCHEMA;case S.b.SCALAR_TYPE_DEFINITION:case S.b.SCALAR_TYPE_EXTENSION:return Ce.H.SCALAR;case S.b.OBJECT_TYPE_DEFINITION:case S.b.OBJECT_TYPE_EXTENSION:return Ce.H.OBJECT;case S.b.FIELD_DEFINITION:return Ce.H.FIELD_DEFINITION;case S.b.INTERFACE_TYPE_DEFINITION:case S.b.INTERFACE_TYPE_EXTENSION:return Ce.H.INTERFACE;case S.b.UNION_TYPE_DEFINITION:case S.b.UNION_TYPE_EXTENSION:return Ce.H.UNION;case S.b.ENUM_TYPE_DEFINITION:case S.b.ENUM_TYPE_EXTENSION:return Ce.H.ENUM;case S.b.ENUM_VALUE_DEFINITION:return Ce.H.ENUM_VALUE;case S.b.INPUT_OBJECT_TYPE_DEFINITION:case S.b.INPUT_OBJECT_TYPE_EXTENSION:return Ce.H.INPUT_OBJECT;case S.b.INPUT_VALUE_DEFINITION:{const n=e[e.length-3];return"kind"in n||(0,cn.V)(!1),n.kind===S.b.INPUT_OBJECT_TYPE_DEFINITION?Ce.H.INPUT_FIELD_DEFINITION:Ce.H.ARGUMENT_DEFINITION}default:(0,cn.V)(!1,"Unexpected kind: "+(0,u.N)(n.kind))}}(s);d&&!p.includes(d)&&e.reportError(new c.eO(`Directive "@${a}" may not be used on ${d}.`,{nodes:t}))}}}function it(e){return{FragmentSpread(n){const t=n.name.value;e.getFragment(t)||e.reportError(new c.eO(`Unknown fragment "${t}".`,{nodes:n.name}))}}}function st(e){const n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null);for(const n of e.getDocument().definitions)(0,Zn.a6)(n)&&(r[n.name.value]=!0);const o=[...Object.keys(t),...Object.keys(r)];return{NamedType(n,i,s,a,u){const l=n.name.value;if(!t[l]&&!r[l]){var p;const t=null!==(p=u[2])&&void 0!==p?p:s,r=null!=t&&("kind"in(f=t)&&((0,Zn.xu)(f)||(0,Zn.fT)(f)));if(r&&at.includes(l))return;const i=O(l,r?at.concat(o):o);e.reportError(new c.eO(`Unknown type "${l}".`+d(i),{nodes:n}))}var f}}}const at=[...Je,..._n].map((e=>e.name));function ut(e){let n=0;return{Document(e){n=e.definitions.filter((e=>e.kind===S.b.OPERATION_DEFINITION)).length},OperationDefinition(t){!t.name&&n>1&&e.reportError(new c.eO("This anonymous operation must be the only defined operation.",{nodes:t}))}}}function ct(e){var n,t,r;const o=e.getSchema(),i=null!==(n=null!==(t=null!==(r=null==o?void 0:o.astNode)&&void 0!==r?r:null==o?void 0:o.getQueryType())&&void 0!==t?t:null==o?void 0:o.getMutationType())&&void 0!==n?n:null==o?void 0:o.getSubscriptionType();let s=0;return{SchemaDefinition(n){i?e.reportError(new c.eO("Cannot define a new schema within a schema extension.",{nodes:n})):(s>0&&e.reportError(new c.eO("Must provide only one schema definition.",{nodes:n})),++s)}}}const lt=3;function pt(e){function n(t,r=Object.create(null),o=0){if(t.kind===S.b.FRAGMENT_SPREAD){const i=t.name.value;if(!0===r[i])return!1;const s=e.getFragment(i);if(!s)return!1;try{return r[i]=!0,n(s,r,o)}finally{r[i]=void 0}}if(t.kind===S.b.FIELD&&("fields"===t.name.value||"interfaces"===t.name.value||"possibleTypes"===t.name.value||"inputFields"===t.name.value)&&++o>=lt)return!0;if("selectionSet"in t&&t.selectionSet)for(const e of t.selectionSet.selections)if(n(e,r,o))return!0;return!1}return{Field(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&n(t))return e.reportError(new c.eO("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}function dt(e){const n=Object.create(null),t=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(o(e),!1)};function o(i){if(n[i.name.value])return;const s=i.name.value;n[s]=!0;const a=e.getFragmentSpreads(i.selectionSet);if(0!==a.length){r[s]=t.length;for(const n of a){const i=n.name.value,s=r[i];if(t.push(n),void 0===s){const n=e.getFragment(i);n&&o(n)}else{const n=t.slice(s),r=n.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new c.eO(`Cannot spread fragment "${i}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:n}))}t.pop()}r[s]=void 0}}}function ft(e){let n=Object.create(null);return{OperationDefinition:{enter(){n=Object.create(null)},leave(t){const r=e.getRecursiveVariableUsages(t);for(const{node:o}of r){const r=o.name.value;!0!==n[r]&&e.reportError(new c.eO(t.name?`Variable "$${r}" is not defined by operation "${t.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[o,t]}))}}},VariableDefinition(e){n[e.variable.name.value]=!0}}}function mt(e){const n=[],t=[];return{OperationDefinition:e=>(n.push(e),!1),FragmentDefinition:e=>(t.push(e),!1),Document:{leave(){const r=Object.create(null);for(const t of n)for(const n of e.getRecursivelyReferencedFragments(t))r[n.name.value]=!0;for(const n of t){const t=n.name.value;!0!==r[t]&&e.reportError(new c.eO(`Fragment "${t}" is never used.`,{nodes:n}))}}}}}function yt(e){let n=[];return{OperationDefinition:{enter(){n=[]},leave(t){const r=Object.create(null),o=e.getRecursiveVariableUsages(t);for(const{node:e}of o)r[e.name.value]=!0;for(const o of n){const n=o.variable.name.value;!0!==r[n]&&e.reportError(new c.eO(t.name?`Variable "$${n}" is never used in operation "${t.name.value}".`:`Variable "$${n}" is never used.`,{nodes:o}))}}},VariableDefinition(e){n.push(e)}}}function ht(e){switch(e.kind){case S.b.OBJECT:return{...e,fields:(n=e.fields,n.map((e=>({...e,value:ht(e.value)}))).sort(((e,n)=>T(e.name.value,n.name.value))))};case S.b.LIST:return{...e,values:e.values.map(ht)};case S.b.INT:case S.b.FLOAT:case S.b.STRING:case S.b.BOOLEAN:case S.b.NULL:case S.b.ENUM:case S.b.VARIABLE:return e}var n}function vt(e){return Array.isArray(e)?e.map((([e,n])=>`subfields "${e}" conflict because `+vt(n))).join(" and "):e}function Et(e){const n=new Dt,t=new $t,r=new Map;return{SelectionSet(o){const i=function(e,n,t,r,o,i){const s=[],[a,u]=_t(e,n,o,i);if(function(e,n,t,r,o,i){for(const[s,a]of Object.entries(i))if(a.length>1)for(let i=0;i<a.length;i++)for(let u=i+1;u<a.length;u++){const c=bt(e,t,r,o,!1,s,a[i],a[u]);c&&n.push(c)}}(e,s,n,t,r,a),0!==u.length)for(let o=0;o<u.length;o++){Tt(e,s,n,t,r,!1,a,u[o]);for(let i=o+1;i<u.length;i++)Nt(e,s,n,t,r,!1,u[o],u[i])}return s}(e,r,n,t,e.getParentType(),o);for(const[[n,t],r,o]of i){const i=vt(t);e.reportError(new c.eO(`Fields "${n}" conflict because ${i}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(o)}))}}}}function Tt(e,n,t,r,o,i,s,a){if(r.has(s,a,i))return;r.add(s,a,i);const u=e.getFragment(a);if(!u)return;const[c,l]=wt(e,t,u);if(s!==c){gt(e,n,t,r,o,i,s,c);for(const a of l)Tt(e,n,t,r,o,i,s,a)}}function Nt(e,n,t,r,o,i,s,a){if(s===a)return;if(o.has(s,a,i))return;o.add(s,a,i);const u=e.getFragment(s),c=e.getFragment(a);if(!u||!c)return;const[l,p]=wt(e,t,u),[d,f]=wt(e,t,c);gt(e,n,t,r,o,i,l,d);for(const a of f)Nt(e,n,t,r,o,i,s,a);for(const s of p)Nt(e,n,t,r,o,i,s,a)}function gt(e,n,t,r,o,i,s,a){for(const[u,c]of Object.entries(s)){const s=a[u];if(s)for(const a of c)for(const c of s){const s=bt(e,t,r,o,i,u,a,c);s&&n.push(s)}}}function bt(e,n,t,r,o,i,s,a){const[c,l,p]=s,[d,f,m]=a,y=o||c!==d&&x(c)&&x(d);if(!y){const e=l.name.value,n=f.name.value;if(e!==n)return[[i,`"${e}" and "${n}" are different fields`],[l],[f]];if(!function(e,n){const t=e.arguments,r=n.arguments;if(void 0===t||0===t.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(t.length!==r.length)return!1;const o=new Map(r.map((({name:e,value:n})=>[e.value,n])));return t.every((e=>{const n=e.value,t=o.get(e.name.value);return void 0!==t&&Ot(n)===Ot(t)}))}(l,f))return[[i,"they have differing arguments"],[l],[f]]}const h=null==p?void 0:p.type,v=null==m?void 0:m.type;if(h&&v&&It(h,v))return[[i,`they return conflicting types "${(0,u.N)(h)}" and "${(0,u.N)(v)}"`],[l],[f]];const E=l.selectionSet,T=f.selectionSet;if(E&&T){const o=function(e,n,t,r,o,i,s,a,u){const c=[],[l,p]=_t(e,n,i,s),[d,f]=_t(e,n,a,u);gt(e,c,n,t,r,o,l,d);for(const i of f)Tt(e,c,n,t,r,o,l,i);for(const i of p)Tt(e,c,n,t,r,o,d,i);for(const i of p)for(const s of f)Nt(e,c,n,t,r,o,i,s);return c}(e,n,t,r,y,he(h),E,he(v),T);return function(e,n,t,r){if(e.length>0)return[[n,e.map((([e])=>e))],[t,...e.map((([,e])=>e)).flat()],[r,...e.map((([,,e])=>e)).flat()]]}(o,i,l,f)}}function Ot(e){return(0,D.y)(ht(e))}function It(e,n){return Y(e)?!Y(n)||It(e.ofType,n.ofType):!!Y(n)||(X(e)?!X(n)||It(e.ofType,n.ofType):!!X(n)||!(!ne(e)&&!ne(n))&&e!==n)}function _t(e,n,t,r){const o=n.get(r);if(o)return o;const i=Object.create(null),s=Object.create(null);St(e,t,r,i,s);const a=[i,Object.keys(s)];return n.set(r,a),a}function wt(e,n,t){const r=n.get(t.selectionSet);if(r)return r;const o=Jn(e.getSchema(),t.typeCondition);return _t(e,n,o,t.selectionSet)}function St(e,n,t,r,o){for(const i of t.selections)switch(i.kind){case S.b.FIELD:{const e=i.name.value;let t;(x(n)||M(n))&&(t=n.getFields()[e]);const o=i.alias?i.alias.value:e;r[o]||(r[o]=[]),r[o].push([n,i,t]);break}case S.b.FRAGMENT_SPREAD:o[i.name.value]=!0;break;case S.b.INLINE_FRAGMENT:{const t=i.typeCondition,s=t?Jn(e.getSchema(),t):n;St(e,s,i.selectionSet,r,o);break}}}class Dt{constructor(){this._data=new Map}has(e,n,t){var r;const o=null===(r=this._data.get(e))||void 0===r?void 0:r.get(n);return void 0!==o&&(!!t||t===o)}add(e,n,t){const r=this._data.get(e);void 0===r?this._data.set(e,new Map([[n,t]])):r.set(n,t)}}class $t{constructor(){this._orderedPairSet=new Dt}has(e,n,t){return e<n?this._orderedPairSet.has(e,n,t):this._orderedPairSet.has(n,e,t)}add(e,n,t){e<n?this._orderedPairSet.add(e,n,t):this._orderedPairSet.add(n,e,t)}}function Rt(e){return{InlineFragment(n){const t=e.getType(),r=e.getParentType();if(re(t)&&re(r)&&!Me(e.getSchema(),t,r)){const o=(0,u.N)(r),i=(0,u.N)(t);e.reportError(new c.eO(`Fragment cannot be spread here as objects of type "${o}" can never be of type "${i}".`,{nodes:n}))}},FragmentSpread(n){const t=n.name.value,r=function(e,n){const t=e.getFragment(n);if(t){const n=Jn(e.getSchema(),t.typeCondition);if(re(n))return n}}(e,t),o=e.getParentType();if(r&&o&&!Me(e.getSchema(),r,o)){const i=(0,u.N)(o),s=(0,u.N)(r);e.reportError(new c.eO(`Fragment "${t}" cannot be spread here as objects of type "${i}" can never be of type "${s}".`,{nodes:n}))}}}}function At(e){const n=e.getSchema(),t=Object.create(null);for(const n of e.getDocument().definitions)(0,Zn.a6)(n)&&(t[n.name.value]=n);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const o=r.name.value,i=t[o],s=null==n?void 0:n.getType(o);let a;if(i?a=Lt[i.kind]:s&&(a=function(e){if(U(e))return S.b.SCALAR_TYPE_EXTENSION;if(x(e))return S.b.OBJECT_TYPE_EXTENSION;if(M(e))return S.b.INTERFACE_TYPE_EXTENSION;if(P(e))return S.b.UNION_TYPE_EXTENSION;if(B(e))return S.b.ENUM_TYPE_EXTENSION;if(q(e))return S.b.INPUT_OBJECT_TYPE_EXTENSION;(0,cn.V)(!1,"Unexpected type: "+(0,u.N)(e))}(s)),a){if(a!==r.kind){const n=function(e){switch(e){case S.b.SCALAR_TYPE_EXTENSION:return"scalar";case S.b.OBJECT_TYPE_EXTENSION:return"object";case S.b.INTERFACE_TYPE_EXTENSION:return"interface";case S.b.UNION_TYPE_EXTENSION:return"union";case S.b.ENUM_TYPE_EXTENSION:return"enum";case S.b.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,cn.V)(!1,"Unexpected kind: "+(0,u.N)(e))}}(r.kind);e.reportError(new c.eO(`Cannot extend non-${n} type "${o}".`,{nodes:i?[i,r]:r}))}}else{const i=O(o,Object.keys({...t,...null==n?void 0:n.getTypeMap()}));e.reportError(new c.eO(`Cannot extend type "${o}" because it is not defined.`+d(i),{nodes:r.name}))}}}const Lt={[S.b.SCALAR_TYPE_DEFINITION]:S.b.SCALAR_TYPE_EXTENSION,[S.b.OBJECT_TYPE_DEFINITION]:S.b.OBJECT_TYPE_EXTENSION,[S.b.INTERFACE_TYPE_DEFINITION]:S.b.INTERFACE_TYPE_EXTENSION,[S.b.UNION_TYPE_DEFINITION]:S.b.UNION_TYPE_EXTENSION,[S.b.ENUM_TYPE_DEFINITION]:S.b.ENUM_TYPE_EXTENSION,[S.b.INPUT_OBJECT_TYPE_DEFINITION]:S.b.INPUT_OBJECT_TYPE_EXTENSION};function Vt(e){return{...Ft(e),Field:{leave(n){var t;const r=e.getFieldDef();if(!r)return!1;const o=new Set(null===(t=n.arguments)||void 0===t?void 0:t.map((e=>e.name.value)));for(const t of r.args)if(!o.has(t.name)&&Se(t)){const o=(0,u.N)(t.type);e.reportError(new c.eO(`Field "${r.name}" argument "${t.name}" of type "${o}" is required, but it was not provided.`,{nodes:n}))}}}}}function Ft(e){var n;const t=Object.create(null),r=e.getSchema(),o=null!==(n=null==r?void 0:r.getDirectives())&&void 0!==n?n:an;for(const e of o)t[e.name]=h(e.args.filter(Se),(e=>e.name));const i=e.getDocument().definitions;for(const e of i)if(e.kind===S.b.DIRECTIVE_DEFINITION){var s;const n=null!==(s=e.arguments)&&void 0!==s?s:[];t[e.name.value]=h(n.filter(Ut),(e=>e.name.value))}return{Directive:{leave(n){const r=n.name.value,o=t[r];if(o){var i;const t=null!==(i=n.arguments)&&void 0!==i?i:[],s=new Set(t.map((e=>e.name.value)));for(const[t,i]of Object.entries(o))if(!s.has(t)){const o=V(i.type)?(0,u.N)(i.type):(0,D.y)(i.type);e.reportError(new c.eO(`Directive "@${r}" argument "${t}" of type "${o}" is required, but it was not provided.`,{nodes:n}))}}}}}}function Ut(e){return e.type.kind===S.b.NON_NULL_TYPE&&null==e.defaultValue}function kt(e){return{Field(n){const t=e.getType(),r=n.selectionSet;if(t)if(ne(he(t))){if(r){const o=n.name.value,i=(0,u.N)(t);e.reportError(new c.eO(`Field "${o}" must not have a selection since type "${i}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){const r=n.name.value,o=(0,u.N)(t);e.reportError(new c.eO(`Field "${r}" of type "${o}" must have at least one field selected.`,{nodes:n}))}}else{const r=n.name.value,o=(0,u.N)(t);e.reportError(new c.eO(`Field "${r}" of type "${o}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:n}))}}}}function xt(e){return e.map((e=>"number"==typeof e?"["+e.toString()+"]":"."+e)).join("")}function jt(e,n,t){return{prev:e,key:n,typename:t}}function Mt(e){const n=[];let t=e;for(;t;)n.push(t.key),t=t.prev;return n.reverse()}function Ct(e,n,t=Pt){return Gt(e,n,t,void 0)}function Pt(e,n,t){let r="Invalid value "+(0,u.N)(n);throw e.length>0&&(r+=` at "value${xt(e)}"`),t.message=r+": "+t.message,t}function Gt(e,n,t,r){if(X(n))return null!=e?Gt(e,n.ofType,t,r):void t(Mt(r),e,new c.eO(`Expected non-nullable type "${(0,u.N)(n)}" not to be null.`));if(null==e)return null;if(Y(n)){const o=n.ofType;return ln(e)?Array.from(e,((e,n)=>{const i=jt(r,n,void 0);return Gt(e,o,t,i)})):[Gt(e,o,t,r)]}if(q(n)){if(!(0,y.Z)(e))return void t(Mt(r),e,new c.eO(`Expected type "${n.name}" to be an object.`));const o={},i=n.getFields();for(const s of Object.values(i)){const i=e[s.name];if(void 0!==i)o[s.name]=Gt(i,s.type,t,jt(r,s.name,n.name));else if(void 0!==s.defaultValue)o[s.name]=s.defaultValue;else if(X(s.type)){const n=(0,u.N)(s.type);t(Mt(r),e,new c.eO(`Field "${s.name}" of required type "${n}" was not provided.`))}}for(const o of Object.keys(e))if(!i[o]){const i=O(o,Object.keys(n.getFields()));t(Mt(r),e,new c.eO(`Field "${o}" is not defined by type "${n.name}".`+d(i)))}if(n.isOneOf){const i=Object.keys(o);1!==i.length&&t(Mt(r),e,new c.eO(`Exactly one key must be specified for OneOf type "${n.name}".`));const s=i[0],a=o[s];null===a&&t(Mt(r).concat(s),a,new c.eO(`Field "${s}" must be non-null.`))}return o}if(ne(n)){let o;try{o=n.parseValue(e)}catch(o){return void(o instanceof c.eO?t(Mt(r),e,o):t(Mt(r),e,new c.eO(`Expected type "${n.name}". `+o.message,{originalError:o})))}return void 0===o&&t(Mt(r),e,new c.eO(`Expected type "${n.name}".`)),o}(0,cn.V)(!1,"Unexpected input type: "+(0,u.N)(n))}function Bt(e,n,t){if(e){if(e.kind===S.b.VARIABLE){const r=e.name.value;if(null==t||void 0===t[r])return;const o=t[r];if(null===o&&X(n))return;return o}if(X(n)){if(e.kind===S.b.NULL)return;return Bt(e,n.ofType,t)}if(e.kind===S.b.NULL)return null;if(Y(n)){const r=n.ofType;if(e.kind===S.b.LIST){const n=[];for(const o of e.values)if(Qt(o,t)){if(X(r))return;n.push(null)}else{const e=Bt(o,r,t);if(void 0===e)return;n.push(e)}return n}const o=Bt(e,r,t);if(void 0===o)return;return[o]}if(q(n)){if(e.kind!==S.b.OBJECT)return;const r=Object.create(null),o=h(e.fields,(e=>e.name.value));for(const e of Object.values(n.getFields())){const n=o[e.name];if(!n||Qt(n.value,t)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(X(e.type))return;continue}const i=Bt(n.value,e.type,t);if(void 0===i)return;r[e.name]=i}if(n.isOneOf){const e=Object.keys(r);if(1!==e.length)return;if(null===r[e[0]])return}return r}if(ne(n)){let r;try{r=n.parseLiteral(e,t)}catch(e){return}if(void 0===r)return;return r}(0,cn.V)(!1,"Unexpected input type: "+(0,u.N)(n))}}function Qt(e,n){return e.kind===S.b.VARIABLE&&(null==n||void 0===n[e.name.value])}function qt(e,n,t,r){const o=[],i=null==r?void 0:r.maxErrors;try{const r=function(e,n,t,r){const o={};for(const i of n){const n=i.variable.name.value,s=Jn(e,i.type);if(!K(s)){const e=(0,D.y)(i.type);r(new c.eO(`Variable "$${n}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:i.type}));continue}if(!Jt(t,n)){if(i.defaultValue)o[n]=Bt(i.defaultValue,s);else if(X(s)){const e=(0,u.N)(s);r(new c.eO(`Variable "$${n}" of required type "${e}" was not provided.`,{nodes:i}))}continue}const a=t[n];if(null===a&&X(s)){const e=(0,u.N)(s);r(new c.eO(`Variable "$${n}" of non-null type "${e}" must not be null.`,{nodes:i}))}else o[n]=Ct(a,s,((e,t,o)=>{let s=`Variable "$${n}" got invalid value `+(0,u.N)(t);e.length>0&&(s+=` at "${n}${xt(e)}"`),r(new c.eO(s+"; "+o.message,{nodes:i,originalError:o}))}))}return o}(e,n,t,(e=>{if(null!=i&&o.length>=i)throw new c.eO("Too many errors processing variables, error limit reached. Execution aborted.");o.push(e)}));if(0===o.length)return{coerced:r}}catch(e){o.push(e)}return{errors:o}}function Ht(e,n,t){var r;const o={},i=h(null!==(r=n.arguments)&&void 0!==r?r:[],(e=>e.name.value));for(const r of e.args){const e=r.name,s=r.type,a=i[e];if(!a){if(void 0!==r.defaultValue)o[e]=r.defaultValue;else if(X(s))throw new c.eO(`Argument "${e}" of required type "${(0,u.N)(s)}" was not provided.`,{nodes:n});continue}const l=a.value;let p=l.kind===S.b.NULL;if(l.kind===S.b.VARIABLE){const n=l.name.value;if(null==t||!Jt(t,n)){if(void 0!==r.defaultValue)o[e]=r.defaultValue;else if(X(s))throw new c.eO(`Argument "${e}" of required type "${(0,u.N)(s)}" was provided the variable "$${n}" which was not provided a runtime value.`,{nodes:l});continue}p=null==t[n]}if(p&&X(s))throw new c.eO(`Argument "${e}" of non-null type "${(0,u.N)(s)}" must not be null.`,{nodes:l});const d=Bt(l,s,t);if(void 0===d)throw new c.eO(`Argument "${e}" has invalid value ${(0,D.y)(l)}.`,{nodes:l});o[e]=d}return o}function Yt(e,n,t){var r;const o=null===(r=n.directives)||void 0===r?void 0:r.find((n=>n.name.value===e.name));if(o)return Ht(e,o,t)}function Jt(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function Xt(e,n,t,r,o){const i=new Map;return zt(e,n,t,r,o,i,new Set),i}function zt(e,n,t,r,o,i,s){for(const u of o.selections)switch(u.kind){case S.b.FIELD:{if(!Kt(t,u))continue;const e=(a=u).alias?a.alias.value:a.name.value,n=i.get(e);void 0!==n?n.push(u):i.set(e,[u]);break}case S.b.INLINE_FRAGMENT:if(!Kt(t,u)||!Zt(e,u,r))continue;zt(e,n,t,r,u.selectionSet,i,s);break;case S.b.FRAGMENT_SPREAD:{const o=u.name.value;if(s.has(o)||!Kt(t,u))continue;s.add(o);const a=n[o];if(!a||!Zt(e,a,r))continue;zt(e,n,t,r,a.selectionSet,i,s);break}}var a}function Kt(e,n){const t=Yt(nn,n,e);if(!0===(null==t?void 0:t.if))return!1;const r=Yt(en,n,e);return!1!==(null==r?void 0:r.if)}function Zt(e,n,t){const r=n.typeCondition;if(!r)return!0;const o=Jn(e,r);return o===t||!!ie(o)&&e.isSubType(o,t)}function Wt(e){return{OperationDefinition(n){if("subscription"===n.operation){const t=e.getSchema(),r=t.getSubscriptionType();if(r){const o=n.name?n.name.value:null,i=Object.create(null),s=e.getDocument(),a=Object.create(null);for(const e of s.definitions)e.kind===S.b.FRAGMENT_DEFINITION&&(a[e.name.value]=e);const u=Xt(t,a,i,r,n.selectionSet);if(u.size>1){const n=[...u.values()].slice(1).flat();e.reportError(new c.eO(null!=o?`Subscription "${o}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:n}))}for(const n of u.values()){n[0].name.value.startsWith("__")&&e.reportError(new c.eO(null!=o?`Subscription "${o}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:n}))}}}}}}function er(e,n){const t=new Map;for(const r of e){const e=n(r),o=t.get(e);void 0===o?t.set(e,[r]):o.push(r)}return t}function nr(e){return{DirectiveDefinition(e){var n;const r=null!==(n=e.arguments)&&void 0!==n?n:[];return t(`@${e.name.value}`,r)},InterfaceTypeDefinition:n,InterfaceTypeExtension:n,ObjectTypeDefinition:n,ObjectTypeExtension:n};function n(e){var n;const r=e.name.value,o=null!==(n=e.fields)&&void 0!==n?n:[];for(const e of o){var i;t(`${r}.${e.name.value}`,null!==(i=e.arguments)&&void 0!==i?i:[])}return!1}function t(n,t){const r=er(t,(e=>e.name.value));for(const[t,o]of r)o.length>1&&e.reportError(new c.eO(`Argument "${n}(${t}:)" can only be defined once.`,{nodes:o.map((e=>e.name))}));return!1}}function tr(e){return{Field:n,Directive:n};function n(n){var t;const r=er(null!==(t=n.arguments)&&void 0!==t?t:[],(e=>e.name.value));for(const[n,t]of r)t.length>1&&e.reportError(new c.eO(`There can be only one argument named "${n}".`,{nodes:t.map((e=>e.name))}))}}function rr(e){const n=Object.create(null),t=e.getSchema();return{DirectiveDefinition(r){const o=r.name.value;if(null==t||!t.getDirective(o))return n[o]?e.reportError(new c.eO(`There can be only one directive named "@${o}".`,{nodes:[n[o],r.name]})):n[o]=r.name,!1;e.reportError(new c.eO(`Directive "@${o}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}function or(e){const n=Object.create(null),t=e.getSchema(),r=t?t.getDirectives():an;for(const e of r)n[e.name]=!e.isRepeatable;const o=e.getDocument().definitions;for(const e of o)e.kind===S.b.DIRECTIVE_DEFINITION&&(n[e.name.value]=!e.repeatable);const i=Object.create(null),s=Object.create(null);return{enter(t){if(!("directives"in t)||!t.directives)return;let r;if(t.kind===S.b.SCHEMA_DEFINITION||t.kind===S.b.SCHEMA_EXTENSION)r=i;else if((0,Zn.a6)(t)||(0,Zn.i7)(t)){const e=t.name.value;r=s[e],void 0===r&&(s[e]=r=Object.create(null))}else r=Object.create(null);for(const o of t.directives){const t=o.name.value;n[t]&&(r[t]?e.reportError(new c.eO(`The directive "@${t}" can only be used once at this location.`,{nodes:[r[t],o]})):r[t]=o)}}}}function ir(e){const n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:o,EnumTypeExtension:o};function o(n){var o;const i=n.name.value;r[i]||(r[i]=Object.create(null));const s=null!==(o=n.values)&&void 0!==o?o:[],a=r[i];for(const n of s){const r=n.name.value,o=t[i];B(o)&&o.getValue(r)?e.reportError(new c.eO(`Enum value "${i}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:n.name})):a[r]?e.reportError(new c.eO(`Enum value "${i}.${r}" can only be defined once.`,{nodes:[a[r],n.name]})):a[r]=n.name}return!1}}function sr(e){const n=e.getSchema(),t=n?n.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:o,InputObjectTypeExtension:o,InterfaceTypeDefinition:o,InterfaceTypeExtension:o,ObjectTypeDefinition:o,ObjectTypeExtension:o};function o(n){var o;const i=n.name.value;r[i]||(r[i]=Object.create(null));const s=null!==(o=n.fields)&&void 0!==o?o:[],a=r[i];for(const n of s){const r=n.name.value;ar(t[i],r)?e.reportError(new c.eO(`Field "${i}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:n.name})):a[r]?e.reportError(new c.eO(`Field "${i}.${r}" can only be defined once.`,{nodes:[a[r],n.name]})):a[r]=n.name}return!1}}function ar(e,n){return!!(x(e)||M(e)||q(e))&&null!=e.getFields()[n]}function ur(e){const n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(t){const r=t.name.value;return n[r]?e.reportError(new c.eO(`There can be only one fragment named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name,!1}}}function cr(e){const n=[];let t=Object.create(null);return{ObjectValue:{enter(){n.push(t),t=Object.create(null)},leave(){const e=n.pop();e||(0,cn.V)(!1),t=e}},ObjectField(n){const r=n.name.value;t[r]?e.reportError(new c.eO(`There can be only one input field named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name}}}function lr(e){const n=Object.create(null);return{OperationDefinition(t){const r=t.name;return r&&(n[r.value]?e.reportError(new c.eO(`There can be only one operation named "${r.value}".`,{nodes:[n[r.value],r]})):n[r.value]=r),!1},FragmentDefinition:()=>!1}}function pr(e){const n=e.getSchema(),t=Object.create(null),r=n?{query:n.getQueryType(),mutation:n.getMutationType(),subscription:n.getSubscriptionType()}:{};return{SchemaDefinition:o,SchemaExtension:o};function o(n){var o;const i=null!==(o=n.operationTypes)&&void 0!==o?o:[];for(const n of i){const o=n.operation,i=t[o];r[o]?e.reportError(new c.eO(`Type for ${o} already defined in the schema. It cannot be redefined.`,{nodes:n})):i?e.reportError(new c.eO(`There can be only one ${o} type in schema.`,{nodes:[i,n]})):t[o]=n}return!1}}function dr(e){const n=Object.create(null),t=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const o=r.name.value;if(null==t||!t.getType(o))return n[o]?e.reportError(new c.eO(`There can be only one type named "${o}".`,{nodes:[n[o],r.name]})):n[o]=r.name,!1;e.reportError(new c.eO(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}function fr(e){return{OperationDefinition(n){var t;const r=er(null!==(t=n.variableDefinitions)&&void 0!==t?t:[],(e=>e.variable.name.value));for(const[n,t]of r)t.length>1&&e.reportError(new c.eO(`There can be only one variable named "$${n}".`,{nodes:t.map((e=>e.variable.name))}))}}}function mr(e){let n={};return{OperationDefinition:{enter(){n={}}},VariableDefinition(e){n[e.variable.name.value]=e},ListValue(n){if(!Y(fe(e.getParentInputType())))return yr(e,n),!1},ObjectValue(t){const r=he(e.getInputType());if(!q(r))return yr(e,t),!1;const o=h(t.fields,(e=>e.name.value));for(const n of Object.values(r.getFields())){if(!o[n.name]&&ke(n)){const o=(0,u.N)(n.type);e.reportError(new c.eO(`Field "${r.name}.${n.name}" of required type "${o}" was not provided.`,{nodes:t}))}}r.isOneOf&&function(e,n,t,r,o){var i;const s=Object.keys(r);if(1!==s.length)return void e.reportError(new c.eO(`OneOf Input Object "${t.name}" must specify exactly one key.`,{nodes:[n]}));const a=null===(i=r[s[0]])||void 0===i?void 0:i.value,u=!a||a.kind===S.b.NULL,l=(null==a?void 0:a.kind)===S.b.VARIABLE;if(u)return void e.reportError(new c.eO(`Field "${t.name}.${s[0]}" must be non-null.`,{nodes:[n]}));if(l){const r=a.name.value;o[r].type.kind!==S.b.NON_NULL_TYPE&&e.reportError(new c.eO(`Variable "${r}" must be non-nullable to be used for OneOf Input Object "${t.name}".`,{nodes:[n]}))}}(e,t,r,o,n)},ObjectField(n){const t=he(e.getParentInputType());if(!e.getInputType()&&q(t)){const r=O(n.name.value,Object.keys(t.getFields()));e.reportError(new c.eO(`Field "${n.name.value}" is not defined by type "${t.name}".`+d(r),{nodes:n}))}},NullValue(n){const t=e.getInputType();X(t)&&e.reportError(new c.eO(`Expected value of type "${(0,u.N)(t)}", found ${(0,D.y)(n)}.`,{nodes:n}))},EnumValue:n=>yr(e,n),IntValue:n=>yr(e,n),FloatValue:n=>yr(e,n),StringValue:n=>yr(e,n),BooleanValue:n=>yr(e,n)}}function yr(e,n){const t=e.getInputType();if(!t)return;const r=he(t);if(ne(r))try{if(void 0===r.parseLiteral(n,void 0)){const r=(0,u.N)(t);e.reportError(new c.eO(`Expected value of type "${r}", found ${(0,D.y)(n)}.`,{nodes:n}))}}catch(r){const o=(0,u.N)(t);r instanceof c.eO?e.reportError(r):e.reportError(new c.eO(`Expected value of type "${o}", found ${(0,D.y)(n)}; `+r.message,{nodes:n,originalError:r}))}else{const r=(0,u.N)(t);e.reportError(new c.eO(`Expected value of type "${r}", found ${(0,D.y)(n)}.`,{nodes:n}))}}function hr(e){return{VariableDefinition(n){const t=Jn(e.getSchema(),n.type);if(void 0!==t&&!K(t)){const t=n.variable.name.value,r=(0,D.y)(n.type);e.reportError(new c.eO(`Variable "$${t}" cannot be non-input type "${r}".`,{nodes:n.type}))}}}}function vr(e){let n=Object.create(null);return{OperationDefinition:{enter(){n=Object.create(null)},leave(t){const r=e.getRecursiveVariableUsages(t);for(const{node:t,type:o,defaultValue:i}of r){const r=t.name.value,s=n[r];if(s&&o){const n=e.getSchema(),a=Jn(n,s.type);if(a&&!Er(n,a,s.defaultValue,o,i)){const n=(0,u.N)(a),i=(0,u.N)(o);e.reportError(new c.eO(`Variable "$${r}" of type "${n}" used in position expecting type "${i}".`,{nodes:[s,t]}))}}}}},VariableDefinition(e){n[e.variable.name.value]=e}}}function Er(e,n,t,r,o){if(X(r)&&!X(n)){if(!(null!=t&&t.kind!==S.b.NULL)&&!(void 0!==o))return!1;return je(e,n,r.ofType)}return je(e,n,r)}const Tr=Object.freeze([pt]),Nr=Object.freeze([Wn,lr,ut,Wt,st,nt,hr,kt,et,ur,it,mt,Rt,dt,fr,ft,yt,ot,or,tt,tr,mr,Vt,vr,Et,cr,...Tr]),gr=Object.freeze([ct,pr,dr,ir,sr,nr,rr,st,ot,or,At,rt,tr,cr,Ft]);class br{constructor(e,n){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const e of this.getDocument().definitions)e.kind===S.b.FRAGMENT_DEFINITION&&(n[e.name.value]=e);this._fragments=n}return n[e]}getFragmentSpreads(e){let n=this._fragmentSpreads.get(e);if(!n){n=[];const t=[e];let r;for(;r=t.pop();)for(const e of r.selections)e.kind===S.b.FRAGMENT_SPREAD?n.push(e):e.selectionSet&&t.push(e.selectionSet);this._fragmentSpreads.set(e,n)}return n}getRecursivelyReferencedFragments(e){let n=this._recursivelyReferencedFragments.get(e);if(!n){n=[];const t=Object.create(null),r=[e.selectionSet];let o;for(;o=r.pop();)for(const e of this.getFragmentSpreads(o)){const o=e.name.value;if(!0!==t[o]){t[o]=!0;const e=this.getFragment(o);e&&(n.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,n)}return n}}class Or extends br{constructor(e,n,t){super(e,t),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class Ir extends br{constructor(e,n,t,r){super(n,r),this._schema=e,this._typeInfo=t,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let n=this._variableUsages.get(e);if(!n){const t=[],r=new Xn(this._schema);(0,Yn.YR)(e,Kn(r,{VariableDefinition:()=>!1,Variable(e){t.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),n=t,this._variableUsages.set(e,n)}return n}getRecursiveVariableUsages(e){let n=this._recursiveVariableUsages.get(e);if(!n){n=this.getVariableUsages(e);for(const t of this.getRecursivelyReferencedFragments(e))n=n.concat(this.getVariableUsages(t));this._recursiveVariableUsages.set(e,n)}return n}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()}}function _r(e,n,t=Nr,r,o=new Xn(e)){var s;const a=null!==(s=null==r?void 0:r.maxErrors)&&void 0!==s?s:100;n||(0,i.U)(!1,"Must provide document."),Ln(e);const u=Object.freeze({}),l=[],p=new Ir(e,n,o,(e=>{if(l.length>=a)throw l.push(new c.eO("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(e)})),d=(0,Yn.oP)(t.map((e=>e(p))));try{(0,Yn.YR)(n,Kn(o,d))}catch(e){if(e!==u)throw e}return l}function wr(e,n,t=gr){const r=[],o=new Or(e,n,(e=>{r.push(e)})),i=t.map((e=>e(o)));return(0,Yn.YR)(e,(0,Yn.oP)(i)),r}function Sr(e){return Promise.all(Object.values(e)).then((n=>{const t=Object.create(null);for(const[r,o]of Object.keys(e).entries())t[o]=n[r];return t}))}class Dr extends Error{constructor(e){super("Unexpected error value: "+(0,u.N)(e)),this.name="NonErrorThrown",this.thrownValue=e}}function $r(e,n,t){var r;const o=(i=e)instanceof Error?i:new Dr(i);var i,s;return s=o,Array.isArray(s.path)?o:new c.eO(o.message,{nodes:null!==(r=o.nodes)&&void 0!==r?r:n,source:o.source,positions:o.positions,path:t,originalError:o})}const Rr=function(e){let n;return function(t,r,o){void 0===n&&(n=new WeakMap);let i=n.get(t);void 0===i&&(i=new WeakMap,n.set(t,i));let s=i.get(r);void 0===s&&(s=new WeakMap,i.set(r,s));let a=s.get(o);return void 0===a&&(a=e(t,r,o),s.set(o,a)),a}}(((e,n,t)=>function(e,n,t,r,o){const i=new Map,s=new Set;for(const a of o)a.selectionSet&&zt(e,n,t,r,a.selectionSet,i,s);return i}(e.schema,e.fragments,e.variableValues,n,t)));function Ar(e){arguments.length<2||(0,i.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:n,document:t,variableValues:r,rootValue:o}=e;Fr(n,t,r);const a=Ur(e);if(!("schema"in a))return{errors:a};try{const{operation:e}=a,n=function(e,n,t){const r=e.schema.getRootType(n.operation);if(null==r)throw new c.eO(`Schema is not configured to execute ${n.operation} operation.`,{nodes:n});const o=Xt(e.schema,e.fragments,e.variableValues,r,n.selectionSet),i=void 0;switch(n.operation){case l.cE.QUERY:return kr(e,r,t,i,o);case l.cE.MUTATION:return function(e,n,t,r,o){return function(e,n,t){let r=t;for(const t of e)r=s(r)?r.then((e=>n(e,t))):n(r,t);return r}(o.entries(),((o,[i,a])=>{const u=jt(r,i,n.name),c=xr(e,n,t,a,u);return void 0===c?o:s(c)?c.then((e=>(o[i]=e,o))):(o[i]=c,o)}),Object.create(null))}(e,r,t,i,o);case l.cE.SUBSCRIPTION:return kr(e,r,t,i,o)}}(a,e,o);return s(n)?n.then((e=>Vr(e,a.errors)),(e=>(a.errors.push(e),Vr(null,a.errors)))):Vr(n,a.errors)}catch(e){return a.errors.push(e),Vr(null,a.errors)}}function Lr(e){const n=Ar(e);if(s(n))throw new Error("GraphQL execution failed to complete synchronously.");return n}function Vr(e,n){return 0===n.length?{data:e}:{errors:n,data:e}}function Fr(e,n,t){n||(0,i.U)(!1,"Must provide document."),Ln(e),null==t||(0,y.Z)(t)||(0,i.U)(!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 Ur(e){var n,t;const{schema:r,document:o,rootValue:i,contextValue:s,variableValues:a,operationName:u,fieldResolver:l,typeResolver:p,subscribeFieldResolver:d}=e;let f;const m=Object.create(null);for(const e of o.definitions)switch(e.kind){case S.b.OPERATION_DEFINITION:if(null==u){if(void 0!==f)return[new c.eO("Must provide operation name if query contains multiple operations.")];f=e}else(null===(n=e.name)||void 0===n?void 0:n.value)===u&&(f=e);break;case S.b.FRAGMENT_DEFINITION:m[e.name.value]=e}if(!f)return null!=u?[new c.eO(`Unknown operation named "${u}".`)]:[new c.eO("Must provide an operation.")];const y=qt(r,null!==(t=f.variableDefinitions)&&void 0!==t?t:[],null!=a?a:{},{maxErrors:50});return y.errors?y.errors:{schema:r,fragments:m,rootValue:i,contextValue:s,operation:f,variableValues:y.coerced,fieldResolver:null!=l?l:qr,typeResolver:null!=p?p:Qr,subscribeFieldResolver:null!=d?d:qr,errors:[]}}function kr(e,n,t,r,o){const i=Object.create(null);let a=!1;try{for(const[u,c]of o.entries()){const o=xr(e,n,t,c,jt(r,u,n.name));void 0!==o&&(i[u]=o,s(o)&&(a=!0))}}catch(e){if(a)return Sr(i).finally((()=>{throw e}));throw e}return a?Sr(i):i}function xr(e,n,t,r,o){var i;const a=Hr(e.schema,n,r[0]);if(!a)return;const u=a.type,c=null!==(i=a.resolve)&&void 0!==i?i:e.fieldResolver,l=jr(e,a,r,n,o);try{const n=Ht(a,r[0],e.variableValues),i=c(t,n,e.contextValue,l);let p;return p=s(i)?i.then((n=>Cr(e,u,r,l,o,n))):Cr(e,u,r,l,o,i),s(p)?p.then(void 0,(n=>Mr($r(n,r,Mt(o)),u,e))):p}catch(n){return Mr($r(n,r,Mt(o)),u,e)}}function jr(e,n,t,r,o){return{fieldName:n.name,fieldNodes:t,returnType:n.type,parentType:r,path:o,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Mr(e,n,t){if(X(n))throw e;return t.errors.push(e),null}function Cr(e,n,t,r,o,i){if(i instanceof Error)throw i;if(X(n)){const s=Cr(e,n.ofType,t,r,o,i);if(null===s)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return s}return null==i?null:Y(n)?function(e,n,t,r,o,i){if(!ln(i))throw new c.eO(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const a=n.ofType;let u=!1;const l=Array.from(i,((n,i)=>{const c=jt(o,i,void 0);try{let o;return o=s(n)?n.then((n=>Cr(e,a,t,r,c,n))):Cr(e,a,t,r,c,n),s(o)?(u=!0,o.then(void 0,(n=>Mr($r(n,t,Mt(c)),a,e)))):o}catch(n){return Mr($r(n,t,Mt(c)),a,e)}}));return u?Promise.all(l):l}(e,n,t,r,o,i):ne(n)?function(e,n){const t=e.serialize(n);if(null==t)throw new Error(`Expected \`${(0,u.N)(e)}.serialize(${(0,u.N)(n)})\` to return non-nullable value, returned: ${(0,u.N)(t)}`);return t}(n,i):ie(n)?function(e,n,t,r,o,i){var a;const u=null!==(a=n.resolveType)&&void 0!==a?a:e.typeResolver,c=e.contextValue,l=u(i,c,r,n);if(s(l))return l.then((s=>Gr(e,Pr(s,e,n,t,r,i),t,r,o,i)));return Gr(e,Pr(l,e,n,t,r,i),t,r,o,i)}(e,n,t,r,o,i):x(n)?Gr(e,n,t,r,o,i):void(0,cn.V)(!1,"Cannot complete value of unexpected output type: "+(0,u.N)(n))}function Pr(e,n,t,r,o,i){if(null==e)throw new c.eO(`Abstract type "${t.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}". Either the "${t.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(x(e))throw new c.eO("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new c.eO(`Abstract type "${t.name}" must resolve to an Object type at runtime for field "${o.parentType.name}.${o.fieldName}" with value ${(0,u.N)(i)}, received "${(0,u.N)(e)}".`);const s=n.schema.getType(e);if(null==s)throw new c.eO(`Abstract type "${t.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!x(s))throw new c.eO(`Abstract type "${t.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!n.schema.isSubType(t,s))throw new c.eO(`Runtime Object type "${s.name}" is not a possible type for "${t.name}".`,{nodes:r});return s}function Gr(e,n,t,r,o,i){const a=Rr(e,n,t);if(n.isTypeOf){const u=n.isTypeOf(i,e.contextValue,r);if(s(u))return u.then((r=>{if(!r)throw Br(n,i,t);return kr(e,n,i,o,a)}));if(!u)throw Br(n,i,t)}return kr(e,n,i,o,a)}function Br(e,n,t){return new c.eO(`Expected value of type "${e.name}" but got: ${(0,u.N)(n)}.`,{nodes:t})}const Qr=function(e,n,t,r){if((0,y.Z)(e)&&"string"==typeof e.__typename)return e.__typename;const o=t.schema.getPossibleTypes(r),i=[];for(let r=0;r<o.length;r++){const a=o[r];if(a.isTypeOf){const o=a.isTypeOf(e,n,t);if(s(o))i[r]=o;else if(o)return a.name}}return i.length?Promise.all(i).then((e=>{for(let n=0;n<e.length;n++)if(e[n])return o[n].name})):void 0},qr=function(e,n,t,r){if((0,y.Z)(e)||"function"==typeof e){const o=e[r.fieldName];return"function"==typeof o?e[r.fieldName](n,t,r):o}};function Hr(e,n,t){const r=t.name.value;return r===bn.name&&e.getQueryType()===n?bn:r===On.name&&e.getQueryType()===n?On:r===In.name?In:n.getFields()[r]}function Yr(e){return new Promise((n=>n(Xr(e))))}function Jr(e){const n=Xr(e);if(s(n))throw new Error("GraphQL execution failed to complete synchronously.");return n}function Xr(e){arguments.length<2||(0,i.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:n,source:t,rootValue:r,contextValue:o,variableValues:s,operationName:u,fieldResolver:c,typeResolver:l}=e,p=An(n);if(p.length>0)return{errors:p};let d;try{d=(0,a.qg)(t)}catch(e){return{errors:[e]}}const f=_r(n,d);return f.length>0?{errors:f}:Ar({schema:n,document:d,rootValue:r,contextValue:o,variableValues:s,operationName:u,fieldResolver:c,typeResolver:l})}var zr=t(4954),Kr=t(8160),Zr=t(3143),Wr=t(5009),eo=t(590);function no(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function to(e){arguments.length<2||(0,i.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const n=await ro(e);if(!no(n))return n;return function(e,n){const t=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await n(e.value),done:!1}}catch(e){if("function"==typeof t.return)try{await t.return()}catch(e){}throw e}}return{next:async()=>r(await t.next()),return:async()=>"function"==typeof t.return?r(await t.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof t.throw)return r(await t.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(n,(n=>Ar({...e,rootValue:n})))}async function ro(...e){const n=function(e){const n=e[0];return n&&"document"in n?n:{schema:n,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:t,document:r,variableValues:o}=n;Fr(t,r,o);const i=Ur(n);if(!("schema"in i))return{errors:i};try{const e=await async function(e){const{schema:n,fragments:t,operation:r,variableValues:o,rootValue:i}=e,s=n.getSubscriptionType();if(null==s)throw new c.eO("Schema is not configured to execute subscription operation.",{nodes:r});const a=Xt(n,t,o,s,r.selectionSet),[u,l]=[...a.entries()][0],p=Hr(n,s,l[0]);if(!p){const e=l[0].name.value;throw new c.eO(`The subscription field "${e}" is not defined.`,{nodes:l})}const d=jt(void 0,u,s.name),f=jr(e,p,l,s,d);try{var m;const n=Ht(p,l[0],o),t=e.contextValue,r=null!==(m=p.subscribe)&&void 0!==m?m:e.subscribeFieldResolver,s=await r(i,n,t,f);if(s instanceof Error)throw s;return s}catch(e){throw $r(e,l,Mt(d))}}(i);if(!no(e))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,u.N)(e)}.`);return e}catch(e){if(e instanceof c.eO)return{errors:[e]};throw e}}function oo(e){return{Field(n){const t=e.getFieldDef(),r=null==t?void 0:t.deprecationReason;if(t&&null!=r){const o=e.getParentType();null!=o||(0,cn.V)(!1),e.reportError(new c.eO(`The field ${o.name}.${t.name} is deprecated. ${r}`,{nodes:n}))}},Argument(n){const t=e.getArgument(),r=null==t?void 0:t.deprecationReason;if(t&&null!=r){const o=e.getDirective();if(null!=o)e.reportError(new c.eO(`Directive "@${o.name}" argument "${t.name}" is deprecated. ${r}`,{nodes:n}));else{const o=e.getParentType(),i=e.getFieldDef();null!=o&&null!=i||(0,cn.V)(!1),e.reportError(new c.eO(`Field "${o.name}.${i.name}" argument "${t.name}" is deprecated. ${r}`,{nodes:n}))}}},ObjectField(n){const t=he(e.getParentInputType());if(q(t)){const r=t.getFields()[n.name.value],o=null==r?void 0:r.deprecationReason;null!=o&&e.reportError(new c.eO(`The input field ${t.name}.${r.name} is deprecated. ${o}`,{nodes:n}))}},EnumValue(n){const t=e.getEnumValue(),r=null==t?void 0:t.deprecationReason;if(t&&null!=r){const o=he(e.getInputType());null!=o||(0,cn.V)(!1),e.reportError(new c.eO(`The enum value "${o.name}.${t.name}" is deprecated. ${r}`,{nodes:n}))}}}}function io(e){return{Field(n){const t=he(e.getType());t&&wn(t)&&e.reportError(new c.eO(`GraphQL introspection has been disabled, but the requested query contained the field "${n.name.value}".`,{nodes:n}))}}}var so=t(9738);function ao(e){const n={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},t=n.descriptions?"description":"",r=n.specifiedByUrl?"specifiedByURL":"",o=n.directiveIsRepeatable?"isRepeatable":"",i=n.schemaDescription?t:"";function s(e){return n.inputValueDeprecation?e:""}const a=n.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${i}\n queryType { name kind }\n mutationType { name kind }\n subscriptionType { name kind }\n types {\n ...FullType\n }\n directives {\n name\n ${t}\n ${o}\n locations\n args${s("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${t}\n ${r}\n ${a}\n fields(includeDeprecated: true) {\n name\n ${t}\n args${s("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${s("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${t}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${t}\n type { ...TypeRef }\n defaultValue\n ${s("isDeprecated")}\n ${s("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}function uo(e,n){let t=null;for(const o of e.definitions){var r;if(o.kind===S.b.OPERATION_DEFINITION)if(null==n){if(t)return null;t=o}else if((null===(r=o.name)||void 0===r?void 0:r.value)===n)return o}return t}function co(e,n){if("query"===n.operation){const t=e.getQueryType();if(!t)throw new c.eO("Schema does not define the required query root type.",{nodes:n});return t}if("mutation"===n.operation){const t=e.getMutationType();if(!t)throw new c.eO("Schema is not configured for mutations.",{nodes:n});return t}if("subscription"===n.operation){const t=e.getSubscriptionType();if(!t)throw new c.eO("Schema is not configured for subscriptions.",{nodes:n});return t}throw new c.eO("Can only have query, mutation and subscription operations.",{nodes:n})}function lo(e,n){const t={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...n},r=Lr({schema:e,document:(0,a.qg)(ao(t))});return!r.errors&&r.data||(0,cn.V)(!1),r.data}function po(e,n){(0,y.Z)(e)&&(0,y.Z)(e.__schema)||(0,i.U)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,u.N)(e)}.`);const t=e.__schema,r=v(t.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case Nn.SCALAR:return new Te({name:(r=e).name,description:r.description,specifiedByURL:r.specifiedByURL});case Nn.OBJECT:return new Ne({name:(t=e).name,description:t.description,interfaces:()=>h(t),fields:()=>E(t)});case Nn.INTERFACE:return new De({name:(n=e).name,description:n.description,interfaces:()=>h(n),fields:()=>E(n)});case Nn.UNION:return function(e){if(!e.possibleTypes){const n=(0,u.N)(e);throw new Error(`Introspection result missing possibleTypes: ${n}.`)}return new $e({name:e.name,description:e.description,types:()=>e.possibleTypes.map(f)})}(e);case Nn.ENUM:return function(e){if(!e.enumValues){const n=(0,u.N)(e);throw new Error(`Introspection result missing enumValues: ${n}.`)}return new Ae({name:e.name,description:e.description,values:v(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case Nn.INPUT_OBJECT:return function(e){if(!e.inputFields){const n=(0,u.N)(e);throw new Error(`Introspection result missing inputFields: ${n}.`)}return new Fe({name:e.name,description:e.description,fields:()=>N(e.inputFields),isOneOf:e.isOneOf})}(e)}var n;var t;var r;const o=(0,u.N)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${o}.`)}(e)));for(const e of[...Je,..._n])r[e.name]&&(r[e.name]=e);const o=t.queryType?f(t.queryType):null,s=t.mutationType?f(t.mutationType):null,c=t.subscriptionType?f(t.subscriptionType):null,l=t.directives?t.directives.map((function(e){if(!e.args){const n=(0,u.N)(e);throw new Error(`Introspection result missing directive args: ${n}.`)}if(!e.locations){const n=(0,u.N)(e);throw new Error(`Introspection result missing directive locations: ${n}.`)}return new We({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:N(e.args)})})):[];return new $n({description:t.description,query:o,mutation:s,subscription:c,types:Object.values(r),directives:l,assumeValid:null==n?void 0:n.assumeValid});function p(e){if(e.kind===Nn.LIST){const n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");return new ae(p(n))}if(e.kind===Nn.NON_NULL){const n=e.ofType;if(!n)throw new Error("Decorated type deeper than introspection query.");const t=p(n);return new ue(de(t))}return d(e)}function d(e){const n=e.name;if(!n)throw new Error(`Unknown type reference: ${(0,u.N)(e)}.`);const t=r[n];if(!t)throw new Error(`Invalid or incomplete schema, unknown type: ${n}. Ensure that a full introspection query is used in order to build a client schema.`);return t}function f(e){return j(d(e))}function m(e){return C(d(e))}function h(e){if(null===e.interfaces&&e.kind===Nn.INTERFACE)return[];if(!e.interfaces){const n=(0,u.N)(e);throw new Error(`Introspection result missing interfaces: ${n}.`)}return e.interfaces.map(m)}function E(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${(0,u.N)(e)}.`);return v(e.fields,(e=>e.name),T)}function T(e){const n=p(e.type);if(!W(n)){const e=(0,u.N)(n);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const n=(0,u.N)(e);throw new Error(`Introspection result missing field args: ${n}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:n,args:N(e.args)}}function N(e){return v(e,(e=>e.name),g)}function g(e){const n=p(e.type);if(!K(n)){const e=(0,u.N)(n);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const t=null!=e.defaultValue?Bt((0,a.$x)(e.defaultValue),n):void 0;return{description:e.description,type:n,defaultValue:t,deprecationReason:e.deprecationReason}}}function fo(e,n,t){Dn(e),null!=n&&n.kind===S.b.DOCUMENT||(0,i.U)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e,n){const t=wr(e,n);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}(n,e);const r=e.toConfig(),o=mo(r,n,t);return r===o?e:new $n(o)}function mo(e,n,t){var r,o,i,s;const a=[],c=Object.create(null),l=[];let p;const d=[];for(const e of n.definitions)if(e.kind===S.b.SCHEMA_DEFINITION)p=e;else if(e.kind===S.b.SCHEMA_EXTENSION)d.push(e);else if((0,Zn.a6)(e))a.push(e);else if((0,Zn.i7)(e)){const n=e.name.value,t=c[n];c[n]=t?t.concat([e]):[e]}else e.kind===S.b.DIRECTIVE_DEFINITION&&l.push(e);if(0===Object.keys(c).length&&0===a.length&&0===l.length&&0===d.length&&null==p)return e;const f=Object.create(null);for(const n of e.types)f[n.name]=T(n);for(const e of a){var m;const n=e.name.value;f[n]=null!==(m=yo[n])&&void 0!==m?m:L(e)}const y={query:e.query&&v(e.query),mutation:e.mutation&&v(e.mutation),subscription:e.subscription&&v(e.subscription),...p&&b([p]),...b(d)};return{description:null===(r=p)||void 0===r||null===(o=r.description)||void 0===o?void 0:o.value,...y,types:Object.values(f),directives:[...e.directives.map((function(e){const n=e.toConfig();return new We({...n,args:E(n.args,g)})})),...l.map((function(e){var n;return new We({name:e.name.value,description:null===(n=e.description)||void 0===n?void 0:n.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:w(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(i=p)&&void 0!==i?i:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:null!==(s=null==t?void 0:t.assumeValid)&&void 0!==s&&s};function h(e){return Y(e)?new ae(h(e.ofType)):X(e)?new ue(h(e.ofType)):v(e)}function v(e){return f[e.name]}function T(e){return wn(e)||Xe(e)?e:U(e)?function(e){var n;const t=e.toConfig(),r=null!==(n=c[t.name])&&void 0!==n?n:[];let o=t.specifiedByURL;for(const e of r){var i;o=null!==(i=vo(e))&&void 0!==i?i:o}return new Te({...t,specifiedByURL:o,extensionASTNodes:t.extensionASTNodes.concat(r)})}(e):x(e)?function(e){var n;const t=e.toConfig(),r=null!==(n=c[t.name])&&void 0!==n?n:[];return new Ne({...t,interfaces:()=>[...e.getInterfaces().map(v),...R(r)],fields:()=>({...E(t.fields,N),..._(r)}),extensionASTNodes:t.extensionASTNodes.concat(r)})}(e):M(e)?function(e){var n;const t=e.toConfig(),r=null!==(n=c[t.name])&&void 0!==n?n:[];return new De({...t,interfaces:()=>[...e.getInterfaces().map(v),...R(r)],fields:()=>({...E(t.fields,N),..._(r)}),extensionASTNodes:t.extensionASTNodes.concat(r)})}(e):P(e)?function(e){var n;const t=e.toConfig(),r=null!==(n=c[t.name])&&void 0!==n?n:[];return new $e({...t,types:()=>[...e.getTypes().map(v),...A(r)],extensionASTNodes:t.extensionASTNodes.concat(r)})}(e):B(e)?function(e){var n;const t=e.toConfig(),r=null!==(n=c[e.name])&&void 0!==n?n:[];return new Ae({...t,values:{...t.values,...$(r)},extensionASTNodes:t.extensionASTNodes.concat(r)})}(e):q(e)?function(e){var n;const t=e.toConfig(),r=null!==(n=c[t.name])&&void 0!==n?n:[];return new Fe({...t,fields:()=>({...E(t.fields,(e=>({...e,type:h(e.type)}))),...D(r)}),extensionASTNodes:t.extensionASTNodes.concat(r)})}(e):void(0,cn.V)(!1,"Unexpected type: "+(0,u.N)(e))}function N(e){return{...e,type:h(e.type),args:e.args&&E(e.args,g)}}function g(e){return{...e,type:h(e.type)}}function b(e){const n={};for(const r of e){var t;const e=null!==(t=r.operationTypes)&&void 0!==t?t:[];for(const t of e)n[t.operation]=O(t.type)}return n}function O(e){var n;const t=e.name.value,r=null!==(n=yo[t])&&void 0!==n?n:f[t];if(void 0===r)throw new Error(`Unknown type: "${t}".`);return r}function I(e){return e.kind===S.b.LIST_TYPE?new ae(I(e.type)):e.kind===S.b.NON_NULL_TYPE?new ue(I(e.type)):O(e)}function _(e){const n=Object.create(null);for(const o of e){var t;const e=null!==(t=o.fields)&&void 0!==t?t:[];for(const t of e){var r;n[t.name.value]={type:I(t.type),description:null===(r=t.description)||void 0===r?void 0:r.value,args:w(t.arguments),deprecationReason:ho(t),astNode:t}}}return n}function w(e){const n=null!=e?e:[],t=Object.create(null);for(const e of n){var r;const n=I(e.type);t[e.name.value]={type:n,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:Bt(e.defaultValue,n),deprecationReason:ho(e),astNode:e}}return t}function D(e){const n=Object.create(null);for(const o of e){var t;const e=null!==(t=o.fields)&&void 0!==t?t:[];for(const t of e){var r;const e=I(t.type);n[t.name.value]={type:e,description:null===(r=t.description)||void 0===r?void 0:r.value,defaultValue:Bt(t.defaultValue,e),deprecationReason:ho(t),astNode:t}}}return n}function $(e){const n=Object.create(null);for(const o of e){var t;const e=null!==(t=o.values)&&void 0!==t?t:[];for(const t of e){var r;n[t.name.value]={description:null===(r=t.description)||void 0===r?void 0:r.value,deprecationReason:ho(t),astNode:t}}}return n}function R(e){return e.flatMap((e=>{var n,t;return null!==(n=null===(t=e.interfaces)||void 0===t?void 0:t.map(O))&&void 0!==n?n:[]}))}function A(e){return e.flatMap((e=>{var n,t;return null!==(n=null===(t=e.types)||void 0===t?void 0:t.map(O))&&void 0!==n?n:[]}))}function L(e){var n;const t=e.name.value,r=null!==(n=c[t])&&void 0!==n?n:[];switch(e.kind){case S.b.OBJECT_TYPE_DEFINITION:{var o;const n=[e,...r];return new Ne({name:t,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>R(n),fields:()=>_(n),astNode:e,extensionASTNodes:r})}case S.b.INTERFACE_TYPE_DEFINITION:{var i;const n=[e,...r];return new De({name:t,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>R(n),fields:()=>_(n),astNode:e,extensionASTNodes:r})}case S.b.ENUM_TYPE_DEFINITION:{var s;const n=[e,...r];return new Ae({name:t,description:null===(s=e.description)||void 0===s?void 0:s.value,values:$(n),astNode:e,extensionASTNodes:r})}case S.b.UNION_TYPE_DEFINITION:{var a;const n=[e,...r];return new $e({name:t,description:null===(a=e.description)||void 0===a?void 0:a.value,types:()=>A(n),astNode:e,extensionASTNodes:r})}case S.b.SCALAR_TYPE_DEFINITION:var u;return new Te({name:t,description:null===(u=e.description)||void 0===u?void 0:u.value,specifiedByURL:vo(e),astNode:e,extensionASTNodes:r});case S.b.INPUT_OBJECT_TYPE_DEFINITION:{var l;const n=[e,...r];return new Fe({name:t,description:null===(l=e.description)||void 0===l?void 0:l.value,fields:()=>D(n),astNode:e,extensionASTNodes:r,isOneOf:(p=e,Boolean(Yt(sn,p)))})}}var p}}const yo=h([...Je,..._n],(e=>e.name));function ho(e){const n=Yt(rn,e);return null==n?void 0:n.reason}function vo(e){const n=Yt(on,e);return null==n?void 0:n.url}function Eo(e,n){null!=e&&e.kind===S.b.DOCUMENT||(0,i.U)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e){const n=wr(e);if(0!==n.length)throw new Error(n.map((e=>e.message)).join("\n\n"))}(e);const t=mo({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,n);if(null==t.astNode)for(const e of t.types)switch(e.name){case"Query":t.query=e;break;case"Mutation":t.mutation=e;break;case"Subscription":t.subscription=e}const r=[...t.directives,...an.filter((e=>t.directives.every((n=>n.name!==e.name))))];return new $n({...t,directives:r})}function To(e,n){return Eo((0,a.qg)(e,{noLocation:null==n?void 0:n.noLocation,allowLegacyFragmentVariables:null==n?void 0:n.allowLegacyFragmentVariables}),{assumeValidSDL:null==n?void 0:n.assumeValidSDL,assumeValid:null==n?void 0:n.assumeValid})}function No(e){const n=e.toConfig(),t=v(bo(n.types),(e=>e.name),(function(e){if(U(e)||wn(e))return e;if(x(e)){const n=e.toConfig();return new Ne({...n,interfaces:()=>c(n.interfaces),fields:()=>a(n.fields)})}if(M(e)){const n=e.toConfig();return new De({...n,interfaces:()=>c(n.interfaces),fields:()=>a(n.fields)})}if(P(e)){const n=e.toConfig();return new $e({...n,types:()=>c(n.types)})}if(B(e)){const n=e.toConfig();return new Ae({...n,values:go(n.values,(e=>e))})}if(q(e)){const n=e.toConfig();return new Fe({...n,fields:()=>go(n.fields,(e=>({...e,type:r(e.type)})))})}(0,cn.V)(!1,"Unexpected type: "+(0,u.N)(e))}));return new $n({...n,types:Object.values(t),directives:bo(n.directives).map((function(e){const n=e.toConfig();return new We({...n,locations:Oo(n.locations,(e=>e)),args:s(n.args)})})),query:i(n.query),mutation:i(n.mutation),subscription:i(n.subscription)});function r(e){return Y(e)?new ae(r(e.ofType)):X(e)?new ue(r(e.ofType)):o(e)}function o(e){return t[e.name]}function i(e){return e&&o(e)}function s(e){return go(e,(e=>({...e,type:r(e.type)})))}function a(e){return go(e,(e=>({...e,type:r(e.type),args:e.args&&s(e.args)})))}function c(e){return bo(e).map(o)}}function go(e,n){const t=Object.create(null);for(const r of Object.keys(e).sort(T))t[r]=n(e[r]);return t}function bo(e){return Oo(e,(e=>e.name))}function Oo(e,n){return e.slice().sort(((e,t)=>T(n(e),n(t))))}var Io,_o,wo=t(5995);function So(e){return Ro(e,(e=>!un(e)),$o)}function Do(e){return Ro(e,un,wn)}function $o(e){return!Xe(e)&&!wn(e)}function Ro(e,n,t){const r=e.getDirectives().filter(n),o=Object.values(e.getTypeMap()).filter(t);return[Ao(e),...r.map((e=>function(e){return Mo(e)+"directive @"+e.name+ko(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...o.map((e=>Lo(e)))].filter(Boolean).join("\n\n")}function Ao(e){if(null==e.description&&function(e){const n=e.getQueryType();if(n&&"Query"!==n.name)return!1;const t=e.getMutationType();if(t&&"Mutation"!==t.name)return!1;const r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e))return;const n=[],t=e.getQueryType();t&&n.push(` query: ${t.name}`);const r=e.getMutationType();r&&n.push(` mutation: ${r.name}`);const o=e.getSubscriptionType();return o&&n.push(` subscription: ${o.name}`),Mo(e)+`schema {\n${n.join("\n")}\n}`}function Lo(e){return U(e)?function(e){return Mo(e)+`scalar ${e.name}`+function(e){if(null==e.specifiedByURL)return"";return` @specifiedBy(url: ${(0,D.y)({kind:S.b.STRING,value:e.specifiedByURL})})`}(e)}(e):x(e)?function(e){return Mo(e)+`type ${e.name}`+Vo(e)+Fo(e)}(e):M(e)?function(e){return Mo(e)+`interface ${e.name}`+Vo(e)+Fo(e)}(e):P(e)?function(e){const n=e.getTypes(),t=n.length?" = "+n.join(" | "):"";return Mo(e)+"union "+e.name+t}(e):B(e)?function(e){const n=e.getValues().map(((e,n)=>Mo(e," ",!n)+" "+e.name+jo(e.deprecationReason)));return Mo(e)+`enum ${e.name}`+Uo(n)}(e):q(e)?function(e){const n=Object.values(e.getFields()).map(((e,n)=>Mo(e," ",!n)+" "+xo(e)));return Mo(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+Uo(n)}(e):void(0,cn.V)(!1,"Unexpected type: "+(0,u.N)(e))}function Vo(e){const n=e.getInterfaces();return n.length?" implements "+n.map((e=>e.name)).join(" & "):""}function Fo(e){return Uo(Object.values(e.getFields()).map(((e,n)=>Mo(e," ",!n)+" "+e.name+ko(e.args," ")+": "+String(e.type)+jo(e.deprecationReason))))}function Uo(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function ko(e,n=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(xo).join(", ")+")":"(\n"+e.map(((e,t)=>Mo(e," "+n,!t)+" "+n+xo(e))).join("\n")+"\n"+n+")"}function xo(e){const n=pn(e.defaultValue,e.type);let t=e.name+": "+String(e.type);return n&&(t+=` = ${(0,D.y)(n)}`),t+jo(e.deprecationReason)}function jo(e){if(null==e)return"";if(e!==tn){return` @deprecated(reason: ${(0,D.y)({kind:S.b.STRING,value:e})})`}return" @deprecated"}function Mo(e,n="",t=!0){const{description:r}=e;if(null==r)return"";return(n&&!t?"\n"+n:n)+(0,D.y)({kind:S.b.STRING,value:r,block:(0,wo.CS)(r)}).replace(/\n/g,"\n"+n)+"\n"}function Co(e){const n=[];for(const t of e)n.push(...t.definitions);return{kind:S.b.DOCUMENT,definitions:n}}function Po(e){const n=[],t=Object.create(null);for(const r of e.definitions)switch(r.kind){case S.b.OPERATION_DEFINITION:n.push(r);break;case S.b.FRAGMENT_DEFINITION:t[r.name.value]=Bo(r.selectionSet)}const r=Object.create(null);for(const o of n){const n=new Set;for(const e of Bo(o.selectionSet))Go(n,t,e);r[o.name?o.name.value:""]={kind:S.b.DOCUMENT,definitions:e.definitions.filter((e=>e===o||e.kind===S.b.FRAGMENT_DEFINITION&&n.has(e.name.value)))}}return r}function Go(e,n,t){if(!e.has(t)){e.add(t);const r=n[t];if(void 0!==r)for(const t of r)Go(e,n,t)}}function Bo(e){const n=[];return(0,Yn.YR)(e,{FragmentSpread(e){n.push(e.name.value)}}),n}function Qo(e){const n=(0,zr._)(e)?e:new zr.k(e),t=n.body,r=new Wr.J(n);let o="",i=!1;for(;r.advance().kind!==eo.Y.EOF;){const e=r.token,n=e.kind,s=!(0,Wr.Z)(e.kind);i&&(s||e.kind===eo.Y.SPREAD)&&(o+=" ");const a=t.slice(e.start,e.end);n===eo.Y.BLOCK_STRING?o+=(0,wo.yo)(e.value,{minimize:!0}):o+=a,i=s}return o}function qo(e){const n=Ho(e);if(n)throw n;return e}function Ho(e){if("string"==typeof e||(0,i.U)(!1,"Expected name to be a string."),e.startsWith("__"))return new c.eO(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{A(e)}catch(e){return e}}function Yo(e,n){return Xo(e,n).filter((e=>e.type in Io))}function Jo(e,n){return Xo(e,n).filter((e=>e.type in _o))}function Xo(e,n){return[...Ko(e,n),...zo(e,n)]}function zo(e,n){const t=[],r=ui(e.getDirectives(),n.getDirectives());for(const e of r.removed)t.push({type:Io.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,n]of r.persisted){const r=ui(e.args,n.args);for(const n of r.added)Se(n)&&t.push({type:Io.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${n.name} on directive ${e.name} was added.`});for(const n of r.removed)t.push({type:Io.DIRECTIVE_ARG_REMOVED,description:`${n.name} was removed from ${e.name}.`});e.isRepeatable&&!n.isRepeatable&&t.push({type:Io.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const r of e.locations)n.locations.includes(r)||t.push({type:Io.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return t}function Ko(e,n){const t=[],r=ui(Object.values(e.getTypeMap()),Object.values(n.getTypeMap()));for(const e of r.removed)t.push({type:Io.TYPE_REMOVED,description:Xe(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,n]of r.persisted)B(e)&&B(n)?t.push(...ei(e,n)):P(e)&&P(n)?t.push(...Wo(e,n)):q(e)&&q(n)?t.push(...Zo(e,n)):x(e)&&x(n)||M(e)&&M(n)?t.push(...ti(e,n),...ni(e,n)):e.constructor!==n.constructor&&t.push({type:Io.TYPE_CHANGED_KIND,description:`${e.name} changed from ${si(e)} to ${si(n)}.`});return t}function Zo(e,n){const t=[],r=ui(Object.values(e.getFields()),Object.values(n.getFields()));for(const n of r.added)ke(n)?t.push({type:Io.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${n.name} on input type ${e.name} was added.`}):t.push({type:_o.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${n.name} on input type ${e.name} was added.`});for(const n of r.removed)t.push({type:Io.FIELD_REMOVED,description:`${e.name}.${n.name} was removed.`});for(const[n,o]of r.persisted){ii(n.type,o.type)||t.push({type:Io.FIELD_CHANGED_KIND,description:`${e.name}.${n.name} changed type from ${String(n.type)} to ${String(o.type)}.`})}return t}function Wo(e,n){const t=[],r=ui(e.getTypes(),n.getTypes());for(const n of r.added)t.push({type:_o.TYPE_ADDED_TO_UNION,description:`${n.name} was added to union type ${e.name}.`});for(const n of r.removed)t.push({type:Io.TYPE_REMOVED_FROM_UNION,description:`${n.name} was removed from union type ${e.name}.`});return t}function ei(e,n){const t=[],r=ui(e.getValues(),n.getValues());for(const n of r.added)t.push({type:_o.VALUE_ADDED_TO_ENUM,description:`${n.name} was added to enum type ${e.name}.`});for(const n of r.removed)t.push({type:Io.VALUE_REMOVED_FROM_ENUM,description:`${n.name} was removed from enum type ${e.name}.`});return t}function ni(e,n){const t=[],r=ui(e.getInterfaces(),n.getInterfaces());for(const n of r.added)t.push({type:_o.IMPLEMENTED_INTERFACE_ADDED,description:`${n.name} added to interfaces implemented by ${e.name}.`});for(const n of r.removed)t.push({type:Io.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${n.name}.`});return t}function ti(e,n){const t=[],r=ui(Object.values(e.getFields()),Object.values(n.getFields()));for(const n of r.removed)t.push({type:Io.FIELD_REMOVED,description:`${e.name}.${n.name} was removed.`});for(const[n,o]of r.persisted){t.push(...ri(e,n,o));oi(n.type,o.type)||t.push({type:Io.FIELD_CHANGED_KIND,description:`${e.name}.${n.name} changed type from ${String(n.type)} to ${String(o.type)}.`})}return t}function ri(e,n,t){const r=[],o=ui(n.args,t.args);for(const t of o.removed)r.push({type:Io.ARG_REMOVED,description:`${e.name}.${n.name} arg ${t.name} was removed.`});for(const[t,i]of o.persisted){if(ii(t.type,i.type)){if(void 0!==t.defaultValue)if(void 0===i.defaultValue)r.push({type:_o.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${n.name} arg ${t.name} defaultValue was removed.`});else{const o=ai(t.defaultValue,t.type),s=ai(i.defaultValue,i.type);o!==s&&r.push({type:_o.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${n.name} arg ${t.name} has changed defaultValue from ${o} to ${s}.`})}}else r.push({type:Io.ARG_CHANGED_KIND,description:`${e.name}.${n.name} arg ${t.name} has changed type from ${String(t.type)} to ${String(i.type)}.`})}for(const t of o.added)Se(t)?r.push({type:Io.REQUIRED_ARG_ADDED,description:`A required arg ${t.name} on ${e.name}.${n.name} was added.`}):r.push({type:_o.OPTIONAL_ARG_ADDED,description:`An optional arg ${t.name} on ${e.name}.${n.name} was added.`});return r}function oi(e,n){return Y(e)?Y(n)&&oi(e.ofType,n.ofType)||X(n)&&oi(e,n.ofType):X(e)?X(n)&&oi(e.ofType,n.ofType):me(n)&&e.name===n.name||X(n)&&oi(e,n.ofType)}function ii(e,n){return Y(e)?Y(n)&&ii(e.ofType,n.ofType):X(e)?X(n)&&ii(e.ofType,n.ofType)||!X(n)&&ii(e.ofType,n):me(n)&&e.name===n.name}function si(e){return U(e)?"a Scalar type":x(e)?"an Object type":M(e)?"an Interface type":P(e)?"a Union type":B(e)?"an Enum type":q(e)?"an Input type":void(0,cn.V)(!1,"Unexpected type: "+(0,u.N)(e))}function ai(e,n){const t=pn(e,n);return null!=t||(0,cn.V)(!1),(0,D.y)(ht(t))}function ui(e,n){const t=[],r=[],o=[],i=h(e,(({name:e})=>e)),s=h(n,(({name:e})=>e));for(const n of e){const e=s[n.name];void 0===e?r.push(n):o.push([n,e])}for(const e of n)void 0===i[e.name]&&t.push(e);return{added:t,persisted:o,removed:r}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(Io||(Io={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(_o||(_o={}))}}]);
|