-
Notifications
You must be signed in to change notification settings - Fork 0
/
apollo-client.html
8 lines (8 loc) · 130 KB
/
apollo-client.html
1
2
3
4
5
6
7
8
<!-- <script src="https://wzrd.in/standalone/apollo-client@1.9.0"></script> -->
<script>
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.apolloClient=e()}}(function(){var e;return function e(t,r,n){function o(a,u){if(!r[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[a]={exports:{}};t[a][0].call(l.exports,function(e){var r=t[a][1][e];return o(r?r:e)},l,l.exports,e,t,r,n)}return r[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)o(n[a]);return o}({1:[function(e,t,r){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(f===setTimeout)return setTimeout(e,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function a(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function u(){v&&h&&(v=!1,h.length?y=h.concat(y):m=-1,y.length&&s())}function s(){if(!v){var e=i(u);v=!0;for(var t=y.length;t;){for(h=y,y=[];++m<t;)h&&h[m].run();m=-1,t=y.length}h=null,v=!1,a(e)}}function c(e,t){this.fun=e,this.array=t}function l(){}var f,d,p=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(e){f=n}try{d="function"==typeof clearTimeout?clearTimeout:o}catch(e){d=o}}();var h,y=[],v=!1,m=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];y.push(new c(e,t)),1!==y.length||v||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{}],2:[function(t,r,n){(function(o){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,t("whatwg-fetch"),t("graphql/language/printer"),t("redux"),t("graphql-anywhere"),t("symbol-observable"),t("apollo-link-core")):"function"==typeof e&&e.amd?e(["exports","whatwg-fetch","graphql/language/printer","redux","graphql-anywhere","symbol-observable","apollo-link-core"],i):i(o.apollo={},null,o.graphql_language_printer,o.Redux,o.graphqlAnywhere,o.$$observable,o.apolloLinkCore)}(this,function(e,t,r,n,i,a,u){"use strict";function s(e){return"StringValue"===e.kind}function c(e){return"BooleanValue"===e.kind}function l(e){return"IntValue"===e.kind}function f(e){return"FloatValue"===e.kind}function d(e){return"Variable"===e.kind}function p(e){return"ObjectValue"===e.kind}function h(e){return"ListValue"===e.kind}function y(e){return"EnumValue"===e.kind}function v(e,t,r,n){if(l(r)||f(r))e[t.value]=Number(r.value);else if(c(r)||s(r))e[t.value]=r.value;else if(p(r)){var o={};r.fields.map(function(e){return v(o,e.name,e.value,n)}),e[t.value]=o}else if(d(r)){var i=(n||{})[r.name.value];e[t.value]=i}else if(h(r))e[t.value]=r.values.map(function(e){var r={};return v(r,t,e,n),r[t.value]});else{if(!y(r))throw new Error('The inline argument "'+t.value+'" of kind "'+r.kind+'" is not supported.\n Use variables instead of inline arguments to overcome this limitation.');e[t.value]=r.value}}function m(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 o=n.name,i=n.value;return v(r[e.name.value],o,i,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,o=e.value;return v(n,r,o,t)})),b(e.name.value,n,r)}function b(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 o=t,i={};return n.forEach(function(e){i[e]=o[e]}),r.connection.key+"("+JSON.stringify(i)+")"}return r.connection.key}if(t){var a=JSON.stringify(t);return e+"("+a+")"}return e}function g(e){return e.alias?e.alias.value:e.name.value}function w(e){return"Field"===e.kind}function E(e){return"InlineFragment"===e.kind}function O(e){return e.errors&&e.errors.length}function k(e){return null!=e&&"object"==typeof e&&"id"===e.type}function T(e,t){return void 0===t&&(t=!1),{type:"id",id:e,generated:t}}function _(e){return null!=e&&"object"==typeof e&&"json"===e.type}function I(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(t){"undefined"!=typeof t&&null!==t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function S(e){q(e);var t=null;if(e.definitions.forEach(function(e){"OperationDefinition"===e.kind&&"mutation"===e.operation&&(t=e)}),!t)throw new Error("Must contain a mutation definition.");return t}function q(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');var t=!1;e.definitions.forEach(function(e){switch(e.kind){case"FragmentDefinition":break;case"OperationDefinition":if(t)throw new Error("Queries must have exactly one operation definition.");t=!0;break;default:throw new Error('Schema type definitions not allowed in queries. Found: "'+e.kind+'"')}})}function P(e){var t=null;return e.definitions.forEach(function(e){"OperationDefinition"===e.kind&&e.name&&(t=e.name.value)}),t}function N(e){var t=e.definitions.filter(function(e){return"FragmentDefinition"===e.kind});return t}function R(e){q(e);var t=null;if(e.definitions.map(function(e){"OperationDefinition"===e.kind&&"query"===e.operation&&(t=e)}),!t)throw new Error("Must contain a query definition.");return t}function A(e){q(e);var t=null;if(e.definitions.map(function(e){"OperationDefinition"===e.kind&&(t=e)}),!t)throw new Error("Must contain a query definition.");return t}function F(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function M(e,t){var r=t,n=[];if(e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new Error("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed.");"FragmentDefinition"===e.kind&&n.push(e)}),"undefined"==typeof r){if(1!==n.length)throw new Error("Found "+n.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment.");r=n[0].name.value}var o=De({},e,{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}].concat(e.definitions)});return o}function L(e){if(e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter(function(e){var t=e.defaultValue;return t}).map(function(e){var t=e.variable,r=e.defaultValue,n={};return v(n,t.name,r),n});return I.apply(void 0,[{}].concat(t))}return{}}function Q(e){if(Array.isArray(e))return e.map(function(e){return Q(e)});if(null!==e&&"object"==typeof e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=Q(e[r]));return t}return e}function x(e,t){if(void 0===t&&(t=!1),e.selections){if(!t){var r=e.selections.some(function(e){return"Field"===e.kind&&"__typename"===e.name.value});r||e.selections.push(Ce)}e.selections.forEach(function(e){"Field"===e.kind?0!==e.name.value.lastIndexOf("__",0)&&e.selectionSet&&x(e.selectionSet):"InlineFragment"===e.kind&&e.selectionSet&&x(e.selectionSet)})}}function j(e){e.selections&&(e.selections.forEach(function(e){"Field"===e.kind&&e&&e.directives&&(e.directives=e.directives.filter(function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||console.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),!t}))}),e.selections.forEach(function(e){"Field"===e.kind?e.selectionSet&&j(e.selectionSet):"InlineFragment"===e.kind&&e.selectionSet&&j(e.selectionSet)}))}function D(e){q(e);var t=Q(e);return t.definitions.forEach(function(e){var t="OperationDefinition"===e.kind;x(e.selectionSet,t)}),t}function C(e){q(e);var t=Q(e);return t.definitions.forEach(function(e){j(e.selectionSet)}),t}function U(e){return Be({},e,{query:r.print(e.query)})}function B(e,t){if(void 0===t&&(t={}),!e)throw new Error("You must pass an options argument to createNetworkInterface.");var r,n;return"string"==typeof e?(console.warn('Passing the URI as the first argument to createNetworkInterface is deprecated as of Apollo Client 0.5. Please pass it as the "uri" property of the network interface options.'),n=t.opts,r=e):(n=e.opts,r=e.uri),new Ke(r,n)}function V(e){if(!e)throw new Error("You must pass an options argument to createNetworkInterface.");return new We({uri:e.uri,batchInterval:e.batchInterval,batchMax:e.batchMax,fetchOpts:e.opts||{}})}function K(e){return"APOLLO_QUERY_RESULT"===e.type}function G(e){return"APOLLO_MUTATION_INIT"===e.type}function Y(e){return"APOLLO_MUTATION_RESULT"===e.type}function H(e){return"APOLLO_MUTATION_ERROR"===e.type}function W(e){return"APOLLO_UPDATE_QUERY_RESULT"===e.type}function J(e){return"APOLLO_STORE_RESET"===e.type}function z(e){return"APOLLO_SUBSCRIPTION_RESULT"===e.type}function X(e){return"APOLLO_WRITE"===e.type}function $(e,t){if(void 0===t&&(t={}),!e.directives)return!0;var r=!0;return e.directives.forEach(function(e){if("skip"===e.name.value||"include"===e.name.value){var n=e.arguments||[],o=e.name.value;if(1!==n.length)throw new Error("Incorrect number of arguments for the @"+o+" directive.");var i=n[0];if(!i.name||"if"!==i.name.value)throw new Error("Invalid argument for the @"+o+" directive.");var a=n[0].value,u=!1;if(a&&"BooleanValue"===a.kind)u=a.value;else{if("Variable"!==a.kind)throw new Error("Argument for the @"+o+" directive must be a variable or a bool ean value.");if(u=t[a.name.value],void 0===u)throw new Error("Invalid variable referenced in @"+o+" directive.")}"skip"===o&&(u=!u),u||(r=!1)}}),r}function Z(){return"undefined"!=typeof o&&o.env.NODE_ENV?o.env.NODE_ENV:"development"}function ee(e){return Z()===e}function te(){return ee("production")===!0}function re(){return ee("development")===!0}function ne(){return ee("test")===!0}function oe(e,t){var r=new Xe("Error writing result to store for query "+(t.loc&&t.loc.source&&t.loc.source.body));return r.message+="/n"+e.message,r.stack=e.stack,r}function ie(e){var t=e.result,r=e.query,n=e.store,o=void 0===n?{}:n,i=e.variables,a=e.dataIdFromObject,u=e.fragmentMap,s=void 0===u?{}:u,c=e.fragmentMatcherFunction,l=R(r);i=I({},L(l),i);try{return ue({dataId:"ROOT_QUERY",result:t,selectionSet:l.selectionSet,context:{store:o,processedData:{},variables:i,dataIdFromObject:a,fragmentMap:s,fragmentMatcherFunction:c}})}catch(e){throw oe(e,r)}}function ae(e){var t=e.dataId,r=e.result,n=e.document,o=e.store,i=void 0===o?{}:o,a=e.variables,u=e.dataIdFromObject,s=e.fragmentMatcherFunction,c=A(n),l=c.selectionSet,f=F(N(n));a=I({},L(c),a);try{return ue({result:r,dataId:t,selectionSet:l,context:{store:i,processedData:{},variables:a,dataIdFromObject:u,fragmentMap:f,fragmentMatcherFunction:s}})}catch(e){throw oe(e,n)}}function ue(e){var t=e.result,r=e.dataId,n=e.selectionSet,o=e.context,i=o.variables,a=o.store,u=(o.dataIdFromObject,o.fragmentMap);return n.selections.forEach(function(e){var n=$(e,i);if(w(e)){var a=g(e),s=t[a];n&&("undefined"!=typeof s?fe({dataId:r,value:s,field:e,context:o}):o.fragmentMatcherFunction&&(te()||console.warn("Missing field "+a+" in "+JSON.stringify(t,null,2).substring(0,100))))}else{var c=void 0;if(E(e))c=e;else if(c=(u||{})[e.name.value],!c)throw new Error("No fragment named "+e.name.value+".");var l=!0;if(o.fragmentMatcherFunction&&c.typeCondition){var f={type:"id",id:"self",generated:!1},d={store:{self:t},returnPartialData:!1,hasMissingField:!1,customResolvers:{}};l=o.fragmentMatcherFunction(f,c.typeCondition.name.value,d),d.returnPartialData&&console.error("WARNING: heuristic fragment matching going on!")}n&&l&&ue({result:t,selectionSet:c.selectionSet,dataId:r,context:o})}}),a}function se(e){return"$"===e[0]}function ce(e,t,r){var n=r[e],o=r[t];Object.keys(n).forEach(function(i){var a=n[i],u=o[i];k(a)&&se(a.id)&&k(u)&&ce(a.id,u.id,r),delete r[e],r[t]=ze({},n,o)})}function le(e,t,r){if(!r)return!1;if(r[e]){if(r[e].indexOf(t)>=0)return!0;r[e].push(t)}else r[e]=[t];return!1}function fe(e){var t,r=e.field,n=e.value,o=e.dataId,i=e.context,a=i.variables,u=i.dataIdFromObject,s=i.store,c=(i.fragmentMap,m(r,a)),l=!1,f="";if(r.selectionSet&&null!==n)if(Array.isArray(n)){var d=o+"."+c;t=de(n,d,r.selectionSet,i)}else{var p=o+"."+c,h=!0;if(se(p)||(p="$"+p),u){var y=u(n);if(y&&se(y))throw new Error('IDs returned by dataIdFromObject cannot begin with the "$" character.');y&&(p=y,h=!1)}if(le(p,r,i.processedData)||ue({dataId:p,result:n,selectionSet:r.selectionSet,context:i}),t={type:"id",id:p,generated:h},s[o]&&s[o][c]!==t){var v=s[o][c];if(k(t)&&t.generated&&k(v)&&!v.generated)throw new Error("Store error: the application attempted to write an object with no provided id"+(" but the store already contains an id of "+v.id+" for this object."));k(v)&&v.generated&&(f=v.id,l=!0)}}else t=null!=n&&"object"==typeof n?{type:"json",json:n}:n;var b=ze({},s[o],(g={},g[c]=t,g));l&&ce(f,t.id,s),s[o]&&t===s[o][c]||(s[o]=b);var g}function de(e,t,r,n){return e.map(function(e,o){if(null===e)return null;var i=t+"."+o;if(Array.isArray(e))return de(e,i,r,n);var a=!0;if(n.dataIdFromObject){var u=n.dataIdFromObject(e);u&&(i=u,a=!1)}le(i,r,n.processedData)||ue({dataId:i,result:e,selectionSet:r,context:n});var s={type:"id",id:i,generated:a};return s})}function pe(e){if(0===e.optimistic.length)return e.data;var t=e.optimistic.map(function(e){return e.data});return I.apply(void 0,[{},e.data].concat(t))}function he(e,t,r,n){if(void 0===e&&(e=Ze),G(t)&&t.optimisticResponse){var o=void 0;o="function"==typeof t.optimisticResponse?t.optimisticResponse(t.variables):t.optimisticResponse;var i={type:"APOLLO_MUTATION_RESULT",result:{data:o},document:t.mutation,operationName:t.operationName,variables:t.variables,mutationId:t.mutationId,extraReducers:t.extraReducers,updateQueries:t.updateQueries,update:t.update},a=pe($e({},r,{optimistic:e})),u=ye(a,i,r.queries,r.mutations,n),s={action:i,data:u,mutationId:t.mutationId},c=e.concat([s]);return c}return(H(t)||Y(t))&&e.some(function(e){return e.mutationId===t.mutationId})?ve(function(e){return e.mutationId===t.mutationId},e,r,n):e}function ye(e,t,r,n,o){var i=Ie(e,t,o),a={};return Object.keys(i).forEach(function(t){i[t]!==e[t]&&(a[t]=i[t])}),a}function ve(e,t,r,n){void 0===t&&(t=Ze);var o=I({},r.data),i=t.filter(function(t){return!e(t)}).map(function(e){var t=ye(o,e.action,r.queries,r.mutations,n);return I(o,t),$e({},e,{data:t})});return i}function me(e,t){if(e===t)return!0;if(null!=e&&"object"==typeof e&&null!=t&&"object"==typeof t){for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r))return!1;if(!me(e[r],t[r]))return!1}for(var r in t)if(!e.hasOwnProperty(r))return!1;return!0}return!1}function be(e){var t={returnPartialData:!1};return ge(et({},e,t)).result}function ge(e){var t=e.store,r=e.query,n=e.variables,o=e.previousResult,a=e.returnPartialData,u=void 0===a||a,s=e.rootId,c=void 0===s?"ROOT_QUERY":s,l=e.fragmentMatcherFunction,f=e.config,d=R(r);n=I({},L(d),n);var p={store:t,returnPartialData:u,customResolvers:f&&f.customResolvers||{},hasMissingField:!1},h={type:"id",id:c,previousResult:o},y=i(rt,r,h,p,n,{fragmentMatcher:l,resultMapper:Oe});return{result:y,isMissing:p.hasMissingField}}function we(e){if(!k(e))throw new Error("Encountered a sub-selection on the query, but the store doesn't have an object reference. This should never happen during normal use unless you have custom code that is directly manipulating the store; please file an issue.")}function Ee(e,t){if(k(e))return et({},e,{previousResult:t});if(Array.isArray(e)){var r={};return Array.isArray(t)&&t.forEach(function(e){e&&e[tt]&&(r[e[tt]]=e)}),e.map(function(e,n){var o=t&&t[n];return k(e)&&(o=r[e.id]||o),Ee(e,o)})}return e}function Oe(e,t){if(t.previousResult){var r=Object.keys(e),n=Object.keys(t.previousResult).reduce(function(e,t){return e&&r.indexOf(t)>-1},!0)&&r.reduce(function(r,n){return r&&ke(e[n],t.previousResult[n])},!0);if(n)return t.previousResult}return Object.defineProperty(e,tt,{enumerable:!1,configurable:!1,writable:!1,value:t.id}),e}function ke(e,t){return e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.reduce(function(e,r,n){return e&&ke(r,t[n])},!0)}function Te(e,t,r){var n=t.variables,o=t.document,i=t.newResult,a=at({},e);return ae({result:i,dataId:"ROOT_QUERY",variables:n,document:o,store:a,dataIdFromObject:r.dataIdFromObject,fragmentMatcherFunction:r.fragmentMatcher})}function _e(e){try{return e()}catch(e){console.error&&console.error(e)}}function Ie(e,t,r){void 0===e&&(e={});var n=t;if(K(t)){if(t.fetchMoreForQueryId)return e;if(!O(t.result)){var o=ut({},e),i=ae({result:t.result.data,dataId:"ROOT_QUERY",document:t.document,variables:t.variables,store:o,dataIdFromObject:r.dataIdFromObject,fragmentMatcherFunction:r.fragmentMatcher});return t.extraReducers&&t.extraReducers.forEach(function(e){i=e(i,n)}),i}}else if(z(t)){if(!O(t.result)){var o=ut({},e),a=ae({result:t.result.data,dataId:"ROOT_SUBSCRIPTION",document:t.document,variables:t.variables,store:o,dataIdFromObject:r.dataIdFromObject,fragmentMatcherFunction:r.fragmentMatcher});return t.extraReducers&&t.extraReducers.forEach(function(e){a=e(a,n)}),a}}else if(Y(n)){if(!n.result.errors){var o=ut({},e),u=ae({result:n.result.data,dataId:"ROOT_MUTATION",document:n.document,variables:n.variables,store:o,dataIdFromObject:r.dataIdFromObject,fragmentMatcherFunction:r.fragmentMatcher}),s=n.updateQueries;if(s&&Object.keys(s).filter(function(e){return s[e]}).forEach(function(t){var o=s[t],i=o.query,a=o.reducer,c=ge({store:e,query:i.document,variables:i.variables,returnPartialData:!0,fragmentMatcherFunction:r.fragmentMatcher,config:r}),l=c.result,f=c.isMissing;if(!f){var d=_e(function(){return a(l,{mutationResult:n.result,queryName:P(i.document),queryVariables:i.variables})});d&&(u=ae({result:d,dataId:"ROOT_QUERY",document:i.document,variables:i.variables,store:u,dataIdFromObject:r.dataIdFromObject,fragmentMatcherFunction:r.fragmentMatcher}))}}),n.update){var c=n.update,l=new it(u,r);_e(function(){return c(l,n.result)});var f=l.finish();u=Ie(u,{type:"APOLLO_WRITE",writes:f},r)}return n.extraReducers&&n.extraReducers.forEach(function(e){u=e(u,n)}),u}}else{if(W(n))return Te(e,n,r);if(J(t))return{};if(X(t))return t.writes.reduce(function(e,t){return ae({result:t.result,dataId:t.rootId,document:t.document,variables:t.variables,store:e,dataIdFromObject:r.dataIdFromObject,fragmentMatcherFunction:r.fragmentMatcher})},ut({},e))}return e}function Se(e){return function(t,r){void 0===t&&(t={});try{var n={data:Ie(t.data,r,e),optimistic:[],reducerError:null};return n.optimistic=he(t.optimistic,r,n,e),t.data===n.data&&t.optimistic===n.optimistic&&t.reducerError===n.reducerError?t:n}catch(e){return st({},t,{reducerError:lt(e,r)})}}}function qe(e){var t=void 0===e?{}:e,r=t.reduxRootKey,o=void 0===r?"apollo":r,i=t.initialState,a=t.config,u=void 0===a?{}:a,s=t.reportCrashes,c=void 0===s||s,l=t.logger,f=[],d=[];if(c&&d.push(ct),l&&d.push(l),d.length>0&&f.push(n.applyMiddleware.apply(void 0,d)),"undefined"!=typeof window){var p=window;p.devToolsExtension&&f.push(p.devToolsExtension())}var h=n.compose;if(i&&i[o]&&i[o].queries)throw new Error("Apollo initial state may not contain queries, only data");if(i&&i[o]&&i[o].mutations)throw new Error("Apollo initial state may not contain mutations, only data");return n.createStore(n.combineReducers((y={},y[o]=Se(u),y)),i,h.apply(void 0,f));var y}function Pe(e){return void 0!==e.unsubscribe}function Ne(e){return e.hasOwnProperty("graphQLErrors")}function Re(e){return Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){!e.hasOwnProperty(t)||null===e[t]||"object"!=typeof e[t]&&"function"!=typeof e[t]||Object.isFrozen(e[t])||Re(e[t])}),e}function Ae(e){return re()||ne()?Re(e):e}function Fe(e){return e<7}function Me(e,t){if(void 0===t&&(t="warn"),!te()&&!bt[e])switch(ne()||(bt[e]=!0),t){case"error":console.error(e);break;default:console.warn(e)}}function Le(e,t,r,n){return function(o,i){var a=ge({store:o,query:t,variables:r,returnPartialData:!0,fragmentMatcherFunction:n.fragmentMatcher,config:n}),u=a.result,s=a.isMissing;if(s)return o;var c;try{c=e(u,i,r)}catch(e){throw console.warn("Unhandled error in result reducer",e),e}return u!==c?ae({dataId:"ROOT_QUERY",result:c,store:o,document:t,variables:r,dataIdFromObject:n.dataIdFromObject,fragmentMatcherFunction:n.fragmentMatcher}):o}}function Qe(e){return e[At]}function xe(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}i=i&&i.hasOwnProperty("default")?i.default:i,a=a&&a.hasOwnProperty("default")?a.default:a;var je,De=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ce={kind:"Field",name:{kind:"Name",value:"__typename"}},Ue=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Be=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ve=function(){function e(e,t){if(void 0===t&&(t={}),!e)throw new Error("A remote endpoint is required for a network layer");if("string"!=typeof e)throw new Error("Remote endpoint must be a string");this._uri=e,this._opts=Be({},t),this._middlewares=[],this._afterwares=[]}return e.prototype.query=function(e){return new Promise(function(e,t){t(new Error("BaseNetworkInterface should not be used directly"))})},e}(),Ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ue(t,e),t.prototype.applyMiddlewares=function(e){var t=this;return new Promise(function(r,n){var o=e.request,i=e.options,a=function(e,t){var n=function(){if(e.length>0){var a=e.shift();a&&a.applyMiddleware.apply(t,[{request:o,options:i},n])}else r({request:o,options:i})};n()};a(t._middlewares.slice(),t)})},t.prototype.applyAfterwares=function(e){var t=this,r=e.response,n=e.options;return new Promise(function(e,o){var i={response:r,options:n},a=function(t,r){var n=function(){if(t.length>0){var o=t.shift();o&&o.applyAfterware.apply(r,[i,n])}else e(i)};n()};a(t._afterwares.slice(),t)})},t.prototype.fetchFromRemoteEndpoint=function(e){var t=e.request,r=e.options;return fetch(this._uri,Be({},this._opts,{body:JSON.stringify(U(t)),method:"POST"},r,{headers:Be({Accept:"*/*","Content-Type":"application/json"},r.headers)}))},t.prototype.query=function(e){var t=this,r=Be({},this._opts);return this.applyMiddlewares({request:e,options:r}).then(function(e){return e.request.query&&(e.request.query=C(e.request.query)),e}).then(function(e){return t.fetchFromRemoteEndpoint.call(t,e)}).then(function(e){return t.applyAfterwares({response:e,options:r})}).then(function(e){var t=e.response,r=t;return r.json().catch(function(e){var n=new Error("Network request failed with status "+t.status+' - "'+t.statusText+'"');throw n.response=r,n.parseError=e,n})}).then(function(t){if(t.hasOwnProperty("data")||t.hasOwnProperty("errors"))return t;throw new Error("Server response was missing for query '"+e.debugName+"'.")})},t.prototype.use=function(e){var t=this;return e.map(function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function");t._middlewares.push(e)}),this},t.prototype.useAfter=function(e){var t=this;return e.map(function(e){if("function"!=typeof e.applyAfterware)throw new Error("Afterware must implement the applyAfterware function");t._afterwares.push(e)}),this},t}(Ve),Ge=function(){function e(e){var t=e.batchInterval,r=e.batchMax,n=void 0===r?0:r,o=e.batchFetchFunction;this.queuedRequests=[],this.queuedRequests=[],this.batchInterval=t,this.batchMax=n,this.batchFetchFunction=o}return e.prototype.enqueueRequest=function(e){var t={request:e};return this.queuedRequests.push(t),t.promise=new Promise(function(e,r){t.resolve=e,t.reject=r}),1===this.queuedRequests.length&&this.scheduleQueueConsumption(),this.queuedRequests.length===this.batchMax&&this.consumeQueue(),t.promise},e.prototype.consumeQueue=function(){var e=this.queuedRequests.map(function(e){return e.request}),t=[],r=[],n=[];this.queuedRequests.forEach(function(e,o){t.push(e.promise),r.push(e.resolve),n.push(e.reject)}),this.queuedRequests=[];var o=this.batchFetchFunction(e);return o.then(function(e){e.forEach(function(e,t){r[t](e)})}).catch(function(e){n.forEach(function(t,r){n[r](e)})}),t},e.prototype.scheduleQueueConsumption=function(){var e=this;setTimeout(function(){e.queuedRequests.length&&e.consumeQueue()},this.batchInterval)},e}(),Ye=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),He=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},We=function(e){function t(t){var r=t.uri,n=t.batchInterval,o=void 0===n?10:n,i=t.batchMax,a=void 0===i?0:i,u=t.fetchOpts,s=e.call(this,r,u)||this;if("number"!=typeof o)throw new Error("batchInterval must be a number, got "+o);if("number"!=typeof a)throw new Error("batchMax must be a number, got "+a);return s.batcher=new Ge({batchInterval:o,batchMax:a,batchFetchFunction:s.batchQuery.bind(s)}),s}return Ye(t,e),t.prototype.query=function(e){return this.batcher.enqueueRequest(e)},t.prototype.batchQuery=function(e){var t=this,r=He({},this._opts),n=this.applyBatchMiddlewares({requests:e,options:r});return new Promise(function(e,r){n.then(function(n){return n.requests.forEach(function(e){e.query&&(e.query=C(e.query))}),t.batchedFetchFromRemoteEndpoint(n).then(function(e){var r=e;return r.ok?e.json():t.applyBatchAfterwares({responses:[r],options:n.options}).then(function(){var e=new Error("Network request failed with status "+r.status+' - "'+r.statusText+'"');throw e.response=r,e})}).then(function(o){if("function"!=typeof o.map)throw new Error("BatchingNetworkInterface: server response is not an array");t.applyBatchAfterwares({responses:o,options:n.options}).then(function(t){e(t.responses)}).catch(function(e){r(e)})})}).catch(function(e){r(e)})})},t.prototype.applyBatchMiddlewares=function(e){var t=this,r=e.requests,n=e.options;return new Promise(function(e,o){var i=function(t,o){var i=function(){if(t.length>0){var a=t.shift();a&&a.applyBatchMiddleware.apply(o,[{requests:r,options:n},i])}else e({requests:r,options:n})};i()};i(t._middlewares.slice(),t)})},t.prototype.applyBatchAfterwares=function(e){var t=this,r=e.responses,n=e.options;return new Promise(function(e,o){var i={responses:r,options:n},a=function(t,r){var n=function(){if(t.length>0){var o=t.shift();o&&o.applyBatchAfterware.apply(r,[i,n])}else e(i)};n()};a(t._afterwares.slice(),t)})},t.prototype.use=function(e){var t=this;return e.map(function(e){if("function"!=typeof e.applyBatchMiddleware)throw new Error("Batch middleware must implement the applyBatchMiddleware function");t._middlewares.push(e)}),this},t.prototype.useAfter=function(e){var t=this;return e.map(function(e){if("function"!=typeof e.applyBatchAfterware)throw new Error("Batch afterware must implement the applyBatchAfterware function");t._afterwares.push(e)}),this},t.prototype.batchedFetchFromRemoteEndpoint=function(e){var t={};I(t,e.options);var r=e.requests.map(function(e){return U(e)});return fetch(this._uri,He({},this._opts,{body:JSON.stringify(r),method:"POST"},t,{headers:He({Accept:"*/*","Content-Type":"application/json"},t.headers)}))},t}(Ve),Je=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),ze=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Xe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="WriteError",t}return Je(t,e),t}(Error),$e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Ze=[],et=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tt="undefined"!=typeof Symbol?Symbol("id"):"@@id",rt=function(e,t,r,n,o){var i=o.resultKey,a=o.directives;we(t);var u=t.id,s=n.store[u],c=b(e,r,a),l=(s||{})[c];if("undefined"==typeof l){if(n.customResolvers&&s&&(s.__typename||"ROOT_QUERY"===u)){var f=s.__typename||"Query",d=n.customResolvers[f];if(d){var p=d[e];if(p)return p(s,r)}}if(!n.returnPartialData)throw new Error("Can't find field "+c+" on object ("+u+") "+JSON.stringify(s,null,2)+".");return n.hasMissingField=!0,l}return _(l)?t.previousResult&&me(t.previousResult[i],l.json)?t.previousResult[i]:l.json:(t.previousResult&&(l=Ee(l,t.previousResult[i])),l)},nt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ot=function(){function e(e,t,r,n){this.store=e,this.reduxRootSelector=t,this.reducerConfig=n,this.fragmentMatcher=r}return e.prototype.readQuery=function(e){var t=e.query,r=e.variables;return this.reducerConfig.addTypename&&(t=D(t)),be({rootId:"ROOT_QUERY",store:pe(this.reduxRootSelector(this.store.getState())),query:t,variables:r,fragmentMatcherFunction:this.fragmentMatcher.match,config:this.reducerConfig})},e.prototype.readFragment=function(e){var t=e.id,r=e.fragment,n=e.fragmentName,o=e.variables,i=M(r,n),a=pe(this.reduxRootSelector(this.store.getState()));return"undefined"==typeof a[t]?null:(this.reducerConfig.addTypename&&(i=D(i)),be({rootId:t,store:a,query:i,variables:o,fragmentMatcherFunction:this.fragmentMatcher.match,config:this.reducerConfig}))},e.prototype.writeQuery=function(e){var t=e.data,r=e.query,n=e.variables;this.reducerConfig.addTypename&&(r=D(r)),this.store.dispatch({type:"APOLLO_WRITE",writes:[{rootId:"ROOT_QUERY",result:t,document:r,operationName:P(r),variables:n||{}}]})},e.prototype.writeFragment=function(e){var t=e.data,r=e.id,n=e.fragment,o=e.fragmentName,i=e.variables,a=M(n,o);this.reducerConfig.addTypename&&(a=D(a)),this.store.dispatch({type:"APOLLO_WRITE",writes:[{rootId:r,result:t,document:a,operationName:P(a),variables:i||{}}]})},e}(),it=function(){function e(e,t){this.data=nt({},e),this.reducerConfig=t,this.writes=[],this.isFinished=!1}return e.prototype.finish=function(){this.assertNotFinished();var e=this.writes;return this.writes=[],this.isFinished=!0,
e},e.prototype.readQuery=function(e){var t=e.query,r=e.variables;return this.assertNotFinished(),this.reducerConfig.addTypename&&(t=D(t)),be({rootId:"ROOT_QUERY",store:this.data,query:t,variables:r,config:this.reducerConfig,fragmentMatcherFunction:this.reducerConfig.fragmentMatcher})},e.prototype.readFragment=function(e){var t=e.id,r=e.fragment,n=e.fragmentName,o=e.variables;if(this.assertNotFinished(),!r)throw new Error("fragment option is required. Please pass a GraphQL fragment to readFragment.");var i=this.data,a=M(r,n);return this.reducerConfig.addTypename&&(a=D(a)),"undefined"==typeof i[t]?null:be({rootId:t,store:i,query:a,variables:o,config:this.reducerConfig,fragmentMatcherFunction:this.reducerConfig.fragmentMatcher})},e.prototype.writeQuery=function(e){var t=e.data,r=e.query,n=e.variables;this.assertNotFinished(),this.reducerConfig.addTypename&&(r=D(r)),this.applyWrite({rootId:"ROOT_QUERY",result:t,document:r,operationName:P(r),variables:n||{}})},e.prototype.writeFragment=function(e){var t=e.data,r=e.id,n=e.fragment,o=e.fragmentName,i=e.variables;if(this.assertNotFinished(),!n)throw new Error("fragment option is required. Please pass a GraphQL fragment to writeFragment.");var a=M(n,o);this.reducerConfig.addTypename&&(a=D(a)),this.applyWrite({rootId:r,result:t,document:a,operationName:P(a),variables:i||{}})},e.prototype.assertNotFinished=function(){if(this.isFinished)throw new Error("Cannot call transaction methods after the transaction has finished.")},e.prototype.applyWrite=function(e){ae({result:e.result,dataId:e.rootId,document:e.document,variables:e.variables,store:this.data,dataIdFromObject:this.reducerConfig.dataIdFromObject||function(){return null},fragmentMatcherFunction:this.reducerConfig.fragmentMatcher}),this.writes.push(e)},e}(),at=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ut=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},st=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ct=function(e){return function(e){return function(t){try{return e(t)}catch(e){throw console.error("Caught an exception!",e),console.error(e.stack),e}}}},lt=function(e,t){var r={error:e};return K(t)?r.queryId=t.queryId:z(t)?r.subscriptionId=t.subscriptionId:Y(t)&&(r.mutationId=t.mutationId),r},ft=function(){function e(e){this.subscriberFunction=e}return e.prototype[a]=function(){return this},e.prototype.subscribe=function(e){var t=this.subscriberFunction(e);return Pe(t)?t:{unsubscribe:t}},e}(),dt=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),pt=function(e){var t="";return Array.isArray(e.graphQLErrors)&&0!==e.graphQLErrors.length&&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$/,"")},ht=function(e){function t(t){var r=t.graphQLErrors,n=t.networkError,o=t.errorMessage,i=t.extraInfo,a=e.call(this,o)||this;return a.graphQLErrors=r||[],a.networkError=n||null,o?a.message=o:a.message=pt(a),a.extraInfo=i,a}return dt(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(je||(je={})),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"}(e.NetworkStatus||(e.NetworkStatus={}));var yt=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),vt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},mt=function(t){function r(e){var r=e.scheduler,n=e.options,o=e.shouldSubscribe,i=void 0===o||o,a=this,u=r.queryManager,s=u.generateQueryId(),c=function(e){return a.onSubscribe(e)};return a=t.call(this,c)||this,a.isCurrentlyPolling=!1,a.options=n,a.variables=a.options.variables||{},a.scheduler=r,a.queryManager=u,a.queryId=s,a.shouldSubscribe=i,a.observers=[],a.subscriptionHandles=[],a}return yt(r,t),r.prototype.result=function(){var e=this;return new Promise(function(t,r){var n=null,o={next:function(r){t(r);var i=e.observers.filter(function(e){return e!==o});0===i.length&&e.queryManager.removeQuery(e.queryId),setTimeout(function(){n.unsubscribe()},0)},error:function(e){r(e)}};n=e.subscribe(o)})},r.prototype.currentResult=function(){var t=this.queryManager.getCurrentQueryResult(this,!0),r=t.data,n=t.partial,o=this.queryManager.queryStore.get(this.queryId);if(o&&(o.graphQLErrors&&o.graphQLErrors.length>0||o.networkError)){var i=new ht({graphQLErrors:o.graphQLErrors,networkError:o.networkError});return{data:{},loading:!1,networkStatus:o.networkStatus,error:i}}var a,u=!o||o.networkStatus===e.NetworkStatus.loading,s="network-only"===this.options.fetchPolicy&&u||n&&"cache-only"!==this.options.fetchPolicy;a=o?o.networkStatus:s?e.NetworkStatus.loading:e.NetworkStatus.ready;var c={data:r,loading:Fe(a),networkStatus:a};if(!n){var l=!1;this.lastResult=vt({},c,{stale:l})}return vt({},c,{partial:n})},r.prototype.getLastResult=function(){return this.lastResult},r.prototype.refetch=function(e){if(this.variables=vt({},this.variables,e),"cache-only"===this.options.fetchPolicy)return Promise.reject(new Error("cache-only fetchPolicy option should not be used together with query refetch."));this.options.variables=vt({},this.options.variables,this.variables);var t=vt({},this.options,{fetchPolicy:"network-only"});return this.queryManager.fetchQuery(this.queryId,t,je.refetch).then(function(e){return Ae(e)})},r.prototype.fetchMore=function(e){var t=this;if(!e.updateQuery)throw new Error("updateQuery option is required. This function defines how to update the query data with the new results.");return Promise.resolve().then(function(){var r=t.queryManager.generateQueryId(),n=null;if(e.query)n=e;else{var o=vt({},t.variables,e.variables);n=vt({},t.options,e,{variables:o})}return n=vt({},n,{query:n.query,fetchPolicy:"network-only"}),t.queryManager.fetchQuery(r,n,je.normal,t.queryId)}).then(function(r){var n=r.data,o=e.updateQuery,i=function(e,t){var r=t.variables,i=r;return o(e,{fetchMoreResult:n,queryVariables:i})};return t.updateQuery(i),r})},r.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}),n=r.subscribe({next:function(r){if(e.updateQuery){var n=e.updateQuery,o=function(e,t){var o=t.variables;return n(e,{subscriptionData:{data:r},variables:o})};t.updateQuery(o)}},error:function(t){e.onError?e.onError(t):console.error("Unhandled GraphQL subscription error",t)}});return this.subscriptionHandles.push(n),function(){var e=t.subscriptionHandles.indexOf(n);e>=0&&(t.subscriptionHandles.splice(e,1),n.unsubscribe())}},r.prototype.setOptions=function(e){var t=this.options;this.options=vt({},this.options,e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var r="network-only"!==t.fetchPolicy&&"network-only"===e.fetchPolicy||"cache-only"===t.fetchPolicy&&"cache-only"!==e.fetchPolicy||"standby"===t.fetchPolicy&&"standby"!==e.fetchPolicy||!1;return this.setVariables(this.options.variables,r,e.fetchResults)},r.prototype.setVariables=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0);var n=vt({},this.variables,e);return me(n,this.variables)&&!t?0!==this.observers.length&&r?this.result():new Promise(function(e){return e()}):(this.variables=n,this.options.variables=n,0===this.observers.length?new Promise(function(e){return e()}):this.queryManager.fetchQuery(this.queryId,vt({},this.options,{variables:this.variables})).then(function(e){return Ae(e)}))},r.prototype.updateQuery=function(e){var t=this.queryManager.getQueryWithPreviousResult(this.queryId),r=t.previousResult,n=t.variables,o=t.document,i=_e(function(){return e(r,{variables:n})});i&&this.queryManager.store.dispatch({type:"APOLLO_UPDATE_QUERY_RESULT",newResult:i,variables:n,document:o,operationName:P(o)})},r.prototype.stopPolling=function(){this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.options.pollInterval=void 0,this.isCurrentlyPolling=!1)},r.prototype.startPolling=function(e){if("cache-first"===this.options.fetchPolicy||"cache-only"===this.options.fetchPolicy)throw new Error("Queries that specify the cache-first and cache-only fetchPolicies cannot also be polling queries.");this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.isCurrentlyPolling=!1),this.options.pollInterval=e,this.isCurrentlyPolling=!0,this.scheduler.startPollingQuery(this.options,this.queryId)},r.prototype.onSubscribe=function(e){var t=this;this.observers.push(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),1===this.observers.length&&this.setUpQuery();var r={unsubscribe:function(){t.observers.some(function(t){return t===e})&&(t.observers=t.observers.filter(function(t){return t!==e}),0===t.observers.length&&t.tearDownQuery())}};return r},r.prototype.setUpQuery=function(){var e=this;if(this.shouldSubscribe&&this.queryManager.addObservableQuery(this.queryId,this),this.options.pollInterval){if("cache-first"===this.options.fetchPolicy||"cache-only"===this.options.fetchPolicy)throw new Error("Queries that specify the cache-first and cache-only fetchPolicies cannot also be polling queries.");this.isCurrentlyPolling=!0,this.scheduler.startPollingQuery(this.options,this.queryId)}var t={next:function(t){e.lastResult=t,e.observers.forEach(function(e){e.next&&e.next(t)})},error:function(t){e.observers.forEach(function(e){e.error?e.error(t):console.error("Unhandled error",t.message,t.stack)}),e.lastError=t}};this.queryManager.startQuery(this.queryId,this.options,this.queryManager.queryListenerForObserver(this.queryId,this.options,t))},r.prototype.tearDownQuery=function(){this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.isCurrentlyPolling=!1),this.subscriptionHandles.forEach(function(e){return e.unsubscribe()}),this.subscriptionHandles=[],this.queryManager.stopQuery(this.queryId),this.shouldSubscribe&&this.queryManager.removeObservableQuery(this.queryId),this.observers=[]},r}(ft),bt=Object.create({}),gt=function(){function e(e){e&&e.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(e.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return e.prototype.match=function(e,t,r){if(!this.isReady)throw new Error("FragmentMatcher.match() was called before FragmentMatcher.init()");var n=r.store[e.id];if(!n)return!1;if(!n.__typename)throw new Error("Cannot match fragment because __typename property is missing: "+JSON.stringify(n));if(n.__typename===t)return!0;var o=this.possibleTypesMap[t];return!!(o&&o.indexOf(n.__typename)>-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},e}(),wt=!1,Et=function(){function e(){}return e.prototype.ensureReady=function(){return Promise.resolve()},e.prototype.canBypassInit=function(){return!0},e.prototype.match=function(e,t,r){var n=r.store[e.id];return!!n&&(n.__typename?n.__typename===t||(Me("You are using the simple (heuristic) fragment matcher, but your queries contain union or interface types.\n Apollo Client will not be able to able to accurately map fragments.To make this error go away, use the IntrospectionFragmentMatcher as described in the docs: http://dev.apollodata.com/react/initialization.html#fragment-matcher","error"),r.returnPartialData=!0,!0):(wt||(console.warn("You're using fragments in your queries, but either don't have the addTypename:\n true option set in Apollo Client, or you are trying to write a fragment to the store without the __typename.\n Please turn on the addTypename option and include __typename when writing fragments so that Apollo Client\n can accurately match fragments."),console.warn("Could not find __typename on Fragment ",t,n),console.warn("DEPRECATION WARNING: using fragments without __typename is unsupported behavior and will be removed in future versions of Apollo client. You should fix this and set addTypename to true now."),ne()||(wt=!0)),r.returnPartialData=!0,!0))},e}(),Ot=function(){function e(e){this.networkInterface=e,this.inFlightRequestPromises={}}return e.prototype.query=function(e,t){var r=this;if(void 0===t&&(t=!0),!t)return this.networkInterface.query(e);var n=this.getKey(e);return this.inFlightRequestPromises[n]||(this.inFlightRequestPromises[n]=this.networkInterface.query(e)),this.inFlightRequestPromises[n].then(function(e){return delete r.inFlightRequestPromises[n],e}).catch(function(e){throw delete r.inFlightRequestPromises[n],e})},e.prototype.getKey=function(e){return r.print(e.query)+"|"+JSON.stringify(e.variables)+"|"+e.operationName},e}(),kt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Tt=function(){function t(){this.store={}}return t.prototype.getStore=function(){return this.store},t.prototype.get=function(e){return this.store[e]},t.prototype.initQuery=function(t){var r=this.store[t.queryId];if(r&&r.queryString!==t.queryString)throw new Error("Internal Error: may not update existing query string in store");var n=!1,o=null;t.storePreviousVariables&&r&&r.networkStatus!==e.NetworkStatus.loading&&(me(r.variables,t.variables)||(n=!0,o=r.variables));var i;i=n?e.NetworkStatus.setVariables:t.isPoll?e.NetworkStatus.poll:t.isRefetch?e.NetworkStatus.refetch:e.NetworkStatus.loading,this.store[t.queryId]={queryString:t.queryString,document:t.document,variables:t.variables,previousVariables:o,networkError:null,graphQLErrors:[],networkStatus:i,metadata:t.metadata},"string"==typeof t.fetchMoreForQueryId&&(this.store[t.fetchMoreForQueryId].networkStatus=e.NetworkStatus.fetchMore)},t.prototype.markQueryResult=function(t,r,n){this.store[t]&&(this.store[t].networkError=null,this.store[t].graphQLErrors=r.errors&&r.errors.length?r.errors:[],this.store[t].previousVariables=null,this.store[t].networkStatus=e.NetworkStatus.ready,"string"==typeof n&&(this.store[n].networkStatus=e.NetworkStatus.ready))},t.prototype.markQueryError=function(t,r,n){this.store[t]&&(this.store[t].networkError=r,this.store[t].networkStatus=e.NetworkStatus.error,"string"==typeof n&&this.markQueryError(n,r,void 0))},t.prototype.markQueryResultClient=function(t,r){this.store[t]&&(this.store[t].networkError=null,this.store[t].previousVariables=null,this.store[t].networkStatus=r?e.NetworkStatus.ready:e.NetworkStatus.loading)},t.prototype.stopQuery=function(e){delete this.store[e]},t.prototype.reset=function(t){var r=this;this.store=Object.keys(this.store).filter(function(e){return t.indexOf(e)>-1}).reduce(function(t,n){return t[n]=kt({},r.store[n],{networkStatus:e.NetworkStatus.loading}),t},{})},t}(),_t=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]={mutationString:t,variables:r||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){this.store[e].loading=!1,this.store[e].error=t},e.prototype.markMutationResult=function(e){this.store[e].loading=!1,this.store[e].error=null},e.prototype.reset=function(){this.store={}},e}(),It=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},St=function(){function t(e){var t=e.queryManager;this.queryManager=t,this.pollingTimers={},this.inFlightQueries={},this.registeredQueries={},this.intervalQueries={}}return t.prototype.checkInFlight=function(t){var r=this.queryManager.queryStore.get(t);return r&&r.networkStatus!==e.NetworkStatus.ready&&r.networkStatus!==e.NetworkStatus.error},t.prototype.fetchQuery=function(e,t,r){var n=this;return new Promise(function(o,i){n.queryManager.fetchQuery(e,t,r).then(function(e){o(e)}).catch(function(e){i(e)})})},t.prototype.startPollingQuery=function(e,t,r){if(!e.pollInterval)throw new Error("Attempted to start a polling query without a polling interval.");return this.queryManager.ssrMode?t:(this.registeredQueries[t]=e,r&&this.queryManager.addQueryListener(t,r),this.addQueryOnInterval(t,e),t)},t.prototype.stopPollingQuery=function(e){delete this.registeredQueries[e]},t.prototype.fetchQueriesOnInterval=function(e){var t=this;this.intervalQueries[e]=this.intervalQueries[e].filter(function(e){if(!t.registeredQueries.hasOwnProperty(e))return!1;if(t.checkInFlight(e))return!0;var r=t.registeredQueries[e],n=It({},r);return n.fetchPolicy="network-only",t.fetchQuery(e,n,je.poll),!0}),0===this.intervalQueries[e].length&&(clearInterval(this.pollingTimers[e]),delete this.intervalQueries[e])},t.prototype.addQueryOnInterval=function(e,t){var r=this,n=t.pollInterval;if(!n)throw new Error("A poll interval is required to start polling query with id '"+e+"'.");this.intervalQueries.hasOwnProperty(n.toString())&&this.intervalQueries[n].length>0?this.intervalQueries[n].push(e):(this.intervalQueries[n]=[e],this.pollingTimers[n]=setInterval(function(){r.fetchQueriesOnInterval(n)},n))},t.prototype.registerPollingQuery=function(e){if(!e.pollInterval)throw new Error("Attempted to register a non-polling query with the scheduler.");return new mt({scheduler:this,options:e})},t}(),qt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Pt=function(){function t(e){var t=e.networkInterface,r=e.store,n=e.reduxRootSelector,o=e.reducerConfig,i=void 0===o?{}:o,a=e.fragmentMatcher,u=e.addTypename,s=void 0===u||u,c=e.queryDeduplication,l=void 0!==c&&c,f=e.ssrMode,d=void 0!==f&&f,p=this;if(this.mutationStore=new _t,this.queryStore=new Tt,this.idCounter=1,this.lastRequestId={},this.disableBroadcasting=!1,this.networkInterface=t,this.deduplicator=new Ot(t),this.store=r,this.reduxRootSelector=n,this.reducerConfig=i,this.pollingTimers={},this.queryListeners={},this.queryDocuments={},this.addTypename=s,this.queryDeduplication=l,this.ssrMode=d,"undefined"==typeof a?this.fragmentMatcher=new Et:this.fragmentMatcher=a,this.scheduler=new St({queryManager:this}),this.fetchQueryPromises={},this.observableQueries={},this.queryIdsByName={},this.store.subscribe){var h;this.store.subscribe(function(){var e=h||{},t=Object.keys(e).length;h=p.getApolloState(),me(e,h)&&t||p.broadcastQueries()})}}return t.prototype.broadcastNewStore=function(e){this.broadcastQueries()},t.prototype.mutate=function(e){var t=this,n=e.mutation,o=e.variables,i=e.optimisticResponse,a=e.updateQueries,u=e.refetchQueries,s=void 0===u?[]:u,c=e.update;if(!n)throw new Error("mutation option is required. You must specify your GraphQL document in the mutation option.");var l=this.generateQueryId();this.addTypename&&(n=D(n)),o=I({},L(S(n)),o);var f=r.print(n),d={query:n,variables:o,operationName:P(n)};this.queryDocuments[l]=n;var p=function(){var e={};return a&&Object.keys(a).forEach(function(r){return(t.queryIdsByName[r]||[]).forEach(function(n){e[n]={reducer:a[r],query:t.queryStore.get(n)}})}),e};return this.store.dispatch({type:"APOLLO_MUTATION_INIT",mutationString:f,mutation:n,variables:o||{},operationName:P(n),mutationId:l,optimisticResponse:i,extraReducers:this.getExtraReducers(),updateQueries:p(),update:c}),this.mutationStore.initMutation(l,f,o),new Promise(function(e,r){t.networkInterface.query(d).then(function(i){if(i.errors){var a=new ht({graphQLErrors:i.errors});return t.store.dispatch({type:"APOLLO_MUTATION_ERROR",error:a,mutationId:l}),t.mutationStore.markMutationError(l,a),delete t.queryDocuments[l],void r(a)}t.store.dispatch({type:"APOLLO_MUTATION_RESULT",result:i,mutationId:l,document:n,operationName:P(n),variables:o||{},extraReducers:t.getExtraReducers(),updateQueries:p(),update:c}),t.mutationStore.markMutationResult(l);var u=t.getApolloState().reducerError;return u&&u.mutationId===l?void r(u.error):("string"==typeof s[0]?s.forEach(function(e){t.refetchQueryByName(e)}):s.forEach(function(e){t.query({query:e.query,variables:e.variables,fetchPolicy:"network-only"})}),delete t.queryDocuments[l],void e(i))}).catch(function(e){t.store.dispatch({type:"APOLLO_MUTATION_ERROR",error:e,mutationId:l}),delete t.queryDocuments[l],r(new ht({networkError:e}))})})},t.prototype.fetchQuery=function(e,n,o,i){var a,u=this,s=n.variables,c=void 0===s?{}:s,l=n.metadata,f=void 0===l?null:l,d=n.fetchPolicy,p=void 0===d?"cache-first":d,h=this.transformQueryDocument(n).queryDoc,y=r.print(h),v="network-only"===p;if(o!==je.refetch&&"network-only"!==p){var m=ge({query:h,store:this.reduxRootSelector(this.store.getState()).data,variables:c,returnPartialData:!0,fragmentMatcherFunction:this.fragmentMatcher.match,config:this.reducerConfig}),b=m.isMissing,g=m.result;v=b||"cache-and-network"===p,a=g}var w=v&&"cache-only"!==p&&"standby"!==p,E=this.generateRequestId();this.queryDocuments[e]=h,this.queryStore.initQuery({queryId:e,queryString:y,document:h,storePreviousVariables:w,variables:c,isPoll:o===je.poll,isRefetch:o===je.refetch,metadata:f,fetchMoreForQueryId:i}),this.broadcastQueries(),t.EMIT_REDUX_ACTIONS&&this.store.dispatch({type:"APOLLO_QUERY_INIT",queryString:y,document:h,operationName:P(h),variables:c,fetchPolicy:p,queryId:e,requestId:E,storePreviousVariables:w,isPoll:o===je.poll,isRefetch:o===je.refetch,fetchMoreForQueryId:i,metadata:f}),this.lastRequestId[e]=E;var O=!w||"cache-and-network"===p;if(O&&(this.queryStore.markQueryResultClient(e,!w),this.broadcastQueries(),t.EMIT_REDUX_ACTIONS&&this.store.dispatch({type:"APOLLO_QUERY_RESULT_CLIENT",result:{data:a},variables:c,document:h,operationName:P(h),complete:!w,queryId:e,requestId:E})),w){var k=this.fetchRequest({requestId:E,queryId:e,document:h,options:n,fetchMoreForQueryId:i}).catch(function(r){throw Ne(r)?r:(E>=(u.lastRequestId[e]||1)&&(t.EMIT_REDUX_ACTIONS&&u.store.dispatch({type:"APOLLO_QUERY_ERROR",error:r,queryId:e,requestId:E,fetchMoreForQueryId:i}),u.queryStore.markQueryError(e,r,i),u.broadcastQueries()),u.removeFetchQueryPromise(E),new ht({networkError:r}))});if("cache-and-network"!==p)return k}return Promise.resolve({data:a})},t.prototype.queryListenerForObserver=function(e,t,r){var n=this,o=!1;return function(i){if(i){i=n.queryStore.get(e);var a=n.observableQueries[e],u=a?a.observableQuery:null,s=u?u.options.fetchPolicy:t.fetchPolicy;if("standby"!==s){var c=u?u.getLastResult():null,l=i.previousVariables||"cache-only"===s||"cache-and-network"===s,f=c&&i.networkStatus!==c.networkStatus;if(!Fe(i.networkStatus)||f&&t.notifyOnNetworkStatusChange||l)if(i.graphQLErrors&&i.graphQLErrors.length>0||i.networkError){var d=new ht({graphQLErrors:i.graphQLErrors,networkError:i.networkError});if(o=!0,r.error)try{r.error(d)}catch(e){setTimeout(function(){throw e},0)}else setTimeout(function(){throw d},0),te()||console.info("An unhandled error was thrown because no error handler is registered for the query "+i.queryString)}else try{var p=ge({store:n.getDataWithOptimisticResults(),query:n.queryDocuments[e],variables:i.previousVariables||i.variables,config:n.reducerConfig,fragmentMatcherFunction:n.fragmentMatcher.match,previousResult:c&&c.data}),h=p.result,y=p.isMissing,v=void 0;if(v=y&&"cache-only"!==s?{data:c&&c.data,loading:Fe(i.networkStatus),networkStatus:i.networkStatus,stale:!0}:{data:h,loading:Fe(i.networkStatus),networkStatus:i.networkStatus,stale:!1},r.next){var m=!(c&&v&&c.networkStatus===v.networkStatus&&c.stale===v.stale&&c.data===v.data);if(m||o)try{r.next(Ae(v))}catch(e){setTimeout(function(){throw e},0)}}o=!1}catch(e){return o=!0,void(r.error&&r.error(new ht({networkError:e})))}}}}},t.prototype.watchQuery=function(e,t){if(void 0===t&&(t=!0),e.returnPartialData)throw new Error("returnPartialData option is no longer supported since Apollo Client 1.0.");if(e.forceFetch)throw new Error("forceFetch option is no longer supported since Apollo Client 1.0. Use fetchPolicy instead.");if(e.noFetch)throw new Error("noFetch option is no longer supported since Apollo Client 1.0. Use fetchPolicy instead.");if("standby"===e.fetchPolicy)throw new Error('client.watchQuery cannot be called with fetchPolicy set to "standby"');var r=R(e.query);if(r.variableDefinitions&&r.variableDefinitions.length){var n=L(r);e.variables=I({},n,e.variables)}"undefined"==typeof e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var o=qt({},e),i=new mt({scheduler:this.scheduler,options:o,shouldSubscribe:t});return i},t.prototype.query=function(e){var t=this;if(!e.query)throw new Error("query option is required. You must specify your GraphQL document in the query option.");if("Document"!==e.query.kind)throw new Error('You must wrap the query string in a "gql" tag.');if(e.returnPartialData)throw new Error("returnPartialData option only supported on watchQuery.");if(e.pollInterval)throw new Error("pollInterval option only supported on watchQuery.");if(e.forceFetch)throw new Error("forceFetch option is no longer supported since Apollo Client 1.0. Use fetchPolicy instead.");if(e.noFetch)throw new Error("noFetch option is no longer supported since Apollo Client 1.0. Use fetchPolicy instead.");if("undefined"!=typeof e.notifyOnNetworkStatusChange)throw new Error('Cannot call "query" with "notifyOnNetworkStatusChange" option. Only "watchQuery" has that option.');e.notifyOnNetworkStatusChange=!1;var r=this.idCounter,n=new Promise(function(o,i){return t.addFetchQueryPromise(r,n,o,i),t.watchQuery(e,!1).result().then(function(e){t.removeFetchQueryPromise(r),o(e)}).catch(function(e){t.removeFetchQueryPromise(r),i(e)})});return n},t.prototype.generateQueryId=function(){var e=this.idCounter.toString();return this.idCounter++,e},t.prototype.stopQueryInStore=function(e){this.queryStore.stopQuery(e),this.broadcastQueries(),t.EMIT_REDUX_ACTIONS&&this.store.dispatch({type:"APOLLO_QUERY_STOP",queryId:e})},t.prototype.getApolloState=function(){return this.reduxRootSelector(this.store.getState())},t.prototype.selectApolloState=function(e){return this.reduxRootSelector(e.getState())},t.prototype.getInitialState=function(){return{data:this.getApolloState().data}},t.prototype.getDataWithOptimisticResults=function(){return pe(this.getApolloState())},t.prototype.addQueryListener=function(e,t){this.queryListeners[e]=this.queryListeners[e]||[],this.queryListeners[e].push(t)},t.prototype.addFetchQueryPromise=function(e,t,r,n){this.fetchQueryPromises[e.toString()]={promise:t,resolve:r,reject:n}},t.prototype.removeFetchQueryPromise=function(e){delete this.fetchQueryPromises[e.toString()]},t.prototype.addObservableQuery=function(e,t){this.observableQueries[e]={observableQuery:t};var r=R(t.options.query);if(r.name&&r.name.value){var n=r.name.value;this.queryIdsByName[n]=this.queryIdsByName[n]||[],this.queryIdsByName[n].push(t.queryId)}},t.prototype.removeObservableQuery=function(e){var t=this.observableQueries[e].observableQuery,r=R(t.options.query),n=r.name?r.name.value:null;delete this.observableQueries[e],n&&(this.queryIdsByName[n]=this.queryIdsByName[n].filter(function(e){return!(t.queryId===e)}))},t.prototype.resetStore=function(){var e=this;Object.keys(this.fetchQueryPromises).forEach(function(t){var r=e.fetchQueryPromises[t].reject;r(new Error("Store reset while query was in flight."))}),this.queryStore.reset(Object.keys(this.observableQueries)),this.store.dispatch({type:"APOLLO_STORE_RESET",observableQueryIds:Object.keys(this.observableQueries)}),this.mutationStore.reset();var t=[];return Object.keys(this.observableQueries).forEach(function(r){var n=(e.queryStore.get(r),e.observableQueries[r].observableQuery.options.fetchPolicy);"cache-only"!==n&&"standby"!==n&&t.push(e.observableQueries[r].observableQuery.refetch())}),Promise.all(t)},t.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch(function(e){}),e},t.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=r;this.addTypename&&(n=D(n));var o,i=I({},L(A(r)),e.variables),a={query:n,variables:i,operationName:P(n)},u=[];return new ft(function(e){if(u.push(e),1===u.length){var r=function(e,r){e?u.forEach(function(t){t.error&&t.error(e)}):(t.store.dispatch({type:"APOLLO_SUBSCRIPTION_RESULT",document:n,operationName:P(n),result:{data:r},variables:i,subscriptionId:o,extraReducers:t.getExtraReducers()}),u.forEach(function(e){e.next&&e.next(r)}))};o=t.networkInterface.subscribe(a,r)}return{unsubscribe:function(){u=u.filter(function(t){return t!==e}),0===u.length&&t.networkInterface.unsubscribe(o)},_networkSubscriptionId:o}})},t.prototype.removeQuery=function(e){delete this.queryListeners[e],delete this.queryDocuments[e]},t.prototype.stopQuery=function(e){this.removeQuery(e),this.stopQueryInStore(e)},t.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!1);var r=this.getQueryParts(e),n=r.variables,o=r.document,i=e.getLastResult(),a=(e.options,{store:t?this.getDataWithOptimisticResults():this.getApolloState().data,query:o,variables:n,config:this.reducerConfig,previousResult:i?i.data:void 0,fragmentMatcherFunction:this.fragmentMatcher.match});try{var u=be(a);return Ae({data:u,partial:!1})}catch(e){return Ae({data:{},partial:!0})}},t.prototype.getQueryWithPreviousResult=function(e,t){void 0===t&&(t=!1);var r;if("string"==typeof e){if(!this.observableQueries[e])throw new Error("ObservableQuery with this id doesn't exist: "+e);r=this.observableQueries[e].observableQuery}else r=e;var n=this.getQueryParts(r),o=n.variables,i=n.document,a=this.getCurrentQueryResult(r,t).data;return{previousResult:a,variables:o,document:i}},t.prototype.getQueryParts=function(e){var t=e.options,r=e.options.query;return this.addTypename&&(r=D(r)),{variables:t.variables,document:r}},t.prototype.transformQueryDocument=function(e){var t=e.query;return this.addTypename&&(t=D(t)),{queryDoc:t}},t.prototype.getExtraReducers=function(){var e=this;return Object.keys(this.observableQueries).map(function(t){var r=e.observableQueries[t].observableQuery,n=r.options;return n.reducer?Le(n.reducer,e.addTypename?D(n.query):n.query,r.variables||{},e.reducerConfig):null}).filter(function(e){return null!==e})},t.prototype.fetchRequest=function(t){var r=this,n=t.requestId,o=t.queryId,i=t.document,a=t.options,u=t.fetchMoreForQueryId,s=a.variables,c={query:i,variables:s,operationName:P(i)},l=new Promise(function(t,a){r.addFetchQueryPromise(n,l,t,a),r.deduplicator.query(c,r.queryDeduplication).then(function(e){var t=r.getExtraReducers();if(n>=(r.lastRequestId[o]||1)){r.disableBroadcasting=!0,r.store.dispatch({type:"APOLLO_QUERY_RESULT",document:i,variables:s?s:{},operationName:P(i),result:e,queryId:o,requestId:n,fetchMoreForQueryId:u,extraReducers:t}),r.disableBroadcasting=!1;var a=r.getApolloState().reducerError;a&&a.queryId===o||(r.queryStore.markQueryResult(o,e,u),r.broadcastQueries())}if(r.removeFetchQueryPromise(n),e.errors)throw new ht({graphQLErrors:e.errors});return e}).then(function(a){var c;if(u)c=a.data;else try{c=be({store:r.getApolloState().data,variables:s,query:i,config:r.reducerConfig,fragmentMatcherFunction:r.fragmentMatcher.match
})}catch(e){}var l=r.getApolloState().reducerError;return l&&l.queryId===o?Promise.reject(l.error):(r.removeFetchQueryPromise(n),t({data:c,loading:!1,networkStatus:e.NetworkStatus.ready,stale:!1}),Promise.resolve())}).catch(function(e){a(e)})});return l},t.prototype.refetchQueryByName=function(e){var t=this,r=this.queryIdsByName[e];return void 0===r?void console.warn("Warning: unknown query with name "+e+" asked to refetch"):Promise.all(r.map(function(e){return t.observableQueries[e].observableQuery.refetch()}))},t.prototype.broadcastQueries=function(){var e=this;this.disableBroadcasting||Object.keys(this.queryListeners).forEach(function(t){var r=e.queryListeners[t];r&&r.forEach(function(r){if(r){var n=e.queryStore.get(t);r(n)}})})},t.prototype.generateRequestId=function(){var e=this.idCounter;return this.idCounter++,e},t.EMIT_REDUX_ACTIONS=!0,t}(),Nt="1.9.0",Rt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},At="apollo",Ft=!1,Mt=function(){function e(e){void 0===e&&(e={});var t=this;this.middleware=function(){return function(e){return t.setStore(e),function(r){return function(n){var o=t.queryManager.selectApolloState(e),i=r(n),a=t.queryManager.selectApolloState(e);return a!==o&&t.queryManager.broadcastNewStore(e.getState()),t.devToolsHookCb&&t.devToolsHookCb({action:n,state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.queryManager.getDataWithOptimisticResults()}),i}}}};var r=e.dataIdFromObject,n=e.networkInterface,o=e.reduxRootSelector,i=e.initialState,a=e.ssrMode,s=void 0!==a&&a,c=e.ssrForceFetchDelay,l=void 0===c?0:c,f=e.addTypename,d=void 0===f||f,p=e.customResolvers,h=e.connectToDevTools,y=e.fragmentMatcher,v=e.queryDeduplication,m=void 0===v||v;if("function"==typeof o)this.reduxRootSelector=o;else if("undefined"!=typeof o)throw new Error('"reduxRootSelector" must be a function.');"undefined"==typeof y?this.fragmentMatcher=new Et:this.fragmentMatcher=y;var g=function(e){var t=!1;return function(r){return new Promise(function(n,o){var i=e(r).subscribe({next:function(e){t?console.warn("Apollo Client does not support multiple results from an Observable"):(n(e),t=!0)},error:o,complete:function(){return i.unsubscribe()}})})}};n instanceof u.ApolloLink?this.networkInterface={query:g(function(e){return u.execute(n,e)})}:n&&"function"==typeof n.request?(console.warn("The Observable Network interface will be deprecated"),this.networkInterface=Rt({},n,{query:g(n.request)})):this.networkInterface=n?n:B({uri:"/graphql"}),this.initialState=i?i:{},this.addTypename=d,this.disableNetworkFetches=s||l>0,this.dataId=r=r||xe,this.dataIdFromObject=this.dataId,this.fieldWithArgs=b,this.queryDeduplication=m,this.ssrMode=s,l&&setTimeout(function(){return t.disableNetworkFetches=!1},l),this.reducerConfig={dataIdFromObject:r,customResolvers:p,addTypename:d,fragmentMatcher:this.fragmentMatcher.match},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.setStore=this.setStore.bind(this),this.resetStore=this.resetStore.bind(this);var w=!te()&&"undefined"!=typeof window&&!window.__APOLLO_CLIENT__;("undefined"==typeof h?w:h)&&(window.__APOLLO_CLIENT__=this),Ft||te()||(Ft=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&"undefined"==typeof window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&navigator.userAgent.indexOf("Chrome")>-1&&console.debug("Download the Apollo DevTools for a better development experience: https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm")),this.version=Nt}return e.prototype.watchQuery=function(e){return this.initStore(),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Rt({},e,{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){if(this.initStore(),"cache-and-network"===e.fetchPolicy)throw new Error("cache-and-network fetchPolicy can only be used with watchQuery");return this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Rt({},e,{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.initStore(),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.initStore(),this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e){return this.initProxy().readQuery(e)},e.prototype.readFragment=function(e){return this.initProxy().readFragment(e)},e.prototype.writeQuery=function(e){return this.initProxy().writeQuery(e)},e.prototype.writeFragment=function(e){return this.initProxy().writeFragment(e)},e.prototype.reducer=function(){return Se(this.reducerConfig)},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.initStore=function(){var e=this;if(!this.store){if(this.reduxRootSelector)throw new Error('Cannot initialize the store because "reduxRootSelector" is provided. reduxRootSelector should only be used when the store is created outside of the client. This may lead to unexpected results when querying the store internally. Please remove that option from ApolloClient constructor.');this.setStore(qe({reduxRootKey:At,initialState:this.initialState,config:this.reducerConfig,logger:function(t){return function(t){return function(r){var n=t(r);return e.devToolsHookCb&&e.devToolsHookCb({action:r,state:{queries:e.queryManager.queryStore.getStore(),mutations:e.queryManager.mutationStore.getStore()},dataWithOptimisticResults:e.queryManager.getDataWithOptimisticResults()}),n}}}}))}},e.prototype.resetStore=function(){return this.queryManager?this.queryManager.resetStore():null},e.prototype.getInitialState=function(){return this.initStore(),this.queryManager.getInitialState()},e.prototype.setStore=function(e){var t;if(t=this.reduxRootSelector?this.reduxRootSelector:Qe,"undefined"==typeof t(e.getState()))throw new Error('Existing store does not use apolloReducer. Please make sure the store is properly configured and "reduxRootSelector" is correctly specified.');this.store=e,this.queryManager=new Pt({networkInterface:this.networkInterface,reduxRootSelector:t,store:e,addTypename:this.addTypename,reducerConfig:this.reducerConfig,queryDeduplication:this.queryDeduplication,fragmentMatcher:this.fragmentMatcher,ssrMode:this.ssrMode})},e.prototype.initProxy=function(){return this.proxy||(this.initStore(),this.proxy=new ot(this.store,this.reduxRootSelector||Qe,this.fragmentMatcher,this.reducerConfig)),this.proxy},e}();e.createNetworkInterface=B,e.createBatchingNetworkInterface=V,e.createApolloStore=qe,e.createApolloReducer=Se,e.readQueryFromStore=be,e.writeQueryToStore=ie,e.addTypenameToDocument=D,e.createFragmentMap=F,e.ApolloError=ht,e.getQueryDefinition=R,e.getMutationDefinition=S,e.getFragmentDefinitions=N,e.toIdValue=T,e.IntrospectionFragmentMatcher=gt,e.printAST=r.print,e.HTTPFetchNetworkInterface=Ke,e.HTTPBatchedNetworkInterface=We,e.ObservableQuery=mt,e.ApolloClient=Mt,e.default=Mt,Object.defineProperty(e,"__esModule",{value:!0})})}).call(this,t("_process"))},{_process:1,"apollo-link-core":3,"graphql-anywhere":10,"graphql/language/printer":24,redux:32,"symbol-observable":44,"whatwg-fetch":47}],3:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./link");r.execute=n.execute,r.ApolloLink=n.ApolloLink;var o=e("./linkUtils");r.makePromise=o.makePromise;var i=e("zen-observable-ts");r.Observable=i.default,r.default=n.ApolloLink},{"./link":4,"./linkUtils":5,"zen-observable-ts":6}],4:[function(e,t,r){"use strict";function n(e,t){var r=a({},t);return u.validateOperation(r),r.context||(r.context={}),r.variables||(r.variables={}),r.query||(console.warn("query should either be a string or GraphQL AST"),r.query={}),e.request(o(r))||c.default.of()}function o(e){var t;if(t="string"==typeof e.query?a({},e,{query:s.default(e.query)}):a({},e),!t.operationName)if(t.query&&t.query.definitions){var r=["query","mutation","subscription"],n=t.query.definitions.filter(function(e){return"OperationDefinition"===e.kind&&r.indexOf(e.operation)>=0});if(n.length){var o=n[0],i=o.name&&"Name"===o.name.kind;t.operationName=i?n[0].name.value:""}}else t.operationName="";return t}var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(r,"__esModule",{value:!0});var u=e("./linkUtils"),s=e("graphql-tag"),c=e("zen-observable-ts"),l=function(){function e(){}return e.from=function(t){return 0===t.length?e.empty():t.map(u.toLink).reduce(function(e,t){return e.concat(t)})},e.empty=function(){return new f(function(e,t){return c.default.of()})},e.passthrough=function(){return new f(function(e,t){return t?t(e):c.default.of()})},e.split=function(t,r,n){void 0===n&&(n=e.passthrough());var o=u.validateLink(u.toLink(r)),i=u.validateLink(u.toLink(n));return new f(u.isTerminating(o)&&u.isTerminating(i)?function(e){return t(e)?o.request(e)||c.default.of():i.request(e)||c.default.of()}:function(e,r){return t(e)?o.request(e,r)||c.default.of():i.request(e,r)||c.default.of()})},e.prototype.split=function(t,r,n){return void 0===n&&(n=e.passthrough()),this.concat(e.split(t,r,n))},e.prototype.concat=function(e){var t=this;if(u.validateLink(this),u.isTerminating(this))return console.warn(new u.LinkError("You are calling concat on a terminating link, which will have no effect",this)),this;var r=u.validateLink(u.toLink(e));return new f(u.isTerminating(r)?function(e){return t.request(e,function(e){return r.request(e)||c.default.of()})||c.default.of()}:function(e,n){return t.request(e,function(e){return r.request(e,n)||c.default.of()})||c.default.of()})},e}();r.ApolloLink=l,r.execute=n;var f=function(e){function t(t){var r=e.call(this)||this;return r.f=t,r.request=t,r}return i(t,e),t.prototype.request=function(e,t){throw Error("should be overridden")},t}(l);r.FunctionLink=f},{"./linkUtils":5,"graphql-tag":13,"zen-observable-ts":6}],5:[function(e,t,r){"use strict";function n(e){if(e instanceof c.ApolloLink&&"function"==typeof e.request)return e;throw new l("Link does not extend ApolloLink and implement request",e)}function o(e){for(var t=["query","operationName","variables","context"],r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];if(t.indexOf(o)<0)throw new Error("illegal argument: "+o)}return e}function i(e){return"function"==typeof e?new c.FunctionLink(e):e}function a(e){return e.request.length<=1}function u(e){var t=!1;return new Promise(function(r,n){e.subscribe({next:function(e){t?console.warn("Promise Wrapper does not support multiple results from Observable"):(t=!0,r(e))},error:n})})}var s=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0});var c=e("./link");r.validateLink=n,r.validateOperation=o;var l=function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}return s(t,e),t}(Error);r.LinkError=l,r.toLink=i,r.isTerminating=a,r.makePromise=u},{"./link":4}],6:[function(e,t,r){"use strict";function n(e){var t=e._cleanup;t&&(e._cleanup=void 0,t())}function o(e){return void 0===e._observer}function i(e){o(e)||(e._observer=void 0,n(e))}function a(e){return function(){e.unsubscribe()}}Object.defineProperty(r,"__esModule",{value:!0});var u=function(){function e(e,t){if(Object(e)!==e)throw new TypeError("Observer must be an object");if(this._cleanup=void 0,this._observer=e,e.start&&e.start(this),!o(this)){var r=new s(this);try{var i=t(r);if(null!=i){if("function"==typeof i.unsubscribe)i=a(i);else if("function"!=typeof i)throw new TypeError(i+" is not a function");this._cleanup=i}}catch(e){return void(r.error&&r.error(e))}o(this)&&n(this)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return o(this)},enumerable:!0,configurable:!0}),e.prototype.unsubscribe=function(){i(this)},e}(),s=function(){function e(e){this._subscription=e}return Object.defineProperty(e.prototype,"closed",{get:function(){return o(this._subscription)},enumerable:!0,configurable:!0}),e.prototype.next=function(e){var t=this._subscription;if(!o(t)){var r=t._observer;r.next&&r.next(e)}},e.prototype.error=function(e){var t=this._subscription;if(o(t))throw e;var r=t._observer;t._observer=void 0;try{if(!r.error)throw e;r.error(e)}catch(e){try{n(t)}finally{throw e}}n(t)},e.prototype.complete=function(){var e=this._subscription;if(!o(e)){var t=e._observer;e._observer=void 0;try{t.complete&&t.complete()}catch(t){try{n(e)}finally{throw t}}n(e)}},e}(),c=function(){function e(e){if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}return e.from=function(t){if(t.subscribe)return new e(function(e){return t.subscribe(e)});if(Array.isArray(t))return new e(function(e){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete&&e.complete()});throw new TypeError(t+" is not observable")},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new e(function(e){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete&&e.complete()})},e.prototype.subscribe=function(e,t,r){return"function"==typeof e?new u({next:e,error:t,complete:r},this._subscriber):new u(e,this._subscriber)},e.prototype.forEach=function(e){var t=this;return new Promise(function(r,n){return"function"!=typeof e?Promise.reject(new TypeError(e+" is not a function")):void t.subscribe({start:function(e){this._subscription=e},next:function(t){var r=this._subscription;if(!r.closed)try{return void e(t)}catch(e){n(e),r.unsubscribe()}},error:n,complete:r})})},e.prototype.map=function(t){var r=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new e(function(e){return r.subscribe({next:function(r){if(!e.closed){var n;try{n=t(r)}catch(t){return void e.error(t)}e.next(n)}},error:function(t){e.error(t)},complete:function(){e.complete()}})})},e.prototype.filter=function(t){var r=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new e(function(e){r.subscribe({next:function(r){if(!e.closed){try{if(!t(r))return}catch(t){return void(e.error&&e.error(t))}e.next(r)}},error:function(t){e.error(t)},complete:function(){e.complete()}})})},e.prototype.reduce=function(t,r){var n=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var o=arguments.length>1,i=!1,a=arguments[1],u=a;return new e(function(e){n.subscribe({next:function(r){if(!e.closed){var n=!i;if(i=!0,!n||o)try{u=t(u,r)}catch(t){return void e.error(t)}else u=r}},error:function(t){e.error(t)},complete:function(){return i||o?(e.next(u),void e.complete()):void e.error(new TypeError("Cannot reduce an empty sequence"))}})})},e.prototype.flatMap=function(t){var r=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new e(function(n){function o(){i&&0===a.length&&n.complete()}var i=!1,a=[],u=r.subscribe({next:function(r){var i;if(t)try{i=t(r)}catch(e){return void n.error(e)}e.from(i).subscribe({start:function(e){a.push(this._subscription=e)},next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=a.indexOf(this._subscription);e>=0&&a.splice(e,1),o()}})},error:function(e){n.error(e)},complete:function(){i=!0,o()}});return function(){a.forEach(function(e){return e.unsubscribe()}),u.unsubscribe()}})},e.prototype[Symbol.observable]=function(){return this},e}();r.default=c},{}],7:[function(e,t,r){"use strict";function n(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach(function(e){r[e.name.value]=i.argumentsObjectFromField(e,t)}),r}return null}function o(e,t){if(void 0===t&&(t={}),!e.directives)return!0;var r=!0;return e.directives.some(function(e){if("skip"===e.name.value||"include"===e.name.value){var n=e.arguments,o=e.name.value;if(1!==n.length)throw new Error("Incorrect number of arguments for the @"+o+" directive.");var i=e.arguments[0];if(!i.name||"if"!==i.name.value)throw new Error("Invalid argument for the @"+o+" directive.");var a=e.arguments[0].value,u=!1;if(a&&"BooleanValue"===a.kind)u=a.value;else{if("Variable"!==a.kind)throw new Error("Argument for the @"+o+" directive must be a variable or a bool ean value.");if(u=t[a.name.value],void 0===u)throw new Error("Invalid variable referenced in @"+o+" directive.")}return"skip"===o&&(u=!u),!u&&(r=!1,!0)}}),r}var i=e("./storeUtils");r.getDirectiveInfoFromField=n,r.shouldInclude=o},{"./storeUtils":11}],8:[function(e,t,r){"use strict";function n(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');var t=e.definitions.filter(function(e){return"OperationDefinition"===e.kind}).length;if(t>1)throw new Error("Queries must have exactly one operation definition.")}function o(e){var t=e.definitions.filter(function(e){return"FragmentDefinition"===e.kind});return t}function i(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function a(e){n(e);for(var t,r=0,o=e.definitions;r<o.length;r++){var i=o[r];if("OperationDefinition"===i.kind){var a=i.operation;if("query"===a||"mutation"===a||"subscription"===a)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw new Error("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.")}r.getFragmentDefinitions=o,r.createFragmentMap=i,r.getMainDefinition=a},{}],9:[function(e,t,r){"use strict";function n(e,t,r,n,i,a){void 0===a&&(a={});var u=s.getMainDefinition(t),c=s.getFragmentDefinitions(t),l=s.createFragmentMap(c),f=a.resultMapper,d=a.fragmentMatcher||function(){return!0},p={fragmentMap:l,contextValue:n,variableValues:i,resultMapper:f,resolver:e,fragmentMatcher:d};return o(u.selectionSet,r,p)}function o(e,t,r){var n=r.fragmentMap,a=r.contextValue,s=r.variableValues,f={};return e.selections.forEach(function(e){if(c.shouldInclude(e,s))if(l.isField(e)){var d=i(e,t,r),p=l.resultKeyNameFromField(e);void 0!==d&&(void 0===f[p]?f[p]=d:u(f[p],d))}else{var h=void 0;if(l.isInlineFragment(e))h=e;else if(h=n[e.name.value],!h)throw new Error("No fragment named "+e.name.value);var y=h.typeCondition.name.value;if(r.fragmentMatcher(t,y,a)){var v=o(h.selectionSet,t,r);u(f,v)}}}),r.resultMapper?r.resultMapper(f,t):f}function i(e,t,r){var n=r.variableValues,i=r.contextValue,u=r.resolver,s=e.name.value,f=l.argumentsObjectFromField(e,n),d={isLeaf:!e.selectionSet,resultKey:l.resultKeyNameFromField(e),directives:c.getDirectiveInfoFromField(e,n)},p=u(s,t,f,i,d);return e.selectionSet?null==p?p:Array.isArray(p)?a(e,p,r):o(e.selectionSet,p,r):p}function a(e,t,r){return t.map(function(t){return null===t?null:Array.isArray(t)?a(e,t,r):o(e.selectionSet,t,r)})}function u(e,t){return null===t||"object"!=typeof t?t:(Object.keys(e).forEach(function(r){t.hasOwnProperty(r)&&u(e[r],t[r])}),void Object.keys(t).forEach(function(r){e.hasOwnProperty(r)||(e[r]=t[r])}))}var s=e("./getFromAST"),c=e("./directives"),l=e("./storeUtils");r.graphql=n},{"./directives":7,"./getFromAST":8,"./storeUtils":11}],10:[function(e,t,r){"use strict";var n=e("./utilities");r.filter=n.filter,r.check=n.check,r.propType=n.propType;var o=e("./graphql");Object.defineProperty(r,"__esModule",{value:!0}),r.default=o.graphql},{"./graphql":9,"./utilities":12}],11:[function(e,t,r){"use strict";function n(e){return!!h[e.kind]}function o(e){return y[e.kind]}function i(e){return"Variable"===e.kind}function a(e){return"ObjectValue"===e.kind}function u(e){return"ListValue"===e.kind}function s(e,t,r,c){if(void 0===c&&(c={}),o(r))e[t.value]=Number(r.value);else if(n(r))e[t.value]=r.value;else if(a(r)){var l={};r.fields.map(function(e){return s(l,e.name,e.value,c)}),e[t.value]=l}else if(i(r)){var f=c[r.name.value];e[t.value]=f}else{if(!u(r))throw new Error('The inline argument "'+t.value+'" of kind "'+r.kind+'" is not supported. Use variables instead of inline arguments to overcome this limitation.');e[t.value]=r.values.map(function(e){var r={};return s(r,t,e,c),r[t.value]})}}function c(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){var n=e.name,o=e.value;return s(r,n,o,t)}),r}return null}function l(e){return e.alias?e.alias.value:e.name.value}function f(e){return"Field"===e.kind}function d(e){return"InlineFragment"===e.kind}function p(e){return e.errors&&e.errors.length}var h={StringValue:!0,BooleanValue:!0,EnumValue:!0},y={IntValue:!0,FloatValue:!0};r.argumentsObjectFromField=c,r.resultKeyNameFromField=l,r.isField=f,r.isInlineFragment=d,r.graphQLResultHasError=p},{}],12:[function(e,t,r){"use strict";function n(e,t){var r=function(e,t,r,n,o){return t[o.resultKey]};return s.graphql(r,e,t)}function o(e,t){var r=function(e,t,r,n,o){if(!{}.hasOwnProperty.call(t,o.resultKey))throw new Error(o.resultKey+" missing on "+t);return t[o.resultKey]};s.graphql(r,e,t,{},{},{fragmentMatcher:function(){return!1}})}function i(e){this.message=e,this.stack=""}function a(e){function t(t,r,n,o,a,u){if(o=o||c,u=u||n,null==r[n]){var s=l[a];return t?new i(null===r[n]?"The "+s+" `"+u+"` is marked as required "+("in `"+o+"`, but its value is `null`."):"The "+s+" `"+u+"` is marked as required in "+("`"+o+"`, but its value is `undefined`.")):null}return e(r,n,o,a,u)}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function u(e){return a(function(t,r){var n=t[r];try{return o(e,n),null}catch(e){return e}})}var s=e("./graphql");r.filter=n,r.check=o;var c="<<anonymous>>";i.prototype=Error.prototype;var l={prop:"prop",context:"context",childContext:"child context"};r.propType=u},{"./graphql":9}],13:[function(t,r,n){!function(t,o){"object"==typeof n&&"undefined"!=typeof r?o():"function"==typeof e&&e.amd?e(o):o()}(this,function(){"use strict";function e(e){return e.replace(/[\s,]+/g," ").trim()}function n(t){return e(t.source.body.substring(t.start,t.end))}function o(){d={},p={}}function i(e){for(var t={},r=[],o=0;o<e.definitions.length;o++){var i=e.definitions[o];if("FragmentDefinition"===i.kind){var a=i.name.value,u=n(i.loc);p.hasOwnProperty(a)&&!p[a][u]?(h&&console.warn("Warning: fragment with name "+a+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"),p[a][u]=!0):p.hasOwnProperty(a)||(p[a]={},p[a][u]=!0),t[u]||(t[u]=!0,r.push(i))}else r.push(i)}return e.definitions=r,e}function a(){h=!1}function u(e,t){var r=Object.prototype.toString.call(e);if("[object Array]"===r)return e.map(function(e){return u(e,t)});if("[object Object]"!==r)throw new Error("Unexpected input.");t&&e.loc&&delete e.loc,e.loc&&(delete e.loc.startToken,delete e.loc.endToken);var n,o,i,a=Object.keys(e);for(n in a)a.hasOwnProperty(n)&&(o=e[a[n]],i=Object.prototype.toString.call(o),"[object Object]"!==i&&"[object Array]"!==i||(e[a[n]]=u(o,!0)));return e}function s(t){var r=e(t);if(d[r])return d[r];var n=f(t);if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");return n=i(n),n=u(n,!1),d[r]=n,n}function c(){for(var e=Array.prototype.slice.call(arguments),t=e[0],r="string"==typeof t?t:t[0],n=1;n<e.length;n++)r+=e[n]&&e[n].kind&&"Document"===e[n].kind?e[n].loc.source.body:e[n],r+=t[n];return s(r)}var l=t("graphql/language/parser"),f=l.parse,d={},p={},h=!0;c.default=c,c.resetCaches=o,c.disableFragmentWarnings=a,r.exports=c})},{"graphql/language/parser":23}],14:[function(e,t,r){"use strict";function n(e,t,r,i,a,u){var s=r;if(!s&&t&&t.length>0){var c=t[0];s=c&&c.loc&&c.loc.source}var l=i;!l&&t&&(l=t.filter(function(e){return Boolean(e.loc)}).map(function(e){return e.loc.start})),l&&0===l.length&&(l=void 0);var f=void 0,d=s;d&&l&&(f=l.map(function(e){return(0,o.getLocation)(d,e)})),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:f||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:t||void 0},source:{value:s||void 0},positions:{value:l||void 0},originalError:{value:u}}),u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,n):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}Object.defineProperty(r,"__esModule",{value:!0}),r.GraphQLError=n;var o=e("../language/location");n.prototype=Object.create(Error.prototype,{constructor:{value:n},name:{value:"GraphQLError"}})},{"../language/location":22}],15:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e){return e?void 0:(0,a.default)(0,"Received null or undefined error."),{message:e.message,locations:e.locations,path:e.path}}Object.defineProperty(r,"__esModule",{value:!0}),r.formatError=o;var i=e("../jsutils/invariant"),a=n(i)},{"../jsutils/invariant":19}],16:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./GraphQLError");Object.defineProperty(r,"GraphQLError",{enumerable:!0,get:function(){return n.GraphQLError}});var o=e("./syntaxError");Object.defineProperty(r,"syntaxError",{enumerable:!0,get:function(){return o.syntaxError}});var i=e("./locatedError");Object.defineProperty(r,"locatedError",{enumerable:!0,get:function(){return i.locatedError}});var a=e("./formatError");Object.defineProperty(r,"formatError",{enumerable:!0,get:function(){return a.formatError}})},{"./GraphQLError":14,"./formatError":15,"./locatedError":17,"./syntaxError":18}],17:[function(e,t,r){"use strict";function n(e,t,r){if(e&&e.path)return e;var n=e?e.message||String(e):"An unknown error occurred.";return new o.GraphQLError(n,e&&e.nodes||t,e&&e.source,e&&e.positions,r,e)}Object.defineProperty(r,"__esModule",{value:!0}),r.locatedError=n;var o=e("./GraphQLError")},{"./GraphQLError":14}],18:[function(e,t,r){"use strict";function n(e,t,r){var n=(0,s.getLocation)(e,t),a=n.line+e.locationOffset.line-1,u=i(e,n),l=n.column+u,f=new c.GraphQLError("Syntax Error "+e.name+" ("+a+":"+l+") "+r+"\n\n"+o(e,n),void 0,e,[t]);return f}function o(e,t){var r=t.line,n=e.locationOffset.line-1,o=i(e,t),s=r+n,c=(s-1).toString(),l=s.toString(),f=(s+1).toString(),d=f.length,p=e.body.split(/\r\n|[\n\r]/g);return p[0]=a(e.locationOffset.column-1)+p[0],(r>=2?u(d,c)+": "+p[r-2]+"\n":"")+u(d,l)+": "+p[r-1]+"\n"+a(2+d+t.column-1+o)+"^\n"+(r<p.length?u(d,f)+": "+p[r]+"\n":"")}function i(e,t){return 1===t.line?e.locationOffset.column-1:0}function a(e){return Array(e+1).join(" ")}function u(e,t){return a(e-t.length)+t}Object.defineProperty(r,"__esModule",{value:!0}),r.syntaxError=n;var s=e("../language/location"),c=e("./GraphQLError")},{"../language/location":22,"./GraphQLError":14}],19:[function(e,t,r){"use strict";function n(e,t){if(!e)throw new Error(t)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n},{}],20:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.NAME="Name",r.DOCUMENT="Document",r.OPERATION_DEFINITION="OperationDefinition",r.VARIABLE_DEFINITION="VariableDefinition",r.VARIABLE="Variable",r.SELECTION_SET="SelectionSet",r.FIELD="Field",r.ARGUMENT="Argument",r.FRAGMENT_SPREAD="FragmentSpread",r.INLINE_FRAGMENT="InlineFragment",r.FRAGMENT_DEFINITION="FragmentDefinition",r.INT="IntValue",r.FLOAT="FloatValue",r.STRING="StringValue",r.BOOLEAN="BooleanValue",r.NULL="NullValue",r.ENUM="EnumValue",r.LIST="ListValue",r.OBJECT="ObjectValue",r.OBJECT_FIELD="ObjectField",r.DIRECTIVE="Directive",r.NAMED_TYPE="NamedType",r.LIST_TYPE="ListType",r.NON_NULL_TYPE="NonNullType",r.SCHEMA_DEFINITION="SchemaDefinition",r.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",r.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",r.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",r.FIELD_DEFINITION="FieldDefinition",r.INPUT_VALUE_DEFINITION="InputValueDefinition",r.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",r.UNION_TYPE_DEFINITION="UnionTypeDefinition",r.ENUM_TYPE_DEFINITION="EnumTypeDefinition",r.ENUM_VALUE_DEFINITION="EnumValueDefinition",r.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",r.TYPE_EXTENSION_DEFINITION="TypeExtensionDefinition",r.DIRECTIVE_DEFINITION="DirectiveDefinition"},{}],21:[function(e,t,r){"use strict";function n(e,t){var r=new a(g,0,0,0,0,null),n={source:e,options:t,lastToken:r,token:r,line:1,lineStart:0,advance:o};return n}function o(){var e=this.lastToken=this.token;if(e.kind!==w){do e=e.next=s(this,e);while(e.kind===j);this.token=e}return e}function i(e){var t=e.value;return t?e.kind+' "'+t+'"':e.kind}function a(e,t,r,n,o,i,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=o,this.value=a,this.prev=i,this.next=null}function u(e){return isNaN(e)?w:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function s(e,t){var r=e.source,n=r.body,o=n.length,i=l(n,t.end,e),s=e.line,p=1+i-e.lineStart;if(i>=o)return new a(w,o,o,s,p,t);var y=D.call(n,i);if(y<32&&9!==y&&10!==y&&13!==y)throw(0,b.syntaxError)(r,i,"Cannot contain the invalid character "+u(y)+".");switch(y){case 33:return new a(E,i,i+1,s,p,t);case 35:return f(r,i,s,p,t);case 36:return new a(O,i,i+1,s,p,t);case 40:return new a(k,i,i+1,s,p,t);case 41:return new a(T,i,i+1,s,p,t);case 46:if(46===D.call(n,i+1)&&46===D.call(n,i+2))return new a(_,i,i+3,s,p,t);break;case 58:return new a(I,i,i+1,s,p,t);case 61:return new a(S,i,i+1,s,p,t);case 64:return new a(q,i,i+1,s,p,t);case 91:return new a(P,i,i+1,s,p,t);case 93:return new a(N,i,i+1,s,p,t);case 123:return new a(R,i,i+1,s,p,t);case 124:return new a(A,i,i+1,s,p,t);case 125:return new a(F,i,i+1,s,p,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 m(r,i,s,p,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return d(r,i,y,s,p,t);case 34:return h(r,i,s,p,t)}throw(0,b.syntaxError)(r,i,c(y))}function c(e){return 39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character "+u(e)+"."}function l(e,t,r){for(var n=e.length,o=t;o<n;){var i=D.call(e,o);if(9===i||32===i||44===i||65279===i)++o;else if(10===i)++o,++r.line,r.lineStart=o;else{if(13!==i)break;10===D.call(e,o+1)?o+=2:++o,++r.line,r.lineStart=o}}return o}function f(e,t,r,n,o){var i=e.body,u=void 0,s=t;do u=D.call(i,++s);while(null!==u&&(u>31||9===u));return new a(j,t,s,r,n,o,C.call(i,t+1,s))}function d(e,t,r,n,o,i){var s=e.body,c=r,l=t,f=!1;if(45===c&&(c=D.call(s,++l)),48===c){if(c=D.call(s,++l),c>=48&&c<=57)throw(0,b.syntaxError)(e,l,"Invalid number, unexpected digit after 0: "+u(c)+".")}else l=p(e,l,c),c=D.call(s,l);return 46===c&&(f=!0,c=D.call(s,++l),l=p(e,l,c),c=D.call(s,l)),69!==c&&101!==c||(f=!0,c=D.call(s,++l),43!==c&&45!==c||(c=D.call(s,++l)),l=p(e,l,c)),new a(f?Q:L,t,l,n,o,i,C.call(s,t,l))}function p(e,t,r){var n=e.body,o=t,i=r;if(i>=48&&i<=57){do i=D.call(n,++o);while(i>=48&&i<=57);return o}throw(0,b.syntaxError)(e,o,"Invalid number, expected digit but got: "+u(i)+".");
}function h(e,t,r,n,o){for(var i=e.body,s=t+1,c=s,l=0,f="";s<i.length&&null!==(l=D.call(i,s))&&10!==l&&13!==l&&34!==l;){if(l<32&&9!==l)throw(0,b.syntaxError)(e,s,"Invalid character within String: "+u(l)+".");if(++s,92===l){switch(f+=C.call(i,c,s-1),l=D.call(i,s)){case 34:f+='"';break;case 47:f+="/";break;case 92:f+="\\";break;case 98:f+="\b";break;case 102:f+="\f";break;case 110:f+="\n";break;case 114:f+="\r";break;case 116:f+="\t";break;case 117:var d=y(D.call(i,s+1),D.call(i,s+2),D.call(i,s+3),D.call(i,s+4));if(d<0)throw(0,b.syntaxError)(e,s,"Invalid character escape sequence: "+("\\u"+i.slice(s+1,s+5)+"."));f+=String.fromCharCode(d),s+=4;break;default:throw(0,b.syntaxError)(e,s,"Invalid character escape sequence: \\"+String.fromCharCode(l)+".")}++s,c=s}}if(34!==l)throw(0,b.syntaxError)(e,s,"Unterminated string.");return f+=C.call(i,c,s),new a(x,t,s+1,r,n,o,f)}function y(e,t,r,n){return v(e)<<12|v(t)<<8|v(r)<<4|v(n)}function v(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function m(e,t,r,n,o){for(var i=e.body,u=i.length,s=t+1,c=0;s!==u&&null!==(c=D.call(i,s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new a(M,t,s,r,n,o,C.call(i,t,s))}Object.defineProperty(r,"__esModule",{value:!0}),r.TokenKind=void 0,r.createLexer=n,r.getTokenDesc=i;var b=e("../error"),g="<SOF>",w="<EOF>",E="!",O="$",k="(",T=")",_="...",I=":",S="=",q="@",P="[",N="]",R="{",A="|",F="}",M="Name",L="Int",Q="Float",x="String",j="Comment",D=(r.TokenKind={SOF:g,EOF:w,BANG:E,DOLLAR:O,PAREN_L:k,PAREN_R:T,SPREAD:_,COLON:I,EQUALS:S,AT:q,BRACKET_L:P,BRACKET_R:N,BRACE_L:R,PIPE:A,BRACE_R:F,NAME:M,INT:L,FLOAT:Q,STRING:x,COMMENT:j},String.prototype.charCodeAt),C=String.prototype.slice;a.prototype.toJSON=a.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},{"../error":16}],22:[function(e,t,r){"use strict";function n(e,t){for(var r=/\r\n|[\n\r]/g,n=1,o=t+1,i=void 0;(i=r.exec(e.body))&&i.index<t;)n+=1,o=t+1-(i.index+i[0].length);return{line:n,column:o}}Object.defineProperty(r,"__esModule",{value:!0}),r.getLocation=n},{}],23:[function(e,t,r){"use strict";function n(e,t){var r="string"==typeof e?new ie.Source(e):e;if(!(r instanceof ie.Source))throw new TypeError("Must provide Source. Received: "+String(r));var n=(0,ue.createLexer)(r,t||{});return u(n)}function o(e,t){var r="string"==typeof e?new ie.Source(e):e,n=(0,ue.createLexer)(r,t||{});ee(n,ue.TokenKind.SOF);var o=O(n,!1);return ee(n,ue.TokenKind.EOF),o}function i(e,t){var r="string"==typeof e?new ie.Source(e):e,n=(0,ue.createLexer)(r,t||{});ee(n,ue.TokenKind.SOF);var o=N(n);return ee(n,ue.TokenKind.EOF),o}function a(e){var t=ee(e,ue.TokenKind.NAME);return{kind:se.NAME,value:t.value,loc:z(e,t)}}function u(e){var t=e.token;ee(e,ue.TokenKind.SOF);var r=[];do r.push(s(e));while(!Z(e,ue.TokenKind.EOF));return{kind:se.DOCUMENT,definitions:r,loc:z(e,t)}}function s(e){if($(e,ue.TokenKind.BRACE_L))return c(e);if($(e,ue.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return c(e);case"fragment":return w(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return A(e)}throw re(e)}function c(e){var t=e.token;if($(e,ue.TokenKind.BRACE_L))return{kind:se.OPERATION_DEFINITION,operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:h(e),loc:z(e,t)};var r=l(e),n=void 0;return $(e,ue.TokenKind.NAME)&&(n=a(e)),{kind:se.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:f(e),directives:q(e),selectionSet:h(e),loc:z(e,t)}}function l(e){var t=ee(e,ue.TokenKind.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw re(e,t)}function f(e){return $(e,ue.TokenKind.PAREN_L)?oe(e,ue.TokenKind.PAREN_L,d,ue.TokenKind.PAREN_R):[]}function d(e){var t=e.token;return{kind:se.VARIABLE_DEFINITION,variable:p(e),type:(ee(e,ue.TokenKind.COLON),N(e)),defaultValue:Z(e,ue.TokenKind.EQUALS)?O(e,!0):null,loc:z(e,t)}}function p(e){var t=e.token;return ee(e,ue.TokenKind.DOLLAR),{kind:se.VARIABLE,name:a(e),loc:z(e,t)}}function h(e){var t=e.token;return{kind:se.SELECTION_SET,selections:oe(e,ue.TokenKind.BRACE_L,y,ue.TokenKind.BRACE_R),loc:z(e,t)}}function y(e){return $(e,ue.TokenKind.SPREAD)?g(e):v(e)}function v(e){var t=e.token,r=a(e),n=void 0,o=void 0;return Z(e,ue.TokenKind.COLON)?(n=r,o=a(e)):(n=null,o=r),{kind:se.FIELD,alias:n,name:o,arguments:m(e),directives:q(e),selectionSet:$(e,ue.TokenKind.BRACE_L)?h(e):null,loc:z(e,t)}}function m(e){return $(e,ue.TokenKind.PAREN_L)?oe(e,ue.TokenKind.PAREN_L,b,ue.TokenKind.PAREN_R):[]}function b(e){var t=e.token;return{kind:se.ARGUMENT,name:a(e),value:(ee(e,ue.TokenKind.COLON),O(e,!1)),loc:z(e,t)}}function g(e){var t=e.token;if(ee(e,ue.TokenKind.SPREAD),$(e,ue.TokenKind.NAME)&&"on"!==e.token.value)return{kind:se.FRAGMENT_SPREAD,name:E(e),directives:q(e),loc:z(e,t)};var r=null;return"on"===e.token.value&&(e.advance(),r=R(e)),{kind:se.INLINE_FRAGMENT,typeCondition:r,directives:q(e),selectionSet:h(e),loc:z(e,t)}}function w(e){var t=e.token;return te(e,"fragment"),{kind:se.FRAGMENT_DEFINITION,name:E(e),typeCondition:(te(e,"on"),R(e)),directives:q(e),selectionSet:h(e),loc:z(e,t)}}function E(e){if("on"===e.token.value)throw re(e);return a(e)}function O(e,t){var r=e.token;switch(r.kind){case ue.TokenKind.BRACKET_L:return _(e,t);case ue.TokenKind.BRACE_L:return I(e,t);case ue.TokenKind.INT:return e.advance(),{kind:se.INT,value:r.value,loc:z(e,r)};case ue.TokenKind.FLOAT:return e.advance(),{kind:se.FLOAT,value:r.value,loc:z(e,r)};case ue.TokenKind.STRING:return e.advance(),{kind:se.STRING,value:r.value,loc:z(e,r)};case ue.TokenKind.NAME:return"true"===r.value||"false"===r.value?(e.advance(),{kind:se.BOOLEAN,value:"true"===r.value,loc:z(e,r)}):"null"===r.value?(e.advance(),{kind:se.NULL,loc:z(e,r)}):(e.advance(),{kind:se.ENUM,value:r.value,loc:z(e,r)});case ue.TokenKind.DOLLAR:if(!t)return p(e)}throw re(e)}function k(e){return O(e,!0)}function T(e){return O(e,!1)}function _(e,t){var r=e.token,n=t?k:T;return{kind:se.LIST,values:ne(e,ue.TokenKind.BRACKET_L,n,ue.TokenKind.BRACKET_R),loc:z(e,r)}}function I(e,t){var r=e.token;ee(e,ue.TokenKind.BRACE_L);for(var n=[];!Z(e,ue.TokenKind.BRACE_R);)n.push(S(e,t));return{kind:se.OBJECT,fields:n,loc:z(e,r)}}function S(e,t){var r=e.token;return{kind:se.OBJECT_FIELD,name:a(e),value:(ee(e,ue.TokenKind.COLON),O(e,t)),loc:z(e,r)}}function q(e){for(var t=[];$(e,ue.TokenKind.AT);)t.push(P(e));return t}function P(e){var t=e.token;return ee(e,ue.TokenKind.AT),{kind:se.DIRECTIVE,name:a(e),arguments:m(e),loc:z(e,t)}}function N(e){var t=e.token,r=void 0;return Z(e,ue.TokenKind.BRACKET_L)?(r=N(e),ee(e,ue.TokenKind.BRACKET_R),r={kind:se.LIST_TYPE,type:r,loc:z(e,t)}):r=R(e),Z(e,ue.TokenKind.BANG)?{kind:se.NON_NULL_TYPE,type:r,loc:z(e,t)}:r}function R(e){var t=e.token;return{kind:se.NAMED_TYPE,name:a(e),loc:z(e,t)}}function A(e){if($(e,ue.TokenKind.NAME))switch(e.token.value){case"schema":return F(e);case"scalar":return L(e);case"type":return Q(e);case"interface":return U(e);case"union":return B(e);case"enum":return K(e);case"input":return Y(e);case"extend":return H(e);case"directive":return W(e)}throw re(e)}function F(e){var t=e.token;te(e,"schema");var r=q(e),n=oe(e,ue.TokenKind.BRACE_L,M,ue.TokenKind.BRACE_R);return{kind:se.SCHEMA_DEFINITION,directives:r,operationTypes:n,loc:z(e,t)}}function M(e){var t=e.token,r=l(e);ee(e,ue.TokenKind.COLON);var n=R(e);return{kind:se.OPERATION_TYPE_DEFINITION,operation:r,type:n,loc:z(e,t)}}function L(e){var t=e.token;te(e,"scalar");var r=a(e),n=q(e);return{kind:se.SCALAR_TYPE_DEFINITION,name:r,directives:n,loc:z(e,t)}}function Q(e){var t=e.token;te(e,"type");var r=a(e),n=x(e),o=q(e),i=ne(e,ue.TokenKind.BRACE_L,j,ue.TokenKind.BRACE_R);return{kind:se.OBJECT_TYPE_DEFINITION,name:r,interfaces:n,directives:o,fields:i,loc:z(e,t)}}function x(e){var t=[];if("implements"===e.token.value){e.advance();do t.push(R(e));while($(e,ue.TokenKind.NAME))}return t}function j(e){var t=e.token,r=a(e),n=D(e);ee(e,ue.TokenKind.COLON);var o=N(e),i=q(e);return{kind:se.FIELD_DEFINITION,name:r,arguments:n,type:o,directives:i,loc:z(e,t)}}function D(e){return $(e,ue.TokenKind.PAREN_L)?oe(e,ue.TokenKind.PAREN_L,C,ue.TokenKind.PAREN_R):[]}function C(e){var t=e.token,r=a(e);ee(e,ue.TokenKind.COLON);var n=N(e),o=null;Z(e,ue.TokenKind.EQUALS)&&(o=k(e));var i=q(e);return{kind:se.INPUT_VALUE_DEFINITION,name:r,type:n,defaultValue:o,directives:i,loc:z(e,t)}}function U(e){var t=e.token;te(e,"interface");var r=a(e),n=q(e),o=ne(e,ue.TokenKind.BRACE_L,j,ue.TokenKind.BRACE_R);return{kind:se.INTERFACE_TYPE_DEFINITION,name:r,directives:n,fields:o,loc:z(e,t)}}function B(e){var t=e.token;te(e,"union");var r=a(e),n=q(e);ee(e,ue.TokenKind.EQUALS);var o=V(e);return{kind:se.UNION_TYPE_DEFINITION,name:r,directives:n,types:o,loc:z(e,t)}}function V(e){Z(e,ue.TokenKind.PIPE);var t=[];do t.push(R(e));while(Z(e,ue.TokenKind.PIPE));return t}function K(e){var t=e.token;te(e,"enum");var r=a(e),n=q(e),o=oe(e,ue.TokenKind.BRACE_L,G,ue.TokenKind.BRACE_R);return{kind:se.ENUM_TYPE_DEFINITION,name:r,directives:n,values:o,loc:z(e,t)}}function G(e){var t=e.token,r=a(e),n=q(e);return{kind:se.ENUM_VALUE_DEFINITION,name:r,directives:n,loc:z(e,t)}}function Y(e){var t=e.token;te(e,"input");var r=a(e),n=q(e),o=ne(e,ue.TokenKind.BRACE_L,C,ue.TokenKind.BRACE_R);return{kind:se.INPUT_OBJECT_TYPE_DEFINITION,name:r,directives:n,fields:o,loc:z(e,t)}}function H(e){var t=e.token;te(e,"extend");var r=Q(e);return{kind:se.TYPE_EXTENSION_DEFINITION,definition:r,loc:z(e,t)}}function W(e){var t=e.token;te(e,"directive"),ee(e,ue.TokenKind.AT);var r=a(e),n=D(e);te(e,"on");var o=J(e);return{kind:se.DIRECTIVE_DEFINITION,name:r,arguments:n,locations:o,loc:z(e,t)}}function J(e){Z(e,ue.TokenKind.PIPE);var t=[];do t.push(a(e));while(Z(e,ue.TokenKind.PIPE));return t}function z(e,t){if(!e.options.noLocation)return new X(t,e.lastToken,e.source)}function X(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}function $(e,t){return e.token.kind===t}function Z(e,t){var r=e.token.kind===t;return r&&e.advance(),r}function ee(e,t){var r=e.token;if(r.kind===t)return e.advance(),r;throw(0,ae.syntaxError)(e.source,r.start,"Expected "+t+", found "+(0,ue.getTokenDesc)(r))}function te(e,t){var r=e.token;if(r.kind===ue.TokenKind.NAME&&r.value===t)return e.advance(),r;throw(0,ae.syntaxError)(e.source,r.start,'Expected "'+t+'", found '+(0,ue.getTokenDesc)(r))}function re(e,t){var r=t||e.token;return(0,ae.syntaxError)(e.source,r.start,"Unexpected "+(0,ue.getTokenDesc)(r))}function ne(e,t,r,n){ee(e,t);for(var o=[];!Z(e,n);)o.push(r(e));return o}function oe(e,t,r,n){ee(e,t);for(var o=[r(e)];!Z(e,n);)o.push(r(e));return o}Object.defineProperty(r,"__esModule",{value:!0}),r.parse=n,r.parseValue=o,r.parseType=i,r.parseConstValue=k,r.parseTypeReference=N,r.parseNamedType=R;var ie=e("./source"),ae=e("../error"),ue=e("./lexer"),se=e("./kinds");X.prototype.toJSON=X.prototype.inspect=function(){return{start:this.start,end:this.end}}},{"../error":16,"./kinds":20,"./lexer":21,"./source":25}],24:[function(e,t,r){"use strict";function n(e){return(0,s.visit)(e,{leave:c})}function o(e,t){return e?e.filter(function(e){return e}).join(t||""):""}function i(e){return e&&0!==e.length?u("{\n"+o(e,"\n"))+"\n}":"{}"}function a(e,t,r){return t?e+t+(r||""):""}function u(e){return e&&e.replace(/\n/g,"\n ")}Object.defineProperty(r,"__esModule",{value:!0}),r.print=n;var s=e("./visitor"),c={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return o(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=a("(",o(e.variableDefinitions,", "),")"),i=o(e.directives," "),u=e.selectionSet;return r||i||n||"query"!==t?o([t,o([r,n]),i,u]," "):u},VariableDefinition:function(e){var t=e.variable,r=e.type,n=e.defaultValue;return t+": "+r+a(" = ",n)},SelectionSet:function(e){var t=e.selections;return i(t)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,u=e.selectionSet;return o([a("",t,": ")+r+a("(",o(n,", "),")"),o(i," "),u]," ")},Argument:function(e){var t=e.name,r=e.value;return t+": "+r},FragmentSpread:function(e){var t=e.name,r=e.directives;return"..."+t+a(" ",o(r," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return o(["...",a("on ",t),o(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.directives,i=e.selectionSet;return"fragment "+t+" on "+r+" "+a("",o(n," ")," ")+i},IntValue:function(e){var t=e.value;return t},FloatValue:function(e){var t=e.value;return t},StringValue:function(e){var t=e.value;return JSON.stringify(t)},BooleanValue:function(e){var t=e.value;return JSON.stringify(t)},NullValue:function(){return"null"},EnumValue:function(e){var t=e.value;return t},ListValue:function(e){var t=e.values;return"["+o(t,", ")+"]"},ObjectValue:function(e){var t=e.fields;return"{"+o(t,", ")+"}"},ObjectField:function(e){var t=e.name,r=e.value;return t+": "+r},Directive:function(e){var t=e.name,r=e.arguments;return"@"+t+a("(",o(r,", "),")")},NamedType:function(e){var t=e.name;return t},ListType:function(e){var t=e.type;return"["+t+"]"},NonNullType:function(e){var t=e.type;return t+"!"},SchemaDefinition:function(e){var t=e.directives,r=e.operationTypes;return o(["schema",o(t," "),i(r)]," ")},OperationTypeDefinition:function(e){var t=e.operation,r=e.type;return t+": "+r},ScalarTypeDefinition:function(e){var t=e.name,r=e.directives;return o(["scalar",t,o(r," ")]," ")},ObjectTypeDefinition:function(e){var t=e.name,r=e.interfaces,n=e.directives,u=e.fields;return o(["type",t,a("implements ",o(r,", ")),o(n," "),i(u)]," ")},FieldDefinition:function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+a("(",o(r,", "),")")+": "+n+a(" ",o(i," "))},InputValueDefinition:function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return o([t+": "+r,a("= ",n),o(i," ")]," ")},InterfaceTypeDefinition:function(e){var t=e.name,r=e.directives,n=e.fields;return o(["interface",t,o(r," "),i(n)]," ")},UnionTypeDefinition:function(e){var t=e.name,r=e.directives,n=e.types;return o(["union",t,o(r," "),"= "+o(n," | ")]," ")},EnumTypeDefinition:function(e){var t=e.name,r=e.directives,n=e.values;return o(["enum",t,o(r," "),i(n)]," ")},EnumValueDefinition:function(e){var t=e.name,r=e.directives;return o([t,o(r," ")]," ")},InputObjectTypeDefinition:function(e){var t=e.name,r=e.directives,n=e.fields;return o(["input",t,o(r," "),i(n)]," ")},TypeExtensionDefinition:function(e){var t=e.definition;return"extend "+t},DirectiveDefinition:function(e){var t=e.name,r=e.arguments,n=e.locations;return"directive @"+t+a("(",o(r,", "),")")+" on "+o(n," | ")}}},{"./visitor":26}],25:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0}),r.Source=void 0;var i=e("../jsutils/invariant"),a=n(i);r.Source=function e(t,r,n){o(this,e),this.body=t,this.name=r||"GraphQL request",this.locationOffset=n||{line:1,column:1},this.locationOffset.line>0?void 0:(0,a.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0?void 0:(0,a.default)(0,"column in locationOffset is 1-indexed and must be positive")}},{"../jsutils/invariant":19}],26:[function(e,t,r){"use strict";function n(e,t,r){var n=r||s,i=void 0,a=Array.isArray(e),l=[e],f=-1,d=[],p=void 0,h=[],y=[],v=e;do{f++;var m=f===l.length,b=void 0,g=void 0,w=m&&0!==d.length;if(m){if(b=0===y.length?void 0:h.pop(),g=p,p=y.pop(),w){if(a)g=g.slice();else{var E={};for(var O in g)g.hasOwnProperty(O)&&(E[O]=g[O]);g=E}for(var k=0,T=0;T<d.length;T++){var _=d[T][0],I=d[T][1];a&&(_-=k),a&&null===I?(g.splice(_,1),k++):g[_]=I}}f=i.index,l=i.keys,d=i.edits,a=i.inArray,i=i.prev}else{if(b=p?a?f:l[f]:void 0,g=p?p[b]:v,null===g||void 0===g)continue;p&&h.push(b)}var S=void 0;if(!Array.isArray(g)){if(!o(g))throw new Error("Invalid AST Node: "+JSON.stringify(g));var q=u(t,g.kind,m);if(q){if(S=q.call(t,g,b,p,h,y),S===c)break;if(S===!1){if(!m){h.pop();continue}}else if(void 0!==S&&(d.push([b,S]),!m)){if(!o(S)){h.pop();continue}g=S}}}void 0===S&&w&&d.push([b,g]),m||(i={inArray:a,index:f,keys:l,edits:d,prev:i},a=Array.isArray(g),l=a?g:n[g.kind]||[],f=-1,d=[],p&&y.push(p),p=g)}while(void 0!==i);return 0!==d.length&&(v=d[d.length-1][1]),v}function o(e){return e&&"string"==typeof e.kind}function i(e){var t=new Array(e.length);return{enter:function(r){for(var n=0;n<e.length;n++)if(!t[n]){var o=u(e[n],r.kind,!1);if(o){var i=o.apply(e[n],arguments);if(i===!1)t[n]=r;else if(i===c)t[n]=c;else if(void 0!==i)return i}}},leave:function(r){for(var n=0;n<e.length;n++)if(t[n])t[n]===r&&(t[n]=null);else{var o=u(e[n],r.kind,!0);if(o){var i=o.apply(e[n],arguments);if(i===c)t[n]=c;else if(void 0!==i&&i!==!1)return i}}}}}function a(e,t){return{enter:function(r){e.enter(r);var n=u(t,r.kind,!1);if(n){var i=n.apply(t,arguments);return void 0!==i&&(e.leave(r),o(i)&&e.enter(i)),i}},leave:function(r){var n=u(t,r.kind,!0),o=void 0;return n&&(o=n.apply(t,arguments)),e.leave(r),o}}}function u(e,t,r){var n=e[t];if(n){if(!r&&"function"==typeof n)return n;var o=r?n.leave:n.enter;if("function"==typeof o)return o}else{var i=r?e.leave:e.enter;if(i){if("function"==typeof i)return i;var a=i[t];if("function"==typeof a)return a}}}Object.defineProperty(r,"__esModule",{value:!0}),r.visit=n,r.visitInParallel=i,r.visitWithTypeInfo=a,r.getVisitFn=u;var s=r.QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","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:["name","directives"],ObjectTypeDefinition:["name","interfaces","directives","fields"],FieldDefinition:["name","arguments","type","directives"],InputValueDefinition:["name","type","defaultValue","directives"],InterfaceTypeDefinition:["name","directives","fields"],UnionTypeDefinition:["name","directives","types"],EnumTypeDefinition:["name","directives","values"],EnumValueDefinition:["name","directives"],InputObjectTypeDefinition:["name","directives","fields"],TypeExtensionDefinition:["definition"],DirectiveDefinition:["name","arguments","locations"]},c=r.BREAK={}},{}],27:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(r,n,o){var a=e(r,n,o),s=a.dispatch,c=[],l={getState:a.getState,dispatch:function(e){return s(e)}};return c=t.map(function(e){return e(l)}),s=u.default.apply(void 0,c)(a.dispatch),i({},a,{dispatch:s})}}}r.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};r.default=o;var a=e("./compose"),u=n(a)},{"./compose":30}],28:[function(e,t,r){"use strict";function n(e,t){return function(){return t(e.apply(void 0,arguments))}}function o(e,t){if("function"==typeof e)return n(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var r=Object.keys(e),o={},i=0;i<r.length;i++){var a=r[i],u=e[a];"function"==typeof u&&(o[a]=n(u,t))}return o}r.__esModule=!0,r.default=o},{}],29:[function(e,t,r){(function(t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r=t&&t.type,n=r&&'"'+r.toString()+'"'||"an action";return"Given action "+n+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function i(e,t,r,n){var o=Object.keys(t),i=r&&r.type===s.ActionTypes.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===o.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!(0,l.default)(e))return"The "+i+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var a=Object.keys(e).filter(function(e){return!t.hasOwnProperty(e)&&!n[e]});return a.forEach(function(e){n[e]=!0}),a.length>0?"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.'):void 0}function a(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:s.ActionTypes.INIT});if("undefined"==typeof n)throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof r(void 0,{type:o}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+s.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function u(e){for(var r=Object.keys(e),n={},u=0;u<r.length;u++){var s=r[u];"production"!==t.env.NODE_ENV&&"undefined"==typeof e[s]&&(0,d.default)('No reducer provided for key "'+s+'"'),"function"==typeof e[s]&&(n[s]=e[s])}var c=Object.keys(n),l=void 0;"production"!==t.env.NODE_ENV&&(l={});var f=void 0;try{a(n)}catch(e){f=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];if(f)throw f;if("production"!==t.env.NODE_ENV){var a=i(e,n,r,l);a&&(0,d.default)(a)}for(var u=!1,s={},p=0;p<c.length;p++){var h=c[p],y=n[h],v=e[h],m=y(v,r);if("undefined"==typeof m){var b=o(h,r);throw new Error(b)}s[h]=m,u=u||m!==v}return u?s:e}}r.__esModule=!0,r.default=u;var s=e("./createStore"),c=e("lodash/isPlainObject"),l=n(c),f=e("./utils/warning"),d=n(f)}).call(this,e("_process"))},{"./createStore":31,"./utils/warning":33,_process:1,"lodash/isPlainObject":43}],30:[function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}r.__esModule=!0,r.default=n},{}],31:[function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t,r){function n(){m===v&&(m=v.slice())}function i(){return y}function u(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return n(),m.push(e),function(){if(t){t=!1,n();var r=m.indexOf(e);m.splice(r,1)}}}function l(e){if(!(0,a.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(b)throw new Error("Reducers may not dispatch actions.");try{b=!0,y=h(y,e)}finally{b=!1}for(var t=v=m,r=0;r<t.length;r++){var n=t[r];n()}return e}function f(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,l({type:c.INIT})}function d(){var e,t=u;return e={subscribe:function(e){function r(){e.next&&e.next(i())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");r();var n=t(r);return{unsubscribe:n}}},e[s.default]=function(){return this},e}var p;if("function"==typeof t&&"undefined"==typeof r&&(r=t,t=void 0),"undefined"!=typeof r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var h=e,y=t,v=[],m=v,b=!1;return l({type:c.INIT}),p={dispatch:l,subscribe:u,getState:i,replaceReducer:f},p[s.default]=d,p}r.__esModule=!0,r.ActionTypes=void 0,r.default=o;var i=e("lodash/isPlainObject"),a=n(i),u=e("symbol-observable"),s=n(u),c=r.ActionTypes={INIT:"@@redux/INIT"}},{"lodash/isPlainObject":43,"symbol-observable":44}],32:[function(e,t,r){(function(t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(){}r.__esModule=!0,r.compose=r.applyMiddleware=r.bindActionCreators=r.combineReducers=r.createStore=void 0;var i=e("./createStore"),a=n(i),u=e("./combineReducers"),s=n(u),c=e("./bindActionCreators"),l=n(c),f=e("./applyMiddleware"),d=n(f),p=e("./compose"),h=n(p),y=e("./utils/warning"),v=n(y);"production"!==t.env.NODE_ENV&&"string"==typeof o.name&&"isCrushed"!==o.name&&(0,v.default)("You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) to ensure you have the correct code for your production build."),r.createStore=a.default,r.combineReducers=s.default,r.bindActionCreators=l.default,r.applyMiddleware=d.default,r.compose=h.default}).call(this,e("_process"))},{"./applyMiddleware":27,"./bindActionCreators":28,"./combineReducers":29,"./compose":30,"./createStore":31,"./utils/warning":33,_process:1}],33:[function(e,t,r){"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}r.__esModule=!0,r.default=n},{}],34:[function(e,t,r){var n=e("./_root"),o=n.Symbol;t.exports=o},{"./_root":41}],35:[function(e,t,r){function n(e){return null==e?void 0===e?s:u:c&&c in Object(e)?i(e):a(e)}var o=e("./_Symbol"),i=e("./_getRawTag"),a=e("./_objectToString"),u="[object Null]",s="[object Undefined]",c=o?o.toStringTag:void 0;t.exports=n},{"./_Symbol":34,"./_getRawTag":38,"./_objectToString":39}],36:[function(e,t,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("./_overArg"),o=n(Object.getPrototypeOf,Object);t.exports=o},{"./_overArg":40}],38:[function(e,t,r){function n(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=u.call(e);return n&&(t?e[s]=r:delete e[s]),o}var o=e("./_Symbol"),i=Object.prototype,a=i.hasOwnProperty,u=i.toString,s=o?o.toStringTag:void 0;t.exports=n},{"./_Symbol":34}],39:[function(e,t,r){function n(e){return i.call(e)}var o=Object.prototype,i=o.toString;t.exports=n},{}],40:[function(e,t,r){function n(e,t){return function(r){return e(t(r))}}t.exports=n},{}],41:[function(e,t,r){var n=e("./_freeGlobal"),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},{"./_freeGlobal":36}],42:[function(e,t,r){function n(e){return null!=e&&"object"==typeof e}t.exports=n},{}],43:[function(e,t,r){function n(e){if(!a(e)||o(e)!=u)return!1;var t=i(e);if(null===t)return!0;var r=f.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==d}var o=e("./_baseGetTag"),i=e("./_getPrototype"),a=e("./isObjectLike"),u="[object Object]",s=Function.prototype,c=Object.prototype,l=s.toString,f=c.hasOwnProperty,d=l.call(Object);t.exports=n},{"./_baseGetTag":35,"./_getPrototype":37,"./isObjectLike":42}],44:[function(e,t,r){t.exports=e("./lib/index")},{"./lib/index":45}],45:[function(e,t,r){(function(n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0});var i,a=e("./ponyfill"),u=o(a);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof n?n:"undefined"!=typeof t?t:Function("return this")();var s=(0,u.default)(i);r.default=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ponyfill":46}],46:[function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}Object.defineProperty(r,"__esModule",{value:!0}),r.default=n},{}],47:[function(e,t,r){!function(e){"use strict";function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function r(e){return"string"!=typeof e&&(e=String(e)),e}function n(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return m.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function a(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function u(e){var t=new FileReader,r=a(t);return t.readAsArrayBuffer(e),r}function s(e){var t=new FileReader,r=a(t);return t.readAsText(e),r}function c(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}function l(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(m.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(m.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(m.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(m.arrayBuffer&&m.blob&&g(e))this._bodyArrayBuffer=l(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!m.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!w(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=l(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):m.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},m.blob&&(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){
return this._bodyArrayBuffer?i(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(u)}),this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return s(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(c(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},m.formData&&(this.formData=function(){return this.text().then(h)}),this.json=function(){return this.text().then(JSON.parse)},this}function d(e){var t=e.toUpperCase();return E.indexOf(t)>-1?t:e}function p(e,t){t=t||{};var r=t.body;if(e instanceof p){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=d(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function y(e){var t=new o;return e.split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}}),t}function v(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var m={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(m.arrayBuffer)var b=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=function(e){return e&&DataView.prototype.isPrototypeOf(e)},w=ArrayBuffer.isView||function(e){return e&&b.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,n){e=t(e),n=r(n);var o=this.map[e];this.map[e]=o?o+","+n:n},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,n){this.map[t(e)]=r(n)},o.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),n(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),n(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),n(e)},m.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var E=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},f.call(p.prototype),f.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var O=[301,302,303,307,308];v.redirect=function(e,t){if(O.indexOf(t)===-1)throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=p,e.Response=v,e.fetch=function(e,t){return new Promise(function(r,n){var o=new p(e,t),i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:y(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;r(new v(t,e))},i.onerror=function(){n(new TypeError("Network request failed"))},i.ontimeout=function(){n(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&m.blob&&(i.responseType="blob"),o.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send("undefined"==typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},{}]},{},[2])(2)});
</script>