PageSourceSearch

https://www.furniture.com/_next/static/chunks/2bcddz08t-xo3.js?dpl…9a5e49f079304d85395eab8c02db84b-36620782462

js furniture.com collected 2026-10-02 03:24:06 UTC 116,173 bytes, 4 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0eebe-21d6-76b2-a87a-8971069fd028")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,498911,70386,663983,402661,301919,e=>{"use strict";var t=e.i(824627),r=e.i(878823),n=e.i(610499),i=e.i(187933),a=e.i(778511),o=e.i(170402),s=e.i(22387),c=e.i(214054),u=e.i(432988),l=e.i(462414);e.i(17279);var f=e.i(428849),h=e.i(227827),p=e.i(507198),d=e.i(921212),v=d.canUseWeakMap?WeakMap:Map,y=d.canUseWeakSet?WeakSet:Set,m=new p.Slot,g=!1;function _(){g||(g=!0,!1!==globalThis.__DEV__&&f.invariant.warn(64))}e.s(["MapImpl",0,v,"SetImpl",0,y,"disableWarningsSlot",0,m,"warnOnImproperCacheImplementation",0,_],70386);var b=e.i(240957),O=e.i(312429),w=e.i(106833),S=e.i(177162);function k(e,t,r){return m.withValue(!0,function(){var n=function e(t,r,n,i,a){var o,s=n.knownChanged,c=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,n.mutableTargets);if(Array.isArray(t)){for(var u=0,l=Array.from(t.entries());u<l.length;u++){var p=l[u],d=p[0],v=p[1];if(null===v){c[d]=null;continue}var y=e(v,r,n,i,!1!==globalThis.__DEV__?"".concat(a||"","[").concat(d,"]"):void 0);s.has(y)&&s.add(c),c[d]=y}return s.has(c)?c:t}for(var g=0,_=r.selections;g<_.length;g++){var b=_[g],w=void 0;if(i&&s.add(c),b.kind===h.Kind.FIELD){var k=(0,S.resultKeyNameFromField)(b),E=b.selectionSet;if(void 0===(w=c[k]||t[k]))continue;if(E&&null!==w){var y=e(t[k],E,n,i,!1!==globalThis.__DEV__?"".concat(a||"",".").concat(k):void 0);s.has(y)&&(w=y)}!1===globalThis.__DEV__&&(c[k]=w),!1!==globalThis.__DEV__&&(!i||"__typename"===k||(null==(o=Object.getOwnPropertyDescriptor(c,k))?void 0:o.value)?(delete c[k],c[k]=w):Object.defineProperty(c,k,function(e,t,r,n,i){var a=function(){return m.getValue()||(!1!==globalThis.__DEV__&&f.invariant.warn(60,n?"".concat(i," '").concat(n,"'"):"anonymous ".concat(i),"".concat(r,".").concat(e).replace(/^\./,"")),a=function(){return t}),t};return{get:function(){return a()},set:function(e){a=function(){return e}},enumerable:!0,configurable:!0}}(k,w,a||"",n.operationName,n.operationType)))}if(b.kind===h.Kind.INLINE_FRAGMENT&&(!b.typeCondition||n.cache.fragmentMatches(b,t.__typename))&&(w=e(t,b.selectionSet,n,i,a)),b.kind===h.Kind.FRAGMENT_SPREAD){var D=b.name.value,R=n.fragmentMap[D]||(n.fragmentMap[D]=n.cache.lookupFragment(D));(0,f.invariant)(R,59,D);var T=(0,O.getFragmentMaskMode)(b);"mask"!==T&&(w=e(t,R.selectionSet,n,"migrate"===T,a))}s.has(w)&&s.add(c)}return"__typename"in t&&!("__typename"in c)&&(c.__typename=t.__typename),Object.keys(c).length!==Object.keys(t).length&&s.add(c),s.has(c)?c:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,w.maybeDeepFreeze)(n),n})}function E(e,t,r,n){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&_(),e;var i=t.definitions.filter(function(e){return e.kind===h.Kind.FRAGMENT_DEFINITION});void 0===n&&((0,f.invariant)(1===i.length,61,i.length),n=i[0].name.value);var s=i.find(function(e){return e.name.value===n});return((0,f.invariant)(!!s,62,n),null==e||(0,b.default)(e,{}))?e:k(e,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:(0,o.createFragmentMap)((0,a.getFragmentDefinitions)(t)),cache:r,mutableTargets:new v,knownChanged:new y})}e.s(["maskDefinition",0,k],663983),e.s(["maskFragment",0,E],402661);var D=e.i(924819),R=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,r.wrap)(o.getFragmentQueryDocument,{max:i.cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:c.WeakCache})}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,r){var n=this;return void 0===r&&(r=!!e.optimistic),!1!==globalThis.__DEV__&&(0,D.warnRemovedOption)(e,"canonizeResults","cache.readQuery"),(0,D.muteDeprecations)("canonizeResults",function(){return n.read((0,t.__assign)((0,t.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:r}))})},e.prototype.watchFragment=function(e){var r,i=this,o=e.fragment,c=e.fragmentName,u=e.from,h=e.optimistic,p=(0,t.__rest)(e,["fragment","fragmentName","from","optimistic"]),d=this.getFragmentDoc(o,c),v=void 0===u||"string"==typeof u?u:this.identify(u),y=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var m=c||(0,a.getFragmentDefinition)(o).name.value;v||!1===globalThis.__DEV__||f.invariant.warn(1,m)}var g=(0,t.__assign)((0,t.__assign)({},p),{returnPartialData:!0,id:v,query:d,optimistic:void 0===h||h});return new n.Observable(function(n){return i.watch((0,t.__assign)((0,t.__assign)({}
1,g),{immediate:!0,callback:function(a){var u=y?E(a.result,o,i,c):a.result;if(!(r&&(0,l.equalByQuery)(d,{data:r.result},{data:u},e.variables))){var f={data:u,complete:!!a.complete};a.missing&&(f.missing=(0,s.mergeDeepArray)(a.missing.map(function(e){return e.missing}))),r=(0,t.__assign)((0,t.__assign)({},a),{result:u}),n.next(f)}}}))})},e.prototype.readFragment=function(e,r){var n=this;return void 0===r&&(r=!!e.optimistic),!1!==globalThis.__DEV__&&(0,D.warnRemovedOption)(e,"canonizeResults","cache.readFragment"),(0,D.muteDeprecations)("canonizeResults",function(){return n.read((0,t.__assign)((0,t.__assign)({},e),{query:n.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:r}))})},e.prototype.writeQuery=function(e){var r=e.id,n=e.data,i=(0,t.__rest)(e,["id","data"]);return this.write(Object.assign(i,{dataId:r||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var r=e.id,n=e.data,i=e.fragment,a=e.fragmentName,o=(0,t.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(i,a),dataId:r,result:n}))},e.prototype.updateQuery=function(e,r){return!1!==globalThis.__DEV__&&(0,D.warnRemovedOption)(e,"canonizeResults","cache.updateQuery"),this.batch({update:function(n){var i=(0,D.muteDeprecations)("canonizeResults",function(){return n.readQuery(e)}),a=r(i);return null==a?i:(n.writeQuery((0,t.__assign)((0,t.__assign)({},e),{data:a})),a)}})},e.prototype.updateFragment=function(e,r){return!1!==globalThis.__DEV__&&(0,D.warnRemovedOption)(e,"canonizeResults","cache.updateFragment"),this.batch({update:function(n){var i=(0,D.muteDeprecations)("canonizeResults",function(){return n.readFragment(e)}),a=r(i);return null==a?i:(n.writeFragment((0,t.__assign)((0,t.__assign)({},e),{data:a})),a)}})},e}();!1!==globalThis.__DEV__&&(R.prototype.getMemoryInternals=u.getApolloCacheMemoryInternals),e.s(["ApolloCache",0,R],498911);var T=function(e){function r(t,n,i,a){var o,s=e.call(this,t)||this;if(s.message=t,s.path=n,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)(o={})[s.path[c]]=s.missing,s.missing=o}else s.missing=s.path;return s.__proto__=r.prototype,s}return(0,t.__extends)(r,e),r}(Error);e.s(["MissingFieldError",0,T],301919)},446322,978150,884550,e=>{"use strict";var t,r,n=e.i(824627);e.i(17279);var i=e.i(428849),a=e.i(878823),o=e.i(240957),s=e.i(498911),c=e.i(301919),u=e.i(879795),l=e.i(177162),f=e.i(867558),h=e.i(43455),p=e.i(842683),d=e.i(187933),v=e.i(227827),y=e.i(312429),m=e.i(778511),g=e.i(170402),_=e.i(106833),b=e.i(22387),O=e.i(981075),w=e.i(921212),S=e.i(777553),k=e.i(290300),E=e.i(336419),D=e.i(109045),R=Object.prototype.hasOwnProperty;function T(e){return null==e}function F(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=T(n)?T(i)?void 0:{_id:i}:{id:n}),T(n)&&!T(i)&&(n=i),!T(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var x={dataIdFromObject:F,addTypename:!0,resultCaching:!0,canonizeResults:!1};function I(e){var t=e.canonizeResults;return void 0===t?x.canonizeResults:t}var N=/^[_a-z][_0-9a-z]*/i;function C(e){var t=e.match(N);return t?t[0]:e}function M(e){return(0,O.isNonNullObject)(e)&&!(0,l.isReference)(e)&&!(0,D.isArray)(e)}function A(e,t){var r=(0,g.createFragmentMap)((0,m.getFragmentDefinitions)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var q=Object.create(null),j=function(){return q},Q=Object.create(null),P=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,_.maybeDeepFreeze)((0,l.isReference)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,l.isReference)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,l.makeReference)(e);if((0,l.isReference)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,l.makeReference)(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),R.call(this.data,e)){var r=this.data[e];if(r&&R.call(r,t))return r[t]}return"__typename"===t&&R.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof z?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),R.call(this.data,e))?this.data[e]:this instanceof z?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,l.isReference)(e)&&(e=e.__ref),(0,l.isReference)(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.invariant)("string"==typeof r,2);var s=new b.DeepMerger(B).merge(a,o);if(this.data[r]=s,s!==a&&(delete this.refs[r],this.group.caching)){var c=Object.create(null);a||(c.__exists=1),Object.keys(o).forEach(function(e){if(!a||a[e]!==s[e]){c[e]=1;var t=C(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(c[t]=1),void 0!==s[e]||n instanceof z||delete s[e]}}),c.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete c.__typename,Object.keys(c).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,a=this.lookup(e);if(a){var o=Object.create(null),s=!1,c=!0,u={DELETE:q,INVALIDATE:Q,isReference:l.isReference,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,l.makeReference)(e)}:t,{store:r})}};if(Object.keys(a).forEach(function(f){var h=C(f),p=a[f];if(void 0!==p){var d="function"==typeof t?t:t[f]||t[h];if(d){var v=d===j?q:d((0,_.maybeDeepFreeze)(p),(0,n.__assign)((0,n.__assign)({},u),{fieldName:h,storeFieldName:f,storage:r.getStorage(e,f)}));if(v===Q)r.group.dirty(e,f);else if(v===q&&(v=void 0),v!==p&&(o[f]=v,s=!0,p=v,!1!==globalThis.__DEV__)){var y=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&i.invariant.warn(3,e),!0};if((0,l.isReference)(v))y(v);else if(Array.isArray(v))for(var m=!1,g=void 0,b=0,O=v;b<O.length;b++){var w=O[b];if((0,l.isReference)(w)){if(m=!0,y(w))break}else"object"==typeof w&&w&&r.policies.identify(w)[0]&&(g=w);if(m&&void 0!==g){!1!==globalThis.__DEV__&&i.invariant.warn(4,g);break}}}}void 0!==p&&(c=!1)}}),s)return this.merge(e,o),c&&(this instanceof z?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]=j,n):j)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(R.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof z&&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){R.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&&R.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 z?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){R.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 z;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!R.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,l.isReference)(e)&&(t[e.__ref]=!0),(0,O.isNonNullObject)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,O.isNonNullObject)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),V=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,k.dep)():null,this.keyMaker=new E.Trie(w.canUseWeakMap)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=C(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 L(e,t){U(e)&&e.group.depend(t,"__exists")}r=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,a=e.call(this,r,new V(void 0===n||n))||this;return a.stump=new W(a),a.storageTrie=new E.Trie(w.canUseWeakMap),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}(t=P||(P={})),t.Root=r;var z=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.equal)(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 R.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}(P),W=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new V(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}(z);function B(e,t,r){var n=e[r],i=t[r];return(0,o.equal)(n,i)?n:i}function U(e){return!!(e instanceof P&&e.group.caching)}var K=function(){function e(){this.known=new(w.canUseWeakSet?WeakSet:Set),this.pool=new E.Trie(w.canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,O.isNonNullObject)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,O.isNonNullObject)(e)){var t=(0,O.isNonNullObject)(e)?(0,D.isArray)(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,O.isNonNullObject)(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),!1!==globalThis.__DEV__&&Object.freeze(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 c=o.length;s.sorted.forEach(function(r){o.push(t.admit(e[r]))});var i=this.pool.lookupArray(o);if(!i.object){var u=i.object=Object.create(a);this.known.add(u),s.sorted.forEach(function(e,t){u[e]=o[c+t]}),!1!==globalThis.__DEV__&&Object.freeze(u)}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 H(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var G=function(){function e(e){var t=this;this.knownResults=new(w.canUseWeakMap?WeakMap:Map),this.config=(0,S.compact)(e,{addTypename:!1!==e.addTypename,canonizeResults:I(e)}),this.canon=e.canon||new K,this.executeSelectionSet=(0,a.wrap)(function(e){var r,i=e.context.canonizeResults,a=H(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:(L(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||d.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:H,makeCacheKey:function(e,t,r,n){if(U(r.store))return r.store.makeCacheKey(e,(0,l.isReference)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,a.wrap)(function(e){return L(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||d.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(U(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new K},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,f=void 0===u?this.config.canonizeResults:u,p=this.config.cache.policies;o=(0,n.__assign)((0,n.__assign)({},(0,m.getDefaultValues)((0,m.getQueryDefinition)(i))),o);var d=(0,l.makeReference)(void 0===a?"ROOT_QUERY":a),v=this.executeSelectionSet({selectionSet:(0,m.getMainDefinition)(i).selectionSet,objectOrReference:d,enclosingRef:d,context:(0,n.__assign)({store:r,query:i,policies:p,variables:o,varString:(0,h.canonicalStringify)(o),canonizeResults:f},A(i,this.config.fragments))});if(v.missing&&(t=[new c.MissingFieldError(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(v.missing),v.missing,i,o)],!(void 0===s||s)))throw t[0];return{result:v.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(U(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,s=e.context;if((0,l.isReference)(a)&&!s.policies.rootTypenamesById[a.__ref]&&!s.store.has(a.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(a.__ref," object")};var c=s.variables,f=s.policies,h=s.store.getFieldValue(a,"__typename"),p=[],d=new b.DeepMerger;function m(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 O=new Set(n.selections);O.forEach(function(e){var n,_;if((0,y.shouldInclude)(e,c))if((0,l.isField)(e)){var b=f.readField({fieldName:e.n
1ame.value,field:e,variables:s.variables,from:a},s),w=(0,l.resultKeyNameFromField)(e);void 0===b?u.addTypenameToDocument.added(e)||(t=d.merge(t,((n={})[w]="Can't find field '".concat(e.name.value,"' on ").concat((0,l.isReference)(a)?a.__ref+" object":"object "+JSON.stringify(a,null,2)),n))):(0,D.isArray)(b)?b.length>0&&(b=m(r.executeSubSelectedArray({field:e,array:b,enclosingRef:o,context:s}),w)):e.selectionSet?null!=b&&(b=m(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:b,enclosingRef:(0,l.isReference)(b)?b:o,context:s}),w)):s.canonizeResults&&(b=r.canon.pass(b)),void 0!==b&&p.push(((_={})[w]=b,_))}else{var S=(0,g.getFragmentFromSelection)(e,s.lookupFragment);if(!S&&e.kind===v.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(10,e.name.value);S&&f.fragmentMatches(S,h)&&S.selectionSet.selections.forEach(O.add,O)}});var w={result:(0,b.mergeDeepArray)(p),missing:t},S=s.canonizeResults?this.canon.admit(w):(0,_.maybeDeepFreeze)(w);return S.result&&this.knownResults.set(S.result,n),S},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,a=e.array,o=e.enclosingRef,s=e.context,c=new b.DeepMerger;function u(e,r){var n;return e.missing&&(t=c.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(a=a.filter(s.store.canRead)),a=a.map(function(e,t){return null===e?null:(0,D.isArray)(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:s}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,l.isReference)(e)?e:o,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,O.isNonNullObject)(r)&&((0,i.invariant)(!(0,l.isReference)(r),11,(0,l.isReference)(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(a):a,missing:t}},e}(),J=e.i(927623),Y=e.i(756),$=new(e.i(507198)).Slot,X=new WeakMap;function Z(e){var t=X.get(e);return t||X.set(e,t={vars:new Set,dep:(0,k.dep)()}),t}function ee(e){Z(e).vars.forEach(function(t){return t.forgetCache(e)})}function et(e){Z(e).vars.forEach(function(t){return t.attachCache(e)})}function er(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){var t;Z(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var o=Array.from(r);r.clear(),o.forEach(function(t){return t(e)})}}else{var s=$.getValue();s&&(i(s),Z(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),Z(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}e.s(["cacheSlot",0,$,"forgetCache",0,ee,"makeVar",0,er,"recallCache",0,et],978150);var en=Object.create(null);function ei(e){var t=JSON.stringify(e);return en[t]||(en[t]=Object.create(null))}function ea(e){var t=ei(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},a=r.keyObject=es(e,function(e){var a=eu(r.storeObject,e,n);return void 0===a&&t!==r.storeObject&&R.call(t,e[0])&&(a=eu(t,e,ec)),(0,i.invariant)(void 0!==a,5,e.join("."),t),a});return"".concat(r.typename,":").concat(JSON.stringify(a))})}function eo(e){var t=ei(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,a=r.fieldName,o=JSON.stringify(es(e,function(e){var r=e[0],a=r.charAt(0);if("@"===a){if(n&&(0,D.isNonEmptyArray)(n.directives)){var o=r.slice(1),s=n.directives.find(function(e){return e.name.value===o}),c=s&&(0,l.argumentsObjectFromField)(s,i);return c&&eu(c,e.slice(1))}return}if("$"===a){var u=r.slice(1);if(i&&R.call(i,u)){var f=e.slice(0);return f[0]=u,eu(i,f)}return}if(t)return eu(t,e)}));return(t||"{}"!==o)&&(a+=":"+o),a})}function es(e,t){var r=new b.DeepMerger;return(function e(t){var r=ei(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,a){(0,D.isArray)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,D.isArray)(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 ec(e,t){return e[t]}function eu(e,t,r){return r=r||ec,function e(t){return(0,O.isNonNullObject)(t)?(0,D.isArray)(t)?t.map(e):es(Object.keys(t).sort(),function(e){return eu(t,e)}):t}(t.reduce(function e(t,n){return(0,D.isArray)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}var el=e.i(70386);
1function ef(e){return void 0!==e.args?e.args:e.field?(0,l.argumentsObjectFromField)(e.field,e.variables):null}var eh=function(){},ep=function(e,t){return t.fieldName},ed=function(e,t,r){return(0,r.mergeObjects)(e,t)},ev=function(e,t){return t},ey=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:F},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,c=(0,n.__assign)((0,n.__assign)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=eg(arguments,s);return a.readField(e,{store:a.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),l=u&&u.keyFn||this.config.dataIdFromObject;return el.disableWarningsSlot.withValue(!0,function(){for(;l;){var t=l((0,n.__assign)((0,n.__assign)({},e),s),c);if((0,D.isArray)(t))l=ea(t);else{i=t;break}}}),i=i?String(i):void 0,c.keyObject?[i,c.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,c=(0,n.__rest)(i,["queryType","mutationType","subscriptionType"]);a&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),R.call(t.toBeAdded,r)?t.toBeAdded[r].push(c):t.toBeAdded[r]=[c]})},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?ed:!1===t?ev:e.merge}o(n,t.merge),n.keyFn=!1===i?eh:(0,D.isArray)(i)?ea(i):"function"==typeof i?i:n.keyFn,a&&Object.keys(a).forEach(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,c=i.read,u=i.merge;n.keyFn=!1===s?ep:(0,D.isArray)(s)?eo(s):"function"==typeof s?s:n.keyFn,"function"==typeof c&&(n.read=c),o(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||ep)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.invariant)(!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(!R.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 a=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),c=[s],u=function(e){var t=a.getSupertypeSet(e,!1);t&&t.size&&0>c.indexOf(t)&&c.push(t)},f=!!(r&&this.fuzzySubtypes.size),h=!1,p=0;p<c.length;++p){var d=c[p];
1if(d.has(o))return s.has(o)||(h&&!1!==globalThis.__DEV__&&i.invariant.warn(7,t,o),s.add(o)),!0;d.forEach(u),f&&p===c.length-1&&function e(t,r,n){return!!(0,O.isNonNullObject)(r)&&((0,D.isArray)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,l.isField)(t)&&(0,y.shouldInclude)(t,n)){var i=(0,l.resultKeyNameFromField)(t);return R.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(f=!1,h=!0,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=ef(e);a;){var c=a(s,o);if((0,D.isArray)(c))a=eo(c);else{t=c||n;break}}return(void 0===t&&(t=e.field?(0,l.storeKeyNameFromField)(e.field,e.variables):(0,l.getStoreKeyName)(n,ef(e))),!1===t)?n:n===C(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=C(i),o=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,a),c=s&&s.read;if(c){var u=em(this,r,e,t,t.store.getStorage((0,l.isReference)(r)?r.__ref:r,i));return $.withValue(this.cache,c,[o,u])}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===ed?e_(n.store)(e,t):s===ev?t:(n.overwrite&&(e=void 0),s(e,t,em(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:n.variables},n,i||Object.create(null))))},e}();function em(e,t,r,n,i){var a=e.getStoreFieldName(r),o=C(a),s=r.variables||n.variables,c=n.store,u=c.toReference,f=c.canRead;return{args:ef(r),field:r.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:l.isReference,toReference:u,storage:i,cache:e.cache,canRead:f,readField:function(){return e.readField(eg(arguments,t,s),n)},mergeObjects:e_(n.store)}}function eg(e,t,r){var a,o=e[0],s=e[1],c=e.length;return"string"==typeof o?a={fieldName:o,from:c>1?s:t}:(a=(0,n.__assign)({},o),R.call(a,"from")||(a.from=t)),!1!==globalThis.__DEV__&&void 0===a.from&&!1!==globalThis.__DEV__&&i.invariant.warn(8,(0,Y.stringifyForDisplay)(Array.from(e))),void 0===a.variables&&(a.variables=r),a}function e_(e){return function(t,r){if((0,D.isArray)(t)||(0,D.isArray)(r))throw(0,i.newInvariantError)(9);if((0,O.isNonNullObject)(t)&&(0,O.isNonNullObject)(r)){var a=e.getFieldValue(t,"__typename"),o=e.getFieldValue(r,"__typename");if(a&&o&&a!==o)return r;if((0,l.isReference)(t)&&M(r))return e.merge(t.__ref,r),t;if(M(t)&&(0,l.isReference)(r))return e.merge(t,r.__ref),r;if(M(t)&&M(r))return(0,n.__assign)((0,n.__assign)({},t),r)}return r}}function eb(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 eO=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,s=t.result,c=t.dataId,u=t.variables,f=t.overwrite,p=(0,m.getOperationDefinition)(a),d=new b.DeepMerger;u=(0,n.__assign)((0,n.__assign)({},(0,m.getDefaultValues)(p)),u);var v=(0,n.__assign)((0,n.__assign)({store:e,written:Object.create(null),merge:function(e,t){return d.merge(e,t)},variables:u,varString:(0,h.canonicalStringify)(u)},A(a,this.fragments)),{overwrite:!!f,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:s||Object.create(null),dataId:c,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:v});if(!(0,l.isReference)(y))throw(0,i.newInvariantError)(12,s);
1return v.incomingById.forEach(function(t,a){var s=t.storeObject,c=t.mergeTree,u=t.fieldNodeSet,f=(0,l.makeReference)(a);if(c&&c.map.size){var h=r.applyMerges(c,f,s,v);if((0,l.isReference)(h))return;s=h}if(!1!==globalThis.__DEV__&&!v.overwrite){var p=Object.create(null);u.forEach(function(e){e.selectionSet&&(p[e.name.value]=!0)});var d=function(e){var t=c&&c.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(s).forEach(function(e){!0!==p[C(e)]||d(e)||function(e,t,r,a){var s=function(e){var t=a.getFieldValue(e,r);return"object"==typeof t&&t},c=s(e);if(c){var u=s(t);if(!(!u||(0,l.isReference)(c)||(0,o.equal)(c,u)||Object.keys(c).every(function(e){return void 0!==a.getFieldValue(u,e)}))){var f=a.getFieldValue(e,"__typename")||a.getFieldValue(t,"__typename"),h=C(r),p="".concat(f,".").concat(h);if(!eD.has(p)){eD.add(p);var d=[];(0,D.isArray)(c)||(0,D.isArray)(u)||[c,u].forEach(function(e){var t=a.getFieldValue(e,"__typename");"string"!=typeof t||d.includes(t)||d.push(t)}),!1!==globalThis.__DEV__&&i.invariant.warn(15,h,f,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",p,(0,n.__assign)({},c),(0,n.__assign)({},u))}}}}(f,s,e,v.store)})}e.merge(a,s)}),e.retain(y.__ref),y},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,a=e.result,o=e.selectionSet,s=e.context,c=e.mergeTree,f=this.cache.policies,h=Object.create(null),p=r&&f.rootTypenamesById[r]||(0,l.getTypenameFromResult)(a,o,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof p&&(h.__typename=p);var d=function(){var e=eg(arguments,h,s.variables);if((0,l.isReference)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=f.readField((0,n.__assign)((0,n.__assign)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return f.readField(e,s)},v=new Set;this.flattenFields(o,a,s,p).forEach(function(e,r){var n,o=a[(0,l.resultKeyNameFromField)(r)];if(v.add(r),void 0!==o){var s=f.getStoreFieldName({typename:p,fieldName:r.name.value,field:r,variables:e.variables}),y=eS(c,s),m=t.processFieldValue(o,r,r.selectionSet?eb(e,!1,!1):e,y),g=void 0;r.selectionSet&&((0,l.isReference)(m)||M(m))&&(g=d("__typename",m));var _=f.getMergeFunction(p,r.name.value,g);_?y.info={field:r,typename:p,merge:_}:eE(c,s),h=e.merge(h,((n={})[s]=m,n))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||u.addTypenameToDocument.added(r)||f.getReadFunction(p,r.name.value)||!1===globalThis.__DEV__||i.invariant.error(13,(0,l.resultKeyNameFromField)(r),a)});try{var y=f.identify(a,{typename:p,selectionSet:o,fragmentMap:s.fragmentMap,storeObject:h,readField:d}),m=y[0],g=y[1];r=r||m,g&&(h=s.merge(h,g))}catch(e){if(!r)throw e}if("string"==typeof r){var _=(0,l.makeReference)(r),b=s.written[r]||(s.written[r]=[]);if(b.indexOf(o)>=0||(b.push(o),this.reader&&this.reader.isFresh(a,_,o,s)))return _;var O=s.incomingById.get(r);return O?(O.storeObject=s.merge(O.storeObject,h),O.mergeTree=function e(t,r){if(t===r||!r||ek(r))return t;if(!t||ek(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}(O.mergeTree,c),v.forEach(function(e){return O.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:h,mergeTree:ek(c)?void 0:c,fieldNodeSet:v}),_}return h},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,D.isArray)(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,r,eS(n,a));return eE(n,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,J.cloneDeep)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,l.getTypenameFromResult)(t,e,r.fragmentMap));var a=new Map,o=this.cache.policies,s=new E.Trie(!1);return!function e(c,u){var f=s.lookup(c,u.clientOnly,u.deferred);f.visited||(f.visited=!0,c.selections.forEach(function(s){if((0,y.shouldInclude)(s,r.variables)){var c=u.clientOnly,f=u.deferred;if(!(c&&f)&&(0,D.isNonEmptyArray)(s.directives)&&s.directives.forEac
1h(function(e){var t=e.name.value;if("client"===t&&(c=!0),"defer"===t){var n=(0,l.argumentsObjectFromField)(e,r.variables);n&&!1===n.if||(f=!0)}}),(0,l.isField)(s)){var h=a.get(s);h&&(c=c&&h.clientOnly,f=f&&h.deferred),a.set(s,eb(r,c,f))}else{var p=(0,g.getFragmentFromSelection)(s,r.lookupFragment);if(!p&&s.kind===v.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(14,s.name.value);p&&o.fragmentMatches(p,n,t,r.variables)&&e(p.selectionSet,eb(r,c,f))}}}))}(e,r),a},e.prototype.applyMerges=function(e,t,r,a,o){var s=this;if(e.map.size&&!(0,l.isReference)(r)){var c,u,f=!(0,D.isArray)(r)&&((0,l.isReference)(t)||M(t))?t:void 0,h=r;f&&!o&&(o=[(0,l.isReference)(f)?f.__ref:f]);var p=function(e,t){return(0,D.isArray)(e)?"number"==typeof t?e[t]:void 0:a.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=p(f,t),n=p(h,t);if(void 0!==n){o&&o.push(t);var c=s.applyMerges(e,r,n,a,o);c!==n&&(u=u||new Map).set(t,c),o&&(0,i.invariant)(o.pop()===t)}}),u&&(r=(0,D.isArray)(h)?h.slice(0):(0,n.__assign)({},h),u.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,a,o&&(c=a.store).getStorage.apply(c,o)):r},e}(),ew=[];function eS(e,t){var r=e.map;return r.has(t)||r.set(t,ew.pop()||{map:new Map}),r.get(t)}function ek(e){return!e||!(e.info||e.map.size)}function eE(e,t){var r=e.map,n=r.get(t);n&&ek(n)&&(ew.push(n),r.delete(t))}var eD=new Set,eR=e.i(432988),eT=e.i(924819),eF=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new f.DocumentTransform(u.addTypenameToDocument),n.assumeImmutableResults=!0,n.makeVar=er,n.txCount=0,!1!==globalThis.__DEV__&&((0,eT.warnRemovedOption)(t,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),(0,eT.warnRemovedOption)(t,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),r=t,n.config=(0,S.compact)(x,r),n.addTypename=!!n.config.addTypename,n.policies=new ey({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 P.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 eO(this,this.storeReader=new G({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:I(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,a.wrap)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||d.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(U(r)){var n=e.optimistic,i=e.id,a=e.variables;return r.makeCacheKey(e.query,e.callback,(0,h.canonicalStringify)({optimistic:n,id:i,variables:a}))}}}),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){!1!==globalThis.__DEV__&&(0,eT.warnRemovedOption)(e,"canonizeResults","cache.read");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 c.MissingFieldError)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(R.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!1!==globalThis.__DEV__&&(0,eT.warnRemovedOption)(e,"canonizeResults","cache.diff"),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||et(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&ee(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){!1!==globalThis.__DEV__&&(0,eT.warnRemovedOption)(e||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),h.
1canonicalStringify.reset(),p.print.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,l.isReference)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&i.invariant.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(R.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(),h.canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),ee(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,c=e.onWatchUpdated,u=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 c&&!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,u):!1===o?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&l.size?(this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e,t){var r=c.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){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,eT.muteDeprecations)("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)))&&(n&&(0,o.equal)(n.result,i.result)||e.callback(e.lastDiff=i,n))},t}(s.ApolloCache);!1!==globalThis.__DEV__&&(eF.prototype.getMemoryInternals=eR.getInMemoryCacheMemoryInternals),e.s(["InMemoryCache",0,eF],446322);var ex=e.i(344646).ApolloLink.execute;e.s(["execute",0,ex],884550)},415758,650299,e=>{"use strict";var t=e.i(824627);e.i(17279);var r=e.i(428849),n=e.i(344646),i=e.i(884550),a=e.i(305653),o=e.i(366934),s=e.i(240957),c=e.i(879795),u=e.i(312429),l=e.i(892050),f=e.i(170402),h=e.i(43455),p=e.i(778511),d=e.i(109045);function v(e){var t=y(e);return(0,d.isNonEmptyArray)(t)}function y(e){var t=(0,d.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];return(0,l.isExecutionPatchIncrementalResult)(e)&&(0,d.isNonEmptyArray)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var m=e.i(610499);function g(e,t,r){return new m.Observable(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 _=e.i(899181),b=e.i(161228);function O(e){return e&&"function"==typeof e.then}var w=function(e){function r(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,_.iterateObserversSafely)(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,_.iterateObserversSafely)(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?O(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,_.iterateObserversSafely)(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 m.Observable(t)]),O(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,t.__extends)(r,e),r.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},r.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()}},r.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},r.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},r.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},r.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},r}(m.Observable);(0,b.fixObservableSubclass)(w);var S=e.i(873224),k=e.i(177162),E=e.i(981075),D=e.i(867558),R=e.i(521584),T=e.i(593837),F=e.i(830743),x=e.i(22387),I=e.i(921212),N=e.i(924819),C=new(I.canUseWeakMap?WeakMap:Map);function M(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return C.set(e,(C.get(e)+1)%1e15),r.apply(this,arguments)})}var A=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;C.has(r)||(C.set(r,0),M(r,"evict"),M(r,"modify"),M(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||F.NetworkStatus.loading;return this.variables&&this.networkStatus!==F.NetworkStatus.loading&&!(0,s.equal)(this.variables,e.variables)&&(t=F.NetworkStatus.setVariables),(0,s.equal)(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,s.equal)(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,N.muteDeprecations)("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,N.muteDeprecations)("getLastError",function(){var e;return null==(e=r.observableQuery)?void 0:e.getLastError()}))&&(this.updateLastDiff(e),(0,s.equal)(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 r=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var i=(0,t.__assign)((0,t.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return r.setDiff(e)}});
1this.lastWatch&&(0,s.equal)(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===C.get(this.cache)&&(0,s.equal)(t,r.variables)&&(0,s.equal)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i,a=this,o=new x.DeepMerger,c=(0,d.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];if(null==(i=this.observableQuery)||i.resetNotifications(),"incremental"in e&&(0,d.isNonEmptyArray)(e.incremental)){var u=(0,l.mergeIncrementalData)(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=c,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(q(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:C.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){e.data=a.lastDiff.diff.result;return}var o=a.getDiffOptions(r.variables),c=(0,N.muteDeprecations)("canonizeResults",function(){return i.diff(o)});!a.stopped&&(0,s.equal)(a.variables,r.variables)&&a.updateWatch(r.variables),a.updateLastDiff(c,o),c.complete&&(e.data=c.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=F.NetworkStatus.ready},e.prototype.markError=function(e){var t;return this.networkStatus=F.NetworkStatus.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 q(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!v(e);return!n&&r&&e.data&&(n=!0),n}var j=e.i(842683),Q=e.i(336419),P=e.i(420616),V=e.i(187933),L=e.i(402661),z=e.i(663983),W=e.i(70386),B=Object.prototype.hasOwnProperty,U=Object.create(null),K=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new P.AutoCleanedWeakCache(V.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Q.Trie(!1),this.noCacheWarningsByQueryId=new Set;var r=new D.DocumentTransform(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,r.newInvariantError)(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,t.__awaiter)(this,arguments,void 0,function(e){var n,i,a,o,s,c,u,l=e.mutation,f=e.variables,h=e.optimisticResponse,p=e.updateQueries,d=e.refetchQueries,m=void 0===d?[]:d,_=e.awaitRefetchQueries,b=void 0!==_&&_,O=e.update,w=e.onQueryUpdated,S=e.fetchPolicy,k=void 0===S?(null==(c=this.defaultOptions.mutate)?void 0:c.fetchPolicy)||"network-only":S,E=e.errorPolicy,D=void 0===E?(null==(u=this.defaultOptions.mutate)?void 0:u.errorPolicy)||"none":E,T=e.keepRootFields,F=e.context;return(0,t.__generator)(this,function(e){switch(e.label){case 0:if((0,r.invariant)(l,36),(0,r.invariant)("network-only"===k||"no-cache"===k,37),n=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),i=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),!i)return[3,2];return[4,this.localState.addExportedVariables(l,f,F)];case 1:f=e.sent(),e.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[n]={mutation:l,variables:f,loading:!0,error:null}),o=h&&this.markMutationOptimistic(h,{mutationId:n,document:l,variables:f,fetchPolicy:k,errorPolicy:D,context:F,updateQueries:p,update:O,keepRootFields:T}),this.broadcastQueries(),s=this,[2,new Promise(function(e,r){return g(s.getObservableFromLink(l,(0,t.__assign)((0,t.__assign)({},F),{optimisticResponse:o?h:void 0}),f,{},!1),function(e){if(v(e)&&"none"===D)throw new R.ApolloError({graphQLErrors:y(e)});a&&(a.loading=!1,a.error=null);var r=(0,t.__assign)({},e);return"function"==typeof m&&(m=m(r)),"ignore"===D&&v(r)&&delete r.errors,s.markMutationResult({mutationId:n,result:r,document:l,variables:f,fetchPolicy:k,errorPolicy:D,context:F,update:O,updateQueries:p,awaitRefetchQueries:b,refetchQueries:m,removeOptimistic:o?n:void 0,onQueryUpdated:w,keepRootFields:T})}).subscribe({next:function(r){s.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,t.__assign)((0,t.__assign)({},r),{data:s.maskOperation({document:l,data:r.data,fetchPolicy:k,id:n})}))},error:function(e){a&&(a.loading=!1,a.error=e),o&&s.cache.removeOptimistic(n),s.broadcastQueries(),r(e instanceof R.ApolloError?e:new R.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,r){var n=this;void 0===r&&(r=this.cache);var i=e.result,a=[],o="no-cache"===e.fetchPolicy;if(!o&&q(i,e.errorPolicy)){if((0,l.isExecutionPatchIncrementalResult)(i)||a.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,l.isExecutionPatchIncrementalResult)(i)&&(0,d.isNonEmptyArray)(i.incremental)){var s=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),c=void 0;s.result&&(c=(0,l.mergeIncrementalData)(s.result,i)),void 0!==c&&(i.data=c,a.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(e,t){var o=e.observableQuery,s=o&&o.queryName;if(s&&B.call(u,s)){var c=u[s],l=n.queries.get(t),f=l.document,h=l.variables,d=r.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),v=d.result;if(d.complete&&v){var y=c(v,{mutationResult:i,queryName:f&&(0,p.getOperationName)(f)||void 0,queryVariables:h});y&&a.push({result:y,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(r){o||a.forEach(function(e){return r.write(e)});var s=e.update,c=!(0,l.isExecutionPatchResult)(i)||(0,l.isExecutionPatchIncrementalResult)(i)&&!i.hasNext;if(s){if(!o){var u=r.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(i=(0,t.__assign)((0,t.__assign)({},i),{data:u.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}c&&s(r,i,{context:e.context,variables:e.variables})}o||e.keepRootFields||!c||r.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,n){var i=this,a="function"==typeof e?e(n.variables,{IGNORE:U}):e;return a!==U&&(this.cache.recordOptimisticTransaction(function(e){try{i.markMutationResult((0,t.__assign)((0,t.__assign)({},n),{result:{data:a}}),e)}catch(e){!1!==globalThis.__DEV__&&r.invariant.error(e)}},n.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 r=this.transformCache;if(!r.has(e)){var n={hasClientExports:(0,u.hasClientExports)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,u.hasDirectives)(["nonreactive"],e),nonReactiveQuery:(0,c.addNonReactiveToNamedFragments)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,c.removeDirectivesFromDocument)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,p.getDefaultValues)((0,p.getOperationDefinition)(e)),asQuery:(0,t.__assign)((0,t.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,t.__assign)((0,t.__assign)({},e),{operation:"query"}):e})})};r.set(e,n)}return r.get(e)},e.prototype.getVariables=function(e,r){return(0,t.__assign)((0,t.__assign)({},this.getDocumentInfo(e).defaultVars),r)},e.prototype.watchQuery=function(e){var r=this.transform(e.query);void 0===(e=(0,t.__assign)((0,t.__assign)({},e),{variables:this.getVariables(r,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new A(this),i=new T.ObservableQuery({queryManager:this,queryInfo:n,options:e});return i.lastQuery=r,T.ObservableQuery.inactiveOnCreation.getValue()||this.queries.set(i.queryId,n),n.init({document:r,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,n){var i=this;void 0===n&&(n=this.generateQueryId()),(0,r.invariant)(e.query,38),(0,r.invariant)("Document"===e.query.kind,39),(0,r.invariant)(!e.returnPartialData,40),(0,r.invariant)(!e.pollInterval,41);var a=this.transform(e.query);return this.fetchQuery(n,(0,t.__assign)((0,t.__assign)({},e),{query:a})).then(function(r){return r&&(0,t.__assign)((0,t.__assign)({},r),{data:i.maskOperation({document:a,data:r.data,fetchPolicy:e.fetchPolicy,id:n})})}).finally(function(){return i.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,r.newInvariantError)(42)),this.queries.forEac
1h(function(e){e.observableQuery?e.networkStatus=F.NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var n=this;void 0===e&&(e="active");var i=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,k.isDocumentNode)(e)){var t=(0,j.print)(n.transform(e));a.set(t,(0,p.getOperationName)(e)),o.set(t,!1)}else(0,E.isNonNullObject)(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,r){var n=t.observableQuery,a=t.document;if(n){if("all"===e)return void i.set(r,n);var s=n.queryName;if("standby"===n.options.fetchPolicy||"active"===e&&!n.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has((0,j.print)(a)))&&(i.set(r,n),s&&o.set(s,!0),a&&o.set((0,j.print)(a),!0))}}),s.size&&s.forEach(function(e){var a=(0,S.makeUniqueId)("legacyOneTimeQuery"),o=n.getOrCreateQuery(a).init({document:e.query,variables:e.variables}),s=new T.ObservableQuery({queryManager:n,queryInfo:o,options:(0,t.__assign)((0,t.__assign)({},e),{fetchPolicy:"network-only"})});(0,r.invariant)(s.queryId===a),o.setObservableQuery(s),i.set(a,s)}),!1!==globalThis.__DEV__&&o.size&&o.forEach(function(e,t){if(!e){var n=a.get(t);n?!1!==globalThis.__DEV__&&r.invariant.warn(43,n):!1!==globalThis.__DEV__&&r.invariant.warn(44)}}),i},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,N.muteDeprecations)("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,c=void 0===s?{}:s,u=e.extensions,l=void 0===u?{}:u;r=this.transform(r),n=this.getVariables(r,n);var f=function(e){return t.getObservableFromLink(r,c,e,l).map(function(n){"no-cache"!==i&&(q(n,o)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=v(n),s=(0,R.graphQLResultHasProtocolErrors)(n);if(a||s){var c={};if(a&&(c.graphQLErrors=n.errors),s&&(c.protocolErrors=n.extensions[R.PROTOCOL_ERRORS_SYMBOL]),"none"===o||s)throw new R.ApolloError(c)}return"ignore"===o&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,n,c).then(f);return new m.Observable(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,r,n,a,o){var s,c,u=this;void 0===o&&(o=null!=(s=null==r?void 0:r.queryDeduplication)?s:this.queryDeduplication);var l=this.getDocumentInfo(e),f=l.serverQuery,d=l.clientQuery;if(f){var v=this.inFlightLinkObservables,y=this.link,_={query:f,variables:n,operationName:(0,p.getOperationName)(f)||void 0,context:this.prepareContext((0,t.__assign)((0,t.__assign)({},r),{forceFetch:!o})),extensions:a};if(r=_.context,o){var b=(0,j.print)(f),O=(0,h.canonicalStringify)(n),S=v.lookup(b,O);
1if(!(c=S.observable)){var k=new w([(0,i.execute)(y,_)]);c=S.observable=k,k.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?k.beforeNext(e):v.remove(b,O)})}}else c=new w([(0,i.execute)(y,_)])}else c=new w([m.Observable.of({data:{}})]),r=this.prepareContext(r);return d&&(c=g(c,function(e){return u.localState.runResolvers({document:d,remoteResult:e,context:r,variables:n})})),c},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return g(this.getObservableFromLink(i,r.context,r.variables),function(a){var o=y(a),s=o.length>0,c=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===c)throw e.markError(new R.ApolloError({graphQLErrors:o}));e.markResult(a,i,r,t),e.markReady()}var u={data:a.data,loading:!1,networkStatus:F.NetworkStatus.ready};return s&&"none"===c&&(u.data=void 0),s&&"ignore"!==c&&(u.errors=o,u.networkStatus=F.NetworkStatus.error),u},function(t){var r=(0,R.isApolloError)(t)?t:new R.ApolloError({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.NetworkStatus.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),c=this.defaultOptions.watchQuery,u=t.fetchPolicy,l=void 0===u?c&&c.fetchPolicy||"cache-first":u,f=t.errorPolicy,h=void 0===f?c&&c.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 w(this.localState.addExportedVariables(y.query,y.variables,y.context).then(m).then(function(e){return e.sources})),a=!0;else{var _=m(y.variables);a=_.fromLink,i=new w(_.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,S.makeUniqueId)("refetchQueries"):void 0:o,c=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){u.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 A&&e.watcher.observableQuery;if(n){if(c){u.delete(n.queryId);var i=c(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==c&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach(function(e,r){var n,i=e.oq,a=e.lastDiff,o=e.diff;c&&(o||(o=(0,N.muteDeprecations)("canonizeResults",function(){return t.cache.diff(i.queryInfo.getDiffOptions())})),n=c(i,o,a)),c&&!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,n,i,a=e.document,o=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,c=e.id,u=null==(t=(0,p.getOperationDefinition)(a))?void 0:t.operation,l=(null!=(n=null==u?void 0:u[0])?n:"o")+c;!this.dataMasking||"no-cache"!==s||(0,f.isFullyUnmaskedOperation)(a)||this.noCacheWarningsByQueryId.has(l)||(this.noCacheWarningsByQueryId.add(l),!1!==globalThis.__DEV__&&r.invariant.warn(45,null!=(i=(0,p.getOperationName)(a))?i:"Unnamed ".concat(null!=u?u:"operation")))}return this.dataMasking?function(e,t,n){if(!n.fragmentMatches)return!1!==globalThis.__DEV__&&(0,W.warnOnImproperCacheImplementation)(),e;var i,a=(0,p.getOperationDefinition)(t);return((0,r.invariant)(a,63),null==e)?e:(0,z.maskDefinition)(e,a.selectionSet,{operationType:a.operation,operationName:null==(i=a.name)?void 0:i.value,fragmentMap:(0,f.createFragmentMap)((0,p.getFragmentDefinitions)(t)),cache:n,mutableTargets:new W.MapImpl,knownChanged:new W.SetImpl})}(o,a,this.cache):o},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?(0,L.maskFragment)(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,r,n){var i=this,a=r.query,o=r.variables,c=r.fetchPolicy,u=r.refetchWritePolicy,l=r.errorPolicy,f=r.returnPartialData,h=r.context,p=r.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:a,variables:o,networkStatus:n});var v=function(){return e.getDiff()},y=function(r,n){void 0===n&&(n=e.networkStatus||F.NetworkStatus.loading);var c=r.result;!1===globalThis.__DEV__||f||(0,s.equal)(c,{})||(0,T.logMissingFieldErrors)(r.missing);var u=function(e){return m.Observable.of((0,t.__assign)({data:e,loading:(0,F.isNetwork
1RequestInFlight)(n),networkStatus:n},r.complete?null:{partial:!0}))};return c&&i.getDocumentInfo(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:c},context:h,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===l&&n===F.NetworkStatus.refetch&&Array.isArray(r.missing)?u(void 0):u(c)},g="no-cache"===c?0:n===F.NetworkStatus.refetch&&"merge"!==u?1:2,_=function(){return i.getResultsFromLink(e,g,{query:a,variables:o,context:h,fetchPolicy:c,errorPolicy:l})},b=p&&"number"==typeof d&&d!==n&&(0,F.isNetworkRequestInFlight)(n);switch(c){default:case"cache-first":var O=v();if(O.complete)return{fromLink:!1,sources:[y(O,e.markReady())]};if(f||b)return{fromLink:!0,sources:[y(O),_()]};return{fromLink:!0,sources:[_()]};case"cache-and-network":var O=v();if(O.complete||f||b)return{fromLink:!0,sources:[y(O),_()]};return{fromLink:!0,sources:[_()]};case"cache-only":return{fromLink:!1,sources:[y(v(),e.markReady())]};case"network-only":if(b)return{fromLink:!0,sources:[y(v()),_()]};return{fromLink:!0,sources:[_()]};case"no-cache":if(b)return{fromLink:!0,sources:[y(e.getDiff()),_()]};return{fromLink:!0,sources:[_()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new A(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var r=this.localState.prepareContext(e);return(0,t.__assign)((0,t.__assign)((0,t.__assign)({},this.defaultContext),r),{clientAwareness:this.clientAwareness})},e}(),H=e.i(382718),G=e.i(227827);function J(e){return e.kind===G.Kind.FIELD||e.kind===G.Kind.FRAGMENT_SPREAD||e.kind===G.Kind.INLINE_FRAGMENT}var Y=e.i(978150),$=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,x.mergeDeep)(t.resolvers,e)}):this.resolvers=(0,x.mergeDeep)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,t.__awaiter)(this,arguments,void 0,function(e){var r=e.document,n=e.remoteResult,i=e.context,a=e.variables,o=e.onlyRunForcedResolvers,s=void 0!==o&&o;return(0,t.__generator)(this,function(e){return r?[2,this.resolveDocument(r,n.data,i,a,this.fragmentMatcher,s).then(function(e){return(0,t.__assign)((0,t.__assign)({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,u.hasDirectives)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,c.removeClientSetsFromDocument)(e)},e.prototype.prepareContext=function(e){var r=this.cache;return(0,t.__assign)((0,t.__assign)({},e),{cache:r,getCacheKey:function(e){return r.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,t.__awaiter)(this,arguments,void 0,function(e,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),(0,t.__generator)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,r)||{},this.prepareContext(n),r).then(function(e){return(0,t.__assign)((0,t.__assign)({},r),e.exportedVariables)})]:[2,(0,t.__assign)({},r)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,H.visit)(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 H.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,c.buildQueryFromSelectionSet)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,r){return(0,t.__awaiter)(this,arguments,void 0,function(e,r,n,i,a,o){var s,c,u,l,h,d,v,y,m,g;return void 0===n&&(n={}),void 0===i&&(i={}),void 0===a&&(a=function(){return!0}),void 0===o&&(o=!1),(0,t.__generator)(this,function(_){return s=(0,p.getMainDefinition)(e),c=(0,p.getFragmentDefinitions)(e),u=(0,f.createFragmentMap)(c),l=this.collectSelectionsToResolve(s,u),d=(h=s.operation)?h.charAt(0).toUpperCase()+h.slice(1):"Query",v=this,y=v.cache,m=v.client,g={fragmentMap:u,context:(0,t.__assign)((0,t.__assign)({}
1,n),{cache:y,client:m}),variables:i,fragmentMatcher:a,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(s.selectionSet,!1,r,g).then(function(e){return{result:e,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,n,i,a){return(0,t.__awaiter)(this,void 0,void 0,function(){var o,s,c,l,f,h=this;return(0,t.__generator)(this,function(p){return o=a.fragmentMap,s=a.context,c=a.variables,l=[i],f=function(e){return(0,t.__awaiter)(h,void 0,void 0,function(){var f,h;return(0,t.__generator)(this,function(t){return(n||a.selectionsToResolve.has(e))&&(0,u.shouldInclude)(e,c)?(0,k.isField)(e)?[2,this.resolveField(e,n,i,a).then(function(t){var r;void 0!==t&&l.push(((r={})[(0,k.resultKeyNameFromField)(e)]=t,r))})]:((0,k.isInlineFragment)(e)?f=e:(f=o[e.name.value],(0,r.invariant)(f,21,e.name.value)),f&&f.typeCondition&&(h=f.typeCondition.name.value,a.fragmentMatcher(i,h,s)))?[2,this.resolveSelectionSet(f.selectionSet,n,i,a).then(function(e){l.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(f)).then(function(){return(0,x.mergeDeepArray)(l)})]})})},e.prototype.resolveField=function(e,r,n,i){return(0,t.__awaiter)(this,void 0,void 0,function(){var a,o,s,c,u,l,f,h,p,d=this;return(0,t.__generator)(this,function(t){return n?(a=i.variables,c=(o=e.name.value)!==(s=(0,k.resultKeyNameFromField)(e)),l=Promise.resolve(u=n[s]||n[o]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=n.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[c?o:s])&&(l=Promise.resolve(Y.cacheSlot.withValue(this.cache,p,[n,(0,k.argumentsObjectFromField)(e,a),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then(function(t){if(void 0===t&&(t=u),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]=t)})}),!e.selectionSet||null==t)return t;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(t)?d.resolveSubSelectedArray(e,r||o,t,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,r||o,t,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 n=function(e){return!Array.isArray(e)},i=this.selectionsToResolveCache;return function e(a){if(!i.has(a)){var o=new Set;i.set(a,o),(0,H.visit)(a,{Directive:function(e,t,r,i,a){"client"===e.name.value&&a.forEach(function(e){n(e)&&J(e)&&o.add(e)})},FragmentSpread:function(i,a,s,c,u){var l=t[i.name.value];(0,r.invariant)(l,22,i.name.value);var f=e(l);f.size>0&&(u.forEach(function(e){n(e)&&J(e)&&o.add(e)}),o.add(i),f.forEach(function(e){o.add(e)}))}})}return i.get(a)}(e)},e}(),X=e.i(917059),Z=e.i(432988),ee=!1,et=function(){function e(e){var i,s,c,u=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,r.newInvariantError)(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,_=e.connectToDevTools,b=e.queryDeduplication,O=void 0===b||b,w=e.defaultOptions,S=e.defaultContext,k=e.assumeImmutableResults,E=void 0===k?p.assumeImmutableResults:k,D=e.resolvers,R=e.typeDefs,T=e.fragmentMatcher,F=e.clientAwareness,x=e.name,I=e.version,C=e.devtools,M=e.dataMasking;!1!==globalThis.__DEV__&&((0,N.warnRemovedOption)(e,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),(0,N.warnRemovedOption)(e,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),(0,N.warnRemovedOption)(e,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),(0,N.warnRemovedOption)(e,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),(0,N.warnRemovedOption)(e,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),(0,N.warnRemovedOption)(e,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),(0,N.warnRemovedOption)(e,"typeDefs","ApolloClient"),e.link||!1===globalThis.__DEV__||r.invariant.warn(17));var A=e.link;A||(A=l?new o.HttpLink({uri:l,credentials:f,headers:h}):n.ApolloLink.empty()),this.link=A,this.cache=p,this.disableNetworkFetches=y||g>0,this.queryDeduplication=O,this.defaultOptions=w||Object.create(null),this.typeDefs=R,this.devtoolsConfig=(0,t.__assign)((0,t.__assign)({},C),{enabled:null!=(i=null==C?void 0:C.enabled)?i:_}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),g&&setTimeout(function(){return u.disableNetworkFetches=!1},g),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=a.version,this.localState=new $({cache:p,client:this,resolvers:D,fragmentMatcher:T}),this.queryManager=new K({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:S,documentTransform:d,queryDeduplication:O,ssrMode:y,dataMasking:!!M,clientAwareness:{name:null!=(s=null==F?void 0:F.name)?s:x,version:null!=(c=null==F?void 0:F.version)?c:I},localState:this.localState,assumeImmutableResults:E,onBroadcast:this.devtoolsConfig.enabled?function(){u.devToolsHookCb&&u.devToolsHookCb({action:{},state:{queries:u.queryManager.getQueryStore(),mutations:u.queryManager.mutationStore||{}},dataWithOptimisticResults:u.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("u">typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!ee&&!1!==globalThis.__DEV__&&(ee=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&r.invariant.log("Download the Apollo DevTools for a better development experience: %s",n)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,X.mergeOptions)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,t.__assign)((0,t.__assign)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,N.warnRemovedOption)(e,"canonizeResults","client.watchQuery"),(0,N.warnRemovedOption)(e,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,X.mergeOptions)(this.defaultOptions.query,e)),(0,r.invariant)("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,t.__assign)((0,t.__assign)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,N.warnRemovedOption)(e,"canonizeResults","client.query"),(0,N.warnRemovedOption)(e,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),"standby"===e.fetchPolicy&&!1!==globalThis.__DEV__&&r.invariant.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,X.mergeOptions)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var r=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(i){return(0,t.__assign)((0,t.__assign)({},i),{data:r.queryManager.maskOperation({document:e.query,data:i.data,fetchPolicy:e.fetchPolicy,id:n})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var r;return this.cache.watchFragment((0,t.__assign)((0,t.__assign)({},e),((r={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,r)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,i.execute)(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),n=[],i=[];t.forEach(function(e,t){n.push(t),i.push(e)});var a=Promise.all(i);return a.queries=n,a.results=i,a.catch(function(e){!1!==globalThis.__DEV__&&r.invariant.debug(20,e)}),a},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
1,enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(et.prototype.getMemoryInternals=Z.getApolloClientMemoryInternals),e.s(["ApolloClient",0,et],415758);var er=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(JSON.stringify(e))}})}},en=class extends TransformStream{constructor(){super({transform(e,t){"string"!=typeof e&&(e=new TextDecoder().decode(e)),t.enqueue(JSON.parse(e))}})}};e.s(["JSONDecodeStream",0,en,"JSONEncodeStream",0,er],650299)},344646,e=>{"use strict";e.i(17279);var t=e.i(428849),r=e.i(610499),n=e.i(824627),i=e.i(778511),a=e.i(924819);function o(e,t){return t?t(e):r.Observable.of()}function s(e){return"function"==typeof e?new u(e):e}function c(e){return e.request.length<=1}var u=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return r.Observable.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(s).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,i){var a=s(n),u=s(i||new e(o));return Object.assign(new e(c(a)&&c(u)?function(e){return t(e)?a.request(e)||r.Observable.of():u.request(e)||r.Observable.of()}:function(e,n){return t(e)?a.request(e,n)||r.Observable.of():u.request(e,n)||r.Observable.of()}),{left:a,right:u})},e.execute=function(e,a){var o,s,c,u,l;return e.request((c=a.context,(s={variables:(o=function(e){for(var r=["query","operationName","variables","extensions","context"],n=0,i=Object.keys(e);n<i.length;n++){var a=i[n];if(0>r.indexOf(a))throw(0,t.newInvariantError)(58,a)}return e}(a)).variables||{},extensions:o.extensions||{},operationName:o.operationName,query:o.query}).operationName||(s.operationName="string"!=typeof s.query?(0,i.getOperationName)(s.query)||void 0:""),u=s,l=(0,n.__assign)({},c),Object.defineProperty(u,"setContext",{enumerable:!1,value:function(e){l="function"==typeof e?(0,n.__assign)((0,n.__assign)({},l),e(l)):(0,n.__assign)((0,n.__assign)({},l),e)}}),Object.defineProperty(u,"getContext",{enumerable:!1,value:function(){return(0,n.__assign)({},l)}}),u))||r.Observable.of()},e.concat=function(n,i){var a=s(n);if(c(a))return!1!==globalThis.__DEV__&&t.invariant.warn(47,a),a;var o=s(i);return Object.assign(new e(c(o)?function(e){return a.request(e,function(e){return o.request(e)||r.Observable.of()})||r.Observable.of()}:function(e,t){return a.request(e,function(e){return o.request(e,t)||r.Observable.of()})||r.Observable.of()}),{left:a,right:o})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(o)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,r){throw(0,t.newInvariantError)(48)},e.prototype.onError=function(e,r){if(!1!==globalThis.__DEV__&&(0,a.warnDeprecated)("onError",function(){!1!==globalThis.__DEV__&&t.invariant.warn(49)}),r&&r.error)return r.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&t.invariant.warn(50),this.onError=e,this},e}();e.s(["ApolloLink",0,u],344646)},366934,e=>{"use strict";var t=e.i(824627),r=e.i(344646);e.i(17279);var n=e.i(428849),i=e.i(610499),a=e.i(312429),o=e.i(371669),s=e.i(519946),c=e.i(161370),u=e.i(994084),l=e.i(48057),f=e.i(717077),h=e.i(171391),p=e.i(818048),d=e.i(84095),v=e.i(778511),y=e.i(879795),m=(0,d.maybe)(function(){return fetch}),g=function(e){void 0===e&&(e={});var g=e.uri,_=void 0===g?"/graphql":g,b=e.fetch,O=e.print,w=void 0===O?l.defaultPrinter:O,S=e.includeExtensions,k=e.preserveHeaderCase,E=e.useGETForQueries,D=e.includeUnusedVariables,R=void 0!==D&&D,T=(0,t.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,u.checkFetcher)(b||m);var F={http:{includeExtensions:S,preserveHeaderCase:k},options:T.fetchOptions,credentials:T.credentials,headers:T.headers};return new r.ApolloLink(function(e){var r,u,g=(0,s.selectURI)(e,_),O=e.getContext(),S={};if(O.clientAwareness){var k=O.clientAwareness,D=k.name,T=k.version;D&&(S["apollographql-client-name"]=D),T&&(S["apollographql-client-version"]=T)}var x=(0,t.__assign)((0,t.__assign)({},S),O.headers),I={http:O.http,options:O.fetchOptions,credentials:O.credentials,headers:x};if((0,a.hasDirectives)(["client"],e.query)){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&n.invariant.warn(52);
1var N=(0,y.removeClientSetsFromDocument)(e.query);if(!N)return(0,h.fromError)(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=N}var C=(0,l.selectHttpOptionsAndBodyInternal)(e,w,l.fallbackHttpConfig,F,I),M=C.options,A=C.body;A.variables&&!R&&(A.variables=(0,p.filterOperationVariables)(A.variables,e.query)),!M.signal&&"u">typeof AbortController&&(M.signal=(u=new AbortController).signal);var q="OperationDefinition"===(r=(0,v.getMainDefinition)(e.query)).kind&&"subscription"===r.operation,j=(0,a.hasDirectives)(["defer"],e.query);if(E&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(M.method="GET"),j||q){M.headers=M.headers||{};var Q="multipart/mixed;";q&&j&&!1!==globalThis.__DEV__&&n.invariant.warn(53),q?Q+="boundary=graphql;subscriptionSpec=1.0,application/json":j&&(Q+="deferSpec=20220824,application/json"),M.headers.accept=Q}if("GET"===M.method){var P=(0,f.rewriteURIForGET)(g,A),V=P.newURI,L=P.parseError;if(L)return(0,h.fromError)(L);g=V}
1else try{M.body=(0,o.serializeFetchParameter)(A,"Payload")}catch(e){return(0,h.fromError)(e)}return new i.Observable(function(t){var r=b||(0,d.maybe)(function(){return fetch})||m,n=t.next.bind(t);return r(g,M).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,c.readMultipartBody)(t,n):(0,c.parseAndCheckHttpResponse)(e)(t).then(n)}).then(function(){u=void 0,t.complete()}).catch(function(e){u=void 0,(0,c.handleError)(e,t)}),function(){u&&u.abort()}})})},_=function(e){function r(t){void 0===t&&(t={});var r=e.call(this,g(t).request)||this;return r.options=t,r}return(0,t.__extends)(r,e),r}(r.ApolloLink);e.s(["HttpLink",0,_],366934)},161370,892050,994084,e=>{"use strict";var t=e.i(824627),r=e.i(375858),n=e.i(684969),i=e.i(521584),a=e.i(981075),o=e.i(109045),s=e.i(22387);function c(e){return"incremental"in e}function u(e){return(0,a.isNonNullObject)(e)&&"payload"in e}e.s(["isApolloPayloadResult",0,u,"isExecutionPatchIncrementalResult",0,c,"isExecutionPatchResult",0,function(e){return c(e)||"hasNext"in e&&"data"in e},"mergeIncrementalData",0,function(e,t){var r=e,n=new s.DeepMerger;return c(t)&&(0,o.isNonEmptyArray)(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}],892050);var l=Object.prototype.hasOwnProperty;function f(e,t){e.status>=300&&(0,n.throwServerError)(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}}e.s(["handleError",0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)},"parseAndCheckHttpResponse",0,function(e){return function(t){return t.text().then(function(e){return f(t,e)}).then(function(r){return Array.isArray(r)||l.call(r,"data")||l.call(r,"errors")||(0,n.throwServerError)(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})}},"readMultipartBody",0,function(e,n){return(0,t.__awaiter)(this,void 0,void 0,function(){var a,o,s,c,l,h,p,d,v,y,m,g,_,b,O,w,S,k,E,D,R,T,F;return(0,t.__generator)(this,function(x){switch(x.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");a=new TextDecoder("utf-8"),o=null==(F=e.headers)?void 0:F.get("content-type"),s="boundary=",c=(null==o?void 0:o.includes(s))?null==o?void 0:o.substring((null==o?void 0:o.indexOf(s))+s.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",l="\r\n--".concat(c),h="",p=(0,r.responseIterator)(e),d=!0,x.label=1;case 1:if(!d)return[3,3];return[4,p.next()];case 2:for(y=(v=x.sent()).value,m=v.done,g="string"==typeof y?y:a.decode(y),_=h.length-l.length+1,d=!m,h+=g,b=h.indexOf(l,_);b>-1;){if(O=void 0,O=(R=[h.slice(0,b),h.slice(b+l.length)])[0],h=R[1],w=O.indexOf("\r\n\r\n"),(S=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===S.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(k=O.slice(w)){if(Object.keys(E=f(e,k)).length>1||"data"in E||"incremental"in E||"errors"in E||"payload"in E)if(u(E)){if(D={},"payload"in E){if(1===Object.keys(E).length&&null===E.payload)return[2];D=(0,t.__assign)({},E.payload)}"errors"in E&&(D=(0,t.__assign)((0,t.__assign)({},D),{extensions:(0,t.__assign)((0,t.__assign)({},"extensions"in D?D.extensions:null),((T={})[i.PROTOCOL_ERRORS_SYMBOL]=E.errors,T))})),n(D)}else n(E);else if(1===Object.keys(E).length&&"hasNext"in E&&!E.hasNext)return[2]}b=h.indexOf(l)}return[3,1];case 3:return[2]}})})}],161370),e.i(17279);var h=e.i(428849);e.s(["checkFetcher",0,function(e){if(!e&&"u"<typeof fetch)throw(0,h.newInvariantError)(51)}],994084)},48057,717077,171391,818048,e=>{"use strict";var t=e.i(824627),r=e.i(842683);e.s(["defaultPrinter",0,function(e,t){return t(e)},"fallbackHttpConfig",0,{http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},"selectHttpOptionsAndBodyInternal",0,function(e,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var o={},s={};
1i.forEach(function(e){o=(0,t.__assign)((0,t.__assign)((0,t.__assign)({},o),e.options),{headers:(0,t.__assign)((0,t.__assign)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),s=(0,t.__assign)((0,t.__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 c=e.operationName,u=e.extensions,l=e.variables,f=e.query,h={operationName:c,variables:l};return s.includeExtensions&&(h.extensions=u),s.includeQuery&&(h.query=n(f,r.print)),{options:o,body:h}}],48057);var n=e.i(371669);e.s(["rewriteURIForGET",0,function(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.serializeFetchParameter)(t.variables,"Variables map")}catch(e){return{parseError:e}}i("variables",a)}if(t.extensions){var o=void 0;try{o=(0,n.serializeFetchParameter)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}i("extensions",o)}var s="",c=e,u=e.indexOf("#");-1!==u&&(s=e.substr(u),c=e.substr(0,u));var l=-1===c.indexOf("?")?"?":"&";return{newURI:c+l+r.join("&")+s}}],717077);var i=e.i(610499);e.s(["fromError",0,function(e){return new i.Observable(function(t){t.error(e)})}],171391);var a=e.i(382718);e.s(["filterOperationVariables",0,function(e,r){var n=(0,t.__assign)({},e),i=new Set(Object.keys(e));return(0,a.visit)(r,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&i.delete(e.name.value)}}
1),i.forEach(function(e){delete n[e]}),n}],818048)},371669,519946,375858,684969,e=>{"use strict";e.i(17279);var t=e.i(428849);e.s(["serializeFetchParameter",0,function(e,r){var n;try{n=JSON.stringify(e)}catch(e){var i=(0,t.newInvariantError)(54,r,e.message);throw i.parseError=e,i}return n}],371669),e.s(["selectURI",0,function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}],519946);var r=e.i(921212);function n(e){var t={next:function(){return e.read()}};return r.canUseAsyncIteratorSymbol&&(t[Symbol.asyncIterator]=function(){return this}),t}e.s(["responseIterator",0,function(e){var t,i,a,o,s,c,u=e;if(e.body&&(u=e.body),t=u,r.canUseAsyncIteratorSymbol&&t[Symbol.asyncIterator])return a=u[Symbol.asyncIterator](),(i={next:function(){return a.next()}})[Symbol.asyncIterator]=function(){return this},i;if(u.getReader)return n(u.getReader());if(u.stream)return n(u.stream().getReader());if(u.arrayBuffer)return o=u.arrayBuffer(),s=!1,c={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)}))}},r.canUseAsyncIteratorSymbol&&(c[Symbol.asyncIterator]=function(){return this}),c;if(u.pipe)return function(e){var t=null,n=null,i=!1,a=[],o=[];function s(e){if(!n){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}a.push(e)}}function c(e){n=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){i=!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",c),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",s),e.on("error",c),e.on("end",u),e.on("finish",u),e.on("close",u);var l={next:function(){return new Promise(function(e,t){return n?t(n):a.length?e({value:a.shift(),done:!1}):i?e({value:void 0,done:!0}):void o.push([e,t])})}};return r.canUseAsyncIteratorSymbol&&(l[Symbol.asyncIterator]=function(){return this}),l}(u);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}],375858),e.s(["throwServerError",0,function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n}],684969)},22387,e=>{"use strict";var t=e.i(824627),r=e.i(981075),n=Object.prototype.hasOwnProperty;function i(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new o,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var a=function(e,t,r){return this.merge(e[r],t[r])},o=function(){function e(e){void 0===e&&(e=a),this.reconciler=e,this.isObject=r.isNonNullObject,this.pastCopies=new Set}return e.prototype.merge=function(e,i){for(var a=this,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return(0,r.isNonNullObject)(i)&&(0,r.isNonNullObject)(e)?(Object.keys(i).forEac
1h(function(r){if(n.call(e,r)){var s=e[r];if(i[r]!==s){var c=a.reconciler.apply(a,(0,t.__spreadArray)([e,i,r],o,!1));c!==s&&((e=a.shallowCopyForMerge(e))[r]=c)}}else(e=a.shallowCopyForMerge(e))[r]=i[r]}),e):i},e.prototype.shallowCopyForMerge=function(e){return(0,r.isNonNullObject)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,t.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();e.s(["DeepMerger",0,o,"mergeDeep",0,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(e)},"mergeDeepArray",0,i])},867558,e=>{"use strict";var t=e.i(336419),r=e.i(921212),n=e.i(778511);e.i(17279);var i=e.i(428849),a=e.i(214054),o=e.i(878823),s=e.i(187933);function c(e){return e}var u=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=r.canUseWeakSet?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(c,{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 n=this;if(this.cached){var c=new t.Trie(r.canUseWeakMap);this.performWork=(0,o.wrap)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var t=n.getCacheKey(e);if(t)return(0,i.invariant)(Array.isArray(t),104),c.lookupArray(t)},max:s.cacheSizes["documentTransform.cache"],cache:a.WeakCache})}},e.prototype.performWork=function(e){return(0,n.checkDocument)(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}();e.s(["DocumentTransform",0,u])},842683,e=>{"use strict";var t,r=e.i(292989);let n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function i(e){return a[e.charCodeAt(0)]}let a=["\\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 o=e.i(382718);let s={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=h(e.variableDefinitions)?l("(\n",c(e.variableDefinitions,"\n"),"\n)"):l("(",c(e.variableDefinitions,", "),")"),r=l("",e.description,"\n")+c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>l("",i,"\n")+e+": "+t+l(" = ",r)+l(" ",c(n," "))},SelectionSet:{leave:({selections:e})=>u(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let a=l("",e,": ")+t,o=a+l("(",c(r,", "),")");return o.length>80&&(o=a+l("(\n",f(c(r,"\n")),"\n)")),c([o,c(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+l(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>c(["...",l("on ",e),c(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:a})=>l("",a,"\n")+`fragment ${e}${l("(",c(r,", "),")")} `+`on ${t} ${l("",c(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
1,StringValue:{leave:({value:e,block:t})=>t?(0,r.printBlockString)(e):`"${e.replace(n,i)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+l("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>l("",e,"\n")+c(["schema",c(t," "),u(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>l("",e,"\n")+c(["scalar",t,c(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>l("",e,"\n")+c(["type",t,l("implements ",c(r," & ")),c(n," "),u(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>l("",e,"\n")+t+(h(r)?l("(\n",f(c(r,"\n")),"\n)"):l("(",c(r,", "),")"))+": "+n+l(" ",c(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>l("",e,"\n")+c([t+": "+r,l("= ",n),c(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>l("",e,"\n")+c(["interface",t,l("implements ",c(r," & ")),c(n," "),u(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>l("",e,"\n")+c(["union",t,c(r," "),l("= ",c(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>l("",e,"\n")+c(["enum",t,c(r," "),u(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>l("",e,"\n")+c([t,c(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>l("",e,"\n")+c(["input",t,c(r," "),u(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:i,locations:a})=>l("",e,"\n")+"directive @"+t+(h(r)?l("(\n",f(c(r,"\n")),"\n)"):l("(",c(r,", "),")"))+l(" ",c(n," "))+(i?" repeatable":"")+" on "+c(a," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),u(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>c(["extend type",e,l("implements ",c(t," & ")),c(r," "),u(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>c(["extend interface",e,l("implements ",c(t," & ")),c(r," "),u(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>c(["extend union",e,c(t," "),l("= ",c(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>c(["extend enum",e,c(t," "),u(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>c(["extend input",e,c(t," "),u(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>c(["extend directive @"+e,c(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>c([e,l(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>c([e,l(".",t),l("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>c(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>c(["@",e,l("(",t,":)")])}};function c(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function u(e){return l("{\n",f(c(e,"\n")),"\n}")}function l(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function f(e){return l("  ",e.replace(/\n/g,"\n  "))}function h(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var p=e.i(420616),d=e.i(187933),v=e.i(432988),y=Object.assign(function(e){var r=t.get(e);return r||(r=(0,o.visit)(e,s),t.set(e,r)),r},{reset:function(){t=new p.AutoCleanedWeakCache(d.cacheSizes.print||2e3)}});y.reset(),!1!==globalThis.__DEV__&&(0,v.registerGlobalCache)("print",function(){return t?t.size:0}),e.s(["print",0,y],842683)},879795,e=>{"use strict";var t=e.i(824627);e.i(17279);var r=e.i(428849),n=e.i(382718),i=e.i(227827),a=e.i(778511),o=e.i(177162),s=e.i(170402),c=e.i(109045),u={kind:i.Kind.FIELD,name:{kind:i.Kind.NAME,value:"__typename"}};function l(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 f(e,o){(0,a.checkDocument)(o);for(var u,f,h,p=l(""),d=l(""),v=function(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!(0,c.isArray)(n)){if(n.kind===i.Kind.OPERATION_DEFINITION)return p(n.name&&n.name.value);if(n.kind===i.Kind.FRAGMENT_DEFINITION)return d(n.name.value)}return!1!==globalThis.__DEV__&&r.invariant.error(124),null},y=0,m=o.definitions.length-1;m>=0;--m)o.definitions[m].kind===i.Kind.OPERATION_DEFINITION&&++y;var g=(u=new Map,f=new Map,e.forEach(function(e){e&&(e.name?u.set(e.name,e):e.test&&f.set(e.test,e))}
1),function(e){var t=u.get(e.name.value);return!t&&f.size&&f.forEach(function(r,n){n(e)&&(t=r)}),t}),_=function(e){return(0,c.isNonEmptyArray)(e)&&e.map(g).some(function(e){return e&&e.remove})},b=new Map,O=!1,w={enter:function(e){if(_(e.directives))return O=!0,null}},S=(0,n.visit)(o,{Field:w,InlineFragment:w,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var a=v(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(_(e.directives))return O=!0,null;var a=v(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:y>0&&e.selectionSet.selections.every(function(e){return e.kind===i.Kind.FIELD&&"__typename"===e.name.value})?(d(e.name.value).removed=!0,O=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return O=!0,null}}});if(!O)return o;var k=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){k(d(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},E=new Set;S.definitions.forEach(function(e){e.kind===i.Kind.OPERATION_DEFINITION?k(p(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){E.add(e)}):e.kind!==i.Kind.FRAGMENT_DEFINITION||0!==y||d(e.name.value).removed||E.add(e.name.value)}
1),E.forEach(function(e){k(d(e)).fragmentSpreads.forEach(function(e){E.add(e)})});var D={enter:function(e){var t;if(t=e.name.value,!E.has(t)||d(t).removed)return null}};return h=(0,n.visit)(S,{FragmentSpread:D,FragmentDefinition:D,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var r=k(p(e.name&&e.name.value)).transitiveVars;if(r.size<e.variableDefinitions.length)return(0,t.__assign)((0,t.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return r.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===i.Kind.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,a.getOperationDefinition)(h)||(0,a.getFragmentDefinition)(h),(0,s.createFragmentMap)((0,a.getFragmentDefinitions)(h)))?h:null}var h=Object.assign(function(e){return(0,n.visit)(e,{SelectionSet:{enter:function(e,r,n){if(!n||n.kind!==i.Kind.OPERATION_DEFINITION){var a=e.selections;if(!(!a||a.some(function(e){return(0,o.isField)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,o.isField)(n)&&n.directives&&n.directives.some(function(e){return"export"===e.name.value})))return(0,t.__assign)((0,t.__assign)({},e),{selections:(0,t.__spreadArray)((0,t.__spreadArray)([],a,!0),[u],!1)})}}}})},{added:function(e){return e===u}});e.s(["addNonReactiveToNamedFragments",0,function(e){return(0,a.checkDocument)(e),(0,n.visit)(e,{FragmentSpread:function(e){var r;if(null==(r=e.directives)||!r.some(function(e){return"unmask"===e.name.value}))return(0,t.__assign)((0,t.__assign)({},e),{directives:(0,t.__spreadArray)((0,t.__spreadArray)([],e.directives||[],!0),[{kind:i.Kind.DIRECTIVE,name:{kind:i.Kind.NAME,value:"nonreactive"}}
1],!1)})}})},"addTypenameToDocument",0,h,"buildQueryFromSelectionSet",0,function(e){return"query"===(0,a.getMainDefinition)(e).operation?e:(0,n.visit)(e,{OperationDefinition:{enter:function(e){return(0,t.__assign)((0,t.__assign)({},e),{operation:"query"})}}})},"removeClientSetsFromDocument",0,function(e){return(0,a.checkDocument)(e),f([{test:function(e){return"client"===e.name.value},remove:!0}],e)},"removeDirectivesFromDocument",0,f])}]);
2
3//# sourceMappingURL=1_a6i7ck60coz.js.map
4//# chunkId=01a0eebe-21d6-76b2-a87a-8971069fd028

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.