vendor: 1,339 bytes, lines 1-3
1import{i as le}from"./3yVUN-v7.js";import{lt as _,nt as ue}from"./C89sYm7w.js";import{f as he}from"./T_KAveaC.js";function P(e,t){if(!e)throw new Error(t)}function pe(e){return typeof e=="object"&&e!==null}function de(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}var fe=/\r\n|[\n\r]/g;function V(e,t){let n=0,r=1;for(const i of e.body.matchAll(fe)){if(typeof i.index=="number"||de(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function Ee(e){return W(e.source,V(e.source,e.start))}function W(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,a=t.line+s,h=t.line===1?n:0,p=t.column+h,c=`${e.name}:${a}:${p} 2`,d=r.split(/\r\n|[\n\r]/g),T=d[i];if(T.length>120){const E=Math.floor(p/80),f=p%80,l=[];for(let m=0;m<T.length;m+=80)l.push(T.slice(m,m+80));return c+J([[`${a} |`,l[0]],...l.slice(1,E+1).map(m=>["|",m]),["|","^".padStart(f)],["|",l[E+1]]])}return c+J([[`${a-1} |`,d[i-1]],[`${a} |`,T],["|","^".padStart(p)],[`${a+1} |`,d[i+1]]])}function J(e){const t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` 3`)}function me(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}
vendor: 5,572 bytes, lines 3-7
3var Te=class H extends Error{constructor(t,...n){var r,i,s;const{nodes:a,source:h,positions:p,path:c,originalError:d,extensions:T}=me(n);super(t),this.name="GraphQLError",this.path=c??void 0,this.originalError=d??void 0,this.nodes=Q(Array.isArray(a)?a:a?[a]:void 0);const E=Q((r=this.nodes)===null||r===void 0?void 0:r.map(l=>l.loc).filter(l=>l!=null));this.source=h??(E==null||(i=E[0])===null||i===void 0?void 0:i.source),this.positions=p??E?.map(l=>l.start),this.locations=p&&h?p.map(l=>V(h,l)):E?.map(l=>V(l.source,l.start));const f=pe(d?.extensions)?d?.extensions:void 0;this.extensions=(s=T??f)!==null&&s!==void 0?s: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}}),d!=null&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,H):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=` 4 5`+Ee(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=` 6 7`+W(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function Q(e){return e===void 0||e.length===0?void 0:e}function I(e,t,n){return new Te(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Ne=class{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}}},Z=class{constructor(e,t,n,r,i,s){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=s,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}}},Ie={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},ye=new Set(Object.keys(Ie));function ot(e){const t=e?.kind;return typeof t=="string"&&ye.has(t)}var v;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(v||(v={}));var U;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"})(U||(U={}));var u;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="Str
7ingValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(u||(u={}));function B(e){return e===9||e===32}function C(e){return e>=48&&e<=57}function K(e){return e>=97&&e<=122||e>=65&&e<=90}function ee(e){return K(e)||e===95}function _e(e){return K(e)||C(e)||e===95}function Oe(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;a<e.length;++a){var s;const h=e[a],p=ve(h);p!==h.length&&(r=(s=r)!==null&&s!==void 0?s:a,i=a,a!==0&&p<n&&(n=p))}return e.map((a,h)=>h===0?a:a.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function ve(e){let t=0;for(;t<e.length&&B(e.charCodeAt(t));)++t;return t}function at(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,s=r.length>1&&r.slice(1).every(f=>f.length===0||B(f.charCodeAt(0))),a=n.endsWith('\\"""'),h=e.endsWith('"')&&!a,p=e.endsWith("\\"),c=h||p,d=!(t!=null&&t.minimize)&&(!i||e.length>70||c||s||a);let T="";const E=i&&B(e.charCodeAt(0));return(d&&!E||s)&&(T+=` 8`),T+=n,(d||c)&&(T+=` 9`),'"""'+T+'"""'}var o;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(o||(o={}));var Ae=class{constructor(e){const t=new Z(o.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!==o.EOF)do if(e.next)e=e.next;else{const t=ge(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===o.COMMENT);return e}};function De(e){return e===o.BANG||e===o.DOLLAR||e===o.AMP||e===o.PAREN_L||e===o.PAREN_R||e===o.DOT||e===o.SPREAD||e===o.COLON||e===o.EQUALS||e===o.AT||e===o.BRACKET_L||e===o.BRACKET_R||e===o.BRACE_L||e===o.PIPE||e===o.BRACE_R}function D(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function L(e,t){return te(e.charCodeAt(t))&&ne(e.charCodeAt(t+1))}function te(e){return e>=55296&&e<=56319}function ne(e){return e>=56320&&e<=57343}function O(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return o.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function N(e,t,n,r,i){const s=e.line,a=1+n-e.lineStart;return new Z(t,n,r,s,a,i)}function ge(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const s=n.charCodeAt(i);switch(s){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return ke(e,i);case 33:return N(e,o.BANG,i,i+1);case 36:return N(e,o.DOLLAR,i,i+1);case 38:return N(e,o.AMP,i,i+1);case 40:return N(e,o.PAREN_L,i,i+1);case 41:return N(e,o.PAREN_R,i,i+1);
vendor: 21,334 bytes, lines 9-22
9case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return N(e,o.SPREAD,i,i+3);break;case 58:return N(e,o.COLON,i,i+1);case 61:return N(e,o.EQUALS,i,i+1);case 64:return N(e,o.AT,i,i+1);case 91:return N(e,o.BRACKET_L,i,i+1);case 93:return N(e,o.BRACKET_R,i,i+1);case 123:return N(e,o.BRACE_L,i,i+1);case 124:return N(e,o.PIPE,i,i+1);case 125:return N(e,o.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?Le(e,i):Ce(e,i)}if(C(s)||s===45)return xe(e,i,s);if(ee(s))return we(e,i);throw I(e.source,i,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:D(s)||L(n,i)?`Unexpected character: ${O(e,i)}.`:`Invalid character: ${O(e,i)}.`)}return N(e,o.EOF,r,r)}function ke(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const s=n.charCodeAt(i);if(s===10||s===13)break;if(D(s))++i;else if(L(n,i))i+=2;else break}return N(e,o.COMMENT,t,i,n.slice(t+1,i))}function xe(e,t,n){const r=e.source.body;let i=t,s=n,a=!1;if(s===45&&(s=r.charCodeAt(++i)),s===48){if(s=r.charCodeAt(++i),C(s))throw I(e.source,i,`Invalid number, unexpected digit after 0: ${O(e,i)}.`)}else i=M(e,i,s),s=r.charCodeAt(i);if(s===46&&(a=!0,s=r.charCodeAt(++i),i=M(e,i,s),s=r.charCodeAt(i)),(s===69||s===101)&&(a=!0,s=r.charCodeAt(++i),(s===43||s===45)&&(s=r.charCodeAt(++i)),i=M(e,i,s),s=r.charCodeAt(i)),s===46||ee(s))throw I(e.source,i,`Invalid number, expected digit but got: ${O(e,i)}.`);return N(e,a?o.FLOAT:o.INT,t,i,r.slice(t,i))}function M(e,t,n){if(!C(n))throw I(e.source,t,`Invalid number, expected digit but got: ${O(e,t)}.`);const r=e.source.body;let i=t+1;for(;C(r.charCodeAt(i));)++i;return i}function Ce(e,t){const n=e.source.body,r=n.length;let i=t+1,s=i,a="";for(;i<r;){const h=n.charCodeAt(i);if(h===34)return a+=n.slice(s,i),N(e,o.STRING,t,i+1,a);if(h===92){a+=n.slice(s,i);const p=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?Se(e,i):be(e,i):Re(e,i);a+=p.value,i+=p.size,s=i;continue}if(h===10||h===13)break;if(D(h))++i;else if(L(n,i))i+=2;else throw I(e.source,i,`Invalid character within String: ${O(e,i)}.`)}throw I(e.source,i,"Unterminated string.")}function Se(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const s=n.charCodeAt(t+i++);if(s===125){if(i<5||!D(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|k(s),r<0)break}throw I(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function be(e,t){const n=e.source.body,r=q(n,t+2);if(D(r))return{value:String.fromCodePoint(r),size:6};if(te(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const i=q(n,t+8);if(ne(i))return{value:String.fromCodePoint(r,i),size:12}}throw I(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function q(e,t){return k(e.charCodeAt(t))<<12|k(e.charCodeAt(t+1))<<8|k(e.charCodeAt(t+2))<<4|k(e.charCodeAt(t+3))}function k(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Re(e,t){const 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:` 10`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw I(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Le(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,s=t+3,a=s,h="";const p=[];for(;s<r;){const c=n.charCodeAt(s);if(c===34&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34){h+=n.slice(a,s),p.push(h);const d=N(e,o.BLOCK_STRING,t,s+3,Oe(p).join(` 11`));return e.line+=p.length-1,e.lineStart=i,d}if(c===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){h+=n.slice(a,s),a=s+1,s+=4;continue}if(c===10||c===13){h+=n.slice(a,s),p.push(h),c===13&&n.charCodeAt(s+1)===10?s+=2:++s,h="",a=s,i=s;continue}if(D(c))++s;else if(L(n,s))s+=2;else throw I(e.source,s,`Invalid character within String: ${O(e,s)}.`)}throw I(e.source,s,"Unterminated string.")}function we(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const s=n.charCodeAt(i);if(_e(s))++i;else break}return N(e,o.NAME,t,i,n.slice(t,i))}var Fe=10,ie=2;function re(e){return w(e,[])}function w(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Pe(e,t);default:return String(e)}}function Pe(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(Me(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:w(r,n)}else if(Array.isArray(e))return Ue(e,n);return Ve(e,n)}function Me(e){return typeof e.toJSON=="function"}function Ve(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>ie?"["+Be(e)+"]":"{ "+n.map(([r,i])=>r+": "+w(i,t)).join(", ")+" }"}function Ue(e,t){if(e.length===0)return"[]";if(t.length>ie)return"[Array]";const n=Math.min(Fe,e.length),r=e.length-n,i=[];for(let s=0;s<n;++s)i.push(w(e[s],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function Be(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var je=globalThis.process&&!0,$e=je?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;const i=n.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name)){const s=re(t);throw new Error(`Cannot use ${i} "${s}" from another module or realm. 12 13Ensure that there is only one instance of "graphql" in the node_modules 14directory. If different versions of "graphql" are the dependencies of other 15relied on modules, use "resolutions" to ensure only one version is installed. 16 17https://yarnpkg.com/en/docs/selective-version-resolutions 18 19Duplicate "graphql" modules cannot be used at the same time since different 20versions may have different capabilities and behavior. The data from one 21version used in the function from another could produce confusing and 22spurious results.`)}}return!1},se=class{constructor(e,t="GraphQL request",n={line:1,column:1}){typeof e=="string"||P(!1,`Body must be a string. Received: ${re(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||P(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||P(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function Ge(e){return $e(e,se)}function Ye(e,t){const n=new Je(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}var Je=class{constructor(e,t={}){const{lexer:n,...r}=t;if(n)this._lexer=n;else{const i=Ge(e)?e:new se(e);this._lexer=new Ae(i)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(o.NAME);return this.node(e,{kind:u.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:u.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===o.BRACE_L)throw I(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===o.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()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw I(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(t.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(e,{kind:u.OPERATION_DEFINITION,operation:v.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let r;return this.peek(o.NAME)&&(r=this.parseName()),this.node(e,{kind:u.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(o.NAME);switch(e.value){case"query":return v.QUERY;case"mutation":return v.MUTATION;case"subscription":return v.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:u.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(e,{kind:u.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:u.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(o.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:u.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,t,o.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(o.COLON),this.node(t,{kind:u.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(o.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(o.NAME)?this.node(e,{kind:u.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:u.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:u.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:u.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case o.BRACKET_L:return this.parseList(e);case o.BRACE_L:return this.parseObject(e);case o.INT:return this.advanceLexer(),this.node(t,{kind:u.INT,value:t.value});case o.FLOAT:return this.advanceLexer(),this.node(t,{kind:u.FLOAT,value:t.value});case o.STRING:case o.BLOCK_STRING:return this.parseStringLiteral();case o.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:u.BOOLEAN,value:!0});case"false":return this.node(t,{kind:u.BOOLEAN,value:!1});case"null":return this.node(t,{kind:u.NULL});default:return this.node(t,{kind:u.ENUM,value:t.value})}case o.DOLLAR:if(e)if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){const n=this._lexer.token.value;throw I(this._lexer.source,t.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(t);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:u.STRING,value:e.value,block:e.kind===o.BLOCK_STRING})}parseList(e){const t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:u.LIST,values:this.any(o.BRACKET_L,t,o.BRACKET_R)})}parseObject(e){const t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:u.OBJECT,fields:this.any(o.BRACE_L,t,o.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(o.COLON),this.node(t,{kind:u.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(o.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(o.AT),this.node(t,{kind:u.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(o.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(o.BRACKET_R),t=this.node(e,{kind:u.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(e,{kind:u.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:u.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(o.STRING)||this.peek(o.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(e,{kind:u.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(o.COLON);const n=this.parseNamedType();return this.node(e,{kind:u.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:u.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:u.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(o.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseFieldDefinition,o.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(o.COLON);const i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:u.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(o.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(o.EQUALS)&&(i=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:u.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:u.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:u.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(o.EQUALS)?this.delimitedMany(o.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:u.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:u.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw I(this._lexer.source,this._lexer.token.start,`${S(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:u.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(o.BRACE_L,this.parseInputValueDef,o.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===o.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();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(t.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:u.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:u.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:u.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:u.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:u.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:u.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:u.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,f
22ields:r})}parseDirectiveDefinitionExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(o.AT);const t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:u.DIRECTIVE_EXTENSION,name:t,directives:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:u.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,directives:i,repeatable:s,locations:a})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(U,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(o.AT),n=this.parseName();let r;!t&&this.expectOptionalToken(o.DOT)&&(r=this.parseName());let i;return(t||r)&&this.expectOptionalToken(o.PAREN_L)&&(i=this.parseName(),this.expectToken(o.COLON),this.expectToken(o.PAREN_R)),t?i?this.node(e,{kind:u.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(e,{kind:u.DIRECTIVE_COORDINATE,name:n}):r?i?this.node(e,{kind:u.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:u.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:u.TYPE_COORDINATE,name:n})}node(e,t){return this._options.noLocation!==!0&&(t.loc=new Ne(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw I(this._lexer.source,t.start,`Expected ${oe(e)}, found ${S(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const t=this._lexer.token;if(t.kind===o.NAME&&t.value===e)this.advanceLexer();else throw I(this._lexer.source,t.start,`Expected "${e}", found ${S(t)}.`)}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===o.NAME&&t.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const t=e??this._lexer.token;return I(this._lexer.source,t.start,`Unexpected ${S(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}return[]}many(e,t,n){this.expectToken(e);const r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==o.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw I(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function S(e){const t=e.value;return oe(e.kind)+(t!=null?` "${t}"`:"")}function oe(e){return De(e)?`"${e}"`:e}
22var j=function(e,t){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},j(e,t)};function ct(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");j(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var R=function(){return R=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},R.apply(this,arguments)};function lt(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function h(d){try{c(r.next(d))}catch(T){a(T)}}function p(d){try{c(r.throw(d))}catch(T){a(T)}}function c(d){d.done?s(d.value):i(d.value).then(h,p)}c((r=r.apply(e,t||[])).next())})}function ut(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=h(0),a.throw=h(1),a.return=h(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function h(c){return function(d){return p([c,d])}}function p(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(d){c=[6,d],i=0}finally{r=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function X(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ht(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(h){a={error:h}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s}function pt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function $(e){return this instanceof $?(this.v=e,this):new $(e)}function dt(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),h("next"),h("throw"),h("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(f){return function(l){return Promise.resolve(l).then(f,T)}}function h(f,l){r[f]&&(i[f]=function(m){return new Promise(function(y,F){s.push([f,m,y,F])>1||p(f,m)})},l&&(i[f]=l(i[f])))}function p(f,l){try{c(r[f](l))}catch(m){E(s[0][3],m)}}function c(f){f.value instanceof $?Promise.resolve(f.value.v).then(d,T):E(s[0][2],f)}function d(f){p("next",f)}function T(f){p("throw",f)}function E(f,l){f(l),s.shift(),s.length&&p(s[0][0],s[0][1])}}function ft(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof X=="function"?X(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(a){return new Promise(function(h,p){a=e[s](a),i(h,p,a.done,a.value)})}}function i(s,a,h,p){Promise.resolve(p).then(function(c){s({value:c,done:h})},a)}}var b=new Map,G=new Map,ae=!0,x=!1;function ce(e){return e.replace(/[\s,]+/g," ").trim()}function Qe(e){return ce(e.source.body.substring(e.start,e.end))}function qe(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var i=r.name.value,s=Qe(r.loc),a=G.get(i);a&&!a.has(s)||a||G.set(i,a=new Set),a.add(s),t.has(s)||(t.add(s),n.push(r))}else n.push(r)}),R(R({},e),{definitions:n})}function Xe(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(i){var s=r[i];s&&typeof s=="object"&&t.add(s)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function ze(e){var t=ce(e);if(!b.has(t)){var n=Ye(e,{experimentalFragmentVariables:x,allowLegacyFragmentVariables:x,experimentalFragmentArguments:x});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");b.set(t,Xe(qe(n)))}return b.get(t)}function A(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];typeof e=="string"&&(e=[e]);var r=e[0];return t.forEach(function(i,s){i&&i.kind==="Document"?r+=i.loc.source.body:r+=i,r+=e[s+1]}),ze(r)}function We(){b.clear(),G.clear()}function He(){ae=!1}function Ze(){x=!0}function Ke(){x=!1}var g={gql:A,resetCaches:We,disableFragmentWarnings:He,enableExperimentalFragmentVariables:Ze,disableExperimentalFragmentVariables:Ke};(function(e){e.gql=g.gql,e.resetCaches=g.resetCaches,e.disableFragmentWarnings=g.disableFragmentWarnings,e.enableExperimentalFragmentVariables=g.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=g.disableExperimentalFragmentVariables})(A||(A={}));A.default=A;var et=A,tt=et` 23 query pickBrand($nick: String, $soft: String, $defaultbrandnick: String, $hostname: String, $uri: String) { 24 pickBrand(nick: $nick, soft: $soft, defaultbrandnick: $defaultbrandnick, hostname: $hostname, uri: $uri) 25 } 26`,nt=e=>e?e==="index.html"||e==="/index.html"?"/":e.indexOf("/")===0?e:`/${e}`:"",Y=e=>typeof e=="string"&&(e.startsWith("http:")||e.startsWith("https:")||e.startsWith("//")),z=e=>{const t=e.to||e.href;return t?Y(t)?t:nt(t):!1};function Et(e){const t=ue(!1),{$apollo:n}=le(),r=(E,f,l)=>(l&&l.preventDefault(),f.push(E),!1),i=(E,f=null)=>{if(E.nick||E.soft)return{click:()=>_(t)?!1:d(E.nick,E.soft)};if(f){const l=z(E);if(typeof l=="string"&&!Y(l))return{click:m=>r(l,f,m)}}return{}},s=(E,f=null)=>{const l={...E},m=z(l);
26if(delete l.href,delete l.to,m&&typeof m=="string"&&(Y(m)||f?l.href=m:l.to=m),l.class=l.meta?.hideOn?[`d-${l.meta?.hideOn}-none`]:l.class?[l.class]:[],!E.href&&!E.to){if(l.external=!0,l.rel="external nofollow noopener noreferrer",!l.nick&&!l.soft)return{custom:!0};l.class.push({ldsdualring:_(t)}),l.class.push("lead"),l.href="#"}const y=f?{to:l.to,href:l.href,class:l.class}:l;return Object.fromEntries(Object.entries(y).filter(([,F])=>F))};let a=_(e)?.download?.url;const h=_(e)?.defaultNick,p=async(E=null,f=null)=>{if(a)return;const l=_(e).uri==="index.html"?"/":"/"+_(e).uri,m={nick:E,soft:f,defaultbrandnick:h,hostname:_(e).hostname,uri:l};try{const y=(await n.query({query:tt,variables:m}))?.data?.pickBrand;if(!y)return;a=y?.download||y?.downloads?.casino,window&&(!y||y.tracked)&&(_(e).anl?.type==="gtm"?(window.dataLayer=window.dataLayer??[]).push({event:"lead",brand:y.title,vendor:y.Vendor,price:y.popularity,content_type:_(e).typename}):_(e).anl?.type==="matomo"&&(window._paq=window._paq??[]).push(["trackEvent","downloads",y.title,y.Vendor,y.popularity]))}catch{}},c=()=>{a&&he(a,{external:!0})},d=async(E=null,f=null)=>{t.value=!0,await p(E,f),setTimeout(()=>t.value=!1,2e4),c()};return{lead:d,loadingLead:()=>t,makeAttrs:s,makeClick:i,loading:t}}export{Ie as _,ft as a,ct as c,pt as d,X as f,v as g,u as h,dt as i,ut as l,at as m,Et as n,$ as o,re as p,et as r,lt as s,z as t,ht as u,ot as v,P as y};
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.