forked from Stock-control-supervisors/awesome-go
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
6793-e65f9606785dc801.js.download
1 lines (1 loc) · 71.6 KB
/
6793-e65f9606785dc801.js.download
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6793],{29066:function(e,t){var n="undefined"!=typeof self?self:void 0,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();(function(e){var t={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function a(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function c(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function d(e){var t=new FileReader,n=c(t);return t.readAsArrayBuffer(e),n}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var n;t.arrayBuffer&&t.blob&&(n=e)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e)}}else 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):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=l(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(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,r=l(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=c(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},t.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(e,t){e=o(e),t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[o(e)]},u.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},u.prototype.set=function(e,t){this.map[o(e)]=s(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),a(e)},u.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),a(e)},u.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),a(e)},t.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(e,t){var n,r,i=(t=t||{}).body;if(e instanceof y){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new u(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),f.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function v(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function T(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},h.call(y.prototype),h.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},T.error=function(){var e=new T(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];T.redirect=function(e,t){if(-1===E.indexOf(t))throw RangeError("Invalid status code");return new T(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(n,r){return new Promise(function(i,o){var s=new y(n,r);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL"),i(new T("response"in a?a.response:a.responseText,n))},a.onerror=function(){o(TypeError("Network request failed"))},a.ontimeout=function(){o(TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),s.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",l),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",l)}),a.send(void 0===s._bodyInit?null:s._bodyInit)})}m.polyfill=!0,r.fetch||(r.fetch=m,r.Headers=u,r.Request=y,r.Response=T),e.Headers=u,e.Request=y,e.Response=T,e.fetch=m,Object.defineProperty(e,"__esModule",{value:!0})})({}),r.fetch.ponyfill=!0,delete r.fetch.polyfill,(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t},65542:function(e){e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},81730:function(e,t,n){var r=n(87201);e.exports=function e(t,n,i){void 0===n&&(n=""),void 0===i&&(i=r);var o,s=new Map;function a(e,t){var n=s.get(t);n?n.push.apply(n,e):s.set(t,e)}if(i(t))o=null,a([n],t);else{var u=n?n+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)o=Array.prototype.map.call(t,function(e,t){return a([""+u+t],e),null});else if(Array.isArray(t))o=t.map(function(t,n){var r=e(t,""+u+n,i);return r.files.forEach(a),r.clone});else if(t&&t.constructor===Object)for(var l in o={},t){var c=e(t[l],""+u+l,i);c.files.forEach(a),o[l]=c.clone}else o=t}return{clone:o,files:s}}},13070:function(e,t,n){t.ReactNativeFile=n(65542),t.extractFiles=n(81730),t.isExtractableFile=n(87201)},87201:function(e,t,n){var r=n(65542);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof r}},34352:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},32005:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(13070),o=(r=n(34352))&&r.__esModule?r:{default:r},s=n(27685),a=function(e){return i.isExtractableFile(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,n,r){void 0===r&&(r=s.defaultJsonSerializer);var u=i.extractFiles({query:e,variables:t,operationName:n},"",a),l=u.clone,c=u.files;if(0===c.size){if(!Array.isArray(e))return r.stringify(l);if(void 0!==t&&!Array.isArray(t))throw Error("Cannot create request body with given variable type, array expected");var d=e.reduce(function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e},[]);return r.stringify(d)}var p=new("undefined"==typeof FormData?o.default:FormData);p.append("operations",r.stringify(l));var h={},f=0;return c.forEach(function(e){h[++f]=e}),p.append("map",r.stringify(h)),f=0,c.forEach(function(e,t){p.append(""+ ++f,t)}),p}},27685:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}},67642:function(e,t,n){var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=void 0;var o=n(40019),s=n(54646),a="ping",u="pong",l="complete",c=function(){function e(e,t,n){this._type=e,this._payload=t,this._id=n}return Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){var 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)},enumerable:!1,configurable:!0}),e.parse=function(t,n){var r=JSON.parse(t),i=r.type,o=r.payload,s=r.id;return new e(i,n(o),s)},e}(),d=function(){function e(e,t){var n=this,s=t.onInit,d=t.onAcknowledged,f=t.onPing,y=t.onPong;this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.onopen=function(t){var r,o,a;return r=void 0,o=void 0,a=function(){var t,n,r,o;return i(this,function(i){switch(i.label){case 0:if(this.socketState.acknowledged=!1,this.socketState.subscriptions={},n=(t=e).send,r=p,!s)return[3,2];return[4,s()];case 1:return o=i.sent(),[3,3];case 2:o=null,i.label=3;case 3:return n.apply(t,[r.apply(void 0,[o]).text]),[2]}})},new(o||(o=Promise))(function(e,t){function i(e){try{u(a.next(e))}catch(e){t(e)}}function s(e){try{u(a.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):((n=t.value)instanceof o?n:new o(function(e){e(n)})).then(i,s)}u((a=a.apply(n,r||[])).next())})},e.onclose=function(e){n.socketState.acknowledged=!1,n.socketState.subscriptions={}},e.onerror=function(e){console.error(e)},e.onmessage=function(t){try{var i,s,p=(i=t.data,void 0===s&&(s=function(e){return e}),c.parse(i,s));switch(p.type){case"connection_ack":n.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(n.socketState.acknowledged=!0,d&&d(p.payload));return;case a:f?f(p.payload).then(function(t){return e.send(h(t).text)}):e.send(h(null).text);return;case u:y&&y(p.payload);return}if(!n.socketState.acknowledged||void 0===p.id||null===p.id||!n.socketState.subscriptions[p.id])return;var v=n.socketState.subscriptions[p.id],T=v.query,E=v.variables,m=v.subscriber;switch(p.type){case"next":!p.payload.errors&&p.payload.data&&m.next&&m.next(p.payload.data),p.payload.errors&&m.error&&m.error(new o.ClientError(r(r({},p.payload),{status:200}),{query:T,variables:E}));return;case"error":m.error&&m.error(new o.ClientError({errors:p.payload,status:200},{query:T,variables:E}));return;case l:m.complete&&m.complete(),delete n.socketState.subscriptions[p.id];return}}catch(t){console.error(t),e.close(1006)}e.close(4400,"Unknown graphql-ws message.")}}return e.prototype.makeSubscribe=function(e,t,n,r){var i=this,o=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[o]={query:e,variables:n,subscriber:r},this.socket.send(new c("subscribe",{query:e,operationName:t,variables:n},o).text),function(){i.socket.send(new c(l,void 0,o).text),delete i.socketState.subscriptions[o]}},e.prototype.rawRequest=function(e,t){var n=this;return new Promise(function(r,i){var o;n.rawSubscribe(e,{next:function(e,t){return o={data:e,extensions:t}},error:i,complete:function(){return r(o)}},t)})},e.prototype.request=function(e,t){var n=this;return new Promise(function(r,i){var o;n.subscribe(e,{next:function(e){return o=e},error:i,complete:function(){return r(o)}},t)})},e.prototype.subscribe=function(e,t,n){var r=s.resolveRequestDocument(e),i=r.query,o=r.operationName;return this.makeSubscribe(i,o,n,t)},e.prototype.rawSubscribe=function(e,t,n){return this.makeSubscribe(e,void 0,n,t)},e.prototype.ping=function(e){this.socket.send(new c(a,e,void 0).text)},e.prototype.close=function(){this.socket.close(1e3)},e.PROTOCOL="graphql-transport-ws",e}();function p(e){return new c("connection_init",e)}function h(e){return new c(u,e,void 0)}t.GraphQLWebSocketClient=d},54646:function(e,t,n){var r,i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},o=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},s=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}u((r=r.apply(e,t||[])).next())})},u=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=t.gql=t.resolveRequestDocument=t.batchRequests=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t}(n(29066)),d=n(9206),p=n(38517),h=(r=n(32005))&&r.__esModule?r:{default:r},f=n(27685),y=n(95641),v=n(40019);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return v.ClientError}});var T=function(e){var t,n={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||e instanceof c.Headers?(t={},e.forEach(function(e,n){t[n]=e}),n=t):Array.isArray(e)?e.forEach(function(e){var t=e[0],r=e[1];n[t]=r}):n=e),n},E=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},m=function(e){var t=e.query,n=e.variables,r=e.operationName,i=e.jsonSerializer;if(!Array.isArray(t)){var o=["query="+encodeURIComponent(E(t))];return n&&o.push("variables="+encodeURIComponent(i.stringify(n))),r&&o.push("operationName="+encodeURIComponent(r)),o.join("&")}if(void 0!==n&&!Array.isArray(n))throw Error("Cannot create query with given variable type, array expected");var s=t.reduce(function(e,t,r){return e.push({query:E(t),variables:n?i.stringify(n[r]):void 0}),e},[]);return"query="+encodeURIComponent(i.stringify(s))},b=function(e){var t=e.url,n=e.query,r=e.variables,o=e.operationName,s=e.headers,l=e.fetch,c=e.fetchOptions;return a(void 0,void 0,void 0,function(){var e;return u(this,function(a){switch(a.label){case 0:return e=h.default(n,r,o,c.jsonSerializer),[4,l(t,i({method:"POST",headers:i(i({},"string"==typeof e?{"Content-Type":"application/json"}:{}),s),body:e},c))];case 1:return[2,a.sent()]}})})},k=function(e){var t=e.url,n=e.query,r=e.variables,o=e.operationName,s=e.headers,l=e.fetch,c=e.fetchOptions;return a(void 0,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,l(t+"?"+m({query:n,variables:r,operationName:o,jsonSerializer:c.jsonSerializer}),i({method:"GET",headers:s},c))];case 1:return[2,e.sent()]}})})},O=function(){function e(e,t){this.url=e,this.options=t||{}}return e.prototype.rawRequest=function(e,t,n){return a(this,void 0,void 0,function(){var r,o,s,a,d,p,h,f,v,E;return u(this,function(u){return r=y.parseRawRequestArgs(e,t,n),s=(o=this.options).headers,d=void 0===(a=o.fetch)?c.default:a,h=void 0===(p=o.method)?"POST":p,f=l(o,["headers","fetch","method"]),v=this.url,void 0!==r.signal&&(f.signal=r.signal),E=A(r.query).operationName,[2,N({url:v,query:r.query,variables:r.variables,headers:i(i({},T(g(s))),T(r.requestHeaders)),operationName:E,fetch:d,method:h,fetchOptions:f})]})})},e.prototype.request=function(e,t,n){return a(this,void 0,void 0,function(){var r,o,s,a,d,p,h,f,v,E,m,b;return u(this,function(u){switch(u.label){case 0:return r=y.parseRequestArgs(e,t,n),s=(o=this.options).headers,d=void 0===(a=o.fetch)?c.default:a,h=void 0===(p=o.method)?"POST":p,f=l(o,["headers","fetch","method"]),v=this.url,void 0!==r.signal&&(f.signal=r.signal),m=(E=A(r.document)).query,b=E.operationName,[4,N({url:v,query:m,variables:r.variables,headers:i(i({},T(g(s))),T(r.requestHeaders)),operationName:b,fetch:d,method:h,fetchOptions:f})];case 1:return[2,u.sent().data]}})})},e.prototype.batchRequests=function(e,t){return a(this,void 0,void 0,function(){var n,r,o,s,a,d,p,h,f;return u(this,function(u){switch(u.label){case 0:return n=y.parseBatchRequestArgs(e,t),o=(r=this.options).headers,a=void 0===(s=r.fetch)?c.default:s,p=void 0===(d=r.method)?"POST":d,h=l(r,["headers","fetch","method"]),f=this.url,void 0!==n.signal&&(h.signal=n.signal),[4,N({url:f,query:n.documents.map(function(e){return A(e.document).query}),variables:n.documents.map(function(e){return e.variables}),headers:i(i({},T(g(o))),T(n.requestHeaders)),operationName:void 0,fetch:a,method:p,fetchOptions:h})];case 1:return[2,u.sent().data]}})})},e.prototype.setHeaders=function(e){return this.options.headers=e,this},e.prototype.setHeader=function(e,t){var n,r=this.options.headers;return r?r[e]=t:this.options.headers=((n={})[e]=t,n),this},e.prototype.setEndpoint=function(e){return this.url=e,this},e}();function N(e){var t=e.url,n=e.query,r=e.variables,o=e.headers,s=e.operationName,c=e.fetch,d=e.method,p=void 0===d?"POST":d,h=e.fetchOptions;return a(this,void 0,void 0,function(){var e,d,y,T,E,m,O,N,_,x,A;return u(this,function(g){switch(g.label){case 0:return e="POST"===p.toUpperCase()?b:k,d=Array.isArray(n),[4,e({url:t,query:n,variables:r,operationName:s,headers:o,fetch:c,fetchOptions:h})];case 1:return[4,function(e,t){return void 0===t&&(t=f.defaultJsonSerializer),a(this,void 0,void 0,function(){var n,r,i;return u(this,function(o){switch(o.label){case 0:if(e.headers.forEach(function(e,t){"content-type"===t.toLowerCase()&&(n=e)}),!(n&&n.toLowerCase().startsWith("application/json")))return[3,2];return i=(r=t).parse,[4,e.text()];case 1:return[2,i.apply(r,[o.sent()])];case 2:return[2,e.text()]}})})}(y=g.sent(),h.jsonSerializer)];case 2:if(T=g.sent(),E=d&&Array.isArray(T)?!T.some(function(e){return!e.data}):!!T.data,m=!T.errors||"all"===h.errorPolicy||"ignore"===h.errorPolicy,y.ok&&m&&E)return O=y.headers,N=y.status,T.errors,_=l(T,["errors"]),x="ignore"===h.errorPolicy?_:T,[2,i(i({},d?{data:x}:x),{headers:O,status:N})];throw A="string"==typeof T?{error:T}:T,new v.ClientError(i(i({},A),{status:y.status,headers:y.headers}),{query:n,variables:r})}})})}function _(e,t,n,r){return a(this,void 0,void 0,function(){var o;return u(this,function(s){return[2,new O((o=y.parseRequestExtendedArgs(e,t,n,r)).url).request(i({},o))]})})}function x(e){var t,n=void 0,r=e.definitions.filter(function(e){return"OperationDefinition"===e.kind});return 1===r.length&&(n=null===(t=r[0].name)||void 0===t?void 0:t.value),n}function A(e){if("string"==typeof e){var t=void 0;try{var n=d.parse(e);t=x(n)}catch(e){}return{query:e,operationName:t}}var r=x(e);return{query:p.print(e),operationName:r}}function g(e){return"function"==typeof e?e():e}t.GraphQLClient=O,t.rawRequest=function(e,t,n,r){return a(this,void 0,void 0,function(){var o;return u(this,function(s){return[2,new O((o=y.parseRawRequestExtendedArgs(e,t,n,r)).url).rawRequest(i({},o))]})})},t.request=_,t.batchRequests=function(e,t,n){return a(this,void 0,void 0,function(){var r;return u(this,function(o){return[2,new O((r=y.parseBatchRequestsExtendedArgs(e,t,n)).url).batchRequests(i({},r))]})})},t.default=_,t.resolveRequestDocument=A,t.gql=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.reduce(function(e,n,r){return""+e+n+(r in t?t[r]:"")},"")};var I=n(67642);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return I.GraphQLWebSocketClient}})},95641:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseBatchRequestsExtendedArgs=t.parseRawRequestExtendedArgs=t.parseRequestExtendedArgs=t.parseBatchRequestArgs=t.parseRawRequestArgs=t.parseRequestArgs=void 0,t.parseRequestArgs=function(e,t,n){return e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0}},t.parseRawRequestArgs=function(e,t,n){return e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0}},t.parseBatchRequestArgs=function(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}},t.parseRequestExtendedArgs=function(e,t,n,r){return e.document?e:{url:e,document:t,variables:n,requestHeaders:r,signal:void 0}},t.parseRawRequestExtendedArgs=function(e,t,n,r){return e.query?e:{url:e,query:t,variables:n,requestHeaders:r,signal:void 0}},t.parseBatchRequestsExtendedArgs=function(e,t,n){return e.documents?e:{url:e,documents:t,requestHeaders:n,signal:void 0}}},40019:function(e,t){var n,r=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;var i=function(e){function t(n,r){var i=this,o=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});return Object.setPrototypeOf(i=e.call(this,o)||this,t.prototype),i.response=n,i.request=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return r(t,e),t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}},t}(Error);t.ClientError=i},70245:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=void 0,t.formatError=function(e){return e.toJSON()},t.printError=function(e){return e.toString()};var r=n(37076),i=n(79072),o=n(86127);class s extends Error{get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+="\n\n"+(0,o.printLocation)(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}constructor(e,...t){var n,o,u;let{nodes:l,source:c,positions:d,path:p,originalError:h,extensions:f}=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!=p?p:void 0,this.originalError=null!=h?h:void 0,this.nodes=a(Array.isArray(l)?l:l?[l]:void 0);let y=a(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=c?c:null==y?void 0:null===(o=y[0])||void 0===o?void 0:o.source,this.positions=null!=d?d:null==y?void 0:y.map(e=>e.start),this.locations=d&&c?d.map(e=>(0,i.getLocation)(c,e)):null==y?void 0:y.map(e=>(0,i.getLocation)(e.source,e.start));let v=(0,r.isObjectLike)(null==h?void 0:h.extensions)?null==h?void 0:h.extensions:void 0;this.extensions=null!==(u=null!=f?f:v)&&void 0!==u?u: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!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,s):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}}function a(e){return void 0===e||0===e.length?void 0:e}t.GraphQLError=s},62881:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError("Syntax Error: ".concat(n),{source:e,positions:[t]})};var r=n(70245)},50709:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.devAssert=function(e,t){if(!e)throw Error(t)}},15108:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.inspect=function(e){return function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return function(t,n){if(null===t)return"null";if(n.includes(t))return"[Circular]";let r=[...n,t];if("function"==typeof t.toJSON){let n=t.toJSON();if(n!==t)return"string"==typeof n?n:e(n,r)}else if(Array.isArray(t))return function(t,n){if(0===t.length)return"[]";if(n.length>2)return"[Array]";let r=Math.min(10,t.length),i=t.length-r,o=[];for(let i=0;i<r;++i)o.push(e(t[i],n));return 1===i?o.push("... 1 more item"):i>1&&o.push("... ".concat(i," more items")),"["+o.join(", ")+"]"}(t,r);return function(t,n){let r=Object.entries(t);return 0===r.length?"{}":n.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}(t)+"]":"{ "+r.map(t=>{let[r,i]=t;return r+": "+e(i,n)}).join(", ")+" }"}(t,r)}(t,n);default:return String(t)}}(e,[])}},4640:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.instanceOf=void 0,n(15108),t.instanceOf=function(e,t){return e instanceof t}},89221:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=function(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}},37076:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},31296:function(e,t){var n;let r;Object.defineProperty(t,"__esModule",{value:!0}),t.Token=t.QueryDocumentKeys=t.OperationTypeNode=t.Location=void 0,t.isNode=function(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)};class i{get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}}t.Location=i;class o{get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}}t.Token=o;let s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=s;let a=new Set(Object.keys(s));t.OperationTypeNode=r,(n=r||(t.OperationTypeNode=r={})).QUERY="query",n.MUTATION="mutation",n.SUBSCRIPTION="subscription"},28242:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringLines=function(e){var t,n;let i=Number.MAX_SAFE_INTEGER,o=null,s=-1;for(let t=0;t<e.length;++t){let a=e[t],u=function(e){let t=0;for(;t<e.length&&(0,r.isWhiteSpace)(e.charCodeAt(t));)++t;return t}(a);u!==a.length&&(o=null!==(n=o)&&void 0!==n?n:t,s=t,0!==t&&u<i&&(i=u))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=o)&&void 0!==t?t:0,s+1)},t.isPrintableAsBlockString=function(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!i)},t.printBlockString=function(e,t){let n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,s=i.length>1&&i.slice(1).every(e=>0===e.length||(0,r.isWhiteSpace)(e.charCodeAt(0))),a=n.endsWith('\\"""'),u=e.endsWith('"')&&!a,l=e.endsWith("\\"),c=u||l,d=!(null!=t&&t.minimize)&&(!o||e.length>70||c||s||a),p="",h=o&&(0,r.isWhiteSpace)(e.charCodeAt(0));return(d&&!h||s)&&(p+="\n"),p+=n,(d||c)&&(p+="\n"),'"""'+p+'"""'};var r=n(88501)},88501:function(e,t){function n(e){return e>=48&&e<=57}function r(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(t,"__esModule",{value:!0}),t.isDigit=n,t.isLetter=r,t.isNameContinue=function(e){return r(e)||n(e)||95===e},t.isNameStart=function(e){return r(e)||95===e},t.isWhiteSpace=function(e){return 9===e||32===e}},55627:function(e,t){var n;let r;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=r,(n=r||(t.DirectiveLocation=r={})).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"},71323:function(e,t){var n;let r;Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=r,(n=r||(t.Kind=r={})).NAME="Name",n.DOCUMENT="Document",n.OPERATION_DEFINITION="OperationDefinition",n.VARIABLE_DEFINITION="VariableDefinition",n.SELECTION_SET="SelectionSet",n.FIELD="Field",n.ARGUMENT="Argument",n.FRAGMENT_SPREAD="FragmentSpread",n.INLINE_FRAGMENT="InlineFragment",n.FRAGMENT_DEFINITION="FragmentDefinition",n.VARIABLE="Variable",n.INT="IntValue",n.FLOAT="FloatValue",n.STRING="StringValue",n.BOOLEAN="BooleanValue",n.NULL="NullValue",n.ENUM="EnumValue",n.LIST="ListValue",n.OBJECT="ObjectValue",n.OBJECT_FIELD="ObjectField",n.DIRECTIVE="Directive",n.NAMED_TYPE="NamedType",n.LIST_TYPE="ListType",n.NON_NULL_TYPE="NonNullType",n.SCHEMA_DEFINITION="SchemaDefinition",n.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",n.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",n.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",n.FIELD_DEFINITION="FieldDefinition",n.INPUT_VALUE_DEFINITION="InputValueDefinition",n.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",n.UNION_TYPE_DEFINITION="UnionTypeDefinition",n.ENUM_TYPE_DEFINITION="EnumTypeDefinition",n.ENUM_VALUE_DEFINITION="EnumValueDefinition",n.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",n.DIRECTIVE_DEFINITION="DirectiveDefinition",n.SCHEMA_EXTENSION="SchemaExtension",n.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",n.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",n.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",n.UNION_TYPE_EXTENSION="UnionTypeExtension",n.ENUM_TYPE_EXTENSION="EnumTypeExtension",n.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"},98061:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0,t.isPunctuatorTokenKind=function(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R};var r=n(62881),i=n(31296),o=n(28242),s=n(88501),a=n(56716);class u{get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,i=n.length,u=t;for(;u<i;){let t=n.charCodeAt(u);switch(t){case 65279:case 9:case 32:case 44:++u;continue;case 10:++u,++e.line,e.lineStart=u;continue;case 13:10===n.charCodeAt(u+1)?u+=2:++u,++e.line,e.lineStart=u;continue;case 35:return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(10===e||13===e)break;if(l(e))++i;else if(c(n,i))i+=2;else break}return f(e,a.TokenKind.COMMENT,t,i,n.slice(t+1,i))}(e,u);case 33:return f(e,a.TokenKind.BANG,u,u+1);case 36:return f(e,a.TokenKind.DOLLAR,u,u+1);case 38:return f(e,a.TokenKind.AMP,u,u+1);case 40:return f(e,a.TokenKind.PAREN_L,u,u+1);case 41:return f(e,a.TokenKind.PAREN_R,u,u+1);case 46:if(46===n.charCodeAt(u+1)&&46===n.charCodeAt(u+2))return f(e,a.TokenKind.SPREAD,u,u+3);break;case 58:return f(e,a.TokenKind.COLON,u,u+1);case 61:return f(e,a.TokenKind.EQUALS,u,u+1);case 64:return f(e,a.TokenKind.AT,u,u+1);case 91:return f(e,a.TokenKind.BRACKET_L,u,u+1);case 93:return f(e,a.TokenKind.BRACKET_R,u,u+1);case 123:return f(e,a.TokenKind.BRACE_L,u,u+1);case 124:return f(e,a.TokenKind.PIPE,u,u+1);case 125:return f(e,a.TokenKind.BRACE_R,u,u+1);case 34:if(34===n.charCodeAt(u+1)&&34===n.charCodeAt(u+2))return function(e,t){let n=e.source.body,i=n.length,s=e.lineStart,u=t+3,d=u,p="",y=[];for(;u<i;){let i=n.charCodeAt(u);if(34===i&&34===n.charCodeAt(u+1)&&34===n.charCodeAt(u+2)){p+=n.slice(d,u),y.push(p);let r=f(e,a.TokenKind.BLOCK_STRING,t,u+3,(0,o.dedentBlockStringLines)(y).join("\n"));return e.line+=y.length-1,e.lineStart=s,r}if(92===i&&34===n.charCodeAt(u+1)&&34===n.charCodeAt(u+2)&&34===n.charCodeAt(u+3)){p+=n.slice(d,u),d=u+1,u+=4;continue}if(10===i||13===i){p+=n.slice(d,u),y.push(p),13===i&&10===n.charCodeAt(u+1)?u+=2:++u,p="",d=u,s=u;continue}if(l(i))++u;else if(c(n,u))u+=2;else throw(0,r.syntaxError)(e.source,u,"Invalid character within String: ".concat(h(e,u),"."))}throw(0,r.syntaxError)(e.source,u,"Unterminated string.")}(e,u);return function(e,t){let n=e.source.body,i=n.length,o=t+1,s=o,u="";for(;o<i;){let i=n.charCodeAt(o);if(34===i)return u+=n.slice(s,o),f(e,a.TokenKind.STRING,t,o+1,u);if(92===i){u+=n.slice(s,o);let t=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?function(e,t){let n=e.source.body,i=0,o=3;for(;o<12;){let e=n.charCodeAt(t+o++);if(125===e){if(o<5||!l(i))break;return{value:String.fromCodePoint(i),size:o}}if((i=i<<4|T(e))<0)break}throw(0,r.syntaxError)(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+o),'".'))}(e,o):function(e,t){let n=e.source.body,i=v(n,t+2);if(l(i))return{value:String.fromCodePoint(i),size:6};if(d(i)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=v(n,t+8);if(p(e))return{value:String.fromCodePoint(i,e),size:12}}throw(0,r.syntaxError)(e.source,t,'Invalid Unicode escape sequence: "'.concat(n.slice(t,t+6),'".'))}(e,o):function(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,r.syntaxError)(e.source,t,'Invalid character escape sequence: "'.concat(n.slice(t,t+2),'".'))}(e,o);u+=t.value,o+=t.size,s=o;continue}if(10===i||13===i)break;if(l(i))++o;else if(c(n,o))o+=2;else throw(0,r.syntaxError)(e.source,o,"Invalid character within String: ".concat(h(e,o),"."))}throw(0,r.syntaxError)(e.source,o,"Unterminated string.")}(e,u)}if((0,s.isDigit)(t)||45===t)return function(e,t,n){let i=e.source.body,o=t,u=n,l=!1;if(45===u&&(u=i.charCodeAt(++o)),48===u){if(u=i.charCodeAt(++o),(0,s.isDigit)(u))throw(0,r.syntaxError)(e.source,o,"Invalid number, unexpected digit after 0: ".concat(h(e,o),"."))}else o=y(e,o,u),u=i.charCodeAt(o);if(46===u&&(l=!0,u=i.charCodeAt(++o),o=y(e,o,u),u=i.charCodeAt(o)),(69===u||101===u)&&(l=!0,(43===(u=i.charCodeAt(++o))||45===u)&&(u=i.charCodeAt(++o)),o=y(e,o,u),u=i.charCodeAt(o)),46===u||(0,s.isNameStart)(u))throw(0,r.syntaxError)(e.source,o,"Invalid number, expected digit but got: ".concat(h(e,o),"."));return f(e,l?a.TokenKind.FLOAT:a.TokenKind.INT,t,o,i.slice(t,o))}(e,u,t);if((0,s.isNameStart)(t))return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if((0,s.isNameContinue)(e))++i;else break}return f(e,a.TokenKind.NAME,t,i,n.slice(t,i))}(e,u);throw(0,r.syntaxError)(e.source,u,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":l(t)||c(n,u)?"Unexpected character: ".concat(h(e,u),"."):"Invalid character: ".concat(h(e,u),"."))}return f(e,a.TokenKind.EOF,i,i)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===a.TokenKind.COMMENT);return e}constructor(e){let t=new i.Token(a.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}}function l(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function c(e,t){return d(e.charCodeAt(t))&&p(e.charCodeAt(t+1))}function d(e){return e>=55296&&e<=56319}function p(e){return e>=56320&&e<=57343}function h(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return a.TokenKind.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":'"'.concat(e,'"')}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function f(e,t,n,r,o){let s=e.line,a=1+n-e.lineStart;return new i.Token(t,n,r,s,a,o)}function y(e,t,n){if(!(0,s.isDigit)(n))throw(0,r.syntaxError)(e.source,t,"Invalid number, expected digit but got: ".concat(h(e,t),"."));let i=e.source.body,o=t+1;for(;(0,s.isDigit)(i.charCodeAt(o));)++o;return o}function v(e,t){return T(e.charCodeAt(t))<<12|T(e.charCodeAt(t+1))<<8|T(e.charCodeAt(t+2))<<4|T(e.charCodeAt(t+3))}function T(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}t.Lexer=u},79072:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){let n=0,o=1;for(let s of e.body.matchAll(i)){if("number"==typeof s.index||(0,r.invariant)(!1),s.index>=t)break;n=s.index+s[0].length,o+=1}return{line:o,column:t+1-n}};var r=n(89221);let i=/\r\n|[\n\r]/g},9206:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0,t.parse=function(e,t){return new c(e,t).parseDocument()},t.parseConstValue=function(e,t){let n=new c(e,t);n.expectToken(l.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(l.TokenKind.EOF),r},t.parseType=function(e,t){let n=new c(e,t);n.expectToken(l.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(l.TokenKind.EOF),r},t.parseValue=function(e,t){let n=new c(e,t);n.expectToken(l.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(l.TokenKind.EOF),r};var r=n(62881),i=n(31296),o=n(55627),s=n(71323),a=n(98061),u=n(18812),l=n(56716);class c{parseName(){let e=this.expectToken(l.TokenKind.NAME);return this.node(e,{kind:s.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:s.Kind.DOCUMENT,definitions:this.many(l.TokenKind.SOF,this.parseDefinition,l.TokenKind.EOF)})}parseDefinition(){if(this.peek(l.TokenKind.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===l.TokenKind.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(l.TokenKind.BRACE_L))return this.node(t,{kind:s.Kind.OPERATION_DEFINITION,operation:i.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType();return this.peek(l.TokenKind.NAME)&&(e=this.parseName()),this.node(t,{kind:s.Kind.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(l.TokenKind.NAME);switch(e.value){case"query":return i.OperationTypeNode.QUERY;case"mutation":return i.OperationTypeNode.MUTATION;case"subscription":return i.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(l.TokenKind.PAREN_L,this.parseVariableDefinition,l.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:s.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(l.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(l.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(l.TokenKind.DOLLAR),this.node(e,{kind:s.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:s.Kind.SELECTION_SET,selections:this.many(l.TokenKind.BRACE_L,this.parseSelection,l.TokenKind.BRACE_R)})}parseSelection(){return this.peek(l.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(l.TokenKind.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:s.Kind.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(l.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(l.TokenKind.PAREN_L,t,l.TokenKind.PAREN_R)}parseArgument(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._lexer.token,n=this.parseName();return this.expectToken(l.TokenKind.COLON),this.node(t,{kind:s.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(l.TokenKind.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(l.TokenKind.NAME)?this.node(e,{kind:s.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:s.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;let t=this._lexer.token;return(this.expectKeyword("fragment"),(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)===!0)?this.node(t,{kind:s.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:s.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case l.TokenKind.BRACKET_L:return this.parseList(e);case l.TokenKind.BRACE_L:return this.parseObject(e);case l.TokenKind.INT:return this._lexer.advance(),this.node(t,{kind:s.Kind.INT,value:t.value});case l.TokenKind.FLOAT:return this._lexer.advance(),this.node(t,{kind:s.Kind.FLOAT,value:t.value});case l.TokenKind.STRING:case l.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case l.TokenKind.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:s.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:s.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:s.Kind.NULL});default:return this.node(t,{kind:s.Kind.ENUM,value:t.value})}case l.TokenKind.DOLLAR:if(e){if(this.expectToken(l.TokenKind.DOLLAR),this._lexer.token.kind===l.TokenKind.NAME){let e=this._lexer.token.value;throw(0,r.syntaxError)(this._lexer.source,t.start,'Unexpected variable "$'.concat(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._lexer.advance(),this.node(e,{kind:s.Kind.STRING,value:e.value,block:e.kind===l.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:s.Kind.LIST,values:this.any(l.TokenKind.BRACKET_L,()=>this.parseValueLiteral(e),l.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:s.Kind.OBJECT,fields:this.any(l.TokenKind.BRACE_L,()=>this.parseObjectField(e),l.TokenKind.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(l.TokenKind.COLON),this.node(t,{kind:s.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(l.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(l.TokenKind.AT),this.node(t,{kind:s.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(l.TokenKind.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(l.TokenKind.BRACKET_R),e=this.node(t,{kind:s.Kind.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(l.TokenKind.BANG)?this.node(t,{kind:s.Kind.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:s.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(l.TokenKind.STRING)||this.peek(l.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(l.TokenKind.BRACE_L,this.parseOperationTypeDefinition,l.TokenKind.BRACE_R);return this.node(e,{kind:s.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(l.TokenKind.COLON);let n=this.parseNamedType();return this.node(e,{kind:s.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:s.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(l.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseFieldDefinition,l.TokenKind.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(l.TokenKind.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:s.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(l.TokenKind.PAREN_L,this.parseInputValueDef,l.TokenKind.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(l.TokenKind.COLON);let i=this.parseTypeReference();this.expectOptionalToken(l.TokenKind.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:s.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:s.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(l.TokenKind.EQUALS)?this.delimitedMany(l.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:s.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseEnumValueDefinition,l.TokenKind.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:s.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"".concat(d(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:s.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(l.TokenKind.BRACE_L,this.parseInputValueDef,l.TokenKind.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===l.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(l.TokenKind.BRACE_L,this.parseOperationTypeDefinition,l.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:s.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:s.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(l.TokenKind.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:s.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(l.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return(null===(n=this._options)||void 0===n?void 0:n.noLocation)!==!0&&(t.loc=new i.Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw(0,r.syntaxError)(this._lexer.source,t.start,"Expected ".concat(p(e),", found ").concat(d(t),"."))}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===l.TokenKind.NAME&&t.value===e)this._lexer.advance();else throw(0,r.syntaxError)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(d(t),"."))}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===l.TokenKind.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,"Unexpected ".concat(d(t),"."))}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}constructor(e,t){let n=(0,u.isSource)(e)?e:new u.Source(e);this._lexer=new a.Lexer(n),this._options=t}}function d(e){let t=e.value;return p(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function p(e){return(0,a.isPunctuatorTokenKind)(e)?'"'.concat(e,'"'):e}t.Parser=c},86127:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=n(79072);function i(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=1===t.line?n:0,l=t.column+u,c="".concat(e.name,":").concat(a,":").concat(l,"\n"),d=r.split(/\r\n|[\n\r]/g),p=d[i];if(p.length>120){let e=Math.floor(l/80),t=l%80,n=[];for(let e=0;e<p.length;e+=80)n.push(p.slice(e,e+80));return c+o([["".concat(a," |"),n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return c+o([["".concat(a-1," |"),d[i-1]],["".concat(a," |"),p],["|","^".padStart(l)],["".concat(a+1," |"),d[i+1]]])}function o(e){let t=e.filter(e=>{let[t,n]=e;return void 0!==n}),n=Math.max(...t.map(e=>{let[t]=e;return t.length}));return t.map(e=>{let[t,r]=e;return t.padStart(n)+(r?" "+r:"")}).join("\n")}},71209:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.printString=function(e){return'"'.concat(e.replace(n,r),'"')};let n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function r(e){return i[e.charCodeAt(0)]}let i=["\\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"]},38517:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,o.visit)(e,s)};var r=n(28242),i=n(71209),o=n(7036);let s={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>a(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=l("(",a(e.variableDefinitions,", "),")"),n=a([e.operation,a([e.name,t]),a(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:e=>{let{variable:t,type:n,defaultValue:r,directives:i}=e;return t+": "+n+l(" = ",r)+l(" ",a(i," "))}},SelectionSet:{leave:e=>{let{selections:t}=e;return u(t)}},Field:{leave(e){let{alias:t,name:n,arguments:r,directives:i,selectionSet:o}=e,s=l("",t,": ")+n,u=s+l("(",a(r,", "),")");return u.length>80&&(u=s+l("(\n",c(a(r,"\n")),"\n)")),a([u,a(i," "),o]," ")}},Argument:{leave:e=>{let{name:t,value:n}=e;return t+": "+n}},FragmentSpread:{leave:e=>{let{name:t,directives:n}=e;return"..."+t+l(" ",a(n," "))}},InlineFragment:{leave:e=>{let{typeCondition:t,directives:n,selectionSet:r}=e;return a(["...",l("on ",t),a(n," "),r]," ")}},FragmentDefinition:{leave:e=>{let{name:t,typeCondition:n,variableDefinitions:r,directives:i,selectionSet:o}=e;return"fragment ".concat(t).concat(l("(",a(r,", "),")")," ")+"on ".concat(n," ").concat(l("",a(i," ")," "))+o}},IntValue:{leave:e=>{let{value:t}=e;return t}},FloatValue:{leave:e=>{let{value:t}=e;return t}},StringValue:{leave:e=>{let{value:t,block:n}=e;return n?(0,r.printBlockString)(t):(0,i.printString)(t)}},BooleanValue:{leave:e=>{let{value:t}=e;return t?"true":"false"}},NullValue:{leave:()=>"null"},EnumValue:{leave:e=>{let{value:t}=e;return t}},ListValue:{leave:e=>{let{values:t}=e;return"["+a(t,", ")+"]"}},ObjectValue:{leave:e=>{let{fields:t}=e;return"{"+a(t,", ")+"}"}},ObjectField:{leave:e=>{let{name:t,value:n}=e;return t+": "+n}},Directive:{leave:e=>{let{name:t,arguments:n}=e;return"@"+t+l("(",a(n,", "),")")}},NamedType:{leave:e=>{let{name:t}=e;return t}},ListType:{leave:e=>{let{type:t}=e;return"["+t+"]"}},NonNullType:{leave:e=>{let{type:t}=e;return t+"!"}},SchemaDefinition:{leave:e=>{let{description:t,directives:n,operationTypes:r}=e;return l("",t,"\n")+a(["schema",a(n," "),u(r)]," ")}},OperationTypeDefinition:{leave:e=>{let{operation:t,type:n}=e;return t+": "+n}},ScalarTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r}=e;return l("",t,"\n")+a(["scalar",n,a(r," ")]," ")}},ObjectTypeDefinition:{leave:e=>{let{description:t,name:n,interfaces:r,directives:i,fields:o}=e;return l("",t,"\n")+a(["type",n,l("implements ",a(r," & ")),a(i," "),u(o)]," ")}},FieldDefinition:{leave:e=>{let{description:t,name:n,arguments:r,type:i,directives:o}=e;return l("",t,"\n")+n+(d(r)?l("(\n",c(a(r,"\n")),"\n)"):l("(",a(r,", "),")"))+": "+i+l(" ",a(o," "))}},InputValueDefinition:{leave:e=>{let{description:t,name:n,type:r,defaultValue:i,directives:o}=e;return l("",t,"\n")+a([n+": "+r,l("= ",i),a(o," ")]," ")}},InterfaceTypeDefinition:{leave:e=>{let{description:t,name:n,interfaces:r,directives:i,fields:o}=e;return l("",t,"\n")+a(["interface",n,l("implements ",a(r," & ")),a(i," "),u(o)]," ")}},UnionTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,types:i}=e;return l("",t,"\n")+a(["union",n,a(r," "),l("= ",a(i," | "))]," ")}},EnumTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,values:i}=e;return l("",t,"\n")+a(["enum",n,a(r," "),u(i)]," ")}},EnumValueDefinition:{leave:e=>{let{description:t,name:n,directives:r}=e;return l("",t,"\n")+a([n,a(r," ")]," ")}},InputObjectTypeDefinition:{leave:e=>{let{description:t,name:n,directives:r,fields:i}=e;return l("",t,"\n")+a(["input",n,a(r," "),u(i)]," ")}},DirectiveDefinition:{leave:e=>{let{description:t,name:n,arguments:r,repeatable:i,locations:o}=e;return l("",t,"\n")+"directive @"+n+(d(r)?l("(\n",c(a(r,"\n")),"\n)"):l("(",a(r,", "),")"))+(i?" repeatable":"")+" on "+a(o," | ")}},SchemaExtension:{leave:e=>{let{directives:t,operationTypes:n}=e;return a(["extend schema",a(t," "),u(n)]," ")}},ScalarTypeExtension:{leave:e=>{let{name:t,directives:n}=e;return a(["extend scalar",t,a(n," ")]," ")}},ObjectTypeExtension:{leave:e=>{let{name:t,interfaces:n,directives:r,fields:i}=e;return a(["extend type",t,l("implements ",a(n," & ")),a(r," "),u(i)]," ")}},InterfaceTypeExtension:{leave:e=>{let{name:t,interfaces:n,directives:r,fields:i}=e;return a(["extend interface",t,l("implements ",a(n," & ")),a(r," "),u(i)]," ")}},UnionTypeExtension:{leave:e=>{let{name:t,directives:n,types:r}=e;return a(["extend union",t,a(n," "),l("= ",a(r," | "))]," ")}},EnumTypeExtension:{leave:e=>{let{name:t,directives:n,values:r}=e;return a(["extend enum",t,a(n," "),u(r)]," ")}},InputObjectTypeExtension:{leave:e=>{let{name:t,directives:n,fields:r}=e;return a(["extend input",t,a(n," "),u(r)]," ")}}};function a(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(e=>e).join(n))&&void 0!==t?t:""}function u(e){return l("{\n",c(a(e,"\n")),"\n}")}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function c(e){return l(" ",e.replace(/\n/g,"\n "))}function d(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},18812:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0,t.isSource=function(e){return(0,o.instanceOf)(e,s)};var r=n(50709),i=n(15108),o=n(4640);class s{get[Symbol.toStringTag](){return"Source"}constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,r.devAssert)(!1,"Body must be a string. Received: ".concat((0,i.inspect)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}}t.Source=s},56716:function(e,t){var n;let r;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=r,(n=r||(t.TokenKind=r={})).SOF="<SOF>",n.EOF="<EOF>",n.BANG="!",n.DOLLAR="$",n.AMP="&",n.PAREN_L="(",n.PAREN_R=")",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"},7036:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=void 0,t.getEnterLeaveForKind=u,t.getVisitFn=function(e,t,n){let{enter:r,leave:i}=u(e,t);return n?i:r},t.visit=function(e,t){let n,l,c,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.QueryDocumentKeys,p=new Map;for(let e of Object.values(s.Kind))p.set(e,u(t,e));let h=Array.isArray(e),f=[e],y=-1,v=[],T=e,E=[],m=[];do{var b,k,O;let e;let s=++y===f.length,u=s&&0!==v.length;if(s){if(l=0===m.length?void 0:E[E.length-1],T=c,c=m.pop(),u){if(h){T=T.slice();let e=0;for(let[t,n]of v){let r=t-e;null===n?(T.splice(r,1),e++):T[r]=n}}else for(let[e,t]of(T=Object.defineProperties({},Object.getOwnPropertyDescriptors(T)),v))T[e]=t}y=n.index,f=n.keys,v=n.edits,h=n.inArray,n=n.prev}else if(c){if(null==(T=c[l=h?y:f[y]]))continue;E.push(l)}if(!Array.isArray(T)){(0,o.isNode)(T)||(0,r.devAssert)(!1,"Invalid AST Node: ".concat((0,i.inspect)(T),"."));let n=s?null===(b=p.get(T.kind))||void 0===b?void 0:b.leave:null===(k=p.get(T.kind))||void 0===k?void 0:k.enter;if((e=null==n?void 0:n.call(t,T,l,c,E,m))===a)break;if(!1===e){if(!s){E.pop();continue}}else if(void 0!==e&&(v.push([l,e]),!s)){if((0,o.isNode)(e))T=e;else{E.pop();continue}}}void 0===e&&u&&v.push([l,T]),s?E.pop():(n={inArray:h,index:y,keys:f,edits:v,prev:n},f=(h=Array.isArray(T))?T:null!==(O=d[T.kind])&&void 0!==O?O:[],y=-1,v=[],c&&m.push(c),c=T)}while(void 0!==n);return 0!==v.length?v[v.length-1][1]:e},t.visitInParallel=function(e){let t=Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(s.Kind)){let i=!1,o=Array(e.length).fill(void 0),s=Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){let{enter:n,leave:a}=u(e[t],r);i||(i=null!=n||null!=a),o[t]=n,s[t]=a}if(!i)continue;let l={enter(){for(var n,r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];let u=i[0];for(let r=0;r<e.length;r++)if(null===t[r]){let s=null===(n=o[r])||void 0===n?void 0:n.apply(e[r],i);if(!1===s)t[r]=u;else if(s===a)t[r]=a;else if(void 0!==s)return s}},leave(){for(var n,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];let u=i[0];for(let r=0;r<e.length;r++)if(null===t[r]){let o=null===(n=s[r])||void 0===n?void 0:n.apply(e[r],i);if(o===a)t[r]=a;else if(void 0!==o&&!1!==o)return o}else t[r]===u&&(t[r]=null)}};n[r]=l}return n};var r=n(50709),i=n(15108),o=n(31296),s=n(71323);let a=Object.freeze({});function u(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}t.BREAK=a}}]);