PageSourceSearch

https://bestshop.mn/_next/static/chunks/9838-8bf392254d3b88b1.js?dpl=dpl_DsKsXjkNVbamiV1hUqesMvA81B92

js bestshop.mn collected 2026-09-24 15:06:16 UTC 99,815 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9838],{27228:(e,t,r)=>{r.d(t,{Y:()=>i});var n=r(98599),i=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var i=(0,n.vA)(54,t,e.message);throw i.parseError=e,i}return r}},31220:(e,t,r)=>{r.d(t,{E:()=>i});var n=r(27228);function i(e,t){var r=[],i=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var a=void 0;try{a=(0,n.Y)(t.variables,"Variables map")}catch(e){return{parseError:e}}i("variables",a)}if(t.extensions){var o=void 0;try{o=(0,n.Y)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}i("extensions",o)}var s="",u=e,c=e.indexOf("#");-1!==c&&(s=e.substr(c),u=e.substr(0,c));var l=-1===u.indexOf("?")?"?":"&";return{newURI:u+l+r.join("&")+s}}},56860:(e,t,r)=>{r.d(t,{H4:()=>h,OQ:()=>p,tD:()=>l});var n=r(17867),i=r(6643);function a(e){var t={next:function(){return e.read()}};return i.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}var o=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},s=r(30477),u=r(78655),c=Object.prototype.hasOwnProperty;function l(e,t){return(0,n.__awaiter)(this,void 0,void 0,function(){var r,o,c,l,h,p,d,v,y,m,g,b,_,S,O,w,k,E,R,x,T,I,F;return(0,n.__generator)(this,function(D){switch(D.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),o=null==(F=e.headers)?void 0:F.get("content-type"),c="boundary=",l=(null==o?void 0:o.includes(c))?null==o?void 0:o.substring((null==o?void 0:o.indexOf(c))+c.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",h="\r\n--".concat(l),p="",d=function(e){var t,r,n,o,s,u,c=e;if(e.body&&(c=e.body),t=c,i.uJ&&t[Symbol.asyncIterator])return n=c[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(c.getReader)return a(c.getReader());if(c.stream)return a(c.stream().getReader());if(c.arrayBuffer)return o=c.arrayBuffer(),s=!1,u={next:function(){return s?Promise.resolve({value:void 0,done:!0}):(s=!0,new Promise(function(e,t){o.then(function(t){e({value:t,done:!1})}).catch(t)}))}},i.uJ&&(u[Symbol.asyncIterator]=function(){return this}),u;if(c.pipe)return function(e){var t=null,r=null,n=!1,a=[],o=[];function s(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}a.push(e)}}function u(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function c(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",u),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),e.on("error",u),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise(function(e,t){return r?t(r):a.length?e({value:a.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return i.uJ&&(l[Symbol.asyncIterator]=function(){return this}),l}(c);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),v=!0,D.label=1;case 1:if(!v)return[3,3];return[4,d.next()];case 2:for(m=(y=D.sent()).value,g=y.done,b="string"==typeof m?m:r.decode(m),_=p.length-h.length+1,v=!g,p+=b,S=p.indexOf(h,_);S>-1;){if(O=void 0,O=(T=[p.slice(0,S),p.slice(S+h.length)])[0],p=T[1],w=O.indexOf("\r\n\r\n"),(k=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(O.slice(0,w))["content-type"])&&-1===k.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(E=O.slice(w)){if(Object.keys(R=f(e,E)).length>1||"data"in R||"incremental"in R||"errors"in R||"payload"in R)if((0,u.Nw)(R)){if(x={},"payload"in R){if(1===Object.keys(R).length&&null===R.payload)return[2];x=(0,n.__assign)({},R.payload)}"errors"in R&&(x=(0,n.__assign)((0,n.__assign)({},x),{extensions:(0,n.__assign)((0,n.__assign)({},"extensions"in x?x.extensions:null),((I={})[s.K$]=R.errors,I))})),t(x)}else t(R);else if(1===Object.keys(R).length&&"hasNext"in R&&!R.hasNext)return[2]}S=p.indexOf(h)}return[3,1];case 3:return[2]}})})}function f(e,t){e.status>=300&&o(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function h(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function p(e){return function(t){return t.text().then(function(e){return f(t,e)}).then(function(r){return Array.isArray(r)||c.call(r,"data")||c.call(r,"errors")||o(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})}}},58581:(e,t,r)=>{r.d(t,{c:()=>f});var n=r(48583),i=r(6643),a=r(26518),o=r(98599),s=r(54480),u=r(27305),c=r(36564);function l(e){return e}var f=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.En?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(l,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new n.b(i.et);this.performWork=(0,u.LV)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,o.V1)(Array.isArray(n),105),r.lookupArray(n)},max:c.v["documentTransform.cache"],cache:s.l})}},e.prototype.performWork=function(e){return(0,a.sw)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}()},62848:(e,t,r)=>{r.d(t,{R:()=>et});var n=r(17867),i=r(98599),a=r(80961),o=a.C.execute,s=r(51971),u=r(93216),c=r(29371),l=r(78655),f=r(78404),h=r(80314),p=r(61621),d=r(58581),v=r(56773);function y(e,t,r){return new v.c(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function a(e,t){return function(r){if(e){var a=function(){return n.closed?0:e(r)};i=i.then(a,a).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var o={next:a(t,"next"),error:a(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}var m=r(78864);function g(e){var t=b(e);return(0,m.E)(t)}function b(e){var t=(0,m.E)(e.errors)?e.errors.slice(0):[];return(0,l.ST)(e)&&(0,m.E)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var _=r(26518),S=r(22548),O=r(29526),w=r(78858),k=r(29618),E=r(97139);function R(e){return e&&"function"==typeof e.then}var x=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),(0,k.w)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),(0,k.w)(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?R(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,k.w)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new v.c(t)]),R(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,n.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(v.c);(0,E.r)(x);var T=r(30477),I=r(73069),F=r(2145),D=r(96728),C=r(6643),q=r(47029),M=new(C.et?WeakMap:Map);function Q(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return M.set(e,(M.get(e)+1)%1e15),r.apply(this,arguments)})}var N=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;M.has(r)||(M.set(r,0),Q(r,"evict"),Q(r,"modify"),Q(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||F.pT.loading;return this.variables&&this.networkStatus!==F.pT.loading&&!(0,c.L)(this.variables,e.variables)&&(t=F.pT.setVariables),(0,c.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,c.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 n=(0,q.lz)("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(n,t),n},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,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(0,q.lz)("getLastError",function(){var e;return null==(e=r.observableQuery)?void 0:e.getLastError()}))&&(this.updateLastDiff(e),(0,c.L)(n&&n.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,n.__assign)((0,n.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
1this.lastWatch&&(0,c.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===M.get(this.cache)&&(0,c.L)(t,r.variables)&&(0,c.L)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i,a=this,o=new D.ZI,s=(0,m.E)(e.errors)?e.errors.slice(0):[];if(null==(i=this.observableQuery)||i.resetNotifications(),"incremental"in e&&(0,m.E)(e.incremental)){var u=(0,l.bd)(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var f=this.getDiff();e.data=o.merge(f.result,e.data)}this.graphQLErrors=s,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(A(e,r.errorPolicy)?this.cache.performTransaction(function(i){if(a.shouldWrite(e,r.variables))i.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),a.lastWrite={result:e,variables:r.variables,dmCount:M.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){e.data=a.lastDiff.diff.result;return}var o=a.getDiffOptions(r.variables),s=(0,q.lz)("canonizeResults",function(){return i.diff(o)});!a.stopped&&(0,c.L)(a.variables,r.variables)&&a.updateWatch(r.variables),a.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=F.pT.ready},e.prototype.markError=function(e){var t;return this.networkStatus=F.pT.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 A(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!g(e);return!n&&r&&e.data&&(n=!0),n}var j=r(86937),P=r(48583),L=r(82013),V=r(36564),z=r(92107),W=r(73973),U=r(69057),B=r(96920),K=Object.prototype.hasOwnProperty,Y=Object.create(null),G=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new L.A(V.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new P.b(!1),this.noCacheWarningsByQueryId=new Set;var r=new d.c(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 n=e.documentTransform;this.documentTransform=n?r.concat(n).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,i.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,n.__awaiter)(this,arguments,void 0,function(e){var t,r,a,o,s,u,c,l=e.mutation,f=e.variables,h=e.optimisticResponse,p=e.updateQueries,d=e.refetchQueries,v=void 0===d?[]:d,m=e.awaitRefetchQueries,_=void 0!==m&&m,S=e.update,O=e.onQueryUpdated,w=e.fetchPolicy,k=void 0===w?(null==(u=this.defaultOptions.mutate)?void 0:u.fetchPolicy)||"network-only":w,E=e.errorPolicy,R=void 0===E?(null==(c=this.defaultOptions.mutate)?void 0:c.errorPolicy)||"none":E,x=e.keepRootFields,I=e.context;return(0,n.__generator)(this,function(e){switch(e.label){case 0:if((0,i.V1)(l,36),(0,i.V1)("network-only"===k||"no-cache"===k,37),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),r=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),!r)return[3,2];return[4,this.localState.addExportedVariables(l,f,I)];case 1:f=e.sent(),e.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:f,loading:!0,error:null}),o=h&&this.markMutationOptimistic(h,{mutationId:t,document:l,variables:f,fetchPolicy:k,errorPolicy:R,context:I,updateQueries:p,update:S,keepRootFields:x}),this.broadcastQueries(),s=this,[2,new Promise(function(e,r){return y(s.getObservableFromLink(l,(0,n.__assign)((0,n.__assign)({},I),{optimisticResponse:o?h:void 0}),f,{},!1),function(e){if(g(e)&&"none"===R)throw new T.K4({graphQLErrors:b(e)});a&&(a.loading=!1,a.error=null);var r=(0,n.__assign)({},e);return"function"==typeof v&&(v=v(r)),"ignore"===R&&g(r)&&delete r.errors,s.markMutationResult({mutationId:t,result:r,document:l,variables:f,fetchPolicy:k,errorPolicy:R,context:I,update:S,updateQueries:p,awaitRefetchQueries:_,refetchQueries:v,removeOptimistic:o?t:void 0,onQueryUpdated:O,keepRootFields:x})}).subscribe({next:function(r){s.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,n.__assign)((0,n.__assign)({},r),{data:s.maskOperation({document:l,data:r.data,fetchPolicy:k,id:t})}))},error:function(e){a&&(a.loading=!1,a.error=e),o&&s.cache.removeOptimistic(t),s.broadcastQueries(),r(e instanceof T.K4?e:new T.K4({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,a=[],o="no-cache"===e.fetchPolicy;if(!o&&A(i,e.errorPolicy)){if((0,l.ST)(i)||a.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,l.ST)(i)&&(0,m.E)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),u=void 0;s.result&&(u=(0,l.bd)(s.result,i)),void 0!==u&&(i.data=u,a.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,n){var o=e.observableQuery,s=o&&o.queryName;if(s&&K.call(c,s)){var u=c[s],l=r.queries.get(n),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var v=u(d,{mutationResult:i,queryName:f&&(0,_.n4)(f)||void 0,queryVariables:h});v&&a.push({result:v,dataId:"ROOT_QUERY",query:f,variables:h})}}})}if(a.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(t){o||a.forEach(function(e){return t.write(e)});var s=e.update,u=!(0,l.YX)(i)||(0,l.ST)(i)&&!i.hasNext;if(s){if(!o){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,n.__assign)((0,n.__assign)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}u&&s(t,i,{context:e.context,variables:e.variables})}o||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return f.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).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:Y}):e;return i!==Y&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.__assign)((0,n.__assign)({},t),{result:{data:i}}),e)}catch(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,f.f2)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,f.d8)(["nonreactive"],e),nonReactiveQuery:(0,h.x3)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,h.iz)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,_.wY)((0,_.Vu)(e)),asQuery:(0,n.__assign)((0,n.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.__assign)((0,n.__assign)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.__assign)((0,n.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.__assign)((0,n.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new N(this),i=new I.U({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,I.U.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,i.V1)(e.query,38),(0,i.V1)("Document"===e.query.kind,39),(0,i.V1)(!e.returnPartialData,40),(0,i.V1)(!e.pollInterval,41);var a=this.transform(e.query);return this.fetchQuery(t,(0,n.__assign)((0,n.__assign)({},e),{query:a})).then(function(i){return i&&(0,n.__assign)((0,n.__assign)({},i),{data:r.maskOperation({document:a,data:i.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,i.vA)(42)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=F.pT.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,a=new Map,o=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)a.set(e,e),o.set(e,!1);else if((0,S.Kc)(e)){var r=(0,j.y)(t.transform(e));a.set(r,(0,_.n4)(e)),o.set(r,!1)}else(0,O.U)(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,n){var i=t.observableQuery,a=t.document;if(i){if("all"===e)return void r.set(n,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has((0,j.y)(a)))&&(r.set(n,i),s&&o.set(s,!0),a&&o.set((0,j.y)(a),!0))}}),s.size&&s.forEach(function(e){var a=(0,w.v)("legacyOneTimeQuery"),o=t.getOrCreateQuery(a).init({document:e.query,variables:e.variables}),s=new I.U({queryManager:t,queryInfo:o,options:(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"network-only"})});(0,i.V1)(s.queryId===a),o.setObservableQuery(s),r.set(a,s)}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var a=n.options.fetchPolicy;(0,q.lz)("resetLastResults",function(){return n.resetLastResults()}),(e||"standby"!==a&&"cache-only"!==a)&&r.push(n.refetch()),(t.queries.get(i)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,i=e.fetchPolicy,a=e.errorPolicy,o=void 0===a?"none":a,s=e.context,u=void 0===s?{}:s,c=e.extensions,l=void 0===c?{}:c;r=this.transform(r),n=this.getVariables(r,n);var f=function(e){return t.getObservableFromLink(r,u,e,l).map(function(n){"no-cache"!==i&&(A(n,o)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=g(n),s=(0,T.uR)(n);if(a||s){var u={};if(a&&(u.graphQLErrors=n.errors),s&&(u.protocolErrors=n.extensions[T.K$]),"none"===o||s)throw new T.K4(u)}return"ignore"===o&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,n,u).then(f);return new v.c(function(e){var t=null;return h.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return f(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){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,a){var s,u,c=this;void 0===a&&(a=null!=(s=null==t?void 0:t.queryDeduplication)?s:this.queryDeduplication);var l=this.getDocumentInfo(e),f=l.serverQuery,h=l.clientQuery;if(f){var d=this.inFlightLinkObservables,m=this.link,g={query:f,variables:r,operationName:(0,_.n4)(f)||void 0,context:this.prepareContext((0,n.__assign)((0,n.__assign)({},t),{forceFetch:!a})),extensions:i};if(t=g.context,a){var b=(0,j.y)(f),S=(0,p.M)(r),O=d.lookup(b,S);if(!(u=O.observable)){var w=new x([o(m,g)]);u=O.observable=w,w.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?w.beforeNext(e):d.remove(b,S)})}}else u=new x([o(m,g)])}else u=new x([v.c.of({data:{}})]),t=this.prepareContext(t);return h&&(u=y(u,function(e){return c.localState.runResolvers({document:h,remoteResult:e,context:t,variables:r})})),u},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return y(this.getObservableFromLink(i,r.context,r.variables),function(a){var o=b(a),s=o.length>0,u=r.errorPolicy;if(n>
1=e.lastRequestId){if(s&&"none"===u)throw e.markError(new T.K4({graphQLErrors:o}));e.markResult(a,i,r,t),e.markReady()}var c={data:a.data,loading:!1,networkStatus:F.pT.ready};return s&&"none"===u&&(c.data=void 0),s&&"ignore"!==u&&(c.errors=o,c.networkStatus=F.pT.error),c},function(t){var r=(0,T.Mn)(t)?t:new T.K4({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,a,o=this;void 0===r&&(r=F.pT.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,l=void 0===c?u&&u.fetchPolicy||"cache-first":c,f=t.errorPolicy,h=void 0===f?u&&u.errorPolicy||"none":f,p=t.returnPartialData,d=t.notifyOnNetworkStatusChange,v=t.context,y=Object.assign({},t,{query:n,variables:s,fetchPolicy:l,errorPolicy:h,returnPartialData:void 0!==p&&p,notifyOnNetworkStatusChange:void 0!==d&&d,context:void 0===v?{}:v}),m=function(n){y.variables=n;var i=o.fetchQueryByPolicy(e,y,r);return"standby"!==y.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},g=function(){return o.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){g(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(y.query).hasClientExports)i=new x(this.localState.addExportedVariables(y.query,y.variables,y.context).then(m).then(function(e){return e.sources})),a=!0;else{var b=m(y.variables);a=b.fromLink,i=new x(b.sources)}return i.promise.then(g,g),{concast:i,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?(0,w.v)("refetchQueries"):void 0:o,u=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof N&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,a=e.lastDiff,o=e.diff;u&&(o||(o=(0,q.lz)("canonizeResults",function(){return t.cache.diff(i.queryInfo.getDiffOptions())})),n=u(i,o,a)),u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.maskOperation=function(e){var t=e.document,r=e.data;return this.dataMasking?function(e,t,r){if(!r.fragmentMatches)return e;var n,a=(0,_.Vu)(t);return((0,i.V1)(a,63),null==e)?e:(0,W.S)(e,a.selectionSet,{operationType:a.operation,operationName:null==(n=a.name)?void 0:n.value,fragmentMap:(0,z.JG)((0,_.zK)(t)),cache:r,mutableTargets:new U.jq,knownChanged:new U.xm})}(r,t,this.cache):r},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?(0,B.z)(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,a=t.query,o=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,f=t.context,h=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:a,variables:o,networkStatus:r});var d=function(){return e.getDiff()},y=function(t,r){void 0===r&&(r=e.networkStatus||F.pT.loading);var s=t.result,u=function(e){return v.c.of((0,n.__assign)({data:e,loading:(0,F.bi)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&i.getDocumentInfo(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:s},context:f,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===c&&r===F.pT.refetch&&Array.isArray(t.missing)?u(void 0):u(s)},m="no-cache"===s?0:r===F.pT.refetch&&"merge"!==u?1:2,g=function(){return i.getResultsFromLink(e,m,{query:a,variables:o,context:f,fetchPolicy:s,errorPolicy:c})},b=h&&"number"==typeof p&&p!==r&&(0,F.bi)(r);switch(s){default:case"cache-first":var _=d();if(_.complete)return{fromLink:!1,sources:[y(_,e.markReady())]};if(l||b)return{fromLink:!0,sources:[y(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-and-network":var _=d();if(_.complete||l||b)return{fromLink:!0,sources:[y(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[y(d(),e.markReady())]};case"network-only":if(b)return{fromLink:!0,sources:[y(d()),g()]};return{fromLink:!0,sources:[g()]};case"no-cache":if(b)return{fromLink:!0,sources:[y(e.getDiff()),g()]};return{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new N(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),J=r(44819),H=r(40612);function $(e){return e.kind===H.b.FIELD||e.kind===H.b.FRAGMENT_SPREAD||e.kind===H.b.INLINE_FRAGMENT}var Z=r(29286),X=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,D.D9)(t.resolvers,e)}):this.resolvers=(0,D.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,n.__awaiter)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,i=e.context,a=e.variables,o=e.onlyRunForcedResolvers,s=void 0!==o&&o;return(0,n.__generator)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,a,this.fragmentMatcher,s).then(function(e){return(0,n.__assign)((0,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(0,f.d8)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,h.er)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.__assign)((0,n.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,n.__awaiter)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.__generator)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,n.__assign)((0,n.__assign)({},t),e.exportedVariables)})]:[2,(0,n.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,J.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})))return J.sP}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,h.zc)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,n.__awaiter)(this,arguments,void 0,function(e,t,r,i,a,o){var s,u,c,l,f,h,p,d,v,y;return void 0===r&&(r={}),void 0===i&&(i={}),void 0===a&&(a=function(){return!0}),void 0===o&&(o=!1),(0,n.__generator)(this,function(m){return s=(0,_.Vn)(e),u=(0,_.zK)(e),c=(0,z.JG)(u),l=this.collectSelectionsToResolve(s,c),h=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",p=this,d=p.c
1ache,v=p.client,y={fragmentMap:c,context:(0,n.__assign)((0,n.__assign)({},r),{cache:d,client:v}),variables:i,fragmentMatcher:a,defaultOperationType:h,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(s.selectionSet,!1,t,y).then(function(e){return{result:e,exportedVariables:y.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,a){return(0,n.__awaiter)(this,void 0,void 0,function(){var o,s,u,c,l,h=this;return(0,n.__generator)(this,function(p){return o=a.fragmentMap,s=a.context,u=a.variables,c=[r],l=function(e){return(0,n.__awaiter)(h,void 0,void 0,function(){var l,h;return(0,n.__generator)(this,function(n){return(t||a.selectionsToResolve.has(e))&&(0,f.MS)(e,u)?(0,S.dt)(e)?[2,this.resolveField(e,t,r,a).then(function(t){var r;void 0!==t&&c.push(((r={})[(0,S.ue)(e)]=t,r))})]:((0,S.kd)(e)?l=e:(l=o[e.name.value],(0,i.V1)(l,21,e.name.value)),l&&l.typeCondition&&(h=l.typeCondition.name.value,a.fragmentMatcher(r,h,s)))?[2,this.resolveSelectionSet(l.selectionSet,t,r,a).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return(0,D.IM)(c)})]})})},e.prototype.resolveField=function(e,t,r,i){return(0,n.__awaiter)(this,void 0,void 0,function(){var a,o,s,u,c,l,f,h,p,d=this;return(0,n.__generator)(this,function(n){return r?(a=i.variables,u=(o=e.name.value)!==(s=(0,S.ue)(e)),l=Promise.resolve(c=r[s]||r[o]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=r.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[u?o:s])&&(l=Promise.resolve(Z.bl.withValue(this.cache,p,[r,(0,S.MB)(e,a),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then(function(r){if(void 0===r&&(r=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&&(i.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var n,a,o=null!=(a=null==(n=e.directives)?void 0:n.some(function(e){return"client"===e.name.value}))&&a;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||o,r,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||o,r,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(a){if(!n.has(a)){var o=new Set;n.set(a,o),(0,J.YR)(a,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach(function(e){r(e)&&$(e)&&o.add(e)})},FragmentSpread:function(n,a,s,u,c){var l=t[n.name.value];(0,i.V1)(l,22,n.name.value);var f=e(l);f.size>0&&(c.forEach(function(e){r(e)&&$(e)&&o.add(e)}),o.add(n),f.forEach(function(e){o.add(e)}))}})}return n.get(a)}(e)},e}(),ee=r(81960),et=function(){function e(e){var t,r,o,c=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i.vA)(16);var l=e.uri,f=e.credentials,h=e.headers,p=e.cache,d=e.documentTransform,v=e.ssrMode,y=void 0!==v&&v,m=e.ssrForceFetchDelay,g=void 0===m?0:m,b=e.connectToDevTools,_=e.queryDeduplication,S=void 0===_||_,O=e.defaultOptions,w=e.defaultContext,k=e.assumeImmutableResults,E=void 0===k?p.assumeImmutableResults:k,R=e.resolvers,x=e.typeDefs,T=e.fragmentMatcher,I=e.clientAwareness,F=e.name,D=e.version,C=e.devtools,q=e.dataMasking,M=e.link;M||(M=l?new u.P({uri:l,credentials:f,headers:h}):a.C.empty()),this.link=M,this.cache=p,this.disableNetworkFetches=y||g>0,this.queryDeduplication=S,this.defaultOptions=O||Object.create(null),this.typeDefs=x,this.devtoolsConfig=(0,n.__assign)((0,n.__assign)({},C),{enabled:null!=(t=null==C?void 0:C.enabled)?t:b}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1),g&&setTimeout(function(){return c.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=s.r,this.localState=new X({cache:p,client:this,resolvers:R,fragmentMatcher:T}),this.queryManager=new G({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:w,documentTransform:d,queryDeduplication:S,ssrMode:y,dataMasking:!!q,clientAwareness:{name:null!=(r=null==I?void 0:I.name)?r:F,version:null!=(o=null==I?void 0:I.version)?o:D},localState:this.localState,assumeImmutableResults:E,onBroadcast:this.devtoolsConfig.enabled?function(){c.devToolsHookCb&&c.devToolsHookCb({action:{},state:{queries:c.queryManager.getQueryStore(),mutations:c.queryManager.mutationStore||{}},dataWithOptimisticResults:c.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(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}},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,ee.l)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,ee.l)(this.defaultOptions.query,e)),(0,i.V1)("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,ee.l)(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,n.__assign)((0,n.__assign)({},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,n.__assign)((0,n.__assign)({},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 o(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){}),i},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}()},69057:(e,t,r)=>{r.d(t,{jq:()=>a,xm:()=>o,yV:()=>s});var n=r(27305);r(98599);var i=r(6643),a=i.et?WeakMap:Map,o=i.En?WeakSet:Set,s=new n.DX},69755:(e,t,r)=>{r.d(t,{D:()=>ew});var n=r(17867),i=r(98599),a=r(27305),o=r(29371),s=r(92107),u=r(36564),c=r(56773),l=r(96728),f=r(54480),h=r(14404),p=r(96920),d=r(47029),v=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,a.LV)(s.ct,{max:u.v["cache.fragmentQueryDocuments"]||1e3,cache:f.l})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),(0,d.lz)("canonizeResults",function(){return r.read((0,n.__assign)((0,n.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))})},e.prototype.watchFragment=function(e){var t,r=this,i=e.fragment,a=e.fragmentName,o=e.from,s=e.optimistic,u=(0,n.__rest)(e,["fragment","fragmentName","from","optimistic"]),f=this.getFragmentDoc(i,a),d=void 0===o||"string"==typeof o?o:this.identify(o),v=!!e[Symbol.for("apollo.dataMasking")],y=(0,n.__assign)((0,n.__assign)({},u),{returnPartialData:!0,id:d,query:f,optimistic:void 0===s||s});return new c.c(function(o){return r.watch((0,n.__assign)((0,n.__assign)({},y),{immediate:!0,callback:function(s){var u=v?(0,p.z)(s.result,i,r,a):s.result;if(!(t&&(0,h.a)(f,{data:t.result},{data:u},e.variables))){var c={data:u,complete:!!s.complete};s.missing&&(c.missing=(0,l.IM)(s.missing.map(function(e){return e.missing}))),t=(0,n.__assign)((0,n.__assign)({},s),{result:u}),o.next(c)}}}))})},e.prototype.readFragment=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),(0,d.lz)("canonizeResults",function(){return r.read((0,n.__assign)((0,n.__assign)({},e),{query:r.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,i=(0,n.__rest)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,a=e.fragmentName,o=(0,n.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(i,a),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var i=(0,d.lz)("canonizeResults",function(){return r.readQuery(e)}),a=t(i);return null==a?i:(r.writeQuery((0,n.__assign)((0,n.__assign)({},e),{data:a})),a)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var i=(0,d.lz)("canonizeResults",function(){return r.readFragment(e)}),a=t(i);return null==a?i:(r.writeFragment((0,n.__assign)((0,n.__assign)({},e),{data:a})),a)}})},e}(),y=function(e){function t(r,n,i,a){var o,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)(o={})[s.path[u]]=s.missing,s.missing=o}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,n.__extends)(t,e),t}(Error),m=r(58581),g=r(80314),b=r(61621),_=r(86937),S=r(22548),O=r(40612),w=r(6643),k=r(4987),E=r(26518),R=r(78404),x=r(43679),T=r(48583),I=r(29526),F=r(78864),D=Object.prototype.hasOwnProperty;function C(e){return null==e}function q(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=C(n)?C(i)?void 0:{_id:i}:{id:n}),C(n)&&!C(i)&&(n=i),!C(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var M={dataIdFromObject:q,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Q(e){var t=e.canonizeResults;return void 0===t?M.canonizeResults:t}var N=/^[_a-z][_0-9a-z]*/i;function A(e){var t=e.match(N);return t?t[0]:e}function j(e){return(0,I.U)(e)&&!(0,S.A_)(e)&&!(0,F.c)(e)}function P(e,t){var r=(0,s.JG)((0,E.zK)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var L=Object.create(null),V=function(){return L},z=Object.create(null),W=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,x.G)((0,S.A_)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,S.A_)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,S.WU)(e);if((0,S.A_)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,S.WU)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,n.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),D.call(this.data,e)){var r=this.data[e];if(r&&D.call(r,t))return r[t]}return"__typename"===t&&D.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof K?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),D.call(this.data,e))?this.data[e]:this instanceof K?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,S.A_)(e)&&(e=e.__ref),(0,S.A_)(t)&&(t=t.__ref);
1var a="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){(0,i.V1)("string"==typeof r,2);var s=new l.ZI(G).merge(a,o);if(this.data[r]=s,s!==a&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);a||(u.__exists=1),Object.keys(o).forEach(function(e){if(!a||a[e]!==s[e]){u[e]=1;var t=A(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof K||delete s[e]}}),u.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,i=this.lookup(e);if(i){var a=Object.create(null),o=!1,s=!0,u={DELETE:L,INVALIDATE:z,isReference:S.A_,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,S.WU)(e)}:t,{store:r})}};if(Object.keys(i).forEach(function(c){var l=A(c),f=i[c];if(void 0!==f){var h="function"==typeof t?t:t[c]||t[l];if(h){var p=h===V?L:h((0,x.G)(f),(0,n.__assign)((0,n.__assign)({},u),{fieldName:l,storeFieldName:c,storage:r.getStorage(e,c)}));p===z?r.group.dirty(e,c):(p===L&&(p=void 0),p!==f&&(a[c]=p,o=!0,f=p))}void 0!==f&&(s=!1)}}),o)return this.merge(e,a),s&&(this instanceof K?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:a,fieldName:t,args:r}):t;return this.modify(e,o?((n={})[o]=V,n):V)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(D.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof K&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){D.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&D.call(e,r)||t.delete(r)}),e){var r=e.__META,i=(0,n.__rest)(e,["__META"]);
1Object.keys(i).forEach(function(e){t.merge(e,i[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof K?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){D.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof K;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!D.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,S.A_)(e)&&(t[e.__ref]=!0),(0,I.U)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,I.U)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),U=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,a.yN)():null,this.keyMaker=new T.b(w.et)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=A(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function B(e,t){J(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,a=e.call(this,r,new U(void 0===n||n))||this;return a.stump=new Y(a),a.storageTrie=new T.b(w.et),i&&a.replace(i),a}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(W||(W={}));var K=function(e){function t(t,r,n,i){var a=e.call(this,r.policies,i)||this;return a.id=t,a.parent=r,a.replay=n,a.group=i,n(a),a}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,o.L)(n[r],i[r])||t.group.dirty(e,r)}
1):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,n.__assign)((0,n.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return D.call(this.data,t)?(0,n.__assign)((0,n.__assign)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(W),Y=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new U(t.group.caching,t.group))||this}return(0,n.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(K);function G(e,t,r){var n=e[r],i=t[r];return(0,o.L)(n,i)?n:i}function J(e){return!!(e instanceof W&&e.group.caching)}var H=function(){function e(){this.known=new(w.En?WeakSet:Set),this.pool=new T.b(w.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,I.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,I.U)(e)){var t=(0,I.U)(e)?(0,F.c)(e)?e.slice(0):(0,n.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,I.U)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||this.known.add(i.array=n),i.array;case null:case Object.prototype:if(this.known.has(e))break;var a=Object.getPrototypeOf(e),o=[a],s=this.sortedKeys(e);o.push(s.json);var u=o.length;s.sorted.forEach(function(r){o.push(t.admit(e[r]))});var i=this.pool.lookupArray(o);if(!i.object){var c=i.object=Object.create(a);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=o[u+t]})}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function $(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Z=function(){function e(e){var t=this;this.knownResults=new(w.et?WeakMap:Map),this.config=(0,k.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:Q(e)}),this.canon=e.canon||new H,this.executeSelectionSet=(0,a.LV)(function(e){var r,i=e.context.canonizeResults,a=$(e);a[3]=!i;var o=(r=t.executeSelectionSet).peek.apply(r,a);return o?i?(0,n.__assign)((0,n.__assign)({},o),{result:t.canon.admit(o.result)}):o:(B(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||u.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:$,makeCacheKey:function(e,t,r,n){if(J(r.store))return r.store.makeCacheKey(e,(0,S.A_)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,a.LV)(function(e){return B(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||u.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(J(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new H},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,i=e.query,a=e.rootId,o=e.variables,s=e.returnPartialData,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;o=(0,n.__assign)((0,n.__assign)({},(0,E.wY)((0,E.AT)(i))),o);var f=(0,S.WU)(void 0===a?"ROOT_QUERY":a),h=this.executeSelectionSet({selectionSet:(0,E.Vn)(i).selectionSet,objectOrReference:f,enclosingRef:f,context:(0,n.__assign)({store:r,query:i,policies:l,variables:o,varString:(0,b.M)(o),canonizeResults:c},P(i,this.config.fragments))});if(h.missing&&(t=[new y(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(h.missing),h.missing,i,o)],!(void 0===s||s)))throw t[0];return{result:h.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(J(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,a=e.objectOrReference,o=e.enclosingRef,u=e.context;if((0,S.A_)(a)&&!u.policies.rootTypenamesById[a.__ref]&&!u.store.has(a.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(a.__ref," object")};var c=u.variables,f=u.policies,h=u.store.getFieldValue(a,"__typename"),p=[],d=new l.ZI;function v(e,r){var n;return e.missing&&(t=d.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof h&&!f.rootIdsByTypename[h]&&p.push({__typename:h});var y=new Set(n.selections);
1y.forEach(function(e){var n,l;if((0,R.MS)(e,c))if((0,S.dt)(e)){var m=f.readField({fieldName:e.name.value,field:e,variables:u.variables,from:a},u),b=(0,S.ue)(e);void 0===m?g.XY.added(e)||(t=d.merge(t,((n={})[b]="Can't find field '".concat(e.name.value,"' on ").concat((0,S.A_)(a)?a.__ref+" object":"object "+JSON.stringify(a,null,2)),n))):(0,F.c)(m)?m.length>0&&(m=v(r.executeSubSelectedArray({field:e,array:m,enclosingRef:o,context:u}),b)):e.selectionSet?null!=m&&(m=v(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:(0,S.A_)(m)?m:o,context:u}),b)):u.canonizeResults&&(m=r.canon.pass(m)),void 0!==m&&p.push(((l={})[b]=m,l))}else{var _=(0,s.HQ)(e,u.lookupFragment);if(!_&&e.kind===O.b.FRAGMENT_SPREAD)throw(0,i.vA)(10,e.name.value);_&&f.fragmentMatches(_,h)&&_.selectionSet.selections.forEach(y.add,y)}});var m={result:(0,l.IM)(p),missing:t},b=u.canonizeResults?this.canon.admit(m):(0,x.G)(m);return b.result&&this.knownResults.set(b.result,n),b},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,a=e.enclosingRef,o=e.context,s=new l.ZI;function u(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,F.c)(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:o}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,S.A_)(e)?e:a,context:o}),t):e}),{result:o.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),X=r(29286),ee=Object.create(null);function et(e){var t=JSON.stringify(e);return ee[t]||(ee[t]=Object.create(null))}function er(e){var t=et(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},a=r.keyObject=ei(e,function(e){var a=eo(r.storeObject,e,n);return void 0===a&&t!==r.storeObject&&D.call(t,e[0])&&(a=eo(t,e,ea)),(0,i.V1)(void 0!==a,5,e.join("."),t),a});return"".concat(r.typename,":").concat(JSON.stringify(a))})}function en(e){var t=et(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,a=r.fieldName,o=JSON.stringify(ei(e,function(e){var r=e[0],a=r.charAt(0);if("@"===a){if(n&&(0,F.E)(n.directives)){var o=r.slice(1),s=n.directives.find(function(e){return e.name.value===o}),u=s&&(0,S.MB)(s,i);return u&&eo(u,e.slice(1))}return}if("$"===a){var c=r.slice(1);if(i&&D.call(i,c)){var l=e.slice(0);return l[0]=c,eo(i,l)}return}if(t)return eo(t,e)}));return(t||"{}"!==o)&&(a+=":"+o),a})}function ei(e,t){var r=new l.ZI;return(function e(t){var r=et(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,a){(0,F.c)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,F.c)(t[a+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,a=t(n);if(void 0!==a){for(var o=n.length-1;o>=0;--o)(i={})[n[o]]=a,a=i;e=r.merge(e,a)}return e},Object.create(null))}function ea(e,t){return e[t]}function eo(e,t,r){return r=r||ea,function e(t){return(0,I.U)(t)?(0,F.c)(t)?t.map(e):ei(Object.keys(t).sort(),function(e){return eo(t,e)}):t}(t.reduce(function e(t,n){return(0,F.c)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}var es=r(69057);function eu(e){return void 0!==e.args?e.args:e.field?(0,S.MB)(e.field,e.variables):null}var ec=function(){},el=function(e,t){return t.fieldName},ef=function(e,t,r){return(0,r.mergeObjects)(e,t)},eh=function(e,t){return t},ep=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.__assign)({dataIdFromObject:q},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,i,a=this,o=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s=t&&t.storeObject||e,u=(0,n.__assign)((0,n.__assign)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=ev(arguments,s);return a.readField(e,{store:a.cache.data,variables:e.variables})}}),c=o&&this.getTypePolicy(o),l=c&&c.keyFn||this.config.dataIdFromObject;return es.yV.withValue(!0,function(){for(;l;){var t=l((0,n.__assign)((0,n.__assign)({},e),s),u);if((0,F.c)(t))l=er(t);else{i=t;break}}}),i=i?String(i):void 0,u.keyObject?[i,u.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var i=e[r],a=i.queryType,o=i.mutationType,s=i.subscriptionType,u=(0,n.__rest)(i,["queryType","mutationType","subscriptionType"]);a&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),D.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]})},e.prototype.updateTypePolicy=function(e,t,r){var n=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?ef:!1===t?eh:e.merge}o(n,t.merge),n.keyFn=!1===i?ec:(0,F.c)(i)?er(i):"function"==typeof i?i:n.keyFn,a&&Object.keys(a).forEac
1h(function(t){var n=r[t];n&&(null==n?void 0:n.typename)===e||(n=r[t]={typename:e});var i=a[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?el:(0,F.c)(s)?en(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),o(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||el)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.V1)(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(N);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!D.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,n){if(r.test(e)){var a=t.supertypeMap.get(n);a&&a.forEach(function(e){return i.add(e)})}})),i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),a=i.fields;Object.assign(r,(0,n.__rest)(i,["fields"])),Object.assign(r.fields,a)})}var a=this.toBeAdded[e];return a&&a.length&&a.splice(0).forEach(function(r){t.updateTypePolicy(e,r,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},c=!!(r&&this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var h=s[f];if(h.has(a))return o.has(a)||o.add(a),!0;h.forEach(u),c&&f===s.length-1&&function e(t,r,n){return!!(0,I.U)(r)&&((0,F.c)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,S.dt)(t)&&(0,R.MS)(t,n)){var i=(0,S.ue)(t);return D.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(c=!1,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n),a=i&&i.keyFn;if(a&&r)for(var o={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=eu(e);a;){var u=a(s,o);if((0,F.c)(u))a=en(u);else{t=u||n;break}}return(void 0===t&&(t=e.field?(0,S.Ii)(e.field,e.variables):(0,S.o5)(n,eu(e))),!1===t)?n:n===A(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),a=A(i),o=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,a),u=s&&s.read;if(u){var c=ed(this,r,e,t,t.store.getStorage((0,S.A_)(r)?r.__ref:r,i));return X.bl.withValue(this.cache,u,[o,c])}return o}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var a=r.field,o=r.typename,s=r.merge;return s===ef?ey(n.store)(e,t):s===eh?t:(n.overwrite&&(e=void 0),s(e,t,ed(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:n.variables},n,i||Object.create(null))))},e}();function ed(e,t,r,n,i){var a=e.getStoreFieldName(r),o=A(a),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:eu(r),field:r.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:S.A_,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(ev(arguments,t,s),n)},mergeObjects:ey(n.store)}}function ev(e,t,r){var i,a=e[0],o=e[1],s=e.length;return"string"==typeof a?i={fieldName:a,from:s>1?o:t}:(i=(0,n.__assign)({},a),D.call(i,"from")||(i.from=t)),void 0===i.variables&&(i.variables=r),i}function ey(e){return function(t,r){if((0,F.c)(t)||(0,F.c)(r))throw(0,i.vA)(9);if((0,I.U)(t)&&(0,I.U)(r)){var a=e.getFieldValue(t,"__typename"),o=e.getFieldValue(r,"__typename");if(a&&o&&a!==o)return r;if((0,S.A_)(t)&&j(r))return e.merge(t.__ref,r),t;if(j(t)&&(0,S.A_)(r))return e.merge(t,r.__ref),r;if(j(t)&&j(r))return(0,n.__assign)((0,n.__assign)({},t),r)}return r}}function em(e,t,r){var i="".concat(t).concat(r),a=e.flavors.get(i);return a||e.flavors.set(i,a=e.clientOnly===t&&e.deferred===r?e:(0,n.__assign)((0,n.__assign)({},e),{clientOnly:t,deferred:r})),a}var eg=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,a=t.query,o=t.result,s=t.dataId,u=t.variables,c=t.overwrite,f=(0,E.Vu)(a),h=new l.ZI;u=(0,n.__assign)((0,n.__assign)({},(0,E.wY)(f)),u);var p=(0,n.__assign)((0,n.__assign)({store:e,written:Object.create(null),merge:function(e,t){return h.merge(e,t)}
1,variables:u,varString:(0,b.M)(u)},P(a,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:o||Object.create(null),dataId:s,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:p});if(!(0,S.A_)(d))throw(0,i.vA)(12,o);return p.incomingById.forEach(function(t,n){var i=t.storeObject,a=t.mergeTree;t.fieldNodeSet;var o=(0,S.WU)(n);if(a&&a.map.size){var s=r.applyMerges(a,o,i,p);if((0,S.A_)(s))return;i=s}e.merge(n,i)}),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,i=e.result,a=e.selectionSet,o=e.context,s=e.mergeTree,u=this.cache.policies,c=Object.create(null),l=r&&u.rootTypenamesById[r]||(0,S.D$)(i,a,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof l&&(c.__typename=l);var f=function(){var e=ev(arguments,c,o.variables);if((0,S.A_)(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var r=u.readField((0,n.__assign)((0,n.__assign)({},e),{from:t.storeObject}),o);if(void 0!==r)return r}}return u.readField(e,o)},h=new Set;this.flattenFields(a,i,o,l).forEach(function(e,r){var n,a=i[(0,S.ue)(r)];if(h.add(r),void 0!==a){var o=u.getStoreFieldName({typename:l,fieldName:r.name.value,field:r,variables:e.variables}),p=e_(s,o),d=t.processFieldValue(a,r,r.selectionSet?em(e,!1,!1):e,p),v=void 0;r.selectionSet&&((0,S.A_)(d)||j(d))&&(v=f("__typename",d));var y=u.getMergeFunction(l,r.name.value,v);y?p.info={field:r,typename:l,merge:y}:eO(s,o),c=e.merge(c,((n={})[o]=d,n))}});try{var p=u.identify(i,{typename:l,selectionSet:a,fragmentMap:o.fragmentMap,storeObject:c,readField:f}),d=p[0],v=p[1];r=r||d,v&&(c=o.merge(c,v))}catch(e){if(!r)throw e}if("string"==typeof r){var y=(0,S.WU)(r),m=o.written[r]||(o.written[r]=[]);if(m.indexOf(a)>=0||(m.push(a),this.reader&&this.reader.isFresh(i,y,a,o)))return y;var g=o.incomingById.get(r);return g?(g.storeObject=o.merge(g.storeObject,c),g.mergeTree=function e(t,r){if(t===r||!r||eS(r))return t;if(!t||eS(t))return r;var i=t.info&&r.info?(0,n.__assign)((0,n.__assign)({},t.info),r.info):t.info||r.info,a=t.map.size&&r.map.size,o={info:i,map:a?new Map:t.map.size?t.map:r.map};if(a){var s=new Set(r.map.keys());t.map.forEach(function(t,n){o.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){o.map.set(n,e(r.map.get(n),t.map.get(n)))})}return o}(g.mergeTree,s),h.forEach(function(e){return g.fieldNodeSet.add(e)})):o.incomingById.set(r,{storeObject:c,mergeTree:eS(s)?void 0:s,fieldNodeSet:h}),y}return c},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,F.c)(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,r,e_(n,a));return eO(n,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,S.D$)(t,e,r.fragmentMap));var a=new Map,o=this.cache.policies,u=new T.b(!1);return!function e(c,l){var f=u.lookup(c,l.clientOnly,l.deferred);f.visited||(f.visited=!0,c.selections.forEach(function(u){if((0,R.MS)(u,r.variables)){var c=l.clientOnly,f=l.deferred;if(!(c&&f)&&(0,F.E)(u.directives)&&u.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(c=!0),"defer"===t){var n=(0,S.MB)(e,r.variables);n&&!1===n.if||(f=!0)}}),(0,S.dt)(u)){var h=a.get(u);h&&(c=c&&h.clientOnly,f=f&&h.deferred),a.set(u,em(r,c,f))}else{var p=(0,s.HQ)(u,r.lookupFragment);if(!p&&u.kind===O.b.FRAGMENT_SPREAD)throw(0,i.vA)(14,u.name.value);p&&o.fragmentMatches(p,n,t,r.variables)&&e(p.selectionSet,em(r,c,f))}}}))}(e,r),a},e.prototype.applyMerges=function(e,t,r,a,o){var s=this;if(e.map.size&&!(0,S.A_)(r)){var u,c,l=!(0,F.c)(r)&&((0,S.A_)(t)||j(t))?t:void 0,f=r;l&&!o&&(o=[(0,S.A_)(l)?l.__ref:l]);var h=function(e,t){return(0,F.c)(e)?"number"==typeof t?e[t]:void 0:a.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=h(l,t),n=h(f,t);if(void 0!==n){o&&o.push(t);var u=s.applyMerges(e,r,n,a,o);u!==n&&(c=c||new Map).set(t,u),o&&(0,i.V1)(o.pop()===t)}}),c&&(r=(0,F.c)(f)?f.slice(0):(0,n.__assign)({},f),c.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,a,o&&(u=a.store).getStorage.apply(u,o)):r},e}(),eb=[];function e_(e,t){var r=e.map;return r.has(t)||r.set(t,eb.pop()||{map:new Map}),r.get(t)}function eS(e){return!e||!(e.info||e.map.size)}function eO(e,t){var r=e.map,n=r.get(t);n&&eS(n)&&(eb.push(n),r.delete(t))}var ew=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new m.c(g.XY),n.assumeImmutableResults=!0,n.makeVar=X.UT,n.txCount=0,r=t,n.config=(0,k.o)(M,r),n.addTypename=!!n.config.addTypename,n.policies=new ep({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,n.__extends)(t,e),t.prototype.init=function(){var e=this.data=new W.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.addTypenameTransform.resetCache(),null==n||n.resetCaches(),this.storeWriter=new eg(this,this.storeReader=new Z({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Q(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,a.LV)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||u.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(J(r)){var n=e.optimistic,i=e.id,a=e.variables;return r.makeCacheKey(e.query,e.callback,(0,b.M)({optimistic:n,id:i,variables:a}))}}}
1),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof y)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(D.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,X.MS)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,X.WR)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){b.M.reset(),_.y.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,S.A_)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){}},t.prototype.evict=function(e){if(!e.id){if(D.call(e,"id"))return!1;e=(0,n.__assign)((0,n.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),b.M.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,X.WR)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,i=e.update,a=e.optimistic,o=void 0===a||a,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var n=r.data,a=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=n,r.optimisticData=a}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,c):!1===o?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e,t){var r=u.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=this,n=e.lastDiff,i=(0,d.lz)("canonizeResults",function(){return r.diff(e)});(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,n)))&&
1(n&&(0,o.L)(n.result,i.result)||e.callback(e.lastDiff=i,n))},t}(v)},70448:(e,t,r)=>{r.d(t,{HY:()=>s,R4:()=>a,i1:()=>o});var n=r(17867),i=r(86937),a={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},o=function(e,t){return t(e)};function s(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];var o={},s={};r.forEach(function(e){o=(0,n.__assign)((0,n.__assign)((0,n.__assign)({},o),e.options),{headers:(0,n.__assign)((0,n.__assign)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),s=(0,n.__assign)((0,n.__assign)({},s),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var r={};return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(o.headers,s.preserveHeaderCase));var u=e.operationName,c=e.extensions,l=e.variables,f=e.query,h={operationName:u,variables:l};return s.includeExtensions&&(h.extensions=c),s.includeQuery&&(h.query=t(f,i.y)),{options:o,body:h}}},73973:(e,t,r)=>{r.d(t,{S:()=>c});
1var n=r(40612),i=r(43679),a=r(22548),o=r(78404),s=r(69057),u=r(98599);function c(e,t,r){return s.yV.withValue(!0,function(){var s=function e(t,r,i,s,c){var l=i.knownChanged,f=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(t,i.mutableTargets);if(Array.isArray(t)){for(var h=0,p=Array.from(t.entries());h<p.length;h++){var d=p[h],v=d[0],y=d[1];if(null===y){f[v]=null;continue}var m=e(y,r,i,s,void 0);l.has(m)&&l.add(f),f[v]=m}return l.has(f)?f:t}for(var g=0,b=r.selections;g<b.length;g++){var _=b[g],S=void 0;if(s&&l.add(f),_.kind===n.b.FIELD){var O=(0,a.ue)(_),w=_.selectionSet;if(void 0===(S=f[O]||t[O]))continue;if(w&&null!==S){var m=e(t[O],w,i,s,void 0);l.has(m)&&(S=m)}f[O]=S}if(_.kind===n.b.INLINE_FRAGMENT&&(!_.typeCondition||i.cache.fragmentMatches(_,t.__typename))&&(S=e(t,_.selectionSet,i,s,c)),_.kind===n.b.FRAGMENT_SPREAD){var k=_.name.value,E=i.fragmentMap[k]||(i.fragmentMap[k]=i.cache.lookupFragment(k));(0,u.V1)(E,59,k);var R=(0,o.s7)(_);"mask"!==R&&(S=e(t,E.selectionSet,i,"migrate"===R,c))}l.has(S)&&l.add(f)}return"__typename"in t&&!("__typename"in f)&&(f.__typename=t.__typename),Object.keys(f).length!==Object.keys(t).length&&l.add(f),l.has(f)?f:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,i.G)(s),s})}},78655:(e,t,r)=>{r.d(t,{Nw:()=>u,ST:()=>o,YX:()=>s,bd:()=>c});var n=r(29526),i=r(78864),a=r(96728);function o(e){return"incremental"in e}function s(e){return o(e)||"hasNext"in e&&"data"in e}function u(e){return(0,n.U)(e)&&"payload"in e}function c(e,t){var r=e,n=new a.ZI;return o(t)&&(0,i.E)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,a=i.length-1;a>=0;--a){var o=i[a],s=isNaN(+o)?{}:[];s[o]=t,t=s}r=n.merge(r,t)}),r}},80314:(e,t,r)=>{r.d(t,{XY:()=>p,er:()=>v,iz:()=>h,x3:()=>y,zc:()=>d});var n=r(17867);r(98599);var i=r(40612),a=r(44819),o=r(26518),s=r(22548),u=r(92107),c=r(78864),l={kind:i.b.FIELD,name:{kind:i.b.NAME,value:"__typename"}};function f(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function h(e,t){(0,o.sw)(t);for(var r,s,l,h=f(""),p=f(""),d=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,c.c)(r)){if(r.kind===i.b.OPERATION_DEFINITION)return h(r.name&&r.name.value);if(r.kind===i.b.FRAGMENT_DEFINITION)return p(r.name.value)}return null},v=0,y=t.definitions.length-1;y>=0;--y)t.definitions[y].kind===i.b.OPERATION_DEFINITION&&++v;var m=(r=new Map,s=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&s.set(e.test,e))}),function(e){var t=r.get(e.name.value);return!t&&s.size&&s.forEach(function(r,n){n(e)&&(t=r)}),t}),g=function(e){return(0,c.E)(e)&&e.map(m).some(function(e){return e&&e.remove})},b=new Map,_=!1,S={enter:function(e){if(g(e.directives))return _=!0,null}},O=(0,a.YR)(t,{Field:S,InlineFragment:S,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var a=d(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(g(e.directives))return _=!0,null;var a=d(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){b.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===b.get(JSON.stringify(n))?e:v>0&&e.selectionSet.selections.every(function(e){return e.kind===i.b.FIELD&&"__typename"===e.name.value})?(p(e.name.value).removed=!0,_=!0,null):void 0}},Directive:{leave:function(e){if(m(e))return _=!0,null}}});if(!_)return t;var w=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){w(p(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},k=new Set;O.definitions.forEach(function(e){e.kind===i.b.OPERATION_DEFINITION?w(h(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){k.add(e)}):e.kind!==i.b.FRAGMENT_DEFINITION||0!==v||p(e.name.value).removed||k.add(e.name.value)}),k.forEach(function(e){w(p(e)).fragmentSpreads.forEach(function(e){k.add(e)})});var E={enter:function(e){var t;if(t=e.name.value,!k.has(t)||p(t).removed)return null}};return l=(0,a.YR)(O,{FragmentSpread:E,FragmentDefinition:E,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=w(h(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.__assign)((0,n.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===i.b.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}
1((0,o.Vu)(l)||(0,o.E4)(l),(0,u.JG)((0,o.zK)(l)))?l:null}var p=Object.assign(function(e){return(0,a.YR)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==i.b.OPERATION_DEFINITION){var a=e.selections;if(!(!a||a.some(function(e){return(0,s.dt)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,s.dt)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,n.__assign)((0,n.__assign)({},e),{selections:(0,n.__spreadArray)((0,n.__spreadArray)([],a,!0),[l],!1)})}}}})},{added:function(e){return e===l}});function d(e){return"query"===(0,o.Vn)(e).operation?e:(0,a.YR)(e,{OperationDefinition:{enter:function(e){return(0,n.__assign)((0,n.__assign)({},e),{operation:"query"})}}})}function v(e){return(0,o.sw)(e),h([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function y(e){return(0,o.sw)(e),(0,a.YR)(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,n.__assign)((0,n.__assign)({},e),{directives:(0,n.__spreadArray)((0,n.__spreadArray)([],e.directives||[],!0),[{kind:i.b.DIRECTIVE,name:{kind:i.b.NAME,value:"nonreactive"}}
1],!1)})}})}},80961:(e,t,r)=>{r.d(t,{C:()=>l});var n=r(98599),i=r(56773),a=r(17867),o=r(26518);function s(e,t){return t?t(e):i.c.of()}function u(e){return"function"==typeof e?new l(e):e}function c(e){return e.request.length<=1}var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return i.c.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var a=u(r),o=u(n||new e(s));return Object.assign(new e(c(a)&&c(o)?function(e){return t(e)?a.request(e)||i.c.of():o.request(e)||i.c.of()}:function(e,r){return t(e)?a.request(e,r)||i.c.of():o.request(e,r)||i.c.of()}),{left:a,right:o})},e.execute=function(e,t){var r,s,u,c,l;return e.request((u=t.context,(s={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,i=Object.keys(e);r<i.length;r++){var a=i[r];if(0>t.indexOf(a))throw(0,n.vA)(58,a)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(s.operationName="string"!=typeof s.query?(0,o.n4)(s.query)||void 0:""),c=s,l=(0,a.__assign)({},u),Object.defineProperty(c,"setContext",{enumerable:!1,value:function(e){l="function"==typeof e?(0,a.__assign)((0,a.__assign)({},l),e(l)):(0,a.__assign)((0,a.__assign)({},l),e)}}),Object.defineProperty(c,"getContext",{enumerable:!1,value:function(){return(0,a.__assign)({},l)}}),c))||i.c.of()},e.concat=function(t,r){var n=u(t);if(c(n))return n;var a=u(r);return Object.assign(new e(c(a)?function(e){return n.request(e,function(e){return a.request(e)||i.c.of()})||i.c.of()}:function(e,t){return n.request(e,function(e){return a.request(e,t)||i.c.of()})||i.c.of()}),{left:n,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,n.vA)(48)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},86937:(e,t,r)=>{r.d(t,{y:()=>m});var n,i=r(13541);let a=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return s[e.charCodeAt(0)]}let s=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var u=r(44819);let c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>l(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=h("(",l(e.variableDefinitions,", "),")"),r=l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+h(" = ",r)+h(" ",l(n," "))},SelectionSet:{leave:({selections:e})=>f(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let a=h("",e,": ")+t,o=a+h("(",l(r,", "),")");return o.length>80&&(o=a+h("(\n",p(l(r,"\n")),"\n)")),l([o,l(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+h(" ",l(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>l(["...",h("on ",e),l(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${h("(",l(r,", "),")")} on ${t} ${h("",l(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
1,StringValue:{leave:({value:e,block:t})=>t?(0,i.yo)(e):`"${e.replace(a,o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+l(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+l(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+h("(",l(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>h("",e,"\n")+l(["schema",l(t," "),f(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>h("",e,"\n")+l(["scalar",t,l(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>h("",e,"\n")+l(["type",t,h("implements ",l(r," & ")),l(n," "),f(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>h("",e,"\n")+t+(d(r)?h("(\n",p(l(r,"\n")),"\n)"):h("(",l(r,", "),")"))+": "+n+h(" ",l(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>h("",e,"\n")+l([t+": "+r,h("= ",n),l(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>h("",e,"\n")+l(["interface",t,h("implements ",l(r," & ")),l(n," "),f(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>h("",e,"\n")+l(["union",t,l(r," "),h("= ",l(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>h("",e,"\n")+l(["enum",t,l(r," "),f(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>h("",e,"\n")+l([t,l(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>h("",e,"\n")+l(["input",t,l(r," "),f(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>h("",e,"\n")+"directive @"+t+(d(r)?h("(\n",p(l(r,"\n")),"\n)"):h("(",l(r,", "),")"))+(n?" repeatable":"")+" on "+l(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>l(["extend schema",l(e," "),f(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>l(["extend scalar",e,l(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend type",e,h("implements ",l(t," & ")),l(r," "),f(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend interface",e,h("implements ",l(t," & ")),l(r," "),f(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>l(["extend union",e,l(t," "),h("= ",l(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>l(["extend enum",e,l(t," "),f(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>l(["extend input",e,l(t," "),f(r)]," ")}};function l(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function f(e){return h("{\n",p(l(e,"\n")),"\n}")}function h(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function p(e){return h("  ",e.replace(/\n/g,"\n  "))}function d(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var v=r(82013),y=r(36564),m=Object.assign(function(e){var t=n.get(e);return t||(t=(0,u.YR)(e,c),n.set(e,t)),t},{reset:function(){n=new v.A(y.v.print||2e3)}});m.reset()},88419:(e,t,r)=>{r.d(t,{z:()=>n});var n=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}},93216:(e,t,r)=>{r.d(t,{P:()=>b});var n=r(17867),i=r(80961),a=r(98599),o=r(78404),s=r(56773),u=r(27228),c=r(88419),l=r(56860),f=r(70448),h=r(31220);function p(e){return new s.c(function(t){t.error(e)})}var d=r(44819),v=r(80314),y=r(26518),m=(0,a.no)(function(){return fetch}),g=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,g=e.fetch,b=e.print,_=void 0===b?f.i1:b,S=e.includeExtensions,O=e.preserveHeaderCase,w=e.useGETForQueries,k=e.includeUnusedVariables,E=void 0!==k&&k,R=(0,n.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]),x={http:{includeExtensions:S,preserveHeaderCase:O},options:R.fetchOptions,credentials:R.credentials,headers:R.headers};return new i.C(function(e){var t,i,b,S,O,k,R=(0,c.z)(e,r),T=e.getContext(),I={};if(T.clientAwareness){var F=T.clientAwareness,D=F.name,C=F.version;D&&(I["apollographql-client-name"]=D),C&&(I["apollographql-client-version"]=C)}var q=(0,n.__assign)((0,n.__assign)({},I),T.headers),M={http:T.http,options:T.fetchOptions,credentials:T.credentials,headers:q};if((0,o.d8)(["client"],e.query)){var Q=(0,v.er)(e.query);if(!Q)return p(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=Q}var N=(0,f.HY)(e,_,f.R4,x,M),A=N.options,j=N.body;j.variables&&!E&&(t=j.variables,i=e.query,b=(0,n.__assign)({},t),S=new Set(Object.keys(t)),(0,d.YR)(i,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&S.delete(e.name.value)}}
1),S.forEach(function(e){delete b[e]}),j.variables=b),A.signal||"undefined"==typeof AbortController||(A.signal=(k=new AbortController).signal);var P="OperationDefinition"===(O=(0,y.Vn)(e.query)).kind&&"subscription"===O.operation,L=(0,o.d8)(["defer"],e.query);if(w&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(A.method="GET"),L||P){A.headers=A.headers||{};var V="multipart/mixed;";P?V+="boundary=graphql;subscriptionSpec=1.0,application/json":L&&(V+="deferSpec=20220824,application/json"),A.headers.accept=V}if("GET"===A.method){var z=(0,h.E)(R,j),W=z.newURI,U=z.parseError;if(U)return p(U);R=W}else try{A.body=(0,u.Y)(j,"Payload")}catch(e){return p(e)}return new s.c(function(t){var r=g||(0,a.no)(function(){return fetch})||m,n=t.next.bind(t);return r(R,A).then(function(t){e.setContext({response:t});var r,i=null==(r=t.headers)?void 0:r.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?(0,l.tD)(t,n):(0,l.OQ)(e)(t).then(n)}).then(function(){k=void 0,t.complete()}).catch(function(e){k=void 0,(0,l.H4)(e,t)}),function(){k&&k.abort()}})})},b=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,g(t).request)||this;return r.options=t,r}return(0,n.__extends)(t,e),t}(i.C)},96728:(e,t,r)=>{r.d(t,{D9:()=>o,IM:()=>s,ZI:()=>c});var n=r(17867),i=r(29526),a=Object.prototype.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new c,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var u=function(e,t,r){return this.merge(e[r],t[r])},c=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=i.U,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return(0,i.U)(t)&&(0,i.U)(e)?(Object.keys(t).forEach(function(i){if(a.call(e,i)){var s=e[i];if(t[i]!==s){var u=r.reconciler.apply(r,(0,n.__spreadArray)([e,t,i],o,!1));u!==s&&((e=r.shallowCopyForMerge(e))[i]=u)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,n.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},96920:(e,t,r)=>{r.d(t,{z:()=>l});var n=r(40612),i=r(69057),a=r(98599),o=r(29371),s=r(73973),u=r(92107),c=r(26518);function l(e,t,r,l){if(!r.fragmentMatches)return e;var f=t.definitions.filter(function(e){return e.kind===n.b.FRAGMENT_DEFINITION});void 0===l&&((0,a.V1)(1===f.length,61,f.length),l=f[0].name.value);var h=f.find(function(e){return e.name.value===l});return((0,a.V1)(!!h,62,l),null==e||(0,o.A)(e,{}))?e:(0,s.S)(e,h.selectionSet,{operationType:"fragment",operationName:h.name.value,fragmentMap:(0,u.JG)((0,c.zK)(t)),cache:r,mutableTargets:new i.jq,knownChanged:new i.xm})}}}]);

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.