PageSourceSearch

https://ballarat-events-begonia-prod.vercel.app/_next/static/chunks/ac04eeea0709e83a.js

js ballarat-events-begonia-prod.vercel.app collected 2026-10-03 06:09:52 UTC 137,286 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63191,e=>{e.v(JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}'))},49886,(e,t,r)=>{"use strict";function n(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function i(e,t,r,n){let i=n&&Object.keys(n).length>0?new URL(Object.values(n)[0],e):new URL(e);return t&&r&&t.forEach(e=>{r[e]&&i.searchParams.set(e,r[e])}),i.toString()}function o(e,t,r,n,o){var a;if(!t)return"<".concat(e,"></").concat(e,">");let s=(null==(a=t.src)?void 0:a.url)?Object.assign(Object.assign({},t),{src:i(t.src.url,t.src.params,n,o)}):t,u=Object.keys(Object.assign(Object.assign({},s),r)).reduce((e,t)=>{let n=null==r?void 0:r[t],i=s[t],o=null!=n?n:i,a=!0===o?t:"".concat(t,'="').concat(o,'"');return o?e+" ".concat(a):e},"");return"<".concat(e).concat(u,"></").concat(e,">")}Object.defineProperty(r,"__esModule",{value:!0}),r.formatData=r.createHtml=r.formatUrl=void 0,r.formatUrl=i,r.createHtml=o,r.formatData=function(e,t){var r,a,s,u,c;let l=n(t,null==(r=e.scripts)?void 0:r.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),f=n(t,null==(s=null==(a=e.html)?void 0:a.attributes.src)?void 0:s.params),h=n(t,[null==(c=null==(u=e.html)?void 0:u.attributes.src)?void 0:c.slugParam]),p=n(t,[...Object.keys(l),...Object.keys(f),...Object.keys(h)],!0);return Object.assign(Object.assign({},e),{html:e.html?o(e.html.element,e.html.attributes,p,f,h):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:i(e.url,e.params,l)})):null})}},7182,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=void 0;let o=i(e.r(63191)),a=e.r(49886);r.GoogleAnalytics=e=>{var t=n(e,[]);return(0,a.formatData)(o.default,t)}},49031,e=>{e.v(JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","region"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}'))},19267,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleMapsEmbed=void 0;let o=i(e.r(49031)),a=e.r(49886);r.GoogleMapsEmbed=e=>{var t=n(e,[]);return(0,a.formatData)(o.default,t)}},17311,e=>{e.v(JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}'))},52170,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}
1,i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=void 0;let o=i(e.r(17311)),a=e.r(49886);r.YouTubeEmbed=e=>{var t=n(e,[]);return(0,a.formatData)(o.default,t)}},83602,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=r.GoogleMapsEmbed=r.GoogleAnalytics=void 0;var n=e.r(7182);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return n.GoogleAnalytics}});var i=e.r(19267);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i.GoogleMapsEmbed}});var o=e.r(52170);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return o.YouTubeEmbed}})},62407,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.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]})};let n=e.r(91398),i=e.r(91788)},36194,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{apiKey:t,...r}=e,n={...r,key:t},{html:s}=(0,o.GoogleMapsEmbed)(n);return(0,i.jsx)(a.default,{height:n.height||null,width:n.width||null,html:s,dataNtpc:"GoogleMapsEmbed"})};let i=e.r(91398),o=e.r(83602),a=n(e.r(62407))},66162,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{html:t,scripts:r,stylesheets:n}=(0,a.YouTubeEmbed)(e);return(0,i.jsx)(s.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,i.jsx)(o.default,{src:e.url,strategy:u[e.strategy],stylesheets:n},e.url))})};let i=e.r(91398),o=n(e.r(94182)),a=e.r(83602),s=n(e.r(62407)),u={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},84356,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGTMEvent=void 0,r.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r="https://www.googletagmanager.com/gtm.js",dataLayerName:n="dataLayer",auth:u,preview:c,dataLayer:l,nonce:f}=e;s=n;let h="dataLayer"!==n?"&l=".concat(n):"";return(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.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(l?"w[l].push(".concat(JSON.stringify(l),")"):"","\n      })(window,'").concat(n,"');")},nonce:f}),(0,i.jsx)(a.default,{id:"_next-gtm","data-ntpc":"GTM",src:"".concat(r,"?id=").concat(t).concat(h).concat(u?"&gtm_auth=".concat(u):"").concat(c?"&gtm_preview=".concat(c,"&gtm_cookies_win=x"):""),nonce:f})]})};let i=e.r(91398),o=e.r(91788),a=n(e.r(94182)),s="dataLayer";r.sendGTMEvent=(e,t)=>{let r=t||s;window[r]=window[r]||[],window[r].push(e)}},43429,(e,t,r)=>{"use strict";let n;var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:i="dataLayer",nonce:u}=e;return void 0===n&&(n=i),(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(i,"'] = window['").concat(i,"'] || [];\n          function gtag(){window['").concat(i,"'].push(arguments);}\n          gtag('js', new Date());\n\n          gtag('config', '").concat(t,"' ").concat(r?",{ 'debug_mode': true }":"",");")},nonce:u}),(0,o.jsx)(s.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?i
1d=".concat(t),nonce:u})]})},r.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(void 0===n)return void console.warn("@next/third-parties: GA has not been initialized");window[n]?window[n].push(arguments):console.warn("@next/third-parties: GA dataLayer ".concat(n," does not exist"))};let o=e.r(91398),a=e.r(91788),s=i(e.r(94182))},35447,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGAEvent=r.GoogleAnalytics=r.sendGTMEvent=r.GoogleTagManager=r.YouTubeEmbed=r.GoogleMapsEmbed=void 0;var i=e.r(36194);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n(i).default}});var o=e.r(66162);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return n(o).default}});var a=e.r(84356);Object.defineProperty(r,"GoogleTagManager",{enumerable:!0,get:function(){return a.GoogleTagManager}}),Object.defineProperty(r,"sendGTMEvent",{enumerable:!0,get:function(){return a.sendGTMEvent}});var s=e.r(43429);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return s.GoogleAnalytics}}),Object.defineProperty(r,"sendGAEvent",{enumerable:!0,get:function(){return s.sendGAEvent}})},16027,e=>{"use strict";e.s(["default",()=>rX],16027),e.i(50461);var t,r,n,i,o=e.i(91398);e.i(68681);var a=e.i(84849),s=e.i(91788),u=e.i(21805),c=function(e){var t=e.client,r=e.children,n=(0,u.getApolloContext)();return s.createElement(n.Consumer,null,function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?(0,a.invariant)(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):(0,a.invariant)(e.client,26),s.createElement(n.Provider,{value:e},r)})},l=e.i(3828),f=e.i(35447);e.i(17404);var h=e.i(70833),p=e.i(98365),d=e.i(67974),v=e.i(76025),y=e.i(14627);function m(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 g(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 b(e,t,r){return t&&g(e.prototype,t),r&&g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var _=function(){return"function"==typeof Symbol},w=function(e){return _()&&!!Symbol[e]},O=function(e){return w(e)?Symbol[e]:"@@"+e};_()&&!w("observable")&&(Symbol.observable=Symbol("observable"));var E=O("iterator"),k=O("observable"),S=O("species");function x(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function D(e){var t=e.constructor;return void 0!==t&&null===(t=t[S])&&(t=void 0),void 0!==t?t:Q}function j(e){j.log?j.log(e):setTimeout(function(){throw e})}function q(e){Promise.resolve().then(function(){try{e()}catch(e){j(e)}})}function P(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=x(t,"unsubscribe");r&&r.call(t)}}catch(e){j(e)}}function T(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function M(e,t,r){e._state="running";var n=e._observer;try{var i=x(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(T(e),i)i.call(n,r);else throw r;break;case"complete":T(e),i&&i.call(n)}}catch(e){j(e)}"closed"===e._state?P(e):"running"===e._state&&(e._state="ready")}function F(e,t,r){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:r});if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],q(function(){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(M(e,t[r].type,t[r].value),"closed"!==e._state);++r);}});return}M(e,t,r)}}var I=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new R(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&&(T(this),P(this))},b(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),R=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){F(this._subscription,"next",e)},t.error=function(e){F(this._subscription,"error",e)},t.complete=function(){F(this._subscription,"complete")},b(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),Q=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 I(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e)return void n(TypeError(e+" is not a function"));function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(D(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(D(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=D(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=D(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=D(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[k]=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 n=x(t,k);if(n){var i=n.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof Q&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(w("iterator")&&(n=x(t,E)))return new r(function(e){q(function(){if(!e.closed){for(var r,i=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 m(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 m(e,t)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.call(t));!(r=i()).done;){var o=r.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){q(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){q(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},b(e,null,[{key:S,get:function(){return this}}]),e}();function C(e){return null!==e&&"object"==typeof e}function V(e,t){var r=t,n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new a.InvariantError("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new a.InvariantError(41);"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&(__DEV__?(0,a.invariant)(1===n.length,"Found ".concat(n.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,a.invariant)(1===n.length,42),r=n[0].name.value),(0,y.__assign)((0,y.__assign)({},e),{definitions:(0,y.__spreadArray)([{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 N(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=t&&t[e.name.value];return __DEV__?(0,a.invariant)(r,"No fragment named ".concat(e.name.value,".")):(0,a.invariant)(r,43),r;default:return null}}function L(e){return{__ref:String(e)}}function z(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function W(e,t,r,n){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 i={};r.fields.map(function(e){return W(i,e.name,e.value,n)}),e[t.value]=i}else if("Variable"===r.kind){var o=(n||{})[r.name.value];e[t.value]=o}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return W(r,t,e,n),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw __DEV__?new a.InvariantError('The inline argument "'.concat(t.value,'" of kind "').concat(r.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new a.InvariantError(52)}_()&&Object.defineProperty(Q,Symbol("extensions"),{value:{symbol:k,hostReportError:j},configurable:!0});var B=["connection","include","skip","client","rest","export"],G=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key)if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;else{var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};
1return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(U(i),")")}var o=e;if(t){var a=U(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===B.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(U(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=U;return U=e,t}}),U=function(e){return JSON.stringify(e,J)};function J(e,t){return C(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,r){return e[r]=t[r],e},{})),t}function K(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return W(r,e.name,e.value,t)}),r}return null}function Y(e){return e.alias?e.alias.value:e.name.value}function H(e,t,r){if("string"==typeof e.__typename)return e.__typename;for(var n=0,i=t.selections;n<i.length;n++){var o=i[n];if($(o)){if("__typename"===o.name.value)return e[Y(o)]}else{var a=H(e,N(o,r).selectionSet,r);if("string"==typeof a)return a}}}function $(e){return"Field"===e.kind}function X(e){return"InlineFragment"===e.kind}function Z(e){__DEV__?(0,a.invariant)(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,a.invariant)(e&&"Document"===e.kind,44);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new a.InvariantError('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new a.InvariantError(45);return e});return __DEV__?(0,a.invariant)(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):(0,a.invariant)(t.length<=1,46),e}function ee(e){return Z(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function et(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function er(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function en(e){var t=ee(e);return __DEV__?(0,a.invariant)(t&&"query"===t.operation,"Must contain a query definition."):(0,a.invariant)(t&&"query"===t.operation,47),t}function ei(e){Z(e);for(var t,r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new a.InvariantError("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new a.InvariantError(51)}function eo(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&W(t,e.variable.name,e.defaultValue)}),t}function ea(e,t){return t?t(e):Q.of()}function es(e){return"function"==typeof e?new el(e):e}function eu(e){return e.request.length<=1}var ec=function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}return(0,y.__extends)(t,e),t}(Error),el=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return Q.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(es).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=es(r),o=es(n||new e(ea));return new e(eu(i)&&eu(o)?function(e){return t(e)?i.request(e)||Q.of():o.request(e)||Q.of()}:function(e,r){return t(e)?i.request(e,r)||Q.of():o.request(e,r)||Q.of()})},e.execute=function(e,t){var r,n,i,o,s;return e.request((i=t.context,(n={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(0>t.indexOf(i))throw __DEV__?new a.InvariantError("illegal argument: ".concat(i)):new a.InvariantError(24)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?et(n.query)||void 0:""),o=n,s=(0,y.__assign)({},i),Object.defineProperty(o,"setContext",{enumerable:!1,value:function(e){s="function"==typeof e?(0,y.__assign)((0,y.__assign)({},s),e(s)):(0,y.__assign)((0,y.__assign)({},s),e)}}),Object.defineProperty(o,"getContext",{enumerable:!1,value:function(){return(0,y.__assign)({},s)}}),o))||Q.of()},e.concat=function(t,r){var n=es(t);if(eu(n))return __DEV__&&a.invariant.warn(new ec("You are calling concat on a terminating link, which will have no effect",n)),n;var i=es(r);return new e(eu(i)?function(e){return n.request(e,function(e){return i.request(e)||Q.of()})||Q.of()}:function(e,t){return n.request(e,function(e){return i.request(e,t)||Q.of()})||Q.of()})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(ea)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new a.InvariantError("request is not implemented"):new a.InvariantError(19)},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}(),ef=el.execute,eh=e.i(17405),ep=e.i(28262),ed=e.i(42341),ev=e.i(6699);let ey=Object.freeze({});function em(e,t){let r,n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ed.QueryDocumentKeys,a=new Map;for(let e of Object.values(ev.Kind))a.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 s=Array.isArray(e),u=[e],c=-1,l=[],f=e,h=[],p=[];do{var d,v,y;let e,m=++c===u.length,g=m&&0!==l.length;if(m){if(n=0===p.length?void 0:h[h.length-1],f=i,i=p.pop(),g)if(s){f=f.slice();let e=0;for(let[t,r]of l){let n=t-e;null===r?(f.splice(n,1),e++):f[n]=r}}else for(let[e,t]of(f=Object.defineProperties({},Object.getOwnPropertyDescriptors(f)),l))f[e]=t;c=r.index,u=r.keys,l=r.edits,s=r.inArray,r=r.prev}else if(i){if(null==(f=i[n=s?c:u[c]]))continue;h.push(n)}if(!Array.isArray(f)){(0,ed.isNode)(f)||(0,eh.devAssert)(!1,"Invalid AST Node: ".concat((0,ep.inspect)(f),"."));let r=m?null==(d=a.get(f.kind))?void 0:d.leave:null==(v=a.get(f.kind))?void 0:v.enter;if((e=null==r?void 0:r.call(t,f,n,i,h,p))===ey)break;if(!1===e){if(!m){h.pop();continue}}else if(void 0!==e&&(l.push([n,e]),!m))if((0,ed.isNode)(e))f=e;else{h.pop();continue}}void 0===e&&g&&l.push([n,f]),m?h.pop():(r={inArray:s,index:c,keys:u,edits:l,prev:r},u=(s=Array.isArray(f))?f:null!=(y=o[f.kind])?y:[],c=-1,l=[],i&&p.push(i),i=f)}while(void 0!==r)return 0!==l.length?l[l.length-1][1]:e}var eg=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=__DEV__?new a.InvariantError("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new a.InvariantError(21);throw n.parseError=e,n}return r},eb=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")},e_=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},ew=Object.prototype.hasOwnProperty,eO=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new a.InvariantError("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "):new a.InvariantError(20)},eE=e.i(67757);let ek=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function eS(e){return ex[e.charCodeAt(0)]}let ex=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function eD(e){return em(e,ej)}
1let ej={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eq(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=eT("(",eq(e.variableDefinitions,", "),")"),r=eq([e.operation,eq([e.name,t]),eq(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:e=>{let{variable:t,type:r,defaultValue:n,directives:i}=e;return t+": "+r+eT(" = ",n)+eT(" ",eq(i," "))}},SelectionSet:{leave:e=>{let{selections:t}=e;return eP(t)}},Field:{leave(e){let{alias:t,name:r,arguments:n,directives:i,selectionSet:o}=e,a=eT("",t,": ")+r,s=a+eT("(",eq(n,", "),")");return s.length>80&&(s=a+eT("(\n",eM(eq(n,"\n")),"\n)")),eq([s,eq(i," "),o]," ")}},Argument:{leave:e=>{let{name:t,value:r}=e;return t+": "+r}},FragmentSpread:{leave:e=>{let{name:t,directives:r}=e;return"..."+t+eT(" ",eq(r," "))}},InlineFragment:{leave:e=>{let{typeCondition:t,directives:r,selectionSet:n}=e;return eq(["...",eT("on ",t),eq(r," "),n]," ")}},FragmentDefinition:{leave:e=>{let{name:t,typeCondition:r,variableDefinitions:n,directives:i,selectionSet:o}=e;return"fragment ".concat(t).concat(eT("(",eq(n,", "),")")," ")+"on ".concat(r," ").concat(eT("",eq(i," ")," "))+o}},IntValue:{leave:e=>{let{value:t}=e;return t}},FloatValue:{leave:e=>{let{value:t}=e;return t}},StringValue:{leave:e=>{let{value:t,block:r}=e;return r?(0,eE.printBlockString)(t):'"'.concat(t.replace(ek,eS),'"')}},BooleanValue:{leave:e=>{let{value:t}=e;return t?"true":"false"}},NullValue:{leave:()=>"null"},EnumValue:{leave:e=>{let{value:t}=e;return t}},ListValue:{leave:e=>{let{values:t}=e;return"["+eq(t,", ")+"]"}},ObjectValue:{leave:e=>{let{fields:t}=e;return"{"+eq(t,", ")+"}"}},ObjectField:{leave:e=>{let{name:t,value:r}=e;return t+": "+r}},Directive:{leave:e=>{let{name:t,arguments:r}=e;return"@"+t+eT("(",eq(r,", "),")")}},NamedType:{leave:e=>{let{name:t}=e;return t}},ListType:{leave:e=>{let{type:t}=e;return"["+t+"]"}},NonNullType:{leave:e=>{let{type:t}=e;return t+"!"}},SchemaDefinition:{leave:e=>{let{description:t,directives:r,operationTypes:n}=e;return eT("",t,"\n")+eq(["schema",eq(r," "),eP(n)]," ")}},OperationTypeDefinition:{leave:e=>{let{operation:t,type:r}=e;return t+": "+r}},ScalarTypeDefinition:{leave:e=>{let{description:t,name:r,directives:n}=e;return eT("",t,"\n")+eq(["scalar",r,eq(n," ")]," ")}},ObjectTypeDefinition:{leave:e=>{let{description:t,name:r,interfaces:n,directives:i,fields:o}=e;return eT("",t,"\n")+eq(["type",r,eT("implements ",eq(n," & ")),eq(i," "),eP(o)]," ")}},FieldDefinition:{leave:e=>{let{description:t,name:r,arguments:n,type:i,directives:o}=e;return eT("",t,"\n")+r+(eF(n)?eT("(\n",eM(eq(n,"\n")),"\n)"):eT("(",eq(n,", "),")"))+": "+i+eT(" ",eq(o," "))}},InputValueDefinition:{leave:e=>{let{description:t,name:r,type:n,defaultValue:i,directives:o}=e;return eT("",t,"\n")+eq([r+": "+n,eT("= ",i),eq(o," ")]," ")}},InterfaceTypeDefinition:{leave:e=>{let{description:t,name:r,interfaces:n,directives:i,fields:o}=e;return eT("",t,"\n")+eq(["interface",r,eT("implements ",eq(n," & ")),eq(i," "),eP(o)]," ")}},UnionTypeDefinition:{leave:e=>{let{description:t,name:r,directives:n,types:i}=e;return eT("",t,"\n")+eq(["union",r,eq(n," "),eT("= ",eq(i," | "))]," ")}},EnumTypeDefinition:{leave:e=>{let{description:t,name:r,directives:n,values:i}=e;return eT("",t,"\n")+eq(["enum",r,eq(n," "),eP(i)]," ")}},EnumValueDefinition:{leave:e=>{let{description:t,name:r,directives:n}=e;return eT("",t,"\n")+eq([r,eq(n," ")]," ")}},InputObjectTypeDefinition:{leave:e=>{let{description:t,name:r,directives:n,fields:i}=e;return eT("",t,"\n")+eq(["input",r,eq(n," "),eP(i)]," ")}},DirectiveDefinition:{leave:e=>{let{description:t,name:r,arguments:n,repeatable:i,locations:o}=e;return eT("",t,"\n")+"directive @"+r+(eF(n)?eT("(\n",eM(eq(n,"\n")),"\n)"):eT("(",eq(n,", "),")"))+(i?" repeatable":"")+" on "+eq(o," | ")}},SchemaExtension:{leave:e=>{let{directives:t,operationTypes:r}=e;return eq(["extend schema",eq(t," "),eP(r)]," ")}},ScalarTypeExtension:{leave:e=>{let{name:t,directives:r}=e;return eq(["extend scalar",t,eq(r," ")]," ")}},ObjectTypeExtension:{leave:e=>{let{name:t,interfaces:r,directives:n,fields:i}=e;return eq(["extend type",t,eT("implements ",eq(r," & ")),eq(n," "),eP(i)]," ")}},InterfaceTypeExtension:{leave:e=>{let{name:t,interfaces:r,directives:n,fields:i}=e;return eq(["extend interface",t,eT("implements ",eq(r," & ")),eq(n," "),eP(i)]," ")}},UnionTypeExtension:{leave:e=>{let{name:t,directives:r,types:n}=e;return eq(["extend union",t,eq(r," "),eT("= ",eq(n," | "))]," ")}},EnumTypeExtension:{leave:e=>{let{name:t,directives:r,values:n}=e;return eq(["extend enum",t,eq(r," "),eP(n)]," ")}},InputObjectTypeExtension:{leave:e=>{let{name:t,directives:r,fields:n}=e;return eq(["extend input",t,eq(r," "),eP(n)]," ")}}};function eq(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!=(t=null==e?void 0:e.filter(e=>e).join(r))?t:""}function eP(e){return eT("{\n",eM(eq(e,"\n")),"\n}")}function eT(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+r:""}function eM(e){return eT("  ",e.replace(/\n/g,"\n  "))}function eF(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var eI={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},eR=function(e,t){return t(e)},eQ=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}};function eC(e){return new Q(function(t){t.error(e)})}var eV=e.i(22001),eA=(0,eV.maybe)(function(){return fetch}),eN=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,o=void 0===i?eR:i,a=e.includeExtensions,s=e.useGETForQueries,u=e.includeUnusedVariables,c=void 0!==u&&u,l=(0,y.__rest)(e,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&eO(n||eA);var f={http:{includeExtensions:a},options:l.fetchOptions,credentials:l.credentials,headers:l.headers};return new el(function(e){var t,i=eb(e,r),a=e.getContext(),u={};if(a.clientAwareness){var l=a.clientAwareness,h=l.name,p=l.version;h&&(u["apollographql-client-name"]=h),p&&(u["apollographql-client-version"]=p)}var d=(0,y.__assign)((0,y.__assign)({},u),a.headers),v=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},o={};r.forEach(function(e){i=(0,y.__assign)((0,y.__assign)((0,y.__assign)({},i),e.options),{headers:(0,y.__assign)((0,y.__assign)({},i.headers),function(e){if(e){var t=Object.create(null);
1return Object.keys(Object(e)).forEach(function(r){t[r.toLowerCase()]=e[r]}),t}return e}(e.headers))}),e.credentials&&(i.credentials=e.credentials),o=(0,y.__assign)((0,y.__assign)({},o),e.http)});var a=e.operationName,s=e.extensions,u=e.variables,c=e.query,l={operationName:a,variables:u};return o.includeExtensions&&(l.extensions=s),o.includeQuery&&(l.query=t(c,eD)),{options:i,body:l}}(e,o,eI,f,{http:a.http,options:a.fetchOptions,credentials:a.credentials,headers:d}),m=v.options,g=v.body;if(g.variables&&!c){var b=new Set(Object.keys(g.variables));em(e.query,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&b.delete(e.name.value)}}),b.size&&(g.variables=(0,y.__assign)({},g.variables),b.forEach(function(e){delete g.variables[e]}))}if(!m.signal){var _=eQ(),w=_.controller,O=_.signal;(t=w)&&(m.signal=O)}if(s&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(m.method="GET"),"GET"===m.method){var E=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=eg(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=eg(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+a}}(i,g),k=E.newURI,S=E.parseError;if(S)return eC(S);i=k}else try{m.body=eg(g,"Payload")}catch(e){return eC(e)}return new Q(function(r){return(n||(0,eV.maybe)(function(){return fetch})||eA)(i,m).then(function(t){return e.setContext({response:t}),t}).then(function(t){return t.text().then(function(e){try{return JSON.parse(e)}catch(r){throw r.name="ServerParseError",r.response=t,r.statusCode=t.status,r.bodyText=e,r}}).then(function(r){return t.status>=300&&e_(t,r,"Response not successful: Received status code ".concat(t.status)),Array.isArray(r)||ew.call(r,"data")||ew.call(r,"errors")||e_(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})}).then(function(e){return r.next(e),r.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))}),function(){t&&t.abort()}})})},eL=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,eN(t).request)||this;return r.options=t,r}return(0,y.__extends)(t,e),t}(el),ez=e.i(91547),eW=function(){return Object.create(null)},eB=Array.prototype,eG=eB.forEach,eU=eB.slice,eJ=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=eW),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return eG.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(eU.call(e)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}(),eK=e.i(23289),eY=Object.prototype.hasOwnProperty;function eH(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e$(e)}function e$(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new eZ,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var eX=function(e,t,r){return this.merge(e[r],t[r])},eZ=function(){function e(e){void 0===e&&(e=eX),this.reconciler=e,this.isObject=C,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return C(t)&&C(e)?(Object.keys(t).forEach(function(i){if(eY.call(e,i)){var o=e[i];if(t[i]!==o){var a=r.reconciler.apply(r,(0,y.__spreadArray)([e,t,i],n,!1));a!==o&&((e=r.shallowCopyForMerge(e))[i]=a)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return C(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,y.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function e0(e,t){var r,n,i=e.directives;return!i||!i.length||(n=[],(r=i)&&r.length&&r.forEach(function(e){if("skip"===(t=e.name.value)||"include"===t){var t,r=e.arguments,i=e.name.value;__DEV__?(0,a.invariant)(r&&1===r.length,"Incorrect number of arguments for the @".concat(i," directive.")):(0,a.invariant)(r&&1===r.length,38);var o=r[0];__DEV__?(0,a.invariant)(o.name&&"if"===o.name.value,"Invalid argument for the @".concat(i," directive.")):(0,a.invariant)(o.name&&"if"===o.name.value,39);var s=o.value;__DEV__?(0,a.invariant)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):(0,a.invariant)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),40),n.push({directive:e,ifArgument:o})}}),n).every(function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?(i=t&&t[n.value.name.value],__DEV__?(0,a.invariant)(void 0!==i,"Invalid variable referenced in @".concat(r.name.value," directive.")):(0,a.invariant)(void 0!==i,37)):i=n.value.value,"skip"===r.name.value?!i:i})}function e1(e,t){var r;return(r=[],em(t,{Directive:function(e){r.push(e.name.value)}}),r).some(function(t){return e.indexOf(t)>-1})}var e2=e.i(27371),e9=Object.prototype.hasOwnProperty;function e8(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=void 0!==n?{id:n}:void 0!==i?{_id:i}:void 0),void 0===n&&(n=i),void 0!==n))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var e4={dataIdFromObject:e8,addTypename:!0,resultCaching:!0,canonizeResults:!1};function e6(e){var t=e.canonizeResults;return void 0===t?e4.canonizeResults:t}var e3=/^[_a-z][_0-9a-z]*/i;function e7(e){var t=e.match(e3);return t?t[0]:e}function e5(e){return C(e)&&!z(e)&&!te(e)}var te=function(e){return Array.isArray(e)},tt=function(){function e(){this.known=new(eK.canUseWeakSet?WeakSet:Set),this.pool=new eJ(eK.canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return C(e)&&this.known.has(e)},e.prototype.pass=function(e){if(C(e)){var t=C(e)?te(e)?e.slice(0):(0,y.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(C(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),__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]}),__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}(),tr=Object.assign(function(e){if(C(e)){void 0===t&&tn();var n=t.admit(e),i=r.get(n);return void 0===i&&r.set(n,i=JSON.stringify(n)),i}return JSON.stringify(e)},{reset:tn});function tn(){t=new tt,r=new(eK.canUseWeakMap?WeakMap:Map)}function ti(e){return e.errors&&e.errors.length>0||!1}function to(e,t,r){var n=0;return e.forEach(function(r,i){t.call(this,r,i,e)&&(e[n++]=r)},r),e.length=n,e}var ta={kind:"Field",name:{kind:"Name",value:"__typename"}};function ts(e){var t;return!function e(t,r){return t.selectionSet.selections.every(function(t){return"FragmentSpread"===t.kind&&e(r[t.name.value],r)})}(ee(e)||(__DEV__?(0,a.invariant)("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,a.invariant)("Document"===e.kind,48),__DEV__?(0,a.invariant)(e.definitions.length<=1,"Fragment must have exactly one definition."):(0,a.invariant)(e.definitions.length<=1,49),t=e.definitions[0],__DEV__?(0,a.invariant)("FragmentDefinition"===t.kind,"Must be a fragment definition."):(0,a.invariant)("FragmentDefinition"===t.kind,50),t),A(er(e)))?e:null}function tu(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function tc(e,t){var r=Object.create(null),n=[],i=Object.create(null),o=[],a=ts(em(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(r[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some(function(e){return e.remove})&&t.directives&&t.directives.some(tu(e)))return t.arguments&&t.arguments.forEac
1h(function(e){"Variable"===e.value.kind&&n.push({name:e.value.name.value})}),t.selectionSet&&(function e(t){var r=[];return t.selections.forEach(function(t){($(t)||X(t))&&t.selectionSet?e(t.selectionSet).forEach(function(e){return r.push(e)}):"FragmentSpread"===t.kind&&r.push(t)}),r})(t.selectionSet).forEach(function(e){o.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(tu(e)(t))return null}}}));return a&&to(n,function(e){return!!e.name&&!r[e.name]}).length&&(a=function(e,t){var r=function(t){return e.some(function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})};return ts(em(t,{OperationDefinition:{enter:function(t){return(0,y.__assign)((0,y.__assign)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var n=0;if(t.arguments&&t.arguments.forEach(function(e){r(e)&&(n+=1)}),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}(n,a)),a&&to(o,function(e){return!!e.name&&!i[e.name]}).length&&(a=function(e,t){function r(t){if(e.some(function(e){return e.name===t.name.value}))return null}return ts(em(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}(o,a)),a}var tl=Object.assign(function(e){return em(e,{SelectionSet:{enter:function(e,t,r){if(!r||"OperationDefinition"!==r.kind){var n=e.selections;if(!(!n||n.some(function(e){return $(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!($(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,y.__assign)((0,y.__assign)({},e),{selections:(0,y.__spreadArray)((0,y.__spreadArray)([],n,!0),[ta],!1)})}}}})},{added:function(e){return e===ta}}),tf={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||!e.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&a.invariant.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function th(e,t,r){return new Q(function(n){var i=n.next,o=n.error,a=n.complete,s=0,u=!1,c={then:function(e){return new Promise(function(t){return t(e())})}};function l(e,t){return e?function(t){++s;var r=function(){return e(t)};c=c.then(r,r).then(function(e){--s,i&&i.call(n,e),u&&f.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(n,e)})}:function(e){return t&&t.call(n,e)}}var f={next:l(t,i),error:l(r,o),complete:function(){u=!0,!s&&a&&a.call(n)}},h=e.subscribe(f);return function(){return h.unsubscribe()}})}var tp=e.i(42419);function td(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function tv(e){function t(t){Object.defineProperty(e,t,{value:Q})}return eK.canUseSymbol&&Symbol.species&&t(Symbol.species),t("@@species"),e}function ty(e){return e&&"function"==typeof e.then}var tm=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.addCount=0,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],td(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),td(r.observers,"error",e))},complete:function(){var e=r.sub;if(null!==e){var t=r.sources.shift();t?ty(t)?t.then(function(e){return r.sub=e.subscribe(r.handlers)}):r.sub=t.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(),td(r.observers,"complete"))}}},r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new Q(t)]),ty(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,y.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){!this.observers.has(e)&&(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.complete()},t.prototype.cleanup=function(e){var t=this,r=!1,n=function(){r||(r=!0,t.observers.delete(i),e())},i={next:n,error:n,complete:n},o=this.addCount;this.addObserver(i),this.addCount=o},t}(Q);tv(tm);var tg=new Map;function tb(e){var t=tg.get(e)||1;return tg.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}var t_=e.i(33879);function tw(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}));var tO=Object.prototype.toString;function tE(e,t){switch(tO.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]=tE(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]=tE(e[r],t)}),n;default:return e}}var tk=Object.assign,tS=Object.hasOwnProperty,tx=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=tj)}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.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,h=void 0===f?"standby"===l?u:l:f;o.options=(0,y.__assign)((0,y.__assign)({},i),{initialFetchPolicy:h,fetchPolicy:l}),o.queryId=n.queryId||r.generateQueryId();
1var p=ee(o.query);return o.queryName=p&&p.name&&p.name.value,o}return(0,y.__extends)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||n.ready,i=(0,y.__assign)((0,y.__assign)({},t),{loading:tw(r),networkStatus:r}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("network-only"===a||"no-cache"===a||"standby"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),(0,ez.equal)(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,s.complete&&i.networkStatus===n.loading&&("cache-first"===a||"cache-only"===a)&&(i.networkStatus=n.ready,i.loading=!1)):i.partial=!0,!__DEV__||s.complete||this.options.partialRefetch||i.loading||i.data||i.error||tq(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!(0,ez.equal)(this.last.result,e)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,ez.equal)(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},i=this.options.fetchPolicy;if("cache-and-network"===i?r.fetchPolicy=i:"no-cache"===i?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",__DEV__&&e&&tS.call(e,"variables")){var o=en(this.query),s=o.variableDefinitions;(!s||!s.some(function(e){return"variables"===e.variable.name.value}))&&__DEV__&&a.invariant.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null==(t=o.name)?void 0:t.value)||JSON.stringify(o),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!(0,ez.equal)(this.options.variables,e)&&(r.variables=this.options.variables=(0,y.__assign)((0,y.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,n.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,y.__assign)((0,y.__assign)({},e.query?e:(0,y.__assign)((0,y.__assign)((0,y.__assign)((0,y.__assign)({},this.options),{query:this.query}),e),{variables:(0,y.__assign)((0,y.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=n.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(i,r,n.fetchMore).then(function(u){return t.queryManager.removeQuery(i),o.networkStatus===n.fetchMore&&(o.networkStatus=a),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:u.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:u.data})},onWatchUpdated:function(e){s.add(e.query)}}),u}).finally(function(){s.has(t.query)||tD(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)return void e.onError(t);__DEV__&&a.invariant.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return(0,ez.equal)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},n.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;"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){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){__DEV__?(0,a.invariant)(r,"Attempted to start a polling query without a polling interval."):(0,a.invariant)(r,10),(t||(this.pollingInfo={})).interval=r;var i=function(){e.pollingInfo&&(tw(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"network-only"},n.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(i,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,y.__assign)((0,y.__assign)({},this.last),{result:this.queryManager.assumeImmutableResults?e:tE(e),variables:t}),(0,tp.isNonEmptyArray)(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var r=this;this.isTornDown=!1;var i=t===n.refetch||t===n.fetchMore||t===n.poll,o=this.options.variables,a=this.options.fetchPolicy,s=(0,e2.compact)(this.options,e||{}),u=i?s:tk(this.options,s);i||(this.updatePolling(),e&&e.variables&&!(0,ez.equal)(e.variables,o)&&(!e.fetchPolicy||e.fetchPolicy===a)&&(this.applyNextFetchPolicy("variables-changed",u),void 0===t&&(t=n.setVariables)));var c=u.variables&&(0,y.__assign)({},u.variables),l=this.fetch(u,t),f={next:function(e){r.reportResult(e,c)},error:function(e){r.reportError(e,c)}};
1return i||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=l,this.observer=f),l.addObserver(f),l.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError();(r||this.isDifferentFromLastResult(e))&&((r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),td(this.observers,"next",e))},t.prototype.reportError=function(e,t){var r=(0,y.__assign)((0,y.__assign)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:n.error,loading:!1});this.updateLastResult(r,t),td(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}(Q);function tD(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=n,"function"==typeof n)?n.apply(this,arguments):r}}):e.reobserve()}function tj(e){__DEV__&&a.invariant.error("Unhandled error",e.message,e.stack)}function tq(e){__DEV__&&e&&__DEV__&&a.invariant.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}tv(tx);var tP=null,tT={},tM=1,tF=function(){function e(){this.id=["slot",tM++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=tP;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===tT)break;return e!==tP&&(tP.slots[this.id]=t),!0}return tP&&(tP.slots[this.id]=tT),!1},e.prototype.getValue=function(){if(this.hasValue())return tP.slots[this.id]},e.prototype.withValue=function(e,t,r,n){var i,o=((i={__proto__:null})[this.id]=e,i),a=tP;tP={parent:a,slots:o};try{return t.apply(n,r)}finally{tP=a}},e.bind=function(e){var t=tP;return function(){var r=tP;try{return tP=t,e.apply(this,arguments)}finally{tP=r}}},e.noContext=function(e,t,r){if(!tP)return e.apply(r,t);var n=tP;try{return tP=null,e.apply(r,t)}finally{tP=n}},e},tI="@wry/context:Slot",tR=Array,tQ=tR[tI]||function(){var e=tF();try{Object.defineProperty(tR,tI,{value:tR[tI]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function tC(){}tQ.bind,tQ.noContext;var tV=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=tC),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var 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)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),tA=new tQ,tN=Object.prototype.hasOwnProperty,tL=void 0===(i=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:i;function tz(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var tW=[];function tB(e,t){if(!e)throw Error(t||"assertion failure")}function tG(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var tU=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!tY(this))return tJ(this),this.value[0]},e.prototype.recompute=function(e){var t,r,n;return tB(!this.recomputing,"already recomputing"),tJ(this),tY(this)?(t=this,r=e,t0(t),tA.withValue(t,tK,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{tz(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,tY(n)||function(e){tH(e,tX)}(n)),tG(t.value)):tG(this.value)},e.prototype.setDirty=function(){var e;this.dirty||(this.dirty=!0,this.value.length=0,e=this,tH(e,t$),tz(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),t0(this),tH(this,function(t,r){t.setDirty(),t1(t,e)})},e.prototype.forget=function(){this.dispose()}
1,e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=tW.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(tL(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),tW.push(this.deps),this.deps=null)},e.count=0,e}();function tJ(e){var t=tA.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),tY(e)?t$(t,e):tX(t,e),t}function tK(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function tY(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function tH(e,t){var r=e.parents.size;if(r)for(var n=tL(e.parents),i=0;i<r;++i)t(n[i],e)}function t$(e,t){tB(e.childValues.has(t)),tB(tY(t));var r=!tY(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=tW.pop()||new Set;e.dirtyChildren.add(t),r&&tH(e,t$)}function tX(e,t){tB(e.childValues.has(t)),tB(!tY(t));var r,n,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(r=t.value,(n=i.length)>0&&n===r.length&&i[n-1]===r[n-1]||e.setDirty()),tZ(e,t),tY(e)||tH(e,tX)}function tZ(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(tW.length<100&&tW.push(r),e.dirtyChildren=null))}function t0(e){e.childValues.size>0&&e.childValues.forEach(function(t,r){t1(e,r)}),e.forgetDeps(),tB(null===e.dirtyChildren)}function t1(e,t){t.parents.delete(e),e.childValues.delete(t),tZ(e,t)}var t2={setDirty:!0,dispose:!0,forget:!0};function t9(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=tA.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(tz(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){var n=t.get(e);if(n){var i=r&&tN.call(t2,r)?r:"setDirty";tL(n).forEach(function(e){return e[i]()}),t.delete(e),tz(n)}},n}function t8(){var e=new eJ("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}t8();var t4=new Set;function t6(e,t){void 0===t&&(t=Object.create(null));var r=new tV(t.max||65536,function(e){return e.dispose()}),n=t.keyArgs,i=t.makeCacheKey||t8(),o=function(){var o=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=r.get(o);a||(r.set(o,a=new tU(e)),a.subscribe=t.subscribe,a.forget=function(){return r.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return r.set(o,a),t4.add(r),tA.hasValue()||(t4.forEach(function(e){return e.clean()}),t4.clear()),s};function a(e){var t=r.get(e);t&&t.setDirty()}function s(e){var t=r.get(e);if(t)return t.peek()}function u(e){return r.delete(e)}return Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}var t3=new tQ,t7=new WeakMap;function t5(e){var t=t7.get(e);return t||t7.set(e,t={vars:new Set,dep:t9()}),t}function re(e){t5(e).vars.forEach(function(t){return t.forgetCache(e)})}function rt(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){var t;t5(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var a=Array.from(r);r.clear(),a.forEach(function(t){return t(e)})}}else{var s=t3.getValue();s&&(i(s),t5(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),t5(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var rr=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;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=eH(t.resolvers,e)}):this.resolvers=eH(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return(0,y.__awaiter)(this,void 0,void 0,function(){return(0,y.__generator)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,a).then(function(e){return(0,y.__assign)((0,y.__assign)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return e1(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){var t;return Z(e),(t=tc([{test:function(e){return"client"===e.name.value},remove:!0}],e))&&(t=em(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return $(e)&&"__typename"===e.name.value}))return null}}})),t},e.prototype.prepareContext=function(e){var t=this.cache;return(0,y.__assign)((0,y.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,y.__awaiter)(this,void 0,void 0,function(){return(0,y.__generator)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,y.__assign)((0,y.__assign)({},t),e.exportedVariables)})]:[2,(0,y.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return em(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 ey}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===ei(e).operation?e:em(e,{OperationDefinition:{enter:function(e){return(0,y.__assign)((0,y.__assign)({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,i,o){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),(0,y.__awaiter)(this,void 0,void 0,function(){var a,s,u,c,l,f,h,p;return(0,y.__generator)(this,function(d){return a=ei(e),s=A(er(e)),c=(u=a.operation)?u.charAt(0).toUpperCase()+u.slice(1):"Query",l=this,f=l.cache,h=l.client,p={fragmentMap:s,context:(0,y.__assign)((0,y.__assign)({},r),{cache:f,client:h}),variables:n,fragmentMatcher:i,defaultOperationType:c,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,p).then(function(e){return{result:e,exportedVariables:p.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r){return(0,y.__awaiter)(this,void 0,void 0,function(){var n,i,o,s,u,c=this;return(0,y.__generator)(this,function(l){return n=r.fragmentMap,i=r.context,o=r.variables,s=[t],u=function(e){return(0,y.__awaiter)(c,void 0,void 0,function(){var u,c;return(0,y.__generator)(this,function(l){return e0(e,o)?$(e)?[2,this.resolveField(e,t,r).then(function(t){var r;void 0!==t&&s.push(((r={})[Y(e)]=t,r))})]:(X(e)?u=e:(u=n[e.name.value],__DEV__?(0,a.invariant)(u,"No fragment named ".concat(e.name.value)):(0,a.invariant)(u,9)),u&&u.typeCondition&&(c=u.typeCondition.name.value,r.fragmentMatcher(t,c,i)))?[2,this.resolveSelectionSet(u.selectionSet,t,r).then(function(e){s.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(u)).then(function(){return e$(s)})]})})},e.prototype.resolveField=function(e,t,r){return(0,y.__awaiter)(this,void 0,void 0,function(){var n,i,o,a,s,u,c,l,f,h=this;return(0,y.__generator)(this,function(p){return n=r.variables,a=(i=e.name.value)!==(o=Y(e)),u=Promise.resolve(s=t[o]||t[i]),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(c=t.__typename||r.defaultOperationType,(l=this.resolvers&&this.resolvers[c])&&(f=l[a?i:o])&&(u=Promise.resolve(t3.withValue(this.cache,f,[t,K(e,n),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,u.then(function(t){return(void 0===t&&(t=s),e.directives&&e.directives.forEac
1h(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=t)})}),e.selectionSet&&null!=t)?Array.isArray(t)?h.resolveSubSelectedArray(e,t,r):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t,r):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0}))},e}(),rn=new(eK.canUseWeakMap?WeakMap:Map);function ri(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return rn.set(e,(rn.get(e)+1)%1e15),r.apply(this,arguments)})}function ro(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var ra=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;rn.has(r)||(rn.set(r,0),ri(r,"evict"),ri(r,"modify"),ri(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||n.loading;return this.variables&&this.networkStatus!==n.loading&&!(0,ez.equal)(this.variables,e.variables)&&(t=n.setVariables),(0,ez.equal)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){ro(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,ez.equal)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(t);return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,ez.equal)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():tD(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;ro(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(tw(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=(0,y.__assign)((0,y.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,ez.equal)(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===rn.get(this.cache)&&(0,ez.equal)(t,r.variables)&&(0,ez.equal)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r){var n=this;this.graphQLErrors=(0,tp.isNonEmptyArray)(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==r&&(rs(e,t.errorPolicy)?this.cache.performTransaction(function(i){if(n.shouldWrite(e,t.variables))i.writeQuery({query:n.document,data:e.data,variables:t.variables,overwrite:1===r}),n.lastWrite={result:e,variables:t.variables,dmCount:rn.get(n.cache)};else if(n.lastDiff&&n.lastDiff.diff.complete){e.data=n.lastDiff.diff.result;return}var o=n.getDiffOptions(t.variables),a=i.diff(o);n.stopped||n.updateWatch(t.variables),n.updateLastDiff(a,o),a.complete&&(e.data=a.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=n.ready},e.prototype.markError=function(e){return this.networkStatus=n.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function rs(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!ti(e);return!n&&r&&e.data&&(n=!0),n}var ru=Object.prototype.hasOwnProperty,rc=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.queryDeduplication,o=e.onBroadcast,a=e.ssrMode,s=e.clientAwareness,u=e.localState,c=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(eK.canUseWeakMap?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=void 0!==i&&i,this.clientAwareness=void 0===s?{}:s,this.localState=u||new rr({cache:t}),this.ssrMode=void 0!==a&&a,this.assumeImmutableResults=!!c,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;
1this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(__DEV__?new a.InvariantError("QueryManager stopped while query was in flight"):new a.InvariantError(11))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,n=e.mutation,i=e.variables,o=e.optimisticResponse,s=e.updateQueries,u=e.refetchQueries,c=void 0===u?[]:u,l=e.awaitRefetchQueries,f=void 0!==l&&l,h=e.update,p=e.onQueryUpdated,d=e.fetchPolicy,v=void 0===d?(null==(t=this.defaultOptions.mutate)?void 0:t.fetchPolicy)||"network-only":d,m=e.errorPolicy,g=void 0===m?(null==(r=this.defaultOptions.mutate)?void 0:r.errorPolicy)||"none":m,b=e.keepRootFields,_=e.context;return(0,y.__awaiter)(this,void 0,void 0,function(){var e,t,r;return(0,y.__generator)(this,function(u){switch(u.label){case 0:if(__DEV__?(0,a.invariant)(n,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,a.invariant)(n,12),__DEV__?(0,a.invariant)("network-only"===v||"no-cache"===v,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,a.invariant)("network-only"===v||"no-cache"===v,13),e=this.generateMutationId(),n=this.transform(n).document,i=this.getVariables(n,i),!this.transform(n).hasClientExports)return[3,2];return[4,this.localState.addExportedVariables(n,i,_)];case 1:i=u.sent(),u.label=2;case 2:return t=this.mutationStore&&(this.mutationStore[e]={mutation:n,variables:i,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:e,document:n,variables:i,fetchPolicy:v,errorPolicy:g,context:_,updateQueries:s,update:h,keepRootFields:b}),this.broadcastQueries(),r=this,[2,new Promise(function(a,u){return th(r.getObservableFromLink(n,(0,y.__assign)((0,y.__assign)({},_),{optimisticResponse:o}),i,!1),function(a){if(ti(a)&&"none"===g)throw new t_.ApolloError({graphQLErrors:a.errors});t&&(t.loading=!1,t.error=null);var u=(0,y.__assign)({},a);return"function"==typeof c&&(c=c(u)),"ignore"===g&&ti(u)&&delete u.errors,r.markMutationResult({mutationId:e,result:u,document:n,variables:i,fetchPolicy:v,errorPolicy:g,context:_,update:h,updateQueries:s,awaitRefetchQueries:f,refetchQueries:c,removeOptimistic:o?e:void 0,onQueryUpdated:p,keepRootFields:b})}).subscribe({next:function(e){r.broadcastQueries(),a(e)},error:function(n){t&&(t.loading=!1,t.error=n),o&&r.cache.removeOptimistic(e),r.broadcastQueries(),u(n instanceof t_.ApolloError?n:new t_.ApolloError({networkError:n}))}})})]}})})},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&&rs(n,e.errorPolicy)){i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var a=e.updateQueries;a&&this.queries.forEach(function(e,o){var s=e.observableQuery,u=s&&s.queryName;if(u&&ru.call(a,u)){var c=a[u],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 v=c(d,{mutationResult:n,queryName:f&&et(f)||void 0,queryVariables:h});v&&i.push({result:v,dataId:"ROOT_QUERY",query:f,variables:h})}}})}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var a=e.update;if(a){if(!o){var s=t.diff({id:"ROOT_MUTATION",query:r.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(n=(0,y.__assign)((0,y.__assign)({},n),{data:s.result}))}a(t,n,{context:e.context,variables:e.variables})}o||e.keepRootFields||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 s.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,y.__assign)((0,y.__assign)({},t),{result:{data:n}}),e)}catch(e){__DEV__&&a.invariant.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);
1return 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){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),n=tc([tf],Z(this.cache.transformForLink(r))),i=this.localState.clientQuery(r),o=n&&this.localState.serverQuery(n),a={document:r,hasClientExports:r&&e1(["client"],r)&&e1(["export"],r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:i,serverQuery:o,defaultVars:eo(ee(r)),asQuery:(0,y.__assign)((0,y.__assign)({},r),{definitions:r.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,y.__assign)((0,y.__assign)({},e),{operation:"query"}):e})})},s=function(e){e&&!t.has(e)&&t.set(e,a)};s(e),s(r),s(i),s(o)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,y.__assign)((0,y.__assign)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,y.__assign)((0,y.__assign)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new ra(this),r=new tx({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:r.query,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?(0,a.invariant)(e.query,"query option is required. You must specify your GraphQL document in the query option."):(0,a.invariant)(e.query,14),__DEV__?(0,a.invariant)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):(0,a.invariant)("Document"===e.query.kind,15),__DEV__?(0,a.invariant)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,a.invariant)(!e.returnPartialData,16),__DEV__?(0,a.invariant)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,a.invariant)(!e.pollInterval,17),this.fetchQuery(t,e).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new a.InvariantError("Store reset while query was in flight (not completed in link chain)"):new a.InvariantError(18)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=n.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){if("string"==typeof e)n.set(e,!1);else C(e)&&"Document"===e.kind&&Array.isArray(e.definitions)?n.set(t.transform(e).document,!1):C(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void r.set(i,o);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=tb("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),o=new tx({queryManager:t,queryInfo:i,options:(0,y.__assign)((0,y.__assign)({},e),{fetchPolicy:"network-only"})});(0,a.invariant)(o.queryId===n),i.setObservableQuery(o),r.set(n,o)}),__DEV__&&n.size&&n.forEach(function(e,t){!e&&__DEV__&&a.invariant.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),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;
1n.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=e.variables,a=e.context,s=void 0===a?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var u=function(e){return t.getObservableFromLink(r,s,e).map(function(o){if("no-cache"!==n&&(rs(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),ti(o))throw new t_.ApolloError({graphQLErrors:o.errors});return o})};if(this.transform(r).hasClientExports){var c=this.localState.addExportedVariables(r,o,s).then(u);return new Q(function(e){var t=null;return c.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return u(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var i,o,a=this;void 0===n&&(n=null!=(i=null==t?void 0:t.queryDeduplication)?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var u=this.inFlightLinkObservables,c=this.link,l={query:s,variables:r,operationName:et(s)||void 0,context:this.prepareContext((0,y.__assign)((0,y.__assign)({},t),{forceFetch:!n}))};if(t=l.context,n){var f=u.get(s)||new Map;u.set(s,f);var h=tr(r);if(!(o=f.get(h))){var p=new tm([ef(c,l)]);f.set(h,o=p),p.cleanup(function(){f.delete(h)&&f.size<1&&u.delete(s)})}}else o=new tm([ef(c,l)])}else o=new tm([Q.of({data:{}})]),t=this.prepareContext(t);var d=this.transform(e).clientQuery;return d&&(o=th(o,function(e){return a.localState.runResolvers({document:d,remoteResult:e,context:t,variables:r})})),o},e.prototype.getResultsFromLink=function(e,t,r){var i=e.lastRequestId=this.generateRequestId();return th(this.getObservableFromLink(e.document,r.context,r.variables),function(o){var a=(0,tp.isNonEmptyArray)(o.errors);if(i>=e.lastRequestId){if(a&&"none"===r.errorPolicy)throw e.markError(new t_.ApolloError({graphQLErrors:o.errors}));e.markResult(o,r,t),e.markReady()}var s={data:o.data,loading:!1,networkStatus:n.ready};return a&&"ignore"!==r.errorPolicy&&(s.errors=o.errors,s.networkStatus=n.error),s},function(t){var r=(0,t_.isApolloError)(t)?t:new t_.ApolloError({networkError:t});throw i>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchQueryObservable=function(e,t,r){var i=this;void 0===r&&(r=n.loading);var o=this.transform(t.query).document,a=this.getVariables(o,t.variables),s=this.getQuery(e),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,l=void 0===c?u&&u.fetchPolicy||"cache-first":c,f=t.errorPolicy,h=void 0===f?u&&u.errorPolicy||"none":f,p=t.returnPartialData,d=t.notifyOnNetworkStatusChange,v=t.context,y=Object.assign({},t,{query:o,variables:a,fetchPolicy:l,errorPolicy:h,returnPartialData:void 0!==p&&p,notifyOnNetworkStatusChange:void 0!==d&&d,context:void 0===v?{}:v}),m=function(e){return y.variables=e,i.fetchQueryByPolicy(s,y,r)};this.fetchCancelFns.set(e,function(e){setTimeout(function(){return g.cancel(e)})});var g=new tm(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(m):m(y.variables));return g.cleanup(function(){i.fetchCancelFns.delete(e),s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",t)}),g},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?tb("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;
1n&&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 ra&&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 i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,f=t.context,h=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:this.transform(o).document,variables:a,networkStatus:r});var d=function(){return e.getDiff(a)},v=function(t,r){void 0===r&&(r=e.networkStatus||n.loading);var s=t.result;!__DEV__||l||(0,ez.equal)(s,{})||tq(t.missing);var u=function(e){return Q.of((0,y.__assign)({data:e,loading:tw(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:f,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):u(s)},m="no-cache"===s?0:r===n.refetch&&"merge"!==u?1:2,g=function(){return i.getResultsFromLink(e,m,{variables:a,context:f,fetchPolicy:s,errorPolicy:c})},b=h&&"number"==typeof p&&p!==r&&tw(r);switch(s){default:case"cache-first":var _=d();if(_.complete)return[v(_,e.markReady())];if(l||b)return[v(_),g()];return[g()];case"cache-and-network":var _=d();if(_.complete||l||b)return[v(_),g()];return[g()];case"cache-only":return[v(d(),e.markReady())];case"network-only":if(b)return[v(d()),g()];return[g()];case"no-cache":if(b)return[v(e.getDiff()),g()];return[g()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new ra(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,y.__assign)((0,y.__assign)({},t),{clientAwareness:this.clientAwareness})},e}(),rl=e.i(69570),rf=!1,rh=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,i=e.headers,o=e.cache,s=e.ssrMode,u=void 0!==s&&s,c=e.ssrForceFetchDelay,l=void 0===c?0:c,f=e.connectToDevTools,h=void 0===f?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:f,p=e.queryDeduplication,d=void 0===p||p,v=e.defaultOptions,y=e.assumeImmutableResults,m=e.resolvers,g=e.typeDefs,b=e.fragmentMatcher,_=e.name,w=e.version,O=e.link;if(O||(O=r?new eL({uri:r,credentials:n,headers:i}):el.empty()),!o)throw __DEV__?new a.InvariantError("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new a.InvariantError(7);if(this.link=O,this.cache=o,this.disableNetworkFetches=u||l>0,this.queryDeduplication=d,this.defaultOptions=v||Object.create(null),this.typeDefs=g,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.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),h&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!rf&&__DEV__&&(rf=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var E=window.navigator,k=E&&E.userAgent,S=void 0;"string"==typeof k&&(k.indexOf("Chrome/")>-1?S="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":k.indexOf("Firefox/")>-1&&(S="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),S&&__DEV__&&a.invariant.log("Download the Apollo DevTools for a better development experience: "+S)}this.version="3.6.8",this.localState=new rr({cache:o,client:this,resolvers:m,fragmentMatcher:b}),this.queryManager=new rc({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:d,ssrMode:u,clientAwareness:{name:_,version:w},localState:this.localState,assumeImmutableResults:void 0!==y&&y,onBroadcast:h?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,rl.mergeOptions)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,y.__assign)((0,y.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,rl.mergeOptions)(this.defaultOptions.query,e)),__DEV__?(0,a.invariant)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,a.invariant)("cache-and-network"!==e.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,y.__assign)((0,y.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,rl.mergeOptions)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return ef(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){__DEV__&&a.invariant.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),rp=function(){function e(){this.getFragmentDoc=t6(V)}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.o
1ptimistic?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.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,y.__assign)((0,y.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,y.__assign)((0,y.__assign)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,y.__rest)(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,y.__rest)(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,y.__assign)((0,y.__assign)({},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,y.__assign)((0,y.__assign)({},e),{data:i})),i)}})},e}(),rd=function(e,t,r,n){this.message=e,this.path=t,this.query=r,this.variables=n};function rv(e){var t;return __DEV__&&(t=new Set([e])).forEach(function(e){C(e)&&function(e){if(__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){C(e[r])&&t.add(e[r])})}),e}var ry=Object.create(null),rm=function(){return ry},rg=Object.create(null),rb=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 rv(z(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return z(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return L(e);if(z(e))return e;var n=r.policies.identify(e)[0];if(n){var i=L(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,y.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),e9.call(this.data,e)){var r=this.data[e];if(r&&e9.call(r,t))return r[t]}return"__typename"===t&&e9.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof rO?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),e9.call(this.data,e))?this.data[e]:this instanceof rO?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;z(e)&&(e=e.__ref),z(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){__DEV__?(0,a.invariant)("string"==typeof r,"store.merge expects a string ID"):(0,a.invariant)("string"==typeof r,1);var s=new eZ(rk).merge(i,o);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);i||(u.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){u[e]=1;var t=e7(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof rO||delete s[e]}}),u.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),o=!1,a=!0,s={DELETE:ry,INVALIDATE:rg,isReference:z,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||L(e)}:t,{store:r})}};
1if(Object.keys(n).forEach(function(u){var c=e7(u),l=n[u];if(void 0!==l){var f="function"==typeof t?t:t[u]||t[c];if(f){var h=f===rm?ry:f(rv(l),(0,y.__assign)((0,y.__assign)({},s),{fieldName:c,storeFieldName:u,storage:r.getStorage(e,u)}));h===rg?r.group.dirty(e,u):(h===ry&&(h=void 0),h!==l&&(i[u]=h,o=!0,l=h))}void 0!==l&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof rO?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]=rm,n):rm)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(e9.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof rO&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){e9.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&&e9.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,y.__rest)(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 rO?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){e9.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 rO;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!e9.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){z(e)&&(t[e.__ref]=!0),C(e)&&Object.keys(e).forEach(function(t){var r=e[t];C(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),r_=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?t9():null,this.keyMaker=new eJ(eK.canUseWeakMap)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=e7(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 rw(e,t){rS(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new r_(void 0===n||n))||this;return o.stump=new rE(o),o.storageTrie=new eJ(eK.canUseWeakMap),i&&o.replace(i),o}return(0,y.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(rb||(rb={}));var rO=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,y.__extends)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,ez.equal)(n[r],i[r])||t.group.dirty(e,r)}
1):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,y.__assign)((0,y.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return e9.call(this.data,t)?(0,y.__assign)((0,y.__assign)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(rb),rE=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new r_(t.group.caching,t.group))||this}return(0,y.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(rO);function rk(e,t,r){var n=e[r],i=t[r];return(0,ez.equal)(n,i)?n:i}function rS(e){return!!(e instanceof rb&&e.group.caching)}function rx(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var rD=function(){function e(e){var t=this;this.knownResults=new(eK.canUseWeakMap?WeakMap:Map),this.config=(0,e2.compact)(e,{addTypename:!1!==e.addTypename,canonizeResults:e6(e)}),this.canon=e.canon||new tt,this.executeSelectionSet=t6(function(e){var r,n=e.context.canonizeResults,i=rx(e);i[3]=!n;var o=(r=t.executeSelectionSet).peek.apply(r,i);return o?n?(0,y.__assign)((0,y.__assign)({},o),{result:t.canon.admit(o.result)}):o:(rw(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:rx,makeCacheKey:function(e,t,r,n){if(rS(r.store))return r.store.makeCacheKey(e,z(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=t6(function(e){return rw(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(rS(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new tt},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,y.__assign)((0,y.__assign)({},eo(en(n))),o);var l=L(void 0===i?"ROOT_QUERY":i),f=this.executeSelectionSet({selectionSet:ei(n).selectionSet,objectOrReference:l,enclosingRef:l,context:{store:r,query:n,policies:c,variables:o,varString:tr(o),canonizeResults:u,fragmentMap:A(er(n))}});if(f.missing&&(t=[new rd(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(rS(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(z(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 eZ;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});var p=new Set(n.selections);p.forEach(function(e){var n,d;if(e0(e,s))if($(e)){var v=u.readField({fieldName:e.name.value,field:e,variables:a.variables,from:i},a),y=Y(e);void 0===v?tl.added(e)||(t=f.merge(t,((n={})[y]="Can't find field '".concat(e.name.value,"' on ").concat(z(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):te(v)?v=h(r.executeSubSelectedArray({field:e,array:v,enclosingRef:o,context:a}),y):e.selectionSet?null!=v&&(v=h(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:v,enclosingRef:z(v)?v:o,context:a}),y)):a.canonizeResults&&(v=r.canon.pass(v)),void 0!==v&&l.push(((d={})[y]=v,d))}else{var m=N(e,a.fragmentMap);m&&u.fragmentMatches(m,c)&&m.selectionSet.selections.forEach(p.add,p)}});var d={result:e$(l),missing:t},v=a.canonizeResults?this.canon.admit(d):rv(d);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,s=e.context,u=new eZ;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:te(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:s}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:z(e)?e:o,context:s}),t):(__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);
1n.forEach(function(r){C(r)&&(__DEV__?(0,a.invariant)(!z(r),"Missing selection set for object of type ".concat(z(r)?e.get(r.__ref,"__typename"):r&&r.__typename," returned for query field ").concat(t.name.value)):(0,a.invariant)(!z(r),5),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),rj=Object.create(null);function rq(e){var t=JSON.stringify(e);return rj[t]||(rj[t]=Object.create(null))}function rP(e){var t=rq(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=rM(e,function(e){var i=rI(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&e9.call(t,e[0])&&(i=rI(t,e,rF)),__DEV__?(0,a.invariant)(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):(0,a.invariant)(void 0!==i,2),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function rT(e){var t=rq(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(rM(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,tp.isNonEmptyArray)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&K(s,i);return u&&rI(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&e9.call(i,c)){var l=e.slice(0);return l[0]=c,rI(i,l)}return}if(t)return rI(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function rM(e,t){var r=new eZ;return(function e(t){var r=rq(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){te(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),te(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 rF(e,t){return e[t]}function rI(e,t,r){return r=r||rF,function e(t){return C(t)?te(t)?t.map(e):rM(Object.keys(t).sort(),function(e){return rI(t,e)}):t}(t.reduce(function e(t,n){return te(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function rR(e){return void 0!==e.args?e.args:e.field?K(e.field,e.variables):null}G.setStringify(tr);var rQ=function(){},rC=function(e,t){return t.fieldName},rV=function(e,t,r){return(0,r.mergeObjects)(e,t)},rA=function(e,t){return t},rN=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,y.__assign)({dataIdFromObject:e8},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.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=t&&t.storeObject||e,s=(0,y.__assign)((0,y.__assign)({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=rz(arguments,a);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),c=u&&u.keyFn||this.config.dataIdFromObject;c;){var l=c(e,s);if(te(l))c=rP(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,y.__rest)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),e9.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?rV:!1===t?rA:e.merge}a(n,t.merge),n.keyFn=!1===i?rQ:te(i)?rP(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEac
1h(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?rC:te(s)?rT(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||rC)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(__DEV__?(0,a.invariant)(!n||n===e,"Cannot change root ".concat(e," __typename more than once")):(0,a.invariant)(!n||n===e,3),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(e3);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!e9.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,y.__rest)(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 s=this.getSupertypeSet(t,!0),u=[s],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>u.indexOf(t)&&u.push(t)},l=!!(r&&this.fuzzySubtypes.size),f=!1,h=0;h<u.length;++h){var p=u[h];if(p.has(o))return s.has(o)||(f&&__DEV__&&a.invariant.warn("Inferring subtype ".concat(t," of supertype ").concat(o)),s.add(o)),!0;p.forEach(c),l&&h===u.length-1&&function e(t,r,n){return!!C(r)&&(te(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if($(t)&&e0(t,n)){var i=Y(t);return e9.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(l=!1,f=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r,n,i,o,a=e.typename,s=e.fieldName,u=this.getFieldPolicy(a,s,!1),c=u&&u.keyFn;if(c&&a)for(var l={typename:a,fieldName:s,field:e.field||null,variables:e.variables},f=rR(e);c;){var h=c(f,l);if(te(h))c=rT(h);else{o=h||s;break}}return(void 0===o&&(o=e.field?(t=e.field,r=e.variables,n=null,t.directives&&(n={},t.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(t){var i=t.name,o=t.value;return W(n[e.name.value],i,o,r)})})),i=null,t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(function(e){var t=e.name,n=e.value;return W(i,t,n,r)})),G(t.name.value,i,n)):G(s,rR(e))),!1===o)?s:s===e7(o)?o:s+":"+o},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=e7(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=rL(this,r,e,t,t.store.getStorage(z(r)?r.__ref:r,i));return t3.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===rV?rW(n.store)(e,t):s===rA?t:(n.overwrite&&(e=void 0),s(e,t,rL(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function rL(e,t,r,n,i){var o=e.getStoreFieldName(r),a=e7(o),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:rR(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:z,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(rz(arguments,t,s),n)},mergeObjects:rW(n.store)}}function rz(e,t,r){var n,i,o,s=e[0],u=e[1],c=e.length;return"string"==typeof s?o={fieldName:s,from:c>1?u:t}:(o=(0,y.__assign)({},s),e9.call(o,"from")||(o.from=t)),__DEV__&&void 0===o.from&&__DEV__&&a.invariant.warn("Undefined 'from' passed to readField with arguments ".concat((n=Array.from(e),i=tb("stringifyForDisplay"),JSON.stringify(n,function(e,t){return void 0===t?i:t}).split(JSON.stringify(i)).join("<undefined>")))),void 0===o.variables&&(o.variables=r),o}function rW(e){return function(t,r){if(te(t)||te(r))throw __DEV__?new a.InvariantError("Cannot automatically merge arrays"):new a.InvariantError(4);if(C(t)&&C(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(z(t)&&e5(r))return e.merge(t.__ref,r),t;if(e5(t)&&z(r))return e.merge(t,r.__ref),r;if(e5(t)&&e5(r))return(0,y.__assign)((0,y.__assign)({},t),r)}return r}}function rB(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,y.__assign)((0,y.__assign)({},e),{clientOnly:t,deferred:r})),i}var rG=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,o=t.dataId,s=t.variables,u=t.overwrite,c=ee(n),l=new eZ;s=(0,y.__assign)((0,y.__assign)({},eo(c)),s);var f={store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)}
1,variables:s,varString:tr(s),fragmentMap:A(er(n)),overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},h=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:f});if(!z(h))throw __DEV__?new a.InvariantError("Could not identify object ".concat(JSON.stringify(i))):new a.InvariantError(6);return f.incomingById.forEach(function(t,n){var i=t.storeObject,o=t.mergeTree,s=t.fieldNodeSet,u=L(n);if(o&&o.map.size){var c=r.applyMerges(o,u,i,f);if(z(c))return;i=c}if(__DEV__&&!f.overwrite){var l=Object.create(null);s.forEach(function(e){e.selectionSet&&(l[e.name.value]=!0)});var h=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==l[e7(e)]||h(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 s=i(t);if(!(!s||z(o)||(0,ez.equal)(o,s)||Object.keys(o).every(function(e){return void 0!==n.getFieldValue(s,e)}))){var u=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=e7(r),l="".concat(u,".").concat(c);if(!rH.has(l)){rH.add(l);var f=[];
1te(o)||te(s)||[o,s].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||f.includes(t)||f.push(t)}),__DEV__&&a.invariant.warn("Cache data may be lost when replacing the ".concat(c," field of a ").concat(u," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(l," field, so InMemoryCache can safely merge these objects:\n\n  existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n  incoming: ").concat(JSON.stringify(s).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(u,i,e,f.store)})}e.merge(n,i)}),e.retain(h.__ref),h},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,s=e.mergeTree,u=this.cache.policies,c=Object.create(null),l=r&&u.rootTypenamesById[r]||H(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof l&&(c.__typename=l);var f=function(){var e=rz(arguments,c,o.variables);if(z(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var r=u.readField((0,y.__assign)((0,y.__assign)({},e),{from:t.storeObject}),o);if(void 0!==r)return r}}return u.readField(e,o)},h=new Set;this.flattenFields(i,n,o,l).forEach(function(e,r){var i,o=n[Y(r)];if(h.add(r),void 0!==o){var p=u.getStoreFieldName({typename:l,fieldName:r.name.value,field:r,variables:e.variables}),d=rJ(s,p),v=t.processFieldValue(o,r,r.selectionSet?rB(e,!1,!1):e,d),y=void 0;r.selectionSet&&(z(v)||e5(v))&&(y=f("__typename",v));var m=u.getMergeFunction(l,r.name.value,y);m?d.info={field:r,typename:l,merge:m}:rY(s,p),c=e.merge(c,((i={})[p]=v,i))}else __DEV__&&!e.clientOnly&&!e.deferred&&!tl.added(r)&&!u.getReadFunction(l,r.name.value)&&__DEV__&&a.invariant.error("Missing field '".concat(Y(r),"' while writing result ").concat(JSON.stringify(n,null,2)).substring(0,1e3))});try{var p=u.identify(n,{typename:l,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:c,readField:f}),d=p[0],v=p[1];r=r||d,v&&(c=o.merge(c,v))}catch(e){if(!r)throw e}if("string"==typeof r){var m=L(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,c),b.mergeTree=function e(t,r){if(t===r||!r||rK(r))return t;if(!t||rK(t))return r;var n=t.info&&r.info?(0,y.__assign)((0,y.__assign)({},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,s),h.forEach(function(e){return b.fieldNodeSet.add(e)})):o.incomingById.set(r,{storeObject:c,mergeTree:rK(s)?void 0:s,fieldNodeSet:h}),m}return c},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?te(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,rJ(n,o));return rY(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):__DEV__?tE(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=H(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,a=new eJ(!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(e0(a,r.variables)){var s=u.clientOnly,c=u.deferred;if(!(s&&c)&&(0,tp.isNonEmptyArray)(a.directives)&&a.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=K(e,r.variables);n&&!1===n.if||(c=!0)}}),$(a)){var l=i.get(a);l&&(s=s&&l.clientOnly,c=c&&l.deferred),i.set(a,rB(r,s,c))}else{var f=N(a,r.fragmentMap);f&&o.fragmentMatches(f,n,t,r.variables)&&e(f.selectionSet,rB(r,s,c))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var o=this;if(e.map.size&&!z(r)){var s,u,c=!te(r)&&(z(t)||e5(t))?t:void 0,l=r;c&&!i&&(i=[z(c)?c.__ref:c]);var f=function(e,t){return te(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};
1e.map.forEach(function(e,t){var r=f(c,t),s=f(l,t);if(void 0!==s){i&&i.push(t);var h=o.applyMerges(e,r,s,n,i);h!==s&&(u=u||new Map).set(t,h),i&&(0,a.invariant)(i.pop()===t)}}),u&&(r=te(l)?l.slice(0):(0,y.__assign)({},l),u.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(s=n.store).getStorage.apply(s,i)):r},e}(),rU=[];function rJ(e,t){var r=e.map;return r.has(t)||r.set(t,rU.pop()||{map:new Map}),r.get(t)}function rK(e){return!e||!(e.info||e.map.size)}function rY(e,t){var r=e.map,n=r.get(t);n&&rK(n)&&(rU.push(n),r.delete(t))}var rH=new Set;let r$=new rh({uri:"https://eventscms.wpenginepowered.com/begonia/graphql",cache:new(function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=rt,n.txCount=0,r=t,n.config=(0,e2.compact)(e4,r),n.addTypename=!!n.config.addTypename,n.policies=new rN({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,y.__extends)(t,e),t.prototype.init=function(){var e=this.data=new rb.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;this.storeWriter=new rG(this,this.storeReader=new rD({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:e6(this.config),canon:e?void 0:r&&r.canon})),this.maybeBroadcastWatch=t6(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(rS(r)){var n=e.optimistic,i=e.rootId,o=e.variables;return r.makeCacheKey(e.query,e.callback,tr({optimistic:n,rootId: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,y.__assign)((0,y.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof rd)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(e9.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,y.__assign)((0,y.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,r=this;return this.watches.size||(t=this,t5(t).vars.forEach(function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&re(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){tr.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(z(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&a.invariant.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(e9.call(e,"id"))return!1;e=(0,y.__assign)((0,y.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),tr.reset(),e&&e.discardWatches?(this.watches.forEac
1h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),re(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,y.__assign)((0,y.__assign)({},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,y.__assign)((0,y.__assign)({},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){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=tl(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,ez.equal)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(rp))}),rX=function(e){var t,r,n;let{Component:i,pageProps:a}=e,u=(0,l.useRouter)(),{preview:h,defaultSeo:{social:p="",...y}={},menus:m,...g}=a,b=(0,l.useRouter)();(0,s.useEffect)(()=>{let e=()=>{document.querySelectorAll("script[data-original-src]").forEach(e=>{let t=e.getAttribute("data-original-src");document.querySelectorAll('script[src="'.concat(t,'"]')).forEach(e=>{e.remove()});let r=document.createElement("script");r.src=null!=t?t:"",r.type="text/javascript",Array.from(e.attributes).forEach(e=>{"data-original-src"!==e.name&&r.setAttribute(e.name,e.value)}),window.instgrm&&delete window.instgrm,document.body.appendChild(r)})};return e(),b.events.on("routeChangeComplete",e),()=>{b.events.off("routeChangeComplete",e)}},[b.events]),(0,s.useEffect)(()=>{let e=e=>{window.gtag("config","G-9V44V9NC0E",{page_path:e}),console.log("gtag",e,"G-9V44V9NC0E")};return u.events.on("routeChangeComplete",e),()=>{u.events.off("routeChangeComplete",e)}},[u.events]);let{openGraph:_,...w}=y,[O]=(0,s.useState)({menus:m,siteOptions:{...g.siteOptions}}),E={...g,post:{...null==g?void 0:g.post,seo:{...null==g||null==(t=g.post)?void 0:t.seo,siteTitle:null==w||null==(r=w.openGraph)?void 0:r.siteName,siteDescription:null==w?void 0:w.description,social:p},siteOptions:{...g.siteOptions}}};return(0,o.jsx)(c,{client:r$,children:(0,o.jsxs)(d.default,{value:O,children:[!!w&&(0,o.jsx)(v.DefaultSeo,{...w}),!!h&&(0,o.jsx)(rZ,{editId:null==a||null==(n=a.post)?void 0:n.databaseId}),(0,o.jsx)(f.GoogleAnalytics,{gaId:"G-9V44V9NC0E"}),(0,o.jsx)(f.GoogleTagManager,{gtmId:"GTM-TF7J6K2X"}),(0,o.jsx)(i,{...E})]})})},rZ=e=>{let{editId:t}=e;return(0,o.jsxs)("div",{style:{height:"auto !important",background:"rgba(157, 24, 100, 0.85)",padding:"$1",display:"flex",justifyContent:"center",flexDirection:"row",pointerEvents:"none",color:"#fff",zIndex:5e4,width:"100%",fontSize:"16px",position:"fixed"},children:["This page is a preview."," ",(0,o.jsx)(p.Text,{className:"pointer-events-auto relative top-[1px] ml-1 font-bold text-white hover:underline",children:(0,o.jsx)(h.AvenueLink,{href:"/api/exit-preview",className:"text-white",children:"Exit preview mode"})}),t&&(0,o.jsxs)(o.Fragment,{children:[" |",(0,o.jsx)(p.Text,{className:"pointer-events-auto relative top-[1px] ml-1 font-bold text-white hover:underline",children:(0,o.jsx)("a",{className:"text-white",href:"".concat("https://ballarat-events-cms.madebyavenue.com","/wp/wp-admin/post.php?post=").concat(t,"&action=edit"),children:"Edit"})})]})]})}},94757,(e,t,r)=>{let n="/_app";(window.__NEXT_P=window.__NEXT_P||[]).push([n,()=>e.r(16027)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([n])})}]);

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.