1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1475],{8384:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};var i=n(50687),r=n(84294),o=n(97411);class a extends Error{constructor(e,...t){var n,o,l;const{nodes:u,source:c,positions:p,path:d,originalError:f,extensions:h}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=d?d:void 0,this.originalError=null!=f?f:void 0,this.nodes=s(Array.isArray(u)?u:u?[u]:void 0);const m=s(null==(n=this.nodes)?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=c?c:null==m||null==(o=m[0])?void 0:o.source,this.positions=null!=p?p:null==m?void 0:m.map(e=>e.start),this.locations=p&&c?p.map(e=>(0,r.getLocation)(c,e)):null==m?void 0:m.map(e=>(0,r.getLocation)(e.source,e.start));const y=(0,i.isObjectLike)(null==f?void 0:f.extensions)?null==f?void 0:f.extensions:void 0;this.extensions=null!=(l=null!=h?h:y)?l:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=a},13141:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=l,t.getVisitFn=function(e,t,n){let{enter:i,leave:r}=l(e,t);return n?r:i},t.visit=function(e,t,n=o.QueryDocumentKeys){let u,c,p,d=new Map;for(let e of Object.values(a.Kind))d.set(e,l(t,e));let f=Array.isArray(e),h=[e],m=-1,y=[],T=e,E=[],v=[];do{var N,g,b;let e,a=++m===h.length,l=a&&0!==y.length;if(a){if(c=0===v.length?void 0:E[E.length-1],T=p,p=v.pop(),l)if(f){T=T.slice();let e=0;for(let[t,n]of y){let i=t-e;null===n?(T.splice(i,1),e++):T[i]=n}}else for(let[e,t]of(T=Object.defineProperties({},Object.getOwnPropertyDescriptors(T)),y))T[e]=t;m=u.index,h=u.keys,y=u.edits,f=u.inArray,u=u.prev}else if(p){if(null==(T=p[c=f?m:h[m]]))continue;E.push(c)}if(!Array.isArray(T)){(0,o.isNode)(T)||(0,i.devAssert)(!1,`Invalid AST Node: ${(0,r.inspect)(T)}.`);let n=a?null==(N=d.get(T.kind))?void 0:N.leave:null==(g=d.get(T.kind))?void 0:g.enter;if((e=null==n?void 0:n.call(t,T,c,p,E,v))===s)break;if(!1===e){if(!a){E.pop();continue}}else if(void 0!==e&&(y.push([c,e]),!a))if((0,o.isNode)(e))T=e;else{E.pop();continue}}void 0===e&&l&&y.push([c,T]),a?E.pop():(u={inArray:f,index:m,keys:h,edits:y,prev:u},h=(f=Array.isArray(T))?T:null!=(b=n[T.kind])?b:[],m=-1,y=[],p&&v.push(p),p=T)}while(void 0!==u);return 0!==y.length?y[y.length-1][1]:e},t.visitInParallel=function(e){let t=Array(e.length).fill(null),n=Object.create(null);for(let i of Object.values(a.Kind)){let r=!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}=l(e[t],i);r||(r=null!=n||null!=s),o[t]=n,a[t]=s}if(!r)continue;let u={enter(...n){let i=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var r;let l=null==(r=o[a])?void 0:r.apply(e[a],n);if(!1===l)t[a]=i;else if(l===s)t[a]=s;else if(void 0!==l)return l}},leave(...n){let i=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var r;let i=null==(r=a[o])?void 0:r.apply(e[o],n);if(i===s)t[o]=s;else if(void 0!==i&&!1!==i)return i}else t[o]===i&&(t[o]=null)}};n[i]=u}return n};var i=n(51052),r=n(95557),o=n(79939),a=n(40312);let s=Object.freeze({});function l(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}}t.BREAK=s}
1,14729:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(16717),r=n(45239),o=n(96683),a=n(3950),s=n(8722),l=n(73560);t.default=new i.GraphQLScalarType({name:"Date",description:"Use JavaScript Date object for date/time fields.",serialize:function(e){if(!l(e))throw TypeError("Value is not a valid Date: "+e);return s(e,"YYYY-MM-DDTHH:mm:ssZ")},parseValue:function(e){var t=a(e);if(!l(t))throw TypeError("Value is not a valid Date: "+e);return t},parseLiteral:function(e){if(e.kind!==o.Kind.STRING)throw new r.GraphQLError("Can only parse strings to dates but got a: "+e.kind);var t=a(e.value);if(!l(t))throw new r.GraphQLError("Value is not a valid Date format: "+e.value);return t}})},16717:(e,t,n)=>{let i;n.r(t),n.d(t,{BREAK:()=>tx.sP,BreakingChangeType:()=>p,DEFAULT_DEPRECATION_REASON:()=>e7,DangerousChangeType:()=>d,DirectiveLocation:()=>eQ.H,ExecutableDefinitionsRule:()=>tj,FieldsOnCorrectTypeRule:()=>tP,FragmentsOnCompositeTypesRule:()=>tM,GRAPHQL_MAX_INT:()=>eq,GRAPHQL_MIN_INT:()=>eH,GraphQLBoolean:()=>eW,GraphQLDeprecatedDirective:()=>e6,GraphQLDirective:()=>e4,GraphQLEnumType:()=>eV,GraphQLError:()=>T.eO,GraphQLFloat:()=>eX,GraphQLID:()=>eZ,GraphQLIncludeDirective:()=>e5,GraphQLInputObjectType:()=>eP,GraphQLInt:()=>eJ,GraphQLInterfaceType:()=>eF,GraphQLList:()=>ef,GraphQLNonNull:()=>eh,GraphQLObjectType:()=>eD,GraphQLOneOfDirective:()=>tt,GraphQLScalarType:()=>e_,GraphQLSchema:()=>tO,GraphQLSkipDirective:()=>e8,GraphQLSpecifiedByDirective:()=>te,GraphQLString:()=>ez,GraphQLUnionType:()=>e$,Kind:()=>x.b,KnownArgumentNamesRule:()=>tK,KnownDirectivesRule:()=>tG,KnownFragmentNamesRule:()=>tY,KnownTypeNamesRule:()=>tQ,Lexer:()=>ip.J,Location:()=>E.aZ,LoneAnonymousOperationRule:()=>tH,LoneSchemaDefinitionRule:()=>tJ,MaxIntrospectionDepthRule:()=>tX,NoDeprecatedCustomRule:()=>iE,NoFragmentCyclesRule:()=>tz,NoSchemaIntrospectionCustomRule:()=>iv,NoUndefinedVariablesRule:()=>tW,NoUnusedFragmentsRule:()=>tZ,NoUnusedVariablesRule:()=>t0,OperationTypeNode:()=>E.cE,OverlappingFieldsCanBeMergedRule:()=>t2,PossibleFragmentSpreadsRule:()=>ne,PossibleTypeExtensionsRule:()=>nt,ProvidedRequiredArgumentsRule:()=>ni,ScalarLeafsRule:()=>na,SchemaMetaFieldDef:()=>ty,SingleFieldSubscriptionsRule:()=>nb,Source:()=>il.k,Token:()=>E.ou,TokenKind:()=>id.Y,TypeInfo:()=>t$,TypeKind:()=>c,TypeMetaFieldDef:()=>tT,TypeNameMetaFieldDef:()=>tE,UniqueArgumentDefinitionNamesRule:()=>nI,UniqueArgumentNamesRule:()=>n_,UniqueDirectiveNamesRule:()=>nD,UniqueDirectivesPerLocationRule:()=>nS,UniqueEnumValueNamesRule:()=>nA,UniqueFieldDefinitionNamesRule:()=>nk,UniqueFragmentNamesRule:()=>nw,UniqueInputFieldNamesRule:()=>nR,UniqueOperationNamesRule:()=>nL,UniqueOperationTypesRule:()=>nx,UniqueTypeNamesRule:()=>nF,UniqueVariableNamesRule:()=>n$,ValidationContext:()=>nY,ValuesOfCorrectTypeRule:()=>nC,VariablesAreInputTypesRule:()=>nU,VariablesInAllowedPositionRule:()=>nj,__Directive:()=>tu,__DirectiveLocation:()=>tc,__EnumValue:()=>th,__Field:()=>td,__InputValue:()=>tf,__Schema:()=>tl,__Type:()=>tp,__TypeKind:()=>tm,assertAbstractType:()=>ed,assertCompositeType:()=>ec,assertDirective:()=>e3,assertEnumType:()=>X,assertEnumValueName:()=>U,assertInputObjectType:()=>W,assertInputType:()=>er,assertInterfaceType:()=>Q,assertLeafType:()=>el,assertListType:()=>ee,assertName:()=>V,assertNamedType:()=>eg,assertNonNullType:()=>en,assertNullableType:()=>eE,assertObjectType:()=>G,assertOutputType:()=>ea,assertScalarType:()=>K,assertSchema:()=>tb,assertType:()=>P,assertUnionType:()=>H,assertValidName:()=>i0,assertValidSchema:()=>tD,assertWrappingType:()=>ey,astFromValue:()=>ta,buildASTSchema:()=>iR,buildClientSchema:()=>i_,buildSchema:()=>iL,coerceInputValue:()=>nc,concatAST:()=>iX,createSourceEventStream:()=>iy,defaultFieldResolver:()=>ii,defaultTypeResolver:()=>it,doTypesOverlap:()=>eY,execute:()=>nW,executeSync:()=>nZ,extendSchema:()=>iD,findBreakingChanges:()=>i2,findDangerousChanges:()=>i9,formatError:()=>T.Wk,getArgumentValues:()=>nm,getDirectiveValues:()=>ny,getEnterLeaveForKind:()=>tx.XO,getIntrospectionQuery:()=>ig,getLocation:()=>iu.g,getNamedType:()=>eb,getNullableType:()=>ev,getOperationAST:()=>ib,getOperationRootType:()=>iO,getVariableValues:()=>nh,getVisitFn:()=>tx.UY,graphql:()=>io,graphqlSync:()=>ia,introspectionFromSchema:()=>iI,introspectionTypes:()=>
1tv,isAbstractType:()=>ep,isCompositeType:()=>eu,isConstValueNode:()=>tU.TZ,isDefinitionNode:()=>tU.MD,isDirective:()=>e9,isEnumType:()=>J,isEqualType:()=>eB,isExecutableDefinitionNode:()=>tU._m,isInputObjectType:()=>z,isInputType:()=>ei,isInterfaceType:()=>Y,isIntrospectionType:()=>tN,isLeafType:()=>es,isListType:()=>Z,isNamedType:()=>eN,isNonNullType:()=>et,isNullableType:()=>eT,isObjectType:()=>B,isOutputType:()=>eo,isRequiredArgument:()=>ex,isRequiredInputField:()=>eK,isScalarType:()=>M,isSchema:()=>tg,isSelectionNode:()=>tU.VK,isSpecifiedDirective:()=>ti,isSpecifiedScalarType:()=>e1,isType:()=>j,isTypeDefinitionNode:()=>tU.a6,isTypeExtensionNode:()=>tU.i7,isTypeNode:()=>tU.dI,isTypeSubTypeOf:()=>eG,isTypeSystemDefinitionNode:()=>tU.xu,isTypeSystemExtensionNode:()=>tU.fT,isUnionType:()=>q,isValidNameError:()=>i1,isValueNode:()=>tU.aR,isWrappingType:()=>em,lexicographicSortSchema:()=>ix,locatedError:()=>nX,parse:()=>m.qg,parseConstValue:()=>m.u8,parseType:()=>m.Mb,parseValue:()=>m.$x,print:()=>F.y,printError:()=>T.yJ,printIntrospectionSchema:()=>ij,printLocation:()=>ic.V,printSchema:()=>iU,printSourceLocation:()=>ic.C,printType:()=>iK,recommendedRules:()=>nP,resolveObjMapThunk:()=>eI,resolveReadonlyArrayThunk:()=>eO,responsePathAsArray:()=>nu,separateOperations:()=>iz,specifiedDirectives:()=>tn,specifiedRules:()=>nM,specifiedScalarTypes:()=>e0,stripIgnoredCharacters:()=>iZ,subscribe:()=>im,syntaxError:()=>iN.I,typeFromAST:()=>tF,validate:()=>
1nQ,validateSchema:()=>t_,valueFromAST:()=>nd,valueFromASTUntyped:()=>$,version:()=>r,versionInfo:()=>o,visit:()=>tx.YR,visitInParallel:()=>tx.oP,visitWithTypeInfo:()=>tV});let r="16.9.0",o=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});var a,s,l,u,c,p,d,f=n(58287);function h(e){return"function"==typeof(null==e?void 0:e.then)}var m=n(46865),y=n(77016),T=n(68827),E=n(86158);function v(e,t){let[n,i]=t?[e,t]:[void 0,e],r=" Did you mean ";n&&(r+=n+" ");let o=i.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return r+o[0]+"?";case 2:return r+o[0]+" or "+o[1]+"?"}let a=o.slice(0,5),s=a.pop();return r+a.join(", ")+", or "+s+"?"}function N(e){return e}var g=n(49308),b=n(22366);function O(e,t){let n=Object.create(null);for(let i of e)n[t(i)]=i;return n}function I(e,t,n){let i=Object.create(null);for(let r of e)i[t(r)]=n(r);return i}function _(e,t){let n=Object.create(null);for(let i of Object.keys(e))n[i]=t(e[i],i);return n}function D(e,t){let n=0,i=0;for(;n<e.length&&i<t.length;){let r=e.charCodeAt(n),o=t.charCodeAt(i);if(A(r)&&A(o)){let a=0;do++n,a=10*a+r-S,r=e.charCodeAt(n);while(A(r)&&a>0);let s=0;do++i,s=10*s+o-S,o=t.charCodeAt(i);while(A(o)&&s>0);if(a<s)return -1;if(a>s)return 1}else{if(r<o)return -1;if(r>o)return 1;++n,++i}}return e.length-t.length}let S=48;function A(e){return!isNaN(e)&&S<=e&&e<=57}function k(e,t){let n=Object.create(null),i=new w(e),r=Math.floor(.4*e.length)+1;for(let e of t){let t=i.measure(e,r);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{let i=n[e]-n[t];return 0!==i?i:D(e,t)})}class w{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 i=R(n),r=this._inputArray;if(i.length<r.length){let e=i;i=r,r=e}let o=i.length,a=r.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=+(i[e-1]!==r[t-1]),u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);e>1&&t>1&&i[e-1]===r[t-2]&&i[e-2]===r[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 i=0;i<t;++i)n[i]=e.charCodeAt(i);return n}function L(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;let t=Object.create(null);for(let[n,i]of Object.entries(e))t[n]=i;return t}var x=n(94587),F=n(8056);function $(e,t){switch(e.kind){case x.b.NULL:return null;case x.b.INT:return parseInt(e.value,10);case x.b.FLOAT:return parseFloat(e.value);case x.b.STRING:case x.b.ENUM:case x.b.BOOLEAN:return e.value;case x.b.LIST:return e.values.map(e=>$(e,t));case x.b.OBJECT:return I(e.fields,e=>e.name.value,e=>$(e.value,t));case x.b.VARIABLE:return null==t?void 0:t[e.name.value]}}var C=n(7743);function V(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 T.eO("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,C.xr)(e.charCodeAt(t)))throw new T.eO(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,C.un)(e.charCodeAt(0)))throw new T.eO(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function U(e){if("true"===e||"false"===e||"null"===e)throw new T.eO(`Enum values cannot be named: ${e}`);return V(e)}function j(e){return M(e)||B(e)||Y(e)||q(e)||J(e)||z(e)||Z(e)||et(e)}function P(e){if(!j(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL type.`);return e}function M(e){return(0,g.h)(e,e_)}function K(e){if(!M(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL Scalar type.`);return e}function B(e){return(0,g.h)(e,eD)}function G(e){if(!B(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL Object type.`);return e}function Y(e){return(0,g.h)(e,eF)}function Q(e){if(!Y(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL Interface type.`);return e}function q(e){return(0,g.h)(e,e$)}function H(e){if(!q(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL Union type.`);return e}function J(e){return(0,g.h)(e,eV)}function X(e){if(!J(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL Enum type.`);return e}function z(e){return(0,g.h)(e,eP)}function W(e){if(!z(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL Input Object type.`);return e}function Z(e){return(0,g.h)(e,ef)}function ee(e){if(!Z(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL List type.`);return e}function et(e){return(0,g.h)(e,eh)}function en(e){if(!et(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL Non-Null type.`);return e}function ei(e){return M(e)||J(e)||z(e)||em(e)&&ei(e.ofType)}function er(e){if(!ei(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL input type.`);return e}function eo(e){return M(e)||B(e)||Y(e)||q(e)||J(e)||em(e)&&eo(e.ofType)}function ea(e){if(!eo(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL output type.`);return e}function es(e){return M(e)||J(e)}function el(e){if(!es(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL leaf type.`);return e}function eu(e){return B(e)||Y(e)||q(e)}function ec(e){if(!eu(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL composite type.`);return e}function ep(e){return Y(e)||q(e)}function ed(e){if(!ep(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL abstract type.`);return e}class ef{constructor(e){j(e)||(0,f.U)(!1,`Expected ${(0,y.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 eh{constructor(e){eT(e)||(0,f.U)(!1,`Expected ${(0,y.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 em(e){return Z(e)||et(e)}function ey(e){if(!em(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL wrapping type.`);return e}function eT(e){return j(e)&&!et(e)}function eE(e){if(!eT(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL nullable type.`);return e}function ev(e){if(e)return et(e)?e.ofType:e}function eN(e){return M(e)||B(e)||Y(e)||q(e)||J(e)||z(e)}function eg(e){if(!eN(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL named type.`);return e}function eb(e){if(e){let t=e;for(;em(t);)t=t.ofType;return t}}function eO(e){return"function"==typeof e?e():e}function eI(e){return"function"==typeof e?e():e}class e_{constructor(e){var t,n,i,r;const o=null!=(t=e.parseValue)?t:N;this.name=V(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!=(n=e.serialize)?n:N,this.parseValue=o,this.parseLiteral=null!=(i=e.parseLiteral)?i:(e,t)=>o($(e,t)),this.extensions=L(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(r=e.extensionASTNodes)?r:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,f.U)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,y.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 eD{constructor(e){var t;this.name=V(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=L(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=()=>eA(e),this._interfaces=()=>eS(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,f.U)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,y.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:eR(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eS(e){var t;let n=eO(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 eA(e){let t=eI(e.fields);return ew(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 i;ew(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,y.N)(t.resolve)}.`);let r=null!=(i=t.args)?i:{};return ew(r)||(0,f.U)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:V(n),description:t.description,type:t.type,args:ek(r),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:L(t.extensions),astNode:t.astNode}})}function ek(e){return Object.entries(e).map(([e,t])=>({name:V(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:L(t.extensions),astNode:t.astNode}))}function ew(e){return(0,b.Z)(e)&&!Array.isArray(e)}function eR(e){return _(e,e=>({description:e.description,type:e.type,args:eL(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function eL(e){return I(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function ex(e){return et(e.type)&&void 0===e.defaultValue}class eF{constructor(e){var t;this.name=V(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=L(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=eA.bind(void 0,e),this._interfaces=eS.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,y.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:eR(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class e${constructor(e){var t;this.name=V(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=L(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._types=eC.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,y.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 eC(e){let t=eO(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 eV{constructor(e){var t;this.name=V(e.name),this.description=e.description,this.extensions=L(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._values="function"==typeof e.values?e.values:ej(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=ej(this.name,this._values())
1),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=O(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 T.eO(`Enum "${this.name}" cannot represent value: ${(0,y.N)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){let t=(0,y.N)(e);throw new T.eO(`Enum "${this.name}" cannot represent non-string value: ${t}.`+eU(this,t))}let t=this.getValue(e);if(null==t)throw new T.eO(`Value "${e}" does not exist in "${this.name}" enum.`+eU(this,e));return t.value}parseLiteral(e,t){if(e.kind!==x.b.ENUM){let t=(0,F.y)(e);throw new T.eO(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+eU(this,t),{nodes:e})}let n=this.getValue(e.value);if(null==n){let t=(0,F.y)(e);throw new T.eO(`Value "${t}" does not exist in "${this.name}" enum.`+eU(this,t),{nodes:e})}return n.value}toConfig(){let e=I(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 eU(e,t){return v("the enum value",k(t,e.getValues().map(e=>e.name)))}function ej(e,t){return ew(t)||(0,f.U)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(ew(n)||(0,f.U)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,y.N)(n)}.`),{name:U(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:L(n.extensions),astNode:n.astNode}))}class eP{constructor(e){var t,n;this.name=V(e.name),this.description=e.description,this.extensions=L(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this.isOneOf=null!=(n=e.isOneOf)&&n,this._fields=eM.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 eM(e){let t=eI(e.fields);return ew(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:V(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:L(t.extensions),astNode:t.astNode}))}function eK(e){return et(e.type)&&void 0===e.defaultValue}function eB(e,t){return e===t||!!(et(e)&&et(t)||Z(e)&&Z(t))&&eB(e.ofType,t.ofType)}function eG(e,t,n){return t===n||(et(n)?!!et(t)&&eG(e,t.ofType,n.ofType):et(t)?eG(e,t.ofType,n):Z(n)?!!Z(t)&&eG(e,t.ofType,n.ofType):!Z(t)&&ep(n)&&(Y(t)||B(t))&&e.isSubType(n,t))}function eY(e,t,n){return t===n||(ep(t)?ep(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!ep(n)&&e.isSubType(n,t))}var eQ=n(32776);let eq=0x7fffffff,eH=-0x80000000,eJ=new e_({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=e2(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 T.eO(`Int cannot represent non-integer value: ${(0,y.N)(t)}`);if(n>eq||n<eH)throw new T.eO("Int cannot represent non 32-bit signed integer value: "+(0,y.N)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new T.eO(`Int cannot represent non-integer value: ${(0,y.N)(e)}`);
1if(e>eq||e<eH)throw new T.eO(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==x.b.INT)throw new T.eO(`Int cannot represent non-integer value: ${(0,F.y)(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>eq||t<eH)throw new T.eO(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),eX=new e_({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=e2(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 T.eO(`Float cannot represent non numeric value: ${(0,y.N)(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new T.eO(`Float cannot represent non numeric value: ${(0,y.N)(e)}`);return e},parseLiteral(e){if(e.kind!==x.b.FLOAT&&e.kind!==x.b.INT)throw new T.eO(`Float cannot represent non numeric value: ${(0,F.y)(e)}`,e);return parseFloat(e.value)}}),ez=new e_({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=e2(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 T.eO(`String cannot represent value: ${(0,y.N)(e)}`)},parseValue(e){if("string"!=typeof e)throw new T.eO(`String cannot represent a non string value: ${(0,y.N)(e)}`);return e},parseLiteral(e){if(e.kind!==x.b.STRING)throw new T.eO(`String cannot represent a non string value: ${(0,F.y)(e)}`,{nodes:e});return e.value}}),eW=new e_({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=e2(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new T.eO(`Boolean cannot represent a non boolean value: ${(0,y.N)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new T.eO(`Boolean cannot represent a non boolean value: ${(0,y.N)(e)}`);return e},parseLiteral(e){if(e.kind!==x.b.BOOLEAN)throw new T.eO(`Boolean cannot represent a non boolean value: ${(0,F.y)(e)}`,{nodes:e});return e.value}}),eZ=new e_({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=e2(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new T.eO(`ID cannot represent value: ${(0,y.N)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new T.eO(`ID cannot represent value: ${(0,y.N)(e)}`)},parseLiteral(e){if(e.kind!==x.b.STRING&&e.kind!==x.b.INT)throw new T.eO("ID cannot represent a non-string and non-integer value: "+(0,F.y)(e),{nodes:e});return e.value}}),e0=Object.freeze([ez,eJ,eX,eW,eZ]);function e1(e){return e0.some(({name:t})=>e.name===t)}function e2(e){if((0,b.Z)(e)){if("function"==typeof e.valueOf){let t=e.valueOf();if(!(0,b.Z)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function e9(e){return(0,g.h)(e,e4)}function e3(e){if(!e9(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL directive.`);return e}class e4{constructor(e){var t,n;this.name=V(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=(t=e.isRepeatable)&&t,this.extensions=L(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,f.U)(!1,`@${e.name} locations must be an Array.`);const i=null!=(n=e.args)?n:{};(0,b.Z)(i)&&!Array.isArray(i)||(0,f.U)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=ek(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:eL(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}let e5=new e4({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[eQ.H.FIELD,eQ.H.FRAGMENT_SPREAD,eQ.H.INLINE_FRAGMENT],args:{if:{type:new eh(eW),description:"Included when true."}}}),e8=new e4({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[eQ.H.FIELD,eQ.H.FRAGMENT_SPREAD,eQ.H.INLINE_FRAGMENT],args:{if:{type:new eh(eW),description:"Skipped when true."}}}),e7="No longer supported",e6=new e4({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[eQ.H.FIELD_DEFINITION,eQ.H.ARGUMENT_DEFINITION,eQ.H.INPUT_FIELD_DEFINITION,eQ.H.ENUM_VALUE],args:{reason:{type:ez,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:e7}}}),te=new e4({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[eQ.H.SCALAR],args:{url:{type:new eh(ez),description:"The URL that specifies the behavior of this scalar."}}}),tt=new e4({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[eQ.H.INPUT_OBJECT],args:{}}),tn=Object.freeze([e5,e8,e6,te,tt]);function ti(e){return tn.some(({name:t})=>t===e.name)}var tr=n(52076);function to(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function ta(e,t){if(et(t)){let n=ta(e,t.ofType);return(null==n?void 0:n.kind)===x.b.NULL?null:n}if(null===e)return{kind:x.b.NULL};if(void 0===e)return null;if(Z(t)){let n=t.ofType;if(to(e)){let t=[];for(let i of e){let e=ta(i,n);null!=e&&t.push(e)}return{kind:x.b.LIST,values:t}}return ta(e,n)}if(z(t)){if(!(0,b.Z)(e))return null;let n=[];for(let i of Object.values(t.getFields())){let t=ta(e[i.name],i.type);t&&n.push({kind:x.b.OBJECT_FIELD,name:{kind:x.b.NAME,value:i.name},value:t})}return{kind:x.b.OBJECT,fields:n}}if(es(t)){let n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:x.b.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){let e=String(n);return ts.test(e)?{kind:x.b.INT,value:e}:{kind:x.b.FLOAT,value:e}}if("string"==typeof n)return J(t)?{kind:x.b.ENUM,value:n}:t===eZ&&ts.test(n)?{kind:x.b.INT,value:n}:{kind:x.b.STRING,value:n};throw TypeError(`Cannot convert value to AST: ${(0,y.N)(n)}.`)}(0,tr.V)(!1,"Unexpected input type: "+(0,y.N)(t))}let ts=/^-?(?:0|[1-9][0-9]*)$/,tl=new eD({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:ez,resolve:e=>e.description}
1,types:{description:"A list of all types supported by this server.",type:new eh(new ef(new eh(tp))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new eh(tp),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:tp,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:tp,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new eh(new ef(new eh(tu))),resolve:e=>e.getDirectives()}})}),tu=new eD({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 eh(ez),resolve:e=>e.name},description:{type:ez,resolve:e=>e.description},isRepeatable:{type:new eh(eW),resolve:e=>e.isRepeatable},locations:{type:new eh(new ef(new eh(tc))),resolve:e=>e.locations},args:{type:new eh(new ef(new eh(tf))),args:{includeDeprecated:{type:eW,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),tc=new eV({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:eQ.H.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:eQ.H.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:eQ.H.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:eQ.H.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:eQ.H.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:eQ.H.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:eQ.H.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:eQ.H.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:eQ.H.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:eQ.H.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:eQ.H.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:eQ.H.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:eQ.H.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:eQ.H.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:eQ.H.UNION,description:"Location adjacent to a union definition."},ENUM:{value:eQ.H.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:eQ.H.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:eQ.H.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:eQ.H.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),tp=new eD({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 eh(tm),resolve:e=>M(e)?c.SCALAR:B(e)?c.OBJECT:Y(e)?c.INTERFACE:q(e)?c.UNION:J(e)?c.ENUM:z(e)?c.INPUT_OBJECT:Z(e)?c.LIST
1:et(e)?c.NON_NULL:void(0,tr.V)(!1,`Unexpected type: "${(0,y.N)(e)}".`)},name:{type:ez,resolve:e=>"name"in e?e.name:void 0},description:{type:ez,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:ez,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ef(new eh(td)),args:{includeDeprecated:{type:eW,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(B(e)||Y(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new ef(new eh(tp)),resolve(e){if(B(e)||Y(e))return e.getInterfaces()}},possibleTypes:{type:new ef(new eh(tp)),resolve(e,t,n,{schema:i}){if(ep(e))return i.getPossibleTypes(e)}},enumValues:{type:new ef(new eh(th)),args:{includeDeprecated:{type:eW,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(J(e)){let n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new ef(new eh(tf)),args:{includeDeprecated:{type:eW,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(z(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:tp,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:eW,resolve:e=>{if(z(e))return e.isOneOf}}})}),td=new eD({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 eh(ez),resolve:e=>e.name},description:{type:ez,resolve:e=>e.description},args:{type:new eh(new ef(new eh(tf))),args:{includeDeprecated:{type:eW,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new eh(tp),resolve:e=>e.type},isDeprecated:{type:new eh(eW),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:ez,resolve:e=>e.deprecationReason}})}),tf=new eD({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 eh(ez),resolve:e=>e.name},description:{type:ez,resolve:e=>e.description},type:{type:new eh(tp),resolve:e=>e.type},defaultValue:{type:ez,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,i=ta(n,t);return i?(0,F.y)(i):null}},isDeprecated:{type:new eh(eW),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:ez,resolve:e=>e.deprecationReason}})}),th=new eD({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 eh(ez),resolve:e=>e.name},description:{type:ez,resolve:e=>e.description},isDeprecated:{type:new eh(eW),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:ez,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 tm=new eV({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."}}}),ty={name:"__schema",type:new eh(tl),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:i})=>i,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tT={name:"__type",type:tp,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new eh(ez),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:i})=>i.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tE={name:"__typename",type:new eh(ez),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:i})=>i.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tv=Object.freeze([tl,tu,tc,tp,td,tf,th,tm]);function tN(e){return tv.some(({name:t})=>e.name===t)}function tg(e){return(0,g.h)(e,tO)}function tb(e){if(!tg(e))throw Error(`Expected ${(0,y.N)(e)} to be a GraphQL schema.`);return e}class tO{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,b.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,y.N)(e.types)}
1.`),!e.directives||Array.isArray(e.directives)||(0,f.U)(!1,`"directives" must be Array if provided but got: ${(0,y.N)(e.directives)}.`),this.description=e.description,this.extensions=L(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:tn;const i=new Set(e.types);if(null!=e.types)for(const t of e.types)i.delete(t),tI(t,i);for(const e of(null!=this._queryType&&tI(this._queryType,i),null!=this._mutationType&&tI(this._mutationType,i),null!=this._subscriptionType&&tI(this._subscriptionType,i),this._directives))if(e9(e))for(const t of e.args)tI(t.type,i);for(const e of(tI(tl,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),i)){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,Y(e)){for(const t of e.getInterfaces())if(Y(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(B(e)){for(const t of e.getInterfaces())if(Y(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 q(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),q(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 tI(e,t){let n=eb(e);if(!t.has(n)){if(t.add(n),q(n))for(let e of n.getTypes())tI(e,t);else if(B(n)||Y(n)){for(let e of n.getInterfaces())tI(e,t);for(let e of Object.values(n.getFields()))for(let n of(tI(e.type,t),e.args))tI(n.type,t)}else if(z(n))for(let e of Object.values(n.getFields()))tI(e.type,t)}return t}function t_(e){var t,n,i,r;let o,a,s,l;if(tb(e),e.__validationErrors)return e.__validationErrors;let u=new tS(e);(a=(o=(t=u).schema).getQueryType())?B(a)||t.reportError(`Query root type must be Object type, it cannot be ${(0,y.N)(a)}.`,null!=(n=tA(o,E.cE.QUERY))?n:a.astNode):t.reportError("Query root type must be provided.",o.astNode),(s=o.getMutationType())&&!B(s)&&t.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,y.N)(s)}.`,null!=(i=tA(o,E.cE.MUTATION))?i:s.astNode),(l=o.getSubscriptionType())&&!B(l)&&t.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,y.N)(l)}.`,null!=(r=tA(o,E.cE.SUBSCRIPTION))?r:l.astNode),function(e){for(let n of e.schema.getDirectives()){if(!e9(n)){e.reportError(`Expected directive but got: ${(0,y.N)(n)}.`,null==n?void 0:n.astNode);continue}for(let i of(tk(e,n),n.args))if(tk(e,i),ei(i.type)||e.reportError(`The type of @${n.name}(${i.name}:) must be Input Type but got: ${(0,y.N)(i.type)}.`,i.astNode),ex(i)&&null!=i.deprecationReason){var t;e.reportError(`Required argument @${n.name}(${i.name}:) cannot be deprecated.`,[tL(i.astNode),null==(t=i.astNode)?void 0:t.type])}}}(u),function(e){var t;let n,i,r,o=(t=e,n=Object.create(null),i=[],r=Object.create(null),function e(o){if(!n[o.name]){for(let a of(n[o.name]=!0,r[o.name]=i.length,Object.values(o.getFields())))if(et(a.type)&&z(a.type.ofType)){let n=a.type.ofType,o=r[n.name];if(i.push(a),void 0===o)e(n);else{let e=i.slice(o),r=e.map(e=>e.name).join(".");t.reportError(`Cannot reference Input Object "${n.name}" within itself through a series of non-null fields: "${r}".`,e.map(e=>e.astNode))}i.pop()}r[o.name]=void 0}});for(let t of Object.values(e.schema.getTypeMap())){if(!eN(t)){e.reportError(`Expected GraphQL named type but got: ${(0,y.N)(t)}.`,t.astNode);continue}tN(t)||tk(e,t),B(t)||Y(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 i,r,o;for(let n of(tk(e,a),eo(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${(0,y.N)(a.type)}
1.`,null==(i=a.astNode)?void 0:i.type),a.args)){let i=n.name;tk(e,n),ei(n.type)||e.reportError(`The type of ${t.name}.${a.name}(${i}:) must be Input Type but got: ${(0,y.N)(n.type)}.`,null==(r=n.astNode)?void 0:r.type),ex(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${i}:) cannot be deprecated.`,[tL(n.astNode),null==(o=n.astNode)?void 0:o.type])}}}(e,t),function(e,t){let n=Object.create(null);for(let i of t.getInterfaces()){if(!Y(i)){e.reportError(`Type ${(0,y.N)(t)} must only implement Interface types, it cannot implement ${(0,y.N)(i)}.`,tw(t,i));continue}if(t===i){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,tw(t,i));continue}if(n[i.name]){e.reportError(`Type ${t.name} can only implement ${i.name} once.`,tw(t,i));continue}n[i.name]=!0,function(e,t,n){let i=t.getInterfaces();for(let r of n.getInterfaces())i.includes(r)||e.reportError(r===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${r.name} because it is implemented by ${n.name}.`,[...tw(n,r),...tw(t,n)])}(e,t,i),function(e,t,n){let i=t.getFields();for(let l of Object.values(n.getFields())){var r,o,a,s;let u=l.name,c=i[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 i of(eG(e.schema,c.type,l.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${(0,y.N)(l.type)} but ${t.name}.${u} is type ${(0,y.N)(c.type)}.`,[null==(r=l.astNode)?void 0:r.type,null==(o=c.astNode)?void 0:o.type]),l.args)){let r=i.name,o=c.args.find(e=>e.name===r);if(!o){e.reportError(`Interface field argument ${n.name}.${u}(${r}:) expected but ${t.name}.${u} does not provide it.`,[i.astNode,c.astNode]);continue}eB(i.type,o.type)||e.reportError(`Interface field argument ${n.name}.${u}(${r}:) expects type ${(0,y.N)(i.type)} but ${t.name}.${u}(${r}:) is type ${(0,y.N)(o.type)}.`,[null==(a=i.astNode)?void 0:a.type,null==(s=o.astNode)?void 0:s.type])}for(let i of c.args){let r=i.name;!l.args.find(e=>e.name===r)&&ex(i)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${r} that is missing from the Interface field ${n.name}.${u}.`,[i.astNode,l.astNode])}}}(e,t,i)}}(e,t)):q(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 i=Object.create(null);for(let r of n){if(i[r.name]){e.reportError(`Union type ${t.name} can only include type ${r.name} once.`,tR(t,r.name));continue}i[r.name]=!0,B(r)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,y.N)(r)}.`,tR(t,String(r)))}}(e,t):J(t)?function(e,t){let n=t.getValues();for(let i of(0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]),n))tk(e,i)}(e,t):z(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 i,r;tk(e,o),ei(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${(0,y.N)(o.type)}.`,null==(i=o.astNode)?void 0:i.type),eK(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[tL(o.astNode),null==(r=o.astNode)?void 0:r.type]),t.isOneOf&&function(e,t,n){if(et(t.type)){var i;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null==(i=t.astNode)?void 0:i.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 tD(e){let t=t_(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}class tS{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new T.eO(e,{nodes:n}))}getErrors(){return this._errors}}function tA(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 tk(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function tw(e,t){let{astNode:n,extensionASTNodes:i}=e;return(null!=n?[n,...i]:i).flatMap(e=>{var t;return null!=(t=e.interfaces)?t:[]}).filter(e=>e.name.value===t.name)}function tR(e,t){let{astNode:n,extensionASTNodes:i}=e;return(null!=n?[n,...i]:i).flatMap(e=>{var t;return null!=(t=e.types)?t:[]}).filter(e=>e.name.value===t)}function tL(e){var t;return null==e||null==(t=e.directives)?void 0:t.find(e=>e.name.value===e6.name)}var tx=n(74968);function tF(e,t){switch(t.kind){case x.b.LIST_TYPE:{let n=tF(e,t.type);return n&&new ef(n)}case x.b.NON_NULL_TYPE:{let n=tF(e,t.type);return n&&new eh(n)}case x.b.NAMED_TYPE:return e.getType(t.name.value)}}class t${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:tC,t&&(ei(t)&&this._inputTypeStack.push(t),eu(t)&&this._parentTypeStack.push(t),eo(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 x.b.SELECTION_SET:{let e=eb(this.getType());this._parentTypeStack.push(eu(e)?e:void 0);break}case x.b.FIELD:{let n,i,r=this.getParentType();r&&(n=this._getFieldDef(t,r,e))&&(i=n.type),this._fieldDefStack.push(n),this._typeStack.push(eo(i)?i:void 0);break}case x.b.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case x.b.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push(B(n)?n:void 0);break}case x.b.INLINE_FRAGMENT:case x.b.FRAGMENT_DEFINITION:{let n=e.typeCondition,i=n?tF(t,n):eb(this.getType());this._typeStack.push(eo(i)?i:void 0);break}case x.b.VARIABLE_DEFINITION:{let n=tF(t,e.type);this._inputTypeStack.push(ei(n)?n:void 0);break}case x.b.ARGUMENT:{var n;let t,i,r=null!=(n=this.getDirective())?n:this.getFieldDef();r&&(t=r.args.find(t=>t.name===e.name.value))&&(i=t.type),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(ei(i)?i:void 0);break}case x.b.LIST:{let e=ev(this.getInputType()),t=Z(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ei(t)?t:void 0);break}case x.b.OBJECT_FIELD:{let t,n,i=eb(this.getInputType());z(i)&&(n=i.getFields()[e.name.value])&&(t=n.type),this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(ei(t)?t:void 0);break}case x.b.ENUM:{let t,n=eb(this.getInputType());J(n)&&(t=n.getValue(e.value)),this._enumValue=t}}}leave(e){switch(e.kind){case x.b.SELECTION_SET:this._parentTypeStack.pop();break;case x.b.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case x.b.DIRECTIVE:this._directive=null;break;case x.b.OPERATION_DEFINITION:case x.b.INLINE_FRAGMENT:case x.b.FRAGMENT_DEFINITION:this._typeStack.pop();break;case x.b.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case x.b.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case x.b.LIST:case x.b.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case x.b.ENUM:this._enumValue=null}}}function tC(e,t,n){let i=n.name.value;return i===ty.name&&e.getQueryType()===t?ty:i===tT.name&&e.getQueryType()===t?tT:i===tE.name&&eu(t)?tE:B(t)||Y(t)?t.getFields()[i]:void 0}function tV(e,t){return{enter(...n){let i=n[0];e.enter(i);let r=(0,tx.XO)(t,i.kind).enter;if(r){let o=r.apply(t,n);return void 0!==o&&(e.leave(i),(0,E.Ll)(o)&&e.enter(o)),o}},leave(...n){let i,r=n[0],o=(0,tx.XO)(t,r.kind).leave;return o&&(i=o.apply(t,n)),e.leave(r),i}}}var tU=n(93194);function tj(e){return{Document(t){for(let n of t.definitions)if(!(0,tU._m)(n)){let t=n.kind===x.b.SCHEMA_DEFINITION||n.kind===x.b.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new T.eO(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function tP(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){var i,r;let o=e.getSchema(),a=t.name.value,s=v("to use an inline fragment on",function(e,t,n){if(!ep(t))return[];let i=new Set,r=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n])for(let e of(i.add(a),r[a.name]=1,a.getInterfaces())){var o;e.getFields()[n]&&(i.add(e),r[e.name]=(null!=(o=r[e.name])?o:0)+1)}return[...i].sort((t,n)=>{let i=r[n.name]-r[t.name];return 0!==i?i:Y(t)&&e.isSubType(t,n)?-1:Y(n)&&e.isSubType(n,t)?1:D(t.name,n.name)}).map(e=>e.name)}(o,n,a));""===s&&(s=v((i=n,r=a,B(i)||Y(i)?k(r,Object.keys(i.getFields())):[]))),e.reportError(new T.eO(`Cannot query field "${a}" on type "${n.name}".`+s,{nodes:t}))}}}}function tM(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let t=tF(e.getSchema(),n);if(t&&!eu(t)){let t=(0,F.y)(n);e.reportError(new T.eO(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){let n=tF(e.getSchema(),t.typeCondition);if(n&&!eu(n)){let n=(0,F.y)(t.typeCondition);e.reportError(new T.eO(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function tK(e){return{...tB(e),Argument(t){let n=e.getArgument(),i=e.getFieldDef(),r=e.getParentType();if(!n&&i&&r){let n=t.name.value,o=k(n,i.args.map(e=>e.name));e.reportError(new T.eO(`Unknown argument "${n}" on field "${r.name}.${i.name}".`+v(o),{nodes:t}))}}}}function tB(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tn)t[e.name]=e.args.map(e=>e.name);for(let n of e.getDocument().definitions)if(n.kind===x.b.DIRECTIVE_DEFINITION){var i;let e=null!=(i=n.arguments)?i:[];t[n.name.value]=e.map(e=>e.name.value)}return{Directive(n){let i=n.name.value,r=t[i];if(n.arguments&&r)for(let t of n.arguments){let n=t.name.value;if(!r.includes(n)){let o=k(n,r);e.reportError(new T.eO(`Unknown argument "${n}" on directive "@${i}".`+v(o),{nodes:t}))}}return!1}}}function tG(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tn)t[e.name]=e.locations;for(let n of e.getDocument().definitions)n.kind===x.b.DIRECTIVE_DEFINITION&&(t[n.name.value]=n.locations.map(e=>e.value));return{Directive(n,i,r,o,a){let s=n.name.value,l=t[s];if(!l)return void e.reportError(new T.eO(`Unknown directive "@${s}".`,{nodes:n}));let u=function(e){let t=e[e.length-1];
1switch("kind"in t||(0,tr.V)(!1),t.kind){case x.b.OPERATION_DEFINITION:var n=t.operation;switch(n){case E.cE.QUERY:return eQ.H.QUERY;case E.cE.MUTATION:return eQ.H.MUTATION;case E.cE.SUBSCRIPTION:return eQ.H.SUBSCRIPTION}return;case x.b.FIELD:return eQ.H.FIELD;case x.b.FRAGMENT_SPREAD:return eQ.H.FRAGMENT_SPREAD;case x.b.INLINE_FRAGMENT:return eQ.H.INLINE_FRAGMENT;case x.b.FRAGMENT_DEFINITION:return eQ.H.FRAGMENT_DEFINITION;case x.b.VARIABLE_DEFINITION:return eQ.H.VARIABLE_DEFINITION;case x.b.SCHEMA_DEFINITION:case x.b.SCHEMA_EXTENSION:return eQ.H.SCHEMA;case x.b.SCALAR_TYPE_DEFINITION:case x.b.SCALAR_TYPE_EXTENSION:return eQ.H.SCALAR;case x.b.OBJECT_TYPE_DEFINITION:case x.b.OBJECT_TYPE_EXTENSION:return eQ.H.OBJECT;case x.b.FIELD_DEFINITION:return eQ.H.FIELD_DEFINITION;case x.b.INTERFACE_TYPE_DEFINITION:case x.b.INTERFACE_TYPE_EXTENSION:return eQ.H.INTERFACE;case x.b.UNION_TYPE_DEFINITION:case x.b.UNION_TYPE_EXTENSION:return eQ.H.UNION;case x.b.ENUM_TYPE_DEFINITION:case x.b.ENUM_TYPE_EXTENSION:return eQ.H.ENUM;case x.b.ENUM_VALUE_DEFINITION:return eQ.H.ENUM_VALUE;case x.b.INPUT_OBJECT_TYPE_DEFINITION:case x.b.INPUT_OBJECT_TYPE_EXTENSION:return eQ.H.INPUT_OBJECT;case x.b.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||(0,tr.V)(!1),t.kind===x.b.INPUT_OBJECT_TYPE_DEFINITION?eQ.H.INPUT_FIELD_DEFINITION:eQ.H.ARGUMENT_DEFINITION}default:(0,tr.V)(!1,"Unexpected kind: "+(0,y.N)(t.kind))}}(a);u&&!l.includes(u)&&e.reportError(new T.eO(`Directive "@${s}" may not be used on ${u}.`,{nodes:n}))}}}function tY(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new T.eO(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function tQ(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);for(let t of e.getDocument().definitions)(0,tU.a6)(t)&&(i[t.name.value]=!0);let r=[...Object.keys(n),...Object.keys(i)];return{NamedType(t,o,a,s,l){let u=t.name.value;if(!n[u]&&!i[u]){var c,p;let n=null!=(c=l[2])?c:a,i=null!=n&&"kind"in(p=n)&&((0,tU.xu)(p)||(0,tU.fT)(p));if(i&&tq.includes(u))return;let o=k(u,i?tq.concat(r):r);e.reportError(new T.eO(`Unknown type "${u}".`+v(o),{nodes:t}))}}}}let tq=[...e0,...tv].map(e=>e.name);function tH(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===x.b.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new T.eO("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function tJ(e){var t,n,i;let r=e.getSchema(),o=null!=(t=null!=(n=null!=(i=null==r?void 0:r.astNode)?i:null==r?void 0:r.getQueryType())?n:null==r?void 0:r.getMutationType())?t:null==r?void 0:r.getSubscriptionType(),a=0;return{SchemaDefinition(t){o?e.reportError(new T.eO("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new T.eO("Must provide only one schema definition.",{nodes:t})),++a)}}}function tX(e){return{Field(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&function t(n,i=Object.create(null),r=0){if(n.kind===x.b.FRAGMENT_SPREAD){let o=n.name.value;if(!0===i[o])return!1;let a=e.getFragment(o);if(!a)return!1;try{return i[o]=!0,t(a,i,r)}finally{i[o]=void 0}}if(n.kind===x.b.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++r>=3)return!0;if("selectionSet"in n&&n.selectionSet){for(let e of n.selectionSet.selections)if(t(e,i,r))return!0}return!1}(t))return e.reportError(new T.eO("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}function tz(e){let t=Object.create(null),n=[],i=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:r=>((function r(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(i[a]=n.length,s)){let o=t.name.value,a=i[o];if(n.push(t),void 0===a){let t=e.getFragment(o);t&&r(t)}else{let t=n.slice(a),i=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new T.eO(`Cannot spread fragment "${o}" within itself`+(""!==i?` via ${i}.`:"."),{nodes:t}))}n.pop()}i[a]=void 0}})(r),!1)}}function tW(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:i}of e.getRecursiveVariableUsages(n)){let r=i.name.value;!0!==t[r]&&e.reportError(new T.eO(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function tZ(e){let t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){let i=Object.create(null);for(let n of t)for(let t of e.getRecursivelyReferencedFragments(n))i[t.name.value]=!0;for(let t of n){let n=t.name.value;!0!==i[n]&&e.reportError(new T.eO(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function t0(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let i=Object.create(null);for(let{node:t}of e.getRecursiveVariableUsages(n))i[t.name.value]=!0;for(let r of t){let t=r.variable.name.value;!0!==i[t]&&e.reportError(new T.eO(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:r}))}}},VariableDefinition(e){t.push(e)}}}function t1(e){switch(e.kind){case x.b.OBJECT:return{...e,fields:e.fields.map(e=>({...e,value:t1(e.value)})).sort((e,t)=>
1D(e.name.value,t.name.value))};case x.b.LIST:return{...e,values:e.values.map(t1)};case x.b.INT:case x.b.FLOAT:case x.b.STRING:case x.b.BOOLEAN:case x.b.NULL:case x.b.ENUM:case x.b.VARIABLE:return e}}function t2(e){let t=new t6,n=new Map;return{SelectionSet(i){for(let[[r,o],a,s]of function(e,t,n,i,r){let o=[],[a,s]=t8(e,t,i,r);if(function(e,t,n,i,r){for(let[o,a]of Object.entries(r))if(a.length>1)for(let r=0;r<a.length;r++)for(let s=r+1;s<a.length;s++){let l=t5(e,n,i,!1,o,a[r],a[s]);l&&t.push(l)}}(e,o,t,n,a),0!==s.length)for(let i=0;i<s.length;i++){t9(e,o,t,n,!1,a,s[i]);for(let r=i+1;r<s.length;r++)t3(e,o,t,n,!1,s[i],s[r])}return o}(e,n,t,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}(o);e.reportError(new T.eO(`Fields "${r}" conflict because ${t}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:a.concat(s)}))}}}}function t9(e,t,n,i,r,o,a){let s=e.getFragment(a);if(!s)return;let[l,u]=t7(e,n,s);if(o!==l)for(let s of(t4(e,t,n,i,r,o,l),u))i.has(s,a,r)||(i.add(s,a,r),t9(e,t,n,i,r,o,s))}function t3(e,t,n,i,r,o,a){if(o===a||i.has(o,a,r))return;i.add(o,a,r);let s=e.getFragment(o),l=e.getFragment(a);if(!s||!l)return;let[u,c]=t7(e,n,s),[p,d]=t7(e,n,l);for(let a of(t4(e,t,n,i,r,u,p),d))t3(e,t,n,i,r,o,a);for(let o of c)t3(e,t,n,i,r,o,a)}function t4(e,t,n,i,r,o,a){for(let[s,l]of Object.entries(o)){let o=a[s];if(o)for(let a of l)for(let l of o){let o=t5(e,n,i,r,s,a,l);o&&t.push(o)}}}function t5(e,t,n,i,r,o,a){let[s,l,u]=o,[c,p,d]=a,f=i||s!==c&&B(s)&&B(c);if(!f){let e=l.name.value,t=p.name.value;if(e!==t)return[[r,`"${e}" and "${t}" are different fields`],[l],[p]];if(!function(e,t){let n=e.arguments,i=t.arguments;if(void 0===n||0===n.length)return void 0===i||0===i.length;if(void 0===i||0===i.length||n.length!==i.length)return!1;let r=new Map(i.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>
1{let t=e.value,n=r.get(e.name.value);return void 0!==n&&function(e){return(0,F.y)(t1(e))}(t)===function(e){return(0,F.y)(t1(e))}(n)})}(l,p))return[[r,"they have differing arguments"],[l],[p]]}let h=null==u?void 0:u.type,m=null==d?void 0:d.type;if(h&&m&&function e(t,n){return Z(t)?!Z(n)||e(t.ofType,n.ofType):!!Z(n)||(et(t)?!et(n)||e(t.ofType,n.ofType):!!et(n)||!!(es(t)||es(n))&&t!==n)}(h,m))return[[r,`they return conflicting types "${(0,y.N)(h)}" and "${(0,y.N)(m)}"`],[l],[p]];let T=l.selectionSet,E=p.selectionSet;if(T&&E){var v=function(e,t,n,i,r,o,a,s){let l=[],[u,c]=t8(e,t,r,o),[p,d]=t8(e,t,a,s);for(let r of(t4(e,l,t,n,i,u,p),d))t9(e,l,t,n,i,u,r);for(let r of c)t9(e,l,t,n,i,p,r);for(let r of c)for(let o of d)t3(e,l,t,n,i,r,o);return l}(e,t,n,f,eb(h),T,eb(m),E),N=r,g=l,b=p;return v.length>0?[[N,v.map(([e])=>e)],[g,...v.map(([,e])=>e).flat()],[b,...v.map(([,,e])=>e).flat()]]:void 0}}function t8(e,t,n,i){let r=t.get(i);if(r)return r;let o=Object.create(null),a=Object.create(null);!function e(t,n,i,r,o){for(let a of i.selections)switch(a.kind){case x.b.FIELD:{let e,t=a.name.value;(B(n)||Y(n))&&(e=n.getFields()[t]);let i=a.alias?a.alias.value:t;r[i]||(r[i]=[]),r[i].push([n,a,e]);break}case x.b.FRAGMENT_SPREAD:o[a.name.value]=!0;break;case x.b.INLINE_FRAGMENT:{let i=a.typeCondition,s=i?tF(t.getSchema(),i):n;e(t,s,a.selectionSet,r,o)}}}(e,n,i,o,a);let s=[o,Object.keys(a)];return t.set(i,s),s}function t7(e,t,n){let i=t.get(n.selectionSet);if(i)return i;let r=tF(e.getSchema(),n.typeCondition);return t8(e,t,r,n.selectionSet)}class t6{constructor(){this._data=new Map}has(e,t,n){var i;let[r,o]=e<t?[e,t]:[t,e],a=null==(i=this._data.get(r))?void 0:i.get(o);return void 0!==a&&(!!n||n===a)}add(e,t,n){let[i,r]=e<t?[e,t]:[t,e],o=this._data.get(i);void 0===o?this._data.set(i,new Map([[r,n]])):o.set(r,n)}}function ne(e){return{InlineFragment(t){let n=e.getType(),i=e.getParentType();if(eu(n)&&eu(i)&&!eY(e.getSchema(),n,i)){let r=(0,y.N)(i),o=(0,y.N)(n);e.reportError(new T.eO(`Fragment cannot be spread here as objects of type "${r}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,i=function(e,t){let n=e.getFragment(t);if(n){let t=tF(e.getSchema(),n.typeCondition);if(eu(t))return t}}(e,n),r=e.getParentType();if(i&&r&&!eY(e.getSchema(),i,r)){let o=(0,y.N)(r),a=(0,y.N)(i);e.reportError(new T.eO(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}}function nt(e){let t=e.getSchema(),n=Object.create(null);for(let t of e.getDocument().definitions)(0,tU.a6)(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:i,ObjectTypeExtension:i,InterfaceTypeExtension:i,UnionTypeExtension:i,EnumTypeExtension:i,InputObjectTypeExtension:i};function i(i){var r;let o,a=i.name.value,s=n[a],l=null==t?void 0:t.getType(a);if(s?o=nn[s.kind]:l&&(o=M(r=l)?x.b.SCALAR_TYPE_EXTENSION:B(r)?x.b.OBJECT_TYPE_EXTENSION:Y(r)?x.b.INTERFACE_TYPE_EXTENSION:q(r)?x.b.UNION_TYPE_EXTENSION:J(r)?x.b.ENUM_TYPE_EXTENSION:z(r)?x.b.INPUT_OBJECT_TYPE_EXTENSION:void(0,tr.V)(!1,"Unexpected type: "+(0,y.N)(r))),o){if(o!==i.kind){let t=function(e){switch(e){case x.b.SCALAR_TYPE_EXTENSION:return"scalar";case x.b.OBJECT_TYPE_EXTENSION:return"object";case x.b.INTERFACE_TYPE_EXTENSION:return"interface";case x.b.UNION_TYPE_EXTENSION:return"union";case x.b.ENUM_TYPE_EXTENSION:return"enum";case x.b.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,tr.V)(!1,"Unexpected kind: "+(0,y.N)(e))}}(i.kind);e.reportError(new T.eO(`Cannot extend non-${t} type "${a}".`,{nodes:s?[s,i]:i}))}}else{let r=k(a,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new T.eO(`Cannot extend type "${a}" because it is not defined.`+v(r),{nodes:i.name}))}}}let nn={[x.b.SCALAR_TYPE_DEFINITION]:x.b.SCALAR_TYPE_EXTENSION,[x.b.OBJECT_TYPE_DEFINITION]:x.b.OBJECT_TYPE_EXTENSION,[x.b.INTERFACE_TYPE_DEFINITION]:x.b.INTERFACE_TYPE_EXTENSION,[x.b.UNION_TYPE_DEFINITION]:x.b.UNION_TYPE_EXTENSION,[x.b.ENUM_TYPE_DEFINITION]:x.b.ENUM_TYPE_EXTENSION,[x.b.INPUT_OBJECT_TYPE_DEFINITION]:x.b.INPUT_OBJECT_TYPE_EXTENSION};function ni(e){return{...nr(e),Field:{leave(t){var n;let i=e.getFieldDef();if(!i)return!1;let r=new Set(null==(n=t.arguments)?void 0:n.map(e=>e.name.value));for(let n of i.args)if(!r.has(n.name)&&ex(n)){let r=(0,y.N)(n.type);e.reportError(new T.eO(`Field "${i.name}" argument "${n.name}" of type "${r}" is required, but it was not provided.`,{nodes:t}))}}}}}function nr(e){var t,n;let i=Object.create(null),r=e.getSchema();for(let e of null!=(t=null==r?void 0:r.getDirectives())?t:tn)i[e.name]=O(e.args.filter(ex),e=>e.name);for(let t of e.getDocument().definitions)if(t.kind===x.b.DIRECTIVE_DEFINITION){let e=null!=(n=t.arguments)?n:[];i[t.name.value]=O(e.filter(no),e=>e.name.value)}return{Directive:{leave(t){let n=t.name.value,r=i[n];if(r){var o;let i=new Set((null!=(o=t.arguments)?o:[]).map(e=>e.name.value));
1for(let[o,a]of Object.entries(r))if(!i.has(o)){let i=j(a.type)?(0,y.N)(a.type):(0,F.y)(a.type);e.reportError(new T.eO(`Directive "@${n}" argument "${o}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function no(e){return e.type.kind===x.b.NON_NULL_TYPE&&null==e.defaultValue}function na(e){return{Field(t){let n=e.getType(),i=t.selectionSet;if(n){if(es(eb(n))){if(i){let r=t.name.value,o=(0,y.N)(n);e.reportError(new T.eO(`Field "${r}" must not have a selection since type "${o}" has no subfields.`,{nodes:i}))}}else if(!i){let i=t.name.value,r=(0,y.N)(n);e.reportError(new T.eO(`Field "${i}" of type "${r}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}function ns(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function nl(e,t,n){return{prev:e,key:t,typename:n}}function nu(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function nc(e,t,n=np){return function e(t,n,i,r){if(et(n))return null!=t?e(t,n.ofType,i,r):void i(nu(r),t,new T.eO(`Expected non-nullable type "${(0,y.N)(n)}" not to be null.`));if(null==t)return null;if(Z(n)){let o=n.ofType;return to(t)?Array.from(t,(t,n)=>e(t,o,i,nl(r,n,void 0))):[e(t,o,i,r)]}if(z(n)){if(!(0,b.Z)(t))return void i(nu(r),t,new T.eO(`Expected type "${n.name}" to be an object.`));let o={},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(et(s.type)){let e=(0,y.N)(s.type);i(nu(r),t,new T.eO(`Field "${s.name}" of required type "${e}" was not provided.`))}continue}o[s.name]=e(a,s.type,i,nl(r,s.name,n.name))}for(let e of Object.keys(t))if(!a[e]){let o=k(e,Object.keys(n.getFields()));i(nu(r),t,new T.eO(`Field "${e}" is not defined by type "${n.name}".`+v(o)))}if(n.isOneOf){let e=Object.keys(o);1!==e.length&&i(nu(r),t,new T.eO(`Exactly one key must be specified for OneOf type "${n.name}".`));let a=e[0],s=o[a];null===s&&i(nu(r).concat(a),s,new T.eO(`Field "${a}" must be non-null.`))}return o}if(es(n)){let e;try{e=n.parseValue(t)}catch(e){e instanceof T.eO?i(nu(r),t,e):i(nu(r),t,new T.eO(`Expected type "${n.name}". `+e.message,{originalError:e}));return}return void 0===e&&i(nu(r),t,new T.eO(`Expected type "${n.name}".`)),e}(0,tr.V)(!1,"Unexpected input type: "+(0,y.N)(n))}(e,t,n,void 0)}
1function np(e,t,n){let i="Invalid value "+(0,y.N)(t);throw e.length>0&&(i+=` at "value${ns(e)}"`),n.message=i+": "+n.message,n}function nd(e,t,n){if(e){if(e.kind===x.b.VARIABLE){let i=e.name.value;if(null==n||void 0===n[i])return;let r=n[i];if(null===r&&et(t))return;return r}if(et(t)){if(e.kind===x.b.NULL)return;return nd(e,t.ofType,n)}if(e.kind===x.b.NULL)return null;if(Z(t)){let i=t.ofType;if(e.kind===x.b.LIST){let t=[];for(let r of e.values)if(nf(r,n)){if(et(i))return;t.push(null)}else{let e=nd(r,i,n);if(void 0===e)return;t.push(e)}return t}let r=nd(e,i,n);if(void 0===r)return;return[r]}if(z(t)){if(e.kind!==x.b.OBJECT)return;let i=Object.create(null),r=O(e.fields,e=>e.name.value);for(let e of Object.values(t.getFields())){let t=r[e.name];if(!t||nf(t.value,n)){if(void 0!==e.defaultValue)i[e.name]=e.defaultValue;else if(et(e.type))return;continue}let o=nd(t.value,e.type,n);if(void 0===o)return;i[e.name]=o}if(t.isOneOf){let e=Object.keys(i);if(1!==e.length||null===i[e[0]])return}return i}if(es(t)){let i;try{i=t.parseLiteral(e,n)}catch(e){return}if(void 0===i)return;return i}(0,tr.V)(!1,"Unexpected input type: "+(0,y.N)(t))}}function nf(e,t){return e.kind===x.b.VARIABLE&&(null==t||void 0===t[e.name.value])}function nh(e,t,n,i){let r=[],o=null==i?void 0:i.maxErrors;try{let i=function(e,t,n,i){let r={};for(let o of t){let t=o.variable.name.value,a=tF(e,o.type);if(!ei(a)){let e=(0,F.y)(o.type);i(new T.eO(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!nT(n,t)){if(o.defaultValue)r[t]=nd(o.defaultValue,a);else if(et(a)){let e=(0,y.N)(a);i(new T.eO(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}let s=n[t];if(null===s&&et(a)){let e=(0,y.N)(a);i(new T.eO(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}));continue}r[t]=nc(s,a,(e,n,r)=>{let a=`Variable "$${t}" got invalid value `+(0,y.N)(n);e.length>0&&(a+=` at "${t}${ns(e)}"`),i(new T.eO(a+"; "+r.message,{nodes:o,originalError:r}))})}return r}(e,t,n,e=>{if(null!=o&&r.length>=o)throw new T.eO("Too many errors processing variables, error limit reached. Execution aborted.");r.push(e)});if(0===r.length)return{coerced:i}}catch(e){r.push(e)}return{errors:r}}function nm(e,t,n){var i;let r={},o=O(null!=(i=t.arguments)?i:[],e=>e.name.value);for(let i of e.args){let e=i.name,a=i.type,s=o[e];if(!s){if(void 0!==i.defaultValue)r[e]=i.defaultValue;else if(et(a))throw new T.eO(`Argument "${e}" of required type "${(0,y.N)(a)}" was not provided.`,{nodes:t});continue}let l=s.value,u=l.kind===x.b.NULL;if(l.kind===x.b.VARIABLE){let t=l.name.value;if(null==n||!nT(n,t)){if(void 0!==i.defaultValue)r[e]=i.defaultValue;else if(et(a))throw new T.eO(`Argument "${e}" of required type "${(0,y.N)(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}u=null==n[t]}if(u&&et(a))throw new T.eO(`Argument "${e}" of non-null type "${(0,y.N)(a)}" must not be null.`,{nodes:l});let c=nd(l,a,n);if(void 0===c)throw new T.eO(`Argument "${e}" has invalid value ${(0,F.y)(l)}.`,{nodes:l});r[e]=c}return r}function ny(e,t,n){var i;let r=null==(i=t.directives)?void 0:i.find(t=>t.name.value===e.name);if(r)return nm(e,r,n)}function nT(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nE(e,t,n,i,r){let o=new Map;return nv(e,t,n,i,r,o,new Set),o}function nv(e,t,n,i,r,o,a){for(let l of r.selections)switch(l.kind){case x.b.FIELD:{var s;if(!nN(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 x.b.INLINE_FRAGMENT:if(!nN(n,l)||!ng(e,l,i))continue;nv(e,t,n,i,l.selectionSet,o,a);break;case x.b.FRAGMENT_SPREAD:{let r=l.name.value;if(a.has(r)||!nN(n,l))continue;a.add(r);let s=t[r];if(!s||!ng(e,s,i))continue;nv(e,t,n,i,s.selectionSet,o,a)}}}function nN(e,t){let n=ny(e8,t,e);if((null==n?void 0:n.if)===!0)return!1;let i=ny(e5,t,e);return(null==i?void 0:i.if)!==!1}function ng(e,t,n){let i=t.typeCondition;if(!i)return!0;let r=tF(e,i);return r===n||!!ep(r)&&e.isSubType(r,n)}function nb(e){return{OperationDefinition(t){if("subscription"===t.operation){let n=e.getSchema(),i=n.getSubscriptionType();if(i){let r=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===x.b.FRAGMENT_DEFINITION&&(s[e.name.value]=e);let l=nE(n,s,o,i,t.selectionSet);if(l.size>1){let t=[...l.values()].slice(1).flat();e.reportError(new T.eO(null!=r?`Subscription "${r}" 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 T.eO(null!=r?`Subscription "${r}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function nO(e,t){let n=new Map;for(let i of e){let e=t(i),r=n.get(e);void 0===r?n.set(e,[i]):r.push(i)}return n}function nI(e){return{DirectiveDefinition(e){var t;let i=null!=(t=e.arguments)?t:[];return n(`@${e.name.value}`,i)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,i;let r=e.name.value;for(let o of null!=(t=e.fields)?t:[]){let e=o.name.value;n(`${r}.${e}`,null!=(i=o.arguments)?i:[])}return!1}function n(t,n){for(let[i,r]of nO(n,e=>e.name.value))r.length>1&&e.reportError(new T.eO(`Argument "${t}(${i}:)" can only be defined once.`,{nodes:r.map(e=>e.name)}
1));return!1}}function n_(e){return{Field:t,Directive:t};function t(t){var n;for(let[i,r]of nO(null!=(n=t.arguments)?n:[],e=>e.name.value))r.length>1&&e.reportError(new T.eO(`There can be only one argument named "${i}".`,{nodes:r.map(e=>e.name)}))}}function nD(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(i){let r=i.name.value;return null!=n&&n.getDirective(r)?void e.reportError(new T.eO(`Directive "@${r}" already exists in the schema. It cannot be redefined.`,{nodes:i.name})):(t[r]?e.reportError(new T.eO(`There can be only one directive named "@${r}".`,{nodes:[t[r],i.name]})):t[r]=i.name,!1)}}}function nS(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():tn)t[e.name]=!e.isRepeatable;for(let n of e.getDocument().definitions)n.kind===x.b.DIRECTIVE_DEFINITION&&(t[n.name.value]=!n.repeatable);let i=Object.create(null),r=Object.create(null);return{enter(n){let o;if("directives"in n&&n.directives){if(n.kind===x.b.SCHEMA_DEFINITION||n.kind===x.b.SCHEMA_EXTENSION)o=i;else if((0,tU.a6)(n)||(0,tU.i7)(n)){let e=n.name.value;void 0===(o=r[e])&&(r[e]=o=Object.create(null))}else o=Object.create(null);for(let i of n.directives){let n=i.name.value;t[n]&&(o[n]?e.reportError(new T.eO(`The directive "@${n}" can only be used once at this location.`,{nodes:[o[n],i]})):o[n]=i)}}}}}function nA(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{EnumTypeDefinition:r,EnumTypeExtension:r};function r(t){var r;let o=t.name.value;i[o]||(i[o]=Object.create(null));let a=null!=(r=t.values)?r:[],s=i[o];for(let t of a){let i=t.name.value,r=n[o];J(r)&&r.getValue(i)?e.reportError(new T.eO(`Enum value "${o}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[i]?e.reportError(new T.eO(`Enum value "${o}.${i}" can only be defined once.`,{nodes:[s[i],t.name]})):s[i]=t.name}return!1}}function nk(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),i=Object.create(null);return{InputObjectTypeDefinition:r,InputObjectTypeExtension:r,InterfaceTypeDefinition:r,InterfaceTypeExtension:r,ObjectTypeDefinition:r,ObjectTypeExtension:r};function r(t){var r,o,a;let s=t.name.value;i[s]||(i[s]=Object.create(null));let l=null!=(r=t.fields)?r:[],u=i[s];for(let t of l){let i=t.name.value;(o=n[s],a=i,(B(o)||Y(o)||z(o))&&null!=o.getFields()[a])?e.reportError(new T.eO(`Field "${s}.${i}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[i]?e.reportError(new T.eO(`Field "${s}.${i}" can only be defined once.`,{nodes:[u[i],t.name]})):u[i]=t.name}return!1}}function nw(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let i=n.name.value;return t[i]?e.reportError(new T.eO(`There can be only one fragment named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1}}}function nR(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let e=t.pop();e||(0,tr.V)(!1),n=e}},ObjectField(t){let i=t.name.value;n[i]?e.reportError(new T.eO(`There can be only one input field named "${i}".`,{nodes:[n[i],t.name]})):n[i]=t.name}}}function nL(e){let t=Object.create(null);return{OperationDefinition(n){let i=n.name;return i&&(t[i.value]?e.reportError(new T.eO(`There can be only one operation named "${i.value}".`,{nodes:[t[i.value],i]})):t[i.value]=i),!1},FragmentDefinition:()=>!1}}function nx(e){let t=e.getSchema(),n=Object.create(null),i=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:r,SchemaExtension:r};function r(t){var r;for(let o of null!=(r=t.operationTypes)?r:[]){let t=o.operation,r=n[t];i[t]?e.reportError(new T.eO(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:o})):r?e.reportError(new T.eO(`There can be only one ${t} type in schema.`,{nodes:[r,o]})):n[t]=o}return!1}}function nF(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:i,ObjectTypeDefinition:i,InterfaceTypeDefinition:i,UnionTypeDefinition:i,EnumTypeDefinition:i,InputObjectTypeDefinition:i};function i(i){let r=i.name.value;return null!=n&&n.getType(r)?void e.reportError(new T.eO(`Type "${r}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name})):(t[r]?e.reportError(new T.eO(`There can be only one type named "${r}".`,{nodes:[t[r],i.name]})):t[r]=i.name,!1)}}function n$(e){return{OperationDefinition(t){var n;for(let[i,r]of nO(null!=(n=t.variableDefinitions)?n:[],e=>e.variable.name.value))r.length>1&&e.reportError(new T.eO(`There can be only one variable named "$${i}".`,{nodes:r.map(e=>e.variable.name)}))}}}function nC(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){if(!Z(ev(e.getParentInputType())))return nV(e,t),!1},ObjectValue(n){let i=eb(e.getInputType());if(!z(i))return nV(e,n),!1;let r=O(n.fields,e=>e.name.value);for(let t of Object.values(i.getFields()))if(!r[t.name]&&eK(t)){let r=(0,y.N)(t.type);e.reportError(new T.eO(`Field "${i.name}.${t.name}" of required type "${r}" was not provided.`,{nodes:n}))}i.isOneOf&&function(e,t,n,i,r){var o;let a=Object.keys(i);if(1!==a.length)return e.reportError(new T.eO(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));let s=null==(o=i[a[0]])?void 0:o.value,l=!s||s.kind===x.b.NULL,u=(null==s?void 0:s.kind)===x.b.VARIABLE;if(l)return e.reportError(new T.eO(`Field "${n.name}.${a[0]}" must be non-null.`,{nodes:[t]}));if(u){let i=s.name.value;r[i].type.kind!==x.b.NON_NULL_TYPE&&e.reportError(new T.eO(`Variable "${i}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}(e,n,i,r,t)},ObjectField(t){let n=eb(e.getParentInputType());if(!e.getInputType()&&z(n)){let i=k(t.name.value,Object.keys(n.getFields()));e.reportError(new T.eO(`Field "${t.name.value}" is not defined by type "${n.name}".`+v(i),{nodes:t}))}}
1,NullValue(t){let n=e.getInputType();et(n)&&e.reportError(new T.eO(`Expected value of type "${(0,y.N)(n)}", found ${(0,F.y)(t)}.`,{nodes:t}))},EnumValue:t=>nV(e,t),IntValue:t=>nV(e,t),FloatValue:t=>nV(e,t),StringValue:t=>nV(e,t),BooleanValue:t=>nV(e,t)}}function nV(e,t){let n=e.getInputType();if(!n)return;let i=eb(n);if(!es(i)){let i=(0,y.N)(n);e.reportError(new T.eO(`Expected value of type "${i}", found ${(0,F.y)(t)}.`,{nodes:t}));return}try{let r=i.parseLiteral(t,void 0);if(void 0===r){let i=(0,y.N)(n);e.reportError(new T.eO(`Expected value of type "${i}", found ${(0,F.y)(t)}.`,{nodes:t}))}}catch(r){let i=(0,y.N)(n);r instanceof T.eO?e.reportError(r):e.reportError(new T.eO(`Expected value of type "${i}", found ${(0,F.y)(t)}; `+r.message,{nodes:t,originalError:r}))}}function nU(e){return{VariableDefinition(t){let n=tF(e.getSchema(),t.type);if(void 0!==n&&!ei(n)){let n=t.variable.name.value,i=(0,F.y)(t.type);e.reportError(new T.eO(`Variable "$${n}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}function nj(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:l,type:u,defaultValue:c}of e.getRecursiveVariableUsages(n)){let n=l.name.value,p=t[n];if(p&&u){var i,r,o,a,s;let t=e.getSchema(),d=tF(t,p.type);if(d&&(i=t,r=d,o=p.defaultValue,a=u,s=c,et(a)&&!et(r)?!((null!=o&&o.kind!==x.b.NULL||void 0!==s)&&eG(i,r,a.ofType)):!eG(i,r,a))){let t=(0,y.N)(d),i=(0,y.N)(u);e.reportError(new T.eO(`Variable "$${n}" of type "${t}" used in position expecting type "${i}".`,{nodes:[p,l]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}let nP=Object.freeze([tX]),nM=Object.freeze([tj,nL,tH,nb,tQ,tM,nU,na,tP,nw,tY,tZ,ne,tz,n$,tW,t0,tG,nS,tK,n_,nC,ni,nj,t2,nR,...nP]),nK=Object.freeze([tJ,nx,nF,nA,nk,nI,nD,tQ,tG,nS,nt,tB,n_,nR,nr]);class nB{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===x.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 i=[e];for(;n=i.pop();)for(let e of n.selections)e.kind===x.b.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&i.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){let n;t=[];let i=Object.create(null),r=[e.selectionSet];for(;n=r.pop();)for(let e of this.getFragmentSpreads(n)){let n=e.name.value;if(!0!==i[n]){i[n]=!0;let e=this.getFragment(n);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class nG extends nB{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class nY extends nB{constructor(e,t,n,i){super(t,i),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=[],i=new t$(this._schema);(0,tx.YR)(e,tV(i,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),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()}}function nQ(e,t,n=nM,i,r=new t$(e)){var o;let a=null!=(o=null==i?void 0:i.maxErrors)?o:100;t||(0,f.U)(!1,"Must provide document."),tD(e);let s=Object.freeze({}),l=[],u=new nY(e,t,r,e=>
1{if(l.length>=a)throw l.push(new T.eO("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),c=(0,tx.oP)(n.map(e=>e(u)));try{(0,tx.YR)(t,tV(r,c))}catch(e){if(e!==s)throw e}return l}function nq(e,t,n=nK){let i=[],r=new nG(e,t,e=>{i.push(e)}),o=n.map(e=>e(r));return(0,tx.YR)(e,(0,tx.oP)(o)),i}function nH(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[i,r]of Object.keys(e).entries())n[r]=t[i];return n})}class nJ extends Error{constructor(e){super("Unexpected error value: "+(0,y.N)(e)),this.name="NonErrorThrown",this.thrownValue=e}}function nX(e,t,n){var i;let r=e instanceof Error?e:new nJ(e);return Array.isArray(r.path)?r:new T.eO(r.message,{nodes:null!=(i=r.nodes)?i:t,source:r.source,positions:r.positions,path:n,originalError:r})}let nz=(s=(e,t,n)=>(function(e,t,n,i,r){let o=new Map,a=new Set;for(let s of r)s.selectionSet&&nv(e,t,n,i,s.selectionSet,o,a);return o})(e.schema,e.fragments,e.variableValues,t,n),function(e,t,n){void 0===i&&(i=new WeakMap);let r=i.get(e);void 0===r&&(r=new WeakMap,i.set(e,r));let o=r.get(t);void 0===o&&(o=new WeakMap,r.set(t,o));let a=o.get(n);return void 0===a&&(a=s(e,t,n),o.set(n,a)),a});function nW(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:i,rootValue:r}=e;n1(t,n,i);let o=n2(e);if(!("schema"in o))return{errors:o};try{let{operation:e}=o,t=function(e,t,n){let i=e.schema.getRootType(t.operation);if(null==i)throw new T.eO(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let r=nE(e.schema,e.fragments,e.variableValues,i,t.selectionSet),o;switch(t.operation){case E.cE.QUERY:return n9(e,i,n,o,r);case E.cE.MUTATION:var a,s,l,u,c;return a=e,s=i,l=n,u=o,c=r,function(e,t,n){let i=n;for(let n of e)i=h(i)?i.then(e=>t(e,n)):t(i,n);return i}(c.entries(),(e,[t,n])=>{let i=nl(u,t,s.name),r=n3(a,s,l,n,i);return void 0===r?e:h(r)?r.then(n=>(e[t]=n,e)):(e[t]=r,e)},Object.create(null));case E.cE.SUBSCRIPTION:return n9(e,i,n,o,r)}}(o,e,r);if(h(t))return t.then(e=>n0(e,o.errors),e=>(o.errors.push(e),n0(null,o.errors)));return n0(t,o.errors)}catch(e){return o.errors.push(e),n0(null,o.errors)}}function nZ(e){let t=nW(e);if(h(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function n0(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function n1(e,t,n){t||(0,f.U)(!1,"Must provide document."),tD(e),null==n||(0,b.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 n2(e){var t,n;let i,{schema:r,document:o,rootValue:a,contextValue:s,variableValues:l,operationName:u,fieldResolver:c,typeResolver:p,subscribeFieldResolver:d}=e,f=Object.create(null);for(let e of o.definitions)switch(e.kind){case x.b.OPERATION_DEFINITION:if(null==u){if(void 0!==i)return[new T.eO("Must provide operation name if query contains multiple operations.")];i=e}else(null==(t=e.name)?void 0:t.value)===u&&(i=e);break;case x.b.FRAGMENT_DEFINITION:f[e.name.value]=e}if(!i)return null!=u?[new T.eO(`Unknown operation named "${u}".`)]:[new T.eO("Must provide an operation.")];let h=nh(r,null!=(n=i.variableDefinitions)?n:[],null!=l?l:{},{maxErrors:50});return h.errors?h.errors:{schema:r,fragments:f,rootValue:a,contextValue:s,operation:i,variableValues:h.coerced,fieldResolver:null!=c?c:ii,typeResolver:null!=p?p:it,subscribeFieldResolver:null!=d?d:ii,errors:[]}}function n9(e,t,n,i,r){let o=Object.create(null),a=!1;try{for(let[s,l]of r.entries()){let r=nl(i,s,t.name),u=n3(e,t,n,l,r);void 0!==u&&(o[s]=u,h(u)&&(a=!0))}}catch(e){if(a)return nH(o).finally(()=>{throw e});throw e}return a?nH(o):o}function n3(e,t,n,i,r){var o;let a=ir(e.schema,t,i[0]);if(!a)return;let s=a.type,l=null!=(o=a.resolve)?o:e.fieldResolver,u=n4(e,a,i,t,r);try{let t,o=nm(a,i[0],e.variableValues),c=e.contextValue,p=l(n,o,c,u);if(t=h(p)?p.then(t=>n8(e,s,i,u,r,t)):n8(e,s,i,u,r,p),h(t))return t.then(void 0,t=>{let n=nX(t,i,nu(r));return n5(n,s,e)});return t}catch(t){return n5(nX(t,i,nu(r)),s,e)}}function n4(e,t,n,i,r){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:i,path:r,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}
1function n5(e,t,n){if(et(t))throw e;return n.errors.push(e),null}function n8(e,t,n,i,r,o){var a,s,l,u,c,p,d;let f;if(o instanceof Error)throw o;if(et(t)){let a=n8(e,t.ofType,n,i,r,o);if(null===a)throw Error(`Cannot return null for non-nullable field ${i.parentType.name}.${i.fieldName}.`);return a}return null==o?null:Z(t)?function(e,t,n,i,r,o){if(!to(o))throw new T.eO(`Expected Iterable, but did not find one for field "${i.parentType.name}.${i.fieldName}".`);let a=t.ofType,s=!1,l=Array.from(o,(t,o)=>{let l=nl(r,o,void 0);try{let r;if(r=h(t)?t.then(t=>n8(e,a,n,i,l,t)):n8(e,a,n,i,l,t),h(r))return s=!0,r.then(void 0,t=>{let i=nX(t,n,nu(l));return n5(i,a,e)});return r}catch(t){return n5(nX(t,n,nu(l)),a,e)}});return s?Promise.all(l):l}(e,t,n,i,r,o):es(t)?function(e,t){let n=e.serialize(t);if(null==n)throw Error(`Expected \`${(0,y.N)(e)}.serialize(${(0,y.N)(t)})\` to return non-nullable value, returned: ${(0,y.N)(n)}`);return n}(t,o):ep(t)?(a=e,s=t,l=n,u=i,c=r,p=o,h(f=(null!=(d=s.resolveType)?d:a.typeResolver)(p,a.contextValue,u,s))?f.then(e=>n6(a,n7(e,a,s,l,u,p),l,u,c,p)):n6(a,n7(f,a,s,l,u,p),l,u,c,p)):B(t)?n6(e,t,n,i,r,o):void(0,tr.V)(!1,"Cannot complete value of unexpected output type: "+(0,y.N)(t))}function n7(e,t,n,i,r,o){if(null==e)throw new T.eO(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${r.parentType.name}.${r.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,i);if(B(e))throw new T.eO("Support for returning GraphQLObjectType from resolveType was removed in [email protected] please return type name instead.");if("string"!=typeof e)throw new T.eO(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${r.parentType.name}.${r.fieldName}" with value ${(0,y.N)(o)}, received "${(0,y.N)(e)}".`);let a=t.schema.getType(e);if(null==a)throw new T.eO(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:i});if(!B(a))throw new T.eO(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:i});if(!t.schema.isSubType(n,a))throw new T.eO(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:i});return a}function n6(e,t,n,i,r,o){let a=nz(e,t,n);if(t.isTypeOf){let s=t.isTypeOf(o,e.contextValue,i);if(h(s))return s.then(i=>{if(!i)throw ie(t,o,n);return n9(e,t,o,r,a)});if(!s)throw ie(t,o,n)}return n9(e,t,o,r,a)}function ie(e,t,n){return new T.eO(`Expected value of type "${e.name}" but got: ${(0,y.N)(t)}.`,{nodes:n})}let it=function(e,t,n,i){if((0,b.Z)(e)&&"string"==typeof e.__typename)return e.__typename;let r=n.schema.getPossibleTypes(i),o=[];for(let i=0;i<r.length;i++){let a=r[i];if(a.isTypeOf){let r=a.isTypeOf(e,t,n);if(h(r))o[i]=r;else if(r)return a.name}}if(o.length)return Promise.all(o).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return r[t].name})},ii=function(e,t,n,i){if((0,b.Z)(e)||"function"==typeof e){let r=e[i.fieldName];return"function"==typeof r?e[i.fieldName](t,n,i):r}};function ir(e,t,n){let i=n.name.value;return i===ty.name&&e.getQueryType()===t?ty:i===tT.name&&e.getQueryType()===t?tT:i===tE.name?tE:t.getFields()[i]}function io(e){return new Promise(t=>t(is(e)))}function ia(e){let t=is(e);if(h(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function is(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:i,rootValue:r,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u}=e,c=t_(n);if(c.length>0)return{errors:c};try{t=(0,m.qg)(i)}catch(e){return{errors:[e]}}let p=nQ(n,t);return p.length>0?{errors:p}:nW({schema:n,document:t,rootValue:r,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u})}var il=n(26515),iu=n(59946),ic=n(88082),ip=n(61080),id=n(96175);function ih(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function im(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 iy(e);if(!ih(t))return t;let n=t[Symbol.asyncIterator]();async function i(t){if(t.done)return t;try{let n;return{value:await (n=t.value,nW({...e,rootValue:n})),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>i(await n.next()),return:async()=>"function"==typeof n.return?i(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return i(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function iy(...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:i,document:r,variableValues:o}=n;n1(i,r,o);let a=n2(n);if(!("schema"in a))return{errors:a};try{let e=await iT(a);if(!ih(e))throw Error(`Subscription field must return Async Iterable. Received: ${(0,y.N)(e)}.`);return e}catch(e){if(e instanceof T.eO)return{errors:[e]};throw e}}async function iT(e){let{schema:t,fragments:n,operation:i,variableValues:r,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new T.eO("Schema is not configured to execute subscription operation.",{nodes:i});let[s,l]=[...nE(t,n,r,a,i.selectionSet).entries()][0],u=ir(t,a,l[0]);if(!u){let e=l[0].name.value;throw new T.eO(`The subscription field "${e}" is not defined.`,{nodes:l})}let c=nl(void 0,s,a.name),p=n4(e,u,l,a,c);try{var d;let t=nm(u,l[0],r),n=e.contextValue,i=null!=(d=u.subscribe)?d:e.subscribeFieldResolver,a=await i(o,t,n,p);if(a instanceof Error)throw a;return a}catch(e){throw nX(e,l,nu(c))}}function iE(e){return{Field(t){let n=e.getFieldDef(),i=null==n?void 0:n.deprecationReason;if(n&&null!=i){let r=e.getParentType();null!=r||(0,tr.V)(!1),e.reportError(new T.eO(`The field ${r.name}.${n.name} is deprecated. ${i}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),i=null==n?void 0:n.deprecationReason;if(n&&null!=i){let r=e.getDirective();if(null!=r)e.reportError(new T.eO(`Directive "@${r.name}" argument "${n.name}" is deprecated. ${i}`,{nodes:t}));else{let r=e.getParentType(),o=e.getFieldDef();null!=r&&null!=o||(0,tr.V)(!1),e.reportError(new T.eO(`Field "${r.name}.${o.name}" argument "${n.name}" is deprecated. ${i}`,{nodes:t}))}}},ObjectField(t){let n=eb(e.getParentInputType());if(z(n)){let i=n.getFields()[t.name.value],r=null==i?void 0:i.deprecationReason;null!=r&&e.reportError(new T.eO(`The input field ${n.name}.${i.name} is deprecated. ${r}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),i=null==n?void 0:n.deprecationReason;if(n&&null!=i){let r=eb(e.getInputType());null!=r||(0,tr.V)(!1),e.reportError(new T.eO(`The enum value "${r.name}.${n.name}" is deprecated. ${i}`,{nodes:t}))}}}}function iv(e){return{Field(t){let n=eb(e.getType());n&&tN(n)&&e.reportError(new T.eO(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var iN=n(45075);
1function ig(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",i=t.specifiedByUrl?"specifiedByURL":"",r=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}let s=t.oneOf?"isOneOf":"";return` 2 query IntrospectionQuery { 3 __schema { 4 ${o} 5 queryType { name } 6 mutationType { name } 7 subscriptionType { name } 8 types { 9 ...FullType 10 } 11 directives { 12 name 13 ${n} 14 ${r} 15 locations 16 args${a("(includeDeprecated: true)")} { 17 ...InputValue 18 } 19 } 20 } 21 } 22 23 fragment FullType on __Type { 24 kind 25 name 26 ${n} 27 ${i} 28 ${s} 29 fields(includeDeprecated: true) { 30 name 31 ${n} 32 args${a("(includeDeprecated: true)")} { 33 ...InputValue 34 } 35 type { 36 ...TypeRef 37 } 38 isDeprecated 39 deprecationReason 40 } 41 inputFields${a("(includeDeprecated: true)")} { 42 ...InputValue 43 } 44 interfaces { 45 ...TypeRef 46 } 47 enumValues(includeDeprecated: true) { 48 name 49 ${n} 50 isDeprecated 51 deprecationReason 52 } 53 possibleTypes { 54 ...TypeRef 55 } 56 } 57 58 fragment InputValue on __InputValue { 59 name 60 ${n} 61 type { ...TypeRef } 62 defaultValue 63 ${a("isDeprecated")} 64 ${a("deprecationReason")} 65 } 66 67 fragment TypeRef on __Type { 68 kind 69 name 70 ofType { 71 kind 72 name 73 ofType { 74 kind 75 name 76 ofType { 77 kind 78 name 79 ofType { 80 kind 81 name 82 ofType { 83 kind 84 name 85 ofType { 86 kind 87 name 88 ofType { 89 kind 90 name 91 ofType { 92 kind 93 name 94 ofType { 95 kind 96 name 97 } 98 } 99 } 100 } 101 } 102 } 103 } 104 } 105 } 106 } 107 `}function ib(e,t){let n=null;for(let r of e.definitions)if(r.kind===x.b.OPERATION_DEFINITION){var i;if(null==t){if(n)return null;n=r}else if((null==(i=r.name)?void 0:i.value)===t)return r}return n}function iO(e,t){if("query"===t.operation){let n=e.getQueryType();if(!n)throw new T.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 T.eO("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){let n=e.getSubscriptionType();if(!n)throw new T.eO("Schema is not configured for subscriptions.",{nodes:t});return n}throw new T.eO("Can only have query, mutation and subscription operations.",{nodes:t})}function iI(e,t){let n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},i=nZ({schema:e,document:(0,m.qg)(ig(n))});return!i.errors&&i.data||(0,tr.V)(!1),i.data}function i_(e,t){(0,b.Z)(e)&&(0,b.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,y.N)(e)}.`);let n=e.__schema,i=I(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 e_({name:(t=e).name,description:t.description,specifiedByURL:t.specifiedByURL});case c.OBJECT:return new eD({name:(n=e).name,description:n.description,interfaces:()=>h(n),fields:()=>T(n)});case c.INTERFACE:return new eF({name:(i=e).name,description:i.description,interfaces:()=>h(i),fields:()=>T(i)});case c.UNION:var t,n,i,r=e;if(!r.possibleTypes){let e=(0,y.N)(r);throw Error(`Introspection result missing possibleTypes: ${e}.`)}return new e$({name:r.name,description:r.description,types:()=>r.possibleTypes.map(p)});case c.ENUM:var o=e;if(!o.enumValues){let e=(0,y.N)(o);throw Error(`Introspection result missing enumValues: ${e}.`)}return new eV({name:o.name,description:o.description,values:I(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,y.N)(a);throw Error(`Introspection result missing inputFields: ${e}.`)}return new eP({name:a.name,description:a.description,fields:()=>v(a.inputFields),isOneOf:a.isOneOf})}let s=(0,y.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[...e0,...tv])i[e.name]&&(i[e.name]=e);let r=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,y.N)(e);throw Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){let t=(0,y.N)(e);throw Error(`Introspection result missing directive locations: ${t}.`)}return new e4({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:v(e.args)})}):[];return new tO({description:n.description,query:r,mutation:o,subscription:a,types:Object.values(i),directives:s,assumeValid:null==t?void 0:t.assumeValid});function l(e){if(e.kind===c.LIST){let t=e.ofType;
107if(!t)throw Error("Decorated type deeper than introspection query.");return new ef(l(t))}if(e.kind===c.NON_NULL){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new eh(eE(l(t)))}return u(e)}function u(e){let t=e.name;if(!t)throw Error(`Unknown type reference: ${(0,y.N)(e)}.`);let n=i[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 G(u(e))}function d(e){return Q(u(e))}function h(e){if(null===e.interfaces&&e.kind===c.INTERFACE)return[];if(!e.interfaces){let t=(0,y.N)(e);throw Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(d)}function T(e){if(!e.fields)throw Error(`Introspection result missing fields: ${(0,y.N)(e)}.`);return I(e.fields,e=>e.name,E)}function E(e){let t=l(e.type);if(!eo(t)){let e=(0,y.N)(t);throw Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){let t=(0,y.N)(e);throw Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:v(e.args)}}function v(e){return I(e,e=>e.name,N)}function N(e){let t=l(e.type);if(!ei(t)){let e=(0,y.N)(t);throw Error(`Introspection must provide input type for arguments, but received: ${e}.`)}let n=null!=e.defaultValue?nd((0,m.$x)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function iD(e,t,n){tb(e),null!=t&&t.kind===x.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=nq(e,t);if(0!==n.length)throw Error(n.map(e=>e.message).join("\n\n"))}(t,e);let i=e.toConfig(),r=iS(i,t,n);return i===r?e:new tO(r)}function iS(e,t,n){var i,r,o,a,s,l;let u,c=[],p=Object.create(null),d=[],f=[];for(let e of t.definitions)if(e.kind===x.b.SCHEMA_DEFINITION)u=e;else if(e.kind===x.b.SCHEMA_EXTENSION)f.push(e);else if((0,tU.a6)(e))c.push(e);else if((0,tU.i7)(e)){let t=e.name.value,n=p[t];p[t]=n?n.concat([e]):[e]}else e.kind===x.b.DIRECTIVE_DEFINITION&&d.push(e);if(0===Object.keys(p).length&&0===c.length&&0===d.length&&0===f.length&&null==u)return e;let h=Object.create(null);for(let t of e.types){h[t.name]=tN(l=t)||e1(l)?l:M(l)?function(e){var t,n;let i=e.toConfig(),r=null!=(t=p[i.name])?t:[],o=i.specifiedByURL;for(let e of r)o=null!=(n=iw(e))?n:o;return new e_({...i,specifiedByURL:o,extensionASTNodes:i.extensionASTNodes.concat(r)})}(l):B(l)?function(e){var t;let n=e.toConfig(),i=null!=(t=p[n.name])?t:[];return new eD({...n,interfaces:()=>[...e.getInterfaces().map(E),...k(i)],fields:()=>({..._(n.fields,v),...I(i)}),extensionASTNodes:n.extensionASTNodes.concat(i)})}(l):Y(l)?function(e){var t;let n=e.toConfig(),i=null!=(t=p[n.name])?t:[];return new eF({...n,interfaces:()=>[...e.getInterfaces().map(E),...k(i)],fields:()=>({..._(n.fields,v),...I(i)}),extensionASTNodes:n.extensionASTNodes.concat(i)})}(l):q(l)?function(e){var t;let n=e.toConfig(),i=null!=(t=p[n.name])?t:[];return new e$({...n,types:()=>[...e.getTypes().map(E),...w(i)],extensionASTNodes:n.extensionASTNodes.concat(i)})}(l):J(l)?function(e){var t;let n=e.toConfig(),i=null!=(t=p[e.name])?t:[];return new eV({...n,values:{...n.values,...A(i)},extensionASTNodes:n.extensionASTNodes.concat(i)})}(l):z(l)?function(e){var t;let n=e.toConfig(),i=null!=(t=p[n.name])?t:[];return new eP({...n,fields:()=>({..._(n.fields,e=>({...e,type:T(e.type)})),...S(i)}),extensionASTNodes:n.extensionASTNodes.concat(i)})}(l):void(0,tr.V)(!1,"Unexpected type: "+(0,y.N)(l))}for(let e of c){let t=e.name.value;h[t]=null!=(s=iA[t])?s:function(e){var t,n,i,r,o,a,s;let l=e.name.value,u=null!=(t=p[l])?t:[];switch(e.kind){case x.b.OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new eD({name:l,description:null==(n=e.description)?void 0:n.value,interfaces:()=>k(t),fields:()=>I(t),astNode:e,extensionASTNodes:u})}case x.b.INTERFACE_TYPE_DEFINITION:{let t=[e,...u];return new eF({name:l,description:null==(i=e.description)?void 0:i.value,interfaces:()=>k(t),fields:()=>I(t),astNode:e,extensionASTNodes:u})}case x.b.ENUM_TYPE_DEFINITION:{let t=[e,...u];return new eV({name:l,description:null==(r=e.description)?void 0:r.value,values:A(t),astNode:e,extensionASTNodes:u})}case x.b.UNION_TYPE_DEFINITION:{let t=[e,...u];return new e$({name:l,description:null==(o=e.description)?void 0:o.value,types:()=>w(t),astNode:e,extensionASTNodes:u})}case x.b.SCALAR_TYPE_DEFINITION:return new e_({name:l,description:null==(a=e.description)?void 0:a.value,specifiedByURL:iw(e),astNode:e,extensionASTNodes:u});case x.b.INPUT_OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new eP({name:l,description:null==(s=e.description)?void 0:s.value,fields:()=>S(t),astNode:e,extensionASTNodes:u,isOneOf:!!ny(tt,e)})}}}(e)}let m={query:e.query&&E(e.query),mutation:e.mutation&&E(e.mutation),subscription:e.subscription&&E(e.subscription),...u&&g([u]),...g(f)};return{description:null==(i=u)||null==(r=i.description)?void 0:r.value,...m,types:Object.values(h),directives:[...e.directives.map(function(e){let t=e.toConfig();return new e4({...t,args:_(t.args,N)})}),...d.map(function(e){var t;return new e4({name:e.name.value,description:null==(t=e.description)?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:D(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!=(o=u)?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!=(a=null==n?void 0:n.assumeValid)&&a};function T(e){return Z(e)?new ef(T(e.ofType)):et(e)?new eh(T(e.ofType)):E(e)}function E(e){return h[e.name]}function v(e){return{...e,type:T(e.type),args:e.args&&_(e.args,N)}}function N(e){return{...e,type:T(e.type)}}function g(e){let t={};for(let i of e){var n;for(let e of null!=(n=i.operationTypes)?n:[])t[e.operation]=b(e.type)}return t}function b(e){var t;let n=e.name.value,i=null!=(t=iA[n])?t:h[n];if(void 0===i)throw Error(`Unknown type: "${n}".`);return i}function O(e){return e.kind===x.b.LIST_TYPE?new ef(O(e.type)):e.kind===x.b.NON_NULL_TYPE?new eh(O(e.type)):b(e)}function I(e){let t=Object.create(null);for(let r of e){var n,i;for(let e of null!=(n=r.fields)?n:[])t[e.name.value]={type:O(e.type),description:null==(i=e.description)?void 0:i.value,args:D(e.arguments),deprecationReason:ik(e),astNode:e}}return t}function D(e){let t=Object.create(null);for(let i of null!=e?e:[]){var n;let e=O(i.type);t[i.name.value]={type:e,description:null==(n=i.description)?void 0:n.value,defaultValue:nd(i.defaultValue,e),deprecationReason:ik(i),astNode:i}}return t}function S(e){let t=Object.create(null);for(let r of e){var n,i;for(let e of null!=(n=r.fields)?n:[]){let n=O(e.type);t[e.name.value]={type:n,description:null==(i=e.description)?void 0:i.value,defaultValue:nd(e.defaultValue,n),deprecationReason:ik(e),astNode:e}}}return t}function A(e){let t=Object.create(null);for(let r of e){var n,i;for(let e of null!=(n=r.values)?n:[])t[e.name.value]={description:null==(i=e.description)?void 0:i.value,deprecationReason:ik(e),astNode:e}}return t}function k(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.interfaces)?void 0:n.map(b))?t:[]})}function w(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.types)?void 0:n.map(b))?t:[]})}}let iA=O([...e0,...tv],e=>e.name);function ik(e){let t=ny(e6,e);return null==t?void 0:t.reason}function iw(e){let t=ny(te,e);return null==t?void 0:t.url}function iR(e,t){null!=e&&e.kind===x.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=nq(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}(e);let n=iS({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 i=[...n.directives,...tn.filter(e=>n.directives.every(t=>t.name!==e.name))];return new tO({...n,directives:i})}function iL(e,t){return iR((0,m.qg)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function ix(e){var t,n,i;let r=e.toConfig(),o=I(i$(r.types),e=>e.name,function(e){if(M(e)||tN(e))return e;if(B(e)){let t=e.toConfig();return new eD({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(Y(e)){let t=e.toConfig();return new eF({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(q(e)){let t=e.toConfig();return new e$({...t,types:()=>c(t.types)})}if(J(e)){let t=e.toConfig();return new eV({...t,values:iF(t.values,e=>e)})}if(z(e)){let t=e.toConfig();return new eP({...t,fields:()=>iF(t.fields,e=>({...e,type:a(e.type)}))})}(0,tr.V)(!1,"Unexpected type: "+(0,y.N)(e))});return new tO({...r,types:Object.values(o),directives:i$(r.directives).map(function(e){let t=e.toConfig();return new e4({...t,locations:iC(t.locations,e=>e),args:l(t.args)})}),query:(t=r.query)&&s(t),mutation:(n=r.mutation)&&s(n),subscription:(i=r.subscription)&&s(i)});function a(e){return Z(e)?new ef(a(e.ofType)):et(e)?new eh(a(e.ofType)):s(e)}function s(e){return o[e.name]}function l(e){return iF(e,e=>({...e,type:a(e.type)}))}function u(e){return iF(e,e=>({...e,type:a(e.type),args:e.args&&l(e.args)}))}function c(e){return i$(e).map(s)}}function iF(e,t){let n=Object.create(null);for(let i of Object.keys(e).sort(D))n[i]=t(e[i]);return n}function i$(e){return iC(e,e=>e.name)}
107function iC(e,t){return e.slice().sort((e,n)=>D(t(e),t(n)))}var iV=n(47518);function iU(e){return iM(e,e=>!ti(e),iP)}function ij(e){return iM(e,ti,tN)}function iP(e){return!e1(e)&&!tN(e)}function iM(e,t,n){let i=e.getDirectives().filter(t),r=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 i=e.getSubscriptionType();return!i||"Subscription"===i.name}(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let i=e.getMutationType();i&&t.push(` mutation: ${i.name}`);let r=e.getSubscriptionType();return r&&t.push(` subscription: ${r.name}`),iJ(e)+`schema { 108${t.join("\n")} 109}`}(e),...i.map(e=>{var t;return iJ(t=e)+"directive @"+t.name+iQ(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}),...r.map(e=>iK(e))].filter(Boolean).join("\n\n")}function iK(e){var t,n,i,r,o,a;let s,l,u,c;return M(e)?iJ(t=e)+`scalar ${t.name}`+function(e){if(null==e.specifiedByURL)return"";let t=(0,F.y)({kind:x.b.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}(t):B(e)?iJ(n=e)+`type ${n.name}`+iB(n)+iG(n):Y(e)?iJ(i=e)+`interface ${i.name}`+iB(i)+iG(i):q(e)?(l=(s=(r=e).getTypes()).length?" = "+s.join(" | "):"",iJ(r)+"union "+r.name+l):J(e)?(u=(o=e).getValues().map((e,t)=>iJ(e," ",!t)+" "+e.name+iH(e.deprecationReason)),iJ(o)+`enum ${o.name}`+iY(u)):z(e)?(c=Object.values((a=e).getFields()).map((e,t)=>iJ(e," ",!t)+" "+iq(e)),iJ(a)+`input ${a.name}`+(a.isOneOf?" @oneOf":"")+iY(c)):void(0,tr.V)(!1,"Unexpected type: "+(0,y.N)(e))}function iB(e){let t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function iG(e){return iY(Object.values(e.getFields()).map((e,t)=>iJ(e," ",!t)+" "+e.name+iQ(e.args," ")+": "+String(e.type)+iH(e.deprecationReason)))}function iY(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function iQ(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(iq).join(", ")+")":"(\n"+e.map((e,n)=>iJ(e," "+t,!n)+" "+t+iq(e)).join("\n")+"\n"+t+")"}function iq(e){let t=ta(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,F.y)(t)}`),n+iH(e.deprecationReason)}function iH(e){if(null==e)return"";if(e!==e7){let t=(0,F.y)({kind:x.b.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function iJ(e,t="",n=!0){let{description:i}=e;return null==i?"":(t&&!n?"\n"+t:t)+(0,F.y)({kind:x.b.STRING,value:i,block:(0,iV.CS)(i)}).replace(/\n/g,"\n"+t)+"\n"}function iX(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:x.b.DOCUMENT,definitions:t}}function iz(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case x.b.OPERATION_DEFINITION:t.push(i);break;case x.b.FRAGMENT_DEFINITION:n[i.name.value]=iW(i.selectionSet)}let i=Object.create(null);for(let r of t){let t=new Set;for(let e of iW(r.selectionSet))!function e(t,n,i){if(!t.has(i)){t.add(i);let r=n[i];if(void 0!==r)for(let i of r)e(t,n,i)}}(t,n,e);i[r.name?r.name.value:""]={kind:x.b.DOCUMENT,definitions:e.definitions.filter(e=>e===r||e.kind===x.b.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return i}function iW(e){let t=[];return(0,tx.YR)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function iZ(e){let t=(0,il._)(e)?e:new il.k(e),n=t.body,i=new ip.J(t),r="",o=!1;for(;i.advance().kind!==id.Y.EOF;){let e=i.token,t=e.kind,a=!(0,ip.Z)(e.kind);o&&(a||e.kind===id.Y.SPREAD)&&(r+=" ");let s=n.slice(e.start,e.end);t===id.Y.BLOCK_STRING?r+=(0,iV.yo)(e.value,{minimize:!0}):r+=s,o=a}return r}function i0(e){let t=i1(e);if(t)throw t;return e}function i1(e){if("string"==typeof e||(0,f.U)(!1,"Expected name to be a string."),e.startsWith("__"))return new T.eO(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{V(e)}catch(e){return e}}function i2(e,t){return i3(e,t).filter(e=>e.type in p)}function i9(e,t){return i3(e,t).filter(e=>e.type in d)}function i3(e,t){return[...function(e,t){let n=[],i=i7(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let e of i.removed)n.push({type:p.TYPE_REMOVED,description:e1(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(let[e,t]of i.persisted)J(e)&&J(t)?n.push(...function(e,t){let n=[],i=i7(e.getValues(),t.getValues());for(let t of i.added)n.push({type:d.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(let t of i.removed)n.push({type:p.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}(e,t)):q(e)&&q(t)?n.push(...function(e,t){let n=[],i=i7(e.getTypes(),t.getTypes());for(let t of i.added)n.push({type:d.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(let t of i.removed)n.push({type:p.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}(e,t)):z(e)&&z(t)?n.push(...function(e,t){let n=[],i=i7(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of i.added)eK(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 i.removed)n.push({type:p.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,r]of i.persisted)i4(t.type,r.type)||n.push({type:p.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(r.type)}.`});return n}(e,t)):B(e)&&B(t)||Y(e)&&Y(t)?n.push(...function(e,t){let n=[],i=i7(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of i.removed)n.push({type:p.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,r]of i.persisted)n.push(...function(e,t,n){let i=[],r=i7(t.args,n.args);for(let n of r.removed)i.push({type:p.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(let[n,o]of r.persisted)if(i4(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)i.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{let r=i8(n.defaultValue,n.type),a=i8(o.defaultValue,o.type);r!==a&&i.push({type:d.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${r} to ${a}.`})}}else i.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)}.`});for(let n of r.added)ex(n)?i.push({type:p.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):i.push({type:d.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return i}(e,t,r)),!function e(t,n){return Z(t)?Z(n)&&e(t.ofType,n.ofType)||et(n)&&e(t,n.ofType):et(t)?et(n)&&e(t.ofType,n.ofType):eN(n)&&t.name===n.name||et(n)&&e(t,n.ofType)}(t.type,r.type)&&n.push({type:p.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(r.type)}.`});return n}(e,t),...function(e,t){let n=[],i=i7(e.getInterfaces(),t.getInterfaces());
109for(let t of i.added)n.push({type:d.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(let t of i.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 ${i5(e)} to ${i5(t)}.`});return n}(e,t),...function(e,t){let n=[],i=i7(e.getDirectives(),t.getDirectives());for(let e of i.removed)n.push({type:p.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(let[e,t]of i.persisted){let i=i7(e.args,t.args);for(let t of i.added)ex(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 i.removed)n.push({type:p.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});for(let i 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(i)||n.push({type:p.DIRECTIVE_LOCATION_REMOVED,description:`${i} 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 i4(e,t){return Z(e)?Z(t)&&i4(e.ofType,t.ofType):et(e)?et(t)&&i4(e.ofType,t.ofType)||!et(t)&&i4(e.ofType,t):eN(t)&&e.name===t.name}function i5(e){return M(e)?"a Scalar type":B(e)?"an Object type":Y(e)?"an Interface type":q(e)?"a Union type":J(e)?"an Enum type":z(e)?"an Input type":void(0,tr.V)(!1,"Unexpected type: "+(0,y.N)(e))}function i8(e,t){let n=ta(e,t);return null!=n||(0,tr.V)(!1),(0,F.y)(t1(n))}function i7(e,t){let n=[],i=[],r=[],o=O(e,({name:e})=>e),a=O(t,({name:e})=>e);for(let t of e){let e=a[t.name];void 0===e?i.push(t):r.push([t,e])}for(let e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:r,removed:i}}},18317:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return`"${e.replace(n,i)}"`};let n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function i(e){return r[e.charCodeAt(0)]}let r=["\\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"]},23519:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringLines=function(e){var t,n;let r=Number.MAX_SAFE_INTEGER,o=null,a=-1;for(let t=0;t<e.length;++t){let s=e[t],l=function(e){let t=0;for(;t<e.length&&(0,i.isWhiteSpace)(e.charCodeAt(t));)++t;return t}(s);l!==s.length&&(o=null!=(n=o)?n:t,a=t,0!==t&&l<r&&(r=l))}return e.map((e,t)=>0===t?e:e.slice(r)).slice(null!=(t=o)?t:0,a+1)},t.isPrintableAsBlockString=function(e){if(""===e)return!0;let t=!0,n=!1,i=!0,r=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case
1096:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!r)return!1;r=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:i&&(i=n),t=!1}return!t&&(!i||!r)},t.printBlockString=function(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),o=1===r.length,a=r.length>1&&r.slice(1).every(e=>0===e.length||(0,i.isWhiteSpace)(e.charCodeAt(0))),s=n.endsWith('\\"""'),l=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=l||u,p=!(null!=t&&t.minimize)&&(!o||e.length>70||c||a||s),d="",f=o&&(0,i.isWhiteSpace)(e.charCodeAt(0));return(p&&!f||a)&&(d+="\n"),d+=n,(p||c)&&(d+="\n"),'"""'+d+'"""'};var i=n(89604)},25294:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(98478);t.getRelativeDate=function(e){var t=new Date(Date.now()),n=i.differenceInCalendarDays(t,e),r=i.differenceInMonths(t,e),o=i.differenceInYears(t,e);return n<1?"Today":n<=1?"Yesterday":n<7?n+"d ago":n>=7&&r<1?i.differenceInWeeks(t,e)+"w ago":r>=1&&o<1?r+"mo ago":o+"y ago"}},32300:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new i.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})};var i=n(8384)},38512:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,o.instanceOf)(e,a)};var i=n(51052),r=n(95557),o=n(67553);class a{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,i.devAssert)(!1,`Body must be a string. Received: ${(0,r.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,i.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,i.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}t.Source=a},39899:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isConstValueNode=function e(t){return o(t)&&(t.kind===i.Kind.LIST?t.values.some(e):t.kind===i.Kind.OBJECT?t.fields.some(t=>e(t.value)):t.kind!==i.Kind.VARIABLE)},t.isDefinitionNode=function(e){return r(e)||a(e)||l(e)},t.isExecutableDefinitionNode=r,t.isSelectionNode=function(e){return e.kind===i.Kind.FIELD||e.kind===i.Kind.FRAGMENT_SPREAD||e.kind===i.Kind.INLINE_FRAGMENT},t.isTypeDefinitionNode=s,t.isTypeExtensionNode=u,t.isTypeNode=function(e){return e.kind===i.Kind.NAMED_TYPE||e.kind===i.Kind.LIST_TYPE||e.kind===i.Kind.NON_NULL_TYPE},t.isTypeSystemDefinitionNode=a,t.isTypeSystemExtensionNode=l,t.isValueNode=o;var i=n(40312);function r(e){return e.kind===i.Kind.OPERATION_DEFINITION||e.kind===i.Kind.FRAGMENT_DEFINITION}function o(e){return e.kind===i.Kind.VARIABLE||e.kind===i.Kind.INT||e.kind===i.Kind.FLOAT||e.kind===i.Kind.STRING||e.kind===i.Kind.BOOLEAN||e.kind===i.Kind.NULL||e.kind===i.Kind.ENUM||e.kind===i.Kind.LIST||e.kind===i.Kind.OBJECT}function a(e){return e.kind===i.Kind.SCHEMA_DEFINITION||s(e)||e.kind===i.Kind.DIRECTIVE_DEFINITION}function s(e){return e.kind===i.Kind.SCALAR_TYPE_DEFINITION||e.kind===i.Kind.OBJECT_TYPE_DEFINITION||e.kind===i.Kind.INTERFACE_TYPE_DEFINITION||e.kind===i.Kind.UNION_TYPE_DEFINITION||e.kind===i.Kind.ENUM_TYPE_DEFINITION||e.kind===i.Kind.INPUT_OBJECT_TYPE_DEFINITION}function l(e){return e.kind===i.Kind.SCHEMA_EXTENSION||u(e)}function u(e){return e.kind===i.Kind.SCALAR_TYPE_EXTENSION||e.kind===i.Kind.OBJECT_TYPE_EXTENSION||e.kind===i.Kind.INTERFACE_TYPE_EXTENSION||e.kind===i.Kind.UNION_TYPE_EXTENSION||e.kind===i.Kind.ENUM_TYPE_EXTENSION||e.kind===i.Kind.INPUT_OBJECT_TYPE_EXTENSION}},40312:(e,t)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=n,(i=n||(t.Kind=n={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"},40777:(e,t,n)=>
109{Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.isPunctuatorTokenKind=function(e){return e===s.TokenKind.BANG||e===s.TokenKind.DOLLAR||e===s.TokenKind.AMP||e===s.TokenKind.PAREN_L||e===s.TokenKind.PAREN_R||e===s.TokenKind.SPREAD||e===s.TokenKind.COLON||e===s.TokenKind.EQUALS||e===s.TokenKind.AT||e===s.TokenKind.BRACKET_L||e===s.TokenKind.BRACKET_R||e===s.TokenKind.BRACE_L||e===s.TokenKind.PIPE||e===s.TokenKind.BRACE_R};var i=n(32300),r=n(79939),o=n(23519),a=n(89604),s=n(47580);class l{constructor(e){const t=new r.Token(s.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==s.TokenKind.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,r=n.length,l=t;for(;l<r;){let t=n.charCodeAt(l);switch(t){case 65279:case 9:case 32:case 44:++l;continue;case 10:++l,++e.line,e.lineStart=l;continue;case 13:10===n.charCodeAt(l+1)?l+=2:++l,++e.line,e.lineStart=l;continue;case 35:return function(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){let e=n.charCodeAt(r);if(10===e||13===e)break;if(u(e))++r;else if(c(n,r))r+=2;else break}return h(e,s.TokenKind.COMMENT,t,r,n.slice(t+1,r))}(e,l);case 33:return h(e,s.TokenKind.BANG,l,l+1);case 36:return h(e,s.TokenKind.DOLLAR,l,l+1);case 38:return h(e,s.TokenKind.AMP,l,l+1);case 40:return h(e,s.TokenKind.PAREN_L,l,l+1);case 41:return h(e,s.TokenKind.PAREN_R,l,l+1);case 46:if(46===n.charCodeAt(l+1)&&46===n.charCodeAt(l+2))return h(e,s.TokenKind.SPREAD,l,l+3);break;case 58:return h(e,s.TokenKind.COLON,l,l+1);case 61:return h(e,s.TokenKind.EQUALS,l,l+1);case 64:return h(e,s.TokenKind.AT,l,l+1);case 91:return h(e,s.TokenKind.BRACKET_L,l,l+1);case 93:return h(e,s.TokenKind.BRACKET_R,l,l+1);case 123:return h(e,s.TokenKind.BRACE_L,l,l+1);case 124:return h(e,s.TokenKind.PIPE,l,l+1);case 125:return h(e,s.TokenKind.BRACE_R,l,l+1);case 34:if(34===n.charCodeAt(l+1)&&34===n.charCodeAt(l+2))return function(e,t){let n=e.source.body,r=n.length,a=e.lineStart,l=t+3,p=l,d="",m=[];for(;l<r;){let r=n.charCodeAt(l);if(34===r&&34===n.charCodeAt(l+1)&&34===n.charCodeAt(l+2)){d+=n.slice(p,l),m.push(d);let i=h(e,s.TokenKind.BLOCK_STRING,t,l+3,(0,o.dedentBlockStringLines)(m).join("\n"));return e.line+=m.length-1,e.lineStart=a,i}if(92===r&&34===n.charCodeAt(l+1)&&34===n.charCodeAt(l+2)&&34===n.charCodeAt(l+3)){d+=n.slice(p,l),p=l+1,l+=4;continue}if(10===r||13===r){d+=n.slice(p,l),m.push(d),13===r&&10===n.charCodeAt(l+1)?l+=2:++l,d="",p=l,a=l;continue}if(u(r))++l;else if(c(n,l))l+=2;else throw(0,i.syntaxError)(e.source,l,`Invalid character within String: ${f(e,l)}.`)}throw(0,i.syntaxError)(e.source,l,"Unterminated string.")}(e,l);return function(e,t){let n=e.source.body,r=n.length,o=t+1,a=o,l="";for(;o<r;){let r=n.charCodeAt(o);if(34===r)return l+=n.slice(a,o),h(e,s.TokenKind.STRING,t,o+1,l);if(92===r){l+=n.slice(a,o);let t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?function(e,t){let n=e.source.body,r=0,o=3;for(;o<12;){let e=n.charCodeAt(t+o++);if(125===e){if(o<5||!u(r))break;return{value:String.fromCodePoint(r),size:o}}if((r=r<<4|T(e))<0)break}throw(0,i.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}(e,o):function(e,t){let n=e.source.body,r=y(n,t+2);if(u(r))return{value:String.fromCodePoint(r),size:6};if(p(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=y(n,t+8);if(d(e))return{value:String.fromCodePoint(r,e),size:12}}throw(0,i.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}(e,o):function(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,i.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}(e,o);l+=t.value,o+=t.size,a=o;continue}if(10===r||13===r)break;
109if(u(r))++o;else if(c(n,o))o+=2;else throw(0,i.syntaxError)(e.source,o,`Invalid character within String: ${f(e,o)}.`)}throw(0,i.syntaxError)(e.source,o,"Unterminated string.")}(e,l)}if((0,a.isDigit)(t)||45===t)return function(e,t,n){let r=e.source.body,o=t,l=n,u=!1;if(45===l&&(l=r.charCodeAt(++o)),48===l){if(l=r.charCodeAt(++o),(0,a.isDigit)(l))throw(0,i.syntaxError)(e.source,o,`Invalid number, unexpected digit after 0: ${f(e,o)}.`)}else o=m(e,o,l),l=r.charCodeAt(o);if(46===l&&(u=!0,l=r.charCodeAt(++o),o=m(e,o,l),l=r.charCodeAt(o)),(69===l||101===l)&&(u=!0,(43===(l=r.charCodeAt(++o))||45===l)&&(l=r.charCodeAt(++o)),o=m(e,o,l),l=r.charCodeAt(o)),46===l||(0,a.isNameStart)(l))throw(0,i.syntaxError)(e.source,o,`Invalid number, expected digit but got: ${f(e,o)}.`);return h(e,u?s.TokenKind.FLOAT:s.TokenKind.INT,t,o,r.slice(t,o))}(e,l,t);if((0,a.isNameStart)(t))return function(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){let e=n.charCodeAt(r);if((0,a.isNameContinue)(e))++r;else break}return h(e,s.TokenKind.NAME,t,r,n.slice(t,r))}(e,l);throw(0,i.syntaxError)(e.source,l,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":u(t)||c(n,l)?`Unexpected character: ${f(e,l)}.`:`Invalid character: ${f(e,l)}.`)}return h(e,s.TokenKind.EOF,r,r)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===s.TokenKind.COMMENT);return e}}function u(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function c(e,t){return p(e.charCodeAt(t))&&d(e.charCodeAt(t+1))}function p(e){return e>=55296&&e<=56319}function d(e){return e>=56320&&e<=57343}function f(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return s.TokenKind.EOF;
109if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function h(e,t,n,i,o){let a=e.line,s=1+n-e.lineStart;return new r.Token(t,n,i,a,s,o)}function m(e,t,n){if(!(0,a.isDigit)(n))throw(0,i.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${f(e,t)}.`);let r=e.source.body,o=t+1;for(;(0,a.isDigit)(r.charCodeAt(o));)++o;return o}function y(e,t){return T(e.charCodeAt(t))<<12|T(e.charCodeAt(t+1))<<8|T(e.charCodeAt(t+2))<<4|T(e.charCodeAt(t+3))}function T(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}t.Lexer=l},41475:(e,t,n)=>{n(14729).default,t.PG=n(25294).getRelativeDate},45239:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return i.GraphQLError}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return i.formatError}}),Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}}),Object.defineProperty(t,"printError",{enumerable:!0,get:function(){return i.printError}}),Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return r.syntaxError}});var i=n(8384),r=n(32300),o=n(88481)},47580:(e,t)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=n,(i=n||(t.TokenKind=n={})).SOF="<SOF>",i.EOF="<EOF>",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment"},50687:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},51052:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!e)throw Error(t)}},67553:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0;var i=n(95557);t.instanceOf=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(n=e.constructor)?void 0:n.name)){let t=(0,i.inspect)(e);throw Error(`Cannot use ${r} "${t}" from another module or realm. 110 111Ensure that there is only one instance of "graphql" in the node_modules 112directory. If different versions of "graphql" are the dependencies of other 113relied on modules, use "resolutions" to ensure only one version is installed. 114 115https://yarnpkg.com/en/docs/selective-version-resolutions 116 117Duplicate "graphql" modules cannot be used at the same time since different 118versions may have different capabilities and behavior. The data from one 119version used in the function from another could produce confusing and 120spurious results.`)}}return!1}},72609:(e,t)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=n,(i=n||(t.DirectiveLocation=n={})).QUERY="QUERY",i.MUTATION="MUTATION",i.SUBSCRIPTION="SUBSCRIPTION",i.FIELD="FIELD",i.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",i.FRAGMENT_SPREAD="FRAGMENT_SPREAD",i.INLINE_FRAGMENT="INLINE_FRAGMENT",i.VARIABLE_DEFINITION="VARIABLE_DEFINITION",i.SCHEMA="SCHEMA",i.SCALAR="SCALAR",i.OBJECT="OBJECT",i.FIELD_DEFINITION="FIELD_DEFINITION",i.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",i.INTERFACE="INTERFACE",i.UNION="UNION",i.ENUM="ENUM",i.ENUM_VALUE="ENUM_VALUE",i.INPUT_OBJECT="INPUT_OBJECT",i.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"},79939:(e,t)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0,t.isNode=function(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&s.has(t)};class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}t.Location=r;class o{constructor(e,t,n,i,r,o){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}t.Token=o;let a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
120Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=a;let s=new Set(Object.keys(a));t.OperationTypeNode=n,(i=n||(t.OperationTypeNode=n={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription"},84125:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}},84294:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){let n=0,o=1;for(let a of e.body.matchAll(r)){if("number"==typeof a.index||(0,i.invariant)(!1),a.index>=t)break;n=a.index+a[0].length,o+=1}return{line:o,column:t+1-n}};var i=n(84125);let r=/\r\n|[\n\r]/g},88481:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=function(e,t,n){var o;let a=(0,i.toError)(e);return Array.isArray(a.path)?a:new r.GraphQLError(a.message,{nodes:null!=(o=a.nodes)?o:t,source:a.source,positions:a.positions,path:n,originalError:a})};var i=n(99312),r=n(8384)}
120,89604:(e,t)=>{function n(e){return e>=48&&e<=57}function i(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=n,t.isLetter=i,t.isNameContinue=function(e){return i(e)||n(e)||95===e},t.isNameStart=function(e){return i(e)||95===e},t.isWhiteSpace=function(e){return 9===e||32===e}},95557:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(e){return function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,n){let i;if(null===t)return"null";if(n.includes(t))return"[Circular]";let r=[...n,t];if("function"==typeof t.toJSON){let n=t.toJSON();if(n!==t)return"string"==typeof n?n:e(n,r)}else if(Array.isArray(t)){var o,a,s=t,l=r;if(0===s.length)return"[]";if(l.length>2)return"[Array]";let n=Math.min(10,s.length),i=s.length-n,u=[];for(let t=0;t<n;++t)u.push(e(s[t],l));return 1===i?u.push("... 1 more item"):i>1&&u.push(`... ${i} more items`),"["+u.join(", ")+"]"}return o=t,a=r,0===(i=Object.entries(o)).length?"{}":a.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(o)+"]":"{ "+i.map(([t,n])=>t+": "+e(n,a)).join(", ")+" }"}(t,n);default:return String(t)}}(e,[])}},96206:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){return new c(e,t).parseDocument()},t.parseConstValue=function(e,t){let n=new c(e,t);n.expectToken(u.TokenKind.SOF);let i=n.parseConstValueLiteral();return n.expectToken(u.TokenKind.EOF),i},t.parseType=function(e,t){let n=new c(e,t);n.expectToken(u.TokenKind.SOF);let i=n.parseTypeReference();return n.expectToken(u.TokenKind.EOF),i},t.parseValue=function(e,t){let n=new c(e,t);n.expectToken(u.TokenKind.SOF);let i=n.parseValueLiteral(!1);return n.expectToken(u.TokenKind.EOF),i};var i=n(32300),r=n(79939),o=n(72609),a=n(40312),s=n(40777),l=n(38512),u=n(47580);class c{constructor(e,t={}){const n=(0,l.isSource)(e)?e:new l.Source(e);this._lexer=new s.Lexer(n),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(u.TokenKind.NAME);return this.node(e,{kind:a.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===u.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,i.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L))return this.node(t,{kind:a.Kind.OPERATION_DEFINITION,operation:r.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType();return this.peek(u.TokenKind.NAME)&&(e=this.parseName()),this.node(t,{kind:a.Kind.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(u.TokenKind.NAME);switch(e.value){case"query":return r.OperationTypeNode.QUERY;case"mutation":return r.OperationTypeNode.MUTATION;case"subscription":return r.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(u.TokenKind.DOLLAR),this.node(e,{kind:a.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(u.TokenKind.COLON)?(e=i,t=this.parseName()):t=i,this.node(n,{kind:a.Kind.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,t,u.TokenKind.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(u.TokenKind.COLON),this.node(t,{kind:a.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(u.TokenKind.NAME)?this.node(e,{kind:a.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:a.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case u.TokenKind.BRACKET_L:return this.parseList(e);case u.TokenKind.BRACE_L:return this.parseObject(e);case u.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:a.Kind.INT,value:t.value});case u.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.Kind.FLOAT,value:t.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.Kind.NULL});default:return this.node(t,{kind:a.Kind.ENUM,value:t.value})}case u.TokenKind.DOLLAR:if(e){if(this.expectToken(u.TokenKind.DOLLAR),this._lexer.token.kind===u.TokenKind.NAME){let e=this._lexer.token.value;throw(0,i.syntaxError)(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:a.Kind.STRING,value:e.value,block:e.kind===u.TokenKind.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,t,u.TokenKind.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,t,u.TokenKind.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(u.TokenKind.COLON),this.node(t,{kind:a.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(u.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(u.TokenKind.AT),this.node(t,{kind:a.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R),e=this.node(t,{kind:a.Kind.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(u.TokenKind.BANG)?this.node(t,{kind:a.Kind.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:a.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),i=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(e,{kind:a.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(u.TokenKind.COLON);let n=this.parseNamedType();return this.node(e,{kind:a.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:a.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);let r=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:a.Kind.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:o})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,n=this.parseDescription(),i=this.parseName();this.expectToken(u.TokenKind.COLON);let r=this.parseTypeReference();this.expectOptionalToken(u.TokenKind.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:a.Kind.INPUT_VALUE_DEFINITION,description:n,name:i,type:r,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:a.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:a.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:a.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,i.syntaxError)(this._lexer.source,this._lexer.token.start,`${p(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===u.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:i})}parseEnumTypeExtension(){let e=this._lexer.to
120ken;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(u.TokenKind.AT);let n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:a.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:o})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new r.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw(0,i.syntaxError)(this._lexer.source,t.start,`Expected ${d(e)}, found ${p(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===u.TokenKind.NAME&&t.value===e)this.advanceLexer();else throw(0,i.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${p(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===u.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return(0,i.syntaxError)(this._lexer.source,t.start,`Unexpected ${p(t)}.`)}any(e,t,n){this.expectToken(e);let i=[];for(;!this.expectOptionalToken(n);)i.push(t.call(this));return i}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let i=[];do i.push(t.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==u.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw(0,i.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function p(e){let t=e.value;return d(e.kind)+(null!=t?` "${t}"`:"")}function d(e){return(0,s.isPunctuatorTokenKind)(e)?`"${e}"`:e}t.Parser=c},96683:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return p.BREAK}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return h.DirectiveLocation}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return a.Kind}}),Object.defineProperty(t,"Lexer",{enumerable:!0,get:function(){return l.Lexer}}),Object.defineProperty(t,"Location",{enumerable:!0,get:function(){return d.Location}}),Object.defineProperty(t,"OperationTypeNode",{enumerable:!0,get:function(){return d.OperationTypeNode}}),Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return i.Source}}),Object.defineProperty(t,"Token",{enumerable:!0,get:function(){return d.Token}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return s.TokenKind}}),Object.defineProperty(t,"getEnterLeaveForKind",{enumerable:!0,get:function(){return p.getEnterLeaveForKind}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return r.getLocation}}),Object.defineProperty(t,"getVisitFn",{enumerable:!0,get:function(){return p.getVisitFn}}),Object.defineProperty(t,"isConstValueNode",{enumerable:!0,get:function(){return f.isConstValueNode}}),Object.defineProperty(t,"isDefinitionNode",{enumerable:!0,get:function(){return f.isDefinitionNode}}
120),Object.defineProperty(t,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return f.isExecutableDefinitionNode}}),Object.defineProperty(t,"isSelectionNode",{enumerable:!0,get:function(){return f.isSelectionNode}}),Object.defineProperty(t,"isTypeDefinitionNode",{enumerable:!0,get:function(){return f.isTypeDefinitionNode}}),Object.defineProperty(t,"isTypeExtensionNode",{enumerable:!0,get:function(){return f.isTypeExtensionNode}}),Object.defineProperty(t,"isTypeNode",{enumerable:!0,get:function(){return f.isTypeNode}}),Object.defineProperty(t,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return f.isTypeSystemDefinitionNode}}),Object.defineProperty(t,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return f.isTypeSystemExtensionNode}}),Object.defineProperty(t,"isValueNode",{enumerable:!0,get:function(){return f.isValueNode}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return u.parse}}),Object.defineProperty(t,"parseConstValue",{enumerable:!0,get:function(){return u.parseConstValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return u.parseType}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return u.parseValue}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return c.print}}),Object.defineProperty(t,"printLocation",{enumerable:!0,get:function(){return o.printLocation}}),Object.defineProperty(t,"printSourceLocation",{enumerable:!0,get:function(){return o.printSourceLocation}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return p.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return p.visitInParallel}});var i=n(38512),r=n(84294),o=n(97411),a=n(40312),s=n(47580),l=n(40777),u=n(96206),c=n(99815),p=n(13141),d=n(79939),f=n(39899),h=n(72609)},97411:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return r(e.source,(0,i.getLocation)(e.source,e.start))},t.printSourceLocation=r;var i=n(84294);function r(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,a=e.locationOffset.line-1,s=t.line+a,l=1===t.line?n:0,u=t.column+l,c=`${e.name}:${s}:${u} 121`,p=i.split(/\r\n|[\n\r]/g),d=p[r];if(d.length>120){let e=Math.floor(u/80),t=[];for(let e=0;e<d.length;e+=80)t.push(d.slice(e,e+80));return c+o([[`${s} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(u%80)],["|",t[e+1]]])}return c+o([[`${s-1} |`,p[r-1]],[`${s} |`,d],["|","^".padStart(u)],[`${s+1} |`,p[r+1]]])}function o(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}},99312:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toError=function(e){return e instanceof Error?e:new r(e)};var i=n(95557);class r extends Error{constructor(e){super("Unexpected error value: "+(0,i.inspect)(e)),this.name="NonErrorThrown",this.thrownValue=e}}},99815:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,o.visit)(e,a)};var i=n(23519),r=n(18317),o=n(13141);let a={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>s(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=u("(",s(e.variableDefinitions,", "),")"),n=s([e.operation,s([e.name,t]),s(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:i})=>e+": "+t+u(" = ",n)+u(" ",s(i," "))},SelectionSet:{leave:({selections:e})=>l(e)},Field:{leave({alias:e,name:t,arguments:n,directives:i,selectionSet:r}){let o=u("",e,": ")+t,a=o+u("(",s(n,", "),")");return a.length>80&&(a=o+u("(\n",c(s(n,"\n")),"\n)")),s([a,s(i," "),r]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+u(" ",s(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>s(["...",u("on ",e),s(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:i,selectionSet:r})=>`fragment ${e}${u("(",s(n,", "),")")} on ${t} ${u("",s(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
121,StringValue:{leave:({value:e,block:t})=>t?(0,i.printBlockString)(e):(0,r.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+s(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+s(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+u("(",s(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>u("",e,"\n")+s(["schema",s(t," "),l(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>u("",e,"\n")+s(["scalar",t,s(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>u("",e,"\n")+s(["type",t,u("implements ",s(n," & ")),s(i," "),l(r)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:i,directives:r})=>u("",e,"\n")+t+(p(n)?u("(\n",c(s(n,"\n")),"\n)"):u("(",s(n,", "),")"))+": "+i+u(" ",s(r," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:i,directives:r})=>u("",e,"\n")+s([t+": "+n,u("= ",i),s(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:i,fields:r})=>u("",e,"\n")+s(["interface",t,u("implements ",s(n," & ")),s(i," "),l(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:i})=>u("",e,"\n")+s(["union",t,s(n," "),u("= ",s(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:i})=>u("",e,"\n")+s(["enum",t,s(n," "),l(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>u("",e,"\n")+s([t,s(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:i})=>u("",e,"\n")+s(["input",t,s(n," "),l(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:i,locations:r})=>u("",e,"\n")+"directive @"+t+(p(n)?u("(\n",c(s(n,"\n")),"\n)"):u("(",s(n,", "),")"))+(i?" repeatable":"")+" on "+s(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>s(["extend schema",s(e," "),l(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>s(["extend scalar",e,s(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>s(["extend type",e,u("implements ",s(t," & ")),s(n," "),l(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:i})=>s(["extend interface",e,u("implements ",s(t," & ")),s(n," "),l(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>s(["extend union",e,s(t," "),u("= ",s(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>s(["extend enum",e,s(t," "),l(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>s(["extend input",e,s(t," "),l(n)]," ")}};function s(e,t=""){var n;return null!=(n=null==e?void 0:e.filter(e=>e).join(t))?n:""}function l(e){return u("{\n",c(s(e,"\n")),"\n}")}function u(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function p(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&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.