PageSourceSearch

https://www.preemptdisinfectants.ca/_next/static/chunks/pages/_app-c23b150bc226abcb.js

js preemptdisinfectants.ca collected 2026-10-06 09:30:36 UTC 184,363 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{6849:function(e,t,n){"use strict";n.d(t,{k1:function(){return f},l0:function(){return l}});var r,i,o=n(7294),a=n(4298),s=n.n(a);(r=i||(i={})).ENGLISH="en",r.DANISH="da",r.GERMAN="de",r.SPANISH="es",r.SPANISH_MEXICO="es-mx",r.FINNISH="fi",r.FRENCH="fr",r.ITALIAN="it",r.JAPANESE="ja",r.DUTCH="nl",r.POLISH="pl",r.PORTUGUESE="pt-br",r.SWEDISH="sv",r.CHINESE="zh-cn",r.CHINESE_HONG_KONG="zh-hk";let u=(0,o.createContext)({loaded:!1,error:!1}),c=()=>{let e=(0,o.useContext)(u);return(0,o.useDebugValue)(`Hubspot Script: ${(null==e?void 0:e.loaded)?"Loaded":"Not Loaded"}`),(0,o.useDebugValue)(`Failed to load Script: ${(null==e?void 0:e.error)?"Yes":"No"}`),e},l=e=>{var{children:t,id:n="hubspotScript",src:r="https://js.hsforms.net/forms/v2.js",strategy:i="afterInteractive",onLoad:a,onError:c}=e,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["children","id","src","strategy","onLoad","onError"]);let[f,h]=(0,o.useState)(!1),[p,d]=(0,o.useState)(!1);(0,o.useEffect)(()=>{h(!1),d(!1)},[r]);let v=(0,o.useCallback)(e=>{h(!0),null==a||a(e)},[a]),y=(0,o.useCallback)(e=>{d(!0),null==c||c(e)},[c]),m=(0,o.useMemo)(()=>({loaded:f,error:p}),[f,p]);return o.createElement(u.Provider,{value:m},t,o.createElement(s(),Object.assign({id:n,src:r,strategy:i,onLoad:v,onError:y},l)))},f=e=>{let{loaded:t,error:n}=c(),[r,i]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(t&&!r)try{window.hbspt.forms.create(e),i(!0)}catch(n){console.warn("Failed to create hubspot form:"),console.error(n),i(!1)}},[t,r,i]),(0,o.useDebugValue)(`Form created: ${r}`),{loaded:t,formCreated:r,error:n}}},3454:function(e,t,n){"use strict";var r,i;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(7663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(6057)}])},6057:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return rj}});var r,i,o,a,s,u,c,l,f,h,p,d,v=n(5893),y=n(6849);n(2968);var m=function(e,t){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function b(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var g=function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function w(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function _(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function O(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(u){s=[6,u],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function E(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
1var S="Invariant Violation",k=Object.setPrototypeOf,D=void 0===k?function(e,t){return e.__proto__=t,e}:k,T=function(e){function t(n){void 0===n&&(n=S);var r=e.call(this,"number"==typeof n?S+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=S,D(r,t.prototype),r}return b(t,e),t}(Error);function x(e,t){if(!e)throw new T(t)}var P=["debug","log","warn","error","silent"],F=P.indexOf("log");function I(e){return function(){if(P.indexOf(e)>=F)return(console[e]||console.log).apply(console,arguments)}}function C(e){try{return e()}catch(t){}}(r=x||(x={})).debug=I("debug"),r.log=I("log"),r.warn=I("warn"),r.error=I("error");var q=C(function(){return globalThis})||C(function(){return window})||C(function(){return self})||C(function(){return global})||C(function(){return C.constructor("return this")()}),R="__DEV__",j=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(q,R,{value:"production"!==C(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),q[R]}}(),Q=n(3454);function N(e){try{return e()}catch(t){}}var A=N(function(){return globalThis})||N(function(){return window})||N(function(){return self})||N(function(){return global})||N(function(){return N.constructor("return this")()}),V=!1;!A||N(function(){return"production"})||N(function(){return Q})||(Object.defineProperty(A,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),V=!0);V&&(delete A.process,V=!1),__DEV__?x("boolean"==typeof j,j):x("boolean"==typeof j,39);var M=n(7294),L="function"==typeof WeakMap&&"ReactNative"!==C(function(){return navigator.product}),U="function"==typeof WeakSet,B="function"==typeof Symbol&&"function"==typeof Symbol.for,z=B&&Symbol.asyncIterator;C(function(){return window.document.createElement}),C(function(){return navigator.userAgent.indexOf("jsdom")>=0});var W=B?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__",K=function(e){var t,n=e.client,r=e.children,i=((t=M.createContext[W])||(Object.defineProperty(M.createContext,W,{value:t=M.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t);return M.createElement(i.Consumer,null,function(e){return void 0===e&&(e={}),n&&e.client!==n&&(e=Object.assign({},e,{client:n})),__DEV__?x(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):x(e.client,29),M.createElement(i.Provider,{value:e},r)})};function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H(e,t,n){return t&&G(e.prototype,t),n&&G(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var J=function(){return"function"==typeof Symbol},Y=function(e){return J()&&Boolean(Symbol[e])},$=function(e){return Y(e)?Symbol[e]:"@@"+e};J()&&!Y("observable")&&(Symbol.observable=Symbol("observable"));var X=$("iterator"),ee=$("observable"),et=$("species");function en(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw TypeError(n+" is not a function");return n}}function er(e){var t=e.constructor;return void 0!==t&&null===(t=t[et])&&(t=void 0),void 0!==t?t:eh}function ei(e){ei.log?ei.log(e):setTimeout(function(){throw e})}function eo(e){Promise.resolve().then(function(){try{e()}catch(t){ei(t)}})}function ea(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var n=en(t,"unsubscribe");n&&n.call(t)}}catch(r){ei(r)}}}function es(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function eu(e,t,n){e._state="running";var r=e._observer;try{var i=en(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(es(e),i)i.call(r,n);else throw n;break;case"complete":es(e),i&&i.call(r)}}catch(o){ei(o)}"closed"===e._state?ea(e):"running"===e._state&&(e._state="ready")}function ec(e,t,n){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:n});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:n}],eo(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(eu(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)});return}eu(e,t,n)}}var el=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new ef(this);try{this._cleanup=t.call(void 0,n)}catch(r){n.error(r)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(es(this),ea(this))},H(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),ef=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){ec(this._subscription,"next",e)},t.error=function(e){ec(this._subscription,"error",e)},t.complete=function(){ec(this._subscription,"complete")},H(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),eh=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new el(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(n,r){if("function"!=typeof e){r(TypeError(e+" is not a function"));return}function i(){o.unsubscribe(),n()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(n){r(n),o.unsubscribe()}},error:r,complete:n})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(er(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(r){return n.error(r)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(er(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(r){return n.error(r)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=er(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n(function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(s){return n.error(s)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=er(this);return new i(function(t){var r,o=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=er(this);return new n(function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(o){return r.error(o)}var s=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(s);e>=0&&i.splice(e,1),a()}});i.push(s)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}
1return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[ee]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var r=en(t,ee);if(r){var i=r.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof eh&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(Y("iterator")&&(r=en(t,X)))return new n(function(e){eo(function(){if(!e.closed){for(var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z(e,t)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){eo(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)(function(e){eo(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},H(e,null,[{key:et,get:function(){return this}}]),e}();function ep(e){return null!==e&&"object"==typeof e}function ed(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new T("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new T(44);"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(__DEV__?x(1===r.length,"Found ".concat(r.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):x(1===r.length,45),n=r[0].name.value),g(g({},e),{definitions:E([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function ev(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function ey(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return __DEV__?x(r,"No fragment named ".concat(n)):x(r,46),r||null;default:return null}}function em(e){return{__ref:String(e)}}function eb(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function eg(e,t,n,r){if("IntValue"===n.kind||"FloatValue"===n.kind)e[t.value]=Number(n.value);else if("BooleanValue"===n.kind||"StringValue"===n.kind)e[t.value]=n.value;else if("ObjectValue"===n.kind){var i={};n.fields.map(function(e){return eg(i,e.name,e.value,r)}),e[t.value]=i}else if("Variable"===n.kind){var o=(r||{})[n.name.value];e[t.value]=o}else if("ListValue"===n.kind)e[t.value]=n.values.map(function(e){var n={};return eg(n,t,e,r),n[t.value]});else if("EnumValue"===n.kind)e[t.value]=n.value;else if("NullValue"===n.kind)e[t.value]=null;else throw __DEV__?new T('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new T(55)}J()&&Object.defineProperty(eh,Symbol("extensions"),{value:{symbol:ee,hostReportError:ei},configurable:!0});var ew=["connection","include","skip","client","rest","export"],e_=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(!n.connection.filter||!(n.connection.filter.length>0))return n.connection.key;var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),"".concat(n.connection.key,"(").concat(eO(i),")")}var o=e;if(t){var a=eO(t);o+="(".concat(a,")")}
1return n&&Object.keys(n).forEach(function(e){-1===ew.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(eO(n[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=eO;return eO=e,t}}),eO=function(e){return JSON.stringify(e,eE)};function eE(e,t){return ep(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function eS(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return eg(n,e.name,e.value,t)}),n}return null}function ek(e){return e.alias?e.alias.value:e.name.value}function eD(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(eT(o)){if("__typename"===o.name.value)return e[ek(o)]}else{var a=eD(e,ey(o,n).selectionSet,n);if("string"==typeof a)return a}}}function eT(e){return"Field"===e.kind}function ex(e){return"InlineFragment"===e.kind}function eP(e){__DEV__?x(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):x(e&&"Document"===e.kind,47);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new T('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new T(48);return e});return __DEV__?x(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):x(t.length<=1,49),e}function eF(e){return eP(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function eI(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function eC(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function eq(e){var t=eF(e);return __DEV__?x(t&&"query"===t.operation,"Must contain a query definition."):x(t&&"query"===t.operation,50),t}function eR(e){eP(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new T("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new T(54)}function ej(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&eg(t,e.variable.name,e.defaultValue)}),t}function eQ(e,t){return t?t(e):eh.of()}function eN(e){return"function"==typeof e?new eM(e):e}function eA(e){return e.request.length<=1}var eV=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return b(t,e),t}(Error),eM=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return eh.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(eN).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=eN(n),o=eN(r||new e(eQ));return new e(eA(i)&&eA(o)?function(e){return t(e)?i.request(e)||eh.of():o.request(e)||eh.of()}:function(e,n){return t(e)?i.request(e,n)||eh.of():o.request(e,n)||eh.of()})},e.execute=function(e,t){var n,r,i,o;return e.request((i=t.context,(r={variables:(n=function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(0>t.indexOf(i))throw __DEV__?new T("illegal argument: ".concat(i)):new T(27)}return e}(t)).variables||{},extensions:n.extensions||{},operationName:n.operationName,query:n.query}).operationName||(r.operationName="string"!=typeof r.query?eI(r.query)||void 0:""),o=g({},i),Object.defineProperty(r,"setContext",{enumerable:!1,value:function(e){o="function"==typeof e?g(g({},o),e(o)):g(g({},o),e)}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:function(){return g({},o)}}),r))||eh.of()},e.concat=function(t,n){var r=eN(t);if(eA(r))return __DEV__&&x.warn(new eV("You are calling concat on a terminating link, which will have no effect",r)),r;var i=eN(n);return new e(eA(i)?function(e){return r.request(e,function(e){return i.request(e)||eh.of()})||eh.of()}:function(e,t){return r.request(e,function(e){return i.request(e,t)||eh.of()})||eh.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(eQ)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new T("request is not implemented"):new T(22)},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}(),eL=eM.execute;let eU={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
1Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},eB=new Set(Object.keys(eU));function ez(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&eB.has(t)}(i=c||(c={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription",(o=l||(l={})).NAME="Name",o.DOCUMENT="Document",o.OPERATION_DEFINITION="OperationDefinition",o.VARIABLE_DEFINITION="VariableDefinition",o.SELECTION_SET="SelectionSet",o.FIELD="Field",o.ARGUMENT="Argument",o.FRAGMENT_SPREAD="FragmentSpread",o.INLINE_FRAGMENT="InlineFragment",o.FRAGMENT_DEFINITION="FragmentDefinition",o.VARIABLE="Variable",o.INT="IntValue",o.FLOAT="FloatValue",o.STRING="StringValue",o.BOOLEAN="BooleanValue",o.NULL="NullValue",o.ENUM="EnumValue",o.LIST="ListValue",o.OBJECT="ObjectValue",o.OBJECT_FIELD="ObjectField",o.DIRECTIVE="Directive",o.NAMED_TYPE="NamedType",o.LIST_TYPE="ListType",o.NON_NULL_TYPE="NonNullType",o.SCHEMA_DEFINITION="SchemaDefinition",o.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",o.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",o.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",o.FIELD_DEFINITION="FieldDefinition",o.INPUT_VALUE_DEFINITION="InputValueDefinition",o.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",o.UNION_TYPE_DEFINITION="UnionTypeDefinition",o.ENUM_TYPE_DEFINITION="EnumTypeDefinition",o.ENUM_VALUE_DEFINITION="EnumValueDefinition",o.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",o.DIRECTIVE_DEFINITION="DirectiveDefinition",o.SCHEMA_EXTENSION="SchemaExtension",o.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",o.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",o.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",o.UNION_TYPE_EXTENSION="UnionTypeExtension",o.ENUM_TYPE_EXTENSION="EnumTypeExtension",o.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";let eW=Object.freeze({});function eK(e,t,n=eU){let r,i,o;let a=new Map;for(let s of Object.values(l))a.set(s,function(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,s));let u=Array.isArray(e),c=[e],f=-1,h=[],p=e,d=[],v=[];do{var y,m,b;let g;f++;let w=f===c.length,_=w&&0!==h.length;if(w){if(i=0===v.length?void 0:d[d.length-1],p=o,o=v.pop(),_){if(u){p=p.slice();let O=0;for(let[E,S]of h){let k=E-O;null===S?(p.splice(k,1),O++):p[k]=S}}else for(let[D,T]of(p=Object.defineProperties({},Object.getOwnPropertyDescriptors(p)),h))p[D]=T}f=r.index,c=r.keys,h=r.edits,u=r.inArray,r=r.prev}else if(o){if(null==(p=o[i=u?f:c[f]]))continue;d.push(i)}if(!Array.isArray(p)){ez(p)||function(e,t){let n=Boolean(e);if(!n)throw Error(t)}(!1,`Invalid AST Node: ${function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,n){if(null===t)return"null";if(n.includes(t))return"[Circular]";let r=[...n,t];if("function"==typeof t.toJSON){let i=t.toJSON();if(i!==t)return"string"==typeof i?i:e(i,r)}else if(Array.isArray(t))return function(t,n){if(0===t.length)return"[]";if(n.length>2)return"[Array]";let r=Math.min(10,t.length),i=t.length-r,o=[];for(let a=0;a<r;++a)o.push(e(t[a],n));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,r);return function(t,n){let r=Object.entries(t);if(0===r.length)return"{}";if(n.length>2)return"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(t)+"]";let i=r.map(([t,r])=>t+": "+e(r,n));return"{ "+i.join(", ")+" }"}(t,r)}(t,n);default:return String(t)}}(p,[])}.`);let x=w?null===(y=a.get(p.kind))||void 0===y?void 0:y.leave:null===(m=a.get(p.kind))||void 0===m?void 0:m.enter;if((g=null==x?void 0:x.call(t,p,i,o,d,v))===eW)break;if(!1===g){if(!w){d.pop();continue}}
1else if(void 0!==g&&(h.push([i,g]),!w)){if(ez(g))p=g;else{d.pop();continue}}}void 0===g&&_&&h.push([i,p]),w?d.pop():(r={inArray:u,index:f,keys:c,edits:h,prev:r},c=(u=Array.isArray(p))?p:null!==(b=n[p.kind])&&void 0!==b?b:[],f=-1,h=[],o&&v.push(o),o=p)}while(void 0!==r);return 0!==h.length?h[h.length-1][1]:e}function eZ(e,t){var n,r=e.directives;return!r||!r.length||(n=[],r&&r.length&&r.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var r=e.arguments,i=e.name.value;__DEV__?x(r&&1===r.length,"Incorrect number of arguments for the @".concat(i," directive.")):x(r&&1===r.length,41);var o=r[0];__DEV__?x(o.name&&"if"===o.name.value,"Invalid argument for the @".concat(i," directive.")):x(o.name&&"if"===o.name.value,42);var a=o.value;__DEV__?x(a&&("Variable"===a.kind||"BooleanValue"===a.kind),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):x(a&&("Variable"===a.kind||"BooleanValue"===a.kind),43),n.push({directive:e,ifArgument:o})}}),n).every(function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?x(void 0!==i,"Invalid variable referenced in @".concat(n.name.value," directive.")):x(void 0!==i,40)):i=r.value.value,"skip"===n.name.value?!i:i})}function eG(e,t,n){var r=new Set(e),i=r.size;return eK(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return eW}}),n?!r.size:r.size<i}var eH=function(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=__DEV__?new T("Network request failed. ".concat(t," is not serializable: ").concat(i.message)):new T(24);throw r.parseError=i,r}return n};function eJ(e){var t={next:function(){return e.read()}};return z&&(t[Symbol.asyncIterator]=function(){return this}),t}var eY=function(e,t,n){var r=Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},e$=Object.prototype.hasOwnProperty;function eX(e,t){e.status>=300&&eY(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function e0(e,t){var n,r;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(n=t.next)||void 0===n||n.call(t,e.result)),null===(r=t.error)||void 0===r||r.call(t,e))}var e1=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new T("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "):new T(23)};function e2(e){return 9===e||32===e}let e8=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function e9(e){return e6[e.charCodeAt(0)]}let e6=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function e4(e){return eK(e,e3)}let e3={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>e7(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=te("(",e7(e.variableDefinitions,", "),")"),n=e7([e.o
1peration,e7([e.name,t]),e7(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+te(" = ",n)+te(" ",e7(r," "))},SelectionSet:{leave:({selections:e})=>e5(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=te("",e,": ")+t,a=o+te("(",e7(n,", "),")");return a.length>80&&(a=o+te("(\n",tt(e7(n,"\n")),"\n)")),e7([a,e7(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+te(" ",e7(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>e7(["...",te("on ",e),e7(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${te("(",e7(n,", "),")")} on ${t} ${te("",e7(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(e=>0===e.length||e2(e.charCodeAt(0))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,u=e.endsWith("\\"),c=s||u,l=!(null!=t&&t.minimize)&&(!i||e.length>70||c||o||a),f="",h=i&&e2(e.charCodeAt(0));return(l&&!h||o)&&(f+="\n"),f+=n,(l||c)&&(f+="\n"),'"""'+f+'"""'}(e):`"${e.replace(e8,e9)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+e7(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+e7(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+te("(",e7(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>te("",e,"\n")+e7(["schema",e7(t," "),e5(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>te("",e,"\n")+e7(["scalar",t,e7(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>te("",e,"\n")+e7(["type",t,te("implements ",e7(n," & ")),e7(r," "),e5(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>te("",e,"\n")+t+(tn(n)?te("(\n",tt(e7(n,"\n")),"\n)"):te("(",e7(n,", "),")"))+": "+r+te(" ",e7(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>te("",e,"\n")+e7([t+": "+n,te("= ",r),e7(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>te("",e,"\n")+e7(["interface",t,te("implements ",e7(n," & ")),e7(r," "),e5(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>te("",e,"\n")+e7(["union",t,e7(n," "),te("= ",e7(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>te("",e,"\n")+e7(["enum",t,e7(n," "),e5(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>te("",e,"\n")+e7([t,e7(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>te("",e,"\n")+e7(["input",t,e7(n," "),e5(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>te("",e,"\n")+"directive @"+t+(tn(n)?te("(\n",tt(e7(n,"\n")),"\n)"):te("(",e7(n,", "),")"))+(r?" repeatable":"")+" on "+e7(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>e7(["extend schema",e7(e," "),e5(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>e7(["extend scalar",e,e7(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>e7(["extend type",e,te("implements ",e7(t," & ")),e7(n," "),e5(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>e7(["extend interface",e,te("implements ",e7(t," & ")),e7(n," "),e5(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>e7(["extend union",e,e7(t," "),te("= ",e7(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>e7(["extend enum",e,e7(t," "),e5(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>e7(["extend input",e,e7(t," "),e5(n)]," ")}};function e7(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function e5(e){return te("{\n",tt(e7(e,"\n")),"\n}")}function te(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function tt(e){return te("  ",e.replace(/\n/g,"\n  "))}function tn(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var tr={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},ti=function(e,t){return t(e)},to=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}};function ta(e){return new eh(function(t){t.error(e)})}var ts=C(function(){return fetch}),tu=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,o=void 0===i?ti:i,a=e.includeExtensions,s=e.preserveHeaderCase,u=e.useGETForQueries,c=e.includeUnusedVariables,l=void 0!==c&&c,f=w(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&e1(r||ts);var h={http:{includeExtensions:a,preserveHeaderCase:s},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new eM(function(e){var t,i,a,s=(t=e,i=n,t.getContext().uri||("function"==typeof i?i(t):i||"/graphql")),c=e.getContext(),f={};if(c.clientAwareness){var p=c.clientAwareness,d=p.name,v=p.version;d&&(f["apollographql-client-name"]=d),v&&(f["apollographql-client-version"]=v)}var y=g(g({},f),c.headers),m=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};
1n.forEach(function(e){i=g(g(g({},i),e.options),{headers:g(g({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=g(g({},o),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var n=Object.create(null);return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r=Object.create(null);Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i}(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,u=e.variables,c=e.query,l={operationName:a,variables:u};return o.includeExtensions&&(l.extensions=s),o.includeQuery&&(l.query=t(c,e4)),{options:i,body:l}}(e,o,tr,h,{http:c.http,options:c.fetchOptions,credentials:c.credentials,headers:y}),b=m.options,w=m.body;if(w.variables&&!l){var E=new Set(Object.keys(w.variables));eK(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&E.delete(e.name.value)}}),E.size&&(w.variables=g({},w.variables),E.forEach(function(e){delete w.variables[e]}))}if(!b.signal){var S=to(),k=S.controller,D=S.signal;(a=k)&&(b.signal=D)}if(u&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(b.method="GET"),eG(["defer"],e.query)&&(b.headers=b.headers||{},b.headers.accept="multipart/mixed; deferSpec=20220824, application/json"),"GET"===b.method){var T=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=eH(t.variables,"Variables map")}catch(o){return{parseError:o}}r("variables",i)}if(t.extensions){var a=void 0;try{a=eH(t.extensions,"Extensions map")}catch(s){return{parseError:s}}r("extensions",a)}var u="",c=e,l=e.indexOf("#");-1!==l&&(u=e.substr(l),c=e.substr(0,l));var f=-1===c.indexOf("?")?"?":"&";return{newURI:c+f+n.join("&")+u}}(s,w),x=T.newURI,P=T.parseError;if(P)return ta(P);s=x}else try{b.body=eH(w,"Payload")}catch(F){return ta(F)}return new eh(function(t){return(r||C(function(){return fetch})||ts)(s,b).then(function(n){e.setContext({response:n});var r,i=null===(r=n.headers)||void 0===r?void 0:r.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){var n,r,i;return _(this,void 0,void 0,function(){var o,a,s,u,c,l,f,h,p,d,v,y,m,b,g,w,_,E,S;return O(this,function(O){switch(O.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");o=new TextDecoder("utf-8"),a=null===(n=e.headers)||void 0===n?void 0:n.get("content-type"),s="boundary=",u=(null==a?void 0:a.includes(s))?null==a?void 0:a.substring((null==a?void 0:a.indexOf(s))+s.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",c="--".concat(u),l="",f=function(e){var t,n,r,i,o,a,s=e;if(e.body&&(s=e.body),t=s,z&&t[Symbol.asyncIterator])return r=s[Symbol.asyncIterator](),(n={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},n;if(s.getReader)return eJ(s.getReader());if(s.stream)return eJ(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},z&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,n=null,r=!1,i=[],o=[];function a(e){if(!n){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){n=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){r=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",a),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var c={next:function(){return new Promise(function(e,t){return n?t(n):i.length?e({value:i.shift(),done:!1}):r?e({value:void 0,done:!0}):void o.push([e,t])})}};return z&&(c[Symbol.asyncIterator]=function(){return this}),c}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),h=!0,O.label=1;case 1:if(!h)return[3,3];return[4,f.next()];case 2:for(d=(p=O.sent()).value,v=p.done,y="string"==typeof d?d:o.decode(d),h=!v,l+=y,m=l.indexOf(c);m>-1;){if(b=void 0,b=(S=[l.slice(0,m),l.slice(m+c.length)])[0],l=S[1],b.trim()){if(g=b.indexOf("\r\n\r\n"),(w=function(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}(b.slice(0,g))["content-type"])&&-1===w.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");_=b.slice(g);try{E=eX(e,_.replace("\r\n","")),(Object.keys(E).length>1||"data"in E||"incremental"in E||"errors"in E)&&(null===(r=t.next)||void 0===r||r.call(t,E))}catch(k){e0(k,t)}}m=l.indexOf(c)}return[3,1];case 3:return null===(i=t.complete)||void 0===i||i.call(t),[2]}})})}(n,t):function(e,t,n){var r;(r=e).text().then(function(e){return eX(r,e)}).then(function(e){return r.status>=300&&eY(r,e,"Response not successful: Received status code ".concat(r.status)),Array.isArray(e)||e$.call(e,"data")||e$.call(e,"errors")||eY(r,e,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(e){return e.operationName}):t.operationName,"'.")),e}).then(function(e){var t,r;null===(t=n.next)||void 0===t||t.call(n,e),null===(r=n.complete)||void 0===r||r.call(n)}).catch(function(e){return e0(e,n)})}(n,e,t)}).catch(function(e){return e0(e,t)}),function(){a&&a.abort()}})})},tc=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,tu(t).request)||this;return n.options=t,n}return b(t,e),t}(eM),tl=Object.prototype,tf=tl.toString,th=tl.hasOwnProperty,tp=Function.prototype.toString,td=new Map;function tv(e,t){try{return function e(t,n){if(t===n)return!0;var r=tf.call(t);if(r!==tf.call(n))return!1;switch(r){case"[object Array]":if(t.length!==n.length)break;case"[object Object]":if(tg(t,n))return!0;var i=ty(t),o=ty(n),a=i.length;if(a!==o.length)break;for(var s=0;s<a;++s)if(!th.call(n,i[s]))return!1;for(var s=0;s<a;++s){var u=i[s];if(!e(t[u],n[u]))return!1}return!0;case"[object Error]":return t.name===n.name&&t.message===n.message;case"[object Number]":if(t!=t)return n!=n;case"[object Boolean]":case"[object Date]":return+t==+n;case"[object RegExp]":case"[object String]":return t=="".concat(n);case"[object Map]":case"[object Set]":if(t.size!==n.size)break;
1if(tg(t,n))return!0;for(var c=t.entries(),l="[object Map]"===r;;){var f=c.next();if(f.done)break;var h=f.value,p=h[0],d=h[1];if(!n.has(p)||l&&!e(d,n.get(p)))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]":t=new Uint8Array(t),n=new Uint8Array(n);case"[object DataView]":var v=t.byteLength;if(v===n.byteLength)for(;v--&&t[v]===n[v];);return -1===v;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var y,m=tp.call(t);if(m!==tp.call(n))break;return!((y=m.length-tb.length)>=0)||m.indexOf(tb,y)!==y}return!1}(e,t)}finally{td.clear()}}function ty(e){return Object.keys(e).filter(tm,e)}function tm(e){return void 0!==this[e]}var tb="{ [native code] }";function tg(e,t){var n=td.get(e);if(n){if(n.has(t))return!0}else td.set(e,n=new Set);return n.add(t),!1}function tw(e){return Array.isArray(e)&&e.length>0}var t_=Object.prototype.hasOwnProperty;function tO(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tE(e)}function tE(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new tk,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var tS=function(e,t,n){return this.merge(e[n],t[n])},tk=function(){function e(e){void 0===e&&(e=tS),this.reconciler=e,this.isObject=ep,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return ep(t)&&ep(e)?(Object.keys(t).forEach(function(i){if(t_.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,E([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return ep(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):g({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function tD(e){return"incremental"in e}function tT(e,t){var n=e,r=new tk;return tD(t)&&tw(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}n=r.merge(n,t)}),n}var tx=function(){return Object.create(null)},tP=Array.prototype,tF=tP.forEach,tI=tP.slice,tC=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=tx),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return tF.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(tI.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}();function tq(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var r=e[t];void 0!==r&&(n[t]=r)})}),n}var tR=Object.prototype.hasOwnProperty;function tj(e){return null==e}var tQ=Array.isArray;function tN(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=tj(r)?tj(i)?void 0:{_id:i}:{id:r}),tj(r)&&!tj(i)&&(r=i),!tj(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var tA={dataIdFromObject:tN,addTypename:!0,resultCaching:!0,canonizeResults:!1};function tV(e){var t=e.canonizeResults;return void 0===t?tA.canonizeResults:t}var tM=/^[_a-z][_0-9a-z]*/i;function tL(e){var t=e.match(tM);return t?t[0]:e}function tU(e){return ep(e)&&!eb(e)&&!tQ(e)}function tB(e,t){var n=ev(eC(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var tz=function(){function e(){this.known=new(U?WeakSet:Set),this.pool=new tC(L),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return ep(e)&&this.known.has(e)},e.prototype.pass=function(e){if(ep(e)){var t=ep(e)?tQ(e)?e.slice(0):g({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(ep(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return!i.array&&(this.known.add(i.array=r),__DEV__&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var u=a.length;s.sorted.forEach(function(n){a.push(t.admit(e[n]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=a[u+t]}),__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),tW=Object.assign(function(e){if(ep(e)){void 0===f&&tK();var t=f.admit(e),n=h.get(t);return void 0===n&&h.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:tK});function tK(){f=new tz,h=new(L?WeakMap:Map)}function tZ(e,t,n){return new eh(function(r){var i=r.next,o=r.error,a=r.complete,s=0,u=!1,
1c={then:function(e){return new Promise(function(t){return t(e())})}};function l(e,t){return e?function(t){++s;var n=function(){return e(t)};c=c.then(n,n).then(function(e){--s,i&&i.call(r,e),u&&f.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(r,e)})}:function(e){return t&&t.call(r,e)}}var f={next:l(t,i),error:l(n,o),complete:function(){u=!0,!s&&a&&a.call(r)}},h=e.subscribe(f);return function(){return h.unsubscribe()}})}function tG(e){var t=tw(e.errors)?e.errors.slice(0):[];return tD(e)&&tw(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function tH(e,t,n){var r=0;return e.forEach(function(n,i){t.call(this,n,i,e)&&(e[r++]=n)},n),e.length=r,e}var tJ={kind:"Field",name:{kind:"Name",value:"__typename"}};function tY(e){var t;return!function e(t,n){return!t||t.selectionSet.selections.every(function(t){return"FragmentSpread"===t.kind&&e(n[t.name.value],n)})}(eF(e)||(__DEV__?x("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):x("Document"===e.kind,51),__DEV__?x(e.definitions.length<=1,"Fragment must have exactly one definition."):x(e.definitions.length<=1,52),t=e.definitions[0],__DEV__?x("FragmentDefinition"===t.kind,"Must be a fragment definition."):x("FragmentDefinition"===t.kind,53),t),ev(eC(e)))?e:null}function t$(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function tX(e,t){var n,r,i,o=Object.create(null),a=[],s=Object.create(null),u=[],c=tY(eK(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(o[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some(function(e){return e.remove})&&t.directives&&t.directives.some(t$(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&a.push({name:e.value.name.value})}),t.selectionSet&&(function e(t){var n=[];return t.selections.forEach(function(t){(eT(t)||ex(t))&&t.selectionSet?e(t.selectionSet).forEach(function(e){return n.push(e)}):"FragmentSpread"===t.kind&&n.push(t)}),n})(t.selectionSet).forEach(function(e){u.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){s[e.name.value]=!0}},Directive:{enter:function(t){if(t$(e)(t))return null}}}));return c&&tH(a,function(e){return!!e.name&&!o[e.name]}).length&&(n=a,r=c,i=function(e){return n.some(function(t){return e.value&&"Variable"===e.value.kind&&e.value.name&&(t.name===e.value.name.value||t.test&&t.test(e))})},c=tY(eK(r,{OperationDefinition:{enter:function(e){return g(g({},e),{variableDefinitions:e.variableDefinitions?e.variableDefinitions.filter(function(e){return!n.some(function(t){return t.name===e.variable.name.value})}):[]})}},Field:{enter:function(e){if(n.some(function(e){return e.remove})){var t=0;if(e.arguments&&e.arguments.forEach(function(e){i(e)&&(t+=1)}),1===t)return null}}},Argument:{enter:function(e){if(i(e))return null}}}))),c&&tH(u,function(e){return!!e.name&&!s[e.name]}).length&&(c=function(e,t){function n(t){if(e.some(function(e){return e.name===t.name.value}))return null}return tY(eK(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(u,c)),c}var t0=Object.assign(function(e){return eK(e,{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(!(!r||r.some(function(e){return eT(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!(eT(n)&&n.directives&&n.directives.some(function(e){return"export"===e.name.value})))return g(g({},e),{selections:E(E([],r,!0),[tJ],!1)})}}}})},{added:function(e){return e===tJ}}),t1={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||!e.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&x.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}},t2=new Map;function t8(e){var t=t2.get(e)||1;return t2.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function t9(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function t6(e){function t(t){Object.defineProperty(e,t,{value:eh})}return B&&Symbol.species&&t(Symbol.species),t("@@species"),e}function t4(e){return e&&"function"==typeof e.then}var t3=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),t9(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),t9(n.observers,"error",e))},complete:function(){var e=n.sub;if(null!==e){var t=n.sources.shift();t?t4(t)?t.then(function(e){return n.sub=e.subscribe(n.handlers)}):n.sub=t.subscribe(n.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),t9(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new eh(t)]),t4(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return b(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],n=e[t];n&&n.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 n=this.nextResultListeners;
1n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(eh);t6(t3);var t7=function(e){var t="";return(tw(e.graphQLErrors)||tw(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach(function(e){var n=e?e.message:"Error message not found.";t+="".concat(n,"\n")}),e.networkError&&(t+="".concat(e.networkError.message,"\n")),t=t.replace(/\n$/,"")},t5=function(e){function t(n){var r=n.graphQLErrors,i=n.clientErrors,o=n.networkError,a=n.errorMessage,s=n.extraInfo,u=e.call(this,a)||this;return u.name="ApolloError",u.graphQLErrors=r||[],u.clientErrors=i||[],u.networkError=o||null,u.message=a||t7(u),u.extraInfo=s,u.__proto__=t.prototype,u}return b(t,e),t}(Error);function ne(e){return!!e&&e<7}(a=p||(p={}))[a.loading=1]="loading",a[a.setVariables=2]="setVariables",a[a.fetchMore=3]="fetchMore",a[a.refetch=4]="refetch",a[a.poll=6]="poll",a[a.ready=7]="ready",a[a.error=8]="error";var nt=Object.prototype.toString;function nn(e,t){switch(nt.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(e,r){n[r]=nn(e,t)}),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(n){r[n]=nn(e[n],t)}),r;default:return e}}var nr=Object.assign,ni=Object.hasOwnProperty,no=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=ns)}catch(n){}var r=!o.observers.size;o.observers.add(e);var i=o.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(i.result),r&&o.reobserve().catch(function(){}),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=r,o.queryManager=n,o.isTornDown=!1;var a=n.defaultOptions.watchQuery,s=(void 0===a?{}:a).fetchPolicy,u=void 0===s?"cache-first":s,c=i.fetchPolicy,l=void 0===c?u:c,f=i.initialFetchPolicy;o.options=g(g({},i),{initialFetchPolicy:void 0===f?"standby"===l?u:l:f,fetchPolicy:l}),o.queryId=r.queryId||n.generateQueryId();var h=eF(o.query);return o.queryName=h&&h.name&&h.name.value,o}return b(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},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,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||p.ready,r=g(g({},t),{loading:ne(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if("network-only"===o||"no-cache"===o||"standby"===o||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),tv(r.data,{})&&(r.data=void 0),a.complete?(delete r.partial,a.complete&&r.networkStatus===p.loading&&("cache-first"===o||"cac
1he-only"===o)&&(r.networkStatus=p.ready,r.loading=!1)):r.partial=!0,!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||nu(a.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!tv(this.last.result,e)||t&&!tv(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||tv(n.variables,this.variables)))return n[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,n={pollInterval:0},r=this.options.fetchPolicy;if("cache-and-network"===r?n.fetchPolicy=r:"no-cache"===r?n.fetchPolicy="no-cache":n.fetchPolicy="network-only",__DEV__&&e&&ni.call(e,"variables")){var i=eq(this.query),o=i.variableDefinitions;(!o||!o.some(function(e){return"variables"===e.variable.name.value}))&&__DEV__&&x.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!tv(this.options.variables,e)&&(n.variables=this.options.variables=g(g({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,p.refetch)},t.prototype.fetchMore=function(e){var t=this,n=g(g({},e.query?e:g(g(g(g({},this.options),{query:this.query}),e),{variables:g(g({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId(),i=this.queryInfo,o=i.networkStatus;i.networkStatus=p.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var a=new Set;return this.queryManager.fetchQuery(r,n,p.fetchMore).then(function(s){return t.queryManager.removeQuery(r),i.networkStatus===p.fetchMore&&(i.networkStatus=o),t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:s.data,variables:n.variables})}):r.writeQuery({query:n.query,variables:n.variables,data:s.data})},onWatchUpdated:function(e){a.add(e.query)}}),s}).finally(function(){a.has(t.query)||na(t)})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,{subscriptionData:n,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}__DEV__&&x.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return tv(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},p.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(!n){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==n){__DEV__?x(n,"Attempted to start a polling query without a polling interval."):x(n,13),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(ne(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},p.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=g(g({},this.last),{result:this.queryManager.assumeImmutableResults?e:nn(e),variables:t}),tw(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===p.refetch||t===p.fetchMore||t===p.poll,i=this.options.variables,o=this.options.fetchPolicy,a=tq(this.options,e||{}),s=r?a:nr(this.options,a);!r&&(this.updatePolling(),e&&e.variables&&!tv(e.variables,i)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===o&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=p.setVariables)));var u=s.variables&&g({},s.variables),c=this.fetch(s,t),l={next:function(e){n.reportResult(e,u)},error:function(e){n.reportError(e,u)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=c,this.observer=l),c.addObserver(l),c.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e,t))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),t9(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=g(g({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:p.error,loading:!1});this.updateLastResult(n,t),t9(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}(eh);function na(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=r,"function"==typeof r)?r.apply(this,arguments):n}}):e.reobserve()}function ns(e){__DEV__&&x.error("Unhandled error",e.message,e.stack)}function nu(e){__DEV__&&e&&__DEV__&&x.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}function nc(e){return e.kind===l.FIELD||e.kind===l.FRAGMENT_SPREAD||e.kind===l.INLINE_FRAGMENT}t6(no);var nl=null,nf={},nh=1;function np(e){try{return e()}catch(t){}}var nd="@wry/context:Slot",nv=np(function(){return globalThis})||np(function(){return n.g})||Object.create(null),ny=nv[nd]||Array[nd]||function(e){try{Object.defineProperty(nv,nd,{value:e,enumerable:!1,writable:!1,
1configurable:!0})}finally{return e}}(function(){function e(){this.id=["slot",nh++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=nl;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===nf)break;return e!==nl&&(nl.slots[this.id]=t),!0}return nl&&(nl.slots[this.id]=nf),!1},e.prototype.getValue=function(){if(this.hasValue())return nl.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=nl;nl={parent:a,slots:o};try{return t.apply(r,n)}finally{nl=a}},e.bind=function(e){var t=nl;return function(){var n=nl;try{return nl=t,e.apply(this,arguments)}finally{nl=n}}},e.noContext=function(e,t,n){if(!nl)return e.apply(n,t);var r=nl;try{return nl=null,e.apply(n,t)}finally{nl=r}},e}());function nm(){}ny.bind,ny.noContext;var nb=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=nm),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var 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)},e}(),ng=new ny,nw=Object.prototype.hasOwnProperty,n_=void 0===(d=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:d;function nO(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var nE=[];function nS(e,t){if(!e)throw Error(t||"assertion failure")}function nk(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var nD=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!nP(this))return nT(this),this.value[0]},e.prototype.recompute=function(e){var t;return nS(!this.recomputing,"already recomputing"),nT(this),nP(this)&&(nR(this),ng.withValue(this,nx,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{nO(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,nP(this)||(t=this,nF(t,nC)))),nk(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,nF(this,nI),nO(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),nR(this),nF(this,function(t,n){t.setDirty(),nj(t,e)})},e.prototype.forget=function(){this.dispose()}
1,e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=nE.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(n_(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),nE.push(this.deps),this.deps=null)},e.count=0,e}();function nT(e){var t=ng.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),nP(e)?nI(t,e):nC(t,e),t}function nx(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function nP(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function nF(e,t){var n=e.parents.size;if(n)for(var r=n_(e.parents),i=0;i<n;++i)t(r[i],e)}function nI(e,t){nS(e.childValues.has(t)),nS(nP(t));var n=!nP(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=nE.pop()||new Set;e.dirtyChildren.add(t),n&&nF(e,nI)}function nC(e,t){nS(e.childValues.has(t)),nS(!nP(t));var n,r,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(n=t.value,(r=i.length)>0&&r===n.length&&i[r-1]===n[r-1]||e.setDirty()),nq(e,t),nP(e)||nF(e,nC)}function nq(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(nE.length<100&&nE.push(n),e.dirtyChildren=null))}function nR(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){nj(e,n)}),e.forgetDeps(),nS(null===e.dirtyChildren)}function nj(e,t){t.parents.delete(e),e.childValues.delete(t),nq(e,t)}var nQ={setDirty:!0,dispose:!0,forget:!0};function nN(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=ng.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(nO(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&nw.call(nQ,n)?n:"setDirty";n_(r).forEach(function(e){return e[i]()}),t.delete(e),nO(r)}},r}function nA(){var e=new tC("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}nA();var nV=new Set;function nM(e,t){void 0===t&&(t=Object.create(null));var n=new nb(t.max||65536,function(e){return e.dispose()}),r=t.keyArgs,i=t.makeCacheKey||nA(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new nD(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),nV.add(n),ng.hasValue()||(nV.forEach(function(e){return e.clean()}),nV.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function u(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}var nL=new ny,nU=new WeakMap;function nB(e){var t=nU.get(e);return t||nU.set(e,t={vars:new Set,dep:nN()}),t}function nz(e){nB(e).vars.forEach(function(t){return t.forgetCache(e)})}function nW(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){nB(e).dep.dirty(r),e.broadcastWatches&&e.broadcastWatches()});var a=Array.from(n);n.clear(),a.forEach(function(t){return t(e)})}}else{var s=nL.getValue();s&&(i(s),nB(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),nB(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var nK=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),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=tO(t.resolvers,e)}):this.resolvers=tO(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,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return _(this,void 0,void 0,function(){return O(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then(function(e){return g(g({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return eG(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){var t;return eP(e),(t=tX([{test:function(e){return"client"===e.name.value},remove:!0}],e))&&(t=eK(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return eT(e)&&"__typename"===e.name.value}))return null}}})),t},e.prototype.prepareContext=function(e){var t=this.cache;return g(g({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),_(this,void 0,void 0,function(){return O(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return g(g({},t),e.exportedVariables)})]:[2,g({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return eK(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 eW}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===eR(e).operation?e:eK(e,{OperationDefinition:{enter:function(e){return g(g({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),_(this,void 0,void 0,function(){var a,s,u,c,l,f,h,p,d;return O(this,function(v){return a=eR(e),s=ev(eC(e)),u=this.collectSelectionsToResolve(a,s),l=(c=a.operation)?c.charAt(0).toUpperCase()+c.slice(1):"Query",f=this,h=f.cache,p=f.client,d={fragmentMap:s,context:g(g({},n),{cache:h,client:p}),variables:r,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,!1,t,d).then(function(e){return{result:e,exportedVariables:d.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,r){return _(this,void 0,void 0,function(){var i,o,a,s,u,c=this;return O(this,function(l){return i=r.fragmentMap,o=r.context,a=r.variables,s=[n],u=function(e){return _(c,void 0,void 0,function(){var u,c;return O(this,function(l){return(t||r.selectionsToResolve.has(e))&&eZ(e,a)?eT(e)?[2,this.resolveField(e,t,n,r).then(function(t){var n;void 0!==t&&s.push(((n={})[ek(e)]=t,n))})]:(ex(e)?u=e:(u=i[e.name.value],__DEV__?x(u,"No fragment named ".concat(e.name.value)):x(u,11)),u&&u.typeCondition&&(c=u.typeCondition.name.value,r.fragmentMatcher(n,c,o)))?[2,this.resolveSelectionSet(u.selectionSet,t,n,r).then(function(e){s.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return tE(s)})]})})},e.prototype.resolveField=function(e,t,n,r){return _(this,void 0,void 0,function(){var i,o,a,s,u,c,l,f,h,p=this;return O(this,function(d){return n?(i=r.variables,s=(o=e.name.value)!==(a=ek(e)),c=Promise.resolve(u=n[a]||n[o]),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(l=n.__typename||r.defaultOperationType,(f=this.resolvers&&this.resolvers[l])&&(h=f[s?o:a])&&(c=Promise.resolve(nL.withValue(this.cache,h,[n,eS(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,c.then(function(n){if(void 0===n&&(n=u),e.directives&&e.directives.forEac
1h(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=n)})}),!e.selectionSet||null==n)return n;var i,o,a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(n)?p.resolveSubSelectedArray(e,t||a,n,r):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t||a,n,r):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(i){if(!r.has(i)){var o=new Set;r.set(i,o),eK(i,{Directive:function(e,t,r,i,a){"client"===e.name.value&&a.forEach(function(e){n(e)&&nc(e)&&o.add(e)})},FragmentSpread:function(r,i,a,s,u){var c=t[r.name.value];__DEV__?x(c,"No fragment named ".concat(r.name.value)):x(c,12);var l=e(c);l.size>0&&(u.forEach(function(e){n(e)&&nc(e)&&o.add(e)}),o.add(r),l.forEach(function(e){o.add(e)}))}})}return r.get(i)}(e)},e}(),nZ=new(L?WeakMap:Map);function nG(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return nZ.set(e,(nZ.get(e)+1)%1e15),n.apply(this,arguments)})}function nH(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var nJ=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 n=this.cache=e.cache;nZ.has(n)||(nZ.set(n,0),nG(n,"evict"),nG(n,"modify"),nG(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||p.loading;return this.variables&&this.networkStatus!==p.loading&&!tv(this.variables,e.variables)&&(t=p.setVariables),tv(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(){nH(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&tv(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),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,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||tv(n&&n.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():na(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;nH(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(ne(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 n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=g(g({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
1this.lastWatch&&tv(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===nZ.get(this.cache)&&tv(t,n.variables)&&tv(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,o=new tk,a=tw(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&tw(e.incremental)){var s=tT(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(nY(e,n.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:nZ.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(n.variables),s=o.diff(a);i.stopped||i.updateWatch(n.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=p.ready},e.prototype.markError=function(e){return this.networkStatus=p.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function nY(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!tw(tG(e));return!r&&n&&e.data&&(r=!0),r}var n$=Object.prototype.hasOwnProperty,nX=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.queryDeduplication,o=e.onBroadcast,a=e.ssrMode,s=e.clientAwareness,u=e.localState,c=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(L?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=void 0!==i&&i,this.clientAwareness=void 0===s?{}:s,this.localState=u||new nK({cache:t}),this.ssrMode=void 0!==a&&a,this.assumeImmutableResults=!!c,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(__DEV__?new T("QueryManager stopped while query was in flight"):new T(14))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,r=e.mutation,i=e.variables,o=e.optimisticResponse,a=e.updateQueries,s=e.refetchQueries,u=void 0===s?[]:s,c=e.awaitRefetchQueries,l=void 0!==c&&c,f=e.update,h=e.onQueryUpdated,p=e.fetchPolicy,d=void 0===p?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":p,v=e.errorPolicy,y=void 0===v?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":v,m=e.keepRootFields,b=e.context;return _(this,void 0,void 0,function(){var e,t,n,s,c,p;return O(this,function(v){switch(v.label){case 0:if(__DEV__?x(r,"mutation option is required. You must specify your GraphQL document in the mutation option."):x(r,15),__DEV__?x("network-only"===d||"no-cache"===d,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):x("network-only"===d||"no-cache"===d,16),e=this.generateMutationId(),n=(t=this.transform(r)).document,s=t.hasClientExports,r=this.cache.transformForLink(n),i=this.getVariables(r,i),!s)return[3,2];return[4,this.localState.addExportedVariables(r,i,b)];case 1:i=v.sent(),v.label=2;case 2:return c=this.mutationStore&&(this.mutationStore[e]={mutation:r,variables:i,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:e,document:r,variables:i,fetchPolicy:d,errorPolicy:y,context:b,updateQueries:a,update:f,keepRootFields:m}),this.broadcastQueries(),p=this,[2,new Promise(function(t,n){return tZ(p.getObservableFromLink(r,g(g({},b),{optimisticResponse:o}),i,!1),function(t){if(tw(tG(t))&&"none"===y)throw new t5({graphQLErrors:tG(t)});c&&(c.loading=!1,c.error=null);var n=g({},t);return"function"==typeof u&&(u=u(n)),"ignore"===y&&tw(tG(n))&&delete n.errors,p.markMutationResult({mutationId:e,result:n,document:r,variables:i,fetchPolicy:d,errorPolicy:y,context:b,update:f,updateQueries:a,awaitRefetchQueries:l,refetchQueries:u,removeOptimistic:o?e:void 0,onQueryUpdated:h,keepRootFields:m})}).subscribe({next:function(e){p.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){c&&(c.loading=!1,c.error=t),o&&p.cache.removeOptimistic(e),p.broadcastQueries(),n(t instanceof t5?t:new t5({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&nY(r,e.errorPolicy)){if(tD(r)||i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),tD(r)&&tw(r.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),s=void 0;a.result&&(s=tT(a.result,r)),void 0!==s&&(r.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&n$.call(u,s)){var c=u[s],l=n.queries.get(o),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var v=c(d,{mutationResult:r,queryName:f&&eI(f)||void 0,queryVariables:h});v&&i.push({result:v,dataId:"ROOT_QUERY",query:f,variables:h})}}})}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var a,s=e.update,u=!(tD(a=r)||"hasNext"in a&&"data"in a)||tD(r)&&!r.hasNext;if(s){if(!o){var c=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(r=g(g({},r),{data:c.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}u&&s(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return c.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(function(){return r})}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult(g(g({},t),{result:{data:r}}),e)}catch(i){__DEV__&&x.error(i)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={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){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),r=tX([t1],eP(n)),i=this.localState.clientQuery(n),o=r&&this.localState.serverQuery(r),a={document:n,hasClientExports:n&&eG(["client","export"],n,!0),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:i,serverQuery:o,defaultVars:ej(eF(n)),asQuery:g(g({},n),{definitions:n.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?g(g({},e),{operation:"query"}):e})})},s=function(e){e&&!t.has(e)&&t.set(e,a)};s(e),s(n),s(i),s(o)}return t.get(e)},e.prototype.getVariables=function(e,t){return g(g({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=g(g({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new nJ(this),n=new no({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:n.query,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?x(e.query,"query option is required. You must specify your GraphQL document in the query option."):x(e.query,17),__DEV__?x("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):x("Document"===e.query.kind,18),__DEV__?x(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):x(!e.returnPartialData,19),__DEV__?x(!e.pollInterval,"pollInterval option only supported on watchQuery."):x(!e.pollInterval,20),this.fetchQuery(t,e).finally(function(){return n.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(__DEV__?new T("Store reset while query was in flight (not completed in link chain)"):new T(21)),this.queries.forEac
1h(function(e){e.observableQuery?e.networkStatus=p.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 n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?r.set(e,!1):ep(e)&&"Document"===e.kind&&Array.isArray(e.definitions)?r.set(t.transform(e).document,!1):ep(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e){n.set(i,o);return}var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}}),i.size&&i.forEach(function(e){var r=t8("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new no({queryManager:t,queryInfo:i,options:g(g({},e),{fetchPolicy:"network-only"})});x(o.queryId===r),i.setObservableQuery(o),n.set(r,o)}),__DEV__&&r.size&&r.forEach(function(e,t){!e&&__DEV__&&x.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var u=function(e){return t.getObservableFromLink(n,s,e).map(function(o){if("no-cache"!==r&&(nY(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),tw(tG(o)))throw new t5({graphQLErrors:o.errors});return o})};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(u);return new eh(function(e){var t=null;return c.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return u(o)},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,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var u=this.inFlightLinkObservables,c=this.link,l={query:s,variables:n,operationName:eI(s)||void 0,context:this.prepareContext(g(g({},t),{forceFetch:!r}))};if(t=l.context,r){var f=u.get(s)||new Map;u.set(s,f);var h=tW(n);if(!(o=f.get(h))){var p=new t3([eL(c,l)]);f.set(h,o=p),p.beforeNext(function(){f.delete(h)&&f.size<1&&u.delete(s)})}}else o=new t3([eL(c,l)])}else o=new t3([eh.of({data:{}})]),t=this.prepareContext(t);var d=this.transform(e).clientQuery;return d&&(o=tZ(o,function(e){return a.localState.runResolvers({document:d,remoteResult:e,context:t,variables:n})})),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(this.transform(e.document).document);return tZ(this.getObservableFromLink(i,n.context,n.variables),function(o){var a=tG(o),s=a.length>0;if(r>=e.lastRequestId){if(s&&"none"===n.errorPolicy)throw e.markError(new t5({graphQLErrors:a}));e.markResult(o,i,n,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:p.ready};return s&&"ignore"!==n.errorPolicy&&(u.errors=a,u.networkStatus=p.error),u},function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new t5({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=p.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=this.defaultOptions.watchQuery,u=t.fetchPolicy,c=void 0===u?s&&s.fetchPolicy||"cache-first":u,l=t.errorPolicy,f=void 0===l?s&&s.errorPolicy||"none":l,h=t.returnPartialData,d=t.notifyOnNetworkStatusChange,v=t.context,y=Object.assign({},t,{query:i,variables:o,fetchPolicy:c,errorPolicy:f,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==d&&d,context:void 0===v?{}:v}),m=function(e){y.variables=e;var i=r.fetchQueryByPolicy(a,y,n);return"standby"!==y.fetchPolicy&&i.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",t),i},b=function(){return r.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(e){b(),setTimeout(function(){return g.cancel(e)})});var g=new t3(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(m):m(y.variables));return g.promise.then(b,b),g},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?t8("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})});var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof nJ&&e.watcher.observableQuery;if(r){if(u){c.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),i}null!==u&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}
1),c.size&&c.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=u(i,a,o)}u&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context,f=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:this.transform(i).document,variables:o,networkStatus:n});var d=function(){return e.getDiff(o)},v=function(t,n){void 0===n&&(n=e.networkStatus||p.loading);var a=t.result;!__DEV__||c||tv(a,{})||nu(t.missing);var s=function(e){return eh.of(g({data:e,loading:ne(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:l,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===u&&n===p.refetch&&Array.isArray(t.missing)?s(void 0):s(a)},y="no-cache"===a?0:n===p.refetch&&"merge"!==s?1:2,m=function(){return r.getResultsFromLink(e,y,{variables:o,context:l,fetchPolicy:a,errorPolicy:u})},b=f&&"number"==typeof h&&h!==n&&ne(n);switch(a){default:case"cache-first":var w=d();if(w.complete)return[v(w,e.markReady())];if(c||b)return[v(w),m()];return[m()];case"cache-and-network":var w=d();if(w.complete||c||b)return[v(w),m()];return[m()];case"cache-only":return[v(d(),e.markReady())];case"network-only":if(b)return[v(d()),m()];return[m()];case"no-cache":if(b)return[v(e.getDiff()),m()];return[m()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new nJ(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){return void 0===e&&(e={}),g(g({},this.localState.prepareContext(e)),{clientAwareness:this.clientAwareness})},e}();function n0(e,t){return tq(e,t,t.variables&&{variables:g(g({},e&&e.variables),t.variables)})}var n1=!1,n2=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,u=e.ssrForceFetchDelay,c=void 0===u?0:u,l=e.connectToDevTools,f=void 0===l?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:l,h=e.queryDeduplication,p=void 0===h||h,d=e.defaultOptions,v=e.assumeImmutableResults,y=e.resolvers,m=e.typeDefs,b=e.fragmentMatcher,g=e.name,w=e.version,_=e.link;if(_||(_=n?new tc({uri:n,credentials:r,headers:i}):eM.empty()),!o)throw __DEV__?new T("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new T(9);if(this.link=_,this.cache=o,this.disableNetworkFetches=s||c>0,this.queryDeduplication=p,this.defaultOptions=d||Object.create(null),this.typeDefs=m,c&&setTimeout(function(){return t.disableNetworkFetches=!1},c),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),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!n1&&f&&__DEV__&&(n1=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var O=window.navigator,E=O&&O.userAgent,S=void 0;"string"==typeof E&&(E.indexOf("Chrome/")>-1?S="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":E.indexOf("Firefox/")>-1&&(S="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),S&&__DEV__&&x.log("Download the Apollo DevTools for a better development experience: "+S)}this.version="3.7.7",this.localState=new nK({cache:o,client:this,resolvers:y,fragmentMatcher:b}),this.queryManager=new nX({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:p,ssrMode:s,clientAwareness:{name:g,version:w},localState:this.localState,assumeImmutableResults:void 0!==v&&v,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=n0(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=g(g({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=n0(this.defaultOptions.query,e)),__DEV__?x("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):x("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=g(g({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=n0(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){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return eL(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var i=Promise.all(r);return i.queries=n,i.results=r,i.catch(function(e){__DEV__&&x.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),n8=function(){function e(){this.getFragmentDoc=nM(ed)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.o
1ptimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),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(g(g({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(g(g({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=w(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=w(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery(g(g({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment(g(g({},e),{data:i})),i)}})},e}(),n9=function(e){function t(n,r,i,o){var a,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=((a={})[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return b(t,e),t}(Error);function n6(e){if(__DEV__){var t;(t=new Set([e])).forEach(function(e){ep(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(n){ep(e[n])&&t.add(e[n])})})}return e}var n4=Object.create(null),n3=function(){return n4},n7=Object.create(null),n5=function(){function e(e,t){var n=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 n6(eb(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return eb(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return em(e);if(eb(e))return e;var r=n.policies.identify(e)[0];if(r){var i=em(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return g({},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),tR.call(this.data,e)){var n=this.data[e];if(n&&tR.call(n,t))return n[t]}return"__typename"===t&&tR.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof rn?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),tR.call(this.data,e))?this.data[e]:this instanceof rn?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;eb(e)&&(e=e.__ref),eb(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?x("string"==typeof n,"store.merge expects a string ID"):x("string"==typeof n,1);var a=new tk(ri).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=tL(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof rn||delete a[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[n]===a.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return r.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:n4,INVALIDATE:n7,isReference:eb,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||em(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(u){var c=tL(u),l=r[u];
1if(void 0!==l){var f="function"==typeof t?t:t[u]||t[c];if(f){var h=f===n3?n4:f(n6(l),g(g({},s),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));h===n7?n.group.dirty(e,u):(h===n4&&(h=void 0),h!==l&&(i[u]=h,o=!0,l=h))}void 0!==l&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof rn?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=n3,r):n3)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(tR.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof rn&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){tR.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&tR.call(e,n)||t.delete(n)}),e){var n=e.__META,r=w(e,["__META"]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.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 rn?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){tR.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof rn;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!tR.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){eb(e)&&(t[e.__ref]=!0),ep(e)&&Object.keys(e).forEach(function(t){var n=e[t];ep(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),re=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?nN():null,this.keyMaker=new tC(L)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var n=tL(t);n!==t&&this.d(n+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function rt(e,t){ro(e)&&e.group.depend(t,"__exists")}u=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=t.seed,o=e.call(this,n,new re(void 0===r||r))||this;return o.stump=new rr(o),o.storageTrie=new tC(L),i&&o.replace(i),o}return b(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}(s=n5||(n5={})),s.Root=u;var rn=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return b(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){tv(r[n],i[n])||t.group.dirty(e,n)}
1):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return g(g({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return tR.call(this.data,t)?g(g({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(n5),rr=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new re(t.group.caching,t.group))||this}return b(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(rn);function ri(e,t,n){var r=e[n],i=t[n];return tv(r,i)?r:i}function ro(e){return!!(e instanceof n5&&e.group.caching)}function ra(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var rs=function(){function e(e){var t=this;this.knownResults=new(L?WeakMap:Map),this.config=tq(e,{addTypename:!1!==e.addTypename,canonizeResults:tV(e)}),this.canon=e.canon||new tz,this.executeSelectionSet=nM(function(e){var n,r=e.context.canonizeResults,i=ra(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?g(g({},o),{result:t.canon.admit(o.result)}):o:(rt(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:ra,makeCacheKey:function(e,t,n,r){if(ro(n.store))return n.store.makeCacheKey(e,eb(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=nM(function(e){return rt(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(ro(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new tz},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,r=e.query,i=e.rootId,o=e.variables,a=e.returnPartialData,s=e.canonizeResults,u=void 0===s?this.config.canonizeResults:s,c=this.config.cache.policies;o=g(g({},ej(eq(r))),o);var l=em(void 0===i?"ROOT_QUERY":i),f=this.executeSelectionSet({selectionSet:eR(r).selectionSet,objectOrReference:l,enclosingRef:l,context:g({store:n,query:r,policies:c,variables:o,varString:tW(o),canonizeResults:u},tB(r,this.config.fragments))});if(f.missing&&(t=[new n9(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(t){return t}}(f.missing),f.missing,r,o)],!(void 0===a||a)))throw t[0];return{result:f.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,n,r){if(ro(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,n=this,r=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if(eb(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=a.variables,u=a.policies,c=a.store.getFieldValue(i,"__typename"),f=[],h=new tk;function p(e,n){var r;return e.missing&&(t=h.merge(t,((r={})[n]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof c&&!u.rootIdsByTypename[c]&&f.push({__typename:c});var d=new Set(r.selections);d.forEach(function(e){var r,v;if(eZ(e,s)){if(eT(e)){var y=u.readField({fieldName:e.name.value,field:e,variables:a.variables,from:i},a),m=ek(e);void 0===y?t0.added(e)||(t=h.merge(t,((r={})[m]="Can't find field '".concat(e.name.value,"' on ").concat(eb(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),r))):tQ(y)?y=p(n.executeSubSelectedArray({field:e,array:y,enclosingRef:o,context:a}),m):e.selectionSet?null!=y&&(y=p(n.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,enclosingRef:eb(y)?y:o,context:a}),m)):a.canonizeResults&&(y=n.canon.pass(y)),void 0!==y&&f.push(((v={})[m]=y,v))}else{var b=ey(e,a.lookupFragment);if(!b&&e.kind===l.FRAGMENT_SPREAD)throw __DEV__?new T("No fragment named ".concat(e.name.value)):new T(5);b&&u.fragmentMatches(b,c)&&b.selectionSet.selections.forEach(d.add,d)}}});var v={result:tE(f),missing:t},y=a.canonizeResults?this.canon.admit(v):n6(v);return y.result&&this.knownResults.set(y.result,r),y},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new tk;function u(e,n){var r;return e.missing&&(t=s.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(e,t){return null===e?null:tQ(e)?u(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:eb(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){ep(n)&&(__DEV__?x(!eb(n),"Missing selection set for object of type ".concat(eb(n)?e.get(n.__ref,"__typename"):n&&n.__typename," returned for query field ").concat(t.name.value)):x(!eb(n),6),Object.values(n).forEac
1h(r.add,r))})}}(a.store,r,e),e)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),ru=Object.create(null);function rc(e){var t=JSON.stringify(e);return ru[t]||(ru[t]=Object.create(null))}function rl(e){var t=rc(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=rh(e,function(e){var i=rd(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&tR.call(t,e[0])&&(i=rd(t,e,rp)),__DEV__?x(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):x(void 0!==i,2),i});return"".concat(n.typename,":").concat(JSON.stringify(i))})}function rf(e){var t=rc(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=JSON.stringify(rh(e,function(e){var n=e[0],o=n.charAt(0);if("@"===o){if(r&&tw(r.directives)){var a=n.slice(1),s=r.directives.find(function(e){return e.name.value===a}),u=s&&eS(s,i);return u&&rd(u,e.slice(1))}return}if("$"===o){var c=n.slice(1);if(i&&tR.call(i,c)){var l=e.slice(0);return l[0]=c,rd(i,l)}return}if(t)return rd(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function rh(e,t){var n=new tk;return(function e(t){var n=rc(t);if(!n.paths){var r=n.paths=[],i=[];t.forEach(function(n,o){tQ(n)?(e(n).forEach(function(e){return r.push(i.concat(e))}),i.length=0):(i.push(n),tQ(t[o+1])||(r.push(i.slice(0)),i.length=0))})}return n.paths})(e).reduce(function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e},Object.create(null))}function rp(e,t){return e[t]}function rd(e,t,n){return n=n||rp,function e(t){return ep(t)?tQ(t)?t.map(e):rh(Object.keys(t).sort(),function(e){return rd(t,e)}):t}(t.reduce(function e(t,r){return tQ(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function rv(e){return void 0!==e.args?e.args:e.field?eS(e.field,e.variables):null}e_.setStringify(tW);var ry=function(){},rm=function(e,t){return t.fieldName},rb=function(e,t,n){return(0,n.mergeObjects)(e,t)},rg=function(e,t){return t},rw=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=g({dataIdFromObject:tN},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 n,r,i=this,o=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=t&&t.storeObject||e,s=g(g({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=rO(arguments,a);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),c=u&&u.keyFn||this.config.dataIdFromObject;c;){var l=c(e,s);if(tQ(l))c=rl(l);else{r=l;break}}return r=r?String(r):void 0,s.keyObject?[r,s.keyObject]:[r]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=w(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),tR.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]})},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?rb:!1===t?rg:e.merge}a(r,t.merge),r.keyFn=!1===i?ry:tQ(i)?rl(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach(function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;r.keyFn=!1===s?rm:tQ(s)?rf(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||rm)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?x(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):x(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEac
1h(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(tM);r&&r[0]===e||t.fuzzySubtypes.set(e,RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!tR.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),i=r.fields;Object.assign(n,w(r,["fields"])),Object.assign(n.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(n){t.updateTypePolicy(e,n)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},c=!!(n&&this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var h=s[f];if(h.has(o))return a.has(o)||(l&&__DEV__&&x.warn("Inferring subtype ".concat(t," of supertype ").concat(o)),a.add(o)),!0;h.forEach(u),c&&f===s.length-1&&function e(t,n,r){return!!ep(n)&&(tQ(n)?n.every(function(n){return e(t,n,r)}):t.selections.every(function(t){if(eT(t)&&eZ(t,r)){var i=ek(t);return tR.call(n,i)&&(!t.selectionSet||e(t.selectionSet,n[i],r))}return!0}))}(e.selectionSet,n,r)&&(c=!1,l=!0,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&u(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n,r,i,o,a=e.typename,s=e.fieldName,u=this.getFieldPolicy(a,s,!1),c=u&&u.keyFn;if(c&&a)for(var l={typename:a,fieldName:s,field:e.field||null,variables:e.variables},f=rv(e);c;){var h=c(f,l);if(tQ(h))c=rf(h);else{o=h||s;break}}return void 0===o&&(o=e.field?(t=e.field,n=e.variables,r=null,t.directives&&(r={},t.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(t){var i=t.name,o=t.value;return eg(r[e.name.value],i,o,n)})})),i=null,t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(function(e){return eg(i,e.name,e.value,n)})),e_(t.name.value,i,r)):e_(s,rv(e))),!1===o?s:s===tL(o)?o:s+":"+o},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=tL(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=r_(this,n,e,t,t.store.getStorage(eb(n)?n.__ref:n,i));return nL.withValue(this.cache,u,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===rb?rE(r.store)(e,t):s===rg?t:(r.overwrite&&(e=void 0),s(e,t,r_(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function r_(e,t,n,r,i){var o=e.getStoreFieldName(n),a=tL(o),s=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:rv(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:eb,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(rO(arguments,t,s),r)},mergeObjects:rE(r.store)}}function rO(e,t,n){var r,i,o,a=e[0],s=e[1],u=e.length;return"string"==typeof a?o={fieldName:a,from:u>1?s:t}:(o=g({},a),tR.call(o,"from")||(o.from=t)),__DEV__&&void 0===o.from&&__DEV__&&x.warn("Undefined 'from' passed to readField with arguments ".concat((r=Array.from(e),i=t8("stringifyForDisplay"),JSON.stringify(r,function(e,t){return void 0===t?i:t}).split(JSON.stringify(i)).join("<undefined>")))),void 0===o.variables&&(o.variables=n),o}function rE(e){return function(t,n){if(tQ(t)||tQ(n))throw __DEV__?new T("Cannot automatically merge arrays"):new T(4);if(ep(t)&&ep(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(eb(t)&&tU(n))return e.merge(t.__ref,n),t;if(tU(t)&&eb(n))return e.merge(t,n.__ref),n;if(tU(t)&&tU(n))return g(g({},t),n)}return n}}function rS(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:g(g({},e),{clientOnly:t,deferred:n})),i}var rk=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,u=eF(r),c=new tk;a=g(g({},ej(u)),a);var l=g(g({store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:tW(a)},tB(r,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:l});if(!eb(f))throw __DEV__?new T("Could not identify object ".concat(JSON.stringify(i))):new T(7);
1return l.incomingById.forEach(function(t,r){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=em(r);if(o&&o.map.size){var u=n.applyMerges(o,s,i,l);if(eb(u))return;i=u}if(__DEV__&&!l.overwrite){var c=Object.create(null);a.forEach(function(e){e.selectionSet&&(c[e.name.value]=!0)});var f=function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==c[tL(e)]||f(e)||function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(!(!a||eb(o)||tv(o,a)||Object.keys(o).every(function(e){return void 0!==r.getFieldValue(a,e)}))){var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),u=tL(n),c="".concat(s,".").concat(u);if(!rF.has(c)){rF.add(c);var l=[];tQ(o)||tQ(a)||[o,a].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)}),__DEV__&&x.warn("Cache data may be lost when replacing the ".concat(u," field of a ").concat(s," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(c," field, so InMemoryCache can safely merge these objects:\n\n  existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n  incoming: ").concat(JSON.stringify(a).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(s,i,e,l.store)})}e.merge(r,i)}),e.retain(f.__ref),f},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,u=Object.create(null),c=n&&s.rootTypenamesById[n]||eD(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof c&&(u.__typename=c);var l=function(){var e=rO(arguments,u,o.variables);if(eb(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=s.readField(g(g({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return s.readField(e,o)},f=new Set;this.flattenFields(i,r,o,c).forEach(function(e,n){var i,o=r[ek(n)];if(f.add(n),void 0!==o){var h=s.getStoreFieldName({typename:c,fieldName:n.name.value,field:n,variables:e.variables}),p=rT(a,h),d=t.processFieldValue(o,n,n.selectionSet?rS(e,!1,!1):e,p),v=void 0;n.selectionSet&&(eb(d)||tU(d))&&(v=l("__typename",d));var y=s.getMergeFunction(c,n.name.value,v);y?p.info={field:n,typename:c,merge:y}:rP(a,h),u=e.merge(u,((i={})[h]=d,i))}else __DEV__&&!e.clientOnly&&!e.deferred&&!t0.added(n)&&!s.getReadFunction(c,n.name.value)&&__DEV__&&x.error("Missing field '".concat(ek(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))});try{var h=s.identify(r,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:u,readField:l}),p=h[0],d=h[1];n=n||p,d&&(u=o.merge(u,d))}catch(v){if(!n)throw v}if("string"==typeof n){var y=em(n),m=o.written[n]||(o.written[n]=[]);if(m.indexOf(i)>=0||(m.push(i),this.reader&&this.reader.isFresh(r,y,i,o)))return y;var b=o.incomingById.get(n);return b?(b.storeObject=o.merge(b.storeObject,u),b.mergeTree=function e(t,n){if(t===n||!n||rx(n))return t;if(!t||rx(t))return n;var r=t.info&&n.info?g(g({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,o={info:r,map:i?new Map:t.map.size?t.map:n.map};if(i){var a=new Set(n.map.keys());t.map.forEach(function(t,r){o.map.set(r,e(t,n.map.get(r))),a.delete(r)}),a.forEach(function(r){o.map.set(r,e(n.map.get(r),t.map.get(r)))})}return o}(b.mergeTree,a),f.forEach(function(e){return b.fieldNodeSet.add(e)})):o.incomingById.set(n,{storeObject:u,mergeTree:rx(a)?void 0:a,fieldNodeSet:f}),y}return u},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?tQ(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,n,rT(r,o));return rP(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?nn(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=eD(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new tC(!1);return function e(s,u){var c=a.lookup(s,u.clientOnly,u.deferred);
1c.visited||(c.visited=!0,s.selections.forEach(function(a){if(eZ(a,n.variables)){var s=u.clientOnly,c=u.deferred;if(!(s&&c)&&tw(a.directives)&&a.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=eS(e,n.variables);r&&!1===r.if||(c=!0)}}),eT(a)){var f=i.get(a);f&&(s=s&&f.clientOnly,c=c&&f.deferred),i.set(a,rS(n,s,c))}else{var h=ey(a,n.lookupFragment);if(!h&&a.kind===l.FRAGMENT_SPREAD)throw __DEV__?new T("No fragment named ".concat(a.name.value)):new T(8);h&&o.fragmentMatches(h,r,t,n.variables)&&e(h.selectionSet,rS(n,s,c))}}}))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var o=this;if(e.map.size&&!eb(n)){var a,s,u=!tQ(n)&&(eb(t)||tU(t))?t:void 0,c=n;u&&!i&&(i=[eb(u)?u.__ref:u]);var l=function(e,t){return tQ(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=l(u,t),a=l(c,t);if(void 0!==a){i&&i.push(t);var f=o.applyMerges(e,n,a,r,i);f!==a&&(s=s||new Map).set(t,f),i&&x(i.pop()===t)}}),s&&(n=tQ(c)?c.slice(0):g({},c),s.forEac
1h(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(a=r.store).getStorage.apply(a,i)):n},e}(),rD=[];function rT(e,t){var n=e.map;return n.has(t)||n.set(t,rD.pop()||{map:new Map}),n.get(t)}function rx(e){return!e||!(e.info||e.map.size)}function rP(e,t){var n=e.map,r=n.get(t);r&&rx(r)&&(rD.push(r),n.delete(t))}var rF=new Set,rI=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=nW,n.txCount=0,n.config=tq(tA,t),n.addTypename=!!n.config.addTypename,n.policies=new rw({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return b(t,e),t.prototype.init=function(){var e=this.data=new n5.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new rk(this,this.storeReader=new rs({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:tV(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=nM(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(ro(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,tW({optimistic:r,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;try{return this.storeReader.diffQueryAgainstStore(g(g({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(n){if(n instanceof n9)return null;throw n}},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(tR.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(g(g({},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||function(e){nB(e).vars.forEach(function(t){return t.attachCache(e)})}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&nz(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){tW.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(eb(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){__DEV__&&x.warn(t)}},t.prototype.evict=function(e){if(!e.id){if(tR.call(e,"id"))return!1;e=g(g({},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(),tW.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),nz(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,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,u=function(e){var i=n.data,o=n.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=i,n.optimisticData=o}},c=new Set;return s&&!this.txCount&&this.broadcastWatches(g(g({}
1,e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,u):!1===o?u(this.data):u(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&c.size?(this.broadcastWatches(g(g({},e),{onWatchUpdated:function(e,t){var n=s.call(this,e,t);return!1!==n&&c.delete(e),n}})),c.size&&c.forEach(function(e){return n.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){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=t0(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,r,n)))&&(n&&tv(n.result,r.result)||e.callback(e.lastDiff=r,n))},t}(n8);let rC=new n2({uri:"https://cms.preemptdisinfectants.ca/graphql",cache:new rI});var rq=n(8767);let rR=new rq.QueryClient;var rj=function(e){let{Component:t,pageProps:n}=e;return(0,v.jsx)(y.l0,{children:(0,v.jsx)(K,{client:rC,children:(0,v.jsx)(rq.QueryClientProvider,{client:rR,children:(0,v.jsx)(t,{...n})})})})}},2968:function(){},7663:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(r){n=a}}();var u=[],c=!1,l=-1;function f(){c&&r&&(c=!1,r.length?u=r.concat(u):l=-1,u.length&&h())}function h(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(r=u,u=[];++l<t;)r&&r[l].run();l=-1,t=u.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(r){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=d,i.addListener=d,i.once=d,i.off=d,i.removeListener=d,i.removeAllListeners=d,i.emit=d,i.prependListener=d,i.prependOnceListener=d,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(229);e.exports=i}()},4298:function(e,t,n){e.exports=n(3573)},9852:function(e,t,n){"use strict";n.d(t,{j:function(){return a}});var r=n(5068),i=n(2943),o=n(2288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()})},n.setFocused=function(e){this.focused=e,e&&this.onFocus()}
1,n.onFocus=function(){this.listeners.forEach(function(e){e()})},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.l))},6747:function(e,t,n){"use strict";n.d(t,{QueryClient:function(){return r.S}});var r=n(1832),i=n(6755);n.o(i,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useQuery")&&n.d(t,{useQuery:function(){return i.useQuery}})},1909:function(e,t,n){"use strict";n.d(t,{E:function(){return o},j:function(){return i}});var r=console;function i(){return r}function o(e){r=e}},101:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(2288),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)(function(){t.notifyFn(e)})},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule(function(){e.apply(void 0,r)})}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)(function(){e.batchNotifyFn(function(){t.forEach(function(t){e.notifyFn(t)})})})},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},68:function(e,t,n){"use strict";n.d(t,{N:function(){return a}});var r=n(5068),i=n(2943),o=n(2288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()})},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(e){e()})},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(i.l))},1832:function(e,t,n){"use strict";n.d(t,{S:function(){return m}});var r=n(7462),i=n(2288),o=n(5068),a=n(101),s=n(1909),u=n(1216),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){e.optionalRemove()},this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=(0,i.SE)(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=(0,i.Q$)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some(function(e){return!1!==e.options.enabled})},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(e){return e.getCurrentResult().isStale})},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnWindowFocus()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find(function(e){return e.shouldFetchOnReconnect()});t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter(function(t){return t!==e}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abort
1SignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a,c,l,f=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(n=this.retryer)||n.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var h=this.observers.find(function(e){return e.options.queryFn});h&&this.setOptions(h.options)}var p=(0,i.mc)(this.queryKey),d=(0,i.G9)(),v={queryKey:p,pageParam:void 0,meta:this.meta};Object.defineProperty(v,"signal",{enumerable:!0,get:function(){if(d)return f.abortSignalConsumed=!0,d.signal}});var y={fetchOptions:t,options:this.options,queryKey:p,state:this.state,fetchFn:function(){return f.options.queryFn?(f.abortSignalConsumed=!1,f.options.queryFn(v)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(a=this.options.behavior)?void 0:a.onFetch)&&(null==(r=this.options.behavior)||r.onFetch(y)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(c=y.fetchOptions)?void 0:c.meta)||this.dispatch({type:"fetch",meta:null==(o=y.fetchOptions)?void 0:o.meta}),this.retryer=new u.m4({fn:y.fetchFn,abort:null==d?void 0:null==(l=d.abort)?void 0:l.bind(d),onSuccess:function(e){f.setData(e),null==f.cache.config.onSuccess||f.cache.config.onSuccess(e,f),0===f.cacheTime&&f.optionalRemove()},onError:function(e){(0,u.DV)(e)&&e.silent||f.dispatch({type:"error",error:e}),(0,u.DV)(e)||(null==f.cache.config.onError||f.cache.config.onError(e,f),(0,s.j)().error(e)),0===f.cacheTime&&f.optionalRemove()},onFail:function(){f.dispatch({type:"failed"})},onPause:function(){f.dispatch({type:"pause"})},onContinue:function(){f.dispatch({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.V.batch(function(){t.observers.forEach(function(t){t.onQueryUpdate(e)}),t.cache.notify({query:t,type:"queryUpdated",action:e})})},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,i;switch(t.type){case"failed":return(0,r.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"fetch":return(0,r.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;if((0,u.DV)(o)&&o.revert&&this.revertState)return(0,r.Z)({},this.revertState);return(0,r.Z)({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},e,{isInvalidated:!0});case"setState":return(0,r.Z)({},e,t.state);default:return e}},e}(),l=n(2943),f=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,a=null!=(r=t.queryHash)?r:(0,i.Rm)(o,t),s=this.get(a);return s||(s=new c({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(function(t){return t!==e}),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;
1a.V.batch(function(){e.queries.forEach(function(t){e.remove(t)})})},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=(0,i.I6)(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find(function(e){return(0,i._x)(n,e)})},n.findAll=function(e,t){var n=(0,i.I6)(e,t)[0];return Object.keys(n).length>0?this.queries.filter(function(e){return(0,i._x)(n,e)}):this.queries},n.notify=function(e){var t=this;a.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){var e=this;a.V.batch(function(){e.queries.forEach(function(e){e.onFocus()})})},n.onOnline=function(){var e=this;a.V.batch(function(){e.queries.forEach(function(e){e.onOnline()})})},t}(l.l),h=function(){function e(e){this.options=(0,r.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter(function(t){return t!==e})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(i.ZT).catch(i.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then(function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)}).then(function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)}).then(function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})})),r.then(function(){return t.executeMutation()}).then(function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)}).then(function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)}).then(function(){return t.dispatch({type:"success",data:e}),e}).catch(function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,s.j)().error(e),Promise.resolve().then(function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)}).then(function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)}).then(function(){throw t.dispatch({type:"error",error:e}),e})})},t.executeMutation=function(){var e,t=this;return this.retryer=new u.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,r.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"loading":return(0,r.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,r.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},e,t.state);default:return e}}(this.state,e),a.V.batch(function(){t.observers.forEach(function(t){t.onMutationUpdate(e)}),t.mutationCache.notify(t)})},e}(),p=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new h({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter(function(t){return t!==e}),e.cancel(),this.notify(e)},n.clear=function(){var e=this;a.V.batch(function(){e.mutations.forEach(function(t){e.remove(t)})})},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(function(t){return(0,i.X7)(e,t)})},n.findAll=function(e){return this.mutations.filter(function(t){return(0,i.X7)(e,t)})},n.notify=function(e){var t=this;
1a.V.batch(function(){t.listeners.forEach(function(t){t(e)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter(function(e){return e.state.isPaused});return a.V.batch(function(){return e.reduce(function(e,t){return e.then(function(){return t.continue().catch(i.ZT)})},Promise.resolve())})},t}(l.l),d=n(9852),v=n(68);function y(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var m=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new f,this.mutationCache=e.mutationCache||new p,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=d.j.subscribe(function(){d.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())}),this.unsubscribeOnline=v.N.subscribe(function(){d.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())})},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,i.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,r.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map(function(e){return[e.queryKey,e.state.data]})},t.setQueryData=function(e,t,n){var r=(0,i._v)(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return a.V.batch(function(){return r.getQueryCache().findAll(e).map(function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]})})},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,i.I6)(e,t)[0],r=this.queryCache;a.V.batch(function(){r.findAll(n).forEach(function(e){r.remove(e)})})},t.resetQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],c=s[1],l=this.queryCache,f=(0,r.Z)({},u,{active:!0});return a.V.batch(function(){return l.findAll(u).forEach(function(e){e.reset()}),o.refetchQueries(f,c)})},t.cancelQueries=function(e,t,n){var r=this,o=(0,i.I6)(e,t,n),s=o[0],u=o[1],c=void 0===u?{}:u;return void 0===c.revert&&(c.revert=!0),Promise.all(a.V.batch(function(){return r.queryCache.findAll(s).map(function(e){return e.cancel(c)})})).then(i.ZT).catch(i.ZT)},t.invalidateQueries=function(e,t,n){var o,s,u,c=this,l=(0,i.I6)(e,t,n),f=l[0],h=l[1],p=(0,r.Z)({},f,{active:null==(o=null!=(s=f.refetchActive)?s:f.active)||o,inactive:null!=(u=f.refetchInactive)&&u});return a.V.batch(function(){return c.queryCache.findAll(f).forEach(function(e){e.invalidate()}),c.refetchQueries(p,h)})},t.refetchQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],c=s[1],l=Promise.all(a.V.batch(function(){return o.queryCache.findAll(u).map(function(e){return e.fetch(void 0,(0,r.Z)({},c,{meta:{refetchPage:null==u?void 0:u.refetchPage}}))})})).then(i.ZT);return(null==c?void 0:c.throwOnError)||(l=l.catch(i.ZT)),l},t.fetchQuery=function(e,t,n){var r=(0,i._v)(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.fetchInfiniteQuery=function(e,t,n){var r=(0,i._v)(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,o,a,s,c,l=null==(t=e.fetchOptions)?void 0:null==(n=t.meta)?void 0:n.refetchPage,f=null==(r=e.fetchOptions)?void 0:null==(o=r.meta)?void 0:o.fetchMore,h=null==f?void 0:f.pageParam,p=(null==f?void 0:f.direction)==="forward",d=(null==f?void 0:f.direction)==="backward",v=(null==(a=e.state.data)?void 0:a.pages)||[],m=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,i.G9)(),g=null==b?void 0:b.signal,w=m,_=!1,O=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},E=function(e,t,n,r){return w=r?[t].concat(w):[].concat(w,[t]),r?[n].concat(e):[].concat(e,[n])},S=function(t,n,r,i){if(_)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var o=O({queryKey:e.queryKey,signal:g,pageParam:r,meta:e.meta}),a=Promise.resolve(o).then(function(e){return E(t,r,e,i)});return(0,u.LE)(o)&&(a.cancel=o.cancel),a};if(v.length){if(p){var k=void 0!==h,D=k?h:y(e.options,v);c=S(v,k,D)}else if(d){var T,x=void 0!==h,P=x?h:null==(T=e.options).getPreviousPageParam?void 0:T.getPreviousPageParam(v[0],v);c=S(v,x,P,!0)}else!function(){w=[];var t=void 0===e.options.getNextPageParam;c=!l||!v[0]||l(v[0],0,v)?S([],t,m[0]):Promise.resolve(E([],m[0],v[0]));for(var n=function(n){c=c.then(function(r){if(!l||!v[n]||l(v[n],n,v)){var i=t?m[n]:y(e.options,r);return S(r,t,i)}return Promise.resolve(E(r,m[n],v[n]))})},r=1;r<v.length;r++)n(r)}()}else c=S([]);var F=c.then(function(e){return{pages:e,pageParams:w}});return F.cancel=function(){_=!0,null==b||b.abort(),(0,u.LE)(c)&&c.cancel()},F}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.cancelMutations=function(){var e=this;return Promise.all(a.V.batch(function(){return e.mutationCache.getAll().map(function(e){return e.cancel()})})).then(i.ZT).catch(i.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find(function(t){return(0,i.yF)(e)===(0,i.yF)(t.queryKey)});n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find(function(t){return(0,i.to)(e,t.queryKey)}))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find(function(t){return(0,i.yF)(e)===(0,i.yF)(t.mutationKey)});n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find(function(t){return(0,i.to)(e,t.mutationKey)}))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,i.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},1216:function(e,t,n){"use strict";n.d(t,{DV:function(){return c},LE:function(){return s},m4:function(){return l}});var r=n(9852),i=n(68),o=n(2288);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"==typeof(null==e?void 0:e.cancel)}var u=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof u}var l=function(e){var t,n,c,l,f=this,h=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){h=!0},this.continueRetry=function(){h=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(e,t){c=e,l=t});var p=function(t){f.isResolved||(f.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},d=function(t){f.isResolved||(f.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),l(t))};!function c(){var l;if(!f.isResolved){try{l=e.fn()}catch(v){l=Promise.reject(v)}
1t=function(e){if(!f.isResolved&&(d(new u(e)),null==f.abort||f.abort(),s(l)))try{l.cancel()}catch(t){}},f.isTransportCancelable=s(l),Promise.resolve(l).then(p).catch(function(t){if(!f.isResolved){var s,u,l=null!=(s=e.retry)?s:3,p=null!=(u=e.retryDelay)?u:a,v="function"==typeof p?p(f.failureCount,t):p,y=!0===l||"number"==typeof l&&f.failureCount<l||"function"==typeof l&&l(f.failureCount,t);if(h||!y){d(t);return}f.failureCount++,null==e.onFail||e.onFail(f.failureCount,t),(0,o.Gh)(v).then(function(){if(!r.j.isFocused()||!i.N.isOnline())return new Promise(function(t){n=t,f.isPaused=!0,null==e.onPause||e.onPause()}).then(function(){n=void 0,f.isPaused=!1,null==e.onContinue||e.onContinue()})}).then(function(){h?d(t):c()})}})}}()}},2943:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter(function(e){return e!==n}),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},6755:function(){},2288:function(e,t,n){"use strict";n.d(t,{A4:function(){return O},G9:function(){return E},Gh:function(){return _},I6:function(){return f},Kp:function(){return c},PN:function(){return s},Q$:function(){return function e(t,n){if(t===n)return t;var r=Array.isArray(t)&&Array.isArray(n);if(r||b(t)&&b(n)){for(var i=r?t.length:Object.keys(t).length,o=r?n:Object.keys(n),a=o.length,s=r?[]:{},u=0,c=0;c<a;c++){var l=r?c:o[c];s[l]=e(t[l],n[l]),s[l]===t[l]&&u++}return i===a&&u===i?t:s}return n}},Rm:function(){return d},SE:function(){return a},VS:function(){return m},X7:function(){return p},ZT:function(){return o},_v:function(){return l},_x:function(){return h},mc:function(){return u},sk:function(){return i},to:function(){return y},yF:function(){return v}});var r=n(7462),i="undefined"==typeof window;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return w(e)?"function"==typeof t?(0,r.Z)({},n,{queryKey:e,queryFn:t}):(0,r.Z)({},t,{queryKey:e}):e}function f(e,t,n){return w(e)?[(0,r.Z)({},t,{queryKey:e}),n]:[e||{},t]}function h(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(w(s)){if(r){if(t.queryHash!==d(s,t.options))return!1}else if(!y(t.queryKey,s))return!1}var c=!0===n&&!0===o||null==n&&null==o?"all":!1===n&&!1===o?"none":(null!=n?n:!o)?"active":"inactive";if("none"===c)return!1;if("all"!==c){var l=t.isActive();if("active"===c&&!l||"inactive"===c&&l)return!1}return("boolean"!=typeof u||t.isStale()===u)&&("boolean"!=typeof i||t.isFetching()===i)&&(!a||!!a(t))}function p(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(w(o)){if(!t.options.mutationKey)return!1;if(n){if(v(t.options.mutationKey)!==v(o))return!1}else if(!y(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&(!i||!!i(t))}function d(e,t){return((null==t?void 0:t.queryKeyHashFn)||v)(e)}function v(e){return JSON.stringify(u(e),function(e,t){return b(t)?Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{}):t})}function y(e,t){return function e(t,n){return t===n||typeof t==typeof n&&!!t&&!!n&&"object"==typeof t&&"object"==typeof n&&!Object.keys(n).some(function(r){return!e(t[r],n[r])})}(u(e),u(t))}function m(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function b(e){if(!g(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!(g(n)&&n.hasOwnProperty("isPrototypeOf"))}function g(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return"string"==typeof e||Array.isArray(e)}function _(e){return new Promise(function(t){setTimeout(t,e)})}function O(e){Promise.resolve().then(e).catch(function(e){return setTimeout(function(){throw e})})}
1function E(){if("function"==typeof AbortController)return new AbortController}},8767:function(e,t,n){"use strict";n.d(t,{QueryClient:function(){return r.QueryClient},QueryClientProvider:function(){return i.QueryClientProvider},useQuery:function(){return i.useQuery}});var r=n(6747);n.o(r,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useQuery")&&n.d(t,{useQuery:function(){return r.useQuery}});var i=n(5931)},5931:function(e,t,n){"use strict";n.d(t,{QueryClientProvider:function(){return p},useQuery:function(){return D}});var r,i=n(101),o=n(3935).unstable_batchedUpdates;i.V.setBatchNotifyFunction(o);var a=n(1909),s=console;(0,a.E)(s);var u=n(7294),c=u.createContext(void 0),l=u.createContext(!1);function f(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=c),window.ReactQueryClientContext):c}var h=function(){var e=u.useContext(f(u.useContext(l)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},p=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,i=e.children;u.useEffect(function(){return t.mount(),function(){t.unmount()}},[t]);var o=f(r);return u.createElement(l.Provider,{value:r},u.createElement(o.Provider,{value:t},i))},d=n(7462),v=n(5068),y=n(2288),m=n(9852),b=n(2943),g=n(1216),w=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,v.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),_(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return O(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return O(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&E(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();var o=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})}),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise(function(n,r){var i=t.subscribe(function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,d.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then(function(){return t.createResult(r,n)})},n.fetch=function(e){var t=this;return this.executeFetch(e).then(function(){return t.updateResult(),t.currentResult})},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(y.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!y.sk&&!this.currentResult.isStale&&(0,y.PN)(this.options.staleTime)){var t=(0,y.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){e.currentResult.isStale||e.updateResult()},t+1)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!y.sk&&!1!==this.options.enabled&&(0,y.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(t.options.refetchIntervalInBackgroun
1d||m.j.isFocused())&&t.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r,i=this.currentQuery,o=this.options,s=this.currentResult,u=this.currentResultState,c=this.currentResultOptions,l=e!==i,f=l?e.state:this.currentQueryInitialState,h=l?this.currentResult:this.previousQueryResult,p=e.state,d=p.dataUpdatedAt,v=p.error,m=p.errorUpdatedAt,b=p.isFetching,g=p.status,w=!1,O=!1;if(t.optimisticResults){var k=this.hasListeners(),D=!k&&_(e,t),T=k&&E(e,i,t,o);(D||T)&&(b=!0,d||(g="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==h?void 0:h.isSuccess)&&"error"!==g)n=h.data,d=h.dataUpdatedAt,g=h.status,w=!0;else if(t.select&&void 0!==p.data){if(s&&p.data===(null==u?void 0:u.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(p.data),!1!==t.structuralSharing&&(n=(0,y.Q$)(null==s?void 0:s.data,n)),this.selectResult=n,this.selectError=null}catch(x){(0,a.j)().error(x),this.selectError=x}}else n=p.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===g||"idle"===g)){if((null==s?void 0:s.isPlaceholderData)&&t.placeholderData===(null==c?void 0:c.placeholderData))r=s.data;else if(r="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==r)try{r=t.select(r),!1!==t.structuralSharing&&(r=(0,y.Q$)(null==s?void 0:s.data,r)),this.selectError=null}catch(P){(0,a.j)().error(P),this.selectError=P}void 0!==r&&(g="success",n=r,O=!0)}return this.selectError&&(v=this.selectError,n=this.selectResult,m=Date.now(),g="error"),{status:g,isLoading:"loading"===g,isSuccess:"success"===g,isError:"error"===g,isIdle:"idle"===g,data:n,dataUpdatedAt:d,error:v,errorUpdatedAt:m,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:b,isRefetching:b&&"loading"!==g,isLoadingError:"error"===g&&0===p.dataUpdatedAt,isPlaceholderData:O,isPreviousData:w,isRefetchError:"error"===g&&0!==p.dataUpdatedAt,isStale:S(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i||"tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some(function(n){var r=e[n]!==t[n],a=null==o?void 0:o.some(function(e){return e===n}),s=null==i?void 0:i.some(function(e){return e===n});return r&&!s&&(!o||a)})},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,y.VS)(this.currentResult,t)){var n={cache:!0};(null==e?void 0:e.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,d.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,g.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;i.V.batch(function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEac
1h(function(e){e(t.currentResult)}),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})})},t}(b.l);function _(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&O(e,t,t.refetchOnMount)}function O(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&S(e,t)}return!1}function E(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&S(e,n)}function S(e,t){return e.isStaleByTime(t.staleTime)}var k=u.createContext((r=!1,{clearReset:function(){r=!1},reset:function(){r=!0},isReset:function(){return r}}));function D(e,t,n){return function(e,t){var n,r,o,a=u.useRef(!1),s=u.useState(0)[1],c=h(),l=u.useContext(k),f=c.defaultQueryObserverOptions(e);f.optimisticResults=!0,f.onError&&(f.onError=i.V.batchCalls(f.onError)),f.onSuccess&&(f.onSuccess=i.V.batchCalls(f.onSuccess)),f.onSettled&&(f.onSettled=i.V.batchCalls(f.onSettled)),f.suspense&&("number"!=typeof f.staleTime&&(f.staleTime=1e3),0===f.cacheTime&&(f.cacheTime=1)),(f.suspense||f.useErrorBoundary)&&!l.isReset()&&(f.retryOnMount=!1);var p=u.useState(function(){return new t(c,f)})[0],d=p.getOptimisticResult(f);if(u.useEffect(function(){a.current=!0,l.clearReset();var e=p.subscribe(i.V.batchCalls(function(){a.current&&s(function(e){return e+1})}));return p.updateResult(),function(){a.current=!1,e()}},[l,p]),u.useEffect(function(){p.setOptions(f,{listeners:!1})},[f,p]),f.suspense&&d.isLoading)throw p.fetchOptimistic(f).then(function(e){var t=e.data;null==f.onSuccess||f.onSuccess(t),null==f.onSettled||f.onSettled(t,null)}).catch(function(e){l.clearReset(),null==f.onError||f.onError(e),null==f.onSettled||f.onSettled(void 0,e)});if(d.isError&&!l.isReset()&&!d.isFetching&&(n=f.suspense,r=f.useErrorBoundary,o=[d.error,p.getCurrentQuery()],"function"==typeof r?r.apply(void 0,o):"boolean"==typeof r?r:!!n))throw d.error;return"tracked"===f.notifyOnChangeProps&&(d=p.trackResult(d,f)),d}((0,y._v)(e,t,n),w)}},7462:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},5068:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return i}})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(6840),t(880)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.