Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-apollo

Package Overview
Dependencies
Maintainers
2
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-apollo - npm Package Compare versions

Comparing version 0.3.10 to 0.3.12

4

Changelog.md

@@ -5,2 +5,6 @@ # Change log

### v0.3.11/12
Bug: fixed overrendering of components on redux state changes
### v0.3.10

@@ -7,0 +11,0 @@

6

connect.js

@@ -100,4 +100,3 @@ "use strict";

_this.previousState = newState;
_this.hasOwnStateChanged = true;
_this.subscribeToAllQueries(props);
_this.hasOwnStateChanged = _this.subscribeToAllQueries(props);
_this.createAllMutationHandles(props);

@@ -117,3 +116,3 @@ }

if (isEqual(oldQueries, queryHandles)) {
return;
return false;
}

@@ -150,2 +149,3 @@ else if (oldQueries) {

}
return true;
};

@@ -152,0 +152,0 @@ ApolloConnect.prototype.unsubcribeAllQueries = function () {

@@ -1,2 +0,2 @@

!function t(e,r,n){function o(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var p=r[a]={exports:{}};e[a][0].call(p.exports,function(t){var r=e[a][1][t];return o(r?r:t)},p,p.exports,t,e,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(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("react"),i=t("react"),a=t("react-redux"),s=function(t){function e(e,r){return t.call(this,e,r),this.client=e.client,e.store?void(this.store=e.store):(e.client.initStore(),void(this.store=e.client.store))}return n(e,t),e.prototype.getChildContext=function(){return{store:this.store,client:this.client}},e.prototype.render=function(){var t=this.props.children;return o.createElement(a.Provider,{store:this.store},t)},e.propTypes={store:i.PropTypes.shape({subscribe:i.PropTypes.func.isRequired,dispatch:i.PropTypes.func.isRequired,getState:i.PropTypes.func.isRequired}),client:i.PropTypes.object.isRequired,children:i.PropTypes.element.isRequired},e.childContextTypes={store:i.PropTypes.object.isRequired,client:i.PropTypes.object.isRequired},e}(i.Component);Object.defineProperty(r,"__esModule",{value:!0}),r.default=s},{react:4,"react-redux":14}],2:[function(t,e,r){"use strict";function n(t){return t.displayName||t.name||"Component"}function o(t){t||(t={});var e=t.mapQueriesToProps,r=t.mapMutationsToProps;delete t.mapQueriesToProps,delete t.mapMutationsToProps,e=e?e:h,r=r?r:d;var o=b++;return function(h){var d="Apollo(Connect("+n(h)+"))",b=function(t){function n(e,r){t.call(this,e,r),this.version=o,this.store=e.store||r.store,this.client=e.client||r.client,c(!!this.client,'Could not find "client" in either the context or '+('props of "'+d+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "client" as a prop to "'+d+'".'));var n=this.store.getState();this.state=p({},n),this.previousState=n,this.data={},this.mutations={}}return i(n,t),n.prototype.componentWillMount=function(){var t=this.props;this.subscribeToAllQueries(t),this.createAllMutationHandles(t),this.bindStoreUpdates()},n.prototype.componentDidMount=function(){this.hasMounted=!0},n.prototype.componentWillReceiveProps=function(t){u(this.props,t)||(this.haveOwnPropsChanged=!0,this.createAllMutationHandles(t),this.subscribeToAllQueries(t))},n.prototype.shouldComponentUpdate=function(t,e){return this.haveOwnPropsChanged||this.hasOwnStateChanged||this.hasQueryDataChanged||this.hasMutationDataChanged},n.prototype.componentWillUnmount=function(){this.unsubcribeAllQueries(),this.unsubscribeFromStore&&(this.unsubscribeFromStore(),this.unsubscribeFromStore=null),this.hasMounted=!1},n.prototype.bindStoreUpdates=function(){var t=this,e=this.store,r=this.client.reduxRootKey;this.unsubscribeFromStore=e.subscribe(function(){var n=t.props,o=p({},e.getState()),i=p({},t.previousState);delete o[r],delete i[r],u(i,o)||(t.previousState=o,t.hasOwnStateChanged=!0,t.subscribeToAllQueries(n),t.createAllMutationHandles(n))})},n.prototype.subscribeToAllQueries=function(t){var r=this.client,n=r.watchQuery,o=r.reduxRootKey,i=this.store,a=e({state:i.getState(),ownProps:t}),c=p({},this.previousQueries);if(this.previousQueries=p({},a),!u(c,a)&&(c&&this.unsubcribeAllQueries(),s(a)&&Object.keys(a).length)){this.queryHandles=a;for(var l in a)if(a.hasOwnProperty(l)){var h=a[l],d=h.query,v=h.variables,b=h.forceFetch,g=n(a[l]),_=y;if(!b)try{var w=f.readQueryFromStore({store:i.getState()[o].data,query:d,variables:v});_=p({errors:null,loading:!1},w)}catch(t){}this.data[l]=_,this.handleQueryData(g,l)}}},n.prototype.unsubcribeAllQueries=function(){if(this.queryHandles)for(var t in this.queryHandles)this.queryHandles.hasOwnProperty(t)&&this.queryHandles[t].unsubscribe()},n.prototype.handleQueryData=function(t,e){var r,n,o,i=this,a=function(t,e){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o-0]=arguments[o];return i.data[t]=p(i.data[t],{loading:!0,refetch:r}),i.hasQueryDataChanged=!0,i.hasMounted&&i.setState(i.store.getState()),e.apply(void 0,n)}},s={},l=function(t){var a=t.errors,l=t.data,f=void 0===l?{}:l,h="errors"in f||"loading"in f||"refetch"in f||"startPolling"in f||"stopPolling"in f;c(!h,"the result of the '"+e+"' query contains keys that conflict with the return object. 'errors', 'loading', 'startPolling', 'stopPolling', and 'refetch' cannot be returned keys"),(!u(s,f)||a||i.data[e].loading)&&(i.hasQueryDataChanged=!0),s=p({},f),i.data[e]=p({loading:!1,errors:a,refetch:r,startPolling:n,stopPolling:o},f),i.hasMounted&&i.setState(i.store.getState())};this.queryHandles[e]=t.subscribe({next:l,error:function(t){l({errors:t})}}),r=a(e,this.queryHandles[e].refetch),n=this.queryHandles[e].startPolling,o=this.queryHandles[e].stopPolling,this.data[e]=p(this.data[e],{refetch:r,startPolling:n,stopPolling:o})},n.prototype.createAllMutationHandles=function(t){var e=r({ownProps:t,state:this.store.getState()});if(s(e)&&Object.keys(e).length)for(var n in e)if(e.hasOwnProperty(n)){var o=this.createMutationHandle(n,e[n]);this.data[n]=v,this.mutations[n]=o}},n.prototype.createMutationHandle=function(t,e){var r=this,n=this.client.mutate,o=this.store,i=function(e){var n=e.errors,i=e.data,a=void 0===i?{}:i,s="errors"in a||"loading"in a||"refetch"in a;return c(!s,"the result of the '"+t+"' mutation contains keys that conflict with the return object. 'errors', 'loading', and 'refetch' cannot be returned keys"),r.data[t]=p({loading:!1,errors:n},a),r.hasMutationDataChanged=!0,r.hasMounted&&r.setState(o.getState()),{errors:n,data:a}};return function(){for(var a=[],s=0;s<arguments.length;s++)a[s-0]=arguments[s];var u={state:o.getState(),ownProps:r.props};a.push(u);var c=e.apply(r.client,a),l=c.mutation,f=c.variables;return new Promise(function(e,n){r.data[t]=p(r.data[t],{loading:!0}),r.hasMutationDataChanged=!0,r.hasMounted&&r.setState(o.getState()),e()}).then(function(){return n({mutation:l,variables:f})}).then(i).catch(function(t){return i({errors:t})})}},n.prototype.render=function(){var t=this,e=t.haveOwnPropsChanged,r=t.hasOwnStateChanged,n=t.hasQueryDataChanged,o=t.hasMutationDataChanged,i=t.renderedElement,s=t.mutations,u=t.props,c=t.data;this.haveOwnPropsChanged=!1,this.hasOwnStateChanged=!1,this.hasQueryDataChanged=!1,this.hasMutationDataChanged=!1;var l={mutate:this.client.mutate,query:this.client.query,watchQuery:this.client.watchQuery};Object.keys(s).length&&(l.mutations=s);var f=p({},u,c,l);return e||r||n||o||!i?(this.renderedElement=a.createElement(h,f),this.renderedElement):i},n.displayName=d,n.WrappedComponent=h,n.contextTypes={store:a.PropTypes.object.isRequired,client:a.PropTypes.object.isRequired},n}(a.Component),g=t.mapStateToProps,_=t.mapDispatchToProps,w=t.mergeProps,m=t.options;return l.connect(g,_,w,m)(b)}}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},a=t("react"),s=t("lodash.isobject"),u=t("lodash.isequal"),c=t("invariant"),p=t("object-assign"),l=t("react-redux"),f=t("apollo-client"),h=function(t){return{}},d=function(t){return{}},y={loading:!0,errors:null},v=p({},y);v.loading=!1;var b=0;Object.defineProperty(r,"__esModule",{value:!0}),r.default=o},{"apollo-client":4,invariant:6,"lodash.isequal":7,"lodash.isobject":10,"object-assign":11,react:4,"react-redux":14}],3:[function(t,e,r){"use strict";var n=t("./ApolloProvider");r.ApolloProvider=n.default;var o=t("./connect");r.connect=o.default},{"./ApolloProvider":1,"./connect":2}],4:[function(t,e,r){},{}],5:[function(t,e,r){function n(){f&&p&&(f=!1,p.length?l=p.concat(l):h=-1,l.length&&o())}function o(){if(!f){var t=s(n);f=!0;for(var e=l.length;e;){for(p=l,l=[];++h<e;)p&&p[h].run();h=-1,e=l.length}p=null,f=!1,u(t)}}function i(t,e){this.fun=t,this.array=e}function a(){}var s,u,c=e.exports={};!function(){try{s=setTimeout}catch(t){s=function(){throw new Error("setTimeout is not defined")}}try{u=clearTimeout}catch(t){u=function(){throw new Error("clearTimeout is not defined")}}}();var p,l=[],f=!1,h=-1;c.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];l.push(new i(t,e)),1!==l.length||f||s(o,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=a,c.addListener=a,c.once=a,c.off=a,c.removeListener=a,c.removeAllListeners=a,c.emit=a,c.binding=function(t){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(t){throw new Error("process.chdir is not supported")},c.umask=function(){return 0}},{}],6:[function(t,e,r){(function(t){"use strict";var r=function(e,r,n,o,i,a,s,u){if("production"!==t.env.NODE_ENV&&void 0===r)throw new Error("invariant requires an error message argument");if(!e){var c;if(void 0===r)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[n,o,i,a,s,u],l=0;c=new Error(r.replace(/%s/g,function(){return p[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};e.exports=r}).call(this,t("_process"))},{_process:5}],7:[function(t,e,r){function n(t,e){for(var r=-1,n=t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function o(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function i(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function a(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function s(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function u(){this.__data__=Xt?Xt(null):{}}function c(t){return this.has(t)&&delete this.__data__[t]}function p(t){var e=this.__data__;if(Xt){var r=e[t];return r===ot?void 0:r}return Ht.call(e,t)?e[t]:void 0}function l(t){var e=this.__data__;return Xt?void 0!==e[t]:Ht.call(e,t)}function f(t,e){var r=this.__data__;return r[t]=Xt&&void 0===e?ot:e,this}function h(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function d(){this.__data__=[]}function y(t){var e=this.__data__,r=k(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():zt.call(e,r,1),!0}function v(t){var e=this.__data__,r=k(e,t);return r<0?void 0:e[r][1]}function b(t){return k(this.__data__,t)>-1}function g(t,e){var r=this.__data__,n=k(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}function _(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function w(){this.__data__={hash:new s,map:new(Kt||h),string:new s}}function m(t){return H(this,t).delete(t)}function P(t){return H(this,t).get(t)}function O(t){return H(this,t).has(t)}function j(t,e){return H(this,t).set(t,e),this}function S(t){var e=-1,r=t?t.length:0;for(this.__data__=new _;++e<r;)this.add(t[e])}function E(t){return this.__data__.set(t,ot),this}function T(t){return this.__data__.has(t)}function C(t){this.__data__=new h(t)}function M(){this.__data__=new h}function x(t){return this.__data__.delete(t)}function A(t){return this.__data__.get(t)}function D(t){return this.__data__.has(t)}function N(t,e){var r=this.__data__;return r instanceof h&&r.__data__.length==nt&&(r=this.__data__=new _(r.__data__)),r.set(t,e),this}function k(t,e){for(var r=t.length;r--;)if($(t[r][0],e))return r;return-1}function R(t,e){return Ht.call(t,e)||"object"==typeof t&&e in t&&null===W(t)}function q(t,e,r,n,o){return t===e||(null==t||null==e||!Z(t)&&!J(e)?t!==t&&e!==e:I(t,e,q,r,n,o))}function I(t,e,r,n,i,a){var s=se(t),u=se(e),c=ct,p=ct;s||(c=L(t),c=c==ut?bt:c),u||(p=L(e),p=p==ut?bt:p);var l=c==bt&&!o(t),f=p==bt&&!o(e),h=c==p;if(h&&!l)return a||(a=new C),s||tt(t)?Q(t,e,r,n,i,a):F(t,e,c,r,n,i,a);if(!(i&at)){var d=l&&Ht.call(t,"__wrapped__"),y=f&&Ht.call(e,"__wrapped__");if(d||y){var v=d?t.value():t,b=y?e.value():e;return a||(a=new C),r(v,b,n,i,a)}}return!!h&&(a||(a=new C),U(t,e,r,n,i,a))}function Q(t,e,r,o,i,a){var s=i&at,u=t.length,c=e.length;if(u!=c&&!(s&&c>u))return!1;var p=a.get(t);if(p)return p==e;var l=-1,f=!0,h=i&it?new S:void 0;for(a.set(t,e);++l<u;){var d=t[l],y=e[l];if(o)var v=s?o(y,d,l,e,t,a):o(d,y,l,t,e,a);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!n(e,function(t,e){if(!h.has(e)&&(d===t||r(d,t,o,i,a)))return h.add(e)})){f=!1;break}}else if(d!==y&&!r(d,y,o,i,a)){f=!1;break}}return a.delete(t),f}function F(t,e,r,n,o,s,u){switch(r){case St:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case jt:return!(t.byteLength!=e.byteLength||!n(new Bt(t),new Bt(e)));case pt:case lt:return+t==+e;case ft:return t.name==e.name&&t.message==e.message;case vt:return t!=+t?e!=+e:t==+e;case _t:case mt:return t==e+"";case yt:var c=i;case wt:var p=s&at;if(c||(c=a),t.size!=e.size&&!p)return!1;var l=u.get(t);return l?l==e:(s|=it,u.set(t,e),Q(c(t),c(e),n,o,s,u));case Pt:if(ae)return ae.call(t)==ae.call(e)}return!1}function U(t,e,r,n,o,i){var a=o&at,s=et(t),u=s.length,c=et(e),p=c.length;if(u!=p&&!a)return!1;for(var l=u;l--;){var f=s[l];if(!(a?f in e:R(e,f)))return!1}var h=i.get(t);if(h)return h==e;var d=!0;i.set(t,e);for(var y=a;++l<u;){f=s[l];var v=t[f],b=e[f];if(n)var g=a?n(b,v,f,e,t,i):n(v,b,f,t,e,i);if(!(void 0===g?v===b||r(v,b,n,o,i):g)){d=!1;break}y||(y="constructor"==f)}if(d&&!y){var _=t.constructor,w=e.constructor;_!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(d=!1)}return i.delete(t),d}function H(t,e){var r=t.__data__;return B(e)?r["string"==typeof e?"string":"hash"]:r.map}function V(t,e){var r=t[e];return X(r)?r:void 0}function W(t){return $t(Object(t))}function L(t){return Vt.call(t)}function B(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function z(t){if(null!=t){try{return Ut.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function $(t,e){return t===e||t!==t&&e!==e}function G(t,e){return q(t,e)}function K(t){var e=Z(t)?Vt.call(t):"";return e==ht||e==dt}function Y(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=st}function Z(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function J(t){return!!t&&"object"==typeof t}function X(t){if(!Z(t))return!1;var e=K(t)||o(t)?Wt:qt;return e.test(z(t))}function tt(t){return J(t)&&Y(t.length)&&!!It[Vt.call(t)]}var et=t("lodash.keys"),rt=t("lodash._root"),nt=200,ot="__lodash_hash_undefined__",it=1,at=2,st=9007199254740991,ut="[object Arguments]",ct="[object Array]",pt="[object Boolean]",lt="[object Date]",ft="[object Error]",ht="[object Function]",dt="[object GeneratorFunction]",yt="[object Map]",vt="[object Number]",bt="[object Object]",gt="[object Promise]",_t="[object RegExp]",wt="[object Set]",mt="[object String]",Pt="[object Symbol]",Ot="[object WeakMap]",jt="[object ArrayBuffer]",St="[object DataView]",Et="[object Float32Array]",Tt="[object Float64Array]",Ct="[object Int8Array]",Mt="[object Int16Array]",xt="[object Int32Array]",At="[object Uint8Array]",Dt="[object Uint8ClampedArray]",Nt="[object Uint16Array]",kt="[object Uint32Array]",Rt=/[\\^$.*+?()[\]{}|]/g,qt=/^\[object .+?Constructor\]$/,It={};It[Et]=It[Tt]=It[Ct]=It[Mt]=It[xt]=It[At]=It[Dt]=It[Nt]=It[kt]=!0,It[ut]=It[ct]=It[jt]=It[pt]=It[St]=It[lt]=It[ft]=It[ht]=It[yt]=It[vt]=It[bt]=It[_t]=It[wt]=It[mt]=It[Ot]=!1;var Qt=Array.prototype,Ft=Object.prototype,Ut=Function.prototype.toString,Ht=Ft.hasOwnProperty,Vt=Ft.toString,Wt=RegExp("^"+Ut.call(Ht).replace(Rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lt=rt.Symbol,Bt=rt.Uint8Array,zt=Qt.splice,$t=Object.getPrototypeOf,Gt=V(rt,"DataView"),Kt=V(rt,"Map"),Yt=V(rt,"Promise"),Zt=V(rt,"Set"),Jt=V(rt,"WeakMap"),Xt=V(Object,"create"),te=z(Gt),ee=z(Kt),re=z(Yt),ne=z(Zt),oe=z(Jt),ie=Lt?Lt.prototype:void 0,ae=ie?ie.valueOf:void 0;s.prototype.clear=u,s.prototype.delete=c,s.prototype.get=p,s.prototype.has=l,s.prototype.set=f,h.prototype.clear=d,h.prototype.delete=y,h.prototype.get=v,h.prototype.has=b,h.prototype.set=g,_.prototype.clear=w,_.prototype.delete=m,_.prototype.get=P,_.prototype.has=O,_.prototype.set=j,S.prototype.add=S.prototype.push=E,S.prototype.has=T,C.prototype.clear=M,C.prototype.delete=x,C.prototype.get=A,C.prototype.has=D,C.prototype.set=N,(Gt&&L(new Gt(new ArrayBuffer(1)))!=St||Kt&&L(new Kt)!=yt||Yt&&L(Yt.resolve())!=gt||Zt&&L(new Zt)!=wt||Jt&&L(new Jt)!=Ot)&&(L=function(t){var e=Vt.call(t),r=e==bt?t.constructor:void 0,n=r?z(r):void 0;if(n)switch(n){case te:return St;case ee:return yt;case re:return gt;case ne:return wt;case oe:return Ot}return e});var se=Array.isArray;e.exports=G},{"lodash._root":8,"lodash.keys":9}],8:[function(t,e,r){(function(t){function n(t){return t&&t.Object===Object?t:null}var o={function:!0,object:!0},i=o[typeof r]&&r&&!r.nodeType?r:void 0,a=o[typeof e]&&e&&!e.nodeType?e:void 0,s=n(i&&a&&"object"==typeof t&&t),u=n(o[typeof self]&&self),c=n(o[typeof window]&&window),p=n(o[typeof this]&&this),l=s||c!==(p&&p.window)&&c||u||p||Function("return this")();e.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(t,e,r){function n(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function o(t,e){return T.call(t,e)||"object"==typeof t&&e in t&&null===s(t)}function i(t){return A(Object(t))}function a(t){return function(e){return null==e?void 0:e[t]}}function s(t){return x(Object(t))}function u(t){var e=t?t.length:void 0;return y(e)&&(N(t)||g(t)||l(t))?n(e,String):null}function c(t,e){return e=null==e?w:e,!!e&&("number"==typeof t||S.test(t))&&t>-1&&t%1==0&&t<e}function p(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||E;return t===r}function l(t){return h(t)&&T.call(t,"callee")&&(!M.call(t,"callee")||C.call(t)==m)}function f(t){return null!=t&&y(D(t))&&!d(t)}function h(t){return b(t)&&f(t)}function d(t){var e=v(t)?C.call(t):"";return e==P||e==O}function y(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=w}function v(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function b(t){return!!t&&"object"==typeof t}function g(t){return"string"==typeof t||!N(t)&&b(t)&&C.call(t)==j}function _(t){var e=p(t);if(!e&&!f(t))return i(t);var r=u(t),n=!!r,a=r||[],s=a.length;for(var l in t)!o(t,l)||n&&("length"==l||c(l,s))||e&&"constructor"==l||a.push(l);return a}var w=9007199254740991,m="[object Arguments]",P="[object Function]",O="[object GeneratorFunction]",j="[object String]",S=/^(?:0|[1-9]\d*)$/,E=Object.prototype,T=E.hasOwnProperty,C=E.toString,M=E.propertyIsEnumerable,x=Object.getPrototypeOf,A=Object.keys,D=a("length"),N=Array.isArray;e.exports=_},{}],10:[function(t,e,r){function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}e.exports=n},{}],11:[function(t,e,r){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function o(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}var i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=o()?Object.assign:function(t,e){for(var r,o,s=n(t),u=1;u<arguments.length;u++){r=Object(arguments[u]);for(var c in r)i.call(r,c)&&(s[c]=r[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(r);for(var p=0;p<o.length;p++)a.call(r,o[p])&&(s[o[p]]=r[o[p]])}}return s}},{}],12:[function(t,e,r){(function(e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(){h||(h=!0,(0,f.default)("<Provider> does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/reactjs/react-redux/releases/tag/v2.0.0 for the migration instructions."))}r.__esModule=!0,r.default=void 0;var u=t("react"),c=t("../utils/storeShape"),p=n(c),l=t("../utils/warning"),f=n(l),h=!1,d=function(t){function e(r,n){o(this,e);var a=i(this,t.call(this,r,n));return a.store=r.store,a}return a(e,t),e.prototype.getChildContext=function(){return{store:this.store}},e.prototype.render=function(){var t=this.props.children;return u.Children.only(t)},e}(u.Component);r.default=d,"production"!==e.env.NODE_ENV&&(d.prototype.componentWillReceiveProps=function(t){var e=this.store,r=t.store;e!==r&&s()}),d.propTypes={store:p.default.isRequired,children:u.PropTypes.element.isRequired},d.childContextTypes={store:p.default.isRequired}}).call(this,t("_process"))},{"../utils/storeShape":16,"../utils/warning":17,_process:5,react:4}],13:[function(t,e,r){(function(e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.displayName||t.name||"Component"}function u(t,e){try{return t.apply(e)}catch(t){return M.value=t,M}}function c(t,r,n){var c=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],f=Boolean(t),d=t||E,v=void 0;v="function"==typeof r?r:r?(0,b.default)(r):T;var g=n||C,w=c.pure,P=void 0===w||w,j=c.withRef,A=void 0!==j&&j,D=P&&g!==C,N=x++;return function(t){function r(t,e){(0,m.default)(t)||(0,_.default)(e+"() in "+c+" must return a plain object. "+("Instead received "+t+"."))}function n(t,n,o){var i=g(t,n,o);return"production"!==e.env.NODE_ENV&&r(i,"mergeProps"),i}var c="Connect("+s(t)+")",b=function(s){function h(t,e){o(this,h);var r=i(this,s.call(this,t,e));r.version=N,r.store=t.store||e.store,(0,S.default)(r.store,'Could not find "store" in either the context or '+('props of "'+c+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+c+'".'));var n=r.store.getState();return r.state={storeState:n},r.clearCache(),r}return a(h,s),h.prototype.shouldComponentUpdate=function(){return!P||this.haveOwnPropsChanged||this.hasStoreStateChanged},h.prototype.computeStateProps=function(t,n){if(!this.finalMapStateToProps)return this.configureFinalMapState(t,n);var o=t.getState(),i=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(o,n):this.finalMapStateToProps(o);return"production"!==e.env.NODE_ENV&&r(i,"mapStateToProps"),i},h.prototype.configureFinalMapState=function(t,n){var o=d(t.getState(),n),i="function"==typeof o;return this.finalMapStateToProps=i?o:d,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,i?this.computeStateProps(t,n):("production"!==e.env.NODE_ENV&&r(o,"mapStateToProps"),o)},h.prototype.computeDispatchProps=function(t,n){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(t,n);var o=t.dispatch,i=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(o,n):this.finalMapDispatchToProps(o);return"production"!==e.env.NODE_ENV&&r(i,"mapDispatchToProps"),i},h.prototype.configureFinalMapDispatch=function(t,n){var o=v(t.dispatch,n),i="function"==typeof o;return this.finalMapDispatchToProps=i?o:v,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,i?this.computeDispatchProps(t,n):("production"!==e.env.NODE_ENV&&r(o,"mapDispatchToProps"),o)},h.prototype.updateStatePropsIfNeeded=function(){var t=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,y.default)(t,this.stateProps))&&(this.stateProps=t,!0)},h.prototype.updateDispatchPropsIfNeeded=function(){var t=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,y.default)(t,this.dispatchProps))&&(this.dispatchProps=t,!0)},h.prototype.updateMergedPropsIfNeeded=function(){var t=n(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&D&&(0,y.default)(t,this.mergedProps))&&(this.mergedProps=t,!0)},h.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},h.prototype.trySubscribe=function(){f&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},h.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},h.prototype.componentDidMount=function(){this.trySubscribe()},h.prototype.componentWillReceiveProps=function(t){P&&(0,y.default)(t,this.props)||(this.haveOwnPropsChanged=!0)},h.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},h.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},h.prototype.handleChange=function(){if(this.unsubscribe){var t=this.store.getState(),e=this.state.storeState;if(!P||e!==t){if(P&&!this.doStatePropsDependOnOwnProps){var r=u(this.updateStatePropsIfNeeded,this);if(!r)return;r===M&&(this.statePropsPrecalculationError=M.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:t})}}},h.prototype.getWrappedInstance=function(){return(0,S.default)(A,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},h.prototype.render=function(){var e=this.haveOwnPropsChanged,r=this.hasStoreStateChanged,n=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,i=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var a=!0,s=!0;P&&i&&(a=r||e&&this.doStatePropsDependOnOwnProps,s=e&&this.doDispatchPropsDependOnOwnProps);var u=!1,c=!1;n?u=!0:a&&(u=this.updateStatePropsIfNeeded()),s&&(c=this.updateDispatchPropsIfNeeded());var f=!0;return f=!!(u||c||e)&&this.updateMergedPropsIfNeeded(),!f&&i?i:(A?this.renderedElement=(0,l.createElement)(t,p({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,l.createElement)(t,this.mergedProps),this.renderedElement)},h}(l.Component);return b.displayName=c,b.WrappedComponent=t,b.contextTypes={store:h.default},b.propTypes={store:h.default},"production"!==e.env.NODE_ENV&&(b.prototype.componentWillUpdate=function(){this.version!==N&&(this.version=N,this.trySubscribe(),this.clearCache())}),(0,O.default)(b,t)}}var p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};r.__esModule=!0,r.default=c;var l=t("react"),f=t("../utils/storeShape"),h=n(f),d=t("../utils/shallowEqual"),y=n(d),v=t("../utils/wrapActionCreators"),b=n(v),g=t("../utils/warning"),_=n(g),w=t("lodash/isPlainObject"),m=n(w),P=t("hoist-non-react-statics"),O=n(P),j=t("invariant"),S=n(j),E=function(t){return{}},T=function(t){return{dispatch:t}},C=function(t,e,r){return p({},r,t,e)},M={value:null},x=0}).call(this,t("_process"))},{"../utils/shallowEqual":15,"../utils/storeShape":16,"../utils/warning":17,"../utils/wrapActionCreators":18,_process:5,"hoist-non-react-statics":19,invariant:6,"lodash/isPlainObject":23,react:4}],14:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}r.__esModule=!0,r.connect=r.Provider=void 0;var o=t("./components/Provider"),i=n(o),a=t("./components/connect"),s=n(a);r.Provider=i.default,r.connect=s.default},{"./components/Provider":12,"./components/connect":13}],15:[function(t,e,r){"use strict";function n(t,e){if(t===e)return!0;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<r.length;i++)if(!o.call(e,r[i])||t[r[i]]!==e[r[i]])return!1;return!0}r.__esModule=!0,r.default=n},{}],16:[function(t,e,r){"use strict";r.__esModule=!0;var n=t("react");r.default=n.PropTypes.shape({subscribe:n.PropTypes.func.isRequired,dispatch:n.PropTypes.func.isRequired,getState:n.PropTypes.func.isRequired})},{react:4}],17:[function(t,e,r){"use strict";function n(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}r.__esModule=!0,r.default=n},{}],18:[function(t,e,r){"use strict";function n(t){return function(e){return(0,o.bindActionCreators)(t,e)}}r.__esModule=!0,r.default=n;var o=t("redux")},{redux:29}],19:[function(t,e,r){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},i="function"==typeof Object.getOwnPropertySymbols;e.exports=function(t,e,r){if("string"!=typeof e){var a=Object.getOwnPropertyNames(e);i&&(a=a.concat(Object.getOwnPropertySymbols(e)));for(var s=0;s<a.length;++s)if(!(n[a[s]]||o[a[s]]||r&&r[a[s]]))try{t[a[s]]=e[a[s]]}catch(t){}}return t}},{}],20:[function(t,e,r){function n(t){return o(Object(t))}var o=Object.getPrototypeOf;e.exports=n},{}],21:[function(t,e,r){function n(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}e.exports=n},{}],22:[function(t,e,r){function n(t){return!!t&&"object"==typeof t}e.exports=n},{}],23:[function(t,e,r){function n(t){if(!a(t)||f.call(t)!=s||i(t))return!1;var e=o(t);if(null===e)return!0;var r=p.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==l}var o=t("./_getPrototype"),i=t("./_isHostObject"),a=t("./isObjectLike"),s="[object Object]",u=Object.prototype,c=Function.prototype.toString,p=u.hasOwnProperty,l=c.call(Object),f=u.toString;e.exports=n},{"./_getPrototype":20,"./_isHostObject":21,"./isObjectLike":22}],24:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return function(r,n,o){var a=t(r,n,o),u=a.dispatch,c=[],p={getState:a.getState,dispatch:function(t){return u(t)}};return c=e.map(function(t){return t(p)}),u=s.default.apply(void 0,c)(a.dispatch),i({},a,{dispatch:u})}}}r.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};r.default=o;var a=t("./compose"),s=n(a)},{"./compose":27}],25:[function(t,e,r){"use strict";function n(t,e){return function(){return e(t.apply(void 0,arguments))}}function o(t,e){
!function t(e,r,n){function o(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var p=r[a]={exports:{}};e[a][0].call(p.exports,function(t){var r=e[a][1][t];return o(r?r:t)},p,p.exports,t,e,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(t,e,r){"use strict";var n=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=t("react"),i=t("react"),a=t("react-redux"),s=function(t){function e(e,r){return t.call(this,e,r),this.client=e.client,e.store?void(this.store=e.store):(e.client.initStore(),void(this.store=e.client.store))}return n(e,t),e.prototype.getChildContext=function(){return{store:this.store,client:this.client}},e.prototype.render=function(){var t=this.props.children;return o.createElement(a.Provider,{store:this.store},t)},e.propTypes={store:i.PropTypes.shape({subscribe:i.PropTypes.func.isRequired,dispatch:i.PropTypes.func.isRequired,getState:i.PropTypes.func.isRequired}),client:i.PropTypes.object.isRequired,children:i.PropTypes.element.isRequired},e.childContextTypes={store:i.PropTypes.object.isRequired,client:i.PropTypes.object.isRequired},e}(i.Component);Object.defineProperty(r,"__esModule",{value:!0}),r.default=s},{react:4,"react-redux":14}],2:[function(t,e,r){"use strict";function n(t){return t.displayName||t.name||"Component"}function o(t){t||(t={});var e=t.mapQueriesToProps,r=t.mapMutationsToProps;delete t.mapQueriesToProps,delete t.mapMutationsToProps,e=e?e:h,r=r?r:d;var o=b++;return function(h){var d="Apollo(Connect("+n(h)+"))",b=function(t){function n(e,r){t.call(this,e,r),this.version=o,this.store=e.store||r.store,this.client=e.client||r.client,c(!!this.client,'Could not find "client" in either the context or '+('props of "'+d+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "client" as a prop to "'+d+'".'));var n=this.store.getState();this.state=p({},n),this.previousState=n,this.data={},this.mutations={}}return i(n,t),n.prototype.componentWillMount=function(){var t=this.props;this.subscribeToAllQueries(t),this.createAllMutationHandles(t),this.bindStoreUpdates()},n.prototype.componentDidMount=function(){this.hasMounted=!0},n.prototype.componentWillReceiveProps=function(t){u(this.props,t)||(this.haveOwnPropsChanged=!0,this.createAllMutationHandles(t),this.subscribeToAllQueries(t))},n.prototype.shouldComponentUpdate=function(t,e){return this.haveOwnPropsChanged||this.hasOwnStateChanged||this.hasQueryDataChanged||this.hasMutationDataChanged},n.prototype.componentWillUnmount=function(){this.unsubcribeAllQueries(),this.unsubscribeFromStore&&(this.unsubscribeFromStore(),this.unsubscribeFromStore=null),this.hasMounted=!1},n.prototype.bindStoreUpdates=function(){var t=this,e=this.store,r=this.client.reduxRootKey;this.unsubscribeFromStore=e.subscribe(function(){var n=t.props,o=p({},e.getState()),i=p({},t.previousState);delete o[r],delete i[r],u(i,o)||(t.previousState=o,t.hasOwnStateChanged=t.subscribeToAllQueries(n),t.createAllMutationHandles(n))})},n.prototype.subscribeToAllQueries=function(t){var r=this.client,n=r.watchQuery,o=r.reduxRootKey,i=this.store,a=e({state:i.getState(),ownProps:t}),c=p({},this.previousQueries);if(this.previousQueries=p({},a),u(c,a))return!1;if(c&&this.unsubcribeAllQueries(),s(a)&&Object.keys(a).length){this.queryHandles=a;for(var l in a)if(a.hasOwnProperty(l)){var h=a[l],d=h.query,v=h.variables,b=h.forceFetch,g=n(a[l]),_=y;if(!b)try{var w=f.readQueryFromStore({store:i.getState()[o].data,query:d,variables:v});_=p({errors:null,loading:!1},w)}catch(t){}this.data[l]=_,this.handleQueryData(g,l)}}return!0},n.prototype.unsubcribeAllQueries=function(){if(this.queryHandles)for(var t in this.queryHandles)this.queryHandles.hasOwnProperty(t)&&this.queryHandles[t].unsubscribe()},n.prototype.handleQueryData=function(t,e){var r,n,o,i=this,a=function(t,e){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o-0]=arguments[o];return i.data[t]=p(i.data[t],{loading:!0,refetch:r}),i.hasQueryDataChanged=!0,i.hasMounted&&i.setState(i.store.getState()),e.apply(void 0,n)}},s={},l=function(t){var a=t.errors,l=t.data,f=void 0===l?{}:l,h="errors"in f||"loading"in f||"refetch"in f||"startPolling"in f||"stopPolling"in f;c(!h,"the result of the '"+e+"' query contains keys that conflict with the return object. 'errors', 'loading', 'startPolling', 'stopPolling', and 'refetch' cannot be returned keys"),(!u(s,f)||a||i.data[e].loading)&&(i.hasQueryDataChanged=!0),s=p({},f),i.data[e]=p({loading:!1,errors:a,refetch:r,startPolling:n,stopPolling:o},f),i.hasMounted&&i.setState(i.store.getState())};this.queryHandles[e]=t.subscribe({next:l,error:function(t){l({errors:t})}}),r=a(e,this.queryHandles[e].refetch),n=this.queryHandles[e].startPolling,o=this.queryHandles[e].stopPolling,this.data[e]=p(this.data[e],{refetch:r,startPolling:n,stopPolling:o})},n.prototype.createAllMutationHandles=function(t){var e=r({ownProps:t,state:this.store.getState()});if(s(e)&&Object.keys(e).length)for(var n in e)if(e.hasOwnProperty(n)){var o=this.createMutationHandle(n,e[n]);this.data[n]=v,this.mutations[n]=o}},n.prototype.createMutationHandle=function(t,e){var r=this,n=this.client.mutate,o=this.store,i=function(e){var n=e.errors,i=e.data,a=void 0===i?{}:i,s="errors"in a||"loading"in a||"refetch"in a;return c(!s,"the result of the '"+t+"' mutation contains keys that conflict with the return object. 'errors', 'loading', and 'refetch' cannot be returned keys"),r.data[t]=p({loading:!1,errors:n},a),r.hasMutationDataChanged=!0,r.hasMounted&&r.setState(o.getState()),{errors:n,data:a}};return function(){for(var a=[],s=0;s<arguments.length;s++)a[s-0]=arguments[s];var u={state:o.getState(),ownProps:r.props};a.push(u);var c=e.apply(r.client,a),l=c.mutation,f=c.variables;return new Promise(function(e,n){r.data[t]=p(r.data[t],{loading:!0}),r.hasMutationDataChanged=!0,r.hasMounted&&r.setState(o.getState()),e()}).then(function(){return n({mutation:l,variables:f})}).then(i).catch(function(t){return i({errors:t})})}},n.prototype.render=function(){var t=this,e=t.haveOwnPropsChanged,r=t.hasOwnStateChanged,n=t.hasQueryDataChanged,o=t.hasMutationDataChanged,i=t.renderedElement,s=t.mutations,u=t.props,c=t.data;this.haveOwnPropsChanged=!1,this.hasOwnStateChanged=!1,this.hasQueryDataChanged=!1,this.hasMutationDataChanged=!1;var l={mutate:this.client.mutate,query:this.client.query,watchQuery:this.client.watchQuery};Object.keys(s).length&&(l.mutations=s);var f=p({},u,c,l);return e||r||n||o||!i?(this.renderedElement=a.createElement(h,f),this.renderedElement):i},n.displayName=d,n.WrappedComponent=h,n.contextTypes={store:a.PropTypes.object.isRequired,client:a.PropTypes.object.isRequired},n}(a.Component),g=t.mapStateToProps,_=t.mapDispatchToProps,w=t.mergeProps,m=t.options;return l.connect(g,_,w,m)(b)}}var i=this&&this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},a=t("react"),s=t("lodash.isobject"),u=t("lodash.isequal"),c=t("invariant"),p=t("object-assign"),l=t("react-redux"),f=t("apollo-client"),h=function(t){return{}},d=function(t){return{}},y={loading:!0,errors:null},v=p({},y);v.loading=!1;var b=0;Object.defineProperty(r,"__esModule",{value:!0}),r.default=o},{"apollo-client":4,invariant:6,"lodash.isequal":7,"lodash.isobject":10,"object-assign":11,react:4,"react-redux":14}],3:[function(t,e,r){"use strict";var n=t("./ApolloProvider");r.ApolloProvider=n.default;var o=t("./connect");r.connect=o.default},{"./ApolloProvider":1,"./connect":2}],4:[function(t,e,r){},{}],5:[function(t,e,r){function n(){f&&p&&(f=!1,p.length?l=p.concat(l):h=-1,l.length&&o())}function o(){if(!f){var t=s(n);f=!0;for(var e=l.length;e;){for(p=l,l=[];++h<e;)p&&p[h].run();h=-1,e=l.length}p=null,f=!1,u(t)}}function i(t,e){this.fun=t,this.array=e}function a(){}var s,u,c=e.exports={};!function(){try{s=setTimeout}catch(t){s=function(){throw new Error("setTimeout is not defined")}}try{u=clearTimeout}catch(t){u=function(){throw new Error("clearTimeout is not defined")}}}();var p,l=[],f=!1,h=-1;c.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];l.push(new i(t,e)),1!==l.length||f||s(o,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=a,c.addListener=a,c.once=a,c.off=a,c.removeListener=a,c.removeAllListeners=a,c.emit=a,c.binding=function(t){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(t){throw new Error("process.chdir is not supported")},c.umask=function(){return 0}},{}],6:[function(t,e,r){(function(t){"use strict";var r=function(e,r,n,o,i,a,s,u){if("production"!==t.env.NODE_ENV&&void 0===r)throw new Error("invariant requires an error message argument");if(!e){var c;if(void 0===r)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[n,o,i,a,s,u],l=0;c=new Error(r.replace(/%s/g,function(){return p[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};e.exports=r}).call(this,t("_process"))},{_process:5}],7:[function(t,e,r){function n(t,e){for(var r=-1,n=t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function o(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function i(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}function a(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}function s(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function u(){this.__data__=Xt?Xt(null):{}}function c(t){return this.has(t)&&delete this.__data__[t]}function p(t){var e=this.__data__;if(Xt){var r=e[t];return r===ot?void 0:r}return Ht.call(e,t)?e[t]:void 0}function l(t){var e=this.__data__;return Xt?void 0!==e[t]:Ht.call(e,t)}function f(t,e){var r=this.__data__;return r[t]=Xt&&void 0===e?ot:e,this}function h(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function d(){this.__data__=[]}function y(t){var e=this.__data__,r=k(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():zt.call(e,r,1),!0}function v(t){var e=this.__data__,r=k(e,t);return r<0?void 0:e[r][1]}function b(t){return k(this.__data__,t)>-1}function g(t,e){var r=this.__data__,n=k(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}function _(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function w(){this.__data__={hash:new s,map:new(Kt||h),string:new s}}function m(t){return H(this,t).delete(t)}function P(t){return H(this,t).get(t)}function O(t){return H(this,t).has(t)}function j(t,e){return H(this,t).set(t,e),this}function S(t){var e=-1,r=t?t.length:0;for(this.__data__=new _;++e<r;)this.add(t[e])}function E(t){return this.__data__.set(t,ot),this}function T(t){return this.__data__.has(t)}function C(t){this.__data__=new h(t)}function M(){this.__data__=new h}function x(t){return this.__data__.delete(t)}function A(t){return this.__data__.get(t)}function D(t){return this.__data__.has(t)}function N(t,e){var r=this.__data__;return r instanceof h&&r.__data__.length==nt&&(r=this.__data__=new _(r.__data__)),r.set(t,e),this}function k(t,e){for(var r=t.length;r--;)if($(t[r][0],e))return r;return-1}function R(t,e){return Ht.call(t,e)||"object"==typeof t&&e in t&&null===W(t)}function q(t,e,r,n,o){return t===e||(null==t||null==e||!Z(t)&&!J(e)?t!==t&&e!==e:I(t,e,q,r,n,o))}function I(t,e,r,n,i,a){var s=se(t),u=se(e),c=ct,p=ct;s||(c=L(t),c=c==ut?bt:c),u||(p=L(e),p=p==ut?bt:p);var l=c==bt&&!o(t),f=p==bt&&!o(e),h=c==p;if(h&&!l)return a||(a=new C),s||tt(t)?Q(t,e,r,n,i,a):F(t,e,c,r,n,i,a);if(!(i&at)){var d=l&&Ht.call(t,"__wrapped__"),y=f&&Ht.call(e,"__wrapped__");if(d||y){var v=d?t.value():t,b=y?e.value():e;return a||(a=new C),r(v,b,n,i,a)}}return!!h&&(a||(a=new C),U(t,e,r,n,i,a))}function Q(t,e,r,o,i,a){var s=i&at,u=t.length,c=e.length;if(u!=c&&!(s&&c>u))return!1;var p=a.get(t);if(p)return p==e;var l=-1,f=!0,h=i&it?new S:void 0;for(a.set(t,e);++l<u;){var d=t[l],y=e[l];if(o)var v=s?o(y,d,l,e,t,a):o(d,y,l,t,e,a);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!n(e,function(t,e){if(!h.has(e)&&(d===t||r(d,t,o,i,a)))return h.add(e)})){f=!1;break}}else if(d!==y&&!r(d,y,o,i,a)){f=!1;break}}return a.delete(t),f}function F(t,e,r,n,o,s,u){switch(r){case St:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case jt:return!(t.byteLength!=e.byteLength||!n(new Bt(t),new Bt(e)));case pt:case lt:return+t==+e;case ft:return t.name==e.name&&t.message==e.message;case vt:return t!=+t?e!=+e:t==+e;case _t:case mt:return t==e+"";case yt:var c=i;case wt:var p=s&at;if(c||(c=a),t.size!=e.size&&!p)return!1;var l=u.get(t);return l?l==e:(s|=it,u.set(t,e),Q(c(t),c(e),n,o,s,u));case Pt:if(ae)return ae.call(t)==ae.call(e)}return!1}function U(t,e,r,n,o,i){var a=o&at,s=et(t),u=s.length,c=et(e),p=c.length;if(u!=p&&!a)return!1;for(var l=u;l--;){var f=s[l];if(!(a?f in e:R(e,f)))return!1}var h=i.get(t);if(h)return h==e;var d=!0;i.set(t,e);for(var y=a;++l<u;){f=s[l];var v=t[f],b=e[f];if(n)var g=a?n(b,v,f,e,t,i):n(v,b,f,t,e,i);if(!(void 0===g?v===b||r(v,b,n,o,i):g)){d=!1;break}y||(y="constructor"==f)}if(d&&!y){var _=t.constructor,w=e.constructor;_!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(d=!1)}return i.delete(t),d}function H(t,e){var r=t.__data__;return B(e)?r["string"==typeof e?"string":"hash"]:r.map}function V(t,e){var r=t[e];return X(r)?r:void 0}function W(t){return $t(Object(t))}function L(t){return Vt.call(t)}function B(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function z(t){if(null!=t){try{return Ut.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function $(t,e){return t===e||t!==t&&e!==e}function G(t,e){return q(t,e)}function K(t){var e=Z(t)?Vt.call(t):"";return e==ht||e==dt}function Y(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=st}function Z(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function J(t){return!!t&&"object"==typeof t}function X(t){if(!Z(t))return!1;var e=K(t)||o(t)?Wt:qt;return e.test(z(t))}function tt(t){return J(t)&&Y(t.length)&&!!It[Vt.call(t)]}var et=t("lodash.keys"),rt=t("lodash._root"),nt=200,ot="__lodash_hash_undefined__",it=1,at=2,st=9007199254740991,ut="[object Arguments]",ct="[object Array]",pt="[object Boolean]",lt="[object Date]",ft="[object Error]",ht="[object Function]",dt="[object GeneratorFunction]",yt="[object Map]",vt="[object Number]",bt="[object Object]",gt="[object Promise]",_t="[object RegExp]",wt="[object Set]",mt="[object String]",Pt="[object Symbol]",Ot="[object WeakMap]",jt="[object ArrayBuffer]",St="[object DataView]",Et="[object Float32Array]",Tt="[object Float64Array]",Ct="[object Int8Array]",Mt="[object Int16Array]",xt="[object Int32Array]",At="[object Uint8Array]",Dt="[object Uint8ClampedArray]",Nt="[object Uint16Array]",kt="[object Uint32Array]",Rt=/[\\^$.*+?()[\]{}|]/g,qt=/^\[object .+?Constructor\]$/,It={};It[Et]=It[Tt]=It[Ct]=It[Mt]=It[xt]=It[At]=It[Dt]=It[Nt]=It[kt]=!0,It[ut]=It[ct]=It[jt]=It[pt]=It[St]=It[lt]=It[ft]=It[ht]=It[yt]=It[vt]=It[bt]=It[_t]=It[wt]=It[mt]=It[Ot]=!1;var Qt=Array.prototype,Ft=Object.prototype,Ut=Function.prototype.toString,Ht=Ft.hasOwnProperty,Vt=Ft.toString,Wt=RegExp("^"+Ut.call(Ht).replace(Rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lt=rt.Symbol,Bt=rt.Uint8Array,zt=Qt.splice,$t=Object.getPrototypeOf,Gt=V(rt,"DataView"),Kt=V(rt,"Map"),Yt=V(rt,"Promise"),Zt=V(rt,"Set"),Jt=V(rt,"WeakMap"),Xt=V(Object,"create"),te=z(Gt),ee=z(Kt),re=z(Yt),ne=z(Zt),oe=z(Jt),ie=Lt?Lt.prototype:void 0,ae=ie?ie.valueOf:void 0;s.prototype.clear=u,s.prototype.delete=c,s.prototype.get=p,s.prototype.has=l,s.prototype.set=f,h.prototype.clear=d,h.prototype.delete=y,h.prototype.get=v,h.prototype.has=b,h.prototype.set=g,_.prototype.clear=w,_.prototype.delete=m,_.prototype.get=P,_.prototype.has=O,_.prototype.set=j,S.prototype.add=S.prototype.push=E,S.prototype.has=T,C.prototype.clear=M,C.prototype.delete=x,C.prototype.get=A,C.prototype.has=D,C.prototype.set=N,(Gt&&L(new Gt(new ArrayBuffer(1)))!=St||Kt&&L(new Kt)!=yt||Yt&&L(Yt.resolve())!=gt||Zt&&L(new Zt)!=wt||Jt&&L(new Jt)!=Ot)&&(L=function(t){var e=Vt.call(t),r=e==bt?t.constructor:void 0,n=r?z(r):void 0;if(n)switch(n){case te:return St;case ee:return yt;case re:return gt;case ne:return wt;case oe:return Ot}return e});var se=Array.isArray;e.exports=G},{"lodash._root":8,"lodash.keys":9}],8:[function(t,e,r){(function(t){function n(t){return t&&t.Object===Object?t:null}var o={function:!0,object:!0},i=o[typeof r]&&r&&!r.nodeType?r:void 0,a=o[typeof e]&&e&&!e.nodeType?e:void 0,s=n(i&&a&&"object"==typeof t&&t),u=n(o[typeof self]&&self),c=n(o[typeof window]&&window),p=n(o[typeof this]&&this),l=s||c!==(p&&p.window)&&c||u||p||Function("return this")();e.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(t,e,r){function n(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function o(t,e){return T.call(t,e)||"object"==typeof t&&e in t&&null===s(t)}function i(t){return A(Object(t))}function a(t){return function(e){return null==e?void 0:e[t]}}function s(t){return x(Object(t))}function u(t){var e=t?t.length:void 0;return y(e)&&(N(t)||g(t)||l(t))?n(e,String):null}function c(t,e){return e=null==e?w:e,!!e&&("number"==typeof t||S.test(t))&&t>-1&&t%1==0&&t<e}function p(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||E;return t===r}function l(t){return h(t)&&T.call(t,"callee")&&(!M.call(t,"callee")||C.call(t)==m)}function f(t){return null!=t&&y(D(t))&&!d(t)}function h(t){return b(t)&&f(t)}function d(t){var e=v(t)?C.call(t):"";return e==P||e==O}function y(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=w}function v(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function b(t){return!!t&&"object"==typeof t}function g(t){return"string"==typeof t||!N(t)&&b(t)&&C.call(t)==j}function _(t){var e=p(t);if(!e&&!f(t))return i(t);var r=u(t),n=!!r,a=r||[],s=a.length;for(var l in t)!o(t,l)||n&&("length"==l||c(l,s))||e&&"constructor"==l||a.push(l);return a}var w=9007199254740991,m="[object Arguments]",P="[object Function]",O="[object GeneratorFunction]",j="[object String]",S=/^(?:0|[1-9]\d*)$/,E=Object.prototype,T=E.hasOwnProperty,C=E.toString,M=E.propertyIsEnumerable,x=Object.getPrototypeOf,A=Object.keys,D=a("length"),N=Array.isArray;e.exports=_},{}],10:[function(t,e,r){function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}e.exports=n},{}],11:[function(t,e,r){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function o(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}var i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=o()?Object.assign:function(t,e){for(var r,o,s=n(t),u=1;u<arguments.length;u++){r=Object(arguments[u]);for(var c in r)i.call(r,c)&&(s[c]=r[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(r);for(var p=0;p<o.length;p++)a.call(r,o[p])&&(s[o[p]]=r[o[p]])}}return s}},{}],12:[function(t,e,r){(function(e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(){h||(h=!0,(0,f.default)("<Provider> does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/reactjs/react-redux/releases/tag/v2.0.0 for the migration instructions."))}r.__esModule=!0,r.default=void 0;var u=t("react"),c=t("../utils/storeShape"),p=n(c),l=t("../utils/warning"),f=n(l),h=!1,d=function(t){function e(r,n){o(this,e);var a=i(this,t.call(this,r,n));return a.store=r.store,a}return a(e,t),e.prototype.getChildContext=function(){return{store:this.store}},e.prototype.render=function(){var t=this.props.children;return u.Children.only(t)},e}(u.Component);r.default=d,"production"!==e.env.NODE_ENV&&(d.prototype.componentWillReceiveProps=function(t){var e=this.store,r=t.store;e!==r&&s()}),d.propTypes={store:p.default.isRequired,children:u.PropTypes.element.isRequired},d.childContextTypes={store:p.default.isRequired}}).call(this,t("_process"))},{"../utils/storeShape":16,"../utils/warning":17,_process:5,react:4}],13:[function(t,e,r){(function(e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.displayName||t.name||"Component"}function u(t,e){try{return t.apply(e)}catch(t){return M.value=t,M}}function c(t,r,n){var c=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],f=Boolean(t),d=t||E,v=void 0;v="function"==typeof r?r:r?(0,b.default)(r):T;var g=n||C,w=c.pure,P=void 0===w||w,j=c.withRef,A=void 0!==j&&j,D=P&&g!==C,N=x++;return function(t){function r(t,e){(0,m.default)(t)||(0,_.default)(e+"() in "+c+" must return a plain object. "+("Instead received "+t+"."))}function n(t,n,o){var i=g(t,n,o);return"production"!==e.env.NODE_ENV&&r(i,"mergeProps"),i}var c="Connect("+s(t)+")",b=function(s){function h(t,e){o(this,h);var r=i(this,s.call(this,t,e));r.version=N,r.store=t.store||e.store,(0,S.default)(r.store,'Could not find "store" in either the context or '+('props of "'+c+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+c+'".'));var n=r.store.getState();return r.state={storeState:n},r.clearCache(),r}return a(h,s),h.prototype.shouldComponentUpdate=function(){return!P||this.haveOwnPropsChanged||this.hasStoreStateChanged},h.prototype.computeStateProps=function(t,n){if(!this.finalMapStateToProps)return this.configureFinalMapState(t,n);var o=t.getState(),i=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(o,n):this.finalMapStateToProps(o);return"production"!==e.env.NODE_ENV&&r(i,"mapStateToProps"),i},h.prototype.configureFinalMapState=function(t,n){var o=d(t.getState(),n),i="function"==typeof o;return this.finalMapStateToProps=i?o:d,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,i?this.computeStateProps(t,n):("production"!==e.env.NODE_ENV&&r(o,"mapStateToProps"),o)},h.prototype.computeDispatchProps=function(t,n){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(t,n);var o=t.dispatch,i=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(o,n):this.finalMapDispatchToProps(o);return"production"!==e.env.NODE_ENV&&r(i,"mapDispatchToProps"),i},h.prototype.configureFinalMapDispatch=function(t,n){var o=v(t.dispatch,n),i="function"==typeof o;return this.finalMapDispatchToProps=i?o:v,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,i?this.computeDispatchProps(t,n):("production"!==e.env.NODE_ENV&&r(o,"mapDispatchToProps"),o)},h.prototype.updateStatePropsIfNeeded=function(){var t=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,y.default)(t,this.stateProps))&&(this.stateProps=t,!0)},h.prototype.updateDispatchPropsIfNeeded=function(){var t=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,y.default)(t,this.dispatchProps))&&(this.dispatchProps=t,!0)},h.prototype.updateMergedPropsIfNeeded=function(){var t=n(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&D&&(0,y.default)(t,this.mergedProps))&&(this.mergedProps=t,!0)},h.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},h.prototype.trySubscribe=function(){f&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},h.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},h.prototype.componentDidMount=function(){this.trySubscribe()},h.prototype.componentWillReceiveProps=function(t){P&&(0,y.default)(t,this.props)||(this.haveOwnPropsChanged=!0)},h.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},h.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},h.prototype.handleChange=function(){if(this.unsubscribe){var t=this.store.getState(),e=this.state.storeState;if(!P||e!==t){if(P&&!this.doStatePropsDependOnOwnProps){var r=u(this.updateStatePropsIfNeeded,this);if(!r)return;r===M&&(this.statePropsPrecalculationError=M.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:t})}}},h.prototype.getWrappedInstance=function(){return(0,S.default)(A,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},h.prototype.render=function(){var e=this.haveOwnPropsChanged,r=this.hasStoreStateChanged,n=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,i=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var a=!0,s=!0;P&&i&&(a=r||e&&this.doStatePropsDependOnOwnProps,s=e&&this.doDispatchPropsDependOnOwnProps);var u=!1,c=!1;n?u=!0:a&&(u=this.updateStatePropsIfNeeded()),s&&(c=this.updateDispatchPropsIfNeeded());var f=!0;return f=!!(u||c||e)&&this.updateMergedPropsIfNeeded(),!f&&i?i:(A?this.renderedElement=(0,l.createElement)(t,p({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,l.createElement)(t,this.mergedProps),this.renderedElement)},h}(l.Component);return b.displayName=c,b.WrappedComponent=t,b.contextTypes={store:h.default},b.propTypes={store:h.default},"production"!==e.env.NODE_ENV&&(b.prototype.componentWillUpdate=function(){this.version!==N&&(this.version=N,this.trySubscribe(),this.clearCache())}),(0,O.default)(b,t)}}var p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};r.__esModule=!0,r.default=c;var l=t("react"),f=t("../utils/storeShape"),h=n(f),d=t("../utils/shallowEqual"),y=n(d),v=t("../utils/wrapActionCreators"),b=n(v),g=t("../utils/warning"),_=n(g),w=t("lodash/isPlainObject"),m=n(w),P=t("hoist-non-react-statics"),O=n(P),j=t("invariant"),S=n(j),E=function(t){return{}},T=function(t){return{dispatch:t}},C=function(t,e,r){return p({},r,t,e)},M={value:null},x=0}).call(this,t("_process"))},{"../utils/shallowEqual":15,"../utils/storeShape":16,"../utils/warning":17,"../utils/wrapActionCreators":18,_process:5,"hoist-non-react-statics":19,invariant:6,"lodash/isPlainObject":23,react:4}],14:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}r.__esModule=!0,r.connect=r.Provider=void 0;var o=t("./components/Provider"),i=n(o),a=t("./components/connect"),s=n(a);r.Provider=i.default,r.connect=s.default},{"./components/Provider":12,"./components/connect":13}],15:[function(t,e,r){"use strict";function n(t,e){if(t===e)return!0;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<r.length;i++)if(!o.call(e,r[i])||t[r[i]]!==e[r[i]])return!1;return!0}r.__esModule=!0,r.default=n},{}],16:[function(t,e,r){"use strict";r.__esModule=!0;var n=t("react");r.default=n.PropTypes.shape({subscribe:n.PropTypes.func.isRequired,dispatch:n.PropTypes.func.isRequired,getState:n.PropTypes.func.isRequired})},{react:4}],17:[function(t,e,r){"use strict";function n(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}r.__esModule=!0,r.default=n},{}],18:[function(t,e,r){"use strict";function n(t){return function(e){return(0,o.bindActionCreators)(t,e)}}r.__esModule=!0,r.default=n;var o=t("redux")},{redux:29}],19:[function(t,e,r){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},i="function"==typeof Object.getOwnPropertySymbols;e.exports=function(t,e,r){if("string"!=typeof e){var a=Object.getOwnPropertyNames(e);i&&(a=a.concat(Object.getOwnPropertySymbols(e)));for(var s=0;s<a.length;++s)if(!(n[a[s]]||o[a[s]]||r&&r[a[s]]))try{t[a[s]]=e[a[s]]}catch(t){}}return t}},{}],20:[function(t,e,r){function n(t){return o(Object(t))}var o=Object.getPrototypeOf;e.exports=n},{}],21:[function(t,e,r){function n(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}e.exports=n},{}],22:[function(t,e,r){function n(t){return!!t&&"object"==typeof t}e.exports=n},{}],23:[function(t,e,r){function n(t){if(!a(t)||f.call(t)!=s||i(t))return!1;var e=o(t);if(null===e)return!0;var r=p.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==l}var o=t("./_getPrototype"),i=t("./_isHostObject"),a=t("./isObjectLike"),s="[object Object]",u=Object.prototype,c=Function.prototype.toString,p=u.hasOwnProperty,l=c.call(Object),f=u.toString;e.exports=n},{"./_getPrototype":20,"./_isHostObject":21,"./isObjectLike":22}],24:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return function(r,n,o){var a=t(r,n,o),u=a.dispatch,c=[],p={getState:a.getState,dispatch:function(t){return u(t)}};return c=e.map(function(t){return t(p)}),u=s.default.apply(void 0,c)(a.dispatch),i({},a,{dispatch:u})}}}r.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t};r.default=o;var a=t("./compose"),s=n(a)},{"./compose":27}],25:[function(t,e,r){"use strict";function n(t,e){return function(){return e(t.apply(void 0,arguments))}}function o(t,e){
if("function"==typeof t)return n(t,e);if("object"!=typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var r=Object.keys(t),o={},i=0;i<r.length;i++){var a=r[i],s=t[a];"function"==typeof s&&(o[a]=n(s,e))}return o}r.__esModule=!0,r.default=o},{}],26:[function(t,e,r){(function(e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var r=e&&e.type,n=r&&'"'+r.toString()+'"'||"an action";return"Given action "+n+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function i(t,e,r){var n=Object.keys(e),o=r&&r.type===u.ActionTypes.INIT?"initialState argument passed to createStore":"previous state received by the reducer";if(0===n.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,p.default)(t))return"The "+o+' has unexpected type of "'+{}.toString.call(t).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+n.join('", "')+'"');var i=Object.keys(t).filter(function(t){return!e.hasOwnProperty(t)});return i.length>0?"Unexpected "+(i.length>1?"keys":"key")+" "+('"'+i.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+n.join('", "')+'". Unexpected keys will be ignored.'):void 0}function a(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:u.ActionTypes.INIT});if("undefined"==typeof n)throw new Error('Reducer "'+e+'" 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.');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 "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle "+u.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.")})}function s(t){for(var r=Object.keys(t),n={},s=0;s<r.length;s++){var u=r[s];"function"==typeof t[u]&&(n[u]=t[u])}var c,p=Object.keys(n);try{a(n)}catch(t){c=t}return function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=arguments[1];if(c)throw c;if("production"!==e.env.NODE_ENV){var a=i(t,n,r);a&&(0,f.default)(a)}for(var s=!1,u={},l=0;l<p.length;l++){var h=p[l],d=n[h],y=t[h],v=d(y,r);if("undefined"==typeof v){var b=o(h,r);throw new Error(b)}u[h]=v,s=s||v!==y}return s?u:t}}r.__esModule=!0,r.default=s;var u=t("./createStore"),c=t("lodash/isPlainObject"),p=n(c),l=t("./utils/warning"),f=n(l)}).call(this,t("_process"))},{"./createStore":28,"./utils/warning":30,_process:5,"lodash/isPlainObject":34}],27:[function(t,e,r){"use strict";function n(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(0===e.length)return function(t){return t};var n=function(){var t=e[e.length-1],r=e.slice(0,-1);return{v:function(){return r.reduceRight(function(t,e){return e(t)},t.apply(void 0,arguments))}}}();return"object"==typeof n?n.v:void 0}r.__esModule=!0,r.default=n},{}],28:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e,r){function n(){b===v&&(b=v.slice())}function i(){return y}function s(t){if("function"!=typeof t)throw new Error("Expected listener to be a function.");var e=!0;return n(),b.push(t),function(){if(e){e=!1,n();var r=b.indexOf(t);b.splice(r,1)}}}function p(t){if(!(0,a.default)(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(g)throw new Error("Reducers may not dispatch actions.");try{g=!0,y=d(y,t)}finally{g=!1}for(var e=v=b,r=0;r<e.length;r++)e[r]();return t}function l(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");d=t,p({type:c.INIT})}function f(){var t,e=s;return t={subscribe:function(t){function r(){t.next&&t.next(i())}if("object"!=typeof t)throw new TypeError("Expected the observer to be an object.");r();var n=e(r);return{unsubscribe:n}}},t[u.default]=function(){return this},t}var h;if("function"==typeof e&&"undefined"==typeof r&&(r=e,e=void 0),"undefined"!=typeof r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(o)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var d=t,y=e,v=[],b=v,g=!1;return p({type:c.INIT}),h={dispatch:p,subscribe:s,getState:i,replaceReducer:l},h[u.default]=f,h}r.__esModule=!0,r.ActionTypes=void 0,r.default=o;var i=t("lodash/isPlainObject"),a=n(i),s=t("symbol-observable"),u=n(s),c=r.ActionTypes={INIT:"@@redux/INIT"}},{"lodash/isPlainObject":34,"symbol-observable":35}],29:[function(t,e,r){(function(e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(){}r.__esModule=!0,r.compose=r.applyMiddleware=r.bindActionCreators=r.combineReducers=r.createStore=void 0;var i=t("./createStore"),a=n(i),s=t("./combineReducers"),u=n(s),c=t("./bindActionCreators"),p=n(c),l=t("./applyMiddleware"),f=n(l),h=t("./compose"),d=n(h),y=t("./utils/warning"),v=n(y);"production"!==e.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=u.default,r.bindActionCreators=p.default,r.applyMiddleware=f.default,r.compose=d.default}).call(this,t("_process"))},{"./applyMiddleware":24,"./bindActionCreators":25,"./combineReducers":26,"./compose":27,"./createStore":28,"./utils/warning":30,_process:5}],30:[function(t,e,r){"use strict";function n(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}r.__esModule=!0,r.default=n},{}],31:[function(t,e,r){arguments[4][20][0].apply(r,arguments)},{dup:20}],32:[function(t,e,r){arguments[4][21][0].apply(r,arguments)},{dup:21}],33:[function(t,e,r){arguments[4][22][0].apply(r,arguments)},{dup:22}],34:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{"./_getPrototype":31,"./_isHostObject":32,"./isObjectLike":33,dup:23}],35:[function(t,e,r){(function(r){"use strict";e.exports=t("./ponyfill")(r||window||this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ponyfill":36}],36:[function(t,e,r){"use strict";e.exports=function(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}},{}]},{},[3]);
{
"name": "react-apollo",
"version": "0.3.10",
"version": "0.3.12",
"description": "React data container for Apollo Client",

@@ -49,2 +49,3 @@ "main": "index.js",

"graphql": "^0.5.0",
"graphql-tag": "^0.1.7",
"gzip-size": "^3.0.0",

@@ -51,0 +52,0 @@ "isomorphic-fetch": "^2.2.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc