PageSourceSearch

https://static.znanierussia.ru/production/_next/static/chunks/1zipy1ql-m4ml.js

js znanierussia.ru collected 2026-10-02 02:58:02 UTC 131,685 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="9e3a2300-c65f-ac78-4adc-7068ca4ac5a9")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,737548,e=>{"use strict";var t,r=e.i(654536),n=e.i(47013),i=e.i(610499),o=e.i(824627);function a(e){return new r.ApolloLink(function(t,r){return new i.Observable(function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){if(i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}))){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(i)},error:function(i){if(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:r})){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}})})}var s=r.ApolloLink;function c(e){var t=s.call(this)||this;return t.link=a(e),t}(0,o.__extends)(c,s),c.prototype.request=function(e,t){return this.link.request(e,t)};var u=e.i(942933),l=e.i(948771),f=e.i(984423),h=e.i(572646);let p=(0,f.createHttpMetrics)(),d=e=>(0,f.getStatusClassFromError)(e),v=async(e,t)=>{var r;let n,i=(r=t?.method??(e instanceof Request?e.method:void 0),"GET"===(n=r?.toUpperCase())||"POST"===n||"PUT"===n||"PATCH"===n||"DELETE"===n||"HEAD"===n||"OPTIONS"===n?n:void 0),o=(0,f.normalizeOperationLabelState)({source:"fetch"},void 0),a=(0,f.buildHttpLabels)({method:i,route:"graphql",operation:o.label,service:"apollo"}),s=(0,f.createHttpInstrumentationContext)(a);p.register.incStarted((0,f.getHttpStartLabels)(s));try{let r=await fetch(e,t),n=(0,f.getHttpFinalizedLabels)(s,r?r.status:"other"),i=(Date.now()-s.startedAt)/1e3;return p.register.decInFlight((0,f.getHttpStartLabels)(s)),p.register.incCompleted(n),p.register.observeDuration(n,i),r}catch(r){let e=(0,f.getHttpFinalizedLabels)(s,d(r)),t=(Date.now()-s.startedAt)/1e3;throw p.register.decInFlight((0,f.getHttpStartLabels)(s)),p.register.incCompleted(e),p.register.observeDuration(e,t),r}},y=new n.HttpLink({uri:"https://api.znanierussia.ru/graphql",credentials:"include",fetch:l.IS_SERVER?v:void 0,fetchOptions:{next:{revalidate:600}}}),m=(t=async(e,{headers:t})=>{let r=l.IS_SERVER?"":await (0,h.maybeGetSdk)()?.auth.getAccessToken()||"";return{headers:{...t,...r?{Authorization:`Bearer ${r}`}:{}}}},new r.ApolloLink(function(e,r){var n=(0,o.__rest)(e,[]);return new i.Observable(function(i){var o,a=!1;return Promise.resolve(n).then(function(r){return t(r,e.getContext())}).then(e.setContext).then(function(){a||(o=r(e).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){a=!0,o&&o.unsubscribe()}})})),g=a(()=>{});new r.ApolloLink((e,t)=>{let r=(0,f.normalizeOperationLabelState)({source:"apollo-link",operationName:e.operationName},e.operationName),n=(0,f.createHttpInstrumentationContext)({method:"POST",route:"graphql",operation:r.label,service:"apollo"});p.register.incStarted((0,f.getHttpStartLabels)(n));let o=!1,a=e=>{if(o)return;o=!0;let t=(0,f.getHttpFinalizedLabels)(n,e),r=(Date.now()-n.startedAt)/1e3;p.register.decInFlight((0,f.getHttpStartLabels)(n)),p.register.incCompleted(t),p.register.observeDuration(t,r)},s=t(e);return s?new i.Observable(e=>{let t=s.subscribe({next:t=>{o||a("2xx"),e.next(t)},error:t=>{a(d(t)),e.error(t)},complete:()=>{o||a("2xx"),e.complete()}});return()=>{o||a("other"),t.unsubscribe()}}):(a("other"),s)});let b=new r.ApolloLink((e,t)=>{let r=e?.query?.definitions.find(e=>e&&"object"==typeof e&&"kind"in e&&"OperationDefinition"===e.kind);return r?.kind==="OperationDefinition"&&r?.operation==="mutation"&&(e.variables=(0,u.omitDeep)(e.variables,"__typename")),t(e)});e.s(["authLink",0,m,"errorLink",0,g,"httpLink",0,y,"typenameLink",0,b],737548)},482578,380893,e=>{"use strict";var t=e.i(824627),r=e.i(878823),n=e.i(610499),i=e.i(947995),o=e.i(261301),a=e.i(268914),s=e.i(214054),c=e.i(977932),u=e.i(535448),l=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,r.wrap)(o.getFragmentQueryDocument,{max:i.cacheSizes["cac
2he.fragmentQueryDocuments"]||1e3,cache:s.WeakCache})}return 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){return void 0===r&&(r=!!e.optimistic),this.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,s=e.fragmentName,c=e.from,l=e.optimistic,f=(0,t.__rest)(e,["fragment","fragmentName","from","optimistic"]),h=this.getFragmentDoc(o,s),p=(0,t.__assign)((0,t.__assign)({},f),{returnPartialData:!0,id:void 0===c||"string"==typeof c?c:this.identify(c),query:h,optimistic:void 0===l||l});return new n.Observable(function(e){return i.watch((0,t.__assign)((0,t.__assign)({},p),{immediate:!0,callback:function(t){if(!(r&&(0,u.equalByQuery)(h,{data:null==r?void 0:r.result},{data:t.result}))){var n={data:t.result,complete:!!t.complete};t.missing&&(n.missing=(0,a.mergeDeepArray)(t.missing.map(function(e){return e.missing}))),r=t,e.next(n)}}}))})},e.prototype.readFragment=function(e,r){return void 0===r&&(r=!!e.optimistic),this.read((0,t.__assign)((0,t.__assign)({},e),{query:this.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,o=e.fragmentName,a=(0,t.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:r,result:n}))},e.prototype.updateQuery=function(e,r){return this.batch({update:function(n){var i=n.readQuery(e),o=r(i);return null==o?i:(n.writeQuery((0,t.__assign)((0,t.__assign)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,r){return this.batch({update:function(n){var i=n.readFragment(e),o=r(i);return null==o?i:(n.writeFragment((0,t.__assign)((0,t.__assign)({},e),{data:o})),o)}})},e}();!1!==globalThis.__DEV__&&(l.prototype.getMemoryInternals=c.getApolloCacheMemoryInternals),e.s(["ApolloCache",0,l],482578);var f=function(e){function r(t,n,i,o){var a,s=e.call(this,t)||this;if(s.message=t,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)(a={})[s.path[c]]=s.missing,s.missing=a}else s.missing=s.path;return s.__proto__=r.prototype,s}return(0,t.__extends)(r,e),r}(Error);e.s(["MissingFieldError",0,f],380893)},759475,e=>{"use strict";var t=e.i(824627);e.i(351377);var r=e.i(903453),n=e.i(878823),i=e.i(240957),o=e.i(482578),a=e.i(380893),s=e.i(352088),c=e.i(408582),u=e.i(683053),l=e.i(692842),f=e.i(877178),h=e.i(947995),p=e.i(847297),d=e.i(336419),v=e.i(20295),y=e.i(261301),m=e.i(130809),g=e.i(872324),b=e.i(532574),_=e.i(74584),w=e.i(371977),O=e.i(783381),S=e.i(163634),k=e.i(85171),E=e.i(268914),F=Object.create(null);function R(e){var t=JSON.stringify(e);return F[t]||(F[t]=Object.create(null))}function D(e){var t=R(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var i=function(e,t){return n.readField(t,e)},o=n.keyObject=T(e,function(e){var o=q(n.storeObject,e,i);return void 0===o&&t!==n.storeObject&&w.hasOwn.call(t,e[0])&&(o=q(t,e,I)),(0,r.invariant)(void 0!==o,4,e.join("."),t),o});return"".concat(n.typename,":").concat(JSON.stringify(o))})}function x(e){var t=R(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(T(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,_.isNonEmptyArray)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&(0,c.argumentsObjectFromField)(s,i);return u&&q(u,e.slice(1))}return}if("$"===o){var l=r.slice(1);if(i&&w.hasOwn.call(i,l)){var f=e.slice(0);return f[0]=l,q(i,f)}return}if(t)return q(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function T(e,t){var r=new E.DeepMerger;return(function e(t){var r=R(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,_.isArray)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,_.isArray)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function I(e,t){return e[t]}function q(e,t,r){return r=r||I,function e(t){return(0,O.isNonNullObject)(t)?(0,_.isArray)(t)?t.map(e):T(Object.keys(t).sort(),function(e){return q(t,e)}):t}(t.reduce(function e(t,n){return(0,_.isArray)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}
2function N(e){return void 0!==e.args?e.args:e.field?(0,c.argumentsObjectFromField)(e.field,e.variables):null}var P=function(){},C=function(e,t){return t.fieldName},j=function(e,t,r){return(0,r.mergeObjects)(e,t)},M=function(e,t){return t},A=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,t.__assign)({dataIdFromObject:w.defaultDataIdFromObject},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,r){var n,i,o=this,a=r&&(r.typename||(null==(n=r.storeObject)?void 0:n.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=r&&r.storeObject||e,c=(0,t.__assign)((0,t.__assign)({},r),{typename:a,storeObject:s,readField:r&&r.readField||function(){var e=L(arguments,s);return o.readField(e,{store:o.cache.data,variables:e.variables})}}),u=a&&this.getTypePolicy(a),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var f=l((0,t.__assign)((0,t.__assign)({},e),s),c);if((0,_.isArray)(f))l=D(f);else{i=f;break}}return i=i?String(i):void 0,c.keyObject?[i,c.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var r=this;Object.keys(e).forEach(function(n){var i=e[n],o=i.queryType,a=i.mutationType,s=i.subscriptionType,c=(0,t.__rest)(i,["queryType","mutationType","subscriptionType"]);o&&r.setRootTypename("Query",n),a&&r.setRootTypename("Mutation",n),s&&r.setRootTypename("Subscription",n),w.hasOwn.call(r.toBeAdded,n)?r.toBeAdded[n].push(c):r.toBeAdded[n]=[c]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?j:!1===t?M:e.merge}a(n,t.merge),n.keyFn=!1===i?P:(0,_.isArray)(i)?D(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,c=i.read,u=i.merge;n.keyFn=!1===s?C:(0,_.isArray)(s)?x(s):"function"==typeof s?s:n.keyFn,"function"==typeof c&&(n.read=c),a(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||C)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];t!==i&&((0,r.invariant)(!i||i===e,5,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=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(w.TypeOrFieldNameRegExp);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var r=this;if(!w.hasOwn.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(t,n){if(t.test(e)){var o=r.supertypeMap.get(n);o&&o.forEach(function(e){return i.add(e)})}})),i&&i.size&&i.forEach(function(e){var i=r.getTypePolicy(e),o=i.fields;Object.assign(n,(0,t.__rest)(i,["fields"])),Object.assign(n.fields,o)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(t){r.updateTypePolicy(e,t)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},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,n,i){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),c=[s],u=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&0>c.indexOf(t)&&c.push(t)},l=!!(n&&this.fuzzySubtypes.size),f=!1,h=0;h<c.length;++h){var p=c[h];if(p.has(a))return s.has(a)||(f&&!1!==globalThis.__DEV__&&r.invariant.warn(6,t,a),s.add(a)),!0;p.forEach(u),l&&h===c.length-1&&(0,w.selectionSetMatchesResult)(e.selectionSet,n,i)&&(l=!1,f=!0,this.fuzzySubtypes.forEac
2h(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,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=N(e);o;){var u=o(s,a);if((0,_.isArray)(u))o=x(u);else{t=u||n;break}}return(void 0===t&&(t=e.field?(0,c.storeKeyNameFromField)(e.field,e.variables):(0,c.getStoreKeyName)(n,N(e))),!1===t)?n:n===(0,w.fieldNameFromStoreName)(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),o=(0,w.fieldNameFromStoreName)(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var l=Q(this,r,e,t,t.store.getStorage((0,c.isReference)(r)?r.__ref:r,i));return k.cacheSlot.withValue(this.cache,u,[a,l])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),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 o=r.field,a=r.typename,s=r.merge;return s===j?V(n.store)(e,t):s===M?t:(n.overwrite&&(e=void 0),s(e,t,Q(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function Q(e,t,r,n,i){var o=e.getStoreFieldName(r),a=(0,w.fieldNameFromStoreName)(o),s=r.variables||n.variables,u=n.store,l=u.toReference,f=u.canRead;return{args:N(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:c.isReference,toReference:l,storage:i,cache:e.cache,canRead:f,readField:function(){return e.readField(L(arguments,t,s),n)},mergeObjects:V(n.store)}}function L(e,n,i){var o,a=e[0],s=e[1],c=e.length;return"string"==typeof a?o={fieldName:a,from:c>1?s:n}:(o=(0,t.__assign)({},a),w.hasOwn.call(o,"from")||(o.from=n)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&r.invariant.warn(7,(0,S.stringifyForDisplay)(Array.from(e))),void 0===o.variables&&(o.variables=i),o}function V(e){return function(n,i){if((0,_.isArray)(n)||(0,_.isArray)(i))throw(0,r.newInvariantError)(8);if((0,O.isNonNullObject)(n)&&(0,O.isNonNullObject)(i)){var o=e.getFieldValue(n,"__typename"),a=e.getFieldValue(i,"__typename");if(o&&a&&o!==a)return i;if((0,c.isReference)(n)&&(0,w.storeValueIsStoreObject)(i))return e.merge(n.__ref,i),n;if((0,w.storeValueIsStoreObject)(n)&&(0,c.isReference)(i))return e.merge(n,i.__ref),i;if((0,w.storeValueIsStoreObject)(n)&&(0,w.storeValueIsStoreObject)(i))return(0,t.__assign)((0,t.__assign)({},n),i)}return i}}function z(e,r,n){var i="".concat(r).concat(n),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===r&&e.deferred===n?e:(0,t.__assign)((0,t.__assign)({},e),{clientOnly:r,deferred:n})),o}var W=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,n){var o=this,a=n.query,s=n.result,u=n.dataId,f=n.variables,h=n.overwrite,p=(0,m.getOperationDefinition)(a),d=(0,w.makeProcessedFieldsMerger)();f=(0,t.__assign)((0,t.__assign)({},(0,m.getDefaultValues)(p)),f);var v=(0,t.__assign)((0,t.__assign)({store:e,written:Object.create(null),merge:function(e,t){return d.merge(e,t)},variables:f,varString:(0,l.canonicalStringify)(f)},(0,w.extractFragmentContext)(a,this.fragments)),{overwrite:!!h,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:s||Object.create(null),dataId:u,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:v});if(!(0,c.isReference)(y))throw(0,r.newInvariantError)(11,s);return v.incomingById.forEach(function(n,a){var s=n.storeObject,u=n.mergeTree,l=n.fieldNodeSet,f=(0,c.makeReference)(a);if(u&&u.map.size){var h=o.applyMerges(u,f,s,v);if((0,c.isReference)(h))return;s=h}if(!1!==globalThis.__DEV__&&!v.overwrite){var p=Object.create(null);l.forEach(function(e){e.selectionSet&&(p[e.name.value]=!0)});var d=function(e){var t=u&&u.map.get(e);return!!(t&&t.info&&t.info.merge)};
2Object.keys(s).forEach(function(e){!0!==p[(0,w.fieldNameFromStoreName)(e)]||d(e)||function(e,n,o,a){var s=function(e){var t=a.getFieldValue(e,o);return"object"==typeof t&&t},u=s(e);if(u){var l=s(n);if(!(!l||(0,c.isReference)(u)||(0,i.equal)(u,l)||Object.keys(u).every(function(e){return void 0!==a.getFieldValue(l,e)}))){var f=a.getFieldValue(e,"__typename")||a.getFieldValue(n,"__typename"),h=(0,w.fieldNameFromStoreName)(o),p="".concat(f,".").concat(h);if(!G.has(p)){G.add(p);var d=[];(0,_.isArray)(u)||(0,_.isArray)(l)||[u,l].forEach(function(e){var t=a.getFieldValue(e,"__typename");"string"!=typeof t||d.includes(t)||d.push(t)}),!1!==globalThis.__DEV__&&r.invariant.warn(14,h,f,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",p,(0,t.__assign)({},u),(0,t.__assign)({},l))}}}}(f,s,e,v.store)})}e.merge(a,s)}),e.retain(y.__ref),y},e.prototype.processSelectionSet=function(e){var n=this,i=e.dataId,o=e.result,a=e.selectionSet,u=e.context,l=e.mergeTree,f=this.cache.policies,h=Object.create(null),p=i&&f.rootTypenamesById[i]||(0,c.getTypenameFromResult)(o,a,u.fragmentMap)||i&&u.store.get(i,"__typename");"string"==typeof p&&(h.__typename=p);var d=function(){var e=L(arguments,h,u.variables);if((0,c.isReference)(e.from)){var r=u.incomingById.get(e.from.__ref);if(r){var n=f.readField((0,t.__assign)((0,t.__assign)({},e),{from:r.storeObject}),u);if(void 0!==n)return n}}return f.readField(e,u)},v=new Set;this.flattenFields(a,o,u,p).forEach(function(e,t){var i,a=o[(0,c.resultKeyNameFromField)(t)];if(v.add(t),void 0!==a){var u=f.getStoreFieldName({typename:p,fieldName:t.name.value,field:t,variables:e.variables}),y=U(l,u),m=n.processFieldValue(a,t,t.selectionSet?z(e,!1,!1):e,y),g=void 0;t.selectionSet&&((0,c.isReference)(m)||(0,w.storeValueIsStoreObject)(m))&&(g=d("__typename",m));var b=f.getMergeFunction(p,t.name.value,g);b?y.info={field:t,typename:p,merge:b}:H(l,u),h=e.merge(h,((i={})[u]=m,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||s.addTypenameToDocument.added(t)||f.getReadFunction(p,t.name.value)||!1===globalThis.__DEV__||r.invariant.error(12,(0,c.resultKeyNameFromField)(t),o)});try{var y=f.identify(o,{typename:p,selectionSet:a,fragmentMap:u.fragmentMap,storeObject:h,readField:d}),m=y[0],g=y[1];i=i||m,g&&(h=u.merge(h,g))}catch(e){if(!i)throw e}if("string"==typeof i){var b=(0,c.makeReference)(i),_=u.written[i]||(u.written[i]=[]);if(_.indexOf(a)>=0||(_.push(a),this.reader&&this.reader.isFresh(o,b,a,u)))return b;var O=u.incomingById.get(i);return O?(O.storeObject=u.merge(O.storeObject,h),O.mergeTree=function e(r,n){if(r===n||!n||K(n))return r;if(!r||K(r))return n;var i=r.info&&n.info?(0,t.__assign)((0,t.__assign)({},r.info),n.info):r.info||n.info,o=r.map.size&&n.map.size,a={info:i,map:o?new Map:r.map.size?r.map:n.map};if(o){var s=new Set(n.map.keys());r.map.forEach(function(t,r){a.map.set(r,e(t,n.map.get(r))),s.delete(r)}),s.forEach(function(t){a.map.set(t,e(n.map.get(t),r.map.get(t)))})}return a}(O.mergeTree,l),v.forEach(function(e){return O.fieldNodeSet.add(e)})):u.incomingById.set(i,{storeObject:h,mergeTree:K(l)?void 0:l,fieldNodeSet:v}),b}return h},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,_.isArray)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,U(n,o));return H(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,b.cloneDeep)(e):e},e.prototype.flattenFields=function(e,t,n,i){void 0===i&&(i=(0,c.getTypenameFromResult)(t,e,n.fragmentMap));var o=new Map,a=this.cache.policies,s=new d.Trie(!1);return!function e(u,l){var f=s.lookup(u,l.clientOnly,l.deferred);f.visited||(f.visited=!0,u.selections.forEach(function(s){if((0,g.shouldInclude)(s,n.variables)){var u=l.clientOnly,f=l.deferred;if(!(u&&f)&&(0,_.isNonEmptyArray)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var r=(0,c.argumentsObjectFromField)(e,n.variables);r&&!1===r.if||(f=!0)}}),(0,c.isField)(s)){var h=o.get(s);h&&(u=u&&h.clientOnly,f=f&&h.deferred),o.set(s,z(n,u,f))}else{var p=(0,y.getFragmentFromSelection)(s,n.lookupFragment);if(!p&&s.kind===v.Kind.FRAGMENT_SPREAD)throw(0,r.newInvariantError)(13,s.name.value);p&&a.fragmentMatches(p,i,t,n.variables)&&e(p.selectionSet,z(n,u,f))}}}))}(e,n),o},e.prototype.applyMerges=function(e,n,i,o,a){var s=this;if(e.map.size&&!(0,c.isReference)(i)){var u,l,f=!(0,_.isArray)(i)&&((0,c.isReference)(n)||(0,w.storeV
2alueIsStoreObject)(n))?n:void 0,h=i;f&&!a&&(a=[(0,c.isReference)(f)?f.__ref:f]);var p=function(e,t){return(0,_.isArray)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=p(f,t),i=p(h,t);if(void 0!==i){a&&a.push(t);var c=s.applyMerges(e,n,i,o,a);c!==i&&(l=l||new Map).set(t,c),a&&(0,r.invariant)(a.pop()===t)}}),l&&(i=(0,_.isArray)(h)?h.slice(0):(0,t.__assign)({},h),l.forEach(function(e,t){i[t]=e}))}return e.info?this.cache.policies.runMergeFunction(n,i,e.info,o,a&&(u=o.store).getStorage.apply(u,a)):i},e}(),B=[];function U(e,t){var r=e.map;return r.has(t)||r.set(t,B.pop()||{map:new Map}),r.get(t)}function K(e){return!e||!(e.info||e.map.size)}function H(e,t){var r=e.map,n=r.get(t);n&&K(n)&&(B.push(n),r.delete(t))}var G=new Set,J=e.i(992248),Y=e.i(977932),$=function(e){function o(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new u.DocumentTransform(s.addTypenameToDocument),r.assumeImmutableResults=!0,r.makeVar=k.makeVar,r.txCount=0,r.config=(0,w.normalizeConfig)(t),r.addTypename=!!r.config.addTypename,r.policies=new A({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,t.__extends)(o,e),o.prototype.init=function(){var e=this.data=new J.EntityStore.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},o.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,i=this.config.fragments;this.storeWriter=new W(this,this.storeReader=new p.StoreReader({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,w.shouldCanonizeResults)(this.config),canon:e?void 0:r&&r.canon,fragments:i}),i),this.maybeBroadcastWatch=(0,n.wrap)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||h.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if((0,J.supportsResultCaching)(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,l.canonicalStringify)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},o.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},o.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},o.prototype.read=function(e){var r=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,t.__assign)((0,t.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==r&&r})).result||null}catch(e){if(e instanceof a.MissingFieldError)return null;throw e}},o.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},o.prototype.modify=function(e){if(w.hasOwn.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()}},o.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,t.__assign)((0,t.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},o.prototype.watch=function(e){var t=this;return this.watches.size||(0,k.recallCache)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,k.forgetCache)(t),t.maybeBroadcastWatch.forget(e)}},o.prototype.gc=function(e){l.canonicalStringify.reset(),f.print.reset(),this.addTypenameTransform.resetCache(),null==(t=this.config.fragments)||t.resetCaches();var t,r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},o.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},o.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},o.prototype.identify=function(e){if((0,c.isReference)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&r.invariant.warn(e)}},o.prototype.evict=function(e){if(!e.id){if(w.hasOwn.call(e,"id"))return!1;e=(0,t.__assign)((0,t.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},o.prototype.reset=function(e){var t=this;return this.init(),l.canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEac
2h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,k.forgetCache)(this)):this.broadcastWatches(),Promise.resolve()},o.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},o.prototype.batch=function(e){var r,n=this,i=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,c=e.onWatchUpdated,u=function(e){var t=n.data,o=n.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return r=i(n)}finally{--n.txCount,n.data=t,n.optimisticData=o}},l=new Set;return c&&!this.txCount&&this.broadcastWatches((0,t.__assign)((0,t.__assign)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,u):!1===a?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&l.size?(this.broadcastWatches((0,t.__assign)((0,t.__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 n.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),r},o.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},o.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},o.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},o.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},o.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},o.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,i.equal)(r.result,n.result)||e.callback(e.lastDiff=n,r))},o}(o.ApolloCache);!1!==globalThis.__DEV__&&($.prototype.getMemoryInternals=Y.getInMemoryCacheMemoryInternals),e.s(["InMemoryCache",0,$],759475)},847297,371977,992248,e=>{"use strict";var t,r,n=e.i(824627);e.i(351377);var i=e.i(903453),o=e.i(20295),a=e.i(878823),s=e.i(408582),c=e.i(872324),u=e.i(352088),l=e.i(130809),f=e.i(261301),h=e.i(548464),p=e.i(268914),d=e.i(783381),v=e.i(954770),y=e.i(842052),m=e.i(692842),g=e.i(947995),b=e.i(290300),_=e.i(240957),w=e.i(336419),O=e.i(74584),S=Object.prototype.hasOwnProperty;function k(e){return null==e}function E(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=k(n)?k(i)?void 0:{_id:i}:{id:n}),k(n)&&!k(i)&&(n=i),!k(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var F={dataIdFromObject:E,addTypename:!0,resultCaching:!0,canonizeResults:!1};function R(e){var t=e.canonizeResults;return void 0===t?F.canonizeResults:t}function D(e,t){return(0,s.isReference)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var x=/^[_a-z][_0-9a-z]*/i;function T(e){var t=e.match(x);return t?t[0]:e}function I(e,t){var r=(0,f.createFragmentMap)((0,l.getFragmentDefinitions)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}e.s(["TypeOrFieldNameRegExp",0,x,"defaultDataIdFromObject",0,E,"extractFragmentContext",0,I,"fieldNameFromStoreName",0,T,"getTypenameFromStoreObject",0,D,"hasOwn",0,S,"makeProcessedFieldsMerger",0,function(){return new p.DeepMerger},"normalizeConfig",0,function(e){return(0,y.compact)(F,e)},"selectionSetMatchesResult",0,function e(t,r,n){return!!(0,d.isNonNullObject)(r)&&((0,O.isArray)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,s.isField)(t)&&(0,c.shouldInclude)(t,n)){var i=(0,s.resultKeyNameFromField)(t);return S.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))},"shouldCanonizeResults",0,R,"storeValueIsStoreObject",0,function(e){return(0,d.isNonNullObject)(e)&&!(0,s.isReference)(e)&&!(0,O.isArray)(e)}],371977);var q=Object.create(null),N=function(){return q},P=Object.create(null),C=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,h.maybeDeepFreeze)((0,s.isReference)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,s.isReference)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,s.makeReference)(e);if((0,s.isReference)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,s.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),S.call(this.data,e)){var r=this.data[e];if(r&&S.call(r,t))return r[t]}return"__typename"===t&&S.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof A?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),S.call(this.data,e))?this.data[e]:this instanceof A?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,s.isReference)(e)&&(e=e.__ref),(0,s.isReference)(t)&&(t=t.__ref);
2var o="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){(0,i.invariant)("string"==typeof r,1);var c=new p.DeepMerger(L).merge(o,a);if(this.data[r]=c,c!==o&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);o||(u.__exists=1),Object.keys(a).forEach(function(e){if(!o||o[e]!==c[e]){u[e]=1;var t=T(e);t===e||n.policies.hasKeyArgs(c.__typename,t)||(u[t]=1),void 0!==c[e]||n instanceof A||delete c[e]}}),u.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[r]===c.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,o=this.lookup(e);if(o){var a=Object.create(null),c=!1,u=!0,l={DELETE:q,INVALIDATE:P,isReference:s.isReference,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,s.makeReference)(e)}:t,{store:r})}};if(Object.keys(o).forEach(function(f){var p=T(f),d=o[f];if(void 0!==d){var v="function"==typeof t?t:t[f]||t[p];if(v){var y=v===N?q:v((0,h.maybeDeepFreeze)(d),(0,n.__assign)((0,n.__assign)({},l),{fieldName:p,storeFieldName:f,storage:r.getStorage(e,f)}));if(y===P)r.group.dirty(e,f);else if(y===q&&(y=void 0),y!==d&&(a[f]=y,c=!0,d=y,!1!==globalThis.__DEV__)){var m=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&i.invariant.warn(2,e),!0};if((0,s.isReference)(y))m(y);else if(Array.isArray(y))for(var g=!1,b=void 0,_=0,w=y;_<w.length;_++){var O=w[_];if((0,s.isReference)(O)){if(g=!0,m(O))break}else"object"==typeof O&&O&&r.policies.identify(O)[0]&&(b=O);if(g&&void 0!==b){!1!==globalThis.__DEV__&&i.invariant.warn(3,b);break}}}}void 0!==d&&(u=!1)}}),c)return this.merge(e,a),u&&(this instanceof A?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 o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=N,n):N)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(S.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof A&&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){S.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&&S.call(e,r)||t.delete(r)}),e){var r=e.__META,i=(0,n.__rest)(e,["__META"]);
2Object.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 A?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){S.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 A;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!S.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,s.isReference)(e)&&(t[e.__ref]=!0),(0,d.isNonNullObject)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,d.isNonNullObject)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),j=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,b.dep)():null,this.keyMaker=new w.Trie(v.canUseWeakMap)}
2,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=T(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 M(e,t){V(e)&&e.group.depend(t,"__exists")}r=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new j(void 0===n||n))||this;return o.stump=new Q(o),o.storageTrie=new w.Trie(v.canUseWeakMap),i&&o.replace(i),o}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=C||(C={})),t.Root=r;var A=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}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,_.equal)(n[r],i[r])||t.group.dirty(e,r)}
2):(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 S.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}(C),Q=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new j(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}(A);function L(e,t,r){var n=e[r],i=t[r];return(0,_.equal)(n,i)?n:i}function V(e){return!!(e instanceof C&&e.group.caching)}e.s(["EntityStore",0,C,"maybeDependOnExistenceOfEntity",0,M,"supportsResultCaching",0,V],992248);var z=e.i(380893),W=function(){function e(){this.known=new(v.canUseWeakSet?WeakSet:Set),this.pool=new w.Trie(v.canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,d.isNonNullObject)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,d.isNonNullObject)(e)){var t=(0,d.isNonNullObject)(e)?(0,O.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,d.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 o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var c=a.length;s.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var u=i.object=Object.create(o);this.known.add(u),s.sorted.forEach(function(e,t){u[e]=a[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 B(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var U=function(){function e(e){var t=this;this.knownResults=new(v.canUseWeakMap?WeakMap:Map),this.config=(0,y.compact)(e,{addTypename:!1!==e.addTypename,canonizeResults:R(e)}),this.canon=e.canon||new W,this.executeSelectionSet=(0,a.wrap)(function(e){var r,i=e.context.canonizeResults,o=B(e);o[3]=!i;var a=(r=t.executeSelectionSet).peek.apply(r,o);return a?i?(0,n.__assign)((0,n.__assign)({},a),{result:t.canon.admit(a.result)}):a:(M(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||g.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:B,makeCacheKey:function(e,t,r,n){if(V(r.store))return r.store.makeCacheKey(e,(0,s.isReference)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,a.wrap)(function(e){return M(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||g.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(V(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new W},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,i=e.query,o=e.rootId,a=e.variables,c=e.returnPartialData,u=e.canonizeResults,f=void 0===u?this.config.canonizeResults:u,h=this.config.cache.policies;a=(0,n.__assign)((0,n.__assign)({},(0,l.getDefaultValues)((0,l.getQueryDefinition)(i))),a);var p=(0,s.makeReference)(void 0===o?"ROOT_QUERY":o),d=this.executeSelectionSet({selectionSet:(0,l.getMainDefinition)(i).selectionSet,objectOrReference:p,enclosingRef:p,context:(0,n.__assign)({store:r,query:i,policies:h,variables:a,varString:(0,m.canonicalStringify)(a),canonizeResults:f},I(i,this.config.fragments))});if(d.missing&&(t=[new z.MissingFieldError(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(d.missing),d.missing,i,a)],!(void 0===c||c)))throw t[0];return{result:d.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(V(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,l=e.enclosingRef,d=e.context;if((0,s.isReference)(a)&&!d.policies.rootTypenamesById[a.__ref]&&!d.store.has(a.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(a.__ref," object")};var v=d.variables,y=d.policies,m=d.store.getFieldValue(a,"__typename"),g=[],b=new p.DeepMerger;function _(e,r){var n;return e.missing&&(t=b.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof m&&!y.rootIdsByTypename[m]&&g.push({__typename:m});var w=new Set(n.selections);
2w.forEach(function(e){var n,h;if((0,c.shouldInclude)(e,v))if((0,s.isField)(e)){var p=y.readField({fieldName:e.name.value,field:e,variables:d.variables,from:a},d),S=(0,s.resultKeyNameFromField)(e);void 0===p?u.addTypenameToDocument.added(e)||(t=b.merge(t,((n={})[S]="Can't find field '".concat(e.name.value,"' on ").concat((0,s.isReference)(a)?a.__ref+" object":"object "+JSON.stringify(a,null,2)),n))):(0,O.isArray)(p)?p.length>0&&(p=_(r.executeSubSelectedArray({field:e,array:p,enclosingRef:l,context:d}),S)):e.selectionSet?null!=p&&(p=_(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:p,enclosingRef:(0,s.isReference)(p)?p:l,context:d}),S)):d.canonizeResults&&(p=r.canon.pass(p)),void 0!==p&&g.push(((h={})[S]=p,h))}else{var k=(0,f.getFragmentFromSelection)(e,d.lookupFragment);if(!k&&e.kind===o.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(9,e.name.value);k&&y.fragmentMatches(k,m)&&k.selectionSet.selections.forEach(w.add,w)}});var S={result:(0,p.mergeDeepArray)(g),missing:t},k=d.canonizeResults?this.canon.admit(S):(0,h.maybeDeepFreeze)(S);return k.result&&this.knownResults.set(k.result,n),k},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,a=e.enclosingRef,c=e.context,u=new p.DeepMerger;function l(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(c.store.canRead)),o=o.map(function(e,t){return null===e?null:(0,O.isArray)(e)?l(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:c}),t):n.selectionSet?l(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,s.isReference)(e)?e:a,context:c}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,d.isNonNullObject)(r)&&((0,i.invariant)(!(0,s.isReference)(r),10,D(e,r),t.name.value),Object.values(r).forEach(n.add,n))})}}(c.store,n,e),e)}),{result:c.canonizeResults?this.canon.admit(o):o,missing:t}},e}();e.s(["StoreReader",0,U],847297)},193715,e=>{"use strict";var t=e.i(824627);e.i(351377);var r=e.i(903453),n=e.i(654536),i=e.i(320113),o=e.i(850125),a=e.i(47013),s=e.i(240957),c=e.i(872324),u=e.i(770970),l=e.i(352088),f=e.i(692842),h=e.i(130809),p=e.i(79274),d=e.i(610499),v=e.i(622938),y=e.i(74584),m=e.i(316591),g=e.i(252059),b=e.i(408582),_=e.i(783381),w=e.i(683053),O=e.i(674846),S=e.i(143704),k=e.i(532574),E=e.i(842052),F=e.i(569936),R=e.i(590410),D=e.i(535448),x=Object.assign,T=Object.hasOwnProperty,I=function(e){function n(r){var n=r.queryManager,i=r.queryInfo,o=r.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=N)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=n,a.waitForOwnResult=C(o.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a);var s=n.defaultOptions.watchQuery,c=(void 0===s?{}:s).fetchPolicy,u=void 0===c?"cache-first":c,l=o.fetchPolicy,f=void 0===l?u:l,p=o.initialFetchPolicy,d=void 0===p?"standby"===f?u:f:p;a.options=(0,t.__assign)((0,t.__assign)({},o),{initialFetchPolicy:d,fetchPolicy:f}),a.queryId=i.queryId||n.generateQueryId();var v=(0,h.getOperationDefinition)(a.query);return a.queryName=v&&v.name&&v.name.value,a}return(0,t.__extends)(n,e),Object.defineProperty(n.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),n.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},n.prototype.resetDiff=function(){this.queryInfo.resetDiff()},n.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var r=this.getLastResult(!0),n=this.queryInfo.networkStatus||r&&r.networkStatus||S.NetworkStatus.ready,i=(0,t.__assign)((0,t.__assign)({}
2,r),{loading:(0,S.isNetworkRequestInFlight)(n),networkStatus:n}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if(C(a)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(i.data=c.result),(0,s.equal)(i.data,{})&&(i.data=void 0),c.complete?(delete i.partial,c.complete&&i.networkStatus===S.NetworkStatus.loading&&("cache-first"===a||"cache-only"===a)&&(i.networkStatus=S.NetworkStatus.ready,i.loading=!1)):i.partial=!0,!1===globalThis.__DEV__||c.complete||this.options.partialRefetch||i.loading||i.data||i.error||P(c.missing)}return e&&this.updateLastResult(i),i},n.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!(0,D.equalByQuery)(this.query,this.last.result,e,this.variables):!(0,s.equal)(this.last.result,e))||t&&!(0,s.equal)(this.last.variables,t)},n.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,s.equal)(r.variables,this.variables)))return r[e]},n.prototype.getLastResult=function(e){return this.getLast("result",e)},n.prototype.getLastError=function(e){return this.getLast("error",e)},n.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},n.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},n.prototype.refetch=function(e){var n,i={pollInterval:0},o=this.options.fetchPolicy;if("cache-and-network"===o?i.fetchPolicy=o:"no-cache"===o?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&T.call(e,"variables")){var a=(0,h.getQueryDefinition)(this.query),c=a.variableDefinitions;c&&c.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||r.invariant.warn(20,e,(null==(n=a.name)?void 0:n.value)||a)}return e&&!(0,s.equal)(this.options.variables,e)&&(i.variables=this.options.variables=(0,t.__assign)((0,t.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(i,S.NetworkStatus.refetch)},n.prototype.fetchMore=function(e){var n=this,i=(0,t.__assign)((0,t.__assign)({},e.query?e:(0,t.__assign)((0,t.__assign)((0,t.__assign)((0,t.__assign)({},this.options),{query:this.options.query}),e),{variables:(0,t.__assign)((0,t.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var o=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):i.query;var a=this.queryInfo,s=a.networkStatus;a.networkStatus=S.NetworkStatus.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var c=new Set,u=null==e?void 0:e.updateQuery,l="no-cache"!==this.options.fetchPolicy;return l||(0,r.invariant)(u,21),this.queryManager.fetchQuery(o,i,S.NetworkStatus.fetchMore).then(function(r){if(n.queryManager.removeQuery(o),a.networkStatus===S.NetworkStatus.fetchMore&&(a.networkStatus=s),l)n.queryManager.cache.batch({update:function(t){var o=e.updateQuery;o?t.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(e){return o(e,{fetchMoreResult:r.data,variables:i.variables})}):t.writeQuery({query:i.query,variables:i.variables,data:r.data})},onWatchUpdated:function(e){c.add(e.query)}});else{var f=n.getLast("result"),h=u(f.data,{fetchMoreResult:r.data,variables:i.variables});n.reportResult((0,t.__assign)((0,t.__assign)({},f),{data:h}),n.variables)}return r}).finally(function(){l&&!c.has(n.query)&&q(n)})},n.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&r.invariant.error(22,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},n.prototype.setOptions=function(e){return this.reobserve(e)},n.prototype.silentSetOptions=function(e){var t=(0,E.compact)(this.options,e||{});x(this.options,t)},n.prototype.setVariables=function(e){return(0,s.equal)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},S.NetworkStatus.setVariables):Promise.resolve()},n.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},n.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},n.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},n.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},n.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},n.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(!n||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==n){(0,r.invariant)(n,23),(t||(this.pollingInfo={})).interval=n;var i=function(){var t,r;
2e.pollingInfo&&((0,S.isNetworkRequestInFlight)(e.queryInfo.networkStatus)||(null==(r=(t=e.options).skipPollAttempt)?void 0:r.call(t))?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},S.NetworkStatus.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(i,t.interval))};o()}}},n.prototype.updateLastResult=function(e,r){void 0===r&&(r=this.variables);var n=this.getLastError();return n&&this.last&&!(0,s.equal)(r,this.last.variables)&&(n=void 0),this.last=(0,t.__assign)({result:this.queryManager.assumeImmutableResults?e:(0,k.cloneDeep)(e),variables:r},n?{error:n}:null)},n.prototype.reobserveAsConcast=function(e,r){var n=this;this.isTornDown=!1;var i=r===S.NetworkStatus.refetch||r===S.NetworkStatus.fetchMore||r===S.NetworkStatus.poll,o=this.options.variables,a=this.options.fetchPolicy,c=(0,E.compact)(this.options,e||{}),u=i?c:x(this.options,c),l=this.transformDocument(u.query);this.lastQuery=l,!i&&(this.updatePolling(),e&&e.variables&&!(0,s.equal)(e.variables,o)&&"standby"!==u.fetchPolicy&&(u.fetchPolicy===a||"function"==typeof u.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",u),void 0===r&&(r=S.NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=C(u.fetchPolicy));var f=function(){n.concast===d&&(n.waitForOwnResult=!1)},h=u.variables&&(0,t.__assign)({},u.variables),p=this.fetch(u,r,l),d=p.concast,v=p.fromLink,y={next:function(e){(0,s.equal)(n.variables,h)&&(f(),n.reportResult(e,h))},error:function(e){(0,s.equal)(n.variables,h)&&((0,O.isApolloError)(e)||(e=new O.ApolloError({networkError:e})),f(),n.reportError(e,h))}};return i||!v&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=y),d.addObserver(y),d},n.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},n.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},n.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},n.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&(0,F.iterateObserversSafely)(this.observers,"next",e)},n.prototype.reportError=function(e,r){var n=(0,t.__assign)((0,t.__assign)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:S.NetworkStatus.error,loading:!1});this.updateLastResult(n,r),(0,F.iterateObserversSafely)(this.observers,"error",this.last.error=e)},n.prototype.hasObservers=function(){return this.observers.size>0},n.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},n.prototype.transformDocument=function(e){return this.queryManager.transform(e)},n}(d.Observable);function q(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return(this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function N(e){!1!==globalThis.__DEV__&&r.invariant.error(24,e.message,e.stack)}function P(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&r.invariant.debug(25,e)}function C(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,R.fixObservableSubclass)(I);var j=e.i(268914),M=new((e.i(954770)).canUseWeakMap?WeakMap:Map);function A(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return M.set(e,(M.get(e)+1)%1e15),r.apply(this,arguments)})}function Q(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var L=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;M.has(r)||(M.set(r,0),A(r,"evict"),A(r,"modify"),A(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||S.NetworkStatus.loading;return this.variables&&this.networkStatus!==S.NetworkStatus.loading&&!(0,s.equal)(this.variables,e.variables)&&(t=S.NetworkStatus.setVariables),(0,s.equal)(e.variables,this.variables)||(this.lastDiff=void 0),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.reset=function(){Q(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,s.equal)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},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&&(null==(t=this.observableQuery)?void 0:t.getLastError()))&&(this.updateLastDiff(e),this.dirty||(0,s.equal)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():q(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
2Q(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,S.isNetworkRequestInFlight)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},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)}});this.lastWatch&&(0,s.equal)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===M.get(this.cache)&&(0,s.equal)(t,r.variables)&&(0,s.equal)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new j.DeepMerger,a=(0,y.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,y.isNonEmptyArray)(e.incremental)){var c=(0,u.mergeIncrementalData)(this.getDiff().result,e);e.data=c}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=o.merge(l.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(V(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:M.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(r.variables),c=o.diff(a);!i.stopped&&(0,s.equal)(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(c,a),c.complete&&(e.data=c.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=S.NetworkStatus.ready},e.prototype.markError=function(e){return this.networkStatus=S.NetworkStatus.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function V(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!(0,p.graphQLResultHasError)(e);return!n&&r&&e.data&&(n=!0),n}var z=e.i(877178),W=e.i(336419),B=e.i(715e3),U=e.i(947995),K=Object.prototype.hasOwnProperty,H=Object.create(null),G=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new B.AutoCleanedWeakCache(U.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new W.Trie(!1);var r=new w.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;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)(26))},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,o,a,s,c,u,l=e.mutation,f=e.variables,h=e.optimisticResponse,d=e.updateQueries,y=e.refetchQueries,m=void 0===y?[]:y,g=e.awaitRefetchQueries,b=void 0!==g&&g,_=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,F=void 0===E?(null==(u=this.defaultOptions.mutate)?void 0:u.errorPolicy)||"none":E,R=e.keepRootFields,D=e.context;return(0,t.__generator)(this,function(e){switch(e.label){case 0:if((0,r.invariant)(l,27),(0,r.invariant)("network-only"===k||"no-cache"===k,28),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,D)];case 1:f=e.sent(),e.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[n]={mutation:l,variables:f,loading:!0,error:null}),a=h&&this.markMutationOptimistic(h,{mutationId:n,document:l,variables:f,fetchPolicy:k,errorPolicy:F,context:D,updateQueries:d,update:_,keepRootFields:R}),this.broadcastQueries(),s=this,[2,new Promise(function(e,r){return(0,v.asyncMap)(s.getObservableFromLink(l,(0,t.__assign)((0,t.__assign)({},D),{optimisticResponse:a?h:void 0}),f,{},!1),function(e){if((0,p.graphQLResultHasError)(e)&&"none"===F)throw new O.ApolloError({graphQLErrors:(0,p.getGraphQLErrorsFromResult)(e)});o&&(o.loading=!1,o.error=null);var r=(0,t.__assign)({},e);return"function"==typeof m&&(m=m(r)),"ignore"===F&&(0,p.graphQLResultHasError)(r)&&delete r.errors,s.markMutationResult({mutationId:n,result:r,document:l,variables:f,fetchPolicy:k,errorPolicy:F,context:D,update:_,updateQueries:d,awaitRefetchQueries:b,refetchQueries:m,removeOptimistic:a?n:void 0,onQueryUpdated:w,keepRootFields:R})}).subscribe({next:function(t){s.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){o&&(o.loading=!1,o.error=e),a&&s.cache.removeOptimistic(n),s.broadcastQueries(),r(e instanceof O.ApolloError?e:new O.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,r){var n=this;void 0===r&&(r=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&V(i,e.errorPolicy)){if((0,u.isExecutionPatchIncrementalResult)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}
2),(0,u.isExecutionPatchIncrementalResult)(i)&&(0,y.isNonEmptyArray)(i.incremental)){var s=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),c=void 0;s.result&&(c=(0,u.mergeIncrementalData)(s.result,i)),void 0!==c&&(i.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach(function(e,t){var a=e.observableQuery,s=a&&a.queryName;if(s&&K.call(l,s)){var c=l[s],u=n.queries.get(t),f=u.document,p=u.variables,d=r.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),v=d.result;if(d.complete&&v){var y=c(v,{mutationResult:i,queryName:f&&(0,h.getOperationName)(f)||void 0,queryVariables:p});y&&o.push({result:y,dataId:"ROOT_QUERY",query:f,variables:p})}}})}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(r){a||o.forEach(function(e){return r.write(e)});var s=e.update,c=!(0,u.isExecutionPatchResult)(i)||(0,u.isExecutionPatchIncrementalResult)(i)&&!i.hasNext;if(s){if(!a){var l=r.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(i=(0,t.__assign)((0,t.__assign)({},i),{data:l.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}c&&s(r,i,{context:e.context,variables:e.variables})}a||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,o="function"==typeof e?e(n.variables,{IGNORE:H}):e;return o!==H&&(this.cache.recordOptimisticTransaction(function(e){try{i.markMutationResult((0,t.__assign)((0,t.__assign)({},n),{result:{data:o}}),e)}catch(e){!1!==globalThis.__DEV__&&r.invariant.error(e)}},n.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(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,c.hasClientExports)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,c.hasDirectives)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,l.removeDirectivesFromDocument)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,h.getDefaultValues)((0,h.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 L(this),i=new I({queryManager:this,queryInfo:n,options:e});return i.lastQuery=r,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;return void 0===n&&(n=this.generateQueryId()),(0,r.invariant)(e.query,29),(0,r.invariant)("Document"===e.query.kind,30),(0,r.invariant)(!e.returnPartialData,31),(0,r.invariant)(!e.pollInterval,32),this.fetchQuery(n,(0,t.__assign)((0,t.__assign)({},e),{query:this.transform(e.query)})).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)(33)),this.queries.forEac
2h(function(e){e.observableQuery?e.networkStatus=S.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,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?o.set(e,!1):(0,b.isDocumentNode)(e)?o.set(n.transform(e),!1):(0,_.isNonNullObject)(e)&&e.query&&a.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(a))&&(i.set(r,n),s&&o.set(s,!0),a&&o.set(a,!0))}}),a.size&&a.forEach(function(e){var o=(0,g.makeUniqueId)("legacyOneTimeQuery"),a=n.getQuery(o).init({document:e.query,variables:e.variables}),s=new I({queryManager:n,queryInfo:a,options:(0,t.__assign)((0,t.__assign)({},e),{fetchPolicy:"network-only"})});(0,r.invariant)(s.queryId===o),a.setObservableQuery(s),i.set(o,s)}),!1!==globalThis.__DEV__&&o.size&&o.forEach(function(e,t){e||!1===globalThis.__DEV__||r.invariant.warn("string"==typeof t?34:35,t)}),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 o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,a=e.variables,s=e.context,c=void 0===s?{}:s,u=e.extensions,l=void 0===u?{}:u;r=this.transform(r),a=this.getVariables(r,a);var f=function(e){return t.getObservableFromLink(r,c,e,l).map(function(i){"no-cache"!==n&&(V(i,o)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=(0,p.graphQLResultHasError)(i),s=(0,O.graphQLResultHasProtocolErrors)(i);if(a||s){var c={};if(a&&(c.graphQLErrors=i.errors),s&&(c.protocolErrors=i.extensions[O.PROTOCOL_ERRORS_SYMBOL]),"none"===o||s)throw new O.ApolloError(c)}return"ignore"===o&&delete i.errors,i})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,a,c).then(f);return new d.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(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,r,n,o,a){var s,c,u=this;void 0===a&&(a=null!=(s=null==r?void 0:r.queryDeduplication)?s:this.queryDeduplication);var l=this.getDocumentInfo(e),p=l.serverQuery,y=l.clientQuery;if(p){var g=this.inFlightLinkObservables,b=this.link,_={query:p,variables:n,operationName:(0,h.getOperationName)(p)||void 0,context:this.prepareContext((0,t.__assign)((0,t.__assign)({},r),{forceFetch:!a})),extensions:o};if(r=_.context,a){var w=(0,z.print)(p),O=(0,f.canonicalStringify)(n),S=g.lookup(w,O);if(!(c=S.observable)){var k=new m.Concast([(0,i.execute)(b,_)]);c=S.observable=k,k.beforeNext(function(){g.remove(w,O)})}}else c=new m.Concast([(0,i.execute)(b,_)])}else c=new m.Concast([d.Observable.of({data:{}})]),r=this.prepareContext(r);return y&&(c=(0,v.asyncMap)(c,function(e){return u.localState.runResolvers({document:y,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(0,v.asyncMap)(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=(0,p.getGraphQLErrorsFromResult)(o),s=a.length>0,c=r.errorPolicy;if(n>
2=e.lastRequestId){if(s&&"none"===c)throw e.markError(new O.ApolloError({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:S.NetworkStatus.ready};return s&&"none"===c&&(u.data=void 0),s&&"ignore"!==c&&(u.errors=a,u.networkStatus=S.NetworkStatus.error),u},function(t){var r=(0,O.isApolloError)(t)?t:new O.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,o,a=this;void 0===r&&(r=S.NetworkStatus.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),c=this.getQuery(e),u=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?u&&u.fetchPolicy||"cache-first":l,h=t.errorPolicy,p=void 0===h?u&&u.errorPolicy||"none":h,d=t.returnPartialData,v=t.notifyOnNetworkStatusChange,y=t.context,g=Object.assign({},t,{query:n,variables:s,fetchPolicy:f,errorPolicy:p,returnPartialData:void 0!==d&&d,notifyOnNetworkStatusChange:void 0!==v&&v,context:void 0===y?{}:y}),b=function(e){g.variables=e;var n=a.fetchQueryByPolicy(c,g,r);return"standby"!==g.fetchPolicy&&n.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),n},_=function(){return a.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){_(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(g.query).hasClientExports)i=new m.Concast(this.localState.addExportedVariables(g.query,g.variables,g.context).then(b).then(function(e){return e.sources})),o=!0;else{var w=b(g.variables);o=w.fromLink,i=new m.Concast(w.sources)}return i.promise.then(_,_),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,g.makeUniqueId)("refetchQueries"):void 0:a,c=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof L&&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,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=c(i,a,o)}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.fetchQueryByPolicy=function(e,r,n){var i=this,o=r.query,a=r.variables,c=r.fetchPolicy,u=r.refetchWritePolicy,l=r.errorPolicy,f=r.returnPartialData,h=r.context,p=r.notifyOnNetworkStatusChange,v=e.networkStatus;e.init({document:o,variables:a,networkStatus:n});var y=function(){return e.getDiff()},m=function(r,n){void 0===n&&(n=e.networkStatus||S.NetworkStatus.loading);var c=r.result;!1===globalThis.__DEV__||f||(0,s.equal)(c,{})||P(r.missing);var u=function(e){return d.Observable.of((0,t.__assign)({data:e,loading:(0,S.isNetworkRequestInFlight)(n),networkStatus:n},r.complete?null:{partial:!0}))};return c&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:c},context:h,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===l&&n===S.NetworkStatus.refetch&&Array.isArray(r.missing)?u(void 0):u(c)},g="no-cache"===c?0:n===S.NetworkStatus.refetch&&"merge"!==u?1:2,b=function(){return i.getResultsFromLink(e,g,{query:o,variables:a,context:h,fetchPolicy:c,errorPolicy:l})},_=p&&"number"==typeof v&&v!==n&&(0,S.isNetworkRequestInFlight)(n);switch(c){default:case"cache-first":var w=y();if(w.complete)return{fromLink:!1,sources:[m(w,e.markReady())]};if(f||_)return{fromLink:!0,sources:[m(w),b()]};return{fromLink:!0,sources:[b()]};case"cache-and-network":var w=y();if(w.complete||f||_)return{fromLink:!0,sources:[m(w),b()]};return{fromLink:!0,sources:[b()]};case"cache-only":return{fromLink:!1,sources:[m(y(),e.markReady())]};case"network-only":if(_)return{fromLink:!0,sources:[m(y()),b()]};return{fromLink:!0,sources:[b()]};case"no-cache":if(_)return{fromLink:!0,sources:[m(e.getDiff()),b()]};return{fromLink:!0,sources:[b()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new L(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}(),J=e.i(744146),Y=e.i(20295);function $(e){return e.kind===Y.Kind.FIELD||e.kind===Y.Kind.FRAGMENT_SPREAD||e.kind===Y.Kind.INLINE_FRAGMENT}var X=e.i(261301),Z=e.i(85171),ee=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,j.mergeDeep)(t.resolvers,e)}):this.resolvers=(0,j.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,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,t.__generator)(this,function(e){return r?[2,this.resolveDocument(r,n.data,i,o,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,c.hasDirectives)(["client"],e)&&this.resolvers?e:null}
2,e.prototype.serverQuery=function(e){return(0,l.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,J.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 J.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,l.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,o,a){var s,c,u,l,f,p,d,v,y,m;return void 0===n&&(n={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,t.__generator)(this,function(g){return s=(0,h.getMainDefinition)(e),c=(0,h.getFragmentDefinitions)(e),u=(0,X.createFragmentMap)(c),l=this.collectSelectionsToResolve(s,u),p=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",d=this,v=d.cache,y=d.client,m={fragmentMap:u,context:(0,t.__assign)((0,t.__assign)({},n),{cache:v,client:y}),variables:i,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,r,m).then(function(e){return{result:e,exportedVariables:m.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,n,i,o){return(0,t.__awaiter)(this,void 0,void 0,function(){var a,s,u,l,f,h=this;return(0,t.__generator)(this,function(p){return a=o.fragmentMap,s=o.context,u=o.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||o.selectionsToResolve.has(e))&&(0,c.shouldInclude)(e,u)?(0,b.isField)(e)?[2,this.resolveField(e,n,i,o).then(function(t){var r;void 0!==t&&l.push(((r={})[(0,b.resultKeyNameFromField)(e)]=t,r))})]:((0,b.isInlineFragment)(e)?f=e:(f=a[e.name.value],(0,r.invariant)(f,18,e.name.value)),f&&f.typeCondition&&(h=f.typeCondition.name.value,o.fragmentMatcher(i,h,s)))?[2,this.resolveSelectionSet(f.selectionSet,n,i,o).then(function(e){l.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(f)).then(function(){return(0,j.mergeDeepArray)(l)})]})})},e.prototype.resolveField=function(e,r,n,i){return(0,t.__awaiter)(this,void 0,void 0,function(){var o,a,s,c,u,l,f,h,p,d=this;return(0,t.__generator)(this,function(t){return n?(o=i.variables,c=(a=e.name.value)!==(s=(0,b.resultKeyNameFromField)(e)),l=Promise.resolve(u=n[s]||n[a]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=n.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[c?a:s])&&(l=Promise.resolve(Z.cacheSlot.withValue(this.cache,p,[n,(0,b.argumentsObjectFromField)(e,o),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,o,a=null!=(o=null==(n=e.directives)?void 0:n.some(function(e){return"client"===e.name.value}))&&o;return Array.isArray(t)?d.resolveSubSelectedArray(e,r||a,t,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,r||a,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(o){if(!i.has(o)){var a=new Set;i.set(o,a),(0,J.visit)(o,{Directive:function(e,t,r,i,o){"client"===e.name.value&&o.forEach(function(e){n(e)&&$(e)&&a.add(e)})},FragmentSpread:function(i,o,s,c,u){var l=t[i.name.value];(0,r.invariant)(l,19,i.name.value);var f=e(l);f.size>0&&(u.forEach(function(e){n(e)&&$(e)&&a.add(e)}),a.add(i),f.forEach(function(e){a.add(e)}))}})}return i.get(o)}(e)},e}(),et=e.i(70159),er=e.i(977932),en=!1,ei=function(){function e(e){var i,s=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cac
2he)throw(0,r.newInvariantError)(15);var c=e.uri,u=e.credentials,l=e.headers,f=e.cache,h=e.documentTransform,p=e.ssrMode,d=void 0!==p&&p,v=e.ssrForceFetchDelay,y=void 0===v?0:v,m=e.connectToDevTools,g=e.queryDeduplication,b=void 0===g||g,_=e.defaultOptions,w=e.defaultContext,O=e.assumeImmutableResults,S=void 0===O?f.assumeImmutableResults:O,k=e.resolvers,E=e.typeDefs,F=e.fragmentMatcher,R=e.name,D=e.version,x=e.devtools,T=e.link;T||(T=c?new a.HttpLink({uri:c,credentials:u,headers:l}):n.ApolloLink.empty()),this.link=T,this.cache=f,this.disableNetworkFetches=d||y>0,this.queryDeduplication=b,this.defaultOptions=_||Object.create(null),this.typeDefs=E,this.devtoolsConfig=(0,t.__assign)((0,t.__assign)({},x),{enabled:null!=(i=null==x?void 0:x.enabled)?i:m}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),y&&setTimeout(function(){return s.disableNetworkFetches=!1},y),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=o.version,this.localState=new ee({cache:f,client:this,resolvers:k,fragmentMatcher:F}),this.queryManager=new G({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:w,documentTransform:h,queryDeduplication:b,ssrMode:d,clientAwareness:{name:R,version:D},localState:this.localState,assumeImmutableResults:S,onBroadcast:this.devtoolsConfig.enabled?function(){s.devToolsHookCb&&s.devToolsHookCb({action:{},state:{queries:s.queryManager.getQueryStore(),mutations:s.queryManager.mutationStore||{}},dataWithOptimisticResults:s.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return 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,!en&&!1!==globalThis.__DEV__&&(en=!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,et.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"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,et.mergeOptions)(this.defaultOptions.query,e)),(0,r.invariant)("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,t.__assign)((0,t.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,et.mergeOptions)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},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 o=Promise.all(i);return o.queries=n,o.results=i,o.catch(function(e){!1!==globalThis.__DEV__&&r.invariant.debug(17,e)}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
2,enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(ei.prototype.getMemoryInternals=er.getApolloClientMemoryInternals),e.s(["ApolloClient",0,ei],193715)},535448,e=>{"use strict";var t=e.i(824627),r=e.i(240957),n=e.i(261301),i=e.i(130809),o=e.i(408582),a=e.i(872324);function s(e){return!!e.directives&&e.directives.some(c)}function c(e){return"nonreactive"===e.name.value}e.s(["equalByQuery",0,function(e,c,u,l){var f=c.data,h=(0,t.__rest)(c,["data"]),p=u.data,d=(0,t.__rest)(u,["data"]);return(0,r.default)(h,d)&&function e(t,i,c,u){if(i===c)return!0;var l=new Set;return t.selections.every(function(t){if(l.has(t)||(l.add(t),!(0,a.shouldInclude)(t,u.variables)||s(t)))return!0;if((0,o.isField)(t)){var f=(0,o.resultKeyNameFromField)(t),h=i&&i[f],p=c&&c[f],d=t.selectionSet;if(!d)return(0,r.default)(h,p);var v=Array.isArray(h),y=Array.isArray(p);if(v!==y)return!1;if(v&&y){var m=h.length;if(p.length!==m)return!1;for(var g=0;g<m;++g)if(!e(d,h[g],p[g],u))return!1;return!0}return e(d,h,p,u)}var b=(0,n.getFragmentFromSelection)(t,u.fragmentMap);if(b)return!!s(b)||e(b.selectionSet,i,c,u)})}((0,i.getMainDefinition)(e).selectionSet,f,p,{fragmentMap:(0,n.createFragmentMap)((0,i.getFragmentDefinitions)(e)),variables:l})}])},654536,610499,261301,408582,130809,e=>{"use strict";e.i(351377);var t=e.i(903453);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var o=function(){return"function"==typeof Symbol},a=function(e){return o()&&!!Symbol[e]},s=function(e){return a(e)?Symbol[e]:"@@"+e};o()&&!a("observable")&&(Symbol.observable=Symbol("observable"));var c=s("iterator"),u=s("observable"),l=s("species");function f(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function h(e){var t=e.constructor;return void 0!==t&&null===(t=t[l])&&(t=void 0),void 0!==t?t:w}function p(e){p.log?p.log(e):setTimeout(function(){throw e})}function d(e){Promise.resolve().then(function(){try{e()}catch(e){p(e)}})}function v(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=f(t,"unsubscribe");r&&r.call(t)}}catch(e){p(e)}}function y(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function m(e,t,r){e._state="running";var n=e._observer;try{var i=f(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(y(e),i)i.call(n,r);else throw r;break;case"complete":y(e),i&&i.call(n)}}catch(e){p(e)}"closed"===e._state?v(e):"running"===e._state&&(e._state="ready")}function g(e,t,r){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:r});if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],d(function(){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(m(e,t[r].type,t[r].value),"closed"!==e._state);++r);}});return}m(e,t,r)}}var b=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new _(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(y(this),v(this))},i(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),_=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){g(this._subscription,"next",e)},t.error=function(e){g(this._subscription,"error",e)},t.complete=function(){g(this._subscription,"complete")},i(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),w=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new b(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e)return void n(TypeError(e+" is not a function"));function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(h(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(h(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=h(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(this);return new i(function(t){var n,o=0;return!function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]
2))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=h(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[u]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var i=f(t,u);if(i){var o=i.call(t);if(Object(o)!==o)throw TypeError(o+" is not an object");return o instanceof w&&o.constructor===n?o:new n(function(e){return o.subscribe(e)})}if(a("iterator")&&(i=f(t,c)))return new n(function(e){d(function(){if(!e.closed){for(var n,o=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return r(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,void 0)}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(n=o()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){d(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){d(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},i(e,null,[{key:l,get:function(){return this}}]),e}();o()&&Object.defineProperty(w,Symbol("extensions"),{value:{symbol:u,hostReportError:p},configurable:!0}),e.s(["Observable",0,w],610499);var O=e.i(824627),S=e.i(783381);function k(e,r){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof r)return r(n);var i=r&&r[n];return(0,t.invariant)(i,76,n),i||null;default:return null}}e.s(["createFragmentMap",0,function(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t},"getFragmentFromSelection",0,k,"getFragmentQueryDocument",0,function(e,r){var n=r,i=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,t.newInvariantError)(74,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&i.push(e)}),void 0===n&&((0,t.invariant)(1===i.length,75,i.length),n=i[0].name.value),(0,O.__assign)((0,O.__assign)({},e),{definitions:(0,O.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}],261301);var E=e.i(692842);function F(e,r,n,i){if("IntValue"===n.kind||"FloatValue"===n.kind)e[r.value]=Number(n.value);else if("BooleanValue"===n.kind||"StringValue"===n.kind)e[r.value]=n.value;else if("ObjectValue"===n.kind){var o={};n.fields.map(function(e){return F(o,e.name,e.value,i)}),e[r.value]=o}else if("Variable"===n.kind){var a=(i||{})[n.name.value];e[r.value]=a}else if("ListValue"===n.kind)e[r.value]=n.values.map(function(e){var t={};return F(t,r,e,i),t[r.value]});else if("EnumValue"===n.kind)e[r.value]=n.value;else if("NullValue"===n.kind)e[r.value]=null;else throw(0,t.newInvariantError)(85,r.value,n.kind)}var R=["connection","include","skip","client","rest","export","nonreactive"],D=E.canonicalStringify,x=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key)if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;else{var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};
2return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(D(i),")")}var o=e;if(t){var a=D(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===R.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(D(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=D;return D=e,t}});function T(e){return e.alias?e.alias.value:e.name.value}function I(e){return"Field"===e.kind}function q(e){(0,t.invariant)(e&&"Document"===e.kind,77);var r=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,t.newInvariantError)(78,e.kind);return e});return(0,t.invariant)(r.length<=1,79,r.length),e}function N(e){return q(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function P(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function C(e,t){return t?t(e):w.of()}function j(e){return"function"==typeof e?new A(e):e}function M(e){return e.request.length<=1}e.s(["argumentsObjectFromField",0,function(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return F(r,e.name,e.value,t)}),r}return null},"getStoreKeyName",0,x,"getTypenameFromResult",0,function e(t,r,n){for(var i,o=0,a=r.selections;o<a.length;o++){var s=a[o];if(I(s)){if("__typename"===s.name.value)return t[T(s)]}else i?i.push(s):i=[s]}if("string"==typeof t.__typename)return t.__typename;if(i)for(var c=0,u=i;c<u.length;c++){var s=u[c],l=e(t,k(s,n).selectionSet,n);if("string"==typeof l)return l}},"isDocumentNode",0,function(e){return(0,S.isNonNullObject)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)},"isField",0,I,"isInlineFragment",0,function(e){return"InlineFragment"===e.kind},"isReference",0,function(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)},"makeReference",0,function(e){return{__ref:String(e)}},"resultKeyNameFromField",0,T,"storeKeyNameFromField",0,function(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return F(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return F(n,r,i,t)})),x(e.name.value,n,r)},"valueToObjectRepresentation",0,F],408582),e.s(["checkDocument",0,q,"getDefaultValues",0,function(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&F(t,e.variable.name,e.defaultValue)}),t},"getFragmentDefinition",0,function(e){(0,t.invariant)("Document"===e.kind,81),(0,t.invariant)(e.definitions.length<=1,82);var r=e.definitions[0];return(0,t.invariant)("FragmentDefinition"===r.kind,83),r},"getFragmentDefinitions",0,function(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})},"getMainDefinition",0,function(e){q(e);for(var r,n=0,i=e.definitions;n<i.length;n++){var o=i[n];if("OperationDefinition"===o.kind){var a=o.operation;if("query"===a||"mutation"===a||"subscription"===a)return o}"FragmentDefinition"!==o.kind||r||(r=o)}if(r)return r;throw(0,t.newInvariantError)(84)},"getOperationDefinition",0,N,"getOperationName",0,P,"getQueryDefinition",0,function(e){var r=N(e);return(0,t.invariant)(r&&"query"===r.operation,80),r}],130809);var A=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return w.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(j).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=j(r),o=j(n||new e(C));return Object.assign(new e(M(i)&&M(o)?function(e){return t(e)?i.request(e)||w.of():o.request(e)||w.of()}:function(e,r){return t(e)?i.request(e,r)||w.of():o.request(e,r)||w.of()}),{left:i,right:o})},e.execute=function(e,r){var n,i,o,a,s;return e.request((o=r.context,(i={variables:(n=function(e){for(var r=["query","operationName","variables","extensions","context"],n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];if(0>r.indexOf(o))throw(0,t.newInvariantError)(44,o)}return e}(r)).variables||{},extensions:n.extensions||{},operationName:n.operationName,query:n.query}).operationName||(i.operationName="string"!=typeof i.query?P(i.query)||void 0:""),a=i,s=(0,O.__assign)({},o),Object.defineProperty(a,"setContext",{enumerable:!1,value:function(e){s="function"==typeof e?(0,O.__assign)((0,O.__assign)({},s),e(s)):(0,O.__assign)((0,O.__assign)({},s),e)}}),Object.defineProperty(a,"getContext",{enumerable:!1,value:function(){return(0,O.__assign)({},s)}}),a))||w.of()},e.concat=function(r,n){var i=j(r);if(M(i))return!1!==globalThis.__DEV__&&t.invariant.warn(36,i),i;var o=j(n);return Object.assign(new e(M(o)?function(e){return i.request(e,function(e){return o.request(e)||w.of()})||w.of()}:function(e,t){return i.request(e,function(e){return o.request(e,t)||w.of()})||w.of()}),{left:i,right:o})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(C)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,r){throw(0,t.newInvariantError)(37)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}();e.s(["ApolloLink",0,A],654536)},320113,e=>{"use strict";var t=e.i(654536).ApolloLink.execute;e.s(["execute",0,t])},604586,e=>{"use strict";var t=e.i(654536).ApolloLink.from;e.s(["from",0,t])},47013,79274,622938,569936,590410,316591,e=>{"use strict";var t=e.i(824627),r=e.i(654536);e.i(351377);var n=e.i(903453),i=e.i(610499),o=e.i(872324),a=e.i(748546),s=e.i(453225),c=e.i(203213),u=e.i(685706),l=e.i(734231),f=e.i(854072),h=e.i(216533),p=e.i(638162),d=e.i(575961),v=e.i(130809),y=e.i(352088),m=(0,d.maybe)(function(){return fetch}),g=function(e){void 0===e&&(e={});var g=e.uri,b=void 0===g?"/graphql":g,_=e.fetch,w=e.print,O=void 0===w?l.defaultPrinter:w,S=e.includeExtensions,k=e.preserveHeaderCase,E=e.useGETForQueries,F=e.includeUnusedVariables,R=void 0!==F&&F,D=(0,t.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,u.checkFetcher)(_||m);var x={http:{includeExtensions:S,preserveHeaderCase:k},options:D.fetchOptions,credentials:D.credentials,headers:D.headers};return new r.ApolloLink(function(e){var r,u,g=(0,s.selectURI)(e,b),w=e.getContext(),S={};if(w.clientAwareness){var k=w.clientAwareness,F=k.name,D=k.version;F&&(S["apollographql-client-name"]=F),D&&(S["apollographql-client-version"]=D)}var T=(0,t.__assign)((0,t.__assign)({},S),w.headers),I={http:w.http,options:w.fetchOptions,credentials:w.credentials,headers:T};if((0,o.hasDirectives)(["client"],e.query)){var q=(0,y.removeClientSet
2sFromDocument)(e.query);if(!q)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=q}var N=(0,l.selectHttpOptionsAndBodyInternal)(e,O,l.fallbackHttpConfig,x,I),P=N.options,C=N.body;C.variables&&!R&&(C.variables=(0,p.filterOperationVariables)(C.variables,e.query)),!P.signal&&"u">typeof AbortController&&(P.signal=(u=new AbortController).signal);var j="OperationDefinition"===(r=(0,v.getMainDefinition)(e.query)).kind&&"subscription"===r.operation,M=(0,o.hasDirectives)(["defer"],e.query);if(E&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(P.method="GET"),M||j){P.headers=P.headers||{};var A="multipart/mixed;";j&&M&&!1!==globalThis.__DEV__&&n.invariant.warn(39),j?A+="boundary=graphql;subscriptionSpec=1.0,application/json":M&&(A+="deferSpec=20220824,application/json"),P.headers.accept=A}if("GET"===P.method){var Q=(0,f.rewriteURIForGET)(g,C),L=Q.newURI,V=Q.parseError;if(V)return(0,h.fromError)(V);g=L}else try{P.body=(0,a.serializeFetchParameter)(C,"Payload")}catch(e){return(0,h.fromError)(e)}return new i.Observable(function(t){var r=_||(0,d.maybe)(function(){return fetch})||m,n=t.next.bind(t);return r(g,P).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()}})})},b=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,b],47013);var _=e.i(74584),w=e.i(770970);function O(e){var t=(0,_.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];return(0,w.isExecutionPatchIncrementalResult)(e)&&(0,_.isNonEmptyArray)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function S(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}e.s(["getGraphQLErrorsFromResult",0,O,"graphQLResultHasError",0,function(e){var t=O(e);return(0,_.isNonEmptyArray)(t)}],79274),e.s(["asyncMap",0,function(e,t,r){return new i.Observable(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var a={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}],622938),e.s(["iterateObserversSafely",0,S],569936);var k=e.i(954770);function E(e){function t(t){Object.defineProperty(e,t,{value:i.Observable})}return k.canUseSymbol&&Symbol.species&&t(Symbol.species),t("@@species"),e}function F(e){return e&&"function"==typeof e.then}e.s(["fixObservableSubclass",0,E],590410);var R=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),S(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),S(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?F(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"),S(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 i.Observable(t)]),F(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}(i.Observable);E(R),e.s(["Concast",0,R],316591)},203213,770970,685706,734231,854072,216533,638162,e=>{"use strict";var t=e.i(824627),r=e.i(655542),n=e.i(955070),i=e.i(674846),o=e.i(783381),a=e.i(74584),s=e.i(268914);function c(e){return"incremental"in e}function u(e){return(0,o.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,a.isNonEmptyArray)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}
2r=n.merge(r,t)}),r}],770970);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 o,a,s,c,l,h,p,d,v,y,m,g,b,_,w,O,S,k,E,F,R,D,x;return(0,t.__generator)(this,function(T){switch(T.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");o=new TextDecoder("utf-8"),a=null==(x=e.headers)?void 0:x.get("content-type"),s="boundary=",c=(null==a?void 0:a.includes(s))?null==a?void 0:a.substring((null==a?void 0:a.indexOf(s))+s.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",l="\r\n--".concat(c),h="",p=(0,r.responseIterator)(e),d=!0,T.label=1;case 1:if(!d)return[3,3];return[4,p.next()];case 2:for(y=(v=T.sent()).value,m=v.done,g="string"==typeof y?y:o.decode(y),b=h.length-l.length+1,d=!m,h+=g,_=h.indexOf(l,b);_>-1;){if(w=void 0,w=(R=[h.slice(0,_),h.slice(_+l.length)])[0],h=R[1],O=w.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}(w.slice(0,O))["content-type"])&&-1===S.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(k=w.slice(O)){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(F={},"payload"in E){if(1===Object.keys(E).length&&null===E.payload)return[2];F=(0,t.__assign)({},E.payload)}"errors"in E&&(F=(0,t.__assign)((0,t.__assign)({},F),{extensions:(0,t.__assign)((0,t.__assign)({},"extensions"in F?F.extensions:null),((D={})[i.PROTOCOL_ERRORS_SYMBOL]=E.errors,D))})),n(F)}else n(E);else if(1===Object.keys(E).length&&"hasNext"in E&&!E.hasNext)return[2]}_=h.indexOf(l)}return[3,1];case 3:return[2]}})})}],203213),e.i(351377);var h=e.i(903453);e.s(["checkFetcher",0,function(e){if(!e&&"u"<typeof fetch)throw(0,h.newInvariantError)(38)}],685706);var p=e.i(877178);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,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o={},a={};n.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),a=(0,t.__assign)((0,t.__assign)({},a),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var r={};
2return 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,a.preserveHeaderCase));var s=e.operationName,c=e.extensions,u=e.variables,l=e.query,f={operationName:s,variables:u};return a.includeExtensions&&(f.extensions=c),a.includeQuery&&(f.query=r(l,p.print)),{options:o,body:f}}],734231);var d=e.i(748546);e.s(["rewriteURIForGET",0,function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=(0,d.serializeFetchParameter)(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=(0,d.serializeFetchParameter)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+r.join("&")+a}}],854072);var v=e.i(610499);e.s(["fromError",0,function(e){return new v.Observable(function(t){t.error(e)})}],216533);var y=e.i(744146);e.s(["filterOperationVariables",0,function(e,r){var n=(0,t.__assign)({},e),i=new Set(Object.keys(e));return(0,y.visit)(r,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&i.delete(e.name.value)}}
2),i.forEach(function(e){delete n[e]}),n}],638162)},748546,453225,655542,955070,e=>{"use strict";e.i(351377);var t=e.i(903453);e.s(["serializeFetchParameter",0,function(e,r){var n;try{n=JSON.stringify(e)}catch(e){var i=(0,t.newInvariantError)(40,r,e.message);throw i.parseError=e,i}return n}],748546),e.s(["selectURI",0,function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}],453225);var r=e.i(954770);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,o,a,s,c,u=e;if(e.body&&(u=e.body),t=u,r.canUseAsyncIteratorSymbol&&t[Symbol.asyncIterator])return o=u[Symbol.asyncIterator](),(i={next:function(){return o.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 a=u.arrayBuffer(),s=!1,c={next:function(){return s?Promise.resolve({value:void 0,done:!0}):(s=!0,new Promise(function(e,t){a.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,o=[],a=[];function s(e){if(!n){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function c(e){n=e,a.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){i=!0,a.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):o.length?e({value:o.shift(),done:!1}):i?e({value:void 0,done:!0}):void a.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.")}],655542),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}],955070)},532574,e=>{"use strict";var t=Object.prototype.toString;e.s(["cloneDeep",0,function(e){return function e(r,n){switch(t.call(r)){case"[object Array]":if((n=n||new Map).has(r))return n.get(r);var i=r.slice(0);return n.set(r,i),i.forEach(function(t,r){i[r]=e(t,n)}),i;case"[object Object]":if((n=n||new Map).has(r))return n.get(r);var o=Object.create(Object.getPrototypeOf(r));return n.set(r,o),Object.keys(r).forEach(function(t){o[t]=e(r[t],n)}),o;default:return r}}(e)}])},268914,e=>{"use strict";var t=e.i(824627),r=e.i(783381),n=Object.prototype.hasOwnProperty;function i(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new a,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var o=function(e,t,r){return this.merge(e[r],t[r])},a=function(){function e(e){void 0===e&&(e=o),this.reconciler=e,this.isObject=r.isNonNullObject,this.pastCopies=new Set}return e.prototype.merge=function(e,i){for(var o=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,r.isNonNullObject)(i)&&(0,r.isNonNullObject)(e)?(Object.keys(i).forEac
2h(function(r){if(n.call(e,r)){var s=e[r];if(i[r]!==s){var c=o.reconciler.apply(o,(0,t.__spreadArray)([e,i,r],a,!1));c!==s&&((e=o.shallowCopyForMerge(e))[r]=c)}}else(e=o.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,a,"mergeDeep",0,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(e)},"mergeDeepArray",0,i])},683053,e=>{"use strict";var t=e.i(336419),r=e.i(954770),n=e.i(130809);e.i(351377);var i=e.i(903453),o=e.i(214054),a=e.i(878823),s=e.i(947995);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,a.wrap)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var t=n.getCacheKey(e);if(t)return(0,i.invariant)(Array.isArray(t),69),c.lookupArray(t)},max:s.cacheSizes["documentTransform.cache"],cache:o.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])},872324,e=>{"use strict";e.i(351377);var t=e.i(903453),r=e.i(744146);function n(e,t,n){var i=new Set(e),o=i.size;return(0,r.visit)(t,{Directive:function(e){if(i.delete(e.name.value)&&(!n||!i.size))return r.BREAK}}),n?!i.size:i.size<o}e.s(["hasClientExports",0,function(e){return e&&n(["client","export"],e,!0)},"hasDirectives",0,n,"shouldInclude",0,function(e,r){var n,i,o=e.directives;return!o||!o.length||(i=[],(n=o)&&n.length&&n.forEach(function(e){if("skip"===(r=e.name.value)||"include"===r){var r,n=e.arguments,o=e.name.value;(0,t.invariant)(n&&1===n.length,71,o);var a=n[0];(0,t.invariant)(a.name&&"if"===a.name.value,72,o);var s=a.value;(0,t.invariant)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),73,o),i.push({directive:e,ifArgument:a})}}),i).every(function(e){var n=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=r&&r[i.value.name.value],(0,t.invariant)(void 0!==o,70,n.name.value)):o=i.value.value,"skip"===n.name.value?!o:o})}])},352088,e=>{"use strict";var t=e.i(824627);e.i(351377);var r=e.i(903453),n=e.i(744146),i=e.i(20295),o=e.i(130809),a=e.i(408582),s=e.i(261301),c=e.i(74584),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,a){(0,o.checkDocument)(a);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(86),null},y=0,m=a.definitions.length-1;m>=0;--m)a.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))}),function(e){var t=u.get(e.name.value);return!t&&f.size&&f.forEach(function(r,n){n(e)&&(t=r)}),t}),b=function(e){return(0,c.isNonEmptyArray)(e)&&e.map(g).some(function(e){return e&&e.remove})},_=new Map,w=!1,O={enter:function(e){if(b(e.directives))return w=!0,null}},S=(0,n.visit)(a,{Field:O,InlineFragment:O,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=v(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(b(e.directives))return w=!0,null;var o=v(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){_.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===_.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,w=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return w=!0,null}}});if(!w)return a;var k=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){k(d(t)).transitiveVars.forEac
2h(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)}),E.forEach(function(e){k(d(e)).fragmentSpreads.forEach(function(e){E.add(e)})});var F={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:F,FragmentDefinition:F,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,o.getOperationDefinition)(h)||(0,o.getFragmentDefinition)(h),(0,s.createFragmentMap)((0,o.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 o=e.selections;if(!(!o||o.some(function(e){return(0,a.isField)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,a.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)([],o,!0),[u],!1)})}}}})},{added:function(e){return e===u}});e.s(["addTypenameToDocument",0,h,"buildQueryFromSelectionSet",0,function(e){return"query"===(0,o.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,o.checkDocument)(e),f([{test:function(e){return"client"===e.name.value},remove:!0}],e)},"removeDirectivesFromDocument",0,f])},942933,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.omitDeep=void 0,r.omitDeep=(e,t)=>e instanceof Date?e:Array.isArray(e)?e.map(e=>(0,r.omitDeep)(e,t)):"object"==typeof e&&null!==e?Object.entries(e).reduce((e,[n,i])=>(n!==t&&(e[n]=(0,r.omitDeep)(i,t)),e),{}):e}]);
3
4//# debugId=9e3a2300-c65f-ac78-4adc-7068ca4ac5a9

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.