1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4839],{239:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});let n=r(7437),i=r(2265);t.default=function(e){let{html:t,height:r=null,width:o=null,children:a,dataNtpc:s=""}=e;return(0,i.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(s)}})},[s]),(0,n.jsxs)(n.Fragment,{children:[a,t?(0,n.jsx)("div",{style:{height:null!=r?"".concat(r,"px"):"auto",width:null!=o?"".concat(o,"px"):"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:t}}):null]})}},4404:function(e,t,r){var n;let i;Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=void 0;let o=r(7437),a=r(2265),s=(n=r(1877))&&n.__esModule?n:{default:n};t.GoogleAnalytics=function(e){let{gaId:t,dataLayerName:r="dataLayer"}=e;return void 0===i&&(i=r),(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n window['".concat(r,"'] = window['").concat(r,"'] || [];\n function gtag(){window['").concat(r,"'].push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '").concat(t,"');")}}),(0,o.jsx)(s.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t)})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(void 0===i){console.warn("@next/third-parties: GA has not been initialized");return}window[i]?window[i].push(arguments):console.warn("@next/third-parties: GA dataLayer ".concat(i," does not exist"))}},7640:function(e,t,r){var n;let i;Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=t.GoogleTagManager=void 0;let o=r(7437),a=r(2265),s=(n=r(1877))&&n.__esModule?n:{default:n};t.GoogleTagManager=function(e){let{gtmId:t,dataLayerName:r="dataLayer",auth:n,preview:u,dataLayer:c}=e;void 0===i&&(i=r);let l="dataLayer"!==r?"&l=".concat(r):"";return(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n (function(w,l){\n w[l]=w[l]||[];\n w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n ".concat(c?"w[l].push(".concat(JSON.stringify(c),")"):"","\n })(window,'").concat(r,"');")}}),(0,o.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:"https://www.googletagmanager.com/gtm.js?id=".concat(t).concat(l).concat(n?">m_auth=".concat(n):"").concat(u?">m_preview=".concat(u,">m_cookies_win=x"):"")})]})},t.sendGTMEvent=e=>{if(void 0===i){console.warn("@next/third-parties: GTM has not been initialized");return}window[i]?window[i].push(e):console.warn("@next/third-parties: GTM dataLayer ".concat(i," does not exist"))}},1877:function(e,t,r){r.r(t),r.d(t,{default:function(){return i.a}});var n=r(4080),i=r.n(n),o={};for(var a in n)"default"!==a&&(o[a]=(function(e){return n[e]}).bind(0,a));r.d(t,o)},905:function(e,t){let r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DOMAttributeNames:function(){return n},default:function(){return a},isEqualNode:function(){return o}});let n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function i(e){let{type:t,props:r}=e,i=document.createElement(t);for(let e in r){if(!r.hasOwnProperty(e)||"children"===e||"dangerouslySetInnerHTML"===e||void 0===r[e])continue;let o=n[e]||e.toLowerCase();"script"===t&&("async"===o||"defer"===o||"noModule"===o)?i[o]=!!r[e]:i.setAttribute(o,r[e])}let{children:o,dangerouslySetInnerHTML:a}=r;return a?i.innerHTML=a.__html||"":o&&(i.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):""),i}function o(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let r=t.getAttribute("nonce");if(r&&!e.getAttribute("nonce")){let n=t.cloneNode(!0);return n.setAttribute("nonce",""),n.nonce=r,r===e.nonce&&e.isEqualNode(n)}}return e.isEqualNode(t)}function a(){return{mountedInstances:new Set,updateHead:e=>{let t={};
1e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let n=t.title?t.title[0]:null,i="";if(n){let{children:e}=n.props;i="string"==typeof e?e:Array.isArray(e)?e.join(""):""}i!==document.title&&(document.title=i),["meta","base","link","style","script"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]"),a=Number(n.content),s=[];for(let t=0,r=n.previousElementSibling;t<a;t++,r=(null==r?void 0:r.previousElementSibling)||null){var u;(null==r?void 0:null==(u=r.tagName)?void 0:u.toLowerCase())===e&&s.push(r)}let c=t.map(i).filter(e=>{for(let t=0,r=s.length;t<r;t++)if(o(s[t],e))return s.splice(t,1),!1;return!0});s.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),c.forEach(e=>r.insertBefore(e,n)),n.content=(a-s.length+c.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4080:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return b},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return m}});let n=r(9920),i=r(1452),o=r(7437),a=n._(r(4887)),s=i._(r(2265)),u=r(6590),c=r(905),l=r(9189),f=new Map,h=new Set,p=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],d=e=>{if(a.default.preinit){e.forEach(e=>{a.default.preinit(e,{as:"style"})});return}if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}},y=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:o,children:a="",strategy:s="afterInteractive",onError:u,stylesheets:l}=e,y=r||t;if(y&&h.has(y))return;if(f.has(t)){h.add(y),f.get(t).then(n,u);return}let v=()=>{i&&i(),h.add(y)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),v()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});for(let[r,n]of(o?(m.innerHTML=o.__html||"",v()):a?(m.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",v()):t&&(m.src=t,f.set(t,g)),Object.entries(e))){if(void 0===n||p.includes(r))continue;let e=c.DOMAttributeNames[r]||r.toLowerCase();m.setAttribute(e,n)}"worker"===s&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",s),l&&d(l),document.body.appendChild(m)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>y(e))}):y(e)}function m(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:c="afterInteractive",onError:f,stylesheets:p,...d}=e,{updateScripts:v,scripts:m,getIsSsr:g,appDir:b,nonce:w}=(0,s.useContext)(u.HeadManagerContext),_=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||r;_.current||(i&&e&&h.has(e)&&i(),_.current=!0)},[i,t,r]);let k=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{!k.current&&("afterInteractive"===c?y(e):"lazyOnload"===c&&("complete"===document.readyState?(0,l.requestIdleCallback)(()=>y(e)):window.addEventListener("load",()=>{(0,l.requestIdleCallback)(()=>y(e))})),k.current=!0)},[e,c]),("beforeInteractive"===c||"worker"===c)&&(v?(m[c]=(m[c]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:f,...d}]),v(m)):g&&g()?h.add(t||r):g&&!g()&&y(e)),b){if(p&&p.forEach(e=>{a.default.preinit(e,{as:"style"})}),"beforeInteractive"===c)return r?(a.default.preload(r,d.integrity?{as:"script",integrity:d.integrity,nonce:w}:{as:"script",nonce:w}),(0,o.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+J
1SON.stringify([r,{...d,id:t}])+")"}})):(d.dangerouslySetInnerHTML&&(d.children=d.dangerouslySetInnerHTML.__html,delete d.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...d,id:t}])+")"}}));"afterInteractive"===c&&r&&a.default.preload(r,d.integrity?{as:"script",integrity:d.integrity,nonce:w}:{as:"script",nonce:w})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let b=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2474:function(e,t,r){e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,r(2265))},1288:function(e,t,r){r.d(t,{MS:function(){return s},YG:function(){return o},cA:function(){return c},ls:function(){return a}});var n=r(1735);r(5290);var i=r(1167),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var u=function(e){var t=(0,n.ev)((0,n.ev)((0,n.ev)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,i.s)(e)&&e.message||"Error message not found."}).join("\n")},c=function(e){function t(r){var n=r.graphQLErrors,i=r.protocolErrors,o=r.clientErrors,a=r.networkError,s=r.errorMessage,c=r.extraInfo,l=e.call(this,s)||this;return l.name="ApolloError",l.graphQLErrors=n||[],l.protocolErrors=i||[],l.clientErrors=o||[],l.networkError=a||null,l.message=s||u(l),l.extraInfo=c,l.__proto__=t.prototype,l}return(0,n.ZT)(t,e),t}(Error)},7326:function(e,t,r){r.d(t,{i:function(){return l}});var n=r(5290),i=r(9670),o=r(1735),a=r(84);function s(e,t){return t?t(e):i.y.of()}function u(e){return"function"==typeof e?new l(e):e}function c(e){return e.request.length<=1}var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return i.y.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var o=u(r),a=u(n||new e(s));return Object.assign(new e(c(o)&&c(a)?function(e){return t(e)?o.request(e)||i.y.of():a.request(e)||i.y.of()}:function(e,r){return t(e)?o.request(e,r)||i.y.of():a.request(e,r)||i.y.of()}),{left:o,right:a})},e.execute=function(e,t){var r,s,u,c;return e.request((u=t.context,(s={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];if(0>t.indexOf(o))throw(0,n._K)(43,o)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.rY)(s.query)||void 0:""),c=(0,o.pi)({},u),Object.defineProperty(s,"setContext",{enumerable:!1,value:function(e){c="function"==typeof e?(0,o.pi)((0,o.pi)({},c),e(c)):(0,o.pi)((0,o.pi)({},c),e)}}),Object.defineProperty(s,"getContext",{enumerable:!1,value:function(){return(0,o.pi)({},c)}}),s))||i.y.of()},e.concat=function(t,r){var o=u(t);if(c(o))return!1!==globalThis.__DEV__&&n.kG.warn(35,o),o;var a=u(r);return Object.assign(new e(c(a)?function(e){return o.request(e,function(e){return a.request(e)||i.y.of()})||i.y.of()}:function(e,t){return o.request(e,function(e){return a.request(e,t)||i.y.of()})||i.y.of()}),{left:o,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,n._K)(36)},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}()},3128:function(e,t,r){r.d(t,{u:function(){return T}});var n=r(1735),i=r(7326),o=r(5290),a=r(2120),s=r(9670),u=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=(0,o._K)(39,t,e.message);throw n.parseError=e,n}return r},c=r(2511);function l(e){var t={next:function(){return e.read()}};return c.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}var f=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},h=r(1288),p=r(244),d=Object.prototype.hasOwnProperty;function y(e,t){e.status>=300&&f(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var v=function(e){if(!e&&"undefined"==typeof fetch)throw(0,o._K)(37)},m=r(2880),g={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},b=function(e,t){return t(e)};function w(e){return new s.y(function(t){t.error(e)})}var _=r(7122),k=r(9159),O=r(84),E=(0,o.wY)(function(){return fetch}),S=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,S=e.fetch,T=e.print,I=void 0===T?b:T,x=e.includeExtensions,D=e.preserveHeaderCase,j=e.useGETForQueries,N=e.includeUnusedVariables,R=void 0!==N&&N,F=(0,n._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&v(S||E);var A={http:{includeExtensions:x,preserveHeaderCase:D},options:F.fetchOptions,credentials:F.credentials,headers:F.headers};return new i.i(function(e){var t,i,v,b,T,x,D,N,F=(t=e,i=r,t.getContext().uri||("function"==typeof i?i(t):i||"/graphql")),P=e.getContext(),q={};
1if(P.clientAwareness){var M=P.clientAwareness,C=M.name,Q=M.version;C&&(q["apollographql-client-name"]=C),Q&&(q["apollographql-client-version"]=Q)}var V=(0,n.pi)((0,n.pi)({},q),P.headers),L={http:P.http,options:P.fetchOptions,credentials:P.credentials,headers:V};if((0,a.FS)(["client"],e.query)){var z=(0,k.ob)(e.query);if(!z)return w(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=z}var G=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o={},a={};r.forEach(function(e){o=(0,n.pi)((0,n.pi)((0,n.pi)({},o),e.options),{headers:(0,n.pi)((0,n.pi)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=(0,n.pi)((0,n.pi)({},a),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var r=Object.create(null);return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n=Object.create(null);Object.keys(Object(e)).forEac
1h(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(o.headers,a.preserveHeaderCase));var s=e.operationName,u=e.extensions,c=e.variables,l=e.query,f={operationName:s,variables:c};return a.includeExtensions&&(f.extensions=u),a.includeQuery&&(f.query=t(l,m.S)),{options:o,body:f}}(e,I,g,A,L),B=G.options,U=G.body;U.variables&&!R&&(U.variables=(v=U.variables,b=e.query,T=(0,n.pi)({},v),x=new Set(Object.keys(v)),(0,_.Vn)(b,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&x.delete(e.name.value)}}),x.forEach(function(e){delete T[e]}),T)),B.signal||"undefined"==typeof AbortController||(N=new AbortController,B.signal=N.signal);var W="OperationDefinition"===(D=(0,O.p$)(e.query)).kind&&"subscription"===D.operation,Y=(0,a.FS)(["defer"],e.query);if(j&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(B.method="GET"),Y||W){B.headers=B.headers||{};var K="multipart/mixed;";W&&Y&&!1!==globalThis.__DEV__&&o.kG.warn(38),W?K+="boundary=graphql;subscriptionSpec=1.0,application/json":Y&&(K+="deferSpec=20220824,application/json"),B.headers.accept=K}if("GET"===B.method){var J=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=u(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=u(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+r.join("&")+a}}(F,U),H=J.newURI,$=J.parseError;if($)return w($);F=H}else try{B.body=u(U,"Payload")}catch(e){return w(e)}return new s.y(function(t){var r=S||(0,o.wY)(function(){return fetch})||E,i=t.next.bind(t);return r(F,B).then(function(t){e.setContext({response:t});var r,o=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){return(0,n.mG)(this,void 0,void 0,function(){var r,i,o,a,s,u,f,d,v,m,g,b,w,_,k,O,E,S,T,I,x,D,j;return(0,n.Jh)(this,function(N){switch(N.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),i=null===(j=e.headers)||void 0===j?void 0:j.get("content-type"),o="boundary=",a=(null==i?void 0:i.includes(o))?null==i?void 0:i.substring((null==i?void 0:i.indexOf(o))+o.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(a),u="",f=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,c.DN&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return l(s.getReader());if(s.stream)return l(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)}))}},c.DN&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){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){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){n=!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 l={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return c.DN&&(l[Symbol.asyncIterator]=function(){return this}),l}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),d=!0,N.label=1;case 1:if(!d)return[3,3];return[4,f.next()];case 2:for(m=(v=N.sent()).value,g=v.done,b="string"==typeof m?m:r.decode(m),w=u.length-s.length+1,d=!g,u+=b,_=u.indexOf(s,w);_>-1;){if(k=void 0,k=(x=[u.slice(0,_),u.slice(_+s.length)])[0],u=x[1],O=k.indexOf("\r\n\r\n"),(E=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(k.slice(0,O))["content-type"])&&-1===E.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
1if(S=k.slice(O)){if(Object.keys(T=y(e,S)).length>1||"data"in T||"incremental"in T||"errors"in T||"payload"in T){if((0,p.yU)(T)){if(I={},"payload"in T){if(1===Object.keys(T).length&&null===T.payload)return[2];I=(0,n.pi)({},T.payload)}"errors"in T&&(I=(0,n.pi)((0,n.pi)({},I),{extensions:(0,n.pi)((0,n.pi)({},"extensions"in I?I.extensions:null),((D={})[h.YG]=T.errors,D))})),t(I)}else t(T)}else if(1===Object.keys(T).length&&"hasNext"in T&&!T.hasNext)return[2]}_=u.indexOf(s)}return[3,1];case 3:return[2]}})})}(t,i):t.text().then(function(e){return y(t,e)}).then(function(r){return Array.isArray(r)||d.call(r,"data")||d.call(r,"errors")||f(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r}).then(i)}).then(function(){N=void 0,t.complete()}).catch(function(e){N=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){N&&N.abort()}})})},T=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,S(t).request)||this;return r.options=t,r}return(0,n.ZT)(t,e),t}(i.i)},8288:function(e,t,r){r.d(t,{L:function(){return u},s:function(){return s}});var n=r(3754),i=r(2997),o=new WeakSet;function a(e){!(e.size<=(e.max||-1))&&(o.has(e)||(o.add(e),setTimeout(function(){e.clean(),o.delete(e)},100)))}var s=function(e,t){var r=new n.k(e,t);return r.set=function(e,t){var r=n.k.prototype.set.call(this,e,t);return a(this),r},r},u=function(e,t){var r=new i.e(e,t);return r.set=function(e,t){var r=i.e.prototype.set.call(this,e,t);return a(this),r},r}},1568:function(e,t,r){r.d(t,{Kb:function(){return c},q4:function(){return u},su:function(){return s},zP:function(){return a}});var n=r(1735),i=r(1531),o={};function a(e,t){o[e]=t}var s=!1!==globalThis.__DEV__?function(){var e,t,r,a,s;if(!(!1!==globalThis.__DEV__))throw Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],r=e[1];return[t,i.Q[t]||r]})),sizes:(0,n.pi)({print:null===(e=o.print)||void 0===e?void 0:e.call(o),parser:null===(t=o.parser)||void 0===t?void 0:t.call(o),canonicalStringify:null===(r=o.canonicalStringify)||void 0===r?void 0:r.call(o),links:function e(t){var r;return t?(0,n.ev)((0,n.ev)([null===(r=null==t?void 0:t.getMemoryInternals)||void 0===r?void 0:r.call(t)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(h):[]}(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:p(this.queryManager.documentTransform)}},null===(s=(a=this.cache).getMemoryInternals)||void 0===s?void 0:s.call(a))}}:void 0,u=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return(0,n.pi)((0,n.pi)({},l.apply(this)),{addTypenameDocumentTransform:p(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:f(this.storeReader.executeSelectionSet),executeSubSelectedArray:f(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:f(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:f(null==e?void 0:e.findFragmentSpreads),lookup:f(null==e?void 0:e.lookup),transform:f(null==e?void 0:e.transform)}})}:void 0,c=!1!==globalThis.__DEV__?l:void 0;function l(){return{cache:{fragmentQueryDocuments:f(this.getFragmentDoc)}}}function f(e){return e&&"dirtyKey"in e?e.size:void 0}function h(e){return null!=e}function p(e){return(function e(t){return t?(0,n.ev)((0,n.ev)([f(null==t?void 0:t.performWork)],e(null==t?void 0:t.left),!0),e(null==t?void 0:t.right),!0).filter(h):[]})(e).map(function(e){return{cache:e}})}},1531:function(e,t,r){r.d(t,{Q:function(){return a}});var n=r(1735),i=r(5290),o=Symbol.for("apollo.cacheSize"),a=(0,n.pi)({},i.CO[o])},1567:function(e,t,r){r.d(t,{O:function(){return i},k:function(){return n}});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},2511:function(e,t,r){r.d(t,{DN:function(){return s},aS:function(){return a},mr:function(){return i},sy:function(){return o}});var n=r(5290),i="function"==typeof WeakMap&&!(0,n.wY)(function(){return"ReactNative"==navigator.product&&!global.HermesInternal}),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s=a&&Symbol.asyncIterator;(0,n.wY)(function(){return window.document.createElement}),(0,n.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})},9045:function(e,t,r){r.d(t,{B:function(){return s}});
1var n,i=r(8288),o=r(1531),a=r(1568),s=Object.assign(function(e){return JSON.stringify(e,u)},{reset:function(){n=new i.L(o.Q.canonicalStringify||1e3)}});function u(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var i=Object.keys(t);if(i.every(c))return t;var o=JSON.stringify(i),a=n.get(o);if(!a){i.sort();var s=JSON.stringify(i);a=n.get(s)||i,n.set(o,a),n.set(s,a)}var u=Object.create(r);return a.forEach(function(e){u[e]=t[e]}),u}}return t}function c(e,t,r){return 0===t||r[t-1]<=e}!1!==globalThis.__DEV__&&(0,a.zP)("canonicalStringify",function(){return n.size}),s.reset()},244:function(e,t,r){r.d(t,{GG:function(){return a},M0:function(){return s},mT:function(){return c},yU:function(){return u}});var n=r(1167),i=r(1567),o=r(7737);function a(e){return"incremental"in e}function s(e){return a(e)||"hasNext"in e&&"data"in e}function u(e){return(0,n.s)(e)&&"payload"in e}function c(e,t){var r=e,n=new o.w0;return a(t)&&(0,i.O)(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}r=n.merge(r,t)}),r}},1756:function(e,t,r){r.d(t,{X:function(){return i}});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},7737:function(e,t,r){r.d(t,{Ee:function(){return a},bw:function(){return s},w0:function(){return c}});var n=r(1735),i=r(1167),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new c,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var u=function(e,t,r){return this.merge(e[r],t[r])},c=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=i.s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,i.s)(t)&&(0,i.s)(e)?(Object.keys(t).forEach(function(i){if(o.call(e,i)){var s=e[i];if(t[i]!==s){var u=r.reconciler.apply(r,(0,n.ev)([e,t,i],a,!1));u!==s&&((e=r.shallowCopyForMerge(e))[i]=u)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},1167:function(e,t,r){r.d(t,{s:function(){return n}});function n(e){return null!==e&&"object"==typeof e}},8142:function(e,t,r){r.d(t,{v:function(){return i}});var n=r(1756);function i(e,t){void 0===t&&(t=0);var r=(0,n.X)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?r:t},t).split(JSON.stringify(r)).join("<undefined>")}},5290:function(e,t,r){r.d(t,{CO:function(){return a},kG:function(){return c},wY:function(){return o},_K:function(){return l}});var n=r(2884),i=r(2635);function o(e){try{return e()}catch(e){}}var a=o(function(){return globalThis})||o(function(){return window})||o(function(){return self})||o(function(){return global})||o(function(){return o.constructor("return this")()}),s=r(8142);function u(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=p(i))||(t=d(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var c=Object.assign(function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];e||(0,n.kG)(e,p(t,r)||d(t,r))},{debug:u(n.kG.debug),log:u(n.kG.log),warn:u(n.kG.warn),error:u(n.kG.error)});function l(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new n.ej(p(e,t)||d(e,t))}var f=Symbol.for("ApolloErrorMessageHandler_"+i.i);function h(e){return"string"==typeof e?e:(0,s.v)(e,2).slice(0,1e3)}function p(e,t){if(void 0===t&&(t=[]),e)return a[f]&&a[f](e,t.map(h))}function d(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:i.i,message:e,args:t.map(h)})))}},2120:function(e,t,r){r.d(t,{FS:function(){return a},LZ:function(){return o},mj:function(){return s}});var n=r(5290),i=r(7122);function o(e,t){var r,i=e.directives;
1return!i||!i.length||(r=[],i&&i.length&&i.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var i=e.arguments,o=e.name.value;(0,n.kG)(i&&1===i.length,69,o);var a=i[0];(0,n.kG)(a.name&&"if"===a.name.value,70,o);var s=a.value;(0,n.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),71,o),r.push({directive:e,ifArgument:a})}}),r).every(function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],(0,n.kG)(void 0!==o,68,r.name.value)):o=i.value.value,"skip"===r.name.value?!o:o})}function a(e,t,r){var n=new Set(e),o=n.size;return(0,i.Vn)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.$_}}),r?!n.size:n.size<o}function s(e){return e&&a(["client","export"],e,!0)}},6530:function(e,t,r){r.d(t,{F:function(){return a},Yk:function(){return o},hi:function(){return s}});var n=r(1735),i=r(5290);function o(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,i._K)(72,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&((0,i.kG)(1===o.length,73,o.length),r=o[0].name.value),(0,n.pi)((0,n.pi)({},e),{definitions:(0,n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,i.kG)(n,74,r),n||null;default:return null}}},84:function(e,t,r){r.d(t,{$H:function(){return a},A$:function(){return o},O4:function(){return h},iW:function(){return c},kU:function(){return u},p$:function(){return f},pD:function(){return l},rY:function(){return s}});var n=r(5290),i=r(8290);function o(e){(0,n.kG)(e&&"Document"===e.kind,75);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,n._K)(76,e.kind);return e});return(0,n.kG)(t.length<=1,77,t.length),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function u(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=a(e);return(0,n.kG)(t&&"query"===t.operation,78),t}function l(e){(0,n.kG)("Document"===e.kind,79),(0,n.kG)(e.definitions.length<=1,80);var t=e.definitions[0];return(0,n.kG)("FragmentDefinition"===t.kind,81),t}function f(e){o(e);for(var t,r=0,i=e.definitions;r<i.length;r++){var a=i[r];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw(0,n._K)(82)}function h(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.vb)(t,e.variable.name,e.defaultValue)}),t}},2880:function(e,t,r){function n(e){return 9===e||32===e}r.d(t,{S:function(){return g}});let i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}let a=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var s,u=r(7122);let c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>l(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=h("(",l(e.variableDefinitions,", "),")"),r=l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+h(" = ",r)+h(" ",l(n," "))},SelectionSet:{leave:({selections:e})=>f(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}
1){let o=h("",e,": ")+t,a=o+h("(",l(r,", "),")");return a.length>80&&(a=o+h("(\n",p(l(r,"\n")),"\n)")),l([a,l(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+h(" ",l(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>l(["...",h("on ",e),l(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${h("(",l(r,", "),")")} on ${t} ${h("",l(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||n(e.charCodeAt(0))),s=r.endsWith('\\"""'),u=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=u||c,f=!o||e.length>70||l||a||s,h="",p=o&&n(e.charCodeAt(0));return(f&&!p||a)&&(h+="\n"),h+=r,(f||l)&&(h+="\n"),'"""'+h+'"""'}(e):`"${e.replace(i,o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+l(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+l(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+h("(",l(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>h("",e,"\n")+l(["schema",l(t," "),f(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>h("",e,"\n")+l(["scalar",t,l(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>h("",e,"\n")+l(["type",t,h("implements ",l(r," & ")),l(n," "),f(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>h("",e,"\n")+t+(d(r)?h("(\n",p(l(r,"\n")),"\n)"):h("(",l(r,", "),")"))+": "+n+h(" ",l(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>h("",e,"\n")+l([t+": "+r,h("= ",n),l(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>h("",e,"\n")+l(["interface",t,h("implements ",l(r," & ")),l(n," "),f(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>h("",e,"\n")+l(["union",t,l(r," "),h("= ",l(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>h("",e,"\n")+l(["enum",t,l(r," "),f(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>h("",e,"\n")+l([t,l(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>h("",e,"\n")+l(["input",t,l(r," "),f(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>h("",e,"\n")+"directive @"+t+(d(r)?h("(\n",p(l(r,"\n")),"\n)"):h("(",l(r,", "),")"))+(n?" repeatable":"")+" on "+l(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>l(["extend schema",l(e," "),f(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>l(["extend scalar",e,l(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend type",e,h("implements ",l(t," & ")),l(r," "),f(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend interface",e,h("implements ",l(t," & ")),l(r," "),f(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>l(["extend union",e,l(t," "),h("= ",l(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>l(["extend enum",e,l(t," "),f(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>l(["extend input",e,l(t," "),f(r)]," ")}};function l(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function f(e){return h("{\n",p(l(e,"\n")),"\n}")}function h(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function p(e){return h(" ",e.replace(/\n/g,"\n "))}function d(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var y=r(8288),v=r(1531),m=r(1568),g=Object.assign(function(e){var t=s.get(e);return t||(t=(0,u.Vn)(e,c),s.set(e,t)),t},{reset:function(){s=new y.s(v.Q.print||2e3)}});g.reset(),!1!==globalThis.__DEV__&&(0,m.zP)("print",function(){return s?s.size:0})},8290:function(e,t,r){r.d(t,{Ao:function(){return g},JW:function(){return c},My:function(){return m},NC:function(){return y},PT:function(){return d},Yk:function(){return u},kQ:function(){return s},qw:function(){return function e(t,r,n){for(var i,a=0,s=r.selections;a<s.length;a++){var u=s[a];if(m(u)){if("__typename"===u.name.value)return t[v(u)]}else i?i.push(u):i=[u]}if("string"==typeof t.__typename)return t.__typename;if(i)for(var c=0,l=i;c<l.length;c++){var u=l[c],f=e(t,(0,o.hi)(u,n).selectionSet,n);if("string"==typeof f)return f}}},u2:function(){return v},vb:function(){return l},vf:function(){return f}});var n=r(5290),i=r(1167),o=r(6530),a=r(9045);function s(e){return{__ref:String(e)}}function u(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}
1function l(e,t,r,i){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var o={};r.fields.map(function(e){return l(o,e.name,e.value,i)}),e[t.value]=o}else if("Variable"===r.kind){var a=(i||{})[r.name.value];e[t.value]=a}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return l(r,t,e,i),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw(0,n._K)(83,t.value,r.kind)}function f(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return l(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return l(n,r,i,t)})),d(e.name.value,n,r)}var h=["connection","include","skip","client","rest","export","nonreactive"],p=a.B,d=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(p(i),")")}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===h.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(p(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=p;return p=e,t}});function y(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return l(r,e.name,e.value,t)}),r}return null}function v(e){return e.alias?e.alias.value:e.name.value}function m(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},9159:function(e,t,r){r.d(t,{Gw:function(){return d},aL:function(){return y},bi:function(){return p},ob:function(){return v}});var n=r(1735),i=r(5290),o=r(8350),a=r(7122),s=r(84),u=r(8290),c=r(6530),l=r(1567),f={kind:o.h.FIELD,name:{kind:o.h.NAME,value:"__typename"}};function h(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function p(e,t){(0,s.A$)(t);for(var r,u,f,p=h(""),d=h(""),y=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,l.k)(r)){if(r.kind===o.h.OPERATION_DEFINITION)return p(r.name&&r.name.value);if(r.kind===o.h.FRAGMENT_DEFINITION)return d(r.name.value)}return!1!==globalThis.__DEV__&&i.kG.error(84),null},v=0,m=t.definitions.length-1;m>=0;--m)t.definitions[m].kind===o.h.OPERATION_DEFINITION&&++v;var g=(r=new Map,u=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&u.set(e.test,e))}),function(e){var t=r.get(e.name.value);return!t&&u.size&&u.forEach(function(r,n){n(e)&&(t=r)}),t}),b=function(e){return(0,l.O)(e)&&e.map(g).some(function(e){return e&&e.remove})},w=new Map,_=!1,k={enter:function(e){if(b(e.directives))return _=!0,null}},O=(0,a.Vn)(t,{Field:k,InlineFragment:k,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=y(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(b(e.directives))return _=!0,null;var o=y(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){w.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===w.get(JSON.stringify(n))?e:v>0&&e.selectionSet.selections.every(function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value})?(d(e.name.value).removed=!0,_=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return _=!0,null}}});if(!_)return t;var E=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){E(d(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},S=new Set;O.definitions.forEach(function(e){e.kind===o.h.OPERATION_DEFINITION?E(p(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){S.add(e)}):e.kind!==o.h.FRAGMENT_DEFINITION||0!==v||d(e.name.value).removed||S.add(e.name.value)}
1),S.forEach(function(e){E(d(e)).fragmentSpreads.forEach(function(e){S.add(e)})});var T={enter:function(e){var t;if(t=e.name.value,!S.has(t)||d(t).removed)return null}};return f=(0,a.Vn)(O,{FragmentSpread:T,FragmentDefinition:T,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=E(p(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.pi)((0,n.pi)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===o.h.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,s.$H)(f)||(0,s.pD)(f),(0,c.F)((0,s.kU)(f)))?f:null}var d=Object.assign(function(e){return(0,a.Vn)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==o.h.OPERATION_DEFINITION){var i=e.selections;if(!(!i||i.some(function(e){return(0,u.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,u.My)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,n.pi)((0,n.pi)({},e),{selections:(0,n.ev)((0,n.ev)([],i,!0),[f],!1)})}}}})},{added:function(e){return e===f}});function y(e){return"query"===(0,s.p$)(e).operation?e:(0,a.Vn)(e,{OperationDefinition:{enter:function(e){return(0,n.pi)((0,n.pi)({},e),{operation:"query"})}}})}function v(e){return(0,s.A$)(e),p([{test:function(e){return"client"===e.name.value},remove:!0}],e)}},2635:function(e,t,r){r.d(t,{i:function(){return n}});var n="3.10.4"},6231:function(e,t,r){let n;r.d(t,{e$:function(){return nr},p0:function(){return nn},ND:function(){return ro}});var i,o,a,s,u,c,l=r(2265),f=r(7326),h=r(1735),p=r(5290);let d=()=>Object.create(null),{forEach:y,slice:v}=Array.prototype,{hasOwnProperty:m}=Object.prototype;class g{constructor(e=!0,t=d){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return y.call(e,e=>t=t.getChildTrie(e)),m.call(t,"data")?t.data:t.data=this.makeData(v.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=this.weakness&&b(e[r])?t.weak:t.strong;t=n&&n.get(e[r])}return t&&t.data}getChildTrie(e){let t=this.weakness&&b(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=t.get(e);return r||t.set(e,r=new g(this.weakness,this.makeData)),r}}function b(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var w=r(2997);let _=null,k={},O=1;function E(e){try{return e()}catch(e){}}let S="@wry/context:Slot",T=E(()=>globalThis)||E(()=>global)||Object.create(null),I=T[S]||Array[S]||function(e){try{Object.defineProperty(T,S,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",O++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=_;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===k)break;return e!==_&&(_.slots[this.id]=t),!0}return _&&(_.slots[this.id]=k),!1}getValue(){if(this.hasValue())return _.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},o=_;_={parent:o,slots:i};try{return t.apply(n,r)}finally{_=o}}static bind(e){let t=_;return function(){let r=_;try{return _=t,e.apply(this,arguments)}finally{_=r}}}static noContext(e,t,r){if(!_)return e.apply(r,t);{let n=_;try{return _=null,e.apply(r,t)}finally{_=n}}}}),{bind:x,noContext:D}=I,j=new I,{hasOwnProperty:N}=Object.prototype,R=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function F(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let A=[];function P(e,t){if(!e)throw Error(t||"assertion failure")}function q(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function M(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class C{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++C.count}peek(){if(1===this.value.length&&!L(this))return Q(this),this.value[0]}recompute(e){var t;return P(!this.recomputing,"already recomputing"),Q(this),L(this)&&(W(this),j.withValue(this,V,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{F(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}
1(this,e)&&(this.dirty=!1,L(this)||(t=this,z(t,B)))),M(this.value)}setDirty(){this.dirty||(this.dirty=!0,z(this,G),F(this))}dispose(){this.setDirty(),W(this),z(this,(e,t)=>{e.setDirty(),Y(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=A.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(R(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),A.push(this.deps),this.deps=null)}}function Q(e){let t=j.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),L(e)?G(t,e):B(t,e),t}function V(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!q(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function L(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function z(e,t){let r=e.parents.size;if(r){let n=R(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function G(e,t){P(e.childValues.has(t)),P(L(t));let r=!L(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=A.pop()||new Set;e.dirtyChildren.add(t),r&&z(e,G)}function B(e,t){P(e.childValues.has(t)),P(!L(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):q(r,t.value)||e.setDirty(),U(e,t),L(e)||z(e,B)}function U(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(A.length<100&&A.push(r),e.dirtyChildren=null))}function W(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{Y(e,r)}),e.forgetDeps(),P(null===e.dirtyChildren)}function Y(e,t){t.parents.delete(e),e.childValues.delete(t),U(e,t)}C.count=0;let K={setDirty:!0,dispose:!0,forget:!0};function J(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=j.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(F(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&N.call(K,r)?r:"setDirty";R(n).forEach(e=>e[i]()),t.delete(e),F(n)}},n}function H(...e){return(n||(n=new g("function"==typeof WeakMap))).lookupArray(e)}let $=new Set;function Z(e,{max:t=65536,keyArgs:r,makeCacheKey:n=H,normalizeResult:i,subscribe:o,cache:a=w.e}=Object.create(null)){let s="function"==typeof a?new a(t,e=>e.dispose()):a,u=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new C(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));let u=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),$.add(s),j.hasValue()||($.forEach(e=>e.clean()),$.clear()),u};function c(e){let t=e&&s.get(e);t&&t.setDirty()}function l(e){let t=e&&s.get(e);if(t)return t.peek()}function f(e){return!!e&&s.delete(e)}return Object.defineProperty(u,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:s}),u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))},u.peekKey=l,u.peek=function(){return l(n.apply(null,arguments))},u.forgetKey=f,u.forget=function(){return f(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}let{toString:X,hasOwnProperty:ee}=Object.prototype,et=Function.prototype.toString,er=new Map;function en(e,t){try{return function e(t,r){if(t===r)return!0;let n=X.call(t);if(n!==X.call(r))return!1;switch(n){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(es(t,r))return!0;let n=ei(t),i=ei(r),o=n.length;if(o!==i.length)return!1;for(let e=0;e<o;++e)if(!ee.call(r,n[e]))return!1;for(let i=0;i<o;++i){let o=n[i];if(!e(t[o],r[o]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(es(t,r))return!0;let i=t.entries(),o="[object Map]"===n;for(;;){let t=i.next();if(t.done)break;let[n,a]=t.value;if(!r.has(n)||o&&!e(a,r.get(n)))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),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=et.call(t);if(e!==et.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,ea)}}return!1}(e,t)}finally{er.clear()}}function ei(e){return Object.keys(e).filter(eo,e)}function eo(e){return void 0!==this[e]}let ea="{ [native code] }";function es(e,t){let r=er.get(e);if(r){if(r.has(t))return!0}else er.set(e,r=new Set);return r.add(t),!1}var eu=r(6530),ec=r(1531),el=r(9670),ef=r(7737),eh=r(3754),ep=r(1568),ed=r(84),ey=r(2120),ev=r(8290);function em(e,t,r,n){var i=t.data,o=(0,h._T)(t,["data"]),a=r.data;return en(o,(0,h._T)(r,["data"]))&&function e(t,r,n,i){if(r===n)return!0;var o=new Set;return t.selections.every(function(t){if(o.has(t)||(o.add(t),!(0,ey.LZ)(t,i.variables)||eg(t)))return!0;
1if((0,ev.My)(t)){var a=(0,ev.u2)(t),s=r&&r[a],u=n&&n[a],c=t.selectionSet;if(!c)return en(s,u);var l=Array.isArray(s),f=Array.isArray(u);if(l!==f)return!1;if(l&&f){var h=s.length;if(u.length!==h)return!1;for(var p=0;p<h;++p)if(!e(c,s[p],u[p],i))return!1;return!0}return e(c,s,u,i)}var d=(0,eu.hi)(t,i.fragmentMap);if(d)return!!eg(d)||e(d.selectionSet,r,n,i)})}((0,ed.p$)(e).selectionSet,i,a,{fragmentMap:(0,eu.F)((0,ed.kU)(e)),variables:n})}function eg(e){return!!e.directives&&e.directives.some(eb)}function eb(e){return"nonreactive"===e.name.value}var ew=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Z(eu.Yk,{max:ec.Q["cache.fragmentQueryDocuments"]||1e3,cache:eh.k})}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,h.pi)((0,h.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,o=e.from,a=e.optimistic,s=this.getFragmentDoc(n,i),u={returnPartialData:!0,id:"string"==typeof o?o:this.identify(o),query:s,optimistic:void 0===a||a};return new el.y(function(e){return r.watch((0,h.pi)((0,h.pi)({},u),{immediate:!0,callback:function(r){if(!(t&&em(s,{data:null==t?void 0:t.result},{data:r.result}))){var n={data:r.result,complete:!!r.complete};r.missing&&(n.missing=(0,ef.bw)(r.missing.map(function(e){return e.missing}))),t=r,e.next(n)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,h.pi)((0,h.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,h._T)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,o=(0,h._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery((0,h.pi)((0,h.pi)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment((0,h.pi)((0,h.pi)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(ew.prototype.getMemoryInternals=ep.Kb);var e_=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,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(0,h.ZT)(t,e),t}(Error);let ek=()=>Object.create(null),{forEach:eO,slice:eE}=Array.prototype,{hasOwnProperty:eS}=Object.prototype;class eT{constructor(e=!0,t=ek){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return eO.call(e,e=>t=t.getChildTrie(e)),eS.call(t,"data")?t.data:t.data=this.makeData(eE.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);!i||(t=i.removeArray(eE.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new eT(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}var eI=r(2511);function ex(e){return e}var eD=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=eI.sy?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(ex,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new eT(eI.mr);this.performWork=Z(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,p.kG)(Array.isArray(n),67),r.lookupArray(n)},max:ec.Q["documentTransform.cache"],cache:eh.k})}},e.prototype.performWork=function(e){return(0,ed.A$)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}(),ej=r(9159),eN=r(9045),eR=r(2880),eF=r(8350);function eA(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}var eP=r(1167);function eq(e){if(!1!==globalThis.__DEV__){var t;
1(t=new Set([e])).forEach(function(e){(0,eP.s)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){(0,eP.s)(e[r])&&t.add(e[r])})})}return e}var eM=r(1567),eC=Object.prototype.hasOwnProperty;function eQ(e){return null==e}function eV(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=eQ(n)?eQ(i)?void 0:{_id:i}:{id:n}),eQ(n)&&!eQ(i)&&(n=i),!eQ(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var eL={dataIdFromObject:eV,addTypename:!0,resultCaching:!0,canonizeResults:!1};function ez(e){var t=e.canonizeResults;return void 0===t?eL.canonizeResults:t}var eG=/^[_a-z][_0-9a-z]*/i;function eB(e){var t=e.match(eG);return t?t[0]:e}function eU(e){return(0,eP.s)(e)&&!(0,ev.Yk)(e)&&!(0,eM.k)(e)}function eW(e,t){var r=(0,eu.F)((0,ed.kU)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var eY=Object.create(null),eK=function(){return eY},eJ=Object.create(null),eH=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return eq((0,ev.Yk)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,ev.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,ev.kQ)(e);if((0,ev.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,ev.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,h.pi)({},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),eC.call(this.data,e)){var r=this.data[e];if(r&&eC.call(r,t))return r[t]}return"__typename"===t&&eC.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof eX?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),eC.call(this.data,e))?this.data[e]:this instanceof eX?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,ev.Yk)(e)&&(e=e.__ref),(0,ev.Yk)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){(0,p.kG)("string"==typeof r,1);var a=new ef.w0(e1).merge(i,o);if(this.data[r]=a,a!==i&&(delete this.refs[r],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=eB(e);t===e||n.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||n instanceof eX||delete a[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===a.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),o=!1,a=!0,s={DELETE:eY,INVALIDATE:eJ,isReference:ev.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,ev.kQ)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(u){var c=eB(u),l=n[u];if(void 0!==l){var f="function"==typeof t?t:t[u]||t[c];if(f){var d=f===eK?eY:f(eq(l),(0,h.pi)((0,h.pi)({},s),{fieldName:c,storeFieldName:u,storage:r.getStorage(e,u)}));if(d===eJ)r.group.dirty(e,u);else if(d===eY&&(d=void 0),d!==l&&(i[u]=d,o=!0,l=d,!1!==globalThis.__DEV__)){var y=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&p.kG.warn(2,e),!0};if((0,ev.Yk)(d))y(d);else if(Array.isArray(d))for(var v=!1,m=void 0,g=0,b=d;g<b.length;g++){var w=b[g];if((0,ev.Yk)(w)){if(v=!0,y(w))break}else"object"==typeof w&&w&&r.policies.identify(w)[0]&&(m=w);if(v&&void 0!==m){!1!==globalThis.__DEV__&&p.kG.warn(3,m);break}}}}void 0!==l&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof eX?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=eK,n):eK)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(eC.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof eX&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];
1return this.getRootIdSet().forEach(function(t){eC.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&eC.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,h._T)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof eX?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){eC.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof eX;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!eC.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,ev.Yk)(e)&&(t[e.__ref]=!0),(0,eP.s)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,eP.s)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),e$=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?J():null,this.keyMaker=new eT(eI.mr)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=eB(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function eZ(e,t){e2(e)&&e.group.depend(t,"__exists")}o=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new e$(void 0===n||n))||this;return o.stump=new e0(o),o.storageTrie=new eT(eI.mr),i&&o.replace(i),o}return(0,h.ZT)(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}(i=eH||(eH={})),i.Root=o;var eX=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,h.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){en(n[r],i[r])||t.group.dirty(e,r)}
1):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,h.pi)((0,h.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return eC.call(this.data,t)?(0,h.pi)((0,h.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(eH),e0=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new e$(t.group.caching,t.group))||this}return(0,h.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(eX);function e1(e,t,r){var n=e[r],i=t[r];return en(n,i)?n:i}function e2(e){return!!(e instanceof eH&&e.group.caching)}var e8=function(){function e(){this.known=new(eI.sy?WeakSet:Set),this.pool=new eT(eI.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,eP.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,eP.s)(e)){var t=(0,eP.s)(e)?(0,eM.k)(e)?e.slice(0):(0,h.pi)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,eP.s)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var u=a.length;s.sorted.forEach(function(r){a.push(t.admit(e[r]))});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]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function e3(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var e7=function(){function e(e){var t=this;this.knownResults=new(eI.mr?WeakMap:Map),this.config=eA(e,{addTypename:!1!==e.addTypename,canonizeResults:ez(e)}),this.canon=e.canon||new e8,this.executeSelectionSet=Z(function(e){var r,n=e.context.canonizeResults,i=e3(e);i[3]=!n;var o=(r=t.executeSelectionSet).peek.apply(r,i);return o?n?(0,h.pi)((0,h.pi)({},o),{result:t.canon.admit(o.result)}):o:(eZ(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||ec.Q["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:e3,makeCacheKey:function(e,t,r,n){if(e2(r.store))return r.store.makeCacheKey(e,(0,ev.Yk)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=Z(function(e){return eZ(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||ec.Q["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(e2(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new e8},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=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=(0,h.pi)((0,h.pi)({},(0,ed.O4)((0,ed.iW)(n))),o);var l=(0,ev.kQ)(void 0===i?"ROOT_QUERY":i),f=this.executeSelectionSet({selectionSet:(0,ed.p$)(n).selectionSet,objectOrReference:l,enclosingRef:l,context:(0,h.pi)({store:r,query:n,policies:c,variables:o,varString:(0,eN.B)(o),canonizeResults:u},eW(n,this.config.fragments))});if(f.missing&&(t=[new e_(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(f.missing),f.missing,n,o)],!(void 0===a||a)))throw t[0];return{result:f.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(e2(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if((0,ev.Yk)(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"),l=[],f=new ef.w0;function h(e,r){var n;return e.missing&&(t=f.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof c&&!u.rootIdsByTypename[c]&&l.push({__typename:c}
1);var d=new Set(n.selections);d.forEach(function(e){var n,y;if((0,ey.LZ)(e,s)){if((0,ev.My)(e)){var v=u.readField({fieldName:e.name.value,field:e,variables:a.variables,from:i},a),m=(0,ev.u2)(e);void 0===v?ej.Gw.added(e)||(t=f.merge(t,((n={})[m]="Can't find field '".concat(e.name.value,"' on ").concat((0,ev.Yk)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,eM.k)(v)?v.length>0&&(v=h(r.executeSubSelectedArray({field:e,array:v,enclosingRef:o,context:a}),m)):e.selectionSet?null!=v&&(v=h(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:v,enclosingRef:(0,ev.Yk)(v)?v:o,context:a}),m)):a.canonizeResults&&(v=r.canon.pass(v)),void 0!==v&&l.push(((y={})[m]=v,y))}else{var g=(0,eu.hi)(e,a.lookupFragment);if(!g&&e.kind===eF.h.FRAGMENT_SPREAD)throw(0,p._K)(9,e.name.value);g&&u.fragmentMatches(g,c)&&g.selectionSet.selections.forEach(d.add,d)}}});var y={result:(0,ef.bw)(l),missing:t},v=a.canonizeResults?this.canon.admit(y):eq(y);return v.result&&this.knownResults.set(v.result,n),v},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new ef.w0;function u(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,eM.k)(e)?u(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:a}),t):n.selectionSet?u(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,ev.Yk)(e)?e:o,context:a}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,eP.s)(r)&&((0,p.kG)(!(0,ev.Yk)(r),10,(0,ev.Yk)(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(a.store,n,e),e)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),e5=Object.prototype.toString;function e4(e,t){switch(e5.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=e4(e,t)}),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(r){n[r]=e4(e[r],t)}),n;default:return e}}var e9=r(8142),e6=new I,te=new WeakMap;function tt(e){var t=te.get(e);return t||te.set(e,t={vars:new Set,dep:J()}),t}function tr(e){tt(e).vars.forEach(function(t){return t.forgetCache(e)})}function tn(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){tt(e).dep.dirty(n),e.broadcastWatches&&e.broadcastWatches()});var a=Array.from(r);r.clear(),a.forEach(function(t){return t(e)})}}else{var s=e6.getValue();s&&(i(s),tt(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),tt(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var ti=Object.create(null);function to(e){var t=JSON.stringify(e);return ti[t]||(ti[t]=Object.create(null))}function ta(e){var t=to(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=tu(e,function(e){var i=tl(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&eC.call(t,e[0])&&(i=tl(t,e,tc)),(0,p.kG)(void 0!==i,4,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function ts(e){var t=to(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(tu(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,eM.O)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&(0,ev.NC)(s,i);return u&&tl(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&eC.call(i,c)){var l=e.slice(0);return l[0]=c,tl(i,l)}return}if(t)return tl(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function tu(e,t){var r=new ef.w0;return(function e(t){var r=to(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,eM.k)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,eM.k)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function tc(e,t){return e[t]}function tl(e,t,r){return r=r||tc,function e(t){return(0,eP.s)(t)?(0,eM.k)(t)?t.map(e):tu(Object.keys(t).sort(),function(e){return tl(t,e)}):t}
1(t.reduce(function e(t,n){return(0,eM.k)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function tf(e){return void 0!==e.args?e.args:e.field?(0,ev.NC)(e.field,e.variables):null}var th=function(){},tp=function(e,t){return t.fieldName},td=function(e,t,r){return(0,r.mergeObjects)(e,t)},ty=function(e,t){return t},tv=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,h.pi)({dataIdFromObject:eV},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=t&&t.storeObject||e,s=(0,h.pi)((0,h.pi)({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=tg(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((0,h.pi)((0,h.pi)({},e),a),s);if((0,eM.k)(l))c=ta(l);else{n=l;break}}return n=n?String(n):void 0,s.keyObject?[n,s.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,o=n.mutationType,a=n.subscriptionType,s=(0,h._T)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),eC.call(t.toBeAdded,r)?t.toBeAdded[r].push(s):t.toBeAdded[r]=[s]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?td:!1===t?ty:e.merge}a(n,t.merge),n.keyFn=!1===i?th:(0,eM.k)(i)?ta(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?tp:(0,eM.k)(s)?ts(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||tp)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,p.kG)(!n||n===e,5,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(eG);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!eC.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,h._T)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var 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=!!(r&&this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var h=s[f];
1if(h.has(o))return a.has(o)||(l&&!1!==globalThis.__DEV__&&p.kG.warn(6,t,o),a.add(o)),!0;h.forEach(u),c&&f===s.length-1&&function e(t,r,n){return!!(0,eP.s)(r)&&((0,eM.k)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,ev.My)(t)&&(0,ey.LZ)(t,n)){var i=(0,ev.u2)(t);return eC.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(c=!1,l=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=tf(e);o;){var u=o(s,a);if((0,eM.k)(u))o=ts(u);else{t=u||n;break}}return(void 0===t&&(t=e.field?(0,ev.vf)(e.field,e.variables):(0,ev.PT)(n,tf(e))),!1===t)?n:n===eB(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=eB(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=tm(this,r,e,t,t.store.getStorage((0,ev.Yk)(r)?r.__ref:r,i));return e6.withValue(this.cache,u,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===td?tb(n.store)(e,t):s===ty?t:(n.overwrite&&(e=void 0),s(e,t,tm(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function tm(e,t,r,n,i){var o=e.getStoreFieldName(r),a=eB(o),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:tf(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:ev.Yk,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(tg(arguments,t,s),n)},mergeObjects:tb(n.store)}}function tg(e,t,r){var n,i=e[0],o=e[1],a=e.length;return"string"==typeof i?n={fieldName:i,from:a>1?o:t}:(n=(0,h.pi)({},i),eC.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&p.kG.warn(7,(0,e9.v)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function tb(e){return function(t,r){if((0,eM.k)(t)||(0,eM.k)(r))throw(0,p._K)(8);if((0,eP.s)(t)&&(0,eP.s)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,ev.Yk)(t)&&eU(r))return e.merge(t.__ref,r),t;if(eU(t)&&(0,ev.Yk)(r))return e.merge(t,r.__ref),r;if(eU(t)&&eU(r))return(0,h.pi)((0,h.pi)({},t),r)}return r}}function tw(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,h.pi)((0,h.pi)({},e),{clientOnly:t,deferred:r})),i}var t_=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,u=(0,ed.$H)(n),c=new ef.w0;a=(0,h.pi)((0,h.pi)({},(0,ed.O4)(u)),a);var l=(0,h.pi)((0,h.pi)({store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:a,varString:(0,eN.B)(a)},eW(n,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(!(0,ev.Yk)(f))throw(0,p._K)(11,i);return l.incomingById.forEach(function(t,n){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=(0,ev.kQ)(n);if(o&&o.map.size){var u=r.applyMerges(o,s,i,l);if((0,ev.Yk)(u))return;i=u}if(!1!==globalThis.__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!!(t&&t.info&&t.info.merge)};
1Object.keys(i).forEach(function(e){!0!==c[eB(e)]||f(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},o=i(e);if(o){var a=i(t);if(!(!a||(0,ev.Yk)(o)||en(o,a)||Object.keys(o).every(function(e){return void 0!==n.getFieldValue(a,e)}))){var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),u=eB(r),c="".concat(s,".").concat(u);if(!tT.has(c)){tT.add(c);var l=[];(0,eM.k)(o)||(0,eM.k)(a)||[o,a].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)}),!1!==globalThis.__DEV__&&p.kG.warn(14,u,s,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",c,(0,h.pi)({},o),(0,h.pi)({},a))}}}}(s,i,e,l.store)})}e.merge(n,i)}),e.retain(f.__ref),f},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,u=Object.create(null),c=r&&s.rootTypenamesById[r]||(0,ev.qw)(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof c&&(u.__typename=c);var l=function(){var e=tg(arguments,u,o.variables);if((0,ev.Yk)(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var r=s.readField((0,h.pi)((0,h.pi)({},e),{from:t.storeObject}),o);if(void 0!==r)return r}}return s.readField(e,o)},f=new Set;this.flattenFields(i,n,o,c).forEach(function(e,r){var i,o=n[(0,ev.u2)(r)];if(f.add(r),void 0!==o){var h=s.getStoreFieldName({typename:c,fieldName:r.name.value,field:r,variables:e.variables}),d=tO(a,h),y=t.processFieldValue(o,r,r.selectionSet?tw(e,!1,!1):e,d),v=void 0;r.selectionSet&&((0,ev.Yk)(y)||eU(y))&&(v=l("__typename",y));var m=s.getMergeFunction(c,r.name.value,v);m?d.info={field:r,typename:c,merge:m}:tS(a,h),u=e.merge(u,((i={})[h]=y,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||ej.Gw.added(r)||s.getReadFunction(c,r.name.value)||!1===globalThis.__DEV__||p.kG.error(12,(0,ev.u2)(r),n)});try{var d=s.identify(n,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:u,readField:l}),y=d[0],v=d[1];r=r||y,v&&(u=o.merge(u,v))}catch(e){if(!r)throw e}if("string"==typeof r){var m=(0,ev.kQ)(r),g=o.written[r]||(o.written[r]=[]);if(g.indexOf(i)>=0||(g.push(i),this.reader&&this.reader.isFresh(n,m,i,o)))return m;var b=o.incomingById.get(r);return b?(b.storeObject=o.merge(b.storeObject,u),b.mergeTree=function e(t,r){if(t===r||!r||tE(r))return t;if(!t||tE(t))return r;var n=t.info&&r.info?(0,h.pi)((0,h.pi)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,o={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var a=new Set(r.map.keys());t.map.forEach(function(t,n){o.map.set(n,e(t,r.map.get(n))),a.delete(n)}),a.forEach(function(n){o.map.set(n,e(r.map.get(n),t.map.get(n)))})}return o}(b.mergeTree,a),f.forEach(function(e){return b.fieldNodeSet.add(e)})):o.incomingById.set(r,{storeObject:u,mergeTree:tE(a)?void 0:a,fieldNodeSet:f}),m}return u},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,eM.k)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,tO(n,o));return tS(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?e4(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,ev.qw)(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,a=new eT(!1);return function e(s,u){var c=a.lookup(s,u.clientOnly,u.deferred);c.visited||(c.visited=!0,s.selections.forEach(function(a){if((0,ey.LZ)(a,r.variables)){var s=u.clientOnly,c=u.deferred;if(!(s&&c)&&(0,eM.O)(a.directives)&&a.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=(0,ev.NC)(e,r.variables);n&&!1===n.if||(c=!0)}}),(0,ev.My)(a)){var l=i.get(a);l&&(s=s&&l.clientOnly,c=c&&l.deferred),i.set(a,tw(r,s,c))}else{var f=(0,eu.hi)(a,r.lookupFragment);if(!f&&a.kind===eF.h.FRAGMENT_SPREAD)throw(0,p._K)(13,a.name.value);f&&o.fragmentMatches(f,n,t,r.variables)&&e(f.selectionSet,tw(r,s,c))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var o=this;if(e.map.size&&!(0,ev.Yk)(r)){var a,s,u=!(0,eM.k)(r)&&((0,ev.Yk)(t)||eU(t))?t:void 0,c=r;u&&!i&&(i=[(0,ev.Yk)(u)?u.__ref:u]);
1var l=function(e,t){return(0,eM.k)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=l(u,t),a=l(c,t);if(void 0!==a){i&&i.push(t);var f=o.applyMerges(e,r,a,n,i);f!==a&&(s=s||new Map).set(t,f),i&&(0,p.kG)(i.pop()===t)}}),s&&(r=(0,eM.k)(c)?c.slice(0):(0,h.pi)({},c),s.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(a=n.store).getStorage.apply(a,i)):r},e}(),tk=[];function tO(e,t){var r=e.map;return r.has(t)||r.set(t,tk.pop()||{map:new Map}),r.get(t)}function tE(e){return!e||!(e.info||e.map.size)}function tS(e,t){var r=e.map,n=r.get(t);n&&tE(n)&&(tk.push(n),r.delete(t))}var tT=new Set,tI=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new eD(ej.Gw),r.assumeImmutableResults=!0,r.makeVar=tn,r.txCount=0,r.config=eA(eL,t),r.addTypename=!!r.config.addTypename,r.policies=new tv({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,h.ZT)(t,e),t.prototype.init=function(){var e=this.data=new eH.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new t_(this,this.storeReader=new e7({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:ez(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=Z(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||ec.Q["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(e2(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,eN.B)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,h.pi)((0,h.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof e_)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(eC.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,h.pi)((0,h.pi)({},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){tt(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&&tr(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){eN.B.reset(),eR.S.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var t,r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,ev.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&p.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(eC.call(e,"id"))return!1;e=(0,h.pi)((0,h.pi)({},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(),eN.B.reset(),e&&e.discardWatches?(this.watches.forEac
1h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),tr(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,u=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},c=new Set;return s&&!this.txCount&&this.broadcastWatches((0,h.pi)((0,h.pi)({},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((0,h.pi)((0,h.pi)({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&c.delete(e),r}})),c.size&&c.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&en(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(ew);!1!==globalThis.__DEV__&&(tI.prototype.getMemoryInternals=ep.q4);var tx=f.i.execute,tD=r(2635),tj=r(3128),tN=r(244);function tR(e,t,r){return new el.y(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var a={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}function tF(e){var t=tA(e);return(0,eM.O)(t)}function tA(e){var t=(0,eM.O)(e.errors)?e.errors.slice(0):[];return(0,tN.GG)(e)&&(0,eM.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var tP=r(1756);function tq(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function tM(e){function t(t){Object.defineProperty(e,t,{value:el.y})}return eI.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function tC(e){return e&&"function"==typeof e.then}var tQ=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),tq(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),tq(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?tC(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),tq(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new el.y(t)]),tC(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,h.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(el.y);tM(tQ);var tV=r(1288);function tL(e){return!!e&&e<7}(a=c||(c={}))[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 tz=Object.assign,tG=Object.hasOwnProperty,tB=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,i=t.options,o=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=tW)}catch(e){}var r=!o.observers.size;o.observers.add(e);var n=o.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.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=n,o.queryManager=r,o.waitForOwnResult=tK(i.fetchPolicy),o.isTornDown=!1;var a=r.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,p=void 0===f?"standby"===l?u:l:f;o.options=(0,h.pi)((0,h.pi)({},i),{initialFetchPolicy:p,fetchPolicy:l}),o.queryId=n.queryId||r.generateQueryId();var d=(0,ed.$H)(o.query);return o.queryName=d&&d.name&&d.name.value,o}return(0,h.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||c.ready,n=(0,h.pi)((0,h.pi)({},t),{loading:tL(r),networkStatus:r}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if(tK(o)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(n.data=a.result),en(n.data,{})&&(n.data=void 0),a.complete?(delete n.partial,a.complete&&n.networkStatus===c.loading&&("cache-first"===o||"cac
1he-only"===o)&&(n.networkStatus=c.ready,n.loading=!1)):n.partial=!0,!1===globalThis.__DEV__||a.complete||this.options.partialRefetch||n.loading||n.data||n.error||tY(a.missing)}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!em(this.query,this.last.result,e,this.variables):!en(this.last.result,e))||t&&!en(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||en(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},n=this.options.fetchPolicy;if("cache-and-network"===n?r.fetchPolicy=n:"no-cache"===n?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&tG.call(e,"variables")){var i=(0,ed.iW)(this.query),o=i.variableDefinitions;o&&o.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||p.kG.warn(20,e,(null===(t=i.name)||void 0===t?void 0:t.value)||i)}return e&&!en(this.options.variables,e)&&(r.variables=this.options.variables=(0,h.pi)((0,h.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,c.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,h.pi)((0,h.pi)({},e.query?e:(0,h.pi)((0,h.pi)((0,h.pi)((0,h.pi)({},this.options),{query:this.options.query}),e),{variables:(0,h.pi)((0,h.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var i=this.queryInfo,o=i.networkStatus;i.networkStatus=c.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var a=new Set;return this.queryManager.fetchQuery(n,r,c.fetchMore).then(function(s){return t.queryManager.removeQuery(n),i.networkStatus===c.fetchMore&&(i.networkStatus=o),t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:s.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:s.data})},onWatchUpdated:function(e){a.add(e.query)}}),s}).finally(function(){a.has(t.query)||tU(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}!1!==globalThis.__DEV__&&p.kG.error(21,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=eA(this.options,e||{});tz(this.options,t)},t.prototype.setVariables=function(e){return en(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},c.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){(0,p.kG)(r,22),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&(tL(e.queryInfo.networkStatus)||(null===(r=(t=e.options).skipPollAttempt)||void 0===r?void 0:r.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},c.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!en(t,this.last.variables)&&(r=void 0),this.last=(0,h.pi)({result:this.queryManager.assumeImmutableResults?e:e4(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===c.refetch||t===c.fetchMore||t===c.poll,i=this.options.variables,o=this.options.fetchPolicy,a=eA(this.options,e||{}),s=n?a:tz(this.options,a),u=this.transformDocument(s.query);this.lastQuery=u,!n&&(this.updatePolling(),e&&e.variables&&!en(e.variables,i)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===o&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=c.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=tK(s.fetchPolicy));var l=function(){r.concast===d&&(r.waitForOwnResult=!1)},f=s.variables&&(0,h.pi)({},s.variables),p=this.fetch(s,t,u),d=p.concast,y=p.fromLink,v={next:function(e){en(r.variables,f)&&(l(),r.reportResult(e,f))},error:function(e){en(r.variables,f)&&(l(),r.reportError(e,f))}};return n||!y&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=v),d.addObserver(v),d},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&tq(this.observers,"next",e)},t.prototype.reportError=function(e,t){var r=(0,h.pi)((0,h.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:c.error,loading:!1});this.updateLastResult(r,t),tq(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(el.y);function tU(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return(this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function tW(e){!1!==globalThis.__DEV__&&p.kG.error(23,e.message,e.stack)}function tY(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&p.kG.debug(24,e)}function tK(e){return"network-only"===e||"no-cache"===e||"standby"===e}tM(tB);var tJ=r(7122);function tH(e){return e.kind===eF.h.FIELD||e.kind===eF.h.FRAGMENT_SPREAD||e.kind===eF.h.INLINE_FRAGMENT}var t$=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,ef.Ee)(t.resolvers,e)}):this.resolvers=(0,ef.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,h.mG)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return(0,h.Jh)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then(function(e){return(0,h.pi)((0,h.pi)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,ey.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,ej.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,h.pi)((0,h.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,h.mG)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,h.Jh)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,h.pi)((0,h.pi)({},t),e.exportedVariables)})]:[2,(0,h.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,tJ.Vn)(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 tJ.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,ej.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,h.mG)(this,arguments,void 0,function(e,t,r,n,i,o){var a,s,u,c,l,f,p,d,y,v;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),(0,h.Jh)(this,function(m){return a=(0,ed.p$)(e),s=(0,ed.kU)(e),u=(0,eu.F)(s),c=this.collectSelectionsToResolve(a,u),f=(l=a.operation)?l.charAt(0).toUpperCase()+l.slice(1):"Query",p=this,d=p.c
1ache,y=p.client,v={fragmentMap:u,context:(0,h.pi)((0,h.pi)({},r),{cache:d,client:y}),variables:n,fragmentMatcher:i,defaultOperationType:f,exportedVariables:{},selectionsToResolve:c,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,!1,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return(0,h.mG)(this,void 0,void 0,function(){var i,o,a,s,u,c=this;return(0,h.Jh)(this,function(l){return i=n.fragmentMap,o=n.context,a=n.variables,s=[r],u=function(e){return(0,h.mG)(c,void 0,void 0,function(){var u,c;return(0,h.Jh)(this,function(l){return(t||n.selectionsToResolve.has(e))&&(0,ey.LZ)(e,a)?(0,ev.My)(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&s.push(((r={})[(0,ev.u2)(e)]=t,r))})]:((0,ev.Ao)(e)?u=e:(u=i[e.name.value],(0,p.kG)(u,18,e.name.value)),u&&u.typeCondition&&(c=u.typeCondition.name.value,n.fragmentMatcher(r,c,o)))?[2,this.resolveSelectionSet(u.selectionSet,t,r,n).then(function(e){s.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return(0,ef.bw)(s)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,h.mG)(this,void 0,void 0,function(){var i,o,a,s,u,c,l,f,p,d=this;return(0,h.Jh)(this,function(h){return r?(i=n.variables,s=(o=e.name.value)!==(a=(0,ev.u2)(e)),c=Promise.resolve(u=r[a]||r[o]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(l=r.__typename||n.defaultOperationType,(f=this.resolvers&&this.resolvers[l])&&(p=f[s?o:a])&&(c=Promise.resolve(e6.withValue(this.cache,p,[r,(0,ev.NC)(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then(function(r){if(void 0===r&&(r=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;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(r)?d.resolveSubSelectedArray(e,t||a,r,n):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||a,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var o=new Set;n.set(i,o),(0,tJ.Vn)(i,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach(function(e){r(e)&&tH(e)&&o.add(e)})},FragmentSpread:function(n,i,a,s,u){var c=t[n.name.value];(0,p.kG)(c,19,n.name.value);var l=e(c);l.size>0&&(u.forEach(function(e){r(e)&&tH(e)&&o.add(e)}),o.add(n),l.forEach(function(e){o.add(e)}))}})}return n.get(i)}(e)},e}(),tZ=new(eI.mr?WeakMap:Map);function tX(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return tZ.set(e,(tZ.get(e)+1)%1e15),r.apply(this,arguments)})}function t0(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var t1=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;tZ.has(r)||(tZ.set(r,0),tX(r,"evict"),tX(r,"modify"),tX(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||c.loading;return this.variables&&this.networkStatus!==c.loading&&!en(this.variables,e.variables)&&(t=c.setVariables),en(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(){t0(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&en(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError()))&&(this.updateLastDiff(e),this.dirty||en(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():tU(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
1t0(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(tL(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=(0,h.pi)((0,h.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&en(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===tZ.get(this.cache)&&en(t,r.variables)&&en(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new ef.w0,a=(0,eM.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,eM.O)(e.incremental)){var s=(0,tN.mT)(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"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(t2(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:tZ.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(r.variables),s=o.diff(a);!i.stopped&&en(i.variables,r.variables)&&i.updateWatch(r.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=c.ready},e.prototype.markError=function(e){return this.networkStatus=c.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function t2(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!tF(e);return!n&&r&&e.data&&(n=!0),n}var t8=r(8288),t3=Object.prototype.hasOwnProperty,t7=Object.create(null),t5=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.documentTransform,o=e.queryDeduplication,a=e.onBroadcast,s=e.ssrMode,u=e.clientAwareness,c=e.localState,l=e.assumeImmutableResults,f=void 0===l?!!t.assumeImmutableResults:l,h=e.defaultContext,p=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new t8.s(ec.Q["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new eT(!1);var d=new eD(function(e){return p.cache.transformDocument(e)},{cache:!1});this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=void 0!==o&&o,this.clientAwareness=void 0===u?{}:u,this.localState=c||new t$({cache:t}),this.ssrMode=void 0!==s&&s,this.assumeImmutableResults=f,this.documentTransform=i?d.concat(i).concat(d):d,this.defaultContext=h||Object.create(null),(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,p._K)(25))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,h.mG)(this,arguments,void 0,function(e){var t,r,n,i,o,a,s,u=e.mutation,c=e.variables,l=e.optimisticResponse,f=e.updateQueries,d=e.refetchQueries,y=void 0===d?[]:d,v=e.awaitRefetchQueries,m=void 0!==v&&v,g=e.update,b=e.onQueryUpdated,w=e.fetchPolicy,_=void 0===w?(null===(a=this.defaultOptions.mutate)||void 0===a?void 0:a.fetchPolicy)||"network-only":w,k=e.errorPolicy,O=void 0===k?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.errorPolicy)||"none":k,E=e.keepRootFields,S=e.context;return(0,h.Jh)(this,function(e){switch(e.label){case 0:if((0,p.kG)(u,26),(0,p.kG)("network-only"===_||"no-cache"===_,27),t=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),r=this.getDocumentInfo(u).hasClientExports,c=this.getVariables(u,c),!r)return[3,2];return[4,this.localState.addExportedVariables(u,c,S)];case 1:c=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:u,variables:c,loading:!0,error:null}),i=l&&this.markMutationOptimistic(l,{mutationId:t,document:u,variables:c,fetchPolicy:_,errorPolicy:O,context:S,updateQueries:f,update:g,keepRootFields:E}),this.broadcastQueries(),o=this,[2,new Promise(function(e,r){return tR(o.getObservableFromLink(u,(0,h.pi)((0,h.pi)({},S),{optimisticResponse:i?l:void 0}),c,!1),function(e){if(tF(e)&&"none"===O)throw new tV.cA({graphQLErrors:tA(e)});n&&(n.loading=!1,n.error=null);var r=(0,h.pi)({},e);return"function"==typeof y&&(y=y(r)),"ignore"===O&&tF(r)&&delete r.errors,o.markMutationResult({mutationId:t,result:r,document:u,variables:c,fetchPolicy:_,errorPolicy:O,context:S,update:g,updateQueries:f,awaitRefetchQueries:m,refetchQueries:y,removeOptimistic:i?t:void 0,onQueryUpdated:b,keepRootFields:E})}).subscribe({next:function(t){o.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){n&&(n.loading=!1,n.error=e),i&&o.cache.removeOptimistic(t),o.broadcastQueries(),r(e instanceof tV.cA?e:new tV.cA({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&t2(n,e.errorPolicy)){if((0,tN.GG)(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,tN.GG)(n)&&(0,eM.O)(n.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),s=void 0;a.result&&(s=(0,tN.mT)(a.result,n)),void 0!==s&&(n.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&&t3.call(u,s)){var c=u[s],l=r.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 y=c(d,{mutationResult:n,queryName:f&&(0,ed.rY)(f)||void 0,queryVariables:h});y&&i.push({result:y,dataId:"ROOT_QUERY",query:f,variables:h})}}})}if(i.length>0||(e.refetchQueries||"").length>0||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=e.update,s=!(0,tN.M0)(n)||(0,tN.GG)(n)&&!n.hasNext;if(a){if(!o){var u=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(n=(0,h.pi)((0,h.pi)({},n),{data:u.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}s&&a(t,n,{context:e.context,variables:e.variables})}o||e.keepRootFields||!s||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return c.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:t7}):e;return n!==t7&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,h.pi)((0,h.pi)({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&p.kG.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,ey.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,ey.FS)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,ej.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,ed.O4)((0,ed.$H)(e)),asQuery:(0,h.pi)((0,h.pi)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,h.pi)((0,h.pi)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,h.pi)((0,h.pi)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,h.pi)((0,h.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new t1(this),n=new tB({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),(0,p.kG)(e.query,28),(0,p.kG)("Document"===e.query.kind,29),(0,p.kG)(!e.returnPartialData,30),(0,p.kG)(!e.pollInterval,31),this.fetchQuery(t,(0,h.pi)((0,h.pi)({},e),{query:this.transform(e.query)})).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}
1),this.cancelPendingFetches((0,p._K)(32)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=c.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?n.set(e,!1):(0,ev.JW)(e)?n.set(t.transform(e),!1):(0,eP.s)(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e){r.set(i,o);return}var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&n.has(s)||a&&n.has(a))&&(r.set(i,o),s&&n.set(s,!0),a&&n.set(a,!0))}}),i.size&&i.forEach(function(e){var n=(0,tP.X)("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),o=new tB({queryManager:t,queryInfo:i,options:(0,h.pi)((0,h.pi)({},e),{fetchPolicy:"network-only"})});(0,p.kG)(o.queryId===n),i.setObservableQuery(o),r.set(n,o)}),!1!==globalThis.__DEV__&&n.size&&n.forEach(function(e,t){e||!1===globalThis.__DEV__||p.kG.warn("string"==typeof t?33:34,t)}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,a=e.variables,s=e.context,u=void 0===s?{}:s;r=this.transform(r),a=this.getVariables(r,a);var c=function(e){return t.getObservableFromLink(r,u,e).map(function(i){"no-cache"!==n&&(t2(i,o)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=tF(i),s=(0,tV.ls)(i);if(a||s){var u={};if(a&&(u.graphQLErrors=i.errors),s&&(u.protocolErrors=i.extensions[tV.YG]),"none"===o||s)throw new tV.cA(u)}return"ignore"===o&&delete i.errors,i})};if(this.getDocumentInfo(r).hasClientExports){var l=this.localState.addExportedVariables(r,a,u).then(c);return new el.y(function(e){var t=null;return l.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return c(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var i,o,a=this;void 0===n&&(n=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.getDocumentInfo(e),u=s.serverQuery,c=s.clientQuery;if(u){var l=this.inFlightLinkObservables,f=this.link,p={query:u,variables:r,operationName:(0,ed.rY)(u)||void 0,context:this.prepareContext((0,h.pi)((0,h.pi)({},t),{forceFetch:!n}))};if(t=p.context,n){var d=(0,eR.S)(u),y=(0,eN.B)(r),v=l.lookup(d,y);if(!(o=v.observable)){var m=new tQ([tx(f,p)]);o=v.observable=m,m.beforeNext(function(){l.remove(d,y)})}}else o=new tQ([tx(f,p)])}else o=new tQ([el.y.of({data:{}})]),t=this.prepareContext(t);return c&&(o=tR(o,function(e){return a.localState.runResolvers({document:c,remoteResult:e,context:t,variables:r})})),o},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return tR(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=tA(o),s=a.length>0;if(n>=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new tV.cA({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:c.ready};return s&&"ignore"!==r.errorPolicy&&(u.errors=a,u.networkStatus=c.error),u},function(t){var r=(0,tV.MS)(t)?t:new tV.cA({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,o,a=this;void 0===r&&(r=c.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),u=this.getQuery(e),l=this.defaultOptions.watchQuery,f=t.fetchPolicy,h=void 0===f?l&&l.fetchPolicy||"cache-first":f,p=t.errorPolicy,d=void 0===p?l&&l.errorPolicy||"none":p,y=t.returnPartialData,v=t.notifyOnNetworkStatusChange,m=t.context,g=Object.assign({},t,{query:n,variables:s,fetchPolicy:h,errorPolicy:d,returnPartialData:void 0!==y&&y,notifyOnNetworkStatusChange:void 0!==v&&v,context:void 0===m?{}:m}),b=function(e){g.variables=e;var n=a.fetchQueryByPolicy(u,g,r);return"standby"!==g.fetchPolicy&&n.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),n},w=function(){return a.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){w(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(g.query).hasClientExports)i=new tQ(this.localState.addExportedVariables(g.query,g.variables,g.context).then(b).then(function(e){return e.sources})),o=!0;else{var _=b(g.variables);o=_.fromLink,i=new tQ(_.sources)}
1return i.promise.then(w,w),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,tP.X)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof t1&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=u(i,a,o)}u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,u=t.errorPolicy,l=t.returnPartialData,f=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:i,variables:o,networkStatus:r});var y=function(){return e.getDiff()},v=function(t,r){void 0===r&&(r=e.networkStatus||c.loading);var a=t.result;!1===globalThis.__DEV__||l||en(a,{})||tY(t.missing);var s=function(e){return el.y.of((0,h.pi)({data:e,loading:tL(r),networkStatus:r},t.complete?null:{partial:!0}))};return a&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:a},context:f,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===u&&r===c.refetch&&Array.isArray(t.missing)?s(void 0):s(a)},m="no-cache"===a?0:r===c.refetch&&"merge"!==s?1:2,g=function(){return n.getResultsFromLink(e,m,{query:i,variables:o,context:f,fetchPolicy:a,errorPolicy:u})},b=p&&"number"==typeof d&&d!==r&&tL(r);switch(a){default:case"cache-first":var w=y();if(w.complete)return{fromLink:!1,sources:[v(w,e.markReady())]};if(l||b)return{fromLink:!0,sources:[v(w),g()]};return{fromLink:!0,sources:[g()]};case"cache-and-network":var w=y();if(w.complete||l||b)return{fromLink:!0,sources:[v(w),g()]};return{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[v(y(),e.markReady())]};case"network-only":if(b)return{fromLink:!0,sources:[v(y()),g()]};return{fromLink:!0,sources:[g()]};case"no-cache":if(b)return{fromLink:!0,sources:[v(e.getDiff()),g()]};return{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new t1(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,h.pi)((0,h.pi)((0,h.pi)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function t4(e,t){return eA(e,t,t.variables&&{variables:eA((0,h.pi)((0,h.pi)({},e&&e.variables),t.variables))})}var t9=!1,t6=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,p._K)(15);var r=e.uri,n=e.credentials,i=e.headers,o=e.cache,a=e.documentTransform,s=e.ssrMode,u=void 0!==s&&s,c=e.ssrForceFetchDelay,l=void 0===c?0:c,h=e.connectToDevTools,d=void 0===h?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:h,y=e.queryDeduplication,v=void 0===y||y,m=e.defaultOptions,g=e.defaultContext,b=e.assumeImmutableResults,w=void 0===b?o.assumeImmutableResults:b,_=e.resolvers,k=e.typeDefs,O=e.fragmentMatcher,E=e.name,S=e.version,T=e.link;T||(T=r?new tj.u({uri:r,credentials:n,headers:i}):f.i.empty()),this.link=T,this.cache=o,this.disableNetworkFetches=u||l>0,this.queryDeduplication=v,this.defaultOptions=m||Object.create(null),this.typeDefs=k,l&&setTimeout(function(){return t.disableNetworkFetches=!1},l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=tD.i,this.localState=new t$({cache:o,client:this,resolvers:_,fragmentMatcher:O}),this.queryManager=new t5({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:g,documentTransform:a,queryDeduplication:v,ssrMode:u,clientAwareness:{name:E,version:S},localState:this.localState,assumeImmutableResults:w,onBroadcast:d?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),d&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}t9||!1===globalThis.__DEV__||(t9=!0,setTimeout(function(){if("undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&/^(https?|file):$/.test(window.location.protocol)){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&p.kG.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform}
1,enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=t4(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,h.pi)((0,h.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=t4(this.defaultOptions.query,e)),(0,p.kG)("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,h.pi)((0,h.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=t4(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return tx(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&p.kG.debug(17,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(t6.prototype.getMemoryInternals=ep.su);var re=r(2474),rt=r.t(re,2),rr=eI.aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__",rn=function(e){var t,r=e.client,n=e.children,i=((0,p.kG)("createContext"in rt,45),(t=re.createContext[rr])||(Object.defineProperty(re.createContext,rr,{value:t=re.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t),o=re.useContext(i),a=re.useMemo(function(){return(0,h.pi)((0,h.pi)({},o),{client:r||o.client})},[o,r]);return(0,p.kG)(a.client,46),re.createElement(i.Provider,{value:a},n)},ri=r(2884);f.i,f.i,f.i;var ro=class extends tI{},ra=(0,l.createContext)(null),rs={useFragment:e=>ru(e,["data","complete","missing"]),useQuery:e=>ru(e,["data","loading","networkStatus","called"]),useSuspenseQuery:e=>ru(e,["data","networkStatus"]),useReadQuery:e=>ru(e,["data","networkStatus"])};function ru(e,t){return(...r)=>{let n=e(...r),i={};for(let e of t)i[e]=n[e];return{...n,...function(e){let t=(0,l.useContext)(ra);if(!t)throw Error("useTransportValue must be used within a streaming-specific ApolloProvider");let r=t.useStaticValueRef(e),n=(0,l.useSyncExternalStore)(()=>()=>{},()=>e,()=>r.current);return n===e&&(r.current=void 0),n}(i)}}}var rc={pkg:"@apollo/client-react-streaming",client:"ApolloClient",cache:"InMemoryCache"};function rl(e){return e.queryManager}var rf=Symbol.for("apollo.hook.wrappers"),rh=class extends t6{static info=rc;constructor(e){if(super(e),!(this.cache instanceof ro))throw Error(`When using \`InMemoryCache\` in streaming SSR, you must use the \`${this.constructor.info.cache}\` export provided by \`"${this.constructor.info.pkg}"\`.`)}},rp=class extends rh{constructor(e){super(e),rl(this)[rf]=rs}simulatedStreamingQueries=new Map;transportedQueryOptions=new Map;identifyUniqueQuery(e){let t=this.documentTransform.transformDocument(e.query),{serverQuery:r}=rl(this).getDocumentInfo(t);if(!r)throw Error("could not identify unique query");let n=(0,eN.B)(e.variables||{}),i=[(0,eR.S)(r),n].toString();return{query:r,cacheKey:i,varJson:n}}onQueryStarted=({options:e,id:t})=>{let{query:r,varJson:n,cacheKey:i}=this.identifyUniqueQuery(e);if(this.transportedQueryOptions.set(t,e),!r)return;let o=(0,eR.S)(r),a=rl(this);if(!a.inFlightLinkObservables.peek(o,n)?.observable){let r,s;let u=()=>{a.fetchCancelFns.get(i)===s&&a.fetchCancelFns.delete(i),a.inFlightLinkObservables.remove(o,n),this.simulatedStreamingQueries.get(t)===r&&this.simulatedStreamingQueries.delete(t)},c=new Promise((n,i)=>{this.simulatedStreamingQueries.set(t,r={resolve:n,reject:i,options:e})});c.finally(u);let l=new el.y(e=>{c.then(t=>{e.next(t),e.complete()}).catch(t=>{e.error(t)})});a.inFlightLinkObservables.lookup(o,n).observable=l,a.fetchCancelFns.set(i,s=e=>{let{reject:r}=this.simulatedStreamingQueries.get(t)??{};r&&r(e),u()})}};onQueryProgress=e=>{let t=this.simulatedStreamingQueries.get(e.id);if("data"===e.type){t?.resolve?.({data:e.result.data});let r=this.transportedQueryOptions.get(e.id);r&&this.cache.writeQuery({query:r.query,data:e.result.data,variables:r.variables})}else"error"===e.type?(t&&(this.simulatedStreamingQueries.delete(e.id),ri.kG.debug("query failed on server, rerunning in browser:",t.options),this.rerunSimulatedQuery(t)),this.transportedQueryOptions.delete(e.id)):"c
1omplete"===e.type&&this.transportedQueryOptions.delete(e.id)};rerunSimulatedQueries=()=>{for(let[e,t]of this.simulatedStreamingQueries)this.simulatedStreamingQueries.delete(e),ri.kG.debug("streaming connection closed before server query could be fully transported, rerunning:",t.options),this.rerunSimulatedQuery(t)};rerunSimulatedQuery=e=>{let t=rl(this),r=t.generateQueryId();t.fetchQuery(r,{...e.options,query:t.transform(e.options.query),context:{...e.options.context,queryDeduplication:!1}}).finally(()=>t.stopQuery(r)).then(e.resolve,e.reject)}},rd=class extends rp{},ry=Symbol.for("ApolloClientSingleton");class rv{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}}class rm{constructor(e){this.generateIdentifier=e,this.kv=new rv}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}}class rg extends rm{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){"object"==typeof t?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}}function rb(e,t){Object.entries(e).forEach(([e,r])=>t(r,e))}function rw(e,t){return -1!==e.indexOf(t)}function r_(e,t){for(let r=0;r<e.length;r++){let n=e[r];if(t(n))return n}}class rk{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return function(e,t){let r=function(e){if("values"in Object)return Object.values(e);let t=[];for(let r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}(e);if("find"in r)return r.find(t);for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}}let rO=e=>Object.prototype.toString.call(e).slice(8,-1),rE=e=>void 0===e,rS=e=>null===e,rT=e=>"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype),rI=e=>rT(e)&&0===Object.keys(e).length,rx=e=>Array.isArray(e),rD=e=>"string"==typeof e,rj=e=>"number"==typeof e&&!isNaN(e),rN=e=>"boolean"==typeof e,rR=e=>e instanceof Map,rF=e=>e instanceof Set,rA=e=>"Symbol"===rO(e),rP=e=>"number"==typeof e&&isNaN(e),rq=e=>rN(e)||rS(e)||rE(e)||rj(e)||rD(e)||rA(e),rM=e=>e===1/0||e===-1/0,rC=e=>e.replace(/\./g,"\\."),rQ=e=>e.map(String).map(rC).join("."),rV=e=>{let t=[],r="";for(let n=0;n<e.length;n++){let i=e.charAt(n);if("\\"===i&&"."===e.charAt(n+1)){r+=".",n++;continue}if("."===i){t.push(r),r="";
1continue}r+=i}let n=r;return t.push(n),t};function rL(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}let rz=[rL(rE,"undefined",()=>null,()=>void 0),rL(e=>"bigint"==typeof e,"bigint",e=>e.toString(),e=>"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),rL(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),rL(e=>e instanceof Error,"Error",(e,t)=>{let r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r},(e,t)=>{let r=Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r}),rL(e=>e instanceof RegExp,"regexp",e=>""+e,e=>new RegExp(e.slice(1,e.lastIndexOf("/")),e.slice(e.lastIndexOf("/")+1))),rL(rF,"set",e=>[...e.values()],e=>new Set(e)),rL(rR,"map",e=>[...e.entries()],e=>new Map(e)),rL(e=>rP(e)||rM(e),"number",e=>rP(e)?"NaN":e>0?"Infinity":"-Infinity",Number),rL(e=>0===e&&1/e==-1/0,"number",()=>"-0",Number),rL(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function rG(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}let rB=rG((e,t)=>!!rA(e)&&!!t.symbolRegistry.getIdentifier(e),(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,r)=>{let n=r.symbolRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown symbol");return n}),rU=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),rW=rG(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let r=rU[t[1]];if(!r)throw Error("Trying to deserialize unknown typed array");return new r(e)});function rY(e,t){return!!e?.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}let rK=rG(rY,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return{...e};let n={};return r.forEach(t=>{n[t]=e[t]}),n},(e,t,r)=>{let n=r.classRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(n.prototype),e)}),rJ=rG((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,r)=>{let n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),rH=[rK,rB,rJ,rW],r$=(e,t)=>{let r=r_(rH,r=>r.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};let n=r_(rz,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation}},rZ={};rz.forEach(e=>{rZ[e.annotation]=e});let rX=(e,t,r)=>{if(rx(t))switch(t[0]){case"symbol":return rB.untransform(e,t,r);case"class":return rK.untransform(e,t,r);case"custom":return rJ.untransform(e,t,r);case"typed-array":return rW.untransform(e,t,r);default:throw Error("Unknown transformation: "+t)}else{let n=rZ[t];if(!n)throw Error("Unknown transformation: "+t);return n.untransform(e,r)}},r0=(e,t)=>{let r=e.keys();for(;t>0;)r.next(),t--;return r.next().value};function r1(e){if(rw(e,"__proto__"))throw Error("__proto__ is not allowed as a property");if(rw(e,"prototype"))throw Error("prototype is not allowed as a property");if(rw(e,"constructor"))throw Error("constructor is not allowed as a property")}let r2=(e,t)=>{r1(t);for(let r=0;r<t.length;r++){let n=t[r];if(rF(e))e=r0(e,+n);else if(rR(e)){let i=+n,o=0==+t[++r]?"key":"value",a=r0(e,i);switch(o){case"key":e=a;break;case"value":e=e.get(a)}}else e=e[n]}return e},r8=(e,t,r)=>{if(r1(t),0===t.length)return r(e);let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(rx(n))n=n[+r];else if(rT(n))n=n[r];else if(rF(n))n=r0(n,+r);else if(rR(n)){if(e===t.length-2)break;let i=+r,o=0==+t[++e]?"key":"value",a=r0(n,i);switch(o){case"key":n=a;break;case"value":n=n.get(a)}}}let i=t[t.length-1];if(rx(n)?n[+i]=r(n[+i]):rT(n)&&(n[i]=r(n[i])),rF(n)){let e=r0(n,+i),t=r(e);e!==t&&(n.delete(e),n.add(t))}if(rR(n)){let e=r0(n,+t[t.length-2]);switch(0==+i?"key":"value"){case"key":{let t=r(e);n.set(t,n.get(e)),t!==e&&n.delete(e);break}case"value":n.set(e,r(n.get(e)))}}return e},r3=(e,t)=>
1rT(e)||rx(e)||rR(e)||rF(e)||rY(e,t),r7=(e,t,r,n,i=[],o=[],a=new Map)=>{let s=rq(e);if(!s){!function(e,t,r){let n=r.get(e);n?n.push(t):r.set(e,[t])}(e,i,t);let r=a.get(e);if(r)return n?{transformedValue:null}:r}if(!r3(e,r)){let t=r$(e,r),n=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||a.set(e,n),n}if(rw(o,e))return{transformedValue:null};let u=r$(e,r),c=u?.value??e,l=rx(c)?[]:{},f={};rb(c,(s,u)=>{if("__proto__"===u||"constructor"===u||"prototype"===u)throw Error(`Detected property ${u}. This is a prototype pollution risk, please remove it from your object.`);let c=r7(s,t,r,n,[...i,u],[...o,e],a);l[u]=c.transformedValue,rx(c.annotations)?f[u]=c.annotations:rT(c.annotations)&&rb(c.annotations,(e,t)=>{f[rC(u)+"."+t]=e})});let h=rI(f)?{transformedValue:l,annotations:u?[u.type]:void 0}:{transformedValue:l,annotations:u?[u.type,f]:f};return s||a.set(e,h),h};function r5(e){return Object.prototype.toString.call(e).slice(8,-1)}function r4(e){return"Array"===r5(e)}s=function(e){return"Null"===r5(e)},u=function(e){return"Undefined"===r5(e)},e=>s(e)||u(e)||!1;class r9{constructor({dedupe:e=!1}={}){this.classRegistry=new rg,this.symbolRegistry=new rm(e=>e.description??""),this.customTransformerRegistry=new rk,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,r=r7(e,t,this,this.dedupe),n={json:r.transformedValue};r.annotations&&(n.meta={...n.meta,values:r.annotations});let i=function(e,t){let r;let n={};return(e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...o]=e;0===i.length?r=o.map(rQ):n[rQ(i)]=o.map(rQ)}),r)?rI(n)?[r]:[r,n]:rI(n)?void 0:n}(t,this.dedupe);return i&&(n.meta={...n.meta,referentialEqualities:i}),n}deserialize(e){let{json:t,meta:r}=e,n=function e(t,r={}){return r4(t)?t.map(t=>e(t,r)):!function(e){if("Object"!==r5(e))return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(t)?t:[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)].reduce((n,i)=>{if(r4(r.props)&&!r.props.includes(i))return n;let o=e(t[i],r);return!function(e,t,r,n,i){let o=({}).propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";"enumerable"===o&&(e[t]=r),i&&"nonenumerable"===o&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}(n,i,o,t,r.nonenumerable),n},{})}(t);if(r?.values){var i,o,a;i=n,o=r.values,a=this,function e(t,r,n=[]){if(!t)return;if(!rx(t)){rb(t,(t,i)=>e(t,r,[...n,...rV(i)]));return}let[i,o]=t;o&&rb(o,(t,i)=>{e(t,r,[...n,...rV(i)])}),r(i,n)}(o,(e,t)=>{i=r8(i,t,t=>rX(t,e,a))}),n=i}return r?.referentialEqualities&&(n=function(e,t){function r(t,r){let n=r2(e,rV(r));t.map(rV).forEach(t=>{e=r8(e,t,()=>n)})}if(rx(t)){let[n,i]=t;n.forEach(t=>{e=r8(e,rV(t),()=>e)}),i&&rb(i,r)}else rb(t,r);return e}(n,r.referentialEqualities)),n}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}}r9.defaultInstance=new r9,r9.serialize=r9.defaultInstance.serialize.bind(r9.defaultInstance),r9.deserialize=r9.defaultInstance.deserialize.bind(r9.defaultInstance),r9.stringify=r9.defaultInstance.stringify.bind(r9.defaultInstance),r9.parse=r9.defaultInstance.parse.bind(r9.defaultInstance),r9.registerClass=r9.defaultInstance.registerClass.bind(r9.defaultInstance),r9.registerSymbol=r9.defaultInstance.registerSymbol.bind(r9.defaultInstance),r9.registerCustom=r9.defaultInstance.registerCustom.bind(r9.defaultInstance),r9.allowErrorProps=r9.defaultInstance.allowErrorProps.bind(r9.defaultInstance),r9.serialize,r9.deserialize,r9.stringify,r9.parse,r9.registerClass,r9.registerCustom,r9.registerSymbol,r9.allowErrorProps;var r6=Symbol.for("ApolloSSRDataTransport"),ne={},nt=(r(6463),{pkg:"@apollo/experimental-nextjs-app-support/ssr",client:"NextSSRApolloClient",cache:"NextSSRInMemoryCache"}),nr=function(e){let t=({makeClient:r,children:n,...i})=>{let o=(0,l.useRef)();if(o.current=window[ry]??=r(),!(o.current instanceof rd))throw Error(`When using \`ApolloClient\` in streaming SSR, you must use the \`${t.info.client}\` export provided by \`"${t.info.pkg}"\`.`);return l.createElement(rn,{client:o.current},l.createElement(e,{onQueryEvent:e=>"started"===e.type?o.current.onQueryStarted(e):o.current.onQueryProgress(e),rerunSimulatedQueries:o.current.rerunSimulatedQueries,registerDispatchRequestStarted:o.current.wat
1chQueryQueue?.register,...i},n))};return t.info=rc,t}(function({children:e,onQueryEvent:t,rerunSimulatedQueries:r}){let n=(0,l.useRef)({});(function({onQueryEvent:e,onRehydrate:t}){!function(e,t){let r=window[e]||[];Array.isArray(r)&&(window[e]={push:(...e)=>{for(let r of e)t(r)}},window[e].push(...r))}(r6,r=>{let n=r9.deserialize(r);for(let r of(ri.kG.debug("received data from the server:",n),t(n.rehydrate),n.events))e(r)})})({onQueryEvent:t,onRehydrate(e){Object.assign(n.current,e)}}),(0,l.useEffect)(()=>{if("complete"!==document.readyState)return window.addEventListener("load",r,{once:!0}),()=>window.removeEventListener("load",r);r()},[r]);let i=(0,l.useCallback)(function(e){let t=(0,l.useId)(),r=n.current,i=(0,l.useRef)(ne);return i.current===ne&&(r&&t in r?(i.current=r[t],delete r[t]):i.current=e),i},[]);return l.createElement(ra.Provider,{value:(0,l.useMemo)(()=>({useStaticValueRef:i}),[i])},e)});nr.info=nt;var nn=class extends rd{static info=nt}},2997:function(e,t,r){function n(){}r.d(t,{e:function(){return i}});class i{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let 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)}}},3754:function(e,t,r){function n(){}r.d(t,{k:function(){return s}});let i="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},o="undefined"!=typeof WeakMap?WeakMap:Map,a="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:n,unregister:n}};class s{constructor(e=1/0,t=n){this.max=e,this.dispose=t,this.map=new o,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new i(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new a(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},8350:function(e,t,r){var n,i;r.d(t,{h:function(){return n}}),(i=n||(n={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="Str
1ingValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"},7122:function(e,t,r){r.d(t,{$_:function(){return c},Vn:function(){return l}});let n={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:[],FloatValue:[],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"]},i=new Set(Object.keys(n));function o(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&i.has(t)}(a=s||(s={})).QUERY="query",a.MUTATION="mutation",a.SUBSCRIPTION="subscription";var a,s,u=r(8350);let c=Object.freeze({});function l(e,t,r=n){let i,a,s;let l=new Map;for(let e of Object.values(u.h))l.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let f=Array.isArray(e),h=[e],p=-1,d=[],y=e,v=[],m=[];do{var g,b,w;let e;let n=++p===h.length,u=n&&0!==d.length;if(n){if(a=0===m.length?void 0:v[v.length-1],y=s,s=m.pop(),u){if(f){y=y.slice();let e=0;for(let[t,r]of d){let n=t-e;null===r?(y.splice(n,1),e++):y[n]=r}}else for(let[e,t]of(y=Object.defineProperties({},Object.getOwnPropertyDescriptors(y)),d))y[e]=t}p=i.index,h=i.keys,d=i.edits,f=i.inArray,i=i.prev}else if(s){if(null==(y=s[a=f?p:h[p]]))continue;v.push(a)}if(!Array.isArray(y)){o(y)||function(e,t){if(!e)throw Error(t)}(!1,`Invalid AST Node: ${function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t))return function(t,r){if(0===t.length)return"[]";if(r.length>2)return"[Array]";let n=Math.min(10,t.length),i=t.length-n,o=[];for(let i=0;i<n;++i)o.push(e(t[i],r));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,n);return function(t,r){let n=Object.entries(t);return 0===n.length?"{}":r.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]":"{ "+n.map(([t,n])=>t+": "+e(n,r)).join(", ")+" }"}(t,n)}(t,r);default:return String(t)}}(y,[])}.`);let r=n?null===(g=l.get(y.kind))||void 0===g?void 0:g.leave:null===(b=l.get(y.kind))||void 0===b?void 0:b.enter;if((e=null==r?void 0:r.call(t,y,a,s,v,m))===c)break;if(!1===e){if(!n){v.pop();continue}}
1else if(void 0!==e&&(d.push([a,e]),!n)){if(o(e))y=e;else{v.pop();continue}}}void 0===e&&u&&d.push([a,y]),n?v.pop():(i={inArray:f,index:p,keys:h,edits:d,prev:i},h=(f=Array.isArray(y))?y:null!==(w=r[y.kind])&&void 0!==w?w:[],p=-1,d=[],s&&m.push(s),s=y)}while(void 0!==i);return 0!==d.length?d[d.length-1][1]:e}},2884:function(e,t,r){r.d(t,{ej:function(){return u},kG:function(){return c}});var n,i=r(1735),o="Invariant Violation",a=Object.setPrototypeOf,s=void 0===a?function(e,t){return e.__proto__=t,e}:a,u=function(e){function t(r){void 0===r&&(r=o);var n=e.call(this,"number"==typeof r?o+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=o,s(n,t.prototype),n}return(0,i.ZT)(t,e),t}(Error);function c(e,t){if(!e)throw new u(t)}var l=["debug","log","warn","error","silent"],f=l.indexOf("log");function h(e){return function(){if(l.indexOf(e)>=f)return(console[e]||console.log).apply(console,arguments)}}(n=c||(c={})).debug=h("debug"),n.log=h("log"),n.warn=h("warn"),n.error=h("error")},9670:function(e,t,r){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{y:function(){return k}});var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&!!Symbol[e]},u=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var c=u("iterator"),l=u("observable"),f=u("species");function h(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function p(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:k}function d(e){d.log?d.log(e):setTimeout(function(){throw e})}function y(e){Promise.resolve().then(function(){try{e()}catch(e){d(e)}})}function v(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var r=h(t,"unsubscribe");r&&r.call(t)}}catch(e){d(e)}}}function m(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function g(e,t,r){e._state="running";var n=e._observer;try{var i=h(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(m(e),i)i.call(n,r);else throw r;break;case"complete":m(e),i&&i.call(n)}}catch(e){d(e)}"closed"===e._state?v(e):"running"===e._state&&(e._state="ready")}function b(e,t,r){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:r});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],y(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(g(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)});return}g(e,t,r)}}var w=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new _(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(m(this),v(this))},o(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),_=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){b(this._subscription,"next",e)},t.error=function(e){b(this._subscription,"error",e)},t.complete=function(){b(this._subscription,"complete")},o(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),k=function(){function e(t){if(!(this instanceof e))throw 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 w(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e){n(TypeError(e+" is not a function"));return}function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(p(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(p(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=p(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=p(this);return new i(function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]
1))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=p(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[l]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var i=h(t,l);if(i){var o=i.call(t);if(Object(o)!==o)throw TypeError(o+" is not an object");return o instanceof k&&o.constructor===r?o:new r(function(e){return o.subscribe(e)})}if(s("iterator")&&(i=h(t,c)))return new r(function(e){y(function(){if(!e.closed){for(var r,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,void 0)}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(r=o()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){y(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){y(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},o(e,null,[{key:f,get:function(){return this}}]),e}();a()&&Object.defineProperty(k,Symbol("extensions"),{value:{symbol:l,hostReportError:d},configurable:!0})}}]);
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.