@knapsack/app
Version:
Build Design Systems on top of knapsack, by Basalt
2 lines • 88.1 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["vendors~App-7KZ9F~9b1fde68"],{"../node_modules/@wry/context/lib/context.esm.js":function(e,t,r){r.d(t,"a",(function(){return s}));var n=null,o={},i=1,a=Array,s=a["@wry/context:Slot"]||function(){var e=function(){function Slot(){this.id=["slot",i++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return Slot.prototype.hasValue=function(){for(var e=n;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===o)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=o),!1},Slot.prototype.getValue=function(){if(this.hasValue())return n.slots[this.id]},Slot.prototype.withValue=function(e,t,r,o){var i,a=((i={__proto__:null})[this.id]=e,i),s=n;n={parent:s,slots:a};try{return t.apply(o,r)}finally{n=s}},Slot.bind=function(e){var t=n;return function(){var r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}},Slot.noContext=function(e,t,r){if(!n)return e.apply(r,t);var o=n;try{return n=null,e.apply(r,t)}finally{n=o}},Slot}();try{Object.defineProperty(a,"@wry/context:Slot",{value:a["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();s.bind,s.noContext},"../node_modules/@wry/equality/lib/equality.esm.js":function(e,t,r){r.d(t,"a",(function(){return equal}));var n=Object.prototype,o=n.toString,i=n.hasOwnProperty,a=new Map;function equal(e,t){try{return function check(e,t){if(e===t)return!0;var r=o.call(e),n=o.call(t);if(r!==n)return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(previouslyCompared(e,t))return!0;var a=Object.keys(e),s=Object.keys(t),u=a.length;if(u!==s.length)return!1;for(var c=0;c<u;++c)if(!i.call(t,a[c]))return!1;for(c=0;c<u;++c){var l=a[c];if(!check(e[l],t[l]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(previouslyCompared(e,t))return!0;for(var f=e.entries(),h="[object Map]"===r;;){var d=f.next();if(d.done)break;var p=d.value,y=p[0],v=p[1];if(!t.has(y))return!1;if(h&&!check(v,t.get(y)))return!1}return!0}return!1}(e,t)}finally{a.clear()}}function previouslyCompared(e,t){var r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}},"../node_modules/apollo-boost/lib/bundle.esm.js":function(e,t,r){var n=r("../node_modules/tslib/tslib.es6.js"),o=r("../node_modules/apollo-client/bundle.esm.js"),i=r("../node_modules/apollo-link/lib/bundle.esm.js"),a=r("../node_modules/zen-observable-ts/lib/bundle.esm.js"),s=r("../node_modules/apollo-cache-inmemory/lib/bundle.esm.js"),u=r("../node_modules/graphql/language/printer.mjs"),c=r("../node_modules/ts-invariant/lib/invariant.esm.js"),l={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},throwServerError=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},serializeFetchParameter=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=new c.a(2);throw n.parseError=e,n}return r},createHttpLink=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,o=e.fetch,s=e.includeExtensions,f=e.useGETForQueries,h=Object(n.__rest)(e,["uri","fetch","includeExtensions","useGETForQueries"]);!function(e){if(!e&&"undefined"==typeof fetch){throw"undefined"==typeof window&&"node-fetch",new c.a(1)}}(o),o||(o=fetch);var d={http:{includeExtensions:s},options:h.fetchOptions,credentials:h.credentials,headers:h.headers};return new i.a((function(e){var t=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}(e,r),s=e.getContext(),c={};if(s.clientAwareness){var h=s.clientAwareness,p=h.name,y=h.version;p&&(c["apollographql-client-name"]=p),y&&(c["apollographql-client-version"]=y)}var v,b=Object(n.__assign)({},c,s.headers),m={http:s.http,options:s.fetchOptions,credentials:s.credentials,headers:b},g=function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=Object(n.__assign)({},t.options,{headers:t.headers,credentials:t.credentials}),a=t.http;r.forEach((function(e){i=Object(n.__assign)({},i,e.options,{headers:Object(n.__assign)({},i.headers,e.headers)}),e.credentials&&(i.credentials=e.credentials),a=Object(n.__assign)({},a,e.http)}));var s=e.operationName,c=e.extensions,l=e.variables,f=e.query,h={operationName:s,variables:l};return a.includeExtensions&&(h.extensions=c),a.includeQuery&&(h.query=Object(u.a)(f)),{options:i,body:h}}(e,l,d,m),O=g.options,S=g.body;if(!O.signal){var j=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),Q=j.controller,w=j.signal;(v=Q)&&(O.signal=w)}if(f&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(O.method="GET"),"GET"===O.method){var k=function rewriteURIForGET(e,t){var r=[],addQueryParam=function(e,t){r.push(e+"="+encodeURIComponent(t))};"query"in t&&addQueryParam("query",t.query);t.operationName&&addQueryParam("operationName",t.operationName);if(t.variables){var n=void 0;try{n=serializeFetchParameter(t.variables,"Variables map")}catch(e){return{parseError:e}}addQueryParam("variables",n)}if(t.extensions){var o=void 0;try{o=serializeFetchParameter(t.extensions,"Extensions map")}catch(e){return{parseError:e}}addQueryParam("extensions",o)}var i="",a=e,s=e.indexOf("#");-1!==s&&(i=e.substr(s),a=e.substr(0,s));var u=-1===a.indexOf("?")?"?":"&";return{newURI:a+u+r.join("&")+i}}(t,S),_=k.newURI,q=k.parseError;if(q)return Object(i.c)(q);t=_}else try{O.body=serializeFetchParameter(S,"Payload")}catch(q){return Object(i.c)(q)}return new a.a((function(r){var n;return o(t,O).then((function(t){return e.setContext({response:t}),t})).then((n=e,function(e){return e.text().then((function(t){try{return JSON.parse(t)}catch(n){var r=n;return r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,Promise.reject(r)}})).then((function(t){return e.status>=300&&throwServerError(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||t.hasOwnProperty("data")||t.hasOwnProperty("errors")||throwServerError(e,t,"Server response was missing for query '"+(Array.isArray(n)?n.map((function(e){return e.operationName})):n.operationName)+"'."),t}))})).then((function(e){return r.next(e),r.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))})),function(){v&&v.abort()}}))}))};var f=function(e){function HttpLink(t){return e.call(this,createHttpLink(t).request)||this}return Object(n.__extends)(HttpLink,e),HttpLink}(i.a);function onError(e){return new i.a((function(t,r){return new a.a((function(n){var o,i,a;try{o=r(t).subscribe({next:function(o){o.errors&&(a=e({graphQLErrors:o.errors,response:o,operation:t,forward:r}))?i=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(o)},error:function(o){(a=e({operation:t,networkError:o,graphQLErrors:o&&o.result&&o.result.errors,forward:r}))?i=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(o)},complete:function(){a||n.complete.bind(n)()}})}catch(o){e({networkError:o,operation:t,forward:r}),n.error(o)}return function(){o&&o.unsubscribe(),i&&o.unsubscribe()}}))}))}(function(e){function ErrorLink(t){var r=e.call(this)||this;return r.link=onError(t),r}Object(n.__extends)(ErrorLink,e),ErrorLink.prototype.request=function(e,t){return this.link.request(e,t)}})(i.a),r("../node_modules/graphql-tag/src/index.js");var h=["request","uri","credentials","headers","fetch","fetchOptions","clientState","onError","cacheRedirects","cache","name","version","resolvers","typeDefs","fragmentMatcher"],d=function(e){function DefaultClient(t){void 0===t&&(t={});t&&Object.keys(t).filter((function(e){return-1===h.indexOf(e)})).length;var r=t.request,n=t.uri,o=t.credentials,u=t.headers,l=t.fetch,d=t.fetchOptions,p=t.clientState,y=t.cacheRedirects,v=t.onError,b=t.name,m=t.version,g=t.resolvers,O=t.typeDefs,S=t.fragmentMatcher,j=t.cache;Object(c.b)(!j||!y,1),j||(j=y?new s.a({cacheRedirects:y}):new s.a);var Q=onError(v||function(e){var t=e.graphQLErrors;e.networkError;t&&t.map((function(e){e.message,e.locations,e.path;return!0}))}),w=!!r&&new i.a((function(e,t){return new a.a((function(n){var o;return Promise.resolve(e).then((function(e){return r(e)})).then((function(){o=t(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()}}))})),k=new f({uri:n||"/graphql",fetch:l,fetchOptions:d||{},credentials:o||"same-origin",headers:u||{}}),_=i.a.from([Q,w,k].filter((function(e){return!!e}))),q=g,R=O,E=S;return p&&(p.defaults&&j.writeData({data:p.defaults}),q=p.resolvers,R=p.typeDefs,E=p.fragmentMatcher),e.call(this,{cache:j,link:_,name:b,version:m,resolvers:q,typeDefs:R,fragmentMatcher:E})||this}return Object(n.__extends)(DefaultClient,e),DefaultClient}(o.c);t.a=d},"../node_modules/apollo-cache-inmemory/lib/bundle.esm.js":function(e,t,r){r.d(t,"a",(function(){return j}));var n=r("../node_modules/tslib/tslib.es6.js"),o=r("../node_modules/apollo-utilities/lib/bundle.esm.js");function queryFromPojo(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:selectionSetFromObj(e)}]}}function selectionSetFromObj(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return selectionSetFromObj(e[0]);var t=[];return Object.keys(e).forEach((function(r){var n={kind:"Field",name:{kind:"Name",value:r},selectionSet:selectionSetFromObj(e[r])||void 0};t.push(n)})),{kind:"SelectionSet",selections:t}}var i,a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},s=function(){function ApolloCache(){}return ApolloCache.prototype.transformDocument=function(e){return e},ApolloCache.prototype.transformForLink=function(e){return e},ApolloCache.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},ApolloCache.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(o.k)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},ApolloCache.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},ApolloCache.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(o.k)(e.fragment,e.fragmentName)})},ApolloCache.prototype.writeData=function(e){var t,r,n=e.id,o=e.data;if(void 0!==n){var i=null;try{i=this.read({rootId:n,optimistic:!1,query:a})}catch(e){}var s=i&&i.__typename||"__ClientData",u=Object.assign({__typename:s},o);this.writeFragment({id:n,fragment:(t=u,r=s,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:selectionSetFromObj(t)}]}),data:u})}else this.writeQuery({query:queryFromPojo(o),data:o})},ApolloCache}();i||(i={});var u=r("../node_modules/@wry/equality/lib/equality.esm.js"),c=r("../node_modules/optimism/lib/bundle.esm.js"),l=r("../node_modules/ts-invariant/lib/invariant.esm.js"),f=!1;function shouldWarn(){var e=!f;return Object(o.y)()||(f=!0),e}var h=function(){function HeuristicFragmentMatcher(){}return HeuristicFragmentMatcher.prototype.ensureReady=function(){return Promise.resolve()},HeuristicFragmentMatcher.prototype.canBypassInit=function(){return!0},HeuristicFragmentMatcher.prototype.match=function(e,t,r){var n=r.store.get(e.id),o="ROOT_QUERY"===e.id;if(!n)return o;var i=n.__typename,a=void 0===i?o&&"Query":i;return a&&a===t||(shouldWarn(),"heuristic")},HeuristicFragmentMatcher}(),d=(function(){function IntrospectionFragmentMatcher(e){e&&e.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(e.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}IntrospectionFragmentMatcher.prototype.match=function(e,t,r){Object(l.b)(this.isReady,6);var n=r.store.get(e.id),o="ROOT_QUERY"===e.id;if(!n)return o;var i=n.__typename,a=void 0===i?o&&"Query":i;if(Object(l.b)(a,7),a===t)return!0;var s=this.possibleTypesMap[t];return!!(a&&s&&s.indexOf(a)>-1)},IntrospectionFragmentMatcher.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t}}(),Object.prototype.hasOwnProperty),p=function(){function DepTrackingCache(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=Object(c.b)((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return DepTrackingCache.prototype.toObject=function(){return this.data},DepTrackingCache.prototype.get=function(e){return this.depend(e),this.data[e]},DepTrackingCache.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},DepTrackingCache.prototype.delete=function(e){d.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},DepTrackingCache.prototype.clear=function(){this.replace(null)},DepTrackingCache.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(r){t.set(r,e[r])})),Object.keys(this.data).forEach((function(r){d.call(e,r)||t.delete(r)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},DepTrackingCache}();function defaultNormalizedCacheFactory(e){return new p(e)}var y=function(){function StoreReader(e){var t=this,r=void 0===e?{}:e,n=r.cacheKeyRoot,i=void 0===n?new c.a(o.e):n,a=r.freezeResults,s=void 0!==a&&a,u=this.executeStoreQuery,l=this.executeSelectionSet,f=this.executeSubSelectedArray;this.freezeResults=s,this.executeStoreQuery=Object(c.b)((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.query,r=e.rootValue,n=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(n.store instanceof p)return i.lookup(n.store,t,a,JSON.stringify(o),r.id)}}),this.executeSelectionSet=Object(c.b)((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,r=e.rootValue,n=e.execContext;if(n.contextValue.store instanceof p)return i.lookup(n.contextValue.store,t,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}),this.executeSubSelectedArray=Object(c.b)((function(e){return f.call(t,e)}),{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.execContext;if(n.contextValue.store instanceof p)return i.lookup(n.contextValue.store,t,r,JSON.stringify(n.variableValues))}})}return StoreReader.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(n.__assign)({},e,{returnPartialData:!1})).result},StoreReader.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.variables,i=e.previousResult,a=e.returnPartialData,s=void 0===a||a,c=e.rootId,f=void 0===c?"ROOT_QUERY":c,h=e.fragmentMatcherFunction,d=e.config,p=Object(o.o)(r);n=Object(o.c)({},Object(o.h)(p),n);var y={store:t,dataIdFromObject:d&&d.dataIdFromObject,cacheRedirects:d&&d.cacheRedirects||{}},v=this.executeStoreQuery({query:r,rootValue:{type:"id",id:f,generated:!0,typename:"Query"},contextValue:y,variableValues:n,fragmentMatcher:h}),b=v.missing&&v.missing.length>0;return b&&!s&&v.missing.forEach((function(e){if(!e.tolerable)throw new l.a(8)})),i&&Object(u.a)(i,v.result)&&(v.result=i),{result:v.result,complete:!b}},StoreReader.prototype.executeStoreQuery=function(e){var t=e.query,r=e.rootValue,n=e.contextValue,i=e.variableValues,a=e.fragmentMatcher,s=void 0===a?defaultFragmentMatcher:a,u=Object(o.l)(t),c=Object(o.j)(t),l={query:t,fragmentMap:Object(o.g)(c),contextValue:n,variableValues:i,fragmentMatcher:s};return this.executeSelectionSet({selectionSet:u.selectionSet,rootValue:r,execContext:l})},StoreReader.prototype.executeSelectionSet=function(e){var t=this,r=e.selectionSet,i=e.rootValue,a=e.execContext,s=a.fragmentMap,u=a.contextValue,c=a.variableValues,f={result:null},h=[],d=u.store.get(i.id),p=d&&d.__typename||"ROOT_QUERY"===i.id&&"Query"||void 0;function handleMissing(e){var t;return e.missing&&(f.missing=f.missing||[],(t=f.missing).push.apply(t,e.missing)),e.result}return r.selections.forEach((function(e){var r;if(Object(o.F)(e,c))if(Object(o.t)(e)){var f=handleMissing(t.executeField(d,p,e,a));void 0!==f&&h.push(((r={})[Object(o.E)(e)]=f,r))}else{var y=void 0;if(Object(o.v)(e))y=e;else if(!(y=s[e.name.value]))throw new l.a(9);var v=y.typeCondition&&y.typeCondition.name.value,b=!v||a.fragmentMatcher(i,v,u);if(b){var m=t.executeSelectionSet({selectionSet:y.selectionSet,rootValue:i,execContext:a});"heuristic"===b&&m.missing&&(m=Object(n.__assign)({},m,{missing:m.missing.map((function(e){return Object(n.__assign)({},e,{tolerable:!0})}))})),h.push(handleMissing(m))}}})),f.result=Object(o.B)(h),this.freezeResults,f},StoreReader.prototype.executeField=function(e,t,r,n){var i=n.variableValues,a=n.contextValue,s=function readStoreResolver(e,t,r,n,i,a){a.resultKey;var s=a.directives,u=r;(n||s)&&(u=Object(o.p)(u,n,s));var c=void 0;if(e&&void 0===(c=e[u])&&i.cacheRedirects&&"string"==typeof t){var l=i.cacheRedirects[t];if(l){var f=l[r];f&&(c=f(e,n,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&Object(o.H)({id:t,typename:e.__typename})}}))}}if(void 0===c)return{result:c,missing:[{object:e,fieldName:u,tolerable:!1}]};Object(o.w)(c)&&(c=c.json);return{result:c}}(e,t,r.name.value,Object(o.b)(r,i),a,{resultKey:Object(o.E)(r),directives:Object(o.i)(r,i)});return Array.isArray(s.result)?this.combineExecResults(s,this.executeSubSelectedArray({field:r,array:s.result,execContext:n})):r.selectionSet?null==s.result?s:this.combineExecResults(s,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:s.result,execContext:n})):(assertSelectionSetForIdValue(r,s.result),this.freezeResults,s)},StoreReader.prototype.combineExecResults=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t.forEach((function(t){t.missing&&(e=e||[]).push.apply(e,t.missing)})),{result:t.pop().result,missing:e}},StoreReader.prototype.executeSubSelectedArray=function(e){var t,r=this,n=e.field,o=e.array,i=e.execContext;function handleMissing(e){return e.missing&&(t=t||[]).push.apply(t,e.missing),e.result}return o=o.map((function(e){return null===e?null:Array.isArray(e)?handleMissing(r.executeSubSelectedArray({field:n,array:e,execContext:i})):n.selectionSet?handleMissing(r.executeSelectionSet({selectionSet:n.selectionSet,rootValue:e,execContext:i})):(assertSelectionSetForIdValue(n,e),e)})),this.freezeResults,{result:o,missing:t}},StoreReader}();function assertSelectionSetForIdValue(e,t){if(!e.selectionSet&&Object(o.u)(t))throw new l.a(10)}function defaultFragmentMatcher(){return!0}var v=function(){function ObjectCache(e){void 0===e&&(e=Object.create(null)),this.data=e}return ObjectCache.prototype.toObject=function(){return this.data},ObjectCache.prototype.get=function(e){return this.data[e]},ObjectCache.prototype.set=function(e,t){this.data[e]=t},ObjectCache.prototype.delete=function(e){this.data[e]=void 0},ObjectCache.prototype.clear=function(){this.data=Object.create(null)},ObjectCache.prototype.replace=function(e){this.data=e||Object.create(null)},ObjectCache}();var b=function(e){function WriteError(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="WriteError",t}return Object(n.__extends)(WriteError,e),WriteError}(Error);var m=function(){function StoreWriter(){}return StoreWriter.prototype.writeQueryToStore=function(e){var t=e.query,r=e.result,n=e.store,o=void 0===n?defaultNormalizedCacheFactory():n,i=e.variables,a=e.dataIdFromObject,s=e.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:r,document:t,store:o,variables:i,dataIdFromObject:a,fragmentMatcherFunction:s})},StoreWriter.prototype.writeResultToStore=function(e){var t=e.dataId,r=e.result,n=e.document,i=e.store,a=void 0===i?defaultNormalizedCacheFactory():i,s=e.variables,u=e.dataIdFromObject,c=e.fragmentMatcherFunction,l=Object(o.m)(n);try{return this.writeSelectionSetToStore({result:r,dataId:t,selectionSet:l.selectionSet,context:{store:a,processedData:{},variables:Object(o.c)({},Object(o.h)(l),s),dataIdFromObject:u,fragmentMap:Object(o.g)(Object(o.j)(n)),fragmentMatcherFunction:c}})}catch(e){throw function enhanceErrorWithDocument(e,t){var r=new b("Error writing result to store for query:\n "+JSON.stringify(t));return r.message+="\n"+e.message,r.stack=e.stack,r}(e,n)}},StoreWriter.prototype.writeSelectionSetToStore=function(e){var t=this,r=e.result,n=e.dataId,i=e.selectionSet,a=e.context,s=a.variables,u=a.store,c=a.fragmentMap;return i.selections.forEach((function(e){var i;if(Object(o.F)(e,s))if(Object(o.t)(e)){var u=Object(o.E)(e),f=r[u];if(void 0!==f)t.writeFieldToStore({dataId:n,value:f,field:e,context:a});else{var h=!1,d=!1;e.directives&&e.directives.length&&(h=e.directives.some((function(e){return e.name&&"defer"===e.name.value})),d=e.directives.some((function(e){return e.name&&"client"===e.name.value}))),!h&&!d&&a.fragmentMatcherFunction}}else{var p=void 0;Object(o.v)(e)?p=e:(p=(c||{})[e.name.value],Object(l.b)(p,2));var y=!0;if(a.fragmentMatcherFunction&&p.typeCondition){var b=n||"self",m=Object(o.H)({id:b,typename:void 0}),g={store:new v((i={},i[b]=r,i)),cacheRedirects:{}},O=a.fragmentMatcherFunction(m,p.typeCondition.name.value,g);Object(o.x)(),y=!!O}y&&t.writeSelectionSetToStore({result:r,selectionSet:p.selectionSet,dataId:n,context:a})}})),u},StoreWriter.prototype.writeFieldToStore=function(e){var t,r,i,a=e.field,s=e.value,c=e.dataId,f=e.context,h=f.variables,d=f.dataIdFromObject,p=f.store,y=Object(o.G)(a,h);if(a.selectionSet&&null!==s)if(Array.isArray(s)){var v=c+"."+y;r=this.processArrayValue(s,v,a.selectionSet,f)}else{var b=c+"."+y,m=!0;if(isGeneratedId(b)||(b="$"+b),d){var g=d(s);Object(l.b)(!g||!isGeneratedId(g),3),(g||"number"==typeof g&&0===g)&&(b=g,m=!1)}isDataProcessed(b,a,f.processedData)||this.writeSelectionSetToStore({dataId:b,result:s,selectionSet:a.selectionSet,context:f});var O=s.__typename;r=Object(o.H)({id:b,typename:O},m);var S=(i=p.get(c))&&i[y];if(S!==r&&Object(o.u)(S)){var j=void 0!==S.typename,Q=void 0!==O,w=j&&Q&&S.typename!==O;Object(l.b)(!m||S.generated||w,4),Object(l.b)(!j||Q,5),S.generated&&(w?m||p.delete(S.id):function mergeWithGenerated(e,t,r){if(e===t)return!1;var i=r.get(e),a=r.get(t),s=!1;Object.keys(i).forEach((function(e){var t=i[e],n=a[e];Object(o.u)(t)&&isGeneratedId(t.id)&&Object(o.u)(n)&&!Object(u.a)(t,n)&&mergeWithGenerated(t.id,n.id,r)&&(s=!0)})),r.delete(e);var c=Object(n.__assign)({},i,a);if(Object(u.a)(c,a))return s;return r.set(t,c),!0}(S.id,r.id,p))}}else r=null!=s&&"object"==typeof s?{type:"json",json:s}:s;(i=p.get(c))&&Object(u.a)(r,i[y])||p.set(c,Object(n.__assign)({},i,((t={})[y]=r,t)))},StoreWriter.prototype.processArrayValue=function(e,t,r,n){var i=this;return e.map((function(e,a){if(null===e)return null;var s=t+"."+a;if(Array.isArray(e))return i.processArrayValue(e,s,r,n);var u=!0;if(n.dataIdFromObject){var c=n.dataIdFromObject(e);c&&(s=c,u=!1)}return isDataProcessed(s,r,n.processedData)||i.writeSelectionSetToStore({dataId:s,result:e,selectionSet:r,context:n}),Object(o.H)({id:s,typename:e.__typename},u)}))},StoreWriter}();function isGeneratedId(e){return"$"===e[0]}function isDataProcessed(e,t,r){if(!r)return!1;if(r[e]){if(r[e].indexOf(t)>=0)return!0;r[e].push(t)}else r[e]=[t];return!1}var g={fragmentMatcher:new h,dataIdFromObject:function defaultDataIdFromObject(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1};var O=Object.prototype.hasOwnProperty,S=function(e){function OptimisticCacheLayer(t,r,n){var o=e.call(this,Object.create(null))||this;return o.optimisticId=t,o.parent=r,o.transaction=n,o}return Object(n.__extends)(OptimisticCacheLayer,e),OptimisticCacheLayer.prototype.toObject=function(){return Object(n.__assign)({},this.parent.toObject(),this.data)},OptimisticCacheLayer.prototype.get=function(e){return O.call(this.data,e)?this.data[e]:this.parent.get(e)},OptimisticCacheLayer}(v),j=function(e){function InMemoryCache(t){void 0===t&&(t={});var r=e.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new c.a(o.e),r.silenceBroadcast=!1,r.config=Object(n.__assign)({},g,t),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new p:new v,r.optimisticData=r.data,r.storeWriter=new m,r.storeReader=new y({cacheKeyRoot:r.cacheKeyRoot,freezeResults:t.freezeResults});var i=r,a=i.maybeBroadcastWatch;return r.maybeBroadcastWatch=Object(c.b)((function(e){return a.call(r,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return i.data instanceof p?i.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),r}return Object(n.__extends)(InMemoryCache,e),InMemoryCache.prototype.restore=function(e){return e&&this.data.replace(e),this},InMemoryCache.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},InMemoryCache.prototype.read=function(e){if("string"==typeof e.rootId&&void 0===this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:r,previousResult:e.previousResult,config:this.config})||null},InMemoryCache.prototype.write=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r}),this.broadcastWatches()},InMemoryCache.prototype.diff=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:r,config:this.config})},InMemoryCache.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},InMemoryCache.prototype.evict=function(e){throw new l.a(1)},InMemoryCache.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},InMemoryCache.prototype.removeOptimistic=function(e){for(var t=[],r=0,n=this.optimisticData;n instanceof S;)n.optimisticId===e?++r:t.push(n),n=n.parent;if(r>0){for(this.optimisticData=n;t.length>0;){var o=t.pop();this.performTransaction(o.transaction,o.optimisticId)}this.broadcastWatches()}},InMemoryCache.prototype.performTransaction=function(e,t){var r=this.data,n=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new S(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=n,this.data=r}this.broadcastWatches()},InMemoryCache.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},InMemoryCache.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(o.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},InMemoryCache.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},InMemoryCache.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},InMemoryCache}(s)},"../node_modules/apollo-client/bundle.esm.js":function(e,t,r){r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return n}));var n,o=r("../node_modules/tslib/tslib.es6.js"),i=r("../node_modules/apollo-utilities/lib/bundle.esm.js"),a=r("../node_modules/@wry/equality/lib/equality.esm.js"),s=r("../node_modules/zen-observable-ts/lib/bundle.esm.js"),u=r("../node_modules/apollo-link/lib/bundle.esm.js"),c=r("../node_modules/symbol-observable/es/index.js"),l=r("../node_modules/ts-invariant/lib/invariant.esm.js"),f=r("../node_modules/graphql/language/visitor.mjs");function isNetworkRequestInFlight(e){return e<7}!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"}(n||(n={}));var h=function(e){function Observable(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(Observable,e),Observable.prototype[c.a]=function(){return this},Observable.prototype["@@observable"]=function(){return this},Observable}(s.a);function isNonEmptyArray(e){return Array.isArray(e)&&e.length>0}var d,generateErrorMessage=function(e){var t="";return isNonEmptyArray(e.graphQLErrors)&&e.graphQLErrors.forEach((function(e){var r=e?e.message:"Error message not found.";t+="GraphQL error: "+r+"\n"})),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,"")},p=function(e){function ApolloError(t){var r=t.graphQLErrors,n=t.networkError,o=t.errorMessage,i=t.extraInfo,a=e.call(this,o)||this;return a.graphQLErrors=r||[],a.networkError=n||null,a.message=o||generateErrorMessage(a),a.extraInfo=i,a.__proto__=ApolloError.prototype,a}return Object(o.__extends)(ApolloError,e),ApolloError}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(d||(d={}));var y=function(e){function ObservableQuery(t){var r=t.queryManager,n=t.options,o=t.shouldSubscribe,a=void 0===o||o,s=e.call(this,(function(e){return s.onSubscribe(e)}))||this;s.observers=new Set,s.subscriptions=new Set,s.isTornDown=!1,s.options=n,s.variables=n.variables||{},s.queryId=r.generateQueryId(),s.shouldSubscribe=a;var u=Object(i.m)(n.query);return s.queryName=u&&u.name&&u.name.value,s.queryManager=r,s}return Object(o.__extends)(ObservableQuery,e),ObservableQuery.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){o.unsubscribe()}),0)},error:r},o=e.subscribe(n)}))},ObservableQuery.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},ObservableQuery.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:n.error}}var t,r,i,a=this.queryManager.getCurrentQueryResult(this),s=a.data,u=a.partial,c=this.queryManager.queryStore.get(this.queryId),l=this.options.fetchPolicy,f="network-only"===l||"no-cache"===l;if(c){var h=c.networkStatus;if(r=c,void 0===(i=this.options.errorPolicy)&&(i="none"),r&&(r.networkError||"none"===i&&isNonEmptyArray(r.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:h,error:new p({graphQLErrors:c.graphQLErrors,networkError:c.networkError})};c.variables&&(this.options.variables=Object(o.__assign)({},this.options.variables,c.variables),this.variables=this.options.variables),t={data:s,loading:isNetworkRequestInFlight(h),networkStatus:h},c.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=c.graphQLErrors)}else{var d=f||u&&"cache-only"!==l;t={data:s,loading:d,networkStatus:d?n.loading:n.ready}}return u||this.updateLastResult(Object(o.__assign)({},t,{stale:!1})),Object(o.__assign)({},t,{partial:u})},ObservableQuery.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(a.a)(t.data,e.data))},ObservableQuery.prototype.getLastResult=function(){return this.lastResult},ObservableQuery.prototype.getLastError=function(){return this.lastError},ObservableQuery.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},ObservableQuery.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},ObservableQuery.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new l.a(3)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(a.a)(this.variables,e)||(this.variables=Object(o.__assign)({},this.variables,e)),Object(a.a)(this.options.variables,this.variables)||(this.options.variables=Object(o.__assign)({},this.options.variables,this.variables)),this.queryManager.fetchQuery(this.queryId,Object(o.__assign)({},this.options,{fetchPolicy:t}),d.refetch))},ObservableQuery.prototype.fetchMore=function(e){var t=this;Object(l.b)(e.updateQuery,4);var r=Object(o.__assign)({},e.query?e:Object(o.__assign)({},this.options,e,{variables:Object(o.__assign)({},this.variables,e.variables)}),{fetchPolicy:"network-only"}),n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,d.normal,this.queryId).then((function(o){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:o.data,variables:r.variables})})),t.queryManager.stopQuery(n),o}),(function(e){throw t.queryManager.stopQuery(n),e}))},ObservableQuery.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var o=t.variables;return n(e,{subscriptionData:r,variables:o})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},ObservableQuery.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(o.__assign)({},this.options,e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var r=e.fetchPolicy;return this.setVariables(this.options.variables,t!==r&&("cache-only"===t||"standby"===t||"network-only"===r),e.fetchResults)},ObservableQuery.prototype.setVariables=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(a.a)(e,this.variables)?this.observers.size&&r?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},ObservableQuery.prototype.updateQuery=function(e){var t=this.queryManager,r=t.getQueryWithPreviousResult(this.queryId),n=r.previousResult,o=r.variables,a=r.document,s=Object(i.I)((function(){return e(n,{variables:o})}));s&&(t.dataStore.markUpdateQueryResult(a,o,s),t.broadcastQueries())},ObservableQuery.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},ObservableQuery.prototype.startPolling=function(e){assertNotCacheFirstOrOnly(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},ObservableQuery.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(i.f)(e),t},ObservableQuery.prototype.onSubscribe=function(e){var t=this;try{var r=e._subscription._observer;r&&!r.error&&(r.error=defaultSubscriptionObserverErrorCallback)}catch(e){}var n=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),n&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},ObservableQuery.prototype.setUpQuery=function(){var e=this,t=this.queryManager,r=this.queryId;this.shouldSubscribe&&t.addObservableQuery(r,this),this.options.pollInterval&&(assertNotCacheFirstOrOnly(this),t.startPollingQuery(this.options,r));var onError=function(t){e.updateLastResult(Object(o.__assign)({},e.lastResult,{errors:t.graphQLErrors,networkStatus:n.error,loading:!1})),iterateObserversSafely(e.observers,"error",e.lastError=t)};t.observeQuery(r,this.options,{next:function(r){if(e.lastError||e.isDifferentFromLastResult(r)){var n=e.updateLastResult(r),o=e.options,i=o.query,s=o.variables,u=o.fetchPolicy;t.transform(i).hasClientExports?t.getLocalState().addExportedVariables(i,s).then((function(o){var s=e.variables;e.variables=e.options.variables=o,!r.loading&&n&&"cache-only"!==u&&t.transform(i).serverQuery&&!Object(a.a)(s,o)?e.refetch():iterateObserversSafely(e.observers,"next",r)})):iterateObserversSafely(e.observers,"next",r)}},error:onError}).catch(onError)},ObservableQuery.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},ObservableQuery}(h);function defaultSubscriptionObserverErrorCallback(e){}function iterateObserversSafely(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function assertNotCacheFirstOrOnly(e){var t=e.options.fetchPolicy;Object(l.b)("cache-first"!==t&&"cache-only"!==t,5)}var v=function(){function MutationStore(){this.store={}}return MutationStore.prototype.getStore=function(){return this.store},MutationStore.prototype.get=function(e){return this.store[e]},MutationStore.prototype.initMutation=function(e,t,r){this.store[e]={mutation:t,variables:r||{},loading:!0,error:null}},MutationStore.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},MutationStore.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},MutationStore.prototype.reset=function(){this.store={}},MutationStore}(),b=function(){function QueryStore(){this.store={}}return QueryStore.prototype.getStore=function(){return this.store},QueryStore.prototype.get=function(e){return this.store[e]},QueryStore.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(l.b)(!t||t.document===e.document||Object(a.a)(t.document,e.document),19);var r,o=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==n.loading&&(Object(a.a)(t.variables,e.variables)||(o=!0,i=t.variables)),r=o?n.setVariables:e.isPoll?n.poll:e.isRefetch?n.refetch:n.loading;var s=[];t&&t.graphQLErrors&&(s=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:s,networkStatus:r,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=n.fetchMore)},QueryStore.prototype.markQueryResult=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=isNonEmptyArray(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=n.ready,"string"==typeof r&&this.store[r]&&(this.store[r].networkStatus=n.ready))},QueryStore.prototype.markQueryError=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=n.error,"string"==typeof r&&this.markQueryResultClient(r,!0))},QueryStore.prototype.markQueryResultClient=function(e,t){var r=this.store&&this.store[e];r&&(r.networkError=null,r.previousVariables=null,t&&(r.networkStatus=n.ready))},QueryStore.prototype.stopQuery=function(e){delete this.store[e]},QueryStore.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(r){e.indexOf(r)<0?t.stopQuery(r):t.store[r].networkStatus=n.loading}))},QueryStore}();var m=function(){function LocalState(e){var t=e.cache,r=e.client,n=e.resolvers,o=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),o&&this.setFragmentMatcher(o)}return LocalState.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(i.A)(t.resolvers,e)})):this.resolvers=Object(i.A)(this.resolvers,e)},LocalState.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},LocalState.prototype.getResolvers=function(){return this.resolvers||{}},LocalState.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,s).then((function(e){return Object(o.__assign)({},r,{data:e.result})}))]:[2,r]}))}))},LocalState.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},LocalState.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},LocalState.prototype.clientQuery=function(e){return Object(i.s)(["client"],e)&&this.resolvers?e:null},LocalState.prototype.serverQuery=function(e){return this.resolvers?Object(i.C)(e):e},LocalState.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(o.__assign)({},e,{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(l.b)(!1,6)}})},LocalState.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return Object(o.__assign)({},t,e.exportedVariables)}))]:[2,Object(o.__assign)({},t)]}))}))},LocalState.prototype.shouldForceResolvers=function(e){var t=!1;return Object(f.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 f.a}}}),t},LocalState.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(i.d)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},LocalState.prototype.resolveDocument=function(e,t,r,n,a,s){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===a&&(a=function(){return!0}),void 0===s&&(s=!1),Object(o.__awaiter)(this,void 0,void 0,(function(){var u,c,l,f,h,d,p,y,v;return Object(o.__generator)(this,(function(b){return u=Object(i.l)(e),c=Object(i.j)(e),l=Object(i.g)(c),f=u.operation,h=f?function capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}(f):"Query",p=(d=this).cache,y=d.client,v={fragmentMap:l,context:Object(o.__assign)({},r,{cache:p,client:y}),variables:n,fragmentMatcher:a,defaultOperationType:h,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(u.selectionSet,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},LocalState.prototype.resolveSelectionSet=function(e,t,r){return Object(o.__awaiter)(this,void 0,void 0,(function(){var n,a,s,u,c,f=this;return Object(o.__generator)(this,(function(h){return n=r.fragmentMap,a=r.context,s=r.variables,u=[t],c=function(e){return Object(o.__awaiter)(f,void 0,void 0,(function(){var c,f;return Object(o.__generator)(this,(function(o){return Object(i.F)(e,s)?Object(i.t)(e)?[2,this.resolveField(e,t,r).then((function(t){var r;void 0!==t&&u.push(((r={})[Object(i.E)(e)]=t,r))}))]:(Object(i.v)(e)?c=e:(c=n[e.name.value],Object(l.b)(c,7)),c&&c.typeCondition&&(f=c.typeCondition.name.value,r.fragmentMatcher(t,f,a))?[2,this.resolveSelectionSet(c.selectionSet,t,r).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(c)).then((function(){return Object(i.B)(u)}))]}))}))},LocalState.prototype.resolveField=function(e,t,r){return Object(o.__awaiter)(this,void 0,void 0,(function(){var n,a,s,u,c,l,f,h,d,p=this;return Object(o.__generator)(this,(function(o){return n=r.variables,a=e.name.value,s=Object(i.E)(e),u=a!==s,c=t[s]||t[a],l=Promise.resolve(c),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=t.__typename||r.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(d=h[u?a:s])&&(l=Promise.resolve(d(t,Object(i.b)(e,n),r.context,{field:e})))),[2,l.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}))]}))}))},LocalState.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0})))},LocalState}();function multiplex(e){var t=new Set,r=null;return new h((function(n){return t.add(n),r=r||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(n)&&!t.size&&r&&(r.unsubscribe(),r=null)}}))}var g=Object.prototype.hasOwnProperty,O=function(){function QueryManager(e){var t=e.link,r=e.queryDeduplication,n=void 0!==r&&r,o=e.store,a=e.onBroadcast,s=void 0===a?function(){}:a,u=e.ssrMode,c=void 0!==u&&u,l=e.clientAwareness,f=void 0===l?{}:l,h=e.localState,d=e.assumeImmutableResults;this.mutationStore=new v,this.queryStore=new b,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(i.e?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=n,this.dataStore=o,this.onBroadcast=s,this.clientAwareness=f,this.localState=h||new m({cache:o.getCache()}),this.ssrMode=c,this.assumeImmutableResults=!!d}return QueryManager.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.fetchQueryRejectFns.forEach((function(e){e(new l.a(8))}))},QueryManager.prototype.mutate=function(e){var t=e.mutation,r=e.variables,n=e.optimisticResponse,a=e.updateQueries,s=e.refetchQueries,u=void 0===s?[]:s,c=e.awaitRefetchQueries,f=void 0!==c&&c,h=e.update,d=e.errorPolicy,y=void 0===d?"none":d,v=e.fetchPolicy,b=e.context,m=void 0===b?{}:b;return Object(o.__awaiter)(this,void 0,void 0,(function(){var e,s,c,d=this;return Object(o.__generator)(this,(function(b){switch(b.label){case 0:return Object(l.b)(t,9),Object(l.b)(!v||"no-cache"===v,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,m)]:[3,2];case 1:r=b.sent(),b.label=2;case 2:return s=function(){var e={};return a&&d.queries.forEach((function(t,r){var n=t.observableQuery;if(n){var o=n.queryName;o&&g.call(a,o)&&(e[r]={updater:a[o],query:d.queryStore.get(r)})}})),e},this.mutationStore.initMutation(e,t,r),this.dataStore.markMutationInit({mutationId:e,document:t,variables:r,updateQueries:s(),update:h,optimisticResponse:n}),this.broadcastQueries(),c=this,[2,new Promise((function(a,l){var d,b;c.getObservableFromLink(t,Object(o.__assign)({},m,{optimisticResponse:n}),r,!1).subscribe({next:function(n){Object(i.q)(n)&&"none"===y?b=new p({graphQLErrors:n.errors}):(c.mutationStore.markMutationResult(e),"no-cache"!==v&&c.dataStore.markMutationResult({mutationId:e,result:n,document:t,variables:r,updateQueries:s(),update:h}),d=n)},error:function(t){c.mutationStore.markMutationError(e,t),c.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),c.broadcastQueries(),c.setQuery(e,(function(){return{document:null}})),l(new p({networkError:t}))},complete:function(){if(b&&c.mutationStore.markMutationError(e,b),c.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),c.broadcastQueries(),b)l(b);else{"function"==typeof u&&(u=u(d));var t=[];isNonEmptyArray(u)&&u.forEach((function(e){if("string"==typeof e)c.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===e&&t.push(n.refetch())}));else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(c.query(r))}})),Promise.all(f?t:[]).then((function(){c.setQuery(e,(function(){return{document:null}})),"ignore"===y&&d&&Object(i.q)(d)&&delete d.errors,a(d)}))}}})}))]}}))}))},QueryManager.prototype.fetchQuery=function(e,t,r,n){return Object(o.__awaiter)(this,void 0,void 0,(function(){var a,s,u,c,l,f,h,y,v,b,m,g,O,S,j,Q,w,k,_=this;return Object(o.__generator)(this,(function(q){switch(q.label){case 0:return a=t.metadata,s=void 0===a?null:a,u=t.fetchPolicy,c=void 0===u?"cache-first":u,l=t.context,f=void 0===l?{}:l,h=this.transform(t.query).document,y=this.getVariables(h,t.variables),this.transform(h).hasClientExports?[4,this.localState.addExportedVariables(h,y,f)]:[3,2];case 1:y=q.sent(),q.label=2;case 2:if(t=Object(o.__assign)({},t,{variables:y}),m=b="network-only"===c||"no-cache"===c,b||(g=this.dataStore.getCache().diff({query:h,variables:y,returnPartialData:!0,optimistic:!1}),O=g.complete,S=g.result,m=!O||"cache-and-network"===c,v=S),j=m&&"cache-only"!==c&&"standby"!==c,Object(i.s)(["live"],h)&&(j=!0),Q=this.idCounter++,w="no-cache"!==c?this.updateQueryWatch(e,h,t):void 0,this.setQuery(e,(function(){return{document:h,lastRequestId:Q,invalidated:!0,cancel:w}})),this.invalidate(n),this.queryStore.initQuery({queryId:e,document:h,storePreviousVariables:j,variables:y,isPoll:r===d.poll,isRefetch:r===d.refetch,metadata:s,fetchMoreForQueryId:n}),this.broadcastQueries(),j){if(k=this.fetchRequest({requestId:Q,queryId:e,document:h,options:t,fetchMoreForQueryId:n}).catch((function(t){throw function isApolloError(e){return e.hasOwnProperty("graphQLErrors")}(t)?t:(Q>=_.getQuery(e).lastRequestId&&(_.queryStore.markQueryError(e,t,n),_.invalidate(e),_.invalidate(n),_.broadcastQueries()),new p({networkError:t}))})),"cache-and-network"!==c)return[2,k];k.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!j),this.invalidate(e),this.invalidate(n),this.transform(h).hasForcedResolvers?[2,this.localState.runResolvers({document:h,remoteResult:{data:v},context:f,variables:y,onlyRunForcedResolvers:!0}).then((function(r){return _.markQueryResult(e,r,t,n),_.broadcastQueries(),r}))]:(this.broadcastQueries(),[2,{data:v}])}}))}))},QueryManager.prototype.markQueryResult=function(e,t,r,n){var o=r.fetchPolicy,i=r.variables,a=r.errorPolicy;"no-cache"===o?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,i,n,"ignore"===a||"all"===a)},QueryManager.prototype.queryListenerForObserver=function(e,t,r){var n=this;function invoke(e,t){if(r[e])try{r[e](t)}catch(e){}}return function(r,o){if(n.invalidate(e,!1),r){var i=n.getQuery(e),a=i.observableQuery,s=i.document,u=a?a.options.fetchPolicy:t.fetchPolicy;if("standby"!==u){var c=isNetworkRequestInFlight(r.networkStatus),l=a&&a.getLastResult(),f=!(!l||l.networkStatus===r.networkStatus),h=t.returnPartialData||!o&&r.previousVariables||f&&t.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!c||h){var d=isNonEmptyArray(r.graphQLErrors),y=a&&a.options.errorPolicy||t.errorPolicy||"none";if("none"===y&&d||r.networkError)return invoke("error",new p({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var v=void 0,b=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&n.setQuery(e,(function(){return{newData:null}})),v=o.result,b=!o.complete;else{var m=a&&a.getLastError(),g="none"!==y&&(m&&m.graphQLErrors)!==r.graphQLErrors;if(l&&l.data&&!g)v=l.data,b=!1;else{var O=n.dataStore.getCache().diff({query:s,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});v=O.result,b=!O.complete}}var S=b&&!(t.returnPartialData||"cache-only"===u),j={data:S?l&&l.data:v,loading:c,networkStatus:r.networkStatus,stale:S};"all"===y&&d&&(j.errors=r.graphQLErrors),invoke("next",j)}catch(e){invoke("error",new p({networkError:e}))}}}}}},QueryManager.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.dataStore.getCache(),n=r.transformDocument(e),o=Object(i.D)(r.transformForLink(n)),a=this.localState.clientQuery(n),s=this.localState.serverQuery(o),u={document:n,hasClientExports:Object(i.r)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:a,serverQuery:s,defaultVars:Object(i.h)(Object(i.m)(n))},add=function(e){e&&!t.has(e)&&t.set(e,u)};add(e),add(n),add(a),add(s)}return t.get(e)},QueryManager.prototype.getVariables=function(e,t){return Object(o.__assign)({},this.transform(e).defaultVars,t)},QueryManager.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(l.b)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=Object(o.__assign)({},e);return new y({queryManager:this,options:r,shouldSubscribe:t})},QueryManager.prototype.query=function(e){var t=this;return Object(l.b)(e.query,12),Object(l.b)("Document"===e.query.kind,13),Object(l.b)(!e.returnPartialData,14),Object(l.b)(!e.pollInterval,15),new Promise((function(r,n){var o=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+o.queryId,n),o.result().then(r,n).then((function(){return t.fetchQueryRejectFns.delete("query:"+o.queryId)}))}))},QueryManager.prototype.generateQueryId=function(){return String(this.idCounter++)},QueryManager.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},QueryManager.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},QueryManager.prototype.updateQueryWatch=function(e,t,r){var n=this,o=this.getQuery(e).cancel;o&&o();return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:function(){var t=null,r=n.getQuery(e).observableQuery;if(r){var o=r.getLastResult();o&&(t=o.data)}return t},callback:function(t){n.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},QueryManager.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},QueryManager.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},QueryManager.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new l.a(16))}));var e=[];return this.queries.forEach((function(t,r){t.observableQuery&&e.push(r)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},QueryManager.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},QueryManager.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.queries.forEach((function(n,o){var i=n.observableQuery;if(i){var a=i.options.fetchPolicy;i.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(i.refetch()),t.setQuery(o,(function(){return{newData:null}})),t.invalidate(o)}})),this.broadcastQueries(),Promise.all(r)},QueryManager.prototype.observeQuery=function(e,t,r){return this.addQueryListener(e,this.queryListenerForObserver(e,t,r)),this.fetchQuery(e,t)},QueryManager.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch((function(){})),e},QueryManager.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,o=e.variables;r=this.transform(r).document,o=this.getVariables(r,o);var makeObservable=function(e){return t.getObservableFromLink(r,{},e,!1).map((function(o){if(n&&"no-cache"===n||(t.dataStore.markSubscriptionResult(o,r,e),t.broadcastQueries()),Object(i.q)(o))throw new p({graphQLErrors:o.errors});return o}))};if(this.transform(r).hasClientExports){var a=this.localState.addExportedVariables(r,o).then(makeObservable);return new h((function(e){var t=null;return a.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return makeObservable(o)},QueryManager.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},QueryManager.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},QueryManager.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var r=e.options,n=r.variables,o=r.query,i=r.fetchPolicy,a=r.returnPartialData,s=e.getLastResult(),u=this.getQuery(e.queryId).newData;if(u&&u.complete)return{data:u.result,partial:!1};if("no-cache"===i||"network-only"===i)return{data:void 0,partial:!1};var c=this.dataStore.getCache().diff({query:o,variables:n,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),l=c.result,f=c.complete;return{data:f||a?l:void 0,partial:!f}},QueryManager.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var r=this.getQuery(e).observableQuery;Object(l.b)(r,17),t=r}else t=e;var n=t.options,o=n.variables,i=n.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:o,document:i}},QueryManager.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,r){t.invalidated&&t.listeners.forEach((function(n){n&&n(e.queryStore.get(r),t.newData)}))}))},QueryManager.prototype.getLocalState=function(){return this.localState},QueryManager.prototype.getObservableFromLink=function(e,t,r,n){var a,s=this;void 0===n&&(n=this.queryDeduplication);var c=this.transform(e).serverQuery;if(c){var l=this.inFlightLinkObservables,f=this.link,d={query:c,variables:r,operationName:Object(i.n)(c)||void 0,context:this.prepareContext(Object(o.__assign)({},t,{forceFetch:!n}))};if(t=d.context,n){var p=l.get(c)||new Map;l.set(c,p);var y=JSON.stringify(r);if(!(a=p.get(y))){p.set(y,a=multiplex(Object(u.b)(f,d)));var cleanup=function(){p.delete(y),p.size||l.delete(c),v.unsubscribe()},v=a.subscribe({next:cleanup,error:cleanup,complete:cleanup})}}else a=multiplex(Object(u.b)(f,d))}else a=h.of({data:{}}),t=this.prepareContext(t);var b=this.transform(e).clientQuery;return b&&(a=function asyncMap(e,t){return new h((function(r){var n=r.next,o=r.error,i=r.complete,a=0,s=!1,u={next:function(e){++a,new Promise((function(r){r(t(e))})).then((function(e){--a,n&&n.call(r,e),s&&u.complete()}),(function(e){--a,o&&o.call(r,e)}))},error:function(e){o&&o.call(r,e)},complete:function(){s=!0,a||i&&i.call(r)}},c=e.subscribe(u);return function(){return c.unsubscribe()}}))}(a,(function(e){return s.localState.runResolvers({document:b,remoteResult:e,context:t,variables:r})}))),a},QueryManager.prototype.fetchRequest=function(e){var t,r,o=this,i=e.requestId,a=e.queryId,s=e.document,u=e.options,c=e.fetchMoreForQueryId,l=u.variables,f=u.errorPolicy,h=void 0===f?"none":f,d=u.fetchPolicy;return new Promise((function(e,f){var y=o.getObservableFromLink(s,u.context,l),v="fetchRequest:"+a;o.fetchQueryRejectFns.set(v,f);var cleanup=function(){o.fetchQueryRejectFns.delete(v),o.setQuery(a,(function(e){e.subscriptions.delete(b)}))},b=y.map((function(e){if(i>=o.getQuery(a).lastRequestId&&(o.markQueryResult(a,e,u,c),o.queryStore.markQueryResult(a,e,c),o.invalidate(a),o.invalidate(c),o.broadcastQueries()),"none"===h&&isNonEmptyArray(e.errors))return f(new p({graphQLErrors:e.errors}));if("all"===h&&(r=e.errors),c||"no-cache"===d)t=e.data;else{var n=o.dataStore.getCache().diff({variables:l,query:s,optimistic:!1,returnPartialData:!0}),y=n.result;(n.complete||u.returnPartialData)&&(t=y)}})).subscribe({error:function(e){cleanup(),f(e)},complete:function(){cleanup(),e({data:t,errors:r,loading:!1,networkStatus:n.ready,stale:!1})}});o.setQuery(a,(function(e){e.subscriptions.add(b)}))}))},QueryManager.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},QueryManager.prototype.setQuery=function(e,t){var r=this.getQuery(e),n=Object(o.__assign)({},r,t(r));this.queries.set(e,n)},QueryManager.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},QueryManager.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(o.__assign)({},t,{clientAwareness:this.clientAwareness})},QueryManager.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==n.ready&&t.networkStatus!==n.error},QueryManager.prototype.startPollingQuery=function(e,t,r){var n=this,i=e.pollInterval;if(Object(l.b)(i,18),!this.ssrMode){var a=this.pollingInfoByQueryId.get(t);a||this.pollingInfoByQueryId.set(t,a={}),a.interval=i,a.options=Object(o.__assign)({},e,{fetchPolicy:"network-only"});var maybeFetch_1=function(){var e=n.pollingInfoByQueryId.get(t);e&&(n.checkInFlight(t)?poll_1():n.fetchQuery(t,e.options,d.poll).then(poll_1,poll_1))},poll_1=function(){var e=n.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(maybeFetch_1,e.interval))};r&&this.addQueryListener(t,r),poll_1()}return t},QueryManager.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},QueryManager}(),S=function(){function DataStore(e){this.cache=e}return DataStore.prototype.getCache=function(){return this.cache},DataStore.prototype.markQueryResult=function(e,t,r,n,o){void 0===o&&(o=!1);var a=!Object(i.q)(e);o&&Object(i.q)(e)&&e.data&&(a=!0),!n&&a&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},DataStore.prototype.markSubscriptionResult=function(e,t,r){Object(i.q)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},DataStore.prototype.markMutationInit=function(e){var t,r=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(n){var o=r.cache;r.cache=n;try{r.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{r.cache=o}}),e.mutationId))},DataStore.prototype.markMutationResult=function(e){var t=this;if(!Object(i.q)(e.result)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],n=e.updateQueries;n&&Object.keys(n).forEach((function(o){var a=n[o],s=a.query,u=a.updater,c=t.cache.diff({query:s.document,variables:s.variables,returnPartialData:!0,optimistic:!1}),l=c.result;if(c.complete){var f=Object(i.I)((function(){return u(l,{mutationResult:e.result,queryName:Object(i.n)(s.document)||void 0,queryVariables:s.variables})}));f&&r.push({result:f,dataId:"ROOT_QUERY",query:s.document,variables:s.variables})}})),this.cache.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;n&&Object(i.I)((function(){return n(t,e.result)}))}))}},DataStore.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},DataStore.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},DataStore.prototype.reset=function(){return this.cache.reset()},DataStore}(),j="2.6.4",Q=function(){function ApolloClient(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.cache,n=e.ssrMode,o=void 0!==n&&n,i=e.ssrForceFetchDelay,a=void 0===i?0:i,s=e.connectToDevTools,c=e.queryDeduplication,f=void 0===c||c,h=e.defaultOptions,d=e.assumeImmutableResults,p=void 0!==d&&d,y=e.resolvers,v=e.typeDefs,b=e.fragmentMatcher,g=e.name,Q=e.version,w=e.link;if(!w&&y&&(w=u.a.empty()),!w||!r)throw new l.a(1);this.link=w,this.cache=r,this.store=new S(r),this.disableNetworkFetches=o||a>0,this.queryDeduplication=f,this.defaultOptions=h||{},this.typeDefs=v,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==s&&(s&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version=j,this.localState=new m({cache:r,client:this,resolvers:y,fragmentMatcher:b}),this.queryManager=new O({link:this.link,store:this.store,queryDeduplication:f,ssrMode:o,clientAwareness:{name:g,version:Q},localState:this.localState,assumeImmutableResults:p,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(o.__assign)({},this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(o.__assign)({},e,{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},ApolloClient.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(o.__assign)({},this.defaultOptions.query,e)),Object(l.b)("cache-and-network"!==e.fetchPolicy,2),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(o.__assign)({},e,{fetchPolicy:"cache-first"})),this.queryManager.query(e)},ApolloClient.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(o.__assign)({},this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},ApolloClient.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},ApolloClient.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},ApolloClient.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},ApolloClient.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},ApolloClient.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},ApolloClient.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},ApolloClient.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},ApolloClient.prototype.__requestRaw=function(e){return Object(u.b)(this.link,e)},ApolloClient.prototype.initQueryManager=function(){return this.queryManager},ApolloClient.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},ApolloClient.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},ApolloClient.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},ApolloClient.prototype.extract=function(e){return this.cache.extract(e)},ApolloClient.prototype.restore=function(e){return this.cache.restore(e)},ApolloClient.prototype.addResolvers=function(e){this.localState.addResolvers(e)},ApolloClient.prototype.setResolvers=function(e){this.localState.setResolvers(e)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},ApolloClient}();t.c=Q},"../node_modules/apollo-link/lib/bundle.esm.js":function(e,t,r){r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return execute})),r.d(t,"c",(function(){return fromError}));var n=r("../node_modules/zen-observable-ts/lib/bundle.esm.js"),o=r("../node_modules/ts-invariant/lib/invariant.esm.js"),i=r("../node_modules/tslib/tslib.es6.js"),a=r("../node_modules/apollo-utilities/lib/bundle.esm.js");!function(e){function LinkError(t,r){var n=e.call(this,t)||this;return n.link=r,n}Object(i.__extends)(LinkError,e)}(Error);function isTerminating(e){return e.request.length<=1}function fromError(e){return new n.a((function(t){t.error(e)}))}function createOperation(e,t){var r=Object(i.__assign)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?Object(i.__assign)({},r,e(r)):Object(i.__assign)({},r,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(i.__assign)({},r)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function getKey(e){var t=e.query,r=e.variables,n=e.operationName;return JSON.stringify([n,t,r])}(t)}}),t}function passthrough(e,t){return t?t(e):n.a.of()}function toLink(e){return"function"==typeof e?new s(e):e}function empty(){return new s((function(){return n.a.of()}))}function from(e){return 0===e.length?empty():e.map(toLink).reduce((function(e,t){return e.concat(t)}))}function split(e,t,r){var o=toLink(t),i=toLink(r||new s(passthrough));return isTerminating(o)&&isTerminating(i)?new s((function(t){return e(t)?o.request(t)||n.a.of():i.request(t)||n.a.of()})):new s((function(t,r){return e(t)?o.request(t,r)||n.a.of():i.request(t,r)||n.a.of()}))}var concat=function(e,t){var r=toLink(e);if(isTerminating(r))return r;var o=toLink(t);return isTerminating(o)?new s((function(e){return r.request(e,(function(e){return o.request(e)||n.a.of()}))||n.a.of()})):new s((function(e,t){return r.request(e,(function(e){return o.request(e,t)||n.a.of()}))||n.a.of()}))},s=function(){function ApolloLink(e){e&&(this.request=e)}return ApolloLink.prototype.split=function(e,t,r){return this.concat(split(e,t,r||new ApolloLink(passthrough)))},ApolloLink.prototype.concat=function(e){return concat(this,e)},ApolloLink.prototype.request=function(e,t){throw new o.a(1)},ApolloLink.empty=empty,ApolloLink.from=from,ApolloLink.split=split,ApolloLink.execute=execute,ApolloLink}();function execute(e,t){return e.request(createOperation(t.context,function transformOperation(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Object(a.n)(t.query):""),t}(function validateOperation(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(t.indexOf(i)<0)throw new o.a(2)}return e}(t))))||n.a.of()}},"../node_modules/apollo-utilities/lib/bundle.esm.js":function(e,t,r){(function(e){r.d(t,"a",(function(){return addTypenameToDocument})),r.d(t,"b",(function(){return argumentsObjectFromField})),r.d(t,"c",(function(){return assign})),r.d(t,"d",(function(){return buildQueryFromSelectionSet})),r.d(t,"e",(function(){return f})),r.d(t,"f",(function(){return cloneDeep})),r.d(t,"g",(function(){return createFragmentMap})),r.d(t,"h",(function(){return getDefaultValues})),r.d(t,"i",(function(){return getDirectiveInfoFromField})),r.d(t,"j",(function(){return getFragmentDefinitions})),r.d(t,"k",(function(){return getFragmentQueryDocument})),r.d(t,"l",(function(){return getMainDefinition})),r.d(t,"m",(function(){return getOperationDefinition})),r.d(t,"n",(function(){return getOperationName})),r.d(t,"o",(function(){return getQueryDefinition})),r.d(t,"p",(function(){return getStoreKeyName})),r.d(t,"q",(function(){return graphQLResultHasError})),r.d(t,"r",(function(){return hasClientExports})),r.d(t,"s",(function(){return hasDirectives})),r.d(t,"t",(function(){return isField})),r.d(t,"u",(function(){return isIdValue})),r.d(t,"v",(function(){return isInlineFragment})),r.d(t,"w",(function(){return isJsonValue})),r.d(t,"x",(function(){return isProduction})),r.d(t,"y",(function(){return isTest})),r.d(t,"z",(function(){return maybeDeepFreeze})),r.d(t,"A",(function(){return mergeDeep})),r.d(t,"B",(function(){return mergeDeepArray})),r.d(t,"C",(function(){return removeClientSetsFromDocument})),r.d(t,"D",(function(){return removeConnectionDirectiveFromDocument})),r.d(t,"E",(function(){return resultKeyNameFromField})),r.d(t,"F",(function(){return shouldInclude})),r.d(t,"G",(function(){return storeKeyNameFromField})),r.d(t,"H",(function(){return toIdValue})),r.d(t,"I",(function(){return tryFunctionOrLogError}));var n=r("../node_modules/graphql/language/visitor.mjs"),o=r("../node_modules/ts-invariant/lib/invariant.esm.js"),i=r("../node_modules/tslib/tslib.es6.js"),a=r("../node_modules/fast-json-stable-stringify/index.js"),s=r.n(a);r("../node_modules/@wry/equality/lib/equality.esm.js");function valueToObjectRepresentation(e,t,r,n){if(function isIntValue(e){return"IntValue"===e.kind}(r)||function isFloatValue(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function isBooleanValue(e){return"BooleanValue"===e.kind}(r)||function isStringValue(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function isObjectValue(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map((function(e){return valueToObjectRepresentation(i,e.name,e.value,n)})),e[t.value]=i}else if(function isVariable(e){return"Variable"===e.kind}(r)){var a=(n||{})[r.name.value];e[t.value]=a}else if(function isListValue(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return valueToObjectRepresentation(r,t,e,n),r[t.value]}));else if(function isEnumValue(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function isNullValue(e){return"NullValue"===e.kind}(r))throw new o.a(17);e[t.value]=null}}function storeKeyNameFromField(e,t){var r=null;e.directives&&(r={},e.directives.forEach((function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach((function(n){var o=n.name,i=n.value;return valueToObjectRepresentation(r[e.name.value],o,i,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,o=e.value;return valueToObjectRepresentation(n,r,o,t)}))),getStoreKeyName(e.name.value,n,r)}var u=["connection","include","skip","client","rest","export"];function getStoreKeyName(e,t,r){if(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 o=t,i={};return n.forEach((function(e){i[e]=o[e]})),r.connection.key+"("+JSON.stringify(i)+")"}return r.connection.key}var a=e;if(t){var c=s()(t);a+="("+c+")"}return r&&Object.keys(r).forEach((function(e){-1===u.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?a+="@"+e+"("+JSON.stringify(r[e])+")":a+="@"+e)})),a}function argumentsObjectFromField(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,o=e.value;return valueToObjectRepresentation(r,n,o,t)})),r}return null}function resultKeyNameFromField(e){return e.alias?e.alias.value:e.name.value}function isField(e){return"Field"===e.kind}function isInlineFragment(e){return"InlineFragment"===e.kind}function isIdValue(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function toIdValue(e,t){return void 0===t&&(t=!1),Object(i.__assign)({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function isJsonValue(e){return null!=e&&"object"==typeof e&&"json"===e.type}function getDirectiveInfoFromField(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach((function(e){r[e.name.value]=argumentsObjectFromField(e,t)})),r}return null}function shouldInclude(e,t){return void 0===t&&(t={}),function getInclusionDirectives(e){return e?e.filter(isInclusionDirective).map((function(e){var t=e.arguments;e.name.value;Object(o.b)(t&&1===t.length,4);var r=t[0];Object(o.b)(r.name&&"if"===r.name.value,5);var n=r.value;return Object(o.b)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),6),{directive:e,ifArgument:r}})):[]}(e.directives).every((function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?(i=t[n.value.name.value],Object(o.b)(void 0!==i,3)):i=n.value.value,"skip"===r.name.value?!i:i}))}function hasDirectives(e,t){return function getDirectiveNames(e){var t=[];return Object(n.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function hasClientExports(e){return e&&hasDirectives(["client"],e)&&hasDirectives(["export"],e)}function isInclusionDirective(e){var t=e.name.value;return"skip"===t||"include"===t}function getFragmentQueryDocument(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new o.a(1);"FragmentDefinition"===e.kind&&n.push(e)})),void 0===r&&(Object(o.b)(1===n.length,2),r=n[0].name.value),Object(i.__assign)({},e,{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}].concat(e.definitions)})}function assign(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach((function(t){null!=t&&Object.keys(t).forEach((function(r){e[r]=t[r]}))})),e}function checkDocument(e){Object(o.b)(e&&"Document"===e.kind,8);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw new o.a(9);return e}));return Object(o.b)(t.length<=1,10),e}function getOperationDefinition(e){return checkDocument(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function getOperationName(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function getFragmentDefinitions(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function getQueryDefinition(e){var t=getOperationDefinition(e);return Object(o.b)(t&&"query"===t.operation,12),t}function getMainDefinition(e){var t;checkDocument(e);for(var r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var a=i.operation;if("query"===a||"mutation"===a||"subscription"===a)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw new o.a(16)}function createFragmentMap(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function getDefaultValues(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter((function(e){return e.defaultValue})).map((function(e){var t=e.variable,r=e.defaultValue,n={};return valueToObjectRepresentation(n,t.name,r),n}));return assign.apply(void 0,[{}].concat(t))}return{}}function filterInPlace(e,t,r){var n=0;return e.forEach((function(r,o){t.call(this,r,o,e)&&(e[n++]=r)}),r),e.length=n,e}var c={kind:"Field",name:{kind:"Name",value:"__typename"}};function nullIfDocIsEmpty(e){return function isEmpty(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&isEmpty(t[e.name.value],t)}))}(getOperationDefinition(e)||function getFragmentDefinition(e){Object(o.b)("Document"===e.kind,13),Object(o.b)(e.definitions.length<=1,14);var t=e.definitions[0];return Object(o.b)("FragmentDefinition"===t.kind,15),t}(e),createFragmentMap(getFragmentDefinitions(e)))?null:e}function getDirectiveMatcher(e){return function directiveMatcher(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function removeDirectivesFromDocument(e,t){var r=Object.create(null),o=[],a=Object.create(null),s=[],u=nullIfDocIsEmpty(Object(n.b)(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(r[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(getDirectiveMatcher(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&o.push({name:e.value.name.value})})),t.selectionSet&&function getAllFragmentSpreadsFromSelectionSet(e){var t=[];return e.selections.forEach((function(e){(isField(e)||isInlineFragment(e))&&e.selectionSet?getAllFragmentSpreadsFromSelectionSet(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}(t.selectionSet).forEach((function(e){s.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){a[e.name.value]=!0}},Directive:{enter:function(t){if(getDirectiveMatcher(e)(t))return null}}}));return u&&filterInPlace(o,(function(e){return!r[e.name]})).length&&(u=function removeArgumentsFromDocument(e,t){var r=function getArgumentMatcher(e){return function argumentMatcher(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return nullIfDocIsEmpty(Object(n.b)(t,{OperationDefinition:{enter:function(t){return Object(i.__assign)({},t,{variableDefinitions:t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))}))})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var n=0;if(t.arguments.forEach((function(e){r(e)&&(n+=1)})),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}(o,u)),u&&filterInPlace(s,(function(e){return!a[e.name]})).length&&(u=function removeFragmentSpreadFromDocument(e,t){function enter(t){if(e.some((function(e){return e.name===t.name.value})))return null}return nullIfDocIsEmpty(Object(n.b)(t,{FragmentSpread:{enter:enter},FragmentDefinition:{enter:enter}}))}(s,u)),u}function addTypenameToDocument(e){return Object(n.b)(checkDocument(e),{SelectionSet:{enter:function(e,t,r){if(!r||"OperationDefinition"!==r.kind){var n=e.selections;if(n)if(!n.some((function(e){return isField(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var o=r;if(!(isField(o)&&o.directives&&o.directives.some((function(e){return"export"===e.name.value}))))return Object(i.__assign)({},e,{selections:n.concat([c])})}}}}})}var l={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some((function(e){return"key"===e.name.value}))),t}};function removeConnectionDirectiveFromDocument(e){return removeDirectivesFromDocument([l],checkDocument(e))}function buildQueryFromSelectionSet(e){return"query"===getMainDefinition(e).operation?e:Object(n.b)(e,{OperationDefinition:{enter:function(e){return Object(i.__assign)({},e,{operation:"query"})}}})}function removeClientSetsFromDocument(e){checkDocument(e);var t=removeDirectivesFromDocument([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Object(n.b)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return isField(e)&&"__typename"===e.name.value})))return null}}})),t}var f="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),h=Object.prototype.toString;function cloneDeep(e){return function cloneDeepHelper(e,t){switch(h.call(e)){case"[object Array]":if(t.has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach((function(e,n){r[n]=cloneDeepHelper(e,t)})),r;case"[object Object]":if(t.has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach((function(r){n[r]=cloneDeepHelper(e[r],t)})),n;default:return e}}(e,new Map)}function isEnv(t){return function getEnv(){return void 0!==e?"production":"development"}()===t}function isProduction(){return!0===isEnv("production")}function isTest(){return!0===isEnv("test")}function tryFunctionOrLogError(e){try{return e()}catch(e){console.error&&console.error(e)}}function graphQLResultHasError(e){return e.errors&&e.errors.length}function maybeDeepFreeze(e){if((function isDevelopment(){return!0===isEnv("development")}()||isTest())&&!("function"==typeof Symbol&&"string"==typeof Symbol("")))return function deepFreeze(e){return Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){null===e[t]||"object"!=typeof e[t]&&"function"!=typeof e[t]||Object.isFrozen(e[t])||deepFreeze(e[t])})),e}(e);return e}var d=Object.prototype.hasOwnProperty;function mergeDeep(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mergeDeepArray(e)}function mergeDeepArray(e){var t=e[0]||{},r=e.length;if(r>1){var n=[];t=shallowCopyForMerge(t,n);for(var o=1;o<r;++o)t=mergeHelper(t,e[o],n)}return t}function isObject(e){return null!==e&&"object"==typeof e}function mergeHelper(e,t,r){return isObject(t)&&isObject(e)?(Object.isExtensible&&!Object.isExtensible(e)&&(e=shallowCopyForMerge(e,r)),Object.keys(t).forEach((function(n){var o=t[n];if(d.call(e,n)){var i=e[n];o!==i&&(e[n]=mergeHelper(shallowCopyForMerge(i,r),o,r))}else e[n]=o})),e):t}function shallowCopyForMerge(e,t){return null!==e&&"object"==typeof e&&t.indexOf(e)<0&&(e=Array.isArray(e)?e.slice(0):Object(i.__assign)({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}Object.create({})}).call(this,r("../node_modules/process/browser.js"))},"../node_modules/asap/browser-asap.js":function(e,t,r){var n=r("../node_modules/asap/browser-raw.js"),o=[],i=[],a=n.makeRequestCallFromTimer((function throwFirstError(){if(i.length)throw i.shift()}));function asap(e){var t;(t=o.length?o.pop():new RawTask).task=e,n(t)}function RawTask(){this.task=null}e.exports=asap,RawTask.prototype.call=function(){try{this.task.call()}catch(e){asap.onerror?asap.onerror(e):(i.push(e),a())}finally{this.task=null,o[o.length]=this}}},"../node_modules/asap/browser-raw.js":function(e,t,r){(function(t){function rawAsap(e){n.length||(r(),!0),n[n.length]=e}e.exports=rawAsap;var r,n=[],o=0,i=1024;function flush(){for(;o<n.length;){var e=o;if(o+=1,n[e].call(),o>i){for(var t=0,r=n.length-o;t<r;t++)n[t]=n[t+o];n.length-=o,o=0}}n.length=0,o=0,!1}var a=void 0!==t?t:self,s=a.MutationObserver||a.WebKitMutationObserver;function makeRequestCallFromTimer(e){return function requestCall(){var t=setTimeout(handleTimer,0),r=setInterval(handleTimer,50);function handleTimer(){clearTimeout(t),clearInterval(r),e()}}}r="function"==typeof s?function makeRequestCallFromMutationObserver(e){var t=1,r=new s(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function requestCall(){t=-t,n.data=t}}(flush):makeRequestCallFromTimer(flush),rawAsap.requestFlush=r,rawAsap.makeRequestCallFromTimer=makeRequestCallFromTimer}).call(this,r("../node_modules/webpack/buildin/global.js"))}}]);
//# sourceMappingURL=vendors~App-7KZ9F~9b1fde68.chunk.eaa5497fb7f7db0479e3.js.map