(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72580],{95762:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccumulateMultipartResponsesLink=void 0;let r=n(35449),i=n(98039);class o extends r.ApolloLink{constructor(e){super(),this.maxDelay=e.cutoffDelay}request(e,t){let n,r;if(!t)throw Error("This is not a terminal link!");let o=(0,i.hasDirectives)(["defer"],e.query),a=t(e);if(!o)return a;let s=this.maxDelay;return new i.Observable(e=>{let t=a.subscribe({next:e=>{n?(n.data&&"incremental"in e?n.data=(0,i.mergeIncrementalData)(n.data,e):e.data&&(n.data=e.data),e.errors&&(n.errors=[...n.errors||[],...e.errors||[]]),e.extensions&&(n.extensions=Object.assign(Object.assign({},n.extensions),e.extensions))):n=e,s?r||(r=setTimeout(o,s)):o()},error:t=>{r&&clearTimeout(r),e.error(t)},complete:()=>{r&&(clearTimeout(r),o()),e.complete()}});function o(){e.next(n),e.complete(),t.unsubscribe()}return function(){clearTimeout(r),t.unsubscribe()}})}}t.AccumulateMultipartResponsesLink=o},19488:function(e,t,n){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=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);it.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.ApolloNextAppProvider=t.ApolloClientSingleton=void 0;let a=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)&&r(t,e,n);return i(t,e),t}(n(72163)),s=n(35449),u=n(44833);t.ApolloClientSingleton=Symbol.for("ApolloClientSingleton"),t.ApolloNextAppProvider=e=>{var n,{makeClient:r,children:i}=e,c=o(e,["makeClient","children"]);let l=a.useRef();return"undefined"!=typeof window?l.current=null!==(n=window[t.ApolloClientSingleton])&&void 0!==n?n:window[t.ApolloClientSingleton]=r():l.current||(l.current=r()),a.createElement(s.ApolloProvider,{client:l.current},a.createElement(u.RehydrationContextProvider,Object.assign({},c),i))}},35629:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApolloBackgroundQueryTransport=t.ApolloSSRDataTransport=t.ApolloResultCache=t.ApolloRehydrationCache=void 0,t.ApolloRehydrationCache=Symbol.for("ApolloRehydrationCache"),t.ApolloResultCache=Symbol.for("ApolloResultCache"),t.ApolloSSRDataTransport=Symbol.for("ApolloSSRDataTransport"),t.ApolloBackgroundQueryTransport=Symbol.for("ApolloBackgroundQueryTransport")},78113:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NextSSRApolloClient=void 0;let i=n(35449),o=n(98039),a=n(82053),s=n(26985),u=n(35629),c=r(n(11851));function l(e){return e.queryManager}class f extends i.ApolloClient{constructor(e){super(e),this.rehydrationContext={incomingBackgroundQueries:[]},this.simulatedStreamingQueries=new Map,this.registerWindowHook()}identifyUniqueQuery(e){let t=this.documentTransform.transformDocument(e.query),{serverQuery:n}=l(this).getDocumentInfo(t);if(!n)throw Error("could not identify unique query");let r=(0,a.canonicalStringify)(e.variables||{}),i=[(0,o.print)(n),r].toString();return{query:n,cacheKey:i,varJson:r}}registerWindowHook(){"undefined"!=typeof window&&(Array.isArray(window[u.ApolloBackgroundQueryTransport]||[])&&((0,s.registerLateInitializingQueue)(u.ApolloBackgroundQueryTransport,e=>{var t;let n,r;if("complete"===document.readyState)return;let{query:a,varJson:s,cacheKey:u}=this.identifyUniqueQuery(e);if(!a)return;let c=(0,o.print)(a),f=l(this);if("lookup"in f.inFlightLinkObservables?n=!!(null===(t=f.inFlightLinkObservables.peek(c,s))||void 0===t?void 0:t.observable):(r=f.inFlightLinkObservables.get(c)||new Map,f.inFlightLinkObservables.set(c,r),n=r.has(s)),!n){let t,n,o;let a=()=>{if(f.fetchCancelFns.get(u)===o&&f.fetchCancelFns.delete(u),r)r.get(s)===n&&r.delete(s);else if("lookup"in f.inFlightLinkObservables)f.inFlightLinkObservables.remove(c,s);else throw Error("unexpected shape of QueryManager");this.simulatedStreamingQueries.get(u)===t&&this.simulatedStreamingQueries.delete(u)},l=new Promise((n,r)=>{this.simulatedStreamingQueries.set(u,t={resolve:n,reject:r,options:e})});if(l.finally(a),n=new i.Observable(e=>{l.then(t=>{e.next(t),e.complete()}).catch(t=>{e.error(t)})}),r)r.set(s,n);else if("lookup"in f.inFlightLinkObservables)f.inFlightLinkObservables.lookup(c,s).observable=n;else throw Error("unexpected shape of QueryManager");f.fetchCancelFns.set(u,o=e=>{var t;let{reject:n}=null!==(t=this.simulatedStreamingQueries.get(u))&&void 0!==t?t:{};n&&n(e),a()})}}),"complete"!==document.readyState&&window.addEventListener("load",()=>{let e=l(this);for(let[t,n]of this.simulatedStreamingQueries){this.simulatedStreamingQueries.delete(t),c.default.debug("streaming connection closed before server query could be fully transported, rerunning:",n.options);let r=e.generateQueryId();e.fetchQuery(r,Object.assign(Object.assign({},n.options),{context:Object.assign(Object.assign({},n.options.context),{queryDeduplication:!1})})).finally(()=>e.stopQuery(r)).then(n.resolve,n.reject)}},{once:!0})),Array.isArray(window[u.ApolloResultCache]||[])&&(0,s.registerLateInitializingQueue)(u.ApolloResultCache,e=>{var t;let{cacheKey:n}=this.identifyUniqueQuery(e),{resolve:r}=null!==(t=this.simulatedStreamingQueries.get(n))&&void 0!==t?t:{};r&&r({data:e.result}),this.cache.write(e)}))}watchQuery(e){return"undefined"==typeof window&&"cache-only"!==e.fetchPolicy&&"standby"!==e.fetchPolicy&&this.rehydrationContext.incomingBackgroundQueries.push(e),super.watchQuery(e)}setRehydrationContext(e){e.incomingBackgroundQueries!==this.rehydrationContext.incomingBackgroundQueries&&e.incomingBackgroundQueries.push(...this.rehydrationContext.incomingBackgroundQueries.splice(0)),this.rehydrationContext=e}}t.NextSSRApolloClient=f},76519:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NextSSRInMemoryCache=void 0;let r=n(35449);class i extends r.InMemoryCache{constructor(e){super(e),this.rehydrationContext={incomingResults:[],uninitialized:!0}}write(e){return"undefined"==typeof window&&this.rehydrationContext.incomingResults.push(e),super.write(e)}setRehydrationContext(e){this.rehydrationContext.uninitialized&&e.incomingResults.push(...this.rehydrationContext.incomingResults),this.rehydrationContext=e,this.rehydrationContext.uninitialized=!1}}t.NextSSRInMemoryCache=i},44833:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useRehydrationContext=t.RehydrationContextProvider=void 0;let i=n(35449),o=r(n(72163)),a=n(76519),s=n(53157),u=n(96811),c=r(n(11851)),l=n(78113),f=o.default.createContext(void 0);t.RehydrationContextProvider=({children:e,extraScriptProps:t})=>{let n=(0,i.useApolloClient)(),r=o.default.useRef();if("undefined"==typeof window){if(r.current||(r.current=function({extraScriptProps:e}){let t={currentlyInjected:!1,transportValueData:{},transportedValues:{},incomingResults:[],incomingBackgroundQueries:[],RehydrateOnClient(){if(t.currentlyInjected=!1,!Object.keys(t.transportValueData).length&&!Object.keys(t.incomingResults).length&&!Object.keys(t.incomingBackgroundQueries).length)return o.default.createElement(o.default.Fragment,null);c.default.debug("transporting data",t.transportValueData),c.default.debug("transporting results",t.incomingResults),c.default.debug("transporting incomingBackgroundQueries",t.incomingBackgroundQueries);let n=(0,u.transportDataToJS)({rehydrate:Object.fromEntries(Object.entries(t.transportValueData).filter(([e,n])=>t.transportedValues[e]!==n)),results:t.incomingResults,backgroundQueries:t.incomingBackgroundQueries});return Object.assign(t.transportedValues,t.transportValueData),t.transportValueData={},t.incomingResults=[],t.incomingBackgroundQueries=[],o.default.createElement("script",Object.assign({},e,{dangerouslySetInnerHTML:{__html:n}}))}};return t}({extraScriptProps:t})),n instanceof l.NextSSRApolloClient)n.setRehydrationContext(r.current);else throw Error("When using Next SSR, you must use the `NextSSRApolloClient`");if(n.cache instanceof a.NextSSRInMemoryCache)n.cache.setRehydrationContext(r.current);else throw Error("When using Next SSR, you must use the `NextSSRInMemoryCache`")}else(0,u.registerDataTransport)();return o.default.createElement(f.Provider,{value:r.current},e)},t.useRehydrationContext=function(){let e=o.default.useContext(f),t=o.default.useContext(s.ServerInsertedHTMLContext);if("undefined"==typeof window)return t&&e&&!e.currentlyInjected&&(e.currentlyInjected=!0,t(()=>o.default.createElement(e.RehydrateOnClient,null))),e}},48194:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveMultipartDirectivesLink=void 0;let r=n(35449),i=n(98039);function o(e,t){var n,r;return null===(r=null===(n=e.arguments)||void 0===n?void 0:n.find(e=>e.name.value===t))||void 0===r?void 0:r.value}class a extends r.ApolloLink{constructor(e){super(),this.stripDirectives=[],!1!==e.stripDefer&&this.stripDirectives.push("defer")}request(e,t){if(!t)throw Error("This is not a terminal link!");let{query:n}=e,r=n;return null===(r=(0,i.removeDirectivesFromDocument)(this.stripDirectives.map(e=>({test(t){let n="Directive"===t.kind&&t.name.value===e,r=o(t,"label");return(null==r?void 0:r.kind)==="StringValue"&&r.value.startsWith("SsrDontStrip")&&(n=!1),n},remove:!0})).concat({test(e){if("Directive"!==e.kind)return!1;let t=o(e,"label");return(null==t?void 0:t.kind)==="StringValue"&&t.value.startsWith("SsrStrip")},remove:!0}),r))?i.Observable.of({}):(e.query=r,t(e))}}t.RemoveMultipartDirectivesLink=a},58659:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SSRMultipartLink=void 0;let r=n(35449),i=n(48194),o=n(95762);class a extends r.ApolloLink{constructor(e={}){super(r.ApolloLink.from([new i.RemoveMultipartDirectivesLink({stripDefer:e.stripDefer}),new o.AccumulateMultipartResponsesLink({cutoffDelay:e.cutoffDelay||0})]).request)}}t.SSRMultipartLink=a},96811:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.registerDataTransport=t.transportDataToJS=void 0;let i=r(n(3427)),o=n(35629),a=n(26985),s=r(n(11851)),u=n(16211);t.transportDataToJS=function(e){let t=Symbol.keyFor(o.ApolloSSRDataTransport);return`(window[Symbol.for("${t}")] ??= []).push(${(0,u.htmlEscapeJsonString)(i.default.stringify(e))})`},t.registerDataTransport=function(){(0,a.registerLateInitializingQueue)(o.ApolloSSRDataTransport,e=>{var t,n,r;let a=i.default.deserialize(e);s.default.debug("received data from the server:",a),Object.assign(null!==(t=window[o.ApolloRehydrationCache])&&void 0!==t?t:window[o.ApolloRehydrationCache]={},a.rehydrate),(null!==(n=window[o.ApolloBackgroundQueryTransport])&&void 0!==n?n:window[o.ApolloBackgroundQueryTransport]=[]).push(...a.backgroundQueries),(null!==(r=window[o.ApolloResultCache])&&void 0!==r?r:window[o.ApolloResultCache]=[]).push(...a.results)})}},66886:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useBackgroundQuery=t.useReadQuery=t.useSuspenseQuery=t.useQuery=t.useFragment=void 0;let r=n(35449),i=n(77272),o=n(44833);function a(e,t){return function(){for(var n=arguments.length,r=Array(n),o=0;o(0,r.useQuery)(e,Object.assign(Object.assign({},t),{fetchPolicy:"cache-only"})):r.useQuery,["data","loading","networkStatus","called"]),t.useSuspenseQuery=a(r.useSuspenseQuery,["data","networkStatus"]),t.useReadQuery=a(r.useReadQuery,["data","networkStatus"]),t.useBackgroundQuery=function(){for(var e=arguments.length,t=Array(e),n=0;n{for(let n of e)t(n)}},window[e].push(...n))}}},7849:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetNextSSRApolloSingletons=void 0;let r=n(19488),i=n(35629);t.resetNextSSRApolloSingletons=function(){delete window[i.ApolloRehydrationCache],delete window[i.ApolloResultCache],delete window[i.ApolloSSRDataTransport],delete window[i.ApolloBackgroundQueryTransport],delete window[r.ApolloClientSingleton]}},77272:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTransportValue=void 0;let r=n(72163),i=n(35629),o=n(44833);t.useTransportValue=function(e){let t=(0,r.useId)(),[n,a]=(0,r.useState)(!1);(0,r.useEffect)(()=>a(!0),[]);let s=(0,o.useRehydrationContext)();if("undefined"==typeof window)s&&(s.transportValueData[t]=e);else{let r=window[i.ApolloRehydrationCache];r&&(n&&delete r[t],t in r&&(e=r[t]))}return e}},16211:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.htmlEscapeJsonString=t.ESCAPE_REGEX=void 0;let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"};t.ESCAPE_REGEX=/[&><\u2028\u2029]/g,t.htmlEscapeJsonString=function(e){return e.replace(t.ESCAPE_REGEX,e=>n[e])}},14544:function(e,t,n){"use strict";t.OO=void 0,n(71256),n(24683),n(33686),t.OO=function(e){let t=Promise.resolve(e.loadManifest()).then(e=>{let t=new Map;return e.operations.forEach(({name:e,id:n})=>{t.set(e,n)}),t});return t.catch(()=>{}),{generateHash:async function(e){let n=await t,r=null;for(let t of e.definitions)if("OperationDefinition"===t.kind){if(!t.name)throw Error("Anonymous operations are not supported by generatePersistedQueryIdsFromManifest");if(null!==r)throw Error("Multi-operation GraphQL documents are not supported by generatePersistedQueryIdsFromManifest");r=t.name.value}if(null===r)throw Error("Documents without operations are not supported by generatePersistedQueryIdsFromManifest");let i=n.get(r);if(void 0===i)throw Error(`Operation ${r} not found in manifest`);return i},disable:()=>!1}}},76166:function(e,t,n){"use strict";n.d(t,{default:function(){return i.a}});var r=n(84923),i=n.n(r)},14266:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22726:function(e){var t;t=function(){return(function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);throw Error("Cannot find module '"+a+"'")}s=n[a]={exports:{}},t[a][0].call(s.exports,function(e){return i(t[a][1][e]||e)},s,s.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a>16),c((65280&i)>>8),c(255&i);return 2==o?c(255&(i=n(e.charAt(r))<<2|n(e.charAt(r+1))>>4)):1==o&&(c((i=n(e.charAt(r))<<10|n(e.charAt(r+1))<<4|n(e.charAt(r+2))>>2)>>8&255),c(255&i)),a},e.fromByteArray=function(e){var t,n,r,i,o=e.length%3,a="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-o;t>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(o){case 1:a=(a+=s((n=e[e.length-1])>>2))+s(n<<4&63)+"==";break;case 2:a=(a=(a+=s((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+s(n>>4&63))+s(n<<2&63)+"="}return a}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,n){(function(t,r,i,o,a,s,u,c,l){var f=e("base64-js"),p=e("ieee754");function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);var r,o,a,s,u=typeof e;if("base64"===t&&"string"==u)for(e=(s=e).trim?s.trim():s.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==u)r=N(e);else if("string"==u)r=i.byteLength(e,t);else{if("object"!=u)throw Error("First argument needs to be a number, array or string.");r=N(e.length)}if(i._useTypedArrays?o=i._augment(new Uint8Array(r)):((o=this).length=r,o._isBuffer=!0),i._useTypedArrays&&"number"==typeof e.byteLength)o._set(e);else if(k(s=e)||i.isBuffer(s)||s&&"object"==typeof s&&"number"==typeof s.length)for(a=0;a>>0)):(t+1>>0),i}function y(e,t,n,r){if(r||(P("boolean"==typeof n,"missing or invalid endian"),P(null!=t,"missing offset"),P(t+1>>8*(r?o:1-o)}function _(e,t,n,r,i){if(i||(P(null!=t,"missing value"),P("boolean"==typeof r,"missing or invalid endian"),P(null!=n,"missing offset"),P(n+3>>8*(r?o:3-o)&255}function E(e,t,n,r,i){i||(P(null!=t,"missing value"),P("boolean"==typeof r,"missing or invalid endian"),P(null!=n,"missing offset"),P(n+1>8,r.push(n%=256),r.push(t);return r}(e),this,s,u);break;default:throw Error("Unknown encoding")}return c},i.prototype.toString=function(e,t,n){var r,i,o;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):this.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||rthis.length&&(r=this.length);var o=(r=e.length-t=this.length))return this[e]},i.prototype.readUInt16LE=function(e,t){return d(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return d(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return h(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return h(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(P(null!=e,"missing offset"),P(e=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){return y(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return y(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return v(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return v(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return m(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return m(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return g(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return g(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,n){n||(P(null!=e,"missing value"),P(null!=t,"missing offset"),P(t=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,n){b(this,e,t,!0,n)},i.prototype.writeUInt16BE=function(e,t,n){b(this,e,t,!1,n)},i.prototype.writeUInt32LE=function(e,t,n){_(this,e,t,!0,n)},i.prototype.writeUInt32BE=function(e,t,n){_(this,e,t,!1,n)},i.prototype.writeInt8=function(e,t,n){n||(P(null!=e,"missing value"),P(null!=t,"missing offset"),P(t=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},i.prototype.writeInt16LE=function(e,t,n){E(this,e,t,!0,n)},i.prototype.writeInt16BE=function(e,t,n){E(this,e,t,!1,n)},i.prototype.writeInt32LE=function(e,t,n){w(this,e,t,!0,n)},i.prototype.writeInt32BE=function(e,t,n){w(this,e,t,!1,n)},i.prototype.writeFloatLE=function(e,t,n){T(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){T(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){I(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){I(this,e,t,!1,n)},i.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,P("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),P(t<=n,"end < start"),n!==t&&0!==this.length){P(0<=t&&t"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function x(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function j(e,t){P("number"==typeof e,"cannot write a non-number as a number"),P(0<=e,"specified a negative value for writing an unsigned value"),P(e<=t,"value is larger than maximum value for type"),P(Math.floor(e)===e,"value has a fractional component")}function C(e,t,n){P("number"==typeof e,"cannot write a non-number as a number"),P(e<=t,"value larger than maximum allowed value"),P(n<=e,"value smaller than minimum allowed value"),P(Math.floor(e)===e,"value has a fractional component")}function L(e,t,n){P("number"==typeof e,"cannot write a non-number as a number"),P(e<=t,"value larger than maximum allowed value"),P(n<=e,"value smaller than minimum allowed value")}function P(e,t){if(!e)throw Error(t||"Failed assertion")}i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=O.get,e.set=O.set,e.write=O.write,e.toString=O.toString,e.toLocaleString=O.toString,e.toJSON=O.toJSON,e.copy=O.copy,e.slice=O.slice,e.readUInt8=O.readUInt8,e.readUInt16LE=O.readUInt16LE,e.readUInt16BE=O.readUInt16BE,e.readUInt32LE=O.readUInt32LE,e.readUInt32BE=O.readUInt32BE,e.readInt8=O.readInt8,e.readInt16LE=O.readInt16LE,e.readInt16BE=O.readInt16BE,e.readInt32LE=O.readInt32LE,e.readInt32BE=O.readInt32BE,e.readFloatLE=O.readFloatLE,e.readFloatBE=O.readFloatBE,e.readDoubleLE=O.readDoubleLE,e.readDoubleBE=O.readDoubleBE,e.writeUInt8=O.writeUInt8,e.writeUInt16LE=O.writeUInt16LE,e.writeUInt16BE=O.writeUInt16BE,e.writeUInt32LE=O.writeUInt32LE,e.writeUInt32BE=O.writeUInt32BE,e.writeInt8=O.writeInt8,e.writeInt16LE=O.writeInt16LE,e.writeInt16BE=O.writeInt16BE,e.writeInt32LE=O.writeInt32LE,e.writeInt32BE=O.writeInt32BE,e.writeFloatLE=O.writeFloatLE,e.writeFloatBE=O.writeFloatBE,e.writeDoubleLE=O.writeDoubleLE,e.writeDoubleBE=O.writeDoubleBE,e.fill=O.fill,e.inspect=O.inspect,e.toArrayBuffer=O.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,n){(function(n,r,i,o,a,s,u,c,l){var i=e("buffer").Buffer,f=new i(4);f.fill(0),t.exports={hash:function(e,t,n,r){for(var o=t(function(e,t){e.length%4!=0&&(n=e.length+(4-e.length%4),e=i.concat([e,f],n));for(var n,r=[],o=t?e.readInt32BE:e.readInt32LE,a=0;a64?t=e(t):t.length<64&&(t=i.concat([t,y],64));for(var r=new i(64),o=new i(64),a=0;a<64;a++)r[a]=54^t[a],o[a]=92^t[a];return n=e(i.concat([r,n])),e(i.concat([o,n]))}(n,t,o):n(o);return r=null,e?o.toString(e):o}}}function m(){var e=[].slice.call(arguments).join(" ");throw Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}y.fill(0),n.createHash=function(e){return v(e)},n.createHmac=v,n.randomBytes=function(e,t){if(!t||!t.call)return new i(d(e));try{t.call(this,void 0,new i(d(e)))}catch(e){t(e)}};var g,b=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],_=function(e){n[e]=function(){m("sorry,",e,"is not implemented yet")}};for(g in b)_(b[g],g)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,n){(function(n,r,i,o,a,s,u,c,l){var f=e("./helpers");function p(e,t){e[t>>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a>>32-i,n)}function h(e,t,n,r,i,o,a){return d(t&n|~t&r,e,t,i,o,a)}function y(e,t,n,r,i,o,a){return d(t&r|n&~r,e,t,i,o,a)}function v(e,t,n,r,i,o,a){return d(t^n^r,e,t,i,o,a)}function m(e,t,n,r,i,o,a){return d(n^(t|~r),e,t,i,o,a)}function g(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return f.hash(e,p,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,n){(function(e,n,r,i,o,a,s,u,c){var l;t.exports=l||function(e){for(var t,n=Array(e),r=0;r>>((3&r)<<3)&255;return n}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,n){(function(n,r,i,o,a,s,u,c,l){var f=e("./helpers");function p(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,i,o=Array(80),a=1732584193,s=-271733879,u=-1732584194,c=271733878,l=-1009589776,f=0;f>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t){return e<>>32-t}t.exports=function(e){return f.hash(e,p,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,n){(function(n,r,i,o,a,s,u,c,l){function f(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function p(e,t){var n,r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],o=Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var a,s,u=0;u>>t|e<<32-t},y=function(e,t){return e>>>t};t.exports=function(e){return d.hash(e,p,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,n){(function(e,t,r,i,o,a,s,u,c){n.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,f=n?i-1:0,p=n?-1:1,i=e[t+f];for(f+=p,o=i&(1<<-l)-1,i>>=-l,l+=s;0>=-l,l+=r;0>1,f=23===i?5960464477539062e-23:0,p=r?0:o-1,d=r?1:-1,o=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-a))<1&&(a--,r*=2),2<=(t+=1<=a+l?f/r:f*Math.pow(2,1-l))*r&&(a++,r/=2),c<=a+l?(s=0,a=c):1<=a+l?(s=(t*r-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));8<=i;e[n+p]=255&s,p+=d,s/=256,i-=8);for(a=a<0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function f(e,t){Object.entries(e).forEach(function(e){var n=l(e,2),r=n[0];return t(n[1],r)})}function p(e,t){return -1!==e.indexOf(t)}function d(e,t){for(var n=0;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},k=function(e,t){for(var n=0,r=t.length,i=e.length;n0?"Infinity":"-Infinity"},Number),D(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),D(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function A(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var F=A(function(e,t){return!!E(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw Error("Trying to deserialize unknown symbol");return r}),x=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),j=A(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return k([],N(e))},function(e,t){var n=x[t[1]];if(!n)throw Error("Trying to deserialize unknown typed array");return new n(e)});function C(e,t){return null!=e&&!!e.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}var L=A(C,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return S({},e);var r={};return n.forEach(function(t){r[t]=e[t]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),P=A(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),M=[L,F,P,j],V=function(e,t){var n=d(M,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=d(R,function(n){return n.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},$={};R.forEach(function(e){$[e.annotation]=e});var Q=function(e,t,n){if(g(t))switch(t[0]){case"symbol":return F.untransform(e,t,n);case"class":return L.untransform(e,t,n);case"custom":return P.untransform(e,t,n);case"typed-array":return j.untransform(e,t,n);default:throw Error("Unknown transformation: "+t)}else{var r=$[t];if(!r)throw Error("Unknown transformation: "+t);return r.untransform(e,n)}},U=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function q(e){if(p(e,"__proto__"))throw Error("__proto__ is not allowed as a property");if(p(e,"prototype"))throw Error("prototype is not allowed as a property");if(p(e,"constructor"))throw Error("constructor is not allowed as a property")}var B=function(e,t){q(t);for(var n=0;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Y=function(e,t){for(var n=0,r=t.length,i=e.length;ni(e)||o(e)||!1;var H=function(){return(H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Z=function(e,t){for(var n=0,r=t.length,i=e.length;ne(t,n)):!function(e){if("Object"!==J(e))return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(t)?t:[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)].reduce((r,i)=>{if(W(n.props)&&!n.props.includes(i))return r;let o=e(t[i],n);return function(e,t,n,r,i){let o=({}).propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===o&&(e[t]=n),i&&"nonenumerable"===o&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(r,i,o,t,n.nonenumerable),r},{})}(i);return(null==o?void 0:o.values)&&(t=a,n=o.values,r=this,function e(t,n,r){if(void 0===r&&(r=[]),t){if(!g(t)){f(t,function(t,i){return e(t,n,Y(Y([],X(r)),X(O(i))))});return}var i=X(t,2),o=i[0],a=i[1];a&&f(a,function(t,i){e(t,n,Y(Y([],X(r)),X(O(i))))}),n(o,r)}}(n,function(e,n){t=G(t,n,function(t){return Q(t,e,r)})}),a=t),(null==o?void 0:o.referentialEqualities)&&(a=function(e,t){function n(t,n){var r=B(e,O(n));t.map(O).forEach(function(t){e=G(e,t,function(){return r})})}if(g(t)){var r=X(t,2),i=r[0],o=r[1];i.forEach(function(t){e=G(e,O(t),function(){return e})}),o&&f(o,n)}else f(t,n);return e}(a,o.referentialEqualities)),a},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(H({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],n=0;n=0;--u)s.missing=((a={})[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,r.__extends)(t,e),t}(Error)},82053:function(e,t,n){"use strict";n.r(t),n.d(t,{ApolloCache:function(){return r.R},Cache:function(){return i.C},EntityStore:function(){return s.cf},InMemoryCache:function(){return c.h},MissingFieldError:function(){return o.y},Policies:function(){return f.r},cacheSlot:function(){return l.ab},canonicalStringify:function(){return p.B},createFragmentRegistry:function(){return m},defaultDataIdFromObject:function(){return u.uG},fieldNameFromStoreName:function(){return u.E_},isReference:function(){return a.Yk},makeReference:function(){return a.kQ},makeVar:function(){return l.QS}}),n(65845);var r=n(81820),i=n(13040),o=n(57502),a=n(19709),s=n(50474),u=n(57460),c=n(39747),l=n(69348),f=n(54618),p=n(99517),d=n(91261),h=n(53280),y=n(17911),v=n(48276);function m(){for(var e=[],t=0;t0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof w?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){y.RI.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof w;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!y.RI.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){(0,f.Yk)(e)&&(t[e.__ref]=!0),(0,d.s)(e)&&Object.keys(e).forEach(function(t){var n=e[t];(0,d.s)(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),_=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.dP)():null,this.keyMaker=new c.B(h.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var n=(0,y.E_)(t);n!==t&&this.d(n+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function E(e,t){O(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=t.seed,o=e.call(this,n,new _(void 0===r||r))||this;return o.stump=new T(o),o.storageTrie=new c.B(h.mr),i&&o.replace(i),o}return(0,o.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(r=b||(b={})),r.Root=i;var w=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,o.__extends)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){(0,u.D)(r[n],i[n])||t.group.dirty(e,n)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,o.__assign)((0,o.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return y.RI.call(this.data,t)?(0,o.__assign)((0,o.__assign)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(b),T=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new _(t.group.caching,t.group))||this}return(0,o.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(w);function I(e,t,n){var r=e[n],i=t[n];return(0,u.D)(r,i)?r:i}function O(e){return!!(e instanceof b&&e.group.caching)}},57460:function(e,t,n){"use strict";n.d(t,{$O:function(){return g},E_:function(){return b},Is:function(){return w},RC:function(){return function e(t,n,r){return!!(0,o.s)(n)&&((0,a.k)(n)?n.every(function(n){return e(t,n,r)}):t.selections.every(function(t){if((0,i.My)(t)&&(0,s.LZ)(t,r)){var o=(0,i.u2)(t);return f.call(n,o)&&(!t.selectionSet||e(t.selectionSet,n[o],r))}return!0}))}},RI:function(){return f},ig:function(){return E},j:function(){return _},jS:function(){return y},jp:function(){return m},lg:function(){return v},uG:function(){return d}});var r=n(64379),i=n(19709),o=n(86893),a=n(89490),s=n(13214),u=n(22561),c=n(68564),l=n(48276),f=Object.prototype.hasOwnProperty;function p(e){return null==e}function d(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=p(r)?p(i)?void 0:{_id:i}:{id:r}),p(r)&&!p(i)&&(r=i),!p(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var h={dataIdFromObject:d,addTypename:!0,resultCaching:!0,canonizeResults:!1};function y(e){return(0,r.o)(h,e)}function v(e){var t=e.canonizeResults;return void 0===t?h.canonizeResults:t}function m(e,t){return(0,i.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var g=/^[_a-z][_0-9a-z]*/i;function b(e){var t=e.match(g);return t?t[0]:e}function _(e){return(0,o.s)(e)&&!(0,i.Yk)(e)&&!(0,a.k)(e)}function E(){return new u.w0}function w(e,t){var n=(0,c.F)((0,l.kU)(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}},39747:function(e,t,n){"use strict";n.d(t,{h:function(){return M}});var r=n(91261),i=n(65845),o=n(17911),a=n(61109),s=n(81820),u=n(57502),c=n(1884),l=n(54759),f=n(19709),p=n(81404),d=n(24726),h=n(64379),y=n(48276),v=n(22561),m=n(13214),g=n(68564),b=n(11138),_=n(86893),E=n(50474),w=n(57460),T=n(89490),I=n(99517);function O(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var S=function(){function e(e){var t=this;this.knownResults=new(d.mr?WeakMap:Map),this.config=(0,h.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,w.lg)(e)}),this.canon=e.canon||new I.h,this.executeSelectionSet=(0,o.re)(function(e){var n,i=e.context.canonizeResults,o=O(e);o[3]=!i;var a=(n=t.executeSelectionSet).peek.apply(n,o);return a?i?(0,r.__assign)((0,r.__assign)({},a),{result:t.canon.admit(a.result)}):a:((0,E.HL)(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:O,makeCacheKey:function(e,t,n,r){if((0,E.ur)(n.store))return n.store.makeCacheKey(e,(0,f.Yk)(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=(0,o.re)(function(e){return(0,E.HL)(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if((0,E.ur)(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new I.h},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,i=e.query,o=e.rootId,a=e.variables,s=e.returnPartialData,c=e.canonizeResults,l=void 0===c?this.config.canonizeResults:c,p=this.config.cache.policies;a=(0,r.__assign)((0,r.__assign)({},(0,y.O4)((0,y.iW)(i))),a);var d=(0,f.kQ)(void 0===o?"ROOT_QUERY":o),h=this.executeSelectionSet({selectionSet:(0,y.p$)(i).selectionSet,objectOrReference:d,enclosingRef:d,context:(0,r.__assign)({store:n,query:i,policies:p,variables:a,varString:(0,I.B)(a),canonizeResults:l},(0,w.Is)(i,this.config.fragments))});if(h.missing&&(t=[new u.y(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(h.missing),h.missing,i,a)],!(void 0===s||s)))throw t[0];return{result:h.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,n,r){if((0,E.ur)(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,n=this,r=e.selectionSet,o=e.objectOrReference,a=e.enclosingRef,s=e.context;if((0,f.Yk)(o)&&!s.policies.rootTypenamesById[o.__ref]&&!s.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var u=s.variables,c=s.policies,d=s.store.getFieldValue(o,"__typename"),h=[],y=new v.w0;function _(e,n){var r;return e.missing&&(t=y.merge(t,((r={})[n]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof d&&!c.rootIdsByTypename[d]&&h.push({__typename:d});var E=new Set(r.selections);E.forEach(function(e){var r,v;if((0,m.LZ)(e,u)){if((0,f.My)(e)){var b=c.readField({fieldName:e.name.value,field:e,variables:s.variables,from:o},s),w=(0,f.u2)(e);void 0===b?l.Gw.added(e)||(t=y.merge(t,((r={})[w]="Can't find field '".concat(e.name.value,"' on ").concat((0,f.Yk)(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),r))):(0,T.k)(b)?b=_(n.executeSubSelectedArray({field:e,array:b,enclosingRef:a,context:s}),w):e.selectionSet?null!=b&&(b=_(n.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:b,enclosingRef:(0,f.Yk)(b)?b:a,context:s}),w)):s.canonizeResults&&(b=n.canon.pass(b)),void 0!==b&&h.push(((v={})[w]=b,v))}else{var I=(0,g.hi)(e,s.lookupFragment);if(!I&&e.kind===p.h.FRAGMENT_SPREAD)throw(0,i._K)(7,e.name.value);I&&c.fragmentMatches(I,d)&&I.selectionSet.selections.forEach(E.add,E)}}});var w={result:(0,v.bw)(h),missing:t},I=s.canonizeResults?this.canon.admit(w):(0,b.J)(w);return I.result&&this.knownResults.set(I.result,r),I},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,o=e.array,a=e.enclosingRef,s=e.context,u=new v.w0;function c(e,n){var r;return e.missing&&(t=u.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map(function(e,t){return null===e?null:(0,T.k)(e)?c(n.executeSubSelectedArray({field:r,array:e,enclosingRef:a,context:s}),t):r.selectionSet?c(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:(0,f.Yk)(e)?e:a,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){(0,_.s)(n)&&((0,i.kG)(!(0,f.Yk)(n),8,(0,w.jp)(e,n),t.name.value),Object.values(n).forEach(r.add,r))})}}(s.store,r,e),e)}),{result:s.canonizeResults?this.canon.admit(o):o,missing:t}},e}(),N=n(86135),k=n(15502),D=n(54618);function R(e,t,n){var i="".concat(t).concat(n),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===n?e:(0,r.__assign)((0,r.__assign)({},e),{clientOnly:t,deferred:n})),o}var A=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,o=t.query,s=t.result,u=t.dataId,c=t.variables,l=t.overwrite,p=(0,y.$H)(o),d=(0,w.ig)();c=(0,r.__assign)((0,r.__assign)({},(0,y.O4)(p)),c);var h=(0,r.__assign)((0,r.__assign)({store:e,written:Object.create(null),merge:function(e,t){return d.merge(e,t)},variables:c,varString:(0,I.B)(c)},(0,w.Is)(o,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),v=this.processSelectionSet({result:s||Object.create(null),dataId:u,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:h});if(!(0,f.Yk)(v))throw(0,i._K)(9,s);return h.incomingById.forEach(function(t,r){var o=t.storeObject,s=t.mergeTree,u=t.fieldNodeSet,c=(0,f.kQ)(r);if(s&&s.map.size){var l=n.applyMerges(s,c,o,h);if((0,f.Yk)(l))return;o=l}if(!1!==globalThis.__DEV__&&!h.overwrite){var p=Object.create(null);u.forEach(function(e){e.selectionSet&&(p[e.name.value]=!0)});var d=function(e){var t=s&&s.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(o).forEach(function(e){!0!==p[(0,w.E_)(e)]||d(e)||function(e,t,n,r){var o=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},s=o(e);if(s){var u=o(t);if(!(!u||(0,f.Yk)(s)||(0,a.D)(s,u)||Object.keys(s).every(function(e){return void 0!==r.getFieldValue(u,e)}))){var c=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),l=(0,w.E_)(n),p="".concat(c,".").concat(l);if(!L.has(p)){L.add(p);var d=[];(0,T.k)(s)||(0,T.k)(u)||[s,u].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||d.includes(t)||d.push(t)}),!1!==globalThis.__DEV__&&i.kG.warn(12,l,c,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",p,s,u)}}}}(c,o,e,h.store)})}e.merge(r,o)}),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,o=e.result,a=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,p=Object.create(null),d=n&&c.rootTypenamesById[n]||(0,f.qw)(o,a,s.fragmentMap)||n&&s.store.get(n,"__typename");"string"==typeof d&&(p.__typename=d);var h=function(){var e=(0,D.y)(arguments,p,s.variables);if((0,f.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var n=c.readField((0,r.__assign)((0,r.__assign)({},e),{from:t.storeObject}),s);if(void 0!==n)return n}}return c.readField(e,s)},y=new Set;this.flattenFields(a,o,s,d).forEach(function(e,n){var r,a=o[(0,f.u2)(n)];if(y.add(n),void 0!==a){var s=c.getStoreFieldName({typename:d,fieldName:n.name.value,field:n,variables:e.variables}),v=x(u,s),m=t.processFieldValue(a,n,n.selectionSet?R(e,!1,!1):e,v),g=void 0;n.selectionSet&&((0,f.Yk)(m)||(0,w.j)(m))&&(g=h("__typename",m));var b=c.getMergeFunction(d,n.name.value,g);b?v.info={field:n,typename:d,merge:b}:C(u,s),p=e.merge(p,((r={})[s]=m,r))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||l.Gw.added(n)||c.getReadFunction(d,n.name.value)||!1===globalThis.__DEV__||i.kG.error(10,(0,f.u2)(n),o)});try{var v=c.identify(o,{typename:d,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:p,readField:h}),m=v[0],g=v[1];n=n||m,g&&(p=s.merge(p,g))}catch(e){if(!n)throw e}if("string"==typeof n){var b=(0,f.kQ)(n),_=s.written[n]||(s.written[n]=[]);if(_.indexOf(a)>=0||(_.push(a),this.reader&&this.reader.isFresh(o,b,a,s)))return b;var E=s.incomingById.get(n);return E?(E.storeObject=s.merge(E.storeObject,p),E.mergeTree=function e(t,n){if(t===n||!n||j(n))return t;if(!t||j(t))return n;var i=t.info&&n.info?(0,r.__assign)((0,r.__assign)({},t.info),n.info):t.info||n.info,o=t.map.size&&n.map.size,a={info:i,map:o?new Map:t.map.size?t.map:n.map};if(o){var s=new Set(n.map.keys());t.map.forEach(function(t,r){a.map.set(r,e(t,n.map.get(r))),s.delete(r)}),s.forEach(function(r){a.map.set(r,e(n.map.get(r),t.map.get(r)))})}return a}(E.mergeTree,u),y.forEach(function(e){return E.fieldNodeSet.add(e)})):s.incomingById.set(n,{storeObject:p,mergeTree:j(u)?void 0:u,fieldNodeSet:y}),b}return p},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?(0,T.k)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,n,x(r,o));return C(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?(0,k.X)(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=(0,f.qw)(t,e,n.fragmentMap));var o=new Map,a=this.cache.policies,s=new N.B(!1);return function e(u,c){var l=s.lookup(u,c.clientOnly,c.deferred);l.visited||(l.visited=!0,u.selections.forEach(function(s){if((0,m.LZ)(s,n.variables)){var u=c.clientOnly,l=c.deferred;if(!(u&&l)&&(0,T.O)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var r=(0,f.NC)(e,n.variables);r&&!1===r.if||(l=!0)}}),(0,f.My)(s)){var d=o.get(s);d&&(u=u&&d.clientOnly,l=l&&d.deferred),o.set(s,R(n,u,l))}else{var h=(0,g.hi)(s,n.lookupFragment);if(!h&&s.kind===p.h.FRAGMENT_SPREAD)throw(0,i._K)(11,s.name.value);h&&a.fragmentMatches(h,r,t,n.variables)&&e(h.selectionSet,R(n,u,l))}}}))}(e,n),o},e.prototype.applyMerges=function(e,t,n,o,a){var s=this;if(e.map.size&&!(0,f.Yk)(n)){var u,c,l=!(0,T.k)(n)&&((0,f.Yk)(t)||(0,w.j)(t))?t:void 0,p=n;l&&!a&&(a=[(0,f.Yk)(l)?l.__ref:l]);var d=function(e,t){return(0,T.k)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=d(l,t),r=d(p,t);if(void 0!==r){a&&a.push(t);var u=s.applyMerges(e,n,r,o,a);u!==r&&(c=c||new Map).set(t,u),a&&(0,i.kG)(a.pop()===t)}}),c&&(n=(0,T.k)(p)?p.slice(0):(0,r.__assign)({},p),c.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,o,a&&(u=o.store).getStorage.apply(u,a)):n},e}(),F=[];function x(e,t){var n=e.map;return n.has(t)||n.set(t,F.pop()||{map:new Map}),n.get(t)}function j(e){return!e||!(e.info||e.map.size)}function C(e,t){var n=e.map,r=n.get(t);r&&j(r)&&(F.push(r),n.delete(t))}var L=new Set,P=n(69348),M=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new c.A(l.Gw),n.assumeImmutableResults=!0,n.makeVar=P.QS,n.txCount=0,n.config=(0,w.jS)(t),n.addTypename=!!n.config.addTypename,n.policies=new D.r({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,r.__extends)(t,e),t.prototype.init=function(){var e=this.data=new E.cf.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new A(this,this.storeReader=new S({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,w.lg)(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=(0,o.re)(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if((0,E.ur)(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,(0,I.B)({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,r.__assign)((0,r.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof u.y)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(w.RI.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,r.__assign)((0,r.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,P._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,P.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){I.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,f.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&i.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(w.RI.call(e,"id"))return!1;e=(0,r.__assign)((0,r.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),I.B.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,P.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,i=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var r=n.data,o=n.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=i(n)}finally{--n.txCount,n.data=r,n.optimisticData=o}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,r.__assign)((0,r.__assign)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,r.__assign)((0,r.__assign)({},e),{onWatchUpdated:function(e,t){var n=u.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach(function(e){return n.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,r,n)))&&(n&&(0,a.D)(n.result,r.result)||e.callback(e.lastDiff=r,n))},t}(s.R)},99517:function(e,t,n){"use strict";n.d(t,{B:function(){return f},h:function(){return l}});var r,i,o=n(91261),a=n(86135),s=n(86893),u=n(24726),c=n(89490),l=function(){function e(){this.known=new(u.sy?WeakSet:Set),this.pool=new a.B(u.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,s.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,s.s)(e)){var t=(0,s.s)(e)?(0,c.k)(e)?e.slice(0):(0,o.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,s.s)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return i.array||(this.known.add(i.array=r),!1!==globalThis.__DEV__&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],u=this.sortedKeys(e);a.push(u.json);var c=a.length;u.sorted.forEach(function(n){a.push(t.admit(e[n]))});var i=this.pool.lookupArray(a);if(!i.object){var l=i.object=Object.create(o);this.known.add(l),u.sorted.forEach(function(e,t){l[e]=a[c+t]}),!1!==globalThis.__DEV__&&Object.freeze(l)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),f=Object.assign(function(e){if((0,s.s)(e)){void 0===r&&p();var t=r.admit(e),n=i.get(t);return void 0===n&&i.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:p});function p(){r=new l,i=new(u.mr?WeakMap:Map)}},54618:function(e,t,n){"use strict";n.d(t,{r:function(){return O},y:function(){return N}});var r=n(91261),i=n(65845),o=n(19709),a=n(39578),s=n(86893),u=n(57460),c=n(89490),l=n(69348),f=n(99517),p=n(22561),d=Object.create(null);function h(e){var t=JSON.stringify(e);return d[t]||(d[t]=Object.create(null))}function y(e){var t=h(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},o=n.keyObject=m(e,function(e){var o=b(n.storeObject,e,r);return void 0===o&&t!==n.storeObject&&u.RI.call(t,e[0])&&(o=b(t,e,g)),(0,i.kG)(void 0!==o,2,e.join("."),t),o});return"".concat(n.typename,":").concat(JSON.stringify(o))})}function v(e){var t=h(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,a=n.fieldName,s=JSON.stringify(m(e,function(e){var n=e[0],a=n.charAt(0);if("@"===a){if(r&&(0,c.O)(r.directives)){var s=n.slice(1),l=r.directives.find(function(e){return e.name.value===s}),f=l&&(0,o.NC)(l,i);return f&&b(f,e.slice(1))}return}if("$"===a){var p=n.slice(1);if(i&&u.RI.call(i,p)){var d=e.slice(0);return d[0]=p,b(i,d)}return}if(t)return b(t,e)}));return(t||"{}"!==s)&&(a+=":"+s),a})}function m(e,t){var n=new p.w0;return(function e(t){var n=h(t);if(!n.paths){var r=n.paths=[],i=[];t.forEach(function(n,o){(0,c.k)(n)?(e(n).forEach(function(e){return r.push(i.concat(e))}),i.length=0):(i.push(n),(0,c.k)(t[o+1])||(r.push(i.slice(0)),i.length=0))})}return n.paths})(e).reduce(function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e},Object.create(null))}function g(e,t){return e[t]}function b(e,t,n){return n=n||g,function e(t){return(0,s.s)(t)?(0,c.k)(t)?t.map(e):m(Object.keys(t).sort(),function(e){return b(t,e)}):t}(t.reduce(function e(t,r){return(0,c.k)(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function _(e){return void 0!==e.args?e.args:e.field?(0,o.NC)(e.field,e.variables):null}o.PT.setStringify(f.B);var E=function(){},w=function(e,t){return t.fieldName},T=function(e,t,n){return(0,n.mergeObjects)(e,t)},I=function(e,t){return t},O=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,r.__assign)({dataIdFromObject:u.uG},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,i,o=this,a=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,u=(0,r.__assign)((0,r.__assign)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=N(arguments,s);return o.readField(e,{store:o.cache.data,variables:e.variables})}}),l=a&&this.getTypePolicy(a),f=l&&l.keyFn||this.config.dataIdFromObject;f;){var p=f((0,r.__assign)((0,r.__assign)({},e),s),u);if((0,c.k)(p))f=y(p);else{i=p;break}}return i=i?String(i):void 0,u.keyObject?[i,u.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var i=e[n],o=i.queryType,a=i.mutationType,s=i.subscriptionType,c=(0,r.__rest)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),u.RI.call(t.toBeAdded,n)?t.toBeAdded[n].push(c):t.toBeAdded[n]=[c]})},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?T:!1===t?I:e.merge}a(r,t.merge),r.keyFn=!1===i?E:(0,c.k)(i)?y(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach(function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,l=i.merge;r.keyFn=!1===s?w:(0,c.k)(s)?v(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||w)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,i.kG)(!r||r===e,3,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(u.$O);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!u.RI.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(n,r){if(n.test(e)){var o=t.supertypeMap.get(r);o&&o.forEach(function(e){return i.add(e)})}})),i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),o=i.fields;Object.assign(n,(0,r.__rest)(i,["fields"])),Object.assign(n.fields,o)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(n){t.updateTypePolicy(e,n)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),c=[s],l=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&0>c.indexOf(t)&&c.push(t)},f=!!(n&&this.fuzzySubtypes.size),p=!1,d=0;d1?c:t}:(o=(0,r.__assign)({},s),u.RI.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&i.kG.warn(5,(0,a.v)(Array.from(e))),void 0===o.variables&&(o.variables=n),o}function k(e){return function(t,n){if((0,c.k)(t)||(0,c.k)(n))throw(0,i._K)(6);if((0,s.s)(t)&&(0,s.s)(n)){var a=e.getFieldValue(t,"__typename"),l=e.getFieldValue(n,"__typename");if(a&&l&&a!==l)return n;if((0,o.Yk)(t)&&(0,u.j)(n))return e.merge(t.__ref,n),t;if((0,u.j)(t)&&(0,o.Yk)(n))return e.merge(t,n.__ref),n;if((0,u.j)(t)&&(0,u.j)(n))return(0,r.__assign)((0,r.__assign)({},t),n)}return n}}},33686:function(e,t,n){"use strict";n.r(t),n.d(t,{ApolloCache:function(){return ei.R},ApolloClient:function(){return en},ApolloError:function(){return O.cA},ApolloLink:function(){return eu.ApolloLink},Cache:function(){return er.C},DocumentTransform:function(){return y.A},HttpLink:function(){return u.u},InMemoryCache:function(){return eo.h},MissingFieldError:function(){return ea.y},NetworkStatus:function(){return S.Ie},Observable:function(){return T.y},ObservableQuery:function(){return L},checkFetcher:function(){return ep.U},concat:function(){return eu.concat},createHttpLink:function(){return ey.L},createSignalIfSupported:function(){return ed},defaultDataIdFromObject:function(){return es.uG},defaultPrinter:function(){return ef.sb},disableExperimentalFragmentVariables:function(){return ew.J9},disableFragmentWarnings:function(){return ew._t},empty:function(){return eu.empty},enableExperimentalFragmentVariables:function(){return ew.wO},execute:function(){return eu.execute},fallbackHttpConfig:function(){return ef.SC},from:function(){return eu.from},fromError:function(){return eb.Q},fromPromise:function(){return eg},gql:function(){return ew.Ps},isApolloError:function(){return O.MS},isNetworkRequestSettled:function(){return S.Jp},isReference:function(){return _.Yk},makeReference:function(){return _.kQ},makeVar:function(){return B.QS},mergeOptions:function(){return ee.J},parseAndCheckHttpResponse:function(){return ec.dO},resetCaches:function(){return ew.HW},rewriteURIForGET:function(){return ev.H},selectHttpOptionsAndBody:function(){return ef.E4},selectHttpOptionsAndBodyInternal:function(){return ef.ve},selectURI:function(){return eh.r},serializeFetchParameter:function(){return el.g},setLogVerbosity:function(){return eE.setVerbosity},split:function(){return eu.split},throwServerError:function(){return e_.P},toPromise:function(){return em}});var r=n(91261),i=n(65845),o=n(87369),a=n(15269),s=n(35841),u=n(54900),c=n(61109),l=n(22935),f=n(13214),p=n(54759),d=n(99517),h=n(24726),y=n(1884),v=n(80803),m=n(48284),g=n(89490),b=n(48276),_=n(19709),E=n(86893),w=n(92986),T=n(70584),I=n(50112),O=n(22383),S=n(61841),N=n(64379),k=n(15502),D=n(49412),R=n(49721),A=n(68564);function F(e){return!!e.directives&&e.directives.some(x)}function x(e){return"nonreactive"===e.name.value}var j=Object.assign,C=Object.hasOwnProperty,L=function(e){function t(t){var n=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=M)}catch(e){}var n=!a.observers.size;a.observers.add(e);var r=a.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=n,a.waitForOwnResult=$(o.fetchPolicy),a.isTornDown=!1;var s=n.defaultOptions.watchQuery,u=(void 0===s?{}:s).fetchPolicy,c=void 0===u?"cache-first":u,l=o.fetchPolicy,f=void 0===l?c:l,p=o.initialFetchPolicy,d=void 0===p?"standby"===f?c:f:p;a.options=(0,r.__assign)((0,r.__assign)({},o),{initialFetchPolicy:d,fetchPolicy:f}),a.queryId=i.queryId||n.generateQueryId();var h=(0,b.$H)(a.query);return a.queryName=h&&h.name&&h.name.value,a}return(0,r.__extends)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||S.Ie.ready,i=(0,r.__assign)((0,r.__assign)({},t),{loading:(0,S.Oj)(n),networkStatus:n}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if($(a)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),(0,c.D)(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,s.complete&&i.networkStatus===S.Ie.loading&&("cache-first"===a||"cache-only"===a)&&(i.networkStatus=S.Ie.ready,i.loading=!1)):i.partial=!0,!1===globalThis.__DEV__||s.complete||this.options.partialRefetch||i.loading||i.data||i.error||V(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e,t){var n,i,o,a,s,u,l;return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?(n=this.query,i=this.last.result,o=this.variables,a=i.data,s=(0,r.__rest)(i,["data"]),u=e.data,l=(0,r.__rest)(e,["data"]),!((0,c.Z)(s,l)&&function e(t,n,r,i){if(n===r)return!0;var o=new Set;return t.selections.every(function(t){if(o.has(t)||(o.add(t),!(0,f.LZ)(t,i.variables)||F(t)))return!0;if((0,_.My)(t)){var a=(0,_.u2)(t),s=n&&n[a],u=r&&r[a],l=t.selectionSet;if(!l)return(0,c.Z)(s,u);var p=Array.isArray(s),d=Array.isArray(u);if(p!==d)return!1;if(p&&d){var h=s.length;if(u.length!==h)return!1;for(var y=0;y0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(T.y);function P(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=r,"function"==typeof r)?r.apply(this,arguments):n}}):e.reobserve()}function M(e){!1!==globalThis.__DEV__&&i.kG.error(21,e.message,e.stack)}function V(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.kG.debug(22,e)}function $(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,R.D)(L);var Q=n(53280),U=n(64497),q=n(22561),B=n(69348),G=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,q.Ee)(t.resolvers,e)}):this.resolvers=(0,q.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__generator)(this,function(e){return t?[2,this.resolveDocument(t,n.data,i,o,this.fragmentMatcher,s).then(function(e){return(0,r.__assign)((0,r.__assign)({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,f.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,p.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,r.__assign)((0,r.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__generator)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return(0,r.__assign)((0,r.__assign)({},t),e.exportedVariables)})]:[2,(0,r.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,Q.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return Q.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,p.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,i,o,a){return void 0===n&&(n={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,r.__awaiter)(this,void 0,void 0,function(){var s,u,c,l,f,p,d,h,y,v;return(0,r.__generator)(this,function(m){return s=(0,b.p$)(e),u=(0,b.kU)(e),c=(0,A.F)(u),l=this.collectSelectionsToResolve(s,c),p=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",d=this,h=d.cache,y=d.client,v={fragmentMap:c,context:(0,r.__assign)((0,r.__assign)({},n),{cache:h,client:y}),variables:i,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,o){return(0,r.__awaiter)(this,void 0,void 0,function(){var a,s,u,c,l,p=this;return(0,r.__generator)(this,function(d){return a=o.fragmentMap,s=o.context,u=o.variables,c=[n],l=function(e){return(0,r.__awaiter)(p,void 0,void 0,function(){var l,p;return(0,r.__generator)(this,function(r){return(t||o.selectionsToResolve.has(e))&&(0,f.LZ)(e,u)?(0,_.My)(e)?[2,this.resolveField(e,t,n,o).then(function(t){var n;void 0!==t&&c.push(((n={})[(0,_.u2)(e)]=t,n))})]:((0,_.Ao)(e)?l=e:(l=a[e.name.value],(0,i.kG)(l,16,e.name.value)),l&&l.typeCondition&&(p=l.typeCondition.name.value,o.fragmentMatcher(n,p,s)))?[2,this.resolveSelectionSet(l.selectionSet,t,n,o).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return(0,q.bw)(c)})]})})},e.prototype.resolveField=function(e,t,n,i){return(0,r.__awaiter)(this,void 0,void 0,function(){var o,a,s,u,c,l,f,p,d,h=this;return(0,r.__generator)(this,function(r){return n?(o=i.variables,u=(a=e.name.value)!==(s=(0,_.u2)(e)),l=Promise.resolve(c=n[s]||n[a]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=n.__typename||i.defaultOperationType,(p=this.resolvers&&this.resolvers[f])&&(d=p[u?a:s])&&(l=Promise.resolve(B.ab.withValue(this.cache,d,[n,(0,_.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then(function(n){if(void 0===n&&(n=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=n)})}),!e.selectionSet||null==n)return n;var r,o,a=null!==(o=null===(r=e.directives)||void 0===r?void 0:r.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(n)?h.resolveSubSelectedArray(e,t||a,n,i):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,n,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(o){if(!r.has(o)){var a=new Set;r.set(o,a),(0,Q.Vn)(o,{Directive:function(e,t,r,i,o){"client"===e.name.value&&o.forEach(function(e){n(e)&&(0,U.pO)(e)&&a.add(e)})},FragmentSpread:function(r,o,s,u,c){var l=t[r.name.value];(0,i.kG)(l,17,r.name.value);var f=e(l);f.size>0&&(c.forEach(function(e){n(e)&&(0,U.pO)(e)&&a.add(e)}),a.add(r),f.forEach(function(e){a.add(e)}))}})}return r.get(o)}(e)},e}(),X=new(h.mr?WeakMap:Map);function Y(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return X.set(e,(X.get(e)+1)%1e15),n.apply(this,arguments)})}function z(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var J=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;X.has(n)||(X.set(n,0),Y(n,"evict"),Y(n,"modify"),Y(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||S.Ie.loading;return this.variables&&this.networkStatus!==S.Ie.loading&&!(0,c.D)(this.variables,e.variables)&&(t=S.Ie.setVariables),(0,c.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){z(this),this.dirty=!1},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,c.D)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,c.D)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():P(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;z(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,S.Oj)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var i=(0,r.__assign)((0,r.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,c.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===X.get(this.cache)&&(0,c.D)(t,n.variables)&&(0,c.D)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,o=new q.w0,a=(0,g.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,g.O)(e.incremental)){var s=(0,l.mT)(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(W(e,n.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:X.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(n.variables),s=o.diff(a);!i.stopped&&(0,c.D)(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=S.Ie.ready},e.prototype.markError=function(e){return this.networkStatus=S.Ie.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function W(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!(0,m.d)(e);return!r&&n&&e.data&&(r=!0),r}var H=n(54019),K=Object.prototype.hasOwnProperty,Z=function(){function e(e){var t=this,n=e.cache,r=e.link,i=e.defaultOptions,o=e.documentTransform,a=e.queryDeduplication,s=e.onBroadcast,u=e.ssrMode,c=e.clientAwareness,l=e.localState,f=e.assumeImmutableResults,p=void 0===f?!!n.assumeImmutableResults:f;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(h.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var d=new y.A(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=n,this.link=r,this.defaultOptions=i||Object.create(null),this.queryDeduplication=void 0!==a&&a,this.clientAwareness=void 0===c?{}:c,this.localState=l||new G({cache:n}),this.ssrMode=void 0!==u&&u,this.assumeImmutableResults=p,this.documentTransform=o?d.concat(o).concat(d):d,(this.onBroadcast=s)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches((0,i._K)(23))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,o=e.mutation,a=e.variables,s=e.optimisticResponse,u=e.updateQueries,c=e.refetchQueries,l=void 0===c?[]:c,f=e.awaitRefetchQueries,p=void 0!==f&&f,d=e.update,h=e.onQueryUpdated,y=e.fetchPolicy,g=void 0===y?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":y,b=e.errorPolicy,_=void 0===b?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":b,E=e.keepRootFields,w=e.context;return(0,r.__awaiter)(this,void 0,void 0,function(){var e,t,n,c;return(0,r.__generator)(this,function(f){switch(f.label){case 0:if((0,i.kG)(o,24),(0,i.kG)("network-only"===g||"no-cache"===g,25),e=this.generateMutationId(),o=this.cache.transformForLink(this.transform(o)),t=this.getDocumentInfo(o).hasClientExports,a=this.getVariables(o,a),!t)return[3,2];return[4,this.localState.addExportedVariables(o,a,w)];case 1:a=f.sent(),f.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:g,errorPolicy:_,context:w,updateQueries:u,update:d,keepRootFields:E}),this.broadcastQueries(),c=this,[2,new Promise(function(t,i){return(0,v.s)(c.getObservableFromLink(o,(0,r.__assign)((0,r.__assign)({},w),{optimisticResponse:s}),a,!1),function(t){if((0,m.d)(t)&&"none"===_)throw new O.cA({graphQLErrors:(0,m.K)(t)});n&&(n.loading=!1,n.error=null);var i=(0,r.__assign)({},t);return"function"==typeof l&&(l=l(i)),"ignore"===_&&(0,m.d)(i)&&delete i.errors,c.markMutationResult({mutationId:e,result:i,document:o,variables:a,fetchPolicy:g,errorPolicy:_,context:w,update:d,updateQueries:u,awaitRefetchQueries:p,refetchQueries:l,removeOptimistic:s?e:void 0,onQueryUpdated:h,keepRootFields:E})}).subscribe({next:function(e){c.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){n&&(n.loading=!1,n.error=t),s&&c.cache.removeOptimistic(e),c.broadcastQueries(),i(t instanceof O.cA?t:new O.cA({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&W(i,e.errorPolicy)){if((0,l.GG)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,l.GG)(i)&&(0,g.O)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;s.result&&(u=(0,l.mT)(s.result,i)),void 0!==u&&(i.data=u,o.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,r){var a=e.observableQuery,s=a&&a.queryName;if(s&&K.call(c,s)){var u=c[s],l=n.queries.get(r),f=l.document,p=l.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var y=u(h,{mutationResult:i,queryName:f&&(0,b.rY)(f)||void 0,queryVariables:p});y&&o.push({result:y,dataId:"ROOT_QUERY",query:f,variables:p})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update,u=!(0,l.M0)(i)||(0,l.GG)(i)&&!i.hasNext;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,r.__assign)((0,r.__assign)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}u&&s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return f.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var n=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult((0,r.__assign)((0,r.__assign)({},t),{result:{data:o}}),e)}catch(e){!1!==globalThis.__DEV__&&i.kG.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:(0,f.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,f.FS)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,p.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,b.O4)((0,b.$H)(e)),asQuery:(0,r.__assign)((0,r.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,r.__assign)((0,r.__assign)({},e),{operation:"query"}):e})})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,r.__assign)((0,r.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,r.__assign)((0,r.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new J(this),i=new L({queryManager:this,queryInfo:n,options:e});return i.lastQuery=t,this.queries.set(i.queryId,n),n.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),(0,i.kG)(e.query,26),(0,i.kG)("Document"===e.query.kind,27),(0,i.kG)(!e.returnPartialData,28),(0,i.kG)(!e.pollInterval,29),this.fetchQuery(t,(0,r.__assign)((0,r.__assign)({},e),{query:this.transform(e.query)})).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,i._K)(30)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=S.Ie.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?o.set(e,!1):(0,_.JW)(e)?o.set(t.transform(e),!1):(0,E.s)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,r){var i=t.observableQuery,a=t.document;if(i){if("all"===e){n.set(r,i);return}var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(n.set(r,i),s&&o.set(s,!0),a&&o.set(a,!0))}}),a.size&&a.forEach(function(e){var o=(0,w.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new L({queryManager:t,queryInfo:a,options:(0,r.__assign)((0,r.__assign)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),n.set(o,s)}),!1!==globalThis.__DEV__&&o.size&&o.forEach(function(e,t){e||!1===globalThis.__DEV__||i.kG.warn("string"==typeof t?31:32,t)}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,a=e.variables,s=e.context,u=void 0===s?{}:s;n=this.transform(n),a=this.getVariables(n,a);var c=function(e){return t.getObservableFromLink(n,u,e).map(function(i){"no-cache"!==r&&(W(i,o)&&t.cache.write({query:n,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=(0,m.d)(i),s=(0,O.ls)(i);if(a||s){var u={};if(a&&(u.graphQLErrors=i.errors),s&&(u.protocolErrors=i.extensions[O.YG]),"none"===o||s)throw new O.cA(u)}return"ignore"===o&&delete i.errors,i})};if(this.getDocumentInfo(n).hasClientExports){var l=this.localState.addExportedVariables(n,a,u).then(c);return new T.y(function(e){var t=null;return l.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return c(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,i){var o,s,u=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.getDocumentInfo(e),l=c.serverQuery,f=c.clientQuery;if(l){var p=this.inFlightLinkObservables,h=this.link,y={query:l,variables:n,operationName:(0,b.rY)(l)||void 0,context:this.prepareContext((0,r.__assign)((0,r.__assign)({},t),{forceFetch:!i}))};if(t=y.context,i){var m=(0,H.S)(l),g=p.get(m)||new Map;p.set(m,g);var _=(0,d.B)(n);if(!(s=g.get(_))){var E=new I.X([(0,a.h)(h,y)]);g.set(_,s=E),E.beforeNext(function(){g.delete(_)&&g.size<1&&p.delete(m)})}}else s=new I.X([(0,a.h)(h,y)])}else s=new I.X([T.y.of({data:{}})]),t=this.prepareContext(t);return f&&(s=(0,v.s)(s,function(e){return u.localState.runResolvers({document:f,remoteResult:e,context:t,variables:n})})),s},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return(0,v.s)(this.getObservableFromLink(i,n.context,n.variables),function(o){var a=(0,m.K)(o),s=a.length>0;if(r>=e.lastRequestId){if(s&&"none"===n.errorPolicy)throw e.markError(new O.cA({graphQLErrors:a}));e.markResult(o,i,n,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:S.Ie.ready};return s&&"ignore"!==n.errorPolicy&&(u.errors=a,u.networkStatus=S.Ie.error),u},function(t){var n=(0,O.MS)(t)?t:new O.cA({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchConcastWithInfo=function(e,t,n){var r,i,o=this;void 0===n&&(n=S.Ie.loading);var a=t.query,s=this.getVariables(a,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?c&&c.fetchPolicy||"cache-first":l,p=t.errorPolicy,d=void 0===p?c&&c.errorPolicy||"none":p,h=t.returnPartialData,y=t.notifyOnNetworkStatusChange,v=t.context,m=Object.assign({},t,{query:a,variables:s,fetchPolicy:f,errorPolicy:d,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==y&&y,context:void 0===v?{}:v}),g=function(e){m.variables=e;var r=o.fetchQueryByPolicy(u,m,n);return"standby"!==m.fetchPolicy&&r.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),r},b=function(){return o.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){b(),setTimeout(function(){return r.cancel(e)})}),this.getDocumentInfo(m.query).hasClientExports)r=new I.X(this.localState.addExportedVariables(m.query,m.variables,m.context).then(g).then(function(e){return e.sources})),i=!0;else{var _=g(m.variables);i=_.fromLink,r=new I.X(_.sources)}return r.promise.then(b,b),{concast:r,fromLink:i}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,w.X)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})});var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof J&&e.watcher.observableQuery;if(r){if(u){c.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),i}null!==u&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=u(i,a,o)}u&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,p=t.context,d=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:o,variables:a,networkStatus:n});var y=function(){return e.getDiff()},v=function(t,n){void 0===n&&(n=e.networkStatus||S.Ie.loading);var s=t.result;!1===globalThis.__DEV__||f||(0,c.D)(s,{})||V(t.missing);var u=function(e){return T.y.of((0,r.__assign)({data:e,loading:(0,S.Oj)(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:p,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===l&&n===S.Ie.refetch&&Array.isArray(t.missing)?u(void 0):u(s)},m="no-cache"===s?0:n===S.Ie.refetch&&"merge"!==u?1:2,g=function(){return i.getResultsFromLink(e,m,{query:o,variables:a,context:p,fetchPolicy:s,errorPolicy:l})},b=d&&"number"==typeof h&&h!==n&&(0,S.Oj)(n);switch(s){default:case"cache-first":var _=y();if(_.complete)return{fromLink:!1,sources:[v(_,e.markReady())]};if(f||b)return{fromLink:!0,sources:[v(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-and-network":var _=y();if(_.complete||f||b)return{fromLink:!0,sources:[v(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[v(y(),e.markReady())]};case"network-only":if(b)return{fromLink:!0,sources:[v(y()),g()]};return{fromLink:!0,sources:[g()]};case"no-cache":if(b)return{fromLink:!0,sources:[v(e.getDiff()),g()]};return{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new J(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.__assign)((0,r.__assign)({},t),{clientAwareness:this.clientAwareness})},e}(),ee=n(24037),et=!1,en=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i._K)(13);var n=e.uri,r=e.credentials,a=e.headers,c=e.cache,l=e.documentTransform,f=e.ssrMode,p=void 0!==f&&f,d=e.ssrForceFetchDelay,h=void 0===d?0:d,y=e.connectToDevTools,v=void 0===y?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:y,m=e.queryDeduplication,g=void 0===m||m,b=e.defaultOptions,_=e.assumeImmutableResults,E=void 0===_?c.assumeImmutableResults:_,w=e.resolvers,T=e.typeDefs,I=e.fragmentMatcher,O=e.name,S=e.version,N=e.link;N||(N=n?new u.u({uri:n,credentials:r,headers:a}):o.i.empty()),this.link=N,this.cache=c,this.disableNetworkFetches=p||h>0,this.queryDeduplication=g,this.defaultOptions=b||Object.create(null),this.typeDefs=T,h&&setTimeout(function(){return t.disableNetworkFetches=!1},h),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=s.i,this.localState=new G({cache:c,client:this,resolvers:w,fragmentMatcher:I}),this.queryManager=new Z({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:l,queryDeduplication:g,ssrMode:p,clientAwareness:{name:O,version:S},localState:this.localState,assumeImmutableResults:E,onBroadcast:v?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),v&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}et||!1===globalThis.__DEV__||(et=!0,setTimeout(function(){if("undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: %s",n)}},1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,ee.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,r.__assign)((0,r.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,ee.J)(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.__assign)((0,r.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,ee.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,a.h)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var o=Promise.all(r);return o.queries=n,o.results=r,o.catch(function(e){!1!==globalThis.__DEV__&&i.kG.debug(15,e)}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),er=n(13040),ei=n(81820),eo=n(39747),ea=n(57502),es=n(57460),eu=n(24683),ec=n(58709),el=n(64647),ef=n(67893),ep=n(22029),ed=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},eh=n(22947),ey=n(96575),ev=n(50042);function em(e){var t=!1;return new Promise(function(n,r){e.subscribe({next:function(e){t?!1!==globalThis.__DEV__&&i.kG.warn(40):(t=!0,n(e))},error:r})})}function eg(e){return new T.y(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})}var eb=n(53291),e_=n(7729),eE=n(11851),ew=n(31235);(0,eE.setVerbosity)(!1!==globalThis.__DEV__?"log":"silent")},35449:function(e,t,n){"use strict";n.r(t),n.d(t,{ApolloCache:function(){return r.ApolloCache},ApolloClient:function(){return r.ApolloClient},ApolloConsumer:function(){return l},ApolloError:function(){return r.ApolloError},ApolloLink:function(){return r.ApolloLink},ApolloProvider:function(){return c},Cache:function(){return r.Cache},DocumentTransform:function(){return r.DocumentTransform},DocumentType:function(){return m.n_},HttpLink:function(){return r.HttpLink},InMemoryCache:function(){return r.InMemoryCache},MissingFieldError:function(){return r.MissingFieldError},NetworkStatus:function(){return r.NetworkStatus},Observable:function(){return r.Observable},ObservableQuery:function(){return r.ObservableQuery},SuspenseCache:function(){return G},checkFetcher:function(){return r.checkFetcher},concat:function(){return r.concat},createHttpLink:function(){return r.createHttpLink},createSignalIfSupported:function(){return r.createSignalIfSupported},defaultDataIdFromObject:function(){return r.defaultDataIdFromObject},defaultPrinter:function(){return r.defaultPrinter},disableExperimentalFragmentVariables:function(){return r.disableExperimentalFragmentVariables},disableFragmentWarnings:function(){return r.disableFragmentWarnings},empty:function(){return r.empty},enableExperimentalFragmentVariables:function(){return r.enableExperimentalFragmentVariables},execute:function(){return r.execute},fallbackHttpConfig:function(){return r.fallbackHttpConfig},from:function(){return r.from},fromError:function(){return r.fromError},fromPromise:function(){return r.fromPromise},getApolloContext:function(){return u.K},gql:function(){return r.gql},isApolloError:function(){return r.isApolloError},isNetworkRequestSettled:function(){return r.isNetworkRequestSettled},isReference:function(){return r.isReference},makeReference:function(){return r.makeReference},makeVar:function(){return r.makeVar},mergeOptions:function(){return r.mergeOptions},operationName:function(){return m.mw},parseAndCheckHttpResponse:function(){return r.parseAndCheckHttpResponse},parser:function(){return m.E2},resetApolloContext:function(){return u.Z},resetCaches:function(){return r.resetCaches},rewriteURIForGET:function(){return r.rewriteURIForGET},selectHttpOptionsAndBody:function(){return r.selectHttpOptionsAndBody},selectHttpOptionsAndBodyInternal:function(){return r.selectHttpOptionsAndBodyInternal},selectURI:function(){return r.selectURI},serializeFetchParameter:function(){return r.serializeFetchParameter},setLogVerbosity:function(){return r.setLogVerbosity},skipToken:function(){return V},split:function(){return r.split},throwServerError:function(){return r.throwServerError},toPromise:function(){return r.toPromise},useApolloClient:function(){return f.x},useBackgroundQuery:function(){return q},useFragment:function(){return I},useLazyQuery:function(){return y},useMutation:function(){return b},useQuery:function(){return d.a},useReactiveVar:function(){return E.l},useReadQuery:function(){return B},useSubscription:function(){return _},useSuspenseQuery:function(){return $}});var r=n(33686),i=n(65845),o=n(91261),a=n(72163),s=n.t(a,2),u=n(69475),c=function(e){var t=e.client,n=e.children,r=(0,u.K)(),s=a.useContext(r),c=a.useMemo(function(){return(0,o.__assign)((0,o.__assign)({},s),{client:t||s.client})},[s,t]);return(0,i.kG)(c.client,44),a.createElement(r.Provider,{value:c},n)},l=function(e){var t=(0,u.K)();return a.createElement(t.Consumer,null,function(t){return(0,i.kG)(t&&t.client,42),e.children(t.client)})},f=n(919),p=n(24037),d=n(67178),h=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function y(e,t){var n,r=a.useRef(),i=a.useRef(),s=a.useRef(),u=(0,p.J)(t,r.current||{}),c=null!==(n=null==u?void 0:u.query)&&void 0!==n?n:e;i.current=u,s.current=c;var l=(0,d.A)((0,f.x)(t&&t.client),c),y=l.useQuery((0,o.__assign)((0,o.__assign)({},u),{skip:!r.current})),v=y.observable.options.initialFetchPolicy||l.getDefaultFetchPolicy(),m=Object.assign(y,{called:!!r.current}),g=a.useMemo(function(){for(var e={},t=0;t0?new g.cA({graphQLErrors:o}):void 0,p=e.onError||(null===(n=u.current.options)||void 0===n?void 0:n.onError);if(f&&p&&p(f,l),c===u.current.mutationId&&!l.ignoreResults){var d={called:!0,loading:!1,data:i,error:f,client:a};u.current.isMounted&&!(0,v.D)(u.current.result,d)&&s(u.current.result=d)}var h=e.onCompleted||(null===(r=u.current.options)||void 0===r?void 0:r.onCompleted);return f||null==h||h(t.data,l),t}).catch(function(t){if(c===u.current.mutationId&&u.current.isMounted){var n,r={loading:!1,error:t,data:void 0,called:!0,client:a};(0,v.D)(u.current.result,r)||s(u.current.result=r)}var i=e.onError||(null===(n=u.current.options)||void 0===n?void 0:n.onError);if(i)return i(t,l),{data:void 0,errors:t};throw t})},[]),l=a.useCallback(function(){u.current.isMounted&&s({called:!1,loading:!1,client:n})},[]);return a.useEffect(function(){return u.current.isMounted=!0,function(){u.current.isMounted=!1}},[]),[c,(0,o.__assign)({reset:l},i)]}function _(e,t){var n=a.useRef(!1),r=(0,f.x)(null==t?void 0:t.client);(0,m.Vp)(e,m.n_.Subscription);var o=a.useState({loading:!(null==t?void 0:t.skip),error:void 0,data:void 0,variables:null==t?void 0:t.variables}),s=o[0],u=o[1];!n.current&&(n.current=!0,(null==t?void 0:t.onSubscriptionData)&&!1!==globalThis.__DEV__&&i.kG.warn(t.onData?50:51),(null==t?void 0:t.onSubscriptionComplete)&&!1!==globalThis.__DEV__&&i.kG.warn(t.onComplete?52:53));var c=a.useState(function(){return(null==t?void 0:t.skip)?null:r.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})}),l=c[0],p=c[1],d=a.useRef(!1);a.useEffect(function(){return function(){d.current=!0}},[]);var h=a.useRef({client:r,subscription:e,options:t});return a.useEffect(function(){var n,i,o,a,s=null==t?void 0:t.shouldResubscribe;"function"==typeof s&&(s=!!s(t)),(null==t?void 0:t.skip)?(!(null==t?void 0:t.skip)!=!(null===(n=h.current.options)||void 0===n?void 0:n.skip)||d.current)&&(u({loading:!1,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),p(null),d.current=!1):(!1!==s&&(r!==h.current.client||e!==h.current.subscription||(null==t?void 0:t.fetchPolicy)!==(null===(i=h.current.options)||void 0===i?void 0:i.fetchPolicy)||!(null==t?void 0:t.skip)!=!(null===(o=h.current.options)||void 0===o?void 0:o.skip)||!(0,v.D)(null==t?void 0:t.variables,null===(a=h.current.options)||void 0===a?void 0:a.variables))||d.current)&&(u({loading:!0,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),p(r.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})),d.current=!1),Object.assign(h.current,{client:r,subscription:e,options:t})},[r,e,t,d.current]),a.useEffect(function(){if(l){var e=!1,n=l.subscribe({next:function(n){if(!e){var i,o,a={loading:!1,data:n.data,error:void 0,variables:null==t?void 0:t.variables};u(a),(null===(i=h.current.options)||void 0===i?void 0:i.onData)?h.current.options.onData({client:r,data:a}):(null===(o=h.current.options)||void 0===o?void 0:o.onSubscriptionData)&&h.current.options.onSubscriptionData({client:r,subscriptionData:a})}},error:function(n){var r,i;e||(u({loading:!1,data:void 0,error:n,variables:null==t?void 0:t.variables}),null===(i=null===(r=h.current.options)||void 0===r?void 0:r.onError)||void 0===i||i.call(r,n))},complete:function(){var t,n;!e&&((null===(t=h.current.options)||void 0===t?void 0:t.onComplete)?h.current.options.onComplete():(null===(n=h.current.options)||void 0===n?void 0:n.onSubscriptionComplete)&&h.current.options.onSubscriptionComplete())}});return function(){e=!0,setTimeout(function(){n.unsubscribe()})}}},[l]),s}var E=n(38780),w=n(22561),T=n(94408);function I(e){var t=(0,f.x)().cache,n=e.fragment,r=e.fragmentName,i=e.from,s=e.optimistic,u=(0,o.__rest)(e,["fragment","fragmentName","from","optimistic"]),c=(0,o.__assign)((0,o.__assign)({},u),{returnPartialData:!0,id:"string"==typeof i?i:t.identify(i),query:t.getFragmentDoc(n,r),optimistic:void 0===s||s}),l=a.useRef(),p=t.diff(c),d=function(){var e=O(p);return l.current&&(0,v.D)(l.current.data,e.data)?l.current:l.current=e};return(0,T.$)(function(e){var n=0,r=t.watch((0,o.__assign)((0,o.__assign)({},c),{immediate:!0,callback:function(t){(0,v.D)(t,p)||(l.current=O(p=t),n=setTimeout(e))}}));return function(){r(),clearTimeout(n)}},d,d)}function O(e){var t={data:e.result,complete:!!e.complete};return e.missing&&(t.missing=(0,w.bw)(e.missing.map(function(e){return e.missing}))),t}var S=n(61841),N=n(89490),k=n(56945),D=s.use||function(e){var t=(0,k.Bd)(e);switch(t.status){case"pending":throw t;case"rejected":throw t.reason;case"fulfilled":return t.value}},R=n(86135),A=n(24726),F=Symbol(),x=["canonizeResults","context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"],j=function(){function e(e,t){var n,r=this;this.listeners=new Set,this.status="loading",this.references=0,this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.dispose=this.dispose.bind(this),this.observable=e,this.result=e.getCurrentResult(!1),this.key=t.key,t.onDispose&&(this.onDispose=t.onDispose),(0,S.Jp)(this.result.networkStatus)||this.result.data&&(!this.result.partial||this.watchQueryOptions.returnPartialData)?(this.promise=(0,k.OP)(this.result),this.status="idle"):this.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),this.subscription=e.filter(function(e){var t=e.data;return!(0,v.D)(t,{})}).subscribe({next:this.handleNext,error:this.handleError}),this.autoDisposeTimeoutId=setTimeout(this.dispose,null!==(n=t.autoDisposeTimeoutMs)&&void 0!==n?n:3e4)}return Object.defineProperty(e.prototype,"watchQueryOptions",{get:function(){return this.observable.options},enumerable:!1,configurable:!0}),e.prototype.retain=function(){var e=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var t=!1;return function(){t||(t=!0,e.references--,setTimeout(function(){e.references||e.dispose()}))}},e.prototype.didChangeOptions=function(e){var t=this;return x.some(function(n){return!(0,v.D)(t.watchQueryOptions[n],e[n])})},e.prototype.applyOptions=function(e){var t=this.watchQueryOptions,n=t.fetchPolicy,r=t.canonizeResults;return"standby"===n&&n!==e.fetchPolicy?this.initiateFetch(this.observable.reobserve(e)):(this.observable.silentSetOptions(e),r!==e.canonizeResults&&(this.result=(0,o.__assign)((0,o.__assign)({},this.result),this.observable.getCurrentResult()),this.promise=(0,k.OP)(this.result))),this.promise},e.prototype.listen=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},e.prototype.refetch=function(e){return this.initiateFetch(this.observable.refetch(e))},e.prototype.fetchMore=function(e){return this.initiateFetch(this.observable.fetchMore(e))},e.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},e.prototype.onDispose=function(){},e.prototype.handleNext=function(e){var t;switch(this.status){case"loading":void 0===e.data&&(e.data=this.result.data),this.status="idle",this.result=e,null===(t=this.resolve)||void 0===t||t.call(this,e);break;case"idle":if(e.data===this.result.data)return;void 0===e.data&&(e.data=this.result.data),this.result=e,this.promise=(0,k.OP)(e),this.deliver(this.promise)}},e.prototype.handleError=function(e){var t;switch(this.subscription.unsubscribe(),this.subscription=this.observable.resubscribeAfterError(this.handleNext,this.handleError),this.status){case"loading":this.status="idle",null===(t=this.reject)||void 0===t||t.call(this,e);break;case"idle":this.promise=(0,k.Ld)(e),this.deliver(this.promise)}},e.prototype.deliver=function(e){this.listeners.forEach(function(t){return t(e)})},e.prototype.initiateFetch=function(e){var t=this;return this.status="loading",this.promise=new Promise(function(e,n){t.resolve=e,t.reject=n}),this.promise.catch(function(){}),e.then(function(e){var n;"loading"===t.status&&(t.status="idle",t.result=e,null===(n=t.resolve)||void 0===n||n.call(t,e))}).catch(function(){}),e},e}(),C=function(){function e(e){void 0===e&&(e=Object.create(null)),this.queryRefs=new R.B(A.mr),this.options=e}return e.prototype.getQueryRef=function(e,t){var n=this.queryRefs.lookupArray(e);return n.current||(n.current=new j(t(),{key:e,autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete n.current}})),n.current},e}(),L=Symbol.for("apollo.suspenseCache");function P(e){var t;return e[L]||(e[L]=new C(null===(t=e.defaultOptions.react)||void 0===t?void 0:t.suspense)),e[L]}var M=n(99517),V=Symbol.for("apollo.skipToken");function $(e,t){void 0===t&&(t=Object.create(null));var n=(0,f.x)(t.client),r=P(n),i=U({client:n,query:e,options:t}),s=i.fetchPolicy,u=i.variables,c=t.queryKey,l=(0,o.__spreadArray)([e,(0,M.B)(u)],[].concat(void 0===c?[]:c),!0),p=r.getQueryRef(l,function(){return n.watchQuery(i)}),d=a.useState(function(){return new Map([[p.key,p.promise]])}),h=d[0],y=d[1],v=h.get(p.key);p.didChangeOptions(i)&&(v=p.applyOptions(i),h.set(p.key,v)),v||(v=p.promise,h.set(p.key,v)),a.useEffect(function(){var e=p.retain(),t=p.listen(function(e){y(function(t){return new Map(t).set(p.key,e)})});return function(){t(),e()}},[p]);var m=a.useMemo(function(){var e=Q(p.result);return{loading:!1,data:p.result.data,networkStatus:e?S.Ie.error:S.Ie.ready,error:e}},[p.result]),g="standby"===s?m:D(v),b=a.useCallback(function(e){var t=p.fetchMore(e);return y(function(e){return new Map(e).set(p.key,p.promise)}),t},[p]),_=a.useCallback(function(e){var t=p.refetch(e);return y(function(e){return new Map(e).set(p.key,p.promise)}),t},[p]),E=a.useCallback(function(e){return p.observable.subscribeToMore(e)},[p]);return a.useMemo(function(){return{client:n,data:g.data,error:Q(g),networkStatus:g.networkStatus,fetchMore:b,refetch:_,subscribeToMore:E}},[n,b,_,g,E])}function Q(e){return(0,N.O)(e.errors)?new g.cA({graphQLErrors:e.errors}):e.error}function U(e){var t,n,r,s=e.client,u=e.query,c=e.options;return t=function(){if(c===V)return{query:u,fetchPolicy:"standby"};var e,t,n,r,a,l=c.fetchPolicy||(null===(a=s.defaultOptions.watchQuery)||void 0===a?void 0:a.fetchPolicy)||"cache-first",f=(0,o.__assign)((0,o.__assign)({},c),{fetchPolicy:l,query:u,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0});return!1!==globalThis.__DEV__&&(t=f.query,n=f.fetchPolicy,r=f.returnPartialData,(0,m.Vp)(t,m.n_.Query),void 0===(e=n)&&(e="cache-first"),(0,i.kG)(["cache-first","network-only","no-cache","cache-and-network"].includes(e),54,e),"no-cache"===n&&r&&!1!==globalThis.__DEV__&&i.kG.warn(55)),c.skip&&(f.fetchPolicy="standby"),f},n=[s,c,u],(r=a.useRef()).current&&(0,v.D)(r.current.deps,n)||(r.current={value:t(),deps:n}),r.current.value}function q(e,t){void 0===t&&(t=Object.create(null));var n=(0,f.x)(t.client),r=P(n),i=U({client:n,query:e,options:t}),s=i.fetchPolicy,u=i.variables,c=t.queryKey,l=a.useRef("standby"!==s);l.current||(l.current="standby"!==s);var p=(0,o.__spreadArray)([e,(0,M.B)(u)],[].concat(void 0===c?[]:c),!0),d=r.getQueryRef(p,function(){return n.watchQuery(i)}),h=a.useState(function(){return new Map([[d.key,d.promise]])}),y=h[0],v=h[1];if(d.didChangeOptions(i)){var m=d.applyOptions(i);y.set(d.key,m)}a.useEffect(function(){return d.retain()},[d]);var g=a.useCallback(function(e){var t=d.fetchMore(e);return v(function(e){return new Map(e).set(d.key,d.promise)}),t},[d]),b=a.useCallback(function(e){var t=d.refetch(e);return v(function(e){return new Map(e).set(d.key,d.promise)}),t},[d]);d.promiseCache=y;var _=a.useMemo(function(){var e;return(e={})[F]=d,e},[d]);return[l.current?_:void 0,{fetchMore:g,refetch:b}]}function B(e){var t=e[F];(0,i.kG)(t.promiseCache,49);var n=t.promiseCache,r=t.key;n.has(r)||n.set(r,t.promise);var o=D((0,T.$)(a.useCallback(function(e){return t.listen(function(n){t.promiseCache.set(t.key,n),e()})},[t]),function(){return n.get(r)},function(){return n.get(r)}));return a.useMemo(function(){return{data:o.data,networkStatus:o.networkStatus,error:Q(o)}},[o])}var G=function(e){function t(){throw e.call(this),Error("It is no longer necessary to create a `SuspenseCache` instance and pass it into the `ApolloProvider`.\nPlease remove this code from your application. \n\nThis export will be removed with the final 3.8 release.")}return(0,o.__extends)(t,e),t}(C)},87369:function(e,t,n){"use strict";n.d(t,{i:function(){return l}});var r=n(65845),i=n(70584),o=n(91261),a=n(48276);function s(e,t){return t?t(e):i.y.of()}function u(e){return"function"==typeof e?new l(e):e}function c(e){return e.request.length<=1}var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return i.y.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var o=u(n),a=u(r||new e(s));return new e(c(o)&&c(a)?function(e){return t(e)?o.request(e)||i.y.of():a.request(e)||i.y.of()}:function(e,n){return t(e)?o.request(e,n)||i.y.of():a.request(e,n)||i.y.of()})},e.execute=function(e,t){var n,s,u,c;return e.request((u=t.context,(s={variables:(n=function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,i=Object.keys(e);nt.indexOf(o))throw(0,r._K)(41,o)}return e}(t)).variables||{},extensions:n.extensions||{},operationName:n.operationName,query:n.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.rY)(s.query)||void 0:""),c=(0,o.__assign)({},u),Object.defineProperty(s,"setContext",{enumerable:!1,value:function(e){c="function"==typeof e?(0,o.__assign)((0,o.__assign)({},c),e(c)):(0,o.__assign)((0,o.__assign)({},c),e)}}),Object.defineProperty(s,"getContext",{enumerable:!1,value:function(){return(0,o.__assign)({},c)}}),s))||i.y.of()},e.concat=function(t,n){var o=u(t);if(c(o))return!1!==globalThis.__DEV__&&r.kG.warn(33,o),o;var a=u(n);return new e(c(a)?function(e){return o.request(e,function(e){return a.request(e)||i.y.of()})||i.y.of()}:function(e,t){return o.request(e,function(e){return a.request(e,t)||i.y.of()})||i.y.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,r._K)(34)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},15269:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r=n(87369).i.execute},24683:function(e,t,n){"use strict";n.r(t),n.d(t,{ApolloLink:function(){return r.i},concat:function(){return s},empty:function(){return i},execute:function(){return u.h},from:function(){return o},split:function(){return a}}),n(65845);var r=n(87369),i=r.i.empty,o=r.i.from,a=r.i.split,s=r.i.concat,u=n(15269)},53059:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(91261),i=n(70584),o=n(87369);function a(e){return new o.i(function(t,n){return new i.y(function(r){var i,o,a;try{i=n(t).subscribe({next:function(i){if(i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))){o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(i)},error:function(i){if(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n})){o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(i)},complete:function(){a||r.complete.bind(r)()}})}catch(i){e({networkError:i,operation:t,forward:n}),r.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}})})}!function(e){function t(t){var n=e.call(this)||this;return n.link=a(t),n}(0,r.__extends)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(o.i)},54900:function(e,t,n){"use strict";n.d(t,{u:function(){return a}});var r=n(91261),i=n(87369),o=n(96575),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,(0,o.L)(t).request)||this;return n.options=t,n}return(0,r.__extends)(t,e),t}(i.i)},22029:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(65845),i=function(e){if(!e&&"undefined"==typeof fetch)throw(0,r._K)(35)}},96575:function(e,t,n){"use strict";n.d(t,{L:function(){return b}});var r=n(91261),i=n(65845),o=n(87369),a=n(13214),s=n(70584),u=n(64647),c=n(22947),l=n(58709),f=n(22029),p=n(67893),d=n(50042),h=n(53291),y=n(53280),v=n(54759),m=n(48276),g=(0,i.wY)(function(){return fetch}),b=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,b=e.fetch,_=e.print,E=void 0===_?p.sb:_,w=e.includeExtensions,T=e.preserveHeaderCase,I=e.useGETForQueries,O=e.includeUnusedVariables,S=void 0!==O&&O,N=(0,r.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,f.U)(b||g);var k={http:{includeExtensions:w,preserveHeaderCase:T},options:N.fetchOptions,credentials:N.credentials,headers:N.headers};return new o.i(function(e){var t,o,f,_,w,T,O=(0,c.r)(e,n),N=e.getContext(),D={};if(N.clientAwareness){var R=N.clientAwareness,A=R.name,F=R.version;A&&(D["apollographql-client-name"]=A),F&&(D["apollographql-client-version"]=F)}var x=(0,r.__assign)((0,r.__assign)({},D),N.headers),j={http:N.http,options:N.fetchOptions,credentials:N.credentials,headers:x};if((0,a.FS)(["client"],e.query)){var C=(0,v.ob)(e.query);if(!C)return(0,h.Q)(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=C}var L=(0,p.ve)(e,E,p.SC,k,j),P=L.options,M=L.body;M.variables&&!S&&(M.variables=(t=M.variables,o=e.query,f=(0,r.__assign)({},t),_=new Set(Object.keys(t)),(0,y.Vn)(o,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&_.delete(e.name.value)}}),_.forEach(function(e){delete f[e]}),f)),P.signal||"undefined"==typeof AbortController||(T=new AbortController,P.signal=T.signal);var V="OperationDefinition"===(w=(0,m.p$)(e.query)).kind&&"subscription"===w.operation,$=(0,a.FS)(["defer"],e.query);if(I&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(P.method="GET"),$||V){P.headers=P.headers||{};var Q="multipart/mixed;";V&&$&&!1!==globalThis.__DEV__&&i.kG.warn(36),V?Q+="boundary=graphql;subscriptionSpec=1.0,application/json":$&&(Q+="deferSpec=20220824,application/json"),P.headers.accept=Q}if("GET"===P.method){var U=(0,d.H)(O,M),q=U.newURI,B=U.parseError;if(B)return(0,h.Q)(B);O=q}else try{P.body=(0,u.g)(M,"Payload")}catch(e){return(0,h.Q)(e)}return new s.y(function(t){var n=b||(0,i.wY)(function(){return fetch})||g,r=t.next.bind(t);return n(O,P).then(function(t){e.setContext({response:t});var n,i=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?(0,l.TF)(t,r):(0,l.dO)(e)(t).then(r)}).then(function(){T=void 0,t.complete()}).catch(function(e){T=void 0,(0,l.S3)(e,t)}),function(){T&&T.abort()}})})}},58709:function(e,t,n){"use strict";n.d(t,{S3:function(){return p},dO:function(){return d},TF:function(){return l}});var r=n(91261),i=n(24726);function o(e){var t={next:function(){return e.read()}};return i.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}var a=n(7729),s=n(22383),u=n(22935),c=Object.prototype.hasOwnProperty;function l(e,t){var n;return(0,r.__awaiter)(this,void 0,void 0,function(){var a,c,l,p,d,h,y,v,m,g,b,_,E,w,T,I,O,S,N,k,D,R;return(0,r.__generator)(this,function(A){switch(A.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");a=new TextDecoder("utf-8"),c=null===(n=e.headers)||void 0===n?void 0:n.get("content-type"),l="boundary=",p=(null==c?void 0:c.includes(l))?null==c?void 0:c.substring((null==c?void 0:c.indexOf(l))+l.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",d="\r\n--".concat(p),h="",y=function(e){var t,n,r,a,s,u,c=e;if(e.body&&(c=e.body),t=c,i.DN&&t[Symbol.asyncIterator])return r=c[Symbol.asyncIterator](),(n={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},n;if(c.getReader)return o(c.getReader());if(c.stream)return o(c.stream().getReader());if(c.arrayBuffer)return a=c.arrayBuffer(),s=!1,u={next:function(){return s?Promise.resolve({value:void 0,done:!0}):(s=!0,new Promise(function(e,t){a.then(function(t){e({value:t,done:!1})}).catch(t)}))}},i.DN&&(u[Symbol.asyncIterator]=function(){return this}),u;if(c.pipe)return function(e){var t=null,n=null,r=!1,o=[],a=[];function s(e){if(!n){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function u(e){n=e,a.slice().forEach(function(t){t[1](e)}),t&&t()}function c(){r=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",u),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),e.on("error",u),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise(function(e,t){return n?t(n):o.length?e({value:o.shift(),done:!1}):r?e({value:void 0,done:!0}):void a.push([e,t])})}};return i.DN&&(l[Symbol.asyncIterator]=function(){return this}),l}(c);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),v=!0,A.label=1;case 1:if(!v)return[3,3];return[4,y.next()];case 2:for(g=(m=A.sent()).value,b=m.done,_="string"==typeof g?g:a.decode(g),E=h.length-d.length+1,v=!b,h+=_,w=h.indexOf(d,E);w>-1;){if(T=void 0,T=(D=[h.slice(0,w),h.slice(w+d.length)])[0],h=D[1],I=T.indexOf("\r\n\r\n"),(O=function(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}(T.slice(0,I))["content-type"])&&-1===O.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(S=T.slice(I)){if(Object.keys(N=f(e,S)).length>1||"data"in N||"incremental"in N||"errors"in N||"payload"in N)(0,u.yU)(N)?(k={},"payload"in N&&(k=(0,r.__assign)({},N.payload)),"errors"in N&&(k=(0,r.__assign)((0,r.__assign)({},k),{extensions:(0,r.__assign)((0,r.__assign)({},"extensions"in k?k.extensions:null),((R={})[s.YG]=N.errors,R))})),t(k)):t(N);else if(1===Object.keys(N).length&&"hasNext"in N&&!N.hasNext)return[2]}w=h.indexOf(d)}return[3,1];case 3:return[2]}})})}function f(e,t){e.status>=300&&(0,a.P)(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(n){throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function p(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function d(e){return function(t){return t.text().then(function(e){return f(t,e)}).then(function(n){return t.status>=300&&(0,a.P)(t,n,"Response not successful: Received status code ".concat(t.status)),Array.isArray(n)||c.call(n,"data")||c.call(n,"errors")||(0,a.P)(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),n})}}},50042:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=n(64647);function i(e,t){var n=[],i=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var o=void 0;try{o=(0,r.g)(t.variables,"Variables map")}catch(e){return{parseError:e}}i("variables",o)}if(t.extensions){var a=void 0;try{a=(0,r.g)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}i("extensions",a)}var s="",u=e,c=e.indexOf("#");-1!==c&&(s=e.substr(c),u=e.substr(0,c));var l=-1===u.indexOf("?")?"?":"&";return{newURI:u+l+n.join("&")+s}}},67893:function(e,t,n){"use strict";n.d(t,{E4:function(){return s},SC:function(){return o},sb:function(){return a},ve:function(){return u}});var r=n(91261),i=n(54019),o={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},a=function(e,t){return t(e)};function s(e,t){for(var n=[],i=2;i=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}n=r.merge(n,t)}),n}},22561:function(e,t,n){"use strict";n.d(t,{Ee:function(){return a},bw:function(){return s},w0:function(){return c}});var r=n(91261),i=n(86893),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t1)for(var r=new c,i=1;i0))return n.connection.key;var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),"".concat(n.connection.key,"(").concat(d(i),")")}var o=e;if(t){var a=d(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(e){-1===f.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(d(n[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=d;return d=e,t}}),d=function(e){return JSON.stringify(e,h)};function h(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function y(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return c(n,e.name,e.value,t)}),n}return null}function v(e){return e.alias?e.alias.value:e.name.value}function m(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},54759:function(e,t,n){"use strict";n.d(t,{Fo:function(){return m},Gw:function(){return y},RR:function(){return b},Vw:function(){return g},aL:function(){return _},bi:function(){return h},ob:function(){return E}});var r=n(91261),i=n(65845),o=n(81404),a=n(53280),s=n(48276),u=n(19709),c=n(68564),l=n(89490),f={kind:o.h.FIELD,name:{kind:o.h.NAME,value:"__typename"}};function p(e){return!function e(t,n){return!t||t.selectionSet.selections.every(function(t){return t.kind===o.h.FRAGMENT_SPREAD&&e(n[t.name.value],n)})}((0,s.$H)(e)||(0,s.pD)(e),(0,c.F)((0,s.kU)(e)))?e:null}function d(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function h(e,t){(0,s.A$)(t);for(var n,u,c=d(""),f=d(""),h=function(e){for(var t=0,n=void 0;t=0;--v)t.definitions[v].kind===o.h.OPERATION_DEFINITION&&++y;var m=(n=new Map,u=new Map,e.forEach(function(e){e&&(e.name?n.set(e.name,e):e.test&&u.set(e.test,e))}),function(e){var t=n.get(e.name.value);return!t&&u.size&&u.forEach(function(n,r){r(e)&&(t=n)}),t}),g=function(e){return(0,l.O)(e)&&e.map(m).some(function(e){return e&&e.remove})},b=new Map,_=!1,E={enter:function(e){if(g(e.directives))return _=!0,null}},w=(0,a.Vn)(t,{Field:E,InlineFragment:E,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){var o=h(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(g(e.directives))return _=!0,null;var o=h(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){b.set(JSON.stringify(r),e)},leave:function(e,t,n,r){return e===b.get(JSON.stringify(r))?e:y>0&&e.selectionSet.selections.every(function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value})?(f(e.name.value).removed=!0,_=!0,null):void 0}},Directive:{leave:function(e){if(m(e))return _=!0,null}}});if(!_)return t;var T=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){T(f(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},I=new Set;w.definitions.forEach(function(e){e.kind===o.h.OPERATION_DEFINITION?T(c(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){I.add(e)}):e.kind!==o.h.FRAGMENT_DEFINITION||0!==y||f(e.name.value).removed||I.add(e.name.value)}),I.forEach(function(e){T(f(e)).fragmentSpreads.forEach(function(e){I.add(e)})});var O={enter:function(e){var t;if(t=e.name.value,!I.has(t)||f(t).removed)return null}};return p((0,a.Vn)(w,{FragmentSpread:O,FragmentDefinition:O,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=T(c(e.name&&e.name.value)).transitiveVars;if(t.size1&&o===a&&(o="");var s=e.pageInfo||{},u=s.startCursor,c=s.endCursor;return(0,y.__assign)((0,y.__assign)({},_(e)),{edges:i,pageInfo:(0,y.__assign)((0,y.__assign)({},e.pageInfo),{startCursor:u||o,endCursor:c||a})})},merge:function(e,t,n){var r=n.args,i=n.isReference,o=n.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var a=t.edges?t.edges.map(function(e){return i(e=(0,y.__assign)({},e))&&(e.cursor=o("cursor",e)),e}):[];if(t.pageInfo){var s=t.pageInfo,u=s.startCursor,c=s.endCursor,l=a[0],f=a[a.length-1];l&&u&&(l.cursor=u),f&&c&&(f.cursor=c);var p=l&&l.cursor;p&&!u&&(t=(0,v.Ee)(t,{pageInfo:{startCursor:p}}));var d=f&&f.cursor;d&&!c&&(t=(0,v.Ee)(t,{pageInfo:{endCursor:d}}))}var h=e.edges,m=[];if(r&&r.after){var g=h.findIndex(function(e){return e.cursor===r.after});g>=0&&(h=h.slice(0,g+1))}else if(r&&r.before){var g=h.findIndex(function(e){return e.cursor===r.before});m=g<0?h:h.slice(g),h=[]}else t.edges&&(h=[]);var b=(0,y.__spreadArray)((0,y.__spreadArray)((0,y.__spreadArray)([],h,!0),a,!0),m,!0),E=(0,y.__assign)((0,y.__assign)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var w=t.pageInfo,T=w.hasPreviousPage,I=w.hasNextPage,u=w.startCursor,c=w.endCursor;Object.assign(E,(0,y.__rest)(w,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),h.length||(void 0!==T&&(E.hasPreviousPage=T),void 0===u||(E.startCursor=u)),m.length||(void 0!==I&&(E.hasNextPage=I),void 0===c||(E.endCursor=c))}return(0,y.__assign)((0,y.__assign)((0,y.__assign)({},_(e)),_(t)),{edges:b,pageInfo:E})}}}var _=function(e){return(0,y.__rest)(e,E)},E=["edges","pageInfo"],w=n(70584),T=n(56945),I=n(15502),O=n(11138),S=n(49412),N=n(80803),k=n(50112),D=n(49721),R=n(89490),A=n(86893),F=n(48284),x=n(24726),j=n(64379),C=n(92986),L=n(39578),P=n(24037),M=n(22935);function V(e,t){return $(e,t)}function $(e,t,n){if(void 0===n&&(n=new Map),n.has(e))return n.get(e);var r=!1;if(Array.isArray(e)){var i=[];if(n.set(e,i),e.forEach(function(e,o){var a=$(e,t,n);r||(r=a!==e),i[o]=a}),r)return i}else if((0,A.P)(e)){var o=Object.create(Object.getPrototypeOf(e));if(n.set(e,o),Object.keys(e).forEach(function(i){if(i===t){r=!0;return}var a=$(e[i],t,n);r||(r=a!==e[i]),o[i]=a}),r)return o}return e}function Q(e){return $(e,"__typename")}},50112:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var r=n(91261),i=n(70584),o=n(49412),a=n(49721);function s(e){return e&&"function"==typeof e.then}var u=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),(0,o.p)(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),(0,o.p)(n.observers,"error",e))},complete:function(){var e=n.sub,t=n.sources;if(null!==e){var r=(void 0===t?[]:t).shift();r?s(r)?r.then(function(e){return n.sub=e.subscribe(n.handlers)}):n.sub=r.subscribe(n.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),(0,o.p)(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new i.y(t)]),s(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,r.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(i.y);(0,a.D)(u)},80803:function(e,t,n){"use strict";n.d(t,{s:function(){return i}});var r=n(70584);function i(e,t,n){return new r.y(function(r){var i=r.next,o=r.error,a=r.complete,s=0,u=!1,c={then:function(e){return new Promise(function(t){return t(e())})}};function l(e,t){return e?function(t){++s;var n=function(){return e(t)};c=c.then(n,n).then(function(e){--s,i&&i.call(r,e),u&&f.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(r,e)})}:function(e){return t&&t.call(r,e)}}var f={next:l(t,i),error:l(n,o),complete:function(){u=!0,!s&&a&&a.call(r)}},p=e.subscribe(f);return function(){return p.unsubscribe()}})}},49412:function(e,t,n){"use strict";function r(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}n.d(t,{p:function(){return r}})},49721:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(70584),i=n(24726);function o(e){function t(t){Object.defineProperty(e,t,{value:r.y})}return i.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}},56945:function(e,t,n){"use strict";function r(e){var t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}function i(e){var t=Promise.reject(e);return t.catch(function(){}),t.status="rejected",t.reason=e,t}function o(e){return"status"in e}function a(e){return o(e)||(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e}n.d(t,{Bd:function(){return a},Ld:function(){return i},OP:function(){return r},j7:function(){return o}})},71256:function(e,t,n){"use strict";let r;n.r(t),n.d(t,{BREAK:function(){return tx.$_},BreakingChangeType:function(){return f},DEFAULT_DEPRECATION_REASON:function(){return e8},DangerousChangeType:function(){return p},DirectiveLocation:function(){return eG.B},ExecutableDefinitionsRule:function(){return tV},FieldsOnCorrectTypeRule:function(){return t$},FragmentsOnCompositeTypesRule:function(){return tQ},GRAPHQL_MAX_INT:function(){return eX},GRAPHQL_MIN_INT:function(){return eY},GraphQLBoolean:function(){return eH},GraphQLDeprecatedDirective:function(){return e9},GraphQLDirective:function(){return e4},GraphQLEnumType:function(){return eP},GraphQLError:function(){return m.__},GraphQLFloat:function(){return eJ},GraphQLID:function(){return eK},GraphQLIncludeDirective:function(){return e5},GraphQLInputObjectType:function(){return eV},GraphQLInt:function(){return ez},GraphQLInterfaceType:function(){return ej},GraphQLList:function(){return ed},GraphQLNonNull:function(){return eh},GraphQLObjectType:function(){return eS},GraphQLScalarType:function(){return eO},GraphQLSchema:function(){return tE},GraphQLSkipDirective:function(){return e3},GraphQLSpecifiedByDirective:function(){return e7},GraphQLString:function(){return eW},GraphQLUnionType:function(){return eC},Kind:function(){return x.h},KnownArgumentNamesRule:function(){return tU},KnownDirectivesRule:function(){return tB},KnownFragmentNamesRule:function(){return tG},KnownTypeNamesRule:function(){return tX},Lexer:function(){return ru.h},Location:function(){return g.Ye},LoneAnonymousOperationRule:function(){return tz},LoneSchemaDefinitionRule:function(){return tJ},NoDeprecatedCustomRule:function(){return rh},NoFragmentCyclesRule:function(){return tW},NoSchemaIntrospectionCustomRule:function(){return ry},NoUndefinedVariablesRule:function(){return tH},NoUnusedFragmentsRule:function(){return tK},NoUnusedVariablesRule:function(){return tZ},OperationTypeNode:function(){return g.ku},OverlappingFieldsCanBeMergedRule:function(){return t1},PossibleFragmentSpreadsRule:function(){return t7},PossibleTypeExtensionsRule:function(){return ne},ProvidedRequiredArgumentsRule:function(){return nn},ScalarLeafsRule:function(){return no},SchemaMetaFieldDef:function(){return th},SingleFieldSubscriptionsRule:function(){return nE},Source:function(){return ro.H},Token:function(){return g.WU},TokenKind:function(){return rc.T},TypeInfo:function(){return tC},TypeKind:function(){return l},TypeMetaFieldDef:function(){return ty},TypeNameMetaFieldDef:function(){return tv},UniqueArgumentDefinitionNamesRule:function(){return nT},UniqueArgumentNamesRule:function(){return nI},UniqueDirectiveNamesRule:function(){return nO},UniqueDirectivesPerLocationRule:function(){return nS},UniqueEnumValueNamesRule:function(){return nN},UniqueFieldDefinitionNamesRule:function(){return nk},UniqueFragmentNamesRule:function(){return nD},UniqueInputFieldNamesRule:function(){return nR},UniqueOperationNamesRule:function(){return nA},UniqueOperationTypesRule:function(){return nF},UniqueTypeNamesRule:function(){return nx},UniqueVariableNamesRule:function(){return nj},ValidationContext:function(){return nq},ValuesOfCorrectTypeRule:function(){return nC},VariablesAreInputTypesRule:function(){return nP},VariablesInAllowedPositionRule:function(){return nM},__Directive:function(){return ts},__DirectiveLocation:function(){return tu},__EnumValue:function(){return tp},__Field:function(){return tl},__InputValue:function(){return tf},__Schema:function(){return ta},__Type:function(){return tc},__TypeKind:function(){return td},assertAbstractType:function(){return ep},assertCompositeType:function(){return el},assertDirective:function(){return e6},assertEnumType:function(){return W},assertEnumValueName:function(){return M},assertInputObjectType:function(){return K},assertInputType:function(){return ei},assertInterfaceType:function(){return X},assertLeafType:function(){return eu},assertListType:function(){return ee},assertName:function(){return P},assertNamedType:function(){return eE},assertNonNullType:function(){return en},assertNullableType:function(){return eg},assertObjectType:function(){return B},assertOutputType:function(){return ea},assertScalarType:function(){return U},assertSchema:function(){return t_},assertType:function(){return $},assertUnionType:function(){return z},assertValidName:function(){return rW},assertValidSchema:function(){return tI},assertWrappingType:function(){return ev},astFromValue:function(){return ti},buildASTSchema:function(){return rN},buildClientSchema:function(){return rE},buildSchema:function(){return rk},coerceInputValue:function(){return nc},concatAST:function(){return rX},createSourceEventStream:function(){return rp},defaultFieldResolver:function(){return re},defaultTypeResolver:function(){return n7},doTypesOverlap:function(){return eB},execute:function(){return nW},executeSync:function(){return nH},extendSchema:function(){return rw},findBreakingChanges:function(){return rK},findDangerousChanges:function(){return rZ},formatError:function(){return m.Z},getArgumentValues:function(){return nh},getDirectiveValues:function(){return ny},getEnterLeaveForKind:function(){return tx.Eu},getIntrospectionQuery:function(){return rm},getLocation:function(){return ra.k},getNamedType:function(){return ew},getNullableType:function(){return eb},getOperationAST:function(){return rg},getOperationRootType:function(){return rb},getVariableValues:function(){return nd},getVisitFn:function(){return tx.CK},graphql:function(){return rn},graphqlSync:function(){return rr},introspectionFromSchema:function(){return r_},introspectionTypes:function(){return tm},isAbstractType:function(){return ef},isCompositeType:function(){return ec},isConstValueNode:function(){return tM.Of},isDefinitionNode:function(){return tM.Ir},isDirective:function(){return e2},isEnumType:function(){return J},isEqualType:function(){return eU},isExecutableDefinitionNode:function(){return tM.Wk},isInputObjectType:function(){return H},isInputType:function(){return er},isInterfaceType:function(){return G},isIntrospectionType:function(){return tg},isLeafType:function(){return es},isListType:function(){return Z},isNamedType:function(){return e_},isNonNullType:function(){return et},isNullableType:function(){return em},isObjectType:function(){return q},isOutputType:function(){return eo},isRequiredArgument:function(){return ex},isRequiredInputField:function(){return eQ},isScalarType:function(){return Q},isSchema:function(){return tb},isSelectionNode:function(){return tM.pO},isSpecifiedDirective:function(){return tt},isSpecifiedScalarType:function(){return e0},isType:function(){return V},isTypeDefinitionNode:function(){return tM.zT},isTypeExtensionNode:function(){return tM.D$},isTypeNode:function(){return tM.VB},isTypeSubTypeOf:function(){return eq},isTypeSystemDefinitionNode:function(){return tM.G4},isTypeSystemExtensionNode:function(){return tM.aU},isUnionType:function(){return Y},isValidNameError:function(){return rH},isValueNode:function(){return tM.nr},isWrappingType:function(){return ey},lexicographicSortSchema:function(){return rD},locatedError:function(){return nz},parse:function(){return y.Qc},parseConstValue:function(){return y.tl},parseType:function(){return y.gZ},parseValue:function(){return y.H2},print:function(){return j.S},printError:function(){return m.OS},printIntrospectionSchema:function(){return rC},printLocation:function(){return rs.Q},printSchema:function(){return rj},printSourceLocation:function(){return rs.z},printType:function(){return rM},resolveObjMapThunk:function(){return eI},resolveReadonlyArrayThunk:function(){return eT},responsePathAsArray:function(){return nu},separateOperations:function(){return rY},specifiedDirectives:function(){return te},specifiedRules:function(){return nV},specifiedScalarTypes:function(){return eZ},stripIgnoredCharacters:function(){return rJ},subscribe:function(){return rf},syntaxError:function(){return rv.h},typeFromAST:function(){return tj},validate:function(){return nB},validateSchema:function(){return tT},valueFromAST:function(){return nf},valueFromASTUntyped:function(){return C},version:function(){return i},versionInfo:function(){return o},visit:function(){return tx.Vn},visitInParallel:function(){return tx.j1},visitWithTypeInfo:function(){return tP}});let i="16.8.1",o=Object.freeze({major:16,minor:8,patch:1,preReleaseTag:null});var a,s,u,c,l,f,p,d=n(95559);function h(e){return"function"==typeof(null==e?void 0:e.then)}var y=n(29167),v=n(98758),m=n(80463),g=n(99581);function b(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function _(e){return e}var E=n(81446),w=n(35748);function T(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function I(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function O(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function S(e,t){let n=0,r=0;for(;n0);let s=0;do++r,s=10*s+o-N,o=t.charCodeAt(r);while(k(o)&&s>0);if(as)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}let N=48;function k(e){return!isNaN(e)&&N<=e&&e<=57}function D(e,t){let n=Object.create(null),r=new R(e),i=Math.floor(.4*e.length)+1;for(let e of t){let t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{let r=n[e]-n[t];return 0!==r?r:S(e,t)})}class R{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=A(this._inputLowerCase),this._rows=[Array(e.length+1).fill(0),Array(e.length+1).fill(0),Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;let n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=A(n),i=this._inputArray;if(r.lengtht)return;let s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){let n=s[(e-1)%3],o=s[e%3],u=o[0]=e;for(let t=1;t<=a;t++){let a=r[e-1]===i[t-1]?0:1,c=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]&&(c=Math.min(c,s[(e-2)%3][t-2]+1)),ct)return}let u=s[o%3][a];return u<=t?u:void 0}}function A(e){let t=e.length,n=Array(t);for(let r=0;rC(e,t));case x.h.OBJECT:return I(e.fields,e=>e.name.value,e=>C(e.value,t));case x.h.VARIABLE:return null==t?void 0:t[e.name.value]}}var L=n(8911);function P(e){if(null!=e||(0,d.a)(!1,"Must provide name."),"string"==typeof e||(0,d.a)(!1,"Expected name to be a string."),0===e.length)throw new m.__("Expected name to be a non-empty string.");for(let t=1;to(C(e,t)),this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,d.a)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,v.X)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,d.a)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,d.a)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class eS{constructor(e){var t;this.name=P(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>ek(e),this._interfaces=()=>eN(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,d.a)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,v.X)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:eA(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eN(e){var t;let n=eT(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,d.a)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function ek(e){let t=eI(e.fields);return eR(t)||(0,d.a)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),O(t,(t,n)=>{var r;eR(t)||(0,d.a)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,d.a)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,v.X)(t.resolve)}.`);let i=null!==(r=t.args)&&void 0!==r?r:{};return eR(i)||(0,d.a)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:P(n),description:t.description,type:t.type,args:eD(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:F(t.extensions),astNode:t.astNode}})}function eD(e){return Object.entries(e).map(([e,t])=>({name:P(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:F(t.extensions),astNode:t.astNode}))}function eR(e){return(0,w.y)(e)&&!Array.isArray(e)}function eA(e){return O(e,e=>({description:e.description,type:e.type,args:eF(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function eF(e){return I(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function ex(e){return et(e.type)&&void 0===e.defaultValue}class ej{constructor(e){var t;this.name=P(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=ek.bind(void 0,e),this._interfaces=eN.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,d.a)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,v.X)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:eA(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class eC{constructor(e){var t;this.name=P(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=eL.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,d.a)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,v.X)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eL(e){let t=eT(e.types);return Array.isArray(t)||(0,d.a)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class eP{constructor(e){var t,n,r;this.name=P(e.name),this.description=e.description,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,eR(r=e.values)||(0,d.a)(!1,`${n} values must be an object with value names as keys.`),Object.entries(r).map(([e,t])=>(eR(t)||(0,d.a)(!1,`${n}.${e} must refer to an object with a "value" key representing an internal value but got: ${(0,v.X)(t)}.`),{name:M(e),description:t.description,value:void 0!==t.value?t.value:e,deprecationReason:t.deprecationReason,extensions:F(t.extensions),astNode:t.astNode}))),this._valueLookup=new Map(this._values.map(e=>[e.value,e])),this._nameLookup=T(this._values,e=>e.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){let t=this._valueLookup.get(e);if(void 0===t)throw new m.__(`Enum "${this.name}" cannot represent value: ${(0,v.X)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){let t=(0,v.X)(e);throw new m.__(`Enum "${this.name}" cannot represent non-string value: ${t}.`+eM(this,t))}let t=this.getValue(e);if(null==t)throw new m.__(`Value "${e}" does not exist in "${this.name}" enum.`+eM(this,e));return t.value}parseLiteral(e,t){if(e.kind!==x.h.ENUM){let t=(0,j.S)(e);throw new m.__(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+eM(this,t),{nodes:e})}let n=this.getValue(e.value);if(null==n){let t=(0,j.S)(e);throw new m.__(`Value "${t}" does not exist in "${this.name}" enum.`+eM(this,t),{nodes:e})}return n.value}toConfig(){let e=I(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eM(e,t){return b("the enum value",D(t,e.getValues().map(e=>e.name)))}class eV{constructor(e){var t;this.name=P(e.name),this.description=e.description,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=e$.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){let e=O(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function e$(e){let t=eI(e.fields);return eR(t)||(0,d.a)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),O(t,(t,n)=>("resolve"in t&&(0,d.a)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:P(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:F(t.extensions),astNode:t.astNode}))}function eQ(e){return et(e.type)&&void 0===e.defaultValue}function eU(e,t){return e===t||!!(et(e)&&et(t)||Z(e)&&Z(t))&&eU(e.ofType,t.ofType)}function eq(e,t,n){return t===n||(et(n)?!!et(t)&&eq(e,t.ofType,n.ofType):et(t)?eq(e,t.ofType,n):Z(n)?!!Z(t)&&eq(e,t.ofType,n.ofType):!Z(t)&&ef(n)&&(G(t)||q(t))&&e.isSubType(n,t))}function eB(e,t,n){return t===n||(ef(t)?ef(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!ef(n)&&e.isSubType(n,t))}var eG=n(54193);let eX=2147483647,eY=-2147483648,ez=new eO({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=e1(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new m.__(`Int cannot represent non-integer value: ${(0,v.X)(t)}`);if(n>eX||neX||eeX||te.name===t)}function e1(e){if((0,w.y)(e)){if("function"==typeof e.valueOf){let t=e.valueOf();if(!(0,w.y)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function e2(e){return(0,E.n)(e,e4)}function e6(e){if(!e2(e))throw Error(`Expected ${(0,v.X)(e)} to be a GraphQL directive.`);return e}class e4{constructor(e){var t,n;this.name=P(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=F(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,d.a)(!1,`@${e.name} locations must be an Array.`);let r=null!==(n=e.args)&&void 0!==n?n:{};(0,w.y)(r)&&!Array.isArray(r)||(0,d.a)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=eD(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:eF(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}let e5=new e4({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[eG.B.FIELD,eG.B.FRAGMENT_SPREAD,eG.B.INLINE_FRAGMENT],args:{if:{type:new eh(eH),description:"Included when true."}}}),e3=new e4({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[eG.B.FIELD,eG.B.FRAGMENT_SPREAD,eG.B.INLINE_FRAGMENT],args:{if:{type:new eh(eH),description:"Skipped when true."}}}),e8="No longer supported",e9=new e4({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[eG.B.FIELD_DEFINITION,eG.B.ARGUMENT_DEFINITION,eG.B.INPUT_FIELD_DEFINITION,eG.B.ENUM_VALUE],args:{reason:{type:eW,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:e8}}}),e7=new e4({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[eG.B.SCALAR],args:{url:{type:new eh(eW),description:"The URL that specifies the behavior of this scalar."}}}),te=Object.freeze([e5,e3,e9,e7]);function tt(e){return te.some(({name:t})=>t===e.name)}var tn=n(90140);function tr(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function ti(e,t){if(et(t)){let n=ti(e,t.ofType);return(null==n?void 0:n.kind)===x.h.NULL?null:n}if(null===e)return{kind:x.h.NULL};if(void 0===e)return null;if(Z(t)){let n=t.ofType;if(tr(e)){let t=[];for(let r of e){let e=ti(r,n);null!=e&&t.push(e)}return{kind:x.h.LIST,values:t}}return ti(e,n)}if(H(t)){if(!(0,w.y)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let t=ti(e[r.name],r.type);t&&n.push({kind:x.h.OBJECT_FIELD,name:{kind:x.h.NAME,value:r.name},value:t})}return{kind:x.h.OBJECT,fields:n}}if(es(t)){let n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:x.h.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){let e=String(n);return to.test(e)?{kind:x.h.INT,value:e}:{kind:x.h.FLOAT,value:e}}if("string"==typeof n)return J(t)?{kind:x.h.ENUM,value:n}:t===eK&&to.test(n)?{kind:x.h.INT,value:n}:{kind:x.h.STRING,value:n};throw TypeError(`Cannot convert value to AST: ${(0,v.X)(n)}.`)}(0,tn.k)(!1,"Unexpected input type: "+(0,v.X)(t))}let to=/^-?(?:0|[1-9][0-9]*)$/,ta=new eS({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:eW,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new eh(new ed(new eh(tc))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new eh(tc),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:tc,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:tc,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new eh(new ed(new eh(ts))),resolve:e=>e.getDirectives()}})}),ts=new eS({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new eh(eW),resolve:e=>e.name},description:{type:eW,resolve:e=>e.description},isRepeatable:{type:new eh(eH),resolve:e=>e.isRepeatable},locations:{type:new eh(new ed(new eh(tu))),resolve:e=>e.locations},args:{type:new eh(new ed(new eh(tf))),args:{includeDeprecated:{type:eH,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),tu=new eP({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:eG.B.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:eG.B.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:eG.B.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:eG.B.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:eG.B.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:eG.B.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:eG.B.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:eG.B.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:eG.B.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:eG.B.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:eG.B.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:eG.B.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:eG.B.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:eG.B.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:eG.B.UNION,description:"Location adjacent to a union definition."},ENUM:{value:eG.B.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:eG.B.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:eG.B.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:eG.B.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),tc=new eS({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new eh(td),resolve:e=>Q(e)?l.SCALAR:q(e)?l.OBJECT:G(e)?l.INTERFACE:Y(e)?l.UNION:J(e)?l.ENUM:H(e)?l.INPUT_OBJECT:Z(e)?l.LIST:et(e)?l.NON_NULL:void(0,tn.k)(!1,`Unexpected type: "${(0,v.X)(e)}".`)},name:{type:eW,resolve:e=>"name"in e?e.name:void 0},description:{type:eW,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:eW,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ed(new eh(tl)),args:{includeDeprecated:{type:eH,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(q(e)||G(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new ed(new eh(tc)),resolve(e){if(q(e)||G(e))return e.getInterfaces()}},possibleTypes:{type:new ed(new eh(tc)),resolve(e,t,n,{schema:r}){if(ef(e))return r.getPossibleTypes(e)}},enumValues:{type:new ed(new eh(tp)),args:{includeDeprecated:{type:eH,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(J(e)){let n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new ed(new eh(tf)),args:{includeDeprecated:{type:eH,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(H(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:tc,resolve:e=>"ofType"in e?e.ofType:void 0}})}),tl=new eS({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new eh(eW),resolve:e=>e.name},description:{type:eW,resolve:e=>e.description},args:{type:new eh(new ed(new eh(tf))),args:{includeDeprecated:{type:eH,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new eh(tc),resolve:e=>e.type},isDeprecated:{type:new eh(eH),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:eW,resolve:e=>e.deprecationReason}})}),tf=new eS({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new eh(eW),resolve:e=>e.name},description:{type:eW,resolve:e=>e.description},type:{type:new eh(tc),resolve:e=>e.type},defaultValue:{type:eW,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=ti(n,t);return r?(0,j.S)(r):null}},isDeprecated:{type:new eh(eH),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:eW,resolve:e=>e.deprecationReason}})}),tp=new eS({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new eh(eW),resolve:e=>e.name},description:{type:eW,resolve:e=>e.description},isDeprecated:{type:new eh(eH),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:eW,resolve:e=>e.deprecationReason}})});(a=l||(l={})).SCALAR="SCALAR",a.OBJECT="OBJECT",a.INTERFACE="INTERFACE",a.UNION="UNION",a.ENUM="ENUM",a.INPUT_OBJECT="INPUT_OBJECT",a.LIST="LIST",a.NON_NULL="NON_NULL";let td=new eP({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:l.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:l.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:l.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:l.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:l.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:l.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:l.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:l.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),th={name:"__schema",type:new eh(ta),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},ty={name:"__type",type:tc,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new eh(eW),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tv={name:"__typename",type:new eh(eW),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},tm=Object.freeze([ta,ts,tu,tc,tl,tf,tp,td]);function tg(e){return tm.some(({name:t})=>e.name===t)}function tb(e){return(0,E.n)(e,tE)}function t_(e){if(!tb(e))throw Error(`Expected ${(0,v.X)(e)} to be a GraphQL schema.`);return e}class tE{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,w.y)(e)||(0,d.a)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,d.a)(!1,`"types" must be Array if provided but got: ${(0,v.X)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,d.a)(!1,`"directives" must be Array if provided but got: ${(0,v.X)(e.directives)}.`),this.description=e.description,this.extensions=F(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:te;let r=new Set(e.types);if(null!=e.types)for(let t of e.types)r.delete(t),tw(t,r);for(let e of(null!=this._queryType&&tw(this._queryType,r),null!=this._mutationType&&tw(this._mutationType,r),null!=this._subscriptionType&&tw(this._subscriptionType,r),this._directives))if(e2(e))for(let t of e.args)tw(t.type,r);for(let e of(tw(ta,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),r)){if(null==e)continue;let t=e.name;if(t||(0,d.a)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,G(e)){for(let t of e.getInterfaces())if(G(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(q(e)){for(let t of e.getInterfaces())if(G(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case g.ku.QUERY:return this.getQueryType();case g.ku.MUTATION:return this.getMutationType();case g.ku.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return Y(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){let t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),Y(e))for(let t of e.getTypes())n[t.name]=!0;else{let t=this.getImplementations(e);for(let e of t.objects)n[e.name]=!0;for(let e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function tw(e,t){let n=ew(e);if(!t.has(n)){if(t.add(n),Y(n))for(let e of n.getTypes())tw(e,t);else if(q(n)||G(n)){for(let e of n.getInterfaces())tw(e,t);for(let e of Object.values(n.getFields()))for(let n of(tw(e.type,t),e.args))tw(n.type,t)}else if(H(n))for(let e of Object.values(n.getFields()))tw(e.type,t)}return t}function tT(e){if(t_(e),e.__validationErrors)return e.__validationErrors;let t=new tO(e);(function(e){var t,n,r;let i=e.schema,o=i.getQueryType();o?q(o)||e.reportError(`Query root type must be Object type, it cannot be ${(0,v.X)(o)}.`,null!==(t=tS(i,g.ku.QUERY))&&void 0!==t?t:o.astNode):e.reportError("Query root type must be provided.",i.astNode);let a=i.getMutationType();a&&!q(a)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,v.X)(a)}.`,null!==(n=tS(i,g.ku.MUTATION))&&void 0!==n?n:a.astNode);let s=i.getSubscriptionType();s&&!q(s)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,v.X)(s)}.`,null!==(r=tS(i,g.ku.SUBSCRIPTION))&&void 0!==r?r:s.astNode)})(t),function(e){for(let n of e.schema.getDirectives()){if(!e2(n)){e.reportError(`Expected directive but got: ${(0,v.X)(n)}.`,null==n?void 0:n.astNode);continue}for(let r of(tN(e,n),n.args))if(tN(e,r),er(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,v.X)(r.type)}.`,r.astNode),ex(r)&&null!=r.deprecationReason){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[tF(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}}(t),function(e){let t=function(e){let t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(!t[o.name]){for(let a of(t[o.name]=!0,r[o.name]=n.length,Object.values(o.getFields())))if(et(a.type)&&H(a.type.ofType)){let t=a.type.ofType,o=r[t.name];if(n.push(a),void 0===o)i(t);else{let r=n.slice(o),i=r.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${t.name}" within itself through a series of non-null fields: "${i}".`,r.map(e=>e.astNode))}n.pop()}r[o.name]=void 0}}}(e);for(let n of Object.values(e.schema.getTypeMap())){if(!e_(n)){e.reportError(`Expected GraphQL named type but got: ${(0,v.X)(n)}.`,n.astNode);continue}tg(n)||tN(e,n),q(n)?(tk(e,n),tD(e,n)):G(n)?(tk(e,n),tD(e,n)):Y(n)?function(e,t){let n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,tA(t,i.name));continue}r[i.name]=!0,q(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,v.X)(i)}.`,tA(t,String(i)))}}(e,n):J(n)?function(e,t){let n=t.getValues();for(let r of(0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]),n))tN(e,r)}(e,n):H(n)&&(function(e,t){let n=Object.values(t.getFields());for(let o of(0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i;tN(e,o),er(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${(0,v.X)(o.type)}.`,null===(r=o.astNode)||void 0===r?void 0:r.type),eQ(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[tF(o.astNode),null===(i=o.astNode)||void 0===i?void 0:i.type])}}(e,n),t(n))}}(t);let n=t.getErrors();return e.__validationErrors=n,n}function tI(e){let t=tT(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}class tO{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new m.__(e,{nodes:n}))}getErrors(){return this._errors}}function tS(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function tN(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function tk(e,t){let n=Object.values(t.getFields());for(let a of(0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i,o;for(let n of(tN(e,a),eo(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${(0,v.X)(a.type)}.`,null===(r=a.astNode)||void 0===r?void 0:r.type),a.args)){let r=n.name;tN(e,n),er(n.type)||e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${(0,v.X)(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type),ex(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[tF(n.astNode),null===(o=n.astNode)||void 0===o?void 0:o.type])}}}function tD(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!G(r)){e.reportError(`Type ${(0,v.X)(t)} must only implement Interface types, it cannot implement ${(0,v.X)(r)}.`,tR(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,tR(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,tR(t,r));continue}n[r.name]=!0,function(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...tR(n,i),...tR(t,n)])}(e,t,r),function(e,t,n){let r=t.getFields();for(let u of Object.values(n.getFields())){var i,o,a,s;let c=u.name,l=r[c];if(!l){e.reportError(`Interface field ${n.name}.${c} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes]);continue}for(let r of(eq(e.schema,l.type,u.type)||e.reportError(`Interface field ${n.name}.${c} expects type ${(0,v.X)(u.type)} but ${t.name}.${c} is type ${(0,v.X)(l.type)}.`,[null===(i=u.astNode)||void 0===i?void 0:i.type,null===(o=l.astNode)||void 0===o?void 0:o.type]),u.args)){let i=r.name,o=l.args.find(e=>e.name===i);if(!o){e.reportError(`Interface field argument ${n.name}.${c}(${i}:) expected but ${t.name}.${c} does not provide it.`,[r.astNode,l.astNode]);continue}eU(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${c}(${i}:) expects type ${(0,v.X)(r.type)} but ${t.name}.${c}(${i}:) is type ${(0,v.X)(o.type)}.`,[null===(a=r.astNode)||void 0===a?void 0:a.type,null===(s=o.astNode)||void 0===s?void 0:s.type])}for(let r of l.args){let i=r.name;!u.args.find(e=>e.name===i)&&ex(r)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${i} that is missing from the Interface field ${n.name}.${c}.`,[r.astNode,u.astNode])}}}(e,t,r)}}function tR(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function tA(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function tF(e){var t;return null==e?void 0:null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===e9.name)}var tx=n(53280);function tj(e,t){switch(t.kind){case x.h.LIST_TYPE:{let n=tj(e,t.type);return n&&new ed(n)}case x.h.NON_NULL_TYPE:{let n=tj(e,t.type);return n&&new eh(n)}case x.h.NAMED_TYPE:return e.getType(t.name.value)}}class tC{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:tL,t&&(er(t)&&this._inputTypeStack.push(t),ec(t)&&this._parentTypeStack.push(t),eo(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){let t=this._schema;switch(e.kind){case x.h.SELECTION_SET:{let e=ew(this.getType());this._parentTypeStack.push(ec(e)?e:void 0);break}case x.h.FIELD:{let n,r;let i=this.getParentType();i&&(n=this._getFieldDef(t,i,e))&&(r=n.type),this._fieldDefStack.push(n),this._typeStack.push(eo(r)?r:void 0);break}case x.h.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case x.h.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push(q(n)?n:void 0);break}case x.h.INLINE_FRAGMENT:case x.h.FRAGMENT_DEFINITION:{let n=e.typeCondition,r=n?tj(t,n):ew(this.getType());this._typeStack.push(eo(r)?r:void 0);break}case x.h.VARIABLE_DEFINITION:{let n=tj(t,e.type);this._inputTypeStack.push(er(n)?n:void 0);break}case x.h.ARGUMENT:{var n;let t,r;let i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value))&&(r=t.type),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(er(r)?r:void 0);break}case x.h.LIST:{let e=eb(this.getInputType()),t=Z(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(er(t)?t:void 0);break}case x.h.OBJECT_FIELD:{let t,n;let r=ew(this.getInputType());H(r)&&(n=r.getFields()[e.name.value])&&(t=n.type),this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(er(t)?t:void 0);break}case x.h.ENUM:{let t;let n=ew(this.getInputType());J(n)&&(t=n.getValue(e.value)),this._enumValue=t}}}leave(e){switch(e.kind){case x.h.SELECTION_SET:this._parentTypeStack.pop();break;case x.h.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case x.h.DIRECTIVE:this._directive=null;break;case x.h.OPERATION_DEFINITION:case x.h.INLINE_FRAGMENT:case x.h.FRAGMENT_DEFINITION:this._typeStack.pop();break;case x.h.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case x.h.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case x.h.LIST:case x.h.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case x.h.ENUM:this._enumValue=null}}}function tL(e,t,n){let r=n.name.value;return r===th.name&&e.getQueryType()===t?th:r===ty.name&&e.getQueryType()===t?ty:r===tv.name&&ec(t)?tv:q(t)||G(t)?t.getFields()[r]:void 0}function tP(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,tx.Eu)(t,r.kind).enter;if(i){let o=i.apply(t,n);return void 0!==o&&(e.leave(r),(0,g.UG)(o)&&e.enter(o)),o}},leave(...n){let r;let i=n[0],o=(0,tx.Eu)(t,i.kind).leave;return o&&(r=o.apply(t,n)),e.leave(i),r}}}var tM=n(64497);function tV(e){return{Document(t){for(let n of t.definitions)if(!(0,tM.Wk)(n)){let t=n.kind===x.h.SCHEMA_DEFINITION||n.kind===x.h.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new m.__(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function t$(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let r=e.getSchema(),i=t.name.value,o=b("to use an inline fragment on",function(e,t,n){if(!ef(t))return[];let r=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n])for(let e of(r.add(a),i[a.name]=1,a.getInterfaces())){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(o=i[e.name])&&void 0!==o?o:0)+1)}return[...r].sort((t,n)=>{let r=i[n.name]-i[t.name];return 0!==r?r:G(t)&&e.isSubType(t,n)?-1:G(n)&&e.isSubType(n,t)?1:S(t.name,n.name)}).map(e=>e.name)}(r,n,i));""===o&&(o=b(q(n)||G(n)?D(i,Object.keys(n.getFields())):[])),e.reportError(new m.__(`Cannot query field "${i}" on type "${n.name}".`+o,{nodes:t}))}}}}function tQ(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let t=tj(e.getSchema(),n);if(t&&!ec(t)){let t=(0,j.S)(n);e.reportError(new m.__(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){let n=tj(e.getSchema(),t.typeCondition);if(n&&!ec(n)){let n=(0,j.S)(t.typeCondition);e.reportError(new m.__(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function tU(e){return{...tq(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let n=t.name.value,o=D(n,r.args.map(e=>e.name));e.reportError(new m.__(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+b(o),{nodes:t}))}}}}function tq(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():te)t[e.name]=e.args.map(e=>e.name);for(let n of e.getDocument().definitions)if(n.kind===x.h.DIRECTIVE_DEFINITION){var r;let e=null!==(r=n.arguments)&&void 0!==r?r:[];t[n.name.value]=e.map(e=>e.name.value)}return{Directive(n){let r=n.name.value,i=t[r];if(n.arguments&&i)for(let t of n.arguments){let n=t.name.value;if(!i.includes(n)){let o=D(n,i);e.reportError(new m.__(`Unknown argument "${n}" on directive "@${r}".`+b(o),{nodes:t}))}}return!1}}}function tB(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():te)t[e.name]=e.locations;for(let n of e.getDocument().definitions)n.kind===x.h.DIRECTIVE_DEFINITION&&(t[n.name.value]=n.locations.map(e=>e.value));return{Directive(n,r,i,o,a){let s=n.name.value,u=t[s];if(!u){e.reportError(new m.__(`Unknown directive "@${s}".`,{nodes:n}));return}let c=function(e){let t=e[e.length-1];switch("kind"in t||(0,tn.k)(!1),t.kind){case x.h.OPERATION_DEFINITION:return function(e){switch(e){case g.ku.QUERY:return eG.B.QUERY;case g.ku.MUTATION:return eG.B.MUTATION;case g.ku.SUBSCRIPTION:return eG.B.SUBSCRIPTION}}(t.operation);case x.h.FIELD:return eG.B.FIELD;case x.h.FRAGMENT_SPREAD:return eG.B.FRAGMENT_SPREAD;case x.h.INLINE_FRAGMENT:return eG.B.INLINE_FRAGMENT;case x.h.FRAGMENT_DEFINITION:return eG.B.FRAGMENT_DEFINITION;case x.h.VARIABLE_DEFINITION:return eG.B.VARIABLE_DEFINITION;case x.h.SCHEMA_DEFINITION:case x.h.SCHEMA_EXTENSION:return eG.B.SCHEMA;case x.h.SCALAR_TYPE_DEFINITION:case x.h.SCALAR_TYPE_EXTENSION:return eG.B.SCALAR;case x.h.OBJECT_TYPE_DEFINITION:case x.h.OBJECT_TYPE_EXTENSION:return eG.B.OBJECT;case x.h.FIELD_DEFINITION:return eG.B.FIELD_DEFINITION;case x.h.INTERFACE_TYPE_DEFINITION:case x.h.INTERFACE_TYPE_EXTENSION:return eG.B.INTERFACE;case x.h.UNION_TYPE_DEFINITION:case x.h.UNION_TYPE_EXTENSION:return eG.B.UNION;case x.h.ENUM_TYPE_DEFINITION:case x.h.ENUM_TYPE_EXTENSION:return eG.B.ENUM;case x.h.ENUM_VALUE_DEFINITION:return eG.B.ENUM_VALUE;case x.h.INPUT_OBJECT_TYPE_DEFINITION:case x.h.INPUT_OBJECT_TYPE_EXTENSION:return eG.B.INPUT_OBJECT;case x.h.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||(0,tn.k)(!1),t.kind===x.h.INPUT_OBJECT_TYPE_DEFINITION?eG.B.INPUT_FIELD_DEFINITION:eG.B.ARGUMENT_DEFINITION}default:(0,tn.k)(!1,"Unexpected kind: "+(0,v.X)(t.kind))}}(a);c&&!u.includes(c)&&e.reportError(new m.__(`Directive "@${s}" may not be used on ${c}.`,{nodes:n}))}}}function tG(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new m.__(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function tX(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let t of e.getDocument().definitions)(0,tM.zT)(t)&&(r[t.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,u){let c=t.name.value;if(!n[c]&&!r[c]){var l,f;let n=null!==(l=u[2])&&void 0!==l?l:a,r=null!=n&&"kind"in(f=n)&&((0,tM.G4)(f)||(0,tM.aU)(f));if(r&&tY.includes(c))return;let o=D(c,r?tY.concat(i):i);e.reportError(new m.__(`Unknown type "${c}".`+b(o),{nodes:t}))}}}}let tY=[...eZ,...tm].map(e=>e.name);function tz(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===x.h.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new m.__("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function tJ(e){var t,n,r;let i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition(t){if(o){e.reportError(new m.__("Cannot define a new schema within a schema extension.",{nodes:t}));return}a>0&&e.reportError(new m.__("Must provide only one schema definition.",{nodes:t})),++a}}}function tW(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>((function i(o){if(t[o.name.value])return;let a=o.name.value;t[a]=!0;let s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){for(let t of(r[a]=n.length,s)){let o=t.name.value,a=r[o];if(n.push(t),void 0===a){let t=e.getFragment(o);t&&i(t)}else{let t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new m.__(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}})(i),!1)}}function tH(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:r}of e.getRecursiveVariableUsages(n)){let i=r.name.value;!0!==t[i]&&e.reportError(new m.__(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[r,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function tK(e){let t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){let r=Object.create(null);for(let n of t)for(let t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(let t of n){let n=t.name.value;!0!==r[n]&&e.reportError(new m.__(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function tZ(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null);for(let{node:t}of e.getRecursiveVariableUsages(n))r[t.name.value]=!0;for(let i of t){let t=i.variable.name.value;!0!==r[t]&&e.reportError(new m.__(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function t0(e){switch(e.kind){case x.h.OBJECT:return{...e,fields:e.fields.map(e=>({...e,value:t0(e.value)})).sort((e,t)=>S(e.name.value,t.name.value))};case x.h.LIST:return{...e,values:e.values.map(t0)};case x.h.INT:case x.h.FLOAT:case x.h.STRING:case x.h.BOOLEAN:case x.h.NULL:case x.h.ENUM:case x.h.VARIABLE:return e}}function t1(e){let t=new t9,n=new Map;return{SelectionSet(r){for(let[[i,o],a,s]of function(e,t,n,r,i){let o=[],[a,s]=t3(e,t,r,i);if(function(e,t,n,r,i){for(let[o,a]of Object.entries(i))if(a.length>1)for(let i=0;i`subfields "${t}" conflict because `+e(n)).join(" and "):t}(o);e.reportError(new m.__(`Fields "${i}" conflict because ${t}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:a.concat(s)}))}}}}function t2(e,t,n,r,i,o,a){let s=e.getFragment(a);if(!s)return;let[u,c]=t8(e,n,s);if(o!==u)for(let s of(t4(e,t,n,r,i,o,u),c))r.has(s,a,i)||(r.add(s,a,i),t2(e,t,n,r,i,o,s))}function t6(e,t,n,r,i,o,a){if(o===a||r.has(o,a,i))return;r.add(o,a,i);let s=e.getFragment(o),u=e.getFragment(a);if(!s||!u)return;let[c,l]=t8(e,n,s),[f,p]=t8(e,n,u);for(let a of(t4(e,t,n,r,i,c,f),p))t6(e,t,n,r,i,o,a);for(let o of l)t6(e,t,n,r,i,o,a)}function t4(e,t,n,r,i,o,a){for(let[s,u]of Object.entries(o)){let o=a[s];if(o)for(let a of u)for(let u of o){let o=t5(e,n,r,i,s,a,u);o&&t.push(o)}}}function t5(e,t,n,r,i,o,a){let[s,u,c]=o,[l,f,p]=a,d=r||s!==l&&q(s)&&q(l);if(!d){let e=u.name.value,t=f.name.value;if(e!==t)return[[i,`"${e}" and "${t}" are different fields`],[u],[f]];if(!function(e,t){let n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length||n.length!==r.length)return!1;let i=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{var t,n;let r=e.value,o=i.get(e.name.value);return void 0!==o&&(t=r,(0,j.S)(t0(t))===(n=o,(0,j.S)(t0(n))))})}(u,f))return[[i,"they have differing arguments"],[u],[f]]}let h=null==c?void 0:c.type,y=null==p?void 0:p.type;if(h&&y&&function e(t,n){return Z(t)?!Z(n)||e(t.ofType,n.ofType):!!Z(n)||(et(t)?!et(n)||e(t.ofType,n.ofType):!!et(n)||!!(es(t)||es(n))&&t!==n)}(h,y))return[[i,`they return conflicting types "${(0,v.X)(h)}" and "${(0,v.X)(y)}"`],[u],[f]];let m=u.selectionSet,g=f.selectionSet;if(m&&g)return function(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(function(e,t,n,r,i,o,a,s){let u=[],[c,l]=t3(e,t,i,o),[f,p]=t3(e,t,a,s);for(let i of(t4(e,u,t,n,r,c,f),p))t2(e,u,t,n,r,c,i);for(let i of l)t2(e,u,t,n,r,f,i);for(let i of l)for(let o of p)t6(e,u,t,n,r,i,o);return u}(e,t,n,d,ew(h),m,ew(y),g),i,u,f)}function t3(e,t,n,r){let i=t.get(r);if(i)return i;let o=Object.create(null),a=Object.create(null);!function e(t,n,r,i,o){for(let a of r.selections)switch(a.kind){case x.h.FIELD:{let e;let t=a.name.value;(q(n)||G(n))&&(e=n.getFields()[t]);let r=a.alias?a.alias.value:t;i[r]||(i[r]=[]),i[r].push([n,a,e]);break}case x.h.FRAGMENT_SPREAD:o[a.name.value]=!0;break;case x.h.INLINE_FRAGMENT:{let r=a.typeCondition,s=r?tj(t.getSchema(),r):n;e(t,s,a.selectionSet,i,o)}}}(e,n,r,o,a);let s=[o,Object.keys(a)];return t.set(r,s),s}function t8(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=tj(e.getSchema(),n.typeCondition);return t3(e,t,i,n.selectionSet)}class t9{constructor(){this._data=new Map}has(e,t,n){var r;let[i,o]=ee.name.value));for(let n of r.args)if(!i.has(n.name)&&ex(n)){let i=(0,v.X)(n.type);e.reportError(new m.__(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function nr(e){var t,n;let r=Object.create(null),i=e.getSchema();for(let e of null!==(t=null==i?void 0:i.getDirectives())&&void 0!==t?t:te)r[e.name]=T(e.args.filter(ex),e=>e.name);for(let t of e.getDocument().definitions)if(t.kind===x.h.DIRECTIVE_DEFINITION){let e=null!==(n=t.arguments)&&void 0!==n?n:[];r[t.name.value]=T(e.filter(ni),e=>e.name.value)}return{Directive:{leave(t){let n=t.name.value,i=r[n];if(i){var o;let r=new Set((null!==(o=t.arguments)&&void 0!==o?o:[]).map(e=>e.name.value));for(let[o,a]of Object.entries(i))if(!r.has(o)){let r=V(a.type)?(0,v.X)(a.type):(0,j.S)(a.type);e.reportError(new m.__(`Directive "@${n}" argument "${o}" of type "${r}" is required, but it was not provided.`,{nodes:t}))}}}}}}function ni(e){return e.type.kind===x.h.NON_NULL_TYPE&&null==e.defaultValue}function no(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if(es(ew(n))){if(r){let i=t.name.value,o=(0,v.X)(n);e.reportError(new m.__(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(!r){let r=t.name.value,i=(0,v.X)(n);e.reportError(new m.__(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}}function na(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function ns(e,t,n){return{prev:e,key:t,typename:n}}function nu(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function nc(e,t,n=nl){return function e(t,n,r,i){if(et(n))return null!=t?e(t,n.ofType,r,i):void r(nu(i),t,new m.__(`Expected non-nullable type "${(0,v.X)(n)}" not to be null.`));if(null==t)return null;if(Z(n)){let o=n.ofType;return tr(t)?Array.from(t,(t,n)=>e(t,o,r,ns(i,n,void 0))):[e(t,o,r,i)]}if(H(n)){if(!(0,w.y)(t)){r(nu(i),t,new m.__(`Expected type "${n.name}" to be an object.`));return}let o={},a=n.getFields();for(let s of Object.values(a)){let a=t[s.name];if(void 0===a){if(void 0!==s.defaultValue)o[s.name]=s.defaultValue;else if(et(s.type)){let e=(0,v.X)(s.type);r(nu(i),t,new m.__(`Field "${s.name}" of required type "${e}" was not provided.`))}continue}o[s.name]=e(a,s.type,r,ns(i,s.name,n.name))}for(let e of Object.keys(t))if(!a[e]){let o=D(e,Object.keys(n.getFields()));r(nu(i),t,new m.__(`Field "${e}" is not defined by type "${n.name}".`+b(o)))}return o}if(es(n)){let e;try{e=n.parseValue(t)}catch(e){e instanceof m.__?r(nu(i),t,e):r(nu(i),t,new m.__(`Expected type "${n.name}". `+e.message,{originalError:e}));return}return void 0===e&&r(nu(i),t,new m.__(`Expected type "${n.name}".`)),e}(0,tn.k)(!1,"Unexpected input type: "+(0,v.X)(n))}(e,t,n,void 0)}function nl(e,t,n){let r="Invalid value "+(0,v.X)(t);throw e.length>0&&(r+=` at "value${na(e)}"`),n.message=r+": "+n.message,n}function nf(e,t,n){if(e){if(e.kind===x.h.VARIABLE){let r=e.name.value;if(null==n||void 0===n[r])return;let i=n[r];if(null===i&&et(t))return;return i}if(et(t)){if(e.kind===x.h.NULL)return;return nf(e,t.ofType,n)}if(e.kind===x.h.NULL)return null;if(Z(t)){let r=t.ofType;if(e.kind===x.h.LIST){let t=[];for(let i of e.values)if(np(i,n)){if(et(r))return;t.push(null)}else{let e=nf(i,r,n);if(void 0===e)return;t.push(e)}return t}let i=nf(e,r,n);if(void 0===i)return;return[i]}if(H(t)){if(e.kind!==x.h.OBJECT)return;let r=Object.create(null),i=T(e.fields,e=>e.name.value);for(let e of Object.values(t.getFields())){let t=i[e.name];if(!t||np(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(et(e.type))return;continue}let o=nf(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}return r}if(es(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}(0,tn.k)(!1,"Unexpected input type: "+(0,v.X)(t))}}function np(e,t){return e.kind===x.h.VARIABLE&&(null==t||void 0===t[e.name.value])}function nd(e,t,n,r){let i=[],o=null==r?void 0:r.maxErrors;try{let r=function(e,t,n,r){let i={};for(let o of t){let t=o.variable.name.value,a=tj(e,o.type);if(!er(a)){let e=(0,j.S)(o.type);r(new m.__(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!nv(n,t)){if(o.defaultValue)i[t]=nf(o.defaultValue,a);else if(et(a)){let e=(0,v.X)(a);r(new m.__(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}let s=n[t];if(null===s&&et(a)){let e=(0,v.X)(a);r(new m.__(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}));continue}i[t]=nc(s,a,(e,n,i)=>{let a=`Variable "$${t}" got invalid value `+(0,v.X)(n);e.length>0&&(a+=` at "${t}${na(e)}"`),r(new m.__(a+"; "+i.message,{nodes:o,originalError:i}))})}return i}(e,t,n,e=>{if(null!=o&&i.length>=o)throw new m.__("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function nh(e,t,n){var r;let i={},o=T(null!==(r=t.arguments)&&void 0!==r?r:[],e=>e.name.value);for(let r of e.args){let e=r.name,a=r.type,s=o[e];if(!s){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(et(a))throw new m.__(`Argument "${e}" of required type "${(0,v.X)(a)}" was not provided.`,{nodes:t});continue}let u=s.value,c=u.kind===x.h.NULL;if(u.kind===x.h.VARIABLE){let t=u.name.value;if(null==n||!nv(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(et(a))throw new m.__(`Argument "${e}" of required type "${(0,v.X)(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:u});continue}c=null==n[t]}if(c&&et(a))throw new m.__(`Argument "${e}" of non-null type "${(0,v.X)(a)}" must not be null.`,{nodes:u});let l=nf(u,a,n);if(void 0===l)throw new m.__(`Argument "${e}" has invalid value ${(0,j.S)(u)}.`,{nodes:u});i[e]=l}return i}function ny(e,t,n){var r;let i=null===(r=t.directives)||void 0===r?void 0:r.find(t=>t.name.value===e.name);if(i)return nh(e,i,n)}function nv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nm(e,t,n,r,i){let o=new Map;return ng(e,t,n,r,i,o,new Set),o}function ng(e,t,n,r,i,o,a){for(let s of i.selections)switch(s.kind){case x.h.FIELD:{if(!nb(n,s))continue;let e=s.alias?s.alias.value:s.name.value,t=o.get(e);void 0!==t?t.push(s):o.set(e,[s]);break}case x.h.INLINE_FRAGMENT:if(!nb(n,s)||!n_(e,s,r))continue;ng(e,t,n,r,s.selectionSet,o,a);break;case x.h.FRAGMENT_SPREAD:{let i=s.name.value;if(a.has(i)||!nb(n,s))continue;a.add(i);let u=t[i];if(!u||!n_(e,u,r))continue;ng(e,t,n,r,u.selectionSet,o,a)}}}function nb(e,t){let n=ny(e3,t,e);if((null==n?void 0:n.if)===!0)return!1;let r=ny(e5,t,e);return(null==r?void 0:r.if)!==!1}function n_(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=tj(e,r);return i===n||!!ef(i)&&e.isSubType(i,n)}function nE(e){return{OperationDefinition(t){if("subscription"===t.operation){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(let e of a.definitions)e.kind===x.h.FRAGMENT_DEFINITION&&(s[e.name.value]=e);let u=nm(n,s,o,r,t.selectionSet);if(u.size>1){let t=[...u.values()].slice(1).flat();e.reportError(new m.__(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(let t of u.values())t[0].name.value.startsWith("__")&&e.reportError(new m.__(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function nw(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function nT(e){return{DirectiveDefinition(e){var t;let r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,r;let i=e.name.value;for(let o of null!==(t=e.fields)&&void 0!==t?t:[]){let e=o.name.value;n(`${i}.${e}`,null!==(r=o.arguments)&&void 0!==r?r:[])}return!1}function n(t,n){for(let[r,i]of nw(n,e=>e.name.value))i.length>1&&e.reportError(new m.__(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function nI(e){return{Field:t,Directive:t};function t(t){var n;for(let[r,i]of nw(null!==(n=t.arguments)&&void 0!==n?n:[],e=>e.name.value))i.length>1&&e.reportError(new m.__(`There can be only one argument named "${r}".`,{nodes:i.map(e=>e.name)}))}}function nO(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(null!=n&&n.getDirective(i)){e.reportError(new m.__(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new m.__(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function nS(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():te)t[e.name]=!e.isRepeatable;for(let n of e.getDocument().definitions)n.kind===x.h.DIRECTIVE_DEFINITION&&(t[n.name.value]=!n.repeatable);let r=Object.create(null),i=Object.create(null);return{enter(n){let o;if("directives"in n&&n.directives){if(n.kind===x.h.SCHEMA_DEFINITION||n.kind===x.h.SCHEMA_EXTENSION)o=r;else if((0,tM.zT)(n)||(0,tM.D$)(n)){let e=n.name.value;void 0===(o=i[e])&&(i[e]=o=Object.create(null))}else o=Object.create(null);for(let r of n.directives){let n=r.name.value;t[n]&&(o[n]?e.reportError(new m.__(`The directive "@${n}" can only be used once at this location.`,{nodes:[o[n],r]})):o[n]=r)}}}}}function nN(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;let o=t.name.value;r[o]||(r[o]=Object.create(null));let a=null!==(i=t.values)&&void 0!==i?i:[],s=r[o];for(let t of a){let r=t.name.value,i=n[o];J(i)&&i.getValue(r)?e.reportError(new m.__(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new m.__(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function nk(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o;let a=t.name.value;r[a]||(r[a]=Object.create(null));let s=null!==(i=t.fields)&&void 0!==i?i:[],u=r[a];for(let t of s){let r=t.name.value;(q(o=n[a])||G(o)||H(o))&&null!=o.getFields()[r]?e.reportError(new m.__(`Field "${a}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[r]?e.reportError(new m.__(`Field "${a}.${r}" can only be defined once.`,{nodes:[u[r],t.name]})):u[r]=t.name}return!1}}function nD(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new m.__(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function nR(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let e=t.pop();e||(0,tn.k)(!1),n=e}},ObjectField(t){let r=t.name.value;n[r]?e.reportError(new m.__(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function nA(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new m.__(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function nF(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;for(let o of null!==(i=t.operationTypes)&&void 0!==i?i:[]){let t=o.operation,i=n[t];r[t]?e.reportError(new m.__(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:o})):i?e.reportError(new m.__(`There can be only one ${t} type in schema.`,{nodes:[i,o]})):n[t]=o}return!1}}function nx(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){let i=r.name.value;if(null!=n&&n.getType(i)){e.reportError(new m.__(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}));return}return t[i]?e.reportError(new m.__(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}function nj(e){return{OperationDefinition(t){var n;for(let[r,i]of nw(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],e=>e.variable.name.value))i.length>1&&e.reportError(new m.__(`There can be only one variable named "$${r}".`,{nodes:i.map(e=>e.variable.name)}))}}}function nC(e){return{ListValue(t){if(!Z(eb(e.getParentInputType())))return nL(e,t),!1},ObjectValue(t){let n=ew(e.getInputType());if(!H(n))return nL(e,t),!1;let r=T(t.fields,e=>e.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&eQ(i)){let r=(0,v.X)(i.type);e.reportError(new m.__(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}},ObjectField(t){let n=ew(e.getParentInputType());if(!e.getInputType()&&H(n)){let r=D(t.name.value,Object.keys(n.getFields()));e.reportError(new m.__(`Field "${t.name.value}" is not defined by type "${n.name}".`+b(r),{nodes:t}))}},NullValue(t){let n=e.getInputType();et(n)&&e.reportError(new m.__(`Expected value of type "${(0,v.X)(n)}", found ${(0,j.S)(t)}.`,{nodes:t}))},EnumValue:t=>nL(e,t),IntValue:t=>nL(e,t),FloatValue:t=>nL(e,t),StringValue:t=>nL(e,t),BooleanValue:t=>nL(e,t)}}function nL(e,t){let n=e.getInputType();if(!n)return;let r=ew(n);if(!es(r)){let r=(0,v.X)(n);e.reportError(new m.__(`Expected value of type "${r}", found ${(0,j.S)(t)}.`,{nodes:t}));return}try{let i=r.parseLiteral(t,void 0);if(void 0===i){let r=(0,v.X)(n);e.reportError(new m.__(`Expected value of type "${r}", found ${(0,j.S)(t)}.`,{nodes:t}))}}catch(i){let r=(0,v.X)(n);i instanceof m.__?e.reportError(i):e.reportError(new m.__(`Expected value of type "${r}", found ${(0,j.S)(t)}; `+i.message,{nodes:t,originalError:i}))}}function nP(e){return{VariableDefinition(t){let n=tj(e.getSchema(),t.type);if(void 0!==n&&!er(n)){let n=t.variable.name.value,r=(0,j.S)(t.type);e.reportError(new m.__(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function nM(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:i,type:o,defaultValue:a}of e.getRecursiveVariableUsages(n)){let n=i.name.value,s=t[n];if(s&&o){var r;let t=e.getSchema(),u=tj(t,s.type);if(u&&(r=s.defaultValue,et(o)&&!et(u)?!((null!=r&&r.kind!==x.h.NULL||void 0!==a)&&eq(t,u,o.ofType)):!eq(t,u,o))){let t=(0,v.X)(u),r=(0,v.X)(o);e.reportError(new m.__(`Variable "$${n}" of type "${t}" used in position expecting type "${r}".`,{nodes:[s,i]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}let nV=Object.freeze([tV,nA,tz,nE,tX,tQ,nP,no,t$,nD,tG,tK,t7,tW,nj,tH,tZ,tB,nS,tU,nI,nC,nn,nM,t1,nR]),n$=Object.freeze([tJ,nF,nx,nN,nk,nT,nO,tX,tB,nS,ne,tq,nI,nR,nr]);class nQ{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{for(let e of(t=Object.create(null),this.getDocument().definitions))e.kind===x.h.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){let n;t=[];let r=[e];for(;n=r.pop();)for(let e of n.selections)e.kind===x.h.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&r.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){let n;t=[];let r=Object.create(null),i=[e.selectionSet];for(;n=i.pop();)for(let e of this.getFragmentSpreads(n)){let n=e.name.value;if(!0!==r[n]){r[n]=!0;let e=this.getFragment(n);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class nU extends nQ{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class nq extends nQ{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let n=[],r=new tC(this._schema);(0,tx.Vn)(e,tP(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){for(let n of(t=this.getVariableUsages(e),this.getRecursivelyReferencedFragments(e)))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function nB(e,t,n=nV,r,i=new tC(e)){var o;let a=null!==(o=null==r?void 0:r.maxErrors)&&void 0!==o?o:100;t||(0,d.a)(!1,"Must provide document."),tI(e);let s=Object.freeze({}),u=[],c=new nq(e,t,i,e=>{if(u.length>=a)throw u.push(new m.__("Too many validation errors, error limit reached. Validation aborted.")),s;u.push(e)}),l=(0,tx.j1)(n.map(e=>e(c)));try{(0,tx.Vn)(t,tP(i,l))}catch(e){if(e!==s)throw e}return u}function nG(e,t,n=n$){let r=[],i=new nU(e,t,e=>{r.push(e)}),o=n.map(e=>e(i));return(0,tx.Vn)(e,(0,tx.j1)(o)),r}function nX(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}class nY extends Error{constructor(e){super("Unexpected error value: "+(0,v.X)(e)),this.name="NonErrorThrown",this.thrownValue=e}}function nz(e,t,n){var r;let i=e instanceof Error?e:new nY(e);return Array.isArray(i.path)?i:new m.__(i.message,{nodes:null!==(r=i.nodes)&&void 0!==r?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}let nJ=(s=(e,t,n)=>(function(e,t,n,r,i){let o=new Map,a=new Set;for(let s of i)s.selectionSet&&ng(e,t,n,r,s.selectionSet,o,a);return o})(e.schema,e.fragments,e.variableValues,t,n),function(e,t,n){void 0===r&&(r=new WeakMap);let i=r.get(e);void 0===i&&(i=new WeakMap,r.set(e,i));let o=i.get(t);void 0===o&&(o=new WeakMap,i.set(t,o));let a=o.get(n);return void 0===a&&(a=s(e,t,n),o.set(n,a)),a});function nW(e){arguments.length<2||(0,d.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;nZ(t,n,r);let o=n0(e);if(!("schema"in o))return{errors:o};try{let{operation:e}=o,t=function(e,t,n){let r=e.schema.getRootType(t.operation);if(null==r)throw new m.__(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=nm(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case g.ku.QUERY:return n1(e,r,n,o,i);case g.ku.MUTATION:return function(e,t,n){let r=n;for(let n of e)r=h(r)?r.then(e=>t(e,n)):t(r,n);return r}(i.entries(),(t,[i,a])=>{let s=ns(o,i,r.name),u=n2(e,r,n,a,s);return void 0===u?t:h(u)?u.then(e=>(t[i]=e,t)):(t[i]=u,t)},Object.create(null));case g.ku.SUBSCRIPTION:return n1(e,r,n,o,i)}}(o,e,i);if(h(t))return t.then(e=>nK(e,o.errors),e=>(o.errors.push(e),nK(null,o.errors)));return nK(t,o.errors)}catch(e){return o.errors.push(e),nK(null,o.errors)}}function nH(e){let t=nW(e);if(h(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function nK(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function nZ(e,t,n){t||(0,d.a)(!1,"Must provide document."),tI(e),null==n||(0,w.y)(n)||(0,d.a)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function n0(e){var t,n;let r;let{schema:i,document:o,rootValue:a,contextValue:s,variableValues:u,operationName:c,fieldResolver:l,typeResolver:f,subscribeFieldResolver:p}=e,d=Object.create(null);for(let e of o.definitions)switch(e.kind){case x.h.OPERATION_DEFINITION:if(null==c){if(void 0!==r)return[new m.__("Must provide operation name if query contains multiple operations.")];r=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===c&&(r=e);break;case x.h.FRAGMENT_DEFINITION:d[e.name.value]=e}if(!r)return null!=c?[new m.__(`Unknown operation named "${c}".`)]:[new m.__("Must provide an operation.")];let h=nd(i,null!==(n=r.variableDefinitions)&&void 0!==n?n:[],null!=u?u:{},{maxErrors:50});return h.errors?h.errors:{schema:i,fragments:d,rootValue:a,contextValue:s,operation:r,variableValues:h.coerced,fieldResolver:null!=l?l:re,typeResolver:null!=f?f:n7,subscribeFieldResolver:null!=p?p:re,errors:[]}}function n1(e,t,n,r,i){let o=Object.create(null),a=!1;try{for(let[s,u]of i.entries()){let i=ns(r,s,t.name),c=n2(e,t,n,u,i);void 0!==c&&(o[s]=c,h(c)&&(a=!0))}}catch(e){if(a)return nX(o).finally(()=>{throw e});throw e}return a?nX(o):o}function n2(e,t,n,r,i){var o;let a=rt(e.schema,t,r[0]);if(!a)return;let s=a.type,u=null!==(o=a.resolve)&&void 0!==o?o:e.fieldResolver,c=n6(e,a,r,t,i);try{let t;let o=nh(a,r[0],e.variableValues),l=e.contextValue,f=u(n,o,l,c);if(t=h(f)?f.then(t=>n5(e,s,r,c,i,t)):n5(e,s,r,c,i,f),h(t))return t.then(void 0,t=>{let n=nz(t,r,nu(i));return n4(n,s,e)});return t}catch(t){return n4(nz(t,r,nu(i)),s,e)}}function n6(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function n4(e,t,n){if(et(t))throw e;return n.errors.push(e),null}function n5(e,t,n,r,i,o){if(o instanceof Error)throw o;if(et(t)){let a=n5(e,t.ofType,n,r,i,o);if(null===a)throw Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==o?null:Z(t)?function(e,t,n,r,i,o){if(!tr(o))throw new m.__(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let a=t.ofType,s=!1,u=Array.from(o,(t,o)=>{let u=ns(i,o,void 0);try{let i;if(i=h(t)?t.then(t=>n5(e,a,n,r,u,t)):n5(e,a,n,r,u,t),h(i))return s=!0,i.then(void 0,t=>{let r=nz(t,n,nu(u));return n4(r,a,e)});return i}catch(t){return n4(nz(t,n,nu(u)),a,e)}});return s?Promise.all(u):u}(e,t,n,r,i,o):es(t)?function(e,t){let n=e.serialize(t);if(null==n)throw Error(`Expected \`${(0,v.X)(e)}.serialize(${(0,v.X)(t)})\` to return non-nullable value, returned: ${(0,v.X)(n)}`);return n}(t,o):ef(t)?function(e,t,n,r,i,o){var a;let s=(null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver)(o,e.contextValue,r,t);return h(s)?s.then(a=>n8(e,n3(a,e,t,n,r,o),n,r,i,o)):n8(e,n3(s,e,t,n,r,o),n,r,i,o)}(e,t,n,r,i,o):q(t)?n8(e,t,n,r,i,o):void(0,tn.k)(!1,"Cannot complete value of unexpected output type: "+(0,v.X)(t))}function n3(e,t,n,r,i,o){if(null==e)throw new m.__(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(q(e))throw new m.__("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new m.__(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,v.X)(o)}, received "${(0,v.X)(e)}".`);let a=t.schema.getType(e);if(null==a)throw new m.__(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!q(a))throw new m.__(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new m.__(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function n8(e,t,n,r,i,o){let a=nJ(e,t,n);if(t.isTypeOf){let s=t.isTypeOf(o,e.contextValue,r);if(h(s))return s.then(r=>{if(!r)throw n9(t,o,n);return n1(e,t,o,i,a)});if(!s)throw n9(t,o,n)}return n1(e,t,o,i,a)}function n9(e,t,n){return new m.__(`Expected value of type "${e.name}" but got: ${(0,v.X)(t)}.`,{nodes:n})}let n7=function(e,t,n,r){if((0,w.y)(e)&&"string"==typeof e.__typename)return e.__typename;let i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r{for(let t=0;tt(ri(e)))}function rr(e){let t=ri(e);if(h(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function ri(e){let t;arguments.length<2||(0,d.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:n,source:r,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:u,typeResolver:c}=e,l=tT(n);if(l.length>0)return{errors:l};try{t=(0,y.Qc)(r)}catch(e){return{errors:[e]}}let f=nB(n,t);return f.length>0?{errors:f}:nW({schema:n,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:u,typeResolver:c})}var ro=n(62275),ra=n(91298),rs=n(43771),ru=n(39474),rc=n(73717);function rl(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function rf(e){arguments.length<2||(0,d.a)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await rp(e);return rl(t)?function(e,t){let n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(t,t=>nW({...e,rootValue:t})):t}async function rp(...e){let t=function(e){let t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:n,document:r,variableValues:i}=t;nZ(n,r,i);let o=n0(t);if(!("schema"in o))return{errors:o};try{let e=await rd(o);if(!rl(e))throw Error(`Subscription field must return Async Iterable. Received: ${(0,v.X)(e)}.`);return e}catch(e){if(e instanceof m.__)return{errors:[e]};throw e}}async function rd(e){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new m.__("Schema is not configured to execute subscription operation.",{nodes:r});let[s,u]=[...nm(t,n,i,a,r.selectionSet).entries()][0],c=rt(t,a,u[0]);if(!c){let e=u[0].name.value;throw new m.__(`The subscription field "${e}" is not defined.`,{nodes:u})}let l=ns(void 0,s,a.name),f=n6(e,c,u,a,l);try{var p;let t=nh(c,u[0],i),n=e.contextValue,r=null!==(p=c.subscribe)&&void 0!==p?p:e.subscribeFieldResolver,a=await r(o,t,n,f);if(a instanceof Error)throw a;return a}catch(e){throw nz(e,u,nu(l))}}function rh(e){return{Field(t){let n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getParentType();null!=i||(0,tn.k)(!1),e.reportError(new m.__(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getDirective();if(null!=i)e.reportError(new m.__(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||(0,tn.k)(!1),e.reportError(new m.__(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=ew(e.getParentInputType());if(H(n)){let r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new m.__(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=ew(e.getInputType());null!=i||(0,tn.k)(!1),e.reportError(new m.__(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function ry(e){return{Field(t){let n=ew(e.getType());n&&tg(n)&&e.reportError(new m.__(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var rv=n(91516);function rm(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}return` query IntrospectionQuery { __schema { ${o} queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name ${n} ${i} locations args${a("(includeDeprecated: true)")} { ...InputValue } } } } fragment FullType on __Type { kind name ${n} ${r} fields(includeDeprecated: true) { name ${n} args${a("(includeDeprecated: true)")} { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields${a("(includeDeprecated: true)")} { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name ${n} isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name ${n} type { ...TypeRef } defaultValue ${a("isDeprecated")} ${a("deprecationReason")} } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } } } } `}function rg(e,t){let n=null;for(let i of e.definitions)if(i.kind===x.h.OPERATION_DEFINITION){var r;if(null==t){if(n)return null;n=i}else if((null===(r=i.name)||void 0===r?void 0:r.value)===t)return i}return n}function rb(e,t){if("query"===t.operation){let n=e.getQueryType();if(!n)throw new m.__("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){let n=e.getMutationType();if(!n)throw new m.__("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){let n=e.getSubscriptionType();if(!n)throw new m.__("Schema is not configured for subscriptions.",{nodes:t});return n}throw new m.__("Can only have query, mutation and subscription operations.",{nodes:t})}function r_(e,t){let n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t},r=nH({schema:e,document:(0,y.Qc)(rm(n))});return!r.errors&&r.data||(0,tn.k)(!1),r.data}function rE(e,t){(0,w.y)(e)&&(0,w.y)(e.__schema)||(0,d.a)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,v.X)(e)}.`);let n=e.__schema,r=I(n.types,e=>e.name,e=>(function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case l.SCALAR:return new eO({name:e.name,description:e.description,specifiedByURL:e.specifiedByURL});case l.OBJECT:return new eS({name:e.name,description:e.description,interfaces:()=>h(e),fields:()=>m(e)});case l.INTERFACE:return new ej({name:e.name,description:e.description,interfaces:()=>h(e),fields:()=>m(e)});case l.UNION:return function(e){if(!e.possibleTypes){let t=(0,v.X)(e);throw Error(`Introspection result missing possibleTypes: ${t}.`)}return new eC({name:e.name,description:e.description,types:()=>e.possibleTypes.map(f)})}(e);case l.ENUM:return function(e){if(!e.enumValues){let t=(0,v.X)(e);throw Error(`Introspection result missing enumValues: ${t}.`)}return new eP({name:e.name,description:e.description,values:I(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}(e);case l.INPUT_OBJECT:return function(e){if(!e.inputFields){let t=(0,v.X)(e);throw Error(`Introspection result missing inputFields: ${t}.`)}return new eV({name:e.name,description:e.description,fields:()=>b(e.inputFields)})}(e)}let t=(0,v.X)(e);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${t}.`)})(e));for(let e of[...eZ,...tm])r[e.name]&&(r[e.name]=e);let i=n.queryType?f(n.queryType):null,o=n.mutationType?f(n.mutationType):null,a=n.subscriptionType?f(n.subscriptionType):null,s=n.directives?n.directives.map(function(e){if(!e.args){let t=(0,v.X)(e);throw Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){let t=(0,v.X)(e);throw Error(`Introspection result missing directive locations: ${t}.`)}return new e4({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:b(e.args)})}):[];return new tE({description:n.description,query:i,mutation:o,subscription:a,types:Object.values(r),directives:s,assumeValid:null==t?void 0:t.assumeValid});function u(e){if(e.kind===l.LIST){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new ed(u(t))}if(e.kind===l.NON_NULL){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new eh(eg(u(t)))}return c(e)}function c(e){let t=e.name;if(!t)throw Error(`Unknown type reference: ${(0,v.X)(e)}.`);let n=r[t];if(!n)throw Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function f(e){return B(c(e))}function p(e){return X(c(e))}function h(e){if(null===e.interfaces&&e.kind===l.INTERFACE)return[];if(!e.interfaces){let t=(0,v.X)(e);throw Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(p)}function m(e){if(!e.fields)throw Error(`Introspection result missing fields: ${(0,v.X)(e)}.`);return I(e.fields,e=>e.name,g)}function g(e){let t=u(e.type);if(!eo(t)){let e=(0,v.X)(t);throw Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){let t=(0,v.X)(e);throw Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:b(e.args)}}function b(e){return I(e,e=>e.name,_)}function _(e){let t=u(e.type);if(!er(t)){let e=(0,v.X)(t);throw Error(`Introspection must provide input type for arguments, but received: ${e}.`)}let n=null!=e.defaultValue?nf((0,y.H2)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function rw(e,t,n){t_(e),null!=t&&t.kind===x.h.DOCUMENT||(0,d.a)(!1,"Must provide valid Document AST."),(null==n?void 0:n.assumeValid)!==!0&&(null==n?void 0:n.assumeValidSDL)!==!0&&function(e,t){let n=nG(e,t);if(0!==n.length)throw Error(n.map(e=>e.message).join("\n\n"))}(t,e);let r=e.toConfig(),i=rT(r,t,n);return r===i?e:new tE(i)}function rT(e,t,n){var r,i,o,a,s;let u;let c=[],l=Object.create(null),f=[],p=[];for(let e of t.definitions)if(e.kind===x.h.SCHEMA_DEFINITION)u=e;else if(e.kind===x.h.SCHEMA_EXTENSION)p.push(e);else if((0,tM.zT)(e))c.push(e);else if((0,tM.D$)(e)){let t=e.name.value,n=l[t];l[t]=n?n.concat([e]):[e]}else e.kind===x.h.DIRECTIVE_DEFINITION&&f.push(e);if(0===Object.keys(l).length&&0===c.length&&0===f.length&&0===p.length&&null==u)return e;let d=Object.create(null);for(let t of e.types)d[t.name]=tg(t)||e0(t)?t:Q(t)?function(e){var t,n;let r=e.toConfig(),i=null!==(t=l[r.name])&&void 0!==t?t:[],o=r.specifiedByURL;for(let e of i)o=null!==(n=rS(e))&&void 0!==n?n:o;return new eO({...r,specifiedByURL:o,extensionASTNodes:r.extensionASTNodes.concat(i)})}(t):q(t)?function(e){var t;let n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new eS({...n,interfaces:()=>[...e.getInterfaces().map(m),...k(r)],fields:()=>({...O(n.fields,g),...T(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):G(t)?function(e){var t;let n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new ej({...n,interfaces:()=>[...e.getInterfaces().map(m),...k(r)],fields:()=>({...O(n.fields,g),...T(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):Y(t)?function(e){var t;let n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new eC({...n,types:()=>[...e.getTypes().map(m),...D(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):J(t)?function(e){var t;let n=e.toConfig(),r=null!==(t=l[e.name])&&void 0!==t?t:[];return new eP({...n,values:{...n.values,...N(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):H(t)?function(e){var t;let n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new eV({...n,fields:()=>({...O(n.fields,e=>({...e,type:y(e.type)})),...S(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(t):void(0,tn.k)(!1,"Unexpected type: "+(0,v.X)(t));for(let e of c){let t=e.name.value;d[t]=null!==(s=rI[t])&&void 0!==s?s:function(e){var t,n,r,i,o,a,s;let u=e.name.value,c=null!==(t=l[u])&&void 0!==t?t:[];switch(e.kind){case x.h.OBJECT_TYPE_DEFINITION:{let t=[e,...c];return new eS({name:u,description:null===(n=e.description)||void 0===n?void 0:n.value,interfaces:()=>k(t),fields:()=>T(t),astNode:e,extensionASTNodes:c})}case x.h.INTERFACE_TYPE_DEFINITION:{let t=[e,...c];return new ej({name:u,description:null===(r=e.description)||void 0===r?void 0:r.value,interfaces:()=>k(t),fields:()=>T(t),astNode:e,extensionASTNodes:c})}case x.h.ENUM_TYPE_DEFINITION:{let t=[e,...c];return new eP({name:u,description:null===(i=e.description)||void 0===i?void 0:i.value,values:N(t),astNode:e,extensionASTNodes:c})}case x.h.UNION_TYPE_DEFINITION:{let t=[e,...c];return new eC({name:u,description:null===(o=e.description)||void 0===o?void 0:o.value,types:()=>D(t),astNode:e,extensionASTNodes:c})}case x.h.SCALAR_TYPE_DEFINITION:return new eO({name:u,description:null===(a=e.description)||void 0===a?void 0:a.value,specifiedByURL:rS(e),astNode:e,extensionASTNodes:c});case x.h.INPUT_OBJECT_TYPE_DEFINITION:{let t=[e,...c];return new eV({name:u,description:null===(s=e.description)||void 0===s?void 0:s.value,fields:()=>S(t),astNode:e,extensionASTNodes:c})}}}(e)}let h={query:e.query&&m(e.query),mutation:e.mutation&&m(e.mutation),subscription:e.subscription&&m(e.subscription),...u&&_([u]),..._(p)};return{description:null===(r=u)||void 0===r?void 0:null===(i=r.description)||void 0===i?void 0:i.value,...h,types:Object.values(d),directives:[...e.directives.map(function(e){let t=e.toConfig();return new e4({...t,args:O(t.args,b)})}),...f.map(function(e){var t;return new e4({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:I(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!==(o=u)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(p),assumeValid:null!==(a=null==n?void 0:n.assumeValid)&&void 0!==a&&a};function y(e){return Z(e)?new ed(y(e.ofType)):et(e)?new eh(y(e.ofType)):m(e)}function m(e){return d[e.name]}function g(e){return{...e,type:y(e.type),args:e.args&&O(e.args,b)}}function b(e){return{...e,type:y(e.type)}}function _(e){let t={};for(let r of e){var n;for(let e of null!==(n=r.operationTypes)&&void 0!==n?n:[])t[e.operation]=E(e.type)}return t}function E(e){var t;let n=e.name.value,r=null!==(t=rI[n])&&void 0!==t?t:d[n];if(void 0===r)throw Error(`Unknown type: "${n}".`);return r}function w(e){return e.kind===x.h.LIST_TYPE?new ed(w(e.type)):e.kind===x.h.NON_NULL_TYPE?new eh(w(e.type)):E(e)}function T(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!==(n=i.fields)&&void 0!==n?n:[])t[e.name.value]={type:w(e.type),description:null===(r=e.description)||void 0===r?void 0:r.value,args:I(e.arguments),deprecationReason:rO(e),astNode:e}}return t}function I(e){let t=Object.create(null);for(let r of null!=e?e:[]){var n;let e=w(r.type);t[r.name.value]={type:e,description:null===(n=r.description)||void 0===n?void 0:n.value,defaultValue:nf(r.defaultValue,e),deprecationReason:rO(r),astNode:r}}return t}function S(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!==(n=i.fields)&&void 0!==n?n:[]){let n=w(e.type);t[e.name.value]={type:n,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:nf(e.defaultValue,n),deprecationReason:rO(e),astNode:e}}}return t}function N(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!==(n=i.values)&&void 0!==n?n:[])t[e.name.value]={description:null===(r=e.description)||void 0===r?void 0:r.value,deprecationReason:rO(e),astNode:e}}return t}function k(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(E))&&void 0!==t?t:[]})}function D(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(E))&&void 0!==t?t:[]})}}let rI=T([...eZ,...tm],e=>e.name);function rO(e){let t=ny(e9,e);return null==t?void 0:t.reason}function rS(e){let t=ny(e7,e);return null==t?void 0:t.url}function rN(e,t){null!=e&&e.kind===x.h.DOCUMENT||(0,d.a)(!1,"Must provide valid Document AST."),(null==t?void 0:t.assumeValid)!==!0&&(null==t?void 0:t.assumeValidSDL)!==!0&&function(e){let t=nG(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}(e);let n=rT({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(let e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}let r=[...n.directives,...te.filter(e=>n.directives.every(t=>t.name!==e.name))];return new tE({...n,directives:r})}function rk(e,t){return rN((0,y.Qc)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function rD(e){var t,n,r;let i=e.toConfig(),o=I(rA(i.types),e=>e.name,function(e){if(Q(e)||tg(e))return e;if(q(e)){let t=e.toConfig();return new eS({...t,interfaces:()=>l(t.interfaces),fields:()=>c(t.fields)})}if(G(e)){let t=e.toConfig();return new ej({...t,interfaces:()=>l(t.interfaces),fields:()=>c(t.fields)})}if(Y(e)){let t=e.toConfig();return new eC({...t,types:()=>l(t.types)})}if(J(e)){let t=e.toConfig();return new eP({...t,values:rR(t.values,e=>e)})}if(H(e)){let t=e.toConfig();return new eV({...t,fields:()=>rR(t.fields,e=>({...e,type:a(e.type)}))})}(0,tn.k)(!1,"Unexpected type: "+(0,v.X)(e))});return new tE({...i,types:Object.values(o),directives:rA(i.directives).map(function(e){let t=e.toConfig();return new e4({...t,locations:rF(t.locations,e=>e),args:u(t.args)})}),query:(t=i.query)&&s(t),mutation:(n=i.mutation)&&s(n),subscription:(r=i.subscription)&&s(r)});function a(e){return Z(e)?new ed(a(e.ofType)):et(e)?new eh(a(e.ofType)):s(e)}function s(e){return o[e.name]}function u(e){return rR(e,e=>({...e,type:a(e.type)}))}function c(e){return rR(e,e=>({...e,type:a(e.type),args:e.args&&u(e.args)}))}function l(e){return rA(e).map(s)}}function rR(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(S))n[r]=t(e[r]);return n}function rA(e){return rF(e,e=>e.name)}function rF(e,t){return e.slice().sort((e,n)=>S(t(e),t(n)))}var rx=n(66816);function rj(e){return rP(e,e=>!tt(e),rL)}function rC(e){return rP(e,tt,tg)}function rL(e){return!e0(e)&&!tg(e)}function rP(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[function(e){if(null==e.description&&function(e){let t=e.getQueryType();if(t&&"Query"!==t.name)return!1;let n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;let r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),rG(e)+`schema { ${t.join("\n")} }`}(e),...r.map(e=>rG(e)+"directive @"+e.name+rU(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")),...i.map(e=>rM(e))].filter(Boolean).join("\n\n")}function rM(e){return Q(e)?rG(e)+`scalar ${e.name}`+function(e){if(null==e.specifiedByURL)return"";let t=(0,j.S)({kind:x.h.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}(e):q(e)?rG(e)+`type ${e.name}`+rV(e)+r$(e):G(e)?rG(e)+`interface ${e.name}`+rV(e)+r$(e):Y(e)?function(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return rG(e)+"union "+e.name+n}(e):J(e)?function(e){let t=e.getValues().map((e,t)=>rG(e," ",!t)+" "+e.name+rB(e.deprecationReason));return rG(e)+`enum ${e.name}`+rQ(t)}(e):H(e)?function(e){let t=Object.values(e.getFields()).map((e,t)=>rG(e," ",!t)+" "+rq(e));return rG(e)+`input ${e.name}`+rQ(t)}(e):void(0,tn.k)(!1,"Unexpected type: "+(0,v.X)(e))}function rV(e){let t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function r$(e){return rQ(Object.values(e.getFields()).map((e,t)=>rG(e," ",!t)+" "+e.name+rU(e.args," ")+": "+String(e.type)+rB(e.deprecationReason)))}function rQ(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function rU(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(rq).join(", ")+")":"(\n"+e.map((e,n)=>rG(e," "+t,!n)+" "+t+rq(e)).join("\n")+"\n"+t+")"}function rq(e){let t=ti(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,j.S)(t)}`),n+rB(e.deprecationReason)}function rB(e){if(null==e)return"";if(e!==e8){let t=(0,j.S)({kind:x.h.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function rG(e,t="",n=!0){let{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+(0,j.S)({kind:x.h.STRING,value:r,block:(0,rx.MZ)(r)}).replace(/\n/g,"\n"+t)+"\n"}function rX(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:x.h.DOCUMENT,definitions:t}}function rY(e){let t=[],n=Object.create(null);for(let r of e.definitions)switch(r.kind){case x.h.OPERATION_DEFINITION:t.push(r);break;case x.h.FRAGMENT_DEFINITION:n[r.name.value]=rz(r.selectionSet)}let r=Object.create(null);for(let i of t){let t=new Set;for(let e of rz(i.selectionSet))!function e(t,n,r){if(!t.has(r)){t.add(r);let i=n[r];if(void 0!==i)for(let r of i)e(t,n,r)}}(t,n,e);r[i.name?i.name.value:""]={kind:x.h.DOCUMENT,definitions:e.definitions.filter(e=>e===i||e.kind===x.h.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function rz(e){let t=[];return(0,tx.Vn)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function rJ(e){let t=(0,ro.T)(e)?e:new ro.H(e),n=t.body,r=new ru.h(t),i="",o=!1;for(;r.advance().kind!==rc.T.EOF;){let e=r.token,t=e.kind,a=!(0,ru.u)(e.kind);o&&(a||e.kind===rc.T.SPREAD)&&(i+=" ");let s=n.slice(e.start,e.end);t===rc.T.BLOCK_STRING?i+=(0,rx.LZ)(e.value,{minimize:!0}):i+=s,o=a}return i}function rW(e){let t=rH(e);if(t)throw t;return e}function rH(e){if("string"==typeof e||(0,d.a)(!1,"Expected name to be a string."),e.startsWith("__"))return new m.__(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{P(e)}catch(e){return e}}function rK(e,t){return r0(e,t).filter(e=>e.type in f)}function rZ(e,t){return r0(e,t).filter(e=>e.type in p)}function r0(e,t){return[...function(e,t){let n=[],r=r3(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let e of r.removed)n.push({type:f.TYPE_REMOVED,description:e0(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(let[e,t]of r.persisted)J(e)&&J(t)?n.push(...function(e,t){let n=[],r=r3(e.getValues(),t.getValues());for(let t of r.added)n.push({type:p.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(let t of r.removed)n.push({type:f.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}(e,t)):Y(e)&&Y(t)?n.push(...function(e,t){let n=[],r=r3(e.getTypes(),t.getTypes());for(let t of r.added)n.push({type:p.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(let t of r.removed)n.push({type:f.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}(e,t)):H(e)&&H(t)?n.push(...function(e,t){let n=[],r=r3(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.added)eQ(t)?n.push({type:f.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:p.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(let t of r.removed)n.push({type:f.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)r6(t.type,i.type)||n.push({type:f.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t)):q(e)&&q(t)?n.push(...r2(e,t),...r1(e,t)):G(e)&&G(t)?n.push(...r2(e,t),...r1(e,t)):e.constructor!==t.constructor&&n.push({type:f.TYPE_CHANGED_KIND,description:`${e.name} changed from ${r4(e)} to ${r4(t)}.`});return n}(e,t),...function(e,t){let n=[],r=r3(e.getDirectives(),t.getDirectives());for(let e of r.removed)n.push({type:f.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(let[e,t]of r.persisted){let r=r3(e.args,t.args);for(let t of r.added)ex(t)&&n.push({type:f.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(let t of r.removed)n.push({type:f.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});for(let r of(e.isRepeatable&&!t.isRepeatable&&n.push({type:f.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`}),e.locations))t.locations.includes(r)||n.push({type:f.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}(e,t)]}function r1(e,t){let n=[],r=r3(e.getInterfaces(),t.getInterfaces());for(let t of r.added)n.push({type:p.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(let t of r.removed)n.push({type:f.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function r2(e,t){let n=[],r=r3(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.removed)n.push({type:f.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)n.push(...function(e,t,n){let r=[],i=r3(t.args,n.args);for(let n of i.removed)r.push({type:f.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(let[n,o]of i.persisted)if(r6(n.type,o.type)){if(void 0!==n.defaultValue){if(void 0===o.defaultValue)r.push({type:p.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{let i=r5(n.defaultValue,n.type),a=r5(o.defaultValue,o.type);i!==a&&r.push({type:p.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}}else r.push({type:f.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(let n of i.added)ex(n)?r.push({type:f.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:p.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}(e,t,i)),!function e(t,n){return Z(t)?Z(n)&&e(t.ofType,n.ofType)||et(n)&&e(t,n.ofType):et(t)?et(n)&&e(t.ofType,n.ofType):e_(n)&&t.name===n.name||et(n)&&e(t,n.ofType)}(t.type,i.type)&&n.push({type:f.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}function r6(e,t){return Z(e)?Z(t)&&r6(e.ofType,t.ofType):et(e)?et(t)&&r6(e.ofType,t.ofType)||!et(t)&&r6(e.ofType,t):e_(t)&&e.name===t.name}function r4(e){return Q(e)?"a Scalar type":q(e)?"an Object type":G(e)?"an Interface type":Y(e)?"a Union type":J(e)?"an Enum type":H(e)?"an Input type":void(0,tn.k)(!1,"Unexpected type: "+(0,v.X)(e))}function r5(e,t){let n=ti(e,t);return null!=n||(0,tn.k)(!1),(0,j.S)(t0(n))}function r3(e,t){let n=[],r=[],i=[],o=T(e,({name:e})=>e),a=T(t,({name:e})=>e);for(let t of e){let e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(let e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}(u=f||(f={})).TYPE_REMOVED="TYPE_REMOVED",u.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",u.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",u.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",u.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",u.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",u.FIELD_REMOVED="FIELD_REMOVED",u.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",u.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",u.ARG_REMOVED="ARG_REMOVED",u.ARG_CHANGED_KIND="ARG_CHANGED_KIND",u.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",u.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",u.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",u.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",u.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED",(c=p||(p={})).VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",c.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",c.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",c.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",c.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",c.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"},64497:function(e,t,n){"use strict";n.d(t,{D$:function(){return p},G4:function(){return c},Ir:function(){return i},Of:function(){return function e(t){return s(t)&&(t.kind===r.h.LIST?t.values.some(e):t.kind===r.h.OBJECT?t.fields.some(t=>e(t.value)):t.kind!==r.h.VARIABLE)}},VB:function(){return u},Wk:function(){return o},aU:function(){return f},nr:function(){return s},pO:function(){return a},zT:function(){return l}});var r=n(81404);function i(e){return o(e)||c(e)||f(e)}function o(e){return e.kind===r.h.OPERATION_DEFINITION||e.kind===r.h.FRAGMENT_DEFINITION}function a(e){return e.kind===r.h.FIELD||e.kind===r.h.FRAGMENT_SPREAD||e.kind===r.h.INLINE_FRAGMENT}function s(e){return e.kind===r.h.VARIABLE||e.kind===r.h.INT||e.kind===r.h.FLOAT||e.kind===r.h.STRING||e.kind===r.h.BOOLEAN||e.kind===r.h.NULL||e.kind===r.h.ENUM||e.kind===r.h.LIST||e.kind===r.h.OBJECT}function u(e){return e.kind===r.h.NAMED_TYPE||e.kind===r.h.LIST_TYPE||e.kind===r.h.NON_NULL_TYPE}function c(e){return e.kind===r.h.SCHEMA_DEFINITION||l(e)||e.kind===r.h.DIRECTIVE_DEFINITION}function l(e){return e.kind===r.h.SCALAR_TYPE_DEFINITION||e.kind===r.h.OBJECT_TYPE_DEFINITION||e.kind===r.h.INTERFACE_TYPE_DEFINITION||e.kind===r.h.UNION_TYPE_DEFINITION||e.kind===r.h.ENUM_TYPE_DEFINITION||e.kind===r.h.INPUT_OBJECT_TYPE_DEFINITION}function f(e){return e.kind===r.h.SCHEMA_EXTENSION||p(e)}function p(e){return e.kind===r.h.SCALAR_TYPE_EXTENSION||e.kind===r.h.OBJECT_TYPE_EXTENSION||e.kind===r.h.INTERFACE_TYPE_EXTENSION||e.kind===r.h.UNION_TYPE_EXTENSION||e.kind===r.h.ENUM_TYPE_EXTENSION||e.kind===r.h.INPUT_OBJECT_TYPE_EXTENSION}},56695:function(e,t,n){"use strict";n.d(t,{S:function(){return u}});var r=n(66816);let i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}let a=["\\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"];var s=n(53280);function u(e){return(0,s.Vn)(e,c)}let c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>l(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=p("(",l(e.variableDefinitions,", "),")"),n=l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+p(" = ",n)+p(" ",l(r," "))},SelectionSet:{leave:({selections:e})=>f(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=p("",e,": ")+t,a=o+p("(",l(n,", "),")");return a.length>80&&(a=o+p("(\n",d(l(n,"\n")),"\n)")),l([a,l(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+p(" ",l(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>l(["...",p("on ",e),l(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${p("(",l(n,", "),")")} on ${t} ${p("",l(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.LZ)(e):`"${e.replace(i,o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+l(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+l(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+p("(",l(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>p("",e,"\n")+l(["schema",l(t," "),f(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>p("",e,"\n")+l(["scalar",t,l(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>p("",e,"\n")+l(["type",t,p("implements ",l(n," & ")),l(r," "),f(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>p("",e,"\n")+t+(h(n)?p("(\n",d(l(n,"\n")),"\n)"):p("(",l(n,", "),")"))+": "+r+p(" ",l(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>p("",e,"\n")+l([t+": "+n,p("= ",r),l(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>p("",e,"\n")+l(["interface",t,p("implements ",l(n," & ")),l(r," "),f(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>p("",e,"\n")+l(["union",t,l(n," "),p("= ",l(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>p("",e,"\n")+l(["enum",t,l(n," "),f(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>p("",e,"\n")+l([t,l(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>p("",e,"\n")+l(["input",t,l(n," "),f(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>p("",e,"\n")+"directive @"+t+(h(n)?p("(\n",d(l(n,"\n")),"\n)"):p("(",l(n,", "),")"))+(r?" repeatable":"")+" on "+l(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>l(["extend schema",l(e," "),f(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>l(["extend scalar",e,l(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>l(["extend type",e,p("implements ",l(t," & ")),l(n," "),f(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>l(["extend interface",e,p("implements ",l(t," & ")),l(n," "),f(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>l(["extend union",e,l(t," "),p("= ",l(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>l(["extend enum",e,l(t," "),f(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>l(["extend input",e,l(t," "),f(n)]," ")}};function l(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function f(e){return p("{\n",d(l(e,"\n")),"\n}")}function p(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function d(e){return p(" ",e.replace(/\n/g,"\n "))}function h(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},53280:function(e,t,n){"use strict";n.d(t,{$_:function(){return s},CK:function(){return f},Eu:function(){return l},Vn:function(){return u},j1:function(){return c}});var r=n(95559),i=n(98758),o=n(99581),a=n(81404);let s=Object.freeze({});function u(e,t,n=o.h8){let u,c,f;let p=new Map;for(let e of Object.values(a.h))p.set(e,l(t,e));let d=Array.isArray(e),h=[e],y=-1,v=[],m=e,g=[],b=[];do{var _,E,w;let e;let a=++y===h.length,l=a&&0!==v.length;if(a){if(c=0===b.length?void 0:g[g.length-1],m=f,f=b.pop(),l){if(d){m=m.slice();let e=0;for(let[t,n]of v){let r=t-e;null===n?(m.splice(r,1),e++):m[r]=n}}else for(let[e,t]of(m=Object.defineProperties({},Object.getOwnPropertyDescriptors(m)),v))m[e]=t}y=u.index,h=u.keys,v=u.edits,d=u.inArray,u=u.prev}else if(f){if(null==(m=f[c=d?y:h[y]]))continue;g.push(c)}if(!Array.isArray(m)){(0,o.UG)(m)||(0,r.a)(!1,`Invalid AST Node: ${(0,i.X)(m)}.`);let n=a?null===(_=p.get(m.kind))||void 0===_?void 0:_.leave:null===(E=p.get(m.kind))||void 0===E?void 0:E.enter;if((e=null==n?void 0:n.call(t,m,c,f,g,b))===s)break;if(!1===e){if(!a){g.pop();continue}}else if(void 0!==e&&(v.push([c,e]),!a)){if((0,o.UG)(e))m=e;else{g.pop();continue}}}void 0===e&&l&&v.push([c,m]),a?g.pop():(u={inArray:d,index:y,keys:h,edits:v,prev:u},h=(d=Array.isArray(m))?m:null!==(w=n[m.kind])&&void 0!==w?w:[],y=-1,v=[],f&&b.push(f),f=m)}while(void 0!==u);return 0!==v.length?v[v.length-1][1]:e}function c(e){let t=Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(a.h)){let i=!1,o=Array(e.length).fill(void 0),a=Array(e.length).fill(void 0);for(let t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);n1,i=!1,o=arguments[1],a=o;return new n(function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[l]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var i=p(t,l);if(i){var o=i.call(t);if(Object(o)!==o)throw TypeError(o+" is not an object");return o instanceof w&&o.constructor===n?o:new n(function(e){return o.subscribe(e)})}if(s("iterator")&&(i=p(t,c)))return new n(function(e){y(function(){if(!e.closed){for(var n,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,void 0)}}(e))){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(n=o()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){y(function(){if(!e.closed){for(var n=0;n