(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{1:function(t,e,r){"use strict";r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return o})),r.d(e,"e",(function(){return a})),r.d(e,"b",(function(){return s})),r.d(e,"d",(function(){return u})),r.d(e,"f",(function(){return c})); /*! ***************************************************************************** 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(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var o=function(){return(o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=300&&Object(n.c)(t,e,"Response not successful: Received status code "+t.status),Array.isArray(e)||i.call(e,"data")||i.call(e,"errors")||Object(n.c)(t,e,"Server response was missing for query '"+(Array.isArray(o)?o.map((function(t){return t.operationName})):o.operationName)+"'."),e}))})).then((function(t){return r.next(t),r.complete(),t})).catch((function(t){"AbortError"!==t.name&&(t.result&&t.result.errors&&t.result.data&&r.next(t.result),r.error(t))})),function(){m&&m.abort()}}))}))},h=function(t){function e(e){void 0===e&&(e={});var r=t.call(this,p(e).request)||this;return r.options=e,r}return Object(s.c)(e,t),e}(l.ApolloLink);r.d(e,"b",(function(){return p})),r.d(e,"a",(function(){return h}))},130:function(t,e,r){"use strict";var n=r(1),i=r(7),o=r(18),a=r(19),s=r(2),u=function(){function t(t,e,r,n){this.observer=t,this.options=e,this.fetch=r,this.shouldFetch=n}return t.prototype.reobserve=function(t,e){t?this.updateOptions(t):this.updatePolling();var r=this.fetch(this.options,e);return this.concast&&this.concast.removeObserver(this.observer,!0),r.addObserver(this.observer),(this.concast=r).promise},t.prototype.updateOptions=function(t){return Object.assign(this.options,Object(s.j)(t)),this.updatePolling(),this},t.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},t.prototype.updatePolling=function(){var t=this,e=this.pollingInfo,r=this.options.pollInterval;if(r){if((!e||e.interval!==r)&&(Object(i.b)(r,21),!1!==this.shouldFetch)){(e||(this.pollingInfo={})).interval=r;var n=function(){t.pollingInfo&&(t.shouldFetch&&t.shouldFetch()?t.reobserve({fetchPolicy:"network-only"},a.a.poll).then(o,o):o())},o=function(){var e=t.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))};o()}}else e&&(clearTimeout(e.timeout),delete this.pollingInfo)},t}();r.d(e,"a",(function(){return c}));var c=function(t){function e(e){var r=e.queryManager,i=e.queryInfo,o=e.options,u=t.call(this,(function(t){return u.onSubscribe(t)}))||this;u.observers=new Set,u.subscriptions=new Set,u.observer={next:function(t){(u.lastError||u.isDifferentFromLastResult(t))&&(u.updateLastResult(t),Object(s.C)(u.observers,"next",t))},error:function(t){u.updateLastResult(Object(n.a)(Object(n.a)({},u.lastResult),{error:t,errors:t.graphQLErrors,networkStatus:a.a.error,loading:!1})),Object(s.C)(u.observers,"error",u.lastError=t)}},u.isTornDown=!1,u.options=o,u.queryId=r.generateQueryId();var c=Object(s.q)(o.query);return u.queryName=c&&c.name&&c.name.value,u.queryManager=r,u.queryInfo=i,u}return Object(n.c)(e,t),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var t=this;return new Promise((function(e,r){var n={next:function(r){e(r),t.observers.delete(n),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=t.subscribe(n)}))},e.prototype.getCurrentResult=function(){var t=this.lastResult,e=this.queryInfo.networkStatus||t&&t.networkStatus||a.a.ready,r=Object(n.a)(Object(n.a)({},t),{loading:Object(a.b)(e),networkStatus:e});if(this.isTornDown)return r;var i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if("no-cache"===o||"network-only"===o)r.partial=!1;else if(!r.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var s=this.queryInfo.getDiff();r.partial=!s.complete,r.data=s.complete||this.options.returnPartialData?s.result:void 0,!s.complete||r.networkStatus!==a.a.loading||"cache-first"!==o&&"cache-only"!==o||(r.networkStatus=a.a.ready,r.loading=!1)}return this.updateLastResult(r),r},e.prototype.isDifferentFromLastResult=function(t){return!Object(o.a)(this.lastResultSnapshot,t)},e.prototype.getLastResult=function(){return this.lastResult},e.prototype.getLastError=function(){return this.lastError},e.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(t){var e=this.options.fetchPolicy;if("cache-only"===e)return Promise.reject(new i.a(12));var r={pollInterval:0};return"no-cache"!==e&&"cache-and-network"!==e&&(r.fetchPolicy="network-only",r.nextFetchPolicy=e),t&&!Object(o.a)(this.options.variables,t)&&(r.variables=this.options.variables=Object(n.a)(Object(n.a)({},this.options.variables),t)),this.newReobserver(!1).reobserve(r,a.a.refetch)},e.prototype.fetchMore=function(t){var e=this,r=Object(n.a)(Object(n.a)({},t.query?t:Object(n.a)(Object(n.a)(Object(n.a)({},this.options),t),{variables:Object(n.a)(Object(n.a)({},this.options.variables),t.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId();if(r.notifyOnNetworkStatusChange){var o=this.getCurrentResult();this.queryInfo.networkStatus=a.a.fetchMore,this.observer.next(Object(n.a)(Object(n.a)({},o),{loading:!0,networkStatus:a.a.fetchMore}))}return this.queryManager.fetchQuery(i,r,a.a.fetchMore).then((function(n){var i=n.data,o=t.updateQuery;return o?e.updateQuery((function(t){return o(t,{fetchMoreResult:i,variables:r.variables})})):e.queryManager.cache.writeQuery({query:r.query,variables:r.variables,data:i}),n})).finally((function(){e.queryManager.stopQuery(i),e.reobserve()}))},e.prototype.subscribeToMore=function(t){var e=this,r=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables,context:t.context}).subscribe({next:function(r){var n=t.updateQuery;n&&e.updateQuery((function(t,e){var i=e.variables;return n(t,{subscriptionData:r,variables:i})}))},error:function(e){t.onError&&t.onError(e)}});return this.subscriptions.add(r),function(){e.subscriptions.delete(r)&&r.unsubscribe()}},e.prototype.setOptions=function(t){return this.reobserve(t)},e.prototype.setVariables=function(t){if(Object(o.a)(this.variables,t))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=t,!this.observers.size)return Promise.resolve();var e=this.options.fetchPolicy,r=void 0===e?"cache-first":e;return"cache-first"!==r&&"no-cache"!==r&&"network-only"!==r&&(r="cache-and-network"),this.reobserve({fetchPolicy:r,variables:t},a.a.setVariables)},e.prototype.updateQuery=function(t){var e,r=this.queryManager,n=t(r.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(e=this.lastResult)||void 0===e?void 0:e.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(r.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),r.broadcastQueries())},e.prototype.startPolling=function(t){this.getReobserver().updateOptions({pollInterval:t})},e.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},e.prototype.updateLastResult=function(t){var e=this.lastResult;return this.lastResult=t,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?t:Object(s.i)(t),Object(s.A)(t.errors)||delete this.lastError,e},e.prototype.onSubscribe=function(t){var e=this;if(t===this.observer)return function(){};try{var r=t._subscription._observer;r&&!r.error&&(r.error=l)}catch(t){}var n=!this.observers.size;return this.observers.add(t),this.lastError?t.error&&t.error(this.lastError):this.lastResult&&t.next&&t.next(this.lastResult),n&&this.reobserve().catch((function(t){})),function(){e.observers.delete(t)&&!e.observers.size&&e.tearDownQuery()}},e.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},e.prototype.newReobserver=function(t){var e=this,r=this.queryManager,i=this.queryId;return r.setObservableQuery(this),new u(this.observer,t?this.options:Object(n.a)({},this.options),(function(t,n){return r.setObservableQuery(e),r.fetchQueryObservable(i,t,n)}),!r.ssrMode&&function(){return!Object(a.b)(e.queryInfo.networkStatus)})},e.prototype.reobserve=function(t,e){return this.isTornDown=!1,this.getReobserver().reobserve(t,e)},e.prototype.tearDownQuery=function(){var t=this.queryManager;this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.isTornDown=!0,this.subscriptions.forEach((function(t){return t.unsubscribe()})),this.subscriptions.clear(),t.stopQuery(this.queryId),this.observers.clear()},e}(s.c);function l(t){}},14:function(t,e,r){"use strict";var n=r(73);r.o(n,"ApolloLink")&&r.d(e,"ApolloLink",(function(){return n.ApolloLink})),r.o(n,"ApolloProvider")&&r.d(e,"ApolloProvider",(function(){return n.ApolloProvider})),r.o(n,"createHttpLink")&&r.d(e,"createHttpLink",(function(){return n.createHttpLink})),r.o(n,"gql")&&r.d(e,"gql",(function(){return n.gql})),r.o(n,"useApolloClient")&&r.d(e,"useApolloClient",(function(){return n.useApolloClient})),r.o(n,"useLazyQuery")&&r.d(e,"useLazyQuery",(function(){return n.useLazyQuery})),r.o(n,"useMutation")&&r.d(e,"useMutation",(function(){return n.useMutation})),r.o(n,"useQuery")&&r.d(e,"useQuery",(function(){return n.useQuery}));var i=r(185);r.o(i,"ApolloLink")&&r.d(e,"ApolloLink",(function(){return i.ApolloLink})),r.o(i,"ApolloProvider")&&r.d(e,"ApolloProvider",(function(){return i.ApolloProvider})),r.o(i,"createHttpLink")&&r.d(e,"createHttpLink",(function(){return i.createHttpLink})),r.o(i,"gql")&&r.d(e,"gql",(function(){return i.gql})),r.o(i,"useApolloClient")&&r.d(e,"useApolloClient",(function(){return i.useApolloClient})),r.o(i,"useLazyQuery")&&r.d(e,"useLazyQuery",(function(){return i.useLazyQuery})),r.o(i,"useMutation")&&r.d(e,"useMutation",(function(){return i.useMutation})),r.o(i,"useQuery")&&r.d(e,"useQuery",(function(){return i.useQuery}))},176:function(t,e,r){"use strict";r(50).a.empty},177:function(t,e,r){"use strict";r(50).a.from},178:function(t,e,r){"use strict";r(50).a.split},179:function(t,e,r){"use strict";r(50).a.concat},180:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=r(50).a.execute},181:function(t,e){},182:function(t,e,r){"use strict";var n=Object.prototype;n.toString,n.hasOwnProperty,new Map},183:function(t,e,r){"use strict";var n;n||(n={})},184:function(t,e){},185:function(t,e,r){"use strict";var n=r(46);r.d(e,"ApolloProvider",(function(){return n.a}));var i=r(196);r.d(e,"useApolloClient",(function(){return i.a})),r.d(e,"useLazyQuery",(function(){return i.b})),r.d(e,"useMutation",(function(){return i.c})),r.d(e,"useQuery",(function(){return i.d}));r(47);var o=r(186);r.o(o,"ApolloLink")&&r.d(e,"ApolloLink",(function(){return o.ApolloLink})),r.o(o,"createHttpLink")&&r.d(e,"createHttpLink",(function(){return o.createHttpLink})),r.o(o,"gql")&&r.d(e,"gql",(function(){return o.gql}))},186:function(t,e){},19:function(t,e,r){"use strict";var n;function i(t){return!!t&&t<7}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return i})),function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"}(n||(n={}))},196:function(t,e,r){"use strict";var n=r(0),i=r.n(n),o=r(7),a=r(46);function s(){var t=i.a.useContext(Object(a.b)()).client;return Object(o.b)(t,32),t}var u=r(1),c=r(18),l=r(47),f=function(){function t(t,e){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=t||{},this.context=e||{}}return t.prototype.getOptions=function(){return this.options},t.prototype.setOptions=function(t,e){void 0===e&&(e=!1),e&&!Object(c.a)(this.options,t)&&(this.previousOptions=this.options),this.options=t},t.prototype.unmount=function(){this.isMounted=!1},t.prototype.refreshClient=function(){var t=this.options&&this.options.client||this.context&&this.context.client;Object(o.b)(!!t,28);var e=!1;return t!==this.client&&(e=!0,this.client=t,this.cleanup()),{client:this.client,isNew:e}},t.prototype.verifyDocumentType=function(t,e){var r=Object(l.c)(t);Object(l.b)(e),Object(l.b)(r.type);Object(o.b)(r.type===e,29)},t}(),p=(function(t){function e(e){var r=e.options,n=e.context,i=e.setResult,o=t.call(this,r,n)||this;return o.currentObservable={},o.setResult=i,o.initialize(r),o}Object(u.c)(e,t),e.prototype.execute=function(t){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var e=t;this.refreshClient().isNew&&(e=this.getLoadingResult());var r=this.getOptions().shouldResubscribe;return"function"==typeof r&&(r=!!r(this.getOptions())),!1!==r&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!Object(c.a)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),e=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),Object(u.a)(Object(u.a)({},e),{variables:this.getOptions().variables})},e.prototype.afterExecute=function(){this.isMounted=!0},e.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},e.prototype.initialize=function(t){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:t.subscription,variables:t.variables,fetchPolicy:t.fetchPolicy}))},e.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},e.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},e.prototype.updateResult=function(t){this.isMounted&&this.setResult(t)},e.prototype.updateCurrentData=function(t){var e=this.getOptions().onSubscriptionData;this.updateResult({data:t.data,loading:!1,error:void 0}),e&&e({client:this.refreshClient().client,subscriptionData:t})},e.prototype.updateError=function(t){this.updateResult({error:t,loading:!1})},e.prototype.completeSubscription=function(){var t=this.getOptions().onSubscriptionComplete;t&&t(),this.endSubscription()},e.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)}}(f),r(44)),h=r(2),d=function(t){function e(e){var r=e.options,n=e.context,i=e.result,o=e.setResult,a=t.call(this,r,n)||this;return a.runMutation=function(t){void 0===t&&(t={}),a.onMutationStart();var e=a.generateNewMutationId();return a.mutate(t).then((function(t){return a.onMutationCompleted(t,e),t})).catch((function(t){if(a.onMutationError(t,e),!a.getOptions().onError)throw t}))},a.verifyDocumentType(r.mutation,l.a.Mutation),a.result=i,a.setResult=o,a.mostRecentMutationId=0,a}return Object(u.c)(e,t),e.prototype.execute=function(t){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,l.a.Mutation),[this.runMutation,Object(u.a)(Object(u.a)({},t),{client:this.refreshClient().client})]},e.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},e.prototype.cleanup=function(){},e.prototype.mutate=function(t){return this.refreshClient().client.mutate(Object(h.j)(this.getOptions(),t))},e.prototype.onMutationStart=function(){this.result.loading||this.getOptions().ignoreResults||this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},e.prototype.onMutationCompleted=function(t,e){var r=this.getOptions(),n=r.onCompleted,i=r.ignoreResults,o=t.data,a=t.errors,s=a&&a.length>0?new p.a({graphQLErrors:a}):void 0;this.isMostRecentMutation(e)&&!i&&this.updateResult({called:!0,loading:!1,data:o,error:s}),n&&n(o)},e.prototype.onMutationError=function(t,e){var r=this.getOptions().onError;this.isMostRecentMutation(e)&&this.updateResult({loading:!1,error:t,data:void 0,called:!0}),r&&r(t)},e.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},e.prototype.isMostRecentMutation=function(t){return this.mostRecentMutationId===t},e.prototype.updateResult=function(t){!this.isMounted||this.previousResult&&Object(c.a)(this.previousResult,t)||(this.setResult(t),this.previousResult=t)},e}(f),b=r(73),v=function(t){function e(e){var r=e.options,n=e.context,i=e.onNewData,o=t.call(this,r,n)||this;return o.previousData={},o.runLazy=!1,o.runLazyQuery=function(t){o.cleanup(),o.runLazy=!0,o.lazyOptions=t,o.onNewData()},o.getQueryResult=function(){var t=o.observableQueryFields(),e=o.getOptions();if(e.skip)t=Object(u.a)(Object(u.a)({},t),{data:void 0,error:void 0,loading:!1,called:!0});else if(o.currentObservable){var r=o.currentObservable.getCurrentResult(),n=r.data,i=r.loading,a=r.partial,s=r.networkStatus,c=r.errors,l=r.error;if(c&&c.length>0&&(l=new p.a({graphQLErrors:c})),t=Object(u.a)(Object(u.a)({},t),{data:n,loading:i,networkStatus:s,error:l,called:!0}),i);else if(l)Object.assign(t,{data:(o.currentObservable.getLastResult()||{}).data});else{var f=o.currentObservable.options.fetchPolicy;if(e.partialRefetch&&a&&(!n||0===Object.keys(n).length)&&"cache-only"!==f)return Object.assign(t,{loading:!0,networkStatus:b.NetworkStatus.loading}),t.refetch(),t}}return t.client=o.client,o.setOptions(e,!0),o.previousData.loading=o.previousData.result&&o.previousData.result.loading||!1,o.previousData.result=t,o.currentObservable&&o.currentObservable.resetQueryStoreErrors(),t},o.obsRefetch=function(t){return o.currentObservable.refetch(t)},o.obsFetchMore=function(t){return o.currentObservable.fetchMore(t)},o.obsUpdateQuery=function(t){return o.currentObservable.updateQuery(t)},o.obsStartPolling=function(t){var e;null===(e=o.currentObservable)||void 0===e||e.startPolling(t)},o.obsStopPolling=function(){var t;null===(t=o.currentObservable)||void 0===t||t.stopPolling()},o.obsSubscribeToMore=function(t){return o.currentObservable.subscribeToMore(t)},o.onNewData=i,o}return Object(u.c)(e,t),e.prototype.execute=function(){this.refreshClient();var t=this.getOptions(),e=t.skip,r=t.query;return(e||r!==this.previousData.query)&&(this.removeQuerySubscription(),this.previousData.query=r),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},e.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:b.NetworkStatus.ready,called:!1,data:void 0}]},e.prototype.fetchData=function(){var t=this,e=this.getOptions();return!e.skip&&!1!==e.ssr&&new Promise((function(e){return t.startQuerySubscription(e)}))},e.prototype.afterExecute=function(t){var e=(void 0===t?{}:t).lazy,r=void 0!==e&&e;return this.isMounted=!0,r&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},e.prototype.cleanup=function(){this.removeQuerySubscription(),delete this.currentObservable,delete this.previousData.result},e.prototype.getOptions=function(){var e=t.prototype.getOptions.call(this);return this.lazyOptions&&(e.variables=Object(u.a)(Object(u.a)({},e.variables),this.lazyOptions.variables),e.context=Object(u.a)(Object(u.a)({},e.context),this.lazyOptions.context)),this.runLazy&&delete e.skip,e},e.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},e.prototype.getExecuteResult=function(){var t=this.getQueryResult();return this.startQuerySubscription(),t},e.prototype.getExecuteSsrResult=function(){var t,e=!1===this.getOptions().ssr,r=this.refreshClient().client.disableNetworkFetches,n=Object(u.a)({loading:!0,networkStatus:b.NetworkStatus.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());return e&&(this.ssrInitiated()||r)?(this.previousData.result=n,n):(this.ssrInitiated()&&(t=this.context.renderPromises.addQueryPromise(this,this.getQueryResult)||n),t)},e.prototype.prepareObservableQueryOptions=function(){var t=this.getOptions();this.verifyDocumentType(t.query,l.a.Query);var e=t.displayName||"Query";return!this.ssrInitiated()||"network-only"!==t.fetchPolicy&&"cache-and-network"!==t.fetchPolicy||(t.fetchPolicy="cache-first"),Object(u.a)(Object(u.a)({},t),{displayName:e,context:t.context})},e.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var t=this.prepareObservableQueryOptions();this.previousData.observableQueryOptions=Object(u.a)(Object(u.a)({},t),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery(Object(u.a)({},t)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,t)}},e.prototype.updateObservableQuery=function(){if(!this.getOptions().skip)if(this.currentObservable){var t=Object(u.a)(Object(u.a)({},this.prepareObservableQueryOptions()),{children:null});Object(c.a)(t,this.previousData.observableQueryOptions)||(this.previousData.observableQueryOptions=t,this.currentObservable.setOptions(t).catch((function(){})))}else this.initializeObservableQuery()},e.prototype.startQuerySubscription=function(t){var e=this;void 0===t&&(t=this.onNewData),this.currentSubscription||this.getOptions().skip||(this.currentSubscription=this.currentObservable.subscribe({next:function(r){var n=r.loading,i=r.networkStatus,o=r.data,a=e.previousData.result;a&&a.loading===n&&a.networkStatus===i&&Object(c.a)(a.data,o)||t()},error:function(r){if(e.resubscribeToQuery(),!r.hasOwnProperty("graphQLErrors"))throw r;var n=e.previousData.result;(n&&n.loading||!Object(c.a)(r,e.previousData.error))&&(e.previousData.error=r,t())}}))},e.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var t=this.currentObservable;if(t){var e=t.getLastError(),r=t.getLastResult();t.resetLastResults(),this.startQuerySubscription(),Object.assign(t,{lastError:e,lastResult:r})}},e.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previousData.result){var t=this.previousData.result,e=t.data,r=t.loading,n=t.error;if(!r){var i=this.getOptions(),o=i.query,a=i.variables,s=i.onCompleted,u=i.onError,l=i.skip;if(this.previousOptions&&!this.previousData.loading&&Object(c.a)(this.previousOptions.query,o)&&Object(c.a)(this.previousOptions.variables,a))return;!s||n||l?u&&n&&u(n):s(e)}}},e.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},e.prototype.observableQueryFields=function(){var t;return{variables:null===(t=this.currentObservable)||void 0===t?void 0:t.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},e}(f);function y(t,e,r){void 0===r&&(r=!1);var i=Object(n.useContext)(Object(a.b)()),o=Object(n.useReducer)((function(t){return t+1}),0),s=o[0],l=o[1],f=e?Object(u.a)(Object(u.a)({},e),{query:t}):{query:t},p=Object(n.useRef)(),h=p.current||new v({options:f,context:i,onNewData:function(){h.ssrInitiated()?l():Promise.resolve().then(l)}});h.setOptions(f),h.context=i,h.ssrInitiated()&&!p.current&&(p.current=h);var d,b,y,m={options:Object(u.a)(Object(u.a)({},f),{onError:void 0,onCompleted:void 0}),context:i,tick:s},g=(d=function(){return r?h.executeLazy():h.execute()},b=m,(y=Object(n.useRef)()).current&&Object(c.a)(b,y.current.key)||(y.current={key:b,value:d()}),y.current.value),O=r?g[1]:g;return Object(n.useEffect)((function(){return p.current||(p.current=h),function(){return h.cleanup()}}),[]),Object(n.useEffect)((function(){return h.afterExecute({lazy:r})}),[O.loading,O.networkStatus,O.error,O.data]),g}function m(t,e){return y(t,e,!0)}function g(t,e){var r=Object(n.useContext)(Object(a.b)()),i=Object(n.useState)({called:!1,loading:!1}),o=i[0],s=i[1],c=e?Object(u.a)(Object(u.a)({},e),{mutation:t}):{mutation:t},l=Object(n.useRef)();var f=(l.current||(l.current=new d({options:c,context:r,result:o,setResult:s})),l.current);return f.setOptions(c),f.context=r,Object(n.useEffect)((function(){return f.afterExecute()})),f.execute(o)}function O(t,e){return y(t,e,!1)}r.d(e,"a",(function(){return s})),r.d(e,"b",(function(){return m})),r.d(e,"c",(function(){return g})),r.d(e,"d",(function(){return O}))},197:function(t,e,r){"use strict";var n=r(1),i=r(7),o=r(31),a=r(2),s=r(129),u=r(18),c=r(44),l=function(){function t(){this.store={}}return t.prototype.getStore=function(){return this.store},t.prototype.get=function(t){return this.store[t]},t.prototype.initMutation=function(t,e,r){this.store[t]={mutation:e,variables:r||{},loading:!0,error:null}},t.prototype.markMutationError=function(t,e){var r=this.store[t];r&&(r.loading=!1,r.error=e)},t.prototype.markMutationResult=function(t){var e=this.store[t];e&&(e.loading=!1,e.error=null)},t.prototype.reset=function(){this.store={}},t}(),f=r(130),p=r(19),h=r(25),d=r(56),b=function(){function t(t){var e=t.cache,r=t.client,n=t.resolvers,i=t.fragmentMatcher;this.cache=e,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return t.prototype.addResolvers=function(t){var e=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach((function(t){e.resolvers=Object(a.F)(e.resolvers,t)})):this.resolvers=Object(a.F)(this.resolvers,t)},t.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(t){var e=t.document,r=t.remoteResult,i=t.context,o=t.variables,a=t.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(n.b)(this,void 0,void 0,(function(){return Object(n.d)(this,(function(t){return e?[2,this.resolveDocument(e,r.data,i,o,this.fragmentMatcher,s).then((function(t){return Object(n.a)(Object(n.a)({},r),{data:t.result})}))]:[2,r]}))}))},t.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(t){return Object(a.x)(["client"],t)&&this.resolvers?t:null},t.prototype.serverQuery=function(t){return Object(a.H)(t)},t.prototype.prepareContext=function(t){var e=this.cache;return Object(n.a)(Object(n.a)({},t),{cache:e,getCacheKey:function(t){return e.identify(t)}})},t.prototype.addExportedVariables=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),Object(n.b)(this,void 0,void 0,(function(){return Object(n.d)(this,(function(i){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,e)||{},this.prepareContext(r),e).then((function(t){return Object(n.a)(Object(n.a)({},e),t.exportedVariables)}))]:[2,Object(n.a)({},e)]}))}))},t.prototype.shouldForceResolvers=function(t){var e=!1;return Object(h.b)(t,{Directive:{enter:function(t){if("client"===t.name.value&&t.arguments&&(e=t.arguments.some((function(t){return"always"===t.name.value&&"BooleanValue"===t.value.kind&&!0===t.value.value}))))return h.a}}}),e},t.prototype.buildRootValueFromCache=function(t,e){return this.cache.diff({query:Object(a.g)(t),variables:e,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(t,e,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),Object(n.b)(this,void 0,void 0,(function(){var u,c,l,f,p,h,d,b,v;return Object(n.d)(this,(function(y){return u=Object(a.p)(t),c=Object(a.m)(t),l=Object(a.k)(c),f=u.operation,p=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",d=(h=this).cache,b=h.client,v={fragmentMap:l,context:Object(n.a)(Object(n.a)({},r),{cache:d,client:b}),variables:i,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(u.selectionSet,e,v).then((function(t){return{result:t,exportedVariables:v.exportedVariables}}))]}))}))},t.prototype.resolveSelectionSet=function(t,e,r){return Object(n.b)(this,void 0,void 0,(function(){var o,s,u,c,l,f=this;return Object(n.d)(this,(function(p){return o=r.fragmentMap,s=r.context,u=r.variables,c=[e],l=function(t){return Object(n.b)(f,void 0,void 0,(function(){var l,f;return Object(n.d)(this,(function(n){return Object(a.K)(t,u)?Object(a.y)(t)?[2,this.resolveField(t,e,r).then((function(e){var r;void 0!==e&&c.push(((r={})[Object(a.J)(t)]=e,r))}))]:(Object(a.z)(t)?l=t:(l=o[t.name.value],Object(i.b)(l,11)),l&&l.typeCondition&&(f=l.typeCondition.name.value,r.fragmentMatcher(e,f,s))?[2,this.resolveSelectionSet(l.selectionSet,e,r).then((function(t){c.push(t)}))]:[2]):[2]}))}))},[2,Promise.all(t.selections.map(l)).then((function(){return Object(a.G)(c)}))]}))}))},t.prototype.resolveField=function(t,e,r){return Object(n.b)(this,void 0,void 0,(function(){var i,o,s,u,c,l,f,p,h,b=this;return Object(n.d)(this,(function(n){return i=r.variables,o=t.name.value,s=Object(a.J)(t),u=o!==s,c=e[s]||e[o],l=Promise.resolve(c),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(t)||(f=e.__typename||r.defaultOperationType,(p=this.resolvers&&this.resolvers[f])&&(h=p[u?o:s])&&(l=Promise.resolve(d.cacheSlot.withValue(this.cache,h,[e,Object(a.e)(t,i),r.context,{field:t,fragmentMap:r.fragmentMap}])))),[2,l.then((function(e){return void 0===e&&(e=c),t.directives&&t.directives.forEach((function(t){"export"===t.name.value&&t.arguments&&t.arguments.forEach((function(t){"as"===t.name.value&&"StringValue"===t.value.kind&&(r.exportedVariables[t.value.value]=e)}))})),t.selectionSet?null==e?e:Array.isArray(e)?b.resolveSubSelectedArray(t,e,r):t.selectionSet?b.resolveSelectionSet(t.selectionSet,e,r):void 0:e}))]}))}))},t.prototype.resolveSubSelectedArray=function(t,e,r){var n=this;return Promise.all(e.map((function(e){return null===e?null:Array.isArray(e)?n.resolveSubSelectedArray(t,e,r):t.selectionSet?n.resolveSelectionSet(t.selectionSet,e,r):void 0})))},t}(),v=function(){function t(t){this.cache=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.dirty=!1,this.diff=null,this.observableQuery=null}return t.prototype.init=function(t){var e=t.networkStatus||p.a.loading;return this.variables&&this.networkStatus!==p.a.loading&&!Object(u.a)(this.variables,t.variables)&&(e=p.a.setVariables),Object(u.a)(t.variables,this.variables)||(this.diff=null),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:e}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},t.prototype.getDiff=function(t){return void 0===t&&(t=this.variables),this.diff&&Object(u.a)(t,this.variables)?this.diff:(this.updateWatch(this.variables=t),this.diff=this.cache.diff({query:this.document,variables:t,returnPartialData:!0,optimistic:!0}))},t.prototype.setDiff=function(t){var e=this,r=this.diff;this.diff=t,this.dirty||(null==t?void 0:t.result)===(null==r?void 0:r.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return e.notify()}),0)))},t.prototype.setObservableQuery=function(t){t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){return t.reobserve()})):delete this.oqListener)},t.prototype.notify=function(){var t=this;this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.shouldNotify()&&this.listeners.forEach((function(e){return e(t)})),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Object(p.b)(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if("cache-only"!==t&&"cache-and-network"!==t)return!1}return!0},t.prototype.stop=function(){this.cancel(),delete this.cancel;var t=this.observableQuery;t&&t.stopPolling()},t.prototype.cancel=function(){},t.prototype.updateWatch=function(t){var e=this;void 0===t&&(t=this.variables);var r=this.observableQuery;r&&"no-cache"===r.options.fetchPolicy||this.lastWatch&&this.lastWatch.query===this.document&&Object(u.a)(t,this.lastWatch.variables)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:t,optimistic:!0,callback:function(t){return e.setDiff(t)}}))},t.prototype.markResult=function(t,e,r){var n=this;if(this.graphQLErrors=Object(a.A)(t.errors)?t.errors:[],"no-cache"===e.fetchPolicy)this.diff={result:t.data,complete:!0};else if(r){var i="ignore"===e.errorPolicy||"all"===e.errorPolicy,o=!Object(a.v)(t);!o&&i&&t.data&&(o=!0),o?this.cache.performTransaction((function(r){if(n.lastWrittenResult&&Object(u.a)(t.data,n.lastWrittenResult.data)&&Object(u.a)(e.variables,n.lastWrittenVars)){if(n.diff&&n.diff.complete)return void(t.data=n.diff.result)}else r.writeQuery({query:n.document,data:t.data,variables:e.variables}),n.lastWrittenResult=t,n.lastWrittenVars=e.variables;var i=r.diff({query:n.document,variables:e.variables,returnPartialData:!0,optimistic:!0});n.updateWatch(e.variables),n.diff=i,i.complete&&(t.data=i.result)})):this.lastWrittenResult=this.lastWrittenVars=void 0}},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=p.a.ready},t.prototype.markError=function(t){return this.networkStatus=p.a.error,this.lastWrittenResult=this.lastWrittenVars=void 0,t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},t}(),y=Object.prototype.hasOwnProperty,m=function(){function t(t){var e=t.cache,r=t.link,n=t.queryDeduplication,i=void 0!==n&&n,o=t.onBroadcast,s=void 0===o?function(){}:o,u=t.ssrMode,c=void 0!==u&&u,f=t.clientAwareness,p=void 0===f?{}:f,h=t.localState,d=t.assumeImmutableResults;this.mutationStore=new l,this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(a.h?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=e,this.link=r,this.queryDeduplication=i,this.onBroadcast=s,this.clientAwareness=p,this.localState=h||new b({cache:e}),this.ssrMode=c,this.assumeImmutableResults=!!d}return t.prototype.stop=function(){var t=this;this.queries.forEach((function(e,r){t.stopQueryNoBroadcast(r)})),this.cancelPendingFetches(new i.a(13))},t.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach((function(e){return e(t)})),this.fetchCancelFns.clear()},t.prototype.mutate=function(t){var e=t.mutation,r=t.variables,o=t.optimisticResponse,s=t.updateQueries,u=t.refetchQueries,l=void 0===u?[]:u,f=t.awaitRefetchQueries,p=void 0!==f&&f,h=t.update,d=t.errorPolicy,b=void 0===d?"none":d,v=t.fetchPolicy,m=t.context,O=void 0===m?{}:m;return Object(n.b)(this,void 0,void 0,(function(){var t,u,f,d,m=this;return Object(n.d)(this,(function(j){switch(j.label){case 0:return Object(i.b)(e,14),Object(i.b)(!v||"no-cache"===v,15),t=this.generateMutationId(),e=this.transform(e).document,r=this.getVariables(e,r),this.transform(e).hasClientExports?[4,this.localState.addExportedVariables(e,r,O)]:[3,2];case 1:r=j.sent(),j.label=2;case 2:return u=function(){var t={};return s&&m.queries.forEach((function(e,r){var n=e.observableQuery;if(n){var i=n.queryName;i&&y.call(s,i)&&(t[r]={updater:s[i],queryInfo:m.queries.get(r)})}})),t},this.mutationStore.initMutation(t,e,r),o&&(f="function"==typeof o?o(r):o,this.cache.recordOptimisticTransaction((function(n){try{g({mutationId:t,result:{data:f},document:e,variables:r,queryUpdatersById:u(),update:h},n)}catch(t){}}),t)),this.broadcastQueries(),d=this,[2,new Promise((function(i,s){var f,y;d.getObservableFromLink(e,Object(n.a)(Object(n.a)({},O),{optimisticResponse:o}),r,!1).subscribe({next:function(n){if(Object(a.v)(n)&&"none"===b)y=new c.a({graphQLErrors:n.errors});else{if(d.mutationStore.markMutationResult(t),"no-cache"!==v)try{g({mutationId:t,result:n,document:e,variables:r,queryUpdatersById:u(),update:h},d.cache)}catch(t){return void(y=new c.a({networkError:t}))}f=n}},error:function(e){d.mutationStore.markMutationError(t,e),o&&d.cache.removeOptimistic(t),d.broadcastQueries(),s(new c.a({networkError:e}))},complete:function(){if(y&&d.mutationStore.markMutationError(t,y),o&&d.cache.removeOptimistic(t),d.broadcastQueries(),y)s(y);else{"function"==typeof l&&(l=l(f));var e=[];Object(a.A)(l)&&l.forEach((function(t){if("string"==typeof t)d.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===t&&e.push(n.refetch())}));else{var r={query:t.query,variables:t.variables,fetchPolicy:"network-only"};t.context&&(r.context=t.context),e.push(d.query(r))}})),Promise.all(p?e:[]).then((function(){"ignore"===b&&f&&Object(a.v)(f)&&delete f.errors,i(f)}),s)}}})}))]}}))}))},t.prototype.fetchQuery=function(t,e,r){return this.fetchQueryObservable(t,e,r).promise},t.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach((function(e,r){t[r]={variables:e.variables,networkStatus:e.networkStatus,networkError:e.networkError,graphQLErrors:e.graphQLErrors}})),t},t.prototype.resetErrors=function(t){var e=this.queries.get(t);e&&(e.networkError=void 0,e.graphQLErrors=[])},t.prototype.transform=function(t){var e=this.transformCache;if(!e.has(t)){var r=this.cache.transformDocument(t),n=Object(a.I)(this.cache.transformForLink(r)),i=this.localState.clientQuery(r),o=n&&this.localState.serverQuery(n),s={document:r,hasClientExports:Object(a.w)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:i,serverQuery:o,defaultVars:Object(a.l)(Object(a.q)(r))},u=function(t){t&&!e.has(t)&&e.set(t,s)};u(t),u(r),u(i),u(o)}return e.get(t)},t.prototype.getVariables=function(t,e){return Object(n.a)(Object(n.a)({},this.transform(t).defaultVars),e)},t.prototype.watchQuery=function(t){void 0===(t=Object(n.a)(Object(n.a)({},t),{variables:this.getVariables(t.query,t.variables)})).notifyOnNetworkStatusChange&&(t.notifyOnNetworkStatusChange=!1);var e=new v(this.cache),r=new f.a({queryManager:this,queryInfo:e,options:t});return this.queries.set(r.queryId,e),e.init({document:t.query,observableQuery:r,variables:t.variables}),r},t.prototype.query=function(t){var e=this;Object(i.b)(t.query,16),Object(i.b)("Document"===t.query.kind,17),Object(i.b)(!t.returnPartialData,18),Object(i.b)(!t.pollInterval,19);var r=this.generateQueryId();return this.fetchQuery(r,t).finally((function(){return e.stopQuery(r)}))},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(t){var e=this.queries.get(t);e&&e.stop()},t.prototype.clearStore=function(){return this.cancelPendingFetches(new i.a(20)),this.queries.forEach((function(t){t.observableQuery?t.networkStatus=p.a.loading:t.stop()})),this.mutationStore.reset(),this.cache.reset()},t.prototype.resetStore=function(){var t=this;return this.clearStore().then((function(){return t.reFetchObservableQueries()}))},t.prototype.reFetchObservableQueries=function(t){var e=this;void 0===t&&(t=!1);var r=[];return this.queries.forEach((function(n,i){var o=n.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!t&&"standby"===a||r.push(o.refetch()),e.getQuery(i).setDiff(null)}})),this.broadcastQueries(),Promise.all(r)},t.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},t.prototype.startGraphQLSubscription=function(t){var e=this,r=t.query,n=t.fetchPolicy,i=t.variables,o=t.context,s=void 0===o?{}:o;r=this.transform(r).document,i=this.getVariables(r,i);var u=function(t){return e.getObservableFromLink(r,s,t,!1).map((function(i){if(n&&"no-cache"===n||(Object(a.v)(i)||e.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:t}),e.broadcastQueries()),Object(a.v)(i))throw new c.a({graphQLErrors:i.errors});return i}))};if(this.transform(r).hasClientExports){var l=this.localState.addExportedVariables(r,i,s).then(u);return new a.c((function(t){var e=null;return l.then((function(r){return e=r.subscribe(t)}),t.error),function(){return e&&e.unsubscribe()}}))}return u(i)},t.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},t.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.getQuery(t).subscriptions.forEach((function(t){return t.unsubscribe()})),this.queries.delete(t)},t.prototype.broadcastQueries=function(){this.onBroadcast(),this.queries.forEach((function(t){return t.notify()}))},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(t,e,r,i){var s,u,c=this;void 0===i&&(i=null!==(s=null==e?void 0:e.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var l=this.transform(t).serverQuery;if(l){var f=this.inFlightLinkObservables,p=this.link,h={query:l,variables:r,operationName:Object(a.r)(l)||void 0,context:this.prepareContext(Object(n.a)(Object(n.a)({},e),{forceFetch:!i}))};if(e=h.context,i){var d=f.get(l)||new Map;f.set(l,d);var b=JSON.stringify(r);if(!(u=d.get(b))){var v=new a.a([Object(o.execute)(p,h)]);d.set(b,u=v),v.cleanup((function(){d.delete(b)&&d.size<1&&f.delete(l)}))}}else u=new a.a([Object(o.execute)(p,h)])}else u=new a.a([a.c.of({data:{}})]),e=this.prepareContext(e);var y=this.transform(t).clientQuery;return y&&(u=Object(a.f)(u,(function(t){return c.localState.runResolvers({document:y,remoteResult:t,context:e,variables:r})}))),u},t.prototype.getResultsFromLink=function(t,e,r){var n=t.lastRequestId;return Object(a.f)(this.getObservableFromLink(t.document,r.context,r.variables),(function(i){var o=Object(a.A)(i.errors);if(n>=t.lastRequestId){if(o&&"none"===r.errorPolicy)throw t.markError(new c.a({graphQLErrors:i.errors}));t.markResult(i,r,e),t.markReady()}var s={data:i.data,loading:!1,networkStatus:t.networkStatus||p.a.ready};return o&&"ignore"!==r.errorPolicy&&(s.errors=i.errors),s}),(function(e){var r=Object(c.b)(e)?e:new c.a({networkError:e});throw n>=t.lastRequestId&&t.markError(r),r}))},t.prototype.fetchQueryObservable=function(t,e,r){var n=this;void 0===r&&(r=p.a.loading);var i=this.transform(e.query).document,o=this.getVariables(i,e.variables),s=this.getQuery(t),u=s.networkStatus,c=e.fetchPolicy,l=void 0===c?"cache-first":c,f=e.errorPolicy,h=void 0===f?"none":f,d=e.returnPartialData,b=void 0!==d&&d,v=e.notifyOnNetworkStatusChange,y=void 0!==v&&v,m=e.context,g=void 0===m?{}:m;("cache-first"===l||"cache-and-network"===l||"network-only"===l||"no-cache"===l)&&y&&"number"==typeof u&&u!==r&&Object(p.b)(r)&&("cache-first"!==l&&(l="cache-and-network"),b=!0);var O=Object.assign({},e,{query:i,variables:o,fetchPolicy:l,errorPolicy:h,returnPartialData:b,notifyOnNetworkStatusChange:y,context:g}),j=function(t){return O.variables=t,n.fetchQueryByPolicy(s,O,r)};this.fetchCancelFns.set(t,(function(t){Promise.resolve().then((function(){return w.cancel(t)}))}));var w=new a.a(this.transform(O.query).hasClientExports?this.localState.addExportedVariables(O.query,O.variables,O.context).then(j):j(O.variables));return w.cleanup((function(){n.fetchCancelFns.delete(t),e.nextFetchPolicy&&(e.fetchPolicy=e.nextFetchPolicy,e.nextFetchPolicy=void 0)})),w},t.prototype.fetchQueryByPolicy=function(t,e,r){var i=this,o=e.query,s=e.variables,u=e.fetchPolicy,c=e.errorPolicy,l=e.returnPartialData,f=e.context;t.init({document:o,variables:s,lastRequestId:this.generateRequestId(),networkStatus:r});var h=function(){return t.getDiff(s)},d=function(e,r){void 0===r&&(r=t.networkStatus||p.a.loading);var u=e.result;var c=function(t){return a.c.of(Object(n.a)({data:t,loading:Object(p.b)(r),networkStatus:r},e.complete?null:{partial:!0}))};return i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:u},context:f,variables:s,onlyRunForcedResolvers:!0}).then((function(t){return c(t.data)})):c(u)},b=function(e){return i.getResultsFromLink(t,e,{variables:s,context:f,fetchPolicy:u,errorPolicy:c})};switch(u){default:case"cache-first":return(v=h()).complete?[d(v,t.markReady())]:l?[d(v),b(!0)]:[b(!0)];case"cache-and-network":var v;return(v=h()).complete||l?[d(v),b(!0)]:[b(!0)];case"cache-only":return[d(h(),t.markReady())];case"network-only":return[b(!0)];case"no-cache":return[b(!1)];case"standby":return[]}},t.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new v(this.cache)),this.queries.get(t)},t.prototype.prepareContext=function(t){void 0===t&&(t={});var e=this.localState.prepareContext(t);return Object(n.a)(Object(n.a)({},e),{clientAwareness:this.clientAwareness})},t}();function g(t,e){if(!Object(a.v)(t.result)){var r=[{result:t.result.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}],n=t.queryUpdatersById;n&&Object.keys(n).forEach((function(i){var o=n[i],s=o.updater,u=o.queryInfo,c=u.document,l=u.variables,f=e.diff({query:c,variables:l,returnPartialData:!0,optimistic:!1}),p=f.result;if(f.complete&&p){var h=s(p,{mutationResult:t.result,queryName:Object(a.r)(c)||void 0,queryVariables:l});h&&r.push({result:h,dataId:"ROOT_QUERY",query:c,variables:l})}})),e.performTransaction((function(e){r.forEach((function(t){return e.write(t)}));var n=t.update;n&&n(e,t.result)}),null)}}r.d(e,"a",(function(){return O}));var O=function(){function t(t){var e=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=t.uri,n=t.credentials,a=t.headers,u=t.cache,c=t.ssrMode,l=void 0!==c&&c,f=t.ssrForceFetchDelay,p=void 0===f?0:f,h=t.connectToDevTools,d=t.queryDeduplication,v=void 0===d||d,y=t.defaultOptions,g=t.assumeImmutableResults,O=void 0!==g&&g,j=t.resolvers,w=t.typeDefs,k=t.fragmentMatcher,S=t.name,x=t.version,q=t.link;if(q||(q=r?new s.a({uri:r,credentials:n,headers:a}):o.ApolloLink.empty()),!u)throw new i.a(9);this.link=q,this.cache=u,this.disableNetworkFetches=l||p>0,this.queryDeduplication=v,this.defaultOptions=y||{},this.typeDefs=w,p&&setTimeout((function(){return e.disableNetworkFetches=!1}),p),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!==h&&(h&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="local",this.localState=new b({cache:u,client:this,resolvers:j,fragmentMatcher:k}),this.queryManager=new m({cache:this.cache,link:this.link,queryDeduplication:v,ssrMode:l,clientAwareness:{name:S,version:x},localState:this.localState,assumeImmutableResults:O,onBroadcast:function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.getQueryStore(),mutations:e.queryManager.mutationStore.getStore()},dataWithOptimisticResults:e.cache.extract(!0)})}})}return t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=Object(a.j)(this.defaultOptions.watchQuery,t)),!this.disableNetworkFetches||"network-only"!==t.fetchPolicy&&"cache-and-network"!==t.fetchPolicy||(t=Object(n.a)(Object(n.a)({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},t.prototype.query=function(t){return this.defaultOptions.query&&(t=Object(a.j)(this.defaultOptions.query,t)),Object(i.b)("cache-and-network"!==t.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=Object(n.a)(Object(n.a)({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},t.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=Object(a.j)(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},t.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.cache.readQuery(t,e)},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!1),this.cache.readFragment(t,e)},t.prototype.writeQuery=function(t){this.cache.writeQuery(t),this.queryManager.broadcastQueries()},t.prototype.writeFragment=function(t){this.cache.writeFragment(t),this.queryManager.broadcastQueries()},t.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},t.prototype.__requestRaw=function(t){return Object(o.execute)(this.link,t)},t.prototype.resetStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore()})).then((function(){return Promise.all(t.resetStoreCallbacks.map((function(t){return t()})))})).then((function(){return t.reFetchObservableQueries()}))},t.prototype.clearStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore()})).then((function(){return Promise.all(t.clearStoreCallbacks.map((function(t){return t()})))}))},t.prototype.onResetStore=function(t){var e=this;return this.resetStoreCallbacks.push(t),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.onClearStore=function(t){var e=this;return this.clearStoreCallbacks.push(t),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},t.prototype.extract=function(t){return this.cache.extract(t)},t.prototype.restore=function(t){return this.cache.restore(t)},t.prototype.addResolvers=function(t){this.localState.addResolvers(t)},t.prototype.setResolvers=function(t){this.localState.setResolvers(t)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},t.prototype.setLink=function(t){this.link=this.queryManager.link=t},t}()},198:function(t,e,r){"use strict";var n,i,o=r(1),a=(r(285),r(38)),s=r(125),u=r(2),c=r(7),l=r(18),f=r(20),p=Object.create(null),h=function(){return p},d=function(){function t(t,e){var r=this;this.policies=t,this.group=e,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(t,e){return Object(u.E)(Object(u.B)(t)?r.get(t.__ref,e):t&&t[e])},this.canRead=function(t){return Object(u.B)(t)?r.has(t.__ref):"object"==typeof t},this.toReference=function(t,e){if("string"==typeof t)return Object(u.D)(t);if(Object(u.B)(t))return t;var n=r.policies.identify(t)[0];if(n){var i=Object(u.D)(n);return e&&r.merge(n,t),i}}}return t.prototype.toObject=function(){return Object(o.a)({},this.data)},t.prototype.has=function(t){return void 0!==this.lookup(t,!0)},t.prototype.get=function(t,e){if(this.group.depend(t,e),f.b.call(this.data,t)){var r=this.data[t];if(r&&f.b.call(r,e))return r[e]}return"__typename"===e&&f.b.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof y?this.parent.get(t,e):void 0},t.prototype.lookup=function(t,e){return e&&this.group.depend(t,"__exists"),f.b.call(this.data,t)?this.data[t]:this instanceof y?this.parent.lookup(t,e):void 0},t.prototype.merge=function(t,e){var r=this,n=this.lookup(t),i=new u.b(m).merge(n,e);if(this.data[t]=i,i!==n&&(delete this.refs[t],this.group.caching)){var o=Object.create(null);n||(o.__exists=1),Object.keys(e).forEach((function(t){n&&n[t]===i[t]||(o[Object(f.a)(t)]=1,void 0!==i[t]||r instanceof y||delete i[t])})),Object.keys(o).forEach((function(e){return r.group.dirty(t,e)}))}},t.prototype.modify=function(t,e){var r=this,n=this.lookup(t);if(n){var i=Object.create(null),o=!1,a=!0,s=function(e,n){return r.policies.readField("string"==typeof e?{fieldName:e,from:n||Object(u.D)(t)}:e,{store:r})};if(Object.keys(n).forEach((function(t){var c=Object(f.a)(t),l=n[t];if(void 0!==l){var d="function"==typeof e?e:e[t]||e[c];if(d){var b=d===h?p:d(Object(u.E)(l),{DELETE:p,fieldName:c,storeFieldName:t,isReference:u.B,toReference:r.toReference,canRead:r.canRead,readField:s});b===p&&(b=void 0),b!==l&&(i[t]=b,o=!0,l=b)}void 0!==l&&(a=!1)}})),o)return this.merge(t,i),a&&(this instanceof y?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},t.prototype.delete=function(t,e,r){var n,i=this.lookup(t);if(i){var o=this.getFieldValue(i,"__typename"),a=e&&r?this.policies.getStoreFieldName({typename:o,fieldName:e,args:r}):e;return this.modify(t,a?((n={})[a]=h,n):h)}return!1},t.prototype.evict=function(t){var e=!1;return t.id&&(f.b.call(this.data,t.id)&&(e=this.delete(t.id,t.fieldName,t.args)),this instanceof y&&(e=this.parent.evict(t)||e),(t.fieldName||e)&&this.group.dirty(t.id,t.fieldName||"__exists")),e},t.prototype.clear=function(){this.replace(null)},t.prototype.replace=function(t){var e=this;Object.keys(this.data).forEach((function(r){t&&f.b.call(t,r)||e.delete(r)})),t&&Object.keys(t).forEach((function(r){e.merge(r,t[r])}))},t.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},t.prototype.release=function(t){if(this.rootIds[t]>0){var e=--this.rootIds[t];return e||delete this.rootIds[t],e}return 0},t.prototype.getRootIdSet=function(t){return void 0===t&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof y&&this.parent.getRootIdSet(t),t},t.prototype.gc=function(){var t=this,e=this.getRootIdSet(),r=this.toObject();e.forEach((function(n){f.b.call(r,n)&&(Object.keys(t.findChildRefIds(n)).forEach(e.add,e),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof y;)i=i.parent;n.forEach((function(t){return i.delete(t)}))}return n},t.prototype.findChildRefIds=function(t){if(!f.b.call(this.refs,t)){var e=this.refs[t]=Object.create(null),r=new Set([this.data[t]]),n=function(t){return null!==t&&"object"==typeof t};r.forEach((function(t){Object(u.B)(t)?e[t.__ref]=!0:n(t)&&Object.values(t).filter(n).forEach(r.add,r)}))}return this.refs[t]},t.prototype.makeCacheKey=function(){for(var t=[],e=0;e0;if(p&&!c)throw f.missing[0];return{result:f.result,missing:f.missing,complete:!p}},t.prototype.isFresh=function(t,e,r,n){if(g(n.store)&&this.knownResults.get(t)===r){var i=this.executeSelectionSet.peek(r,e,n);if(i&&t===i.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(t){var e=this,r=t.selectionSet,n=t.objectOrReference,i=t.context;if(Object(u.B)(n)&&!i.policies.rootTypenamesById[n.__ref]&&!i.store.has(n.__ref))return{result:{},missing:[j(new c.a(4),i)]};var o=i.fragmentMap,a=i.variables,s=i.policies,l=i.store,f=[],p={result:null},h=l.getFieldValue(n,"__typename");function d(){return p.missing||(p.missing=[])}function b(t){var e;return t.missing&&(e=d()).push.apply(e,t.missing),t.result}this.config.addTypename&&"string"==typeof h&&!s.rootIdsByTypename[h]&&f.push({__typename:h});var v=new Set(r.selections);return v.forEach((function(t){var r;if(Object(u.K)(t,a))if(Object(u.y)(t)){var l=s.readField({fieldName:t.name.value,field:t,variables:i.variables,from:n},i),p=Object(u.J)(t);i.path.push(p),void 0===l?u.d.added(t)||d().push(j(new c.a(5),i)):Array.isArray(l)?l=b(e.executeSubSelectedArray({field:t,array:l,context:i})):t.selectionSet&&null!=l&&(l=b(e.executeSelectionSet({selectionSet:t.selectionSet,objectOrReference:l,context:i}))),void 0!==l&&f.push(((r={})[p]=l,r)),Object(c.b)(i.path.pop()===p)}else{var y=void 0;Object(u.z)(t)?y=t:Object(c.b)(y=o[t.name.value],6),s.fragmentMatches(y,h)&&y.selectionSet.selections.forEach(v.add,v)}})),p.result=Object(u.G)(f),this.knownResults.set(p.result,r),p},t.prototype.execSubSelectedArrayImpl=function(t){var e,r=this,n=t.field,i=t.array,o=t.context;function a(t,r){return t.missing&&(e=e||[]).push.apply(e,t.missing),Object(c.b)(o.path.pop()===r),t.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),{result:i=i.map((function(t,e){return null===t?null:(o.path.push(e),Array.isArray(t)?a(r.executeSubSelectedArray({field:n,array:t,context:o}),e):n.selectionSet?a(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:t,context:o}),e):(Object(c.b)(o.path.pop()===e),t))})),missing:e}},t}();var k=function(){function t(t,e){this.cache=t,this.reader=e}return t.prototype.writeToStore=function(t){var e=t.query,r=t.result,n=t.dataId,i=t.store,a=t.variables,s=Object(u.q)(e),c=Object(f.d)();a=Object(o.a)(Object(o.a)({},Object(u.l)(s)),a);var l=this.processSelectionSet({result:r||Object.create(null),dataId:n,selectionSet:s.selectionSet,context:{store:i,written:Object.create(null),merge:function(t,e){return c.merge(t,e)},variables:a,varString:JSON.stringify(a),fragmentMap:Object(u.k)(Object(u.m)(e))}}),p=Object(u.B)(l)?l:n&&Object(u.D)(n)||void 0;return p&&i.retain(p.__ref),p},t.prototype.processSelectionSet=function(t){var e=this,r=t.dataId,n=t.result,i=t.selectionSet,o=t.context,a=t.out,s=void 0===a?{shouldApplyMerges:!1}:a,l=this.cache.policies,f=l.identify(n,i,o.fragmentMap),p=f[0],h=f[1];if("string"==typeof(r=r||p)){var d=o.written[r]||(o.written[r]=[]),b=Object(u.D)(r);if(d.indexOf(i)>=0)return b;if(d.push(i),this.reader&&this.reader.isFresh(n,b,i,o))return b}var v=Object.create(null);h&&(v=o.merge(v,h));var y=r&&l.rootTypenamesById[r]||Object(u.u)(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof y&&(v.__typename=y);var m=new Set(i.selections);if(m.forEach((function(t){var r;if(Object(u.K)(t,o.variables))if(Object(u.y)(t)){var i=Object(u.J)(t),a=n[i];if(void 0!==a){var f=l.getStoreFieldName({typename:y,fieldName:t.name.value,field:t,variables:o.variables}),p=e.processFieldValue(a,t,o,s);l.hasMergeFunction(y,t.name.value)&&(p={__field:t,__typename:y,__value:p},s.shouldApplyMerges=!0),v=o.merge(v,((r={})[f]=p,r))}else if(l.usingPossibleTypes&&!Object(u.x)(["defer","client"],t))throw new c.a(8)}else{var h=Object(u.n)(t,o.fragmentMap);h&&l.fragmentMatches(h,y)&&h.selectionSet.selections.forEach(m.add,m)}})),"string"==typeof r){var g=Object(u.D)(r);return s.shouldApplyMerges&&(v=l.applyMerges(g,v,o)),o.store.merge(r,v),g}return v},t.prototype.processFieldValue=function(t,e,r,n){var i=this;return e.selectionSet&&null!==t?Array.isArray(t)?t.map((function(t){return i.processFieldValue(t,e,r,n)})):this.processSelectionSet({result:t,selectionSet:e.selectionSet,context:r,out:n}):t},t}();new Set;var S=r(81),x=r(109);r.d(e,"a",(function(){return Q}));var q={dataIdFromObject:x.b,addTypename:!0,resultCaching:!0,typePolicies:{}},Q=function(t){function e(e){void 0===e&&(e={});var r=t.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=S.b,r.txCount=0,r.maybeBroadcastWatch=Object(a.c)((function(t){return r.broadcastWatch.call(r,t)}),{makeCacheKey:function(t){var e=t.optimistic?r.optimisticData:r.data;if(g(e)){var n=t.optimistic,i=t.rootId,o=t.variables;return e.makeCacheKey(t.query,t.callback,JSON.stringify({optimistic:n,rootId:i,variables:o}))}}}),r.watchDep=Object(a.b)(),r.config=Object(o.a)(Object(o.a)({},q),e),r.addTypename=!!r.config.addTypename,r.policies=new x.a({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.data=new d.Root({policies:r.policies,resultCaching:r.config.resultCaching}),r.optimisticData=r.data,r.storeWriter=new k(r,r.storeReader=new w({cache:r,addTypename:r.addTypename})),r}return Object(o.c)(e,t),e.prototype.restore=function(t){return t&&this.data.replace(t),this},e.prototype.extract=function(t){return void 0===t&&(t=!1),(t?this.optimisticData:this.data).toObject()},e.prototype.read=function(t){var e=t.optimistic?this.optimisticData:this.data;return("string"!=typeof t.rootId||e.has(t.rootId))&&this.storeReader.readQueryFromStore({store:e,query:t.query,variables:t.variables,rootId:t.rootId,config:this.config})||null},e.prototype.write=function(t){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:t.query,result:t.result,dataId:t.dataId,variables:t.variables})}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},e.prototype.modify=function(t){if(f.b.call(t,"id")&&!t.id)return!1;var e=t.optimistic?this.optimisticData:this.data;try{return++this.txCount,e.modify(t.id||"ROOT_QUERY",t.fields)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},e.prototype.diff=function(t){return this.storeReader.diffQueryAgainstStore({store:t.optimistic?this.optimisticData:this.data,rootId:t.id||"ROOT_QUERY",query:t.query,variables:t.variables,returnPartialData:t.returnPartialData,config:this.config})},e.prototype.watch=function(t){var e=this;return this.watches.add(t),t.immediate&&this.maybeBroadcastWatch(t),function(){e.watches.delete(t)}},e.prototype.gc=function(){return this.optimisticData.gc()},e.prototype.retain=function(t,e){return(e?this.optimisticData:this.data).retain(t)},e.prototype.release=function(t,e){return(e?this.optimisticData:this.data).release(t)},e.prototype.identify=function(t){return Object(u.B)(t)?t.__ref:this.policies.identify(t)[0]},e.prototype.evict=function(t){if(!t.id){if(f.b.call(t,"id"))return!1;t=Object(o.a)(Object(o.a)({},t),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(t)}finally{--this.txCount||!1===t.broadcast||this.broadcastWatches()}},e.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(t){var e=this.optimisticData.removeLayer(t);e!==this.optimisticData&&(this.optimisticData=e,this.broadcastWatches())},e.prototype.performTransaction=function(t,e){var r=this,n=function(e){var n=r,i=n.data,o=n.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{t(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}};"string"==typeof e?this.optimisticData=this.optimisticData.addLayer(e,n):null===e?n(this.data):n(),this.broadcastWatches()},e.prototype.transformDocument=function(t){if(this.addTypename){var e=this.typenameDocumentCache.get(t);return e||(e=Object(u.d)(t),this.typenameDocumentCache.set(t,e),this.typenameDocumentCache.set(e,e)),e}return t},e.prototype.broadcastWatches=function(){var t=this;this.txCount||this.watches.forEach((function(e){return t.maybeBroadcastWatch(e)}))},e.prototype.broadcastWatch=function(t){this.watchDep.dirty(t),this.watchDep(t),t.callback(this.diff({query:t.query,variables:t.variables,optimistic:t.optimistic}))},e}(s.a)},199:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(1),i=r(31),o=r(2);function a(t){return new i.ApolloLink((function(e,r){var i=Object(n.e)(e,[]);return new o.c((function(n){var o;return Promise.resolve(i).then((function(r){return t(r,e.getContext())})).then(e.setContext).then((function(){o=r(e).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)})})).catch(n.error.bind(n)),function(){o&&o.unsubscribe()}}))}))}},2:function(t,e,r){"use strict";var n=r(25),i=r(7);function o(t,e){var r=t.directives;return!r||!r.length||function(t){var e=[];t&&t.length&&t.forEach((function(t){if("skip"===(r=t.name.value)||"include"===r){var r,n=t.arguments;t.name.value;Object(i.b)(n&&1===n.length,38);var o=n[0];Object(i.b)(o.name&&"if"===o.name.value,39);var a=o.value;Object(i.b)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),40),e.push({directive:t,ifArgument:o})}}));return e}(r).every((function(t){var r=t.directive,n=t.ifArgument,o=!1;return"Variable"===n.value.kind?(o=e&&e[n.value.name.value],Object(i.b)(void 0!==o,37)):o=n.value.value,"skip"===r.name.value?!o:o}))}function a(t,e){return function(t){var e=[];return Object(n.b)(t,{Directive:function(t){e.push(t.name.value)}}),e}(e).some((function(e){return t.indexOf(e)>-1}))}function s(t){return t&&a(["client"],t)&&a(["export"],t)}var u=r(1);function c(t,e){var r=e,n=[];return t.definitions.forEach((function(t){if("OperationDefinition"===t.kind)throw new i.a(41);"FragmentDefinition"===t.kind&&n.push(t)})),void 0===r&&(Object(i.b)(1===n.length,42),r=n[0].name.value),Object(u.a)(Object(u.a)({},t),{definitions:Object(u.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions)})}function l(t){void 0===t&&(t=[]);var e={};return t.forEach((function(t){e[t.name.value]=t})),e}function f(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":var r=e&&e[t.name.value];return Object(i.b)(r,43),r;default:return null}}var p=r(131),h=r.n(p);function d(t){return{__ref:String(t)}}function b(t){return Boolean(t&&"object"==typeof t&&"string"==typeof t.__ref)}function v(t,e,r,n){if(function(t){return"IntValue"===t.kind}(r)||function(t){return"FloatValue"===t.kind}(r))t[e.value]=Number(r.value);else if(function(t){return"BooleanValue"===t.kind}(r)||function(t){return"StringValue"===t.kind}(r))t[e.value]=r.value;else if(function(t){return"ObjectValue"===t.kind}(r)){var o={};r.fields.map((function(t){return v(o,t.name,t.value,n)})),t[e.value]=o}else if(function(t){return"Variable"===t.kind}(r)){var a=(n||{})[r.name.value];t[e.value]=a}else if(function(t){return"ListValue"===t.kind}(r))t[e.value]=r.values.map((function(t){var r={};return v(r,e,t,n),r[e.value]}));else if(function(t){return"EnumValue"===t.kind}(r))t[e.value]=r.value;else{if(!function(t){return"NullValue"===t.kind}(r))throw new i.a(52);t[e.value]=null}}function y(t,e){var r=null;t.directives&&(r={},t.directives.forEach((function(t){r[t.name.value]={},t.arguments&&t.arguments.forEach((function(n){var i=n.name,o=n.value;return v(r[t.name.value],i,o,e)}))})));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach((function(t){var r=t.name,i=t.value;return v(n,r,i,e)}))),g(t.name.value,n,r)}var m=["connection","include","skip","client","rest","export"];function g(t,e,r){if(e&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach((function(t){i[t]=e[t]})),r.connection.key+"("+JSON.stringify(i)+")"}return r.connection.key}var o=t;if(e){var a=h()(e);o+="("+a+")"}return r&&Object.keys(r).forEach((function(t){-1===m.indexOf(t)&&(r[t]&&Object.keys(r[t]).length?o+="@"+t+"("+JSON.stringify(r[t])+")":o+="@"+t)})),o}function O(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach((function(t){var n=t.name,i=t.value;return v(r,n,i,e)})),r}return null}function j(t){return t.alias?t.alias.value:t.name.value}function w(t,e,r){if("string"==typeof t.__typename)return t.__typename;for(var n=0,i=e.selections;n1)for(var n=new K,i=1;i0}function it(t){return t.errors&&t.errors.length>0||!1}"function"==typeof Symbol&&Symbol.species&&Object.defineProperty(rt,Symbol.species,{value:B.a});var ot="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product);function at(){for(var t=[],e=0;e0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]this.maxSize&&!this.paused?[4,this.purge()]:[3,2];case 1:return r.sent(),this.paused=!0,[2];case 2:return this.paused&&(this.paused=!1),[4,this.storage.write(t)];case 3:return r.sent(),this.log.info("string"==typeof t?"Persisted cache of size "+t.length:"Persisted cache"),[3,5];case 4:throw e=r.sent(),this.log.error("Error persisting cache",e),e;case 5:return[2]}}))}))},t.prototype.restore=function(){return u(this,void 0,void 0,(function(){var t,e;return c(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),[4,this.storage.read()];case 1:return null==(t=r.sent())?[3,3]:[4,this.cache.restore(t)];case 2:return r.sent(),this.log.info("string"==typeof t?"Restored cache of size "+t.length:"Restored cache"),[3,4];case 3:this.log.info("No stored cache to restore"),r.label=4;case 4:return[3,6];case 5:throw e=r.sent(),this.log.error("Error restoring cache",e),e;case 6:return[2]}}))}))},t.prototype.purge=function(){return u(this,void 0,void 0,(function(){var t;return c(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.storage.purge()];case 1:return e.sent(),this.log.info("Purged cache storage"),[3,3];case 2:throw t=e.sent(),this.log.error("Error purging cache storage",t),t;case 3:return[2]}}))}))},t}(),f=function(t){var e=t.cache;return function(t){var r=e.write;return e.write=function(){for(var n=[],i=0;i=i)&&(r?r(n,e):!!n)}}(i),r}return Object(n.c)(e,t),e.prototype.request=function(t,e){var r=new a(t,e,this.delayFor,this.retryIf);return r.start(),new o.c((function(t){return r.subscribe(t),function(){r.unsubscribe(t)}}))},e}(i.ApolloLink);r.d(e,"a",(function(){return s}))},274:function(t,e,r){"use strict";(function(t){}).call(this,r(149))},275:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__spreadArrays||function(){for(var t=0,e=0,r=arguments.length;e0)t!==n&&(t=n,o.dirty(r),e.forEach(u));else{var i=a.getValue();i&&e.add(i),o(r)}return t}}function u(t){t.broadcastWatches&&t.broadcastWatches()}}}]);