From 78355c887a9cc1b058a1bbc6ff38df54e34a96b4 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 25 Jul 2018 19:47:09 +0200 Subject: Remove webui/build/ from git tree --- webui/.gitignore | 1 + webui/build/asset-manifest.json | 4 ---- webui/build/favicon.ico | Bin 3870 -> 0 bytes webui/build/index.html | 1 - webui/build/manifest.json | 15 --------------- webui/build/service-worker.js | 1 - webui/build/static/js/main.e0144b42.js | 2 -- webui/build/static/js/main.e0144b42.js.map | 1 - webui/src/index.js | 2 -- 9 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 webui/build/asset-manifest.json delete mode 100644 webui/build/favicon.ico delete mode 100644 webui/build/index.html delete mode 100644 webui/build/manifest.json delete mode 100644 webui/build/service-worker.js delete mode 100644 webui/build/static/js/main.e0144b42.js delete mode 100644 webui/build/static/js/main.e0144b42.js.map (limited to 'webui') diff --git a/webui/.gitignore b/webui/.gitignore index c662cae4..f535cbe0 100644 --- a/webui/.gitignore +++ b/webui/.gitignore @@ -2,6 +2,7 @@ # dependencies /node_modules +/build # testing /coverage diff --git a/webui/build/asset-manifest.json b/webui/build/asset-manifest.json deleted file mode 100644 index f5388a13..00000000 --- a/webui/build/asset-manifest.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "main.js": "static/js/main.e0144b42.js", - "main.js.map": "static/js/main.e0144b42.js.map" -} \ No newline at end of file diff --git a/webui/build/favicon.ico b/webui/build/favicon.ico deleted file mode 100644 index a11777cc..00000000 Binary files a/webui/build/favicon.ico and /dev/null differ diff --git a/webui/build/index.html b/webui/build/index.html deleted file mode 100644 index 4c77befd..00000000 --- a/webui/build/index.html +++ /dev/null @@ -1 +0,0 @@ -git-bug-webui(1)
\ No newline at end of file diff --git a/webui/build/manifest.json b/webui/build/manifest.json deleted file mode 100644 index ef19ec24..00000000 --- a/webui/build/manifest.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "short_name": "React App", - "name": "Create React App Sample", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - } - ], - "start_url": "./index.html", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} diff --git a/webui/build/service-worker.js b/webui/build/service-worker.js deleted file mode 100644 index efa9558c..00000000 --- a/webui/build/service-worker.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var precacheConfig=[["/index.html","402c9668da967af2e14b7331a0bf621b"],["/static/js/main.e0144b42.js","6780573c02746d6e6af2d23d6fb29410"]],cacheName="sw-precache-v3-sw-precache-webpack-plugin-"+(self.registration?self.registration.scope:""),ignoreUrlParametersMatching=[/^utm_/],addDirectoryIndex=function(e,t){var n=new URL(e);return"/"===n.pathname.slice(-1)&&(n.pathname+=t),n.toString()},cleanResponse=function(t){return t.redirected?("body"in t?Promise.resolve(t.body):t.blob()).then(function(e){return new Response(e,{headers:t.headers,status:t.status,statusText:t.statusText})}):Promise.resolve(t)},createCacheKey=function(e,t,n,r){var a=new URL(e);return r&&a.pathname.match(r)||(a.search+=(a.search?"&":"")+encodeURIComponent(t)+"="+encodeURIComponent(n)),a.toString()},isPathWhitelisted=function(e,t){if(0===e.length)return!0;var n=new URL(t).pathname;return e.some(function(e){return n.match(e)})},stripIgnoredUrlParameters=function(e,n){var t=new URL(e);return t.hash="",t.search=t.search.slice(1).split("&").map(function(e){return e.split("=")}).filter(function(t){return n.every(function(e){return!e.test(t[0])})}).map(function(e){return e.join("=")}).join("&"),t.toString()},hashParamName="_sw-precache",urlsToCacheKeys=new Map(precacheConfig.map(function(e){var t=e[0],n=e[1],r=new URL(t,self.location),a=createCacheKey(r,hashParamName,n,/\.\w{8}\./);return[r.toString(),a]}));function setOfCachedUrls(e){return e.keys().then(function(e){return e.map(function(e){return e.url})}).then(function(e){return new Set(e)})}self.addEventListener("install",function(e){e.waitUntil(caches.open(cacheName).then(function(r){return setOfCachedUrls(r).then(function(n){return Promise.all(Array.from(urlsToCacheKeys.values()).map(function(t){if(!n.has(t)){var e=new Request(t,{credentials:"same-origin"});return fetch(e).then(function(e){if(!e.ok)throw new Error("Request for "+t+" returned a response with status "+e.status);return cleanResponse(e).then(function(e){return r.put(t,e)})})}}))})}).then(function(){return self.skipWaiting()}))}),self.addEventListener("activate",function(e){var n=new Set(urlsToCacheKeys.values());e.waitUntil(caches.open(cacheName).then(function(t){return t.keys().then(function(e){return Promise.all(e.map(function(e){if(!n.has(e.url))return t.delete(e)}))})}).then(function(){return self.clients.claim()}))}),self.addEventListener("fetch",function(t){if("GET"===t.request.method){var e,n=stripIgnoredUrlParameters(t.request.url,ignoreUrlParametersMatching),r="index.html";(e=urlsToCacheKeys.has(n))||(n=addDirectoryIndex(n,r),e=urlsToCacheKeys.has(n));var a="/index.html";!e&&"navigate"===t.request.mode&&isPathWhitelisted(["^(?!\\/__).*"],t.request.url)&&(n=new URL(a,self.location).toString(),e=urlsToCacheKeys.has(n)),e&&t.respondWith(caches.open(cacheName).then(function(e){return e.match(urlsToCacheKeys.get(n)).then(function(e){if(e)return e;throw Error("The cached response that was expected is missing.")})}).catch(function(e){return console.warn('Couldn\'t serve response for "%s" from cache: %O',t.request.url,e),fetch(t.request)}))}}); \ No newline at end of file diff --git a/webui/build/static/js/main.e0144b42.js b/webui/build/static/js/main.e0144b42.js deleted file mode 100644 index 1fe1897e..00000000 --- a/webui/build/static/js/main.e0144b42.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=166)}([function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},function(e,t,n){"use strict";e.exports=n(173)},function(e,t,n){e.exports=n(182)()},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,a,u){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,u],l=0;s=new Error(t.replace(/%s/g,function(){return c[l++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};e.exports=r},function(e,t,n){function r(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var o=n(287);e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(202);n.d(t,"getDirectiveInfoFromField",function(){return r.b}),n.d(t,"shouldInclude",function(){return r.e}),n.d(t,"flattenSelections",function(){return r.a}),n.d(t,"getDirectiveNames",function(){return r.c}),n.d(t,"hasDirectives",function(){return r.d});var o=n(204);n.d(t,"getFragmentQueryDocument",function(){return o.a});var i=n(113);n.d(t,"getMutationDefinition",function(){return i.g}),n.d(t,"checkDocument",function(){return i.a}),n.d(t,"getOperationDefinition",function(){return i.h}),n.d(t,"getOperationDefinitionOrDie",function(){return i.i}),n.d(t,"getOperationName",function(){return i.j}),n.d(t,"getFragmentDefinitions",function(){return i.e}),n.d(t,"getQueryDefinition",function(){return i.k}),n.d(t,"getFragmentDefinition",function(){return i.d}),n.d(t,"getMainDefinition",function(){return i.f}),n.d(t,"createFragmentMap",function(){return i.b}),n.d(t,"getDefaultValues",function(){return i.c}),n.d(t,"variablesInOperation",function(){return i.l});var a=n(205);n.d(t,"removeDirectivesFromDocument",function(){return a.d}),n.d(t,"addTypenameToDocument",function(){return a.a}),n.d(t,"removeConnectionDirectiveFromDocument",function(){return a.c}),n.d(t,"getDirectivesFromDocument",function(){return a.b});var u=n(64);n.d(t,"isScalarValue",function(){return u.h}),n.d(t,"isNumberValue",function(){return u.g}),n.d(t,"valueToObjectRepresentation",function(){return u.m}),n.d(t,"storeKeyNameFromField",function(){return u.j}),n.d(t,"getStoreKeyName",function(){return u.b}),n.d(t,"argumentsObjectFromField",function(){return u.a}),n.d(t,"resultKeyNameFromField",function(){return u.i}),n.d(t,"isField",function(){return u.c}),n.d(t,"isInlineFragment",function(){return u.e}),n.d(t,"isIdValue",function(){return u.d}),n.d(t,"toIdValue",function(){return u.k}),n.d(t,"isJsonValue",function(){return u.f}),n.d(t,"valueFromNode",function(){return u.l});var s=n(114);n.d(t,"assign",function(){return s.a});var c=n(115);n.d(t,"cloneDeep",function(){return c.a});var l=n(65);n.d(t,"getEnv",function(){return l.a}),n.d(t,"isEnv",function(){return l.c}),n.d(t,"isProduction",function(){return l.d}),n.d(t,"isDevelopment",function(){return l.b}),n.d(t,"isTest",function(){return l.e});var f=n(207);n.d(t,"tryFunctionOrLogError",function(){return f.b}),n.d(t,"graphQLResultHasError",function(){return f.a});var p=n(208);n.d(t,"isEqual",function(){return p.a});var d=n(209);n.d(t,"maybeDeepFreeze",function(){return d.a});var h=n(210);n.d(t,"warnOnceInDevelopment",function(){return h.a});var y=n(211);n.d(t,"stripSymbols",function(){return y.a})},function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=n},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=t.withTheme,i=void 0!==o&&o,m=t.flip,g=void 0===m?null:m,O=t.name,x=(0,p.default)(t,["withTheme","flip","name"]),C=(0,k.default)(e),N=C.themingEnabled||i||"string"===typeof O;S+=1,C.options.index=S;var I=function(e){function t(e,n){var o;(0,s.default)(this,t),o=(0,l.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),o.disableStylesGeneration=!1,o.jss=null,o.sheetOptions=null,o.sheetsManager=T,o.stylesCreatorSaved=null,o.theme=null,o.unsubscribeId=null,o.state={},o.jss=o.context[b.jss]||j;var i=o.context.muiThemeProviderOptions;return i&&(i.sheetsManager&&(o.sheetsManager=i.sheetsManager),o.disableStylesGeneration=i.disableStylesGeneration),o.stylesCreatorSaved=C,o.sheetOptions=(0,u.default)({generateClassName:P},o.context[b.sheetOptions]),o.theme=N?_.default.initial(n)||r():R,o.attach(o.theme),o.cacheClasses={value:null,lastProp:null,lastJSS:{}},o}return(0,f.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){var e=this;N&&(this.unsubscribeId=_.default.subscribe(this.context,function(t){var n=e.theme;e.theme=t,e.attach(e.theme),e.setState({},function(){e.detach(n)})}))}},{key:"componentDidUpdate",value:function(){this.stylesCreatorSaved,0}},{key:"componentWillUnmount",value:function(){this.detach(this.theme),null!==this.unsubscribeId&&_.default.unsubscribe(this.context,this.unsubscribeId)}},{key:"getClasses",value:function(){var e=!1;if(!this.disableStylesGeneration){var t=this.sheetsManager.get(this.stylesCreatorSaved),r=t.get(this.theme);r.sheet.classes!==this.cacheClasses.lastJSS&&(this.cacheClasses.lastJSS=r.sheet.classes,e=!0)}return this.props.classes!==this.cacheClasses.lastProp&&(this.cacheClasses.lastProp=this.props.classes,e=!0),e&&(this.cacheClasses.value=(0,w.default)({baseClasses:this.cacheClasses.lastJSS,newClasses:this.props.classes,Component:n,noBase:this.disableStylesGeneration})),this.cacheClasses.value}},{key:"attach",value:function(e){if(!this.disableStylesGeneration){var t=this.stylesCreatorSaved,n=this.sheetsManager.get(t);n||(n=new Map,this.sheetsManager.set(t,n));var r=n.get(e);if(r||(r={refs:0,sheet:null},n.set(e,r)),0===r.refs){var o=t.create(e,O),i=O,a=this.jss.createStyleSheet(o,(0,u.default)({meta:i,classNamePrefix:i,flip:"boolean"===typeof g?g:"rtl"===e.direction,link:!1},this.sheetOptions,t.options,{name:O},x));r.sheet=a,a.attach();var s=this.context[b.sheetsRegistry];s&&s.add(a)}r.refs+=1}}},{key:"detach",value:function(e){if(!this.disableStylesGeneration){var t=this.stylesCreatorSaved,n=this.sheetsManager.get(t),r=n.get(e);if(r.refs-=1,0===r.refs){n.delete(e),this.jss.removeStyleSheet(r.sheet);var o=this.context[b.sheetsRegistry];o&&o.remove(r.sheet)}}}},{key:"render",value:function(){var e=this.props,t=(e.classes,e.innerRef),r=(0,p.default)(e,["classes","innerRef"]),o=(0,E.default)({theme:this.theme,name:O});return i&&(o.theme=this.theme),d.default.createElement(n,(0,a.default)({},o,{classes:this.getClasses(),ref:t},r))}}]),t}(d.default.Component);return I.propTypes={},I.contextTypes=(0,u.default)({muiThemeProviderOptions:h.default.object},v.default,N?_.default.contextTypes:{}),(0,y.default)(I,n),I}},I=N;t.default=I},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){u()(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?f.a.Children.only(e):null},t}(f.a.Component);y.propTypes={history:d.a.object.isRequired,children:d.a.node},y.contextTypes={router:d.a.object},y.childContextTypes={router:d.a.object.isRequired},t.a=y},function(e,t,n){"use strict";var r=n(107),o=n.n(r),i={},a=0,u=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=i[n]||(i[n]={});if(r[e])return r[e];var u=[],s=o()(e,u,t),c={re:s,keys:u};return a<1e4&&(r[e]=c,a++),c},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"===typeof t&&(t={path:t});var r=t,o=r.path,i=r.exact,a=void 0!==i&&i,s=r.strict,c=void 0!==s&&s,l=r.sensitive,f=void 0!==l&&l;if(null==o)return n;var p=u(o,{end:a,strict:c,sensitive:f}),d=p.re,h=p.keys,y=d.exec(e);if(!y)return null;var v=y[0],m=y.slice(1),b=e===v;return a&&!b?null:{path:o,url:"/"===o&&""===v?"/":v,isExact:b,params:h.reduce(function(e,t,n){return e[t.name]=m[n],e},{})}};t.a=s},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r;!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(r||(r={}))},function(e,t,n){"use strict";function r(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||i(e)}function i(e){return e.$$typeof===d}function a(e){return Array.isArray(e)?[]:{}}function u(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(a(e),e,t):e}function s(e,t,n){return e.concat(t).map(function(e){return u(e,n)})}function c(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(t){r[t]=u(e[t],n)}),Object.keys(t).forEach(function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=l(e[o],t[o],n):r[o]=u(t[o],n)}),r}function l(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||s,n.isMergeableObject=n.isMergeableObject||f;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):c(e,t,n):u(t,n)}Object.defineProperty(t,"__esModule",{value:!0});var f=function(e){return r(e)&&!o(e)},p="function"===typeof Symbol&&Symbol.for,d=p?Symbol.for("react.element"):60103;l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})};var h=l;t.default=h},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"unnamed",t=arguments[1],n=arguments[2],r=n.jss,o=(0,l.default)(t),i=r.plugins.onCreateRule(e,o,n);return i||("@"===e[0]&&(0,a.default)(!1,"[JSS] Unknown at-rule %s",e),new s.default(e,o,n))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(21),a=r(i),u=n(22),s=r(u),c=n(307),l=r(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"isBrowser",function(){return o});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="object"===("undefined"===typeof window?"undefined":r(window))&&"object"===("undefined"===typeof document?"undefined":r(document))&&9===document.nodeType;t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(85),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e,t){return t+"("+(0,o.default)(e)+")"};t.default=i},function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function o(e,t){return Object.keys(t).every(function(n){return e.hasOwnProperty(n)&&e[n]===t[n]})}function i(e,t){for(var n=(0,c.default)(t),r=0;r-1?e[n]:void 0}function u(){for(var e=arguments.length,t=new Array(e),n=0;n or withRouter() outside a ");var s=t.route,l=(r||s.location).pathname;return Object(h.a)(l,{path:o,strict:i,exact:a,sensitive:u},s.match)},t.prototype.componentWillMount=function(){u()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),u()(!(this.props.component&&this.props.children&&!v(this.props.children)),"You should not use and in the same route; will be ignored"),u()(!(this.props.render&&this.props.children&&!v(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){u()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),u()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,a=i.history,u=i.route,s=i.staticContext,c=this.props.location||u.location,l={match:e,location:c,history:a,staticContext:s};return r?e?f.a.createElement(r,l):null:o?e?o(l):null:"function"===typeof n?n(l):n&&!v(n)?f.a.Children.only(n):null},t}(f.a.Component);m.propTypes={computedMatch:d.a.object,path:d.a.string,exact:d.a.bool,strict:d.a.bool,sensitive:d.a.bool,component:d.a.func,render:d.a.func,children:d.a.oneOfType([d.a.func,d.a.node]),location:d.a.object},m.contextTypes={router:d.a.shape({history:d.a.object.isRequired,route:d.a.object.isRequired,staticContext:d.a.object})},m.childContextTypes={router:d.a.object.isRequired},t.a=m},function(e,t,n){"use strict";var r=n(107),o=n.n(r),i={},a=0,u=function(e){var t=e,n=i[t]||(i[t]={});if(n[e])return n[e];var r=o.a.compile(e);return a<1e4&&(n[e]=r,a++),r},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:u(e)(t,{pretty:!0})};t.a=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18);n.d(t,"printAST",function(){return r.a});var o=n(63);n.d(t,"ObservableQuery",function(){return o.a});var i=n(32);n.d(t,"NetworkStatus",function(){return i.a});var a=n(43);n.d(t,"FetchType",function(){return a.a});var u=n(67);n.d(t,"ApolloError",function(){return u.a});var s=n(217);n.d(t,"ApolloClient",function(){return s.a}),t.default=s.a},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(6),o=n(32),i=n(116),a=n(67),u=n(43),s=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&"none"===t||e.networkError)},f=function(e){function t(t){var n=t.scheduler,r=t.options,o=t.shouldSubscribe,i=void 0===o||o,a=e.call(this,function(e){return a.onSubscribe(e)})||this;return a.isCurrentlyPolling=!1,a.isTornDown=!1,a.options=r,a.variables=r.variables||{},a.queryId=n.queryManager.generateQueryId(),a.shouldSubscribe=i,a.scheduler=n,a.queryManager=n.queryManager,a.observers=[],a.subscriptionHandles=[],a}return s(t,e),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var r,o={next:function(n){t(n),e.observers.some(function(e){return e!==o})||e.queryManager.removeQuery(e.queryId),setTimeout(function(){r.unsubscribe()},0)},error:function(e){n(e)}};r=e.subscribe(o)})},t.prototype.currentResult=function(){if(this.isTornDown)return{data:this.lastError?{}:this.lastResult?this.lastResult.data:{},error:this.lastError,loading:!1,networkStatus:o.a.error};var e=this.queryManager.queryStore.get(this.queryId);if(l(e,this.options.errorPolicy))return{data:{},loading:!1,networkStatus:e.networkStatus,error:new a.a({graphQLErrors:e.graphQLErrors,networkError:e.networkError})};var t,n=this.queryManager.getCurrentQueryResult(this),r=n.data,i=n.partial,u=!e||e.networkStatus===o.a.loading,s="network-only"===this.options.fetchPolicy&&u||i&&"cache-only"!==this.options.fetchPolicy;t=e?e.networkStatus:s?o.a.loading:o.a.ready;var f={data:r,loading:Object(o.b)(t),networkStatus:t};if(e&&e.graphQLErrors&&"all"===this.options.errorPolicy&&(f.errors=e.graphQLErrors),!i){this.lastResult=c({},f,{stale:!1})}return c({},f,{partial:i})},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastError,this.isTornDown=!1},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;if("cache-only"===t)return Promise.reject(new Error("cache-only fetchPolicy option should not be used together with query refetch."));Object(r.isEqual)(this.variables,e)||(this.variables=Object.assign({},this.variables,e)),Object(r.isEqual)(this.options.variables,this.variables)||(this.options.variables=Object.assign({},this.options.variables,this.variables));var n="network-only"===t||"no-cache"===t,o=c({},this.options,{fetchPolicy:n?t:"network-only"});return this.queryManager.fetchQuery(this.queryId,o,u.a.refetch).then(function(e){return Object(r.maybeDeepFreeze)(e)})},t.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.");var n;return Promise.resolve().then(function(){var r=t.queryManager.generateQueryId();return n=e.query?e:c({},t.options,e,{variables:Object.assign({},t.variables,e.variables)}),n.fetchPolicy="network-only",t.queryManager.fetchQuery(r,n,u.a.normal,t.queryId)}).then(function(r){return t.updateQuery(function(t){return e.updateQuery(t,{fetchMoreResult:r.data,variables:n.variables})}),r})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(n){e.updateQuery&&t.updateQuery(function(t,r){var o=r.variables;return e.updateQuery(t,{subscriptionData:n,variables:o})})},error:function(t){if(e.onError)return void 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())}},t.prototype.setOptions=function(e){var t=this.options;this.options=Object.assign({},this.options,e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var n="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,n,e.fetchResults)},t.prototype.setVariables=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),this.isTornDown=!1;var o=e||this.variables;return Object(r.isEqual)(o,this.variables)&&!t?0!==this.observers.length&&n?this.result():new Promise(function(e){return e()}):(this.variables=o,this.options.variables=o,0===this.observers.length?new Promise(function(e){return e()}):this.queryManager.fetchQuery(this.queryId,c({},this.options,{variables:this.variables})).then(function(e){return Object(r.maybeDeepFreeze)(e)}))},t.prototype.updateQuery=function(e){var t=this.queryManager.getQueryWithPreviousResult(this.queryId),n=t.previousResult,o=t.variables,i=t.document,a=Object(r.tryFunctionOrLogError)(function(){return e(n,{variables:o})});a&&(this.queryManager.dataStore.markUpdateQueryResult(i,o,a),this.queryManager.broadcastQueries())},t.prototype.stopPolling=function(){this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.options.pollInterval=void 0,this.isCurrentlyPolling=!1)},t.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)},t.prototype.onSubscribe=function(e){var t=this;return e._subscription&&e._subscription._observer&&!e._subscription._observer.error&&(e._subscription._observer.error=function(e){console.error("Unhandled error",e.message,e.stack)}),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(),function(){t.observers=t.observers.filter(function(t){return t!==e}),0===t.observers.length&&t.tearDownQuery()}},t.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){return e.next&&e.next(t)})},error:function(t){e.lastError=t,e.observers.forEach(function(e){return e.error&&e.error(t)})}};this.queryManager.startQuery(this.queryId,this.options,this.queryManager.queryListenerForObserver(this.queryId,this.options,t))},t.prototype.tearDownQuery=function(){this.isTornDown=!0,this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.isCurrentlyPolling=!1),this.subscriptionHandles.forEach(function(e){return e.unsubscribe()}),this.subscriptionHandles=[],this.queryManager.removeObservableQuery(this.queryId),this.queryManager.stopQuery(this.queryId),this.observers=[]},t}(i.a)},function(e,t,n){"use strict";function r(e){return["StringValue","BooleanValue","EnumValue"].indexOf(e.kind)>-1}function o(e){return["IntValue","FloatValue"].indexOf(e.kind)>-1}function i(e){return"StringValue"===e.kind}function a(e){return"BooleanValue"===e.kind}function u(e){return"IntValue"===e.kind}function s(e){return"FloatValue"===e.kind}function c(e){return"Variable"===e.kind}function l(e){return"ObjectValue"===e.kind}function f(e){return"ListValue"===e.kind}function p(e){return"EnumValue"===e.kind}function d(e){return"NullValue"===e.kind}function h(e,t,n,r){if(u(n)||s(n))e[t.value]=Number(n.value);else if(a(n)||i(n))e[t.value]=n.value;else if(l(n)){var o={};n.fields.map(function(e){return h(o,e.name,e.value,r)}),e[t.value]=o}else if(c(n)){var y=(r||{})[n.name.value];e[t.value]=y}else if(f(n))e[t.value]=n.values.map(function(e){var n={};return h(n,t,e,r),n[t.value]});else if(p(n))e[t.value]=n.value;else{if(!d(n))throw new Error('The inline argument "'+t.value+'" of kind "'+n.kind+'"is not supported. Use variables instead of inline arguments to overcome this limitation.');e[t.value]=null}}function y(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var o=r.name,i=r.value;return h(n[e.name.value],o,i,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,o=e.value;return h(r,n,o,t)})),v(e.name.value,r,n)}function v(e,t,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o=t,i={};return r.forEach(function(e){i[e]=o[e]}),n.connection.key+"("+JSON.stringify(i)+")"}return n.connection.key}var a=e;if(t){var u=P()(t);a+="("+u+")"}return n&&Object.keys(n).forEach(function(e){-1===T.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)}),a}function m(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,o=e.value;return h(n,r,o,t)}),n}return null}function b(e){return e.alias?e.alias.value:e.name.value}function g(e){return"Field"===e.kind}function w(e){return"InlineFragment"===e.kind}function O(e){return e&&"id"===e.type}function _(e,t){return void 0===t&&(t=!1),S({type:"id",generated:t},"string"===typeof e?{id:e,typename:void 0}:e)}function x(e){return null!=e&&"object"===typeof e&&"json"===e.type}function k(e){throw new Error("Variable nodes are not supported by valueFromNode")}function E(e,t){switch(void 0===t&&(t=k),e.kind){case"Variable":return t(e);case"NullValue":return null;case"IntValue":return parseInt(e.value,10);case"FloatValue":return parseFloat(e.value);case"ListValue":return e.values.map(function(e){return E(e,t)});case"ObjectValue":for(var n={},r=0,o=e.fields;r0){var t=1===r.length?r[0]:new Error(r.length+" errors were thrown when executing your fetchData functions.");throw t.queryErrors=r,t}})}function h(e){var t=N.get(e);if(t)return t;var n,r,o;R(!!e&&!!e.kind,"Argument of "+e+" passed to parser was not a valid GraphQL DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document");var i=e.definitions.filter(function(e){return"FragmentDefinition"===e.kind}),a=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"query"===e.operation}),u=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}),s=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation});R(!i.length||a.length||u.length||s.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"),R(a.length+u.length+s.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+e+" had "+a.length+" queries, "+s.length+" subscriptions and "+u.length+" mutations. You can use 'compose' to join multiple operation types to a component"),r=a.length?P.Query:P.Mutation,a.length||u.length||(r=P.Subscription);var c=a.length?a:u.length?u:s;R(1===c.length,"react-apollo only supports one defintion per HOC. "+e+" had "+c.length+" definitions. You can use 'compose' to join multiple operation types to a component");var l=c[0];n=l.variableDefinitions||[],o=l.name&&"Name"===l.name.kind?l.name.value:"data";var f={name:o,type:r,variables:n};return N.set(e,f),f}function y(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function v(e){return{variables:e.variables,refetch:e.refetch.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}function m(e){return e.displayName||e.name||"Component"}function b(e,t,n,r){for(var o={},i=0,a=e.variables;i0&&(c.variables=b(r,u,i,m(o))),t.createElement(L,te({},c,{displayName:i,skip:s,query:e,warnUnhandledError:!0}),function(e){var r,i,c=(e.client,e.data),l=ne(e,["client","data"]);if(n.withRef&&(a.withRef=!0,u=Object.assign({},u,{ref:a.setWrappedInstance})),s)return t.createElement(o,te({},u));var f=Object.assign(l,c||{}),d=n.name||"data",h=(r={},r[d]=f,r);if(n.props){var y=(i={},i[d]=f,i.ownProps=u,i);p=n.props(y,p),h=p}return t.createElement(o,te({},u,h))})},u.displayName=i,u.WrappedComponent=o,u}(Z);return re(a,o,{})}}function w(e,n){void 0===n&&(n={});var r=h(e),o=n.options,i=void 0===o?J:o,a=n.alias,u=void 0===a?"Apollo":a,s=i;return"function"!==typeof s&&(s=function(){return i}),function(o){var i=u+"("+m(o)+")",a=function(a){function u(){return null!==a&&a.apply(this,arguments)||this}return oe(u,a),u.prototype.render=function(){var a=this.props,u=s(a);return n.withRef&&(this.withRef=!0,a=Object.assign({},a,{ref:this.setWrappedInstance})),!u.variables&&r.variables.length>0&&(u.variables=b(r,a,i,m(o))),t.createElement(z,ie({},u,{mutation:e,ignoreResults:!0}),function(e,r){var i,u,s=n.name||"mutate",c=(i={},i[s]=e,i);if(n.props){var l=(u={},u[s]=e,u.ownProps=a,u);c=n.props(l)}return t.createElement(o,ie({},a,c))})},u.displayName=i,u.WrappedComponent=o,u}(Z);return ae(a,o,{})}}function O(e,n){void 0===n&&(n={});var r=h(e),o=n.options,i=void 0===o?J:o,a=n.skip,u=void 0===a?X:a,s=n.alias,c=void 0===s?"Apollo":s,l=n.shouldResubscribe,f=i;"function"!==typeof f&&(f=function(){return i});var p=u;"function"!==typeof p&&(p=function(){return u});var d;return function(o){var i=c+"("+m(o)+")",a=function(a){function u(e){var t=a.call(this,e)||this;return t.state={resubscribe:!1},t}return ue(u,a),u.prototype.componentWillReceiveProps=function(e){l&&this.setState({resubscribe:l(this.props,e)})},u.prototype.render=function(){var a=this,u=this.props,s=p(u),c=s?Object.create(null):f(u);return!s&&!c.variables&&r.variables.length>0&&(c.variables=b(r,u,i,m(o))),t.createElement(Y,se({},c,{displayName:i,skip:s,subscription:e,shouldResubscribe:this.state.resubscribe}),function(e){var r,i,c=e.data,l=ce(e,["data"]);if(n.withRef&&(a.withRef=!0,u=Object.assign({},u,{ref:a.setWrappedInstance})),s)return t.createElement(o,se({},u));var f=Object.assign(l,c||{}),p=n.name||"data",h=(r={},r[p]=f,r);if(n.props){var y=(i={},i[p]=f,i.ownProps=u,i);d=n.props(y,d),h=d}return t.createElement(o,se({},u,h))})},u.displayName=i,u.WrappedComponent=o,u}(Z);return le(a,o,{})}}function _(e,t){switch(void 0===t&&(t={}),h(e).type){case P.Mutation:return w(e,t);case P.Subscription:return O(e,t);case P.Query:default:return g(e,t)}}function x(e){return e.displayName||e.name||"Component"}function k(e,n){void 0===n&&(n={});var r="withApollo("+x(e)+")",o=function(o){function i(e){var t=o.call(this,e)||this;return t.setWrappedInstance=t.setWrappedInstance.bind(t),t}return fe(i,o),i.prototype.getWrappedInstance=function(){return de(n.withRef,"To access the wrapped instance, you need to specify { withRef: true } in the options"),this.wrappedInstance},i.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},i.prototype.render=function(){var r=this;return t.createElement(j,null,function(o){var i=Object.assign({},r.props,{client:o,ref:n.withRef?r.setWrappedInstance:void 0});return t.createElement(e,pe({},i))})},i.displayName=r,i.WrappedComponent=e,i}(t.Component);return he(o,e,{})}var E=n(4),j=function(e,t){return E(!!t.client,'Could not find "client" in the context of ApolloConsumer. Wrap the root component in an '),e.children(t.client)};j.contextTypes={client:r.object.isRequired},j.propTypes={children:r.func.isRequired};var P,S=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),T=n(4),C=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.operations=new Map,T(t.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'),t.client.__operations_cache__||(t.client.__operations_cache__=r.operations),r}return S(t,e),t.prototype.getChildContext=function(){return{client:this.props.client,operations:this.props.client.__operations_cache__}},t.prototype.render=function(){return this.props.children},t.propTypes={client:r.object.isRequired,children:r.node.isRequired},t.childContextTypes={client:r.object.isRequired,operations:r.object},t}(t.Component),R=n(4);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(P||(P={}));var N=new Map,I=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&(u=new o.ApolloError({graphQLErrors:a})),Object.assign(e,{loading:n,networkStatus:i,error:u}),n?Object.assign(e.data,r.previousData,t.data):u?Object.assign(e,{data:(r.queryObservable.getLastResult()||{}).data}):(Object.assign(e.data,t.data),r.previousData=t.data),!r.querySubscription){var s=e.refetch;e.refetch=function(e){return r.querySubscription?s(e):new Promise(function(t,n){r.refetcherQueue={resolve:t,reject:n,args:e}})}}return e.client=r.client,e},r.client=t.client||n.client,D(!!r.client,'Could not find "client" in the context of Query or as passed props. Wrap the root component in an '),r.initializeQueryObservable(t),r}return I(t,e),t.prototype.fetchData=function(){if(this.props.skip)return!1;var e=this.props,t=(e.children,e.ssr),n=(e.displayName,e.skip,e.client,e.onCompleted,e.onError,A(e,["children","ssr","displayName","skip","client","onCompleted","onError"])),r=n.fetchPolicy;if(!1===t)return!1;"network-only"!==r&&"cache-and-network"!==r||(r="cache-first");var o=this.client.watchQuery(M({},n,{fetchPolicy:r}));return!!this.queryObservable.currentResult().loading&&o.result()},t.prototype.componentDidMount=function(){if(this.hasMounted=!0,!this.props.skip&&(this.startQuerySubscription(),this.refetcherQueue)){var e=this.refetcherQueue,t=e.args,n=e.resolve,r=e.reject;this.queryObservable.refetch(t).then(n).catch(r)}},t.prototype.componentWillReceiveProps=function(e,t){if(e.skip&&!this.props.skip)return void this.removeQuerySubscription();var n=e.client;(!F(this.props,e)||this.client!==n&&this.client!==t.client)&&(this.client!==n&&this.client!==t.client&&(this.client=n||t.client,this.removeQuerySubscription(),this.queryObservable=null,this.previousData={},this.updateQuery(e)),this.props.query!==e.query&&this.removeQuerySubscription(),this.updateQuery(e),e.skip||this.startQuerySubscription())},t.prototype.componentWillUnmount=function(){this.removeQuerySubscription(),this.hasMounted=!1},t.prototype.render=function(){return(0,this.props.children)(this.getQueryResult())},t.prototype.extractOptsFromProps=function(e){var t=e.variables,n=e.pollInterval,r=e.fetchPolicy,o=e.errorPolicy,i=e.notifyOnNetworkStatusChange,a=e.query,u=e.displayName,s=void 0===u?"Query":u,c=e.context,l=void 0===c?{}:c;return this.operation=h(a),D(this.operation.type===P.Query,"The component requires a graphql query, but got a "+(this.operation.type===P.Mutation?"mutation":"subscription")+"."),y({variables:t,pollInterval:n,query:a,fetchPolicy:r,errorPolicy:o,notifyOnNetworkStatusChange:i,metadata:{reactComponent:{displayName:s}},context:l})},t.prototype.initializeQueryObservable=function(e){var t=this.extractOptsFromProps(e);this.context.operations&&this.context.operations.set(this.operation.name,{query:t.query,variables:t.variables}),this.queryObservable=this.client.watchQuery(t)},t.prototype.updateQuery=function(e){this.queryObservable||this.initializeQueryObservable(e),this.queryObservable.setOptions(this.extractOptsFromProps(e)).catch(function(){return null})},t.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.queryObservable.getLastError(),t=this.queryObservable.getLastResult();this.queryObservable.resetLastResults(),this.startQuerySubscription(),Object.assign(this.queryObservable,{lastError:e,lastResult:t})},t.contextTypes={client:r.object.isRequired,operations:r.object},t.propTypes={children:r.func.isRequired,fetchPolicy:r.string,notifyOnNetworkStatusChange:r.bool,onCompleted:r.func,onError:r.func,pollInterval:r.number,query:r.object.isRequired,variables:r.object,ssr:r.bool},t}(t.Component),q=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n component requires a graphql mutation, but got a "+(t.type===P.Query?"query":"subscription")+".")},r.client=t.client||n.client,U(!!r.client,'Could not find "client" in the context or props of Mutation. Wrap the root component in an , or pass an ApolloClient instance in via props.'),r.verifyDocumentIsMutation(t.mutation),r.mostRecentMutationId=0,r.state=V,r}return q(t,e),t.prototype.componentDidMount=function(){this.hasMounted=!0},t.prototype.componentWillUnmount=function(){this.hasMounted=!1},t.prototype.componentWillReceiveProps=function(e,t){var n=e.client;(!B(this.props,e)||this.client!==n&&this.client!==t.client)&&(this.props.mutation!==e.mutation&&this.verifyDocumentIsMutation(e.mutation),this.client!==n&&this.client!==t.client&&(this.client=n||t.client,this.setState(V)))},t.prototype.render=function(){var e=this.props.children,t=this.state,n=t.loading,r=t.data,o=t.error,i=t.called,a={called:i,loading:n,data:r,error:o,client:this.client};return e(this.runMutation,a)},t.contextTypes={client:r.object.isRequired,operations:r.object},t.propTypes={mutation:r.object.isRequired,variables:r.object,optimisticResponse:r.object,refetchQueries:r.oneOfType([r.arrayOf(r.string),r.arrayOf(r.object),r.func]),update:r.func,children:r.func.isRequired,onCompleted:r.func,onError:r.func},t}(t.Component),W=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),H=n(30),G=n(4),Y=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialize=function(e){r.queryObservable||(r.queryObservable=r.client.subscribe({query:e.subscription,variables:e.variables}))},r.startSubscription=function(){r.querySubscription||(r.querySubscription=r.queryObservable.subscribe({next:r.updateCurrentData,error:r.updateError}))},r.getInitialState=function(){return{loading:!0,error:void 0,data:void 0}},r.updateCurrentData=function(e){r.setState({data:e.data,loading:!1,error:void 0})},r.updateError=function(e){r.setState({error:e,loading:!1})},r.endSubscription=function(){r.querySubscription&&(r.querySubscription.unsubscribe(),delete r.querySubscription)},G(!!n.client,'Could not find "client" in the context of Subscription. Wrap the root component in an '),r.client=n.client,r.initialize(t),r.state=r.getInitialState(),r}return W(t,e),t.prototype.componentDidMount=function(){this.startSubscription()},t.prototype.componentWillReceiveProps=function(e,t){if(!H(this.props.variables,e.variables)||this.client!==t.client||this.props.subscription!==e.subscription){var n=e.shouldResubscribe;"function"===typeof n&&(n=!!n(this.props,e));var r=!1===n;if(this.client!==t.client&&(this.client=t.client),!r)return this.endSubscription(),delete this.queryObservable,this.initialize(e),this.startSubscription(),void this.setState(this.getInitialState());this.initialize(e),this.startSubscription()}},t.prototype.componentWillUnmount=function(){this.endSubscription()},t.prototype.render=function(){var e=Object.assign({},this.state,{variables:this.props.variables});return this.props.children(e)},t.contextTypes={client:r.object.isRequired},t.propTypes={subscription:r.object.isRequired,variables:r.object,children:r.func.isRequired,shouldResubscribe:r.oneOfType([r.func,r.bool])},t}(t.Component),K=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$=n(4),J=function(){return{}},X=function(){return!1},Z=function(e){function t(t){var n=e.call(this,t)||this;return n.withRef=!1,n.setWrappedInstance=n.setWrappedInstance.bind(n),n}return K(t,e),t.prototype.getWrappedInstance=function(){return $(this.withRef,"To access the wrapped instance, you need to specify { withRef: true } in the options"),this.wrappedInstance},t.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},t}(t.Component),ee=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),te=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,b=e.palette,g=void 0===b?{}:b,w=e.shadows,O=e.typography,_=void 0===O?{}:O,x=(0,a.default)(e,["breakpoints","mixins","palette","shadows","typography"]),k=(0,f.default)(g),E=(0,c.default)(n),j=(0,i.default)({breakpoints:E,direction:"ltr",mixins:(0,l.default)(E,y.default,o),overrides:{},palette:k,props:{},shadows:w||d.default,typography:(0,p.default)(k,_)},(0,u.default)({shape:h.default,spacing:y.default,transitions:v.default,zIndex:m.default},x,{isMergeableObject:s.default}));return j}var o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(9)),a=o(n(5)),u=o(n(44)),s=o(n(288)),c=(o(n(3)),o(n(290))),l=o(n(291)),f=o(n(292)),p=o(n(298)),d=o(n(299)),h=o(n(300)),y=o(n(301)),v=o(n(302)),m=o(n(303)),b=r;t.default=b},function(e,t,n){"use strict";function r(e,t){for(var n="",r=0;r2&&void 0!==arguments[2]?arguments[2]:{},o="";if(!t)return o;var i=n.indent,u=void 0===i?0:i,s=t.fallbacks;if(u++,s)if(Array.isArray(s))for(var c=0;c0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(26);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports={}},function(e,t,n){var r=n(38),o=n(374),i=n(94),a=n(92)("IE_PROTO"),u=function(){},s=function(){var e,t=n(158)("iframe"),r=i.length;for(t.style.display="none",n(379).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("