1(window.webpackJsonp_ab=window.webpackJsonp_ab||[]).push([[19],{211:function(e,t,r){"use strict";r.d(t,"b",(function(){return be})),r.d(t,"F",(function(){return de.a})),r.d(t,"k",(function(){return J})),r.d(t,"i",(function(){return N.a})),r.d(t,"B",(function(){return L.b})),r.d(t,"c",(function(){return L.a})),r.d(t,"e",(function(){return fe})),r.d(t,"a",(function(){return ge})),r.d(t,"g",(function(){return st})),r.d(t,"h",(function(){return Oe})),r.d(t,"p",(function(){return m})),r.d(t,"E",(function(){return ie})),r.d(t,"t",(function(){return ct.c})),r.d(t,"x",(function(){return ct.e})),r.d(t,"O",(function(){return ct.f})),r.d(t,"m",(function(){return ct.b})),r.d(t,"v",(function(){return ct.d})),r.d(t,"d",(function(){return ct.a})),r.d(t,"G",(function(){return ut.g})),r.d(t,"M",(function(){return ut.l})),r.d(t,"w",(function(){return ut.f})),r.d(t,"q",(function(){return ut.e})),r.d(t,"J",(function(){return ut.i})),r.d(t,"K",(function(){return ut.j})),r.d(t,"l",(function(){return ut.b})),r.d(t,"o",(function(){return ut.d})),r.d(t,"L",(function(){return ut.k})),r.d(t,"n",(function(){return ut.c})),r.d(t,"f",(function(){return ut.a})),r.d(t,"I",(function(){return ut.h})),r.d(t,"y",(function(){return lt.a})),r.d(t,"Q",(function(){return ft.a})),r.d(t,"z",(function(){return ht.a})),r.d(t,"P",(function(){return pt.a})),r.d(t,"j",(function(){return T.a})),r.d(t,"C",(function(){return d.g})),r.d(t,"D",(function(){return d.h})),r.d(t,"N",(function(){return dt.c})),r.d(t,"A",(function(){return yt.gql})),r.d(t,"H",(function(){return yt.resetCaches})),r.d(t,"s",(function(){return yt.disableFragmentWarnings})),r.d(t,"u",(function(){return yt.enableExperimentalFragmentVariables})),r.d(t,"r",(function(){return yt.disableExperimentalFragmentVariables}));var i=r(3),n=r(1),o=r(70),a=r(503),s=r(568),c=r(502),u=r(12),l=r(53),f=r(101),h=r(569),p=r(570),d=r(124),y=r(1466),b=r(1465),v=Object.prototype.hasOwnProperty;function m(e,t){var r=e.__typename,i=e.id,n=e._id;if("string"==typeof r&&(t&&(t.keyObject=void 0!==i?{id:i}:void 0!==n?{_id:n}:void 0),void 0===i&&(i=n),void 0!==i))return"".concat(r,":").concat("number"==typeof i||"string"==typeof i?i:JSON.stringify(i))}var g={dataIdFromObject:m,addTypename:!0,resultCaching:!0,canonizeResults:!1};function O(e){var t=e.canonizeResults;return void 0===t?g.canonizeResults:t}var j=/^[_a-z][_0-9a-z]*/i;function _(e){var t=e.match(j);return t?t[0]:e}function w(e,t,r){return!!Object(f.a)(t)&&(k(t)?t.every((function(t){return w(e,t,r)})):e.selections.every((function(e){if(Object(d.e)(e)&&Object(y.c)(e,r)){var i=Object(d.i)(e);return v.call(t,i)&&(!e.selectionSet||w(e.selectionSet,t[i],r))}return!0})))}function S(e){return Object(f.a)(e)&&!Object(d.g)(e)&&!k(e)}var k=function(e){return Array.isArray(e)};var E,R,Q=function(){function e(){this.known=new(h.d?WeakSet:Set),this.pool=new l.a(h.c),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return Object(f.a)(e)&&this.known.has(e)},e.prototype.pass=function(e){if(Object(f.a)(e)){var t=function(e){return Object(f.a)(e)?k(e)?e.slice(0):Object(n.a)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(Object(f.a)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var i=e.map(this.admit,this);return(s=this.pool.lookupArray(i)).array||(this.known.add(s.array=i),__DEV__&&Object.freeze(i)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var n=Object.getPrototypeOf(e),o=[n],a=this.sortedKeys(e);o.push(a.json);var s,c=o.length;if(a.sorted.forEach((function(r){o.push(t.admit(e[r]))})),!(s=this.pool.lookupArray(o)).object){var u=s.object=Object.create(n);this.known.add(u),a.sorted.forEach((function(e,t){u[e]=o[c+t]})),__DEV__&&Object.freeze(u)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var i=JSON.stringify(t);(r.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,r.keys={sorted:t,json:i})}return r.keys},e}(),q=Object.assign((function(e){if(Object(f.a)(e)){void 0===E&&D();var t=E.admit(e),r=R.get(t);return void 0===r&&R.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)}),{reset:D});function D(){E=new Q,R=new(h.c?WeakMap:Map)}
1var F=r(1467),P=r(1468),I=r(166),M=r(1478),x=r(572),T=r(126),C=r(1470),V=r(591),L=r(65),N=r(22),A=r(1469),z=r(293),W=r(571),B=Object.assign,U=Object.hasOwnProperty,J=function(e){function t(t){var r=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=H)}catch(e){}var r=!a.observers.size;a.observers.add(e);var i=a.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(i.result),r&&a.reobserve().catch((function(){})),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}}))||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=r,a.isTornDown=!1;var s=r.defaultOptions.watchQuery,c=(void 0===s?{}:s).fetchPolicy,u=void 0===c?"cache-first":c,l=o.fetchPolicy,f=void 0===l?u:l,h=o.initialFetchPolicy,p=void 0===h?"standby"===f?u:f:h;a.options=Object(n.a)(Object(n.a)({},o),{initialFetchPolicy:p,fetchPolicy:f}),a.queryId=i.queryId||r.generateQueryId();var d=Object(I.f)(a.query);return a.queryName=d&&d.name&&d.name.value,a}return Object(n.c)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var i={next:function(r){t(r),e.observers.delete(i),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){n.unsubscribe()}),0)},error:r},n=e.subscribe(i)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||N.a.ready,i=Object(n.a)(Object(n.a)({},t),{loading:Object(N.b)(r),networkStatus:r}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("network-only"===a||"no-cache"===a||"standby"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),Object(u.a)(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,!s.complete||i.networkStatus!==N.a.loading||"cache-first"!==a&&"cache-only"!==a||(i.networkStatus=N.a.ready,i.loading=!1)):i.partial=!0,!__DEV__||s.complete||this.options.partialRefetch||i.loading||i.data||i.error||Y(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!Object(u.a)(this.last.result,e)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||Object(u.a)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},o=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===o?o:"no-cache"===o?"no-cache":"network-only",__DEV__&&e&&U.call(e,"variables")){var a=Object(I.h)(this.query),s=a.variableDefinitions;s&&s.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&i.c.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=a.name)||void 0===t?void 0:t.value)||JSON.stringify(a),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!Object(u.a)(this.options.variables,e)&&(r.variables=this.options.variables=Object(n.a)(Object(n.a)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,N.a.refetch)},t.prototype.fetchMore=function(e){var t=this,r=Object(n.a)(Object(n.a)({},e.query?e:Object(n.a)(Object(n.a)(Object(n.a)(Object(n.a)({},this.options),{query:this.query}),e),{variables:Object(n.a)(Object(n.a)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=N.a.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(i,r,N.a.fetchMore).then((function(n){return t.queryManager.removeQuery(i),o.networkStatus===N.a.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return o(e,{fetchMoreResult:n.data,variables:r.variables})})):i.writeQuery({query:r.query,variables:r.variables,data:n.data})},onWatchUpdated:function(e){s.add(e.query)}}),n})).finally((function(){s.has(t.query)||K(t)}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var i=e.updateQuery;i&&t.updateQuery((function(e,t){var n=t.variables;return i(e,{subscriptionData:r,variables:n})}))},error:function(t){e.onError?e.onError(t):__DEV__&&i.c.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return Object(u.a)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},N.a.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,i=void 0===r?"cache-first":r,n=t.initialFetchPolicy,o=void 0===n?i:n;"standby"===i||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(i,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(r){if(!t||t.interval!==r){__DEV__?Object(i.c)(r,"Attempted to start a polling query without a polling interval."):Object(i.c)(r,10),(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&(Object(N.b)(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"network-only"},N.a.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=Object(n.a)(Object(n.a)({},this.last),{result:this.queryManager.assumeImmutableResults?e:Object(A.a)(e),variables:t}),Object(V.a)(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var r=this;this.isTornDown=!1;var i=t===N.a.refetch||t===N.a.fetchMore||t===N.a.poll,o=this.options.variables,a=this.options.fetchPolicy,s=Object(p.a)(this.options,e||{}),c=i?s:B(this.options,s);i||(this.updatePolling(),e&&e.variables&&!Object(u.a)(e.variables,o)&&"standby"!==c.fetchPolicy&&c.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",c),void 0===t&&(t=N.a.setVariables)));var l=c.variables&&Object(n.a)({},c.variables),f=this.fetch(c,t),h={next:function(e){r.reportResult(e,l)},error:function(e){r.reportError(e,l)}};
1return i||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=f,this.observer=h),f.addObserver(h),f.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError();(r||this.isDifferentFromLastResult(e))&&((r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),Object(z.a)(this.observers,"next",e))},t.prototype.reportError=function(e,t){var r=Object(n.a)(Object(n.a)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:N.a.error,loading:!1});this.updateLastResult(r,t),Object(z.a)(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(T.a);function K(e){var t=e.options,r=t.fetchPolicy,i=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=i,"function"==typeof i?i.apply(this,arguments):r}}):e.reobserve()}function H(e){__DEV__&&i.c.error("Unhandled error",e.message,e.stack)}function Y(e){__DEV__&&e&&__DEV__&&i.c.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}Object(W.a)(J);var G=r(228),$=r(287),X=r(39),Z=new(r(98).a),ee=new WeakMap;function te(e){var t=ee.get(e);return t||ee.set(e,t={vars:new Set,dep:Object(X.a)()}),t}function re(e){te(e).vars.forEach((function(t){return t.forgetCache(e)}))}function ie(e){var t=new Set,r=new Set,i=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){te(e).dep.dirty(i),ne(e)}));var a=Array.from(r);r.clear(),a.forEach((function(t){return t(e)}))}}else{var s=Z.getValue();s&&(n(s),te(s).dep(i))}return e};i.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var n=i.attachCache=function(e){return t.add(e),te(e).vars.add(i),i};return i.forgetCache=function(e){return t.delete(e)},i}function ne(e){e.broadcastWatches&&e.broadcastWatches()}var oe=function(){function e(e){var t=e.cache,r=e.client,i=e.resolvers,n=e.fragmentMatcher;this.cache=t,r&&(this.client=r),i&&this.addResolvers(i),n&&this.setFragmentMatcher(n)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(b.b)(t.resolvers,e)})):this.resolvers=Object(b.b)(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,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(n.b)(this,void 0,void 0,(function(){return Object(n.d)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then((function(e){return Object(n.a)(Object(n.a)({},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 Object(y.b)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return Object(M.c)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return Object(n.a)(Object(n.a)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(n.b)(this,void 0,void 0,(function(){return Object(n.d)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return Object(n.a)(Object(n.a)({},t),e.exportedVariables)}))]:[2,Object(n.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(G.b)(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 G.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(M.b)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,a){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),Object(n.b)(this,void 0,void 0,(function(){var s,c,u,l,f,h,p,d,y;return Object(n.d)(this,(function(b){return s=Object(I.e)(e),c=Object(I.d)(e),u=Object($.a)(c),l=s.operation,f=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",p=(h=this).cache,d=h.client,y={fragmentMap:u,context:Object(n.a)(Object(n.a)({},r),{cache:p,client:d}),variables:i,fragmentMatcher:o,defaultOperationType:f,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,t,y).then((function(e){return{result:e,exportedVariables:y.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r){return Object(n.b)(this,void 0,void 0,(function(){var o,a,s,c,u,l=this;return Object(n.d)(this,(function(f){return o=r.fragmentMap,a=r.context,s=r.variables,c=[t],u=function(e){return Object(n.b)(l,void 0,void 0,(function(){var u,l;
1return Object(n.d)(this,(function(n){return Object(y.c)(e,s)?Object(d.e)(e)?[2,this.resolveField(e,t,r).then((function(t){var r;void 0!==t&&c.push(((r={})[Object(d.i)(e)]=t,r))}))]:(Object(d.f)(e)?u=e:(u=o[e.name.value],__DEV__?Object(i.c)(u,"No fragment named ".concat(e.name.value)):Object(i.c)(u,9)),u&&u.typeCondition&&(l=u.typeCondition.name.value,r.fragmentMatcher(t,l,a))?[2,this.resolveSelectionSet(u.selectionSet,t,r).then((function(e){c.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(u)).then((function(){return Object(b.c)(c)}))]}))}))},e.prototype.resolveField=function(e,t,r){return Object(n.b)(this,void 0,void 0,(function(){var i,o,a,s,c,u,l,f,h,p=this;return Object(n.d)(this,(function(n){return i=r.variables,o=e.name.value,a=Object(d.i)(e),s=o!==a,c=t[a]||t[o],u=Promise.resolve(c),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||r.defaultOperationType,(f=this.resolvers&&this.resolvers[l])&&(h=f[s?o:a])&&(u=Promise.resolve(Z.withValue(this.cache,h,[t,Object(d.a)(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,u.then((function(t){return void 0===t&&(t=c),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?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 i=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?i.resolveSubSelectedArray(e,t,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r):void 0})))},e}(),ae=new(h.c?WeakMap:Map);function se(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return ae.set(e,(ae.get(e)+1)%1e15),r.apply(this,arguments)})}function ce(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var ue=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;ae.has(r)||(ae.set(r,0),se(r,"evict"),se(r,"modify"),se(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||N.a.loading;return this.variables&&this.networkStatus!==N.a.loading&&!Object(u.a)(this.variables,e.variables)&&(t=N.a.setVariables),Object(u.a)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){ce(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&Object(u.a)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var i=this.cache.diff(t);return this.updateLastDiff(i,t),i},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||Object(u.a)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():K(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
1ce(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Object(N.b)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=Object(n.a)(Object(n.a)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Object(u.a)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===ae.get(this.cache)&&Object(u.a)(t,r.variables)&&Object(u.a)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r){var i=this;this.graphQLErrors=Object(V.a)(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==r&&(le(e,t.errorPolicy)?this.cache.performTransaction((function(n){if(i.shouldWrite(e,t.variables))n.writeQuery({query:i.document,data:e.data,variables:t.variables,overwrite:1===r}),i.lastWrite={result:e,variables:t.variables,dmCount:ae.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var o=i.getDiffOptions(t.variables),a=n.diff(o);i.stopped||i.updateWatch(t.variables),i.updateLastDiff(a,o),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=N.a.ready},e.prototype.markError=function(e){return this.networkStatus=N.a.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function le(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,i=!Object(P.a)(e);return!i&&r&&e.data&&(i=!0),i}var fe,he=Object.prototype.hasOwnProperty,pe=function(){function e(e){var t=e.cache,r=e.link,i=e.defaultOptions,n=e.queryDeduplication,o=void 0!==n&&n,a=e.onBroadcast,s=e.ssrMode,c=void 0!==s&&s,u=e.clientAwareness,l=void 0===u?{}:u,f=e.localState,p=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(h.c?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.defaultOptions=i||Object.create(null),this.queryDeduplication=o,this.clientAwareness=l,this.localState=f||new oe({cache:t}),this.ssrMode=c,this.assumeImmutableResults=!!p,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches(__DEV__?new i.b("QueryManager stopped while query was in flight"):new i.b(11))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,o=e.mutation,a=e.variables,s=e.optimisticResponse,c=e.updateQueries,u=e.refetchQueries,l=void 0===u?[]:u,f=e.awaitRefetchQueries,h=void 0!==f&&f,p=e.update,d=e.onQueryUpdated,y=e.fetchPolicy,b=void 0===y?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":y,v=e.errorPolicy,m=void 0===v?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":v,g=e.keepRootFields,O=e.context;return Object(n.b)(this,void 0,void 0,(function(){var e,t,r;return Object(n.d)(this,(function(u){switch(u.label){case 0:return __DEV__?Object(i.c)(o,"mutation option is required. You must specify your GraphQL document in the mutation option."):Object(i.c)(o,12),__DEV__?Object(i.c)("network-only"===b||"no-cache"===b,"Mutations supp
1ort only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):Object(i.c)("network-only"===b||"no-cache"===b,13),e=this.generateMutationId(),o=this.transform(o).document,a=this.getVariables(o,a),this.transform(o).hasClientExports?[4,this.localState.addExportedVariables(o,a,O)]:[3,2];case 1:a=u.sent(),u.label=2;case 2:return t=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:b,errorPolicy:m,context:O,updateQueries:c,update:p,keepRootFields:g}),this.broadcastQueries(),r=this,[2,new Promise((function(i,u){return Object(F.a)(r.getObservableFromLink(o,Object(n.a)(Object(n.a)({},O),{optimisticResponse:s}),a,!1),(function(i){if(Object(P.a)(i)&&"none"===m)throw new L.a({graphQLErrors:i.errors});t&&(t.loading=!1,t.error=null);var u=Object(n.a)({},i);return"function"==typeof l&&(l=l(u)),"ignore"===m&&Object(P.a)(u)&&delete u.errors,r.markMutationResult({mutationId:e,result:u,document:o,variables:a,fetchPolicy:b,errorPolicy:m,context:O,update:p,updateQueries:c,awaitRefetchQueries:h,refetchQueries:l,removeOptimistic:s?e:void 0,onQueryUpdated:d,keepRootFields:g})})).subscribe({next:function(e){r.broadcastQueries(),i(e)},error:function(i){t&&(t.loading=!1,t.error=i),s&&r.cache.removeOptimistic(e),r.broadcastQueries(),u(i instanceof L.a?i:new L.a({networkError:i}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&le(i,e.errorPolicy)){o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var s=e.updateQueries;s&&this.queries.forEach((function(e,n){var a=e.observableQuery,c=a&&a.queryName;if(c&&he.call(s,c)){var u=s[c],l=r.queries.get(n),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var y=u(d,{mutationResult:i,queryName:f&&Object(I.g)(f)||void 0,queryVariables:h});y&&o.push({result:y,dataId:"ROOT_QUERY",query:f,variables:h})}}}))}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach((function(e){return t.write(e)}));var s=e.update;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:r.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&(i=Object(n.a)(Object(n.a)({},i),{data:c.result}))}s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,i=t.DELETE;return"__typename"===r?e:i}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return c.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then((function(){return i}))}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult(Object(n.a)(Object(n.a)({},t),{result:{data:o}}),e)}catch(e){__DEV__&&i.c.error(e)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),i=Object(M.d)(this.cache.transformForLink(r)),o=this.localState.clientQuery(r),a=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:Object(y.a)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:Object(I.b)(Object(I.f)(r)),asQuery:Object(n.a)(Object(n.a)({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?Object(n.a)(Object(n.a)({},e),{operation:"query"}):e}))})},c=function(e){e&&!t.has(e)&&t.set(e,s)};c(e),c(r),c(o),c(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(n.a)(Object(n.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=Object(n.a)(Object(n.a)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new ue(this),r=new J({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:r.query,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?Object(i.c)(e.query,"query option is required. You must specify your GraphQL document in the query option."):Object(i.c)(e.query,14),__DEV__?Object(i.c)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):Object(i.c)("Document"===e.query.kind,15),__DEV__?Object(i.c)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):Object(i.c)(!e.returnPartialData,16),__DEV__?Object(i.c)(!e.pollInterval,"pollInterval option only supported on watchQuery."):Object(i.c)(!e.pollInterval,17),this.fetchQuery(t,e).finally((function(){return r.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new i.b("Store reset while query was in flight (not completed in link chain)"):new i.b(18)),this.queries.forEac
1h((function(e){e.observableQuery?e.networkStatus=N.a.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"==typeof e?o.set(e,!1):Object(d.d)(e)?o.set(t.transform(e).document,!1):Object(f.a)(e)&&e.query&&a.add(e)})),this.queries.forEach((function(t,i){var n=t.observableQuery,a=t.document;if(n){if("all"===e)return void r.set(i,n);var s=n.queryName;if("standby"===n.options.fetchPolicy||"active"===e&&!n.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(r.set(i,n),s&&o.set(s,!0),a&&o.set(a,!0))}})),a.size&&a.forEach((function(e){var o=Object(x.a)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new J({queryManager:t,queryInfo:a,options:Object(n.a)(Object(n.a)({},e),{fetchPolicy:"network-only"})});Object(i.c)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)})),__DEV__&&o.size&&o.forEach((function(e,t){e||__DEV__&&i.c.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))})),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach((function(i,n){var o=i.options.fetchPolicy;i.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(i.refetch()),t.getQuery(n).setDiff(null)})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,i=e.fetchPolicy,n=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var c=function(e){return t.getObservableFromLink(r,s,e).map((function(o){if("no-cache"!==i&&(le(o,n)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Object(P.a)(o))throw new L.a({graphQLErrors:o.errors});return o}))};if(this.transform(r).hasClientExports){var u=this.localState.addExportedVariables(r,o,s).then(c);return new T.a((function(e){var t=null;return u.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var o,s,c=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u=this.transform(e).serverQuery;if(u){var l=this.inFlightLinkObservables,f=this.link,h={query:u,variables:r,operationName:Object(I.g)(u)||void 0,context:this.prepareContext(Object(n.a)(Object(n.a)({},t),{forceFetch:!i}))};if(t=h.context,i){var p=l.get(u)||new Map;l.set(u,p);var d=q(r);if(!(s=p.get(d))){var y=new C.a([Object(a.a)(f,h)]);p.set(d,s=y),y.cleanup((function(){p.delete(d)&&p.size<1&&l.delete(u)}))}}else s=new C.a([Object(a.a)(f,h)])}else s=new C.a([T.a.of({data:{}})]),t=this.prepareContext(t);var b=this.transform(e).clientQuery;return b&&(s=Object(F.a)(s,(function(e){return c.localState.runResolvers({document:b,remoteResult:e,context:t,variables:r})}))),s},e.prototype.getResultsFromLink=function(e,t,r){var i=e.lastRequestId=this.generateRequestId();return Object(F.a)(this.getObservableFromLink(e.document,r.context,r.variables),(function(n){var o=Object(V.a)(n.errors);if(i>=e.lastRequestId){if(o&&"none"===r.errorPolicy)throw e.markError(new L.a({graphQLErrors:n.errors}));e.markResult(n,r,t),e.markReady()}var a={data:n.data,loading:!1,networkStatus:N.a.ready};return o&&"ignore"!==r.errorPolicy&&(a.errors=n.errors,a.networkStatus=N.a.error),a}),(function(t){var r=Object(L.b)(t)?t:new L.a({networkError:t});throw i>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchQueryObservable=function(e,t,r){var i=this;void 0===r&&(r=N.a.loading);var n=this.transform(t.query).document,o=this.getVariables(n,t.variables),a=this.getQuery(e),s=this.defaultOptions.watchQuery,c=t.fetchPolicy,u=void 0===c?s&&s.fetchPolicy||"cache-first":c,l=t.errorPolicy,f=void 0===l?s&&s.errorPolicy||"none":l,h=t.returnPartialData,p=void 0!==h&&h,d=t.notifyOnNetworkStatusChange,y=void 0!==d&&d,b=t.context,v=void 0===b?{}:b,m=Object.assign({},t,{query:n,variables:o,fetchPolicy:u,errorPolicy:f,returnPartialData:p,notifyOnNetworkStatusChange:y,context:v}),g=function(e){m.variables=e;var n=i.fetchQueryByPolicy(a,m,r);return"standby"!==m.fetchPolicy&&n.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",t),n},O=function(){return i.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,(function(e){O(),setTimeout((function(){return j.cancel(e)}))}));var j=new C.a(this.transform(m.query).hasClientExports?this.localState.addExportedVariables(m.query,m.variables,m.context).then(g):g(m.variables));return j.promise.then(O,O),j},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,i=e.include,n=e.optimistic,o=void 0!==n&&n,a=e.removeOptimistic,s=void 0===a?o?Object(x.a)("refetchQueries"):void 0:a,c=e.onQueryUpdated,u=new Map;
1i&&this.getObservableQueries(i).forEach((function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})}));var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var i=e.watcher instanceof ue&&e.watcher.observableQuery;if(i){if(c){u.delete(i.queryId);var n=c(i,t,r);return!0===n&&(n=i.refetch()),!1!==n&&l.set(i,n),n}null!==c&&u.set(i.queryId,{oq:i,lastDiff:r,diff:t})}}}),u.size&&u.forEach((function(e,r){var i,n=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=n.queryInfo;s.reset(),a=s.getDiff()}i=c(n,a,o)}c&&!0!==i||(i=n.refetch()),!1!==i&&l.set(n,i),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)})),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,c=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,h=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:this.transform(o).document,variables:a,networkStatus:r});var y=function(){return e.getDiff(a)},b=function(t,r){void 0===r&&(r=e.networkStatus||N.a.loading);var s=t.result;!__DEV__||f||Object(u.a)(s,{})||Y(t.missing);var c=function(e){return T.a.of(Object(n.a)({data:e,loading:Object(N.b)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:h,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return c(e.data||void 0)})):c(s)},v="no-cache"===s?0:r===N.a.refetch&&"merge"!==c?1:2,m=function(){return i.getResultsFromLink(e,v,{variables:a,context:h,fetchPolicy:s,errorPolicy:l})},g=p&&"number"==typeof d&&d!==r&&Object(N.b)(r);switch(s){default:case"cache-first":return(O=y()).complete?[b(O,e.markReady())]:f||g?[b(O),m()]:[m()];case"cache-and-network":var O;return(O=y()).complete||f||g?[b(O),m()]:[m()];case"cache-only":return[b(y(),e.markReady())];case"network-only":return g?[b(y()),m()]:[m()];case"no-cache":return g?[b(e.getDiff()),m()]:[m()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new ue(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(n.a)(Object(n.a)({},t),{clientAwareness:this.clientAwareness})},e}(),de=r(1471),ye=!1,be=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,a=e.headers,u=e.cache,l=e.ssrMode,f=void 0!==l&&l,h=e.ssrForceFetchDelay,p=void 0===h?0:h,d=e.connectToDevTools,y=void 0===d?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:d,b=e.queryDeduplication,v=void 0===b||b,m=e.defaultOptions,g=e.assumeImmutableResults,O=void 0!==g&&g,j=e.resolvers,_=e.typeDefs,w=e.fragmentMatcher,S=e.name,k=e.version,E=e.link;if(E||(E=r?new c.a({uri:r,credentials:n,headers:a}):o.a.empty()),!u)throw __DEV__?new i.b("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new i.b(7);if(this.link=E,this.cache=u,this.disableNetworkFetches=f||p>0,this.queryDeduplication=v,this.defaultOptions=m||Object.create(null),this.typeDefs=_,p&&setTimeout((function(){return t.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),y&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!ye&&__DEV__&&(ye=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var R=window.navigator,Q=R&&R.userAgent,q=void 0;"string"==typeof Q&&(Q.indexOf("Chrome/")>-1?q="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":Q.indexOf("Firefox/")>-1&&(q="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),q&&__DEV__&&i.c.log("Download the Apollo DevTools for a better development experience: "+q)}this.version=s.a,this.localState=new oe({cache:u,client:this,resolvers:j,fragmentMatcher:w}),this.queryManager=new pe({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:v,ssrMode:f,clientAwareness:{name:S,version:k},localState:this.localState,assumeImmutableResults:O,onBroadcast:y?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(de.a)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(n.a)(Object(n.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(de.a)(this.defaultOptions.query,e)),__DEV__?Object(i.c)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):Object(i.c)("cache-and-network"!==e.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(n.a)(Object(n.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(de.a)(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){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(a.a)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((function(e,t){r.push(t),n.push(e)}));var o=Promise.all(n);return o.queries=r,o.results=n,o.catch((function(e){__DEV__&&i.c.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))})),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}();fe||(fe={});var ve,me,ge=function(){function e(){this.getFragmentDoc=Object(X.b)($.c)}return e.prototype.batch=function(e){var t,r=this,i="string"==typeof e.o
1ptimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(r)}),i),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Object(n.a)(Object(n.a)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(Object(n.a)(Object(n.a)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,i=Object(n.f)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,o=e.fragmentName,a=Object(n.f)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var i=r.readQuery(e),o=t(i);return null==o?i:(r.writeQuery(Object(n.a)(Object(n.a)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var i=r.readFragment(e),o=t(i);return null==o?i:(r.writeFragment(Object(n.a)(Object(n.a)({},e),{data:o})),o)}})},e}(),Oe=function(e,t,r,i){this.message=e,this.path=t,this.query=r,this.variables=i},je=r(1473),_e=Object.create(null),we=function(){return _e},Se=Object.create(null),ke=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return Object(je.a)(Object(d.g)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Object(d.g)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Object(d.h)(e);if(Object(d.g)(e))return e;var i=r.policies.identify(e)[0];if(i){var n=Object(d.h)(i);return t&&r.merge(i,e),n}}}return e.prototype.toObject=function(){return Object(n.a)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),v.call(this.data,e)){var r=this.data[e];if(r&&v.call(r,t))return r[t]}return"__typename"===t&&v.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof qe?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),v.call(this.data,e)?this.data[e]:this instanceof qe?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;Object(d.g)(e)&&(e=e.__ref),Object(d.g)(t)&&(t=t.__ref);var o="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){__DEV__?Object(i.c)("string"==typeof r,"store.merge expects a string ID"):Object(i.c)("string"==typeof r,1);var s=new b.a(Fe).merge(o,a);if(this.data[r]=s,s!==o&&(delete this.refs[r],this.group.caching)){var c=Object.create(null);o||(c.__exists=1),Object.keys(a).forEach((function(e){if(!o||o[e]!==s[e]){c[e]=1;var t=_(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(c[t]=1),void 0!==s[e]||n instanceof qe||delete s[e]}})),!c.__typename||o&&o.__typename||this.policies.rootTypenamesById[r]!==s.__typename||delete c.__typename,Object.keys(c).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,i=this.lookup(e);if(i){var o=Object.create(null),a=!1,s=!0,c={DELETE:_e,INVALIDATE:Se,isReference:d.g,toReference:this.toReference,canRead:this.canRead,readField:function(t,i){return r.policies.readField("string"==typeof t?{fieldName:t,from:i||Object(d.h)(e)}:t,{store:r})}};
1if(Object.keys(i).forEach((function(u){var l=_(u),f=i[u];if(void 0!==f){var h="function"==typeof t?t:t[u]||t[l];if(h){var p=h===we?_e:h(Object(je.a)(f),Object(n.a)(Object(n.a)({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(e,u)}));p===Se?r.group.dirty(e,u):(p===_e&&(p=void 0),p!==f&&(o[u]=p,a=!0,f=p))}void 0!==f&&(s=!1)}})),a)return this.merge(e,o),s&&(this instanceof qe?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var i,n=this.lookup(e);if(n){var o=this.getFieldValue(n,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((i={})[a]=we,i):we)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(v.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof qe&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach((function(t){v.call(e.policies.rootTypenamesById,t)||r.push(t)})),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(r){e&&v.call(e,r)||t.delete(r)})),e){var r=e.__META,i=Object(n.f)(e,["__META"]);
1Object.keys(i).forEach((function(e){t.merge(e,i[e])})),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof qe?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(i){v.call(r,i)&&(Object.keys(e.findChildRefIds(i)).forEach(t.add,t),delete r[i])}));var i=Object.keys(r);if(i.length){for(var n=this;n instanceof qe;)n=n.parent;i.forEach((function(e){return n.delete(e)}))}return i},e.prototype.findChildRefIds=function(e){if(!v.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var i=new Set([r]);i.forEach((function(e){Object(d.g)(e)&&(t[e.__ref]=!0),Object(f.a)(e)&&Object.keys(e).forEach((function(t){var r=e[t];Object(f.a)(r)&&i.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Ee=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Object(X.a)():null,this.keyMaker=new l.a(h.c)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(Re(e,t));var r=_(t);r!==t&&this.d(Re(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Re(e,t),"__exists"===t?"forget":"setDirty")},e}();function Re(e,t){return t+"#"+e}function Qe(e,t){Pe(e)&&e.group.depend(t,"__exists")}ve=ke||(ke={}),me=function(e){function t(t){var r=t.policies,i=t.resultCaching,n=void 0===i||i,o=t.seed,a=e.call(this,r,new Ee(n))||this;return a.stump=new De(a),a.storageTrie=new l.a(h.c),o&&a.replace(o),a}return Object(n.c)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(ve),ve.Root=me;var qe=function(e){function t(t,r,i,n){var o=e.call(this,r.policies,n)||this;return o.id=t,o.parent=r,o.replay=i,o.group=n,i(o),o}return Object(n.c)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var i=t.data[e],n=r.lookup(e);
1n?i?i!==n&&Object.keys(i).forEach((function(r){Object(u.a)(i[r],n[r])||t.group.dirty(e,r)})):(t.group.dirty(e,"__exists"),Object.keys(n).forEach((function(r){t.group.dirty(e,r)}))):t.delete(e)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return Object(n.a)(Object(n.a)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return v.call(this.data,t)?Object(n.a)(Object(n.a)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(ke),De=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new Ee(t.group.caching,t.group))||this}return Object(n.c)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(qe);function Fe(e,t,r){var i=e[r],n=t[r];return Object(u.a)(i,n)?i:n}function Pe(e){return!!(e instanceof ke&&e.group.caching)}function Ie(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Me=function(){function e(e){var t=this;this.knownResults=new(h.c?WeakMap:Map),this.config=Object(p.a)(e,{addTypename:!1!==e.addTypename,canonizeResults:O(e)}),this.canon=e.canon||new Q,this.executeSelectionSet=Object(X.b)((function(e){var r,i=e.context.canonizeResults,o=Ie(e);o[3]=!i;var a=(r=t.executeSelectionSet).peek.apply(r,o);return a?i?Object(n.a)(Object(n.a)({},a),{result:t.canon.admit(a.result)}):a:(Qe(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:Ie,makeCacheKey:function(e,t,r,i){if(Pe(r.store))return r.store.makeCacheKey(e,Object(d.g)(t)?t.__ref:t,r.varString,i)}}),this.executeSubSelectedArray=Object(X.b)((function(e){return Qe(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,i=e.context;if(Pe(i.store))return i.store.makeCacheKey(t,r,i.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Q},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,i=e.rootId,o=void 0===i?"ROOT_QUERY":i,a=e.variables,s=e.returnPartialData,c=void 0===s||s,u=e.canonizeResults,l=void 0===u?this.config.canonizeResults:u,f=this.config.cache.policies;a=Object(n.a)(Object(n.a)({},Object(I.b)(Object(I.h)(r))),a);var h,p=Object(d.h)(o),y=this.executeSelectionSet({selectionSet:Object(I.e)(r).selectionSet,objectOrReference:p,enclosingRef:p,context:{store:t,query:r,policies:f,variables:a,varString:q(a),canonizeResults:l,fragmentMap:Object($.a)(Object(I.d)(r))}});if(y.missing&&(h=[new Oe(xe(y.missing),y.missing,r,a)],!c))throw h[0];return{result:y.result,complete:!h,missing:h}},e.prototype.isFresh=function(e,t,r,i){if(Pe(i.store)&&this.knownResults.get(e)===r){var n=this.executeSelectionSet.peek(r,t,i,this.canon.isKnown(e));if(n&&e===n.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,i=e.objectOrReference,n=e.enclosingRef,o=e.context;if(Object(d.g)(i)&&!o.policies.rootTypenamesById[i.__ref]&&!o.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var a,s=o.variables,c=o.policies,u=o.store.getFieldValue(i,"__typename"),l=[],f=new b.a;function h(e,t){var r;return e.missing&&(a=f.merge(a,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof u&&!c.rootIdsByTypename[u]&&l.push({__typename:u});var p=new Set(r.selections);p.forEach((function(e){var r,b;if(Object(y.c)(e,s))if(Object(d.e)(e)){var v=c.readField({fieldName:e.name.value,field:e,variables:o.variables,from:i},o),m=Object(d.i)(e);void 0===v?M.a.added(e)||(a=f.merge(a,((r={})[m]="Can't find field '".concat(e.name.value,"' on ").concat(Object(d.g)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),r))):k(v)?v=h(t.executeSubSelectedArray({field:e,array:v,enclosingRef:n,context:o}),m):e.selectionSet?null!=v&&(v=h(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:v,enclosingRef:Object(d.g)(v)?v:n,context:o}),m)):o.canonizeResults&&(v=t.canon.pass(v)),void 0!==v&&l.push(((b={})[m]=v,b))}else{var g=Object($.b)(e,o.fragmentMap);g&&c.fragmentMatches(g,u)&&g.selectionSet.selections.forEach(p.add,p)}}));var v={result:Object(b.c)(l),missing:a},m=o.canonizeResults?this.canon.admit(v):Object(je.a)(v);return m.result&&this.knownResults.set(m.result,r),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,a=e.enclosingRef,s=e.context,c=new b.a;function u(e,r){var i;
1return e.missing&&(t=c.merge(t,((i={})[r]=e.missing,i))),e.result}return n.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map((function(e,t){return null===e?null:k(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:s}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:Object(d.g)(e)?e:a,context:s}),t):(__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach((function(r){Object(f.a)(r)&&(__DEV__?Object(i.c)(!Object(d.g)(r),"Missing selection set for object of type ".concat(function(e,t){return Object(d.g)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r)," returned for query field ").concat(t.name.value)):Object(i.c)(!Object(d.g)(r),5),Object.values(r).forEach(n.add,n))}))}}(s.store,n,e),e)})),{result:s.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function xe(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var Te=r(1472),Ce=Object.create(null);function Ve(e){var t=JSON.stringify(e);return Ce[t]||(Ce[t]=Object.create(null))}function Le(e){var t=Ve(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},o=r.keyObject=Ae(e,(function(e){var o=We(r.storeObject,e,n);return void 0===o&&t!==r.storeObject&&v.call(t,e[0])&&(o=We(t,e,ze)),__DEV__?Object(i.c)(void 0!==o,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):Object(i.c)(void 0!==o,2),o}));return"".concat(r.typename,":").concat(JSON.stringify(o))})}function Ne(e){var t=Ve(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var i=r.field,n=r.variables,o=r.fieldName,a=Ae(e,(function(e){var r=e[0],o=r.charAt(0);if("@"!==o)if("$"!==o){if(t)return We(t,e)}else{var a=r.slice(1);if(n&&v.call(n,a)){var s=e.slice(0);return s[0]=a,We(n,s)}}else if(i&&Object(V.a)(i.directives)){var c=r.slice(1),u=i.directives.find((function(e){return e.name.value===c})),l=u&&Object(d.a)(u,n);return l&&We(l,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function Ae(e,t){var r=new b.a;return function e(t){var r=Ve(t);if(!r.paths){var i=r.paths=[],n=[];t.forEach((function(r,o){k(r)?(e(r).forEach((function(e){return i.push(n.concat(e))})),n.length=0):(n.push(r),k(t[o+1])||(i.push(n.slice(0)),n.length=0))}))}return r.paths}(e).reduce((function(e,i){var n,o=t(i);if(void 0!==o){for(var a=i.length-1;a>=0;--a)(n={})[i[a]]=o,o=n;e=r.merge(e,o)}return e}),Object.create(null))}function ze(e,t){return e[t]}function We(e,t,r){return r=r||ze,Be(t.reduce((function e(t,i){return k(t)?t.map((function(t){return e(t,i)})):t&&r(t,i)}),e))}function Be(e){return Object(f.a)(e)?k(e)?e.map(Be):Ae(Object.keys(e).sort(),(function(t){return We(e,t)})):e}function Ue(e){return void 0!==e.args?e.args:e.field?Object(d.a)(e.field,e.variables):null}d.b.setStringify(q);var Je=function(){},Ke=function(e,t){return t.fieldName},He=function(e,t,r){return(0,r.mergeObjects)(e,t)},Ye=function(e,t){return t},Ge=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=Object(n.a)({dataIdFromObject:m},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,i=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,s=t&&t.storeObject||e,c=Object(n.a)(Object(n.a)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=Xe(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var f=l(e,c);if(!k(f)){a=f;break}l=Le(f)}return a=a?String(a):void 0,c.keyObject?[a,c.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var i=e[r],o=i.queryType,a=i.mutationType,s=i.subscriptionType,c=Object(n.f)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),v.call(t.toBeAdded,r)?t.toBeAdded[r].push(c):t.toBeAdded[r]=[c]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,i=this.getTypePolicy(e),n=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?He:!1===t?Ye:e.merge}a(i,t.merge),i.keyFn=!1===n?Je:k(n)?Le(n):"function"==typeof n?n:i.keyFn,o&&Object.keys(o).forEac
1h((function(t){var i=r.getFieldPolicy(e,t,!0),n=o[t];if("function"==typeof n)i.read=n;else{var s=n.keyArgs,c=n.read,u=n.merge;i.keyFn=!1===s?Ke:k(s)?Ne(s):"function"==typeof s?s:i.keyFn,"function"==typeof c&&(i.read=c),a(i,u)}i.read&&i.merge&&(i.keyFn=i.keyFn||Ke)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(__DEV__?Object(i.c)(!n||n===e,"Cannot change root ".concat(e," __typename more than once")):Object(i.c)(!n||n===e,3),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var i=e.match(j);i&&i[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!v.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);i&&i.size&&i.forEach((function(e){var i=t.getTypePolicy(e),o=i.fields,a=Object(n.f)(i,["fields"]);Object.assign(r,a),Object.assign(r.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(r){t.updateTypePolicy(e,r)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var i=this.getTypePolicy(e).fields;return i[t]||r&&(i[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),c=[s],u=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&c.indexOf(t)<0&&c.push(t)},l=!(!r||!this.fuzzySubtypes.size),f=!1,h=0;h<c.length;++h){var p=c[h];if(p.has(a))return s.has(a)||(f&&__DEV__&&i.c.warn("Inferring subtype ".concat(t," of supertype ").concat(a)),s.add(a)),!0;p.forEach(u),l&&h===c.length-1&&w(e.selectionSet,r,n)&&(l=!1,f=!0,this.fuzzySubtypes.forEach((function(e,r){var i=t.match(e);i&&i[0]===t&&u(r)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,i=e.fieldName,n=this.getFieldPolicy(r,i,!1),o=n&&n.keyFn;if(o&&r)for(var a={typename:r,fieldName:i,field:e.field||null,variables:e.variables},s=Ue(e);o;){var c=o(s,a);if(!k(c)){t=c||i;break}o=Ne(c)}return void 0===t&&(t=e.field?Object(d.j)(e.field,e.variables):Object(d.b)(i,Ue(e))),!1===t?i:i===_(t)?t:i+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var i=t.store.getFieldValue(r,"__typename");i&&(e.typename=i)}var n=this.getStoreFieldName(e),o=_(n),a=t.store.getFieldValue(r,n),s=this.getFieldPolicy(e.typename,o,!1),c=s&&s.read;if(c){var u=$e(this,r,e,t,t.store.getStorage(Object(d.g)(r)?r.__ref:r,n));return Z.withValue(this.cache,c,[a,u])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var i=this.getFieldPolicy(e,t,!1),n=i&&i.merge;return!n&&r&&(n=(i=this.getTypePolicy(r))&&i.merge),n},e.prototype.runMergeFunction=function(e,t,r,i,n){var o=r.field,a=r.typename,s=r.merge;return s===He?Ze(i.store)(e,t):s===Ye?t:(i.overwrite&&(e=void 0),s(e,t,$e(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:i.variables},i,n||Object.create(null))))},e}();function $e(e,t,r,i,n){var o=e.getStoreFieldName(r),a=_(o),s=r.variables||i.variables,c=i.store,u=c.toReference,l=c.canRead;return{args:Ue(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:d.g,toReference:u,storage:n,cache:e.cache,canRead:l,readField:function(){return e.readField(Xe(arguments,t,s),i)},mergeObjects:Ze(i.store)}}function Xe(e,t,r){var o,a=e[0],s=e[1],c=e.length;return"string"==typeof a?o={fieldName:a,from:c>1?s:t}:(o=Object(n.a)({},a),v.call(o,"from")||(o.from=t)),__DEV__&&void 0===o.from&&__DEV__&&i.c.warn("Undefined 'from' passed to readField with arguments ".concat(Object(Te.a)(Array.from(e)))),void 0===o.variables&&(o.variables=r),o}function Ze(e){return function(t,r){if(k(t)||k(r))throw __DEV__?new i.b("Cannot automatically merge arrays"):new i.b(4);if(Object(f.a)(t)&&Object(f.a)(r)){var o=e.getFieldValue(t,"__typename"),a=e.getFieldValue(r,"__typename");if(o&&a&&o!==a)return r;if(Object(d.g)(t)&&S(r))return e.merge(t.__ref,r),t;if(S(t)&&Object(d.g)(r))return e.merge(t,r.__ref),r;if(S(t)&&S(r))return Object(n.a)(Object(n.a)({},t),r)}return r}}function et(e,t,r){var i="".concat(t).concat(r),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===r?e:Object(n.a)(Object(n.a)({},e),{clientOnly:t,deferred:r})),o}var tt=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var r=this,o=t.query,a=t.result,s=t.dataId,c=t.variables,l=t.overwrite,f=Object(I.f)(o),h=new b.a;c=Object(n.a)(Object(n.a)({},Object(I.b)(f)),c);var p={store:e,written:Object.create(null),merge:function(e,t){return h.merge(e,t)},variables:c,varString:q(c),fragmentMap:Object($.a)(Object(I.d)(o)),overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},y=this.processSelectionSet({result:a||Object.create(null),dataId:s,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:p});if(!Object(d.g)(y))throw __DEV__?new i.b("Could not identify object ".concat(JSON.stringify(a))):new i.b(6);
1return p.incomingById.forEach((function(t,n){var o=t.storeObject,a=t.mergeTree,s=t.fieldNodeSet,c=Object(d.h)(n);if(a&&a.map.size){var l=r.applyMerges(a,c,o,p);if(Object(d.g)(l))return;o=l}if(__DEV__&&!p.overwrite){var f=Object.create(null);s.forEach((function(e){e.selectionSet&&(f[e.name.value]=!0)}));Object.keys(o).forEach((function(e){(function(e){return!0===f[_(e)]})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,n){var o=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=o(e);if(!a)return;var s=o(t);if(!s)return;if(Object(d.g)(a))return;if(Object(u.a)(a,s))return;if(Object.keys(a).every((function(e){return void 0!==n.getFieldValue(s,e)})))return;var c=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=_(r),f="".concat(c,".").concat(l);if(at.has(f))return;at.add(f);var h=[];k(a)||k(s)||[a,s].forEach((function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||h.includes(t)||h.push(t)}));__DEV__&&i.c.warn("Cache data may be lost when replacing the ".concat(l," field of a ").concat(c," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(h.length?"either ensure all objects of type "+h.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(f," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(a).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(s).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}(c,o,e,p.store)}))}e.merge(n,o)})),e.retain(y.__ref),y},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,a=e.selectionSet,s=e.context,c=e.mergeTree,u=this.cache.policies,l=Object.create(null),f=r&&u.rootTypenamesById[r]||Object(d.c)(o,a,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof f&&(l.__typename=f);var h=function(){var e=Xe(arguments,l,s.variables);if(Object(d.g)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=u.readField(Object(n.a)(Object(n.a)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return u.readField(e,s)},p=new Set;this.flattenFields(a,o,s,f).forEach((function(e,r){var n,a=Object(d.i)(r),s=o[a];if(p.add(r),void 0!==s){var y=u.getStoreFieldName({typename:f,fieldName:r.name.value,field:r,variables:e.variables}),b=it(c,y),v=t.processFieldValue(s,r,r.selectionSet?et(e,!1,!1):e,b),m=void 0;r.selectionSet&&(Object(d.g)(v)||S(v))&&(m=h("__typename",v));var g=u.getMergeFunction(f,r.name.value,m);g?b.info={field:r,typename:f,merge:g}:ot(c,y),l=e.merge(l,((n={})[y]=v,n))}else!__DEV__||e.clientOnly||e.deferred||M.a.added(r)||u.getReadFunction(f,r.name.value)||__DEV__&&i.c.error("Missing field '".concat(Object(d.i)(r),"' while writing result ").concat(JSON.stringify(o,null,2)).substring(0,1e3))}));try{var y=u.identify(o,{typename:f,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:l,readField:h}),b=y[0],v=y[1];r=r||b,v&&(l=s.merge(l,v))}catch(e){if(!r)throw e}if("string"==typeof r){var m=Object(d.h)(r),g=s.written[r]||(s.written[r]=[]);if(g.indexOf(a)>=0)return m;if(g.push(a),this.reader&&this.reader.isFresh(o,m,a,s))return m;var O=s.incomingById.get(r);return O?(O.storeObject=s.merge(O.storeObject,l),O.mergeTree=function e(t,r){if(t===r||!r||nt(r))return t;if(!t||nt(t))return r;var i=t.info&&r.info?Object(n.a)(Object(n.a)({},t.info),r.info):t.info||r.info,o=t.map.size&&r.map.size,a=o?new Map:t.map.size?t.map:r.map,s={info:i,map:a};if(o){var c=new Set(r.map.keys());t.map.forEach((function(t,i){s.map.set(i,e(t,r.map.get(i))),c.delete(i)})),c.forEach((function(i){s.map.set(i,e(r.map.get(i),t.map.get(i)))}))}return s}(O.mergeTree,c),p.forEach((function(e){return O.fieldNodeSet.add(e)}))):s.incomingById.set(r,{storeObject:l,mergeTree:nt(c)?void 0:c,fieldNodeSet:p}),m}return l},e.prototype.processFieldValue=function(e,t,r,i){var n=this;return t.selectionSet&&null!==e?k(e)?e.map((function(e,o){var a=n.processFieldValue(e,t,r,it(i,o));return ot(i,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:i}):__DEV__?Object(A.a)(e):e},e.prototype.flattenFields=function(e,t,r,i){void 0===i&&(i=Object(d.c)(t,e,r.fragmentMap));var n=new Map,o=this.cache.policies,a=new l.a(!1);return function e(s,c){var u=a.lookup(s,c.clientOnly,c.deferred);
1u.visited||(u.visited=!0,s.selections.forEach((function(a){if(Object(y.c)(a,r.variables)){var s=c.clientOnly,u=c.deferred;if(s&&u||!Object(V.a)(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var i=Object(d.a)(e,r.variables);i&&!1===i.if||(u=!0)}})),Object(d.e)(a)){var l=n.get(a);l&&(s=s&&l.clientOnly,u=u&&l.deferred),n.set(a,et(r,s,u))}else{var f=Object($.b)(a,r.fragmentMap);f&&o.fragmentMatches(f,i,t,r.variables)&&e(f.selectionSet,et(r,s,u))}}})))}(e,r),n},e.prototype.applyMerges=function(e,t,r,o,a){var s,c=this;if(e.map.size&&!Object(d.g)(r)){var u,l=k(r)||!Object(d.g)(t)&&!S(t)?void 0:t,f=r;l&&!a&&(a=[Object(d.g)(l)?l.__ref:l]);var h=function(e,t){return k(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=h(l,t),n=h(f,t);if(void 0!==n){a&&a.push(t);var s=c.applyMerges(e,r,n,o,a);s!==n&&(u=u||new Map).set(t,s),a&&Object(i.c)(a.pop()===t)}})),u&&(r=k(f)?f.slice(0):Object(n.a)({},f),u.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,a&&(s=o.store).getStorage.apply(s,a)):r},e}(),rt=[];function it(e,t){var r=e.map;return r.has(t)||r.set(t,rt.pop()||{map:new Map}),r.get(t)}function nt(e){return!e||!(e.info||e.map.size)}function ot(e,t){var r=e.map,i=r.get(t);i&&nt(i)&&(rt.push(i),r.delete(t))}var at=new Set;var st=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=ie,r.txCount=0,r.config=function(e){return Object(p.a)(g,e)}(t),r.addTypename=!!r.config.addTypename,r.policies=new Ge({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return Object(n.c)(t,e),t.prototype.init=function(){var e=this.data=new ke.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader;this.storeWriter=new tt(this,this.storeReader=new Me({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:O(this.config),canon:e?void 0:r&&r.canon})),this.maybeBroadcastWatch=Object(X.b)((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(Pe(r)){var i=e.optimistic,n=e.rootId,o=e.variables;return r.makeCacheKey(e.query,e.callback,q({optimistic:i,rootId:n,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(Object(n.a)(Object(n.a)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(e){if(e instanceof Oe)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(v.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(Object(n.a)(Object(n.a)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,r=this;return this.watches.size||te(t=this).vars.forEach((function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&re(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){q.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(Object(d.g)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&i.c.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(v.call(e,"id"))return!1;e=Object(n.a)(Object(n.a)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),q.reset(),e&&e.discardWatches?(this.watches.forEac
1h((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),re(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,i=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,c=e.onWatchUpdated,u=function(e){var n=r,o=n.data,a=n.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=o,r.optimisticData=a}},l=new Set;return c&&!this.txCount&&this.broadcastWatches(Object(n.a)(Object(n.a)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,u):!1===a?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&l.size?(this.broadcastWatches(Object(n.a)(Object(n.a)({},e),{onWatchUpdated:function(e,t){var r=c.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach((function(e){return r.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(M.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,i=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,i,r))||r&&Object(u.a)(r.result,i.result)||e.callback(e.lastDiff=i,r)},t}(ge),ct=r(186),ut=r(344),lt=r(589),ft=r(1474),ht=r(1475),pt=r(590),dt=r(59),yt=r(48);Object(dt.c)(i.a?"log":"silent")},22:function(e,t,r){"use strict";var i;function n(e){return!!e&&e<7}r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return n})),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(i||(i={}))},62:function(e,t,r){"use strict";r.r(t);var i=r(550);r.d(t,"ApolloClient",(function(){return i.b})),r.d(t,"mergeOptions",(function(){return i.J})),r.d(t,"ObservableQuery",(function(){return i.n})),r.d(t,"NetworkStatus",(function(){return i.l})),r.d(t,"isApolloError",(function(){return i.F})),r.d(t,"ApolloError",(function(){return i.d})),r.d(t,"Cache",(function(){return i.g})),r.d(t,"ApolloCache",(function(){return i.a})),r.d(t,"InMemoryCache",(function(){return i.j})),r.d(t,"MissingFieldError",(function(){return i.k})),r.d(t,"defaultDataIdFromObject",(function(){return i.s})),r.d(t,"makeVar",(function(){return i.I})),r.d(t,"empty",(function(){return i.w})),r.d(t,"from",(function(){return i.A})),r.d(t,"split",(function(){return i.V})),r.d(t,"concat",(function(){return i.p})),r.d(t,"execute",(function(){return i.y})),r.d(t,"ApolloLink",(function(){return i.e})),r.d(t,"parseAndCheckHttpResponse",(function(){return i.L})),r.d(t,"serializeFetchParameter",(function(){return i.T})),r.d(t,"fallbackHttpConfig",(function(){return i.z})),r.d(t,"defaultPrinter",(function(){return i.t})),r.d(t,"selectHttpOptionsAndBody",(function(){return i.Q})),r.d(t,"selectHttpOptionsAndBodyInternal",(function(){return i.R})),r.d(t,"checkFetcher",(function(){return i.o})),r.d(t,"createSignalIfSupported",(function(){return i.r})),r.d(t,"selectURI",(function(){return i.S})),r.d(t,"createHttpLink",(function(){return i.q})),r.d(t,"HttpLink",(function(){return i.i})),r.d(t,"rewriteURIForGET",(function(){return i.P})),r.d(t,"fromError",(function(){return i.B})),r.d(t,"toPromise",(function(){return i.X})),r.d(t,"fromPromise",(function(){return i.C})),r.d(t,"throwServerError",(function(){return i.W})),r.d(t,"Observable",(function(){return i.m})),r.d(t,"isReference",(function(){return i.G})),r.d(t,"makeReference",(function(){return i.H})),r.d(t,"setLogVerbosity",(function(){return i.U})),r.d(t,"gql",(function(){return i.E})),r.d(t,"resetCaches",(function(){return i.O})),r.d(t,"disableFragmentWarnings",(function(){return i.v})),r.d(t,"enableExperimentalFragmentVariables",(function(){return i.x}
1)),r.d(t,"disableExperimentalFragmentVariables",(function(){return i.u})),r.d(t,"ApolloProvider",(function(){return i.f})),r.d(t,"ApolloConsumer",(function(){return i.c})),r.d(t,"getApolloContext",(function(){return i.D})),r.d(t,"resetApolloContext",(function(){return i.N})),r.d(t,"useApolloClient",(function(){return i.Y})),r.d(t,"useLazyQuery",(function(){return i.Z})),r.d(t,"useMutation",(function(){return i.ab})),r.d(t,"useQuery",(function(){return i.bb})),r.d(t,"useSubscription",(function(){return i.db})),r.d(t,"useReactiveVar",(function(){return i.cb})),r.d(t,"DocumentType",(function(){return i.h})),r.d(t,"operationName",(function(){return i.K})),r.d(t,"parser",(function(){return i.M}))},65:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return a}));var i=r(1),n=(r(3),r(591));function o(e){return e.hasOwnProperty("graphQLErrors")}var a=function(e){function t(r){var i=r.graphQLErrors,o=r.clientErrors,a=r.networkError,s=r.errorMessage,c=r.extraInfo,u=e.call(this,s)||this;return u.graphQLErrors=i||[],u.clientErrors=o||[],u.networkError=a||null,u.message=s||function(e){var t="";(Object(n.a)(e.graphQLErrors)||Object(n.a)(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach((function(e){var r=e?e.message:"Error message not found.";t+="".concat(r,"\n")}));return e.networkError&&(t+="".concat(e.networkError.message,"\n")),t=t.replace(/\n$/,"")}(u),u.extraInfo=c,u.__proto__=t.prototype,u}return Object(i.c)(t,e),t}(Error)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.