https://www.ilovelinen.com.au/cdn/shop/t/569/assets/section-collec…?v=130071920607872598921789351173
vendor: 4,736 bytes, line 1
1(()=>{var e={17061:(e,t,r)=>{var n=r(18698).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),s=new D(n||[]);return a(o,"_invoke",{value:k(e,r,s)}),o}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var d={};function v(){}function y(){}function m(){}var g={};f(g,c,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(I([])));_&&_!==r&&o.call(_,c)&&(g=_);var E=m.prototype=v.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(i,a,s,c){var u=p(e[i],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==n(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}})}function k(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return N()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=p(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=p(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function I(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:N}}function N(){return{value:void 0,done:!0}}return y.prototype=m,a(E,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:y,configurable:!0}),y.displayName=f(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,f(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},w(O.prototype),f(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new O(h(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(E),f(E,l,"Generator"),f(E,c,(function(){return this})),f(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
1h(T),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},18698:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},64687:(e,t,r)=>{var n=r(17061)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}(()=>{"use strict";var e=function(e,t){var r=e._o.perView,n=e._c.Sizes.length,i=(e.index+r)/n*100,o=Math.min(i.toFixed(2),100);t.style.width="".concat(o,"%")},t=(r(64687),function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},t(e,r)});function n(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function a(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function s(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function c(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;var u="Invariant Violation",l=Object.setPrototypeOf,f=void 0===l?function(e,t){return e.__proto__=t,e}:l,h=function(e){function t(r){void 0===r&&(r=u);var n=e.call(this,"number"==typeof r?u+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=u,f(n,t.prototype),n}return n(t,e),t}(Error);function p(e,t){if(!e)throw new h(t)}
1var d=["debug","log","warn","error","silent"],v=d.indexOf("log");function y(e){return function(){if(d.indexOf(e)>=v)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=y("debug"),e.log=y("log"),e.warn=y("warn"),e.error=y("error")}(p||(p={}));function m(e){try{return e()}catch(e){}}const g=m((function(){return globalThis}))||m((function(){return window}))||m((function(){return self}))||m((function(){return global}))||m((function(){return m.constructor("return this")()}));var b="__",_=[b,b].join("DEV");const E=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(g,_,{value:"production"!==m((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),g[_]}}();function w(e){try{return e()}catch(e){}}var O=w((function(){return globalThis}))||w((function(){return window}))||w((function(){return self}))||w((function(){return global}))||w((function(){return w.constructor("return this")()})),k=!1;function S(){k&&(delete O.process,k=!1)}function x(e,t){if(!Boolean(e))throw new Error(t)}!O||w((function(){return"production"}))||w((function(){return process}))||(Object.defineProperty(O,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),k=!0);const T=10,D=2;function I(e){return N(e,[])}function N(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:N(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>D)return"[Array]";const r=Math.min(T,e.length),n=e.length-r,i=[];for(let n=0;n<r;++n)i.push(N(e[n],t));1===n?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`);return"["+i.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>D)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const n=r.map((([e,r])=>e+": "+N(r,t)));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}const A=function(e,t){return e instanceof t};class R{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||x(!1,`Body must be a string. Received: ${I(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||x(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||x(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function C(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)return;if("string"==typeof e)return F(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return F(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(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 L(e,t,r){return t&&P(e.prototype,t),r&&P(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}S(),__DEV__?p("boolean"==typeof E,E):p("boolean"==typeof E,39);var j=function(){return"function"==typeof Symbol},M=function(e){return j()&&Boolean(Symbol[e])},q=function(e){return M(e)?Symbol[e]:"@@"+e};j()&&!M("observable")&&(Symbol.observable=Symbol("observable"));var V=q("iterator"),Q=q("observable"),B=q("species");function U(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function z(e){var t=e.constructor;return void 0!==t&&null===(t=t[B])&&(t=void 0),void 0!==t?t:ee}function G(e){return e instanceof ee}function W(e){W.log?W.log(e):setTimeout((function(){throw e}))}function K(e){Promise.resolve().then((function(){try{e()}catch(e){W(e)}}))}function Y(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=U(t,"unsubscribe");r&&r.call(t)}}catch(e){W(e)}}function J(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function $(e,t,r){e._state="running";var n=e._observer;try{var i=U(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(J(e),!i)throw r;i.call(n,r);break;case"complete":J(e),i&&i.call(n)}}catch(e){W(e)}"closed"===e._state?Y(e):"running"===e._state&&(e._state="ready")}function H(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void K((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&($(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)}))):void $(e,t,r);e._queue.push({type:t,value:r})}}var X=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new Z(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&&(J(this),Y(this))},L(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),Z=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){H(this._subscription,"next",e)},t.error=function(e){H(this._subscription,"error",e)},t.complete=function(){H(this._subscription,"complete")},L(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),ee=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new X(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),r()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(z(this))((function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(z(this))((function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=z(this),n=arguments.length>1,i=!1,o=arguments[1];return new r((function(r){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||n)try{o=e(o,t)}catch(e){return r.error(e)}else o=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(o),r.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=z(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 new TypeError(e+" is not a function");var r=z(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[Q]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=U(t,Q);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return G(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(M("iterator")&&(n=U(t,V)))return new r((function(e){K((function(){if(!e.closed){for(var r,i=C(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){K((function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)((function(e){K((function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}}))}))},L(e,null,[{key:B,get:function(){return this}}]),e}();function te(e){return null!==e&&"object"==typeof e}function re(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new h("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 h(44);"FragmentDefinition"===e.kind&&n.push(e)})),void 0===r&&(__DEV__?p(1===n.length,"Found ".concat(n.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):p(1===n.length,45),r=n[0].name.value),i(i({},e),{definitions:c([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function ne(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function ie(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return __DEV__?p(n,"No fragment named ".concat(r)):p(n,46),n||null;default:return null}}function oe(e){return{__ref:String(e)}}function ae(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function se(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map((function(e){return se(i,e.name,e.value,n)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r)){var o=(n||{})[r.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return se(r,t,e,n),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw __DEV__?new h('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 h(55);e[t.value]=null}}j()&&Object.defineProperty(ee,Symbol("extensions"),{value:{symbol:Q,hostReportError:W},configurable:!0});var ce=["connection","include","skip","client","rest","export"],ue=Object.assign((function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};
1return n.forEach((function(e){i[e]=t[e]})),"".concat(r.connection.key,"(").concat(le(i),")")}return r.connection.key}var o=e;if(t){var a=le(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach((function(e){-1===ce.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(le(r[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=le;return le=e,t}}),le=function(e){return JSON.stringify(e,fe)};function fe(e,t){return te(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{})),t}function he(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return se(r,n,i,t)})),r}return null}function pe(e){return e.alias?e.alias.value:e.name.value}function de(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(ve(o)){if("__typename"===o.name.value)return e[pe(o)]}else{var a=de(e,ie(o,r).selectionSet,r);if("string"==typeof a)return a}}}function ve(e){return"Field"===e.kind}function ye(e){__DEV__?p(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'):p(e&&"Document"===e.kind,47);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new h('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new h(48);return e}));return __DEV__?p(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):p(t.length<=1,49),e}function me(e){return ye(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function ge(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function be(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function _e(e){var t=me(e);return __DEV__?p(t&&"query"===t.operation,"Must contain a query definition."):p(t&&"query"===t.operation,50),t}function Ee(e){var t;ye(e);for(var 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 h("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new h(54)}function we(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach((function(e){e.defaultValue&&se(t,e.variable.name,e.defaultValue)})),t}function Oe(e,t){return t?t(e):ee.of()}function ke(e){return"function"==typeof e?new Te(e):e}function Se(e){return e.request.length<=1}var xe=function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}return n(t,e),t}(Error),Te=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return ee.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(ke).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var i=ke(r),o=ke(n||new e(Oe));return Se(i)&&Se(o)?new e((function(e){return t(e)?i.request(e)||ee.of():o.request(e)||ee.of()})):new e((function(e,r){return t(e)?i.request(e,r)||ee.of():o.request(e,r)||ee.of()}))},e.execute=function(e,t){return e.request(function(e,t){var r=i({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r=i(i({},r),"function"==typeof e?e(r):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return i({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?ge(t.query)||void 0:""),t}(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(t.indexOf(i)<0)throw __DEV__?new h("illegal argument: ".concat(i)):new h(27)}return e}(t))))||ee.of()},e.concat=function(t,r){var n=ke(t);if(Se(n))return __DEV__&&p.warn(new xe("You are calling concat on a terminating link, which will have no effect",n)),n;var i=ke(r);return Se(i)?new e((function(e){return n.request(e,(function(e){return i.request(e)||ee.of()}))||ee.of()})):new e((function(e,t){return n.request(e,(function(e){return i.request(e,t)||ee.of()}))||ee.of()}))},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(Oe)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new h("request is not implemented"):new h(22)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),De=Te.execute;class Ie{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Ne{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Ae={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
1Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Re=new Set(Object.keys(Ae));function Ce(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&Re.has(t)}var Fe,Pe;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(Fe||(Fe={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(Pe||(Pe={}));const Le=Object.freeze({});function je(e,t,r=Ae){const n=new Map;for(const e of Object.values(Pe))n.set(e,Me(t,e));let i,o,a,s=Array.isArray(e),c=[e],u=-1,l=[],f=e;const h=[],p=[];do{u++;const e=u===c.length,m=e&&0!==l.length;if(e){if(o=0===p.length?void 0:h[h.length-1],f=a,a=p.pop(),m)if(s){f=f.slice();let e=0;for(const[t,r]of l){const n=t-e;null===r?(f.splice(n,1),e++):f[n]=r}}else{f=Object.defineProperties({},Object.getOwnPropertyDescriptors(f));for(const[e,t]of l)f[e]=t}u=i.index,c=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(a){if(o=s?u:c[u],f=a[o],null==f)continue;h.push(o)}let g;if(!Array.isArray(f)){var d,v;Ce(f)||x(!1,`Invalid AST Node: ${I(f)}.`);const r=e?null===(d=n.get(f.kind))||void 0===d?void 0:d.leave:null===(v=n.get(f.kind))||void 0===v?void 0:v.enter;if(g=null==r?void 0:r.call(t,f,o,a,h,p),g===Le)break;if(!1===g){if(!e){h.pop();continue}}else if(void 0!==g&&(l.push([o,g]),!e)){if(!Ce(g)){h.pop();continue}f=g}}var y;if(void 0===g&&m&&l.push([o,f]),e)h.pop();else i={inArray:s,index:u,keys:c,edits:l,prev:i}
1,s=Array.isArray(f),c=s?f:null!==(y=r[f.kind])&&void 0!==y?y:[],u=-1,l=[],a&&p.push(a),a=f}while(void 0!==i);return 0!==l.length?l[l.length-1][1]:e}function Me(e,t){const r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function qe(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments,n=e.name.value;__DEV__?p(r&&1===r.length,"Incorrect number of arguments for the @".concat(n," directive.")):p(r&&1===r.length,41);var i=r[0];__DEV__?p(i.name&&"if"===i.name.value,"Invalid argument for the @".concat(n," directive.")):p(i.name&&"if"===i.name.value,42);var o=i.value;__DEV__?p(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @".concat(n," directive must be a variable or a boolean value.")):p(o&&("Variable"===o.kind||"BooleanValue"===o.kind),43),t.push({directive:e,ifArgument:i})}}));return t}(r).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__?p(void 0!==i,"Invalid variable referenced in @".concat(r.name.value," directive.")):p(void 0!==i,40)):i=n.value.value,"skip"===r.name.value?!i:i}))}function Ve(e,t,r){var n=new Set(e),i=n.size;return je(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return Le}}),r?!n.size:n.size<i}function Qe(e){return e&&Ve(["client","export"],e,!0)}var Be=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=__DEV__?new h("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new h(24);throw n.parseError=e,n}return r},Ue="function"==typeof WeakMap&&"ReactNative"!==m((function(){return navigator.product})),ze="function"==typeof WeakSet,Ge="function"==typeof Symbol&&"function"==typeof Symbol.for,We=Ge&&Symbol.asyncIterator;m((function(){return window.document.createElement})),m((function(){return navigator.userAgent.indexOf("jsdom")>=0}));function Ke(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach((function(t){t[1](e)})),!t||t()}function c(){n=!0,o.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",a),e.on("error",s),e.on("end",c),e.on("finish",c),e.on("close",c);var u={next:function(){return new Promise((function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])}))}};return We&&(u[Symbol.asyncIterator]=function(){return this}),u}function Ye(e){var t={next:function(){return e.read()}};return We&&(t[Symbol.asyncIterator]=function(){return this}),t}function Je(e){var t,r,n,i=e;if(e.body&&(i=e.body),function(e){return!(!We||!e[Symbol.asyncIterator])}(i))return function(e){var t,r=e[Symbol.asyncIterator]();return(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t}(i);if(function(e){return!!e.getReader}(i))return Ye(i.getReader());if(function(e){return!!e.stream}(i))return Ye(i.stream().getReader());if(function(e){return!!e.arrayBuffer}(i))return t=i.arrayBuffer(),r=!1,n={next:function(){return r?Promise.resolve({value:void 0,done:!0}):(r=!0,new Promise((function(e,r){t.then((function(t){e({value:t,done:!1})})).catch(r)})))}},We&&(n[Symbol.asyncIterator]=function(){return this}),n;if(function(e){return!!e.pipe}(i))return Ke(i);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var $e=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},He=Symbol();var Xe=function(e){function t(r){var n,i,o=r.graphQLErrors,a=r.protocolErrors,s=r.clientErrors,u=r.networkError,l=r.errorMessage,f=r.extraInfo,h=e.call(this,l)||this;return h.name="ApolloError",h.graphQLErrors=o||[],h.protocolErrors=a||[],h.clientErrors=s||[],h.networkError=u||null,h.message=l||(i=c(c(c([],(n=h).graphQLErrors,!0),n.clientErrors,!0),n.protocolErrors,!0),n.networkError&&i.push(n.networkError),i.map((function(e){return te(e)&&e.message||"Error message not found."})).join("\n")),h.extraInfo=f,h.__proto__=t.prototype,h}return n(t,e),t}(Error),Ze=Array.isArray;function et(e){return Array.isArray(e)&&e.length>0}var tt=Object.prototype.hasOwnProperty;function rt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return nt(e)}function nt(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new ot,i=1;i<r;++i)t=n.merge(t,e[i]);return t}
1var it=function(e,t,r){return this.merge(e[r],t[r])},ot=function(){function e(e){void 0===e&&(e=it),this.reconciler=e,this.isObject=te,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 te(t)&&te(e)?(Object.keys(t).forEach((function(i){if(tt.call(e,i)){var o=e[i];if(t[i]!==o){var a=r.reconciler.apply(r,c([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 te(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):i({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function at(e){return"incremental"in e}function st(e){return te(e)&&"payload"in e}function ct(e,t){var r=e,n=new ot;return at(t)&&et(t.incremental)&&t.incremental.forEach((function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=!isNaN(+a)?[]:{};s[a]=t,t=s}r=n.merge(r,t)})),r}var ut=Object.prototype.hasOwnProperty;function lt(e){var t={};return e.split("\n").forEach((function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}})),t}function ft(e,t){if(e.status>=300){$e(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function ht(e,t){var r,n;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(r=t.next)||void 0===r||r.call(t,e.result)),null===(n=t.error)||void 0===n||n.call(t,e))}function pt(e,t,r){var n;(n=t,function(e){return e.text().then((function(t){return ft(e,t)})).then((function(t){return e.status>=300&&$e(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||ut.call(t,"data")||ut.call(t,"errors")||$e(e,t,"Server response was missing for query '".concat(Array.isArray(n)?n.map((function(e){return e.operationName})):n.operationName,"'.")),t}))})(e).then((function(e){var t,n;null===(t=r.next)||void 0===t||t.call(r,e),null===(n=r.complete)||void 0===n||n.call(r)})).catch((function(e){return ht(e,r)}))}function dt(e){return 9===e||32===e}function vt(e){return e>=48&&e<=57}function yt(e){return e>=97&&e<=122||e>=65&&e<=90}function mt(e){return yt(e)||95===e}function gt(e){return yt(e)||vt(e)||95===e}function bt(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let t=0;t<e.length;++t){var o;const a=e[t],s=_t(a);s!==a.length&&(n=null!==(o=n)&&void 0!==o?o:t,i=t,0!==t&&s<r&&(r=s))}return e.map(((e,t)=>0===t?e:e.slice(r))).slice(null!==(t=n)&&void 0!==t?t:0,i+1)}function _t(e){let t=0;for(;t<e.length&&dt(e.charCodeAt(t));)++t;return t}const Et=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function wt(e){return Ot[e.charCodeAt(0)]}const Ot=["\\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 kt(e){return je(e,St)}const St={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>xt(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Dt("(",xt(e.variableDefinitions,", "),")"),r=xt([e.operation,xt([e.name,t]),xt(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+Dt(" = ",r)+Dt(" ",xt(n," "))},SelectionSet:{leave:({selections:e})=>Tt(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=Dt("",e,": ")+t;let a=o+Dt("(",xt(r,", "),")");return a.length>80&&(a=o+Dt("(\n",It(xt(r,"\n")),"\n)")),xt([a,xt(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Dt(" ",xt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>xt(["...",Dt("on ",e),xt(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${Dt("(",xt(r,", "),")")} on ${t} ${Dt("",xt(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
1,StringValue:{leave:({value:e,block:t})=>t?function(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),i=1===n.length,o=n.length>1&&n.slice(1).every((e=>0===e.length||dt(e.charCodeAt(0)))),a=r.endsWith('\\"""'),s=e.endsWith('"')&&!a,c=e.endsWith("\\"),u=s||c,l=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||a);let f="";const h=i&&dt(e.charCodeAt(0));return(l&&!h||o)&&(f+="\n"),f+=r,(l||u)&&(f+="\n"),'"""'+f+'"""'}(e):`"${e.replace(Et,wt)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+xt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+xt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Dt("(",xt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>Dt("",e,"\n")+xt(["schema",xt(t," "),Tt(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>Dt("",e,"\n")+xt(["scalar",t,xt(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>Dt("",e,"\n")+xt(["type",t,Dt("implements ",xt(r," & ")),xt(n," "),Tt(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>Dt("",e,"\n")+t+(Nt(r)?Dt("(\n",It(xt(r,"\n")),"\n)"):Dt("(",xt(r,", "),")"))+": "+n+Dt(" ",xt(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>Dt("",e,"\n")+xt([t+": "+r,Dt("= ",n),xt(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>Dt("",e,"\n")+xt(["interface",t,Dt("implements ",xt(r," & ")),xt(n," "),Tt(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>Dt("",e,"\n")+xt(["union",t,xt(r," "),Dt("= ",xt(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>Dt("",e,"\n")+xt(["enum",t,xt(r," "),Tt(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>Dt("",e,"\n")+xt([t,xt(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>Dt("",e,"\n")+xt(["input",t,xt(r," "),Tt(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>Dt("",e,"\n")+"directive @"+t+(Nt(r)?Dt("(\n",It(xt(r,"\n")),"\n)"):Dt("(",xt(r,", "),")"))+(n?" repeatable":"")+" on "+xt(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>xt(["extend schema",xt(e," "),Tt(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>xt(["extend scalar",e,xt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>xt(["extend type",e,Dt("implements ",xt(t," & ")),xt(r," "),Tt(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>xt(["extend interface",e,Dt("implements ",xt(t," & ")),xt(r," "),Tt(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>xt(["extend union",e,xt(t," "),Dt("= ",xt(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>xt(["extend enum",e,xt(t," "),Tt(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>xt(["extend input",e,xt(t," "),Tt(r)]," ")}};function xt(e,t=""){var r;return null!==(r=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==r?r:""}function Tt(e){return Dt("{\n",It(xt(e,"\n")),"\n}")}function Dt(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function It(e){return Dt(" ",e.replace(/\n/g,"\n "))}function Nt(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}var At={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Rt=function(e,t){return t(e)};function Ct(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o={},a={};r.forEach((function(e){o=i(i(i({},o),e.options),{headers:i(i({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=i(i({},a),e.http)})),o.headers&&(o.headers=function(e,t){if(!t){var r=Object.create(null);
1return Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]=e[t]})),r}var n=Object.create(null);Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}}));var i=Object.create(null);return Object.keys(n).forEach((function(e){i[n[e].originalName]=n[e].value})),i}(o.headers,a.preserveHeaderCase));var s=e.operationName,c=e.extensions,u=e.variables,l=e.query,f={operationName:s,variables:u};return a.includeExtensions&&(f.extensions=c),a.includeQuery&&(f.query=t(l,kt)),{options:o,body:f}}function Ft(e){return new ee((function(t){t.error(e)}))}var Pt=m((function(){return fetch})),Lt=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,c=e.print,u=void 0===c?Rt:c,l=e.includeExtensions,f=e.preserveHeaderCase,d=e.useGETForQueries,v=e.includeUnusedVariables,y=void 0!==v&&v,g=o(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new h("\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 h(23)}(n||Pt);var b={http:{includeExtensions:l,preserveHeaderCase:f},options:g.fetchOptions,credentials:g.credentials,headers:g.headers};return new Te((function(e){var t=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")}(e,r),o=e.getContext(),c={};if(o.clientAwareness){var l=o.clientAwareness,f=l.name,h=l.version;f&&(c["apollographql-client-name"]=f),h&&(c["apollographql-client-version"]=h)}var v,g=i(i({},c),o.headers),_={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:g},E=Ct(e,u,At,b,_),w=E.options,O=E.body;if(O.variables&&!y){var k=new Set(Object.keys(O.variables));je(e.query,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&k.delete(e.name.value)}}),k.size&&(O.variables=i({},O.variables),k.forEach((function(e){delete O.variables[e]})))}if(!w.signal){var S=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}(),x=S.controller,T=S.signal;(v=x)&&(w.signal=T)}var D,I="OperationDefinition"===(D=Ee(e.query)).kind&&"subscription"===D.operation,N=Ve(["defer"],e.query);if(d&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(w.method="GET"),N||I){w.headers=w.headers||{};var A="multipart/mixed;";I&&N&&__DEV__&&p.warn("Multipart-subscriptions do not support @defer"),I?A+="boundary=graphql;subscriptionSpec=1.0,application/json":N&&(A+="deferSpec=20220824,application/json"),w.headers.accept=A}if("GET"===w.method){var R=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=Be(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=Be(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+r.join("&")+a}}(t,O),C=R.newURI,F=R.parseError;if(F)return Ft(F);t=C}else try{w.body=Be(O,"Payload")}catch(F){return Ft(F)}return new ee((function(r){return(n||m((function(){return fetch}))||Pt)(t,w).then((function(t){var n;e.setContext({response:t});var o=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==o&&/^multipart\/mixed/i.test(o)?function(e,t){var r,n,o,c,u;return a(this,void 0,void 0,(function(){var a,l,f,h,p,d,v,y,m,g,b,_,E,w,O,k,S,x,T,D,I,N;return s(this,(function(s){switch(s.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");a=new TextDecoder("utf-8"),l=null===(r=e.headers)||void 0===r?void 0:r.get("content-type"),f="boundary=",h=(null==l?void 0:l.includes(f))?null==l?void 0:l.substring((null==l?void 0:l.indexOf(f))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",p="--".concat(h),d="",v=Je(e),y=!0,s.label=1;case 1:return y?[4,v.next()]:[3,3];case 2:for(m=s.sent(),g=m.value,b=m.done,_="string"==typeof g?g:a.decode(g),y=!b,E=(d+=_).indexOf(p);E>-1;){if(w=void 0,I=[d.slice(0,E),d.slice(E+p.length)],d=I[1],(w=I[0]).trim()){if(O=w.indexOf("\r\n\r\n"),k=lt(w.slice(0,O)),(S=k["content-type"])&&-1===S.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");x=w.slice(O);try{T=ft(e,x.replace("\r\n","")),Object.keys(T).length>1||"data"in T||"incremental"in T||"errors"in T||"payload"in T?st(T)?(D={},"payload"in T&&(D=i({},T.payload)),"errors"in T&&(D=i(i({},D),{extensions:i(i({},"extensions"in D?D.extensions:null),(N={},N[He]=T.errors,N))})),null===(n=t.next)||void 0===n||n.call(t,D)):null===(o=t.next)||void 0===o||o.call(t,T):1===Object.keys(T).length&&"hasNext"in T&&!T.hasNext&&(null===(c=t.complete)||void 0===c||c.call(t))}catch(e){ht(e,t)}}E=d.indexOf(p)}return[3,1];case 3:return null===(u=t.complete)||void 0===u||u.call(t),[2]}}))}))}(t,r):pt(t,e,r)})).catch((function(e){return ht(e,r)})),function(){v&&v.abort()}}))}))},jt=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,Lt(t).request)||this;return r.options=t,r}return n(t,e),t}(Te);const{toString:Mt,hasOwnProperty:qt}=Object.prototype,Vt=Function.prototype.toString,Qt=new Map;function Bt(e,t){try{return Ut(e,t)}finally{Qt.clear()}}function Ut(e,t){if(e===t)return!0;const r=Mt.call(e);
1if(r!==Mt.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Kt(e,t))return!0;const r=zt(e),n=zt(t),i=r.length;if(i!==n.length)return!1;for(let e=0;e<i;++e)if(!qt.call(t,r[e]))return!1;for(let n=0;n<i;++n){const i=r[n];if(!Ut(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(Kt(e,t))return!0;const n=e.entries(),i="[object Map]"===r;for(;;){const e=n.next();if(e.done)break;const[r,o]=e.value;if(!t.has(r))return!1;if(i&&!Ut(o,t.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let r=e.byteLength;if(r===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const r=Vt.call(e);return r===Vt.call(t)&&!function(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(r,Wt)}}return!1}function zt(e){return Object.keys(e).filter(Gt,e)}function Gt(e){return void 0!==this[e]}const Wt="{ [native code] }";function Kt(e,t){let r=Qt.get(e);if(r){if(r.has(t))return!0}else Qt.set(e,r=new Set);return r.add(t),!1}var Yt=function(){return Object.create(null)},Jt=Array.prototype,$t=Jt.forEach,Ht=Jt.slice,Xt=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=Yt),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 $t.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(Ht.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}();var Zt,er,tr=function(){function e(){this.known=new(ze?WeakSet:Set),this.pool=new Xt(Ue),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return te(e)&&this.known.has(e)},e.prototype.pass=function(e){if(te(e)){var t=function(e){return te(e)?Ze(e)?e.slice(0):i({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(te(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(s=this.pool.lookupArray(n)).array||(this.known.add(s.array=n),__DEV__&&Object.freeze(n)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,c=o.length;if(a.sorted.forEach((function(r){o.push(t.admit(e[r]))})),!(s=this.pool.lookupArray(o)).object){var u=s.object=Object.create(i);this.known.add(u),a.sorted.forEach((function(e,t){u[e]=o[c+t]})),__DEV__&&Object.freeze(u)}return s.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}(),rr=Object.assign((function(e){if(te(e)){void 0===Zt&&nr();var t=Zt.admit(e),r=er.get(t);return void 0===r&&er.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)}),{reset:nr});function nr(){Zt=new tr,er=new(Ue?WeakMap:Map)}function ir(e,t,r){return new ee((function(n){var i=n.next,o=n.error,a=n.complete,s=0,c=!1,u={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)};u=u.then(r,r).then((function(e){--s,i&&i.call(n,e),c&&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(){c=!0,s||a&&a.call(n)}},h=e.subscribe(f);return function(){return h.unsubscribe()}}))}function or(e){return et(ar(e))}function ar(e){var t=et(e.errors)?e.errors.slice(0):[];return at(e)&&et(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}var sr={kind:Pe.FIELD,name:{kind:Pe.NAME,value:"__typename"}};function cr(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===Pe.FRAGMENT_SPREAD&&cr(t[e.name.value],t)}))}function ur(e){return cr(me(e)||function(e){__DEV__?p("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'):p("Document"===e.kind,51),__DEV__?p(e.definitions.length<=1,"Fragment must have exactly one definition."):p(e.definitions.length<=1,52);var t=e.definitions[0];return __DEV__?p("FragmentDefinition"===t.kind,"Must be a fragment definition."):p("FragmentDefinition"===t.kind,53),t}(e),ne(be(e)))?null:e}function lr(e){var t=new Set,r=[];return e.forEach((function(e){e.name?t.add(e.name):e.test&&r.push(e.test)})),function(e){return t.has(e.name.value)||r.some((function(t){return t(e)}))}}function fr(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function hr(e,t){for(var r=fr(""),n=fr(""),o=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!Ze(i)){if(i.kind===Pe.OPERATION_DEFINITION)return r(i.name&&i.name.value);if(i.kind===Pe.FRAGMENT_DEFINITION)return n(i.name.value)}return __DEV__&&p.error("Could not find operation or fragment"),null},a=0,s=t.definitions.length-1;s>=0;--s)t.definitions[s].kind===Pe.OPERATION_DEFINITION&&++a;var c=lr(e),u=e.some((function(e){return e.remove})),l=function(e){return u&&e&&e.some(c)},f=new Map,h=!1,d={enter:function(e){if(l(e.directives))return h=!0,null}},v=je(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var a=o(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(l(e.directives))return h=!0,null;var a=o(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){f.set(JSON.stringify(n),e)},leave:function(e,t,r,i){return e===f.get(JSON.stringify(i))?e:a>0&&e.selectionSet.selections.every((function(e){return e.kind===Pe.FIELD&&"__typename"===e.name.value}))?(n(e.name.value).removed=!0,h=!0,null):void 0}},Directive:{leave:function(e){if(c(e))return h=!0,null}}});if(!h)return t;var y=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){y(n(t)).transitiveVars.forEac
1h((function(t){e.transitiveVars.add(t)}))}))),e},m=new Set;v.definitions.forEach((function(e){e.kind===Pe.OPERATION_DEFINITION?y(r(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){m.add(e)})):e.kind!==Pe.FRAGMENT_DEFINITION||0!==a||n(e.name.value).removed||m.add(e.name.value)})),m.forEach((function(e){y(n(e)).fragmentSpreads.forEach((function(e){m.add(e)}))}));var g={enter:function(e){if(t=e.name.value,!m.has(t)||n(t).removed)return null;var t}};return ur(je(v,{FragmentSpread:g,FragmentDefinition:g,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=y(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return i(i({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return t.has(e.variable.name.value)}))})}}}}))}var pr=Object.assign((function(e){return je(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==Pe.OPERATION_DEFINITION){var n=e.selections;if(n)if(!n.some((function(e){return ve(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var o=r;if(!(ve(o)&&o.directives&&o.directives.some((function(e){return"export"===e.name.value}))))return i(i({},e),{selections:c(c([],n,!0),[sr],!1)})}}}}})}),{added:function(e){return e===sr}}),dr={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&p.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 vr(e){return"query"===Ee(e).operation?e:je(e,{OperationDefinition:{enter:function(e){return i(i({},e),{operation:"query"})}}})}var yr=new Map;function mr(e){var t=yr.get(e)||1;return yr.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function gr(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function br(e){function t(t){Object.defineProperty(e,t,{value:ee})}return Ge&&Symbol.species&&t(Symbol.species),t("@@species"),e}function _r(e){return e&&"function"==typeof e.then}var Er,wr=function(e){function t(t){var r=e.call(this,(function(e){return r.addObserver(e),function(){return r.removeObserver(e)}}))||this;return r.observers=new Set,r.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),gr(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),gr(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?_r(i)?i.then((function(e){return r.sub=e.subscribe(r.handlers)})):r.sub=i.subscribe(r.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),gr(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch((function(e){})),"function"==typeof t&&(t=[new ee(t)]),_r(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return n(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach((function(r){return r(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(r,n){t||(t=!0,e(r,n))}))},t}(ee);function Or(e){return!!e&&e<7}br(wr),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"}(Er||(Er={}));var kr=Object.prototype.toString;function Sr(e){return xr(e)}function xr(e,t){switch(kr.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]=xr(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]=xr(e[r],t)})),n;default:return e}}function Tr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];void 0!==n&&(r[t]=n)}))})),r}var Dr=Object.assign,Ir=Object.hasOwnProperty,Nr=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,o=t.options,a=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=Rr)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch((function(){})),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}}))||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=n,a.queryManager=r,a.isTornDown=!1;var s=r.defaultOptions.watchQuery,c=(void 0===s?{}:s).fetchPolicy,u=void 0===c?"cache-first":c,l=o.fetchPolicy,f=void 0===l?u:l,h=o.initialFetchPolicy,p=void 0===h?"standby"===f?u:f:h;a.options=i(i({},o),{initialFetchPolicy:p,fetchPolicy:f}),a.queryId=n.queryId||r.generateQueryId();
1var d=me(a.query);return a.queryName=d&&d.name&&d.name.value,a}return n(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||Er.ready,n=i(i({},t),{loading:Or(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)&&(n.data=s.result),Bt(n.data,{})&&(n.data=void 0),s.complete?(delete n.partial,!s.complete||n.networkStatus!==Er.loading||"cache-first"!==a&&"cache-only"!==a||(n.networkStatus=Er.ready,n.loading=!1)):n.partial=!0,!__DEV__||s.complete||this.options.partialRefetch||n.loading||n.data||n.error||Cr(s.missing)}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!Bt(this.last.result,e)||t&&!Bt(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||Bt(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},n=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===n?n:"no-cache"===n?"no-cache":"network-only",__DEV__&&e&&Ir.call(e,"variables")){var o=_e(this.query),a=o.variableDefinitions;a&&a.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&p.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=o.name)||void 0===t?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&&!Bt(this.options.variables,e)&&(r.variables=this.options.variables=i(i({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,Er.refetch)},t.prototype.fetchMore=function(e){var t=this,r=i(i({},e.query?e:i(i(i(i({},this.options),{query:this.query}),e),{variables:i(i({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),n=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=Er.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(n,r,Er.fetchMore).then((function(i){return t.queryManager.removeQuery(n),o.networkStatus===Er.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(n){var o=e.updateQuery;o?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return o(e,{fetchMoreResult:i.data,variables:r.variables})})):n.writeQuery({query:r.query,variables:r.variables,data:i.data})},onWatchUpdated:function(e){s.add(e.query)}}),i})).finally((function(){s.has(t.query)||Ar(t)}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&p.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 Bt(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},Er.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(r){if(!t||t.interval!==r){__DEV__?p(r,"Attempted to start a polling query without a polling interval."):p(r,13),(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&(Or(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},Er.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=i(i({},this.last),{result:this.queryManager.assumeImmutableResults?e:Sr(e),variables:t}),et(e.errors)||delete this.last.error,this.last},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===Er.refetch||t===Er.fetchMore||t===Er.poll,o=this.options.variables,a=this.options.fetchPolicy,s=Tr(this.options,e||{}),c=n?s:Dr(this.options,s);n||(this.updatePolling(),e&&e.variables&&!Bt(e.variables,o)&&"standby"!==c.fetchPolicy&&c.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",c),void 0===t&&(t=Er.setVariables)));var u=c.variables&&i({},c.variables),l=this.fetch(c,t),f=l.concast,h=l.fromLink,p={next:function(e){r.reportResult(e,u)},error:function(e){r.reportError(e,u)}};return!n&&h&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=f,this.observer=p),f.addObserver(p),f},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).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,t))&&((r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),gr(this.observers,"next",e))},t.prototype.reportError=function(e,t){var r=i(i({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Er.error,loading:!1});this.updateLastResult(r,t),gr(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}(ee);function Ar(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 Rr(e){__DEV__&&p.error("Unhandled error",e.message,e.stack)}function Cr(e){__DEV__&&e&&__DEV__&&p.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}function Fr(e){return e.kind===Pe.FIELD||e.kind===Pe.FRAGMENT_SPREAD||e.kind===Pe.INLINE_FRAGMENT}br(Nr);let Pr=null;const Lr={};let jr=1;function Mr(e){try{return e()}catch(e){}}const qr="@wry/context:Slot",Vr=Mr((()=>globalThis))||Mr((()=>global))||Object.create(null),Qr=Vr[qr]||Array[qr]||function(e){try{Object.defineProperty(Vr,qr,{value:e,enumerable:!1,writable:!1,
1configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",jr++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Pr;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Lr)break;return e!==Pr&&(Pr.slots[this.id]=t),!0}return Pr&&(Pr.slots[this.id]=Lr),!1}getValue(){if(this.hasValue())return Pr.slots[this.id]}withValue(e,t,r,n){const i={__proto__:null,[this.id]:e},o=Pr;Pr={parent:o,slots:i};try{return t.apply(n,r)}finally{Pr=o}}static bind(e){const t=Pr;return function(){const r=Pr;try{return Pr=t,e.apply(this,arguments)}finally{Pr=r}}}static noContext(e,t,r){if(!Pr)return e.apply(r,t);{const n=Pr;try{return Pr=null,e.apply(r,t)}finally{Pr=n}}}}),{bind:Br,noContext:Ur}=Qr;function zr(){}var Gr,Wr=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=zr),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}(),Kr=new Qr,Yr=Object.prototype.hasOwnProperty,Jr=void 0===(Gr=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:Gr;function $r(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Hr=[],Xr=100;function Zr(e,t){if(!e)throw new Error(t||"assertion failure")}function en(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var tn=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&&!on(this))return rn(this),this.value[0]},e.prototype.recompute=function(e){return Zr(!this.recomputing,"already recomputing"),rn(this),on(this)?function(e,t){hn(e),Kr.withValue(e,nn,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{$r(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,on(e))return;sn(e)}(e);return en(e.value)}(this,e):en(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,an(this),$r(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),hn(this),cn(this,(function(t,r){t.setDirty(),pn(t,e)}))},e.prototype.forget=function(){this.dispose()}
vendor: 4,956 bytes, line 1
1,e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=Hr.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Jr(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),Hr.push(this.deps),this.deps=null)},e.count=0,e}();function rn(e){var t=Kr.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),on(e)?un(t,e):ln(t,e),t}function nn(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 on(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function an(e){cn(e,un)}function sn(e){cn(e,ln)}function cn(e,t){var r=e.parents.size;if(r)for(var n=Jr(e.parents),i=0;i<r;++i)t(n[i],e)}function un(e,t){Zr(e.childValues.has(t)),Zr(on(t));var r=!on(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=Hr.pop()||new Set;e.dirtyChildren.add(t),r&&an(e)}function ln(e,t){Zr(e.childValues.has(t)),Zr(!on(t));var r,n,i,o=e.childValues.get(t);0===o.length?e.childValues.set(t,t.value.slice(0)):(r=o,n=t.value,(i=r.length)>0&&i===n.length&&r[i-1]===n[i-1]||e.setDirty()),fn(e,t),on(e)||sn(e)}function fn(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(Hr.length<Xr&&Hr.push(r),e.dirtyChildren=null))}function hn(e){e.childValues.size>0&&e.childValues.forEach((function(t,r){pn(e,r)})),e.forgetDeps(),Zr(null===e.dirtyChildren)}function pn(e,t){t.parents.delete(e),e.childValues.delete(t),fn(e,t)}var dn={setDirty:!0,dispose:!0,forget:!0};function vn(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=Kr.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&($r(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){var n=t.get(e);if(n){var i=r&&Yr.call(dn,r)?r:"setDirty";Jr(n).forEach((function(e){return e[i]()})),t.delete(e),$r(n)}},n}function yn(){var e=new Xt("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}yn();var mn=new Set;function gn(e,t){void 0===t&&(t=Object.create(null));var r=new Wr(t.max||Math.pow(2,16),(function(e){return e.dispose()})),n=t.keyArgs,i=t.makeCacheKey||yn(),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 tn(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),mn.add(r),Kr.hasValue()||(mn.forEach((function(e){return e.clean()})),mn.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 c(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=c,o.forget=function(){return c(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}var bn=new Qr,_n=new WeakMap;function En(e){var t=_n.get(e);return t||_n.set(e,t={vars:new Set,dep:vn()}),t}function wn(e){En(e).vars.forEach((function(t){return t.forgetCache(e)}))}function On(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){En(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var a=Array.from(r);r.clear(),a.forEach((function(t){return t(e)}))}}else{var s=bn.getValue();s&&(i(s),En(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),En(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var kn=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=rt(t.resolvers,e)})):this.resolvers=rt(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,o=e.variables,c=e.onlyRunForcedResolvers,u=void 0!==c&&c;return a(this,void 0,void 0,(function(){return s(this,(function(e){return t?[2,this.resolveDocument(t,r.data,n,o,this.fragmentMatcher,u).then((function(e){return i(i({},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 Ve(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){return ye(e),hr
1([{test:function(e){return"client"===e.name.value},remove:!0}],e)}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return i(i({},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={}),a(this,void 0,void 0,(function(){return s(this,(function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return i(i({},t),e.exportedVariables)}))]:[2,i({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return je(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 Le}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:vr(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,o,c){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=function(){return!0}),void 0===c&&(c=!1),a(this,void 0,void 0,(function(){var a,u,l,f,h,p,d,v,y,m;return s(this,(function(s){return a=Ee(e),u=be(e),l=ne(u),f=this.collectSelectionsToResolve(a,l),h=a.operation,p=h?h.charAt(0).toUpperCase()+h.slice(1):"Query",v=(d=this).cache,y=d.client,m={fragmentMap:l,context:i(i({},r),{cache:v,client:y}),variables:n,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:c},!1,[2,this.resolveSelectionSet(a.selectionSet,false,t,m).then((function(e){return{result:e,exportedVariables:m.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r,n){return a(this,void 0,void 0,(function(){var i,o,c,u,l,f=this;return s(this,(function(h){return i=n.fragmentMap,o=n.context,c=n.variables,u=[r],l=function(e){return a(f,void 0,void 0,(function(){var a,l;return s(this,(function(s){return(t||n.selectionsToResolve.has(e))&&qe(e,c)?ve(e)?[2,this.resolveField(e,t,r,n).then((function(t){var r;void 0!==t&&u.push(((r={})[pe(e)]=t,r))}))]:(!function(e){return"InlineFragment"===e.kind}(e)?(a=i[e.name.value],__DEV__?p(a,"No fragment named ".concat(e.name.value)):p(a,11)):a=e,a&&a.typeCondition&&(l=a.typeCondition.name.value,n.fragmentMatcher(r,l,o))?[2,this.resolveSelectionSet(a.selectionSet,t,r,n).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return nt(u)}))]}))}))},e.prototype.resolveField=function(e,t,r,n){return a(this,void 0,void 0,(function(){var i,o,a,c,u,l,f,h,p,d=this;return s(this,(function(s){return r?(i=n.variables,o=e.name.value,a=pe(e),c=o!==a,u=r[a]||r[o],l=Promise.resolve(u),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=r.__typename||n.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[c?o:a])&&(l=Promise.resolve(bn.withValue(this.cache,p,[r,he(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then((function(r){var i,o;if(void 0===r&&(r=u),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)}))}
1)),!e.selectionSet)return r;if(null==r)return r;var a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||a,r,n):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||a,r,n):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map((function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var o=new Set;n.set(i,o),je(i,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach((function(e){r(e)&&Fr(e)&&o.add(e)}))},FragmentSpread:function(n,i,a,s,c){var u=t[n.name.value];__DEV__?p(u,"No fragment named ".concat(n.name.value)):p(u,12);var l=e(u);l.size>0&&(c.forEach((function(e){r(e)&&Fr(e)&&o.add(e)})),o.add(n),l.forEach((function(e){o.add(e)})))}})}return n.get(i)}(e)},e}(),Sn=new(Ue?WeakMap:Map);function xn(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return Sn.set(e,(Sn.get(e)+1)%1e15),r.apply(this,arguments)})}function Tn(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Dn=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;Sn.has(r)||(Sn.set(r,0),xn(r,"evict"),xn(r,"modify"),xn(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Er.loading;return this.variables&&this.networkStatus!==Er.loading&&!Bt(this.variables,e.variables)&&(t=Er.setVariables),Bt(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(){Tn(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&Bt(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?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||Bt(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():Ar(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;Tn(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(Or(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=i(i({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
1this.lastWatch&&Bt(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===Sn.get(this.cache)&&Bt(t,r.variables)&&Bt(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new ot,a=et(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&et(e.incremental)){var s=ct(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(In(e,r.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:Sn.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var a=i.getDiffOptions(r.variables),s=o.diff(a);i.stopped||i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Er.ready},e.prototype.markError=function(e){return this.networkStatus=Er.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function In(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!or(e);return!n&&r&&e.data&&(n=!0),n}var Nn=Object.prototype.hasOwnProperty,An=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.queryDeduplication,o=void 0!==i&&i,a=e.onBroadcast,s=e.ssrMode,c=void 0!==s&&s,u=e.clientAwareness,l=void 0===u?{}:u,f=e.localState,h=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Ue?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=o,this.clientAwareness=l,this.localState=f||new kn({cache:t}),this.ssrMode=c,this.assumeImmutableResults=!!h,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches(__DEV__?new h("QueryManager stopped while query was in flight"):new h(14))},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,o=e.variables,c=e.optimisticResponse,u=e.updateQueries,l=e.refetchQueries,f=void 0===l?[]:l,h=e.awaitRefetchQueries,d=void 0!==h&&h,v=e.update,y=e.onQueryUpdated,m=e.fetchPolicy,g=void 0===m?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":m,b=e.errorPolicy,_=void 0===b?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":b,E=e.keepRootFields,w=e.context;return a(this,void 0,void 0,(function(){var e,t,r,a,l,h;return s(this,(function(s){switch(s.label){case 0:return __DEV__?p(n,"mutation option is required. You must specify your GraphQL document in the mutation option."):p(n,15),__DEV__?p("network-only"===g||"no-cache"===g,"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."):p("network-only"===g||"no-cache"===g,16),e=this.generateMutationId(),t=this.transform(n),r=t.document,a=t.hasClientExports,n=this.cache.transformForLink(r),o=this.getVariables(n,o),a?[4,this.localState.addExportedVariables(n,o,w)]:[3,2];case 1:o=s.sent(),s.label=2;case 2:return l=this.mutationStore&&(this.mutationStore[e]={mutation:n,variables:o,loading:!0,error:null}),c&&this.markMutationOptimistic(c,{mutationId:e,document:n,variables:o,fetchPolicy:g,errorPolicy:_,context:w,updateQueries:u,update:v,keepRootFields:E}),this.broadcastQueries(),h=this,[2,new Promise((function(t,r){return ir(h.getObservableFromLink(n,i(i({},w),{optimisticResponse:c}),o,!1),(function(t){if(or(t)&&"none"===_)throw new Xe({graphQLErrors:ar(t)});l&&(l.loading=!1,l.error=null);var r=i({},t);return"function"==typeof f&&(f=f(r)),"ignore"===_&&or(r)&&delete r.errors,h.markMutationResult({mutationId:e,result:r,document:n,variables:o,fetchPolicy:g,errorPolicy:_,context:w,update:v,updateQueries:u,awaitRefetchQueries:d,refetchQueries:f,removeOptimistic:c?e:void 0,onQueryUpdated:y,keepRootFields:E})})).subscribe({next:function(e){h.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){l&&(l.loading=!1,l.error=t),c&&h.cache.removeOptimistic(e),h.broadcastQueries(),r(t instanceof Xe?t:new Xe({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&In(n,e.errorPolicy)){if(at(n)||o.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),at(n)&&et(n.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),c=void 0;s.result&&(c=ct(s.result,n)),void 0!==c&&(n.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach((function(e,i){var a=e.observableQuery,s=a&&a.queryName;if(s&&Nn.call(u,s)){var c=u[s],l=r.queries.get(i),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&&ge(f)||void 0,queryVariables:h});v&&o.push({result:v,dataId:"ROOT_QUERY",query:f,variables:h})}}}))}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach((function(e){return t.write(e)}));var s,c=e.update,u=!(at(s=n)||function(e){return"hasNext"in e&&"data"in e}(s))||at(n)&&!n.hasNext;if(c){if(!a){var l=t.diff({id:"ROOT_MUTATION",query:r.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(n=i(i({},n),{data:l.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}u&&c(t,n,{context:e.context,variables:e.variables})}a||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return l.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).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(i(i({},t),{result:{data:n}}),e)}catch(e){__DEV__&&p.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);return this.queries.forEach((function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),n=hr([dr],ye(r)),o=this.localState.clientQuery(r),a=n&&this.localState.serverQuery(n),s={document:r,hasClientExports:Qe(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:we(me(r)),asQuery:i(i({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?i(i({},e),{operation:"query"}):e}))})},c=function(e){e&&!t.has(e)&&t.set(e,s)};c(e),c(r),c(o),c(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return i(i({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=i(i({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Dn(this),r=new Nr({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__?p(e.query,"query option is required. You must specify your GraphQL document in the query option."):p(e.query,17),__DEV__?p("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):p("Document"===e.query.kind,18),__DEV__?p(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):p(!e.returnPartialData,19),__DEV__?p(!e.pollInterval,"pollInterval option only supported on watchQuery."):p(!e.pollInterval,20),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 h("Store reset while query was in flight (not completed in link chain)"):new h(21)),this.queries.forEac
1h((function(e){e.observableQuery?e.networkStatus=Er.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,o=new Set;return Array.isArray(e)&&e.forEach((function(e){var r;"string"==typeof e?n.set(e,!1):te(r=e)&&"Document"===r.kind&&Array.isArray(r.definitions)?n.set(t.transform(e).document,!1):te(e)&&e.query&&o.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))}})),o.size&&o.forEach((function(e){var n=mr("legacyOneTimeQuery"),o=t.getQuery(n).init({document:e.query,variables:e.variables}),a=new Nr({queryManager:t,queryInfo:o,options:i(i({},e),{fetchPolicy:"network-only"})});p(a.queryId===n),o.setObservableQuery(a),r.set(n,a)})),__DEV__&&n.size&&n.forEach((function(e,t){e||__DEV__&&p.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;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var c=function(e){return t.getObservableFromLink(r,s,e).map((function(o){"no-cache"!==n&&(In(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=or(o),s=function(e){return!!e.extensions&&Array.isArray(e.extensions[He])}(o);if(a||s){var c={};throw a&&(c.graphQLErrors=o.errors),s&&(c.protocolErrors=o.extensions[He]),new Xe(c)}return o}))};if(this.transform(r).hasClientExports){var u=this.localState.addExportedVariables(r,o,s).then(c);return new ee((function(e){var t=null;return u.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(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 o,a,s=this;void 0===n&&(n=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.transform(e).serverQuery;if(c){var u=this.inFlightLinkObservables,l=this.link,f={query:c,variables:r,operationName:ge(c)||void 0,context:this.prepareContext(i(i({},t),{forceFetch:!n}))};if(t=f.context,n){var h=u.get(c)||new Map;u.set(c,h);var p=rr(r);if(!(a=h.get(p))){var d=new wr([De(l,f)]);h.set(p,a=d),d.beforeNext((function(){h.delete(p)&&h.size<1&&u.delete(c)}))}}else a=new wr([De(l,f)])}else a=new wr([ee.of({data:{}})]),t=this.prepareContext(t);var v=this.transform(e).clientQuery;return v&&(a=ir(a,(function(e){return s.localState.runResolvers({document:v,remoteResult:e,context:t,variables:r})}))),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(this.transform(e.document).document);return ir(this.getObservableFromLink(i,r.context,r.variables),(function(o){var a=ar(o),s=a.length>0;if(n>
1=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new Xe({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:Er.ready};return s&&"ignore"!==r.errorPolicy&&(c.errors=a,c.networkStatus=Er.error),c}),(function(t){var r=t.hasOwnProperty("graphQLErrors")?t:new Xe({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchQueryObservable=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast},e.prototype.fetchConcastWithInfo=function(e,t,r){var n=this;void 0===r&&(r=Er.loading);var i,o,a=this.transform(t.query).document,s=this.getVariables(a,t.variables),c=this.getQuery(e),u=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?u&&u.fetchPolicy||"cache-first":l,h=t.errorPolicy,p=void 0===h?u&&u.errorPolicy||"none":h,d=t.returnPartialData,v=void 0!==d&&d,y=t.notifyOnNetworkStatusChange,m=void 0!==y&&y,g=t.context,b=void 0===g?{}:g,_=Object.assign({},t,{query:a,variables:s,fetchPolicy:f,errorPolicy:p,returnPartialData:v,notifyOnNetworkStatusChange:m,context:b}),E=function(e){_.variables=e;var i=n.fetchQueryByPolicy(c,_,r);return"standby"!==_.fetchPolicy&&i.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),i},w=function(){return n.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){w(),setTimeout((function(){return i.cancel(e)}))})),this.transform(_.query).hasClientExports)i=new wr(this.localState.addExportedVariables(_.query,_.variables,_.context).then(E).then((function(e){return e.sources}))),o=!0;else{var O=E(_.variables);o=O.fromLink,i=new wr(O.sources)}return i.promise.then(w,w),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?mr("refetchQueries"):void 0:a,c=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach((function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})}));var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof Dn&&e.watcher.observableQuery;if(n){if(c){u.delete(n.queryId);var i=c(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==c&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach((function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=c(i,a,o)}c&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)})),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,o=t.query,a=t.variables,s=t.fetchPolicy,c=t.refetchWritePolicy,u=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||Er.loading);var s=t.result;!__DEV__||l||Bt(s,{})||Cr(t.missing);var c=function(e){return ee.of(i({data:e,loading:Or(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&n.transform(o).hasForcedResolvers?n.localState.runResolvers({document:o,remoteResult:{data:s},context:f,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return c(e.data||void 0)})):"none"===u&&r===Er.refetch&&Array.isArray(t.missing)?c(void 0):c(s)},y="no-cache"===s?0:r===Er.refetch&&"merge"!==c?1:2,m=function(){return n.getResultsFromLink(e,y,{variables:a,context:f,fetchPolicy:s,errorPolicy:u})},g=h&&"number"==typeof p&&p!==r&&Or(r);switch(s){default:case"cache-first":return(b=d()).complete?{fromLink:!1,sources:[v(b,e.markReady())]}:l||g?{fromLink:!0,sources:[v(b),m()]}:{fromLink:!0,sources:[m()]};case"cache-and-network":var b;return(b=d()).complete||l||g?{fromLink:!0,sources:[v(b),m()]}:{fromLink:!0,sources:[m()]};case"cache-only":return{fromLink:!1,sources:[v(d(),e.markReady())]};case"network-only":return g?{fromLink:!0,sources:[v(d()),m()]}:{fromLink:!0,sources:[m()]};case"no-cache":return g?{fromLink:!0,sources:[v(e.getDiff()),m()]}:{fromLink:!0,sources:[m()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Dn(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return i(i({},t),{clientAwareness:this.clientAwareness})},e}();function Rn(e,t){return Tr(e,t,t.variables&&{variables:i(i({},e&&e.variables),t.variables)})}var Cn=!1,Fn=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,c=e.ssrForceFetchDelay,u=void 0===c?0:c,l=e.connectToDevTools,f=void 0===l?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:l,d=e.queryDeduplication,v=void 0===d||d,y=e.defaultOptions,m=e.assumeImmutableResults,g=void 0!==m&&m,b=e.resolvers,_=e.typeDefs,E=e.fragmentMatcher,w=e.name,O=e.version,k=e.link;if(k||(k=r?new jt({uri:r,credentials:n,headers:i}):Te.empty()),!o)throw __DEV__?new h("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 h(9);if(this.link=k,this.cache=o,this.disableNetworkFetches=s||u>0,this.queryDeduplication=v,this.defaultOptions=y||Object.create(null),this.typeDefs=_,u&&setTimeout((function(){return t.disableNetworkFetches=!1}),u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Cn&&f&&__DEV__&&(Cn=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,x=S&&S.userAgent,T=void 0;"string"==typeof x&&(x.indexOf("Chrome/")>-1?T="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":x.indexOf("Firefox/")>-1&&(T="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),T&&__DEV__&&p.log("Download the Apollo DevTools for a better development experience: "+T)}this.version="3.7.14",this.localState=new kn({cache:o,client:this,resolvers:b,fragmentMatcher:E}),this.queryManager=new An({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:v,ssrMode:s,clientAwareness:{name:w,version:O},localState:this.localState,assumeImmutableResults:g,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Rn(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=i(i({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Rn(this.defaultOptions.query,e)),__DEV__?p("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."):p("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=i(i({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Rn(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return De(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__&&p.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}(),Pn=function(){function e(){this.getFragmentDoc=gn(re)}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.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(i(i({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(i(i({},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=o(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,a=o(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{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),o=t(n);return null==o?n:(r.writeQuery(i(i({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),o=t(n);return null==o?n:(r.writeFragment(i(i({},e),{data:o})),o)}})},e}(),Ln=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=((a={})[s.path[c]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return n(t,e),t}(Error);function jn(e){var t=new Set([e]);return t.forEach((function(e){te(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){te(e[r])&&t.add(e[r])}))})),e}function Mn(e){return __DEV__&&jn(e),e}var qn=Object.prototype.hasOwnProperty;function Vn(e){return null==e}function Qn(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=Vn(n)?Vn(i)?void 0:{_id:i}:{id:n}),Vn(n)&&!Vn(i)&&(n=i),!Vn(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var Bn={dataIdFromObject:Qn,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Un(e){var t=e.canonizeResults;return void 0===t?Bn.canonizeResults:t}var zn=/^[_a-z][_0-9a-z]*/i;function Gn(e){var t=e.match(zn);return t?t[0]:e}function Wn(e,t,r){return!!te(t)&&(Ze(t)?t.every((function(t){return Wn(e,t,r)})):e.selections.every((function(e){if(ve(e)&&qe(e,r)){var n=pe(e);return qn.call(t,n)&&(!e.selectionSet||Wn(e.selectionSet,t[n],r))}return!0})))}function Kn(e){return te(e)&&!ae(e)&&!Ze(e)}function Yn(e,t){var r=ne(be(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var Jn=Object.create(null),$n=function(){return Jn},Hn=Object.create(null),Xn=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 Mn(ae(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return ae(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return oe(e);if(ae(e))return e;var n=r.policies.identify(e)[0];if(n){var i=oe(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return i({},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),qn.call(this.data,e)){var r=this.data[e];if(r&&qn.call(r,t))return r[t]}return"__typename"===t&&qn.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof ri?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),qn.call(this.data,e)?this.data[e]:this instanceof ri?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;ae(e)&&(e=e.__ref),ae(t)&&(t=t.__ref);
1var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){__DEV__?p("string"==typeof r,"store.merge expects a string ID"):p("string"==typeof r,1);var a=new ot(ii).merge(i,o);if(this.data[r]=a,a!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=Gn(e);t===e||n.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||n instanceof ri||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[r]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var o=Object.create(null),a=!1,s=!0,c={DELETE:Jn,INVALIDATE:Hn,isReference:ae,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||oe(e)}:t,{store:r})}};if(Object.keys(n).forEach((function(u){var l=Gn(u),f=n[u];if(void 0!==f){var h="function"==typeof t?t:t[u]||t[l];if(h){var p=h===$n?Jn:h(Mn(f),i(i({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(e,u)}));p===Hn?r.group.dirty(e,u):(p===Jn&&(p=void 0),p!==f&&(o[u]=p,a=!0,f=p))}void 0!==f&&(s=!1)}})),a)return this.merge(e,o),s&&(this instanceof ri?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=$n,n):$n)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(qn.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof ri&&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){qn.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&&qn.call(e,r)||t.delete(r)})),e){var r=e.__META,n=o(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 ri?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){qn.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 ri;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!qn.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){ae(e)&&(t[e.__ref]=!0),te(e)&&Object.keys(e).forEach((function(t){var r=e[t];te(r)&&n.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Zn=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?vn():null,this.keyMaker=new Xt(Ue)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(ei(e,t));var r=Gn(t);r!==t&&this.d(ei(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(ei(e,t),"__exists"===t?"forget":"setDirty")},e}();function ei(e,t){return t+"#"+e}function ti(e,t){oi(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,a=e.call(this,r,new Zn(i))||this;return a.stump=new ni(a),a.storageTrie=new Xt(Ue),o&&a.replace(o),a}return n(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}(Xn||(Xn={}));var ri=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 n(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){Bt(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 i(i({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return qn.call(this.data,t)?i(i({},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}(Xn),ni=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new Zn(t.group.caching,t.group))||this}return n(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(ri);function ii(e,t,r){var n=e[r],i=t[r];return Bt(n,i)?n:i}function oi(e){return!!(e instanceof Xn&&e.group.caching)}function ai(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var si=function(){function e(e){var t=this;this.knownResults=new(Ue?WeakMap:Map),this.config=Tr(e,{addTypename:!1!==e.addTypename,canonizeResults:Un(e)}),this.canon=e.canon||new tr,this.executeSelectionSet=gn((function(e){var r,n=e.context.canonizeResults,o=ai(e);o[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,o);return a?n?i(i({},a),{result:t.canon.admit(a.result)}):a:(ti(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:ai,makeCacheKey:function(e,t,r,n){if(oi(r.store))return r.store.makeCacheKey(e,ae(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=gn((function(e){return ti(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(oi(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new tr},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,o=void 0===n?"ROOT_QUERY":n,a=e.variables,s=e.returnPartialData,c=void 0===s||s,u=e.canonizeResults,l=void 0===u?this.config.canonizeResults:u,f=this.config.cache.policies;a=i(i({},we(_e(r))),a);var h,p=oe(o),d=this.executeSelectionSet({selectionSet:Ee(r).selectionSet,objectOrReference:p,enclosingRef:p,context:i({store:t,query:r,policies:f,variables:a,varString:rr(a),canonizeResults:l},Yn(r,this.config.fragments))});if(d.missing&&(h=[new Ln(ci(d.missing),d.missing,r,a)],!c))throw h[0];return{result:d.result,complete:!h,missing:h}},e.prototype.isFresh=function(e,t,r,n){if(oi(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,i=e.enclosingRef,o=e.context;if(ae(n)&&!o.policies.rootTypenamesById[n.__ref]&&!o.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var a,s=o.variables,c=o.policies,u=o.store.getFieldValue(n,"__typename"),l=[],f=new ot;function p(e,t){var r;return e.missing&&(a=f.merge(a,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof u&&!c.rootIdsByTypename[u]&&l.push({__typename:u});var d=new Set(r.selections);d.forEach((function(e){var r,v;if(qe(e,s))if(ve(e)){var y=c.readField({fieldName:e.name.value,field:e,variables:o.variables,from:n},o),m=pe(e);void 0===y?pr.added(e)||(a=f.merge(a,((r={})[m]="Can't find field '".concat(e.name.value,"' on ").concat(ae(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):Ze(y)?y=p(t.executeSubSelectedArray({field:e,array:y,enclosingRef:i,context:o}),m):e.selectionSet?null!=y&&(y=p(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,enclosingRef:ae(y)?y:i,context:o}),m)):o.canonizeResults&&(y=t.canon.pass(y)),void 0!==y&&l.push(((v={})[m]=y,v))}else{var g=ie(e,o.lookupFragment);if(!g&&e.kind===Pe.FRAGMENT_SPREAD)throw __DEV__?new h("No fragment named ".concat(e.name.value)):new h(5);g&&c.fragmentMatches(g,u)&&g.selectionSet.selections.forEach(d.add,d)}}));var v={result:nt(l),missing:a},y=o.canonizeResults?this.canon.admit(v):Mn(v);return y.result&&this.knownResults.set(y.result,r),y},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new ot;function c(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:Ze(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:a}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:ae(e)?e:o,context:a}),t):(__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);
1n.forEach((function(r){te(r)&&(__DEV__?p(!ae(r),"Missing selection set for object of type ".concat(function(e,t){return ae(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r)," returned for query field ").concat(t.name.value)):p(!ae(r),6),Object.values(r).forEach(n.add,n))}))}}(a.store,n,e),e)})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function ci(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var ui=Object.create(null);function li(e){var t=JSON.stringify(e);return ui[t]||(ui[t]=Object.create(null))}function fi(e){var t=li(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=pi(e,(function(e){var i=yi(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&qn.call(t,e[0])&&(i=yi(t,e,vi)),__DEV__?p(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):p(void 0!==i,2),i}));return"".concat(r.typename,":").concat(JSON.str
1ingify(i))})}function hi(e){var t=li(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=pi(e,(function(e){var r=e[0],o=r.charAt(0);if("@"!==o)if("$"!==o){if(t)return yi(t,e)}else{var a=r.slice(1);if(i&&qn.call(i,a)){var s=e.slice(0);return s[0]=a,yi(i,s)}}else if(n&&et(n.directives)){var c=r.slice(1),u=n.directives.find((function(e){return e.name.value===c})),l=u&&he(u,i);return l&&yi(l,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function pi(e,t){var r=new ot;return di(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 di(e){var t=li(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,i){Ze(t)?(di(t).forEach((function(e){return r.push(n.concat(e))})),n.length=0):(n.push(t),Ze(e[i+1])||(r.push(n.slice(0)),n.length=0))}))}return t.paths}function vi(e,t){return e[t]}function yi(e,t,r){return r=r||vi,mi(t.reduce((function e(t,n){return Ze(t)?t.map((function(t){return e(t,n)})):t&&r(t,n)}),e))}function mi(e){return te(e)?Ze(e)?e.map(mi):pi(Object.keys(e).sort(),(function(t){return yi(e,t)})):e}function gi(e){return void 0!==e.args?e.args:e.field?he(e.field,e.variables):null}ue.setStringify(rr);var bi=function(){},_i=function(e,t){return t.fieldName},Ei=function(e,t,r){return(0,r.mergeObjects)(e,t)},wi=function(e,t){return t},Oi=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=i({dataIdFromObject:Qn},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=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,s=t&&t.storeObject||e,c=i(i({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=Si(arguments,s);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),u=o&&this.getTypePolicy(o),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var f=l(e,c);if(!Ze(f)){a=f;break}l=fi(f)}return a=a?String(a):void 0,c.keyObject?[a,c.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var n=e[r],i=n.queryType,a=n.mutationType,s=n.subscriptionType,c=o(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),qn.call(t.toBeAdded,r)?t.toBeAdded[r].push(c):t.toBeAdded[r]=[c]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?Ei:!1===t?wi:e.merge}a(n,t.merge),n.keyFn=!1===i?bi:Ze(i)?fi(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach((function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,c=i.read,u=i.merge;n.keyFn=!1===s?_i:Ze(s)?hi(s):"function"==typeof s?s:n.keyFn,"function"==typeof c&&(n.read=c),a(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||_i)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(__DEV__?p(!n||n===e,"Cannot change root ".concat(e," __typename more than once")):p(!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(zn);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;
1if(!qn.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,a=o(n,["fields"]);Object.assign(r,a),Object.assign(r.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(r){t.updateTypePolicy(e,r)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},u=!(!r||!this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var h=s[f];if(h.has(o))return a.has(o)||(l&&__DEV__&&p.warn("Inferring subtype ".concat(t," of supertype ").concat(o)),a.add(o)),!0;h.forEach(c),u&&f===s.length-1&&Wn(e.selectionSet,r,n)&&(u=!1,l=!0,this.fuzzySubtypes.forEach((function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=gi(e);o;){var c=o(s,a);if(!Ze(c)){t=c||n;break}o=hi(c)}return void 0===t&&(t=e.field?function(e,t){var r=null;e.directives&&(r={},e.directives.forEach((function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach((function(n){var i=n.name,o=n.value;return se(r[e.name.value],i,o,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return se(n,r,i,t)}))),ue(e.name.value,n,r)}(e.field,e.variables):ue(n,gi(e))),!1===t?n:n===Gn(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=Gn(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),c=s&&s.read;if(c){var u=ki(this,r,e,t,t.store.getStorage(ae(r)?r.__ref:r,i));return bn.withValue(this.cache,c,[a,u])}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===Ei?xi(n.store)(e,t):s===wi?t:(n.overwrite&&(e=void 0),s(e,t,ki(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function ki(e,t,r,n,i){var o=e.getStoreFieldName(r),a=Gn(o),s=r.variables||n.variables,c=n.store,u=c.toReference,l=c.canRead;return{args:gi(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:ae,toReference:u,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(Si(arguments,t,s),n)},mergeObjects:xi(n.store)}}function Si(e,t,r){var n,o,a,s=e[0],c=e[1],u=e.length;return"string"==typeof s?n={fieldName:s,from:u>1?c:t}:(n=i({},s),qn.call(n,"from")||(n.from=t)),__DEV__&&void 0===n.from&&__DEV__&&p.warn("Undefined 'from' passed to readField with arguments ".concat((o=Array.from(e),a=mr("stringifyForDisplay"),JSON.stringify(o,(function(e,t){return void 0===t?a:t})).split(JSON.stringify(a)).join("<undefined>")))),void 0===n.variables&&(n.variables=r),n}function xi(e){return function(t,r){if(Ze(t)||Ze(r))throw __DEV__?new h("Cannot automatically merge arrays"):new h(4);if(te(t)&&te(r)){var n=e.getFieldValue(t,"__typename"),o=e.getFieldValue(r,"__typename");if(n&&o&&n!==o)return r;if(ae(t)&&Kn(r))return e.merge(t.__ref,r),t;if(Kn(t)&&ae(r))return e.merge(t,r.__ref),r;if(Kn(t)&&Kn(r))return i(i({},t),r)}return r}}function Ti(e,t,r){var n="".concat(t).concat(r),o=e.flavors.get(n);return o||e.flavors.set(n,o=e.clientOnly===t&&e.deferred===r?e:i(i({},e),{clientOnly:t,deferred:r})),o}var Di=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,o=t.result,a=t.dataId,s=t.variables,c=t.overwrite,u=me(n),l=new ot;s=i(i({},we(u)),s);var f=i(i({store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:s,varString:rr(s)},Yn(n,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:o||Object.create(null),dataId:a,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:f});if(!ae(d))throw __DEV__?new h("Could not identify object ".concat(JSON.stringify(o))):new h(7);
1return f.incomingById.forEach((function(t,n){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=oe(n);if(o&&o.map.size){var c=r.applyMerges(o,s,i,f);if(ae(c))return;i=c}if(__DEV__&&!f.overwrite){var u=Object.create(null);a.forEach((function(e){e.selectionSet&&(u[e.name.value]=!0)}));Object.keys(i).forEach((function(e){(function(e){return!0===u[Gn(e)]})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(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)return;var a=i(t);if(!a)return;if(ae(o))return;if(Bt(o,a))return;if(Object.keys(o).every((function(e){return void 0!==n.getFieldValue(a,e)})))return;var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=Gn(r),u="".concat(s,".").concat(c);if(Fi.has(u))return;Fi.add(u);var l=[];Ze(o)||Ze(a)||[o,a].forEach((function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)}));__DEV__&&p.warn("Cache data may be lost when replacing the ".concat(c," field of a ").concat(s," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(u," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(a).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}(s,i,e,f.store)}))}e.merge(n,i)})),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,o=e.selectionSet,a=e.context,s=e.mergeTree,c=this.cache.policies,u=Object.create(null),l=r&&c.rootTypenamesById[r]||de(n,o,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"==typeof l&&(u.__typename=l);var f=function(){var e=Si(arguments,u,a.variables);if(ae(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=c.readField(i(i({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return c.readField(e,a)},h=new Set;this.flattenFields(o,n,a,l).forEach((function(e,r){var i,o=pe(r),a=n[o];if(h.add(r),void 0!==a){var d=c.getStoreFieldName({typename:l,fieldName:r.name.value,field:r,variables:e.variables}),v=Ni(s,d),y=t.processFieldValue(a,r,r.selectionSet?Ti(e,!1,!1):e,v),m=void 0;r.selectionSet&&(ae(y)||Kn(y))&&(m=f("__typename",y));var g=c.getMergeFunction(l,r.name.value,m);g?v.info={field:r,typename:l,merge:g}:Ci(s,d),u=e.merge(u,((i={})[d]=y,i))}else!__DEV__||e.clientOnly||e.deferred||pr.added(r)||c.getReadFunction(l,r.name.value)||__DEV__&&p.error("Missing field '".concat(pe(r),"' while writing result ").concat(JSON.stringify(n,null,2)).substring(0,1e3))}));try{var d=c.identify(n,{typename:l,selectionSet:o,fragmentMap:a.fragmentMap,storeObject:u,readField:f}),v=d[0],y=d[1];r=r||v,y&&(u=a.merge(u,y))}catch(e){if(!r)throw e}if("string"==typeof r){var m=oe(r),g=a.written[r]||(a.written[r]=[]);if(g.indexOf(o)>=0)return m;if(g.push(o),this.reader&&this.reader.isFresh(n,m,o,a))return m;var b=a.incomingById.get(r);return b?(b.storeObject=a.merge(b.storeObject,u),b.mergeTree=Ai(b.mergeTree,s),h.forEach((function(e){return b.fieldNodeSet.add(e)}))):a.incomingById.set(r,{storeObject:u,mergeTree:Ri(s)?void 0:s,fieldNodeSet:h}),m}return u},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?Ze(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,r,Ni(n,o));return Ci(n,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):__DEV__?Sr(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=de(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,a=new Xt(!1);return function e(s,c){var u=a.lookup(s,c.clientOnly,c.deferred);
1u.visited||(u.visited=!0,s.selections.forEach((function(a){if(qe(a,r.variables)){var s=c.clientOnly,u=c.deferred;if(s&&u||!et(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=he(e,r.variables);n&&!1===n.if||(u=!0)}})),ve(a)){var l=i.get(a);l&&(s=s&&l.clientOnly,u=u&&l.deferred),i.set(a,Ti(r,s,u))}else{var f=ie(a,r.lookupFragment);if(!f&&a.kind===Pe.FRAGMENT_SPREAD)throw __DEV__?new h("No fragment named ".concat(a.name.value)):new h(8);f&&o.fragmentMatches(f,n,t,r.variables)&&e(f.selectionSet,Ti(r,s,u))}}})))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,o){var a,s=this;if(e.map.size&&!ae(r)){var c,u=Ze(r)||!ae(t)&&!Kn(t)?void 0:t,l=r;u&&!o&&(o=[ae(u)?u.__ref:u]);var f=function(e,t){return Ze(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=f(u,t),i=f(l,t);if(void 0!==i){o&&o.push(t);var a=s.applyMerges(e,r,i,n,o);a!==i&&(c=c||new Map).set(t,a),o&&p(o.pop()===t)}})),c&&(r=Ze(l)?l.slice(0):i({},l),c.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,o&&(a=n.store).getStorage.apply(a,o)):r},e}(),Ii=[];function Ni(e,t){var r=e.map;return r.has(t)||r.set(t,Ii.pop()||{map:new Map}),r.get(t)}function Ai(e,t){if(e===t||!t||Ri(t))return e;if(!e||Ri(e))return t;var r=e.info&&t.info?i(i({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,o={info:r,map:n?new Map:e.map.size?e.map:t.map};if(n){var a=new Set(t.map.keys());e.map.forEach((function(e,r){o.map.set(r,Ai(e,t.map.get(r))),a.delete(r)})),a.forEach((function(r){o.map.set(r,Ai(t.map.get(r),e.map.get(r)))}))}return o}function Ri(e){return!e||!(e.info||e.map.size)}function Ci(e,t){var r=e.map,n=r.get(t);n&&Ri(n)&&(Ii.push(n),r.delete(t))}var Fi=new Set;var Pi=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=On,r.txCount=0,r.config=function(e){return Tr(Bn,e)}(t),r.addTypename=!!r.config.addTypename,r.policies=new Oi({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return n(t,e),t.prototype.init=function(){var e=this.data=new Xn.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new Di(this,this.storeReader=new si({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Un(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=gn((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(oi(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,rr({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(i(i({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(e){if(e instanceof Ln)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(qn.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(i(i({},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;
1return this.watches.size||En(t=this).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&&wn(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){rr.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(ae(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&p.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(qn.call(e,"id"))return!1;e=i(i({},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(),rr.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),wn(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,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,c=e.onWatchUpdated,u=function(e){var i=r,o=i.data,a=i.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=o,r.optimisticData=a}},l=new Set;return c&&!this.txCount&&this.broadcastWatches(i(i({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,u):!1===a?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&l.size?(this.broadcastWatches(i(i({},e),{onWatchUpdated:function(e,t){var r=c.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach((function(e){return 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=pr(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(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&&Bt(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(Pn);new Fn({uri:"https://o3qdvvll.api.sanity.io/v1/graphql/production/default",cache:new Pi});function Li(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const ji=/\r\n|[\n\r]/g;function Mi(e,t){let r=0,n=1;for(const i of e.body.matchAll(ji)){if("number"==typeof i.index||Li(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function qi(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?r:0,c=t.column+s,u=`${e.name}:${a}:${c}\n`,l=n.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){const e=Math.floor(c/80),t=c%80,r=[];for(let e=0;e<f.length;e+=80)r.push(f.slice(e,e+80));return u+Vi([[`${a} |`,r[0]],...r.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return u+Vi([[a-1+" |",l[i-1]],[`${a} |`,f],["|","^".padStart(c)],[`${a+1} |`,l[i+1]]])}function Vi(e){const t=e.filter((([e,t])=>void 0!==t)),r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}class Qi extends Error{constructor(e,...t){var r,n,i;const{nodes:o,source:a,positions:s,path:c,originalError:u,extensions:l}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=u?u:void 0,this.nodes=Bi(Array.isArray(o)?o:o?[o]:void 0);const f=Bi(null===(r=this.nodes)||void 0===r?void 0:r.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=a?a:null==f||null===(n=f[0])||void 0===n?void 0:n.source,this.positions=null!=s?s:null==f?void 0:f.map((e=>e.start)),this.locations=s&&a?s.map((e=>Mi(a,e))):null==f?void 0:f.map((e=>Mi(e.source,e.start)));const h="object"==typeof(p=null==u?void 0:u.extensions)&&null!==p?null==u?void 0:u.extensions:void 0;var p;this.extensions=null!==(i=null!=l?l:h)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Qi):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(e+="\n\n"+qi((t=r.loc).source,Mi(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+qi(this.source,t);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Bi(e){return void 0===e||0===e.length?void 0:e}function Ui(e,t,r){return new Qi(`Syntax Error: ${r}`,{source:e,positions:[t]})}var zi,Gi;!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(zi||(zi={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}
vendor: 26,516 bytes, lines 1-148
1",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(Gi||(Gi={}));class Wi{constructor(e){const t=new Ne(Gi.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==Gi.EOF)do{if(e.next)e=e.next;else{const t=Zi(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===Gi.COMMENT);return e}}function Ki(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Yi(e,t){return Ji(e.charCodeAt(t))&&$i(e.charCodeAt(t+1))}function Ji(e){return e>=55296&&e<=56319}function $i(e){return e>=56320&&e<=57343}function Hi(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return Gi.EOF;if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function Xi(e,t,r,n,i){const o=e.line,a=1+r-e.lineStart;return new Ne(t,r,n,o,a,i)}function Zi(e,t){const r=e.source.body,n=r.length;let i=t;for(;i<n;){const t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return eo(e,i);case 33:return Xi(e,Gi.BANG,i,i+1);case 36:return Xi(e,Gi.DOLLAR,i,i+1);case 38:return Xi(e,Gi.AMP,i,i+1);case 40:return Xi(e,Gi.PAREN_L,i,i+1);case 41:return Xi(e,Gi.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return Xi(e,Gi.SPREAD,i,i+3);break;case 58:return Xi(e,Gi.COLON,i,i+1);case 61:return Xi(e,Gi.EQUALS,i,i+1);case 64:return Xi(e,Gi.AT,i,i+1);case 91:return Xi(e,Gi.BRACKET_L,i,i+1);case 93:return Xi(e,Gi.BRACKET_R,i,i+1);case 123:return Xi(e,Gi.BRACE_L,i,i+1);case 124:return Xi(e,Gi.PIPE,i,i+1);case 125:return Xi(e,Gi.BRACE_R,i,i+1);case 34:return 34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2)?uo(e,i):no(e,i)}if(vt(t)||45===t)return to(e,i,t);if(mt(t))return lo(e,i);throw Ui(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Ki(t)||Yi(r,i)?`Unexpected character: ${Hi(e,i)}.`:`Invalid character: ${Hi(e,i)}.`)}return Xi(e,Gi.EOF,n,n)}function eo(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const e=r.charCodeAt(i);if(10===e||13===e)break;if(Ki(e))++i;else{if(!Yi(r,i))break;i+=2}}return Xi(e,Gi.COMMENT,t,i,r.slice(t+1,i))}function to(e,t,r){const n=e.source.body;let i=t,o=r,a=!1;if(45===o&&(o=n.charCodeAt(++i)),48===o){if(o=n.charCodeAt(++i),vt(o))throw Ui(e.source,i,`Invalid number, unexpected digit after 0: ${Hi(e,i)}.`)}else i=ro(e,i,o),o=n.charCodeAt(i);if(46===o&&(a=!0,o=n.charCodeAt(++i),i=ro(e,i,o),o=n.charCodeAt(i)),69!==o&&101!==o||(a=!0,o=n.charCodeAt(++i),43!==o&&45!==o||(o=n.charCodeAt(++i)),i=ro(e,i,o),o=n.charCodeAt(i)),46===o||mt(o))throw Ui(e.source,i,`Invalid number, expected digit but got: ${Hi(e,i)}.`);return Xi(e,a?Gi.FLOAT:Gi.INT,t,i,n.slice(t,i))}function ro(e,t,r){if(!vt(r))throw Ui(e.source,t,`Invalid number, expected digit but got: ${Hi(e,t)}.`);const n=e.source.body;let i=t+1;for(;vt(n.charCodeAt(i));)++i;return i}function no(e,t){const r=e.source.body,n=r.length;let i=t+1,o=i,a="";for(;i<n;){const n=r.charCodeAt(i);if(34===n)return a+=r.slice(o,i),Xi(e,Gi.STRING,t,i+1,a);if(92!==n){if(10===n||13===n)break;if(Ki(n))++i;else{if(!Yi(r,i))throw Ui(e.source,i,`Invalid character within String: ${Hi(e,i)}.`);i+=2}}else{a+=r.slice(o,i);const t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?io(e,i):oo(e,i):co(e,i);a+=t.value,i+=t.size,o=i}}throw Ui(e.source,i,"Unterminated string.")}function io(e,t){const r=e.source.body;let n=0,i=3;for(;i<12;){const e=r.charCodeAt(t+i++);if(125===e){if(i<5||!Ki(n))break;return{value:String.fromCodePoint(n),size:i}}if(n=n<<4|so(e),n<0)break}throw Ui(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}function oo(e,t){const r=e.source.body,n=ao(r,t+2);if(Ki(n))return{value:String.fromCodePoint(n),size:6};if(Ji(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){const e=ao(r,t+8);if($i(e))return{value:String.fromCodePoint(n,e),size:12}}throw Ui(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function ao(e,t){return so(e.charCodeAt(t))<<12|so(e.charCodeAt(t+1))<<8|so(e.charCodeAt(t+2))<<4|so(e.charCodeAt(t+3))}function so(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function co(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Ui(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function uo(e,t){const r=e.source.body,n=r.length;let i=e.lineStart,o=t+3,a=o,s="";const c=[];for(;o<n;){const n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){s+=r.slice(a,o),c.push(s);const n=Xi(e,Gi.BLOCK_STRING,t,o+3,bt(c).join("\n"));return e.line+=c.length-1,e.lineStart=i,n}if(92!==n||34!==r.charCodeAt(o+1)||34!==r.charCodeAt(o+2)||34!==r.charCodeAt(o+3))if(10!==n&&13!==n)if(Ki(n))++o;else{if(!Yi(r,o))throw Ui(e.source,o,`Invalid character within String: ${Hi(e,o)}.`);o+=2}else s+=r.slice(a,o),c.push(s),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;else s+=r.slice(a,o),a=o+1,o+=4}throw Ui(e.source,o,"Unterminated string.")}function lo(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){if(!gt(r.charCodeAt(i)))break;++i}return Xi(e,Gi.NAME,t,i,r.slice(t,i))}class fo{constructor(e,t={}){const r=function(e){return A(e,R)}(e)?e:new R(e);this._lexer=new Wi(r),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(Gi.NAME);return this.node(e,{kind:Pe.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:Pe.DOCUMENT,definitions:this.many(Gi.SOF,this.parseDefinition,Gi.EOF)})}parseDefinition(){if(this.peek(Gi.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===Gi.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Ui(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(Gi.BRACE_L))return this.node(e,{kind:Pe.OPERATION_DEFINITION,operation:Fe.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let r;return this.peek(Gi.NAME)&&(r=this.parseName()),this.node(e,{kind:Pe.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(Gi.NAME);switch(e.value){case"query":return Fe.QUERY;case"mutation":return Fe.MUTATION;case"subscription":return Fe.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(Gi.PAREN_L,this.parseVariableDefinition,Gi.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Pe.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Gi.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Gi.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(Gi.DOLLAR),this.node(e,{kind:Pe.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Pe.SELECTION_SET,selections:this.many(Gi.BRACE_L,this.parseSelection,Gi.BRACE_R)})}parseSelection(){return this.peek(Gi.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,n;return this.expectOptionalToken(Gi.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:Pe.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Gi.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Gi.PAREN_L,t,Gi.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(Gi.COLON),this.node(t,{kind:Pe.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(Gi.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(Gi.NAME)?this.node(e,{kind:Pe.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:Pe.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:Pe.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:Pe.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case Gi.BRACKET_L:return this.parseList(e);case Gi.BRACE_L:return this.parseObject(e);case Gi.INT:return this.advanceLexer(),this.node(t,{kind:Pe.INT,value:t.value});case Gi.FLOAT:return this.advanceLexer(),this.node(t,{kind:Pe.FLOAT,value:t.value});case Gi.STRING:case Gi.BLOCK_STRING:return this.parseStringLiteral();case Gi.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:Pe.BOOLEAN,value:!0});case"false":return this.node(t,{kind:Pe.BOOLEAN,value:!1});case"null":return this.node(t,{kind:Pe.NULL});default:return this.node(t,{kind:Pe.ENUM,value:t.value})}case Gi.DOLLAR:if(e){if(this.expectToken(Gi.DOLLAR),this._lexer.token.kind===Gi.NAME){const e=this._lexer.token.value;throw Ui(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:Pe.STRING,value:e.value,block:e.kind===Gi.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:Pe.LIST,values:this.any(Gi.BRACKET_L,(()=>this.parseValueLiteral(e)),Gi.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:Pe.OBJECT,fields:this.any(Gi.BRACE_L,(()=>this.parseObjectField(e)),Gi.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(Gi.COLON),this.node(t,{kind:Pe.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(Gi.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(Gi.AT),this.node(t,{kind:Pe.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(Gi.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(Gi.BRACKET_R),t=this.node(e,{kind:Pe.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(Gi.BANG)?this.node(e,{kind:Pe.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:Pe.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Gi.STRING)||this.peek(Gi.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(Gi.BRACE_L,this.parseOperationTypeDefinition,Gi.BRACE_R);return this.node(e,{kind:Pe.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(Gi.COLON);const r=this.parseNamedType();return this.node(e,{kind:Pe.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:Pe.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:Pe.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Gi.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Gi.BRACE_L,this.parseFieldDefinition,Gi.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(Gi.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:Pe.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(Gi.PAREN_L,this.parseInputValueDef,Gi.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(Gi.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(Gi.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:Pe.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:Pe.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:Pe.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(Gi.EQUALS)?this.delimitedMany(Gi.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:Pe.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(Gi.BRACE_L,this.parseEnumValueDefinition,Gi.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:Pe.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Ui(this._lexer.source,this._lexer.token.start,`${ho(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:Pe.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(Gi.BRACE_L,this.parseInputValueDef,Gi.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===Gi.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),r=this.optionalMany(Gi.BRACE_L,this.parseOperationTypeDefinition,Gi.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:Pe.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:Pe.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:Pe.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:Pe.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:Pe.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:Pe.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:Pe.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Gi.AT);const r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:Pe.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Gi.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(zi,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new Ie(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw Ui(this._lexer.source,t.start,`Expected ${po(e)}, found ${ho(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==Gi.NAME||t.value!==e)throw Ui(this._lexer.source,t.start,`Expected "${e}", found ${ho(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===Gi.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return Ui(this._lexer.source,t.start,`Unexpected ${ho(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==Gi.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Ui(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function ho(e){const t=e.value;return po(e.kind)+(null!=t?` "${t}"`:"")}function po(e){return function(e){return e===Gi.BANG||e===Gi.DOLLAR||e===Gi.AMP||e===Gi.PAREN_L||e===Gi.PAREN_R||e===Gi.SPREAD||e===Gi.COLON||e===Gi.EQUALS||e===Gi.AT||e===Gi.BRACKET_L||e===Gi.BRACKET_R||e===Gi.BRACE_L||e===Gi.PIPE||e===Gi.BRACE_R}(e)?`"${e}"`:e}var vo=new Map,yo=new Map,mo=!0,go=!1;function bo(e){return e.replace(/[\s,]+/g," ").trim()}function _o(e){var t=new Set,r=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=bo((a=e.loc).source.body.substring(a.start,a.end)),o=yo.get(n);o&&!o.has(i)?mo&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||yo.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var a})),i(i({},e),{definitions:r})}function Eo(e){var t=bo(e);if(!vo.has(t)){var r=function(e,t){return new fo(e,t).parseDocument()}(e,{experimentalFragmentVariables:go,allowLegacyFragmentVariables:go});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");vo.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(_o(r)))}return vo.get(t)}function wo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach((function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]})),Eo(n)}var Oo,ko=wo,So=function(){vo.clear(),yo.clear()},xo=function(){mo=!1},To=function(){go=!0},Do=function(){go=!1};(Oo=wo||(wo={})).gql=ko,Oo.resetCaches=So,Oo.disableFragmentWarnings=xo,Oo.enableExperimentalFragmentVariables=To,Oo.disableExperimentalFragmentVariables=Do,wo.default=wo;wo` 2 { 3 settings: allPageBedBuilderSettings(where: {handle: {eq: "default"}}) { 4 headerChatText 5 popupHeading: popupHeadingContent 6 popupSubHeading: popupHeadingSubContent 7 popupButton: popupContinueButonText 8 popupBundleList: popupBundleList { 9 _id 10 title 11 handle { 12 current 13 } 14 description 15 thumbnail { 16 asset { 17 url 18 } 19 } 20 } 21 landingPageSaleText 22 landingPageIcon { 23 asset { 24 url 25 } 26 } 27 landingPageHeading 28 landingPageContent 29 baseBedImage { 30 asset { 31 url 32 } 33 } 34 baseBedImageSide { 35 asset { 36 url 37 } 38 } 39 baseBedImageTop { 40 asset { 41 url 42 } 43 } 44 baseImages { 45 asset { 46 originalFilename 47 url 48 } 49 } 50 summaryIcon { 51 asset { 52 url 53 } 54 } 55 summaryEditText 56 summaryRemoveText 57 summaryPromoCodeText 58 landingPageStartCard { 59 title 60 thumbnail { 61 asset { 62 url 63 } 64 } 65 } 66 landingPageCurationCard { 67 title 68 thumbnail { 69 asset { 70 url 71 } 72 } 73 } 74 translations: productsVariantLabelTranslations { 75 text 76 replacement 77 } 78 curationsDiscountBanner 79 productsPreOrderHeading 80 productsPreOrderContent: productsPreOrderContentRaw 81 productsOutOfStockHeading 82 productsOutOfStockContent: productsOutOfStockContentRaw 83 } 84 curations: allBedBuilderPreSelected { 85 title 86 handle { 87 current 88 } 89 tags 90 thumbnail { 91 asset { 92 url 93 } 94 } 95 prestyledLink 96 product { 97 url 98 } 99 bundleType { 100 handle { 101 current 102 } 103 } 104 } 105 swatches: allSettingSwatches { 106 handle { 107 current 108 } 109 name 110 description 111 colour { 112 hex 113 } 114 image { 115 asset { 116 url 117 } 118 } 119 } 120 } 121`,wo` 122{ 123 bedBuilders: allBedBuilder { 124 title 125 handle { 126 current 127 } 128 } 129} 130`,wo` 131{ 132 swatches:allSettingSwatches { 133 _type 134 name 135 handle { 136 current 137 } 138 colour { 139 hex 140 } 141 image { 142 asset { 143 url 144 } 145 } 146 } 147} 148`;const Io="callouts {\n color\n link {\n text\n external\n internal {\n url\n shopify {\
148n handle\n }\n }\n }\n heading\n text\n position\n positionCTA\n}\n";wo` 149query ProductById($id:ID!) { 150 product:Product(id: $id) { 151 _id 152 ${Io} 153 tags 154 } 155}`,wo` 156query GetBanner { 157 banners: allSettingBanners { 158 ${Io} 159 tags 160 } 161} 162`;document.querySelectorAll("[data-collections-carousel]:not(.is-initialised)").forEach((function(t){var r,n="data-carousel-toggle",i="data-collection-carousel",o="data-carousel-active",a="data-slide-control",s="text-brand-smash-grey-1",c="text-primary-cloud",u=t.querySelectorAll("[".concat(n,"]")),l=t.querySelectorAll("[".concat(i,"]")),f=t.querySelectorAll("[".concat(a,"]"));l.forEach((function(t){var r=t.querySelector("[data-progress-bar]");!function(t,r){t.on("mount.after",(function(){e(t,r)})),t.on("run",(function(){e(t,r)})),t.mount()}(new Glide(t,{perView:3.3436,gap:32,bound:!0,breakpoints:{1024:{perView:2.069,gap:12}}}),r)})),u.forEach((function(e){var t=e.getAttribute(n);e.addEventListener("click",(function(){u.forEach((function(e){e.classList.remove(s),e.classList.add(c)})),e.classList.remove(c),e.classList.add(s),l.forEach((function(e){var r=e.getAttribute(o),n=e.getAttribute(i);"inactive"===r&&n===t?(e.setAttribute(o,"active"),e.classList.contains("h-0")&&e.classList.contains("opacity-0")&&e.classList.remove("h-0","opacity-0")):n!=t&&("active"===r&&e.setAttribute(o,"inactive"),e.classList.contains("h-0")&&e.classList.contains("opacity-0")||e.classList.add("h-0","opacity-0"))}))}))})),f.forEach((function(e){e.addEventListener("click",(function(){var r=t.querySelector("[".concat(o,'="active"]')),n=r.querySelector('[data-glide-dir="<"]'),i=r.querySelector('[data-glide-dir=">"]');"prev"===e.getAttribute(a)?n.click():"next"===e.getAttribute(a)&&i.click()}))})),(r=t).classList.contains("is-initialised")||r.classList.add("is-initialised")}))})()})();
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.