altair-static
Version:
Static package for altair graphql client
10 lines (7 loc) • 179 kB
JavaScript
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1b31b940-2823-5703-b4f5-b1fd7ed7d63a")}catch(e){}}();
import{A as Oc,a as f,b as ae,c as q,d as xe,e as nr,f as gs,g as Ht,h as oe,i as Ns,j as ci,k as y,l as te,m as st,n as Is,o as bs,p as pi,q as $i,r as Ye,s as ut,t as ct,u as pt,v as Q,x as Je,y as ea}from"./chunk-ZYOLZTH5.js";import{e as g,g as Es}from"./chunk-B7YGBANW.js";function fi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fi=function(t){return typeof t}:fi=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function ce(e){return fi(e)=="object"&&e!==null}var fr=g(()=>{"use strict"});var li,Wt,Ie,lr=g(()=>{"use strict";li=typeof Symbol=="function"&&Symbol.iterator!=null?Symbol.iterator:"@@iterator",Wt=typeof Symbol=="function"&&Symbol.asyncIterator!=null?Symbol.asyncIterator:"@@asyncIterator",Ie=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag"});function Rr(e,r){for(var t=/\r\n|[\n\r]/g,n=1,i=r+1,a;(a=t.exec(e.body))&&a.index<r;)n+=1,i=r+1-(a.index+a[0].length);return{line:n,column:i}}var mi=g(()=>{"use strict"});function Zt(e){return ft(e.source,Rr(e.source,e.start))}function ft(e,r){var t=e.locationOffset.column-1,n=vi(t)+e.body,i=r.line-1,a=e.locationOffset.line-1,o=r.line+a,s=r.line===1?t:0,u=r.column+s,c="".concat(e.name,":").concat(o,":").concat(u,`
`),p=n.split(/\r\n|[\n\r]/g),l=p[i];if(l.length>120){for(var m=Math.floor(u/80),d=u%80,h=[],E=0;E<l.length;E+=80)h.push(l.slice(E,E+80));return c+Os([["".concat(o),h[0]]].concat(h.slice(1,m+1).map(function(I){return["",I]}),[[" ",vi(d-1)+"^"],["",h[m+1]]]))}return c+Os([["".concat(o-1),p[i-1]],["".concat(o),l],["",vi(u-1)+"^"],["".concat(o+1),p[i+1]]])}function Os(e){var r=e.filter(function(n){var i=n[0],a=n[1];return a!==void 0}),t=Math.max.apply(Math,r.map(function(n){var i=n[0];return i.length}));return r.map(function(n){var i=n[0],a=n[1];return Dc(t,i)+(a?" | "+a:" |")}).join(`
`)}function vi(e){return Array(e+1).join(" ")}function Dc(e,r){return vi(e-r.length)+r}var ra=g(()=>{"use strict";mi()});function di(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?di=function(t){return typeof t}:di=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function Sc(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ds(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Lc(e,r,t){return r&&Ds(e.prototype,r),t&&Ds(e,t),e}function Ac(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&en(e,r)}function Rc(e){var r=Ls();return function(){var n=rn(e),i;if(r){var a=rn(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Ss(this,i)}}function Ss(e,r){return r&&(di(r)==="object"||typeof r=="function")?r:$t(e)}function $t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ta(e){var r=typeof Map=="function"?new Map:void 0;return ta=function(n){if(n===null||!wc(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return hi(n,arguments,rn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),en(i,n)},ta(e)}function hi(e,r,t){return Ls()?hi=Reflect.construct:hi=function(i,a,o){var s=[null];s.push.apply(s,a);var u=Function.bind.apply(i,s),c=new u;return o&&en(c,o.prototype),c},hi.apply(null,arguments)}function Ls(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function wc(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function en(e,r){return en=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},en(e,r)}function rn(e){return rn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},rn(e)}function yi(e){var r=e.message;if(e.nodes)for(var t=0,n=e.nodes;t<n.length;t++){var i=n[t];i.loc&&(r+=`
`+Zt(i.loc))}else if(e.source&&e.locations)for(var a=0,o=e.locations;a<o.length;a++){var s=o[a];r+=`
`+ft(e.source,s)}return r}var v,F=g(()=>{"use strict";fr();lr();mi();ra();v=(function(e){Ac(t,e);var r=Rc(t);function t(n,i,a,o,s,u,c){var p,l,m,d,h;Sc(this,t),h=r.call(this,n);var E=Array.isArray(i)?i.length!==0?i:void 0:i?[i]:void 0,I=a;if(!I&&E){var O;I=(O=E[0].loc)===null||O===void 0?void 0:O.source}var D=o;!D&&E&&(D=E.reduce(function(J,H){return H.loc&&J.push(H.loc.start),J},[])),D&&D.length===0&&(D=void 0);var V;o&&a?V=o.map(function(J){return Rr(a,J)}):E&&(V=E.reduce(function(J,H){return H.loc&&J.push(Rr(H.loc.source,H.loc.start)),J},[]));var P=c;if(P==null&&u!=null){var U=u.extensions;ce(U)&&(P=U)}return Object.defineProperties($t(h),{name:{value:"GraphQLError"},message:{value:n,enumerable:!0,writable:!0},locations:{value:(p=V)!==null&&p!==void 0?p:void 0,enumerable:V!=null},path:{value:s??void 0,enumerable:s!=null},nodes:{value:E??void 0},source:{value:(l=I)!==null&&l!==void 0?l:void 0},positions:{value:(m=D)!==null&&m!==void 0?m:void 0},originalError:{value:u},extensions:{value:(d=P)!==null&&d!==void 0?d:void 0,enumerable:P!=null}}),u!=null&&u.stack?(Object.defineProperty($t(h),"stack",{value:u.stack,writable:!0,configurable:!0}),Ss(h)):(Error.captureStackTrace?Error.captureStackTrace($t(h),t):Object.defineProperty($t(h),"stack",{value:Error().stack,writable:!0,configurable:!0}),h)}return Lc(t,[{key:"toString",value:function(){return yi(this)}},{key:Ie,get:function(){return"Object"}}]),t})(ta(Error))});function ge(e,r,t){return new v("Syntax Error: ".concat(t),void 0,e,[r])}var Ti=g(()=>{"use strict";F()});var T,lt=g(()=>{"use strict";T=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"})});function x(e,r){var t=!!e;if(!t)throw new Error(r)}var Xe=g(()=>{"use strict"});var _e,tn=g(()=>{"use strict";_e=function(r,t){return r instanceof t}});function As(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xc(e,r,t){return r&&As(e.prototype,r),t&&As(e,t),e}function Ei(e){return _e(e,wr)}var wr,gi=g(()=>{"use strict";lr();te();Xe();tn();wr=(function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof r=="string"||x(0,"Body must be a string. Received: ".concat(y(r),".")),this.body=r,this.name=t,this.locationOffset=n,this.locationOffset.line>0||x(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||x(0,"column in locationOffset is 1-indexed and must be positive.")}return xc(e,[{key:Ie,get:function(){return"Source"}}]),e})()});var w,mt=g(()=>{"use strict";w=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})});function Ii(e){return e===T.BANG||e===T.DOLLAR||e===T.AMP||e===T.PAREN_L||e===T.PAREN_R||e===T.SPREAD||e===T.COLON||e===T.EQUALS||e===T.AT||e===T.BRACKET_L||e===T.BRACKET_R||e===T.BRACE_L||e===T.PIPE||e===T.BRACE_R}function Gr(e){return isNaN(e)?T.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function _c(e,r){for(var t=e.source,n=t.body,i=n.length,a=r.end;a<i;){var o=n.charCodeAt(a),s=e.line,u=1+a-e.lineStart;switch(o){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++e.line,e.lineStart=a;continue;case 13:n.charCodeAt(a+1)===10?a+=2:++a,++e.line,e.lineStart=a;continue;case 33:return new oe(T.BANG,a,a+1,s,u,r);case 35:return kc(t,a,s,u,r);case 36:return new oe(T.DOLLAR,a,a+1,s,u,r);case 38:return new oe(T.AMP,a,a+1,s,u,r);case 40:return new oe(T.PAREN_L,a,a+1,s,u,r);case 41:return new oe(T.PAREN_R,a,a+1,s,u,r);case 46:if(n.charCodeAt(a+1)===46&&n.charCodeAt(a+2)===46)return new oe(T.SPREAD,a,a+3,s,u,r);break;case 58:return new oe(T.COLON,a,a+1,s,u,r);case 61:return new oe(T.EQUALS,a,a+1,s,u,r);case 64:return new oe(T.AT,a,a+1,s,u,r);case 91:return new oe(T.BRACKET_L,a,a+1,s,u,r);case 93:return new oe(T.BRACKET_R,a,a+1,s,u,r);case 123:return new oe(T.BRACE_L,a,a+1,s,u,r);case 124:return new oe(T.PIPE,a,a+1,s,u,r);case 125:return new oe(T.BRACE_R,a,a+1,s,u,r);case 34:return n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34?Pc(t,a,s,u,r,e):Mc(t,a,s,u,r);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Vc(t,a,o,s,u,r);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Cc(t,a,s,u,r)}throw ge(t,a,Fc(o))}var c=e.line,p=1+a-e.lineStart;return new oe(T.EOF,i,i,c,p,r)}function Fc(e){return e<32&&e!==9&&e!==10&&e!==13?"Cannot contain the invalid character ".concat(Gr(e),"."):e===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(Gr(e),".")}function kc(e,r,t,n,i){var a=e.body,o,s=r;do o=a.charCodeAt(++s);while(!isNaN(o)&&(o>31||o===9));return new oe(T.COMMENT,r,s,t,n,i,a.slice(r+1,s))}function Vc(e,r,t,n,i,a){var o=e.body,s=t,u=r,c=!1;if(s===45&&(s=o.charCodeAt(++u)),s===48){if(s=o.charCodeAt(++u),s>=48&&s<=57)throw ge(e,u,"Invalid number, unexpected digit after 0: ".concat(Gr(s),"."))}else u=na(e,u,s),s=o.charCodeAt(u);if(s===46&&(c=!0,s=o.charCodeAt(++u),u=na(e,u,s),s=o.charCodeAt(u)),(s===69||s===101)&&(c=!0,s=o.charCodeAt(++u),(s===43||s===45)&&(s=o.charCodeAt(++u)),u=na(e,u,s),s=o.charCodeAt(u)),s===46||jc(s))throw ge(e,u,"Invalid number, expected digit but got: ".concat(Gr(s),"."));return new oe(c?T.FLOAT:T.INT,r,u,n,i,a,o.slice(r,u))}function na(e,r,t){var n=e.body,i=r,a=t;if(a>=48&&a<=57){do a=n.charCodeAt(++i);while(a>=48&&a<=57);return i}throw ge(e,i,"Invalid number, expected digit but got: ".concat(Gr(a),"."))}function Mc(e,r,t,n,i){for(var a=e.body,o=r+1,s=o,u=0,c="";o<a.length&&!isNaN(u=a.charCodeAt(o))&&u!==10&&u!==13;){if(u===34)return c+=a.slice(s,o),new oe(T.STRING,r,o+1,t,n,i,c);if(u<32&&u!==9)throw ge(e,o,"Invalid character within String: ".concat(Gr(u),"."));if(++o,u===92){switch(c+=a.slice(s,o-1),u=a.charCodeAt(o),u){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+=`
`;break;case 114:c+="\r";break;case 116:c+=" ";break;case 117:{var p=Uc(a.charCodeAt(o+1),a.charCodeAt(o+2),a.charCodeAt(o+3),a.charCodeAt(o+4));if(p<0){var l=a.slice(o+1,o+5);throw ge(e,o,"Invalid character escape sequence: \\u".concat(l,"."))}c+=String.fromCharCode(p),o+=4;break}default:throw ge(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}++o,s=o}}throw ge(e,o,"Unterminated string.")}function Pc(e,r,t,n,i,a){for(var o=e.body,s=r+3,u=s,c=0,p="";s<o.length&&!isNaN(c=o.charCodeAt(s));){if(c===34&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34)return p+=o.slice(u,s),new oe(T.BLOCK_STRING,r,s+3,t,n,i,st(p));if(c<32&&c!==9&&c!==10&&c!==13)throw ge(e,s,"Invalid character within String: ".concat(Gr(c),"."));c===10?(++s,++a.line,a.lineStart=s):c===13?(o.charCodeAt(s+1)===10?s+=2:++s,++a.line,a.lineStart=s):c===92&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34&&o.charCodeAt(s+3)===34?(p+=o.slice(u,s)+'"""',s+=4,u=s):++s}throw ge(e,s,"Unterminated string.")}function Uc(e,r,t,n){return Ni(e)<<12|Ni(r)<<8|Ni(t)<<4|Ni(n)}function Ni(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Cc(e,r,t,n,i){for(var a=e.body,o=a.length,s=r+1,u=0;s!==o&&!isNaN(u=a.charCodeAt(s))&&(u===95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new oe(T.NAME,r,s,t,n,i,a.slice(r,s))}function jc(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}var Qr,bi=g(()=>{"use strict";Ti();ci();lt();pi();Qr=(function(){function e(t){var n=new oe(T.SOF,0,0,0,0,null);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var r=e.prototype;return r.advance=function(){this.lastToken=this.token;var n=this.token=this.lookahead();return n},r.lookahead=function(){var n=this.token;if(n.kind!==T.EOF)do{var i;n=(i=n.next)!==null&&i!==void 0?i:n.next=_c(this,n)}while(n.kind===T.COMMENT);return n},e})()});function Nr(e,r){var t=new oa(e,r);return t.parseDocument()}function nn(e,r){var t=new oa(e,r);t.expectToken(T.SOF);var n=t.parseValueLiteral(!1);return t.expectToken(T.EOF),n}function aa(e,r){var t=new oa(e,r);t.expectToken(T.SOF);var n=t.parseTypeReference();return t.expectToken(T.EOF),n}function ia(e){var r=e.value;return Rs(e.kind)+(r!=null?' "'.concat(r,'"'):"")}function Rs(e){return Ii(e)?'"'.concat(e,'"'):e}var oa,vt=g(()=>{"use strict";Ti();ae();ci();lt();gi();mt();bi();oa=(function(){function e(t,n){var i=Ei(t)?t:new wr(t);this._lexer=new Qr(i),this._options=n}var r=e.prototype;return r.parseName=function(){var n=this.expectToken(T.NAME);return{kind:f.NAME,value:n.value,loc:this.loc(n)}},r.parseDocument=function(){var n=this._lexer.token;return{kind:f.DOCUMENT,definitions:this.many(T.SOF,this.parseDefinition,T.EOF),loc:this.loc(n)}},r.parseDefinition=function(){if(this.peek(T.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(T.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},r.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(T.BRACE_L))return{kind:f.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var i=this.parseOperationType(),a;return this.peek(T.NAME)&&(a=this.parseName()),{kind:f.OPERATION_DEFINITION,operation:i,name:a,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},r.parseOperationType=function(){var n=this.expectToken(T.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},r.parseVariableDefinitions=function(){return this.optionalMany(T.PAREN_L,this.parseVariableDefinition,T.PAREN_R)},r.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:f.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(T.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(T.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}},r.parseVariable=function(){var n=this._lexer.token;return this.expectToken(T.DOLLAR),{kind:f.VARIABLE,name:this.parseName(),loc:this.loc(n)}},r.parseSelectionSet=function(){var n=this._lexer.token;return{kind:f.SELECTION_SET,selections:this.many(T.BRACE_L,this.parseSelection,T.BRACE_R),loc:this.loc(n)}},r.parseSelection=function(){return this.peek(T.SPREAD)?this.parseFragment():this.parseField()},r.parseField=function(){var n=this._lexer.token,i=this.parseName(),a,o;return this.expectOptionalToken(T.COLON)?(a=i,o=this.parseName()):o=i,{kind:f.FIELD,alias:a,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(T.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},r.parseArguments=function(n){var i=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(T.PAREN_L,i,T.PAREN_R)},r.parseArgument=function(){var n=this._lexer.token,i=this.parseName();return this.expectToken(T.COLON),{kind:f.ARGUMENT,name:i,value:this.parseValueLiteral(!1),loc:this.loc(n)}},r.parseConstArgument=function(){var n=this._lexer.token;return{kind:f.ARGUMENT,name:this.parseName(),value:(this.expectToken(T.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},r.parseFragment=function(){var n=this._lexer.token;this.expectToken(T.SPREAD);var i=this.expectOptionalKeyword("on");return!i&&this.peek(T.NAME)?{kind:f.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:f.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},r.parseFragmentDefinition=function(){var n,i=this._lexer.token;return this.expectKeyword("fragment"),((n=this._options)===null||n===void 0?void 0:n.experimentalFragmentVariables)===!0?{kind:f.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}:{kind:f.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(i)}},r.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},r.parseValueLiteral=function(n){var i=this._lexer.token;switch(i.kind){case T.BRACKET_L:return this.parseList(n);case T.BRACE_L:return this.parseObject(n);case T.INT:return this._lexer.advance(),{kind:f.INT,value:i.value,loc:this.loc(i)};case T.FLOAT:return this._lexer.advance(),{kind:f.FLOAT,value:i.value,loc:this.loc(i)};case T.STRING:case T.BLOCK_STRING:return this.parseStringLiteral();case T.NAME:switch(this._lexer.advance(),i.value){case"true":return{kind:f.BOOLEAN,value:!0,loc:this.loc(i)};case"false":return{kind:f.BOOLEAN,value:!1,loc:this.loc(i)};case"null":return{kind:f.NULL,loc:this.loc(i)};default:return{kind:f.ENUM,value:i.value,loc:this.loc(i)}}case T.DOLLAR:if(!n)return this.parseVariable();break}throw this.unexpected()},r.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:f.STRING,value:n.value,block:n.kind===T.BLOCK_STRING,loc:this.loc(n)}},r.parseList=function(n){var i=this,a=this._lexer.token,o=function(){return i.parseValueLiteral(n)};return{kind:f.LIST,values:this.any(T.BRACKET_L,o,T.BRACKET_R),loc:this.loc(a)}},r.parseObject=function(n){var i=this,a=this._lexer.token,o=function(){return i.parseObjectField(n)};return{kind:f.OBJECT,fields:this.any(T.BRACE_L,o,T.BRACE_R),loc:this.loc(a)}},r.parseObjectField=function(n){var i=this._lexer.token,a=this.parseName();return this.expectToken(T.COLON),{kind:f.OBJECT_FIELD,name:a,value:this.parseValueLiteral(n),loc:this.loc(i)}},r.parseDirectives=function(n){for(var i=[];this.peek(T.AT);)i.push(this.parseDirective(n));return i},r.parseDirective=function(n){var i=this._lexer.token;return this.expectToken(T.AT),{kind:f.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(i)}},r.parseTypeReference=function(){var n=this._lexer.token,i;return this.expectOptionalToken(T.BRACKET_L)?(i=this.parseTypeReference(),this.expectToken(T.BRACKET_R),i={kind:f.LIST_TYPE,type:i,loc:this.loc(n)}):i=this.parseNamedType(),this.expectOptionalToken(T.BANG)?{kind:f.NON_NULL_TYPE,type:i,loc:this.loc(n)}:i},r.parseNamedType=function(){var n=this._lexer.token;return{kind:f.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}},r.parseTypeSystemDefinition=function(){var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===T.NAME)switch(n.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()}throw this.unexpected(n)},r.peekDescription=function(){return this.peek(T.STRING)||this.peek(T.BLOCK_STRING)},r.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},r.parseSchemaDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");var a=this.parseDirectives(!0),o=this.many(T.BRACE_L,this.parseOperationTypeDefinition,T.BRACE_R);return{kind:f.SCHEMA_DEFINITION,description:i,directives:a,operationTypes:o,loc:this.loc(n)}},r.parseOperationTypeDefinition=function(){var n=this._lexer.token,i=this.parseOperationType();this.expectToken(T.COLON);var a=this.parseNamedType();return{kind:f.OPERATION_TYPE_DEFINITION,operation:i,type:a,loc:this.loc(n)}},r.parseScalarTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");var a=this.parseName(),o=this.parseDirectives(!0);return{kind:f.SCALAR_TYPE_DEFINITION,description:i,name:a,directives:o,loc:this.loc(n)}},r.parseObjectTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");var a=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:f.OBJECT_TYPE_DEFINITION,description:i,name:a,interfaces:o,directives:s,fields:u,loc:this.loc(n)}},r.parseImplementsInterfaces=function(){var n;if(!this.expectOptionalKeyword("implements"))return[];if(((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLImplementsInterfaces)===!0){var i=[];this.expectOptionalToken(T.AMP);do i.push(this.parseNamedType());while(this.expectOptionalToken(T.AMP)||this.peek(T.NAME));return i}return this.delimitedMany(T.AMP,this.parseNamedType)},r.parseFieldsDefinition=function(){var n;return((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLEmptyFields)===!0&&this.peek(T.BRACE_L)&&this._lexer.lookahead().kind===T.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(T.BRACE_L,this.parseFieldDefinition,T.BRACE_R)},r.parseFieldDefinition=function(){var n=this._lexer.token,i=this.parseDescription(),a=this.parseName(),o=this.parseArgumentDefs();this.expectToken(T.COLON);var s=this.parseTypeReference(),u=this.parseDirectives(!0);return{kind:f.FIELD_DEFINITION,description:i,name:a,arguments:o,type:s,directives:u,loc:this.loc(n)}},r.parseArgumentDefs=function(){return this.optionalMany(T.PAREN_L,this.parseInputValueDef,T.PAREN_R)},r.parseInputValueDef=function(){var n=this._lexer.token,i=this.parseDescription(),a=this.parseName();this.expectToken(T.COLON);var o=this.parseTypeReference(),s;this.expectOptionalToken(T.EQUALS)&&(s=this.parseValueLiteral(!0));var u=this.parseDirectives(!0);return{kind:f.INPUT_VALUE_DEFINITION,description:i,name:a,type:o,defaultValue:s,directives:u,loc:this.loc(n)}},r.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");var a=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseDirectives(!0),u=this.parseFieldsDefinition();return{kind:f.INTERFACE_TYPE_DEFINITION,description:i,name:a,interfaces:o,directives:s,fields:u,loc:this.loc(n)}},r.parseUnionTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");var a=this.parseName(),o=this.parseDirectives(!0),s=this.parseUnionMemberTypes();return{kind:f.UNION_TYPE_DEFINITION,description:i,name:a,directives:o,types:s,loc:this.loc(n)}},r.parseUnionMemberTypes=function(){return this.expectOptionalToken(T.EQUALS)?this.delimitedMany(T.PIPE,this.parseNamedType):[]},r.parseEnumTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");var a=this.parseName(),o=this.parseDirectives(!0),s=this.parseEnumValuesDefinition();return{kind:f.ENUM_TYPE_DEFINITION,description:i,name:a,directives:o,values:s,loc:this.loc(n)}},r.parseEnumValuesDefinition=function(){return this.optionalMany(T.BRACE_L,this.parseEnumValueDefinition,T.BRACE_R)},r.parseEnumValueDefinition=function(){var n=this._lexer.token,i=this.parseDescription(),a=this.parseName(),o=this.parseDirectives(!0);return{kind:f.ENUM_VALUE_DEFINITION,description:i,name:a,directives:o,loc:this.loc(n)}},r.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");var a=this.parseName(),o=this.parseDirectives(!0),s=this.parseInputFieldsDefinition();return{kind:f.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:a,directives:o,fields:s,loc:this.loc(n)}},r.parseInputFieldsDefinition=function(){return this.optionalMany(T.BRACE_L,this.parseInputValueDef,T.BRACE_R)},r.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===T.NAME)switch(n.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(n)},r.parseSchemaExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var i=this.parseDirectives(!0),a=this.optionalMany(T.BRACE_L,this.parseOperationTypeDefinition,T.BRACE_R);if(i.length===0&&a.length===0)throw this.unexpected();return{kind:f.SCHEMA_EXTENSION,directives:i,operationTypes:a,loc:this.loc(n)}},r.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var i=this.parseName(),a=this.parseDirectives(!0);if(a.length===0)throw this.unexpected();return{kind:f.SCALAR_TYPE_EXTENSION,name:i,directives:a,loc:this.loc(n)}},r.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var i=this.parseName(),a=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),s=this.parseFieldsDefinition();if(a.length===0&&o.length===0&&s.length===0)throw this.unexpected();return{kind:f.OBJECT_TYPE_EXTENSION,name:i,interfaces:a,directives:o,fields:s,loc:this.loc(n)}},r.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var i=this.parseName(),a=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),s=this.parseFieldsDefinition();if(a.length===0&&o.length===0&&s.length===0)throw this.unexpected();return{kind:f.INTERFACE_TYPE_EXTENSION,name:i,interfaces:a,directives:o,fields:s,loc:this.loc(n)}},r.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var i=this.parseName(),a=this.parseDirectives(!0),o=this.parseUnionMemberTypes();if(a.length===0&&o.length===0)throw this.unexpected();return{kind:f.UNION_TYPE_EXTENSION,name:i,directives:a,types:o,loc:this.loc(n)}},r.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var i=this.parseName(),a=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();if(a.length===0&&o.length===0)throw this.unexpected();return{kind:f.ENUM_TYPE_EXTENSION,name:i,directives:a,values:o,loc:this.loc(n)}},r.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var i=this.parseName(),a=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();if(a.length===0&&o.length===0)throw this.unexpected();return{kind:f.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:a,fields:o,loc:this.loc(n)}},r.parseDirectiveDefinition=function(){var n=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(T.AT);var a=this.parseName(),o=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var u=this.parseDirectiveLocations();return{kind:f.DIRECTIVE_DEFINITION,description:i,name:a,arguments:o,repeatable:s,locations:u,loc:this.loc(n)}},r.parseDirectiveLocations=function(){return this.delimitedMany(T.PIPE,this.parseDirectiveLocation)},r.parseDirectiveLocation=function(){var n=this._lexer.token,i=this.parseName();if(w[i.value]!==void 0)return i;throw this.unexpected(n)},r.loc=function(n){var i;if(((i=this._options)===null||i===void 0?void 0:i.noLocation)!==!0)return new Ht(n,this._lexer.lastToken,this._lexer.source)},r.peek=function(n){return this._lexer.token.kind===n},r.expectToken=function(n){var i=this._lexer.token;if(i.kind===n)return this._lexer.advance(),i;throw ge(this._lexer.source,i.start,"Expected ".concat(Rs(n),", found ").concat(ia(i),"."))},r.expectOptionalToken=function(n){var i=this._lexer.token;if(i.kind===n)return this._lexer.advance(),i},r.expectKeyword=function(n){var i=this._lexer.token;if(i.kind===T.NAME&&i.value===n)this._lexer.advance();else throw ge(this._lexer.source,i.start,'Expected "'.concat(n,'", found ').concat(ia(i),"."))},r.expectOptionalKeyword=function(n){var i=this._lexer.token;return i.kind===T.NAME&&i.value===n?(this._lexer.advance(),!0):!1},r.unexpected=function(n){var i=n??this._lexer.token;return ge(this._lexer.source,i.start,"Unexpected ".concat(ia(i),"."))},r.any=function(n,i,a){this.expectToken(n);for(var o=[];!this.expectOptionalToken(a);)o.push(i.call(this));return o},r.optionalMany=function(n,i,a){if(this.expectOptionalToken(n)){var o=[];do o.push(i.call(this));while(!this.expectOptionalToken(a));return o}return[]},r.many=function(n,i,a){this.expectToken(n);var o=[];do o.push(i.call(this));while(!this.expectOptionalToken(a));return o},r.delimitedMany=function(n,i){this.expectOptionalToken(n);var a=[];do a.push(i.call(this));while(this.expectOptionalToken(n));return a},e})()});function sa(e){return dt(e)||ht(e)||yt(e)}function dt(e){return e.kind===f.OPERATION_DEFINITION||e.kind===f.FRAGMENT_DEFINITION}function ua(e){return e.kind===f.FIELD||e.kind===f.FRAGMENT_SPREAD||e.kind===f.INLINE_FRAGMENT}function ca(e){return e.kind===f.VARIABLE||e.kind===f.INT||e.kind===f.FLOAT||e.kind===f.STRING||e.kind===f.BOOLEAN||e.kind===f.NULL||e.kind===f.ENUM||e.kind===f.LIST||e.kind===f.OBJECT}function pa(e){return e.kind===f.NAMED_TYPE||e.kind===f.LIST_TYPE||e.kind===f.NON_NULL_TYPE}function ht(e){return e.kind===f.SCHEMA_DEFINITION||ze(e)||e.kind===f.DIRECTIVE_DEFINITION}function ze(e){return e.kind===f.SCALAR_TYPE_DEFINITION||e.kind===f.OBJECT_TYPE_DEFINITION||e.kind===f.INTERFACE_TYPE_DEFINITION||e.kind===f.UNION_TYPE_DEFINITION||e.kind===f.ENUM_TYPE_DEFINITION||e.kind===f.INPUT_OBJECT_TYPE_DEFINITION}function yt(e){return e.kind===f.SCHEMA_EXTENSION||xr(e)}function xr(e){return e.kind===f.SCALAR_TYPE_EXTENSION||e.kind===f.OBJECT_TYPE_EXTENSION||e.kind===f.INTERFACE_TYPE_EXTENSION||e.kind===f.UNION_TYPE_EXTENSION||e.kind===f.ENUM_TYPE_EXTENSION||e.kind===f.INPUT_OBJECT_TYPE_EXTENSION}var Br=g(()=>{"use strict";ae()});var ws=g(()=>{"use strict";gi();mi();ra();ae();lt();bi();vt();Je();pt();ci();Br();mt()});var Gc,ir,Tt=g(()=>{"use strict";Gc=Array.prototype.find?function(e,r){return Array.prototype.find.call(e,r)}:function(e,r){for(var t=0;t<e.length;t++){var n=e[t];if(r(n))return n}},ir=Gc});var Qc,j,Ge=g(()=>{"use strict";Qc=Object.values||function(e){return Object.keys(e).map(function(r){return e[r]})},j=Qc});function Qe(e,r,t){var n,i=e instanceof Error?e:new Error("Unexpected error value: "+y(e));return Array.isArray(i.path)?i:new v(i.message,(n=i.nodes)!==null&&n!==void 0?n:r,i.source,i.positions,t,i)}var an=g(()=>{"use strict";te();F()});function fa(e){var r=Et(e);if(r)throw r;return e}function Et(e){if(typeof e=="string"||x(0,"Expected name to be a string."),e.length>1&&e[0]==="_"&&e[1]==="_")return new v('Name "'.concat(e,'" must not begin with "__", which is reserved by GraphQL introspection.'));if(!Bc.test(e))return new v('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'.concat(e,'" does not.'))}var Bc,la=g(()=>{"use strict";Xe();F();Bc=/^[_a-zA-Z][_a-zA-Z0-9]*$/});var qc,ar,gt=g(()=>{"use strict";qc=Object.entries||function(e){return Object.keys(e).map(function(r){return[r,e[r]]})},ar=qc});function de(e,r){return e.reduce(function(t,n){return t[r(n)]=n,t},Object.create(null))}var _r=g(()=>{"use strict"});function He(e,r){for(var t=Object.create(null),n=0,i=ar(e);n<i.length;n++){var a=i[n],o=a[0],s=a[1];t[o]=r(s,o)}return t}var ma=g(()=>{"use strict";gt()});function be(e){if(Object.getPrototypeOf(e)===null)return e;for(var r=Object.create(null),t=0,n=ar(e);t<n.length;t++){var i=n[t],a=i[0],o=i[1];r[a]=o}return r}var Oi=g(()=>{"use strict";gt()});function Be(e,r,t){return e.reduce(function(n,i){return n[r(i)]=t(i),n},Object.create(null))}var on=g(()=>{"use strict"});function Oe(e,r){var t=typeof e=="string"?[e,r]:[void 0,e],n=t[0],i=t[1],a=" Did you mean ";n&&(a+=n+" ");var o=i.map(function(c){return'"'.concat(c,'"')});switch(o.length){case 0:return"";case 1:return a+o[0]+"?";case 2:return a+o[0]+" or "+o[1]+"?"}var s=o.slice(0,Kc),u=s.pop();return a+s.join(", ")+", or "+u+"?"}var Kc,Fr=g(()=>{"use strict";Kc=5});function Di(e){return e}var xs=g(()=>{"use strict"});function Ir(e,r){for(var t=0,n=0;t<e.length&&n<r.length;){var i=e.charCodeAt(t),a=r.charCodeAt(n);if(Si(i)&&Si(a)){var o=0;do++t,o=o*10+i-va,i=e.charCodeAt(t);while(Si(i)&&o>0);var s=0;do++n,s=s*10+a-va,a=r.charCodeAt(n);while(Si(a)&&s>0);if(o<s)return-1;if(o>s)return 1}else{if(i<a)return-1;if(i>a)return 1;++t,++n}}return e.length-r.length}function Si(e){return!isNaN(e)&&va<=e&&e<=Yc}var va,Yc,sn=g(()=>{"use strict";va=48,Yc=57});function Se(e,r){for(var t=Object.create(null),n=new Jc(e),i=Math.floor(e.length*.4)+1,a=0;a<r.length;a++){var o=r[a],s=n.measure(o,i);s!==void 0&&(t[o]=s)}return Object.keys(t).sort(function(u,c){var p=t[u]-t[c];return p!==0?p:Ir(u,c)})}function _s(e){for(var r=e.length,t=new Array(r),n=0;n<r;++n)t[n]=e.charCodeAt(n);return t}var Jc,kr=g(()=>{"use strict";sn();Jc=(function(){function e(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=_s(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}var r=e.prototype;return r.measure=function(n,i){if(this._input===n)return 0;var a=n.toLowerCase();if(this._inputLowerCase===a)return 1;var o=_s(a),s=this._inputArray;if(o.length<s.length){var u=o;o=s,s=u}var c=o.length,p=s.length;if(!(c-p>i)){for(var l=this._rows,m=0;m<=p;m++)l[0][m]=m;for(var d=1;d<=c;d++){for(var h=l[(d-1)%3],E=l[d%3],I=E[0]=d,O=1;O<=p;O++){var D=o[d-1]===s[O-1]?0:1,V=Math.min(h[O]+1,E[O-1]+1,h[O-1]+D);if(d>1&&O>1&&o[d-1]===s[O-2]&&o[d-2]===s[O-1]){var P=l[(d-2)%3][O-2];V=Math.min(V,P+1)}V<I&&(I=V),E[O]=V}if(I>i)return}var U=l[c%3][p];return U<=i?U:void 0}},e})()});function qr(e,r){switch(e.kind){case f.NULL:return null;case f.INT:return parseInt(e.value,10);case f.FLOAT:return parseFloat(e.value);case f.STRING:case f.ENUM:case f.BOOLEAN:return e.value;case f.LIST:return e.values.map(function(t){return qr(t,r)});case f.OBJECT:return Be(e.fields,function(t){return t.name.value},function(t){return qr(t.value,r)});case f.VARIABLE:return r?.[e.name.value]}q(0,"Unexpected value node: "+y(e))}var da=g(()=>{"use strict";te();xe();on();ae()});function Fs(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function It(e,r,t){return r&&Fs(e.prototype,r),t&&Fs(e,t),e}function Kr(e){return fe(e)||k(e)||M(e)||ne(e)||X(e)||C(e)||G(e)||A(e)}function Ai(e){if(!Kr(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL type."));return e}function fe(e){return _e(e,Ae)}function ha(e){if(!fe(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL Scalar type."));return e}function k(e){return _e(e,ye)}function un(e){if(!k(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL Object type."));return e}function M(e){return _e(e,We)}function cn(e){if(!M(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL Interface type."));return e}function ne(e){return _e(e,Ze)}function ya(e){if(!ne(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL Union type."));return e}function X(e){return _e(e,ke)}function Ta(e){if(!X(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL Enum type."));return e}function C(e){return _e(e,$e)}function Ea(e){if(!C(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL Input Object type."));return e}function G(e){return _e(e,ee)}function ga(e){if(!G(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL List type."));return e}function A(e){return _e(e,_)}function Na(e){if(!A(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL Non-Null type."));return e}function le(e){return fe(e)||X(e)||C(e)||Yr(e)&&le(e.ofType)}function Ia(e){if(!le(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL input type."));return e}function qe(e){return fe(e)||k(e)||M(e)||ne(e)||X(e)||Yr(e)&&qe(e.ofType)}function ba(e){if(!qe(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL output type."));return e}function he(e){return fe(e)||X(e)}function Oa(e){if(!he(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL leaf type."));return e}function Fe(e){return k(e)||M(e)||ne(e)}function Da(e){if(!Fe(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL composite type."));return e}function Le(e){return M(e)||ne(e)}function Sa(e){if(!Le(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL abstract type."));return e}function ee(e){if(this instanceof ee)this.ofType=Ai(e);else return new ee(e)}function _(e){if(this instanceof _)this.ofType=bt(e);else return new _(e)}function Yr(e){return G(e)||A(e)}function La(e){if(!Yr(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL wrapping type."));return e}function Ri(e){return Kr(e)&&!A(e)}function bt(e){if(!Ri(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL nullable type."));return e}function Jr(e){if(e)return A(e)?e.ofType:e}function or(e){return fe(e)||k(e)||M(e)||ne(e)||X(e)||C(e)}function Aa(e){if(!or(e))throw new Error("Expected ".concat(y(e)," to be a GraphQL named type."));return e}function se(e){if(e){for(var r=e;Yr(r);)r=r.ofType;return r}}function wi(e){return typeof e=="function"?e():e}function Ot(e){return e&&e.length>0?e:void 0}function ks(e){var r,t=(r=wi(e.interfaces))!==null&&r!==void 0?r:[];return Array.isArray(t)||x(0,"".concat(e.name," interfaces must be an Array or a function which returns an Array.")),t}function Vs(e){var r=wi(e.fields);return Nt(r)||x(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),He(r,function(t,n){var i;Nt(t)||x(0,"".concat(e.name,".").concat(n," field config must be an object.")),!("isDeprecated"in t)||x(0,"".concat(e.name,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),t.resolve==null||typeof t.resolve=="function"||x(0,"".concat(e.name,".").concat(n," field resolver must be a function if ")+"provided, but got: ".concat(y(t.resolve),"."));var a=(i=t.args)!==null&&i!==void 0?i:{};Nt(a)||x(0,"".concat(e.name,".").concat(n," args must be an object with argument names as keys."));var o=ar(a).map(function(s){var u=s[0],c=s[1];return{name:u,description:c.description,type:c.type,defaultValue:c.defaultValue,deprecationReason:c.deprecationReason,extensions:c.extensions&&be(c.extensions),astNode:c.astNode}});return{name:n,description:t.description,type:t.type,args:o,resolve:t.resolve,subscribe:t.subscribe,isDeprecated:t.deprecationReason!=null,deprecationReason:t.deprecationReason,extensions:t.extensions&&be(t.extensions),astNode:t.astNode}})}function Nt(e){return ce(e)&&!Array.isArray(e)}function Ms(e){return He(e,function(r){return{description:r.description,type:r.type,args:Ra(r.args),resolve:r.resolve,subscribe:r.subscribe,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}})}function Ra(e){return Be(e,function(r){return r.name},function(r){return{description:r.description,type:r.type,defaultValue:r.defaultValue,deprecationReason:r.deprecationReason,extensions:r.extensions,astNode:r.astNode}})}function Ke(e){return A(e.type)&&e.defaultValue===void 0}function Xc(e){var r=wi(e.types);return Array.isArray(r)||x(0,"Must provide Array of types or a function which returns such an array for Union ".concat(e.name,".")),r}function Li(e,r){var t=e.getValues().map(function(i){return i.name}),n=Se(r,t);return Oe("the enum value",n)}function zc(e,r){return Nt(r)||x(0,"".concat(e," values must be an object with value names as keys.")),ar(r).map(function(t){var n=t[0],i=t[1];return Nt(i)||x(0,"".concat(e,".").concat(n,' must refer to an object with a "value" key ')+"representing an internal value but got: ".concat(y(i),".")),!("isDeprecated"in i)||x(0,"".concat(e,".").concat(n,' should provide "deprecationReason" instead of "isDeprecated".')),{name:n,description:i.description,value:i.value!==void 0?i.value:n,isDeprecated:i.deprecationReason!=null,deprecationReason:i.deprecationReason,extensions:i.extensions&&be(i.extensions),astNode:i.astNode}})}function Hc(e){var r=wi(e.fields);return Nt(r)||x(0,"".concat(e.name," fields must be an object with field names as keys or a function which returns such an object.")),He(r,function(t,n){return!("resolve"in t)||x(0,"".concat(e.name,".").concat(n," field has a resolve property, but Input Types cannot define resolvers.")),{name:n,description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions&&be(t.extensions),astNode:t.astNode}})}function br(e){return A(e.type)&&e.defaultValue===void 0}var Ae,ye,We,Ze,ke,$e,Y=g(()=>{"use strict";gt();lr();te();_r();ma();Oi();Xe();on();tn();Fr();fr();xs();gs();kr();F();ae();Je();da();ee.prototype.toString=function(){return"["+String(this.ofType)+"]"};ee.prototype.toJSON=function(){return this.toString()};Object.defineProperty(ee.prototype,Ie,{get:function(){return"GraphQLList"}});nr(ee);_.prototype.toString=function(){return String(this.ofType)+"!"};_.prototype.toJSON=function(){return this.toString()};Object.defineProperty(_.prototype,Ie,{get:function(){return"GraphQLNonNull"}});nr(_);Ae=(function(){function e(t){var n,i,a,o=(n=t.parseValue)!==null&&n!==void 0?n:Di;this.name=t.name,this.description=t.description,this.specifiedByUrl=t.specifiedByUrl,this.serialize=(i=t.serialize)!==null&&i!==void 0?i:Di,this.parseValue=o,this.parseLiteral=(a=t.parseLiteral)!==null&&a!==void 0?a:function(s,u){return o(qr(s,u))},this.extensions=t.extensions&&be(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Ot(t.extensionASTNodes),typeof t.name=="string"||x(0,"Must provide name."),t.specifiedByUrl==null||typeof t.specifiedByUrl=="string"||x(0,"".concat(this.name,' must provide "specifiedByUrl" as a string, ')+"but got: ".concat(y(t.specifiedByUrl),".")),t.serialize==null||typeof t.serialize=="function"||x(0,"".concat(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.')),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||x(0,"".concat(this.name,' must provide both "parseValue" and "parseLiteral" functions.')))}var r=e.prototype;return r.toConfig=function(){var n;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:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},r.toString=function(){return this.name},r.toJSON=function(){return this.toString()},It(e,[{key:Ie,get:function(){return"GraphQLScalarType"}}]),e})();nr(Ae);ye=(function(){function e(t){this.name=t.name,this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=t.extensions&&be(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Ot(t.extensionASTNodes),this._fields=Vs.bind(void 0,t),this._interfaces=ks.bind(void 0,t),typeof t.name=="string"||x(0,"Must provide name."),t.isTypeOf==null||typeof t.isTypeOf=="function"||x(0,"".concat(this.name,' must provide "isTypeOf" as a function, ')+"but got: ".concat(y(t.isTypeOf),"."))}var r=e.prototype;return r.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},r.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},r.toConfig=function(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ms(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes||[]}},r.toString=function(){return this.name},r.toJSON=function(){return this.toString()},It(e,[{key:Ie,get:function(){return"GraphQLObjectType"}}]),e})();nr(ye);We=(function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&be(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Ot(t.extensionASTNodes),this._fields=Vs.bind(void 0,t),this._interfaces=ks.bind(void 0,t),typeof t.name=="string"||x(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||x(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(y(t.resolveType),"."))}var r=e.prototype;return r.getFields=function(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields},r.getInterfaces=function(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces},r.toConfig=function(){var n;return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Ms(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},r.toString=function(){return this.name},r.toJSON=function(){return this.toString()},It(e,[{key:Ie,get:function(){return"GraphQLInterfaceType"}}]),e})();nr(We);Ze=(function(){function e(t){this.name=t.name,this.description=t.description,this.resolveType=t.resolveType,this.extensions=t.extensions&&be(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Ot(t.extensionASTNodes),this._types=Xc.bind(void 0,t),typeof t.name=="string"||x(0,"Must provide name."),t.resolveType==null||typeof t.resolveType=="function"||x(0,"".concat(this.name,' must provide "resolveType" as a function, ')+"but got: ".concat(y(t.resolveType),"."))}var r=e.prototype;return r.getTypes=function(){return typeof this._types=="function"&&(this._types=this._types()),this._types},r.toConfig=function(){var n;return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:(n=this.extensionASTNodes)!==null&&n!==void 0?n:[]}},r.toString=function(){return this.name},r.toJSON=function(){return this.toString()},It(e,[{key:Ie,get:function(){return"GraphQLUnionType"}}]),e})();nr(Ze);ke=(function(){function e(t){this.name=t.name,this.description=t.description,this.extensions=t.extensions&&be(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=Ot(t.extensionASTNodes),this._values=zc(this.name,t.values),this._valueLookup=new Map(this._values.map(function(n){return[n.value,n]})),this._nameLookup=de(this._values,function(n){return n.name}),typeof t.name=="string"||x(0,"Must provide name.")}var r=e.prototype;return r.getValues=function(){return this._values},r.getValue=function(n){return this._nameLookup[n]},r.serialize=function(n){var i=this._valueLookup.get(n);if(i===void 0)throw new v('Enum "'.concat(this.name,'" cannot represent value: ').concat(y(n)));return i.name},r.parseValue=function(n){if(typeof n!="string"){var i=y(n);throw new v('Enum "'.concat(this.name,'" cannot represent non-string value: ').concat(i,".")+Li(this,i))}var a=this.getValue(n);if(a==null)throw new v('Value "'.concat(n,'" does not exist in "').concat(this.name,'" enum.')+Li(this,n));return a.value},r.parseLiteral=function(n,i){if(n.kind!==f.ENUM){var a=Q(n);throw new v('Enum "'.concat(this.name,'" cannot represent non-enum value: ').concat(a,".")+Li(this,a),n)}var o=this.getValue(n.value);if(o==null){v