1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:dpg-media-services-csa":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f6553204-4606-49b8-9c53-f339f87290a7",e._sentryDebugIdIdentifier="sentry-dbid-f6553204-4606-49b8-9c53-f339f87290a7")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8748],{48748:(e,t,n)=>{let r;n.r(t),n.d(t,{BREAK:()=>C,BreakingChangeType:()=>p,DEFAULT_DEPRECATION_REASON:()=>tf,DangerousChangeType:()=>d,DirectiveLocation:()=>e6.H,ExecutableDefinitionsRule:()=>t5,FieldsOnCorrectTypeRule:()=>t7,FragmentsOnCompositeTypesRule:()=>ne,GRAPHQL_MAX_INT:()=>e5,GRAPHQL_MIN_INT:()=>e7,GraphQLBoolean:()=>tr,GraphQLDeprecatedDirective:()=>tm,GraphQLDirective:()=>tc,GraphQLEnumType:()=>eZ,GraphQLError:()=>v.eO,GraphQLFloat:()=>tt,GraphQLID:()=>ti,GraphQLIncludeDirective:()=>tp,GraphQLInputObjectType:()=>e1,GraphQLInt:()=>te,GraphQLInterfaceType:()=>eX,GraphQLList:()=>eS,GraphQLNonNull:()=>e$,GraphQLObjectType:()=>eP,GraphQLOneOfDirective:()=>th,GraphQLScalarType:()=>eM,GraphQLSchema:()=>tC,GraphQLSkipDirective:()=>td,GraphQLSpecifiedByDirective:()=>ty,GraphQLString:()=>tn,GraphQLUnionType:()=>ez,Kind:()=>L.b,KnownArgumentNamesRule:()=>nt,KnownDirectivesRule:()=>nr,KnownFragmentNamesRule:()=>ni,KnownTypeNamesRule:()=>no,Lexer:()=>rx.JG,Location:()=>E.aZ,LoneAnonymousOperationRule:()=>ns,LoneSchemaDefinitionRule:()=>nl,MaxIntrospectionDepthRule:()=>nu,NoDeprecatedCustomRule:()=>rB,NoFragmentCyclesRule:()=>nc,NoSchemaIntrospectionCustomRule:()=>rQ,NoUndefinedVariablesRule:()=>np,NoUnusedFragmentsRule:()=>nd,NoUnusedVariablesRule:()=>nf,OperationTypeNode:()=>E.cE,OverlappingFieldsCanBeMergedRule:()=>ny,PossibleFragmentSpreadsRule:()=>nO,PossibleTypeExtensionsRule:()=>n_,ProvidedRequiredArgumentsRule:()=>nw,ScalarLeafsRule:()=>nA,SchemaMetaFieldDef:()=>tR,SingleFieldSubscriptionsRule:()=>nq,Source:()=>rV.k,Token:()=>E.ou,TokenKind:()=>rC.Y,TypeInfo:()=>tX,TypeKind:()=>c,TypeMetaFieldDef:()=>tF,TypeNameMetaFieldDef:()=>tL,UniqueArgumentDefinitionNamesRule:()=>nX,UniqueArgumentNamesRule:()=>nz,UniqueDirectiveNamesRule:()=>nK,UniqueDirectivesPerLocationRule:()=>nZ,UniqueEnumValueNamesRule:()=>nW,UniqueFieldDefinitionNamesRule:()=>n0,UniqueFragmentNamesRule:()=>n1,UniqueInputFieldNamesRule:()=>n9,UniqueOperationNamesRule:()=>n8,UniqueOperationTypesRule:()=>n2,UniqueTypeNamesRule:()=>n3,UniqueVariableNamesRule:()=>n4,ValidationContext:()=>ra,ValuesOfCorrectTypeRule:()=>n6,VariablesAreInputTypesRule:()=>n7,VariablesInAllowedPositionRule:()=>re,__Directive:()=>tO,__DirectiveLocation:()=>t_,__EnumValue:()=>t$,__Field:()=>tw,__InputValue:()=>tS,__Schema:()=>tI,__Type:()=>tD,__TypeKind:()=>tA,assertAbstractType:()=>ew,assertCompositeType:()=>e_,assertDirective:()=>tu,assertEnumType:()=>ep,assertEnumValueName:()=>W,assertInputObjectType:()=>ef,assertInputType:()=>eT,assertInterfaceType:()=>es,assertLeafType:()=>eI,assertListType:()=>ey,assertName:()=>Z,assertNamedType:()=>eU,assertNonNullType:()=>ev,assertNullableType:()=>eL,assertObjectType:()=>eo,assertOutputType:()=>eb,assertScalarType:()=>er,assertSchema:()=>tx,assertType:()=>et,assertUnionType:()=>eu,assertValidName:()=>ih,assertValidSchema:()=>tP,assertWrappingType:()=>eR,astFromValue:()=>tb,buildASTSchema:()=>r9,buildClientSchema:()=>rz,buildSchema:()=>r8,coerceInputValue:()=>nV,concatAST:()=>ip,createSourceEventStream:()=>rP,defaultFieldResolver:()=>r$,defaultTypeResolver:()=>rS,doTypesOverlap:()=>e4,execute:()=>ry,executeSync:()=>rh,extendSchema:()=>rK,findBreakingChanges:()=>iE,findDangerousChanges:()=>iT,formatError:()=>v.Wk,getArgumentValues:()=>nM,getDirectiveValues:()=>nP,getEnterLeaveForKind:()=>P,getIntrospectionQuery:()=>rH,getLocation:()=>rk.g,getNamedType:()=>ex,getNullableType:()=>eV,getOperationAST:()=>rq,getOperationRootType:()=>rJ,getVariableValues:()=>nj,getVisitFn:()=>G,graphql:()=>rR,graphqlSync:()=>rF,introspectionFromSchema:()=>rX,introspectionTypes:()=>tV,isAbstractType:()=>eD,isCompositeType:()=>eO,isConstValueNode:()=>function e(t){return t1(t)&&(t.kind===L.b.LIST?t.values.some(e):t.kind===L.b.OBJECT?t.fields.some(t=>e(t.value)):t.kind!==L.b.VARIABLE)},isDefinitionNode:()=>tZ,isDirective:()=>tl,isEnumType:()=>ec,isEqualType:()=>e2,isExecutableDefinitionNode:()=>tW,isInputObjectType:()=>ed,isInputType:()=>eE,isInterfaceType:()=>ea,isIntrospectionType:()=>tk,isLeafType:()=>eg,isListType:()=>em,isNamedType:()=>ek,isNonNullType:()=>eh,isNullableType:()=>eF,isObjectType:()=>ei,isOutputType:()=>eN,isRequiredArgument:()=>eJ,isRequiredInputField:()=>e8,isScalarType:()=>en,isSchema:()=>tU,isSchemaCoordinateNode:()=>t6,isSelectionNode:()=>t0,isSpecifiedDirective:()=>tE,isSpecifiedScalarType:()=>ta,isType:()=>ee,isTypeDefinitionNode:()=>t2,isTypeExtensionNode:()=>t4,isTypeNode:()=>t9,isTypeSubTypeOf:()=>e3,isTypeSystemDefinitionNode:()=>t8,isTypeSystemExtensionNode:()=>t3,isUnionType:()=>el,isValidNameError:()=>iv,isValueNode:()=>t1,isWrappingType:()=>eA,lexicographicSortSchema:()=>r2,locatedError:()=>rd,parse:()=>y.qg,parseConstValue:()=>y.u8,parseSchemaCoordinate:()=>y.Ng,parseType:()=>y.Mb,parseValue:()=>y.$x,print:()=>B,printError:()=>v.yJ,printIntrospectionSchema:()=>r7,printLocation:()=>rU.V,printSchema:()=>r5,printSourceLocation:()=>rU.C,printType:()=>ir,recommendedRules:()=>rt,resolveASTSchemaCoordinate:()=>iD,resolveObjMapThunk:()=>ej,resolveReadonlyArrayThunk:()=>eC,resolveSchemaCoordinate:()=>i_,responsePathAsArray:()=>nL,separateOperations:()=>id,specifiedDirectives:()=>tv,specifiedRules:()=>rn,specifiedScalarTypes:()=>to,stripIgnoredCharacters:()=>iy,subscribe:()=>rM,syntaxError:()=>rY.I,typeFromAST:()=>tJ,validate:()=>rl,validateSchema:()=>tM,valueFromAST:()=>nU,valueFromASTUntyped:()=>
1z,version:()=>i,versionInfo:()=>o,visit:()=>j,visitInParallel:()=>M,visitWithTypeInfo:()=>tK});let i="16.14.2",o=Object.freeze({major:16,minor:14,patch:2,preReleaseTag:null});var a,s,l,u,c,p,d,f=n(71960);function m(e){return"function"==typeof(null==e?void 0:e.then)}var y=n(9690),h=n(59583),v=n(28090),E=n(19723);function T(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function N(e){return e}var b=n(43685),g=n(43487);function I(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function O(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function _(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function D(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(S(i)&&S(o)){let a=0;do++n,a=10*a+i-w,i=e.charCodeAt(n);while(S(i)&&a>0);let s=0;do++r,s=10*s+o-w,o=t.charCodeAt(r);while(S(o)&&s>0);if(a<s)return -1;if(a>s)return 1}else{if(i<o)return -1;if(i>o)return 1;++n,++r}}return e.length-t.length}let w=48;function S(e){return!isNaN(e)&&w<=e&&e<=57}function $(e,t){let n=Object.create(null),r=new A(e),i=Math.floor(.4*e.length)+1;for(let e of t){let t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{let r=n[e]-n[t];return 0!==r?r:D(e,t)})}class A{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=R(this._inputLowerCase),this._rows=[Array(e.length+1).fill(0),Array(e.length+1).fill(0),Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;let n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=R(n),i=this._inputArray;if(r.length<i.length){let e=r;r=i,i=e}let o=r.length,a=i.length;if(o-a>t)return;let s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){let n=s[(e-1)%3],o=s[e%3],l=o[0]=e;for(let t=1;t<=a;t++){let a=+(r[e-1]!==i[t-1]),u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]&&(u=Math.min(u,s[(e-2)%3][t-2]+1)),u<l&&(l=u),o[t]=u}if(l>t)return}let l=s[o%3][a];return l<=t?l:void 0}}function R(e){let t=e.length,n=Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function F(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}var L=n(45858),V=n(6299);let k=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function U(e){return x[e.charCodeAt(0)]}let x=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],C=Object.freeze({});function j(e,t,n=E.aD){let r,i,o,a=new Map;for(let e of Object.values(L.b))a.set(e,P(t,e));let s=Array.isArray(e),l=[e],u=-1,c=[],p=e,d=[],m=[];do{var y,v,T;let e,N=++u===l.length,b=N&&0!==c.length;if(N){if(i=0===m.length?void 0:d[d.length-1],p=o,o=m.pop(),b)if(s){p=p.slice();let e=0;for(let[t,n]of c){let r=t-e;null===n?(p.splice(r,1),e++):p[r]=n}}else for(let[e,t]of(p={...p},c))p[e]=t;u=r.index,l=r.keys,c=r.edits,s=r.inArray,r=r.prev}else if(o){if(null==(p=o[i=s?u:l[u]]))continue;d.push(i)}if(!Array.isArray(p)){(0,E.Ll)(p)||(0,f.U)(!1,`Invalid AST Node: ${(0,h.N)(p)}.`);let n=N?null==(y=a.get(p.kind))?void 0:y.leave:null==(v=a.get(p.kind))?void 0:v.enter;if((e=null==n?void 0:n.call(t,p,i,o,d,m))===C)break;if(!1===e){if(!N){d.pop();continue}}else if(void 0!==e&&(c.push([i,e]),!N))if((0,E.Ll)(e))p=e;else{d.pop();continue}}void 0===e&&b&&c.push([i,p]),N?d.pop():(r={inArray:s,index:u,keys:l,edits:c,prev:r},l=(s=Array.isArray(p))?p:null!=(T=n[p.kind])?T:[],u=-1,c=[],o&&m.push(o),o=p)}while(void 0!==r);return 0!==c.length?c[c.length-1][1]:e}function M(e){let t=Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(L.b)){let i=!1,o=Array(e.length).fill(void 0),a=Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){let{enter:n,leave:s}=P(e[t],r);i||(i=null!=n||null!=s),o[t]=n,a[t]=s}if(!i)continue;let s={enter(...n){let r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;let s=null==(i=o[a])?void 0:i.apply(e[a],n);if(!1===s)t[a]=r;else if(s===C)t[a]=C;else if(void 0!==s)return s}},leave(...n){let r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;let r=null==(i=a[o])?void 0:i.apply(e[o],n);if(r===C)t[o]=C;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=s}return n}function P(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function G(e,t,n){let{enter:r,leave:i}=P(e,t);return n?i:r}function B(e){return j(e,Q)}let Q={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Y(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=X(e.variableDefinitions)?q("(\n",Y(e.variableDefinitions,"\n"),"\n)"):q("(",Y(e.variableDefinitions,", "),")"),n=q("",e.description,"\n")+Y([e.operation,Y([e.name,t]),Y(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>q("",i,"\n")+e+": "+t+q(" = ",n)+q(" ",Y(r," "))},SelectionSet:{leave:({selections:e})=>H(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=q("",e,": ")+t,a=o+q("(",Y(n,", "),")");return a.length>80&&(a=o+q("(\n",J(Y(n,"\n")),"\n)")),Y([a,Y(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+q(" ",Y(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Y(["...",q("on ",e),Y(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>q("",o,"\n")+`fragment ${e}
1${q("(",Y(n,", "),")")} `+`on ${t} ${q("",Y(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,V.yo)(e):`"${e.replace(k,U)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Y(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Y(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+q("(",Y(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>q("",e,"\n")+Y(["schema",Y(t," "),H(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>q("",e,"\n")+Y(["scalar",t,Y(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>q("",e,"\n")+Y(["type",t,q("implements ",Y(n," & ")),Y(r," "),H(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>q("",e,"\n")+t+(X(n)?q("(\n",J(Y(n,"\n")),"\n)"):q("(",Y(n,", "),")"))+": "+r+q(" ",Y(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>q("",e,"\n")+Y([t+": "+n,q("= ",r),Y(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>q("",e,"\n")+Y(["interface",t,q("implements ",Y(n," & ")),Y(r," "),H(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>q("",e,"\n")+Y(["union",t,Y(n," "),q("= ",Y(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>q("",e,"\n")+Y(["enum",t,Y(n," "),H(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>q("",e,"\n")+Y([t,Y(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>q("",e,"\n")+Y(["input",t,Y(n," "),H(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,directives:r,repeatable:i,locations:o})=>q("",e,"\n")+"directive @"+t+(X(n)?q("(\n",J(Y(n,"\n")),"\n)"):q("(",Y(n,", "),")"))+q(" ",Y(r," "))+(i?" repeatable":"")+" on "+Y(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Y(["extend schema",Y(e," "),H(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Y(["extend scalar",e,Y(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Y(["extend type",e,q("implements ",Y(t," & ")),Y(n," "),H(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Y(["extend interface",e,q("implements ",Y(t," & ")),Y(n," "),H(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Y(["extend union",e,Y(t," "),q("= ",Y(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Y(["extend enum",e,Y(t," "),H(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Y(["extend input",e,Y(t," "),H(n)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>Y(["extend directive @"+e,Y(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>Y([e,q(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>Y([e,q(".",t),q("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>Y(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>Y(["@",e,q("(",t,":)")])}};function Y(e,t=""){var n;return null!=(n=null==e?void 0:e.filter(e=>e).join(t))?n:""}function H(e){return q("{\n",J(Y(e,"\n")),"\n}")}function q(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function J(e){return q(" ",e.replace(/\n/g,"\n "))}function X(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}function z(e,t){switch(e.kind){case L.b.NULL:return null;case L.b.INT:return parseInt(e.value,10);case L.b.FLOAT:return parseFloat(e.value);case L.b.STRING:case L.b.ENUM:case L.b.BOOLEAN:return e.value;case L.b.LIST:return e.values.map(e=>z(e,t));case L.b.OBJECT:return O(e.fields,e=>e.name.value,e=>z(e.value,t));case L.b.VARIABLE:return null==t?void 0:t[e.name.value]}}var K=n(84896);function Z(e){if(null!=e||(0,f.U)(!1,"Must provide name."),"string"==typeof e||(0,f.U)(!1,"Expected name to be a string."),0===e.length)throw new v.eO("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,K.xr)(e.charCodeAt(t)))throw new v.eO(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,K.un)(e.charCodeAt(0)))throw new v.eO(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function W(e){if("true"===e||"false"===e||"null"===e)throw new v.eO(`Enum values cannot be named: ${e}`);return Z(e)}function ee(e){return en(e)||ei(e)||ea(e)||el(e)||ec(e)||ed(e)||em(e)||eh(e)}function et(e){if(!ee(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL type.`);return e}function en(e){return(0,b.h)(e,eM)}function er(e){if(!en(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL Scalar type.`);return e}function ei(e){return(0,b.h)(e,eP)}function eo(e){if(!ei(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL Object type.`);return e}function ea(e){return(0,b.h)(e,eX)}function es(e){if(!ea(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL Interface type.`);return e}function el(e){return(0,b.h)(e,ez)}function eu(e){if(!el(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL Union type.`);return e}function ec(e){return(0,b.h)(e,eZ)}function ep(e){if(!ec(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL Enum type.`);return e}function ed(e){return(0,b.h)(e,e1)}function ef(e){if(!ed(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL Input Object type.`);return e}function em(e){return(0,b.h)(e,eS)}function ey(e){if(!em(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL List type.`);return e}function eh(e){return(0,b.h)(e,e$)}function ev(e){if(!eh(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL Non-Null type.`);return e}function eE(e){return en(e)||ec(e)||ed(e)||eA(e)&&eE(e.ofType)}function eT(e){if(!eE(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL input type.`);return e}function eN(e){return en(e)||ei(e)||ea(e)||el(e)||ec(e)||eA(e)&&eN(e.ofType)}function eb(e){if(!eN(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL output type.`);return e}function eg(e){return en(e)||ec(e)}function eI(e){if(!eg(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL leaf type.`);return e}function eO(e){return ei(e)||ea(e)||el(e)}function e_(e){if(!eO(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL composite type.`);return e}function eD(e){return ea(e)||el(e)}function ew(e){if(!eD(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL abstract type.`);return e}class eS{constructor(e){ee(e)||(0,f.U)(!1,`Expected ${(0,h.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 e${constructor(e){eF(e)||(0,f.U)(!1,`Expected ${(0,h.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 eA(e){return em(e)||eh(e)}function eR(e){if(!eA(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL wrapping type.`);return e}function eF(e){return ee(e)&&!eh(e)}function eL(e){if(!eF(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL nullable type.`);return e}function eV(e){if(e)return eh(e)?e.ofType:e}function ek(e){return en(e)||ei(e)||ea(e)||el(e)||ec(e)||ed(e)}function eU(e){if(!ek(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL named type.`);return e}function ex(e){if(e){let t=e;for(;eA(t);)t=t.ofType;return t}}function eC(e){return"function"==typeof e?e():e}function ej(e){return"function"==typeof e?e():e}class eM{constructor(e){var t,n,r,i;const o=null!=(t=e.parseValue)?t:N;this.name=Z(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!=(n=e.serialize)?n:N,this.parseValue=o,this.parseLiteral=null!=(r=e.parseLiteral)?r:(e,t)=>o(z(e,t)),this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(i=e.extensionASTNodes)?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,f.U)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,h.N)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,f.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,f.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 eP{constructor(e){var t;this.name=Z(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=()=>eB(e),this._interfaces=()=>eG(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,f.U)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,h.N)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}
1getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:eH(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eG(e){var t;let n=eC(null!=(t=e.interfaces)?t:[]);return Array.isArray(n)||(0,f.U)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function eB(e){let t=ej(e.fields);return eY(t)||(0,f.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),_(t,(t,n)=>{var r;eY(t)||(0,f.U)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,f.U)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,h.N)(t.resolve)}.`);let i=null!=(r=t.args)?r:{};return eY(i)||(0,f.U)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:Z(n),description:t.description,type:t.type,args:eQ(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:F(t.extensions),astNode:t.astNode}})}function eQ(e){return Object.entries(e).map(([e,t])=>({name:Z(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:F(t.extensions),astNode:t.astNode}))}function eY(e){return(0,g.Z)(e)&&!Array.isArray(e)}function eH(e){return _(e,e=>({description:e.description,type:e.type,args:eq(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function eq(e){return O(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function eJ(e){return eh(e.type)&&void 0===e.defaultValue}class eX{constructor(e){var t;this.name=Z(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=eB.bind(void 0,e),this._interfaces=eG.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,f.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,h.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:eH(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ez{constructor(e){var t;this.name=Z(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._types=eK.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,f.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,h.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 eK(e){let t=eC(e.types);return Array.isArray(t)||(0,f.U)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class eZ{constructor(e){var t;this.name=Z(e.name),this.description=e.description,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._values="function"==typeof e.values?e.values:e0(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=e0(this.name,this._values())
1),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=I(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));let t=this._valueLookup.get(e);if(void 0===t)throw new v.eO(`Enum "${this.name}" cannot represent value: ${(0,h.N)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){let t=(0,h.N)(e);throw new v.eO(`Enum "${this.name}" cannot represent non-string value: ${t}.`+eW(this,t))}let t=this.getValue(e);if(null==t)throw new v.eO(`Value "${e}" does not exist in "${this.name}" enum.`+eW(this,e));return t.value}parseLiteral(e,t){if(e.kind!==L.b.ENUM){let t=B(e);throw new v.eO(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+eW(this,t),{nodes:e})}let n=this.getValue(e.value);if(null==n){let t=B(e);throw new v.eO(`Value "${t}" does not exist in "${this.name}" enum.`+eW(this,t),{nodes:e})}return n.value}toConfig(){let e=O(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 eW(e,t){return T("the enum value",$(t,e.getValues().map(e=>e.name)))}function e0(e,t){return eY(t)||(0,f.U)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(eY(n)||(0,f.U)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,h.N)(n)}.`),{name:W(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:F(n.extensions),astNode:n.astNode}))}class e1{constructor(e){var t,n;this.name=Z(e.name),this.description=e.description,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this.isOneOf=null!=(n=e.isOneOf)&&n,this._fields=e9.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){let 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 e9(e){let t=ej(e.fields);return eY(t)||(0,f.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),_(t,(t,n)=>("resolve"in t&&(0,f.U)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:Z(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:F(t.extensions),astNode:t.astNode}))}function e8(e){return eh(e.type)&&void 0===e.defaultValue}function e2(e,t){return e===t||!!(eh(e)&&eh(t)||em(e)&&em(t))&&e2(e.ofType,t.ofType)}function e3(e,t,n){return t===n||(eh(n)?!!eh(t)&&e3(e,t.ofType,n.ofType):eh(t)?e3(e,t.ofType,n):em(n)?!!em(t)&&e3(e,t.ofType,n.ofType):!em(t)&&eD(n)&&(ea(t)||ei(t))&&e.isSubType(n,t))}function e4(e,t,n){return t===n||(eD(t)?eD(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!eD(n)&&e.isSubType(n,t))}var e6=n(90809);let e5=0x7fffffff,e7=-0x80000000,te=new eM({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){let t=ts(e);if("boolean"==typeof t)return+!!t;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new v.eO(`Int cannot represent non-integer value: ${(0,h.N)(t)}`);if(n>e5||n<e7)throw new v.eO("Int cannot represent non 32-bit signed integer value: "+(0,h.N)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new v.eO(`Int cannot represent non-integer value: ${(0,h.N)(e)}`);
1if(e>e5||e<e7)throw new v.eO(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==L.b.INT)throw new v.eO(`Int cannot represent non-integer value: ${B(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>e5||t<e7)throw new v.eO(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),tt=new eM({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){let t=ts(e);if("boolean"==typeof t)return+!!t;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new v.eO(`Float cannot represent non numeric value: ${(0,h.N)(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new v.eO(`Float cannot represent non numeric value: ${(0,h.N)(e)}`);return e},parseLiteral(e){if(e.kind!==L.b.FLOAT&&e.kind!==L.b.INT)throw new v.eO(`Float cannot represent non numeric value: ${B(e)}`,e);return parseFloat(e.value)}}),tn=new eM({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){let t=ts(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new v.eO(`String cannot represent value: ${(0,h.N)(e)}`)},parseValue(e){if("string"!=typeof e)throw new v.eO(`String cannot represent a non string value: ${(0,h.N)(e)}`);return e},parseLiteral(e){if(e.kind!==L.b.STRING)throw new v.eO(`String cannot represent a non string value: ${B(e)}`,{nodes:e});return e.value}}),tr=new eM({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=ts(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new v.eO(`Boolean cannot represent a non boolean value: ${(0,h.N)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new v.eO(`Boolean cannot represent a non boolean value: ${(0,h.N)(e)}`);return e},parseLiteral(e){if(e.kind!==L.b.BOOLEAN)throw new v.eO(`Boolean cannot represent a non boolean value: ${B(e)}`,{nodes:e});return e.value}}),ti=new eM({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){let t=ts(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new v.eO(`ID cannot represent value: ${(0,h.N)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new v.eO(`ID cannot represent value: ${(0,h.N)(e)}`)},parseLiteral(e){if(e.kind!==L.b.STRING&&e.kind!==L.b.INT)throw new v.eO("ID cannot represent a non-string and non-integer value: "+B(e),{nodes:e});return e.value}}),to=Object.freeze([tn,te,tt,tr,ti]);function ta(e){return to.some(({name:t})=>e.name===t)}function ts(e){if((0,g.Z)(e)){if("function"==typeof e.valueOf){let t=e.valueOf();if(!(0,g.Z)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function tl(e){return(0,b.h)(e,tc)}function tu(e){if(!tl(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL directive.`);return e}class tc{constructor(e){var t,n,r;this.name=Z(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=(t=e.isRepeatable)&&t,this.deprecationReason=e.deprecationReason,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(n=e.extensionASTNodes)?n:[],Array.isArray(e.locations)||(0,f.U)(!1,`@${e.name} locations must be an Array.`);const i=null!=(r=e.args)?r:{};(0,g.Z)(i)&&!Array.isArray(i)||(0,f.U)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=eQ(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:eq(this.args),isRepeatable:this.isRepeatable,deprecationReason:this.deprecationReason,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return"@"+this.name}toJSON(){return this.toString()}}let tp=new tc({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[e6.H.FIELD,e6.H.FRAGMENT_SPREAD,e6.H.INLINE_FRAGMENT],args:{if:{type:new e$(tr),description:"Included when true."}}}),td=new tc({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[e6.H.FIELD,e6.H.FRAGMENT_SPREAD,e6.H.INLINE_FRAGMENT],args:{if:{type:new e$(tr),description:"Skipped when true."}}}),tf="No longer supported",tm=new tc({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[e6.H.FIELD_DEFINITION,e6.H.ARGUMENT_DEFINITION,e6.H.INPUT_FIELD_DEFINITION,e6.H.ENUM_VALUE,e6.H.DIRECTIVE_DEFINITION],args:{reason:{type:tn,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:tf}}}),ty=new tc({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[e6.H.SCALAR],args:{url:{type:new e$(tn),description:"The URL that specifies the behavior of this scalar."}}}),th=new tc({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[e6.H.INPUT_OBJECT],args:{}}),tv=Object.freeze([tp,td,tm,ty,th]);function tE(e){return tv.some(({name:t})=>t===e.name)}var tT=n(49331);function tN(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function tb(e,t){if(eh(t)){let n=tb(e,t.ofType);return(null==n?void 0:n.kind)===L.b.NULL?null:n}if(null===e)return{kind:L.b.NULL};if(void 0===e)return null;if(em(t)){let n=t.ofType;if(tN(e)){let t=[];for(let r of e){let e=tb(r,n);null!=e&&t.push(e)}return{kind:L.b.LIST,values:t}}return tb(e,n)}if(ed(t)){if(!(0,g.Z)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let t=tb(e[r.name],r.type);t&&n.push({kind:L.b.OBJECT_FIELD,name:{kind:L.b.NAME,value:r.name},value:t})}return{kind:L.b.OBJECT,fields:n}}if(eg(t)){let n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:L.b.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){let e=String(n);return tg.test(e)?{kind:L.b.INT,value:e}:{kind:L.b.FLOAT,value:e}}
1if("string"==typeof n)return ec(t)?{kind:L.b.ENUM,value:n}:t===ti&&tg.test(n)?{kind:L.b.INT,value:n}:{kind:L.b.STRING,value:n};throw TypeError(`Cannot convert value to AST: ${(0,h.N)(n)}.`)}(0,tT.V)(!1,"Unexpected input type: "+(0,h.N)(t))}let tg=/^-?(?:0|[1-9][0-9]*)$/,tI=new eP({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:tn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new e$(new eS(new e$(tD))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new e$(tD),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:tD,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:tD,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new e$(new eS(new e$(tO))),args:{includeDeprecated:{type:new e$(tr),defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.getDirectives():e.getDirectives().filter(e=>null==e.deprecationReason)}})}),tO=new eP({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 e$(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},isRepeatable:{type:new e$(tr),resolve:e=>e.isRepeatable},locations:{type:new e$(new eS(new e$(t_))),resolve:e=>e.locations},args:{type:new e$(new eS(new e$(tS))),args:{includeDeprecated:{type:tr,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},isDeprecated:{type:new e$(tr),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})}),t_=new eZ({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:e6.H.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:e6.H.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:e6.H.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:e6.H.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:e6.H.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:e6.H.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:e6.H.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:e6.H.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:e6.H.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:e6.H.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:e6.H.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:e6.H.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:e6.H.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:e6.H.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:e6.H.UNION,description:"Location adjacent to a union definition."},ENUM:{value:e6.H.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:e6.H.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:e6.H.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:e6.H.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."},DIRECTIVE_DEFINITION:{value:e6.H.DIRECTIVE_DEFINITION,description:"Location adjacent to a directive definition."}}}),tD=new eP({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 e$(tA),resolve:e=>en(e)?c.SCALAR:ei(e)?c.OBJECT:ea(e)?c.INTERFACE:el(e)?c.UNION:ec(e)?c.ENUM:ed(e)?c.INPUT_OBJECT:em(e)?c.LIST
1:eh(e)?c.NON_NULL:void(0,tT.V)(!1,`Unexpected type: "${(0,h.N)(e)}".`)},name:{type:tn,resolve:e=>"name"in e?e.name:void 0},description:{type:tn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:tn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new eS(new e$(tw)),args:{includeDeprecated:{type:tr,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ei(e)||ea(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new eS(new e$(tD)),resolve(e){if(ei(e)||ea(e))return e.getInterfaces()}},possibleTypes:{type:new eS(new e$(tD)),resolve(e,t,n,{schema:r}){if(eD(e))return r.getPossibleTypes(e)}},enumValues:{type:new eS(new e$(t$)),args:{includeDeprecated:{type:tr,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ec(e)){let n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new eS(new e$(tS)),args:{includeDeprecated:{type:tr,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(ed(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:tD,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:tr,resolve:e=>{if(ed(e))return e.isOneOf}}})}),tw=new eP({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 e$(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},args:{type:new e$(new eS(new e$(tS))),args:{includeDeprecated:{type:tr,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new e$(tD),resolve:e=>e.type},isDeprecated:{type:new e$(tr),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})}),tS=new eP({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 e$(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},type:{type:new e$(tD),resolve:e=>e.type},defaultValue:{type:tn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=tb(n,t);return r?B(r):null}},isDeprecated:{type:new e$(tr),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})}),t$=new eP({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 e$(tn),resolve:e=>e.name},description:{type:tn,resolve:e=>e.description},isDeprecated:{type:new e$(tr),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tn,resolve:e=>e.deprecationReason}})});(a=c||(c={})).SCALAR="SCALAR",a.OBJECT="OBJECT",a.INTERFACE="INTERFACE",a.UNION="UNION",a.ENUM="ENUM",a.INPUT_OBJECT="INPUT_OBJECT",a.LIST="LIST",a.NON_NULL="NON_NULL";let tA=new eZ({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:c.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:c.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:c.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:c.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:c.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:c.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:c.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:c.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),tR={name:"__schema",type:new e$(tI),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tF={name:"__type",type:tD,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new e$(tn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tL={name:"__typename",type:new e$(tn),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tV=Object.freeze([tI,tO,t_,tD,tw,tS,t$,tA]);function tk(e){return tV.some(({name:t})=>e.name===t)}function tU(e){return(0,b.h)(e,tC)}function tx(e){if(!tU(e))throw Error(`Expected ${(0,h.N)(e)} to be a GraphQL schema.`);return e}class tC{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,g.Z)(e)||(0,f.U)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,f.U)(!1,`"types" must be Array if provided but got: ${(0,h.N)(e.types)}
1.`),!e.directives||Array.isArray(e.directives)||(0,f.U)(!1,`"directives" must be Array if provided but got: ${(0,h.N)(e.directives)}.`),this.description=e.description,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!=(n=e.directives)?n:tv;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),tj(t,r);for(const e of(null!=this._queryType&&tj(this._queryType,r),null!=this._mutationType&&tj(this._mutationType,r),null!=this._subscriptionType&&tj(this._subscriptionType,r),this._directives))if(tl(e))for(const t of e.args)tj(t.type,r);for(const e of(tj(tI,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),r)){if(null==e)continue;const t=e.name;if(t||(0,f.U)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,ea(e)){for(const t of e.getInterfaces())if(ea(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(ei(e)){for(const t of e.getInterfaces())if(ea(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.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 E.cE.QUERY:return this.getQueryType();case E.cE.MUTATION:return this.getMutationType();case E.cE.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return el(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){let t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),el(e))for(let t of e.getTypes())n[t.name]=!0;else{let t=this.getImplementations(e);for(let e of t.objects)n[e.name]=!0;for(let e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.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 tj(e,t){let n=ex(e);if(!t.has(n)){if(t.add(n),el(n))for(let e of n.getTypes())tj(e,t);else if(ei(n)||ea(n)){for(let e of n.getInterfaces())tj(e,t);for(let e of Object.values(n.getFields()))for(let n of(tj(e.type,t),e.args))tj(n.type,t)}else if(ed(n))for(let e of Object.values(n.getFields()))tj(e.type,t)}return t}function tM(e){var t,n,r,i;let o,a,s,l;if(tx(e),e.__validationErrors)return e.__validationErrors;let u=new tG(e);(a=(o=(t=u).schema).getQueryType())?ei(a)||t.reportError(`Query root type must be Object type, it cannot be ${(0,h.N)(a)}.`,null!=(n=tB(o,E.cE.QUERY))?n:a.astNode):t.reportError("Query root type must be provided.",o.astNode),(s=o.getMutationType())&&!ei(s)&&t.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,h.N)(s)}.`,null!=(r=tB(o,E.cE.MUTATION))?r:s.astNode),(l=o.getSubscriptionType())&&!ei(l)&&t.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,h.N)(l)}.`,null!=(i=tB(o,E.cE.SUBSCRIPTION))?i:l.astNode),function(e){for(let n of e.schema.getDirectives()){if(!tl(n)){e.reportError(`Expected directive but got: ${(0,h.N)(n)}.`,null==n?void 0:n.astNode);continue}for(let r of(tQ(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode),n.args))if(tQ(e,r),eE(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,h.N)(r.type)}.`,r.astNode),eJ(r)&&null!=r.deprecationReason){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[tq(r.astNode),null==(t=r.astNode)?void 0:t.type])}}}(u),function(e){var t;let n,r,i,o=(t=e,n=Object.create(null),r=[],i=Object.create(null),function e(o){if(!n[o.name]){for(let a of(n[o.name]=!0,i[o.name]=r.length,Object.values(o.getFields())))if(eh(a.type)&&ed(a.type.ofType)){let n=a.type.ofType,o=i[n.name];if(r.push(a),void 0===o)e(n);else{let e=r.slice(o),i=e.map(e=>e.name).join(".");t.reportError(`Cannot reference Input Object "${n.name}" within itself through a series of non-null fields: "${i}".`,e.map(e=>e.astNode))}r.pop()}i[o.name]=void 0}});for(let t of Object.values(e.schema.getTypeMap())){if(!ek(t)){e.reportError(`Expected GraphQL named type but got: ${(0,h.N)(t)}.`,t.astNode);continue}tk(t)||tQ(e,t),ei(t)||ea(t)?(function(e,t){let n=Object.values(t.getFields());for(let a of(0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i,o;for(let n of(tQ(e,a),eN(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${(0,h.N)(a.type)}
1.`,null==(r=a.astNode)?void 0:r.type),a.args)){let r=n.name;tQ(e,n),eE(n.type)||e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${(0,h.N)(n.type)}.`,null==(i=n.astNode)?void 0:i.type),eJ(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[tq(n.astNode),null==(o=n.astNode)?void 0:o.type])}}}(e,t),function(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!ea(r)){e.reportError(`Type ${(0,h.N)(t)} must only implement Interface types, it cannot implement ${(0,h.N)(r)}.`,tY(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,tY(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,tY(t,r));continue}n[r.name]=!0,function(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...tY(n,i),...tY(t,n)])}(e,t,r),function(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){var i,o,a,s;let u=l.name,c=r[u];if(!c){e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}for(let r of(e3(e.schema,c.type,l.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${(0,h.N)(l.type)} but ${t.name}.${u} is type ${(0,h.N)(c.type)}.`,[null==(i=l.astNode)?void 0:i.type,null==(o=c.astNode)?void 0:o.type]),l.args)){let i=r.name,o=c.args.find(e=>e.name===i);if(!o){e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode]);continue}e2(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${(0,h.N)(r.type)} but ${t.name}.${u}(${i}:) is type ${(0,h.N)(o.type)}.`,[null==(a=r.astNode)?void 0:a.type,null==(s=o.astNode)?void 0:s.type])}for(let r of c.args){let i=r.name;!l.args.find(e=>e.name===i)&&eJ(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}}(e,t,r)}}(e,t)):el(t)?function(e,t){let n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,tH(t,i.name));continue}r[i.name]=!0,ei(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,h.N)(i)}.`,tH(t,String(i)))}}(e,t):ec(t)?function(e,t){let n=t.getValues();for(let r of(0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]),n))tQ(e,r)}(e,t):ed(t)&&(function(e,t){let n=Object.values(t.getFields());for(let o of(0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i;tQ(e,o),eE(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${(0,h.N)(o.type)}.`,null==(r=o.astNode)?void 0:r.type),e8(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[tq(o.astNode),null==(i=o.astNode)?void 0:i.type]),t.isOneOf&&function(e,t,n){if(eh(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null==(r=t.astNode)?void 0:r.type)}void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}(t,o,e)}}(e,t),o(t))}}(u);let c=u.getErrors();return e.__validationErrors=c,c}function tP(e){let t=tM(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}class tG{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new v.eO(e,{nodes:n}))}getErrors(){return this._errors}}function tB(e,t){var n;return null==(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!=(t=null==e?void 0:e.operationTypes)?t:[]}).find(e=>e.operation===t))?void 0:n.type}function tQ(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function tY(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.interfaces)?t:[]}).filter(e=>e.name.value===t.name)}function tH(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.types)?t:[]}).filter(e=>e.name.value===t)}function tq(e){var t;return null==e||null==(t=e.directives)?void 0:t.find(e=>e.name.value===tm.name)}function tJ(e,t){switch(t.kind){case L.b.LIST_TYPE:{let n=tJ(e,t.type);return n&&new eS(n)}case L.b.NON_NULL_TYPE:{let n=tJ(e,t.type);return n&&new e$(n)}case L.b.NAMED_TYPE:return e.getType(t.name.value)}}class tX{constructor(e,t,n){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!=n?n:tz,t&&(eE(t)&&this._inputTypeStack.push(t),eO(t)&&this._parentTypeStack.push(t),eN(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}
1getType(){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){let t=this._schema;switch(e.kind){case L.b.SELECTION_SET:{let e=ex(this.getType());this._parentTypeStack.push(eO(e)?e:void 0);break}case L.b.FIELD:{let n,r,i=this.getParentType();i&&(n=this._getFieldDef(t,i,e))&&(r=n.type),this._fieldDefStack.push(n),this._typeStack.push(eN(r)?r:void 0);break}case L.b.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case L.b.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push(ei(n)?n:void 0);break}case L.b.INLINE_FRAGMENT:case L.b.FRAGMENT_DEFINITION:{let n=e.typeCondition,r=n?tJ(t,n):ex(this.getType());this._typeStack.push(eN(r)?r:void 0);break}case L.b.VARIABLE_DEFINITION:{let n=tJ(t,e.type);this._inputTypeStack.push(eE(n)?n:void 0);break}case L.b.ARGUMENT:{var n;let t,r,i=null!=(n=this.getDirective())?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value))&&(r=t.type),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(eE(r)?r:void 0);break}case L.b.LIST:{let e=eV(this.getInputType()),t=em(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(eE(t)?t:void 0);break}case L.b.OBJECT_FIELD:{let t,n,r=ex(this.getInputType());ed(r)&&(n=r.getFields()[e.name.value])&&(t=n.type),this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(eE(t)?t:void 0);break}case L.b.ENUM:{let t,n=ex(this.getInputType());ec(n)&&(t=n.getValue(e.value)),this._enumValue=t}}}leave(e){switch(e.kind){case L.b.SELECTION_SET:this._parentTypeStack.pop();break;case L.b.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case L.b.DIRECTIVE:this._directive=null;break;case L.b.OPERATION_DEFINITION:case L.b.INLINE_FRAGMENT:case L.b.FRAGMENT_DEFINITION:this._typeStack.pop();break;case L.b.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case L.b.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case L.b.LIST:case L.b.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case L.b.ENUM:this._enumValue=null}}}function tz(e,t,n){let r=n.name.value;return r===tR.name&&e.getQueryType()===t?tR:r===tF.name&&e.getQueryType()===t?tF:r===tL.name&&eO(t)?tL:ei(t)||ea(t)?t.getFields()[r]:void 0}function tK(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=P(t,r.kind).enter;if(i){let o=i.apply(t,n);return void 0!==o&&(e.leave(r),(0,E.Ll)(o)&&e.enter(o)),o}},leave(...n){let r,i=n[0],o=P(t,i.kind).leave;return o&&(r=o.apply(t,n)),e.leave(i),r}}}function tZ(e){return tW(e)||t8(e)||t3(e)}function tW(e){return e.kind===L.b.OPERATION_DEFINITION||e.kind===L.b.FRAGMENT_DEFINITION}function t0(e){return e.kind===L.b.FIELD||e.kind===L.b.FRAGMENT_SPREAD||e.kind===L.b.INLINE_FRAGMENT}function t1(e){return e.kind===L.b.VARIABLE||e.kind===L.b.INT||e.kind===L.b.FLOAT||e.kind===L.b.STRING||e.kind===L.b.BOOLEAN||e.kind===L.b.NULL||e.kind===L.b.ENUM||e.kind===L.b.LIST||e.kind===L.b.OBJECT}function t9(e){return e.kind===L.b.NAMED_TYPE||e.kind===L.b.LIST_TYPE||e.kind===L.b.NON_NULL_TYPE}function t8(e){return e.kind===L.b.SCHEMA_DEFINITION||t2(e)||e.kind===L.b.DIRECTIVE_DEFINITION}function t2(e){return e.kind===L.b.SCALAR_TYPE_DEFINITION||e.kind===L.b.OBJECT_TYPE_DEFINITION||e.kind===L.b.INTERFACE_TYPE_DEFINITION||e.kind===L.b.UNION_TYPE_DEFINITION||e.kind===L.b.ENUM_TYPE_DEFINITION||e.kind===L.b.INPUT_OBJECT_TYPE_DEFINITION}function t3(e){return e.kind===L.b.SCHEMA_EXTENSION||e.kind===L.b.DIRECTIVE_EXTENSION||t4(e)}function t4(e){return e.kind===L.b.SCALAR_TYPE_EXTENSION||e.kind===L.b.OBJECT_TYPE_EXTENSION||e.kind===L.b.INTERFACE_TYPE_EXTENSION||e.kind===L.b.UNION_TYPE_EXTENSION||e.kind===L.b.ENUM_TYPE_EXTENSION||e.kind===L.b.INPUT_OBJECT_TYPE_EXTENSION}function t6(e){return e.kind===L.b.TYPE_COORDINATE||e.kind===L.b.MEMBER_COORDINATE||e.kind===L.b.ARGUMENT_COORDINATE||e.kind===L.b.DIRECTIVE_COORDINATE||e.kind===L.b.DIRECTIVE_ARGUMENT_COORDINATE}function t5(e){return{Document(t){for(let n of t.definitions)if(!tW(n)){let t=n.kind===L.b.SCHEMA_DEFINITION||n.kind===L.b.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new v.eO(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function t7(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){var r,i;let o=e.getSchema(),a=t.name.value,s=T("to use an inline fragment on",function(e,t,n){if(!eD(t))return[];let r=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n])for(let e of(r.add(a),i[a.name]=1,a.getInterfaces())){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!=(o=i[e.name])?o:0)+1)}return[...r].sort((t,n)=>{let r=i[n.name]-i[t.name];return 0!==r?r:ea(t)&&e.isSubType(t,n)?-1:ea(n)&&e.isSubType(n,t)?1:D(t.name,n.name)}).map(e=>e.name)}
1(o,n,a));""===s&&(s=T((r=n,i=a,ei(r)||ea(r)?$(i,Object.keys(r.getFields())):[]))),e.reportError(new v.eO(`Cannot query field "${a}" on type "${n.name}".`+s,{nodes:t}))}}}}function ne(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let t=tJ(e.getSchema(),n);if(t&&!eO(t)){let t=B(n);e.reportError(new v.eO(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){let n=tJ(e.getSchema(),t.typeCondition);if(n&&!eO(n)){let n=B(t.typeCondition);e.reportError(new v.eO(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function nt(e){return{...nn(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let n=t.name.value,o=$(n,r.args.map(e=>e.name));e.reportError(new v.eO(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+T(o),{nodes:t}))}}}}function nn(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tv)t[e.name]=e.args.map(e=>e.name);for(let n of e.getDocument().definitions)if(n.kind===L.b.DIRECTIVE_DEFINITION){var r;let e=null!=(r=n.arguments)?r:[];t[n.name.value]=e.map(e=>e.name.value)}return{Directive(n){let r=n.name.value,i=t[r];if(n.arguments&&i)for(let t of n.arguments){let n=t.name.value;if(!i.includes(n)){let o=$(n,i);e.reportError(new v.eO(`Unknown argument "${n}" on directive "@${r}".`+T(o),{nodes:t}))}}return!1}}}function nr(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tv)t[e.name]=e.locations;for(let n of e.getDocument().definitions)n.kind===L.b.DIRECTIVE_DEFINITION&&(t[n.name.value]=n.locations.map(e=>e.value));return{Directive(n,r,i,o,a){let s=n.name.value,l=t[s];if(!l)return void e.reportError(new v.eO(`Unknown directive "@${s}".`,{nodes:n}));let u=function(e){let t=e[e.length-1];switch("kind"in t||(0,tT.V)(!1),t.kind){case L.b.OPERATION_DEFINITION:var n=t.operation;switch(n){case E.cE.QUERY:return e6.H.QUERY;case E.cE.MUTATION:return e6.H.MUTATION;case E.cE.SUBSCRIPTION:return e6.H.SUBSCRIPTION}return;case L.b.FIELD:return e6.H.FIELD;case L.b.FRAGMENT_SPREAD:return e6.H.FRAGMENT_SPREAD;case L.b.INLINE_FRAGMENT:return e6.H.INLINE_FRAGMENT;case L.b.FRAGMENT_DEFINITION:return e6.H.FRAGMENT_DEFINITION;case L.b.VARIABLE_DEFINITION:return e6.H.VARIABLE_DEFINITION;case L.b.SCHEMA_DEFINITION:case L.b.SCHEMA_EXTENSION:return e6.H.SCHEMA;case L.b.SCALAR_TYPE_DEFINITION:case L.b.SCALAR_TYPE_EXTENSION:return e6.H.SCALAR;case L.b.OBJECT_TYPE_DEFINITION:case L.b.OBJECT_TYPE_EXTENSION:return e6.H.OBJECT;case L.b.FIELD_DEFINITION:return e6.H.FIELD_DEFINITION;case L.b.INTERFACE_TYPE_DEFINITION:case L.b.INTERFACE_TYPE_EXTENSION:return e6.H.INTERFACE;case L.b.UNION_TYPE_DEFINITION:case L.b.UNION_TYPE_EXTENSION:return e6.H.UNION;case L.b.ENUM_TYPE_DEFINITION:case L.b.ENUM_TYPE_EXTENSION:return e6.H.ENUM;case L.b.ENUM_VALUE_DEFINITION:return e6.H.ENUM_VALUE;case L.b.INPUT_OBJECT_TYPE_DEFINITION:case L.b.INPUT_OBJECT_TYPE_EXTENSION:return e6.H.INPUT_OBJECT;case L.b.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||(0,tT.V)(!1),t.kind===L.b.INPUT_OBJECT_TYPE_DEFINITION?e6.H.INPUT_FIELD_DEFINITION:e6.H.ARGUMENT_DEFINITION}case L.b.DIRECTIVE_DEFINITION:case L.b.DIRECTIVE_EXTENSION:return e6.H.DIRECTIVE_DEFINITION;default:(0,tT.V)(!1,"Unexpected kind: "+(0,h.N)(t.kind))}}(a);u&&!l.includes(u)&&e.reportError(new v.eO(`Directive "@${s}" may not be used on ${u}.`,{nodes:n}))}}}function ni(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new v.eO(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function no(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let t of e.getDocument().definitions)t2(t)&&(r[t.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,l){let u=t.name.value;if(!n[u]&&!r[u]){var c,p;let n=null!=(c=l[2])?c:a,r=null!=n&&"kind"in(p=n)&&(t8(p)||t3(p));if(r&&na.includes(u))return;let o=$(u,r?na.concat(i):i);e.reportError(new v.eO(`Unknown type "${u}".`+T(o),{nodes:t}))}}}}let na=[...to,...tV].map(e=>e.name);function ns(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===L.b.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new v.eO("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function nl(e){var t,n,r;let i=e.getSchema(),o=null!=(t=null!=(n=null!=(r=null==i?void 0:i.astNode)?r:null==i?void 0:i.getQueryType())?n:null==i?void 0:i.getMutationType())?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition(t){o?e.reportError(new v.eO("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new v.eO("Must provide only one schema definition.",{nodes:t})),++a)}}}function nu(e){return{Field(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&function t(n,r=Object.create(null),i=0){if(n.kind===L.b.FRAGMENT_SPREAD){let o=n.name.value;if(!0===r[o])return!1;let a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=void 0}}if(n.kind===L.b.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=3)return!0;
1if("selectionSet"in n&&n.selectionSet){for(let e of n.selectionSet.selections)if(t(e,r,i))return!0}return!1}(t))return e.reportError(new v.eO("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}function nc(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>((function i(o){if(t[o.name.value])return;let a=o.name.value;t[a]=!0;let s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){for(let t of(r[a]=n.length,s)){let o=t.name.value,a=r[o];if(n.push(t),void 0===a){let t=e.getFragment(o);t&&i(t)}else{let t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new v.eO(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}})(i),!1)}}function np(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:r}of e.getRecursiveVariableUsages(n)){let i=r.name.value;!0!==t[i]&&e.reportError(new v.eO(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[r,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function nd(e){let t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){let r=Object.create(null);for(let n of t)for(let t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(let t of n){let n=t.name.value;!0!==r[n]&&e.reportError(new v.eO(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function nf(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null);for(let{node:t}of e.getRecursiveVariableUsages(n))r[t.name.value]=!0;for(let i of t){let t=i.variable.name.value;!0!==r[t]&&e.reportError(new v.eO(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function nm(e){switch(e.kind){case L.b.OBJECT:return{...e,fields:e.fields.map(e=>({...e,value:nm(e.value)})).sort((e,t)=>D(e.name.value,t.name.value))};case L.b.LIST:return{...e,values:e.values.map(nm)};case L.b.INT:case L.b.FLOAT:case L.b.STRING:case L.b.BOOLEAN:case L.b.NULL:case L.b.ENUM:case L.b.VARIABLE:return e}}function ny(e){let t=new ng,n=new nI,r=new Map;return{SelectionSet(i){for(let[[o,a],s,l]of function(e,t,n,r,i,o){let a=[],[s,l]=nN(e,t,i,o);if(function(e,t,n,r,i,o){for(let[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o<s.length;o++)for(let l=o+1;l<s.length;l++){let u=nT(e,n,r,i,!1,a,s[o],s[l]);u&&t.push(u)}}(e,a,t,n,r,s),0!==l.length)for(let i=0;i<l.length;i++){nh(e,a,t,n,r,!1,s,l[i]);for(let o=i+1;o<l.length;o++)nv(e,a,t,n,r,!1,l[i],l[o])}return a}(e,r,t,n,e.getParentType(),i)){let t=function e(t){return Array.isArray(t)?t.map(([t,n])=>`subfields "${t}" conflict because `+e(n)).join(" and "):t}(a);e.reportError(new v.eO(`Fields "${o}" conflict because ${t}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:s.concat(l)}))}}}}
1function nh(e,t,n,r,i,o,a,s){if(r.has(a,s,o))return;r.add(a,s,o);let l=e.getFragment(s);if(!l)return;let[u,c]=nb(e,n,l);if(a!==u)for(let s of(nE(e,t,n,r,i,o,a,u),c))nh(e,t,n,r,i,o,a,s)}function nv(e,t,n,r,i,o,a,s){if(a===s||i.has(a,s,o))return;i.add(a,s,o);let l=e.getFragment(a),u=e.getFragment(s);if(!l||!u)return;let[c,p]=nb(e,n,l),[d,f]=nb(e,n,u);for(let s of(nE(e,t,n,r,i,o,c,d),f))nv(e,t,n,r,i,o,a,s);for(let a of p)nv(e,t,n,r,i,o,a,s)}function nE(e,t,n,r,i,o,a,s){for(let[l,u]of Object.entries(a)){let a=s[l];if(a)for(let s of u)for(let u of a){let a=nT(e,n,r,i,o,l,s,u);a&&t.push(a)}}}function nT(e,t,n,r,i,o,a,s){let[l,u,c]=a,[p,d,f]=s,m=i||l!==p&&ei(l)&&ei(p);if(!m){let e=u.name.value,t=d.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[u],[d]];if(!function(e,t){let n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length||n.length!==r.length)return!1;let i=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{let t=e.value,n=i.get(e.name.value);return void 0!==n&&function(e){return B(nm(e))}(t)===function(e){return B(nm(e))}(n)})}(u,d))return[[o,"they have differing arguments"],[u],[d]]}let y=null==c?void 0:c.type,v=null==f?void 0:f.type;if(y&&v&&function e(t,n){return em(t)?!em(n)||e(t.ofType,n.ofType):!!em(n)||(eh(t)?!eh(n)||e(t.ofType,n.ofType):!!eh(n)||!!(eg(t)||eg(n))&&t!==n)}(y,v))return[[o,`they return conflicting types "${(0,h.N)(y)}" and "${(0,h.N)(v)}"`],[u],[d]];let E=u.selectionSet,T=d.selectionSet;if(E&&T){var N=function(e,t,n,r,i,o,a,s,l){let u=[],[c,p]=nN(e,t,o,a),[d,f]=nN(e,t,s,l);for(let o of(nE(e,u,t,n,r,i,c,d),f))nh(e,u,t,n,r,i,c,o);for(let o of p)nh(e,u,t,n,r,i,d,o);for(let o of p)for(let a of f)nv(e,u,t,n,r,i,o,a);return u}(e,t,n,r,m,ex(y),E,ex(v),T),b=o,g=u,I=d;return N.length>0?[[b,N.map(([e])=>e)],[g,...N.map(([,e])=>e).flat()],[I,...N.map(([,,e])=>e).flat()]]:void 0}}function nN(e,t,n,r){let i=t.get(r);if(i)return i;let o=Object.create(null),a=Object.create(null);!function e(t,n,r,i,o){for(let a of r.selections)switch(a.kind){case L.b.FIELD:{let e,t=a.name.value;(ei(n)||ea(n))&&(e=n.getFields()[t]);let r=a.alias?a.alias.value:t;i[r]||(i[r]=[]),i[r].push([n,a,e]);break}case L.b.FRAGMENT_SPREAD:o[a.name.value]=!0;break;case L.b.INLINE_FRAGMENT:{let r=a.typeCondition,s=r?tJ(t.getSchema(),r):n;e(t,s,a.selectionSet,i,o)}}}(e,n,r,o,a);let s=[o,Object.keys(a)];return t.set(r,s),s}function nb(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=tJ(e.getSchema(),n.typeCondition);return nN(e,t,i,n.selectionSet)}class ng{constructor(){this._data=new Map}has(e,t,n){var r;let i=null==(r=this._data.get(e))?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){let r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class nI{constructor(){this._orderedPairSet=new ng}has(e,t,n){return e<t?this._orderedPairSet.has(e,t,n):this._orderedPairSet.has(t,e,n)}add(e,t,n){e<t?this._orderedPairSet.add(e,t,n):this._orderedPairSet.add(t,e,n)}}function nO(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if(eO(n)&&eO(r)&&!e4(e.getSchema(),n,r)){let i=(0,h.N)(r),o=(0,h.N)(n);e.reportError(new v.eO(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=function(e,t){let n=e.getFragment(t);if(n){let t=tJ(e.getSchema(),n.typeCondition);if(eO(t))return t}}(e,n),i=e.getParentType();if(r&&i&&!e4(e.getSchema(),r,i)){let o=(0,h.N)(i),a=(0,h.N)(r);e.reportError(new v.eO(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}}function n_(e){let t=e.getSchema(),n=Object.create(null);for(let t of e.getDocument().definitions)t2(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){var i;let o,a=r.name.value,s=n[a],l=null==t?void 0:t.getType(a);if(s?o=nD[s.kind]:l&&(o=en(i=l)?L.b.SCALAR_TYPE_EXTENSION:ei(i)?L.b.OBJECT_TYPE_EXTENSION:ea(i)?L.b.INTERFACE_TYPE_EXTENSION:el(i)?L.b.UNION_TYPE_EXTENSION:ec(i)?L.b.ENUM_TYPE_EXTENSION:ed(i)?L.b.INPUT_OBJECT_TYPE_EXTENSION:void(0,tT.V)(!1,"Unexpected type: "+(0,h.N)(i))),o){if(o!==r.kind){let t=function(e){switch(e){case L.b.SCALAR_TYPE_EXTENSION:return"scalar";case L.b.OBJECT_TYPE_EXTENSION:return"object";case L.b.INTERFACE_TYPE_EXTENSION:return"interface";case L.b.UNION_TYPE_EXTENSION:return"union";case L.b.ENUM_TYPE_EXTENSION:return"enum";
1case L.b.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,tT.V)(!1,"Unexpected kind: "+(0,h.N)(e))}}(r.kind);e.reportError(new v.eO(`Cannot extend non-${t} type "${a}".`,{nodes:s?[s,r]:r}))}}else{let i=$(a,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new v.eO(`Cannot extend type "${a}" because it is not defined.`+T(i),{nodes:r.name}))}}}let nD={[L.b.SCALAR_TYPE_DEFINITION]:L.b.SCALAR_TYPE_EXTENSION,[L.b.OBJECT_TYPE_DEFINITION]:L.b.OBJECT_TYPE_EXTENSION,[L.b.INTERFACE_TYPE_DEFINITION]:L.b.INTERFACE_TYPE_EXTENSION,[L.b.UNION_TYPE_DEFINITION]:L.b.UNION_TYPE_EXTENSION,[L.b.ENUM_TYPE_DEFINITION]:L.b.ENUM_TYPE_EXTENSION,[L.b.INPUT_OBJECT_TYPE_DEFINITION]:L.b.INPUT_OBJECT_TYPE_EXTENSION};function nw(e){return{...nS(e),Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set(null==(n=t.arguments)?void 0:n.map(e=>e.name.value));for(let n of r.args)if(!i.has(n.name)&&eJ(n)){let i=(0,h.N)(n.type);e.reportError(new v.eO(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function nS(e){var t,n;let r=Object.create(null),i=e.getSchema();for(let e of null!=(t=null==i?void 0:i.getDirectives())?t:tv)r[e.name]=I(e.args.filter(eJ),e=>e.name);for(let t of e.getDocument().definitions)if(t.kind===L.b.DIRECTIVE_DEFINITION){let e=null!=(n=t.arguments)?n:[];r[t.name.value]=I(e.filter(n$),e=>e.name.value)}return{Directive:{leave(t){let n=t.name.value,i=r[n];if(i){var o;let r=new Set((null!=(o=t.arguments)?o:[]).map(e=>e.name.value));for(let[o,a]of Object.entries(i))if(!r.has(o)){let r=ee(a.type)?(0,h.N)(a.type):B(a.type);e.reportError(new v.eO(`Directive "@${n}" argument "${o}" of type "${r}" is required, but it was not provided.`,{nodes:t}))}}}}}}function n$(e){return e.type.kind===L.b.NON_NULL_TYPE&&null==e.defaultValue}function nA(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n)if(eg(ex(n))){if(r){let i=t.name.value,o=(0,h.N)(n);e.reportError(new v.eO(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){let r=t.name.value,i=(0,h.N)(n);e.reportError(new v.eO(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{let r=t.name.value,i=(0,h.N)(n);e.reportError(new v.eO(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}function nR(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function nF(e,t,n){return{prev:e,key:t,typename:n}}function nL(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function nV(e,t,n=nk){return function e(t,n,r,i){if(eh(n))return null!=t?e(t,n.ofType,r,i):void r(nL(i),t,new v.eO(`Expected non-nullable type "${(0,h.N)(n)}" not to be null.`));if(null==t)return null;if(em(n)){let o=n.ofType;return tN(t)?Array.from(t,(t,n)=>e(t,o,r,nF(i,n,void 0))):[e(t,o,r,i)]}if(ed(n)){if(!(0,g.Z)(t)||Array.isArray(t))return void r(nL(i),t,new v.eO(`Expected type "${n.name}" to be an object.`));let o=Object.create(null),a=n.getFields();for(let s of Object.values(a)){let a=t[s.name];if(void 0===a){if(void 0!==s.defaultValue)o[s.name]=s.defaultValue;else if(eh(s.type)){let e=(0,h.N)(s.type);r(nL(i),t,new v.eO(`Field "${s.name}" of required type "${e}" was not provided.`))}continue}o[s.name]=e(a,s.type,r,nF(i,s.name,n.name))}for(let e of Object.keys(t))if(!a[e]){let o=$(e,Object.keys(n.getFields()));r(nL(i),t,new v.eO(`Field "${e}" is not defined by type "${n.name}".`+T(o)))}if(n.isOneOf){let e=Object.keys(o);1!==e.length&&r(nL(i),t,new v.eO(`Exactly one key must be specified for OneOf type "${n.name}".`));let a=e[0],s=o[a];null===s&&r(nL(i).concat(a),s,new v.eO(`Field "${a}" must be non-null.`))}return{...o}}if(eg(n)){let e;try{e=n.parseValue(t)}catch(e){e instanceof v.eO?r(nL(i),t,e):r(nL(i),t,new v.eO(`Expected type "${n.name}". `+e.message,{originalError:e}));return}return void 0===e&&r(nL(i),t,new v.eO(`Expected type "${n.name}".`)),e}(0,tT.V)(!1,"Unexpected input type: "+(0,h.N)(n))}(e,t,n,void 0)}function nk(e,t,n){let r="Invalid value "+(0,h.N)(t);throw e.length>0&&(r+=` at "value${nR(e)}"`),n.message=r+": "+n.message,n}function nU(e,t,n){if(e){if(e.kind===L.b.VARIABLE){let r=e.name.value;if(null==n||void 0===n[r]||!nC(n,r))return;let i=n[r];if(null===i&&eh(t))return;return i}if(eh(t)){if(e.kind===L.b.NULL)return;return nU(e,t.ofType,n)}if(e.kind===L.b.NULL)return null;if(em(t)){let r=t.ofType;if(e.kind===L.b.LIST){let t=[];for(let i of e.values)if(nx(i,n)){if(eh(r))return;t.push(null)}else{let e=nU(i,r,n);if(void 0===e)return;t.push(e)}return t}let i=nU(e,r,n);if(void 0===i)return;return[i]}if(ed(t)){if(e.kind!==L.b.OBJECT)return;let r=Object.create(null),i=I(e.fields,e=>e.name.value);for(let e of Object.values(t.getFields())){let t=i[e.name];if(!t||nx(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(eh(e.type))return;continue}let o=nU(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}if(t.isOneOf){let e=Object.keys(r);if(1!==e.length||null===r[e[0]])return}return r}if(eg(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}(0,tT.V)(!1,"Unexpected input type: "+(0,h.N)(t))}}function nx(e,t){return e.kind===L.b.VARIABLE&&(null==t||void 0===t[e.name.value]||!nC(t,e.name.value))}function nC(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nj(e,t,n,r){let i=[],o=null==r?void 0:r.maxErrors;try{let r=function(e,t,n,r){let i=Object.create(null);for(let o of t){let t=o.variable.name.value,a=tJ(e,o.type);if(!eE(a)){let e=B(o.type);r(new v.eO(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!nG(n,t)){if(o.defaultValue)i[t]=nU(o.defaultValue,a);else if(eh(a)){let e=(0,h.N)(a);r(new v.eO(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}let s=n[t];if(null===s&&eh(a)){let e=(0,h.N)(a);r(new v.eO(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}));continue}i[t]=nV(s,a,(e,n,i)=>{let a=`Variable "$${t}" got invalid value `+(0,h.N)(n);e.length>0&&(a+=` at "${t}${nR(e)}"`),r(new v.eO(a+"; "+i.message,{nodes:o,originalError:i}))})}return{...i}}(e,t,n,e=>{if(null!=o&&i.length>=o)throw new v.eO("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function nM(e,t,n){var r;let i=Object.create(null),o=I(null!=(r=t.arguments)?r:[],e=>e.name.value);for(let r of e.args){let e=r.name,a=r.type,s=o[e];if(!s){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(eh(a))throw new v.eO(`Argument "${e}" of required type "${(0,h.N)(a)}" was not provided.`,{nodes:t});continue}let l=s.value,u=l.kind===L.b.NULL;if(l.kind===L.b.VARIABLE){let t=l.name.value;if(null==n||!nG(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(eh(a))throw new v.eO(`Argument "${e}" of required type "${(0,h.N)(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}u=null==n[t]}if(u&&eh(a))throw new v.eO(`Argument "${e}" of non-null type "${(0,h.N)(a)}" must not be null.`,{nodes:l});let c=nU(l,a,n);if(void 0===c)throw new v.eO(`Argument "${e}
1" has invalid value ${B(l)}.`,{nodes:l});i[e]=c}return{...i}}function nP(e,t,n){var r;let i=null==(r=t.directives)?void 0:r.find(t=>t.name.value===e.name);if(i)return nM(e,i,n)}function nG(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nB(e,t,n,r,i){let o=new Map;return nQ(e,t,n,r,i,o,new Set),o}function nQ(e,t,n,r,i,o,a){for(let l of i.selections)switch(l.kind){case L.b.FIELD:{var s;if(!nY(n,l))continue;let e=(s=l).alias?s.alias.value:s.name.value,t=o.get(e);void 0!==t?t.push(l):o.set(e,[l]);break}case L.b.INLINE_FRAGMENT:if(!nY(n,l)||!nH(e,l,r))continue;nQ(e,t,n,r,l.selectionSet,o,a);break;case L.b.FRAGMENT_SPREAD:{let i=l.name.value;if(a.has(i)||!nY(n,l))continue;a.add(i);let s=t[i];if(!s||!nH(e,s,r))continue;nQ(e,t,n,r,s.selectionSet,o,a)}}}function nY(e,t){let n=nP(td,t,e);if((null==n?void 0:n.if)===!0)return!1;let r=nP(tp,t,e);return(null==r?void 0:r.if)!==!1}function nH(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=tJ(e,r);return i===n||!!eD(i)&&e.isSubType(i,n)}function nq(e){return{OperationDefinition(t){if("subscription"===t.operation){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(let e of a.definitions)e.kind===L.b.FRAGMENT_DEFINITION&&(s[e.name.value]=e);let l=nB(n,s,o,r,t.selectionSet);if(l.size>1){let t=[...l.values()].slice(1).flat();e.reportError(new v.eO(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(let t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new v.eO(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function nJ(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function nX(e){return{DirectiveDefinition(e){var t;let r=null!=(t=e.arguments)?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,r;let i=e.name.value;for(let o of null!=(t=e.fields)?t:[]){let e=o.name.value;n(`${i}.${e}`,null!=(r=o.arguments)?r:[])}return!1}function n(t,n){for(let[r,i]of nJ(n,e=>e.name.value))i.length>1&&e.reportError(new v.eO(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function nz(e){return{Field:t,Directive:t};function t(t){var n;for(let[r,i]of nJ(null!=(n=t.arguments)?n:[],e=>e.name.value))i.length>1&&e.reportError(new v.eO(`There can be only one argument named "${r}".`,{nodes:i.map(e=>e.name)}))}}function nK(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;return null!=n&&n.getDirective(i)?void e.reportError(new v.eO(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name})):(t[i]?e.reportError(new v.eO(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}}function nZ(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tv)t[e.name]=!e.isRepeatable;for(let n of e.getDocument().definitions)n.kind===L.b.DIRECTIVE_DEFINITION&&(t[n.name.value]=!n.repeatable);let r=Object.create(null),i=Object.create(null),o=Object.create(null);return{enter(n){let a;if("directives"in n&&n.directives){if(n.kind===L.b.SCHEMA_DEFINITION||n.kind===L.b.SCHEMA_EXTENSION)a=r;else if(t2(n)||t4(n)){let e=n.name.value;void 0===(a=i[e])&&(i[e]=a=Object.create(null))}else if(n.kind===L.b.DIRECTIVE_DEFINITION||n.kind===L.b.DIRECTIVE_EXTENSION){let e=n.name.value;void 0===(a=o[e])&&(o[e]=a=Object.create(null))}else a=Object.create(null);for(let r of n.directives){let n=r.name.value;t[n]&&(a[n]?e.reportError(new v.eO(`The directive "@${n}" can only be used once at this location.`,{nodes:[a[n],r]})):a[n]=r)}}}}}function nW(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;let o=t.name.value;r[o]||(r[o]=Object.create(null));let a=null!=(i=t.values)?i:[],s=r[o];for(let t of a){let r=t.name.value,i=n[o];ec(i)&&i.getValue(r)?e.reportError(new v.eO(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new v.eO(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function n0(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o,a;let s=t.name.value;r[s]||(r[s]=Object.create(null));let l=null!=(i=t.fields)?i:[],u=r[s];for(let t of l){let r=t.name.value;(o=n[s],a=r,(ei(o)||ea(o)||ed(o))&&null!=o.getFields()[a])?e.reportError(new v.eO(`Field "${s}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[r]?e.reportError(new v.eO(`Field "${s}.${r}" can only be defined once.`,{nodes:[u[r],t.name]})):u[r]=t.name}return!1}}function n1(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new v.eO(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function n9(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let e=t.pop();e||(0,tT.V)(!1),n=e}},ObjectField(t){let r=t.name.value;n[r]?e.reportError(new v.eO(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function n8(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new v.eO(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function n2(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;
1for(let o of null!=(i=t.operationTypes)?i:[]){let t=o.operation,i=n[t];r[t]?e.reportError(new v.eO(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:o})):i?e.reportError(new v.eO(`There can be only one ${t} type in schema.`,{nodes:[i,o]})):n[t]=o}return!1}}function n3(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){let i=r.name.value;return null!=n&&n.getType(i)?void e.reportError(new v.eO(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name})):(t[i]?e.reportError(new v.eO(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}function n4(e){return{OperationDefinition(t){var n;for(let[r,i]of nJ(null!=(n=t.variableDefinitions)?n:[],e=>e.variable.name.value))i.length>1&&e.reportError(new v.eO(`There can be only one variable named "$${r}".`,{nodes:i.map(e=>e.variable.name)}))}}}function n6(e){return{ListValue(t){if(!em(eV(e.getParentInputType())))return n5(e,t),!1},ObjectValue(t){let n=ex(e.getInputType());if(!ed(n))return n5(e,t),!1;let r=I(t.fields,e=>e.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&e8(i)){let r=(0,h.N)(i.type);e.reportError(new v.eO(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&function(e,t,n,r){var i;let o=Object.keys(r);if(1!==o.length)return e.reportError(new v.eO(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));let a=null==(i=r[o[0]])?void 0:i.value;a&&a.kind!==L.b.NULL||e.reportError(new v.eO(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){let n=ex(e.getParentInputType());if(!e.getInputType()&&ed(n)){let r=$(t.name.value,Object.keys(n.getFields()));e.reportError(new v.eO(`Field "${t.name.value}" is not defined by type "${n.name}".`+T(r),{nodes:t}))}},NullValue(t){let n=e.getInputType();eh(n)&&e.reportError(new v.eO(`Expected value of type "${(0,h.N)(n)}", found ${B(t)}.`,{nodes:t}))},EnumValue:t=>n5(e,t),IntValue:t=>n5(e,t),FloatValue:t=>n5(e,t),StringValue:t=>n5(e,t),BooleanValue:t=>n5(e,t)}}function n5(e,t){let n=e.getInputType();if(!n)return;let r=ex(n);if(!eg(r)){let r=(0,h.N)(n);e.reportError(new v.eO(`Expected value of type "${r}", found ${B(t)}.`,{nodes:t}));return}try{let i=r.parseLiteral(t,void 0);if(void 0===i){let r=(0,h.N)(n);e.reportError(new v.eO(`Expected value of type "${r}", found ${B(t)}.`,{nodes:t}))}}catch(i){let r=(0,h.N)(n);i instanceof v.eO?e.reportError(i):e.reportError(new v.eO(`Expected value of type "${r}", found ${B(t)}; `+i.message,{nodes:t,originalError:i}))}}function n7(e){return{VariableDefinition(t){let n=tJ(e.getSchema(),t.type);if(void 0!==n&&!eE(n)){let n=t.variable.name.value,r=B(t.type);e.reportError(new v.eO(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function re(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:l,type:u,defaultValue:c,parentType:p}of e.getRecursiveVariableUsages(n)){let n=l.name.value,d=t[n];if(d&&u){var r,i,o,a,s;let t=e.getSchema(),f=tJ(t,d.type);if(f&&(r=t,i=f,o=d.defaultValue,a=u,s=c,eh(a)&&!eh(i)?!((null!=o&&o.kind!==L.b.NULL||void 0!==s)&&e3(r,i,a.ofType)):!e3(r,i,a))){let t=(0,h.N)(f),r=(0,h.N)(u);e.reportError(new v.eO(`Variable "$${n}" of type "${t}" used in position expecting type "${r}".`,{nodes:[d,l]}))}ed(p)&&p.isOneOf&&eF(f)&&e.reportError(new v.eO(`Variable "$${n}" is of type "${f}" but must be non-nullable to be used for OneOf Input Object "${p}".`,{nodes:[d,l]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}let rt=Object.freeze([nu]),rn=Object.freeze([t5,n8,ns,nq,no,ne,n7,nA,t7,n1,ni,nd,nO,nc,n4,np,nf,nr,nZ,nt,nz,n6,nw,re,ny,n9,...rt]),rr=Object.freeze([nl,n2,n3,nW,n0,nX,nK,no,nr,nZ,n_,nn,nz,n9,nS]);class ri{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{for(let e of(t=Object.create(null),this.getDocument().definitions))e.kind===L.b.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){let n;t=[];let r=[e];for(;n=r.pop();)for(let e of n.selections)e.kind===L.b.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&r.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){let n;t=[];let r=Object.create(null),i=[e.selectionSet];for(;n=i.pop();)for(let e of this.getFragmentSpreads(n)){let n=e.name.value;if(!0!==r[n]){r[n]=!0;let e=this.getFragment(n);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class ro extends ri{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class ra extends ri{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let n=[],r=new tX(this._schema);j(e,tK(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){for(let n of(t=this.getVariableUsages(e),this.getRecursivelyReferencedFragments(e)))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}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()}}let rs=_(E.aD,e=>e.filter(e=>"description"!==e));function rl(e,t,n=rn,r,i=new tX(e)){var o;let a=null!=(o=null==r?void 0:r.maxErrors)?o:100;t||(0,f.U)(!1,"Must provide document."),tP(e);let s=Object.freeze({}),l=[],u=new ra(e,t,i,e=>{if(l.length>=a)throw l.push(new v.eO("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),c=M(n.map(e=>e(u)));try{j(t,tK(i,c),rs)}catch(e){if(e!==s)throw e}return l}function ru(e,t,n=rr){let r=[],i=new ro(e,t,e=>{r.push(e)});return j(e,M(n.map(e=>e(i)))),r}function rc(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}
1class rp extends Error{constructor(e){super("Unexpected error value: "+(0,h.N)(e)),this.name="NonErrorThrown",this.thrownValue=e}}function rd(e,t,n){var r;let i=e instanceof Error?e:new rp(e);return Array.isArray(i.path)?i:new v.eO(i.message,{nodes:null!=(r=i.nodes)?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}let rf=(s=(e,t,n)=>(function(e,t,n,r,i){let o=new Map,a=new Set;for(let s of i)s.selectionSet&&nQ(e,t,n,r,s.selectionSet,o,a);return o})(e.schema,e.fragments,e.variableValues,t,n),function(e,t,n){void 0===r&&(r=new WeakMap);let i=r.get(e);void 0===i&&(i=new WeakMap,r.set(e,i));let o=i.get(t);void 0===o&&(o=new WeakMap,i.set(t,o));let a=o.get(n);return void 0===a&&(a=s(e,t,n),o.set(n,a)),a});class rm{constructor(){this._errorPositions=new Set,this._errors=[]}get errors(){return this._errors}add(e,t){this._hasNulledPosition(t)||(this._errorPositions.add(t),this._errors.push(e))}_hasNulledPosition(e){let t=e;for(;void 0!==t;){if(this._errorPositions.has(t))return!0;t=t.prev}return this._errorPositions.has(void 0)}}function ry(e){arguments.length<2||(0,f.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;rE(t,n,r);let o=rT(e);if(!("schema"in o))return{errors:o};try{let{operation:e}=o,t=function(e,t,n){let r=e.schema.getRootType(t.operation);if(null==r)throw new v.eO(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=nB(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o;switch(t.operation){case E.cE.QUERY:return rN(e,r,n,o,i);case E.cE.MUTATION:var a,s,l,u,c;return a=e,s=r,l=n,u=o,c=i,function(e,t,n){let r=n;for(let n of e)r=m(r)?r.then(e=>t(e,n)):t(r,n);return r}(c.entries(),(e,[t,n])=>{let r=nF(u,t,s.name),i=rb(a,s,l,n,r);return void 0===i?e:m(i)?i.then(n=>(e[t]=n,e)):(e[t]=i,e)},Object.create(null));case E.cE.SUBSCRIPTION:return rN(e,r,n,o,i)}}(o,e,i);if(m(t))return t.then(e=>rv(e,o.collectedErrors.errors),e=>(o.collectedErrors.add(e,void 0),rv(null,o.collectedErrors.errors)));return rv(t,o.collectedErrors.errors)}catch(e){return o.collectedErrors.add(e,void 0),rv(null,o.collectedErrors.errors)}}function rh(e){let t=ry(e);if(m(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function rv(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function rE(e,t,n){t||(0,f.U)(!1,"Must provide document."),tP(e),null==n||(0,g.Z)(n)||(0,f.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 rT(e){var t,n,r;let i,{schema:o,document:a,rootValue:s,contextValue:l,variableValues:u,operationName:c,fieldResolver:p,typeResolver:d,subscribeFieldResolver:f,options:m}=e,y=Object.create(null);for(let e of a.definitions)switch(e.kind){case L.b.OPERATION_DEFINITION:if(null==c){if(void 0!==i)return[new v.eO("Must provide operation name if query contains multiple operations.")];i=e}else(null==(t=e.name)?void 0:t.value)===c&&(i=e);break;case L.b.FRAGMENT_DEFINITION:y[e.name.value]=e}if(!i)return null!=c?[new v.eO(`Unknown operation named "${c}".`)]:[new v.eO("Must provide an operation.")];let h=nj(o,null!=(n=i.variableDefinitions)?n:[],null!=u?u:{},{maxErrors:null!=(r=null==m?void 0:m.maxCoercionErrors)?r:50});return h.errors?h.errors:{schema:o,fragments:y,rootValue:s,contextValue:l,operation:i,variableValues:h.coerced,fieldResolver:null!=p?p:r$,typeResolver:null!=d?d:rS,subscribeFieldResolver:null!=f?f:r$,collectedErrors:new rm}}function rN(e,t,n,r,i){let o=Object.create(null),a=!1;try{for(let[s,l]of i.entries()){let i=nF(r,s,t.name),u=rb(e,t,n,l,i);void 0!==u&&(o[s]=u,m(u)&&(a=!0))}}catch(e){if(a)return rc(o).finally(()=>{throw e});throw e}return a?rc(o):o}function rb(e,t,n,r,i){var o;let a=rA(e.schema,t,r[0]);if(!a)return;let s=a.type,l=null!=(o=a.resolve)?o:e.fieldResolver,u=rg(e,a,r,t,i);try{let t,o=nM(a,r[0],e.variableValues),c=e.contextValue,p=l(n,o,c,u);if(t=m(p)?p.then(t=>rO(e,s,r,u,i,t)):rO(e,s,r,u,i,p),m(t))return t.then(void 0,t=>{let n=rd(t,r,nL(i));return rI(n,s,i,e)});return t}catch(t){return rI(rd(t,r,nL(i)),s,i,e)}}function rg(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function rI(e,t,n,r){if(eh(t))throw e;return r.collectedErrors.add(e,n),null}function rO(e,t,n,r,i,o){var a,s,l,u,c,p,d;let f;if(o instanceof Error)throw o;if(eh(t)){let a=rO(e,t.ofType,n,r,i,o);if(null===a)throw Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==o?null:em(t)?function(e,t,n,r,i,o){if(!tN(o))throw new v.eO(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let a=t.ofType,s=!1,l=Array.from(o,(t,o)=>{let l=nF(i,o,void 0);try{let i;if(i=m(t)?t.then(t=>rO(e,a,n,r,l,t)):rO(e,a,n,r,l,t),m(i))return s=!0,i.then(void 0,t=>{let r=rd(t,n,nL(l));return rI(r,a,l,e)});return i}catch(t){return rI(rd(t,n,nL(l)),a,l,e)}});return s?Promise.all(l):l}(e,t,n,r,i,o):eg(t)?function(e,t){let n=e.serialize(t);if(null==n)throw Error(`Expected \`${(0,h.N)(e)}.serialize(${(0,h.N)(t)})\` to return non-nullable value, returned: ${(0,h.N)(n)}`);return n}(t,o):eD(t)?(a=e,s=t,l=n,u=r,c=i,p=o,m(f=(null!=(d=s.resolveType)?d:a.typeResolver)(p,a.contextValue,u,s))?f.then(e=>rD(a,r_(e,a,s,l,u,p),l,u,c,p)):rD(a,r_(f,a,s,l,u,p),l,u,c,p)):ei(t)?rD(e,t,n,r,i,o):void(0,tT.V)(!1,"Cannot complete value of unexpected output type: "+(0,h.N)(t))}function r_(e,t,n,r,i,o){if(null==e)throw new v.eO(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(ei(e))throw new v.eO("Support for returning GraphQLObjectType from resolveType was removed in [email protected] please return type name instead.");if("string"!=typeof e)throw new v.eO(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,h.N)(o)}, received "${(0,h.N)(e)}".`);let a=t.schema.getType(e);if(null==a)throw new v.eO(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!ei(a))throw new v.eO(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new v.eO(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function rD(e,t,n,r,i,o){let a=rf(e,t,n);if(t.isTypeOf){let s=t.isTypeOf(o,e.contextValue,r);if(m(s))return s.then(r=>{if(!r)throw rw(t,o,n);return rN(e,t,o,i,a)});if(!s)throw rw(t,o,n)}return rN(e,t,o,i,a)}function rw(e,t,n){return new v.eO(`Expected value of type "${e.name}" but got: ${(0,h.N)(t)}.`,{nodes:n})}let rS=function(e,t,n,r){if((0,g.Z)(e)&&"string"==typeof e.__typename)return e.__typename;let i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r<i.length;r++){let a=i[r];if(a.isTypeOf){let i=a.isTypeOf(e,t,n);if(m(i))o[r]=i;else if(i)return o.length&&Promise.allSettled(o).catch(()=>{}),a.name}}if(o.length)return Promise.all(o).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})},r$=function(e,t,n,r){if((0,g.Z)(e)||"function"==typeof e){let i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function rA(e,t,n){let r=n.name.value;return r===tR.name&&e.getQueryType()===t?tR:r===tF.name&&e.getQueryType()===t?tF:r===tL.name?tL:t.getFields()[r]}function rR(e){return new Promise(t=>t(rL(e)))}function rF(e){let t=rL(e);if(m(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function rL(e){let t;arguments.length<2||(0,f.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:n,source:r,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u}=e,c=tM(n);if(c.length>0)return{errors:c};try{t=(0,y.qg)(r)}catch(e){return{errors:[e]}}let p=rl(n,t);return p.length>0?{errors:p}
1:ry({schema:n,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u})}var rV=n(42728),rk=n(7078),rU=n(92143),rx=n(14693),rC=n(12754);function rj(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function rM(e){arguments.length<2||(0,f.U)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await rP(e);if(!rj(t))return t;let n=t[Symbol.asyncIterator]();async function r(t){if(t.done)return t;try{let n;return{value:await (n=t.value,ry({...e,rootValue:n})),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function rP(...e){let t,n=(t=e[0])&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]},{schema:r,document:i,variableValues:o}=n;rE(r,i,o);let a=rT(n);if(!("schema"in a))return{errors:a};try{let e=await rG(a);if(!rj(e))throw Error(`Subscription field must return Async Iterable. Received: ${(0,h.N)(e)}.`);return e}catch(e){if(e instanceof v.eO)return{errors:[e]};throw e}}async function rG(e){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new v.eO("Schema is not configured to execute subscription operation.",{nodes:r});let[s,l]=[...nB(t,n,i,a,r.selectionSet).entries()][0],u=rA(t,a,l[0]);if(!u){let e=l[0].name.value;throw new v.eO(`The subscription field "${e}" is not defined.`,{nodes:l})}let c=nF(void 0,s,a.name),p=rg(e,u,l,a,c);try{var d;let t=nM(u,l[0],i),n=e.contextValue,r=null!=(d=u.subscribe)?d:e.subscribeFieldResolver,a=await r(o,t,n,p);if(a instanceof Error)throw a;return a}catch(e){throw rd(e,l,nL(c))}}function rB(e){return{Field(t){let n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getParentType();null!=i||(0,tT.V)(!1),e.reportError(new v.eO(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getDirective();if(null!=i)e.reportError(new v.eO(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||(0,tT.V)(!1),e.reportError(new v.eO(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=ex(e.getParentInputType());if(ed(n)){let r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new v.eO(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=ex(e.getInputType());null!=i||(0,tT.V)(!1),e.reportError(new v.eO(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function rQ(e){return{Field(t){let n=ex(e.getType());n&&tk(n)&&e.reportError(new v.eO(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var rY=n(98136);function rH(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,experimentalDirectiveDeprecation:!1,oneOf:!1,typeDepth:9,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}function s(e){return t.experimentalDirectiveDeprecation?e:""}let l=t.oneOf?"isOneOf":"";return` 2 query IntrospectionQuery { 3 __schema { 4 ${o} 5 queryType { name kind } 6 mutationType { name kind } 7 subscriptionType { name kind } 8 types { 9 ...FullType 10 } 11 directives${s("(includeDeprecated: true)")} { 12 name 13 ${n} 14 ${i} 15 ${s("isDeprecated")} 16 ${s("deprecationReason")} 17 locations 18 args${a("(includeDeprecated: true)")} { 19 ...InputValue 20 } 21 } 22 } 23 } 24 25 fragment FullType on __Type { 26 kind 27 name 28 ${n} 29 ${r} 30 ${l} 31 fields(includeDeprecated: true) { 32 name 33 ${n} 34 args${a("(includeDeprecated: true)")} { 35 ...InputValue 36 } 37 type { 38 ...TypeRef 39 } 40 isDeprecated 41 deprecationReason 42 } 43 inputFields${a("(includeDeprecated: true)")} { 44 ...InputValue 45 } 46 interfaces { 47 ...TypeRef 48 } 49 enumValues(includeDeprecated: true) { 50 name 51 ${n} 52 isDeprecated 53 deprecationReason 54 } 55 possibleTypes { 56 ...TypeRef 57 } 58 } 59 60 fragment InputValue on __InputValue { 61 name 62 ${n} 63 type { ...TypeRef } 64 defaultValue 65 ${a("isDeprecated")} 66 ${a("deprecationReason")} 67 } 68 69 fragment TypeRef on __Type { 70 kind 71 name${function e(t,n){if(t<=0)return"";if(t>100)throw Error("Please set typeDepth to a reasonable value between 0 and 100; the default is 9.");return` 72${n}ofType { 73${n} name 74${n} kind${e(t-1,n+" ")} 75${n}}`}(t.typeDepth," ")} 76 } 77 `}function rq(e,t){let n=null;for(let i of e.definitions)if(i.kind===L.b.OPERATION_DEFINITION){var r;if(null==t){if(n)return null;n=i}else if((null==(r=i.name)?void 0:r.value)===t)return i}return n}function rJ(e,t){if("query"===t.operation){let n=e.getQueryType();if(!n)throw new v.eO("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){let n=e.getMutationType();if(!n)throw new v.eO("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){let n=e.getSubscriptionType();if(!n)throw new v.eO("Schema is not configured for subscriptions.",{nodes:t});return n}throw new v.eO("Can only have query, mutation and subscription operations.",{nodes:t})}function rX(e,t){let n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,experimentalDirectiveDeprecation:!0,oneOf:!0,...t},r=rh({schema:e,document:(0,y.qg)(rH(n))});return!r.errors&&r.data||(0,tT.V)(!1),r.data}function rz(e,t){(0,g.Z)(e)&&(0,g.Z)(e.__schema)||(0,f.U)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,h.N)(e)}.`);let n=e.__schema,r=O(n.types,e=>e.name,e=>(function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case c.SCALAR:return new eM({name:(t=e).name,description:t.description,specifiedByURL:t.specifiedByURL});case c.OBJECT:return new eP({name:(n=e).name,description:n.description,interfaces:()=>m(n),fields:()=>v(n)});case c.INTERFACE:return new eX({name:(r=e).name,description:r.description,interfaces:()=>m(r),fields:()=>v(r)});case c.UNION:var t,n,r,i=e;if(!i.possibleTypes){let e=(0,h.N)(i);throw Error(`Introspection result missing possibleTypes: ${e}.`)}return new ez({name:i.name,description:i.description,types:()=>i.possibleTypes.map(p)});case c.ENUM:var o=e;if(!o.enumValues){let e=(0,h.N)(o);throw Error(`Introspection result missing enumValues: ${e}.`)}return new eZ({name:o.name,description:o.description,values:O(o.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))});case c.INPUT_OBJECT:var a=e;if(!a.inputFields){let e=(0,h.N)(a);throw Error(`Introspection result missing inputFields: ${e}.`)}return new e1({name:a.name,description:a.description,fields:()=>T(a.inputFields),isOneOf:a.isOneOf})}let s=(0,h.N)(e);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${s}.`)})(e));for(let e of[...to,...tV])r[e.name]&&(r[e.name]=e);let i=n.queryType?p(n.queryType):null,o=n.mutationType?p(n.mutationType):null,a=n.subscriptionType?p(n.subscriptionType):null,s=n.directives?n.directives.map(function(e){if(!e.args){let t=(0,h.N)(e);throw Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){let t=(0,h.N)(e);throw Error(`Introspection result missing directive locations: ${t}.`)}return new tc({name:e.name,description:e.description,isRepeatable:e.isRepeatable,deprecationReason:e.deprecationReason,locations:e.locations.slice(),args:T(e.args)})}):[];return new tC({description:n.description,query:i,mutation:o,subscription:a,types:Object.values(r),directives:s,assumeValid:null==t?void 0:t.assumeValid});function l(e){if(e.kind===c.LIST){let t=e.ofType;
77if(!t)throw Error("Decorated type deeper than introspection query.");return new eS(l(t))}if(e.kind===c.NON_NULL){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new e$(eL(l(t)))}return u(e)}function u(e){let t=e.name;if(!t)throw Error(`Unknown type reference: ${(0,h.N)(e)}.`);let n=r[t];if(!n)throw Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function p(e){return eo(u(e))}function d(e){return es(u(e))}function m(e){if(null===e.interfaces&&e.kind===c.INTERFACE)return[];if(!e.interfaces){let t=(0,h.N)(e);throw Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(d)}function v(e){if(!e.fields)throw Error(`Introspection result missing fields: ${(0,h.N)(e)}.`);return O(e.fields,e=>e.name,E)}function E(e){let t=l(e.type);if(!eN(t)){let e=(0,h.N)(t);throw Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){let t=(0,h.N)(e);throw Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:T(e.args)}}function T(e){return O(e,e=>e.name,N)}function N(e){let t=l(e.type);if(!eE(t)){let e=(0,h.N)(t);throw Error(`Introspection must provide input type for arguments, but received: ${e}.`)}let n=null!=e.defaultValue?nU((0,y.$x)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function rK(e,t,n){tx(e),null!=t&&t.kind===L.b.DOCUMENT||(0,f.U)(!1,"Must provide valid Document AST."),(null==n?void 0:n.assumeValid)!==!0&&(null==n?void 0:n.assumeValidSDL)!==!0&&function(e,t){let n=ru(e,t);if(0!==n.length)throw Error(n.map(e=>e.message).join("\n\n"))}(t,e);let r=e.toConfig(),i=rZ(r,t,n);return r===i?e:new tC(i)}function rZ(e,t,n){var r,i,o,a,s,l;let u,c=[],p=Object.create(null),d=Object.create(null),f=[],m=[];for(let e of t.definitions)if(e.kind===L.b.SCHEMA_DEFINITION)u=e;else if(e.kind===L.b.SCHEMA_EXTENSION)m.push(e);else if(t2(e))c.push(e);else if(t4(e)){let t=e.name.value,n=p[t];p[t]=n?n.concat([e]):[e]}else if(e.kind===L.b.DIRECTIVE_DEFINITION)f.push(e);else if(e.kind===L.b.DIRECTIVE_EXTENSION){let t=e.name.value,n=d[t];d[t]=n?n.concat([e]):[e]}if(0===Object.keys(p).length&&0===c.length&&0===Object.keys(d).length&&0===f.length&&0===m.length&&null==u)return e;let y=Object.create(null);for(let t of e.types){y[t.name]=tk(l=t)||ta(l)?l:en(l)?function(e){var t,n;let r=e.toConfig(),i=null!=(t=p[r.name])?t:[],o=r.specifiedByURL;for(let e of i)o=null!=(n=r1(e))?n:o;return new eM({...r,specifiedByURL:o,extensionASTNodes:r.extensionASTNodes.concat(i)})}(l):ei(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=p[n.name])?t:[];return new eP({...n,interfaces:()=>[...e.getInterfaces().map(b),...F(r)],fields:()=>({..._(n.fields,g),...S(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):ea(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=p[n.name])?t:[];return new eX({...n,interfaces:()=>[...e.getInterfaces().map(b),...F(r)],fields:()=>({..._(n.fields,g),...S(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):el(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=p[n.name])?t:[];return new ez({...n,types:()=>[...e.getTypes().map(b),...V(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):ec(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=p[e.name])?t:[];return new eZ({...n,values:{...n.values,...R(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):ed(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=p[n.name])?t:[];return new e1({...n,fields:()=>({..._(n.fields,e=>({...e,type:N(e.type)})),...A(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):void(0,tT.V)(!1,"Unexpected type: "+(0,h.N)(l))}for(let e of c){let t=e.name.value;y[t]=null!=(s=rW[t])?s:function(e){var t,n,r,i,o,a,s;let l=e.name.value,u=null!=(t=p[l])?t:[];switch(e.kind){case L.b.OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new eP({name:l,description:null==(n=e.description)?void 0:n.value,interfaces:()=>F(t),fields:()=>S(t),astNode:e,extensionASTNodes:u})}case L.b.INTERFACE_TYPE_DEFINITION:{let t=[e,...u];return new eX({name:l,description:null==(r=e.description)?void 0:r.value,interfaces:()=>F(t),fields:()=>S(t),astNode:e,extensionASTNodes:u})}case L.b.ENUM_TYPE_DEFINITION:{let t=[e,...u];return new eZ({name:l,description:null==(i=e.description)?void 0:i.value,values:R(t),astNode:e,extensionASTNodes:u})}case L.b.UNION_TYPE_DEFINITION:{let t=[e,...u];return new ez({name:l,description:null==(o=e.description)?void 0:o.value,types:()=>V(t),astNode:e,extensionASTNodes:u})}case L.b.SCALAR_TYPE_DEFINITION:return new eM({name:l,description:null==(a=e.description)?void 0:a.value,specifiedByURL:r1(e),astNode:e,extensionASTNodes:u});case L.b.INPUT_OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new e1({name:l,description:null==(s=e.description)?void 0:s.value,fields:()=>A(t),astNode:e,extensionASTNodes:u,isOneOf:!!nP(th,e)})}}}(e)}let v=Object.create(null);for(let t of e.directives)v[t.name]=function(e){var t,n;let r=e.toConfig(),i=null!=(t=d[r.name])?t:[],o=null!=(n=r.deprecationReason)?n:i.map(e=>r0(e)).find(e=>null!=e);return new tc({...r,deprecationReason:o,extensionASTNodes:r.extensionASTNodes.concat(i)})}(t);let E={query:e.query&&b(e.query),mutation:e.mutation&&b(e.mutation),subscription:e.subscription&&b(e.subscription),...u&&O([u]),...O(m)},T=Object.values(v);return{description:null==(r=u)||null==(i=r.description)?void 0:i.value,...E,types:Object.values(y),directives:[...T.map(function(e){let t=e.toConfig();return new tc({...t,args:_(t.args,I)})}),...f.map(function(e){var t,n,r;let i=null!=(t=d[e.name.value])?t:[],o=null!=(n=r0(e))?n:i.map(e=>r0(e)).find(e=>null!=e);return new tc({name:e.name.value,description:null==(r=e.description)?void 0:r.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:$(e.arguments),deprecationReason:o,astNode:e,extensionASTNodes:i})})],extensions:Object.create(null),astNode:null!=(o=u)?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(m),assumeValid:null!=(a=null==n?void 0:n.assumeValid)&&a};function N(e){return em(e)?new eS(N(e.ofType)):eh(e)?new e$(N(e.ofType)):b(e)}function b(e){return y[e.name]}function g(e){return{...e,type:N(e.type),args:e.args&&_(e.args,I)}}function I(e){return{...e,type:N(e.type)}}function O(e){let t={};for(let r of e){var n;for(let e of null!=(n=r.operationTypes)?n:[])t[e.operation]=D(e.type)}return t}function D(e){var t;let n=e.name.value,r=null!=(t=rW[n])?t:y[n];if(void 0===r)throw Error(`Unknown type: "${n}".`);return r}function w(e){return e.kind===L.b.LIST_TYPE?new eS(w(e.type)):e.kind===L.b.NON_NULL_TYPE?new e$(w(e.type)):D(e)}function S(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[])t[e.name.value]={type:w(e.type),description:null==(r=e.description)?void 0:r.value,args:$(e.arguments),deprecationReason:r0(e),astNode:e}}return t}function $(e){let t=Object.create(null);for(let r of null!=e?e:[]){var n;let e=w(r.type);t[r.name.value]={type:e,description:null==(n=r.description)?void 0:n.value,defaultValue:nU(r.defaultValue,e),deprecationReason:r0(r),astNode:r}}return t}function A(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[]){let n=w(e.type);t[e.name.value]={type:n,description:null==(r=e.description)?void 0:r.value,defaultValue:nU(e.defaultValue,n),deprecationReason:r0(e),astNode:e}}}return t}function R(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.values)?n:[])t[e.name.value]={description:null==(r=e.description)?void 0:r.value,deprecationReason:r0(e),astNode:e}}return t}function F(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.interfaces)?void 0:n.map(D))?t:[]})}function V(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.types)?void 0:n.map(D))?t:[]})}}let rW=I([...to,...tV],e=>e.name);function r0(e){let t=nP(tm,e);return null==t?void 0:t.reason}function r1(e){let t=nP(ty,e);return null==t?void 0:t.url}function r9(e,t){null!=e&&e.kind===L.b.DOCUMENT||(0,f.U)(!1,"Must provide valid Document AST."),(null==t?void 0:t.assumeValid)!==!0&&(null==t?void 0:t.assumeValidSDL)!==!0&&function(e){let t=ru(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}(e);let n=rZ({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(let e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}let r=[...n.directives,...tv.filter(e=>n.directives.every(t=>t.name!==e.name))];return new tC({...n,directives:r})}function r8(e,t){return r9((0,y.qg)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables,experimentalDirectivesOnDirectiveDefinitions:null==t?void 0:t.experimentalDirectivesOnDirectiveDefinitions}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function r2(e){var t,n,r;let i=e.toConfig(),o=O(r4(i.types),e=>e.name,function(e){if(en(e)||tk(e))return e;if(ei(e)){let t=e.toConfig();return new eP({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(ea(e)){let t=e.toConfig();return new eX({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(el(e)){let t=e.toConfig();return new ez({...t,types:()=>c(t.types)})}if(ec(e)){let t=e.toConfig();return new eZ({...t,values:r3(t.values,e=>e)})}if(ed(e)){let t=e.toConfig();return new e1({...t,fields:()=>r3(t.fields,e=>({...e,type:a(e.type)}))})}(0,tT.V)(!1,"Unexpected type: "+(0,h.N)(e))});return new tC({...i,types:Object.values(o),directives:r4(i.directives).map(function(e){let t=e.toConfig();return new tc({...t,locations:r6(t.locations,e=>e),args:l(t.args)})}),query:(t=i.query)&&s(t),mutation:(n=i.mutation)&&s(n),subscription:(r=i.subscription)&&s(r)});function a(e){return em(e)?new eS(a(e.ofType)):eh(e)?new e$(a(e.ofType)):s(e)}function s(e){return o[e.name]}function l(e){return r3(e,e=>({...e,type:a(e.type)}))}function u(e){return r3(e,e=>({...e,type:a(e.type),args:e.args&&l(e.args)}))}function c(e){return r4(e).map(s)}}function r3(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(D))n[r]=t(e[r]);return n}function r4(e){return r6(e,e=>e.name)}
77function r6(e,t){return e.slice().sort((e,n)=>D(t(e),t(n)))}function r5(e){return it(e,e=>!tE(e),ie)}function r7(e){return it(e,tE,tk)}function ie(e){return!ta(e)&&!tk(e)}function it(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[function(e){if(null==e.description&&function(e){let t=e.getQueryType();if(t&&"Query"!==t.name)return!1;let n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;let r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),ic(e)+`schema { 78${t.join("\n")} 79}`}(e),...r.map(e=>{var t;return ic(t=e)+"directive @"+t.name+is(t.args)+iu(t.deprecationReason)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}),...i.map(e=>ir(e))].filter(Boolean).join("\n\n")}function ir(e){var t,n,r,i,o,a;let s,l,u,c;return en(e)?ic(t=e)+`scalar ${t.name}`+function(e){if(null==e.specifiedByURL)return"";let t=B({kind:L.b.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}(t):ei(e)?ic(n=e)+`type ${n.name}`+ii(n)+io(n):ea(e)?ic(r=e)+`interface ${r.name}`+ii(r)+io(r):el(e)?(l=(s=(i=e).getTypes()).length?" = "+s.join(" | "):"",ic(i)+"union "+i.name+l):ec(e)?(u=(o=e).getValues().map((e,t)=>ic(e," ",!t)+" "+e.name+iu(e.deprecationReason)),ic(o)+`enum ${o.name}`+ia(u)):ed(e)?(c=Object.values((a=e).getFields()).map((e,t)=>ic(e," ",!t)+" "+il(e)),ic(a)+`input ${a.name}`+(a.isOneOf?" @oneOf":"")+ia(c)):void(0,tT.V)(!1,"Unexpected type: "+(0,h.N)(e))}function ii(e){let t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function io(e){return ia(Object.values(e.getFields()).map((e,t)=>ic(e," ",!t)+" "+e.name+is(e.args," ")+": "+String(e.type)+iu(e.deprecationReason)))}function ia(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function is(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(il).join(", ")+")":"(\n"+e.map((e,n)=>ic(e," "+t,!n)+" "+t+il(e)).join("\n")+"\n"+t+")"}function il(e){let t=tb(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${B(t)}`),n+iu(e.deprecationReason)}function iu(e){if(null==e)return"";if(e!==tf){let t=B({kind:L.b.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function ic(e,t="",n=!0){let{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+B({kind:L.b.STRING,value:r,block:(0,V.CS)(r)}).replace(/\n/g,"\n"+t)+"\n"}function ip(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:L.b.DOCUMENT,definitions:t}}function id(e){let t=[],n=Object.create(null);for(let r of e.definitions)switch(r.kind){case L.b.OPERATION_DEFINITION:t.push(r);break;case L.b.FRAGMENT_DEFINITION:n[r.name.value]=im(r.selectionSet)}let r=Object.create(null);for(let i of t){let t=new Set;for(let e of im(i.selectionSet))!function e(t,n,r){if(!t.has(r)){t.add(r);let i=n[r];if(void 0!==i)for(let r of i)e(t,n,r)}}(t,n,e);r[i.name?i.name.value:""]={kind:L.b.DOCUMENT,definitions:e.definitions.filter(e=>e===i||e.kind===L.b.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function im(e){let t=[];return j(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function iy(e){let t=(0,rV._)(e)?e:new rV.k(e),n=t.body,r=new rx.JG(t),i="",o=!1;for(;r.advance().kind!==rC.Y.EOF;){let e=r.token,t=e.kind,a=!(0,rx.Z_)(e.kind);o&&(a||e.kind===rC.Y.SPREAD)&&(i+=" ");let s=n.slice(e.start,e.end);t===rC.Y.BLOCK_STRING?i+=(0,V.yo)(e.value,{minimize:!0}):i+=s,o=a}return i}function ih(e){let t=iv(e);if(t)throw t;return e}function iv(e){if("string"==typeof e||(0,f.U)(!1,"Expected name to be a string."),e.startsWith("__"))return new v.eO(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Z(e)}catch(e){return e}}function iE(e,t){return iN(e,t).filter(e=>e.type in p)}function iT(e,t){return iN(e,t).filter(e=>e.type in d)}function iN(e,t){return[...function(e,t){let n=[],r=iO(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let e of r.removed)n.push({type:p.TYPE_REMOVED,description:ta(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(let[e,t]of r.persisted)ec(e)&&ec(t)?n.push(...function(e,t){let n=[],r=iO(e.getValues(),t.getValues());for(let t of r.added)n.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(let t of r.removed)n.push({type:p.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}(e,t)):el(e)&&el(t)?n.push(...function(e,t){let n=[],r=iO(e.getTypes(),t.getTypes());for(let t of r.added)n.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(let t of r.removed)n.push({type:p.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}(e,t)):ed(e)&&ed(t)?n.push(...function(e,t){let n=[],r=iO(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.added)e8(t)?n.push({type:p.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:d.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(let t of r.removed)n.push({type:p.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)ib(t.type,i.type)||n.push({type:p.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t)):ei(e)&&ei(t)||ea(e)&&ea(t)?n.push(...function(e,t){let n=[],r=iO(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.removed)n.push({type:p.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)n.push(...function(e,t,n){let r=[],i=iO(t.args,n.args);for(let n of i.removed)r.push({type:p.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(let[n,o]of i.persisted)if(ib(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{let i=iI(n.defaultValue,n.type),a=iI(o.defaultValue,o.type);i!==a&&r.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}else r.push({type:p.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});
79for(let n of i.added)eJ(n)?r.push({type:p.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}(e,t,i)),!function e(t,n){return em(t)?em(n)&&e(t.ofType,n.ofType)||eh(n)&&e(t,n.ofType):eh(t)?eh(n)&&e(t.ofType,n.ofType):ek(n)&&t.name===n.name||eh(n)&&e(t,n.ofType)}(t.type,i.type)&&n.push({type:p.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t),...function(e,t){let n=[],r=iO(e.getInterfaces(),t.getInterfaces());for(let t of r.added)n.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(let t of r.removed)n.push({type:p.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}(e,t)):e.constructor!==t.constructor&&n.push({type:p.TYPE_CHANGED_KIND,description:`${e.name} changed from ${ig(e)} to ${ig(t)}.`});return n}(e,t),...function(e,t){let n=[],r=iO(e.getDirectives(),t.getDirectives());for(let e of r.removed)n.push({type:p.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(let[e,t]of r.persisted){let r=iO(e.args,t.args);for(let t of r.added)eJ(t)&&n.push({type:p.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(let t of r.removed)n.push({type:p.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});for(let r of(e.isRepeatable&&!t.isRepeatable&&n.push({type:p.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`}),e.locations))t.locations.includes(r)||n.push({type:p.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}(e,t)]}(l=p||(p={})).TYPE_REMOVED="TYPE_REMOVED",l.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",l.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",l.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",l.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",l.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",l.FIELD_REMOVED="FIELD_REMOVED",l.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",l.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",l.ARG_REMOVED="ARG_REMOVED",l.ARG_CHANGED_KIND="ARG_CHANGED_KIND",l.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",l.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",l.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",l.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",l.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED",(u=d||(d={})).VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",u.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",u.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",u.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",u.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",u.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE";function ib(e,t){return em(e)?em(t)&&ib(e.ofType,t.ofType):eh(e)?eh(t)&&ib(e.ofType,t.ofType)||!eh(t)&&ib(e.ofType,t):ek(t)&&e.name===t.name}function ig(e){return en(e)?"a Scalar type":ei(e)?"an Object type":ea(e)?"an Interface type":el(e)?"a Union type":ec(e)?"an Enum type":ed(e)?"an Input type":void(0,tT.V)(!1,"Unexpected type: "+(0,h.N)(e))}function iI(e,t){let n=tb(e,t);return null!=n||(0,tT.V)(!1),B(nm(n))}function iO(e,t){let n=[],r=[],i=[],o=I(e,({name:e})=>e),a=I(t,({name:e})=>e);for(let t of e){let e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(let e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}function i_(e,t){return iD(e,(0,y.Ng)(t))}function iD(e,t){switch(t.kind){case L.b.TYPE_COORDINATE:let n=t.name.value,r=e.getType(n);if(null!=r)return{kind:"NamedType",type:r};return;case L.b.MEMBER_COORDINATE:return function(e,t){let n=t.name.value,r=e.getType(n);if(!r)throw Error(`Expected ${(0,h.N)(n)} to be defined as a type in the schema.`);if(!ec(r)&&!ed(r)&&!ei(r)&&!ea(r))throw Error(`Expected ${(0,h.N)(n)} to be an Enum, Input Object, Object or Interface type.`);if(ec(r)){let e=t.memberName.value,n=r.getValue(e);if(null==n)return;return{kind:"EnumValue",type:r,enumValue:n}}if(ed(r)){let e=t.memberName.value,n=r.getFields()[e];if(null==n)return;return{kind:"InputField",type:r,inputField:n}}let i=t.memberName.value,o=r.getFields()[i];if(null!=o)return{kind:"Field",type:r,field:o}}(e,t);case L.b.ARGUMENT_COORDINATE:return function(e,t){let n=t.name.value,r=e.getType(n);if(null==r)throw Error(`Expected ${(0,h.N)(n)} to be defined as a type in the schema.`);if(!ei(r)&&!ea(r))throw Error(`Expected ${(0,h.N)(n)} to be an object type or interface type.`);let i=t.fieldName.value,o=r.getFields()[i];if(null==o)throw Error(`Expected ${(0,h.N)(i)} to exist as a field of type ${(0,h.N)(n)} in the schema.`);let a=t.argumentName.value,s=o.args.find(e=>e.name===a);if(null!=s)return{kind:"FieldArgument",type:r,field:o,fieldArgument:s}}(e,t);case L.b.DIRECTIVE_COORDINATE:let i=t.name.value,o=e.getDirective(i);if(o)return{kind:"Directive",directive:o};return;case L.b.DIRECTIVE_ARGUMENT_COORDINATE:return function(e,t){let n=t.name.value,r=e.getDirective(n);if(!r)throw Error(`Expected ${(0,h.N)(n)} to be defined as a directive in the schema.`);let{argumentName:{value:i}}=t,o=r.args.find(e=>e.name===i);if(o)return{kind:"DirectiveArgument",directive:r,directiveArgument:o}}(e,t)}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.