PageSourceSearch

https://erxes.io/_next/static/chunks/3260-21492221423a6a8d.js

js erxes.io collected 2026-09-24 17:45:00 UTC 60,717 bytes, 13 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3260],{80751:function(e,t,i){var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==i.g&&i.g,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();(function(e){var t=void 0!==n&&n||"undefined"!=typeof self&&self||void 0!==i.g&&i.g||{},r={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(r.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function h(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function p(e){return new Promise(function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}})}function d(e){var t=new FileReader,i=p(t);return t.readAsArrayBuffer(e),i}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(r.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(r.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;r.arrayBuffer&&r.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return h(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(r.blob)return this.blob().then(d);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,r,n,s=h(this);if(s)return s;if(this._bodyBlob)return e=this._bodyBlob,i=p(t=new FileReader),n=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,n),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=Array(t.length),r=0;r<t.length;r++)i[r]=String.fromCharCode(t[r]);return i.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},r.formData&&(this.formData=function(){return this.text().then(T)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=a(e),t=l(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},c.prototype.delete=function(e){delete this.map[a(e)]},c.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},c.prototype.set=function(e,t){this.map[a(e)]=l(t)},c.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,i){e.push(i)}),u(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,i){e.push([i,t])}),u(e)},r.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var E=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function m(e,i){if(!(this instanceof m))throw TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var r,n,s=(i=i||{}).body;if(e instanceof m){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,i.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,s||null==e._bodyInit||(s=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=i.credentials||this.credentials||"same-origin",(i.headers||!this.headers)&&(this.headers=new c(i.headers)),this.method=(n=(r=i.method||this.method||"GET").toUpperCase(),E.indexOf(n)>-1?n:r),this.mode=i.mode||this.mode||null,this.signal=i.signal||this.signal||function(){if("AbortController"in t)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),("GET"===this.method||"HEAD"===this.method)&&("no-store"===i.cache||"no-cache"===i.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function T(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var i=e.split("="),r=i.shift().replace(/\+/g," "),n=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(n))}}),t}function v(e,t){if(!(this instanceof v))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},y.call(m.prototype),y.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var N=[301,302,303,307,308];v.redirect=function(e,t){if(-1===N.indexOf(t))throw RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function A(i,n){return new Promise(function(s,o){var u=new m(i,n);if(u.signal&&u.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var h=new XMLHttpRequest;function p(){h.abort()}if(h.onload=function(){var e,t,i={statusText:h.statusText,headers:(e=h.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var i=e.split(":"),r=i.shift().trim();if(r){var n=i.join(":").trim();try{t.append(r,n)}catch(e){console.warn("Response "+e.message)}}}),t)};0===u.url.indexOf("file://")&&(h.status<200||h.status>599)?i.status=200:i.status=h.status,i.url="responseURL"in h?h.responseURL:i.headers.get("X-Request-URL");var r="response"in h?h.response:h.responseText;setTimeout(function(){s(new v(r,i))},0)},h.onerror=function(){setTimeout(function(){o(TypeError("Network request failed"))},0)},h.ontimeout=function(){setTimeout(function(){o(TypeError("Network request timed out"))},0)},h.onabort=function(){setTimeout(function(){o(new e.DOMException("Aborted","AbortError"))},0)},h.open(u.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?h.withCredentials=!0:"omit"===u.credentials&&(h.withCredentials=!1),"responseType"in h&&(r.blob?h.responseType="blob":r.arrayBuffer&&(h.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof c||t.Headers&&n.headers instanceof t.Headers)){var d=[];
1Object.getOwnPropertyNames(n.headers).forEach(function(e){d.push(a(e)),h.setRequestHeader(e,l(n.headers[e]))}),u.headers.forEach(function(e,t){-1===d.indexOf(t)&&h.setRequestHeader(t,e)})}else u.headers.forEach(function(e,t){h.setRequestHeader(t,e)});u.signal&&(u.signal.addEventListener("abort",p),h.onreadystatechange=function(){4===h.readyState&&u.signal.removeEventListener("abort",p)}),h.send(void 0===u._bodyInit?null:u._bodyInit)})}A.polyfill=!0,t.fetch||(t.fetch=A,t.Headers=c,t.Request=m,t.Response=v),e.Headers=c,e.Request=m,e.Response=v,e.fetch=A,Object.defineProperty(e,"__esModule",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var s=r.fetch?r:n;(t=s.fetch).default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t},3260:function(e,t,i){"use strict";i.d(t,{WY:function(){return eb}});let r=JSON,n=e=>e.toUpperCase(),s=e=>{let t={};return e.forEach((e,i)=>{t[i]=e}),t},o=(e,t,i)=>e.document?e:{document:e,variables:t,requestHeaders:i,signal:void 0},a=(e,t,i)=>e.query?e:{query:e,variables:t,requestHeaders:i,signal:void 0},l=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},u=(e,t,...i)=>{let[r,n]=i;return e.document?e:{url:e,document:t,variables:r,requestHeaders:n,signal:void 0}},c=/\r\n|[\n\r]/g;function h(e,t){let i=0,r=1;for(let n of e.body.matchAll(c)){if("number"==typeof n.index||function(e,t){if(!e)throw Error("Unexpected invariant triggered.")}(!1),n.index>=t)break;i=n.index+n[0].length,r+=1}return{line:r,column:t+1-i}}function p(e,t){let i=e.locationOffset.column-1,r="".padStart(i)+e.body,n=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=1===t.line?i:0,l=t.column+a,u=`${e.name}:${o}:${l}
2`,c=r.split(/\r\n|[\n\r]/g),h=c[n];if(h.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<h.length;e+=80)t.push(h.slice(e,e+80));return u+d([[`${o} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+d([[`${o-1} |`,c[n-1]],[`${o} |`,h],["|","^".padStart(l)],[`${o+1} |`,c[n+1]]])}function d(e){let t=e.filter(([e,t])=>void 0!==t),i=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(i)+(t?" "+t:"")).join("\n")}class f extends Error{constructor(e,...t){var i,r,n,s;let{nodes:o,source:a,positions:l,path:u,originalError:c,extensions:p}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=c?c:void 0,this.nodes=y(Array.isArray(o)?o:o?[o]:void 0);let d=y(null===(i=this.nodes)||void 0===i?void 0:i.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==d?void 0:null===(r=d[0])||void 0===r?void 0:r.source,this.positions=null!=l?l:null==d?void 0:d.map(e=>e.start),this.locations=l&&a?l.map(e=>h(a,e)):null==d?void 0:d.map(e=>h(e.source,e.start));let E="object"==typeof(s=null==c?void 0:c.extensions)&&null!==s?null==c?void 0:c.extensions:void 0;this.extensions=null!==(n=null!=p?p:E)&&void 0!==n?n:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,f):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(let i of this.nodes)if(i.loc){var t;e+="\n\n"+p((t=i.loc).source,h(t.source,t.start))}}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+p(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function y(e){return void 0===e||0===e.length?void 0:e}function E(e,t,i){return new f(`Syntax Error: ${i}`,{source:e,positions:[t]})}class m{constructor(e,t,i){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class T{constructor(e,t,i,r,n,s){this.kind=e,this.start=t,this.end=i,this.line=r,this.column=n,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}}}let v={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:[],Float
2Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},N=new Set(Object.keys(v));function A(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&N.has(t)}function I(e){return 9===e||32===e}function O(e){return e>=48&&e<=57}function b(e){return e>=97&&e<=122||e>=65&&e<=90}function _(e){return b(e)||95===e}(ei=eo||(eo={})).QUERY="query",ei.MUTATION="mutation",ei.SUBSCRIPTION="subscription",(er=ea||(ea={})).QUERY="QUERY",er.MUTATION="MUTATION",er.SUBSCRIPTION="SUBSCRIPTION",er.FIELD="FIELD",er.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",er.FRAGMENT_SPREAD="FRAGMENT_SPREAD",er.INLINE_FRAGMENT="INLINE_FRAGMENT",er.VARIABLE_DEFINITION="VARIABLE_DEFINITION",er.SCHEMA="SCHEMA",er.SCALAR="SCALAR",er.OBJECT="OBJECT",er.FIELD_DEFINITION="FIELD_DEFINITION",er.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",er.INTERFACE="INTERFACE",er.UNION="UNION",er.ENUM="ENUM",er.ENUM_VALUE="ENUM_VALUE",er.INPUT_OBJECT="INPUT_OBJECT",er.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",(en=el||(el={})).NAME="Name",en.DOCUMENT="Document",en.OPERATION_DEFINITION="OperationDefinition",en.VARIABLE_DEFINITION="VariableDefinition",en.SELECTION_SET="SelectionSet",en.FIELD="Field",en.ARGUMENT="Argument",en.FRAGMENT_SPREAD="FragmentSpread",en.INLINE_FRAGMENT="InlineFragment",en.FRAGMENT_DEFINITION="FragmentDefinition",en.VARIABLE="Variable",en.INT="IntValue",en.FLOAT="FloatValue",en.STRING="StringValue",en.BOOLEAN="BooleanValue",en.NULL="NullValue",en.ENUM="EnumValue",en.LIST="ListValue",en.OBJECT="ObjectValue",en.OBJECT_FIELD="ObjectField",en.DIRECTIVE="Directive",en.NAMED_TYPE="NamedType",en.LIST_TYPE="ListType",en.NON_NULL_TYPE="NonNullType",en.SCHEMA_DEFINITION="SchemaDefinition",en.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",en.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",en.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",en.FIELD_DEFINITION="FieldDefinition",en.INPUT_VALUE_DEFINITION="InputValueDefinition",en.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",en.UNION_TYPE_DEFINITION="UnionTypeDefinition",en.ENUM_TYPE_DEFINITION="EnumTypeDefinition",en.ENUM_VALUE_DEFINITION="EnumValueDefinition",en.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",en.DIRECTIVE_DEFINITION="DirectiveDefinition",en.SCHEMA_EXTENSION="SchemaExtension",en.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",en.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",en.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",en.UNION_TYPE_EXTENSION="UnionTypeExtension",en.ENUM_TYPE_EXTENSION="EnumTypeExtension",en.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",en.TYPE_COORDINATE="TypeCoordinate",en.MEMBER_COORDINATE="MemberCoordinate",en.ARGUMENT_COORDINATE="ArgumentCoordinate",en.DIRECTIVE_COORDINATE="DirectiveCoordinate",en.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",(es=eu||(eu={})).SOF="<SOF>",es.EOF="<EOF>",es.BANG="!",es.DOLLAR="$",es.AMP="&",es.PAREN_L="(",es.PAREN_R=")",es.DOT=".",es.SPREAD="...",es.COLON=":",es.EQUALS="=",es.AT="@",es.BRACKET_L="[",es.BRACKET_R="]",es.BRACE_L="{",es.PIPE="|",es.BRACE_R="}
2",es.NAME="Name",es.INT="Int",es.FLOAT="Float",es.STRING="String",es.BLOCK_STRING="BlockString",es.COMMENT="Comment";class x{constructor(e){let t=new T(eu.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!==eu.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let i=e.source.body,r=i.length,n=t;for(;n<r;){let t=i.charCodeAt(n);switch(t){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++e.line,e.lineStart=n;continue;case 13:10===i.charCodeAt(n+1)?n+=2:++n,++e.line,e.lineStart=n;continue;case 35:return function(e,t){let i=e.source.body,r=i.length,n=t+1;for(;n<r;){let e=i.charCodeAt(n);if(10===e||13===e)break;if(D(e))++n;else if(g(i,n))n+=2;else break}return R(e,eu.COMMENT,t,n,i.slice(t+1,n))}(e,n);case 33:return R(e,eu.BANG,n,n+1);case 36:return R(e,eu.DOLLAR,n,n+1);case 38:return R(e,eu.AMP,n,n+1);case 40:return R(e,eu.PAREN_L,n,n+1);case 41:return R(e,eu.PAREN_R,n,n+1);case 46:if(46===i.charCodeAt(n+1)&&46===i.charCodeAt(n+2))return R(e,eu.SPREAD,n,n+3);break;case 58:return R(e,eu.COLON,n,n+1);case 61:return R(e,eu.EQUALS,n,n+1);case 64:return R(e,eu.AT,n,n+1);case 91:return R(e,eu.BRACKET_L,n,n+1);case 93:return R(e,eu.BRACKET_R,n,n+1);case 123:return R(e,eu.BRACE_L,n,n+1);case 124:return R(e,eu.PIPE,n,n+1);case 125:return R(e,eu.BRACE_R,n,n+1);case 34:if(34===i.charCodeAt(n+1)&&34===i.charCodeAt(n+2))return function(e,t){let i=e.source.body,r=i.length,n=e.lineStart,s=t+3,o=s,a="",l=[];for(;s<r;){let r=i.charCodeAt(s);if(34===r&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)){a+=i.slice(o,s),l.push(a);let r=R(e,eu.BLOCK_STRING,t,s+3,(function(e){var t,i;let r=Number.MAX_SAFE_INTEGER,n=null,s=-1;for(let t=0;t<e.length;++t){let o=e[t],a=function(e){let t=0;for(;t<e.length&&I(e.charCodeAt(t));)++t;return t}(o);a!==o.length&&(n=null!==(i=n)&&void 0!==i?i:t,s=t,0!==t&&a<r&&(r=a))}return e.map((e,t)=>0===t?e:e.slice(r)).slice(null!==(t=n)&&void 0!==t?t:0,s+1)})(l).join("\n"));return e.line+=l.length-1,e.lineStart=n,r}if(92===r&&34===i.charCodeAt(s+1)&&34===i.charCodeAt(s+2)&&34===i.charCodeAt(s+3)){a+=i.slice(o,s),o=s+1,s+=4;continue}if(10===r||13===r){a+=i.slice(o,s),l.push(a),13===r&&10===i.charCodeAt(s+1)?s+=2:++s,a="",o=s,n=s;continue}if(D(r))++s;else if(g(i,s))s+=2;else throw E(e.source,s,`Invalid character within String: ${S(e,s)}.`)}throw E(e.source,s,"Unterminated string.")}(e,n);return function(e,t){let i=e.source.body,r=i.length,n=t+1,s=n,o="";for(;n<r;){let r=i.charCodeAt(n);if(34===r)return o+=i.slice(s,n),R(e,eu.STRING,t,n+1,o);if(92===r){o+=i.slice(s,n);let t=117===i.charCodeAt(n+1)?123===i.charCodeAt(n+2)?function(e,t){let i=e.source.body,r=0,n=3;for(;n<12;){let e=i.charCodeAt(t+n++);if(125===e){if(n<5||!D(r))break;return{value:String.fromCodePoint(r),size:n}}if((r=r<<4|F(e))<0)break}throw E(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+n)}".`)}(e,n):function(e,t){let i=e.source.body,r=L(i,t+2);if(D(r))return{value:String.fromCodePoint(r),size:6};if(k(r)&&92===i.charCodeAt(t+6)&&117===i.charCodeAt(t+7)){let e=L(i,t+8);if(C(e))return{value:String.fromCodePoint(r,e),size:12}}throw E(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+6)}".`)}(e,n):function(e,t){let i=e.source.body;switch(i.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw E(e.source,t,`Invalid character escape sequence: "${i.slice(t,t+2)}".`)}(e,n);o+=t.value,n+=t.size,s=n;continue}if(10===r||13===r)break;if(D(r))++n;else if(g(i,n))n+=2;else throw E(e.source,n,`Invalid character within String: ${S(e,n)}.`)}throw E(e.source,n,"Unterminated string.")}(e,n)}if(O(t)||45===t)return function(e,t,i){let r=e.source.body,n=t,s=i,o=!1;if(45===s&&(s=r.charCodeAt(++n)),48===s){if(O(s=r.charCodeAt(++n)))throw E(e.source,n,`Invalid number, unexpected digit after 0: ${S(e,n)}.`)}else n=w(e,n,s),s=r.charCodeAt(n);if(46===s&&(o=!0,s=r.charCodeAt(++n),n=w(e,n,s),s=r.charCodeAt(n)),(69===s||101===s)&&(o=!0,(43===(s=r.charCodeAt(++n))||45===s)&&(s=r.charCodeAt(++n)),n=w(e,n,s),s=r.charCodeAt(n)),46===s||_(s))throw E(e.source,n,`Invalid number, expected digit but got: ${S(e,n)}.`);return R(e,o?eu.FLOAT:eu.INT,t,n,r.slice(t,n))}(e,n,t);if(_(t))return function(e,t){let i=e.source.body,r=i.length,n=t+1;for(;n<r;){var s;if(b(s=i.charCodeAt(n))||O(s)||95===s)++n;else break}return R(e,eu.NAME,t,n,i.slice(t,n))}(e,n);throw E(e.source,n,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":D(t)||g(i,n)?`Unexpected character: ${S(e,n)}.`:`Invalid character: ${S(e,n)}.`)}return R(e,eu.EOF,r,r)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===eu.COMMENT);return e}}function D(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function g(e,t){return k(e.charCodeAt(t))&&C(e.charCodeAt(t+1))}function k(e){return e>=55296&&e<=56319}function C(e){return e>=56320&&e<=57343}function S(e,t){let i=e.source.body.codePointAt(t);if(void 0===i)return eu.EOF;if(i>=32&&i<=126){let e=String.fromCodePoint(i);return'"'===e?"'\"'":`"${e}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function R(e,t,i,r,n){let s=e.line,o=1+i-e.lineStart;return new T(t,i,r,s,o,n)}function w(e,t,i){if(!O(i))throw E(e.source,t,`Invalid number, expected digit but got: ${S(e,t)}.`);let r=e.source.body,n=t+1;for(;O(r.charCodeAt(n));)++n;return n}function L(e,t){return F(e.charCodeAt(t))<<12|F(e.charCodeAt(t+1))<<8|F(e.charCodeAt(t+2))<<4|F(e.charCodeAt(t+3))}function F(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function P(e,t){if(!e)throw Error(t)}function B(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";let i=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:B(t,i)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";let i=Math.min(10,e.length),r=e.length-i,n=[];for(let r=0;r<i;++r)n.push(B(e[r],t));return 1===r?n.push("... 1 more item"):r>1&&n.push(`... ${r} more items`),"["+n.join(", ")+"]"}(e,i);return function(e,t){let i=Object.entries(e);return 0===i.length?"{}":t.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+i.map(([e,i])=>e+": "+B(i,t)).join(", ")+" }"}(e,i)}(e,t);default:return String(e)}}let U=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;
2if("object"==typeof e&&null!==e){var i;let r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(i=e.constructor)||void 0===i?void 0:i.name)){let t=B(e,[]);throw Error(`Cannot use ${r} "${t}" from another module or realm.
3
4Ensure that there is only one instance of "graphql" in the node_modules
5directory. If different versions of "graphql" are the dependencies of other
6relied on modules, use "resolutions" to ensure only one version is installed.
7
8https://yarnpkg.com/en/docs/selective-version-resolutions
9
10Duplicate "graphql" modules cannot be used at the same time since different
11versions may have different capabilities and behavior. The data from one
12version used in the function from another could produce confusing and
13spurious results.`)}}return!1};class M{constructor(e,t="GraphQL request",i={line:1,column:1}){"string"==typeof e||P(!1,`Body must be a string. Received: ${B(e,[])}.`),this.body=e,this.name=t,this.locationOffset=i,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"}}class j{constructor(e,t={}){let{lexer:i,...r}=t;if(i)this._lexer=i;else{let t=U(e,M)?e:new M(e);this._lexer=new x(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(eu.NAME);return this.node(e,{kind:el.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:el.DOCUMENT,definitions:this.many(eu.SOF,this.parseDefinition,eu.EOF)})}parseDefinition(){if(this.peek(eu.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===eu.BRACE_L)throw E(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===eu.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 E(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(eu.BRACE_L))return this.node(t,{kind:el.OPERATION_DEFINITION,operation:eo.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let i=this.parseDescription(),r=this.parseOperationType();return this.peek(eu.NAME)&&(e=this.parseName()),this.node(t,{kind:el.OPERATION_DEFINITION,operation:r,description:i,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(eu.NAME);switch(e.value){case"query":return eo.QUERY;case"mutation":return eo.MUTATION;case"subscription":return eo.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(eu.PAREN_L,this.parseVariableDefinition,eu.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:el.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(eu.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(eu.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(eu.DOLLAR),this.node(e,{kind:el.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:el.SELECTION_SET,selections:this.many(eu.BRACE_L,this.parseSelection,eu.BRACE_R)})}parseSelection(){return this.peek(eu.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let i=this._lexer.token,r=this.parseName();return this.expectOptionalToken(eu.COLON)?(e=r,t=this.parseName()):t=r,this.node(i,{kind:el.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(eu.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(eu.PAREN_L,t,eu.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,i=this.parseName();return this.expectToken(eu.COLON),this.node(t,{kind:el.ARGUMENT,name:i,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(eu.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(eu.NAME)?this.node(e,{kind:el.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:el.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:el.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:el.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case eu.BRACKET_L:return this.parseList(e);case eu.BRACE_L:return this.parseObject(e);case eu.INT:return this.advanceLexer(),this.node(t,{kind:el.INT,value:t.value});case eu.FLOAT:return this.advanceLexer(),this.node(t,{kind:el.FLOAT,value:t.value});case eu.STRING:case eu.BLOCK_STRING:return this.parseStringLiteral();case eu.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:el.BOOLEAN,value:!0});case"false":return this.node(t,{kind:el.BOOLEAN,value:!1});case"null":return this.node(t,{kind:el.NULL});default:return this.node(t,{kind:el.ENUM,value:t.value})}case eu.DOLLAR:if(e){if(this.expectToken(eu.DOLLAR),this._lexer.token.kind===eu.NAME){let e=this._lexer.token.value;throw E(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:el.STRING,value:e.value,block:e.kind===eu.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:el.LIST,values:this.any(eu.BRACKET_L,()=>this.parseValueLiteral(e),eu.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:el.OBJECT,fields:this.any(eu.BRACE_L,()=>this.parseObjectField(e),eu.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,i=this.parseName();return this.expectToken(eu.COLON),this.node(t,{kind:el.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(eu.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(eu.AT),this.node(t,{kind:el.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(eu.BRACKET_L)){let i=this.parseTypeReference();this.expectToken(eu.BRACKET_R),e=this.node(t,{kind:el.LIST_TYPE,type:i})}else e=this.parseNamedType();return this.expectOptionalToken(eu.BANG)?this.node(t,{kind:el.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:el.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(eu.STRING)||this.peek(eu.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let i=this.parseConstDirectives(),r=this.many(eu.BRACE_L,this.parseOperationTypeDefinition,eu.BRACE_R);return this.node(e,{kind:el.SCHEMA_DEFINITION,description:t,directives:i,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(eu.COLON);let i=this.parseNamedType();return this.node(e,{kind:el.OPERATION_TYPE_DEFINITION,operation:t,type:i})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let i=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:el.SCALAR_TYPE_DEFINITION,description:t,name:i,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let i=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:el.OBJECT_TYPE_DEFINITION,description:t,name:i,interfaces:r,directives:n,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(eu.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(eu.BRACE_L,this.parseFieldDefinition,eu.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(eu.COLON);let n=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:el.FIELD_DEFINITION,description:t,name:i,arguments:r,type:n,directives:s})}parseArgumentDefs(){return this.optionalMany(eu.PAREN_L,this.parseInputValueDef,eu.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,i=this.parseDescription(),r=this.parseName();this.expectToken(eu.COLON);let n=this.parseTypeReference();this.expectOptionalToken(eu.EQUALS)&&(e=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:el.INPUT_VALUE_DEFINITION,description:i,name:r,type:n,defaultValue:e,directives:s})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let i=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:el.INTERFACE_TYPE_DEFINITION,description:t,name:i,interfaces:r,directives:n,fields:s})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let i=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();return this.node(e,{kind:el.UNION_TYPE_DEFINITION,description:t,name:i,directives:r,types:n})}parseUnionMemberTypes(){return this.expectOptionalToken(eu.EQUALS)?this.delimitedMany(eu.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let i=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();return this.node(e,{kind:el.ENUM_TYPE_DEFINITION,description:t,name:i,directives:r,values:n})}parseEnumValuesDefinition(){return this.optionalMany(eu.BRACE_L,this.parseEnumValueDefinition,eu.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:el.ENUM_VALUE_DEFINITION,description:t,name:i,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw E(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(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let i=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();return this.node(e,{kind:el.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:i,directives:r,fields:n})}parseInputFieldsDefinition(){return this.optionalMany(eu.BRACE_L,this.parseInputValueDef,eu.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===eu.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),i=this.optionalMany(eu.BRACE_L,this.parseOperationTypeDefinition,eu.BRACE_R);if(0===t.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:el.SCHEMA_EXTENSION,directives:t,operationTypes:i})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),i=this.parseConstDirectives();if(0===i.length)throw this.unexpected();return this.node(e,{kind:el.SCALAR_TYPE_EXTENSION,name:t,directives:i})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===i.length&&0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:el.OBJECT_TYPE_EXTENSION,name:t,interfaces:i,directives:r,fields:n})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===i.length&&0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:el.INTERFACE_TYPE_EXTENSION,name:t,interfaces:i,directives:r,fields:n})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:el.UNION_TYPE_EXTENSION,name:t,directives:i,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:el.ENUM_TYPE_EXTENSION,name:t,directives:i,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:el.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:i,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(eu.AT);let i=this.parseName(),r=this.parseArgumentDefs(),n=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(e,{kind:el.DIRECTIVE_DEFINITION,description:t,name:i,arguments:r,repeatable:n,locations:s})}parseDirectiveLocations(){return this.delimitedMany(eu.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(ea,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t;let i=this._lexer.token,r=this.expectOptionalToken(eu.AT),n=this.parseName();return(!
13r&&this.expectOptionalToken(eu.DOT)&&(e=this.parseName()),(r||e)&&this.expectOptionalToken(eu.PAREN_L)&&(t=this.parseName(),this.expectToken(eu.COLON),this.expectToken(eu.PAREN_R)),r)?t?this.node(i,{kind:el.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:t}):this.node(i,{kind:el.DIRECTIVE_COORDINATE,name:n}):e?t?this.node(i,{kind:el.ARGUMENT_COORDINATE,name:n,fieldName:e,argumentName:t}):this.node(i,{kind:el.MEMBER_COORDINATE,name:n,memberName:e}):this.node(i,{kind:el.TYPE_COORDINATE,name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new m(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw E(this._lexer.source,t.start,`Expected ${q(e)}, found ${V(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===eu.NAME&&t.value===e)this.advanceLexer();else throw E(this._lexer.source,t.start,`Expected "${e}", found ${V(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===eu.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return E(this._lexer.source,t.start,`Unexpected ${V(t)}.`)}any(e,t,i){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(i);)r.push(t.call(this));return r}optionalMany(e,t,i){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(i));return e}return[]}many(e,t,i){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(i));return r}delimitedMany(e,t){this.expectOptionalToken(e);let i=[];do i.push(t.call(this));while(this.expectOptionalToken(e));return i}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==eu.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw E(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function V(e){let t=e.value;return q(e.kind)+(null!=t?` "${t}"`:"")}function q(e){return e===eu.BANG||e===eu.DOLLAR||e===eu.AMP||e===eu.PAREN_L||e===eu.PAREN_R||e===eu.DOT||e===eu.SPREAD||e===eu.COLON||e===eu.EQUALS||e===eu.AT||e===eu.BRACKET_L||e===eu.BRACKET_R||e===eu.BRACE_L||e===eu.PIPE||e===eu.BRACE_R?`"${e}"`:e}let $=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function K(e){return G[e.charCodeAt(0)]}let G=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Y=Object.freeze({}),H={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>J(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=W(e.variableDefinitions)?X("(\n",J(e.variableDefinitions,"\n"),"\n)"):X("(",J(e.variableDefinitions,", "),")"),i=X("",e.description,"\n")+J([e.operation,J([e.name,t]),J(e.directives," ")]," ");return("query"===i?"":i+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:i,directives:r,description:n})=>X("",n,"\n")+e+": "+t+X(" = ",i)+X(" ",J(r," "))},SelectionSet:{leave:({selections:e})=>z(e)},Field:{leave({alias:e,name:t,arguments:i,directives:r,selectionSet:n}){let s=X("",e,": ")+t,o=s+X("(",J(i,", "),")");return o.length>80&&(o=s+X("(\n",Q(J(i,"\n")),"\n)")),J([o,J(r," "),n]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+X(" ",J(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:i})=>J(["...",X("on ",e),J(t," "),i]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:i,directives:r,selectionSet:n,description:s})=>X("",s,"\n")+`fragment ${e}${X("(",J(i,", "),")")} `+`on ${t} ${X("",J(r," ")," ")}`+n},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
13,StringValue:{leave:({value:e,block:t})=>t?function(e,t){let i=e.replace(/"""/g,'\\"""'),r=i.split(/\r\n|[\n\r]/g),n=1===r.length,s=r.length>1&&r.slice(1).every(e=>0===e.length||I(e.charCodeAt(0))),o=i.endsWith('\\"""'),a=e.endsWith('"')&&!o,l=e.endsWith("\\"),u=a||l,c=!n||e.length>70||u||s||o,h="",p=n&&I(e.charCodeAt(0));return(c&&!p||s)&&(h+="\n"),h+=i,(c||u)&&(h+="\n"),'"""'+h+'"""'}(e):`"${e.replace($,K)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+J(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+J(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+X("(",J(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:i})=>X("",e,"\n")+J(["schema",J(t," "),z(i)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:i})=>X("",e,"\n")+J(["scalar",t,J(i," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:r,fields:n})=>X("",e,"\n")+J(["type",t,X("implements ",J(i," & ")),J(r," "),z(n)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:i,type:r,directives:n})=>X("",e,"\n")+t+(W(i)?X("(\n",Q(J(i,"\n")),"\n)"):X("(",J(i,", "),")"))+": "+r+X(" ",J(n," "))},InputValueDefinition:{leave:({description:e,name:t,type:i,defaultValue:r,directives:n})=>X("",e,"\n")+J([t+": "+i,X("= ",r),J(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:r,fields:n})=>X("",e,"\n")+J(["interface",t,X("implements ",J(i," & ")),J(r," "),z(n)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:i,types:r})=>X("",e,"\n")+J(["union",t,J(i," "),X("= ",J(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:i,values:r})=>X("",e,"\n")+J(["enum",t,J(i," "),z(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:i})=>X("",e,"\n")+J([t,J(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:i,fields:r})=>X("",e,"\n")+J(["input",t,J(i," "),z(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:i,repeatable:r,locations:n})=>X("",e,"\n")+"directive @"+t+(W(i)?X("(\n",Q(J(i,"\n")),"\n)"):X("(",J(i,", "),")"))+(r?" repeatable":"")+" on "+J(n," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>J(["extend schema",J(e," "),z(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>J(["extend scalar",e,J(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:r})=>J(["extend type",e,X("implements ",J(t," & ")),J(i," "),z(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:r})=>J(["extend interface",e,X("implements ",J(t," & ")),J(i," "),z(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:i})=>J(["extend union",e,J(t," "),X("= ",J(i," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:i})=>J(["extend enum",e,J(t," "),z(i)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:i})=>J(["extend input",e,J(t," "),z(i)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>J([e,X(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:i})=>J([e,X(".",t),X("(",i,":)")])},DirectiveCoordinate:{leave:({name:e})=>J(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>J(["@",e,X("(",t,":)")])}};function J(e,t=""){var i;return null!==(i=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==i?i:""}function z(e){return X("{\n",Q(J(e,"\n")),"\n}")}function X(e,t,i=""){return null!=t&&""!==t?e+t+i:""}function Q(e){return X("  ",e.replace(/\n/g,"\n  "))}function W(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}let Z=e=>{let t;let i=e.definitions.filter(e=>"OperationDefinition"===e.kind);return 1===i.length&&(t=i[0]?.name?.value),t},ee=e=>{if("string"==typeof e){let t;try{let i=function(e,t){let i=new j(e,void 0),r=i.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:i.tokenCount}),r}(e);t=Z(i)}catch(e){}return{query:e,operationName:t}}let t=Z(e);return{query:function(e,t,i=v){let r,n,s;let o=new Map;for(let e of Object.values(el))o.set(e,function(e,t){let i=e[t];return"object"==typeof i?i:"function"==typeof i?{enter:i,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let a=Array.isArray(e),l=[e],u=-1,c=[],h=e,p=[],d=[];do{var f,y,E;let e;let m=++u===l.length,T=m&&0!==c.length;if(m){if(n=0===d.length?void 0:p[p.length-1],h=s,s=d.pop(),T){if(a){h=h.slice();let e=0;for(let[t,i]of c){let r=t-e;null===i?(h.splice(r,1),e++):h[r]=i}}else for(let[e,t]of(h={...h},c))h[e]=t}u=r.index,l=r.keys,c=r.edits,a=r.inArray,r=r.prev}else if(s){if(null==(h=s[n=a?u:l[u]]))continue;p.push(n)}if(!Array.isArray(h)){A(h)||P(!1,`Invalid AST Node: ${B(h,[])}.`);let i=m?null===(f=o.get(h.kind))||void 0===f?void 0:f.leave:null===(y=o.get(h.kind))||void 0===y?void 0:y.enter;if((e=null==i?void 0:i.call(t,h,n,s,p,d))===Y)break;if(!1===e){if(!m){p.pop();continue}}else if(void 0!==e&&(c.push([n,e]),!m)){if(A(e))h=e;else{p.pop();continue}}}void 0===e&&T&&c.push([n,h]),m?p.pop():(r={inArray:a,index:u,keys:l,edits:c,prev:r},l=(a=Array.isArray(h))?h:null!==(E=i[h.kind])&&void 0!==E?E:[],u=-1,c=[],s&&d.push(s),s=h)}while(void 0!==r);return 0!==c.length?c[c.length-1][1]:e}(e,H),operationName:t}};
13class et extends Error{constructor(e,t){super(`${et.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,et.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,et)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${e.status})`}}var ei,er,en,es,eo,ea,el,eu,ec=i(80751),eh=i.t(ec,2);let ep="ping",ed="pong",ef="complete";class ey{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(e,t,i){this._type=e,this._payload=t,this._id=i}get text(){let e={type:this.type};return null!=this.id&&void 0!=this.id&&(e.id=this.id),null!=this.payload&&void 0!=this.payload&&(e.payload=this.payload),JSON.stringify(e)}static parse(e,t){let{type:i,payload:r,id:n}=JSON.parse(e);return new ey(i,t(r),n)}}class eE{constructor(e,{onInit:t,onAcknowledged:i,onPing:r,onPong:n}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.addEventListener("open",async i=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={},e.send(new ey("connection_init",t?await t():null).text)}),e.addEventListener("close",e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}}),e.addEventListener("error",e=>{console.error(e)}),e.addEventListener("message",t=>{try{let s=function(e,t=e=>e){return ey.parse(e,t)}(t.data);switch(s.type){case"connection_ack":this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,i&&i(s.payload));return;case ep:r?r(s.payload).then(t=>e.send(em(t).text)):e.send(em(null).text);return;case ed:n&&n(s.payload);return}if(!this.socketState.acknowledged||void 0===s.id||null===s.id||!this.socketState.subscriptions[s.id])return;let{query:o,variables:a,subscriber:l}=this.socketState.subscriptions[s.id];switch(s.type){case"next":!s.payload.errors&&s.payload.data&&l.next&&l.next(s.payload.data),s.payload.errors&&l.error&&l.error(new et({...s.payload,status:200},{query:o,variables:a}));return;case"error":l.error&&l.error(new et({errors:s.payload,status:200},{query:o,variables:a}));return;case ef:l.complete&&l.complete(),delete this.socketState.subscriptions[s.id];return}}catch(t){console.error(t),e.close(1006)}e.close(4400,"Unknown graphql-ws message.")})}makeSubscribe(e,t,i,r){let n=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[n]={query:e,variables:r,subscriber:i},this.socket.send(new ey("subscribe",{query:e,operationName:t,variables:r},n).text),()=>{this.socket.send(new ey(ef,void 0,n).text),delete this.socketState.subscriptions[n]}}rawRequest(e,t){return new Promise((i,r)=>{let n;this.rawSubscribe(e,{next:(e,t)=>n={data:e,extensions:t},error:r,complete:()=>i(n)},t)})}request(e,t){return new Promise((i,r)=>{let n;this.subscribe(e,{next:e=>n=e,error:r,complete:()=>i(n)},t)})}subscribe(e,t,i){let{query:r,operationName:n}=ee(e);return this.makeSubscribe(r,n,t,i)}rawSubscribe(e,t,i){return this.makeSubscribe(e,void 0,t,i)}ping(e){this.socket.send(new ey(ep,e,void 0).text)}close(){this.socket.close(1e3)}}function em(e){return new ey(ed,e,void 0)}eE.PROTOCOL="graphql-transport-ws";let eT=e=>{let t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||eh&&ec.Headers&&e instanceof ec.Headers?t=s(e):Array.isArray(e)?e.forEach(([e,i])=>{e&&void 0!==i&&(t[e]=i)}):t=e),t},ev=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),eN=e=>{if(!Array.isArray(e.query)){let t=[`query=${encodeURIComponent(ev(e.query))}`];return e.variables&&t.push(`variables=${encodeURIComponent(e.jsonSerializer.stringify(e.variables))}`),e.operationName&&t.push(`operationName=${encodeURIComponent(e.operationName)}`),t.join("&")}if(void 0!==e.variables&&!Array.isArray(e.variables))throw Error("Cannot create query with given variable type, array expected");let t=e.query.reduce((t,i,r)=>(t.push({query:ev(i),variables:e.variables?e.jsonSerializer.stringify(e.variables[r]):void 0}),t),[]);return`query=${encodeURIComponent(e.jsonSerializer.stringify(t))}`},eA=e=>async t=>{let i;let{url:n,query:s,variables:o,operationName:a,fetch:l,fetchOptions:u,middleware:c}=t,h={...t.headers},p="";"POST"===e?"string"==typeof(i=e_(s,o,a,u.jsonSerializer))&&(h["Content-Type"]="application/json"):p=eN({query:s,variables:o,operationName:a,jsonSerializer:u.jsonSerializer??r});let d={method:e,headers:h,body:i,...u},f=n,y=d;if(c){let{url:e,...t}=await Promise.resolve(c({...d,url:n,operationName:a,variables:o}));f=e,y=t}return p&&(f=`${f}?${p}`),await l(f,y)};class eI{constructor(e,t={}){this.url=e,this.requestConfig=t,this.rawRequest=async(...e)=>{let[t,i,r]=e,n=a(t,i,r),{headers:s,fetch:o=ec,method:l="POST",requestMiddleware:u,responseMiddleware:c,...h}=this.requestConfig,{url:p}=this;void 0!==n.signal&&(h.signal=n.signal);let{operationName:d}=ee(n.query);return eO({url:p,query:n.query,variables:n.variables,headers:{...eT(eD(s)),...eT(n.requestHeaders)},operationName:d,fetch:o,method:l,fetchOptions:h,middleware:u}).then(e=>(c&&c(e),e)).catch(e=>{throw c&&c(e),e})}}async request(e,...t){let[i,r]=t,n=o(e,i,r),{headers:s,fetch:a=ec,method:l="POST",requestMiddleware:u,responseMiddleware:c,...h}=this.requestConfig,{url:p}=this;void 0!==n.signal&&(h.signal=n.signal);let{query:d,operationName:f}=ee(n.document);return eO({url:p,query:d,variables:n.variables,headers:{...eT(eD(s)),...eT(n.requestHeaders)},operationName:f,fetch:a,method:l,fetchOptions:h,middleware:u}).then(e=>(c&&c(e),e.data)).catch(e=>{throw c&&c(e),e})}batchRequests(e,t){let i=l(e,t),{headers:r,...n}=this.requestConfig;void 0!==i.signal&&(n.signal=i.signal);let s=i.documents.map(({document:e})=>ee(e).query),o=i.documents.map(({variables:e})=>e);return eO({url:this.url,query:s,variables:o,headers:{...eT(eD(r)),...eT(i.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??ec,method:this.requestConfig.method||"POST",fetchOptions:n,middleware:this.requestConfig.requestMiddleware}).then(e=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e.data)).catch(e=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e})}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){let{headers:i}=this.requestConfig;return i?i[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}let eO=async e=>{let{query:t,variables:i,fetchOptions:s}=e,o=eA(n(e.method??"post")),a=Array.isArray(e.query),l=await o(e),u=await ex(l,s.jsonSerializer??r),c=Array.isArray(u)?!u.some(({data:e})=>!e):!!u.data,h=Array.isArray(u)||!u.errors||Array.isArray(u.errors)&&!u.errors.length||"all"===s.errorPolicy||"ignore"===s.errorPolicy;if(l.ok&&h&&c){let{errors:e,...t}=(Array.isArray(u),u),i="ignore"===s.errorPolicy?t:u;return{...a?{data:i}:i,headers:l.headers,status:l.status}}throw new et({..."string"==typeof u?{error:u}:u,status:l.status,headers:l.headers},{query:t,variables:i})};async function eb(e,t,...i){let r=u(e,t,...i);return new eI(r.url).request({...r})}let e_=(e,t,i,n)=>{let s=n??r;if(!Array.isArray(e))return s.stringify({query:e,variables:t,operationName:i});if(void 0!==t&&!Array.isArray(t))throw Error("Cannot create request body with given variable type, array expected");let o=e.reduce((e,i,r)=>(e.push({query:i,variables:t?t[r]:void 0}),e),[]);return s.stringify(o)},ex=async(e,t)=>{let i;
13return(e.headers.forEach((e,t)=>{"content-type"===t.toLowerCase()&&(i=e)}),i&&(i.toLowerCase().startsWith("application/json")||i.toLowerCase().startsWith("application/graphql+json")||i.toLowerCase().startsWith("application/graphql-response+json")))?t.parse(await e.text()):e.text()},eD=e=>"function"==typeof e?e():e}}]);

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.