PageSourceSearch

https://www.animalemergencyhospital.net/_next/static/chunks/1882-af23816233b10f22.js

js animalemergencyhospital.net collected 2026-10-08 05:06:47 UTC 50,949 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1882],{2453:(e,t,r)=>{r.d(t,{a:()=>s});var i=r(4902),o=r(20996),n=r(54242);function s(e,t,r,s){var u=t.data,l=(0,i.Tt)(t,["data"]),c=r.data,h=(0,i.Tt)(r,["data"]);return(0,o.A)(l,h)&&function e(t,r,i,s){if(r===i)return!0;var u=new Set;return t.selections.every(function(t){if(u.has(t)||(u.add(t),!(0,n.MS)(t,s.variables)||a(t)))return!0;if((0,n.dt)(t)){var l=(0,n.ue)(t),c=r&&r[l],h=i&&i[l],f=t.selectionSet;if(!f)return(0,o.A)(c,h);var p=Array.isArray(c),v=Array.isArray(h);if(p!==v)return!1;if(p&&v){var d=c.length;if(h.length!==d)return!1;for(var y=0;y<d;++y)if(!e(f,c[y],h[y],s))return!1;return!0}return e(f,c,h,s)}var b=(0,n.HQ)(t,s.fragmentMap);if(b)return!!a(b)||e(b.selectionSet,r,i,s)})}((0,n.Vn)(e).selectionSet,u,c,{fragmentMap:(0,n.JG)((0,n.zK)(e)),variables:s})}function a(e){return!!e.directives&&e.directives.some(u)}function u(e){return"nonreactive"===e.name.value}},81882:(e,t,r)=>{r.d(t,{Ri:()=>V,D9:()=>h.D9,J1:()=>x.J1});var i,o=r(4902),n=r(20767),s=r(30988),a=r(89078),u=r(76703),l=r(20996),c=r(54242),h=r(36482),f=r(43540),p=r(59838);function v(e){return!!e&&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"}(i||(i={}));var d=r(2453),y=r(53764),b=Object.assign,m=Object.hasOwnProperty,g=function(e){function t(r){var i=r.queryManager,n=r.queryInfo,s=r.options,a=this,u=t.inactiveOnCreation.getValue();(a=e.call(this,function(e){a._getOrCreateQuery();try{var t=e._subscription._observer;t&&!t.error&&(t.error=w)}catch(e){}var r=!a.observers.size;a.observers.add(e);var i=a.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(a.maskResult(i.result)),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this).observers=new Set,a.subscriptions=new Set,a.dirty=!1,a._getOrCreateQuery=function(){return u&&(i.queries.set(a.queryId,n),u=!1),a.queryManager.getOrCreateQuery(a.queryId)},a.queryInfo=n,a.queryManager=i,a.waitForOwnResult=_(s.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a),a.maskResult=a.maskResult.bind(a);var l=i.defaultOptions.watchQuery,h=(void 0===l?{}:l).fetchPolicy,f=void 0===h?"cache-first":h,p=s.fetchPolicy,v=void 0===p?f:p,d=s.initialFetchPolicy,y=void 0===d?"standby"===v?f:v:d;a.options=(0,o.Cl)((0,o.Cl)({},s),{initialFetchPolicy:y,fetchPolicy:v}),a.queryId=n.queryId||i.generateQueryId();var b=(0,c.Vu)(a.query);return a.queryName=b&&b.name&&b.name.value,a}return(0,o.C6)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return!1!==globalThis.__DEV__&&(0,c.S2)("observableQuery.result",function(){!1!==globalThis.__DEV__&&n.V1.warn(23)}),new Promise(function(t,r){var i={next:function(r){t(r),e.observers.delete(i),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){o.unsubscribe()},0)},error:r},o=e.subscribe(i)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){var t=this;void 0===e&&(e=!0);var r=(0,c.lz)("getLastResult",function(){return t.getLastResult(!0)}),n=this.queryInfo.networkStatus||r&&r.networkStatus||i.ready,s=(0,o.Cl)((0,o.Cl)({},r),{loading:v(n),networkStatus:n}),a=this.options.fetchPolicy,u=void 0===a?"cache-first":a;if(_(u)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var h=this.queryInfo.getDiff();(h.complete||this.options.returnPartialData)&&(s.data=h.result),(0,l.L)(s.data,{})&&(s.data=void 0),h.complete?(delete s.partial,h.complete&&s.networkStatus===i.loading&&("cache-first"===u||"cache-only"===u)&&(s.networkStatus=i.ready,s.loading=!1)):s.partial=!0,s.networkStatus===i.ready&&(s.error||s.errors)&&(s.networkStatus=i.error),!1===globalThis.__DEV__||h.complete||this.options.partialRefetch||s.loading||s.data||s.error||q(h.missing)}return e&&this.updateLastResult(s),s},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var r=this.queryManager.getDocumentInfo(this.query),i=this.queryManager.dataMasking,o=i?r.nonReactiveQuery:this.query;return(i||r.hasNonreactiveDirective?!(0,d.a)(o,this.last.result,e,this.variables):!(0,l.L)(this.last.result,e))||t&&!(0,l.L)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,l.L)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return!1!==globalThis.__DEV__&&(0,c.S2)("getLastResult",function(){!1!==globalThis.__DEV__&&n.V1.warn(24)}),this.getLast("result",e)},t.prototype.getLastError=function(e){return!1!==globalThis.__DEV__&&(0,c.S2)("getLastError",function(){!1!==globalThis.__DEV__&&n.V1.warn(25)}),this.getLast("error",e)},t.prototype.resetLastResults=function(){!1!==globalThis.__DEV__&&(0,c.S2)("resetLastResults",function(){!1!==globalThis.__DEV__&&n.V1.warn(26)}),delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&n.V1.warn(27),this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0};if("no-cache"===this.options.fetchPolicy?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&m.call(e,"variables")){var s=(0,c.AT)(this.query),a=s.variableDefinitions;a&&a.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||n.V1.warn(28,e,(null==(t=s.name)?void 0:t.value)||s)}return e&&!(0,l.L)(this.options.variables,e)&&(r.variables=this.options.variables=(0,o.Cl)((0,o.Cl)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,i.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,o.Cl)((0,o.Cl)({},e.query?e:(0,o.Cl)((0,o.Cl)((0,o.Cl)((0,o.Cl)({},this.options),{query:this.options.query}),e),{variables:(0,o.Cl)((0,o.Cl)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var s=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var a=this.queryInfo,u=a.networkStatus;a.networkStatus=i.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var l=new Set,c=null==e?void 0:e.updateQuery,h="no-cache"!==this.options.fetchPolicy;return h||(0,n.V1)(c,29),this.queryManager.fetchQuery(s,r,i.fetchMore).then(function(n){if(t.queryManager.removeQuery(s),a.networkStatus===i.fetchMore&&(a.networkStatus=u),h)t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return o(e,{fetchMoreResult:n.data,variables:r.variables})}):i.writeQuery({query:r.query,variables:r.variables,data:n.data})},onWatchUpdated:function(e){l.add(e.query)}});else{var f=t.getLast("result"),p=c(f.data,{fetchMoreResult:n.data,variables:r.variables});t.reportResult((0,o.Cl)((0,o.Cl)({},f),{networkStatus:u,loading:v(u),data:p}),t.variables)}return t.maskResult(n)}).finally(function(){h&&!l.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var i=e.updateQuery;i&&t.updateQuery(function(e,t){return i(e,(0,o.Cl)({subscriptionData:r},t))})},error:function(t){if(e.onError)return void e.onError(t);!1!==globalThis.__DEV__&&n.V1.error(30,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return!1!==globalThis.__DEV__&&((0,c.cc)(e,"canonizeResults","setOptions"),(0,c.S2)("setOptions",function(){!1!==globalThis.__DEV__&&n.V1.warn(31)})),this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,c.oE)(this.options,e||{});b(this.options,t)},t.prototype.setVariables=function(e){var t=this;return(0,l.L)(this.variables,e)?this.observers.size?(0,c.lz)("observableQuery.result",function(){return t.result()}):Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},i.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),i=r.result,o=r.complete,n=e(i,{variables:this.variables,complete:!!o,previousData:i});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,i=void 0===r?"cache-first":r,o=t.initialFetchPolicy,n=void 0===o?i:o;"standby"===i||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(i,{reason:e,options:t,observable:this,initialFetchPolicy:n}):"variables-changed"===e?t.fetchPolicy=n:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){var i=this._getOrCreateQuery();return i.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(i,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){(0,n.V1)(r,32),(t||(this.pollingInfo={})).interval=r;var o=function(){var t,r;e.pollingInfo&&(v(e.queryInfo.networkStatus)||(null==(r=(t=e.options).skipPollAttempt)?void 0:r.call(t))?s():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},i.poll).then(s,s))},s=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(o,t.interval))};s()}}},t.prototype.updateLastResult=function(e,t){var r=this;void 0===t&&(t=this.variables);var i=(0,c.lz)("getLastError",function(){return r.getLastError()});return i&&this.last&&!(0,l.L)(t,this.last.variables)&&(i=void 0),this.last=(0,o.Cl)({result:this.queryManager.assumeImmutableResults?e:(0,
1c.mg)(e),variables:t},i?{error:i}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===i.refetch||t===i.fetchMore||t===i.poll,s=this.options.variables,a=this.options.fetchPolicy,u=(0,c.oE)(this.options,e||{}),h=n?u:b(this.options,u),f=this.transformDocument(h.query);this.lastQuery=f,!n&&(this.updatePolling(),e&&e.variables&&!(0,l.L)(e.variables,s)&&"standby"!==h.fetchPolicy&&(h.fetchPolicy===a||"function"==typeof h.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",h),void 0===t&&(t=i.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=_(h.fetchPolicy));var v=function(){r.concast===m&&(r.waitForOwnResult=!1)},d=h.variables&&(0,o.Cl)({},h.variables),y=this.fetch(h,t,f),m=y.concast,g=y.fromLink,w={next:function(e){(0,l.L)(r.variables,d)&&(v(),r.reportResult(e,d))},error:function(e){(0,l.L)(r.variables,d)&&((0,p.Mn)(e)||(e=new p.K4({networkError:e})),v(),r.reportError(e,d))}};return n||!g&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=m,this.observer=w),m.addObserver(w),m},t.prototype.reobserve=function(e,t){return(0,c.Xw)(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var e=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=this.last;(0,c.lz)("resetLastResults",function(){return e.resetLastResults()});var o=this.subscribe.apply(this,t);return this.last=i,o},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this,i=(0,c.lz)("getLastError",function(){return r.getLastError()}),o=this.isDifferentFromLastResult(e,t);(i||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(i||o)&&(0,c.wi)(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var r=this,n=(0,o.Cl)((0,o.Cl)({},(0,c.lz)("getLastResult",function(){return r.getLastResult()})),{error:e,errors:e.graphQLErrors,networkStatus:i.error,loading:!1});this.updateLastResult(n,t),(0,c.wi)(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?(0,o.Cl)((0,o.Cl)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!v(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,r=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,i){return(this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,i):t}}):this.reobserve()},t.inactiveOnCreation=new y.DX,t}(c.cP);function w(e){!1!==globalThis.__DEV__&&n.V1.error(33,e.message,e.stack)}function q(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&n.V1.debug(34,e)}function _(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,c.rm)(g);var k=new(c.et?WeakMap:Map);function C(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return k.set(e,(k.get(e)+1)%1e15),r.apply(this,arguments)})}var Q=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;k.has(r)||(k.set(r,0),C(r,"evict"),C(r,"modify"),C(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||i.loading;return this.variables&&this.networkStatus!==i.loading&&!(0,l.L)(this.variables,e.variables)&&(t=i.setVariables),(0,l.L)(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&(0,l.L)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var i=(0,c.lz)("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(i,t),i},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,i=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(0,c.lz)("getLastError",function(){var e;return null==(e=r.observableQuery)?void 0:e.getLastError()}))&&(this.updateLastDiff(e),(0,l.L)(i&&i.result,e&&e.result)||null==(t=this.observableQuery)||t.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null==(e=this.observableQuery)||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null==(e=this.cancelWatch)||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,o.Cl)((0,o.Cl)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
1this.lastWatch&&(0,l.L)(i,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===k.get(this.cache)&&(0,l.L)(t,r.variables)&&(0,l.L)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,i){var o,n=this,s=new c.ZI,a=(0,c.EI)(e.errors)?e.errors.slice(0):[];if(null==(o=this.observableQuery)||o.resetNotifications(),"incremental"in e&&(0,c.EI)(e.incremental)){var u=(0,c.bd)(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var h=this.getDiff();e.data=s.merge(h.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==i&&(P(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(n.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===i}),n.lastWrite={result:e,variables:r.variables,dmCount:k.get(n.cache)};else if(n.lastDiff&&n.lastDiff.diff.complete){e.data=n.lastDiff.diff.result;return}var s=n.getDiffOptions(r.variables),a=(0,c.lz)("canonizeResults",function(){return o.diff(s)});!n.stopped&&(0,l.L)(n.variables,r.variables)&&n.updateWatch(r.variables),n.updateLastDiff(a,s),a.complete&&(e.data=a.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=i.ready},e.prototype.markError=function(e){var t;return this.networkStatus=i.error,this.lastWrite=void 0,null==(t=this.observableQuery)||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function P(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,i=!(0,c.to)(e);return!i&&r&&e.data&&(i=!0),i}var D=r(39668),O=r(79205),S=Object.prototype.hasOwnProperty,R=Object.create(null),E=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new c.Ar(c.vd["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new D.b(!1),this.noCacheWarningsByQueryId=new Set;var r=new c.c1(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var i=e.documentTransform;this.documentTransform=i?r.concat(i).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,n.vA)(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,o.sH)(this,arguments,void 0,function(e){var t,r,i,s,a,u,l,h=e.mutation,f=e.variables,v=e.optimisticResponse,d=e.updateQueries,y=e.refetchQueries,b=void 0===y?[]:y,m=e.awaitRefetchQueries,g=void 0!==m&&m,w=e.update,q=e.onQueryUpdated,_=e.fetchPolicy,k=void 0===_?(null==(u=this.defaultOptions.mutate)?void 0:u.fetchPolicy)||"network-only":_,C=e.errorPolicy,Q=void 0===C?(null==(l=this.defaultOptions.mutate)?void 0:l.errorPolicy)||"none":C,P=e.keepRootFields,D=e.context;return(0,o.YH)(this,function(e){switch(e.label){case 0:if((0,n.V1)(h,36),(0,n.V1)("network-only"===k||"no-cache"===k,37),t=this.generateMutationId(),h=this.cache.transformForLink(this.transform(h)),r=this.getDocumentInfo(h).hasClientExports,f=this.getVariables(h,f),!r)return[3,2];return[4,this.localState.addExportedVariables(h,f,D)];case 1:f=e.sent(),e.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[t]={mutation:h,variables:f,loading:!0,error:null}),s=v&&this.markMutationOptimistic(v,{mutationId:t,document:h,variables:f,fetchPolicy:k,errorPolicy:Q,context:D,updateQueries:d,update:w,keepRootFields:P}),this.broadcastQueries(),a=this,[2,new Promise(function(e,r){return(0,c.xb)(a.getObservableFromLink(h,(0,o.Cl)((0,o.Cl)({},D),{optimisticResponse:s?v:void 0}),f,{},!1),function(e){if((0,c.to)(e)&&"none"===Q)throw new p.K4({graphQLErrors:(0,c.Mu)(e)});i&&(i.loading=!1,i.error=null);var r=(0,o.Cl)({},e);return"function"==typeof b&&(b=b(r)),"ignore"===Q&&(0,c.to)(r)&&delete r.errors,a.markMutationResult({mutationId:t,result:r,document:h,variables:f,fetchPolicy:k,errorPolicy:Q,context:D,update:w,updateQueries:d,awaitRefetchQueries:g,refetchQueries:b,removeOptimistic:s?t:void 0,onQueryUpdated:q,keepRootFields:P})}).subscribe({next:function(r){a.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,o.Cl)((0,o.Cl)({},r),{data:a.maskOperation({document:h,data:r.data,fetchPolicy:k,id:t})}))},error:function(e){i&&(i.loading=!1,i.error=e),s&&a.cache.removeOptimistic(t),a.broadcastQueries(),r(e instanceof p.K4?e:new p.K4({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,n=[],s="no-cache"===e.fetchPolicy;if(!s&&P(i,e.errorPolicy)){if((0,c.ST)(i)||n.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,c.ST)(i)&&(0,c.EI)(i.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),u=void 0;a.result&&(u=(0,f.bd)(a.result,i)),void 0!==u&&(i.data=u,n.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach(function(e,o){var s=e.observableQuery,a=s&&s.queryName;if(a&&S.call(l,a)){var u=l[a],h=r.queries.get(o),f=h.document,p=h.variables,v=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),d=v.result;if(v.complete&&d){var y=u(d,{mutationResult:i,queryName:f&&(0,c.n4)(f)||void 0,queryVariables:p});y&&n.push({result:y,dataId:"ROOT_QUERY",query:f,variables:p})}}})}if(n.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var h=[];if(this.refetchQueries({updateCache:function(t){s||n.forEach(function(e){return t.write(e)});var a=e.update,u=!(0,c.YX)(i)||(0,c.ST)(i)&&!i.hasNext;if(a){if(!s){var l=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(i=(0,o.Cl)((0,o.Cl)({},i),{data:l.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}u&&a(t,i,{context:e.context,variables:e.variables})}s||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,i=t.DELETE;return"__typename"===r?e:i}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return h.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(h).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,i="function"==typeof e?e(t.variables,{IGNORE:R}):e;return i!==R&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,o.Cl)((0,o.Cl)({},t),{result:{data:i}}),e)}catch(e){!1!==globalThis.__DEV__&&n.V1.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,c.f2)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,c.d8)(["nonreactive"],e),nonReactiveQuery:(0,c.x3)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,c.iz)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,c.wY)((0,c.Vu)(e)),asQuery:(0,o.Cl)((0,o.Cl)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,o.Cl)((0,o.Cl)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,o.Cl)((0,o.Cl)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,o.Cl)((0,o.Cl)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new Q(this),i=new g({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,g.inactiveOnCreation.getValue()||this.queries.set(i.queryId,r),r.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),(0,n.V1)(e.query,38),(0,n.V1)("Document"===e.query.kind,39),(0,n.V1)(!e.returnPartialData,40),(0,n.V1)(!e.pollInterval,41);var i=this.transform(e.query);return this.fetchQuery(t,(0,o.Cl)((0,o.Cl)({},e),{query:i})).then(function(n){return n&&(0,o.Cl)((0,o.Cl)({},n),{data:r.maskOperation({document:i,data:n.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}
1),this.cancelPendingFetches((0,n.vA)(42)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=i.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,i=new Map,s=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)i.set(e,e),s.set(e,!1);else if((0,c.Kc)(e)){var r=(0,c.yy)(t.transform(e));i.set(r,(0,c.n4)(e)),s.set(r,!1)}else(0,c.UU)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,i){var o=t.observableQuery,n=t.document;if(o){if("all"===e)return void r.set(i,o);var a=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||a&&s.has(a)||n&&s.has((0,c.yy)(n)))&&(r.set(i,o),a&&s.set(a,!0),n&&s.set((0,c.yy)(n),!0))}}),a.size&&a.forEach(function(e){var i=(0,c.vL)("legacyOneTimeQuery"),s=t.getOrCreateQuery(i).init({document:e.query,variables:e.variables}),a=new g({queryManager:t,queryInfo:s,options:(0,o.Cl)((0,o.Cl)({},e),{fetchPolicy:"network-only"})});(0,n.V1)(a.queryId===i),s.setObservableQuery(a),r.set(i,a)}),!1!==globalThis.__DEV__&&s.size&&s.forEach(function(e,t){if(!e){var r=i.get(t);r?!1!==globalThis.__DEV__&&n.V1.warn(43,r):!1!==globalThis.__DEV__&&n.V1.warn(44)}}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(i,o){var n=i.options.fetchPolicy;(0,c.lz)("resetLastResults",function(){return i.resetLastResults()}),(e||"standby"!==n&&"cache-only"!==n)&&r.push(i.refetch()),(t.queries.get(o)||i.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,i=e.variables,o=e.fetchPolicy,n=e.errorPolicy,s=void 0===n?"none":n,a=e.context,u=void 0===a?{}:a,l=e.extensions,h=void 0===l?{}:l;r=this.transform(r),i=this.getVariables(r,i);var f=function(e){return t.getObservableFromLink(r,u,e,h).map(function(i){"no-cache"!==o&&(P(i,s)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var n=(0,c.to)(i),a=(0,p.uR)(i);if(n||a){var u={};if(n&&(u.graphQLErrors=i.errors),a&&(u.protocolErrors=i.extensions[p.K$]),"none"===s||a)throw new p.K4(u)}return"ignore"===s&&delete i.errors,i})};if(this.getDocumentInfo(r).hasClientExports){var v=this.localState.addExportedVariables(r,i,u).then(f);return new c.cP(function(e){var t=null;return v.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return f(i)},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){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null==(t=this.queries.get(e))||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null==(t=e.observableQuery)?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i,n){var a,u,l=this;void 0===n&&(n=null!=(a=null==t?void 0:t.queryDeduplication)?a:this.queryDeduplication);var f=this.getDocumentInfo(e),p=f.serverQuery,v=f.clientQuery;if(p){var d=this.inFlightLinkObservables,y=this.link,b={query:p,variables:r,operationName:(0,c.n4)(p)||void 0,context:this.prepareContext((0,o.Cl)((0,o.Cl)({},t),{forceFetch:!n})),extensions:i};if(t=b.context,n){var m=(0,c.yy)(p),g=(0,h.MW)(r),w=d.lookup(m,g);if(!(u=w.observable)){var q=new c.En([(0,s.g7)(y,b)]);u=w.observable=q,q.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?q.beforeNext(e):d.remove(m,g)})}}else u=new c.En([(0,s.g7)(y,b)])}else u=new c.En([c.cP.of({data:{}})]),t=this.prepareContext(t);return v&&(u=(0,c.xb)(u,function(e){return l.localState.runResolvers({document:v,remoteResult:e,context:t,variables:r})})),u},e.prototype.getResultsFromLink=function(e,t,r){var o=e.lastRequestId=this.generateRequestId(),n=this.cache.transformForLink(r.query);return(0,c.xb)(this.getObservableFromLink(n,r.context,r.variables),function(s){var a=(0,c.Mu)(s),u=a.length>0,l=r.errorPolicy;if(o>
1=e.lastRequestId){if(u&&"none"===l)throw e.markError(new p.K4({graphQLErrors:a}));e.markResult(s,n,r,t),e.markReady()}var h={data:s.data,loading:!1,networkStatus:i.ready};return u&&"none"===l&&(h.data=void 0),u&&"ignore"!==l&&(h.errors=a,h.networkStatus=i.error),h},function(t){var r=(0,p.Mn)(t)?t:new p.K4({networkError:t});throw o>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,o){var n,s,a=this;void 0===r&&(r=i.loading),void 0===o&&(o=t.query);var u=this.getVariables(o,t.variables),l=this.defaultOptions.watchQuery,h=t.fetchPolicy,f=void 0===h?l&&l.fetchPolicy||"cache-first":h,p=t.errorPolicy,v=void 0===p?l&&l.errorPolicy||"none":p,d=t.returnPartialData,y=t.notifyOnNetworkStatusChange,b=t.context,m=Object.assign({},t,{query:o,variables:u,fetchPolicy:f,errorPolicy:v,returnPartialData:void 0!==d&&d,notifyOnNetworkStatusChange:void 0!==y&&y,context:void 0===b?{}:b}),g=function(i){m.variables=i;var o=a.fetchQueryByPolicy(e,m,r);return"standby"!==m.fetchPolicy&&o.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),o},w=function(){return a.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){w(),setTimeout(function(){return n.cancel(e)})}),this.getDocumentInfo(m.query).hasClientExports)n=new c.En(this.localState.addExportedVariables(m.query,m.variables,m.context).then(g).then(function(e){return e.sources})),s=!0;else{var q=g(m.variables);s=q.fromLink,n=new c.En(q.sources)}return n.promise.then(w,w),{concast:n,fromLink:s}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,i=e.include,o=e.optimistic,n=void 0!==o&&o,s=e.removeOptimistic,a=void 0===s?n?(0,c.vL)("refetchQueries"):void 0:s,u=e.onQueryUpdated,l=new Map;i&&this.getObservableQueries(i).forEach(function(e,r){l.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var h=new Map;return r&&this.cache.batch({update:r,optimistic:n&&a||!1,removeOptimistic:a,onWatchUpdated:function(e,t,r){var i=e.watcher instanceof Q&&e.watcher.observableQuery;if(i){if(u){l.delete(i.queryId);var o=u(i,t,r);return!0===o&&(o=i.refetch()),!1!==o&&h.set(i,o),o}null!==u&&l.set(i.queryId,{oq:i,lastDiff:r,diff:t})}}}),l.size&&l.forEach(function(e,r){var i,o=e.oq,n=e.lastDiff,s=e.diff;u&&(s||(s=(0,c.lz)("canonizeResults",function(){return t.cache.diff(o.queryInfo.getDiffOptions())})),i=u(o,s,n)),u&&!0!==i||(i=o.refetch()),!1!==i&&h.set(o,i),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),a&&this.cache.removeOptimistic(a),h},e.prototype.maskOperation=function(e){var t,r,i,o=e.document,s=e.data;if(!1!==globalThis.__DEV__){var a=e.fetchPolicy,u=e.id,l=null==(t=(0,c.Vu)(o))?void 0:t.operation,h=(null!=(r=null==l?void 0:l[0])?r:"o")+u;!this.dataMasking||"no-cache"!==a||(0,c.s6)(o)||this.noCacheWarningsByQueryId.has(h)||(this.noCacheWarningsByQueryId.add(h),!1!==globalThis.__DEV__&&n.V1.warn(45,null!=(i=(0,c.n4)(o))?i:"Unnamed ".concat(null!=l?l:"operation")))}return this.dataMasking?(0,O.mB)(s,o,this.cache):s},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,i=e.fragmentName;return this.dataMasking?(0,O.zx)(t,r,this.cache,i):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,s=t.query,a=t.variables,u=t.fetchPolicy,h=t.refetchWritePolicy,f=t.errorPolicy,p=t.returnPartialData,d=t.context,y=t.notifyOnNetworkStatusChange,b=e.networkStatus;e.init({document:s,variables:a,networkStatus:r});var m=function(){return e.getDiff()},g=function(t,r){void 0===r&&(r=e.networkStatus||i.loading);var u=t.result;!1===globalThis.__DEV__||p||(0,l.L)(u,{})||q(t.missing);var h=function(e){return c.cP.of((0,o.Cl)({data:e,loading:v(r),networkStatus:r},t.complete?null:{partial:!0}))};return u&&n.getDocumentInfo(s).hasForcedResolvers?n.localState.runResolvers({document:s,remoteResult:{data:u},context:d,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return h(e.data||void 0)}):"none"===f&&r===i.refetch&&Array.isArray(t.missing)?h(void 0):h(u)},w="no-cache"===u?0:r===i.refetch&&"merge"!==h?1:2,_=function(){return n.getResultsFromLink(e,w,{query:s,variables:a,context:d,fetchPolicy:u,errorPolicy:f})},k=y&&"number"==typeof b&&b!==r&&v(r);switch(u){default:case"cache-first":var C=m();if(C.complete)return{fromLink:!1,sources:[g(C,e.markReady())]};if(p||k)return{fromLink:!0,sources:[g(C),_()]};return{fromLink:!0,sources:[_()]};case"cache-and-network":var C=m();if(C.complete||p||k)return{fromLink:!0,sources:[g(C),_()]};return{fromLink:!0,sources:[_()]};case"cache-only":return{fromLink:!1,sources:[g(m(),e.markReady())]};case"network-only":if(k)return{fromLink:!0,sources:[g(m()),_()]};return{fromLink:!0,sources:[_()]};case"no-cache":if(k)return{fromLink:!0,sources:[g(e.getDiff()),_()]};return{fromLink:!0,sources:[_()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Q(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,o.Cl)((0,o.Cl)((0,o.Cl)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),T=r(31260),M=function(){function e(e){var t=e.cache,r=e.client,i=e.resolvers,o=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),i&&this.addResolvers(i),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,c.D9)(t.resolvers,e)}):this.resolvers=(0,c.D9)(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){return(0,o.sH)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,i=e.context,n=e.variables,s=e.onlyRunForcedResolvers,a=void 0!==s&&s;return(0,o.YH)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,n,this.fragmentMatcher,a).then(function(e){return(0,o.Cl)((0,o.Cl)({},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(0,c.d8)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,c.er)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,o.Cl)((0,o.Cl)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,o.sH)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,o.YH)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,o.Cl)((0,o.Cl)({},t),e.exportedVariables)})]:[2,(0,o.Cl)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,T.YR)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}
1)))return T.sP}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,c.zc)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,o.sH)(this,arguments,void 0,function(e,t,r,i,n,s){var a,u,l,h,f,p,v,d,y,b;return void 0===r&&(r={}),void 0===i&&(i={}),void 0===n&&(n=function(){return!0}),void 0===s&&(s=!1),(0,o.YH)(this,function(m){return a=(0,c.Vn)(e),u=(0,c.zK)(e),l=(0,c.JG)(u),h=this.collectSelectionsToResolve(a,l),p=(f=a.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",v=this,d=v.cache,y=v.client,b={fragmentMap:l,context:(0,o.Cl)((0,o.Cl)({},r),{cache:d,client:y}),variables:i,fragmentMatcher:n,defaultOperationType:p,exportedVariables:{},selectionsToResolve:h,onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(a.selectionSet,!1,t,b).then(function(e){return{result:e,exportedVariables:b.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,i){return(0,o.sH)(this,void 0,void 0,function(){var s,a,u,l,h,f=this;return(0,o.YH)(this,function(p){return s=i.fragmentMap,a=i.context,u=i.variables,l=[r],h=function(e){return(0,o.sH)(f,void 0,void 0,function(){var h,f;return(0,o.YH)(this,function(o){return(t||i.selectionsToResolve.has(e))&&(0,c.MS)(e,u)?(0,c.dt)(e)?[2,this.resolveField(e,t,r,i).then(function(t){var r;void 0!==t&&l.push(((r={})[(0,c.ue)(e)]=t,r))})]:((0,c.kd)(e)?h=e:(h=s[e.name.value],(0,n.V1)(h,21,e.name.value)),h&&h.typeCondition&&(f=h.typeCondition.name.value,i.fragmentMatcher(r,f,a)))?[2,this.resolveSelectionSet(h.selectionSet,t,r,i).then(function(e){l.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(h)).then(function(){return(0,c.IM)(l)})]})})},e.prototype.resolveField=function(e,t,r,i){return(0,o.sH)(this,void 0,void 0,function(){var n,s,a,u,l,f,p,v,d,y=this;return(0,o.YH)(this,function(o){return r?(n=i.variables,u=(s=e.name.value)!==(a=(0,c.ue)(e)),f=Promise.resolve(l=r[a]||r[s]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(p=r.__typename||i.defaultOperationType,(v=this.resolvers&&this.resolvers[p])&&(d=v[u?s:a])&&(f=Promise.resolve(h.bl.withValue(this.cache,d,[r,(0,c.MB)(e,n),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,f.then(function(r){if(void 0===r&&(r=l),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&&(i.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var o,n,s=null!=(n=null==(o=e.directives)?void 0:o.some(function(e){return"client"===e.name.value}))&&n;return Array.isArray(r)?y.resolveSubSelectedArray(e,t||s,r,i):e.selectionSet?y.resolveSelectionSet(e.selectionSet,t||s,r,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,i){var o=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?o.resolveSubSelectedArray(e,t,r,i):e.selectionSet?o.resolveSelectionSet(e.selectionSet,t,r,i):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},i=this.selectionsToResolveCache;return function e(o){if(!i.has(o)){var s=new Set;i.set(o,s),(0,T.YR)(o,{Directive:function(e,t,i,o,n){"client"===e.name.value&&n.forEach(function(e){r(e)&&(0,T.VK)(e)&&s.add(e)})},FragmentSpread:function(i,o,a,u,l){var c=t[i.name.value];(0,n.V1)(c,22,i.name.value);var h=e(c);h.size>0&&(l.forEach(function(e){r(e)&&(0,T.VK)(e)&&s.add(e)}),s.add(i),h.forEach(function(e){s.add(e)}))}})}return i.get(o)}(e)},e}(),L=r(57038),I=!1,V=function(){function e(e){var t,r,i,l=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,n.vA)(16);var h=e.uri,f=e.credentials,p=e.headers,v=e.cache,d=e.documentTransform,y=e.ssrMode,b=void 0!==y&&y,m=e.ssrForceFetchDelay,g=void 0===m?0:m,w=e.connectToDevTools,q=e.queryDeduplication,_=void 0===q||q,k=e.defaultOptions,C=e.defaultContext,Q=e.assumeImmutableResults,P=void 0===Q?v.assumeImmutableResults:Q,D=e.resolvers,O=e.typeDefs,S=e.fragmentMatcher,R=e.clientAwareness,T=e.name,L=e.version,I=e.devtools,V=e.dataMasking;!1!==globalThis.__DEV__&&((0,c.cc)(e,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),(0,c.cc)(e,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),(0,c.cc)(e,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),(0,c.cc)(e,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),(0,c.cc)(e,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),(0,c.cc)(e,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),(0,c.cc)(e,"typeDefs","ApolloClient"),e.link||!1===globalThis.__DEV__||n.V1.warn(17));var F=e.link;F||(F=h?new u.PR({uri:h,credentials:f,headers:p}):s.Ch.empty()),this.link=F,this.cache=v,this.disableNetworkFetches=b||g>0,this.queryDeduplication=_,this.defaultOptions=k||Object.create(null),this.typeDefs=O,this.devtoolsConfig=(0,o.Cl)((0,o.Cl)({},I),{enabled:null!=(t=null==I?void 0:I.enabled)?t:w}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),g&&setTimeout(function(){return l.disableNetworkFetches=!1},g),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=a.r,this.localState=new M({cache:v,client:this,resolvers:D,fragmentMatcher:S}),this.queryManager=new E({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:C,documentTransform:d,queryDeduplication:_,ssrMode:b,dataMasking:!!V,clientAwareness:{name:null!=(r=null==R?void 0:R.name)?r:T,version:null!=(i=null==R?void 0:R.version)?i:L},localState:this.localState,assumeImmutableResults:P,onBroadcast:this.devtoolsConfig.enabled?function(){l.devToolsHookCb&&l.devToolsHookCb({action:{},state:{queries:l.queryManager.getQueryStore(),mutations:l.queryManager.mutationStore||{}},dataWithOptimisticResults:l.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e}
1,enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!I&&!1!==globalThis.__DEV__&&(I=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&n.V1.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,c.lL)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,o.Cl)((0,o.Cl)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,c.cc)(e,"canonizeResults","client.watchQuery"),(0,c.cc)(e,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,c.lL)(this.defaultOptions.query,e)),(0,n.V1)("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,o.Cl)((0,o.Cl)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,c.cc)(e,"canonizeResults","client.query"),(0,c.cc)(e,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),"standby"===e.fetchPolicy&&!1!==globalThis.__DEV__&&n.V1.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,c.lL)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(i){return(0,o.Cl)((0,o.Cl)({},i),{data:t.queryManager.maskOperation({document:e.query,data:i.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,o.Cl)((0,o.Cl)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,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!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,s.g7)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],i=[];t.forEach(function(e,t){r.push(t),i.push(e)});var o=Promise.all(i);return o.queries=r,o.results=i,o.catch(function(e){!1!==globalThis.__DEV__&&n.V1.debug(20,e)}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
1,enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(V.prototype.getMemoryInternals=L.ep),r(30016);var F=r(12229),x=r(40449);(0,F.Q9)(!1!==globalThis.__DEV__?"log":"silent")}}]);

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.