(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[3],{"/Yq/":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("q1tI"),i=r.n(n),o=new("function"===typeof WeakMap&&!("object"===typeof navigator&&"ReactNative"===navigator.product)?WeakMap:Map);function a(){var e=o.get(i.a.createContext);return e||((e=i.a.createContext({})).displayName="ApolloContext",o.set(i.a.createContext,e)),e}},"3UD+":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},"3niX":function(e,t,r){"use strict";t.__esModule=!0,t.flush=function(){var e=o.cssRules();return o.flush(),e},t.default=void 0;var n,i=r("q1tI");var o=new(((n=r("SevZ"))&&n.__esModule?n:{default:n}).default),a=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).prevProps={},r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n.dynamic=function(e){return e.map((function(e){var t=e[0],r=e[1];return o.computeId(t,r)})).join(" ")};var i=n.prototype;return i.shouldComponentUpdate=function(e){return this.props.id!==e.id||String(this.props.dynamic)!==String(e.dynamic)},i.componentWillUnmount=function(){o.remove(this.props)},i.render=function(){return this.shouldComponentUpdate(this.prevProps)&&(this.prevProps.id&&o.remove(this.prevProps),o.add(this.props),this.prevProps=this.props),null},n}(i.Component);t.default=a},"4gQ6":function(e,t,r){"use strict";var n=r("q1tI"),i=r.n(n),o=r("5jUE"),a=r.n(o),s=r("LIIV"),c=r("K/JX"),u=r("OCfw"),l=r("/Yq/"),f=function(e){var t=e.client,r=e.children,n=Object(l.a)();return i.a.createElement(n.Consumer,null,(function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),Object(u.a)(e.client,28),i.a.createElement(n.Provider,{value:e},r)}))},p=i.a.createElement;t.a=a()((function(e){var t=e.initialState;return new s.a({uri:"https://api.elpashaw.com/graphql/",cache:(new c.a).restore(t||{})})}),{render:function(e){var t=e.Page,r=e.props;return p(f,{client:r.apollo},p(t,r))}})},"4xQG":function(e,t,r){"use strict";r.d(t,"a",(function(){return j}));var n=r("mrSG"),i=r("q1tI"),o=Object.prototype,a=o.toString,s=o.hasOwnProperty,c=Function.prototype.toString,u=new Map;function l(e,t){try{return function e(t,r){if(t===r)return!0;var n=a.call(t),i=a.call(r);if(n!==i)return!1;switch(n){case"[object Array]":if(t.length!==r.length)return!1;case"[object Object]":if(d(t,r))return!0;var o=f(t),u=f(r),l=o.length;if(l!==u.length)return!1;for(var p=0;p=0&&e.indexOf(t,r)===r}(E,h)}return!1}(e,t)}finally{u.clear()}}function f(e){return Object.keys(e).filter(p,e)}function p(e){return void 0!==this[e]}var h="{ [native code] }";function d(e,t){var r=u.get(e);if(r){if(r.has(t))return!0}else u.set(e,r=new Set);return r.add(t),!1}var v,y=function(e){var t,r="";return t=e.graphQLErrors,Array.isArray(t)&&t.length>0&&e.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";r+=t+"\n"})),e.networkError&&(r+=e.networkError.message+"\n"),r=r.replace(/\n$/,"")},b=function(e){function t(r){var n=r.graphQLErrors,i=r.networkError,o=r.errorMessage,a=r.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=n||[],s.networkError=i||null,s.message=o||y(s),s.extraInfo=a,s.__proto__=t.prototype,s}return Object(n.c)(t,e),t}(Error);!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"}(v||(v={}));var m,g=r("OCfw");!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(m||(m={}));var O=new Map;function x(e){var t;switch(e){case m.Query:t="Query";break;case m.Mutation:t="Mutation";break;case m.Subscription:t="Subscription"}return t}var w=function(e){function t(t){var r=t.options,i=t.context,o=t.onNewData,a=e.call(this,r,i)||this;return a.runLazy=!1,a.previous=Object.create(null),a.runLazyQuery=function(e){a.cleanup(),a.runLazy=!0,a.lazyOptions=e,a.onNewData()},a.getQueryResult=function(){var e=a.observableQueryFields(),t=a.getOptions();if(t.skip)e=Object(n.a)(Object(n.a)({},e),{data:void 0,error:void 0,loading:!1,networkStatus:v.ready,called:!0});else if(a.currentObservable){var r=a.currentObservable.getCurrentResult(),i=r.data,o=r.loading,s=r.partial,c=r.networkStatus,u=r.errors,l=r.error;if(u&&u.length>0&&(l=new b({graphQLErrors:u})),e=Object(n.a)(Object(n.a)({},e),{data:i,loading:o,networkStatus:c,error:l,called:!0}),o);else if(l)Object.assign(e,{data:(a.currentObservable.getLastResult()||{}).data});else{var f=a.currentObservable.options.fetchPolicy;if(t.partialRefetch&&s&&(!i||0===Object.keys(i).length)&&"cache-only"!==f)return Object.assign(e,{loading:!0,networkStatus:v.loading}),e.refetch(),e}}e.client=a.client,a.setOptions(t,!0);var p=a.previous.result;return a.previous.loading=p&&p.loading||!1,e.previousData=p&&(p.data||p.previousData),a.previous.result=e,a.currentObservable&&a.currentObservable.resetQueryStoreErrors(),e},a.obsRefetch=function(e){var t;return null===(t=a.currentObservable)||void 0===t?void 0:t.refetch(e)},a.obsFetchMore=function(e){return a.currentObservable.fetchMore(e)},a.obsUpdateQuery=function(e){return a.currentObservable.updateQuery(e)},a.obsStartPolling=function(e){var t;null===(t=a.currentObservable)||void 0===t||t.startPolling(e)},a.obsStopPolling=function(){var e;null===(e=a.currentObservable)||void 0===e||e.stopPolling()},a.obsSubscribeToMore=function(e){return a.currentObservable.subscribeToMore(e)},a.onNewData=o,a}return Object(n.c)(t,e),t.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,r=e.query;return(t||r!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!t),this.previous.query=r),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},t.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:v.ready,called:!1,data:void 0}]},t.prototype.fetchData=function(){var e=this,t=this.getOptions();return!t.skip&&!1!==t.ssr&&new Promise((function(t){return e.startQuerySubscription(t)}))},t.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,r=void 0!==t&&t;return this.isMounted=!0,r&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},t.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},t.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=Object(n.a)(Object(n.a)({},t.variables),this.lazyOptions.variables),t.context=Object(n.a)(Object(n.a)({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},t.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},t.prototype.getExecuteResult=function(){var e=this.getQueryResult();return this.startQuerySubscription(),e},t.prototype.getExecuteSsrResult=function(){var e=this.getOptions(),t=e.ssr,r=e.skip,i=!1===t,o=this.refreshClient().client.disableNetworkFetches,a=Object(n.a)({loading:!0,networkStatus:v.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(i&&(this.ssrInitiated()||o))return this.previous.result=a,a;if(this.ssrInitiated()){var s=this.getQueryResult()||a;return s.loading&&!r&&this.context.renderPromises.addQueryPromise(this,(function(){return null})),s}},t.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,m.Query);var t=e.displayName||"Query";return!this.ssrInitiated()||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e.fetchPolicy="cache-first"),Object(n.a)(Object(n.a)({},e),{displayName:t,context:e.context})},t.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var e=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=Object(n.a)(Object(n.a)({},e),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery(Object(n.a)({},e)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,e)}},t.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var e=Object(n.a)(Object(n.a)({},this.prepareObservableQueryOptions()),{children:null});l(e,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=e,this.currentObservable.setOptions(e).catch((function(){})))}}else this.initializeObservableQuery()},t.prototype.startQuerySubscription=function(e){var t=this;void 0===e&&(e=this.onNewData),this.currentSubscription||this.getOptions().skip||(this.currentSubscription=this.currentObservable.subscribe({next:function(r){var n=r.loading,i=r.networkStatus,o=r.data,a=t.previous.result;a&&a.loading===n&&a.networkStatus===i&&l(a.data,o)||e()},error:function(r){if(t.resubscribeToQuery(),!r.hasOwnProperty("graphQLErrors"))throw r;var n=t.previous.result;(n&&n.loading||!l(r,t.previous.error))&&(t.previous.error=r,e())}}))},t.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable;if(e){var t=e.getLastError(),r=e.getLastResult();e.resetLastResults(),this.startQuerySubscription(),Object.assign(e,{lastError:t,lastResult:r})}},t.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var e=this.previous.result,t=e.data,r=e.loading,n=e.error;if(!r){var i=this.getOptions(),o=i.query,a=i.variables,s=i.onCompleted,c=i.onError,u=i.skip;if(this.previousOptions&&!this.previous.loading&&l(this.previousOptions.query,o)&&l(this.previousOptions.variables,a))return;!s||n||u?c&&n&&c(n):s(t)}}},t.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},t.prototype.removeObservable=function(e){this.currentObservable&&(this.currentObservable.tearDownQuery(),e&&delete this.currentObservable)},t.prototype.observableQueryFields=function(){var e;return{variables:null===(e=this.currentObservable)||void 0===e?void 0:e.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},t}(function(){function e(e,t){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=e||{},this.context=t||{}}return e.prototype.getOptions=function(){return this.options},e.prototype.setOptions=function(e,t){void 0===t&&(t=!1),t&&!l(this.options,e)&&(this.previousOptions=this.options),this.options=e},e.prototype.unmount=function(){this.isMounted=!1},e.prototype.refreshClient=function(){var e=this.options&&this.options.client||this.context&&this.context.client;Object(g.a)(!!e,29);var t=!1;return e!==this.client&&(t=!0,this.client=e,this.cleanup()),{client:this.client,isNew:t}},e.prototype.verifyDocumentType=function(e,t){var r=function(e){var t,r,n=O.get(e);if(n)return n;Object(g.a)(!!e&&!!e.kind,34);var i=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),o=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),a=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),s=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));Object(g.a)(!i.length||o.length||a.length||s.length,35),Object(g.a)(o.length+a.length+s.length<=1,36),r=o.length?m.Query:m.Mutation,o.length||a.length||(r=m.Subscription);var c=o.length?o:a.length?a:s;Object(g.a)(1===c.length,37);var u=c[0];t=u.variableDefinitions||[];var l={name:u.name&&"Name"===u.name.kind?u.name.value:"data",type:r,variables:t};return O.set(e,l),l}(e);x(t),x(r.type);Object(g.a)(r.type===t,30)},e}());var E=r("/Yq/");function S(e,t,r){void 0===r&&(r=!1);var o=Object(i.useContext)(Object(E.a)()),a=Object(i.useReducer)((function(e){return e+1}),0),s=a[0],c=a[1],u=t?Object(n.a)(Object(n.a)({},t),{query:e}):{query:e},f=Object(i.useRef)(),p=f.current||(f.current=new w({options:u,context:o,onNewData:function(){p.ssrInitiated()?c():Promise.resolve().then((function(){return f.current&&c()}))}}));p.setOptions(u),p.context=o;var h=function(e,t){var r=Object(i.useRef)();return r.current&&l(t,r.current.key)||(r.current={key:t,value:e()}),r.current.value}((function(){return r?p.executeLazy():p.execute()}),{options:Object(n.a)(Object(n.a)({},u),{onError:void 0,onCompleted:void 0}),context:o,tick:s}),d=r?h[1]:h;return Object(i.useEffect)((function(){return function(){return p.cleanup()}}),[]),Object(i.useEffect)((function(){return p.afterExecute({lazy:r})}),[d.loading,d.networkStatus,d.error,d.data]),h}function j(e,t){return S(e,t,!1)}},"5jUE":function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r("6DXQ"));t.withApollo=i.default;var o=r("xGF7");t.initApollo=o.default,t.default=i.default},"6DXQ":function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1)for(var r=1;r>>0}},"9x6x":function(e,t,r){"use strict";e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var r,n="boolean"===typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"===typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!==typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")}function i(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a=!n||o||r,s="";return!a||n&&i||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a}))},BX9R:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,a=new Map;function s(e,t){try{return function e(t,r){if(t===r)return!0;var n=i.call(t),a=i.call(r);if(n!==a)return!1;switch(n){case"[object Array]":if(t.length!==r.length)return!1;case"[object Object]":if(c(t,r))return!0;var s=Object.keys(t),u=Object.keys(r),l=s.length;if(l!==u.length)return!1;for(var f=0;f1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,o.a&&(e.prototype[o.a]=t)}function s(e){return(s="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)}function c(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,o=t+1;(r=n.exec(e.body))&&r.index120){for(var d=Math.floor(c/80),v=c%80,y=[],b=0;b0||i(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||i(0,"column in locationOffset is 1-indexed and must be positive")};y=b,"function"===typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(y.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}});var m=r("BLR7"),g=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function O(){return this.lastToken=this.token,this.token=this.lookahead()}function x(){var e=this.token;if(e.kind!==g.EOF)do{e=e.next||(e.next=S(this,e))}while(e.kind===g.COMMENT);return e}function w(e,t,r,n,i,o,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=o,this.next=null}function E(e){return isNaN(e)?g.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function S(e,t){var r=e.source,n=r.body,i=n.length,o=function(e,t,r){var n=e.length,i=t;for(;i=i)return new w(g.EOF,i,i,a,s,t);var c=n.charCodeAt(o);switch(c){case 33:return new w(g.BANG,o,o+1,a,s,t);case 35:return function(e,t,r,n,i){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new w(g.COMMENT,t,s,r,n,i,a.slice(t+1,s))}(r,o,a,s,t);case 36:return new w(g.DOLLAR,o,o+1,a,s,t);case 38:return new w(g.AMP,o,o+1,a,s,t);case 40:return new w(g.PAREN_L,o,o+1,a,s,t);case 41:return new w(g.PAREN_R,o,o+1,a,s,t);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return new w(g.SPREAD,o,o+3,a,s,t);break;case 58:return new w(g.COLON,o,o+1,a,s,t);case 61:return new w(g.EQUALS,o,o+1,a,s,t);case 64:return new w(g.AT,o,o+1,a,s,t);case 91:return new w(g.BRACKET_L,o,o+1,a,s,t);case 93:return new w(g.BRACKET_R,o,o+1,a,s,t);case 123:return new w(g.BRACE_L,o,o+1,a,s,t);case 124:return new w(g.PIPE,o,o+1,a,s,t);case 125:return new w(g.BRACE_R,o,o+1,a,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,r,n,i){var o=e.body,a=o.length,s=t+1,c=0;for(;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new w(g.NAME,t,s,r,n,i,o.slice(t,s))}(r,o,a,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,r,n,i,o){var a=e.body,s=r,c=t,u=!1;45===s&&(s=a.charCodeAt(++c));if(48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw d(e,c,"Invalid number, unexpected digit after 0: ".concat(E(s),"."))}else c=j(e,c,s),s=a.charCodeAt(c);46===s&&(u=!0,s=a.charCodeAt(++c),c=j(e,c,s),s=a.charCodeAt(c));69!==s&&101!==s||(u=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=j(e,c,s),s=a.charCodeAt(c));if(46===s||69===s||101===s)throw d(e,c,"Invalid number, expected digit but got: ".concat(E(s),"."));return new w(u?g.FLOAT:g.INT,t,c,n,i,o,a.slice(t,c))}(r,o,c,a,s,t);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?function(e,t,r,n,i,o){var a=e.body,s=t+3,c=s,u=0,l="";for(;s=48&&o<=57){do{o=n.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw d(e,i,"Invalid number, expected digit but got: ".concat(E(o),"."))}function k(e,t,r,n){return T(e)<<12|T(t)<<8|T(r)<<4|T(n)}function T(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}a(w,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}));var _=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function I(e,t){return new D(e,t).parseDocument()}function N(e,t){var r=new D(e,t);r.expectToken(g.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(g.EOF),n}function R(e,t){var r=new D(e,t);r.expectToken(g.SOF);var n=r.parseTypeReference();return r.expectToken(g.EOF),n}var D=function(){function e(e,t){var r="string"===typeof e?new b(e):e;r instanceof b||i(0,"Must provide Source. Received: ".concat(Object(n.a)(r))),this._lexer=function(e,t){var r=new w(g.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:r,token:r,line:1,lineStart:0,advance:O,lookahead:x}}(r),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(g.NAME);return{kind:v.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:v.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(g.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(g.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(g.BRACE_L))return{kind:v.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,r=this.parseOperationType();return this.peek(g.NAME)&&(t=this.parseName()),{kind:v.OPERATION_DEFINITION,operation:r,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(g.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:v.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(g.DOLLAR),{kind:v.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:v.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(g.COLON)?(e=n,t=this.parseName()):t=n,{kind:v.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(g.PAREN_L,t,g.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(g.COLON),{kind:v.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:v.ARGUMENT,name:this.parseName(),value:(this.expectToken(g.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(g.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(g.NAME)?{kind:v.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:v.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:v.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:v.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case g.BRACKET_L:return this.parseList(e);case g.BRACE_L:return this.parseObject(e);case g.INT:return this._lexer.advance(),{kind:v.INT,value:t.value,loc:this.loc(t)};case g.FLOAT:return this._lexer.advance(),{kind:v.FLOAT,value:t.value,loc:this.loc(t)};case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:return"true"===t.value||"false"===t.value?(this._lexer.advance(),{kind:v.BOOLEAN,value:"true"===t.value,loc:this.loc(t)}):"null"===t.value?(this._lexer.advance(),{kind:v.NULL,loc:this.loc(t)}):(this._lexer.advance(),{kind:v.ENUM,value:t.value,loc:this.loc(t)});case g.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:v.STRING,value:e.value,block:e.kind===g.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:v.LIST,values:this.any(g.BRACKET_L,(function(){return t.parseValueLiteral(e)}),g.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:v.OBJECT,fields:this.any(g.BRACE_L,(function(){return t.parseObjectField(e)}),g.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(g.COLON),{kind:v.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(g.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(g.AT),{kind:v.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(g.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(g.BRACKET_R),e={kind:v.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(g.BANG)?{kind:v.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:v.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===g.NAME)switch(e.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()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return{kind:v.SCHEMA_DEFINITION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(g.COLON);var r=this.parseNamedType();return{kind:v.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:v.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:v.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(g.AMP);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(g.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(g.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(g.BRACE_L)&&this._lexer.lookahead().kind===g.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(g.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:v.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(g.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(g.EQUALS)&&(n=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:v.INPUT_VALUE_DEFINITION,description:t,name:r,type:i,defaultValue:n,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:v.INTERFACE_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:v.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(g.EQUALS)){this.expectOptionalToken(g.PIPE);do{e.push(this.parseNamedType())}while(this.expectOptionalToken(g.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:v.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:v.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:v.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===g.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)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:v.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:v.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:v.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:v.INTERFACE_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:v.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:v.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:v.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:v.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(g.PIPE);var e=[];do{e.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(g.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==_[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new C(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw d(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(A(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==g.NAME||t.value!==e)throw d(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(A(t)));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===g.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return d(this._lexer.source,t.start,"Unexpected ".concat(A(t)))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n},e}();function C(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function A(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}a(C,(function(){return{start:this.start,end:this.end}}))},"K/JX":function(e,t,r){"use strict";r.d(t,"a",(function(){return ie}));var n=r("mrSG"),i=r("RRgQ");function o(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(e)}]}}function a(e){if("number"===typeof e||"boolean"===typeof e||"string"===typeof e||"undefined"===typeof e||null===e)return null;if(Array.isArray(e))return a(e[0]);var t=[];return Object.keys(e).forEach((function(r){var n={kind:"Field",name:{kind:"Name",value:r},selectionSet:a(e[r])||void 0};t.push(n)})),{kind:"SelectionSet",selections:t}}var s,c={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},u=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(i.k)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(i.k)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,r,n=e.id,i=e.data;if("undefined"!==typeof n){var s=null;try{s=this.read({rootId:n,optimistic:!1,query:c})}catch(f){}var u=s&&s.__typename||"__ClientData",l=Object.assign({__typename:u},i);this.writeFragment({id:n,fragment:(t=l,r=u,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:r||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:a(t)}]}),data:l})}else this.writeQuery({query:o(i),data:i})},e}();s||(s={});var l=r("BX9R"),f=null,p={},h=1,d=Array,v=d["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",h++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=f;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===p)break;return e!==f&&(f.slots[this.id]=t),!0}return f&&(f.slots[this.id]=p),!1},e.prototype.getValue=function(){if(this.hasValue())return f.slots[this.id]},e.prototype.withValue=function(e,t,r,n){var i,o=((i={__proto__:null})[this.id]=e,i),a=f;f={parent:a,slots:o};try{return t.apply(n,r)}finally{f=a}},e.bind=function(e){var t=f;return function(){var r=f;try{return f=t,e.apply(this,arguments)}finally{f=r}}},e.noContext=function(e,t,r){if(!f)return e.apply(r,t);var n=f;try{return f=null,e.apply(r,t)}finally{f=n}},e}();try{Object.defineProperty(d,"@wry/context:Slot",{value:d["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();v.bind,v.noContext;function y(){}var b=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=y),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.getEntry(e);return t&&t.value},e.prototype.getEntry=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.getEntry(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}(),m=new v,g=[],O=[];function x(e,t){if(!e)throw new Error(t||"assertion failure")}function w(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var E=function(){function e(t,r){this.fn=t,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(x(!this.recomputing,"already recomputing"),function(e){var t=m.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),j(e)?_(t,e):I(t,e),t}(this)||!R(this))return j(this)?function(e){var t=D(e);m.withValue(e,S,[e]),function(e){if("function"===typeof e.subscribe)try{A(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){if(e.dirty=!1,j(e))return;T(e)}(e);return t.forEach(R),w(e.value)}(this):w(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,k(this),A(this))},e.prototype.dispose=function(){var e=this;D(this).forEach(R),A(this),this.parents.forEach((function(t){t.setDirty(),C(t,e)}))},e.count=0,e}();function S(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function j(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function k(e){e.parents.forEach((function(t){return _(t,e)}))}function T(e){e.parents.forEach((function(t){return I(t,e)}))}function _(e,t){if(x(e.childValues.has(t)),x(j(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=O.pop()||new Set;e.dirtyChildren.add(t),k(e)}function I(e,t){x(e.childValues.has(t)),x(!j(t));var r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):function(e,t){var r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}(r,t.value)||e.setDirty(),N(e,t),j(e)||T(e)}function N(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(O.length<100&&O.push(r),e.dirtyChildren=null))}function R(e){return 0===e.parents.size&&"function"===typeof e.reportOrphan&&!0===e.reportOrphan()}function D(e){var t=g;return e.childValues.size>0&&(t=[],e.childValues.forEach((function(r,n){C(e,n),t.push(n)}))),x(null===e.dirtyChildren),t}function C(e,t){t.parents.delete(e),e.childValues.delete(t),N(e,t)}function A(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var F=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t}}(),Object.prototype.hasOwnProperty),K=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=M((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){z.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(r){t.set(r,e[r])})),Object.keys(this.data).forEach((function(r){z.call(e,r)||t.delete(r)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function G(e){return new K(e)}var Y=function(){function e(e){var t=this,r=void 0===e?{}:e,n=r.cacheKeyRoot,o=void 0===n?new F(i.e):n,a=r.freezeResults,s=void 0!==a&&a,c=this.executeStoreQuery,u=this.executeSelectionSet,l=this.executeSubSelectedArray;this.freezeResults=s,this.executeStoreQuery=M((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.query,r=e.rootValue,n=e.contextValue,i=e.variableValues,a=e.fragmentMatcher;if(n.store instanceof K)return o.lookup(n.store,t,a,JSON.stringify(i),r.id)}}),this.executeSelectionSet=M((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,r=e.rootValue,n=e.execContext;if(n.contextValue.store instanceof K)return o.lookup(n.contextValue.store,t,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}),this.executeSubSelectedArray=M((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.execContext;if(n.contextValue.store instanceof K)return o.lookup(n.contextValue.store,t,r,JSON.stringify(n.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(n.a)(Object(n.a)({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.variables,o=e.previousResult,a=e.returnPartialData,s=void 0===a||a,c=e.rootId,u=void 0===c?"ROOT_QUERY":c,f=e.fragmentMatcherFunction,p=e.config,h=Object(i.o)(r);n=Object(i.c)({},Object(i.h)(h),n);var d={store:t,dataIdFromObject:p&&p.dataIdFromObject,cacheRedirects:p&&p.cacheRedirects||{}},v=this.executeStoreQuery({query:r,rootValue:{type:"id",id:u,generated:!0,typename:"Query"},contextValue:d,variableValues:n,fragmentMatcher:f}),y=v.missing&&v.missing.length>0;return y&&!s&&v.missing.forEach((function(e){if(!e.tolerable)throw new L.a(8)})),o&&Object(l.a)(o,v.result)&&(v.result=o),{result:v.result,complete:!y}},e.prototype.executeStoreQuery=function(e){var t=e.query,r=e.rootValue,n=e.contextValue,o=e.variableValues,a=e.fragmentMatcher,s=void 0===a?W:a,c=Object(i.l)(t),u=Object(i.j)(t),l={query:t,fragmentMap:Object(i.g)(u),contextValue:n,variableValues:o,fragmentMatcher:s};return this.executeSelectionSet({selectionSet:c.selectionSet,rootValue:r,execContext:l})},e.prototype.executeSelectionSet=function(e){var t=this,r=e.selectionSet,o=e.rootValue,a=e.execContext,s=a.fragmentMap,c=a.contextValue,u=a.variableValues,l={result:null},f=[],p=c.store.get(o.id),h=p&&p.__typename||"ROOT_QUERY"===o.id&&"Query"||void 0;function d(e){var t;return e.missing&&(l.missing=l.missing||[],(t=l.missing).push.apply(t,e.missing)),e.result}return r.selections.forEach((function(e){var r;if(Object(i.F)(e,u))if(Object(i.t)(e)){var l=d(t.executeField(p,h,e,a));"undefined"!==typeof l&&f.push(((r={})[Object(i.E)(e)]=l,r))}else{var v=void 0;if(Object(i.v)(e))v=e;else if(!(v=s[e.name.value]))throw new L.a(9);var y=v.typeCondition&&v.typeCondition.name.value,b=!y||a.fragmentMatcher(o,y,c);if(b){var m=t.executeSelectionSet({selectionSet:v.selectionSet,rootValue:o,execContext:a});"heuristic"===b&&m.missing&&(m=Object(n.a)(Object(n.a)({},m),{missing:m.missing.map((function(e){return Object(n.a)(Object(n.a)({},e),{tolerable:!0})}))})),f.push(d(m))}}})),l.result=Object(i.B)(f),this.freezeResults,l},e.prototype.executeField=function(e,t,r,n){var o=n.variableValues,a=n.contextValue,s=function(e,t,r,n,o,a){a.resultKey;var s=a.directives,c=r;(n||s)&&(c=Object(i.p)(c,n,s));var u=void 0;if(e&&"undefined"===typeof(u=e[c])&&o.cacheRedirects&&"string"===typeof t){var l=o.cacheRedirects[t];if(l){var f=l[r];f&&(u=f(e,n,{getCacheKey:function(e){var t=o.dataIdFromObject(e);return t&&Object(i.H)({id:t,typename:e.__typename})}}))}}if("undefined"===typeof u)return{result:u,missing:[{object:e,fieldName:c,tolerable:!1}]};Object(i.w)(u)&&(u=u.json);return{result:u}}(e,t,r.name.value,Object(i.b)(r,o),a,{resultKey:Object(i.E)(r),directives:Object(i.i)(r,o)});return Array.isArray(s.result)?this.combineExecResults(s,this.executeSubSelectedArray({field:r,array:s.result,execContext:n})):r.selectionSet?null==s.result?s:this.combineExecResults(s,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:s.result,execContext:n})):(J(r,s.result),this.freezeResults,s)},e.prototype.combineExecResults=function(){for(var e,t=[],r=0;r=0)return!0;r[e].push(t)}else r[e]=[t];return!1}var te={fragmentMatcher:new U,dataIdFromObject:function(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1};var re=Object.prototype.hasOwnProperty,ne=function(e){function t(t,r,n){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=r,i.transaction=n,i}return Object(n.c)(t,e),t.prototype.toObject=function(){return Object(n.a)(Object(n.a)({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return re.call(this.data,e)?this.data[e]:this.parent.get(e)},t}($),ie=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new F(i.e),r.silenceBroadcast=!1,r.config=Object(n.a)(Object(n.a)({},te),t),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new K:new $,r.optimisticData=r.data,r.storeWriter=new X,r.storeReader=new Y({cacheKeyRoot:r.cacheKeyRoot,freezeResults:t.freezeResults});var o=r,a=o.maybeBroadcastWatch;return r.maybeBroadcastWatch=M((function(e){return a.call(r,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return o.data instanceof K?o.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),r}return Object(n.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"===typeof e.rootId&&"undefined"===typeof this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:r,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:r,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new L.a(7)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],r=0,n=this.optimisticData;n instanceof ne;)n.optimisticId===e?++r:t.push(n),n=n.parent;if(r>0){for(this.optimisticData=n;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var r=this.data,n=this.silenceBroadcast;this.silenceBroadcast=!0,"string"===typeof t&&(this.data=this.optimisticData=new ne(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=n,this.data=r}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(i.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(u)},L2ys:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var n=r("rWdj"),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["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","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","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,u=Array.isArray(e),l=[e],f=-1,p=[],h=void 0,d=void 0,v=void 0,y=[],b=[],m=e;do{var g=++f===l.length,O=g&&0!==p.length;if(g){if(d=0===b.length?void 0:y[y.length-1],h=v,v=b.pop(),O){if(u)h=h.slice();else{for(var x={},w=0,E=Object.keys(h);w0}var j,k=function(e){function t(r){var n=r.graphQLErrors,i=r.networkError,o=r.errorMessage,a=r.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=n||[],s.networkError=i||null,s.message=o||function(e){var t="";return S(e.graphQLErrors)&&e.graphQLErrors.forEach((function(e){var r=e?e.message:"Error message not found.";t+="GraphQL error: "+r+"\n"})),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(s),s.extraInfo=a,s.__proto__=t.prototype,s}return Object(n.c)(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(j||(j={}));var T=function(e){function t(t){var r=t.queryManager,n=t.options,o=t.shouldSubscribe,a=void 0===o||o,s=e.call(this,(function(e){return s.onSubscribe(e)}))||this;s.observers=new Set,s.subscriptions=new Set,s.isTornDown=!1,s.options=n,s.variables=n.variables||{},s.queryId=r.generateQueryId(),s.shouldSubscribe=a;var c=Object(i.m)(n.query);return s.queryName=c&&c.name&&c.name.value,s.queryManager=r,s}return Object(n.c)(t,e),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.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:g.error}}var t,r,i,o=this.queryManager.getCurrentQueryResult(this),a=o.data,s=o.partial,c=this.queryManager.queryStore.get(this.queryId),u=this.options.fetchPolicy,l="network-only"===u||"no-cache"===u;if(c){var f=c.networkStatus;if(r=c,void 0===(i=this.options.errorPolicy)&&(i="none"),r&&(r.networkError||"none"===i&&S(r.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:f,error:new k({graphQLErrors:c.graphQLErrors,networkError:c.networkError})};c.variables&&(this.options.variables=Object(n.a)(Object(n.a)({},this.options.variables),c.variables),this.variables=this.options.variables),t={data:a,loading:w(f),networkStatus:f},c.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=c.graphQLErrors)}else{var p=l||s&&"cache-only"!==u;t={data:a,loading:p,networkStatus:p?g.loading:g.ready}}return s||this.updateLastResult(Object(n.a)(Object(n.a)({},t),{stale:!1})),Object(n.a)(Object(n.a)({},t),{partial:s})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(o.a)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new c.a(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(o.a)(this.variables,e)||(this.variables=Object(n.a)(Object(n.a)({},this.variables),e)),Object(o.a)(this.options.variables,this.variables)||(this.options.variables=Object(n.a)(Object(n.a)({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Object(n.a)(Object(n.a)({},this.options),{fetchPolicy:t}),j.refetch))},t.prototype.fetchMore=function(e){var t=this;Object(c.b)(e.updateQuery,2);var r=Object(n.a)(Object(n.a)({},e.query?e:Object(n.a)(Object(n.a)(Object(n.a)({},this.options),e),{variables:Object(n.a)(Object(n.a)({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),i=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(i,r,j.normal,this.queryId).then((function(n){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:n.data,variables:r.variables})})),t.queryManager.stopQuery(i),n}),(function(e){throw t.queryManager.stopQuery(i),e}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).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)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(n.a)(Object(n.a)({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var r=e.fetchPolicy;return this.setVariables(this.options.variables,t!==r&&("cache-only"===t||"standby"===t||"network-only"===r),e.fetchResults)},t.prototype.setVariables=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(o.a)(e,this.variables)?this.observers.size&&r?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.getQueryWithPreviousResult(this.queryId),n=r.previousResult,o=r.variables,a=r.document,s=Object(i.I)((function(){return e(n,{variables:o})}));s&&(t.dataStore.markUpdateQueryResult(a,o,s),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){N(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(i.f)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var r=e._subscription._observer;r&&!r.error&&(r.error=_)}catch(i){}var n=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),n&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,r=this.queryId;this.shouldSubscribe&&t.addObservableQuery(r,this),this.options.pollInterval&&(N(this),t.startPollingQuery(this.options,r));var i=function(t){e.updateLastResult(Object(n.a)(Object(n.a)({},e.lastResult),{errors:t.graphQLErrors,networkStatus:g.error,loading:!1})),I(e.observers,"error",e.lastError=t)};t.observeQuery(r,this.options,{next:function(r){if(e.lastError||e.isDifferentFromLastResult(r)){var n=e.updateLastResult(r),i=e.options,a=i.query,s=i.variables,c=i.fetchPolicy;t.transform(a).hasClientExports?t.getLocalState().addExportedVariables(a,s).then((function(i){var s=e.variables;e.variables=e.options.variables=i,!r.loading&&n&&"cache-only"!==c&&t.transform(a).serverQuery&&!Object(o.a)(s,i)?e.refetch():I(e.observers,"next",r)})):I(e.observers,"next",r)}},error:i}).catch(i)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(E);function _(e){}function I(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function N(e){var t=e.options.fetchPolicy;Object(c.b)("cache-first"!==t&&"cache-only"!==t,3)}var R=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,r){this.store[e]={mutation:t,variables:r||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),D=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(c.b)(!t||t.document===e.document||Object(o.a)(t.document,e.document),19);var r,n=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==g.loading&&(Object(o.a)(t.variables,e.variables)||(n=!0,i=t.variables)),r=n?g.setVariables:e.isPoll?g.poll:e.isRefetch?g.refetch:g.loading;var a=[];t&&t.graphQLErrors&&(a=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:a,networkStatus:r,metadata:e.metadata},"string"===typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=g.fetchMore)},e.prototype.markQueryResult=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=S(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=g.ready,"string"===typeof r&&this.store[r]&&(this.store[r].networkStatus=g.ready))},e.prototype.markQueryError=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=g.error,"string"===typeof r&&this.markQueryResultClient(r,!0))},e.prototype.markQueryResultClient=function(e,t){var r=this.store&&this.store[e];r&&(r.networkError=null,r.previousVariables=null,t&&(r.networkStatus=g.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(r){e.indexOf(r)<0?t.stopQuery(r):t.store[r].networkStatus=g.loading}))},e}();var C=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Object(i.A)(t.resolvers,e)})):this.resolvers=Object(i.A)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(n.b)(this,void 0,void 0,(function(){return Object(n.d)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then((function(e){return Object(n.a)(Object(n.a)({},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 Object(i.s)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(i.C)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(n.a)(Object(n.a)({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(c.b)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(n.b)(this,void 0,void 0,(function(){return Object(n.d)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return Object(n.a)(Object(n.a)({},t),e.exportedVariables)}))]:[2,Object(n.a)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(x.b)(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 x.a}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(i.d)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,o,a,s){return void 0===r&&(r={}),void 0===o&&(o={}),void 0===a&&(a=function(){return!0}),void 0===s&&(s=!1),Object(n.b)(this,void 0,void 0,(function(){var c,u,l,f,p,h,d,v,y;return Object(n.d)(this,(function(b){var m;return c=Object(i.l)(e),u=Object(i.j)(e),l=Object(i.g)(u),f=c.operation,p=f?(m=f).charAt(0).toUpperCase()+m.slice(1):"Query",d=(h=this).cache,v=h.client,y={fragmentMap:l,context:Object(n.a)(Object(n.a)({},r),{cache:d,client:v}),variables:o,fragmentMatcher:a,defaultOperationType:p,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(c.selectionSet,t,y).then((function(e){return{result:e,exportedVariables:y.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r){return Object(n.b)(this,void 0,void 0,(function(){var o,a,s,u,l,f=this;return Object(n.d)(this,(function(p){return o=r.fragmentMap,a=r.context,s=r.variables,u=[t],l=function(e){return Object(n.b)(f,void 0,void 0,(function(){var l,f;return Object(n.d)(this,(function(n){return Object(i.F)(e,s)?Object(i.t)(e)?[2,this.resolveField(e,t,r).then((function(t){var r;"undefined"!==typeof t&&u.push(((r={})[Object(i.E)(e)]=t,r))}))]:(Object(i.v)(e)?l=e:(l=o[e.name.value],Object(c.b)(l,7)),l&&l.typeCondition&&(f=l.typeCondition.name.value,r.fragmentMatcher(t,f,a))?[2,this.resolveSelectionSet(l.selectionSet,t,r).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return Object(i.B)(u)}))]}))}))},e.prototype.resolveField=function(e,t,r){return Object(n.b)(this,void 0,void 0,(function(){var o,a,s,c,u,l,f,p,h,d=this;return Object(n.d)(this,(function(n){return o=r.variables,a=e.name.value,s=Object(i.E)(e),c=a!==s,u=t[s]||t[a],l=Promise.resolve(u),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=t.__typename||r.defaultOperationType,(p=this.resolvers&&this.resolvers[f])&&(h=p[c?a:s])&&(l=Promise.resolve(h(t,Object(i.b)(e,o),r.context,{field:e,fragmentMap:r.fragmentMap})))),[2,l.then((function(t){return void 0===t&&(t=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&&(r.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?d.resolveSubSelectedArray(e,t,r):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t,r):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0})))},e}();function A(e){var t=new Set,r=null;return new E((function(n){return t.add(n),r=r||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(n)&&!t.size&&r&&(r.unsubscribe(),r=null)}}))}var F=Object.prototype.hasOwnProperty,Q=function(){function e(e){var t=e.link,r=e.queryDeduplication,n=void 0!==r&&r,o=e.store,a=e.onBroadcast,s=void 0===a?function(){}:a,c=e.ssrMode,u=void 0!==c&&c,l=e.clientAwareness,f=void 0===l?{}:l,p=e.localState,h=e.assumeImmutableResults;this.mutationStore=new R,this.queryStore=new D,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(i.e?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=n,this.dataStore=o,this.onBroadcast=s,this.clientAwareness=f,this.localState=p||new C({cache:o.getCache()}),this.ssrMode=u,this.assumeImmutableResults=!!h}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.fetchQueryRejectFns.forEach((function(e){e(new c.a(8))}))},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,o=e.optimisticResponse,a=e.updateQueries,s=e.refetchQueries,u=void 0===s?[]:s,l=e.awaitRefetchQueries,f=void 0!==l&&l,p=e.update,h=e.errorPolicy,d=void 0===h?"none":h,v=e.fetchPolicy,y=e.context,b=void 0===y?{}:y;return Object(n.b)(this,void 0,void 0,(function(){var e,s,l,h=this;return Object(n.d)(this,(function(y){switch(y.label){case 0:return Object(c.b)(t,9),Object(c.b)(!v||"no-cache"===v,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,b)]:[3,2];case 1:r=y.sent(),y.label=2;case 2:return s=function(){var e={};return a&&h.queries.forEach((function(t,r){var n=t.observableQuery;if(n){var i=n.queryName;i&&F.call(a,i)&&(e[r]={updater:a[i],query:h.queryStore.get(r)})}})),e},this.mutationStore.initMutation(e,t,r),this.dataStore.markMutationInit({mutationId:e,document:t,variables:r,updateQueries:s(),update:p,optimisticResponse:o}),this.broadcastQueries(),l=this,[2,new Promise((function(a,c){var h,y;l.getObservableFromLink(t,Object(n.a)(Object(n.a)({},b),{optimisticResponse:o}),r,!1).subscribe({next:function(n){Object(i.q)(n)&&"none"===d?y=new k({graphQLErrors:n.errors}):(l.mutationStore.markMutationResult(e),"no-cache"!==v&&l.dataStore.markMutationResult({mutationId:e,result:n,document:t,variables:r,updateQueries:s(),update:p}),h=n)},error:function(t){l.mutationStore.markMutationError(e,t),l.dataStore.markMutationComplete({mutationId:e,optimisticResponse:o}),l.broadcastQueries(),l.setQuery(e,(function(){return{document:null}})),c(new k({networkError:t}))},complete:function(){if(y&&l.mutationStore.markMutationError(e,y),l.dataStore.markMutationComplete({mutationId:e,optimisticResponse:o}),l.broadcastQueries(),y)c(y);else{"function"===typeof u&&(u=u(h));var t=[];S(u)&&u.forEach((function(e){if("string"===typeof e)l.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===e&&t.push(n.refetch())}));else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(l.query(r))}})),Promise.all(f?t:[]).then((function(){l.setQuery(e,(function(){return{document:null}})),"ignore"===d&&h&&Object(i.q)(h)&&delete h.errors,a(h)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,r,o){return Object(n.b)(this,void 0,void 0,(function(){var a,s,c,u,l,f,p,h,d,v,y,b,m,g,O,x,w,E,S=this;return Object(n.d)(this,(function(T){switch(T.label){case 0:return a=t.metadata,s=void 0===a?null:a,c=t.fetchPolicy,u=void 0===c?"cache-first":c,l=t.context,f=void 0===l?{}:l,p=this.transform(t.query).document,h=this.getVariables(p,t.variables),this.transform(p).hasClientExports?[4,this.localState.addExportedVariables(p,h,f)]:[3,2];case 1:h=T.sent(),T.label=2;case 2:if(t=Object(n.a)(Object(n.a)({},t),{variables:h}),y=v="network-only"===u||"no-cache"===u,v||(b=this.dataStore.getCache().diff({query:p,variables:h,returnPartialData:!0,optimistic:!1}),m=b.complete,g=b.result,y=!m||"cache-and-network"===u,d=g),O=y&&"cache-only"!==u&&"standby"!==u,Object(i.s)(["live"],p)&&(O=!0),x=this.idCounter++,w="no-cache"!==u?this.updateQueryWatch(e,p,t):void 0,this.setQuery(e,(function(){return{document:p,lastRequestId:x,invalidated:!0,cancel:w}})),this.invalidate(o),this.queryStore.initQuery({queryId:e,document:p,storePreviousVariables:O,variables:h,isPoll:r===j.poll,isRefetch:r===j.refetch,metadata:s,fetchMoreForQueryId:o}),this.broadcastQueries(),O){if(E=this.fetchRequest({requestId:x,queryId:e,document:p,options:t,fetchMoreForQueryId:o}).catch((function(t){throw t.hasOwnProperty("graphQLErrors")?t:(x>=S.getQuery(e).lastRequestId&&(S.queryStore.markQueryError(e,t,o),S.invalidate(e),S.invalidate(o),S.broadcastQueries()),new k({networkError:t}))})),"cache-and-network"!==u)return[2,E];E.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!O),this.invalidate(e),this.invalidate(o),this.transform(p).hasForcedResolvers?[2,this.localState.runResolvers({document:p,remoteResult:{data:d},context:f,variables:h,onlyRunForcedResolvers:!0}).then((function(r){return S.markQueryResult(e,r,t,o),S.broadcastQueries(),r}))]:(this.broadcastQueries(),[2,{data:d}])}}))}))},e.prototype.markQueryResult=function(e,t,r,n){var i=r.fetchPolicy,o=r.variables,a=r.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,n,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,r){var n=this;function i(e,t){if(r[e])try{r[e](t)}catch(n){}}return function(r,o){if(n.invalidate(e,!1),r){var a=n.getQuery(e),s=a.observableQuery,c=a.document,u=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==u){var l=w(r.networkStatus),f=s&&s.getLastResult(),p=!(!f||f.networkStatus===r.networkStatus),h=t.returnPartialData||!o&&r.previousVariables||p&&t.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!l||h){var d=S(r.graphQLErrors),v=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===v&&d||r.networkError)return i("error",new k({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var y=void 0,b=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&n.setQuery(e,(function(){return{newData:null}})),y=o.result,b=!o.complete;else{var m=s&&s.getLastError(),g="none"!==v&&(m&&m.graphQLErrors)!==r.graphQLErrors;if(f&&f.data&&!g)y=f.data,b=!1;else{var O=n.dataStore.getCache().diff({query:c,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});y=O.result,b=!O.complete}}var x=b&&!(t.returnPartialData||"cache-only"===u),E={data:x?f&&f.data:y,loading:l,networkStatus:r.networkStatus,stale:x};"all"===v&&d&&(E.errors=r.graphQLErrors),i("next",E)}catch(j){i("error",new k({networkError:j}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.dataStore.getCache(),n=r.transformDocument(e),o=Object(i.D)(r.transformForLink(n)),a=this.localState.clientQuery(n),s=this.localState.serverQuery(o),c={document:n,hasClientExports:Object(i.r)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:a,serverQuery:s,defaultVars:Object(i.h)(Object(i.m)(n))},u=function(e){e&&!t.has(e)&&t.set(e,c)};u(e),u(n),u(a),u(s)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(n.a)(Object(n.a)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(c.b)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),"undefined"===typeof e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=Object(n.a)({},e);return new T({queryManager:this,options:r,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return Object(c.b)(e.query,12),Object(c.b)("Document"===e.query.kind,13),Object(c.b)(!e.returnPartialData,14),Object(c.b)(!e.pollInterval,15),new Promise((function(r,n){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,n),i.result().then(r,n).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,r){var n=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:function(){var t=null,r=n.getQuery(e).observableQuery;if(r){var i=r.getLastResult();i&&(t=i.data)}return t},callback:function(t){n.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new c.a(16))}));var e=[];return this.queries.forEach((function(t,r){t.observableQuery&&e.push(r)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.queries.forEach((function(n,i){var o=n.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(r)},e.prototype.observeQuery=function(e,t,r){return this.addQueryListener(e,this.queryListenerForObserver(e,t,r)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,o=e.variables;r=this.transform(r).document,o=this.getVariables(r,o);var a=function(e){return t.getObservableFromLink(r,{},e,!1).map((function(o){if(n&&"no-cache"===n||(t.dataStore.markSubscriptionResult(o,r,e),t.broadcastQueries()),Object(i.q)(o))throw new k({graphQLErrors:o.errors});return o}))};if(this.transform(r).hasClientExports){var s=this.localState.addExportedVariables(r,o).then(a);return new E((function(e){var t=null;return s.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return a(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.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var r=e.options,n=r.variables,i=r.query,o=r.fetchPolicy,a=r.returnPartialData,s=e.getLastResult(),c=this.getQuery(e.queryId).newData;if(c&&c.complete)return{data:c.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:n,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),l=u.result,f=u.complete;return{data:f||a?l:void 0,partial:!f}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"===typeof e){var r=this.getQuery(e).observableQuery;Object(c.b)(r,17),t=r}else t=e;var n=t.options,i=n.variables,o=n.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,r){t.invalidated&&t.listeners.forEach((function(n){n&&n(e.queryStore.get(r),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,o){var a,s=this;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:Object(i.n)(c)||void 0,context:this.prepareContext(Object(n.a)(Object(n.a)({},t),{forceFetch:!o}))};if(t=f.context,o){var p=u.get(c)||new Map;u.set(c,p);var h=JSON.stringify(r);if(!(a=p.get(h))){p.set(h,a=A(m(l,f)));var d=function(){p.delete(h),p.size||u.delete(c),v.unsubscribe()},v=a.subscribe({next:d,error:d,complete:d})}}else a=A(m(l,f))}else a=E.of({data:{}}),t=this.prepareContext(t);var y=this.transform(e).clientQuery;return y&&(a=function(e,t){return new E((function(r){var n=r.next,i=r.error,o=r.complete,a=0,s=!1,c={next:function(e){++a,new Promise((function(r){r(t(e))})).then((function(e){--a,n&&n.call(r,e),s&&c.complete()}),(function(e){--a,i&&i.call(r,e)}))},error:function(e){i&&i.call(r,e)},complete:function(){s=!0,a||o&&o.call(r)}},u=e.subscribe(c);return function(){return u.unsubscribe()}}))}(a,(function(e){return s.localState.runResolvers({document:y,remoteResult:e,context:t,variables:r})}))),a},e.prototype.fetchRequest=function(e){var t,r,n=this,i=e.requestId,o=e.queryId,a=e.document,s=e.options,c=e.fetchMoreForQueryId,u=s.variables,l=s.errorPolicy,f=void 0===l?"none":l,p=s.fetchPolicy;return new Promise((function(e,l){var h=n.getObservableFromLink(a,s.context,u),d="fetchRequest:"+o;n.fetchQueryRejectFns.set(d,l);var v=function(){n.fetchQueryRejectFns.delete(d),n.setQuery(o,(function(e){e.subscriptions.delete(y)}))},y=h.map((function(e){if(i>=n.getQuery(o).lastRequestId&&(n.markQueryResult(o,e,s,c),n.queryStore.markQueryResult(o,e,c),n.invalidate(o),n.invalidate(c),n.broadcastQueries()),"none"===f&&S(e.errors))return l(new k({graphQLErrors:e.errors}));if("all"===f&&(r=e.errors),c||"no-cache"===p)t=e.data;else{var h=n.dataStore.getCache().diff({variables:u,query:a,optimistic:!1,returnPartialData:!0}),d=h.result;(h.complete||s.returnPartialData)&&(t=d)}})).subscribe({error:function(e){v(),l(e)},complete:function(){v(),e({data:t,errors:r,loading:!1,networkStatus:g.ready,stale:!1})}});n.setQuery(o,(function(e){e.subscriptions.add(y)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var r=this.getQuery(e),i=Object(n.a)(Object(n.a)({},r),t(r));this.queries.set(e,i)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(n.a)(Object(n.a)({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==g.ready&&t.networkStatus!==g.error},e.prototype.startPollingQuery=function(e,t,r){var i=this,o=e.pollInterval;if(Object(c.b)(o,18),!this.ssrMode){var a=this.pollingInfoByQueryId.get(t);a||this.pollingInfoByQueryId.set(t,a={}),a.interval=o,a.options=Object(n.a)(Object(n.a)({},e),{fetchPolicy:"network-only"});var s=function(){var e=i.pollingInfoByQueryId.get(t);e&&(i.checkInFlight(t)?u():i.fetchQuery(t,e.options,j.poll).then(u,u))},u=function(){var e=i.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(s,e.interval))};r&&this.addQueryListener(t,r),u()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),P=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,r,n,o){void 0===o&&(o=!1);var a=!Object(i.q)(e);o&&Object(i.q)(e)&&e.data&&(a=!0),!n&&a&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},e.prototype.markSubscriptionResult=function(e,t,r){Object(i.q)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},e.prototype.markMutationInit=function(e){var t,r=this;e.optimisticResponse&&(t="function"===typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(n){var i=r.cache;r.cache=n;try{r.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{r.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Object(i.q)(e.result)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],n=e.updateQueries;n&&Object.keys(n).forEach((function(o){var a=n[o],s=a.query,c=a.updater,u=t.cache.diff({query:s.document,variables:s.variables,returnPartialData:!0,optimistic:!1}),l=u.result;if(u.complete){var f=Object(i.I)((function(){return c(l,{mutationResult:e.result,queryName:Object(i.n)(s.document)||void 0,queryVariables:s.variables})}));f&&r.push({result:f,dataId:"ROOT_QUERY",query:s.document,variables:s.variables})}})),this.cache.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;n&&Object(i.I)((function(){return n(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),q=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.cache,n=e.ssrMode,i=void 0!==n&&n,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,u=e.queryDeduplication,l=void 0===u||u,f=e.defaultOptions,p=e.assumeImmutableResults,h=void 0!==p&&p,d=e.resolvers,v=e.typeDefs,y=e.fragmentMatcher,m=e.name,g=e.version,O=e.link;if(!O&&d&&(O=b.empty()),!O||!r)throw new c.a(4);this.link=O,this.cache=r,this.store=new P(r),this.disableNetworkFetches=i||a>0,this.queryDeduplication=l,this.defaultOptions=f||{},this.typeDefs=v,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),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);"undefined"!==typeof s&&(s&&"undefined"!==typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new C({cache:r,client:this,resolvers:d,fragmentMatcher:y}),this.queryManager=new Q({link:this.link,store:this.store,queryDeduplication:l,ssrMode:i,clientAwareness:{name:m,version:g},localState:this.localState,assumeImmutableResults:h,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(n.a)(Object(n.a)({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(n.a)(Object(n.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(n.a)(Object(n.a)({},this.defaultOptions.query),e)),Object(c.b)("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(n.a)(Object(n.a)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(n.a)(Object(n.a)({},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 this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return m(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).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()})).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.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}(),M=r("K/JX"),L=r("BLR7");function V(e){return Object(x.b)(e,{leave:B})}var B={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return z(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=G("(",z(e.variableDefinitions,", "),")"),i=z(e.directives," "),o=e.selectionSet;return r||i||n||"query"!==t?z([t,z([r,n]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,r=e.type,n=e.defaultValue,i=e.directives;return t+": "+r+G(" = ",n)+G(" ",z(i," "))},SelectionSet:function(e){return K(e.selections)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,o=e.selectionSet;return z([G("",t,": ")+r+G("(",z(n,", "),")"),z(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+G(" ",z(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return z(["...",G("on ",t),z(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(G("(",z(n,", "),")")," ")+"on ".concat(r," ").concat(G("",z(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?Object(L.b)(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+z(e.values,", ")+"]"},ObjectValue:function(e){return"{"+z(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+G("(",z(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,r=e.operationTypes;return z(["schema",z(t," "),K(r)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:U((function(e){return z(["scalar",e.name,z(e.directives," ")]," ")})),ObjectTypeDefinition:U((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return z(["type",t,G("implements ",z(r," & ")),z(n," "),K(i)]," ")})),FieldDefinition:U((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(W(r)?G("(\n",Y(z(r,"\n")),"\n)"):G("(",z(r,", "),")"))+": "+n+G(" ",z(i," "))})),InputValueDefinition:U((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return z([t+": "+r,G("= ",n),z(i," ")]," ")})),InterfaceTypeDefinition:U((function(e){var t=e.name,r=e.directives,n=e.fields;return z(["interface",t,z(r," "),K(n)]," ")})),UnionTypeDefinition:U((function(e){var t=e.name,r=e.directives,n=e.types;return z(["union",t,z(r," "),n&&0!==n.length?"= "+z(n," | "):""]," ")})),EnumTypeDefinition:U((function(e){var t=e.name,r=e.directives,n=e.values;return z(["enum",t,z(r," "),K(n)]," ")})),EnumValueDefinition:U((function(e){return z([e.name,z(e.directives," ")]," ")})),InputObjectTypeDefinition:U((function(e){var t=e.name,r=e.directives,n=e.fields;return z(["input",t,z(r," "),K(n)]," ")})),DirectiveDefinition:U((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(W(r)?G("(\n",Y(z(r,"\n")),"\n)"):G("(",z(r,", "),")"))+(n?" repeatable":"")+" on "+z(i," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return z(["extend schema",z(t," "),K(r)]," ")},ScalarTypeExtension:function(e){return z(["extend scalar",e.name,z(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return z(["extend type",t,G("implements ",z(r," & ")),z(n," "),K(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return z(["extend interface",t,z(r," "),K(n)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return z(["extend union",t,z(r," "),n&&0!==n.length?"= "+z(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return z(["extend enum",t,z(r," "),K(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return z(["extend input",t,z(r," "),K(n)]," ")}};function U(e){return function(t){return z([t.description,e(t)],"\n")}}function z(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function K(e){return e&&0!==e.length?"{\n"+Y(z(e,"\n"))+"\n}":""}function G(e,t,r){return t?e+t+(r||""):""}function Y(e){return e&&" "+e.replace(/\n/g,"\n ")}function J(e){return-1!==e.indexOf("\n")}function W(e){return e&&e.some(J)}var $={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},H=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},X=function(e,t){var r;try{r=JSON.stringify(e)}catch(i){var n=new c.a(2);throw n.parseError=i,n}return r},Z=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,i=e.fetch,o=e.includeExtensions,a=e.useGETForQueries,u=Object(n.e)(e,["uri","fetch","includeExtensions","useGETForQueries"]);!function(e){if(!e&&"undefined"===typeof fetch)throw new c.a(1)}(i),i||(i=fetch);var f={http:{includeExtensions:o},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new b((function(e){var t=function(e,t){return e.getContext().uri||("function"===typeof t?t(e):t||"/graphql")}(e,r),o=e.getContext(),c={};if(o.clientAwareness){var u=o.clientAwareness,p=u.name,h=u.version;p&&(c["apollographql-client-name"]=p),h&&(c["apollographql-client-version"]=h)}var d,v=Object(n.a)({},c,o.headers),y={http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:v},b=function(e,t){for(var r=[],i=2;i=300&&H(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||t.hasOwnProperty("data")||t.hasOwnProperty("errors")||H(e,t,"Server response was missing for query '"+(Array.isArray(n)?n.map((function(e){return e.operationName})):n.operationName)+"'."),t}))})).then((function(e){return r.next(e),r.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))})),function(){d&&d.abort()}}))}))};var ee=function(e){function t(t){return e.call(this,Z(t).request)||this}return Object(n.c)(t,e),t}(b);function te(e){return new b((function(t,r){return new s((function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(i)},error:function(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(s){e({networkError:s,operation:t,forward:r}),n.error(s)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function t(t){var r=e.call(this)||this;return r.link=te(t),r}Object(n.c)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(b);var re=["request","uri","credentials","headers","fetch","fetchOptions","clientState","onError","cacheRedirects","cache","name","version","resolvers","typeDefs","fragmentMatcher"],ne=function(e){function t(t){void 0===t&&(t={});t&&Object.keys(t).filter((function(e){return-1===re.indexOf(e)})).length;var r=t.request,n=t.uri,i=t.credentials,o=t.headers,a=t.fetch,u=t.fetchOptions,l=t.clientState,f=t.cacheRedirects,p=t.onError,h=t.name,d=t.version,v=t.resolvers,y=t.typeDefs,m=t.fragmentMatcher,g=t.cache;Object(c.b)(!g||!f,1),g||(g=f?new M.a({cacheRedirects:f}):new M.a);var O=te(p||function(e){var t=e.graphQLErrors;e.networkError;t&&t.forEach((function(e){e.message,e.locations,e.path;return!0}))}),x=!!r&&new b((function(e,t){return new s((function(n){var i;return Promise.resolve(e).then((function(e){return r(e)})).then((function(){i=t(e).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)})})).catch(n.error.bind(n)),function(){i&&i.unsubscribe()}}))})),w=new ee({uri:n||"/graphql",fetch:a,fetchOptions:u||{},credentials:i||"same-origin",headers:o||{}}),E=b.from([O,x,w].filter((function(e){return!!e}))),S=v,j=y,k=m;return l&&(l.defaults&&g.writeData({data:l.defaults}),S=l.resolvers,j=l.typeDefs,k=l.fragmentMatcher),e.call(this,{cache:g,link:E,name:h,version:d,resolvers:S,typeDefs:j,fragmentMatcher:k})||this}return Object(n.c)(t,e),t}(q);t.a=ne},MX0m:function(e,t,r){e.exports=r("3niX")},OCfw:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};Object.create;Object.create;var i=Object.setPrototypeOf,o=void 0===i?function(e,t){return e.__proto__=t,e}:i,a=function(e){function t(r){void 0===r&&(r="Invariant Violation");var n=e.call(this,"number"===typeof r?"Invariant Violation: "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name="Invariant Violation",o(n,t.prototype),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error);function s(e,t){if(!e)throw new a(t)}var c=["log","warn","error","silent"],u=c.indexOf("log");function l(e){return function(){if(c.indexOf(e)>=u)return console[e].apply(console,arguments)}}!function(e){e.log=l("log"),e.warn=l("warn"),e.error=l("error")}(s||(s={}))},QrGo:function(e,t,r){"use strict";var n=r("MX0m"),i=r.n(n),o=r("q1tI"),a=r.n(o),s=r("YFqc"),c=r.n(s),u=r("4xQG"),l=r("4gQ6"),f=r("ilO0"),p=r("BqtT"),h=a.a.createElement;t.a=Object(l.a)((function(){var e=Object(o.useState)(!1),t=e[0],r=e[1];Object(o.useEffect)((function(){r(!0)}),[]);var n=Object(u.a)(f.a),s=n.loading,l=n.error,d=n.data,v=Object(u.a)(f.c),y=v.loading,b=v.error,m=v.data,g=Object(u.a)(p.a),O=g.loading,x=g.error,w=g.data;if(s)return"";if(l)return"";if(y)return"";if(b)return"";if(O)return"";if(x)return"";var E=d.allBrands.edges,S=m.allCategories.edges,j=w.allContact[0];return h(a.a.Fragment,null,!0===t?h("footer",{id:"ep-globalfooter",className:"jsx-1113775440"},h("div",{className:"jsx-1113775440 ep-gf-bound"},h("div",{className:"jsx-1113775440 ep-gf-content"},h("div",{className:"jsx-1113775440 ep-flag"},h("div",{className:"jsx-1113775440 elpashaw"},"ELPA SHAW")),h("div",{className:"jsx-1113775440 ep-sm"},h("div",{className:"jsx-1113775440 col col-1"},h("h2",{className:"jsx-1113775440 tagline"},"CONNECTING YOU WITH GOOD VIBES")),h("div",{className:"jsx-1113775440 col col-2"},h("div",{className:"jsx-1113775440 ep-dyn-grid"},h("div",{className:"jsx-1113775440 dyn-col dyn-col-1"},h("ul",{className:"jsx-1113775440 dyn-list"},h("li",{className:"jsx-1113775440 dyn-item dyn-header"},h("span",{className:"jsx-1113775440 dyn-text"},"Brands")),E.map((function(e,t){return h("li",{key:t.toString(),className:"jsx-1113775440 dyn-item"},h(c.a,{href:"/brand/[slug]",as:"/brand/".concat(e.node.slug)},h("a",{className:"jsx-1113775440 dyn-link"},h("span",{className:"jsx-1113775440 dyn-text"},e.node.name))))})))),h("div",{className:"jsx-1113775440 dyn-col dyn-col-1"},h("ul",{className:"jsx-1113775440 dyn-list"},h("li",{className:"jsx-1113775440 dyn-item dyn-header"},h("span",{className:"jsx-1113775440 dyn-text"},"Products")),S.map((function(e,t){return h("li",{key:t.toString(),className:"jsx-1113775440 dyn-item"},h(c.a,{href:"/category/[slug]",as:"/category/".concat(e.node.slug)},h("a",{className:"jsx-1113775440 dyn-link"},h("span",{className:"jsx-1113775440 dyn-text"},e.node.title))))})))),h("div",{className:"jsx-1113775440 dyn-col dyn-col-1"},h("ul",{className:"jsx-1113775440 dyn-list"},h("li",{className:"jsx-1113775440 dyn-item dyn-header"},h("span",{className:"jsx-1113775440 dyn-text"},"Explore")),h("li",{className:"jsx-1113775440 dyn-item"},h(c.a,{href:"/product"},h("a",{className:"jsx-1113775440 dyn-link"},h("span",{className:"jsx-1113775440 dyn-text"},"Products")))),h("li",{className:"jsx-1113775440 dyn-item"},h(c.a,{href:"/about"},h("a",{className:"jsx-1113775440 dyn-link"},h("span",{className:"jsx-1113775440 dyn-text"},"About")))),h("li",{className:"jsx-1113775440 dyn-item"},h(c.a,{href:"/article"},h("a",{href:"",className:"jsx-1113775440 dyn-link"},h("span",{className:"jsx-1113775440 dyn-text"},"Article")))),h("li",{className:"jsx-1113775440 dyn-item"},h(c.a,{href:"/our-store"},h("a",{className:"jsx-1113775440 dyn-link"},h("span",{className:"jsx-1113775440 dyn-text"},"Our store"))))))))),h("div",{className:"jsx-1113775440 ep-action"},h("ul",{className:"jsx-1113775440 action-list"},h("li",{className:"jsx-1113775440 action-item action-title"},"FOR A TRUE AUDIOPHILE EXPERIENCE,",h("br",{className:"jsx-1113775440"}),"PLEASE VISIT OUR STORE IN BANGKOK"),h("li",{className:"jsx-1113775440 action-item action-address"},"OPEN MON-SAT FROM",h("br",{className:"jsx-1113775440"}),j.openingTime," - ",j.closingTime),h("li",{className:"jsx-1113775440 action-item action-social"},h(c.a,{href:"//facebook.com/".concat(j.facebook,"/")},h("a",{target:"_blank",className:"jsx-1113775440 action-link"},h("span",{className:"jsx-1113775440 ico-social ico-fb"},"Facebook"))),h(c.a,{href:"//instagram.com/".concat(j.instagram,"/")},h("a",{target:"_blank",className:"jsx-1113775440 action-link"},h("span",{className:"jsx-1113775440 ico-social ico-ig"},"Instagram")))))),h("div",{className:"jsx-1113775440 ep-footnote"},h("div",{className:"jsx-1113775440 copyright"},"\xa9 ",(new Date).getFullYear()," ELPA SHAW CO., LTD. ALL RIGHTS RESERVED."),h("div",{className:"jsx-1113775440 policy"},h(c.a,{href:"/privacy-policy"},h("a",{className:"jsx-1113775440"},h("span",{className:"jsx-1113775440"},"PRIVACY POLICY"))),h(c.a,{href:"/terms-and-condition"},h("a",{className:"jsx-1113775440"},h("span",{className:"jsx-1113775440"},"TERMS AND CONDITION")))))))):"",h(i.a,{id:"1113775440"},["#ep-globalfooter.jsx-1113775440{width:100%;min-height:400px;margin-top:10px;overflow:hidden;display:block;box-sizing:border-box;position:relative;background-image:linear-gradient(90deg,#C79CC2 0%,#87CEDC 100%);z-index:99999;font-family:'Kanit',sans-serif;font-weight:400;font-size:17px;line-height:1.22em;}",".ep-gf-bound.jsx-1113775440{width:100%;max-width:1200px;padding:0 22px;margin:0 auto;display:block;position:relative;box-sizing:border-box;}",".ep-gf-content.jsx-1113775440{width:100%;box-sizing:border-box;border-top:6px solid #2F3134;padding-top:4em;}",".ep-flag.jsx-1113775440{width:100%;display:block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".ep-flag.jsx-1113775440 .elpashaw.jsx-1113775440{display:block;width:180px;height:18px;}",".ep-sm.jsx-1113775440{width:100%;display:grid;grid-template-columns:50% 1fr;margin-top:2em;margin-bottom:2em;}",".ep-sm.jsx-1113775440 .tagline.jsx-1113775440{font-weight:400;font-size:18px;-webkit-letter-spacing:0.04em;-moz-letter-spacing:0.04em;-ms-letter-spacing:0.04em;letter-spacing:0.04em;line-height:1.22em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".ep-dyn-grid.jsx-1113775440{width:100%;display:grid;grid-template-columns:1fr 1fr 1fr;}",".ep-dyn-grid.jsx-1113775440 .dyn-list.jsx-1113775440{display:block;position:relative;}",".ep-dyn-grid.jsx-1113775440 .dyn-item.jsx-1113775440{display:block;}",".ep-dyn-grid.jsx-1113775440 .dyn-header.jsx-1113775440{display:block;margin-bottom:0.5em;text-transform:uppercase;font-size:15px;line-height:1.22em;font-weight:500;}",".ep-dyn-grid.jsx-1113775440 .dyn-link.jsx-1113775440{font-weight:300;font-size:15px;line-height:1.5em;-webkit-letter-spacing:0.02em;-moz-letter-spacing:0.02em;-ms-letter-spacing:0.02em;letter-spacing:0.02em;}",".ep-dyn-grid.jsx-1113775440 .dyn-link.jsx-1113775440:hover{opacity:0.6;-webkit-transition:all 400ms ease;transition:all 400ms ease;}",".ep-dyn-grid.jsx-1113775440 .dyn-text.jsx-1113775440{white-space:nowrap;}",".ep-action.jsx-1113775440{width:100%;display:block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}",".action-list.jsx-1113775440{display:block;width:50%;}",".action-list.jsx-1113775440 .action-item.jsx-1113775440{display:block;font-size:12px;line-height:1.22em;font-weight:300;-webkit-letter-spacing:0.03em;-moz-letter-spacing:0.03em;-ms-letter-spacing:0.03em;letter-spacing:0.03em;margin-bottom:20px;}",".action-list.jsx-1113775440 .action-item.jsx-1113775440:last-child{margin-bottom:0;}",".action-list.jsx-1113775440 .action-social.jsx-1113775440{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}",".action-list.jsx-1113775440 .action-social.jsx-1113775440 .ico-social.jsx-1113775440{display:block;width:24px;height:24px;margin-right:10px;}",".action-list.jsx-1113775440 .action-social.jsx-1113775440 .ico-social.jsx-1113775440:last-child{margin-right:0;}",".action-list.jsx-1113775440 .action-link.jsx-1113775440{display:block;margin-right:6px;}",".action-list.jsx-1113775440 .action-link.jsx-1113775440:last-child{margin-right:0;}",".ep-footnote.jsx-1113775440{display:block;border-top:1px solid #2F3134;margin-top:10px;padding-top:3px;padding-bottom:40px;font-size:12px;line-height:1.22em;-webkit-letter-spacing:0.02em;-moz-letter-spacing:0.02em;-ms-letter-spacing:0.02em;letter-spacing:0.02em;text-transform:uppercase;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}",".ep-footnote.jsx-1113775440 .policy.jsx-1113775440 a.jsx-1113775440{margin-left:12px;-webkit-transition:all 400ms ease;transition:all 400ms ease;}",".ep-footnote.jsx-1113775440 .policy.jsx-1113775440 a.jsx-1113775440:hover{opacity:0.6;-webkit-transition:all 400ms ease;transition:all 400ms ease;}",".ep-footnote.jsx-1113775440 .policy.jsx-1113775440 a.jsx-1113775440:first-child{margin-left:0px;}","@media only screen and (max-width:1024px){.ep-sm.jsx-1113775440{grid-template-columns:1fr;grid-template-rows:100px 1fr;}}","@media only screen and (max-width:768px){.ep-dyn-grid.jsx-1113775440{grid-template-columns:1fr;grid-template-rows:1fr 1fr 1fr;grid-row-gap:40px;}.ep-footnote.jsx-1113775440{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}}"]))}))},RKIb:function(e,t,r){"use strict";var n="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.a=n},RRgQ:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return M})),r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return j})),r.d(t,"d",(function(){return B})),r.d(t,"e",(function(){return z})),r.d(t,"f",(function(){return G})),r.d(t,"g",(function(){return D})),r.d(t,"h",(function(){return C})),r.d(t,"i",(function(){return g})),r.d(t,"j",(function(){return I})),r.d(t,"k",(function(){return S})),r.d(t,"l",(function(){return R})),r.d(t,"m",(function(){return T})),r.d(t,"n",(function(){return _})),r.d(t,"o",(function(){return N})),r.d(t,"p",(function(){return f})),r.d(t,"q",(function(){return H})),r.d(t,"r",(function(){return w})),r.d(t,"s",(function(){return x})),r.d(t,"t",(function(){return d})),r.d(t,"u",(function(){return y})),r.d(t,"v",(function(){return v})),r.d(t,"w",(function(){return m})),r.d(t,"x",(function(){return J})),r.d(t,"y",(function(){return W})),r.d(t,"z",(function(){return X})),r.d(t,"A",(function(){return ee})),r.d(t,"B",(function(){return te})),r.d(t,"C",(function(){return U})),r.d(t,"D",(function(){return V})),r.d(t,"E",(function(){return h})),r.d(t,"F",(function(){return O})),r.d(t,"G",(function(){return u})),r.d(t,"H",(function(){return b})),r.d(t,"I",(function(){return $}));var n=r("L2ys"),i=r("qVdT"),o=r("mrSG"),a=r("9x6x"),s=r.n(a);r("BX9R");function c(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 o={};r.fields.map((function(e){return c(o,e.name,e.value,n)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(r)){var a=(n||{})[r.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return c(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 new i.a(17);e[t.value]=null}}function u(e,t){var r=null;e.directives&&(r={},e.directives.forEach((function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach((function(n){var i=n.name,o=n.value;return c(r[e.name.value],i,o,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return c(n,r,i,t)}))),f(e.name.value,n,r)}var l=["connection","include","skip","client","rest","export"];function f(e,t,r){if(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=t,o={};return n.forEach((function(e){o[e]=i[e]})),r.connection.key+"("+JSON.stringify(o)+")"}return r.connection.key}var a=e;if(t){var c=s()(t);a+="("+c+")"}return r&&Object.keys(r).forEach((function(e){-1===l.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?a+="@"+e+"("+JSON.stringify(r[e])+")":a+="@"+e)})),a}function p(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return c(r,n,i,t)})),r}return null}function h(e){return e.alias?e.alias.value:e.name.value}function d(e){return"Field"===e.kind}function v(e){return"InlineFragment"===e.kind}function y(e){return e&&"id"===e.type&&"boolean"===typeof e.generated}function b(e,t){return void 0===t&&(t=!1),Object(o.a)({type:"id",generated:t},"string"===typeof e?{id:e,typename:void 0}:e)}function m(e){return null!=e&&"object"===typeof e&&"json"===e.type}function g(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach((function(e){r[e.name.value]=p(e,t)})),r}return null}function O(e,t){return void 0===t&&(t={}),(r=e.directives,r?r.filter(E).map((function(e){var t=e.arguments;e.name.value,Object(i.b)(t&&1===t.length,14);var r=t[0];Object(i.b)(r.name&&"if"===r.name.value,15);var n=r.value;return Object(i.b)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:e,ifArgument:r}})):[]).every((function(e){var r=e.directive,n=e.ifArgument,o=!1;return"Variable"===n.value.kind?(o=t[n.value.name.value],Object(i.b)(void 0!==o,13)):o=n.value.value,"skip"===r.name.value?!o:o}));var r}function x(e,t){return function(e){var t=[];return Object(n.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function w(e){return e&&x(["client"],e)&&x(["export"],e)}function E(e){var t=e.name.value;return"skip"===t||"include"===t}function S(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.a(11);"FragmentDefinition"===e.kind&&n.push(e)})),"undefined"===typeof r&&(Object(i.b)(1===n.length,12),r=n[0].name.value),Object(o.a)(Object(o.a)({},e),{definitions:Object(o.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function j(e){for(var t=[],r=1;r1){var n=[];t=ie(t,n);for(var i=1;i0)&&(o.unobserve(e.target),u.delete(e.target),t())}}))}),{rootMargin:"200px"}):void 0);return r?(r.observe(e),u.set(e,t),function(){try{r.unobserve(e)}catch(t){console.error(t)}u.delete(e)}):function(){}};function h(e,t,r,n){(0,s.isLocalURL)(t)&&(e.prefetch(t,r,n).catch((function(e){0})),f[t+"%"+r]=!0)}var d=function(e){var t=!1!==e.prefetch,r=a.default.useState(),i=n(r,2),o=i[0],u=i[1],d=(0,c.useRouter)(),v=d&&d.pathname||"/",y=a.default.useMemo((function(){var t=(0,s.resolveHref)(v,e.href,!0),r=n(t,2),i=r[0],o=r[1];return{href:i,as:e.as?(0,s.resolveHref)(v,e.as):o||i}}),[v,e.href,e.as]),b=y.href,m=y.as;a.default.useEffect((function(){if(t&&l&&o&&o.tagName&&(0,s.isLocalURL)(b)&&!f[b+"%"+m])return p(o,(function(){h(d,b,m)}))}),[t,o,b,m,d]);var g=e.children,O=e.replace,x=e.shallow,w=e.scroll;"string"===typeof g&&(g=a.default.createElement("a",null,g));var E=a.Children.only(g),S={ref:function(e){e&&u(e),E&&"object"===typeof E&&E.ref&&("function"===typeof E.ref?E.ref(e):"object"===typeof E.ref&&(E.ref.current=e))},onClick:function(e){E.props&&"function"===typeof E.props.onClick&&E.props.onClick(e),e.defaultPrevented||function(e,t,r,n,i,o,a){("A"!==e.currentTarget.nodeName||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&(0,s.isLocalURL)(r))&&(e.preventDefault(),null==a&&(a=n.indexOf("#")<0),t[i?"replace":"push"](r,n,{shallow:o}).then((function(e){e&&a&&(window.scrollTo(0,0),document.body.focus())})))}(e,d,b,m,O,x,w)}};return t&&(S.onMouseEnter=function(e){(0,s.isLocalURL)(b)&&(E.props&&"function"===typeof E.props.onMouseEnter&&E.props.onMouseEnter(e),h(d,b,m,{priority:!0}))}),(e.passHref||"a"===E.type&&!("href"in E.props))&&(S.href=(0,s.addBasePath)((0,s.addLocale)(m,d&&d.locale,d&&d.defaultLocale))),a.default.cloneElement(E,S)};t.default=d},h4VS:function(e,t,r){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,"a",(function(){return n}))},ilO0:function(e,t,r){"use strict";r.d(t,"j",(function(){return b})),r.d(t,"i",(function(){return m})),r.d(t,"f",(function(){return g})),r.d(t,"h",(function(){return O})),r.d(t,"a",(function(){return x})),r.d(t,"d",(function(){return w})),r.d(t,"b",(function(){return E})),r.d(t,"g",(function(){return S})),r.d(t,"c",(function(){return j})),r.d(t,"e",(function(){return k}));var n=r("h4VS"),i=r("lTCR"),o=r.n(i);function a(){var e=Object(n.a)(["\n query CategorySingle($slug: String) {\n categorySingle(slug: $slug) {\n title \n slug \n iconFile \n metaTitle \n metaDesc \n ogTitle \n ogDesc \n ogImage \n altImage \n imageTitle \n seoChangefreq \n seoPriority \n image \n altImageContent\n imageTitleContent\n headlineEn\n contentEn\n categoryCarousels {\n edges {\n node {\n image\n altImage \n imageTitle\n }\n }\n }\n contentProductcategories {\n title\n slug \n cover\n altImage \n imageTitle \n headlineTh\n headlineEn\n datePublish\n published\n productCategory {\n title\n slug\n }\n contentDetails {\n contentType\n articleTh\n articleEn\n image\n }\n }\n }\n }\n"]);return a=function(){return e},e}function s(){var e=Object(n.a)(["\n query AllCategories {\n allCategories {\n edges {\n node {\n title\n slug \n iconFile\n }\n }\n }\n }\n"]);return s=function(){return e},e}function c(){var e=Object(n.a)(["\n query Highlights {\n hightlights {\n edges {\n node {\n product {\n name\n slug\n altImage\n imageTitle\n brand {\n name\n slug\n logo \n }\n price\n descriptionTh\n descriptionEn\n headlineEn\n carousels {\n id\n image\n altImage\n imageTitle\n }\n }\n }\n }\n }\n }\n"]);return c=function(){return e},e}function u(){var e=Object(n.a)(["\n query allProducts($brand_Slug: String, $after: String) {\n allProducts(brand_Slug: $brand_Slug, first: 8, after: $after) {\n edges {\n node {\n name \n price\n cover\n descriptionTh\n brand {\n name\n slug\n }\n }\n }\n pageInfo {\n endCursor\n hasNextPage \n }\n }\n }\n"]);return u=function(){return e},e}function l(){var e=Object(n.a)(["\n query BrandSingle($slug: String) {\n brandSingle(slug: $slug) {\n name \n slug \n metaTitle\n metaDesc\n ogTitle\n ogDesc\n ogImage\n logo\n altLogo\n logoTitle\n image\n altImage\n imageTitle\n headlineTh\n headlineEn \n contentTh \n contentEn\n brandCarousels {\n edges {\n node {\n image\n altImage\n imageTitle\n }\n }\n }\n products {\n name\n slug \n cover \n altImage\n imageTitle\n descriptionTh\n descriptionEn\n price\n brand {\n name\n }\n }\n contentBrands {\n title\n slug \n cover\n altImage\n imageTitle\n headlineTh\n headlineEn\n datePublish\n published\n categories {\n name\n slug\n }\n contentDetails {\n contentType\n articleTh \n articleEn\n image\n }\n }\n }\n }\n"]);return l=function(){return e},e}function f(){var e=Object(n.a)(["\n query AllProducts($after: String, $category_Slug: String) {\n allProducts(first: 8, after: $after, category_Slug: $category_Slug) {\n edges {\n node {\n name \n slug \n sku \n price \n cover\n altImage\n imageTitle\n descriptionTh\n descriptionEn \n headlineTh\n headlineEn\n contentTh \n contentEn \n brand {\n name\n slug\n logo \n }\n productCategory {\n title \n slug\n }\n }\n }\n pageInfo {\n endCursor\n hasNextPage \n }\n }\n }\n"]);return f=function(){return e},e}function p(){var e=Object(n.a)(["\n query AllBrands {\n allBrands {\n edges {\n node {\n name \n slug \n logo\n altLogo\n logoTitle\n }\n }\n }\n }\n"]);return p=function(){return e},e}function h(){var e=Object(n.a)(["\n query Product($slug: String) {\n product(slug: $slug) {\n name \n slug \n sku \n price \n cover\n metaTitle\n metaDesc\n ogTitle\n ogDesc\n ogImage\n altImage\n imageTitle\n descriptionEn \n headlineEn\n contentEn \n brand {\n name\n slug\n logo \n }\n productCategory {\n title \n slug\n }\n specifications {\n specDesc \n specValue \n }\n downloadDocuments {\n title\n documentFile\n }\n colors {\n productImage\n altImage\n imageTitle\n productColor\n altColor\n colorTitle\n }\n similarProducts {\n productRelated {\n name\n slug \n }\n }\n relatedArticles {\n contentRelated {\n title \n slug\n }\n }\n }\n }\n"]);return h=function(){return e},e}function d(){var e=Object(n.a)(["\n query AllProducts($after: String, $category_Slug: String, $brand_Slug: String) {\n allProducts(first: 8, after: $after, category_Slug: $category_Slug, brand_Slug: $brand_Slug) {\n edges {\n node {\n name \n slug \n sku \n price \n cover\n altImage\n imageTitle\n descriptionTh\n descriptionEn \n headlineTh\n headlineEn\n contentTh \n contentEn \n brand {\n name\n slug\n logo \n }\n productCategory {\n title \n slug\n }\n }\n }\n pageInfo {\n endCursor\n hasNextPage \n }\n }\n }\n"]);return d=function(){return e},e}function v(){var e=Object(n.a)(["\n query ResultBrand($search: String) {\n resultBrand(search: $search) {\n name \n slug\n }\n }\n"]);return v=function(){return e},e}function y(){var e=Object(n.a)(["\n query SearchProduct($search: String) {\n search(search: $search) {\n name \n slug\n }\n }\n"]);return y=function(){return e},e}var b=o()(y()),m=o()(v()),g=o()(d()),O=o()(h()),x=o()(p()),w=o()(f()),E=o()(l()),S=(o()(u()),o()(c())),j=o()(s()),k=o()(a())},lTCR:function(e,t,r){var n=r("EMzn").parse;function i(e){return e.replace(/[\s,]+/g," ").trim()}var o={},a={};var s=!0;var c=!1;function u(e){var t=i(e);if(o[t])return o[t];var r=n(e,{experimentalFragmentVariables:c});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");return r=function e(t,r){var n=Object.prototype.toString.call(t);if("[object Array]"===n)return t.map((function(t){return e(t,r)}));if("[object Object]"!==n)throw new Error("Unexpected input.");r&&t.loc&&delete t.loc,t.loc&&(delete t.loc.startToken,delete t.loc.endToken);var i,o,a,s=Object.keys(t);for(i in s)s.hasOwnProperty(i)&&(o=t[s[i]],"[object Object]"!==(a=Object.prototype.toString.call(o))&&"[object Array]"!==a||(t[s[i]]=e(o,!0)));return t}(r=function(e){for(var t,r={},n=[],o=0;o0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1,i=!1,o=arguments[1],a=o;return new r((function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(s){return r.error(s)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n=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()}}))}},{key:l,value:function(){return this}}],[{key:"from",value:function(t){var r="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=p(t,l);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return d(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(s("iterator")&&(n=p(t,u)))return new r((function(e){y((function(){if(!e.closed){var r=!0,i=!1,o=void 0;try{for(var a,s=n.call(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;if(e.next(c),e.closed)return}}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){y((function(){if(!e.closed){for(var r=0;r2)return"[Array]";for(var r=Math.min(10,e.length),n=e.length-r,i=[],o=0;o1&&i.push("... ".concat(n," more items"));return"["+i.join(", ")+"]"}(e,r);return function(e,t){var r=Object.keys(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var r=e.constructor.name;if("string"===typeof r&&""!==r)return r}return t}(e)+"]";return"{ "+r.map((function(r){return r+": "+a(e[r],t)})).join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}},vcXL:function(e,t,r){"use strict";var n=self.fetch.bind(self);e.exports=n,e.exports.default=e.exports},xGF7:function(e,t,r){"use strict";var n;function i(e,t){if(void 0===t&&(t={}),"function"!==typeof e)throw new Error("[withApollo] requires a function that returns an ApolloClient");return e(t)}Object.defineProperty(t,"__esModule",{value:!0}),r("vcXL"),t.default=function(e,t){if(!e)throw new Error("[withApollo] the first param is missing and is required to get the ApolloClient");return"undefined"===typeof window?i(e,t):(n||(n=i(e,t)),n)}}}]);