PageSourceSearch

https://www.promotionbasis.de/_nuxt/f5dc827.js

js promotionbasis.de collected 2026-09-30 05:36:47 UTC 40,174 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="59b43ff9-7e61-506f-95b8-fba0d6b36b3a")}catch(e){}}();
3(window.webpackJsonp=window.webpackJsonp||[]).push([[147],{906:function(e,t,r){"use strict";r.r(t),r.d(t,"ApolloClient",(function(){return D})),r.d(t,"ApolloError",(function(){return S})),r.d(t,"FetchType",(function(){return _})),r.d(t,"NetworkStatus",(function(){return o})),r.d(t,"ObservableQuery",(function(){return j})),r.d(t,"isApolloError",(function(){return w}));var o,n=r(8),c=r(18),l=r(189),h=r(96),f=r(122),y=r(476),d=r(30),v=r(128);function m(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"}(o||(o={}));var Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(n.__extends)(t,e),t.prototype[y.default]=function(){return this},t.prototype["@@observable"]=function(){return this},t}(h.a);function O(e){return Array.isArray(e)&&e.length>0}function w(e){return e.hasOwnProperty("graphQLErrors")}var _,S=function(e){function t(r){var o,n,c=r.graphQLErrors,l=r.networkError,h=r.errorMessage,f=r.extraInfo,y=e.call(this,h)||this;return y.graphQLErrors=c||[],y.networkError=l||null,y.message=h||(n="",O((o=y).graphQLErrors)&&o.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";n+="GraphQL error: "+t+"\n"})),o.networkError&&(n+="Network error: "+o.networkError.message+"\n"),n=n.replace(/\n$/,"")),y.extraInfo=f,y.__proto__=t.prototype,y}return Object(n.__extends)(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(_||(_={}));var j=function(e){function t(t){var r=t.queryManager,o=t.options,n=t.shouldSubscribe,l=void 0===n||n,h=e.call(this,(function(e){return h.onSubscribe(e)}))||this;h.observers=new Set,h.subscriptions=new Set,h.isTornDown=!1,h.options=o,h.variables=o.variables||{},h.queryId=r.generateQueryId(),h.shouldSubscribe=l;var f=Object(c.getOperationDefinition)(o.query);return h.queryName=f&&f.name&&f.name.value,h.queryManager=r,h}return Object(n.__extends)(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var o={next:function(r){t(r),e.observers.delete(o),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){n.unsubscribe()}),0)},error:r},n=e.subscribe(o)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:o.error}}var t,r,c,l=this.queryManager.getCurrentQueryResult(this),data=l.data,h=l.partial,f=this.queryManager.queryStore.get(this.queryId),y=this.options.fetchPolicy,d="network-only"===y||"no-cache"===y;if(f){var v=f.networkStatus;if(r=f,void 0===(c=this.options.errorPolicy)&&(c="none"),r&&(r.networkError||"none"===c&&O(r.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:v,error:new S({graphQLErrors:f.graphQLErrors,networkError:f.networkError})};f.variables&&(this.options.variables=Object(n.__assign)(Object(n.__assign)({},this.options.variables),f.variables),this.variables=this.options.variables),t={data:data,loading:m(v),networkStatus:v},f.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=f.graphQLErrors)}else{var Q=d||h&&"cache-only"!==y;t={data:data,loading:Q,networkStatus:Q?o.loading:o.ready}}return h||this.updateLastResult(Object(n.__assign)(Object(n.__assign)({},t),{stale:!1})),Object(n.__assign)(Object(n.__assign)({},t),{partial:h})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(l.a)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new d.a(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(l.a)(this.variables,e)||(this.variables=Object(n.__assign)(Object(n.__assign)({},this.variables),e)),Object(l.a)(this.options.variables,this.variables)||(this.options.variables=Object(n.__assign)(Object(n.__assign)({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Object(n.__assign)(Object(n.__assign)({},this.options),{fetchPolicy:t}),_.refetch))},t.prototype.fetchMore=function(e){var t=this;Object(d.b)(e.updateQuery,2);var r=Object(n.__assign)(Object(n.__assign)({},e.query?e:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({},this.options),e),{variables:Object(n.__assign)(Object(n.__assign)({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),o=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(o,r,_.normal,this.queryId).then((function(n){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:n.data,variables:r.variables})})),t.queryManager.stopQuery(o),n}),(function(e){throw t.queryManager.stopQuery(o),e}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(r){var o=e.updateQuery;o&&t.updateQuery((function(e,t){var n=t.variables;return o(e,{subscriptionData:r,variables:n})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(n.__assign)(Object(n.__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)},t.prototype.setVariables=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(l.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())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.getQueryWithPreviousResult(this.queryId),o=r.previousResult,n=r.variables,l=r.document,h=Object(c.tryFunctionOrLogError)((function(){return e(o,{variables:n})}));h&&(t.dataStore.markUpdateQueryResult(l,n,h),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){E(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(c.cloneDeep)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var r=e._subscription._observer;r&&!r.error&&(r.error=R)}catch(e){}var o=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),o&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,r=this.queryId;this.shouldSubscribe&&t.addObservableQuery(r,this),this.options.pollInterval&&(E(this),t.startPollingQuery(this.options,r));var c=function(t){e.updateLastResult(Object(n.__assign)(Object(n.__assign)({},e.lastResult),{errors:t.graphQLErrors,networkStatus:o.error,loading:!1})),k(e.observers,"error",e.lastError=t)};t.observeQuery(r,this.options,{next:function(r){if(e.lastError||e.isDifferentFromLastResult(r)){var o=e.updateLastResult(r),n=e.options,c=n.query,h=n.variables,f=n.fetchPolicy;t.transform(c).hasClientExports?t.getLocalState().addExportedVariables(c,h).then((function(n){var h=e.variables;e.variables=e.options.variables=n,!r.loading&&o&&"cache-only"!==f&&t.transform(c).serverQuery&&!Object(l.a)(h,n)?e.refetch():k(e.observers,"next",r)})):k(e.observers,"next",r)}},error:c}).catch(c)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(sub){return sub.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(Q);function R(e){}function k(e,t,r){var o=[];e.forEach((function(e){return e[t]&&o.push(e)})),o.forEach((function(e){return e[t](r)}))}function E(e){var t=e.options.fetchPolicy;Object(d.b)("cache-first"!==t&&"cache-only"!==t,3)}var M=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,r){this.store[e]={mutation:t,variables:r||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),I=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(d.b)(!t||t.document===e.document||Object(l.a)(t.document,e.document),19);var r,n=!1,c=null;e.storePreviousVariables&&t&&t.networkStatus!==o.loading&&(Object(l.a)(t.variables,e.variables)||(n=!0,c=t.variables)),r=n?o.setVariables:e.isPoll?o.poll:e.isRefetch?o.refetch:o.loading;var h=[];t&&t.graphQLErrors&&(h=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:c,networkError:null,graphQLErrors:h,networkStatus:r,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=o.fetchMore)},e.prototype.markQueryResult=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=O(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=o.ready,"string"==typeof r&&this.store[r]&&(this.store[r].networkStatus=o.ready))},e.prototype.markQueryError=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=o.error,"string"==typeof r&&this.markQueryResultClient(r,!0))},e.prototype.markQueryResultClient=function(e,t){var r=this.store&&this.store[e];r&&(r.networkError=null,r.previousVariables=null,t&&(r.networkStatus=o.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(r){e.indexOf(r)<0?t.stopQuery(r):t.store[r].networkStatus=o.loading}))},e}();var F=function(){function e(e){var t=e.cache,r=e.client,o=e.resolvers,n=e.fragmentMatcher;this.cache=t,r&&(this.client=r),o&&this.addResolvers(o),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(c.mergeDeep)(t.resolvers,e)})):this.resolvers=Object(c.mergeDeep)(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,o=e.context,c=e.variables,l=e.onlyRunForcedResolvers,h=void 0!==l&&l;return Object(n.__awaiter)(this,void 0,void 0,(function(){return Object(n.__generator)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,o,c,this.fragmentMatcher,h).then((function(e){return Object(n.__assign)(Object(n.__assign)({},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(c.hasDirectives)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(c.removeClientSet
3sFromDocument)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(n.__assign)(Object(n.__assign)({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(d.b)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(n.__awaiter)(this,void 0,void 0,(function(){return Object(n.__generator)(this,(function(o){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(data){return Object(n.__assign)(Object(n.__assign)({},t),data.exportedVariables)}))]:[2,Object(n.__assign)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(v.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 v.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(c.buildQueryFromSelectionSet)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,o,l,h){return void 0===r&&(r={}),void 0===o&&(o={}),void 0===l&&(l=function(){return!0}),void 0===h&&(h=!1),Object(n.__awaiter)(this,void 0,void 0,(function(){var f,y,d,v,m,Q,O,w,_;return Object(n.__generator)(this,(function(S){var j;return f=Object(c.getMainDefinition)(e),y=Object(c.getFragmentDefinitions)(e),d=Object(c.createFragmentMap)(y),v=f.operation,m=v?(j=v).charAt(0).toUpperCase()+j.slice(1):"Query",O=(Q=this).cache,w=Q.client,_={fragmentMap:d,context:Object(n.__assign)(Object(n.__assign)({},r),{cache:O,client:w}),variables:o,fragmentMatcher:l,defaultOperationType:m,exportedVariables:{},onlyRunForcedResolvers:h},[2,this.resolveSelectionSet(f.selectionSet,t,_).then((function(e){return{result:e,exportedVariables:_.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r){return Object(n.__awaiter)(this,void 0,void 0,(function(){var o,l,h,f,y,v=this;return Object(n.__generator)(this,(function(m){return o=r.fragmentMap,l=r.context,h=r.variables,f=[t],y=function(e){return Object(n.__awaiter)(v,void 0,void 0,(function(){var y,v;return Object(n.__generator)(this,(function(n){return Object(c.shouldInclude)(e,h)?Object(c.isField)(e)?[2,this.resolveField(e,t,r).then((function(t){var r;void 0!==t&&f.push(((r={})[Object(c.resultKeyNameFromField)(e)]=t,r))}))]:(Object(c.isInlineFragment)(e)?y=e:(y=o[e.name.value],Object(d.b)(y,7)),y&&y.typeCondition&&(v=y.typeCondition.name.value,r.fragmentMatcher(t,v,l))?[2,this.resolveSelectionSet(y.selectionSet,t,r).then((function(e){f.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(y)).then((function(){return Object(c.mergeDeepArray)(f)}))]}))}))},e.prototype.resolveField=function(e,t,r){return Object(n.__awaiter)(this,void 0,void 0,(function(){var o,l,h,f,y,d,v,m,Q,O=this;return Object(n.__generator)(this,(function(n){return o=r.variables,l=e.name.value,h=Object(c.resultKeyNameFromField)(e),f=l!==h,y=t[h]||t[l],d=Promise.resolve(y),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(v=t.__typename||r.defaultOperationType,(m=this.resolvers&&this.resolvers[v])&&(Q=m[f?l:h])&&(d=Promise.resolve(Q(t,Object(c.argumentsObjectFromField)(e,o),r.context,{field:e,fragmentMap:r.fragmentMap})))),[2,d.then((function(t){return void 0===t&&(t=y),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)?O.resolveSubSelectedArray(e,t,r):e.selectionSet?O.resolveSelectionSet(e.selectionSet,t,r):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r){var o=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?o.resolveSubSelectedArray(e,t,r):e.selectionSet?o.resolveSelectionSet(e.selectionSet,t,r):void 0})))},e}();function P(e){var t=new Set,sub=null;return new Q((function(r){return t.add(r),sub=sub||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()}
3))}}),function(){t.delete(r)&&!t.size&&sub&&(sub.unsubscribe(),sub=null)}}))}var L=Object.prototype.hasOwnProperty,x=function(){function e(e){var link=e.link,t=e.queryDeduplication,r=void 0!==t&&t,o=e.store,n=e.onBroadcast,l=void 0===n?function(){}:n,h=e.ssrMode,f=void 0!==h&&h,y=e.clientAwareness,d=void 0===y?{}:y,v=e.localState,m=e.assumeImmutableResults;this.mutationStore=new M,this.queryStore=new I,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(c.canUseWeakMap?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=link,this.queryDeduplication=r,this.dataStore=o,this.onBroadcast=l,this.clientAwareness=d,this.localState=v||new F({cache:o.getCache()}),this.ssrMode=f,this.assumeImmutableResults=!!m}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.fetchQueryRejectFns.forEach((function(e){e(new d.a(8))}))},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,o=e.optimisticResponse,l=e.updateQueries,h=e.refetchQueries,f=void 0===h?[]:h,y=e.awaitRefetchQueries,v=void 0!==y&&y,m=e.update,Q=e.errorPolicy,w=void 0===Q?"none":Q,_=e.fetchPolicy,j=e.context,R=void 0===j?{}:j;return Object(n.__awaiter)(this,void 0,void 0,(function(){var e,h,y,Q=this;return Object(n.__generator)(this,(function(j){switch(j.label){case 0:return Object(d.b)(t,9),Object(d.b)(!_||"no-cache"===_,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,R)]:[3,2];case 1:r=j.sent(),j.label=2;case 2:return h=function(){var e={};return l&&Q.queries.forEach((function(t,r){var o=t.observableQuery;if(o){var n=o.queryName;n&&L.call(l,n)&&(e[r]={updater:l[n],query:Q.queryStore.get(r)})}})),e},this.mutationStore.initMutation(e,t,r),this.dataStore.markMutationInit({mutationId:e,document:t,variables:r,updateQueries:h(),update:m,optimisticResponse:o}),this.broadcastQueries(),y=this,[2,new Promise((function(l,d){var Q,j;y.getObservableFromLink(t,Object(n.__assign)(Object(n.__assign)({},R),{optimisticResponse:o}),r,!1).subscribe({next:function(o){Object(c.graphQLResultHasError)(o)&&"none"===w?j=new S({graphQLErrors:o.errors}):(y.mutationStore.markMutationResult(e),"no-cache"!==_&&y.dataStore.markMutationResult({mutationId:e,result:o,document:t,variables:r,updateQueries:h(),update:m}),Q=o)},error:function(t){y.mutationStore.markMutationError(e,t),y.dataStore.markMutationComplete({mutationId:e,optimisticResponse:o}),y.broadcastQueries(),y.setQuery(e,(function(){return{document:null}})),d(new S({networkError:t}))},complete:function(){if(j&&y.mutationStore.markMutationError(e,j),y.dataStore.markMutationComplete({mutationId:e,optimisticResponse:o}),y.broadcastQueries(),j)d(j);else{"function"==typeof f&&(f=f(Q));var t=[];O(f)&&f.forEach((function(e){if("string"==typeof e)y.queries.forEach((function(r){var o=r.observableQuery;o&&o.queryName===e&&t.push(o.refetch())}));else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(y.query(r))}})),Promise.all(v?t:[]).then((function(){y.setQuery(e,(function(){return{document:null}})),"ignore"===w&&Q&&Object(c.graphQLResultHasError)(Q)&&delete Q.errors,l(Q)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,r,o){return Object(n.__awaiter)(this,void 0,void 0,(function(){var l,h,f,y,d,v,m,Q,O,j,R,k,E,M,I,F,P,L,x=this;return Object(n.__generator)(this,(function(C){switch(C.label){case 0:return l=t.metadata,h=void 0===l?null:l,f=t.fetchPolicy,y=void 0===f?"cache-first":f,d=t.context,v=void 0===d?{}:d,m=this.transform(t.query).document,Q=this.getVariables(m,t.variables),this.transform(m).hasClientExports?[4,this.localState.addExportedVariables(m,Q,v)]:[3,2];
3case 1:Q=C.sent(),C.label=2;case 2:if(t=Object(n.__assign)(Object(n.__assign)({},t),{variables:Q}),R=j="network-only"===y||"no-cache"===y,j||(k=this.dataStore.getCache().diff({query:m,variables:Q,returnPartialData:!0,optimistic:!1}),E=k.complete,M=k.result,R=!E||"cache-and-network"===y,O=M),I=R&&"cache-only"!==y&&"standby"!==y,Object(c.hasDirectives)(["live"],m)&&(I=!0),F=this.idCounter++,P="no-cache"!==y?this.updateQueryWatch(e,m,t):void 0,this.setQuery(e,(function(){return{document:m,lastRequestId:F,invalidated:!0,cancel:P}})),this.invalidate(o),this.queryStore.initQuery({queryId:e,document:m,storePreviousVariables:I,variables:Q,isPoll:r===_.poll,isRefetch:r===_.refetch,metadata:h,fetchMoreForQueryId:o}),this.broadcastQueries(),I){if(L=this.fetchRequest({requestId:F,queryId:e,document:m,options:t,fetchMoreForQueryId:o}).catch((function(t){throw w(t)?t:(F>=x.getQuery(e).lastRequestId&&(x.queryStore.markQueryError(e,t,o),x.invalidate(e),x.invalidate(o),x.broadcastQueries()),new S({networkError:t}))})),"cache-and-network"!==y)return[2,L];L.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!I),this.invalidate(e),this.invalidate(o),this.transform(m).hasForcedResolvers?[2,this.localState.runResolvers({document:m,remoteResult:{data:O},context:v,variables:Q,onlyRunForcedResolvers:!0}).then((function(r){return x.markQueryResult(e,r,t,o),x.broadcastQueries(),r}))]:(this.broadcastQueries(),[2,{data:O}])}}))}))},e.prototype.markQueryResult=function(e,t,r,o){var n=r.fetchPolicy,c=r.variables,l=r.errorPolicy;"no-cache"===n?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,c,o,"ignore"===l||"all"===l)},e.prototype.queryListenerForObserver=function(e,t,r){var o=this;function n(e,t){if(r[e])try{r[e](t)}catch(e){}}return function(r,c){if(o.invalidate(e,!1),r){var l=o.getQuery(e),h=l.observableQuery,f=l.document,y=h?h.options.fetchPolicy:t.fetchPolicy;if("standby"!==y){var d=m(r.networkStatus),v=h&&h.getLastResult(),Q=!(!v||v.networkStatus===r.networkStatus),w=t.returnPartialData||!c&&r.previousVariables||Q&&t.notifyOnNetworkStatusChange||"cache-only"===y||"cache-and-network"===y;if(!d||w){var _=O(r.graphQLErrors),j=h&&h.options.errorPolicy||t.errorPolicy||"none";if("none"===j&&_||r.networkError)return n("error",new S({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var data=void 0,R=void 0;if(c)"no-cache"!==y&&"network-only"!==y&&o.setQuery(e,(function(){return{newData:null}})),data=c.result,R=!c.complete;else{var k=h&&h.getLastError(),E="none"!==j&&(k&&k.graphQLErrors)!==r.graphQLErrors;if(v&&v.data&&!E)data=v.data,R=!1;else{var M=o.dataStore.getCache().diff({query:f,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});data=M.result,R=!M.complete}}var I=R&&!(t.returnPartialData||"cache-only"===y),F={data:I?v&&v.data:data,loading:d,networkStatus:r.networkStatus,stale:I};"all"===j&&_&&(F.errors=r.graphQLErrors),n("next",F)}catch(e){n("error",new S({networkError:e}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.dataStore.getCache(),o=r.transformDocument(e),n=Object(c.removeConnectionDirectiveFromDocument)(r.transformForLink(o)),l=this.localState.clientQuery(o),h=this.localState.serverQuery(n),f={document:o,hasClientExports:Object(c.hasClientExports)(o),hasForcedResolvers:this.localState.shouldForceResolvers(o),clientQuery:l,serverQuery:h,defaultVars:Object(c.getDefaultValues)(Object(c.getOperationDefinition)(o))},y=function(e){e&&!t.has(e)&&t.set(e,f)};y(e),y(o),y(l),y(h)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(n.__assign)(Object(n.__assign)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(d.b)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=Object(n.__assign)({},e);return new j({queryManager:this,options:r,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return Object(d.b)(e.query,12),Object(d.b)("Document"===e.query.kind,13),Object(d.b)(!e.returnPartialData,14),Object(d.b)(!e.pollInterval,15),new Promise((function(r,o){var n=t.
vendor: 4,142 bytes, line 3
3watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+n.queryId,o),n.result().then(r,o).then((function(){return t.fetchQueryRejectFns.delete("query:"+n.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,r){var o=this,n=this.getQuery(e).cancel;n&&n();return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:function(){var t=null,r=o.getQuery(e).observableQuery;if(r){var n=r.getLastResult();n&&(t=n.data)}return t},callback:function(t){o.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new d.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()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.queries.forEach((function(o,n){var c=o.observableQuery;if(c){var l=c.options.fetchPolicy;c.resetLastResults(),"cache-only"===l||!e&&"standby"===l||r.push(c.refetch()),t.setQuery(n,(function(){return{newData:null}})),t.invalidate(n)}})),this.broadcastQueries(),Promise.all(r)},e.prototype.observeQuery=function(e,t,r){return this.addQueryListener(e,this.queryListenerForObserver(e,t,r)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,o=e.fetchPolicy,n=e.variables;r=this.transform(r).document,n=this.getVariables(r,n);var l=function(e){return t.getObservableFromLink(r,{},e,!1).map((function(n){if(o&&"no-cache"===o||(t.dataStore.markSubscriptionResult(n,r,e),t.broadcastQueries()),Object(c.graphQLResultHasError)(n))throw new S({graphQLErrors:n.errors});return n}))};if(this.transform(r).hasClientExports){var h=this.localState.addExportedVariables(r,n).then(l);return new Q((function(e){var sub=null;return h.then((function(t){return sub=t.subscribe(e)}),e.error),function(){return sub&&sub.unsubscribe()}}))}return l(n)},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.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var r=e.options,o=r.variables,n=r.query,c=r.fetchPolicy,l=r.returnPartialData,h=e.getLastResult(),f=this.getQuery(e.queryId).newData;if(f&&f.complete)return{data:f.result,partial:!1};if("no-cache"===c||"network-only"===c)return{data:void 0,partial:!1};var y=this.dataStore.getCache().diff({query:n,variables:o,previousResult:h?h.data:void 0,returnPartialData:!0,optimistic:t}),d=y.result,v=y.complete;return{data:v||l?d:void 0,partial:!v}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var r=this.getQuery(e).observableQuery;Object(d.b)(r,17),t=r}else t=e;var o=t.options,n=o.variables,c=o.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:n,document:c}},e.prototype.broadcastQueries=function(){var e=this;
3this.onBroadcast(),this.queries.forEach((function(t,r){t.invalidated&&t.listeners.forEach((function(o){o&&o(e.queryStore.get(r),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,o){var l,h=this;void 0===o&&(o=this.queryDeduplication);var y=this.transform(e).serverQuery;if(y){var d=this.inFlightLinkObservables,link=this.link,v={query:y,variables:r,operationName:Object(c.getOperationName)(y)||void 0,context:this.prepareContext(Object(n.__assign)(Object(n.__assign)({},t),{forceFetch:!o}))};if(t=v.context,o){var m=d.get(y)||new Map;d.set(y,m);var O=JSON.stringify(r);if(!(l=m.get(O))){m.set(O,l=P(Object(f.execute)(link,v)));var w=function(){m.delete(O),m.size||d.delete(y),_.unsubscribe()},_=l.subscribe({next:w,error:w,complete:w})}}else l=P(Object(f.execute)(link,v))}else l=Q.of({data:{}}),t=this.prepareContext(t);var S=this.transform(e).clientQuery;return S&&(l=function(e,t){return new Q((function(r){var o=r.next,n=r.error,c=r.complete,l=0,h=!1,f={next:function(e){++l,new Promise((function(r){r(t(e))})).then((function(e){--l,o&&o.call(r,e),h&&f.complete()}),(function(e){--l,n&&n.call(r,e)}))},error:function(e){n&&n.call(r,e)},complete:function(){h=!0,l||c&&c.call(r)}},sub=e.subscribe(f);return function(){return sub.unsubscribe()}}))}(l,(function(e){return h.localState.runResolvers({document:S,remoteResult:e,context:t,variables:r})}))),l},e.prototype.fetchRequest=function(e){var t,r,n=this,c=e.requestId,l=e.queryId,h=e.document,f=e.options,y=e.fetchMoreForQueryId,d=f.variables,v=f.errorPolicy,m=void 0===v?"none":v,Q=f.fetchPolicy;return new Promise((function(e,v){var w=n.getObservableFromLink(h,f.context,d),_="fetchRequest:"+l;n.fetchQueryRejectFns.set(_,v);var j=function(){n.fetchQueryRejectFns.delete(_),n.setQuery(l,(function(e){e.subscriptions.delete(R)}))},R=w.map((function(e){if(c>=n.getQuery(l).lastRequestId&&(n.markQueryResult(l,e,f,y),n.queryStore.markQueryResult(l,e,y),n.invalidate(l),n.invalidate(y),n.broadcastQueries()),"none"===m&&O(e.errors))return v(new S({graphQLErrors:e.errors}));if("all"===m&&(r=e.errors),y||"no-cache"===Q)t=e.data;else{var o=n.dataStore.getCache().diff({variables:d,query:h,optimistic:!1,returnPartialData:!0}),w=o.result;(o.complete||f.returnPartialData)&&(t=w)}})).subscribe({error:function(e){j(),v(e)},complete:function(){j(),e({data:t,errors:r,loading:!1,networkStatus:o.ready,stale:!1})}});n.setQuery(l,(function(e){e.subscriptions.add(R)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var r=this.getQuery(e),o=Object(n.__assign)(Object(n.__assign)({},r),t(r));this.queries.set(e,o)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(n.__assign)(Object(n.__assign)({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==o.ready&&t.networkStatus!==o.error},e.prototype.startPollingQuery=function(e,t,r){var o=this,c=e.pollInterval;if(Object(d.b)(c,18),!this.ssrMode){var l=this.pollingInfoByQueryId.get(t);l||this.pollingInfoByQueryId.set(t,l={}),l.interval=c,l.options=Object(n.__assign)(Object(n.__assign)({},e),{fetchPolicy:"network-only"});var h=function(){var e=o.pollingInfoByQueryId.get(t);e&&(o.checkInFlight(t)?f():o.fetchQuery(t,e.options,_.poll).then(f,f))},f=function(){var e=o.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(h,e.interval))};r&&this.addQueryListener(t,r),f()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),C=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,r,o,n){void 0===n&&(n=!1);var l=!Object(c.graphQLResultHasError)(e);n&&Object(c.graphQLResultHasError)(e)&&e.data&&(l=!0),!o&&l&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},e.prototype.markSubscriptionResult=function(e,t,r){Object(c.graphQLResultHasError)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},e.prototype.markMutationInit=function(e){var t,r=this;
3e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(o){var n=r.cache;r.cache=o;try{r.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{r.cache=n}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Object(c.graphQLResultHasError)(e.result)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],o=e.updateQueries;o&&Object.keys(o).forEach((function(n){var l=o[n],h=l.query,f=l.updater,y=t.cache.diff({query:h.document,variables:h.variables,returnPartialData:!0,optimistic:!1}),d=y.result;if(y.complete){var v=Object(c.tryFunctionOrLogError)((function(){return f(d,{mutationResult:e.result,queryName:Object(c.getOperationName)(h.document)||void 0,queryVariables:h.variables})}));v&&r.push({result:v,dataId:"ROOT_QUERY",query:h.document,variables:h.variables})}})),this.cache.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var o=e.update;o&&Object(c.tryFunctionOrLogError)((function(){return o(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),D=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.cache,o=e.ssrMode,n=void 0!==o&&o,c=e.ssrForceFetchDelay,l=void 0===c?0:c,h=e.connectToDevTools,y=e.queryDeduplication,v=void 0===y||y,m=e.defaultOptions,Q=e.assumeImmutableResults,O=void 0!==Q&&Q,w=e.resolvers,_=e.typeDefs,S=e.fragmentMatcher,j=e.name,R=e.version,link=e.link;if(!link&&w&&(link=f.ApolloLink.empty()),!link||!r)throw new d.a(4);this.link=link,this.cache=r,this.store=new C(r),this.disableNetworkFetches=n||l>0,this.queryDeduplication=v,this.defaultOptions=m||{},this.typeDefs=_,l&&setTimeout((function(){return t.disableNetworkFetches=!1}),l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==h&&(h&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new F({cache:r,client:this,resolvers:w,fragmentMatcher:S}),this.queryManager=new x({link:this.link,store:this.store,queryDeduplication:v,ssrMode:n,clientAwareness:{name:j,version:R},localState:this.localState,assumeImmutableResults:O,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(n.__assign)(Object(n.__assign)({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(n.__assign)(Object(n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(n.__assign)(Object(n.__assign)({},this.defaultOptions.query),e)),Object(d.b)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(n.__assign)(Object(n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(n.__assign)(Object(n.__assign)({},this.defaultOptions.mutate),e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(f.execute)(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}();t.default=D}}]);
4//# sourceMappingURL=f5dc827.js.map
5//# debugId=59b43ff9-7e61-506f-95b8-fba0d6b36b3a

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.