PageSourceSearch

https://www.mobility.siemens.com/_nuxt/BNaNZye7.js

js siemens.com collected 2026-09-24 08:24:09 UTC 30,867 bytes, 22 lines download raw bytes

1import{bc as G,bd as y,be as $,bf as X,bg as H,bh as j,bi as R,bj as a,bk as O,bl as Z,bm as M}from"#entry";function ee(n){return typeof n=="object"&&n!==null}function te(n,e){if(!!!n)throw new Error("Unexpected invariant triggered.")}const ne=/\r\n|[\n\r]/g;function L(n,e){let t=0,i=1;for(const s of n.body.matchAll(ne)){if(typeof s.index=="number"||te(!1),s.index>=e)break;t=s.index+s[0].length,i+=1}return{line:i,column:e+1-t}}function se(n){return K(n.source,L(n.source,n.start))}function K(n,e){const t=n.locationOffset.column-1,i="".padStart(t)+n.body,s=e.line-1,r=n.locationOffset.line-1,c=e.line+r,h=e.line===1?t:0,d=e.column+h,E=`${n.name}:${c}:${d}
2`,u=i.split(/\r\n|[\n\r]/g),x=u[s];if(x.length>120){const m=Math.floor(d/80),b=d%80,f=[];for(let T=0;T<x.length;T+=80)f.push(x.slice(T,T+80));return E+B([[`${c} |`,f[0]],...f.slice(1,m+1).map(T=>["|",T]),["|","^".padStart(b)],["|",f[m+1]]])}return E+B([[`${c-1} |`,u[s-1]],[`${c} |`,x],["|","^".padStart(d)],[`${c+1} |`,u[s+1]]])}function B(n){const e=n.filter(([i,s])=>s!==void 0),t=Math.max(...e.map(([i])=>i.length));return e.map(([i,s])=>i.padStart(t)+(s?" "+s:"")).join(`
3`)}function ie(n){const e=n[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:n[1],positions:n[2],path:n[3],originalError:n[4],extensions:n[5]}:e}class P extends Error{constructor(e,...t){var i,s,r;const{nodes:c,source:h,positions:d,path:E,originalError:u,extensions:x}=ie(t);super(e),this.name="GraphQLError",this.path=E??void 0,this.originalError=u??void 0,this.nodes=U(Array.isArray(c)?c:c?[c]:void 0);const m=U((i=this.nodes)===null||i===void 0?void 0:i.map(f=>f.loc).filter(f=>f!=null));this.source=h??(m==null||(s=m[0])===null||s===void 0?void 0:s.source),this.positions=d??m?.map(f=>f.start),this.locations=d&&h?d.map(f=>L(h,f)):m?.map(f=>L(f.source,f.start));const b=ee(u?.extensions)?u?.extensions:void 0;this.extensions=(r=x??b)!==null&&r!==void 0?r: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}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,P):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+=`
4
5`+se(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+=`
6
7`+K(this.source,t);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function U(n){return n===void 0||n.length===0?void 0:n}function l(n,e,t){return new P(`Syntax Error: ${t}`,{source:n,positions:[e]})}var w;(function(n){n.QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",n.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"})(w||(w={}));var o;(function(n){n.SOF="<SOF>",n.EOF="<EOF>",n.BANG="!",n.DOLLAR="$",n.AMP="&",n.PAREN_L="(",n.PAREN_R=")",n.DOT=".",n.SPREAD="...",n.COLON=":",n.EQUALS="=",n.AT="@",n.BRACKET_L="[",n.BRACKET_R="]",n.BRACE_L="{",n.PIPE="|",n.BRACE_R="}",n.NAME="Name",n.INT="Int",n.FLOAT="Float",n.STRING="String",n.BLOCK_STRING="BlockString",n.COMMENT="Comment"})(o||(o={}));class re{constructor(e){const t=new G(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=ae(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===o.COMMENT);return e}}function oe(n){return n===o.BANG||n===o.DOLLAR||n===o.AMP||n===o.PAREN_L||n===o.PAREN_R||n===o.DOT||n===o.SPREAD||n===o.COLON||n===o.EQUALS||n===o.AT||n===o.BRACKET_L||n===o.BRACKET_R||n===o.BRACE_L||n===o.PIPE||n===o.BRACE_R}function I(n){return n>=0&&n<=55295||n>=57344&&n<=1114111}function g(n,e){return Y(n.charCodeAt(e))&&q(n.charCodeAt(e+1))}function Y(n){return n>=55296&&n<=56319}function q(n){return n>=56320&&n<=57343}function N(n,e){const t=n.source.body.codePointAt(e);if(t===void 0)return o.EOF;if(t>=32&&t<=126){const i=String.fromCodePoint(t);return i==='"'?`'"'`:`"${i}"`}return"U+"+t.toString(16).toUpperCase().padStart(4,"0")}function p(n,e,t,i,s){const r=n.line,c=1+t-n.lineStart;return new G(e,t,i,r,c,s)}function ae(n,e){const t=n.source.body,i=t.length;let s=e;for(;s<i;){const r=t.charCodeAt(s);switch(r){case 65279:case 9:case 32:case 44:++s;continue;case 10:++s,++n.line,n.lineStart=s;continue;case 13:t.charCodeAt(s+1)===10?s+=2:++s,++n.line,n.lineStart=s;continue;case 35:return ce(n,s);case 33:return p(n,o.BANG,s,s+1);case 36:return p(n,o.DOLLAR,s,s+1);case 38:return p(n,o.AMP,s,s+1);case 40:return p(n,o.PAREN_L,s,s+1);case 41:return p(n,o.PAREN_R,s,s+1);case 46:if(t.charCodeAt(s+1)===46&&t.charCodeAt(s+2)===46)return p(n,o.SPREAD,s,s+3);break;case 58:return p(n,o.COLON,s,s+1);case 61:return p(n,o.EQUALS,s,s+1);case 64:return p(n,o.AT,s,s+1);case 91:return p(n,o.BRACKET_L,s,s+1);case 93:return p(n,o.BRACKET_R,s,s+1);case 123:return p(n,o.BRACE_L,s,s+1);case 124:return p(n,o.PIPE,s,s+1);case 125:return p(n,o.BRACE_R,s,s+1);case 34:return t.charCodeAt(s+1)===34&&t.charCodeAt(s+2)===34?fe(n,s):pe(n,s)}if(y(r)||r===45)return he(n,s,r);if($(r))return Ee(n,s);throw l(n.source,s,r===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:I(r)||g(t,s)?`Unexpected character: ${N(n,s)}.`:`Invalid character: ${N(n,s)}.`)}return p(n,o.EOF,i,i)}function ce(n,e){const t=n.source.body,i=t.length;let s=e+1;for(;s<i;){const r=t.charCodeAt(s);if(r===10||r===13)break;if(I(r))++s;else if(g(t,s))s+=2;else break}return p(n,o.COMMENT,e,s,t.slice(e+1,s))}function he(n,e,t){const i=n.source.body;let s=e,r=t,c=!1;if(r===45&&(r=i.charCodeAt(++s)),r===48){if(r=i.charCodeAt(++s),y(r))throw l
7(n.source,s,`Invalid number, unexpected digit after 0: ${N(n,s)}.`)}else s=S(n,s,r),r=i.charCodeAt(s);if(r===46&&(c=!0,r=i.charCodeAt(++s),s=S(n,s,r),r=i.charCodeAt(s)),(r===69||r===101)&&(c=!0,r=i.charCodeAt(++s),(r===43||r===45)&&(r=i.charCodeAt(++s)),s=S(n,s,r),r=i.charCodeAt(s)),r===46||$(r))throw l(n.source,s,`Invalid number, expected digit but got: ${N(n,s)}.`);return p(n,c?o.FLOAT:o.INT,e,s,i.slice(e,s))}function S(n,e,t){if(!y(t))throw l(n.source,e,`Invalid number, expected digit but got: ${N(n,e)}.`);const i=n.source.body;let s=e+1;for(;y(i.charCodeAt(s));)++s;return s}function pe(n,e){const t=n.source.body,i=t.length;let s=e+1,r=s,c="";for(;s<i;){const h=t.charCodeAt(s);if(h===34)return c+=t.slice(r,s),p(n,o.STRING,e,s+1,c);if(h===92){c+=t.slice(r,s);const d=t.charCodeAt(s+1)===117?t.charCodeAt(s+2)===123?ue(n,s):le(n,s):de(n,s);c+=d.value,s+=d.size,r=s;continue}if(h===10||h===13)break;if(I(h))++s;else if(g(t,s))s+=2;else throw l(n.source,s,`Invalid character within String: ${N(n,s)}.`)}throw l(n.source,s,"Unterminated string.")}function ue(n,e){const t=n.source.body;let i=0,s=3;for(;s<12;){const r=t.charCodeAt(e+s++);if(r===125){if(s<5||!I(i))break;return{value:String.fromCodePoint(i),size:s}}if(i=i<<4|k(r),i<0)break}throw l(n.source,e,`Invalid Unicode escape sequence: "${t.slice(e,e+s)}".`)}function le(n,e){const t=n.source.body,i=V(t,e+2);if(I(i))return{value:String.fromCodePoint(i),size:6};if(Y(i)&&t.charCodeAt(e+6)===92&&t.charCodeAt(e+7)===117){const s=V(t,e+8);if(q(s))return{value:String.fromCodePoint(i,s),size:12}}throw l(n.source,e,`Invalid Unicode escape sequence: "${t.slice(e,e+6)}".`)}function V(n,e){return k(n.charCodeAt(e))<<12|k(n.charCodeAt(e+1))<<8|k(n.charCodeAt(e+2))<<4|k(n.charCodeAt(e+3))}function k(n){return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:-1}function de(n,e){const t=n.source.body;switch(t.charCodeAt(e+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:`
8`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw l(n.source,e,`Invalid character escape sequence: "${t.slice(e,e+2)}".`)}function fe(n,e){const t=n.source.body,i=t.length;let s=n.lineStart,r=e+3,c=r,h="";const d=[];for(;r<i;){const E=t.charCodeAt(r);if(E===34&&t.charCodeAt(r+1)===34&&t.charCodeAt(r+2)===34){h+=t.slice(c,r),d.push(h);const u=p(n,o.BLOCK_STRING,e,r+3,X(d).join(`
9`));return n.line+=d.length-1,n.lineStart=s,u}if(E===92&&t.charCodeAt(r+1)===34&&t.charCodeAt(r+2)===34&&t.charCodeAt(r+3)===34){h+=t.slice(c,r),c=r+1,r+=4;continue}if(E===10||E===13){h+=t.slice(c,r),d.push(h),E===13&&t.charCodeAt(r+1)===10?r+=2:++r,h="",c=r,s=r;continue}if(I(E))++r;else if(g(t,r))r+=2;else throw l(n.source,r,`Invalid character within String: ${N(n,r)}.`)}throw l(n.source,r,"Unterminated string.")}function Ee(n,e){const t=n.source.body,i=t.length;let s=e+1;for(;s<i;){const r=t.charCodeAt(s);if(H(r))++s;else break}return p(n,o.NAME,e,s,t.slice(e,s))}const me=globalThis.process&&!0,xe=me?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if(typeof e=="object"&&e!==null){var i;const s=t.prototype[Symbol.toStringTag],r=Symbol.toStringTag in e?e[Symbol.toStringTag]:(i=e.constructor)===null||i===void 0?void 0:i.name;if(s===r){const c=j(e);throw new Error(`Cannot use ${s} "${c}" from another module or realm.
10
11Ensure that there is only one instance of "graphql" in the node_modules
12directory. If different versions of "graphql" are the dependencies of other
13relied on modules, use "resolutions" to ensure only one version is installed.
14
15https://yarnpkg.com/en/docs/selective-version-resolutions
16
17Duplicate "graphql" modules cannot be used at the same time since different
18versions may have different capabilities and behavior. The data from one
19version used in the function from another could produce confusing and
20spurious results.`)}}return!1};class Q{constructor(e,t="GraphQL request",i={line:1,column:1}){typeof e=="string"||R(!1,`Body must be a string. Received: ${j(e)}.`),this.body=e,this.name=t,this.locationOffset=i,this.locationOffset.line>0||R(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||R(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function Ne(n){return xe(n,Q)}function Te(n,e){const t=new Ie(n,e),i=t.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:t.tokenCount}),i}class Ie{constructor(e,t={}){const{lexer:i,...s}=t;if(i)this._lexer=i;else{const r=Ne(e)?e:new Q(e);this._lexer=new re(r)}this._options=s,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(o.NAME);return this.node(e,{kind:a.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.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;
20if(e&&t.kind===o.BRACE_L)throw l(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 l(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:a.OPERATION_DEFINITION,operation:O.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),i=this.parseOperationType();let s;return this.peek(o.NAME)&&(s=this.parseName()),this.node(e,{kind:a.OPERATION_DEFINITION,operation:i,description:t,name:s,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(o.NAME);switch(e.value){case"query":return O.QUERY;case"mutation":return O.MUTATION;case"subscription":return O.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:a.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:a.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.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 i,s;return this.expectOptionalToken(o.COLON)?(i=t,s=this.parseName()):s=t,this.node(e,{kind:a.FIELD,alias:i,name:s,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,i=this.parseName();return this.expectToken(o.COLON),this.node(t,{kind:a.ARGUMENT,name:i,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:a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.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:a.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:a.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:a.INT,value:t.value});case o.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.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:a.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.NULL});default:return this.node(t,{kind:a.ENUM,value:t.value})}case o.DOLLAR:if(e)if(this.expectToken(o.DOLLAR),this._lexer.token.kind===o.NAME){const i=this._lexer.token.value;throw l(this._lexer.source,t.start,`Unexpected variable "$${i}" 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:a.STRING,value:e.value,block:e.kind===o.BLOCK_STRING})}parseList(e){const t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:a.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:a.OBJECT,fields:this.any(o.BRACE_L,t,o.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,i=this.parseName();return this.expectToken(o.COLON),this.node(t,{kind:a.OBJECT_FIELD,name:i,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:a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(o.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(o.BRACKET_R),t=this.node(e,{kind:a.LIST_TYPE,type:i})}else t=this.parseNamedType();return this.expectOptionalToken(o.BANG)?this.node(e,{kind:a.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:a.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 i=this.parseConstDirectives(),s=this.many(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);return this.node(e,{kind:a.SCHEMA_DEFINITION,description:t,directives:i,operationTypes:s})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(o.COLON);const i=this.parseNamedType();return this.node(e,{kind:a.OPERATION_TYPE_DEFINITION,operation:t,type:i})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),s=this.parseConstDirectives();return this.node(e,{kind:a.SCALAR_TYPE_DEFINITION,description:t,name:i,directives:s})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),s=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(e,{kind:a.OBJECT_TYPE_DEFINITION,description:t,name:i,interfaces:s,directives:r,fields:c})}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(),i=this.parseName(),s=this.parseArgumentDefs();this.expectToken(o.COLON);const r=this.parseTypeReference(),c=this.parseConstDirectives();return this.node(e,{kind:a.FIELD_DEFINITION,description:t,name:i,arguments:s,type:r,directives:c})}parseArgumentDefs(){return this.optionalMany(o.PAREN_L,this.parseInputValueDef,o.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),i=this.parseName();this.expectToken(o.COLON);const s=this.parseTypeReference();let r;this.expectOptionalToken(o.EQUALS)&&(r=this.parseConstValueLiteral());const c=this.parseConstDirectives();return this.node(e,{kind:a.INPUT_VALUE_DEFINITION,description:t,name:i,type:s,defaultValue:r,directives:c})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),s=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(e,{kind:a.INTERFACE_TYPE_DEFINITION,description:t,name:i,interfaces:s,directives:r,fields:c})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),s=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:a.UNION_TYPE_DEFINITION,description:t,name:i,directives:s,types:r})}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 i=this.parseName(),s=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:a.ENUM_TYPE_DEFINITION,description:t,name:i,directives:s,values:r})}parseEnumValuesDefinition(){return this.optionalMany(o.BRACE_L,this.parseEnumValueDefinition,o.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),i=this.parseEnumValueName(),s=this.parseConstDirectives();return this.node(e,{kind:a.ENUM_VALUE_DEFINITION,description:t,name:i,directives:s})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw l(this._lexer.source,this._lexer.token.start,`${v(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 i=this.parseName(),s=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:i,directives:s,fields:r})}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();break}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),i=this.optionalMany(o.BRACE_L,this.parseOperationTypeDefinition,o.BRACE_R);if(t.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:a.SCHEMA_EXTENSION,directives:t,operationTypes:i})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(e,{kind:a.SCALAR_TYPE_EXTENSION,name:t,directives:i})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(i.length===0&&s.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:a.OBJECT_TYPE_EXTENSION,name:t,interfaces:i,directives:s,fields:r})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),i=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(i.length===0&&s.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:a.INTERFACE_TYPE_EXTENSION,name:t,interfaces:i,directives:s,fields:r})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),i=this.parseConstDirectives(),s=this.parseUnionMemberTypes();if(i.length===0&&s.length===0)throw this.unexpected();return this.node(e,{kind:a.UNION_TYPE_EXTENSION,name:t,directives:i,types:s})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),i=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();if(i.length===0&&s.length===0)throw this.unexpected();return this.node(e,{kind:a.ENUM_TYPE_EXTENSION,name:t,directives:i,values:s})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),i=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();if(i.length===0&&s.length===0)throw this.unexpected();return this.node(e,{kind:a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:i,fields:s})}parseDirectiveDefinitionExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(o.AT);const t=this.parseName(),i=this.parseConstDirectives();if(i.length===0)throw this.unexpected();return this.node(e,{kind:a.DIRECTIVE_EXTENSION,name:t,directives:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(o.AT);const i=this.parseName(),s=this.parseArgumentDefs(),r=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],c=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const h=this.parseDirectiveLocations();return this.node(e,{kind:a.DIRECTIVE_DEFINITION,description:t,name:i,arguments:s,directives:r,repeatable:c,locations:h})}parseDirectiveLocations(){return this.delimitedMany(o.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(w,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(o.AT),i=this.parseName();let s;!t&&this.expectOptionalToken(o.DOT)&&(s=this.parseName());let r;return(t||s)&&this.expectOptionalToken(o.PAREN_L)&&(r=this.parseName(),this.expectToken(o.COLON),this.expectToken(o.PAREN_R)),t?r?this.node(e,{kind:a.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:r}):this.node(e,{kind:a.DIRECTIVE_COORDINATE,name:i}):s?r?this.node(e,{kind:a.ARGUMENT_COORDINATE,name:i,fieldName:s,argumentName:r}):this.node(e,{kind:a.MEMBER_COORDINATE,name:i,memberName:s}):this.node(e,{kind:a.TYPE_COORDINATE,name:i})}node(e,t){return this._options.noLocation!==!0&&(t.loc=new Z(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 l(this._lexer.source,t.start,`Expected ${z(e)}, found ${v(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 l(this._lexer.source,t.start,`Expected "${e}", found ${v(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 
20l(this._lexer.source,t.start,`Unexpected ${v(t)}.`)}any(e,t,i){this.expectToken(e);const s=[];for(;!this.expectOptionalToken(i);)s.push(t.call(this));return s}optionalMany(e,t,i){if(this.expectOptionalToken(e)){const s=[];do s.push(t.call(this));while(!this.expectOptionalToken(i));return s}return[]}many(e,t,i){this.expectToken(e);const s=[];do s.push(t.call(this));while(!this.expectOptionalToken(i));return s}delimitedMany(e,t){this.expectOptionalToken(e);const i=[];do i.push(t.call(this));while(this.expectOptionalToken(e));return i}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==o.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw l(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function v(n){const e=n.value;return z(n.kind)+(e!=null?` "${e}"`:"")}function z(n){return oe(n)?`"${n}"`:n}var C=new Map,F=new Map,J=!0,D=!1;function W(n){return n.replace(/[\s,]+/g," ").trim()}function Ae(n){return W(n.source.body.substring(n.start,n.end))}function ke(n){var e=new Set,t=[];return n.definitions.forEach(function(i){if(i.kind==="FragmentDefinition"){var s=i.name.value,r=Ae(i.loc),c=F.get(s);c&&!c.has(r)?J&&console.warn("Warning: fragment with name "+s+` already exists.
21graphql-tag enforces all fragment names across your application to be unique; read more about
22this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):c||F.set(s,c=new Set),c.add(r),e.has(r)||(e.add(r),t.push(i))}else t.push(i)}),M(M({},n),{definitions:t})}function _e(n){var e=new Set(n.definitions);
22e.forEach(function(i){i.loc&&delete i.loc,Object.keys(i).forEach(function(s){var r=i[s];r&&typeof r=="object"&&e.add(r)})});var t=n.loc;return t&&(delete t.startToken,delete t.endToken),n}function Oe(n){var e=W(n);if(!C.has(e)){var t=Te(n,{experimentalFragmentVariables:D,allowLegacyFragmentVariables:D});if(!t||t.kind!=="Document")throw new Error("Not a valid GraphQL document.");C.set(e,_e(ke(t)))}return C.get(e)}function _(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];typeof n=="string"&&(n=[n]);var i=n[0];return e.forEach(function(s,r){s&&s.kind==="Document"?i+=s.loc.source.body:i+=s,i+=n[r+1]}),Oe(i)}function ve(){C.clear(),F.clear()}function Ce(){J=!1}function ye(){D=!0}function De(){D=!1}var A={gql:_,resetCaches:ve,disableFragmentWarnings:Ce,enableExperimentalFragmentVariables:ye,disableExperimentalFragmentVariables:De};(function(n){n.gql=A.gql,n.resetCaches=A.resetCaches,n.disableFragmentWarnings=A.disableFragmentWarnings,n.enableExperimentalFragmentVariables=A.enableExperimentalFragmentVariables,n.disableExperimentalFragmentVariables=A.disableExperimentalFragmentVariables})(_||(_={}));_.default=_;export{_ as g};

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.