!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"substack@538433c"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="20078acf-8ac9-4392-b33a-325a6abc62b0",e._sentryDebugIdIdentifier="sentry-dbid-20078acf-8ac9-4392-b33a-325a6abc62b0")}catch(e){}}(),(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["96869"],{87035:function(e,t,r){"use strict";r.d(t,{C6:()=>i,Cl:()=>o});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rs});var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,a=new Map;function s(e,t){try{return function e(t,r){if(t===r)return!0;var n=i.call(t);if(n!==i.call(r))return!1;switch(n){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":if(u(t,r))return!0;var a=Object.keys(t),s=Object.keys(r),c=a.length;if(c!==s.length)break;for(var l=0;les});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var n,i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;rthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),w=new b,O=[],k=[];function S(e,t){if(!e)throw Error(t||"assertion failure")}function T(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var x=function(){function e(t,r){this.fn=t,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(S(!this.recomputing,"already recomputing"),!(!function(e){var t=w.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),I(e)?R(t,e):A(t,e),t}(this)&&C(this))){var e,t,r;return I(this)?(e=this,t=P(e),w.withValue(e,_,[e]),function(e){if("function"==typeof e.subscribe)try{q(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&((r=e).dirty=!1,I(r)||D(r)),t.forEach(C),T(e.value)):T(this.value)}},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,N(this),q(this))},e.prototype.dispose=function(){var e=this;P(this).forEach(C),q(this),this.parents.forEach(function(t){t.setDirty(),Q(t,e)})},e.count=0,e}();function _(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function I(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function N(e){e.parents.forEach(function(t){return R(t,e)})}function D(e){e.parents.forEach(function(t){return A(t,e)})}function R(e,t){if(S(e.childValues.has(t)),S(I(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=k.pop()||new Set;e.dirtyChildren.add(t),N(e)}function A(e,t){S(e.childValues.has(t)),S(!I(t));var r,n,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(r=t.value,(n=i.length)>0&&n===r.length&&i[n-1]===r[n-1]||e.setDirty()),F(e,t),I(e)||D(e)}function F(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(k.length<100&&k.push(r),e.dirtyChildren=null))}function C(e){return 0===e.parents.size&&"function"==typeof e.reportOrphan&&!0===e.reportOrphan()}function P(e){var t=O;return e.childValues.size>0&&(t=[],e.childValues.forEach(function(r,n){Q(e,n),t.push(n)})),S(null===e.dirtyChildren),t}function Q(e,t){t.parents.delete(e),e.childValues.delete(t),F(e,t)}function q(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var V=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},G.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach(function(e){("UNION"===e.kind||"INTERFACE"===e.kind)&&(t[e.name]=e.possibleTypes.map(function(e){return e.name}))}),t};var J=Object.prototype.hasOwnProperty,H=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=B(function(e){return t.data[e]},{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){J.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach(function(r){t.set(r,e[r])}),Object.keys(this.data).forEach(function(r){J.call(e,r)||t.delete(r)})):Object.keys(this.data).forEach(function(e){t.delete(e)})},e}(),W=function(){function e(e){var t=this,r=void 0===e?{}:e,n=r.cacheKeyRoot,i=void 0===n?new V(s.et):n,o=r.freezeResults,a=this.executeStoreQuery,u=this.executeSelectionSet,c=this.executeSubSelectedArray;this.freezeResults=void 0!==o&&o,this.executeStoreQuery=B(function(e){return a.call(t,e)},{makeCacheKey:function(e){var t=e.query,r=e.rootValue,n=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(n.store instanceof H)return i.lookup(n.store,t,a,JSON.stringify(o),r.id)}}),this.executeSelectionSet=B(function(e){return u.call(t,e)},{makeCacheKey:function(e){var t=e.selectionSet,r=e.rootValue,n=e.execContext;if(n.contextValue.store instanceof H)return i.lookup(n.contextValue.store,t,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}),this.executeSubSelectedArray=B(function(e){return c.call(t,e)},{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.execContext;if(n.contextValue.store instanceof H)return i.lookup(n.contextValue.store,t,r,JSON.stringify(n.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(a(a({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.variables,i=e.previousResult,o=e.returnPartialData,a=e.rootId,u=e.fragmentMatcherFunction,c=e.config,l=(0,s.AT)(r);n=(0,s.kp)({},(0,s.wY)(l),n);var h={store:t,dataIdFromObject:c&&c.dataIdFromObject,cacheRedirects:c&&c.cacheRedirects||{}},p=this.executeStoreQuery({query:r,rootValue:{type:"id",id:void 0===a?"ROOT_QUERY":a,generated:!0,typename:"Query"},contextValue:h,variableValues:n,fragmentMatcher:u}),d=p.missing&&p.missing.length>0;return d&&!(void 0===o||o)&&p.missing.forEach(function(e){if(!e.tolerable)throw new U.zU(8)}),i&&(0,f.L)(i,p.result)&&(p.result=i),{result:p.result,complete:!d}},e.prototype.executeStoreQuery=function(e){var t=e.query,r=e.rootValue,n=e.contextValue,i=e.variableValues,o=e.fragmentMatcher,a=(0,s.Vn)(t),u=(0,s.zK)(t),c=(0,s.JG)(u);return this.executeSelectionSet({selectionSet:a.selectionSet,rootValue:r,execContext:{query:t,fragmentMap:c,contextValue:n,variableValues:i,fragmentMatcher:void 0===o?$:o}})},e.prototype.executeSelectionSet=function(e){var t=this,r=e.selectionSet,n=e.rootValue,i=e.execContext,o=i.fragmentMap,u=i.contextValue,c=i.variableValues,l={result:null},f=[],h=u.store.get(n.id),p=h&&h.__typename||"ROOT_QUERY"===n.id&&"Query"||void 0;function d(e){var t;return e.missing&&(l.missing=l.missing||[],(t=l.missing).push.apply(t,e.missing)),e.result}return r.selections.forEach(function(e){var r;if((0,s.MS)(e,c))if((0,s.dt)(e)){var l=d(t.executeField(h,p,e,i));void 0!==l&&f.push(((r={})[(0,s.ue)(e)]=l,r))}else{var v=void 0;if((0,s.kd)(e))v=e;else if(!(v=o[e.name.value]))throw new U.zU(9);var y=v.typeCondition&&v.typeCondition.name.value,m=!y||i.fragmentMatcher(n,y,u);if(m){var b=t.executeSelectionSet({selectionSet:v.selectionSet,rootValue:n,execContext:i});"heuristic"===m&&b.missing&&(b=a(a({},b),{missing:b.missing.map(function(e){return a(a({},e),{tolerable:!0})})})),f.push(d(b))}}}),l.result=(0,s.IM)(f),this.freezeResults,l},e.prototype.executeField=function(e,t,r,n){var i=n.variableValues,o=n.contextValue,a=function(e,t,r,n,i,o){o.resultKey;var a=o.directives,u=r;(n||a)&&(u=(0,s.o5)(u,n,a));var c=void 0;if(e&&void 0===(c=e[u])&&i.cacheRedirects&&"string"==typeof t){var l=i.cacheRedirects[t];if(l){var f=l[r];f&&(c=f(e,n,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&(0,s.Uw)({id:t,typename:e.__typename})}}))}}return void 0===c?{result:c,missing:[{object:e,fieldName:u,tolerable:!1}]}:((0,s.Wi)(c)&&(c=c.json),{result:c})}(e,t,r.name.value,(0,s.MB)(r,i),o,{resultKey:(0,s.ue)(r),directives:(0,s.i2)(r,i)});return Array.isArray(a.result)?this.combineExecResults(a,this.executeSubSelectedArray({field:r,array:a.result,execContext:n})):r.selectionSet?null==a.result?a:this.combineExecResults(a,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:a.result,execContext:n})):(X(r,a.result),this.freezeResults,a)},e.prototype.combineExecResults=function(){for(var e,t=[],r=0;r=0)return!0;else r[e].push(t);else r[e]=[t];return!1}var ei={fragmentMatcher:new z,dataIdFromObject:function(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1},eo=Object.prototype.hasOwnProperty,ea=function(e){function t(t,r,n){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=r,i.transaction=n,i}return o(t,e),t.prototype.toObject=function(){return a(a({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return eo.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(Z),es=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new V(s.et),r.silenceBroadcast=!1,r.config=a(a({},ei),t),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new H:new Z,r.optimisticData=r.data,r.storeWriter=new et,r.storeReader=new W({cacheKeyRoot:r.cacheKeyRoot,freezeResults:t.freezeResults});var n=r.maybeBroadcastWatch;return r.maybeBroadcastWatch=B(function(e){return n.call(r,e)},{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult&&r.data instanceof H)return r.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables))}}),r}return o(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:r,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:r,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new U.zU(1)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],r=0,n=this.optimisticData;n instanceof ea;)n.optimisticId===e?++r:t.push(n),n=n.parent;if(r>0){for(this.optimisticData=n;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var r=this.data,n=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new ea(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=n,this.data=r}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,s.XY)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach(function(t){return e.maybeBroadcastWatch(t)})},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(l)},59525:function(e,t,r){"use strict";r.d(t,{pT:()=>o,Ri:()=>ew,K4:()=>ec});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var n,i,o,a,s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function u(e,t){function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var c=function(){return(c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]-1})}function E(e){var t=e.name.value;return"skip"===t||"include"===t}function w(e){for(var t=[],r=1;r1){var n=[];t=L(t,n);for(var i=1;it.indexOf(e)&&(e=Array.isArray(e)?e.slice(0):c({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}Object.create({});var B=r(16064),U=r.n(B)(),K=function(e,t){return(K=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},Y=function(){return(Y=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(i))throw new p.zU(2)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?(0,z.n4)(n.query):""),o=n,a=Y({},i),Object.defineProperty(o,"setContext",{enumerable:!1,value:function(e){a="function"==typeof e?Y({},a,e(a)):Y({},a,e)}}),Object.defineProperty(o,"getContext",{enumerable:!1,value:function(){return Y({},a)}}),Object.defineProperty(o,"toKey",{enumerable:!1,value:function(){var e,t,r;return t=(e=o).query,r=e.variables,JSON.stringify([e.operationName,t,r])}}),o))||U.of()}var eo=r(99112);(n=o||(o={}))[n.loading=1]="loading",n[n.setVariables=2]="setVariables",n[n.fetchMore=3]="fetchMore",n[n.refetch=4]="refetch",n[n.poll=6]="poll",n[n.ready=7]="ready",n[n.error=8]="error";var ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype[eo.A]=function(){return this},t.prototype["@@observable"]=function(){return this},t}(U);function es(e){return Array.isArray(e)&&e.length>0}var eu=function(e){var t="";return es(e.graphQLErrors)&&e.graphQLErrors.forEach(function(e){var r=e?e.message:"Error message not found.";t+="GraphQL error: "+r+"\n"}),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,"")},ec=function(e){function t(r){var n=r.graphQLErrors,i=r.networkError,o=r.errorMessage,a=r.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=n||[],s.networkError=i||null,o?s.message=o:s.message=eu(s),s.extraInfo=a,s.__proto__=t.prototype,s}return u(t,e),t}(Error);(i=a||(a={}))[i.normal=1]="normal",i[i.refetch=2]="refetch",i[i.poll=3]="poll";var el=function(e){function t(t){var r=t.queryManager,n=t.options,i=t.shouldSubscribe,o=e.call(this,function(e){return o.onSubscribe(e)})||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=n,o.variables=n.variables||{},o.queryId=r.generateQueryId(),o.shouldSubscribe=void 0===i||i;var a=k(n.query);return o.queryName=a&&a.name&&a.name.value,o.queryManager=r,o}return u(t,e),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e,t=this.lastResult;return{data:!this.lastError&&t&&t.data||void 0,error:this.lastError,loading:!1,networkStatus:o.error}}var r=this.queryManager.getCurrentQueryResult(this),n=r.data,i=r.partial,a=this.queryManager.queryStore.get(this.queryId),s=this.options.fetchPolicy;if(a){var u,l=a.networkStatus;if(void 0===(u=this.options.errorPolicy)&&(u="none"),a&&(a.networkError||"none"===u&&es(a.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:l,error:new ec({graphQLErrors:a.graphQLErrors,networkError:a.networkError})};a.variables&&(this.options.variables=c(c({},this.options.variables),a.variables),this.variables=this.options.variables),e={data:n,loading:l<7,networkStatus:l},a.graphQLErrors&&"all"===this.options.errorPolicy&&(e.errors=a.graphQLErrors)}else{var f="network-only"===s||"no-cache"===s||i&&"cache-only"!==s;e={data:n,loading:f,networkStatus:f?o.loading:o.ready}}return i||this.updateLastResult(c(c({},e),{stale:!1})),c(c({},e),{partial:i})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&(0,d.L)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new p.zU(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),(0,d.L)(this.variables,e)||(this.variables=c(c({},this.variables),e)),(0,d.L)(this.options.variables,this.variables)||(this.options.variables=c(c({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,c(c({},this.options),{fetchPolicy:t}),a.refetch))},t.prototype.fetchMore=function(e){var t=this;(0,p.V1)(e.updateQuery,2);var r=c(c({},e.query?e:c(c(c({},this.options),e),{variables:c(c({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,a.normal,this.queryId).then(function(i){return t.updateQuery(function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:r.variables})}),t.queryManager.stopQuery(n),i},function(e){throw t.queryManager.stopQuery(n),e})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError)return void e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=c(c({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var r=e.fetchPolicy;return this.setVariables(this.options.variables,t!==r&&("cache-only"===t||"standby"===t||"network-only"===r),e.fetchResults)},t.prototype.setVariables=function(e,t,r){return(void 0===t&&(t=!1),void 0===r&&(r=!0),this.isTornDown=!1,e=e||this.variables,!t&&(0,d.L)(e,this.variables))?this.observers.size&&r?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size)?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.getQueryWithPreviousResult(this.queryId),n=r.previousResult,i=r.variables,o=r.document,a=P(function(){return e(n,{variables:i})});a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){ep(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:function e(t,r){switch(C.call(t)){case"[object Array]":if(r.has(t))return r.get(t);var n=t.slice(0);return r.set(t,n),n.forEach(function(t,i){n[i]=e(t,r)}),n;case"[object Object]":if(r.has(t))return r.get(t);var i=Object.create(Object.getPrototypeOf(t));return r.set(t,i),Object.keys(t).forEach(function(n){i[n]=e(t[n],r)}),i;default:return t}}(e,new Map),t},t.prototype.onSubscribe=function(e){var t=this;try{var r=e._subscription._observer;r&&!r.error&&(r.error=ef)}catch(e){}var n=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),n&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,r=this.queryId;this.shouldSubscribe&&t.addObservableQuery(r,this),this.options.pollInterval&&(ep(this),t.startPollingQuery(this.options,r));var n=function(t){e.updateLastResult(c(c({},e.lastResult),{errors:t.graphQLErrors,networkStatus:o.error,loading:!1})),eh(e.observers,"error",e.lastError=t)};t.observeQuery(r,this.options,{next:function(r){if(e.lastError||e.isDifferentFromLastResult(r)){var n=e.updateLastResult(r),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then(function(i){var a=e.variables;e.variables=e.options.variables=i,!r.loading&&n&&"cache-only"!==s&&t.transform(o).serverQuery&&!(0,d.L)(a,i)?e.refetch():eh(e.observers,"next",r)}):eh(e.observers,"next",r)}},error:n}).catch(n)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(ea);function ef(e){}function eh(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function ep(e){var t=e.options.fetchPolicy;(0,p.V1)("cache-first"!==t&&"cache-only"!==t,3)}var ed=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,r){this.store[e]={mutation:t,variables:r||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),ev=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t,r=this.store[e.queryId];(0,p.V1)(!r||r.document===e.document||(0,d.L)(r.document,e.document),19);var n=!1,i=null;e.storePreviousVariables&&r&&r.networkStatus!==o.loading&&!(0,d.L)(r.variables,e.variables)&&(n=!0,i=r.variables),t=n?o.setVariables:e.isPoll?o.poll:e.isRefetch?o.refetch:o.loading;var a=[];r&&r.graphQLErrors&&(a=r.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:a,networkStatus:t,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=o.fetchMore)},e.prototype.markQueryResult=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=es(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=o.ready,"string"==typeof r&&this.store[r]&&(this.store[r].networkStatus=o.ready))},e.prototype.markQueryError=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=o.error,"string"==typeof r&&this.markQueryResultClient(r,!0))},e.prototype.markQueryResultClient=function(e,t){var r=this.store&&this.store[e];r&&(r.networkError=null,r.previousVariables=null,t&&(r.networkStatus=o.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach(function(r){0>e.indexOf(r)?t.stopQuery(r):t.store[r].networkStatus=o.loading})},e}(),ey=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),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=V(t.resolvers,e)}):this.resolvers=V(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,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return l(this,void 0,void 0,function(){return f(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then(function(e){return c(c({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return g(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){var t;return this.resolvers?(O(e),(t=R([{test:function(e){return"client"===e.name.value},remove:!0}],e))&&(t=(0,h.YR)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return m(e)&&"__typename"===e.name.value}))return null}}})),t):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return c(c({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);(0,p.V1)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),l(this,void 0,void 0,function(){return f(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return c(c({},t),e.exportedVariables)})]:[2,c({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,h.YR)(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 h.sP}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===x(e).operation?e:(0,h.YR)(e,{OperationDefinition:{enter:function(e){return c(c({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,i,o){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),l(this,void 0,void 0,function(){var a,s,u,l,h,p,d,v;return f(this,function(f){return a=x(e),s=_(T(e)),l=(u=a.operation)?u.charAt(0).toUpperCase()+u.slice(1):"Query",h=this,p=h.cache,d=h.client,v={fragmentMap:s,context:c(c({},r),{cache:p,client:d}),variables:n,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r){return l(this,void 0,void 0,function(){var n,i,o,a,s,u=this;return f(this,function(c){return n=r.fragmentMap,i=r.context,o=r.variables,a=[t],s=function(e){return l(u,void 0,void 0,function(){var s,u;return f(this,function(c){var l,f;return(void 0===(l=o)&&(l={}),((f=e.directives)?f.filter(E).map(function(e){var t=e.arguments;e.name.value,(0,p.V1)(t&&1===t.length,14);var r=t[0];(0,p.V1)(r.name&&"if"===r.name.value,15);var n=r.value;return(0,p.V1)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:e,ifArgument:r}}):[]).every(function(e){var t=e.directive,r=e.ifArgument,n=!1;return"Variable"===r.value.kind?(n=l[r.value.name.value],(0,p.V1)(void 0!==n,13)):n=r.value.value,"skip"===t.name.value?!n:n}))?m(e)?[2,this.resolveField(e,t,r).then(function(t){var r;void 0!==t&&a.push(((r={})[y(e)]=t,r))})]:(b(e)?s=e:(s=n[e.name.value],(0,p.V1)(s,7)),s&&s.typeCondition&&(u=s.typeCondition.name.value,r.fragmentMatcher(t,u,i)))?[2,this.resolveSelectionSet(s.selectionSet,t,r).then(function(e){a.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(s)).then(function(){return M(a)})]})})},e.prototype.resolveField=function(e,t,r){return l(this,void 0,void 0,function(){var n,i,o,a,s,u,c,l,h,p=this;return f(this,function(f){return n=r.variables,a=(i=e.name.value)!==(o=y(e)),u=Promise.resolve(s=t[o]||t[i]),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(c=t.__typename||r.defaultOperationType,(l=this.resolvers&&this.resolvers[c])&&(h=l[a?i:o])&&(u=Promise.resolve(h(t,function(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return v(r,e.name,e.value,t)}),r}return null}(e,n),r.context,{field:e,fragmentMap:r.fragmentMap})))),[2,u.then(function(t){return(void 0===t&&(t=s),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&&(r.exportedVariables[e.value.value]=t)})}),e.selectionSet&&null!=t)?Array.isArray(t)?p.resolveSubSelectedArray(e,t,r):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,r):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0}))},e}();function em(e){var t=new Set,r=null;return new ea(function(n){return t.add(n),r=r||e.subscribe({next:function(e){t.forEach(function(t){return t.next&&t.next(e)})},error:function(e){t.forEach(function(t){return t.error&&t.error(e)})},complete:function(){t.forEach(function(e){return e.complete&&e.complete()})}}),function(){t.delete(n)&&!t.size&&r&&(r.unsubscribe(),r=null)}})}var eb=Object.prototype.hasOwnProperty,eg=function(){function e(e){var t=e.link,r=e.queryDeduplication,n=e.store,i=e.onBroadcast,o=e.ssrMode,a=e.clientAwareness,s=e.localState,u=e.assumeImmutableResults;this.mutationStore=new ed,this.queryStore=new ev,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(F?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=void 0!==r&&r,this.dataStore=n,this.onBroadcast=void 0===i?function(){}:i,this.clientAwareness=void 0===a?{}:a,this.localState=s||new ey({cache:n.getCache()}),this.ssrMode=void 0!==o&&o,this.assumeImmutableResults=!!u}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.fetchQueryRejectFns.forEach(function(e){e(new p.zU(8))})},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,n=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,u=void 0!==s&&s,h=e.update,d=e.errorPolicy,v=void 0===d?"none":d,y=e.fetchPolicy,m=e.context,b=void 0===m?{}:m;return l(this,void 0,void 0,function(){var e,o,s,l=this;return f(this,function(f){switch(f.label){case 0:if((0,p.V1)(t,9),(0,p.V1)(!y||"no-cache"===y,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,function(){return{document:t}}),r=this.getVariables(t,r),!this.transform(t).hasClientExports)return[3,2];return[4,this.localState.addExportedVariables(t,r,b)];case 1:r=f.sent(),f.label=2;case 2:return o=function(){var e={};return i&&l.queries.forEach(function(t,r){var n=t.observableQuery;if(n){var o=n.queryName;o&&eb.call(i,o)&&(e[r]={updater:i[o],query:l.queryStore.get(r)})}}),e},this.mutationStore.initMutation(e,t,r),this.dataStore.markMutationInit({mutationId:e,document:t,variables:r,updateQueries:o(),update:h,optimisticResponse:n}),this.broadcastQueries(),s=this,[2,new Promise(function(i,l){var f,p;s.getObservableFromLink(t,c(c({},b),{optimisticResponse:n}),r,!1).subscribe({next:function(n){if(Q(n)&&"none"===v){p=new ec({graphQLErrors:n.errors});return}s.mutationStore.markMutationResult(e),"no-cache"!==y&&s.dataStore.markMutationResult({mutationId:e,result:n,document:t,variables:r,updateQueries:o(),update:h}),f=n},error:function(t){s.mutationStore.markMutationError(e,t),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),s.broadcastQueries(),s.setQuery(e,function(){return{document:null}}),l(new ec({networkError:t}))},complete:function(){if(p&&s.mutationStore.markMutationError(e,p),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),s.broadcastQueries(),p)return void l(p);"function"==typeof a&&(a=a(f));var t=[];es(a)&&a.forEach(function(e){if("string"==typeof e)s.queries.forEach(function(r){var n=r.observableQuery;n&&n.queryName===e&&t.push(n.refetch())});else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(s.query(r))}}),Promise.all(u?t:[]).then(function(){s.setQuery(e,function(){return{document:null}}),"ignore"===v&&f&&Q(f)&&delete f.errors,i(f)})}})})]}})})},e.prototype.fetchQuery=function(e,t,r,n){return l(this,void 0,void 0,function(){var i,o,s,u,l,h,p,d,v,y,m,b,E,w,O,k,S,T,x=this;return f(this,function(f){switch(f.label){case 0:if(o=void 0===(i=t.metadata)?null:i,u=void 0===(s=t.fetchPolicy)?"cache-first":s,h=void 0===(l=t.context)?{}:l,p=this.transform(t.query).document,d=this.getVariables(p,t.variables),!this.transform(p).hasClientExports)return[3,2];return[4,this.localState.addExportedVariables(p,d,h)];case 1:d=f.sent(),f.label=2;case 2:if(t=c(c({},t),{variables:d}),m=y="network-only"===u||"no-cache"===u,y||(E=(b=this.dataStore.getCache().diff({query:p,variables:d,returnPartialData:!0,optimistic:!1})).complete,w=b.result,m=!E||"cache-and-network"===u,v=w),O=m&&"cache-only"!==u&&"standby"!==u,g(["live"],p)&&(O=!0),k=this.idCounter++,S="no-cache"!==u?this.updateQueryWatch(e,p,t):void 0,this.setQuery(e,function(){return{document:p,lastRequestId:k,invalidated:!0,cancel:S}}),this.invalidate(n),this.queryStore.initQuery({queryId:e,document:p,storePreviousVariables:O,variables:d,isPoll:r===a.poll,isRefetch:r===a.refetch,metadata:o,fetchMoreForQueryId:n}),this.broadcastQueries(),O){if(T=this.fetchRequest({requestId:k,queryId:e,document:p,options:t,fetchMoreForQueryId:n}).catch(function(t){if(t.hasOwnProperty("graphQLErrors"))throw t;throw k>=x.getQuery(e).lastRequestId&&(x.queryStore.markQueryError(e,t,n),x.invalidate(e),x.invalidate(n),x.broadcastQueries()),new ec({networkError:t})}),"cache-and-network"!==u)return[2,T];T.catch(function(){})}if(this.queryStore.markQueryResultClient(e,!O),this.invalidate(e),this.invalidate(n),this.transform(p).hasForcedResolvers)return[2,this.localState.runResolvers({document:p,remoteResult:{data:v},context:h,variables:d,onlyRunForcedResolvers:!0}).then(function(r){return x.markQueryResult(e,r,t,n),x.broadcastQueries(),r})];return this.broadcastQueries(),[2,{data:v}]}})})},e.prototype.markQueryResult=function(e,t,r,n){var i=r.fetchPolicy,o=r.variables,a=r.errorPolicy;"no-cache"===i?this.setQuery(e,function(){return{newData:{result:t.data,complete:!0}}}):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,n,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,r){var n=this;function i(e,t){if(r[e])try{r[e](t)}catch(e){}}return function(r,o){if(n.invalidate(e,!1),r){var a=n.getQuery(e),s=a.observableQuery,u=a.document,c=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==c){var l=r.networkStatus<7,f=s&&s.getLastResult(),h=!!(f&&f.networkStatus!==r.networkStatus),p=t.returnPartialData||!o&&r.previousVariables||h&&t.notifyOnNetworkStatusChange||"cache-only"===c||"cache-and-network"===c;if(!l||p){var d=es(r.graphQLErrors),v=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===v&&d||r.networkError)return i("error",new ec({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var y=void 0,m=void 0;if(o)"no-cache"!==c&&"network-only"!==c&&n.setQuery(e,function(){return{newData:null}}),y=o.result,m=!o.complete;else{var b=s&&s.getLastError(),g="none"!==v&&(b&&b.graphQLErrors)!==r.graphQLErrors;if(f&&f.data&&!g)y=f.data,m=!1;else{var E=n.dataStore.getCache().diff({query:u,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});y=E.result,m=!E.complete}}var w=m&&!(t.returnPartialData||"cache-only"===c),O={data:w?f&&f.data:y,loading:l,networkStatus:r.networkStatus,stale:w};"all"===v&&d&&(O.errors=r.graphQLErrors),i("next",O)}catch(e){i("error",new ec({networkError:e}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.dataStore.getCache(),n=r.transformDocument(e),i=R([A],O(r.transformForLink(n))),o=this.localState.clientQuery(n),a=this.localState.serverQuery(i),s={document:n,hasClientExports:n&&g(["client"],n)&&g(["export"],n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:function(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter(function(e){return e.defaultValue}).map(function(e){var t=e.variable,r=e.defaultValue,n={};return v(n,t.name,r),n});return w.apply(void 0,function(){for(var e=0,t=0,r=arguments.length;t=n.getQuery(a).lastRequestId&&(n.markQueryResult(a,e,u,c),n.queryStore.markQueryResult(a,e,c),n.invalidate(a),n.invalidate(c),n.broadcastQueries()),"none"===h&&es(e.errors))return f(new ec({graphQLErrors:e.errors}));if("all"===h&&(r=e.errors),c||"no-cache"===p)t=e.data;else{var o=n.dataStore.getCache().diff({variables:l,query:s,optimistic:!1,returnPartialData:!0}),d=o.result;(o.complete||u.returnPartialData)&&(t=d)}}).subscribe({error:function(e){y(),f(e)},complete:function(){y(),e({data:t,errors:r,loading:!1,networkStatus:o.ready,stale:!1})}});n.setQuery(a,function(e){e.subscriptions.add(m)})})},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var r=this.getQuery(e),n=c(c({},r),t(r));this.queries.set(e,n)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,function(){return{invalidated:t}})},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return c(c({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==o.ready&&t.networkStatus!==o.error},e.prototype.startPollingQuery=function(e,t,r){var n=this,i=e.pollInterval;if((0,p.V1)(i,18),!this.ssrMode){var o=this.pollingInfoByQueryId.get(t);o||this.pollingInfoByQueryId.set(t,o={}),o.interval=i,o.options=c(c({},e),{fetchPolicy:"network-only"});var s=function(){var e=n.pollingInfoByQueryId.get(t);e&&(n.checkInFlight(t)?u():n.fetchQuery(t,e.options,a.poll).then(u,u))},u=function(){var e=n.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(s,e.interval))};r&&this.addQueryListener(t,r),u()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),eE=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,r,n,i){void 0===i&&(i=!1);var o=!Q(e);i&&Q(e)&&e.data&&(o=!0),!n&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},e.prototype.markSubscriptionResult=function(e,t,r){Q(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},e.prototype.markMutationInit=function(e){var t,r=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction(function(n){var i=r.cache;r.cache=n;try{r.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{r.cache=i}},e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Q(e.result)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],n=e.updateQueries;n&&Object.keys(n).forEach(function(i){var o=n[i],a=o.query,s=o.updater,u=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),c=u.result;if(u.complete){var l=P(function(){return s(c,{mutationResult:e.result,queryName:S(a.document)||void 0,queryVariables:a.variables})});l&&r.push({result:l,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}}),this.cache.performTransaction(function(t){r.forEach(function(e){return t.write(e)});var n=e.update;n&&P(function(){return n(t,e.result)})})}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),ew=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.cache,n=e.ssrMode,i=void 0!==n&&n,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,u=e.queryDeduplication,c=void 0===u||u,l=e.defaultOptions,f=e.assumeImmutableResults,h=e.resolvers,d=e.typeDefs,v=e.fragmentMatcher,y=e.name,m=e.version,b=e.link;if(!b&&h&&(b=en.empty()),!b||!r)throw new p.zU(4);this.link=b,this.cache=r,this.store=new eE(r),this.disableNetworkFetches=i||a>0,this.queryDeduplication=c,this.defaultOptions=l||{},this.typeDefs=d,a&&setTimeout(function(){return t.disableNetworkFetches=!1},a),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),void 0!==s&&s&&"undefined"!=typeof window&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new ey({cache:r,client:this,resolvers:h,fragmentMatcher:v}),this.queryManager=new eg({link:this.link,store:this.store,queryDeduplication:c,ssrMode:i,clientAwareness:{name:y,version:m},localState:this.localState,assumeImmutableResults:void 0!==f&&f,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=c(c({},this.defaultOptions.watchQuery),e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=c(c({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=c(c({},this.defaultOptions.query),e)),(0,p.V1)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=c(c({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=c(c({},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 this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return ei(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).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()}).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.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}()},19557:function(e,t,r){"use strict";r.d(t,{P:()=>j});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var n,i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(i))throw new c.zU(2)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?(0,l.n4)(n.query):""),o=n,s=a({},i),Object.defineProperty(o,"setContext",{enumerable:!1,value:function(e){s="function"==typeof e?a({},s,e(s)):a({},s,e)}}),Object.defineProperty(o,"getContext",{enumerable:!1,value:function(){return a({},s)}}),Object.defineProperty(o,"toKey",{enumerable:!1,value:function(){var e,t,r;return t=(e=o).query,r=e.variables,JSON.stringify([e.operationName,t,r])}}),o))||u.of()}var w=function(){return(w=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(e,["uri","fetch","includeExtensions","useGETForQueries"]);C(n),n||(n=fetch);var c={http:{includeExtensions:i},options:s.fetchOptions,credentials:s.credentials,headers:s.headers};return new g(function(e){var t,i=V(e,r),s=e.getContext(),l={};if(s.clientAwareness){var f=s.clientAwareness,p=f.name,d=f.version;p&&(l["apollographql-client-name"]=p),d&&(l["apollographql-client-version"]=d)}var v=a({},l,s.headers),y=Q(e,A,c,{http:s.http,options:s.fetchOptions,credentials:s.credentials,headers:v}),m=y.options,b=y.body;if(!m.signal){var g=P(),E=g.controller,w=g.signal;(t=E)&&(m.signal=w)}if(o&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(m.method="GET"),"GET"===m.method){var O=function(e,t){var r=[],n=function(e,t){r.push(e+"="+encodeURIComponent(t))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=q(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=q(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+a}}(i,b),k=O.newURI,S=O.parseError;if(S)return h(S);i=k}else try{m.body=q(b,"Payload")}catch(e){return h(e)}return new u(function(r){return n(i,m).then(function(t){return e.setContext({response:t}),t}).then(function(t){return t.text().then(function(e){try{return JSON.parse(e)}catch(r){return r.name="ServerParseError",r.response=t,r.statusCode=t.status,r.bodyText=e,Promise.reject(r)}}).then(function(r){return t.status>=300&&F(t,r,"Response not successful: Received status code "+t.status),Array.isArray(r)||r.hasOwnProperty("data")||r.hasOwnProperty("errors")||F(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName)+"'."),r})}).then(function(e){return r.next(e),r.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))}),function(){t&&t.abort()}})})},j=function(e){function t(t){return e.call(this,M(t).request)||this}return o(t,e),t}(g)},2783:function(e,t,r){"use strict";r.d(t,{kd:()=>m,XY:()=>P,KV:()=>V,et:()=>Q,zK:()=>N,Uw:()=>g,Vn:()=>R,MS:()=>O,IM:()=>L,d:()=>b,wY:()=>F,i2:()=>w,kp:()=>T,ct:()=>S,n4:()=>I,o5:()=>p,MB:()=>d,Wi:()=>E,Nu:()=>M,AT:()=>D,ue:()=>v,JG:()=>A,Vu:()=>_,dt:()=>y,Ii:()=>f});var n=r(56009),i=r(76879),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0))return r.connection.key;else{var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),r.connection.key+"("+JSON.stringify(i)+")"}var o=e;if(t){var a=u()(t);o+="("+a+")"}return r&&Object.keys(r).forEach(function(e){-1===h.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@"+e+"("+JSON.stringify(r[e])+")":o+="@"+e)}),o}function d(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return l(r,e.name,e.value,t)}),r}return null}function v(e){return e.alias?e.alias.value:e.name.value}function y(e){return"Field"===e.kind}function m(e){return"InlineFragment"===e.kind}function b(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function g(e,t){return void 0===t&&(t=!1),o({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function E(e){return null!=e&&"object"==typeof e&&"json"===e.type}function w(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach(function(e){r[e.name.value]=d(e,t)}),r}return null}function O(e,t){var r;return void 0===t&&(t={}),((r=e.directives)?r.filter(k).map(function(e){var t=e.arguments;e.name.value,(0,i.V1)(t&&1===t.length,2);var r=t[0];(0,i.V1)(r.name&&"if"===r.name.value,3);var n=r.value;return(0,i.V1)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),4),{directive:e,ifArgument:r}}):[]).every(function(e){var r=e.directive,n=e.ifArgument,o=!1;return"Variable"===n.value.kind?(o=t[n.value.name.value],(0,i.V1)(void 0!==o,1)):o=n.value.value,"skip"===r.name.value?!o:o})}function k(e){var t=e.name.value;return"skip"===t||"include"===t}function S(e,t){var r=t,n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new i.zU(5);"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&((0,i.V1)(1===n.length,6),r=n[0].name.value),o(o({},e),{definitions:a([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function T(e){for(var t=[],r=1;r1){var n=[];t=U(t,n);for(var i=1;it.indexOf(e)&&(e=Array.isArray(e)?e.slice(0):o({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}Object.create({})},74945:function(e,t,r){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();(function(e){var t=void 0!==i&&i||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},n={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(n.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function f(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function h(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function p(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=d(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=f(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(n.blob)return this.blob().then(p);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,i,o=f(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,r=h(t=new FileReader),i=(n=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?n[1]:"utf-8",t.readAsText(e,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n-1?i:n),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal||function(){if("AbortController"in t)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),("GET"===this.method||"HEAD"===this.method)&&("no-store"===r.cache||"no-cache"===r.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function b(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function g(e,t){if(!(this instanceof g))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},v.call(m.prototype),v.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var E=[301,302,303,307,308];g.redirect=function(e,t){if(-1===E.indexOf(t))throw RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function w(r,i){return new Promise(function(o,a){var c=new m(r,i);if(c.signal&&c.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var f=new XMLHttpRequest;function h(){f.abort()}if(f.onload=function(){var e,t,r={statusText:f.statusText,headers:(e=f.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{t.append(n,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===c.url.indexOf("file://")&&(f.status<200||f.status>599)?r.status=200:r.status=f.status,r.url="responseURL"in f?f.responseURL:r.headers.get("X-Request-URL");var n="response"in f?f.response:f.responseText;setTimeout(function(){o(new g(n,r))},0)},f.onerror=function(){setTimeout(function(){a(TypeError("Network request failed"))},0)},f.ontimeout=function(){setTimeout(function(){a(TypeError("Network request timed out"))},0)},f.onabort=function(){setTimeout(function(){a(new e.DOMException("Aborted","AbortError"))},0)},f.open(c.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?f.withCredentials=!0:"omit"===c.credentials&&(f.withCredentials=!1),"responseType"in f&&(n.blob?f.responseType="blob":n.arrayBuffer&&(f.responseType="arraybuffer")),i&&"object"==typeof i.headers&&!(i.headers instanceof l||t.Headers&&i.headers instanceof t.Headers)){var p=[];Object.getOwnPropertyNames(i.headers).forEach(function(e){p.push(s(e)),f.setRequestHeader(e,u(i.headers[e]))}),c.headers.forEach(function(e,t){-1===p.indexOf(t)&&f.setRequestHeader(t,e)})}else c.headers.forEach(function(e,t){f.setRequestHeader(t,e)});c.signal&&(c.signal.addEventListener("abort",h),f.onreadystatechange=function(){4===f.readyState&&c.signal.removeEventListener("abort",h)}),f.send(void 0===c._bodyInit?null:c._bodyInit)})}w.polyfill=!0,t.fetch||(t.fetch=w,t.Headers=l,t.Request=m,t.Response=g),e.Headers=l,e.Request=m,e.Response=g,e.fetch=w,Object.defineProperty(e,"__esModule",{value:!0})})({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var o=n.fetch?n:i;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},72492:function(e){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){return r({key:t,value:e[t]},{key:n,value:e[n]})}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t)){for(r=0,a="[";ri});class n{static getDescendantProperty(e,t,r=[]){let i,o,a,s,u,c;if(t){if(-1===(a=t.indexOf("."))?i=t:(i=t.slice(0,a),o=t.slice(a+1)),null!=(s=e[i]))if(o||"string"!=typeof s&&"number"!=typeof s)if("[object Array]"===Object.prototype.toString.call(s))for(u=0,c=s.length;ue.score-t.score),t.map(e=>e.item)}static isMatch(e,t,r){e=String(e),t=String(t),r||(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase());let n=i.nearestIndexesFor(e,t);return!!n&&(e===t?1:n.length>1?2+(n[n.length-1]-n[0]):2+n[0])}static nearestIndexesFor(e,t){let r=t.split(""),n=[];return i.indexesOfFirstLetter(e,t).forEach((t,i)=>{let o=t+1;n[i]=[t];for(let t=1;t!1!==e)).length&&n.sort((e,t)=>1===e.length?e[0]-t[0]:(e=e[e.length-1]-e[0])-(t=t[t.length-1]-t[0]))[0]}static indexesOfFirstLetter(e,t){let r=t[0];return e.split("").map((e,t)=>e===r&&t).filter(e=>!1!==e)}}},57665:function(e,t,r){"use strict";r.d(t,{Ay:()=>q});var n,i=r(5243),o=r(95321);function a(e,t){if(!e)throw Error(t)}var s=r(50381);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,s.A&&(e.prototype[s.A]=t)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,o=t+1;(r=n.exec(e.body))&&r.index120){for(var d=Math.floor(u/80),v=u%80,y=[],m=0;m0||a(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||a(0,"column in locationOffset is 1-indexed and must be positive")};"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(m.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}});var b=r(58275),g=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function E(){return this.lastToken=this.token,this.token=this.lookahead()}function w(){var e=this.token;if(e.kind!==g.EOF)do e=e.next||(e.next=function(e,t){var r,n=e.source,i=n.body,o=i.length,a=function(e,t,r){for(var n=e.length,i=t;i=o)return new O(g.EOF,o,o,s,u,t);var c=i.charCodeAt(a);switch(c){case 33:return new O(g.BANG,a,a+1,s,u,t);case 35:return function(e,t,r,n,i){var o,a=e.body,s=t;do o=a.charCodeAt(++s);while(!isNaN(o)&&(o>31||9===o));return new O(g.COMMENT,t,s,r,n,i,a.slice(t+1,s))}(n,a,s,u,t);case 36:return new O(g.DOLLAR,a,a+1,s,u,t);case 38:return new O(g.AMP,a,a+1,s,u,t);case 40:return new O(g.PAREN_L,a,a+1,s,u,t);case 41:return new O(g.PAREN_R,a,a+1,s,u,t);case 46:if(46===i.charCodeAt(a+1)&&46===i.charCodeAt(a+2))return new O(g.SPREAD,a,a+3,s,u,t);break;case 58:return new O(g.COLON,a,a+1,s,u,t);case 61:return new O(g.EQUALS,a,a+1,s,u,t);case 64:return new O(g.AT,a,a+1,s,u,t);case 91:return new O(g.BRACKET_L,a,a+1,s,u,t);case 93:return new O(g.BRACKET_R,a,a+1,s,u,t);case 123:return new O(g.BRACE_L,a,a+1,s,u,t);case 124:return new O(g.PIPE,a,a+1,s,u,t);case 125:return new O(g.BRACE_R,a,a+1,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:for(var l=n,f=a,h=s,p=u,d=t,y=l.body,m=y.length,E=f+1,w=0;E!==m&&!isNaN(w=y.charCodeAt(E))&&(95===w||w>=48&&w<=57||w>=65&&w<=90||w>=97&&w<=122);)++E;return new O(g.NAME,f,E,h,p,d,y.slice(f,E));case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,r,n,i,o){var a=e.body,s=r,u=t,c=!1;if(45===s&&(s=a.charCodeAt(++u)),48===s){if((s=a.charCodeAt(++u))>=48&&s<=57)throw v(e,u,"Invalid number, unexpected digit after 0: ".concat(k(s),"."))}else u=S(e,u,s),s=a.charCodeAt(u);if(46===s&&(c=!0,s=a.charCodeAt(++u),u=S(e,u,s),s=a.charCodeAt(u)),(69===s||101===s)&&(c=!0,(43===(s=a.charCodeAt(++u))||45===s)&&(s=a.charCodeAt(++u)),u=S(e,u,s),s=a.charCodeAt(u)),46===s||69===s||101===s)throw v(e,u,"Invalid number, expected digit but got: ".concat(k(s),"."));return new O(c?g.FLOAT:g.INT,t,u,n,i,o,a.slice(t,u))}(n,a,c,s,u,t);case 34:if(34===i.charCodeAt(a+1)&&34===i.charCodeAt(a+2))return function(e,t,r,n,i,o){for(var a=e.body,s=t+3,u=s,c=0,l="";s=48&&o<=57){do o=n.charCodeAt(++i);while(o>=48&&o<=57);return i}throw v(e,i,"Invalid number, expected digit but got: ".concat(k(o),"."))}function T(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}u(O,function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}});var x=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),_=function(){function e(e,t){var r,n="string"==typeof e?new m(e):e;n instanceof m||a(0,"Must provide Source. Received: ".concat((0,o.A)(n))),this._lexer={source:n,options:void 0,lastToken:r=new O(g.SOF,0,0,0,0,null),token:r,line:1,lineStart:0,advance:E,lookahead:w},this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(g.NAME);return{kind:y.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:y.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(g.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else if(this.peek(g.BRACE_L))return this.parseOperationDefinition();else if(this.peekDescription())return this.parseTypeSystemDefinition();throw this.unexpected()},t.parseOperationDefinition=function(){var e,t=this._lexer.token;if(this.peek(g.BRACE_L))return{kind:y.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var r=this.parseOperationType();return this.peek(g.NAME)&&(e=this.parseName()),{kind:y.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseOperationType=function(){var e=this.expectToken(g.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:y.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(g.DOLLAR),{kind:y.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:y.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(g.COLON)?(e=n,t=this.parseName()):t=n,{kind:y.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(g.PAREN_L,t,g.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(g.COLON),{kind:y.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:y.ARGUMENT,name:this.parseName(),value:(this.expectToken(g.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(g.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(g.NAME)?{kind:y.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:y.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return(this.expectKeyword("fragment"),this._options.experimentalFragmentVariables)?{kind:y.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:y.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case g.BRACKET_L:return this.parseList(e);case g.BRACE_L:return this.parseObject(e);case g.INT:return this._lexer.advance(),{kind:y.INT,value:t.value,loc:this.loc(t)};case g.FLOAT:return this._lexer.advance(),{kind:y.FLOAT,value:t.value,loc:this.loc(t)};case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:if("true"===t.value||"false"===t.value)return this._lexer.advance(),{kind:y.BOOLEAN,value:"true"===t.value,loc:this.loc(t)};if("null"===t.value)return this._lexer.advance(),{kind:y.NULL,loc:this.loc(t)};return this._lexer.advance(),{kind:y.ENUM,value:t.value,loc:this.loc(t)};case g.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:y.STRING,value:e.value,block:e.kind===g.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:y.LIST,values:this.any(g.BRACKET_L,function(){return t.parseValueLiteral(e)},g.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:y.OBJECT,fields:this.any(g.BRACE_L,function(){return t.parseObjectField(e)},g.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(g.COLON),{kind:y.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(g.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(g.AT),{kind:y.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return(this.expectOptionalToken(g.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(g.BRACKET_R),e={kind:y.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(g.BANG))?{kind:y.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:y.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===g.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return{kind:y.SCHEMA_DEFINITION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(g.COLON);var r=this.parseNamedType();return{kind:y.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:y.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:y.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(g.AMP);do e.push(this.parseNamedType());while(this.expectOptionalToken(g.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(g.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(g.BRACE_L)&&this._lexer.lookahead().kind===g.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(g.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:y.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)},t.parseInputValueDef=function(){var e,t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(g.COLON);var i=this.parseTypeReference();this.expectOptionalToken(g.EQUALS)&&(e=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:y.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:o,loc:this.loc(t)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:y.INTERFACE_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:y.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(g.EQUALS)){this.expectOptionalToken(g.PIPE);do e.push(this.parseNamedType());while(this.expectOptionalToken(g.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:y.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:y.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:y.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===g.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:y.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:y.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:y.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:y.INTERFACE_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:y.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:y.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:y.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:y.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(g.PIPE);var e=[];do e.push(this.parseDirectiveLocation());while(this.expectOptionalToken(g.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==x[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new I(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw v(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(N(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind===g.NAME&&t.value===e)this._lexer.advance();else throw v(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(N(t)))},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===g.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return v(this._lexer.source,t.start,"Unexpected ".concat(N(t)))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n},e}();function I(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function N(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}u(I,function(){return{start:this.start,end:this.end}});var D=new Map,R=new Map,A=!0,F=!1;function C(e){return e.replace(/[\s,]+/g," ").trim()}function P(e){for(var t=[],r=1;ra}),e=r.hmd(e);let a=("function"==typeof(i=(o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:e).Symbol)?i.observable?n=i.observable:(n=i("observable"),i.observable=n):n="@@observable",n)},76879:function(e,t,r){"use strict";r.d(t,{zU:()=>c,V1:()=>l});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var n,i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},o=r(65606),a="Invariant Violation",s=Object.setPrototypeOf,u=void 0===s?function(e,t){return e.__proto__=t,e}:s,c=function(e){function t(){this.constructor=r}function r(t){void 0===t&&(t=a);var n=e.call(this,"number"==typeof t?a+": "+t+" (see https://github.com/apollographql/invariant-packages)":t)||this;return n.framesToPop=1,n.name=a,u(n,r.prototype),n}return i(r,e),r.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t),r}(Error);function l(e,t){if(!e)throw new c(t)}function f(e){return function(){return console[e].apply(console,arguments)}}(n=l||(l={})).warn=f("warn"),n.error=f("error");var h={env:{}};if("object"==typeof o)h=o;else try{Function("stub","process = stub")(h)}catch(e){}},16064:function(e,t,r){e.exports=r(43619).Observable},43619:function(e,t){"use strict";function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})}},{key:c,value:function(){return this}}],[{key:"from",value:function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var n=f(t,c);if(n){var i=n.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof w&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(a("iterator")&&(n=f(t,u)))return new r(function(e){d(function(){if(!e.closed){var r=!0,i=!1,o=void 0;try{for(var a,s=n.call(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(e.next(u),e.closed)return}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}})});if(Array.isArray(t))return new r(function(e){d(function(){if(!e.closed){for(var r=0;ro});var n=r(50381);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return function e(t,r){switch(i(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":if(null===t)return"null";return function(t,r){if(-1!==r.indexOf(t))return"[Circular]";var i,o,a,s,u,c=[].concat(r,[t]),l="function"==typeof(o=(i=t)[String(n.A)])?o:"function"==typeof i.inspect?i.inspect:void 0;if(void 0!==l){var f=l.call(t);if(f!==t)return"string"==typeof f?f:e(f,c)}else if(Array.isArray(t)){var h=t,p=c;if(0===h.length)return"[]";if(p.length>2)return"[Array]";for(var d=Math.min(10,h.length),v=h.length-d,y=[],m=0;m1&&y.push("... ".concat(v," more items")),"["+y.join(", ")+"]"}return a=t,s=c,0===(u=Object.keys(a)).length?"{}":s.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var r=e.constructor.name;if("string"==typeof r&&""!==r)return r}return t}(a)+"]":"{ "+u.map(function(t){var r=e(a[t],s);return t+": "+r}).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}},50381:function(e,t,r){"use strict";r.d(t,{A:()=>n});let n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},58275:function(e,t,r){"use strict";function n(e){var t=e.split(/\r\n|[\n\r]/g),r=function(e){for(var t=null,r=1;r0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")}function i(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||" "===e[0],o='"'===e[e.length-1],a=!n||o||r,s="";return a&&!(n&&i)&&(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}r.d(t,{i$:()=>n,yo:()=>a})},56009:function(e,t,r){"use strict";r.d(t,{YR:()=>a,sP:()=>o});var n=r(95321),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,u=Array.isArray(e),c=[e],l=-1,f=[],h=void 0,p=void 0,d=void 0,v=[],y=[],m=e;do{var b=++l===c.length,g=b&&0!==f.length;if(b){if(p=0===y.length?void 0:v[v.length-1],h=d,d=y.pop(),g){if(u)h=h.slice();else{for(var E={},w=0,O=Object.keys(h);w