"use strict";(globalThis.webpackChunkverso=globalThis.webpackChunkverso||[]).push([[4909],{2135:(e,t,r)=>{r.d(t,{J1:()=>f,Nh:()=>h,VC:()=>d,gi:()=>p,qj:()=>y});var n=r(8674),i=r(66005),o=new Map,s=new Map,a=!0,u=!1;function c(e){return e.replace(/[\s,]+/g," ").trim()}function l(e){var t,r,l,f=c(e);if(!o.has(f)){var h=(0,i.qg)(e,{experimentalFragmentVariables:u,allowLegacyFragmentVariables:u});if(!h||"Document"!==h.kind)throw new Error("Not a valid GraphQL document.");o.set(f,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}((t=h,r=new Set,l=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,n=c((o=e.loc).source.body.substring(o.start,o.end)),i=s.get(t);i&&!i.has(n)?a&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):i||s.set(t,i=new Set),i.add(n),r.has(n)||(r.add(n),l.push(e))}else l.push(e);var o})),(0,n.__assign)((0,n.__assign)({},t),{definitions:l}))))}return o.get(f)}function f(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach((function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]})),l(n)}function h(){o.clear(),s.clear()}function p(){a=!1}function d(){u=!0}function y(){u=!1}var v,b=f,g=h,m=p,_=d,w=y;(v=f||(f={})).gql=b,v.resetCaches=g,v.disableFragmentWarnings=m,v.enableExperimentalFragmentVariables=_,v.disableExperimentalFragmentVariables=w,f.default=f},8674:(e,t,r)=>{r.r(t),r.d(t,{__addDisposableResource:()=>Q,__assign:()=>o,__asyncDelegator:()=>E,__asyncGenerator:()=>S,__asyncValues:()=>T,__await:()=>k,__awaiter:()=>d,__classPrivateFieldGet:()=>q,__classPrivateFieldIn:()=>C,__classPrivateFieldSet:()=>j,__createBinding:()=>v,__decorate:()=>a,__disposeResources:()=>A,__esDecorate:()=>c,__exportStar:()=>b,__extends:()=>i,__generator:()=>y,__importDefault:()=>D,__importStar:()=>R,__makeTemplateObject:()=>x,__metadata:()=>p,__param:()=>u,__propKey:()=>f,__read:()=>m,__rest:()=>s,__runInitializers:()=>l,__setFunctionName:()=>h,__spread:()=>_,__spreadArray:()=>O,__spreadArrays:()=>w,__values:()=>g,default:()=>F});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function a(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t,r,n,i,o){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,u=n.kind,c="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),h=!1,p=r.length-1;p>=0;p--){var d={};for(var y in n)d[y]="access"===y?{}:n[y];for(var y in n.access)d.access[y]=n.access[y];d.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(e||null))};var v=(0,r[p])("accessor"===u?{get:f.get,set:f.set}:f[c],d);if("accessor"===u){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(a=s(v.get))&&(f.get=a),(a=s(v.set))&&(f.set=a),(a=s(v.init))&&i.unshift(a)}else(a=s(v))&&("field"===u?i.unshift(a):f[c]=a)}l&&Object.defineProperty(l,n.name,f),h=!0}function l(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function h(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))}function y(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}var v=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function b(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||v(t,e,r)}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function w(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}function O(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function k(e){return this instanceof k?(this.v=e,this):new k(e)}function S(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||a(e,t)}))})}function a(e,t){try{(r=i[e](t)).value instanceof k?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}var r}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function E(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:k(e[n](t)),done:!1}:i?i(t):t}:i}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=g(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&v(t,e,r);return P(t,e),t}function D(e){return e&&e.__esModule?e:{default:e}}function q(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function j(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function C(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function Q(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var M="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function A(e){function t(t){e.error=e.hasError?new M(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const F={__extends:i,__assign:o,__rest:s,__decorate:a,__param:u,__metadata:p,__awaiter:d,__generator:y,__createBinding:v,__exportStar:b,__values:g,__read:m,__spread:_,__spreadArrays:w,__spreadArray:O,__await:k,__asyncGenerator:S,__asyncDelegator:E,__asyncValues:T,__makeTemplateObject:x,__importStar:R,__importDefault:D,__classPrivateFieldGet:q,__classPrivateFieldSet:j,__classPrivateFieldIn:C,__addDisposableResource:Q,__disposeResources:A}},55285:(e,t,r)=>{r.d(t,{k:()=>s});var n=r(8674),i=r(23899),o=r(65215),s=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,i.LV)(o.ct)}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,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.__assign)((0,n.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.__assign)((0,n.__assign)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,i=(0,n.__rest)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,o=e.fragmentName,s=(0,n.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(i,o),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var i=r.readQuery(e),o=t(i);return null==o?i:(r.writeQuery((0,n.__assign)((0,n.__assign)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var i=r.readFragment(e),o=t(i);return null==o?i:(r.writeFragment((0,n.__assign)((0,n.__assign)({},e),{data:o})),o)}})},e}()},31988:(e,t,r)=>{var n;r.d(t,{l:()=>n}),n||(n={})},24253:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(8674),i=function(e){function t(r,n,i,o){var s,a=e.call(this,r)||this;if(a.message=r,a.path=n,a.query=i,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var u=a.path.length-1;u>=0;--u)a.missing=((s={})[a.path[u]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return(0,n.__extends)(t,e),t}(Error)},73194:(e,t,r)=>{r.d(t,{$3:()=>f,I6:()=>y,T9:()=>_,Ui:()=>b,Xx:()=>v,d1:()=>w,gk:()=>g,iJ:()=>m,lq:()=>k,mv:()=>O,or:()=>p});var n=r(87945),i=r(67194),o=r(90075),s=r(45636),a=r(68869),u=r(92922),c=r(65215),l=r(84824),f=Object.prototype.hasOwnProperty;function h(e){return null==e}function p(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=h(n)?h(i)?void 0:{_id:i}:{id:n}),h(n)&&!h(i)&&(n=i),!h(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var d={dataIdFromObject:p,addTypename:!0,resultCaching:!0,canonizeResults:!1};function y(e){return(0,n.o)(d,e)}function v(e){var t=e.canonizeResults;return void 0===t?d.canonizeResults:t}function b(e,t){return(0,i.A_)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var g=/^[_a-z][_0-9a-z]*/i;function m(e){var t=e.match(g);return t?t[0]:e}function _(e,t,r){return!!(0,o.U)(t)&&((0,s.c)(t)?t.every((function(t){return _(e,t,r)})):e.selections.every((function(e){if((0,i.dt)(e)&&(0,a.MS)(e,r)){var n=(0,i.ue)(e);return f.call(t,n)&&(!e.selectionSet||_(e.selectionSet,t[n],r))}return!0})))}function w(e){return(0,o.U)(e)&&!(0,i.A_)(e)&&!(0,s.c)(e)}function O(){return new u.ZI}function k(e,t){var r=(0,c.JG)((0,l.zK)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}},65917:(e,t,r)=>{r.d(t,{D:()=>de});var n=r(8674),i=r(52687),o=r(23899),s=r(15381),a=r(55285),u=r(24253),c=r(29993),l=r(3902),f=r(67194),h=r(73061),p=r(2619),d=r(87945),y=r(84824),v=r(92922),b=r(68869),g=r(65215),m=r(21469),_=r(90075),w=r(32453),O=r(73194),k=Object.create(null),S=function(){return k},E=Object.create(null),T=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,m.G)((0,f.A_)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,f.A_)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,f.WU)(e);if((0,f.A_)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,f.WU)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,n.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),O.$3.call(this.data,e)){var r=this.data[e];if(r&&O.$3.call(r,t))return r[t]}return"__typename"===t&&O.$3.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof D?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),O.$3.call(this.data,e)?this.data[e]:this instanceof D?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,f.A_)(e)&&(e=e.__ref),(0,f.A_)(t)&&(t=t.__ref);var o="string"==typeof e?this.lookup(r=e):e,s="string"==typeof t?this.lookup(r=t):t;if(s){(0,i.V1)("string"==typeof r,1);var a=new v.ZI(j).merge(o,s);if(this.data[r]=a,a!==o&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);o||(u.__exists=1),Object.keys(s).forEach((function(e){if(!o||o[e]!==a[e]){u[e]=1;var t=(0,O.iJ)(e);t===e||n.policies.hasKeyArgs(a.__typename,t)||(u[t]=1),void 0!==a[e]||n instanceof D||delete a[e]}})),!u.__typename||o&&o.__typename||this.policies.rootTypenamesById[r]!==a.__typename||delete u.__typename,Object.keys(u).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,i=this.lookup(e);if(i){var o=Object.create(null),s=!1,a=!0,u={DELETE:k,INVALIDATE:E,isReference:f.A_,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,f.WU)(e)}:t,{store:r})}};if(Object.keys(i).forEach((function(c){var l=(0,O.iJ)(c),f=i[c];if(void 0!==f){var h="function"==typeof t?t:t[c]||t[l];if(h){var p=h===S?k:h((0,m.G)(f),(0,n.__assign)((0,n.__assign)({},u),{fieldName:l,storeFieldName:c,storage:r.getStorage(e,c)}));p===E?r.group.dirty(e,c):(p===k&&(p=void 0),p!==f&&(o[c]=p,s=!0,f=p))}void 0!==f&&(a=!1)}})),s)return this.merge(e,o),a&&(this instanceof D?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"),s=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,s?((n={})[s]=S,n):S)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(O.$3.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof D&&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){O.$3.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&&O.$3.call(e,r)||t.delete(r)})),e){var r=e.__META,i=(0,n.__rest)(e,["__META"]);Object.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 D?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){O.$3.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 D;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!O.$3.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,f.A_)(e)&&(t[e.__ref]=!0),(0,_.U)(e)&&Object.keys(e).forEach((function(t){var r=e[t];(0,_.U)(r)&&n.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),x=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,o.yN)():null,this.keyMaker=new w.b(p.et)},e.prototype.depend=function(e,t){if(this.d){this.d(P(e,t));var r=(0,O.iJ)(t);r!==t&&this.d(P(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(P(e,t),"__exists"===t?"forget":"setDirty")},e}();function P(e,t){return t+"#"+e}function R(e,t){C(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,s=e.call(this,r,new x(i))||this;return s.stump=new q(s),s.storageTrie=new w.b(p.et),o&&s.replace(o),s}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(T||(T={}));var D=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,s.L)(n[r],i[r])||t.group.dirty(e,r)})):(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 O.$3.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}(T),q=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new x(t.group.caching,t.group))||this}return(0,n.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(D);function j(e,t,r){var n=e[r],i=t[r];return(0,s.L)(n,i)?n:i}function C(e){return!!(e instanceof T&&e.group.caching)}var Q=r(45636),M=r(22702);function A(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var F=function(){function e(e){var t=this;this.knownResults=new(p.et?WeakMap:Map),this.config=(0,d.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,O.Xx)(e)}),this.canon=e.canon||new M.$,this.executeSelectionSet=(0,o.LV)((function(e){var r,i=e.context.canonizeResults,o=A(e);o[3]=!i;var s=(r=t.executeSelectionSet).peek.apply(r,o);return s?i?(0,n.__assign)((0,n.__assign)({},s),{result:t.canon.admit(s.result)}):s:(R(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:A,makeCacheKey:function(e,t,r,n){if(C(r.store))return r.store.makeCacheKey(e,(0,f.A_)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,o.LV)((function(e){return R(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(C(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new M.$},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,i=e.rootId,o=void 0===i?"ROOT_QUERY":i,s=e.variables,a=e.returnPartialData,c=void 0===a||a,l=e.canonizeResults,h=void 0===l?this.config.canonizeResults:l,p=this.config.cache.policies;s=(0,n.__assign)((0,n.__assign)({},(0,y.wY)((0,y.AT)(r))),s);var d,v=(0,f.WU)(o),b=this.executeSelectionSet({selectionSet:(0,y.Vn)(r).selectionSet,objectOrReference:v,enclosingRef:v,context:(0,n.__assign)({store:t,query:r,policies:p,variables:s,varString:(0,M.M)(s),canonizeResults:h},(0,O.lq)(r,this.config.fragments))});if(b.missing&&(d=[new u.Z(I(b.missing),b.missing,r,s)],!c))throw d[0];return{result:b.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,r,n){if(C(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=this,r=e.selectionSet,n=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,f.A_)(n)&&!s.policies.rootTypenamesById[n.__ref]&&!s.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var a,u=s.variables,c=s.policies,p=s.store.getFieldValue(n,"__typename"),d=[],y=new v.ZI;function _(e,t){var r;return e.missing&&(a=y.merge(a,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof p&&!c.rootIdsByTypename[p]&&d.push({__typename:p});var w=new Set(r.selections);w.forEach((function(e){var r,v;if((0,b.MS)(e,u))if((0,f.dt)(e)){var m=c.readField({fieldName:e.name.value,field:e,variables:s.variables,from:n},s),O=(0,f.ue)(e);void 0===m?l.XY.added(e)||(a=y.merge(a,((r={})[O]="Can't find field '".concat(e.name.value,"' on ").concat((0,f.A_)(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):(0,Q.c)(m)?m=_(t.executeSubSelectedArray({field:e,array:m,enclosingRef:o,context:s}),O):e.selectionSet?null!=m&&(m=_(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:(0,f.A_)(m)?m:o,context:s}),O)):s.canonizeResults&&(m=t.canon.pass(m)),void 0!==m&&d.push(((v={})[O]=m,v))}else{var k=(0,g.HQ)(e,s.lookupFragment);if(!k&&e.kind===h.b.FRAGMENT_SPREAD)throw(0,i.vA)(7,e.name.value);k&&c.fragmentMatches(k,p)&&k.selectionSet.selections.forEach(w.add,w)}}));var O={result:(0,v.IM)(d),missing:a},k=s.canonizeResults?this.canon.admit(O):(0,m.G)(O);return k.result&&this.knownResults.set(k.result,r),k},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,s=e.enclosingRef,a=e.context,u=new v.ZI;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(a.store.canRead)),o=o.map((function(e,t){return null===e?null:(0,Q.c)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:s,context:a}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,f.A_)(e)?e:s,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach((function(r){(0,_.U)(r)&&((0,i.V1)(!(0,f.A_)(r),8,(0,O.Ui)(e,r),t.name.value),Object.values(r).forEach(n.add,n))}))}}(a.store,n,e),e)})),{result:a.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function I(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var V=r(91495),L=r(3813),N=r(90738),z=Object.create(null);function U(e){var t=JSON.stringify(e);return z[t]||(z[t]=Object.create(null))}function W(e){var t=U(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},o=r.keyObject=K(e,(function(e){var o=$(r.storeObject,e,n);return void 0===o&&t!==r.storeObject&&O.$3.call(t,e[0])&&(o=$(t,e,J)),(0,i.V1)(void 0!==o,2,e.join("."),t),o}));return"".concat(r.typename,":").concat(JSON.stringify(o))})}function B(e){var t=U(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,s=K(e,(function(e){var r=e[0],o=r.charAt(0);if("@"!==o)if("$"!==o){if(t)return $(t,e)}else{var s=r.slice(1);if(i&&O.$3.call(i,s)){var a=e.slice(0);return a[0]=s,$(i,a)}}else if(n&&(0,Q.E)(n.directives)){var u=r.slice(1),c=n.directives.find((function(e){return e.name.value===u})),l=c&&(0,f.MB)(c,i);return l&&$(l,e.slice(1))}})),a=JSON.stringify(s);return(t||"{}"!==a)&&(o+=":"+a),o})}function K(e,t){var r=new v.ZI;return H(e).reduce((function(e,n){var i,o=t(n);if(void 0!==o){for(var s=n.length-1;s>=0;--s)(i={})[n[s]]=o,o=i;e=r.merge(e,o)}return e}),Object.create(null))}function H(e){var t=U(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,i){(0,Q.c)(t)?(H(t).forEach((function(e){return r.push(n.concat(e))})),n.length=0):(n.push(t),(0,Q.c)(e[i+1])||(r.push(n.slice(0)),n.length=0))}))}return t.paths}function J(e,t){return e[t]}function $(e,t,r){return r=r||J,G(t.reduce((function e(t,n){return(0,Q.c)(t)?t.map((function(t){return e(t,n)})):t&&r(t,n)}),e))}function G(e){return(0,_.U)(e)?(0,Q.c)(e)?e.map(G):K(Object.keys(e).sort(),(function(t){return $(e,t)})):e}function Y(e){return void 0!==e.args?e.args:e.field?(0,f.MB)(e.field,e.variables):null}f.o5.setStringify(M.M);var X=function(){},Z=function(e,t){return t.fieldName},ee=function(e,t,r){return(0,r.mergeObjects)(e,t)},te=function(e,t){return t},re=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.__assign)({dataIdFromObject:O.or},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,i=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s,a=t&&t.storeObject||e,u=(0,n.__assign)((0,n.__assign)({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=ie(arguments,a);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=o&&this.getTypePolicy(o),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var f=l((0,n.__assign)((0,n.__assign)({},e),a),u);if(!(0,Q.c)(f)){s=f;break}l=W(f)}return s=s?String(s):void 0,u.keyObject?[s,u.keyObject]:[s]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var i=e[r],o=i.queryType,s=i.mutationType,a=i.subscriptionType,u=(0,n.__rest)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),s&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),O.$3.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function s(e,t){e.merge="function"==typeof t?t:!0===t?ee:!1===t?te:e.merge}s(n,t.merge),n.keyFn=!1===i?X:(0,Q.c)(i)?W(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 a=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===a?Z:(0,Q.c)(a)?B(a):"function"==typeof a?a:n.keyFn,"function"==typeof u&&(n.read=u),s(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||Z)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.V1)(!n||n===e,3,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(O.gk);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!O.$3.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(r,n){if(r.test(e)){var o=t.supertypeMap.get(n);o&&o.forEach((function(e){return i.add(e)}))}}))),i&&i.size&&i.forEach((function(e){var i=t.getTypePolicy(e),o=i.fields,s=(0,n.__rest)(i,["fields"]);Object.assign(r,s),Object.assign(r.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(r){t.updateTypePolicy(e,r)})),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,r,n){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var s=e.typeCondition.name.value;if(t===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var a=this.getSupertypeSet(t,!0),u=[a],c=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&u.indexOf(t)<0&&u.push(t)},l=!(!r||!this.fuzzySubtypes.size),f=!1,h=0;h<u.length;++h){var p=u[h];if(p.has(s))return a.has(s)||(f&&!1!==globalThis.__DEV__&&i.V1.warn(4,t,s),a.add(s)),!0;p.forEach(c),l&&h===u.length-1&&(0,O.T9)(e.selectionSet,r,n)&&(l=!1,f=!0,this.fuzzySubtypes.forEach((function(e,r){var n=t.match(e);n&&n[0]===t&&c(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 s={typename:r,fieldName:n,field:e.field||null,variables:e.variables},a=Y(e);o;){var u=o(a,s);if(!(0,Q.c)(u)){t=u||n;break}o=B(u)}return void 0===t&&(t=e.field?(0,f.Ii)(e.field,e.variables):(0,f.o5)(n,Y(e))),!1===t?n:n===(0,O.iJ)(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,O.iJ)(i),s=t.store.getFieldValue(r,i),a=this.getFieldPolicy(e.typename,o,!1),u=a&&a.read;if(u){var c=ne(this,r,e,t,t.store.getStorage((0,f.A_)(r)?r.__ref:r,i));return N.bl.withValue(this.cache,u,[s,c])}return s}},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,s=r.typename,a=r.merge;return a===ee?oe(n.store)(e,t):a===te?t:(n.overwrite&&(e=void 0),a(e,t,ne(this,void 0,{typename:s,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function ne(e,t,r,n,i){var o=e.getStoreFieldName(r),s=(0,O.iJ)(o),a=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:Y(r),field:r.field||null,fieldName:s,storeFieldName:o,variables:a,isReference:f.A_,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(ie(arguments,t,a),n)},mergeObjects:oe(n.store)}}function ie(e,t,r){var o,s=e[0],a=e[1],u=e.length;return"string"==typeof s?o={fieldName:s,from:u>1?a:t}:(o=(0,n.__assign)({},s),O.$3.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&i.V1.warn(5,(0,L.p)(Array.from(e))),void 0===o.variables&&(o.variables=r),o}function oe(e){return function(t,r){if((0,Q.c)(t)||(0,Q.c)(r))throw(0,i.vA)(6);if((0,_.U)(t)&&(0,_.U)(r)){var o=e.getFieldValue(t,"__typename"),s=e.getFieldValue(r,"__typename");if(o&&s&&o!==s)return r;if((0,f.A_)(t)&&(0,O.d1)(r))return e.merge(t.__ref,r),t;if((0,O.d1)(t)&&(0,f.A_)(r))return e.merge(t,r.__ref),r;if((0,O.d1)(t)&&(0,O.d1)(r))return(0,n.__assign)((0,n.__assign)({},t),r)}return r}}function se(e,t,r){var i="".concat(t).concat(r),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===r?e:(0,n.__assign)((0,n.__assign)({},e),{clientOnly:t,deferred:r})),o}var ae=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,o=t.query,a=t.result,u=t.dataId,c=t.variables,l=t.overwrite,h=(0,y.Vu)(o),p=(0,O.mv)();c=(0,n.__assign)((0,n.__assign)({},(0,y.wY)(h)),c);var d=(0,n.__assign)((0,n.__assign)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)},variables:c,varString:(0,M.M)(c)},(0,O.lq)(o,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),v=this.processSelectionSet({result:a||Object.create(null),dataId:u,selectionSet:h.selectionSet,mergeTree:{map:new Map},context:d});if(!(0,f.A_)(v))throw(0,i.vA)(9,a);return d.incomingById.forEach((function(t,n){var o=t.storeObject,a=t.mergeTree,u=t.fieldNodeSet,c=(0,f.WU)(n);if(a&&a.map.size){var l=r.applyMerges(a,c,o,d);if((0,f.A_)(l))return;o=l}if(!1!==globalThis.__DEV__&&!d.overwrite){var h=Object.create(null);u.forEach((function(e){e.selectionSet&&(h[e.name.value]=!0)})),Object.keys(o).forEach((function(e){(function(e){return!0===h[(0,O.iJ)(e)]})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,n){var o=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=o(e);if(a){var u=o(t);if(u&&!(0,f.A_)(a)&&!(0,s.L)(a,u)&&!Object.keys(a).every((function(e){return void 0!==n.getFieldValue(u,e)}))){var c=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=(0,O.iJ)(r),h="".concat(c,".").concat(l);if(!pe.has(h)){pe.add(h);var p=[];(0,Q.c)(a)||(0,Q.c)(u)||[a,u].forEach((function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)})),!1!==globalThis.__DEV__&&i.V1.warn(12,l,c,p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"",h,a,u)}}}}(c,o,e,d.store)}))}e.merge(n,o)})),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,s=e.selectionSet,a=e.context,u=e.mergeTree,c=this.cache.policies,h=Object.create(null),p=r&&c.rootTypenamesById[r]||(0,f.D$)(o,s,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof p&&(h.__typename=p);var d=function(){var e=ie(arguments,h,a.variables);if((0,f.A_)(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,n.__assign)((0,n.__assign)({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return c.readField(e,a)},y=new Set;this.flattenFields(s,o,a,p).forEach((function(e,r){var n,s=(0,f.ue)(r),a=o[s];if(y.add(r),void 0!==a){var v=c.getStoreFieldName({typename:p,fieldName:r.name.value,field:r,variables:e.variables}),b=ce(u,v),g=t.processFieldValue(a,r,r.selectionSet?se(e,!1,!1):e,b),m=void 0;r.selectionSet&&((0,f.A_)(g)||(0,O.d1)(g))&&(m=d("__typename",g));var _=c.getMergeFunction(p,r.name.value,m);_?b.info={field:r,typename:p,merge:_}:he(u,v),h=e.merge(h,((n={})[v]=g,n))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||l.XY.added(r)||c.getReadFunction(p,r.name.value)||!1!==globalThis.__DEV__&&i.V1.error(10,(0,f.ue)(r),o)}));try{var v=c.identify(o,{typename:p,selectionSet:s,fragmentMap:a.fragmentMap,storeObject:h,readField:d}),b=v[0],g=v[1];r=r||b,g&&(h=a.merge(h,g))}catch(e){if(!r)throw e}if("string"==typeof r){var m=(0,f.WU)(r),_=a.written[r]||(a.written[r]=[]);if(_.indexOf(s)>=0)return m;if(_.push(s),this.reader&&this.reader.isFresh(o,m,s,a))return m;var w=a.incomingById.get(r);return w?(w.storeObject=a.merge(w.storeObject,h),w.mergeTree=le(w.mergeTree,u),y.forEach((function(e){return w.fieldNodeSet.add(e)}))):a.incomingById.set(r,{storeObject:h,mergeTree:fe(u)?void 0:u,fieldNodeSet:y}),m}return h},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,Q.c)(e)?e.map((function(e,o){var s=i.processFieldValue(e,t,r,ce(n,o));return he(n,o),s})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,V.m)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,f.D$)(t,e,r.fragmentMap));var o=new Map,s=this.cache.policies,a=new w.b(!1);return function e(u,c){var l=a.lookup(u,c.clientOnly,c.deferred);l.visited||(l.visited=!0,u.selections.forEach((function(a){if((0,b.MS)(a,r.variables)){var u=c.clientOnly,l=c.deferred;if(u&&l||!(0,Q.E)(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,f.MB)(e,r.variables);n&&!1===n.if||(l=!0)}})),(0,f.dt)(a)){var p=o.get(a);p&&(u=u&&p.clientOnly,l=l&&p.deferred),o.set(a,se(r,u,l))}else{var d=(0,g.HQ)(a,r.lookupFragment);if(!d&&a.kind===h.b.FRAGMENT_SPREAD)throw(0,i.vA)(11,a.name.value);d&&s.fragmentMatches(d,n,t,r.variables)&&e(d.selectionSet,se(r,u,l))}}})))}(e,r),o},e.prototype.applyMerges=function(e,t,r,o,s){var a,u=this;if(e.map.size&&!(0,f.A_)(r)){var c,l=(0,Q.c)(r)||!(0,f.A_)(t)&&!(0,O.d1)(t)?void 0:t,h=r;l&&!s&&(s=[(0,f.A_)(l)?l.__ref:l]);var p=function(e,t){return(0,Q.c)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=p(l,t),n=p(h,t);if(void 0!==n){s&&s.push(t);var a=u.applyMerges(e,r,n,o,s);a!==n&&(c=c||new Map).set(t,a),s&&(0,i.V1)(s.pop()===t)}})),c&&(r=(0,Q.c)(h)?h.slice(0):(0,n.__assign)({},h),c.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,s&&(a=o.store).getStorage.apply(a,s)):r},e}(),ue=[];function ce(e,t){var r=e.map;return r.has(t)||r.set(t,ue.pop()||{map:new Map}),r.get(t)}function le(e,t){if(e===t||!t||fe(t))return e;if(!e||fe(e))return t;var r=e.info&&t.info?(0,n.__assign)((0,n.__assign)({},e.info),t.info):e.info||t.info,i=e.map.size&&t.map.size,o={info:r,map:i?new Map:e.map.size?e.map:t.map};if(i){var s=new Set(t.map.keys());e.map.forEach((function(e,r){o.map.set(r,le(e,t.map.get(r))),s.delete(r)})),s.forEach((function(r){o.map.set(r,le(t.map.get(r),e.map.get(r)))}))}return o}function fe(e){return!e||!(e.info||e.map.size)}function he(e,t){var r=e.map,n=r.get(t);n&&fe(n)&&(ue.push(n),r.delete(t))}var pe=new Set,de=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new c.c(l.XY),r.assumeImmutableResults=!0,r.makeVar=N.UT,r.txCount=0,r.config=(0,O.I6)(t),r.addTypename=!!r.config.addTypename,r.policies=new re({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.__extends)(t,e),t.prototype.init=function(){var e=this.data=new T.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new ae(this,this.storeReader=new F({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,O.Xx)(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,o.LV)((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(C(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,M.M)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(e){if(e instanceof u.Z)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(O.$3.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,N.MS)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,N.WR)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){M.M.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,f.A_)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&i.V1.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(O.$3.call(e,"id"))return!1;e=(0,n.__assign)((0,n.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),M.M.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),(0,N.WR)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,i=e.update,o=e.optimistic,s=void 0===o||o,a=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var n=r,o=n.data,s=n.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=o,r.optimisticData=s}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof s?this.optimisticData=this.optimisticData.addLayer(s,c):!1===s?c(this.data):c(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),u&&l.size?(this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e,t){var r=u.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach((function(e){return r.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=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,s.L)(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(a.k)},22702:(e,t,r)=>{r.d(t,{$:()=>l,M:()=>f});var n,i,o=r(8674),s=r(32453),a=r(90075),u=r(2619),c=r(45636),l=function(){function e(){this.known=new(u.En?WeakSet:Set),this.pool=new s.b(u.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,a.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,a.U)(e)){var t=function(e){return(0,a.U)(e)?(0,c.c)(e)?e.slice(0):(0,o.__assign)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,a.U)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(u=this.pool.lookupArray(n)).array||(this.known.add(u.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),u.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],s=this.sortedKeys(e);o.push(s.json);var u,c=o.length;if(s.sorted.forEach((function(r){o.push(t.admit(e[r]))})),!(u=this.pool.lookupArray(o)).object){var l=u.object=Object.create(i);this.known.add(l),s.sorted.forEach((function(e,t){l[e]=o[c+t]})),!1!==globalThis.__DEV__&&Object.freeze(l)}return u.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}(),f=Object.assign((function(e){if((0,a.U)(e)){void 0===n&&h();var t=n.admit(e),r=i.get(t);return void 0===r&&i.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)}),{reset:h});function h(){n=new l,i=new(u.et?WeakMap:Map)}},90738:(e,t,r)=>{r.d(t,{MS:()=>u,UT:()=>c,WR:()=>a,bl:()=>i});var n=r(23899),i=new(r(17459).DX),o=new WeakMap;function s(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.yN)()}),t}function a(e){s(e).vars.forEach((function(t){return t.forgetCache(e)}))}function u(e){s(e).vars.forEach((function(t){return t.attachCache(e)}))}function c(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach((function(e){s(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var u=Array.from(r);r.clear(),u.forEach((function(t){return t(e)}))}}else{var c=i.getValue();c&&(o(c),s(c).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),s(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},64867:(e,t,r)=>{r.d(t,{R:()=>W});var n=r(8674),i=r(52687),o=r(91188),s=r(74081),a=r(32816),u=r(94537),c=r(15381),l=r(56453),f=r(68869),h=r(3902),p=r(22702),d=r(2619),y=r(29993),v=r(83851),b=r(59599),g=r(45636),m=r(84824),_=r(67194),w=r(90075),O=r(98170),k=r(73401),S=r(82562),E=r(9211),T=r(35860),x=r(88599),P=r(11786),R=r(48710),D=r(92922),q=r(65215),j=r(90738),C=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=(0,D.D9)(t.resolvers,e)})):this.resolvers=(0,D.D9)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,s=e.onlyRunForcedResolvers,a=void 0!==s&&s;return(0,n.__awaiter)(this,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,a).then((function(e){return(0,n.__assign)((0,n.__assign)({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,f.d8)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,h.er)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.__assign)((0,n.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.__awaiter)(this,void 0,void 0,(function(){return(0,n.__generator)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return(0,n.__assign)((0,n.__assign)({},t),e.exportedVariables)}))]:[2,(0,n.__assign)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,P.YR)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return P.sP}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,h.zc)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),(0,n.__awaiter)(this,void 0,void 0,(function(){var a,u,c,l,f,h,p,d,y,v;return(0,n.__generator)(this,(function(b){return a=(0,m.Vn)(e),u=(0,m.zK)(e),c=(0,q.JG)(u),l=this.collectSelectionsToResolve(a,c),f=a.operation,h=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",d=(p=this).cache,y=p.client,v={fragmentMap:c,context:(0,n.__assign)((0,n.__assign)({},r),{cache:d,client:y}),variables:i,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(a.selectionSet,!1,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.__awaiter)(this,void 0,void 0,(function(){var s,a,u,c,l,h=this;return(0,n.__generator)(this,(function(p){return s=o.fragmentMap,a=o.context,u=o.variables,c=[r],l=function(e){return(0,n.__awaiter)(h,void 0,void 0,(function(){var l,h;return(0,n.__generator)(this,(function(n){return(t||o.selectionsToResolve.has(e))&&(0,f.MS)(e,u)?(0,_.dt)(e)?[2,this.resolveField(e,t,r,o).then((function(t){var r;void 0!==t&&c.push(((r={})[(0,_.ue)(e)]=t,r))}))]:((0,_.kd)(e)?l=e:(l=s[e.name.value],(0,i.V1)(l,16,e.name.value)),l&&l.typeCondition&&(h=l.typeCondition.name.value,o.fragmentMatcher(r,h,a))?[2,this.resolveSelectionSet(l.selectionSet,t,r,o).then((function(e){c.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return(0,D.IM)(c)}))]}))}))},e.prototype.resolveField=function(e,t,r,i){return(0,n.__awaiter)(this,void 0,void 0,(function(){var o,s,a,u,c,l,f,h,p,d=this;return(0,n.__generator)(this,(function(n){return r?(o=i.variables,s=e.name.value,a=(0,_.ue)(e),u=s!==a,c=r[a]||r[s],l=Promise.resolve(c),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=r.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[u?s:a])&&(l=Promise.resolve(j.bl.withValue(this.cache,p,[r,(0,_.MB)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then((function(r){var n,o;if(void 0===r&&(r=c),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=r)}))})),!e.selectionSet)return r;if(null==r)return r;var s=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||s,r,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||s,r,i):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map((function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(o){if(!n.has(o)){var s=new Set;n.set(o,s),(0,P.YR)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach((function(e){r(e)&&(0,R.VK)(e)&&s.add(e)}))},FragmentSpread:function(n,o,a,u,c){var l=t[n.name.value];(0,i.V1)(l,17,n.name.value);var f=e(l);f.size>0&&(c.forEach((function(e){r(e)&&(0,R.VK)(e)&&s.add(e)})),s.add(n),f.forEach((function(e){s.add(e)})))}})}return n.get(o)}(e)},e}(),Q=new(d.et?WeakMap:Map);function M(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return Q.set(e,(Q.get(e)+1)%1e15),r.apply(this,arguments)})}function A(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var F=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.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;Q.has(r)||(Q.set(r,0),M(r,"evict"),M(r,"modify"),M(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||x.pT.loading;return this.variables&&this.networkStatus!==x.pT.loading&&!(0,c.L)(this.variables,e.variables)&&(t=x.pT.setVariables),(0,c.L)(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(){A(this),this.dirty=!1},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,c.L)(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?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,c.L)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.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():(0,T.e8)(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;A(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,x.bi)(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,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.__assign)((0,n.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,c.L)(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===Q.get(this.cache)&&(0,c.L)(t,r.variables)&&(0,c.L)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new D.ZI,s=(0,g.E)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,g.E)(e.incremental)){var a=(0,l.bd)(this.getDiff().result,e);e.data=a}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=s,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(I(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:Q.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var s=i.getDiffOptions(r.variables),a=o.diff(s);!i.stopped&&(0,c.L)(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(a,s),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=x.pT.ready},e.prototype.markError=function(e){return this.networkStatus=x.pT.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function I(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!(0,b.t)(e);return!n&&r&&e.data&&(n=!0),n}var V=r(47397),L=Object.prototype.hasOwnProperty,N=function(){function e(e){var t=this,r=e.cache,n=e.link,i=e.defaultOptions,o=e.documentTransform,s=e.queryDeduplication,a=void 0!==s&&s,u=e.onBroadcast,c=e.ssrMode,l=void 0!==c&&c,f=e.clientAwareness,h=void 0===f?{}:f,p=e.localState,v=e.assumeImmutableResults,b=void 0===v?!!r.assumeImmutableResults:v;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(d.et?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var g=new y.c((function(e){return t.cache.transformDocument(e)}),{cache:!1});this.cache=r,this.link=n,this.defaultOptions=i||Object.create(null),this.queryDeduplication=a,this.clientAwareness=h,this.localState=p||new C({cache:r}),this.ssrMode=l,this.assumeImmutableResults=b,this.documentTransform=o?g.concat(o).concat(g):g,(this.onBroadcast=u)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches((0,i.vA)(23))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,o=e.mutation,s=e.variables,a=e.optimisticResponse,u=e.updateQueries,c=e.refetchQueries,l=void 0===c?[]:c,f=e.awaitRefetchQueries,h=void 0!==f&&f,p=e.update,d=e.onQueryUpdated,y=e.fetchPolicy,g=void 0===y?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":y,m=e.errorPolicy,_=void 0===m?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":m,w=e.keepRootFields,O=e.context;return(0,n.__awaiter)(this,void 0,void 0,(function(){var e,t,r,c;return(0,n.__generator)(this,(function(f){switch(f.label){case 0:return(0,i.V1)(o,24),(0,i.V1)("network-only"===g||"no-cache"===g,25),e=this.generateMutationId(),o=this.cache.transformForLink(this.transform(o)),t=this.getDocumentInfo(o).hasClientExports,s=this.getVariables(o,s),t?[4,this.localState.addExportedVariables(o,s,O)]:[3,2];case 1:s=f.sent(),f.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:s,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:e,document:o,variables:s,fetchPolicy:g,errorPolicy:_,context:O,updateQueries:u,update:p,keepRootFields:w}),this.broadcastQueries(),c=this,[2,new Promise((function(t,i){return(0,v.x)(c.getObservableFromLink(o,(0,n.__assign)((0,n.__assign)({},O),{optimisticResponse:a}),s,!1),(function(t){if((0,b.t)(t)&&"none"===_)throw new E.K4({graphQLErrors:(0,b.M)(t)});r&&(r.loading=!1,r.error=null);var i=(0,n.__assign)({},t);return"function"==typeof l&&(l=l(i)),"ignore"===_&&(0,b.t)(i)&&delete i.errors,c.markMutationResult({mutationId:e,result:i,document:o,variables:s,fetchPolicy:g,errorPolicy:_,context:O,update:p,updateQueries:u,awaitRefetchQueries:h,refetchQueries:l,removeOptimistic:a?e:void 0,onQueryUpdated:d,keepRootFields:w})})).subscribe({next:function(e){c.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){r&&(r.loading=!1,r.error=t),a&&c.cache.removeOptimistic(e),c.broadcastQueries(),i(t instanceof E.K4?t:new E.K4({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],s="no-cache"===e.fetchPolicy;if(!s&&I(i,e.errorPolicy)){if((0,l.ST)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,l.ST)(i)&&(0,g.E)(i.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;a.result&&(u=(0,l.bd)(a.result,i)),void 0!==u&&(i.data=u,o.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach((function(e,n){var s=e.observableQuery,a=s&&s.queryName;if(a&&L.call(c,a)){var u=c[a],l=r.queries.get(n),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var y=u(d,{mutationResult:i,queryName:f&&(0,m.n4)(f)||void 0,queryVariables:h});y&&o.push({result:y,dataId:"ROOT_QUERY",query:f,variables:h})}}}))}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(t){s||o.forEach((function(e){return t.write(e)}));var a=e.update,u=!(0,l.YX)(i)||(0,l.ST)(i)&&!i.hasNext;if(a){if(!s){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,n.__assign)((0,n.__assign)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}u&&a(t,i,{context:e.context,variables:e.variables})}s||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return f.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then((function(){return i}))}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult((0,n.__assign)((0,n.__assign)({},t),{result:{data:o}}),e)}catch(e){!1!==globalThis.__DEV__&&i.V1.error(e)}}),t.mutationId)},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 t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,f.f2)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,f.d8)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,h.iz)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,m.wY)((0,m.Vu)(e)),asQuery:(0,n.__assign)((0,n.__assign)({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.__assign)((0,n.__assign)({},e),{operation:"query"}):e}))})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.__assign)((0,n.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.__assign)((0,n.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new F(this),i=new T.U5({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,this.queries.set(i.queryId,r),r.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),(0,i.V1)(e.query,26),(0,i.V1)("Document"===e.query.kind,27),(0,i.V1)(!e.returnPartialData,28),(0,i.V1)(!e.pollInterval,29),this.fetchQuery(t,(0,n.__assign)((0,n.__assign)({},e),{query:this.transform(e.query)})).finally((function(){return r.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,i.vA)(30)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=x.pT.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,s=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"==typeof e?o.set(e,!1):(0,_.Kc)(e)?o.set(t.transform(e),!1):(0,w.U)(e)&&e.query&&s.add(e)})),this.queries.forEach((function(t,n){var i=t.observableQuery,s=t.document;if(i){if("all"===e)return void r.set(n,i);var a=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||a&&o.has(a)||s&&o.has(s))&&(r.set(n,i),a&&o.set(a,!0),s&&o.set(s,!0))}})),s.size&&s.forEach((function(e){var o=(0,O.v)("legacyOneTimeQuery"),s=t.getQuery(o).init({document:e.query,variables:e.variables}),a=new T.U5({queryManager:t,queryInfo:s,options:(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"network-only"})});(0,i.V1)(a.queryId===o),s.setObservableQuery(a),r.set(o,a)})),!1!==globalThis.__DEV__&&o.size&&o.forEach((function(e,t){e||!1!==globalThis.__DEV__&&i.V1.warn("string"==typeof t?31:32,t)})),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach((function(n,i){var 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,s=e.variables,a=e.context,u=void 0===a?{}:a;r=this.transform(r),s=this.getVariables(r,s);var c=function(e){return t.getObservableFromLink(r,u,e).map((function(i){"no-cache"!==n&&(I(i,o)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var s=(0,b.t)(i),a=(0,E.uR)(i);if(s||a){var u={};if(s&&(u.graphQLErrors=i.errors),a&&(u.protocolErrors=i.extensions[E.K$]),"none"===o||a)throw new E.K4(u)}return"ignore"===o&&delete i.errors,i}))};if(this.getDocumentInfo(r).hasClientExports){var l=this.localState.addExportedVariables(r,s,u).then(c);return new k.c((function(e){var t=null;return l.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(s)},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,t,r,i){var o,a,u=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.getDocumentInfo(e),l=c.serverQuery,f=c.clientQuery;if(l){var h=this.inFlightLinkObservables,d=this.link,y={query:l,variables:r,operationName:(0,m.n4)(l)||void 0,context:this.prepareContext((0,n.__assign)((0,n.__assign)({},t),{forceFetch:!i}))};if(t=y.context,i){var b=(0,V.y)(l),g=h.get(b)||new Map;h.set(b,g);var _=(0,p.M)(r);if(!(a=g.get(_))){var w=new S.E([(0,s.g)(d,y)]);g.set(_,a=w),w.beforeNext((function(){g.delete(_)&&g.size<1&&h.delete(b)}))}}else a=new S.E([(0,s.g)(d,y)])}else a=new S.E([k.c.of({data:{}})]),t=this.prepareContext(t);return f&&(a=(0,v.x)(a,(function(e){return u.localState.runResolvers({document:f,remoteResult:e,context:t,variables:r})}))),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return(0,v.x)(this.getObservableFromLink(i,r.context,r.variables),(function(o){var s=(0,b.M)(o),a=s.length>0;if(n>=e.lastRequestId){if(a&&"none"===r.errorPolicy)throw e.markError(new E.K4({graphQLErrors:s}));e.markResult(o,i,r,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:x.pT.ready};return a&&"ignore"!==r.errorPolicy&&(u.errors=s,u.networkStatus=x.pT.error),u}),(function(t){var r=(0,E.Mn)(t)?t:new E.K4({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchConcastWithInfo=function(e,t,r){var n=this;void 0===r&&(r=x.pT.loading);var i,o,s=t.query,a=this.getVariables(s,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?c&&c.fetchPolicy||"cache-first":l,h=t.errorPolicy,p=void 0===h?c&&c.errorPolicy||"none":h,d=t.returnPartialData,y=void 0!==d&&d,v=t.notifyOnNetworkStatusChange,b=void 0!==v&&v,g=t.context,m=void 0===g?{}:g,_=Object.assign({},t,{query:s,variables:a,fetchPolicy:f,errorPolicy:p,returnPartialData:y,notifyOnNetworkStatusChange:b,context:m}),w=function(e){_.variables=e;var i=n.fetchQueryByPolicy(u,_,r);return"standby"!==_.fetchPolicy&&i.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),i},O=function(){return n.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){O(),setTimeout((function(){return i.cancel(e)}))})),this.getDocumentInfo(_.query).hasClientExports)i=new S.E(this.localState.addExportedVariables(_.query,_.variables,_.context).then(w).then((function(e){return e.sources}))),o=!0;else{var k=w(_.variables);o=k.fromLink,i=new S.E(k.sources)}return i.promise.then(O,O),{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,s=e.removeOptimistic,a=void 0===s?o?(0,O.v)("refetchQueries"):void 0:s,u=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach((function(e,r){c.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})}));var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&a||!1,removeOptimistic:a,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof F&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach((function(e,r){var n,i=e.oq,o=e.lastDiff,s=e.diff;if(u){if(!s){var a=i.queryInfo;a.reset(),s=a.getDiff()}n=u(i,s,o)}u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)})),a&&this.cache.removeOptimistic(a),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,s=t.variables,a=t.fetchPolicy,u=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,h=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:o,variables:s,networkStatus:r});var y=function(){return e.getDiff()},v=function(t,r){void 0===r&&(r=e.networkStatus||x.pT.loading);var a=t.result;!1===globalThis.__DEV__||f||(0,c.L)(a,{})||(0,T.yd)(t.missing);var u=function(e){return k.c.of((0,n.__assign)({data:e,loading:(0,x.bi)(r),networkStatus:r},t.complete?null:{partial:!0}))};return a&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:a},context:h,variables:s,onlyRunForcedResolvers:!0}).then((function(e){return u(e.data||void 0)})):"none"===l&&r===x.pT.refetch&&Array.isArray(t.missing)?u(void 0):u(a)},b="no-cache"===a?0:r===x.pT.refetch&&"merge"!==u?1:2,g=function(){return i.getResultsFromLink(e,b,{query:o,variables:s,context:h,fetchPolicy:a,errorPolicy:l})},m=p&&"number"==typeof d&&d!==r&&(0,x.bi)(r);switch(a){default:case"cache-first":return(_=y()).complete?{fromLink:!1,sources:[v(_,e.markReady())]}:f||m?{fromLink:!0,sources:[v(_),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var _;return(_=y()).complete||f||m?{fromLink:!0,sources:[v(_),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[v(y(),e.markReady())]};case"network-only":return m?{fromLink:!0,sources:[v(y()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return m?{fromLink:!0,sources:[v(e.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new F(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.__assign)((0,n.__assign)({},t),{clientAwareness:this.clientAwareness})},e}(),z=r(60144),U=!1,W=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i.vA)(13);var r=e.uri,n=e.credentials,s=e.headers,c=e.cache,l=e.documentTransform,f=e.ssrMode,h=void 0!==f&&f,p=e.ssrForceFetchDelay,d=void 0===p?0:p,y=e.connectToDevTools,v=void 0===y?!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:y,b=e.queryDeduplication,g=void 0===b||b,m=e.defaultOptions,_=e.assumeImmutableResults,w=void 0===_?c.assumeImmutableResults:_,O=e.resolvers,k=e.typeDefs,S=e.fragmentMatcher,E=e.name,T=e.version,x=e.link;x||(x=r?new u.P({uri:r,credentials:n,headers:s}):o.C.empty()),this.link=x,this.cache=c,this.disableNetworkFetches=h||d>0,this.queryDeduplication=g,this.defaultOptions=m||Object.create(null),this.typeDefs=k,d&&setTimeout((function(){return t.disableNetworkFetches=!1}),d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=a.r,this.localState=new C({cache:c,client:this,resolvers:O,fragmentMatcher:S}),this.queryManager=new N({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:l,queryDeduplication:g,ssrMode:h,clientAwareness:{name:E,version:T},localState:this.localState,assumeImmutableResults:w,onBroadcast:v?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),v&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,U||!1===globalThis.__DEV__||(U=!0,setTimeout((function(){if(window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&i.V1.log("Download the Apollo DevTools for a better development experience: %s",r)}}),1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,z.l)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,z.l)(this.defaultOptions.query,e)),(0,i.V1)("cache-and-network"!==e.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,z.l)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,s.g)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((function(e,t){r.push(t),n.push(e)}));var o=Promise.all(n);return o.queries=r,o.results=n,o.catch((function(e){!1!==globalThis.__DEV__&&i.V1.debug(15,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},e}()},35860:(e,t,r)=>{r.d(t,{U5:()=>O,yd:()=>E,e8:()=>k});var n=r(8674),i=r(52687),o=r(15381),s=r(88599),a=r(84824),u=r(87945),c=r(91495),l=r(26502),f=r(73401),h=r(21291),p=r(65215),d=r(68869),y=r(67194);function v(e,t,r,i){var s=t.data,u=(0,n.__rest)(t,["data"]),c=r.data,l=(0,n.__rest)(r,["data"]);return(0,o.A)(u,l)&&b((0,a.Vn)(e).selectionSet,s,c,{fragmentMap:(0,p.JG)((0,a.zK)(e)),variables:i})}function b(e,t,r,n){if(t===r)return!0;var i=new Set;return e.selections.every((function(e){if(i.has(e))return!0;if(i.add(e),!(0,d.MS)(e,n.variables))return!0;if(g(e))return!0;if((0,y.dt)(e)){var s=(0,y.ue)(e),a=t&&t[s],u=r&&r[s],c=e.selectionSet;if(!c)return(0,o.A)(a,u);var l=Array.isArray(a),f=Array.isArray(u);if(l!==f)return!1;if(l&&f){var h=a.length;if(u.length!==h)return!1;for(var v=0;v<h;++v)if(!b(c,a[v],u[v],n))return!1;return!0}return b(c,a,u,n)}var m=(0,p.HQ)(e,n.fragmentMap);return m?!!g(m)||b(m.selectionSet,t,r,n):void 0}))}function g(e){return!!e.directives&&e.directives.some(m)}function m(e){return"nonreactive"===e.name.value}var _=Object.assign,w=Object.hasOwnProperty,O=function(e){function t(t){var r=t.queryManager,i=t.queryInfo,o=t.options,s=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=S)}catch(e){}var r=!s.observers.size;s.observers.add(e);var n=s.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&s.reobserve().catch((function(){})),function(){s.observers.delete(e)&&!s.observers.size&&s.tearDownQuery()}}))||this;s.observers=new Set,s.subscriptions=new Set,s.queryInfo=i,s.queryManager=r,s.waitForOwnResult=T(o.fetchPolicy),s.isTornDown=!1;var u=r.defaultOptions.watchQuery,c=(void 0===u?{}:u).fetchPolicy,l=void 0===c?"cache-first":c,f=o.fetchPolicy,h=void 0===f?l:f,p=o.initialFetchPolicy,d=void 0===p?"standby"===h?l:h:p;s.options=(0,n.__assign)((0,n.__assign)({},o),{initialFetchPolicy:d,fetchPolicy:h}),s.queryId=i.queryId||r.generateQueryId();var y=(0,a.Vu)(s.query);return s.queryName=y&&y.name&&y.name.value,s}return(0,n.__extends)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return 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)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||s.pT.ready,i=(0,n.__assign)((0,n.__assign)({},t),{loading:(0,s.bi)(r),networkStatus:r}),a=this.options.fetchPolicy,u=void 0===a?"cache-first":a;if(T(u)||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,o.L)(i.data,{})&&(i.data=void 0),c.complete?(delete i.partial,!c.complete||i.networkStatus!==s.pT.loading||"cache-first"!==u&&"cache-only"!==u||(i.networkStatus=s.pT.ready,i.loading=!1)):i.partial=!0,!1===globalThis.__DEV__||c.complete||this.options.partialRefetch||i.loading||i.data||i.error||E(c.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!v(this.query,this.last.result,e,this.variables):!(0,o.L)(this.last.result,e))||t&&!(0,o.L)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,o.L)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},u=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===u?u:"no-cache"===u?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&w.call(e,"variables")){var c=(0,a.AT)(this.query),l=c.variableDefinitions;l&&l.some((function(e){return"variables"===e.variable.name.value}))||!1!==globalThis.__DEV__&&i.V1.warn(18,e,(null===(t=c.name)||void 0===t?void 0:t.value)||c)}return e&&!(0,o.L)(this.options.variables,e)&&(r.variables=this.options.variables=(0,n.__assign)((0,n.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,s.pT.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,n.__assign)((0,n.__assign)({},e.query?e:(0,n.__assign)((0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.options),{query:this.options.query}),e),{variables:(0,n.__assign)((0,n.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var i=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var o=this.queryInfo,a=o.networkStatus;o.networkStatus=s.pT.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var u=new Set;return this.queryManager.fetchQuery(i,r,s.pT.fetchMore).then((function(n){return t.queryManager.removeQuery(i),o.networkStatus===s.pT.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return o(e,{fetchMoreResult:n.data,variables:r.variables})})):i.writeQuery({query:r.query,variables:r.variables,data:n.data})},onWatchUpdated:function(e){u.add(e.query)}}),n})).finally((function(){u.has(t.query)||k(t)}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&i.V1.error(19,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,u.o)(this.options,e||{});_(this.options,t)},t.prototype.setVariables=function(e){return(0,o.L)(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.pT.setVariables):Promise.resolve())},t.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())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,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}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(r){if(!t||t.interval!==r){(0,i.V1)(r,20),(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&((0,s.bi)(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},s.pT.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,o.L)(t,this.last.variables)&&(r=void 0),this.last=(0,n.__assign)({result:this.queryManager.assumeImmutableResults?e:(0,c.m)(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var i=t===s.pT.refetch||t===s.pT.fetchMore||t===s.pT.poll,a=this.options.variables,c=this.options.fetchPolicy,l=(0,u.o)(this.options,e||{}),f=i?l:_(this.options,l),h=this.transformDocument(f.query);this.lastQuery=h,i||(this.updatePolling(),e&&e.variables&&!(0,o.L)(e.variables,a)&&"standby"!==f.fetchPolicy&&f.fetchPolicy===c&&(this.applyNextFetchPolicy("variables-changed",f),void 0===t&&(t=s.pT.setVariables)));var p=h===f.query?f:(0,n.__assign)((0,n.__assign)({},f),{query:h});this.waitForOwnResult&&(this.waitForOwnResult=T(p.fetchPolicy));var d=function(){r.concast===b&&(r.waitForOwnResult=!1)},y=p.variables&&(0,n.__assign)({},p.variables),v=this.fetch(p,t),b=v.concast,g=v.fromLink,m={next:function(e){d(),r.reportResult(e,y)},error:function(e){d(),r.reportError(e,y)}};return i||!g&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=b,this.observer=m),b.addObserver(m),b},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.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},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.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,l.w)(this.observers,"next",e)},t.prototype.reportError=function(e,t){var r=(0,n.__assign)((0,n.__assign)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:s.pT.error,loading:!1});this.updateLastResult(r,t),(0,l.w)(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(f.c);function k(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(){return this.nextFetchPolicy=n,"function"==typeof n?n.apply(this,arguments):r}}):e.reobserve()}function S(e){!1!==globalThis.__DEV__&&i.V1.error(21,e.message,e.stack)}function E(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.V1.debug(22,e)}function T(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,h.r)(O)},88599:(e,t,r)=>{var n;function i(e){return!!e&&e<7}function o(e){return 7===e||8===e}r.d(t,{D2:()=>o,bi:()=>i,pT:()=>n}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}))},9211:(e,t,r)=>{r.d(t,{K$:()=>o,K4:()=>u,Mn:()=>a,uR:()=>s});var n=r(8674),i=(r(52687),r(90075)),o=Symbol();function s(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function a(e){return e.hasOwnProperty("graphQLErrors")}var u=function(e){function t(r){var o,s,a=r.graphQLErrors,u=r.protocolErrors,c=r.clientErrors,l=r.networkError,f=r.errorMessage,h=r.extraInfo,p=e.call(this,f)||this;return p.name="ApolloError",p.graphQLErrors=a||[],p.protocolErrors=u||[],p.clientErrors=c||[],p.networkError=l||null,p.message=f||(o=p,s=(0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)([],o.graphQLErrors,!0),o.clientErrors,!0),o.protocolErrors,!0),o.networkError&&s.push(o.networkError),s.map((function(e){return(0,i.U)(e)&&e.message||"Error message not found."})).join("\n")),p.extraInfo=h,p.__proto__=t.prototype,p}return(0,n.__extends)(t,e),t}(Error)},87619:(e,t,r)=>{r.r(t),r.d(t,{ApolloCache:()=>n.ApolloCache,ApolloClient:()=>n.ApolloClient,ApolloConsumer:()=>p,ApolloError:()=>n.ApolloError,ApolloLink:()=>n.ApolloLink,ApolloProvider:()=>h,Cache:()=>n.Cache,DocumentTransform:()=>n.DocumentTransform,DocumentType:()=>m,HttpLink:()=>n.HttpLink,InMemoryCache:()=>n.InMemoryCache,MissingFieldError:()=>n.MissingFieldError,NetworkStatus:()=>n.NetworkStatus,Observable:()=>n.Observable,ObservableQuery:()=>n.ObservableQuery,SuspenseCache:()=>ie,checkFetcher:()=>n.checkFetcher,concat:()=>n.concat,createHttpLink:()=>n.createHttpLink,createSignalIfSupported:()=>n.createSignalIfSupported,defaultDataIdFromObject:()=>n.defaultDataIdFromObject,defaultPrinter:()=>n.defaultPrinter,disableExperimentalFragmentVariables:()=>n.disableExperimentalFragmentVariables,disableFragmentWarnings:()=>n.disableFragmentWarnings,empty:()=>n.empty,enableExperimentalFragmentVariables:()=>n.enableExperimentalFragmentVariables,execute:()=>n.execute,fallbackHttpConfig:()=>n.fallbackHttpConfig,from:()=>n.from,fromError:()=>n.fromError,fromPromise:()=>n.fromPromise,getApolloContext:()=>l,gql:()=>n.gql,isApolloError:()=>n.isApolloError,isNetworkRequestSettled:()=>n.isNetworkRequestSettled,isReference:()=>n.isReference,makeReference:()=>n.makeReference,makeVar:()=>n.makeVar,mergeOptions:()=>n.mergeOptions,operationName:()=>S,parseAndCheckHttpResponse:()=>n.parseAndCheckHttpResponse,parser:()=>E,resetApolloContext:()=>f,resetCaches:()=>n.resetCaches,rewriteURIForGET:()=>n.rewriteURIForGET,selectHttpOptionsAndBody:()=>n.selectHttpOptionsAndBody,selectHttpOptionsAndBodyInternal:()=>n.selectHttpOptionsAndBodyInternal,selectURI:()=>n.selectURI,serializeFetchParameter:()=>n.serializeFetchParameter,setLogVerbosity:()=>n.setLogVerbosity,skipToken:()=>X,split:()=>n.split,throwServerError:()=>n.throwServerError,toPromise:()=>n.toPromise,useApolloClient:()=>d,useBackgroundQuery:()=>re,useFragment:()=>L,useLazyQuery:()=>M,useMutation:()=>A,useQuery:()=>q,useReactiveVar:()=>I,useReadQuery:()=>ne,useSubscription:()=>F,useSuspenseQuery:()=>Z});var n=r(21659),i=r(52687),o=r(8674),s=r(96540),a=r.t(s,2),u=r(2619),c=u.ol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function l(){(0,i.V1)(!0,43);var e=s.createContext[c];return e||(Object.defineProperty(s.createContext,c,{value:e=s.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var f=l,h=function(e){var t=e.client,r=e.children,n=l(),a=s.useContext(n),u=s.useMemo((function(){return(0,o.__assign)((0,o.__assign)({},a),{client:t||a.client})}),[a,t]);return(0,i.V1)(u.client,44),s.createElement(n.Provider,{value:u},r)},p=function(e){var t=l();return s.createElement(t.Consumer,null,(function(t){return(0,i.V1)(t&&t.client,42),e.children(t.client)}))};function d(e){var t=s.useContext(l()),r=e||t.client;return(0,i.V1)(!!r,47),r}var y=r(60144),v=!1,b=a.useSyncExternalStore||function(e,t,r){var n=t();!1===globalThis.__DEV__||v||n===t()||(v=!0,!1!==globalThis.__DEV__&&i.V1.error(56));var o=s.useState({inst:{value:n,getSnapshot:t}}),a=o[0].inst,c=o[1];return u.JR?s.useLayoutEffect((function(){Object.assign(a,{value:n,getSnapshot:t}),g(a)&&c({inst:a})}),[e,n,t]):Object.assign(a,{value:n,getSnapshot:t}),s.useEffect((function(){return g(a)&&c({inst:a}),e((function(){g(a)&&c({inst:a})}))}),[e]),n};function g(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(e){return!0}}var m,_=r(15381),w=r(9211),O=r(88599);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(m||(m={}));var k=new Map;function S(e){var t;switch(e){case m.Query:t="Query";break;case m.Mutation:t="Mutation";break;case m.Subscription:t="Subscription"}return t}function E(e){var t,r,n=k.get(e);if(n)return n;(0,i.V1)(!!e&&!!e.kind,57,e);for(var o=[],s=[],a=[],u=[],c=0,l=e.definitions;c<l.length;c++){var f=l[c];if("FragmentDefinition"!==f.kind){if("OperationDefinition"===f.kind)switch(f.operation){case"query":s.push(f);break;case"mutation":a.push(f);break;case"subscription":u.push(f)}}else o.push(f)}(0,i.V1)(!o.length||s.length||a.length||u.length,58),(0,i.V1)(s.length+a.length+u.length<=1,59,e,s.length,u.length,a.length),r=s.length?m.Query:m.Mutation,s.length||a.length||(r=m.Subscription);var h=s.length?s:a.length?a:u;(0,i.V1)(1===h.length,60,e,h.length);var p=h[0];t=p.variableDefinitions||[];var d={name:p.name&&"Name"===p.name.kind?p.name.value:"data",type:r,variables:t};return k.set(e,d),d}function T(e,t){var r=E(e),n=S(t),o=S(r.type);(0,i.V1)(r.type===t,61,n,n,o)}var x=r(21469),P=r(87945),R=r(45636),D=Object.prototype.hasOwnProperty;function q(e,t){return void 0===t&&(t=Object.create(null)),j(d(t.client),e).useQuery(t)}function j(e,t){var r=s.useRef();r.current&&e===r.current.client&&t===r.current.query||(r.current=new C(e,t,r.current));var n=r.current;return n.forceUpdateState=s.useReducer((function(e){return e+1}),0)[1],n}var C=function(){function e(e,t,r){var n=this;this.client=e,this.query=t,this.forceUpdate=function(){return n.forceUpdateState()},this.ssrDisabledResult=(0,x.G)({loading:!0,data:void 0,error:void 0,networkStatus:O.pT.loading}),this.skipStandbyResult=(0,x.G)({loading:!1,data:void 0,error:void 0,networkStatus:O.pT.ready}),this.toQueryResultCache=new(u.et?WeakMap:Map),T(t,m.Query);var i=r&&r.result,o=i&&i.data;o&&(this.previousData=o)}return e.prototype.forceUpdateState=function(){!1!==globalThis.__DEV__&&i.V1.warn(48)},e.prototype.executeQuery=function(e){var t,r=this;e.query&&Object.assign(this,{query:e.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=e);var n=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(t=this.result)||void 0===t?void 0:t.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise((function(e){var t;n.subscribe({next:function(e){t=e},error:function(){e(r.toQueryResult(r.observable.getCurrentResult()))},complete:function(){e(r.toQueryResult(t))}})}))},e.prototype.useQuery=function(e){var t=this;this.renderPromises=s.useContext(l()).renderPromises,this.useOptions(e);var r=this.useObservableQuery(),n=b(s.useCallback((function(e){if(t.renderPromises)return function(){};t.forceUpdate=e;var n=function(){var e=t.result,n=r.getCurrentResult();e&&e.loading===n.loading&&e.networkStatus===n.networkStatus&&(0,_.L)(e.data,n.data)||t.setResult(n)},i=function(e){if(o.unsubscribe(),o=r.resubscribeAfterError(n,i),!D.call(e,"graphQLErrors"))throw e;var s=t.result;(!s||s&&s.loading||!(0,_.L)(e,s.error))&&t.setResult({data:s&&s.data,error:e,loading:!1,networkStatus:O.pT.error})},o=r.subscribe(n,i);return function(){setTimeout((function(){return o.unsubscribe()})),t.forceUpdate=function(){return t.forceUpdateState()}}}),[r,this.renderPromises,this.client.disableNetworkFetches]),(function(){return t.getCurrentResult()}),(function(){return t.getCurrentResult()}));return this.unsafeHandlePartialRefetch(n),this.toQueryResult(n)},e.prototype.useOptions=function(t){var r,n=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;(0,_.L)(n,i)||(this.watchQueryOptions=n,i&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(r=this.result)||void 0===r?void 0:r.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,!this.renderPromises&&!this.client.disableNetworkFetches||!1!==this.queryHookOptions.ssr||this.queryHookOptions.skip?this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:this.result!==this.ssrDisabledResult&&this.result!==this.skipStandbyResult||(this.result=void 0):this.result=this.ssrDisabledResult},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push((0,P.o)(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(y.l)},e.prototype.createWatchQueryOptions=function(e){var t;void 0===e&&(e={});var r=e.skip,n=(e.ssr,e.onCompleted,e.onError,e.defaultOptions,(0,o.__rest)(e,["skip","ssr","onCompleted","onError","defaultOptions"])),i=Object.assign(n,{query:this.query});if(!this.renderPromises||"network-only"!==i.fetchPolicy&&"cache-and-network"!==i.fetchPolicy||(i.fetchPolicy="cache-first"),i.variables||(i.variables={}),r){var s=i.fetchPolicy,a=void 0===s?this.getDefaultFetchPolicy():s,u=i.initialFetchPolicy,c=void 0===u?a:u;Object.assign(i,{initialFetchPolicy:c,fetchPolicy:"standby"})}else i.fetchPolicy||(i.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return i},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=s.useMemo((function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}),[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e,t)},e.prototype.handleErrorOrCompleted=function(e,t){var r=this;if(!e.loading){var n=this.toApolloError(e);Promise.resolve().then((function(){n?r.onError(n):e.data&&(null==t?void 0:t.networkStatus)!==e.networkStatus&&e.networkStatus===O.pT.ready&&r.onCompleted(e.data)})).catch((function(e){!1!==globalThis.__DEV__&&i.V1.warn(e)}))}},e.prototype.toApolloError=function(e){return(0,R.E)(e.errors)?new w.K4({graphQLErrors:e.errors}):e.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var r=e.data,n=(e.partial,(0,o.__rest)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=(0,o.__assign)((0,o.__assign)((0,o.__assign)({data:r},n),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&(0,R.E)(e.errors)&&(t.error=new w.K4({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){!e.partial||!this.queryHookOptions.partialRefetch||e.loading||e.data&&0!==Object.keys(e.data).length||"cache-only"===this.observable.options.fetchPolicy||(Object.assign(e,{loading:!0,networkStatus:O.pT.refetch}),this.observable.refetch())},e}(),Q=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function M(e,t){var r,n=s.useRef(),i=s.useRef(),a=s.useRef(),u=(0,y.l)(t,n.current||{}),c=null!==(r=null==u?void 0:u.query)&&void 0!==r?r:e;i.current=u,a.current=c;var l=j(d(t&&t.client),c),f=l.useQuery((0,o.__assign)((0,o.__assign)({},u),{skip:!n.current})),h=f.observable.options.initialFetchPolicy||l.getDefaultFetchPolicy(),p=Object.assign(f,{called:!!n.current}),v=s.useMemo((function(){for(var e={},t=function(t){var r=p[t];e[t]=function(){return n.current||(n.current=Object.create(null),l.forceUpdateState()),r.apply(this,arguments)}},r=0,i=Q;r<i.length;r++)t(i[r]);return e}),[]);Object.assign(p,v);var b=s.useCallback((function(e){n.current=e?(0,o.__assign)((0,o.__assign)({},e),{fetchPolicy:e.fetchPolicy||h}):{fetchPolicy:h};var t=(0,y.l)(i.current,(0,o.__assign)({query:a.current},n.current)),r=l.executeQuery((0,o.__assign)((0,o.__assign)({},t),{skip:!1})).then((function(e){return Object.assign(e,v)}));return r.catch((function(){})),r}),[]);return[b,p]}function A(e,t){var r=d(null==t?void 0:t.client);T(e,m.Mutation);var n=s.useState({called:!1,loading:!1,client:r}),i=n[0],a=n[1],u=s.useRef({result:i,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});Object.assign(u.current,{client:r,options:t,mutation:e});var c=s.useCallback((function(e){void 0===e&&(e={});var t=u.current,r=t.options,n=t.mutation,i=(0,o.__assign)((0,o.__assign)({},r),{mutation:n}),s=e.client||u.current.client;u.current.result.loading||i.ignoreResults||!u.current.isMounted||a(u.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:s});var c=++u.current.mutationId,l=(0,y.l)(i,e);return s.mutate(l).then((function(t){var r,n,i=t.data,o=t.errors,f=o&&o.length>0?new w.K4({graphQLErrors:o}):void 0,h=e.onError||(null===(r=u.current.options)||void 0===r?void 0:r.onError);if(f&&h&&h(f,l),c===u.current.mutationId&&!l.ignoreResults){var p={called:!0,loading:!1,data:i,error:f,client:s};u.current.isMounted&&!(0,_.L)(u.current.result,p)&&a(u.current.result=p)}var d=e.onCompleted||(null===(n=u.current.options)||void 0===n?void 0:n.onCompleted);return f||null==d||d(t.data,l),t})).catch((function(t){var r;if(c===u.current.mutationId&&u.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:s};(0,_.L)(u.current.result,n)||a(u.current.result=n)}var i=e.onError||(null===(r=u.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,l),{data:void 0,errors:t};throw t}))}),[]),l=s.useCallback((function(){u.current.isMounted&&a({called:!1,loading:!1,client:r})}),[]);return s.useEffect((function(){return u.current.isMounted=!0,function(){u.current.isMounted=!1}}),[]),[c,(0,o.__assign)({reset:l},i)]}function F(e,t){var r=s.useRef(!1),n=d(null==t?void 0:t.client);T(e,m.Subscription);var o=s.useState({loading:!(null==t?void 0:t.skip),error:void 0,data:void 0,variables:null==t?void 0:t.variables}),a=o[0],u=o[1];r.current||(r.current=!0,(null==t?void 0:t.onSubscriptionData)&&!1!==globalThis.__DEV__&&i.V1.warn(t.onData?50:51),(null==t?void 0:t.onSubscriptionComplete)&&!1!==globalThis.__DEV__&&i.V1.warn(t.onComplete?52:53));var c=s.useState((function(){return(null==t?void 0:t.skip)?null:n.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})})),l=c[0],f=c[1],h=s.useRef(!1);s.useEffect((function(){return function(){h.current=!0}}),[]);var p=s.useRef({client:n,subscription:e,options:t});return s.useEffect((function(){var r,i,o,s,a=null==t?void 0:t.shouldResubscribe;"function"==typeof a&&(a=!!a(t)),(null==t?void 0:t.skip)?(!(null==t?void 0:t.skip)!=!(null===(r=p.current.options)||void 0===r?void 0:r.skip)||h.current)&&(u({loading:!1,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),f(null),h.current=!1):(!1===a||n===p.current.client&&e===p.current.subscription&&(null==t?void 0:t.fetchPolicy)===(null===(i=p.current.options)||void 0===i?void 0:i.fetchPolicy)&&!(null==t?void 0:t.skip)==!(null===(o=p.current.options)||void 0===o?void 0:o.skip)&&(0,_.L)(null==t?void 0:t.variables,null===(s=p.current.options)||void 0===s?void 0:s.variables))&&!h.current||(u({loading:!0,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),f(n.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})),h.current=!1),Object.assign(p.current,{client:n,subscription:e,options:t})}),[n,e,t,h.current]),s.useEffect((function(){if(l){var e=!1,r=l.subscribe({next:function(r){var i,o;if(!e){var s={loading:!1,data:r.data,error:void 0,variables:null==t?void 0:t.variables};u(s),(null===(i=p.current.options)||void 0===i?void 0:i.onData)?p.current.options.onData({client:n,data:s}):(null===(o=p.current.options)||void 0===o?void 0:o.onSubscriptionData)&&p.current.options.onSubscriptionData({client:n,subscriptionData:s})}},error:function(r){var n,i;e||(u({loading:!1,data:void 0,error:r,variables:null==t?void 0:t.variables}),null===(i=null===(n=p.current.options)||void 0===n?void 0:n.onError)||void 0===i||i.call(n,r))},complete:function(){var t,r;e||((null===(t=p.current.options)||void 0===t?void 0:t.onComplete)?p.current.options.onComplete():(null===(r=p.current.options)||void 0===r?void 0:r.onSubscriptionComplete)&&p.current.options.onSubscriptionComplete())}});return function(){e=!0,setTimeout((function(){r.unsubscribe()}))}}}),[l]),a}function I(e){return b(s.useCallback((function(t){return e.onNextChange((function r(){t(),e.onNextChange(r)}))}),[e]),e,e)}var V=r(92922);function L(e){var t=d().cache,r=e.fragment,n=e.fragmentName,i=e.from,a=e.optimistic,u=void 0===a||a,c=(0,o.__rest)(e,["fragment","fragmentName","from","optimistic"]),l=(0,o.__assign)((0,o.__assign)({},c),{returnPartialData:!0,id:"string"==typeof i?i:t.identify(i),query:t.getFragmentDoc(r,n),optimistic:u}),f=s.useRef(),h=t.diff(l),p=function(){var e=N(h);return f.current&&(0,_.L)(f.current.data,e.data)?f.current:f.current=e};return b((function(e){var r=0,n=t.watch((0,o.__assign)((0,o.__assign)({},l),{immediate:!0,callback:function(t){(0,_.L)(t,h)||(f.current=N(h=t),r=setTimeout(e))}}));return function(){n(),clearTimeout(r)}}),p,p)}function N(e){var t={data:e.result,complete:!!e.complete};return e.missing&&(t.missing=(0,V.IM)(e.missing.map((function(e){return e.missing})))),t}var z=r(36697),U=a.use||function(e){var t=(0,z.zq)(e);switch(t.status){case"pending":throw t;case"rejected":throw t.reason;case"fulfilled":return t.value}},W=r(32453),B=Symbol(),K=["canonizeResults","context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"],H=function(){function e(e,t){var r,n=this;this.listeners=new Set,this.status="loading",this.references=0,this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.dispose=this.dispose.bind(this),this.observable=e,this.result=e.getCurrentResult(!1),this.key=t.key,t.onDispose&&(this.onDispose=t.onDispose),(0,O.D2)(this.result.networkStatus)||this.result.data&&(!this.result.partial||this.watchQueryOptions.returnPartialData)?(this.promise=(0,z.$D)(this.result),this.status="idle"):this.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),this.subscription=e.filter((function(e){var t=e.data;return!(0,_.L)(t,{})})).subscribe({next:this.handleNext,error:this.handleError}),this.autoDisposeTimeoutId=setTimeout(this.dispose,null!==(r=t.autoDisposeTimeoutMs)&&void 0!==r?r:3e4)}return Object.defineProperty(e.prototype,"watchQueryOptions",{get:function(){return this.observable.options},enumerable:!1,configurable:!0}),e.prototype.retain=function(){var e=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var t=!1;return function(){t||(t=!0,e.references--,setTimeout((function(){e.references||e.dispose()})))}},e.prototype.didChangeOptions=function(e){var t=this;return K.some((function(r){return!(0,_.L)(t.watchQueryOptions[r],e[r])}))},e.prototype.applyOptions=function(e){var t=this.watchQueryOptions,r=t.fetchPolicy,n=t.canonizeResults;return"standby"===r&&r!==e.fetchPolicy?this.initiateFetch(this.observable.reobserve(e)):(this.observable.silentSetOptions(e),n!==e.canonizeResults&&(this.result=(0,o.__assign)((0,o.__assign)({},this.result),this.observable.getCurrentResult()),this.promise=(0,z.$D)(this.result))),this.promise},e.prototype.listen=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},e.prototype.refetch=function(e){return this.initiateFetch(this.observable.refetch(e))},e.prototype.fetchMore=function(e){return this.initiateFetch(this.observable.fetchMore(e))},e.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},e.prototype.onDispose=function(){},e.prototype.handleNext=function(e){var t;switch(this.status){case"loading":void 0===e.data&&(e.data=this.result.data),this.status="idle",this.result=e,null===(t=this.resolve)||void 0===t||t.call(this,e);break;case"idle":if(e.data===this.result.data)return;void 0===e.data&&(e.data=this.result.data),this.result=e,this.promise=(0,z.$D)(e),this.deliver(this.promise)}},e.prototype.handleError=function(e){var t;switch(this.subscription.unsubscribe(),this.subscription=this.observable.resubscribeAfterError(this.handleNext,this.handleError),this.status){case"loading":this.status="idle",null===(t=this.reject)||void 0===t||t.call(this,e);break;case"idle":this.promise=(0,z.Il)(e),this.deliver(this.promise)}},e.prototype.deliver=function(e){this.listeners.forEach((function(t){return t(e)}))},e.prototype.initiateFetch=function(e){var t=this;return this.status="loading",this.promise=new Promise((function(e,r){t.resolve=e,t.reject=r})),this.promise.catch((function(){})),e.then((function(e){var r;"loading"===t.status&&(t.status="idle",t.result=e,null===(r=t.resolve)||void 0===r||r.call(t,e))})).catch((function(){})),e},e}(),J=function(){function e(e){void 0===e&&(e=Object.create(null)),this.queryRefs=new W.b(u.et),this.options=e}return e.prototype.getQueryRef=function(e,t){var r=this.queryRefs.lookupArray(e);return r.current||(r.current=new H(t(),{key:e,autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete r.current}})),r.current},e}(),$=Symbol.for("apollo.suspenseCache");function G(e){var t;return e[$]||(e[$]=new J(null===(t=e.defaultOptions.react)||void 0===t?void 0:t.suspense)),e[$]}var Y=r(22702),X=Symbol.for("apollo.skipToken");function Z(e,t){void 0===t&&(t=Object.create(null));var r=d(t.client),n=G(r),i=te({client:r,query:e,options:t}),a=i.fetchPolicy,u=i.variables,c=t.queryKey,l=void 0===c?[]:c,f=(0,o.__spreadArray)([e,(0,Y.M)(u)],[].concat(l),!0),h=n.getQueryRef(f,(function(){return r.watchQuery(i)})),p=s.useState((function(){return new Map([[h.key,h.promise]])})),y=p[0],v=p[1],b=y.get(h.key);h.didChangeOptions(i)&&(b=h.applyOptions(i),y.set(h.key,b)),b||(b=h.promise,y.set(h.key,b)),s.useEffect((function(){var e=h.retain(),t=h.listen((function(e){v((function(t){return new Map(t).set(h.key,e)}))}));return function(){t(),e()}}),[h]);var g=s.useMemo((function(){var e=ee(h.result);return{loading:!1,data:h.result.data,networkStatus:e?O.pT.error:O.pT.ready,error:e}}),[h.result]),m="standby"===a?g:U(b),_=s.useCallback((function(e){var t=h.fetchMore(e);return v((function(e){return new Map(e).set(h.key,h.promise)})),t}),[h]),w=s.useCallback((function(e){var t=h.refetch(e);return v((function(e){return new Map(e).set(h.key,h.promise)})),t}),[h]),k=s.useCallback((function(e){return h.observable.subscribeToMore(e)}),[h]);return s.useMemo((function(){return{client:r,data:m.data,error:ee(m),networkStatus:m.networkStatus,fetchMore:_,refetch:w,subscribeToMore:k}}),[r,_,w,m,k])}function ee(e){return(0,R.E)(e.errors)?new w.K4({graphQLErrors:e.errors}):e.error}function te(e){var t,r,n,a=e.client,u=e.query,c=e.options;return t=function(){var e;if(c===X)return{query:u,fetchPolicy:"standby"};var t=c.fetchPolicy||(null===(e=a.defaultOptions.watchQuery)||void 0===e?void 0:e.fetchPolicy)||"cache-first",r=(0,o.__assign)((0,o.__assign)({},c),{fetchPolicy:t,query:u,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0});return!1!==globalThis.__DEV__&&function(e){var t=e.query,r=e.fetchPolicy,n=e.returnPartialData;T(t,m.Query),function(e){void 0===e&&(e="cache-first"),(0,i.V1)(["cache-first","network-only","no-cache","cache-and-network"].includes(e),54,e)}(r),function(e,t){"no-cache"===e&&t&&!1!==globalThis.__DEV__&&i.V1.warn(55)}(r,n)}(r),c.skip&&(r.fetchPolicy="standby"),r},r=[a,c,u],(n=s.useRef()).current&&(0,_.L)(n.current.deps,r)||(n.current={value:t(),deps:r}),n.current.value}function re(e,t){void 0===t&&(t=Object.create(null));var r=d(t.client),n=G(r),i=te({client:r,query:e,options:t}),a=i.fetchPolicy,u=i.variables,c=t.queryKey,l=void 0===c?[]:c,f=s.useRef("standby"!==a);f.current||(f.current="standby"!==a);var h=(0,o.__spreadArray)([e,(0,Y.M)(u)],[].concat(l),!0),p=n.getQueryRef(h,(function(){return r.watchQuery(i)})),y=s.useState((function(){return new Map([[p.key,p.promise]])})),v=y[0],b=y[1];if(p.didChangeOptions(i)){var g=p.applyOptions(i);v.set(p.key,g)}s.useEffect((function(){return p.retain()}),[p]);var m=s.useCallback((function(e){var t=p.fetchMore(e);return b((function(e){return new Map(e).set(p.key,p.promise)})),t}),[p]),_=s.useCallback((function(e){var t=p.refetch(e);return b((function(e){return new Map(e).set(p.key,p.promise)})),t}),[p]);p.promiseCache=v;var w=s.useMemo((function(){return function(e){var t;return(t={})[B]=e,t}(p)}),[p]);return[f.current?w:void 0,{fetchMore:m,refetch:_}]}function ne(e){var t=function(e){return e[B]}(e);(0,i.V1)(t.promiseCache,49);var r=t.promiseCache,n=t.key;r.has(n)||r.set(n,t.promise);var o=b(s.useCallback((function(e){return t.listen((function(r){t.promiseCache.set(t.key,r),e()}))}),[t]),(function(){return r.get(n)}),(function(){return r.get(n)})),a=U(o);return s.useMemo((function(){return{data:a.data,networkStatus:a.networkStatus,error:ee(a)}}),[a])}var ie=function(e){function t(){throw e.call(this),new Error("It is no longer necessary to create a `SuspenseCache` instance and pass it into the `ApolloProvider`.\nPlease remove this code from your application. \n\nThis export will be removed with the final 3.8 release.")}return(0,o.__extends)(t,e),t}(J)},91188:(e,t,r)=>{r.d(t,{C:()=>l});var n=r(52687),i=r(73401),o=r(8674),s=r(84824);function a(e,t){return t?t(e):i.c.of()}function u(e){return"function"==typeof e?new l(e):e}function c(e){return e.request.length<=1}var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return i.c.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var o=u(r),s=u(n||new e(a));return c(o)&&c(s)?new e((function(e){return t(e)?o.request(e)||i.c.of():s.request(e)||i.c.of()})):new e((function(e,r){return t(e)?o.request(e,r)||i.c.of():s.request(e,r)||i.c.of()}))},e.execute=function(e,t){return e.request(function(e,t){var r=(0,o.__assign)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?(0,o.__assign)((0,o.__assign)({},r),e(r)):(0,o.__assign)((0,o.__assign)({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,o.__assign)({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,s.n4)(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];if(t.indexOf(o)<0)throw(0,n.vA)(41,o)}return e}(t))))||i.c.of()},e.concat=function(t,r){var o=u(t);if(c(o))return!1!==globalThis.__DEV__&&n.V1.warn(33,o),o;var s=u(r);return c(s)?new e((function(e){return o.request(e,(function(e){return s.request(e)||i.c.of()}))||i.c.of()})):new e((function(e,t){return o.request(e,(function(e){return s.request(e,t)||i.c.of()}))||i.c.of()}))},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(a)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,n.vA)(34)},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}()},74081:(e,t,r)=>{r.d(t,{g:()=>n});var n=r(91188).C.execute},8898:(e,t,r)=>{r.d(t,{Ch:()=>n.C,xW:()=>a,Ie:()=>i,g7:()=>u.g,HT:()=>o,lD:()=>s}),r(52687);var n=r(91188),i=n.C.empty,o=n.C.from,s=n.C.split,a=n.C.concat,u=r(74081)},94537:(e,t,r)=>{r.d(t,{P:()=>s});var n=r(8674),i=r(91188),o=r(13782),s=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,(0,o.$)(t).request)||this;return r.options=t,r}return(0,n.__extends)(t,e),t}(i.C)},83438:(e,t,r)=>{r.d(t,{S:()=>i});var n=r(52687),i=function(e){if(!e&&"undefined"==typeof fetch)throw(0,n.vA)(35)}},13782:(e,t,r)=>{r.d(t,{$:()=>m});var n=r(8674),i=r(52687),o=r(91188),s=r(68869),a=r(73401),u=r(49192),c=r(88039),l=r(21799),f=r(83438),h=r(84594),p=r(9162),d=r(86092),y=r(11786),v=r(3902),b=r(84824),g=(0,i.no)((function(){return fetch})),m=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,m=e.fetch,_=e.print,w=void 0===_?h.i1:_,O=e.includeExtensions,k=e.preserveHeaderCase,S=e.useGETForQueries,E=e.includeUnusedVariables,T=void 0!==E&&E,x=(0,n.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,f.S)(m||g);var P={http:{includeExtensions:O,preserveHeaderCase:k},options:x.fetchOptions,credentials:x.credentials,headers:x.headers};return new o.C((function(e){var t=(0,c.z)(e,r),o=e.getContext(),f={};if(o.clientAwareness){var _=o.clientAwareness,O=_.name,k=_.version;O&&(f["apollographql-client-name"]=O),k&&(f["apollographql-client-version"]=k)}var E=(0,n.__assign)((0,n.__assign)({},f),o.headers),x={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:E};if((0,s.d8)(["client"],e.query)){var R=(0,v.er)(e.query);if(!R)return(0,d.N)(new 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=R}var D,q,j,C,Q,M=(0,h.HY)(e,w,h.R4,P,x),A=M.options,F=M.body;F.variables&&!T&&(F.variables=(D=F.variables,q=e.query,j=(0,n.__assign)({},D),C=new Set(Object.keys(D)),(0,y.YR)(q,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&C.delete(e.name.value)}}),C.forEach((function(e){delete j[e]})),j)),A.signal||"undefined"==typeof AbortController||(Q=new AbortController,A.signal=Q.signal);var I,V="OperationDefinition"===(I=(0,b.Vn)(e.query)).kind&&"subscription"===I.operation,L=(0,s.d8)(["defer"],e.query);if(S&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(A.method="GET"),L||V){A.headers=A.headers||{};var N="multipart/mixed;";V&&L&&!1!==globalThis.__DEV__&&i.V1.warn(36),V?N+="boundary=graphql;subscriptionSpec=1.0,application/json":L&&(N+="deferSpec=20220824,application/json"),A.headers.accept=N}if("GET"===A.method){var z=(0,p.E)(t,F),U=z.newURI,W=z.parseError;if(W)return(0,d.N)(W);t=U}else try{A.body=(0,u.Y)(F,"Payload")}catch(W){return(0,d.N)(W)}return new a.c((function(r){var n=m||(0,i.no)((function(){return fetch}))||g,o=r.next.bind(r);return n(t,A).then((function(t){var r;e.setContext({response:t});var n=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?(0,l.tD)(t,o):(0,l.OQ)(e)(t).then(o)})).then((function(){Q=void 0,r.complete()})).catch((function(e){Q=void 0,(0,l.H4)(e,r)})),function(){Q&&Q.abort()}}))}))}},83746:(e,t,r)=>{r.d(t,{S:()=>n});var n=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}},21799:(e,t,r)=>{r.d(t,{H4:()=>d,OQ:()=>y,tD:()=>f});var n=r(8674),i=r(2619);function o(e){var t={next:function(){return e.read()}};return i.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}function s(e){var t,r,n,s=e;if(e.body&&(s=e.body),n=s,i.uJ&&n[Symbol.asyncIterator])return r=s[Symbol.asyncIterator](),(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t;if(function(e){return!!e.getReader}(s))return o(s.getReader());if(function(e){return!!e.stream}(s))return o(s.stream().getReader());if(function(e){return!!e.arrayBuffer}(s))return function(e){var t=!1,r={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise((function(t,r){e.then((function(e){t({value:e,done:!1})})).catch(r)})))}};return i.uJ&&(r[Symbol.asyncIterator]=function(){return this}),r}(s.arrayBuffer());if(function(e){return!!e.pipe}(s))return function(e){var t=null,r=null,n=!1,o=[],s=[];function a(e){if(!r){if(s.length){var t=s.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function u(e){r=e,s.slice().forEach((function(t){t[1](e)})),!t||t()}function c(){n=!0,s.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",u),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",a),e.on("error",u),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise((function(e,t){return r?t(r):o.length?e({value:o.shift(),done:!1}):n?e({value:void 0,done:!0}):void s.push([e,t])}))}};return i.uJ&&(l[Symbol.asyncIterator]=function(){return this}),l}(s);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var a=r(64251),u=r(9211),c=r(56453),l=Object.prototype.hasOwnProperty;function f(e,t){var r;return(0,n.__awaiter)(this,void 0,void 0,(function(){var i,o,a,l,f,d,y,v,b,g,m,_,w,O,k,S,E,T,x,P,R,D,q;return(0,n.__generator)(this,(function(j){switch(j.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");i=new TextDecoder("utf-8"),o=null===(r=e.headers)||void 0===r?void 0:r.get("content-type"),a="boundary=",l=(null==o?void 0:o.includes(a))?null==o?void 0:o.substring((null==o?void 0:o.indexOf(a))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",f="\r\n--".concat(l),d="",y=s(e),v=!0,j.label=1;case 1:return v?[4,y.next()]:[3,3];case 2:for(b=j.sent(),g=b.value,m=b.done,_="string"==typeof g?g:i.decode(g),w=d.length-f.length+1,v=!m,O=(d+=_).indexOf(f,w);O>-1;){if(k=void 0,D=[d.slice(0,O),d.slice(O+f.length)],d=D[1],S=(k=D[0]).indexOf("\r\n\r\n"),E=h(k.slice(0,S)),(T=E["content-type"])&&-1===T.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(x=k.slice(S))if(P=p(e,x),Object.keys(P).length>1||"data"in P||"incremental"in P||"errors"in P||"payload"in P)(0,c.Nw)(P)?(R={},"payload"in P&&(R=(0,n.__assign)({},P.payload)),"errors"in P&&(R=(0,n.__assign)((0,n.__assign)({},R),{extensions:(0,n.__assign)((0,n.__assign)({},"extensions"in R?R.extensions:null),(q={},q[u.K$]=P.errors,q))})),t(R)):t(P);else if(1===Object.keys(P).length&&"hasNext"in P&&!P.hasNext)return[2];O=d.indexOf(f)}return[3,1];case 3:return[2]}}))}))}function h(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}function p(e,t){e.status>=300&&(0,a.A)(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(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function d(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function y(e){return function(t){return t.text().then((function(e){return p(t,e)})).then((function(r){return t.status>=300&&(0,a.A)(t,r,"Response not successful: Received status code ".concat(t.status)),Array.isArray(r)||l.call(r,"data")||l.call(r,"errors")||(0,a.A)(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName,"'.")),r}))}}},9162:(e,t,r)=>{r.d(t,{E:()=>i});var n=r(49192);function i(e,t){var r=[],i=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var o=void 0;try{o=(0,n.Y)(t.variables,"Variables map")}catch(e){return{parseError:e}}i("variables",o)}if(t.extensions){var s=void 0;try{s=(0,n.Y)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}i("extensions",s)}var a="",u=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),u=e.substr(0,c));var l=-1===u.indexOf("?")?"?":"&";return{newURI:u+l+r.join("&")+a}}},84594:(e,t,r)=>{r.d(t,{HY:()=>u,R4:()=>o,Wz:()=>a,i1:()=>s});var n=r(8674),i=r(47397),o={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},s=function(e,t){return t(e)};function a(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return r.unshift(t),u.apply(void 0,(0,n.__spreadArray)([e,s],r,!1))}function u(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var s={},a={};r.forEach((function(e){s=(0,n.__assign)((0,n.__assign)((0,n.__assign)({},s),e.options),{headers:(0,n.__assign)((0,n.__assign)({},s.headers),e.headers)}),e.credentials&&(s.credentials=e.credentials),a=(0,n.__assign)((0,n.__assign)({},a),e.http)})),s.headers&&(s.headers=function(e,t){if(!t){var r=Object.create(null);return Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]=e[t]})),r}var n=Object.create(null);Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}}));var i=Object.create(null);return Object.keys(n).forEach((function(e){i[n[e].originalName]=n[e].value})),i}(s.headers,a.preserveHeaderCase));var u=e.operationName,c=e.extensions,l=e.variables,f=e.query,h={operationName:u,variables:l};return a.includeExtensions&&(h.extensions=c),a.includeQuery&&(h.query=t(f,i.y)),{options:s,body:h}}},88039:(e,t,r)=>{r.d(t,{z:()=>n});var n=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}},49192:(e,t,r)=>{r.d(t,{Y:()=>i});var n=r(52687),i=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var i=(0,n.vA)(37,t,e.message);throw i.parseError=e,i}return r}},86092:(e,t,r)=>{r.d(t,{N:()=>i});var n=r(73401);function i(e){return new n.c((function(t){t.error(e)}))}},73547:(e,t,r)=>{r.d(t,{S:()=>i});var n=r(73401);function i(e){return new n.c((function(t){e.then((function(e){t.next(e),t.complete()})).catch(t.error.bind(t))}))}},64251:(e,t,r)=>{r.d(t,{A:()=>n});var n=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n}},8671:(e,t,r)=>{r.d(t,{h:()=>i});var n=r(52687);function i(e){var t=!1;return new Promise((function(r,i){e.subscribe({next:function(e){t?!1!==globalThis.__DEV__&&n.V1.warn(40):(t=!0,r(e))},error:i})}))}},45636:(e,t,r)=>{r.d(t,{E:()=>i,c:()=>n});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},91495:(e,t,r)=>{r.d(t,{m:()=>i});var n=Object.prototype.toString;function i(e){return o(e)}function o(e,t){switch(n.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach((function(e,n){r[n]=o(e,t)})),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var i=Object.create(Object.getPrototypeOf(e));return t.set(e,i),Object.keys(e).forEach((function(r){i[r]=o(e[r],t)})),i;default:return e}}},87945:(e,t,r)=>{function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];void 0!==n&&(r[t]=n)}))})),r}r.d(t,{o:()=>n})},59599:(e,t,r)=>{r.d(t,{M:()=>s,t:()=>o});var n=r(45636),i=r(56453);function o(e){var t=s(e);return(0,n.E)(t)}function s(e){var t=(0,n.E)(e.errors)?e.errors.slice(0):[];return(0,i.ST)(e)&&(0,n.E)(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}},98170:(e,t,r)=>{r.d(t,{v:()=>i});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},21469:(e,t,r)=>{r.d(t,{G:()=>i});var n=r(90075);function i(e){return!1!==globalThis.__DEV__&&(t=e,(r=new Set([t])).forEach((function(e){(0,n.U)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(t){(0,n.U)(e[t])&&r.add(e[t])}))}))),e;var t,r}},92922:(e,t,r)=>{r.d(t,{D9:()=>s,IM:()=>a,ZI:()=>c});var n=r(8674),i=r(90075),o=Object.prototype.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(e)}function a(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new c,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var u=function(e,t,r){return this.merge(e[r],t[r])},c=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=i.U,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,s=[],a=2;a<arguments.length;a++)s[a-2]=arguments[a];return(0,i.U)(t)&&(0,i.U)(e)?(Object.keys(t).forEach((function(i){if(o.call(e,i)){var a=e[i];if(t[i]!==a){var u=r.reconciler.apply(r,(0,n.__spreadArray)([e,t,i],s,!1));u!==a&&((e=r.shallowCopyForMerge(e))[i]=u)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.U)(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):(0,n.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}()},60144:(e,t,r)=>{r.d(t,{l:()=>o});var n=r(8674),i=r(87945);function o(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,i.o)((0,n.__assign)((0,n.__assign)({},e&&e.variables),t.variables))})}},3813:(e,t,r)=>{r.d(t,{p:()=>i});var n=r(98170);function i(e,t){void 0===t&&(t=0);var r=(0,n.v)("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?r:t}),t).split(JSON.stringify(r)).join("<undefined>")}},37008:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(83687);const i=(0,n.n)((function(){return globalThis}))||(0,n.n)((function(){return window}))||(0,n.n)((function(){return self}))||(0,n.n)((function(){return global}))||(0,n.n)((function(){return n.n.constructor("return this")()}))},67235:(e,t,r)=>{r.d(t,{V1:()=>c,vA:()=>l});var n=r(8674),i=r(72232),o=r(32816),s=r(37008),a=r(3813);function u(e){return function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];"number"==typeof t?e(h(t,r)):e.apply(void 0,(0,n.__spreadArray)([t],r,!1))}}var c=Object.assign((function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||(0,i.V1)(e,h(t,r))}),{debug:u(i.V1.debug),log:u(i.V1.log),warn:u(i.V1.warn),error:u(i.V1.error)});function l(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new i.zU(h(e,t))}var f=Symbol.for("ApolloErrorMessageHandler_"+o.r);function h(e,t){if(void 0===t&&(t=[]),e){var r=t.map((function(e){return"string"==typeof e?e:(0,a.p)(e,2).slice(0,1e3)}));return s.A[f]&&s.A[f](e,r)||"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:o.r,message:e,args:r})))}}},29993:(e,t,r)=>{r.d(t,{c:()=>u});var n=r(32453),i=r(2619),o=r(84824),s=r(52687);function a(e){return e}var u=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.En?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),!1!==t.cache&&(this.stableCacheKeys=new n.b(i.et,(function(e){return{key:e}})))}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(a,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),new e((function(e){return(t(e)?r:n).transformDocument(e)}),{cache:!1})},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.getStableCacheEntry(e);if(t&&t.value)return t.value;(0,o.sw)(e);var r=this.transform(e);return this.resultCache.add(r),t&&(t.value=r),r},e.prototype.concat=function(t){var r=this;return new e((function(e){return t.transformDocument(r.transformDocument(e))}),{cache:!1})},e.prototype.getStableCacheEntry=function(e){if(this.stableCacheKeys){var t=this.getCacheKey(e);return t?((0,s.V1)(Array.isArray(t),63),this.stableCacheKeys.lookupArray(t)):void 0}},e}()},65215:(e,t,r)=>{r.d(t,{HQ:()=>a,JG:()=>s,ct:()=>o});var n=r(8674),i=r(52687);function o(e,t){var r=t,o=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw(0,i.vA)(68,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)})),void 0===r&&((0,i.V1)(1===o.length,69,o.length),r=o[0].name.value),(0,n.__assign)((0,n.__assign)({},e),{definitions:(0,n.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function a(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,i.V1)(n,70,r),n||null;default:return null}}},84824:(e,t,r)=>{r.d(t,{AT:()=>c,E4:()=>l,Vn:()=>f,Vu:()=>s,n4:()=>a,sw:()=>o,wY:()=>h,zK:()=>u});var n=r(52687),i=r(67194);function o(e){(0,n.V1)(e&&"Document"===e.kind,71);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw(0,n.vA)(72,e.kind);return e}));return(0,n.V1)(t.length<=1,73,t.length),e}function s(e){return o(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function a(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function u(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function c(e){var t=s(e);return(0,n.V1)(t&&"query"===t.operation,74),t}function l(e){(0,n.V1)("Document"===e.kind,75),(0,n.V1)(e.definitions.length<=1,76);var t=e.definitions[0];return(0,n.V1)("FragmentDefinition"===t.kind,77),t}function f(e){var t;o(e);for(var r=0,i=e.definitions;r<i.length;r++){var s=i[r];if("OperationDefinition"===s.kind){var a=s.operation;if("query"===a||"mutation"===a||"subscription"===a)return s}"FragmentDefinition"!==s.kind||t||(t=s)}if(t)return t;throw(0,n.vA)(78)}function h(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach((function(e){e.defaultValue&&(0,i.J)(t,e.variable.name,e.defaultValue)})),t}},47397:(e,t,r)=>{r.d(t,{y:()=>o});var n=r(99352),i=r(2619).et?new WeakMap:void 0,o=function(e){var t;return(t=null==i?void 0:i.get(e))||(t=(0,n.print)(e),null==i||i.set(e,t)),t}},67194:(e,t,r)=>{r.d(t,{A_:()=>a,D$:()=>b,Ii:()=>l,J:()=>c,Kc:()=>u,MB:()=>y,WU:()=>s,dt:()=>g,kd:()=>m,o5:()=>h,ue:()=>v});var n=r(52687),i=r(90075),o=r(65215);function s(e){return{__ref:String(e)}}function a(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function u(e){return(0,i.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function c(e,t,r,i){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var o={};r.fields.map((function(e){return c(o,e.name,e.value,i)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(r)){var s=(i||{})[r.name.value];e[t.value]=s}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return c(r,t,e,i),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw(0,n.vA)(79,t.value,r.kind);e[t.value]=null}}function l(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 c(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 c(n,r,i,t)}))),h(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export","nonreactive"],h=Object.assign((function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach((function(e){i[e]=t[e]})),"".concat(r.connection.key,"(").concat(p(i),")")}return r.connection.key}var o=e;if(t){var s=p(t);o+="(".concat(s,")")}return r&&Object.keys(r).forEach((function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(p(r[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,d)};function d(e,t){return(0,i.U)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{})),t}function y(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return c(r,n,i,t)})),r}return null}function v(e){return e.alias?e.alias.value:e.name.value}function b(e,t,r){for(var n,i=0,s=t.selections;i<s.length;i++)if(g(c=s[i])){if("__typename"===c.name.value)return e[v(c)]}else n?n.push(c):n=[c];if("string"==typeof e.__typename)return e.__typename;if(n)for(var a=0,u=n;a<u.length;a++){var c=u[a],l=b(e,(0,o.HQ)(c,r).selectionSet,r);if("string"==typeof l)return l}}function g(e){return"Field"===e.kind}function m(e){return"InlineFragment"===e.kind}},82562:(e,t,r)=>{r.d(t,{E:()=>u});var n=r(8674),i=r(73401),o=r(26502),s=r(21291);function a(e){return e&&"function"==typeof e.then}var u=function(e){function t(t){var r=e.call(this,(function(e){return r.addObserver(e),function(){return r.removeObserver(e)}}))||this;return r.observers=new Set,r.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),(0,o.w)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),(0,o.w)(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?a(i)?i.then((function(e){return r.sub=e.subscribe(r.handlers)})):r.sub=i.subscribe(r.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,o.w)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch((function(e){})),"function"==typeof t&&(t=[new i.c(t)]),a(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return(0,n.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach((function(r){return r(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(r,n){t||(t=!0,e(r,n))}))},t}(i.c);(0,s.r)(u)},83851:(e,t,r)=>{r.d(t,{x:()=>i});var n=r(73401);function i(e,t,r){return new n.c((function(n){var i=n.next,o=n.error,s=n.complete,a=0,u=!1,c={then:function(e){return new Promise((function(t){return t(e())}))}};function l(e,t){return e?function(t){++a;var r=function(){return e(t)};c=c.then(r,r).then((function(e){--a,i&&i.call(n,e),u&&f.complete()}),(function(e){throw--a,e})).catch((function(e){o&&o.call(n,e)}))}:function(e){return t&&t.call(n,e)}}var f={next:l(t,i),error:l(r,o),complete:function(){u=!0,a||s&&s.call(n)}},h=e.subscribe(f);return function(){return h.unsubscribe()}}))}},26502:(e,t,r)=>{function n(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}r.d(t,{w:()=>n})},21291:(e,t,r)=>{r.d(t,{r:()=>o});var n=r(73401),i=r(2619);function o(e){function t(t){Object.defineProperty(e,t,{value:n.c})}return i.ol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},32816:(e,t,r)=>{r.d(t,{r:()=>n});var n="3.8.4"},17459:(e,t,r)=>{r.d(t,{DX:()=>c});let n=null;const i={};let o=1;function s(e){try{return e()}catch(e){}}const a="@wry/context:Slot",u=s((()=>globalThis))||s((()=>global))||Object.create(null),c=u[a]||Array[a]||function(e){try{Object.defineProperty(u,a,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=n;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1}getValue(){if(this.hasValue())return n.slots[this.id]}withValue(e,t,r,i){const o={__proto__:null,[this.id]:e},s=n;n={parent:s,slots:o};try{return t.apply(i,r)}finally{n=s}}static bind(e){const t=n;return function(){const r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}}static noContext(e,t,r){if(!n)return e.apply(r,t);{const i=n;try{return n=null,e.apply(r,t)}finally{n=i}}}}),{bind:l,noContext:f}=c},15381:(e,t,r)=>{r.d(t,{A:()=>u,L:()=>a});const{toString:n,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,s=new Map;function a(e,t){try{return c(e,t)}finally{s.clear()}}const u=a;function c(e,t){if(e===t)return!0;const r=n.call(e);if(r!==n.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(p(e,t))return!0;const r=l(e),n=l(t),o=r.length;if(o!==n.length)return!1;for(let e=0;e<o;++e)if(!i.call(t,r[e]))return!1;for(let n=0;n<o;++n){const i=r[n];if(!c(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(p(e,t))return!0;const n=e.entries(),i="[object Map]"===r;for(;;){const e=n.next();if(e.done)break;const[r,o]=e.value;if(!t.has(r))return!1;if(i&&!c(o,t.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let r=e.byteLength;if(r===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const r=o.call(e);return r===o.call(t)&&!function(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(r,h)}}return!1}function l(e){return Object.keys(e).filter(f,e)}function f(e){return void 0!==this[e]}const h="{ [native code] }";function p(e,t){let r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},32453:(e,t,r)=>{r.d(t,{b:()=>a});const n=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:s}=Object.prototype;class a{constructor(e=!0,t=n){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return i.call(e,(e=>t=t.getChildTrie(e))),s.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){const n=this.weakness&&u(e[r])?t.weak:t.strong;t=n&&n.get(e[r])}return t&&t.data}getChildTrie(e){const t=this.weakness&&u(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let r=t.get(e);return r||t.set(e,r=new a(this.weakness,this.makeData)),r}}function u(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}},23899:(e,t,r)=>{r.d(t,{yN:()=>x,LV:()=>q});var n=r(32453);function i(){}class o{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}const s=new(r(17459).DX),{hasOwnProperty:a}=Object.prototype,u=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function c(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const l=[],f=100;function h(e,t){if(!e)throw new Error(t||"assertion failure")}function p(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class d{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++d.count}peek(){if(1===this.value.length&&!b(this))return y(this),this.value[0]}recompute(e){return h(!this.recomputing,"already recomputing"),y(this),b(this)?function(e,t){return S(e),s.withValue(e,v,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{c(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,b(e)||m(e)}(e),p(e.value)}(this,e):p(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,g(this),c(this))}dispose(){this.setDirty(),S(this),_(this,((e,t)=>{e.setDirty(),E(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=l.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(u(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),l.push(this.deps),this.deps=null)}}function y(e){const t=s.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),b(e)?w(t,e):O(t,e),t}function v(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function b(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function g(e){_(e,w)}function m(e){_(e,O)}function _(e,t){const r=e.parents.size;if(r){const n=u(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function w(e,t){h(e.childValues.has(t)),h(b(t));const r=!b(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=l.pop()||new Set;e.dirtyChildren.add(t),r&&g(e)}function O(e,t){h(e.childValues.has(t)),h(!b(t));const r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):function(e,t){const r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}(r,t.value)||e.setDirty(),k(e,t),b(e)||m(e)}function k(e,t){const r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(l.length<f&&l.push(r),e.dirtyChildren=null))}function S(e){e.childValues.size>0&&e.childValues.forEach(((t,r)=>{E(e,r)})),e.forgetDeps(),h(null===e.dirtyChildren)}function E(e,t){t.parents.delete(e),e.childValues.delete(t),k(e,t)}d.count=0;const T={setDirty:!0,dispose:!0,forget:!0};function x(e){const t=new Map,r=e&&e.subscribe;function n(e){const n=s.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(c(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){const n=t.get(e);if(n){const i=r&&a.call(T,r)?r:"setDirty";u(n).forEach((e=>e[i]())),t.delete(e),c(n)}},n}let P;function R(...e){return(P||(P=new n.b("function"==typeof WeakMap))).lookupArray(e)}const D=new Set;function q(e,{max:t=Math.pow(2,16),makeCacheKey:r=R,keyArgs:n,subscribe:i}=Object.create(null)){const a=new o(t,(e=>e.dispose())),u=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=a.get(t);o||(a.set(t,o=new d(e)),o.subscribe=i,o.forget=()=>a.delete(t));const u=o.recompute(Array.prototype.slice.call(arguments));return a.set(t,o),D.add(a),s.hasValue()||(D.forEach((e=>e.clean())),D.clear()),u};function c(e){const t=a.get(e);t&&t.setDirty()}function l(e){const t=a.get(e);if(t)return t.peek()}function f(e){return a.delete(e)}return Object.defineProperty(u,"size",{get:()=>a.map.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,makeCacheKey:r,keyArgs:n,subscribe:i}),u.dirtyKey=c,u.dirty=function(){c(r.apply(null,arguments))},u.peekKey=l,u.peek=function(){return l(r.apply(null,arguments))},u.forgetKey=f,u.forget=function(){return f(r.apply(null,arguments))},u.makeCacheKey=r,u.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(u)}},72232:(e,t,r)=>{r.d(t,{Q9:()=>h,V1:()=>u,zU:()=>a});var n=r(8674),i="Invariant Violation",o=Object.setPrototypeOf,s=void 0===o?function(e,t){return e.__proto__=t,e}:o,a=function(e){function t(r){void 0===r&&(r=i);var n=e.call(this,"number"==typeof r?i+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=i,s(n,t.prototype),n}return(0,n.__extends)(t,e),t}(Error);function u(e,t){if(!e)throw new a(t)}var c=["debug","log","warn","error","silent"],l=c.indexOf("log");function f(e){return function(){if(c.indexOf(e)>=l)return(console[e]||console.log).apply(console,arguments)}}function h(e){var t=c[l];return l=Math.max(0,c.indexOf(e)),t}!function(e){e.debug=f("debug"),e.log=f("log"),e.warn=f("warn"),e.error=f("error")}(u||(u={}))},73401:(e,t,r)=>{function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(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 o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{c:()=>k});var s=function(){return"function"==typeof Symbol},a=function(e){return s()&&Boolean(Symbol[e])},u=function(e){return a(e)?Symbol[e]:"@@"+e};s()&&!a("observable")&&(Symbol.observable=Symbol("observable"));var c=u("iterator"),l=u("observable"),f=u("species");function h(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function p(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:k}function d(e){return e instanceof k}function y(e){y.log?y.log(e):setTimeout((function(){throw e}))}function v(e){Promise.resolve().then((function(){try{e()}catch(e){y(e)}}))}function b(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=h(t,"unsubscribe");r&&r.call(t)}}catch(e){y(e)}}function g(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=h(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(g(e),!i)throw r;i.call(n,r);break;case"complete":g(e),i&&i.call(n)}}catch(e){y(e)}"closed"===e._state?b(e):"running"===e._state&&(e._state="ready")}function _(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void v((function(){return function(e){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);}}(e)}))):void m(e,t,r);e._queue.push({type:t,value:r})}}var w=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new O(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&&(g(this),b(this))},o(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),O=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){_(this._subscription,"next",e)},t.error=function(e){_(this._subscription,"error",e)},t.complete=function(){_(this._subscription,"complete")},o(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),k=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new 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 w(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),r()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(p(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 new TypeError(e+" is not a function");return new(p(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 new TypeError(e+" is not a function");var r=p(this),n=arguments.length>1,i=!1,o=arguments[1];return new r((function(r){return t.subscribe({next:function(t){var s=!i;if(i=!0,!s||n)try{o=e(o,t)}catch(e){return r.error(e)}else o=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(o),r.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=p(this);return new i((function(t){var n,o=0;return function e(s){n=s.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++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=p(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),s()}});i.push(o)},error:function(e){n.error(e)},complete:function(){s()}});function s(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[l]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var i=h(t,l);if(i){var o=i.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return d(o)&&o.constructor===r?o:new r((function(e){return o.subscribe(e)}))}if(a("iterator")&&(i=h(t,c)))return new r((function(e){v((function(){if(!e.closed){for(var r,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new 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));!(r=o()).done;){var s=r.value;if(e.next(s),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){v((function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)((function(e){v((function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}}))}))},o(e,null,[{key:f,get:function(){return this}}]),e}();s()&&Object.defineProperty(k,Symbol("extensions"),{value:{symbol:l,hostReportError:y},configurable:!0})}}]);