-
Notifications
You must be signed in to change notification settings - Fork 0
/
app-22ae9095a376cc2620f7.js.map
1 lines (1 loc) · 133 KB
/
app-22ae9095a376cc2620f7.js.map
1
{"version":3,"sources":["webpack:///app-22ae9095a376cc2620f7.js","webpack:///./.cache/api-runner-browser.js","webpack:///./.cache/async-requires.js","webpack:///./.cache/component-renderer.js","webpack:///./.cache/emitter.js","webpack:///./.cache/find-page.js","webpack:///./.cache/history.js","webpack:///./.cache/json/404-html.json?780a","webpack:///./.cache/json/404.json?2d21","webpack:///./.cache/json/challenge.json?3eeb","webpack:///./.cache/json/index.json?9cdc","webpack:///./.cache/json/layout-index.json?fda3","webpack:///./.cache/layouts/index.js?7ad7","webpack:///./.cache/loader.js","webpack:///./.cache/pages.json","webpack:///./.cache/prefetcher.js","webpack:///./.cache/production-app.js","webpack:///./.cache/redirects.json","webpack:///./.cache/register-service-worker.js","webpack:///./.cache/strip-prefix.js","webpack:///./~/domready/ready.js","webpack:///./~/gatsby-module-loader/patch.js","webpack:///./~/mitt/dist/mitt.js","webpack:///./~/schedule/cjs/schedule.production.min.js","webpack:///./~/schedule/index.js","webpack:///./~/shallow-compare/lib/index.js","webpack:///./src/pages/404.js?0ec1","webpack:///./src/pages/challenge.js?9fc2","webpack:///./src/pages/index.js?3de8"],"names":["webpackJsonp","138","module","exports","apiRunner","api","args","defaultReturn","results","plugins","map","plugin","result","options","filter","length","apiRunnerAsync","reduce","previous","next","then","Promise","resolve","__esModule","212","__webpack_require__","components","component---src-pages-404-js","component---src-pages-challenge-js","component---src-pages-index-js","json","layout-index.json","404.json","challenge.json","index.json","404-html.json","layouts","layout---index","213","_interopRequireDefault","obj","default","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","call","ReferenceError","_inherits","subClass","superClass","prototype","Object","create","constructor","value","enumerable","writable","configurable","setPrototypeOf","__proto__","_extends","assign","target","i","arguments","source","key","hasOwnProperty","_react","_react2","_propTypes","_propTypes2","_loader","_loader2","_emitter","_emitter2","_apiRunnerBrowser","_shallowCompare","_shallowCompare2","DefaultLayout","_ref","children","createElement","ComponentRenderer","_React$Component","props","this","_this","location","getPage","pathname","state","pageResources","getResourcesForPathname","componentWillReceiveProps","nextProps","_this2","setState","componentDidMount","_this3","on","e","page","path","shouldComponentUpdate","nextState","component","matchPath","render","pluginResponses","loader","replacementComponent","layout","Component","propTypes","bool","object","122","_mitt","_mitt2","emitter","214","_reactRouterDom","_stripPrefix","_stripPrefix2","pageCache","pages","pathPrefix","undefined","rawPathname","decodeURIComponent","trimmedPathname","split","slice","join","foundPage","some","exact","215","_createBrowserHistory","_createBrowserHistory2","replacementHistory","history","334","cb","_","error","console","log","333","335","336","332","328","172","process","publicLoader","_findPage","_findPage2","findPage","syncRequires","asyncRequires","pathScriptsCache","resourceStrCache","resourceCache","pathArray","pathCount","resourcesArray","resourcesCount","preferDefault","m","prefetcher","inInitialRender","fetchHistory","failedPaths","failedResources","MAX_HISTORY","getNextQueuedResources","createResourceDownload","resourceName","fetchResource","r","onResourcedFinished","onPreLoadPageResources","onPostLoadPageResources","sortResourcesByCount","a","b","sortPagesByCount","nextTick","resourceFunction","err","executeChunk","push","resource","succeeded","getResourceModule","appearsOnLine","isOnLine","navigator","onLine","succeededFetch","find","entry","handleResourceLoadError","message","window","replace","mountOrder","queue","empty","addPagesArray","newPages","addDevRequires","devRequires","addProdRequires","prodRequires","dequeue","pop","enqueue","rawPath","p","mountOrderBoost","has","unshift","sort","jsonName","indexOf","componentChunkName","onNewResourcesAdded","getResources","getPages","serviceWorker","controller","getRegistrations","registrations","_iterator","_isArray","Array","isArray","_i","Symbol","iterator","done","registration","unregister","reload","emit","layoutComponentChunkName","c","j","l","peek","347","217","pagesLoading","resourcesDownloading","startResourceDownloading","nextResource","reducer","action","type","payload","setTimeout","event","getState","0","_reactDom","_reactDom2","_gatsbyReactRouterScroll","_domready","_domready2","_history","_history2","_history3","_pages","_pages2","_redirects","_redirects2","_componentRenderer","_componentRenderer2","_asyncRequires","_asyncRequires2","___history","___emitter","___loader","redirectMap","redirect","fromPath","maybeRedirect","toPath","attachToHistory","initialAttachDone","listen","shouldUpdateScroll","prevRouterProps","oldPathname","navigateTo","to","eventHandler","off","clearTimeout","timeoutId","createLocation","wl","search","hash","___navigateTo","AltRouter","DefaultRouter","_ref2","Router","ComponentRendererWithRouter","withRouter","Root","ScrollContext","layoutProps","Route","routeProps","NewRoot","document","getElementById","348","218","register","reg","addEventListener","installingWorker","installing","catch","173","str","prefix","substr","322","name","definition","listener","fns","doc","hack","documentElement","doScroll","domContentLoaded","loaded","test","readyState","removeEventListener","shift","fn","33","patch","onError","callback","script","head","lastChild","tagName","warn","onload","onerror","failures","querySelector","ensure","chunks","s","chunkId","immediate","handler","349","n","splice","379","timesOutAt","f","q","d","didTimeout","unstable_now","h","A","y","w","v","z","u","x","defineProperty","g","performance","now","timeRemaining","Date","t","requestAnimationFrame","cancelAnimationFrame","B","C","_schedMock","D","E","F","G","H","I","J","K","L","M","Math","random","toString","data","N","postMessage","unstable_scheduleWork","timeout","k","unstable_cancelScheduledWork","380","383","shallowDiffers","329","330","331"],"mappings":"AAAAA,cAAc,iBAERC,IACA,SAAUC,EAAQC,GAEvB,YCSM,SAASC,GAAUC,EAAKC,EAAMC,GACnC,GAAIC,GAAUC,EAAQC,IAAI,SAAAC,GACxB,GAAIA,EAAOA,OAAON,GAAM,CACtB,GAAMO,GAASD,EAAOA,OAAON,GAAKC,EAAMK,EAAOE,QAC/C,OAAOD,KAOX,OAFAJ,GAAUA,EAAQM,OAAO,SAAAF,GAAA,MAAU,mBAAOA,KAEtCJ,EAAQO,OAAS,EACZP,EACED,GACDA,MAML,QAASS,GAAeX,EAAKC,EAAMC,GACxC,MAAOE,GAAQQ,OACb,SAACC,EAAUC,GAAX,MACEA,GAAKR,OAAON,GACRa,EAASE,KAAK,iBAAMD,GAAKR,OAAON,GAAKC,EAAMa,EAAKN,WAChDK,GACNG,QAAQC,WDjCXnB,EAAQoB,YAAa,EACrBpB,ECMeC,YDLfD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EAAQC,GyB9/CxB,YAKA,SAAAqa,GAAA3O,EAAAC,GACA,OAAA5H,KAAA2H,GACA,KAAA3H,IAAA4H,IAAA,QACG,QAAAqD,KAAArD,GACH,GAAAD,EAAAsD,KAAArD,EAAAqD,GAAA,QACG,UARHhP,EAAAoB,YAAA,EAWApB,EAAAsC,QAAA,SAAAE,EAAAuD,EAAAU,GACA,MAAA4T,GAAA7X,EAAA6C,MAAAU,IAAAsU,EAAA7X,EAAAmD,MAAAc,IAGA1G,EAAAC,UAAA,SzBogDMsa,IACA,SAAUva,EAAQC,EAASsB,G0BthDjCA,EACA,IAEAvB,EAAAC,QAAA,SAAAgJ,GAAmC,MAAA1H,GAAA+E,EAAA,wBAAA4C,EAAAC,GACnCA,GACAC,QAAAC,IAAA,uBAAAF,GACAF,GAAA,IAEAA,EAAA,gBAA+B,MAAA1H,GAAA,W1BgiDzBiZ,IACA,SAAUxa,EAAQC,EAASsB,G2BziDjCA,EACA,IAEAvB,EAAAC,QAAA,SAAAgJ,GAAmC,MAAA1H,GAAA+E,EAAA,wBAAA4C,EAAAC,GACnCA,GACAC,QAAAC,IAAA,uBAAAF,GACAF,GAAA,IAEAA,EAAA,gBAA+B,MAAA1H,GAAA,W3BmjDzBkZ,IACA,SAAUza,EAAQC,EAASsB,G4B5jDjCA,EACA,IAEAvB,EAAAC,QAAA,SAAAgJ,GAAmC,MAAA1H,GAAA+E,EAAA,wBAAA4C,EAAAC,GACnCA,GACAC,QAAAC,IAAA,uBAAAF,GACAF,GAAA,IAEAA,EAAA,gBAA+B,MAAA1H,GAAA","file":"app-22ae9095a376cc2620f7.js","sourcesContent":["webpackJsonp([231608221292675],{\n\n/***/ 138:\n/***/ (function(module, exports) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\texports.apiRunner = apiRunner;\n\texports.apiRunnerAsync = apiRunnerAsync;\n\tvar plugins = [];\n\t// During bootstrap, we write requires at top of this file which looks\n\t// basically like:\n\t// var plugins = [\n\t// {\n\t// plugin: require(\"/path/to/plugin1/gatsby-browser.js\"),\n\t// options: { ... },\n\t// },\n\t// {\n\t// plugin: require(\"/path/to/plugin2/gatsby-browser.js\"),\n\t// options: { ... },\n\t// },\n\t// ]\n\t\n\tfunction apiRunner(api, args, defaultReturn) {\n\t var results = plugins.map(function (plugin) {\n\t if (plugin.plugin[api]) {\n\t var result = plugin.plugin[api](args, plugin.options);\n\t return result;\n\t }\n\t });\n\t\n\t // Filter out undefined results.\n\t results = results.filter(function (result) {\n\t return typeof result !== \"undefined\";\n\t });\n\t\n\t if (results.length > 0) {\n\t return results;\n\t } else if (defaultReturn) {\n\t return [defaultReturn];\n\t } else {\n\t return [];\n\t }\n\t}\n\t\n\tfunction apiRunnerAsync(api, args, defaultReturn) {\n\t return plugins.reduce(function (previous, next) {\n\t return next.plugin[api] ? previous.then(function () {\n\t return next.plugin[api](args, next.options);\n\t }) : previous;\n\t }, Promise.resolve());\n\t}\n\n/***/ }),\n\n/***/ 212:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\t// prefer default export if available\n\tvar preferDefault = function preferDefault(m) {\n\t return m && m.default || m;\n\t};\n\t\n\texports.components = {\n\t \"component---src-pages-404-js\": __webpack_require__(329),\n\t \"component---src-pages-challenge-js\": __webpack_require__(330),\n\t \"component---src-pages-index-js\": __webpack_require__(331)\n\t};\n\t\n\texports.json = {\n\t \"layout-index.json\": __webpack_require__(332),\n\t \"404.json\": __webpack_require__(333),\n\t \"challenge.json\": __webpack_require__(335),\n\t \"index.json\": __webpack_require__(336),\n\t \"404-html.json\": __webpack_require__(334)\n\t};\n\t\n\texports.layouts = {\n\t \"layout---index\": __webpack_require__(328)\n\t};\n\n/***/ }),\n\n/***/ 213:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\tvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\t\n\tvar _react = __webpack_require__(4);\n\t\n\tvar _react2 = _interopRequireDefault(_react);\n\t\n\tvar _propTypes = __webpack_require__(2);\n\t\n\tvar _propTypes2 = _interopRequireDefault(_propTypes);\n\t\n\tvar _loader = __webpack_require__(172);\n\t\n\tvar _loader2 = _interopRequireDefault(_loader);\n\t\n\tvar _emitter = __webpack_require__(122);\n\t\n\tvar _emitter2 = _interopRequireDefault(_emitter);\n\t\n\tvar _apiRunnerBrowser = __webpack_require__(138);\n\t\n\tvar _shallowCompare = __webpack_require__(383);\n\t\n\tvar _shallowCompare2 = _interopRequireDefault(_shallowCompare);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar DefaultLayout = function DefaultLayout(_ref) {\n\t var children = _ref.children;\n\t return _react2.default.createElement(\n\t \"div\",\n\t null,\n\t children()\n\t );\n\t};\n\t\n\t// Pass pathname in as prop.\n\t// component will try fetching resources. If they exist,\n\t// will just render, else will render null.\n\t\n\tvar ComponentRenderer = function (_React$Component) {\n\t _inherits(ComponentRenderer, _React$Component);\n\t\n\t function ComponentRenderer(props) {\n\t _classCallCheck(this, ComponentRenderer);\n\t\n\t var _this = _possibleConstructorReturn(this, _React$Component.call(this));\n\t\n\t var location = props.location;\n\t\n\t // Set the pathname for 404 pages.\n\t if (!_loader2.default.getPage(location.pathname)) {\n\t location = _extends({}, location, {\n\t pathname: \"/404.html\"\n\t });\n\t }\n\t\n\t _this.state = {\n\t location: location,\n\t pageResources: _loader2.default.getResourcesForPathname(location.pathname)\n\t };\n\t return _this;\n\t }\n\t\n\t ComponentRenderer.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n\t var _this2 = this;\n\t\n\t // During development, always pass a component's JSON through so graphql\n\t // updates go through.\n\t if (false) {\n\t if (nextProps && nextProps.pageResources && nextProps.pageResources.json) {\n\t this.setState({ pageResources: nextProps.pageResources });\n\t }\n\t }\n\t if (this.state.location.pathname !== nextProps.location.pathname) {\n\t var pageResources = _loader2.default.getResourcesForPathname(nextProps.location.pathname);\n\t if (!pageResources) {\n\t var location = nextProps.location;\n\t\n\t // Set the pathname for 404 pages.\n\t if (!_loader2.default.getPage(location.pathname)) {\n\t location = _extends({}, location, {\n\t pathname: \"/404.html\"\n\t });\n\t }\n\t\n\t // Page resources won't be set in cases where the browser back button\n\t // or forward button is pushed as we can't wait as normal for resources\n\t // to load before changing the page.\n\t _loader2.default.getResourcesForPathname(location.pathname, function (pageResources) {\n\t _this2.setState({\n\t location: location,\n\t pageResources: pageResources\n\t });\n\t });\n\t } else {\n\t this.setState({\n\t location: nextProps.location,\n\t pageResources: pageResources\n\t });\n\t }\n\t }\n\t };\n\t\n\t ComponentRenderer.prototype.componentDidMount = function componentDidMount() {\n\t var _this3 = this;\n\t\n\t // Listen to events so when our page gets updated, we can transition.\n\t // This is only useful on delayed transitions as the page will get rendered\n\t // without the necessary page resources and then re-render once those come in.\n\t _emitter2.default.on(\"onPostLoadPageResources\", function (e) {\n\t if (_loader2.default.getPage(_this3.state.location.pathname) && e.page.path === _loader2.default.getPage(_this3.state.location.pathname).path) {\n\t _this3.setState({ pageResources: e.pageResources });\n\t }\n\t });\n\t };\n\t\n\t ComponentRenderer.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n\t // 404\n\t if (!nextState.pageResources) {\n\t return true;\n\t }\n\t // Check if the component or json have changed.\n\t if (!this.state.pageResources && nextState.pageResources) {\n\t return true;\n\t }\n\t if (this.state.pageResources.component !== nextState.pageResources.component) {\n\t return true;\n\t }\n\t\n\t if (this.state.pageResources.json !== nextState.pageResources.json) {\n\t return true;\n\t }\n\t\n\t // Check if location has changed on a page using internal routing\n\t // via matchPath configuration.\n\t if (this.state.location.key !== nextState.location.key && nextState.pageResources.page && (nextState.pageResources.page.matchPath || nextState.pageResources.page.path)) {\n\t return true;\n\t }\n\t\n\t return (0, _shallowCompare2.default)(this, nextProps, nextState);\n\t };\n\t\n\t ComponentRenderer.prototype.render = function render() {\n\t var pluginResponses = (0, _apiRunnerBrowser.apiRunner)(\"replaceComponentRenderer\", {\n\t props: _extends({}, this.props, { pageResources: this.state.pageResources }),\n\t loader: _loader.publicLoader\n\t });\n\t var replacementComponent = pluginResponses[0];\n\t // If page.\n\t if (this.props.page) {\n\t if (this.state.pageResources) {\n\t return replacementComponent || (0, _react.createElement)(this.state.pageResources.component, _extends({\n\t key: this.props.location.pathname\n\t }, this.props, this.state.pageResources.json));\n\t } else {\n\t return null;\n\t }\n\t // If layout.\n\t } else if (this.props.layout) {\n\t return replacementComponent || (0, _react.createElement)(this.state.pageResources && this.state.pageResources.layout ? this.state.pageResources.layout : DefaultLayout, _extends({\n\t key: this.state.pageResources && this.state.pageResources.layout ? this.state.pageResources.layout : \"DefaultLayout\"\n\t }, this.props));\n\t } else {\n\t return null;\n\t }\n\t };\n\t\n\t return ComponentRenderer;\n\t}(_react2.default.Component);\n\t\n\tComponentRenderer.propTypes = {\n\t page: _propTypes2.default.bool,\n\t layout: _propTypes2.default.bool,\n\t location: _propTypes2.default.object\n\t};\n\t\n\texports.default = ComponentRenderer;\n\tmodule.exports = exports[\"default\"];\n\n/***/ }),\n\n/***/ 122:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tvar _mitt = __webpack_require__(349);\n\t\n\tvar _mitt2 = _interopRequireDefault(_mitt);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tvar emitter = (0, _mitt2.default)();\n\tmodule.exports = emitter;\n\n/***/ }),\n\n/***/ 214:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tvar _reactRouterDom = __webpack_require__(136);\n\t\n\tvar _stripPrefix = __webpack_require__(173);\n\t\n\tvar _stripPrefix2 = _interopRequireDefault(_stripPrefix);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\t// TODO add tests especially for handling prefixed links.\n\tvar pageCache = {};\n\t\n\tmodule.exports = function (pages) {\n\t var pathPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"\";\n\t return function (rawPathname) {\n\t var pathname = decodeURIComponent(rawPathname);\n\t\n\t // Remove the pathPrefix from the pathname.\n\t var trimmedPathname = (0, _stripPrefix2.default)(pathname, pathPrefix);\n\t\n\t // Remove any hashfragment\n\t if (trimmedPathname.split(\"#\").length > 1) {\n\t trimmedPathname = trimmedPathname.split(\"#\").slice(0, -1).join(\"\");\n\t }\n\t\n\t // Remove search query\n\t if (trimmedPathname.split(\"?\").length > 1) {\n\t trimmedPathname = trimmedPathname.split(\"?\").slice(0, -1).join(\"\");\n\t }\n\t\n\t if (pageCache[trimmedPathname]) {\n\t return pageCache[trimmedPathname];\n\t }\n\t\n\t var foundPage = void 0;\n\t // Array.prototype.find is not supported in IE so we use this somewhat odd\n\t // work around.\n\t pages.some(function (page) {\n\t if (page.matchPath) {\n\t // Try both the path and matchPath\n\t if ((0, _reactRouterDom.matchPath)(trimmedPathname, { path: page.path }) || (0, _reactRouterDom.matchPath)(trimmedPathname, {\n\t path: page.matchPath\n\t })) {\n\t foundPage = page;\n\t pageCache[trimmedPathname] = page;\n\t return true;\n\t }\n\t } else {\n\t if ((0, _reactRouterDom.matchPath)(trimmedPathname, {\n\t path: page.path,\n\t exact: true\n\t })) {\n\t foundPage = page;\n\t pageCache[trimmedPathname] = page;\n\t return true;\n\t }\n\t\n\t // Finally, try and match request with default document.\n\t if ((0, _reactRouterDom.matchPath)(trimmedPathname, {\n\t path: page.path + \"index.html\"\n\t })) {\n\t foundPage = page;\n\t pageCache[trimmedPathname] = page;\n\t return true;\n\t }\n\t }\n\t\n\t return false;\n\t });\n\t\n\t return foundPage;\n\t };\n\t};\n\n/***/ }),\n\n/***/ 215:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tvar _createBrowserHistory = __webpack_require__(203);\n\t\n\tvar _createBrowserHistory2 = _interopRequireDefault(_createBrowserHistory);\n\t\n\tvar _apiRunnerBrowser = __webpack_require__(138);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tvar pluginResponses = (0, _apiRunnerBrowser.apiRunner)(\"replaceHistory\");\n\tvar replacementHistory = pluginResponses[0];\n\tvar history = replacementHistory || (0, _createBrowserHistory2.default)();\n\tmodule.exports = history;\n\n/***/ }),\n\n/***/ 334:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(\n\t 33\n\t );\n\t module.exports = function(cb) { return __webpack_require__.e/* nsure */(178698757827068, function(_, error) {\n\t if (error) {\n\t console.log('bundle loading error', error)\n\t cb(true)\n\t } else {\n\t cb(null, function() { return __webpack_require__(343) })\n\t }\n\t });\n\t }\n\t \n\n/***/ }),\n\n/***/ 333:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(\n\t 33\n\t );\n\t module.exports = function(cb) { return __webpack_require__.e/* nsure */(254022195166212, function(_, error) {\n\t if (error) {\n\t console.log('bundle loading error', error)\n\t cb(true)\n\t } else {\n\t cb(null, function() { return __webpack_require__(344) })\n\t }\n\t });\n\t }\n\t \n\n/***/ }),\n\n/***/ 335:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(\n\t 33\n\t );\n\t module.exports = function(cb) { return __webpack_require__.e/* nsure */(249544144331492, function(_, error) {\n\t if (error) {\n\t console.log('bundle loading error', error)\n\t cb(true)\n\t } else {\n\t cb(null, function() { return __webpack_require__(345) })\n\t }\n\t });\n\t }\n\t \n\n/***/ }),\n\n/***/ 336:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(\n\t 33\n\t );\n\t module.exports = function(cb) { return __webpack_require__.e/* nsure */(142629428675168, function(_, error) {\n\t if (error) {\n\t console.log('bundle loading error', error)\n\t cb(true)\n\t } else {\n\t cb(null, function() { return __webpack_require__(346) })\n\t }\n\t });\n\t }\n\t \n\n/***/ }),\n\n/***/ 332:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(\n\t 33\n\t );\n\t module.exports = function(cb) { return __webpack_require__.e/* nsure */(60335399758886, function(_, error) {\n\t if (error) {\n\t console.log('bundle loading error', error)\n\t cb(true)\n\t } else {\n\t cb(null, function() { return __webpack_require__(167) })\n\t }\n\t });\n\t }\n\t \n\n/***/ }),\n\n/***/ 328:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(\n\t 33\n\t );\n\t module.exports = function(cb) { return __webpack_require__.e/* nsure */(114276838955818, function(_, error) {\n\t if (error) {\n\t console.log('bundle loading error', error)\n\t cb(true)\n\t } else {\n\t cb(null, function() { return __webpack_require__(216) })\n\t }\n\t });\n\t }\n\t \n\n/***/ }),\n\n/***/ 172:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(process) {\"use strict\";\n\t\n\texports.__esModule = true;\n\texports.publicLoader = undefined;\n\t\n\tvar _react = __webpack_require__(4);\n\t\n\tvar _react2 = _interopRequireDefault(_react);\n\t\n\tvar _findPage = __webpack_require__(214);\n\t\n\tvar _findPage2 = _interopRequireDefault(_findPage);\n\t\n\tvar _emitter = __webpack_require__(122);\n\t\n\tvar _emitter2 = _interopRequireDefault(_emitter);\n\t\n\tvar _stripPrefix = __webpack_require__(173);\n\t\n\tvar _stripPrefix2 = _interopRequireDefault(_stripPrefix);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tvar findPage = void 0;\n\t\n\tvar syncRequires = {};\n\tvar asyncRequires = {};\n\tvar pathScriptsCache = {};\n\tvar resourceStrCache = {};\n\tvar resourceCache = {};\n\tvar pages = [];\n\t// Note we're not actively using the path data atm. There\n\t// could be future optimizations however around trying to ensure\n\t// we load all resources for likely-to-be-visited paths.\n\tvar pathArray = [];\n\tvar pathCount = {};\n\tvar pathPrefix = \"\";\n\tvar resourcesArray = [];\n\tvar resourcesCount = {};\n\tvar preferDefault = function preferDefault(m) {\n\t return m && m.default || m;\n\t};\n\tvar prefetcher = void 0;\n\tvar inInitialRender = true;\n\tvar fetchHistory = [];\n\tvar failedPaths = {};\n\tvar failedResources = {};\n\tvar MAX_HISTORY = 5;\n\t\n\t// Prefetcher logic\n\tif (true) {\n\t prefetcher = __webpack_require__(217)({\n\t getNextQueuedResources: function getNextQueuedResources() {\n\t return resourcesArray.slice(-1)[0];\n\t },\n\t createResourceDownload: function createResourceDownload(resourceName) {\n\t fetchResource(resourceName, function () {\n\t resourcesArray = resourcesArray.filter(function (r) {\n\t return r !== resourceName;\n\t });\n\t prefetcher.onResourcedFinished(resourceName);\n\t });\n\t }\n\t });\n\t _emitter2.default.on(\"onPreLoadPageResources\", function (e) {\n\t prefetcher.onPreLoadPageResources(e);\n\t });\n\t _emitter2.default.on(\"onPostLoadPageResources\", function (e) {\n\t prefetcher.onPostLoadPageResources(e);\n\t });\n\t}\n\t\n\tvar sortResourcesByCount = function sortResourcesByCount(a, b) {\n\t if (resourcesCount[a] > resourcesCount[b]) {\n\t return 1;\n\t } else if (resourcesCount[a] < resourcesCount[b]) {\n\t return -1;\n\t } else {\n\t return 0;\n\t }\n\t};\n\t\n\tvar sortPagesByCount = function sortPagesByCount(a, b) {\n\t if (pathCount[a] > pathCount[b]) {\n\t return 1;\n\t } else if (pathCount[a] < pathCount[b]) {\n\t return -1;\n\t } else {\n\t return 0;\n\t }\n\t};\n\t\n\tvar fetchResource = function fetchResource(resourceName) {\n\t var cb = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};\n\t\n\t if (resourceStrCache[resourceName]) {\n\t process.nextTick(function () {\n\t cb(null, resourceStrCache[resourceName]);\n\t });\n\t } else {\n\t // Find resource\n\t var resourceFunction = void 0;\n\t if (resourceName.slice(0, 12) === \"component---\") {\n\t resourceFunction = asyncRequires.components[resourceName];\n\t } else if (resourceName.slice(0, 9) === \"layout---\") {\n\t resourceFunction = asyncRequires.layouts[resourceName];\n\t } else {\n\t resourceFunction = asyncRequires.json[resourceName];\n\t }\n\t\n\t // Download the resource\n\t resourceFunction(function (err, executeChunk) {\n\t resourceStrCache[resourceName] = executeChunk;\n\t fetchHistory.push({\n\t resource: resourceName,\n\t succeeded: !err\n\t });\n\t\n\t if (!failedResources[resourceName]) {\n\t failedResources[resourceName] = err;\n\t }\n\t\n\t fetchHistory = fetchHistory.slice(-MAX_HISTORY);\n\t cb(err, executeChunk);\n\t });\n\t }\n\t};\n\t\n\tvar getResourceModule = function getResourceModule(resourceName, cb) {\n\t if (resourceCache[resourceName]) {\n\t process.nextTick(function () {\n\t cb(null, resourceCache[resourceName]);\n\t });\n\t } else if (failedResources[resourceName]) {\n\t process.nextTick(function () {\n\t cb(failedResources[resourceName]);\n\t });\n\t } else {\n\t fetchResource(resourceName, function (err, executeChunk) {\n\t if (err) {\n\t cb(err);\n\t } else {\n\t var module = preferDefault(executeChunk());\n\t resourceCache[resourceName] = module;\n\t cb(err, module);\n\t }\n\t });\n\t }\n\t};\n\t\n\tvar appearsOnLine = function appearsOnLine() {\n\t var isOnLine = navigator.onLine;\n\t if (typeof isOnLine === \"boolean\") {\n\t return isOnLine;\n\t }\n\t\n\t // If no navigator.onLine support assume onLine if any of last N fetches succeeded\n\t var succeededFetch = fetchHistory.find(function (entry) {\n\t return entry.succeeded;\n\t });\n\t return !!succeededFetch;\n\t};\n\t\n\tvar handleResourceLoadError = function handleResourceLoadError(path, message) {\n\t console.log(message);\n\t\n\t if (!failedPaths[path]) {\n\t failedPaths[path] = message;\n\t }\n\t\n\t if (appearsOnLine() && window.location.pathname.replace(/\\/$/g, \"\") !== path.replace(/\\/$/g, \"\")) {\n\t window.location.pathname = path;\n\t }\n\t};\n\t\n\tvar mountOrder = 1;\n\tvar queue = {\n\t empty: function empty() {\n\t pathArray = [];\n\t pathCount = {};\n\t resourcesCount = {};\n\t resourcesArray = [];\n\t pages = [];\n\t pathPrefix = \"\";\n\t },\n\t addPagesArray: function addPagesArray(newPages) {\n\t pages = newPages;\n\t if (true) {\n\t if (false) pathPrefix = __PATH_PREFIX__;\n\t }\n\t findPage = (0, _findPage2.default)(newPages, pathPrefix);\n\t },\n\t addDevRequires: function addDevRequires(devRequires) {\n\t syncRequires = devRequires;\n\t },\n\t addProdRequires: function addProdRequires(prodRequires) {\n\t asyncRequires = prodRequires;\n\t },\n\t dequeue: function dequeue() {\n\t return pathArray.pop();\n\t },\n\t enqueue: function enqueue(rawPath) {\n\t // Check page exists.\n\t var path = (0, _stripPrefix2.default)(rawPath, pathPrefix);\n\t if (!pages.some(function (p) {\n\t return p.path === path;\n\t })) {\n\t return false;\n\t }\n\t\n\t var mountOrderBoost = 1 / mountOrder;\n\t mountOrder += 1;\n\t // console.log(\n\t // `enqueue \"${path}\", mountOrder: \"${mountOrder}, mountOrderBoost: ${mountOrderBoost}`\n\t // )\n\t\n\t // Add to path counts.\n\t if (!pathCount[path]) {\n\t pathCount[path] = 1;\n\t } else {\n\t pathCount[path] += 1;\n\t }\n\t\n\t // Add path to queue.\n\t if (!queue.has(path)) {\n\t pathArray.unshift(path);\n\t }\n\t\n\t // Sort pages by pathCount\n\t pathArray.sort(sortPagesByCount);\n\t\n\t // Add resources to queue.\n\t var page = findPage(path);\n\t if (page.jsonName) {\n\t if (!resourcesCount[page.jsonName]) {\n\t resourcesCount[page.jsonName] = 1 + mountOrderBoost;\n\t } else {\n\t resourcesCount[page.jsonName] += 1 + mountOrderBoost;\n\t }\n\t\n\t // Before adding, checking that the JSON resource isn't either\n\t // already queued or been downloading.\n\t if (resourcesArray.indexOf(page.jsonName) === -1 && !resourceStrCache[page.jsonName]) {\n\t resourcesArray.unshift(page.jsonName);\n\t }\n\t }\n\t if (page.componentChunkName) {\n\t if (!resourcesCount[page.componentChunkName]) {\n\t resourcesCount[page.componentChunkName] = 1 + mountOrderBoost;\n\t } else {\n\t resourcesCount[page.componentChunkName] += 1 + mountOrderBoost;\n\t }\n\t\n\t // Before adding, checking that the component resource isn't either\n\t // already queued or been downloading.\n\t if (resourcesArray.indexOf(page.componentChunkName) === -1 && !resourceStrCache[page.jsonName]) {\n\t resourcesArray.unshift(page.componentChunkName);\n\t }\n\t }\n\t\n\t // Sort resources by resourcesCount.\n\t resourcesArray.sort(sortResourcesByCount);\n\t if (true) {\n\t prefetcher.onNewResourcesAdded();\n\t }\n\t\n\t return true;\n\t },\n\t getResources: function getResources() {\n\t return {\n\t resourcesArray: resourcesArray,\n\t resourcesCount: resourcesCount\n\t };\n\t },\n\t getPages: function getPages() {\n\t return {\n\t pathArray: pathArray,\n\t pathCount: pathCount\n\t };\n\t },\n\t getPage: function getPage(pathname) {\n\t return findPage(pathname);\n\t },\n\t has: function has(path) {\n\t return pathArray.some(function (p) {\n\t return p === path;\n\t });\n\t },\n\t getResourcesForPathname: function getResourcesForPathname(path) {\n\t var cb = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};\n\t\n\t if (inInitialRender && navigator && navigator.serviceWorker && navigator.serviceWorker.controller && navigator.serviceWorker.controller.state === \"activated\") {\n\t // If we're loading from a service worker (it's already activated on\n\t // this initial render) and we can't find a page, there's a good chance\n\t // we're on a new page that this (now old) service worker doesn't know\n\t // about so we'll unregister it and reload.\n\t if (!findPage(path)) {\n\t navigator.serviceWorker.getRegistrations().then(function (registrations) {\n\t // We would probably need this to\n\t // prevent unnecessary reloading of the page\n\t // while unregistering of ServiceWorker is not happening\n\t if (registrations.length) {\n\t for (var _iterator = registrations, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n\t var _ref;\n\t\n\t if (_isArray) {\n\t if (_i >= _iterator.length) break;\n\t _ref = _iterator[_i++];\n\t } else {\n\t _i = _iterator.next();\n\t if (_i.done) break;\n\t _ref = _i.value;\n\t }\n\t\n\t var registration = _ref;\n\t\n\t registration.unregister();\n\t }\n\t window.location.reload();\n\t }\n\t });\n\t }\n\t }\n\t inInitialRender = false;\n\t // In development we know the code is loaded already\n\t // so we just return with it immediately.\n\t if (false) {\n\t var page = findPage(path);\n\t if (!page) return cb();\n\t var pageResources = {\n\t component: syncRequires.components[page.componentChunkName],\n\t json: syncRequires.json[page.jsonName],\n\t layout: syncRequires.layouts[page.layout],\n\t page: page\n\t };\n\t cb(pageResources);\n\t return pageResources;\n\t // Production code path\n\t } else {\n\t if (failedPaths[path]) {\n\t handleResourceLoadError(path, \"Previously detected load failure for \\\"\" + path + \"\\\"\");\n\t\n\t return cb();\n\t }\n\t\n\t var _page = findPage(path);\n\t\n\t if (!_page) {\n\t handleResourceLoadError(path, \"A page wasn't found for \\\"\" + path + \"\\\"\");\n\t\n\t return cb();\n\t }\n\t\n\t // Use the path from the page so the pathScriptsCache uses\n\t // the normalized path.\n\t path = _page.path;\n\t\n\t // Check if it's in the cache already.\n\t if (pathScriptsCache[path]) {\n\t process.nextTick(function () {\n\t cb(pathScriptsCache[path]);\n\t _emitter2.default.emit(\"onPostLoadPageResources\", {\n\t page: _page,\n\t pageResources: pathScriptsCache[path]\n\t });\n\t });\n\t return pathScriptsCache[path];\n\t }\n\t\n\t _emitter2.default.emit(\"onPreLoadPageResources\", { path: path });\n\t // Nope, we need to load resource(s)\n\t var component = void 0;\n\t var json = void 0;\n\t var layout = void 0;\n\t // Load the component/json/layout and parallel and call this\n\t // function when they're done loading. When both are loaded,\n\t // we move on.\n\t var done = function done() {\n\t if (component && json && (!_page.layoutComponentChunkName || layout)) {\n\t pathScriptsCache[path] = { component: component, json: json, layout: layout, page: _page };\n\t var _pageResources = { component: component, json: json, layout: layout, page: _page };\n\t cb(_pageResources);\n\t _emitter2.default.emit(\"onPostLoadPageResources\", {\n\t page: _page,\n\t pageResources: _pageResources\n\t });\n\t }\n\t };\n\t getResourceModule(_page.componentChunkName, function (err, c) {\n\t if (err) {\n\t handleResourceLoadError(_page.path, \"Loading the component for \" + _page.path + \" failed\");\n\t }\n\t component = c;\n\t done();\n\t });\n\t getResourceModule(_page.jsonName, function (err, j) {\n\t if (err) {\n\t handleResourceLoadError(_page.path, \"Loading the JSON for \" + _page.path + \" failed\");\n\t }\n\t json = j;\n\t done();\n\t });\n\t\n\t _page.layoutComponentChunkName && getResourceModule(_page.layout, function (err, l) {\n\t if (err) {\n\t handleResourceLoadError(_page.path, \"Loading the Layout for \" + _page.path + \" failed\");\n\t }\n\t layout = l;\n\t done();\n\t });\n\t\n\t return undefined;\n\t }\n\t },\n\t peek: function peek(path) {\n\t return pathArray.slice(-1)[0];\n\t },\n\t length: function length() {\n\t return pathArray.length;\n\t },\n\t indexOf: function indexOf(path) {\n\t return pathArray.length - pathArray.indexOf(path) - 1;\n\t }\n\t};\n\t\n\tvar publicLoader = exports.publicLoader = {\n\t getResourcesForPathname: queue.getResourcesForPathname\n\t};\n\t\n\texports.default = queue;\n\t/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(121)))\n\n/***/ }),\n\n/***/ 347:\n/***/ (function(module, exports) {\n\n\tmodule.exports = [{\"componentChunkName\":\"component---src-pages-404-js\",\"layout\":\"layout---index\",\"layoutComponentChunkName\":\"component---src-layouts-index-js\",\"jsonName\":\"404.json\",\"path\":\"/404/\"},{\"componentChunkName\":\"component---src-pages-challenge-js\",\"layout\":\"layout---index\",\"layoutComponentChunkName\":\"component---src-layouts-index-js\",\"jsonName\":\"challenge.json\",\"path\":\"/challenge/\"},{\"componentChunkName\":\"component---src-pages-index-js\",\"layout\":\"layout---index\",\"layoutComponentChunkName\":\"component---src-layouts-index-js\",\"jsonName\":\"index.json\",\"path\":\"/\"},{\"componentChunkName\":\"component---src-pages-404-js\",\"layout\":\"layout---index\",\"layoutComponentChunkName\":\"component---src-layouts-index-js\",\"jsonName\":\"404-html.json\",\"path\":\"/404.html\"}]\n\n/***/ }),\n\n/***/ 217:\n/***/ (function(module, exports) {\n\n\t\"use strict\";\n\t\n\tmodule.exports = function (_ref) {\n\t var getNextQueuedResources = _ref.getNextQueuedResources,\n\t createResourceDownload = _ref.createResourceDownload;\n\t\n\t var pagesLoading = [];\n\t var resourcesDownloading = [];\n\t\n\t // Do things\n\t var startResourceDownloading = function startResourceDownloading() {\n\t var nextResource = getNextQueuedResources();\n\t if (nextResource) {\n\t resourcesDownloading.push(nextResource);\n\t createResourceDownload(nextResource);\n\t }\n\t };\n\t\n\t var reducer = function reducer(action) {\n\t switch (action.type) {\n\t case \"RESOURCE_FINISHED\":\n\t resourcesDownloading = resourcesDownloading.filter(function (r) {\n\t return r !== action.payload;\n\t });\n\t break;\n\t case \"ON_PRE_LOAD_PAGE_RESOURCES\":\n\t pagesLoading.push(action.payload.path);\n\t break;\n\t case \"ON_POST_LOAD_PAGE_RESOURCES\":\n\t pagesLoading = pagesLoading.filter(function (p) {\n\t return p !== action.payload.page.path;\n\t });\n\t break;\n\t case \"ON_NEW_RESOURCES_ADDED\":\n\t break;\n\t }\n\t\n\t // Take actions.\n\t // Wait for event loop queue to finish.\n\t setTimeout(function () {\n\t if (resourcesDownloading.length === 0 && pagesLoading.length === 0) {\n\t // Start another resource downloading.\n\t startResourceDownloading();\n\t }\n\t }, 0);\n\t };\n\t\n\t return {\n\t onResourcedFinished: function onResourcedFinished(event) {\n\t // Tell prefetcher that the resource finished downloading\n\t // so it can grab the next one.\n\t reducer({ type: \"RESOURCE_FINISHED\", payload: event });\n\t },\n\t onPreLoadPageResources: function onPreLoadPageResources(event) {\n\t // Tell prefetcher a page load has started so it should stop\n\t // loading anything new\n\t reducer({ type: \"ON_PRE_LOAD_PAGE_RESOURCES\", payload: event });\n\t },\n\t onPostLoadPageResources: function onPostLoadPageResources(event) {\n\t // Tell prefetcher a page load has finished so it should start\n\t // loading resources again.\n\t reducer({ type: \"ON_POST_LOAD_PAGE_RESOURCES\", payload: event });\n\t },\n\t onNewResourcesAdded: function onNewResourcesAdded() {\n\t // Tell prefetcher that more resources to be downloaded have\n\t // been added.\n\t reducer({ type: \"ON_NEW_RESOURCES_ADDED\" });\n\t },\n\t getState: function getState() {\n\t return { pagesLoading: pagesLoading, resourcesDownloading: resourcesDownloading };\n\t },\n\t empty: function empty() {\n\t pagesLoading = [];\n\t resourcesDownloading = [];\n\t }\n\t };\n\t};\n\n/***/ }),\n\n/***/ 0:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\t\n\tvar _apiRunnerBrowser = __webpack_require__(138);\n\t\n\tvar _react = __webpack_require__(4);\n\t\n\tvar _react2 = _interopRequireDefault(_react);\n\t\n\tvar _reactDom = __webpack_require__(205);\n\t\n\tvar _reactDom2 = _interopRequireDefault(_reactDom);\n\t\n\tvar _reactRouterDom = __webpack_require__(136);\n\t\n\tvar _gatsbyReactRouterScroll = __webpack_require__(340);\n\t\n\tvar _domready = __webpack_require__(322);\n\t\n\tvar _domready2 = _interopRequireDefault(_domready);\n\t\n\tvar _history = __webpack_require__(39);\n\t\n\tvar _history2 = __webpack_require__(215);\n\t\n\tvar _history3 = _interopRequireDefault(_history2);\n\t\n\tvar _emitter = __webpack_require__(122);\n\t\n\tvar _emitter2 = _interopRequireDefault(_emitter);\n\t\n\tvar _pages = __webpack_require__(347);\n\t\n\tvar _pages2 = _interopRequireDefault(_pages);\n\t\n\tvar _redirects = __webpack_require__(348);\n\t\n\tvar _redirects2 = _interopRequireDefault(_redirects);\n\t\n\tvar _componentRenderer = __webpack_require__(213);\n\t\n\tvar _componentRenderer2 = _interopRequireDefault(_componentRenderer);\n\t\n\tvar _asyncRequires = __webpack_require__(212);\n\t\n\tvar _asyncRequires2 = _interopRequireDefault(_asyncRequires);\n\t\n\tvar _loader = __webpack_require__(172);\n\t\n\tvar _loader2 = _interopRequireDefault(_loader);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tif (true) {\n\t __webpack_require__(237);\n\t}\n\t\n\twindow.___history = _history3.default;\n\t\n\twindow.___emitter = _emitter2.default;\n\t\n\t_loader2.default.addPagesArray(_pages2.default);\n\t_loader2.default.addProdRequires(_asyncRequires2.default);\n\twindow.asyncRequires = _asyncRequires2.default;\n\twindow.___loader = _loader2.default;\n\twindow.matchPath = _reactRouterDom.matchPath;\n\t\n\t// Convert to a map for faster lookup in maybeRedirect()\n\tvar redirectMap = _redirects2.default.reduce(function (map, redirect) {\n\t map[redirect.fromPath] = redirect;\n\t return map;\n\t}, {});\n\t\n\tvar maybeRedirect = function maybeRedirect(pathname) {\n\t var redirect = redirectMap[pathname];\n\t\n\t if (redirect != null) {\n\t _history3.default.replace(redirect.toPath);\n\t return true;\n\t } else {\n\t return false;\n\t }\n\t};\n\t\n\t// Check for initial page-load redirect\n\tmaybeRedirect(window.location.pathname);\n\t\n\t// Let the site/plugins run code very early.\n\t(0, _apiRunnerBrowser.apiRunnerAsync)(\"onClientEntry\").then(function () {\n\t // Let plugins register a service worker. The plugin just needs\n\t // to return true.\n\t if ((0, _apiRunnerBrowser.apiRunner)(\"registerServiceWorker\").length > 0) {\n\t __webpack_require__(218);\n\t }\n\t\n\t var navigateTo = function navigateTo(to) {\n\t var location = (0, _history.createLocation)(to, null, null, _history3.default.location);\n\t var pathname = location.pathname;\n\t\n\t var redirect = redirectMap[pathname];\n\t\n\t // If we're redirecting, just replace the passed in pathname\n\t // to the one we want to redirect to.\n\t if (redirect) {\n\t pathname = redirect.toPath;\n\t }\n\t var wl = window.location;\n\t\n\t // If we're already at this location, do nothing.\n\t if (wl.pathname === location.pathname && wl.search === location.search && wl.hash === location.hash) {\n\t return;\n\t }\n\t\n\t // Listen to loading events. If page resources load before\n\t // a second, navigate immediately.\n\t function eventHandler(e) {\n\t if (e.page.path === _loader2.default.getPage(pathname).path) {\n\t _emitter2.default.off(\"onPostLoadPageResources\", eventHandler);\n\t clearTimeout(timeoutId);\n\t window.___history.push(location);\n\t }\n\t }\n\t\n\t // Start a timer to wait for a second before transitioning and showing a\n\t // loader in case resources aren't around yet.\n\t var timeoutId = setTimeout(function () {\n\t _emitter2.default.off(\"onPostLoadPageResources\", eventHandler);\n\t _emitter2.default.emit(\"onDelayedLoadPageResources\", { pathname: pathname });\n\t window.___history.push(location);\n\t }, 1000);\n\t\n\t if (_loader2.default.getResourcesForPathname(pathname)) {\n\t // The resources are already loaded so off we go.\n\t clearTimeout(timeoutId);\n\t window.___history.push(location);\n\t } else {\n\t // They're not loaded yet so let's add a listener for when\n\t // they finish loading.\n\t _emitter2.default.on(\"onPostLoadPageResources\", eventHandler);\n\t }\n\t };\n\t\n\t // window.___loadScriptsForPath = loadScriptsForPath\n\t window.___navigateTo = navigateTo;\n\t\n\t // Call onRouteUpdate on the initial page load.\n\t (0, _apiRunnerBrowser.apiRunner)(\"onRouteUpdate\", {\n\t location: _history3.default.location,\n\t action: _history3.default.action\n\t });\n\t\n\t var initialAttachDone = false;\n\t function attachToHistory(history) {\n\t if (!window.___history || initialAttachDone === false) {\n\t window.___history = history;\n\t initialAttachDone = true;\n\t\n\t history.listen(function (location, action) {\n\t if (!maybeRedirect(location.pathname)) {\n\t // Make sure React has had a chance to flush to DOM first.\n\t setTimeout(function () {\n\t (0, _apiRunnerBrowser.apiRunner)(\"onRouteUpdate\", { location: location, action: action });\n\t }, 0);\n\t }\n\t });\n\t }\n\t }\n\t\n\t function shouldUpdateScroll(prevRouterProps, _ref) {\n\t var pathname = _ref.location.pathname;\n\t\n\t var results = (0, _apiRunnerBrowser.apiRunner)(\"shouldUpdateScroll\", {\n\t prevRouterProps: prevRouterProps,\n\t pathname: pathname\n\t });\n\t if (results.length > 0) {\n\t return results[0];\n\t }\n\t\n\t if (prevRouterProps) {\n\t var oldPathname = prevRouterProps.location.pathname;\n\t\n\t if (oldPathname === pathname) {\n\t return false;\n\t }\n\t }\n\t return true;\n\t }\n\t\n\t var AltRouter = (0, _apiRunnerBrowser.apiRunner)(\"replaceRouterComponent\", { history: _history3.default })[0];\n\t var DefaultRouter = function DefaultRouter(_ref2) {\n\t var children = _ref2.children;\n\t return _react2.default.createElement(\n\t _reactRouterDom.Router,\n\t { history: _history3.default },\n\t children\n\t );\n\t };\n\t\n\t var ComponentRendererWithRouter = (0, _reactRouterDom.withRouter)(_componentRenderer2.default);\n\t\n\t _loader2.default.getResourcesForPathname(window.location.pathname, function () {\n\t var Root = function Root() {\n\t return (0, _react.createElement)(AltRouter ? AltRouter : DefaultRouter, null, (0, _react.createElement)(_gatsbyReactRouterScroll.ScrollContext, { shouldUpdateScroll: shouldUpdateScroll }, (0, _react.createElement)(ComponentRendererWithRouter, {\n\t layout: true,\n\t children: function children(layoutProps) {\n\t return (0, _react.createElement)(_reactRouterDom.Route, {\n\t render: function render(routeProps) {\n\t attachToHistory(routeProps.history);\n\t var props = layoutProps ? layoutProps : routeProps;\n\t\n\t if (_loader2.default.getPage(props.location.pathname)) {\n\t return (0, _react.createElement)(_componentRenderer2.default, _extends({\n\t page: true\n\t }, props));\n\t } else {\n\t return (0, _react.createElement)(_componentRenderer2.default, {\n\t page: true,\n\t location: { pathname: \"/404.html\" }\n\t });\n\t }\n\t }\n\t });\n\t }\n\t })));\n\t };\n\t\n\t var NewRoot = (0, _apiRunnerBrowser.apiRunner)(\"wrapRootComponent\", { Root: Root }, Root)[0];\n\t (0, _domready2.default)(function () {\n\t return _reactDom2.default.render(_react2.default.createElement(NewRoot, null), typeof window !== \"undefined\" ? document.getElementById(\"___gatsby\") : void 0, function () {\n\t (0, _apiRunnerBrowser.apiRunner)(\"onInitialClientRender\");\n\t });\n\t });\n\t });\n\t});\n\n/***/ }),\n\n/***/ 348:\n/***/ (function(module, exports) {\n\n\tmodule.exports = []\n\n/***/ }),\n\n/***/ 218:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tvar _emitter = __webpack_require__(122);\n\t\n\tvar _emitter2 = _interopRequireDefault(_emitter);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tvar pathPrefix = \"/\";\n\tif (false) {\n\t pathPrefix = __PATH_PREFIX__ + \"/\";\n\t}\n\t\n\tif (\"serviceWorker\" in navigator) {\n\t navigator.serviceWorker.register(pathPrefix + \"sw.js\").then(function (reg) {\n\t reg.addEventListener(\"updatefound\", function () {\n\t // The updatefound event implies that reg.installing is set; see\n\t // https://w3c.github.io/ServiceWorker/#service-worker-registration-updatefound-event\n\t var installingWorker = reg.installing;\n\t console.log(\"installingWorker\", installingWorker);\n\t installingWorker.addEventListener(\"statechange\", function () {\n\t switch (installingWorker.state) {\n\t case \"installed\":\n\t if (navigator.serviceWorker.controller) {\n\t // At this point, the old content will have been purged and the fresh content will\n\t // have been added to the cache.\n\t // We reload immediately so the user sees the new content.\n\t // This could/should be made configurable in the future.\n\t window.location.reload();\n\t } else {\n\t // At this point, everything has been precached.\n\t // It's the perfect time to display a \"Content is cached for offline use.\" message.\n\t console.log(\"Content is now available offline!\");\n\t _emitter2.default.emit(\"sw:installed\");\n\t }\n\t break;\n\t\n\t case \"redundant\":\n\t console.error(\"The installing service worker became redundant.\");\n\t break;\n\t }\n\t });\n\t });\n\t }).catch(function (e) {\n\t console.error(\"Error during service worker registration:\", e);\n\t });\n\t}\n\n/***/ }),\n\n/***/ 173:\n/***/ (function(module, exports) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t\n\t/**\n\t * Remove a prefix from a string. Return the input string if the given prefix\n\t * isn't found.\n\t */\n\t\n\texports.default = function (str) {\n\t var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"\";\n\t\n\t if (str.substr(0, prefix.length) === prefix) return str.slice(prefix.length);\n\t return str;\n\t};\n\t\n\tmodule.exports = exports[\"default\"];\n\n/***/ }),\n\n/***/ 322:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t/*!\n\t * domready (c) Dustin Diaz 2014 - License MIT\n\t */\n\t!function (name, definition) {\n\t\n\t if (true) module.exports = definition()\n\t else if (typeof define == 'function' && typeof define.amd == 'object') define(definition)\n\t else this[name] = definition()\n\t\n\t}('domready', function () {\n\t\n\t var fns = [], listener\n\t , doc = document\n\t , hack = doc.documentElement.doScroll\n\t , domContentLoaded = 'DOMContentLoaded'\n\t , loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState)\n\t\n\t\n\t if (!loaded)\n\t doc.addEventListener(domContentLoaded, listener = function () {\n\t doc.removeEventListener(domContentLoaded, listener)\n\t loaded = 1\n\t while (listener = fns.shift()) listener()\n\t })\n\t\n\t return function (fn) {\n\t loaded ? setTimeout(fn, 0) : fns.push(fn)\n\t }\n\t\n\t});\n\n\n/***/ }),\n\n/***/ 33:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\t/* global document: false, __webpack_require__: false */\n\tpatch();\n\t\n\tfunction patch() {\n\t var head = document.querySelector(\"head\");\n\t var ensure = __webpack_require__.e;\n\t var chunks = __webpack_require__.s;\n\t var failures;\n\t\n\t __webpack_require__.e = function (chunkId, callback) {\n\t var loaded = false;\n\t var immediate = true;\n\t\n\t var handler = function handler(error) {\n\t if (!callback) return;\n\t\n\t callback(__webpack_require__, error);\n\t callback = null;\n\t };\n\t\n\t if (!chunks && failures && failures[chunkId]) {\n\t handler(true);\n\t return;\n\t }\n\t\n\t ensure(chunkId, function () {\n\t if (loaded) return;\n\t loaded = true;\n\t\n\t if (immediate) {\n\t // webpack fires callback immediately if chunk was already loaded\n\t // IE also fires callback immediately if script was already\n\t // in a cache (AppCache counts too)\n\t setTimeout(function () {\n\t handler();\n\t });\n\t } else {\n\t handler();\n\t }\n\t });\n\t\n\t // This is |true| if chunk is already loaded and does not need onError call.\n\t // This happens because in such case ensure() is performed in sync way\n\t if (loaded) {\n\t return;\n\t }\n\t\n\t immediate = false;\n\t\n\t onError(function () {\n\t if (loaded) return;\n\t loaded = true;\n\t\n\t if (chunks) {\n\t chunks[chunkId] = void 0;\n\t } else {\n\t failures || (failures = {});\n\t failures[chunkId] = true;\n\t }\n\t\n\t handler(true);\n\t });\n\t };\n\t\n\t function onError(callback) {\n\t var script = head.lastChild;\n\t\n\t if (script.tagName !== \"SCRIPT\") {\n\t if (typeof console !== \"undefined\" && console.warn) {\n\t console.warn(\"Script is not a script\", script);\n\t }\n\t\n\t return;\n\t }\n\t\n\t script.onload = script.onerror = function () {\n\t script.onload = script.onerror = null;\n\t setTimeout(callback, 0);\n\t };\n\t }\n\t}\n\n/***/ }),\n\n/***/ 349:\n/***/ (function(module, exports) {\n\n\tfunction n(n){return n=n||Object.create(null),{on:function(c,e){(n[c]||(n[c]=[])).push(e)},off:function(c,e){n[c]&&n[c].splice(n[c].indexOf(e)>>>0,1)},emit:function(c,e){(n[c]||[]).slice().map(function(n){n(e)}),(n[\"*\"]||[]).slice().map(function(n){n(c,e)})}}}module.exports=n;\n\t//# sourceMappingURL=mitt.js.map\n\n/***/ }),\n\n/***/ 379:\n/***/ (function(module, exports) {\n\n\t/** @license React v16.5.2\n\t * schedule.production.min.js\n\t *\n\t * Copyright (c) Facebook, Inc. and its affiliates.\n\t *\n\t * This source code is licensed under the MIT license found in the\n\t * LICENSE file in the root directory of this source tree.\n\t */\n\t\n\t'use strict';Object.defineProperty(exports,\"__esModule\",{value:!0});var c=null,e=!1,f=!1,g=\"object\"===typeof performance&&\"function\"===typeof performance.now,l={timeRemaining:g?function(){var a=h()-performance.now();return 0<a?a:0}:function(){var a=h()-Date.now();return 0<a?a:0},didTimeout:!1};function m(){if(!e){var a=c.timesOutAt;f?n():f=!0;p(q,a)}}function r(){var a=c,b=c.next;if(c===b)c=null;else{var d=c.previous;c=d.next=b;b.previous=d}a.next=a.previous=null;a=a.callback;a(l)}\n\tfunction q(a){e=!0;l.didTimeout=a;try{if(a)for(;null!==c;){var b=exports.unstable_now();if(c.timesOutAt<=b){do r();while(null!==c&&c.timesOutAt<=b)}else break}else if(null!==c){do r();while(null!==c&&0<h()-exports.unstable_now())}}finally{e=!1,null!==c?m(c):f=!1}}\n\tvar t=Date,u=\"function\"===typeof setTimeout?setTimeout:void 0,v=\"function\"===typeof clearTimeout?clearTimeout:void 0,w=\"function\"===typeof requestAnimationFrame?requestAnimationFrame:void 0,x=\"function\"===typeof cancelAnimationFrame?cancelAnimationFrame:void 0,y,z;function A(a){y=w(function(b){v(z);a(b)});z=u(function(){x(y);a(exports.unstable_now())},100)}if(g){var B=performance;exports.unstable_now=function(){return B.now()}}else exports.unstable_now=function(){return t.now()};var p,n,h;\n\tif(\"undefined\"===typeof window){var C=-1;p=function(a){C=setTimeout(a,0,!0)};n=function(){clearTimeout(C)};h=function(){return 0}}else if(window._schedMock){var D=window._schedMock;p=D[0];n=D[1];h=D[2]}else{\"undefined\"!==typeof console&&(\"function\"!==typeof w&&console.error(\"This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills\"),\"function\"!==typeof x&&console.error(\"This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills\"));\n\tvar E=null,F=!1,G=-1,H=!1,I=!1,J=0,K=33,L=33;h=function(){return J};var M=\"__reactIdleCallback$\"+Math.random().toString(36).slice(2);window.addEventListener(\"message\",function(a){if(a.source===window&&a.data===M){F=!1;var b=exports.unstable_now();a=!1;if(0>=J-b)if(-1!==G&&G<=b)a=!0;else{H||(H=!0,A(N));return}G=-1;b=E;E=null;if(null!==b){I=!0;try{b(a)}finally{I=!1}}}},!1);var N=function(a){H=!1;var b=a-J+L;b<L&&K<L?(8>b&&(b=8),L=b<K?K:b):K=b;J=a+L;F||(F=!0,window.postMessage(M,\"*\"))};p=function(a,\n\tb){E=a;G=b;I?window.postMessage(M,\"*\"):H||(H=!0,A(N))};n=function(){E=null;F=!1;G=-1}}exports.unstable_scheduleWork=function(a,b){var d=exports.unstable_now();b=void 0!==b&&null!==b&&null!==b.timeout&&void 0!==b.timeout?d+b.timeout:d+5E3;a={callback:a,timesOutAt:b,next:null,previous:null};if(null===c)c=a.next=a.previous=a,m(c);else{d=null;var k=c;do{if(k.timesOutAt>b){d=k;break}k=k.next}while(k!==c);null===d?d=c:d===c&&(c=a,m(c));b=d.previous;b.next=d.previous=a;a.next=d;a.previous=b}return a};\n\texports.unstable_cancelScheduledWork=function(a){var b=a.next;if(null!==b){if(b===a)c=null;else{a===c&&(c=b);var d=a.previous;d.next=b;b.previous=d}a.next=a.previous=null}};\n\n\n/***/ }),\n\n/***/ 380:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tif (true) {\n\t module.exports = __webpack_require__(379);\n\t} else {\n\t module.exports = require('./cjs/schedule.development.js');\n\t}\n\n\n/***/ }),\n\n/***/ 383:\n/***/ (function(module, exports) {\n\n\t\"use strict\";\n\t\n\texports.__esModule = true;\n\t// Pulled from react-compat\n\t// https://github.com/developit/preact-compat/blob/7c5de00e7c85e2ffd011bf3af02899b63f699d3a/src/index.js#L349\n\tfunction shallowDiffers(a, b) {\n\t for (var i in a) {\n\t if (!(i in b)) return true;\n\t }for (var _i in b) {\n\t if (a[_i] !== b[_i]) return true;\n\t }return false;\n\t}\n\t\n\texports.default = function (instance, nextProps, nextState) {\n\t return shallowDiffers(instance.props, nextProps) || shallowDiffers(instance.state, nextState);\n\t};\n\t\n\tmodule.exports = exports[\"default\"];\n\n/***/ }),\n\n/***/ 329:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(\n\t 33\n\t );\n\t module.exports = function(cb) { return __webpack_require__.e/* nsure */(162898551421021, function(_, error) {\n\t if (error) {\n\t console.log('bundle loading error', error)\n\t cb(true)\n\t } else {\n\t cb(null, function() { return __webpack_require__(224) })\n\t }\n\t });\n\t }\n\t \n\n/***/ }),\n\n/***/ 330:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(\n\t 33\n\t );\n\t module.exports = function(cb) { return __webpack_require__.e/* nsure */(95570949031736, function(_, error) {\n\t if (error) {\n\t console.log('bundle loading error', error)\n\t cb(true)\n\t } else {\n\t cb(null, function() { return __webpack_require__(225) })\n\t }\n\t });\n\t }\n\t \n\n/***/ }),\n\n/***/ 331:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t__webpack_require__(\n\t 33\n\t );\n\t module.exports = function(cb) { return __webpack_require__.e/* nsure */(35783957827783, function(_, error) {\n\t if (error) {\n\t console.log('bundle loading error', error)\n\t cb(true)\n\t } else {\n\t cb(null, function() { return __webpack_require__(226) })\n\t }\n\t });\n\t }\n\t \n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// app-22ae9095a376cc2620f7.js","var plugins = []\n// During bootstrap, we write requires at top of this file which looks\n// basically like:\n// var plugins = [\n// {\n// plugin: require(\"/path/to/plugin1/gatsby-browser.js\"),\n// options: { ... },\n// },\n// {\n// plugin: require(\"/path/to/plugin2/gatsby-browser.js\"),\n// options: { ... },\n// },\n// ]\n\nexport function apiRunner(api, args, defaultReturn) {\n let results = plugins.map(plugin => {\n if (plugin.plugin[api]) {\n const result = plugin.plugin[api](args, plugin.options)\n return result\n }\n })\n\n // Filter out undefined results.\n results = results.filter(result => typeof result !== `undefined`)\n\n if (results.length > 0) {\n return results\n } else if (defaultReturn) {\n return [defaultReturn]\n } else {\n return []\n }\n}\n\nexport function apiRunnerAsync(api, args, defaultReturn) {\n return plugins.reduce(\n (previous, next) =>\n next.plugin[api]\n ? previous.then(() => next.plugin[api](args, next.options))\n : previous,\n Promise.resolve()\n )\n}\n\n\n\n// WEBPACK FOOTER //\n// ./.cache/api-runner-browser.js","// prefer default export if available\nconst preferDefault = m => m && m.default || m\n\nexports.components = {\n \"component---src-pages-404-js\": require(\"gatsby-module-loader?name=component---src-pages-404-js!/Users/lachlanjc/src/schacks-site/src/pages/404.js\"),\n \"component---src-pages-challenge-js\": require(\"gatsby-module-loader?name=component---src-pages-challenge-js!/Users/lachlanjc/src/schacks-site/src/pages/challenge.js\"),\n \"component---src-pages-index-js\": require(\"gatsby-module-loader?name=component---src-pages-index-js!/Users/lachlanjc/src/schacks-site/src/pages/index.js\")\n}\n\nexports.json = {\n \"layout-index.json\": require(\"gatsby-module-loader?name=path---!/Users/lachlanjc/src/schacks-site/.cache/json/layout-index.json\"),\n \"404.json\": require(\"gatsby-module-loader?name=path---404!/Users/lachlanjc/src/schacks-site/.cache/json/404.json\"),\n \"challenge.json\": require(\"gatsby-module-loader?name=path---challenge!/Users/lachlanjc/src/schacks-site/.cache/json/challenge.json\"),\n \"index.json\": require(\"gatsby-module-loader?name=path---index!/Users/lachlanjc/src/schacks-site/.cache/json/index.json\"),\n \"404-html.json\": require(\"gatsby-module-loader?name=path---404-html!/Users/lachlanjc/src/schacks-site/.cache/json/404-html.json\")\n}\n\nexports.layouts = {\n \"layout---index\": require(\"gatsby-module-loader?name=component---src-layouts-index-js!/Users/lachlanjc/src/schacks-site/.cache/layouts/index.js\")\n}\n\n\n// WEBPACK FOOTER //\n// ./.cache/async-requires.js","import React, { createElement } from \"react\"\nimport PropTypes from \"prop-types\"\nimport loader, { publicLoader } from \"./loader\"\nimport emitter from \"./emitter\"\nimport { apiRunner } from \"./api-runner-browser\"\nimport shallowCompare from \"shallow-compare\"\n\nconst DefaultLayout = ({ children }) => <div>{children()}</div>\n\n// Pass pathname in as prop.\n// component will try fetching resources. If they exist,\n// will just render, else will render null.\nclass ComponentRenderer extends React.Component {\n constructor(props) {\n super()\n let location = props.location\n\n // Set the pathname for 404 pages.\n if (!loader.getPage(location.pathname)) {\n location = Object.assign({}, location, {\n pathname: `/404.html`,\n })\n }\n\n this.state = {\n location,\n pageResources: loader.getResourcesForPathname(location.pathname),\n }\n }\n\n componentWillReceiveProps(nextProps) {\n // During development, always pass a component's JSON through so graphql\n // updates go through.\n if (process.env.NODE_ENV !== `production`) {\n if (\n nextProps &&\n nextProps.pageResources &&\n nextProps.pageResources.json\n ) {\n this.setState({ pageResources: nextProps.pageResources })\n }\n }\n if (this.state.location.pathname !== nextProps.location.pathname) {\n const pageResources = loader.getResourcesForPathname(\n nextProps.location.pathname\n )\n if (!pageResources) {\n let location = nextProps.location\n\n // Set the pathname for 404 pages.\n if (!loader.getPage(location.pathname)) {\n location = Object.assign({}, location, {\n pathname: `/404.html`,\n })\n }\n\n // Page resources won't be set in cases where the browser back button\n // or forward button is pushed as we can't wait as normal for resources\n // to load before changing the page.\n loader.getResourcesForPathname(location.pathname, pageResources => {\n this.setState({\n location,\n pageResources,\n })\n })\n } else {\n this.setState({\n location: nextProps.location,\n pageResources,\n })\n }\n }\n }\n\n componentDidMount() {\n // Listen to events so when our page gets updated, we can transition.\n // This is only useful on delayed transitions as the page will get rendered\n // without the necessary page resources and then re-render once those come in.\n emitter.on(`onPostLoadPageResources`, e => {\n if (\n loader.getPage(this.state.location.pathname) &&\n e.page.path === loader.getPage(this.state.location.pathname).path\n ) {\n this.setState({ pageResources: e.pageResources })\n }\n })\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n // 404\n if (!nextState.pageResources) {\n return true\n }\n // Check if the component or json have changed.\n if (!this.state.pageResources && nextState.pageResources) {\n return true\n }\n if (\n this.state.pageResources.component !== nextState.pageResources.component\n ) {\n return true\n }\n\n if (this.state.pageResources.json !== nextState.pageResources.json) {\n return true\n }\n\n // Check if location has changed on a page using internal routing\n // via matchPath configuration.\n if (\n this.state.location.key !== nextState.location.key &&\n nextState.pageResources.page &&\n (nextState.pageResources.page.matchPath ||\n nextState.pageResources.page.path)\n ) {\n return true\n }\n\n return shallowCompare(this, nextProps, nextState)\n }\n\n render() {\n const pluginResponses = apiRunner(`replaceComponentRenderer`, {\n props: { ...this.props, pageResources: this.state.pageResources },\n loader: publicLoader,\n })\n const replacementComponent = pluginResponses[0]\n // If page.\n if (this.props.page) {\n if (this.state.pageResources) {\n return (\n replacementComponent ||\n createElement(this.state.pageResources.component, {\n key: this.props.location.pathname,\n ...this.props,\n ...this.state.pageResources.json,\n })\n )\n } else {\n return null\n }\n // If layout.\n } else if (this.props.layout) {\n return (\n replacementComponent ||\n createElement(\n this.state.pageResources && this.state.pageResources.layout\n ? this.state.pageResources.layout\n : DefaultLayout,\n {\n key:\n this.state.pageResources && this.state.pageResources.layout\n ? this.state.pageResources.layout\n : `DefaultLayout`,\n ...this.props,\n }\n )\n )\n } else {\n return null\n }\n }\n}\n\nComponentRenderer.propTypes = {\n page: PropTypes.bool,\n layout: PropTypes.bool,\n location: PropTypes.object,\n}\n\nexport default ComponentRenderer\n\n\n\n// WEBPACK FOOTER //\n// ./.cache/component-renderer.js","import mitt from \"mitt\"\nconst emitter = mitt()\nmodule.exports = emitter\n\n\n\n// WEBPACK FOOTER //\n// ./.cache/emitter.js","// TODO add tests especially for handling prefixed links.\nimport { matchPath } from \"react-router-dom\"\nimport stripPrefix from \"./strip-prefix\"\n\nconst pageCache = {}\n\nmodule.exports = (pages, pathPrefix = ``) => rawPathname => {\n let pathname = decodeURIComponent(rawPathname)\n\n // Remove the pathPrefix from the pathname.\n let trimmedPathname = stripPrefix(pathname, pathPrefix)\n\n // Remove any hashfragment\n if (trimmedPathname.split(`#`).length > 1) {\n trimmedPathname = trimmedPathname\n .split(`#`)\n .slice(0, -1)\n .join(``)\n }\n\n // Remove search query\n if (trimmedPathname.split(`?`).length > 1) {\n trimmedPathname = trimmedPathname\n .split(`?`)\n .slice(0, -1)\n .join(``)\n }\n\n if (pageCache[trimmedPathname]) {\n return pageCache[trimmedPathname]\n }\n\n let foundPage\n // Array.prototype.find is not supported in IE so we use this somewhat odd\n // work around.\n pages.some(page => {\n if (page.matchPath) {\n // Try both the path and matchPath\n if (\n matchPath(trimmedPathname, { path: page.path }) ||\n matchPath(trimmedPathname, {\n path: page.matchPath,\n })\n ) {\n foundPage = page\n pageCache[trimmedPathname] = page\n return true\n }\n } else {\n if (\n matchPath(trimmedPathname, {\n path: page.path,\n exact: true,\n })\n ) {\n foundPage = page\n pageCache[trimmedPathname] = page\n return true\n }\n\n // Finally, try and match request with default document.\n if (\n matchPath(trimmedPathname, {\n path: page.path + `index.html`,\n })\n ) {\n foundPage = page\n pageCache[trimmedPathname] = page\n return true\n }\n }\n\n return false\n })\n\n return foundPage\n}\n\n\n\n// WEBPACK FOOTER //\n// ./.cache/find-page.js","import createHistory from \"history/createBrowserHistory\"\nimport { apiRunner } from \"./api-runner-browser\"\n\nconst pluginResponses = apiRunner(`replaceHistory`)\nconst replacementHistory = pluginResponses[0]\nconst history = replacementHistory || createHistory()\nmodule.exports = history\n\n\n\n// WEBPACK FOOTER //\n// ./.cache/history.js","require(\n \"!../../node_modules/gatsby-module-loader/patch.js\"\n );\n module.exports = function(cb) { return require.ensure([], function(_, error) {\n if (error) {\n console.log('bundle loading error', error)\n cb(true)\n } else {\n cb(null, function() { return require(\"!!../../node_modules/json-loader/index.js!./404-html.json\") })\n }\n }, \"path---404-html\");\n }\n \n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/gatsby-module-loader?name=path---404-html!./.cache/json/404-html.json\n// module id = 334\n// module chunks = 231608221292675","require(\n \"!../../node_modules/gatsby-module-loader/patch.js\"\n );\n module.exports = function(cb) { return require.ensure([], function(_, error) {\n if (error) {\n console.log('bundle loading error', error)\n cb(true)\n } else {\n cb(null, function() { return require(\"!!../../node_modules/json-loader/index.js!./404.json\") })\n }\n }, \"path---404\");\n }\n \n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/gatsby-module-loader?name=path---404!./.cache/json/404.json\n// module id = 333\n// module chunks = 231608221292675","require(\n \"!../../node_modules/gatsby-module-loader/patch.js\"\n );\n module.exports = function(cb) { return require.ensure([], function(_, error) {\n if (error) {\n console.log('bundle loading error', error)\n cb(true)\n } else {\n cb(null, function() { return require(\"!!../../node_modules/json-loader/index.js!./challenge.json\") })\n }\n }, \"path---challenge\");\n }\n \n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/gatsby-module-loader?name=path---challenge!./.cache/json/challenge.json\n// module id = 335\n// module chunks = 231608221292675","require(\n \"!../../node_modules/gatsby-module-loader/patch.js\"\n );\n module.exports = function(cb) { return require.ensure([], function(_, error) {\n if (error) {\n console.log('bundle loading error', error)\n cb(true)\n } else {\n cb(null, function() { return require(\"!!../../node_modules/json-loader/index.js!./index.json\") })\n }\n }, \"path---index\");\n }\n \n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/gatsby-module-loader?name=path---index!./.cache/json/index.json\n// module id = 336\n// module chunks = 231608221292675","require(\n \"!../../node_modules/gatsby-module-loader/patch.js\"\n );\n module.exports = function(cb) { return require.ensure([], function(_, error) {\n if (error) {\n console.log('bundle loading error', error)\n cb(true)\n } else {\n cb(null, function() { return require(\"!!../../node_modules/json-loader/index.js!./layout-index.json\") })\n }\n }, \"path---\");\n }\n \n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/gatsby-module-loader?name=path---!./.cache/json/layout-index.json\n// module id = 332\n// module chunks = 231608221292675","require(\n \"!../../node_modules/gatsby-module-loader/patch.js\"\n );\n module.exports = function(cb) { return require.ensure([], function(_, error) {\n if (error) {\n console.log('bundle loading error', error)\n cb(true)\n } else {\n cb(null, function() { return require(\"!!../../node_modules/babel-loader/lib/index.js?{\\\"presets\\\":[\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-env/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-react/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-stage-0/lib/index.js\\\",[\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-env/lib/index.js\\\",{\\\"loose\\\":true,\\\"uglify\\\":true,\\\"modules\\\":\\\"commonjs\\\",\\\"targets\\\":{\\\"browsers\\\":[\\\"> 1%\\\",\\\"last 2 versions\\\",\\\"IE >= 9\\\"]},\\\"exclude\\\":[\\\"transform-regenerator\\\",\\\"transform-es2015-typeof-symbol\\\"]}],\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-stage-0/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-react/lib/index.js\\\"],\\\"plugins\\\":[\\\"/Users/lachlanjc/src/schacks-site/node_modules/gatsby/dist/utils/babel-plugin-extract-graphql.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-plugin-add-module-exports/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-plugin-transform-object-assign/lib/index.js\\\"],\\\"cacheDirectory\\\":true}!./index.js\") })\n }\n }, \"component---src-layouts-index-js\");\n }\n \n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/gatsby-module-loader?name=component---src-layouts-index-js!./.cache/layouts/index.js\n// module id = 328\n// module chunks = 231608221292675","import React, { createElement } from \"react\"\nimport pageFinderFactory from \"./find-page\"\nimport emitter from \"./emitter\"\nimport stripPrefix from \"./strip-prefix\"\nlet findPage\n\nlet syncRequires = {}\nlet asyncRequires = {}\nlet pathScriptsCache = {}\nlet resourceStrCache = {}\nlet resourceCache = {}\nlet pages = []\n// Note we're not actively using the path data atm. There\n// could be future optimizations however around trying to ensure\n// we load all resources for likely-to-be-visited paths.\nlet pathArray = []\nlet pathCount = {}\nlet pathPrefix = ``\nlet resourcesArray = []\nlet resourcesCount = {}\nconst preferDefault = m => (m && m.default) || m\nlet prefetcher\nlet inInitialRender = true\nlet fetchHistory = []\nconst failedPaths = {}\nconst failedResources = {}\nconst MAX_HISTORY = 5\n\n// Prefetcher logic\nif (process.env.NODE_ENV === `production`) {\n prefetcher = require(`./prefetcher`)({\n getNextQueuedResources: () => resourcesArray.slice(-1)[0],\n createResourceDownload: resourceName => {\n fetchResource(resourceName, () => {\n resourcesArray = resourcesArray.filter(r => r !== resourceName)\n prefetcher.onResourcedFinished(resourceName)\n })\n },\n })\n emitter.on(`onPreLoadPageResources`, e => {\n prefetcher.onPreLoadPageResources(e)\n })\n emitter.on(`onPostLoadPageResources`, e => {\n prefetcher.onPostLoadPageResources(e)\n })\n}\n\nconst sortResourcesByCount = (a, b) => {\n if (resourcesCount[a] > resourcesCount[b]) {\n return 1\n } else if (resourcesCount[a] < resourcesCount[b]) {\n return -1\n } else {\n return 0\n }\n}\n\nconst sortPagesByCount = (a, b) => {\n if (pathCount[a] > pathCount[b]) {\n return 1\n } else if (pathCount[a] < pathCount[b]) {\n return -1\n } else {\n return 0\n }\n}\n\nconst fetchResource = (resourceName, cb = () => {}) => {\n if (resourceStrCache[resourceName]) {\n process.nextTick(() => {\n cb(null, resourceStrCache[resourceName])\n })\n } else {\n // Find resource\n let resourceFunction\n if (resourceName.slice(0, 12) === `component---`) {\n resourceFunction = asyncRequires.components[resourceName]\n } else if (resourceName.slice(0, 9) === `layout---`) {\n resourceFunction = asyncRequires.layouts[resourceName]\n } else {\n resourceFunction = asyncRequires.json[resourceName]\n }\n\n // Download the resource\n resourceFunction((err, executeChunk) => {\n resourceStrCache[resourceName] = executeChunk\n fetchHistory.push({\n resource: resourceName,\n succeeded: !err,\n })\n\n if (!failedResources[resourceName]) {\n failedResources[resourceName] = err\n }\n\n fetchHistory = fetchHistory.slice(-MAX_HISTORY)\n cb(err, executeChunk)\n })\n }\n}\n\nconst getResourceModule = (resourceName, cb) => {\n if (resourceCache[resourceName]) {\n process.nextTick(() => {\n cb(null, resourceCache[resourceName])\n })\n } else if (failedResources[resourceName]) {\n process.nextTick(() => {\n cb(failedResources[resourceName])\n })\n } else {\n fetchResource(resourceName, (err, executeChunk) => {\n if (err) {\n cb(err)\n } else {\n const module = preferDefault(executeChunk())\n resourceCache[resourceName] = module\n cb(err, module)\n }\n })\n }\n}\n\nconst appearsOnLine = () => {\n const isOnLine = navigator.onLine\n if (typeof isOnLine === `boolean`) {\n return isOnLine\n }\n\n // If no navigator.onLine support assume onLine if any of last N fetches succeeded\n const succeededFetch = fetchHistory.find(entry => entry.succeeded)\n return !!succeededFetch\n}\n\nconst handleResourceLoadError = (path, message) => {\n console.log(message)\n\n if (!failedPaths[path]) {\n failedPaths[path] = message\n }\n\n if (\n appearsOnLine() &&\n window.location.pathname.replace(/\\/$/g, ``) !== path.replace(/\\/$/g, ``)\n ) {\n window.location.pathname = path\n }\n}\n\nlet mountOrder = 1\nconst queue = {\n empty: () => {\n pathArray = []\n pathCount = {}\n resourcesCount = {}\n resourcesArray = []\n pages = []\n pathPrefix = ``\n },\n addPagesArray: newPages => {\n pages = newPages\n if (\n typeof __PREFIX_PATHS__ !== `undefined` &&\n typeof __PATH_PREFIX__ !== `undefined`\n ) {\n if (__PREFIX_PATHS__ === true) pathPrefix = __PATH_PREFIX__\n }\n findPage = pageFinderFactory(newPages, pathPrefix)\n },\n addDevRequires: devRequires => {\n syncRequires = devRequires\n },\n addProdRequires: prodRequires => {\n asyncRequires = prodRequires\n },\n dequeue: () => pathArray.pop(),\n enqueue: rawPath => {\n // Check page exists.\n const path = stripPrefix(rawPath, pathPrefix)\n if (!pages.some(p => p.path === path)) {\n return false\n }\n\n const mountOrderBoost = 1 / mountOrder\n mountOrder += 1\n // console.log(\n // `enqueue \"${path}\", mountOrder: \"${mountOrder}, mountOrderBoost: ${mountOrderBoost}`\n // )\n\n // Add to path counts.\n if (!pathCount[path]) {\n pathCount[path] = 1\n } else {\n pathCount[path] += 1\n }\n\n // Add path to queue.\n if (!queue.has(path)) {\n pathArray.unshift(path)\n }\n\n // Sort pages by pathCount\n pathArray.sort(sortPagesByCount)\n\n // Add resources to queue.\n const page = findPage(path)\n if (page.jsonName) {\n if (!resourcesCount[page.jsonName]) {\n resourcesCount[page.jsonName] = 1 + mountOrderBoost\n } else {\n resourcesCount[page.jsonName] += 1 + mountOrderBoost\n }\n\n // Before adding, checking that the JSON resource isn't either\n // already queued or been downloading.\n if (\n resourcesArray.indexOf(page.jsonName) === -1 &&\n !resourceStrCache[page.jsonName]\n ) {\n resourcesArray.unshift(page.jsonName)\n }\n }\n if (page.componentChunkName) {\n if (!resourcesCount[page.componentChunkName]) {\n resourcesCount[page.componentChunkName] = 1 + mountOrderBoost\n } else {\n resourcesCount[page.componentChunkName] += 1 + mountOrderBoost\n }\n\n // Before adding, checking that the component resource isn't either\n // already queued or been downloading.\n if (\n resourcesArray.indexOf(page.componentChunkName) === -1 &&\n !resourceStrCache[page.jsonName]\n ) {\n resourcesArray.unshift(page.componentChunkName)\n }\n }\n\n // Sort resources by resourcesCount.\n resourcesArray.sort(sortResourcesByCount)\n if (process.env.NODE_ENV === `production`) {\n prefetcher.onNewResourcesAdded()\n }\n\n return true\n },\n getResources: () => {\n return {\n resourcesArray,\n resourcesCount,\n }\n },\n getPages: () => {\n return {\n pathArray,\n pathCount,\n }\n },\n getPage: pathname => findPage(pathname),\n has: path => pathArray.some(p => p === path),\n getResourcesForPathname: (path, cb = () => {}) => {\n if (\n inInitialRender &&\n navigator &&\n navigator.serviceWorker &&\n navigator.serviceWorker.controller &&\n navigator.serviceWorker.controller.state === `activated`\n ) {\n // If we're loading from a service worker (it's already activated on\n // this initial render) and we can't find a page, there's a good chance\n // we're on a new page that this (now old) service worker doesn't know\n // about so we'll unregister it and reload.\n if (!findPage(path)) {\n navigator.serviceWorker\n .getRegistrations()\n .then(function(registrations) {\n // We would probably need this to\n // prevent unnecessary reloading of the page\n // while unregistering of ServiceWorker is not happening\n if (registrations.length) {\n for (let registration of registrations) {\n registration.unregister()\n }\n window.location.reload()\n }\n })\n }\n }\n inInitialRender = false\n // In development we know the code is loaded already\n // so we just return with it immediately.\n if (process.env.NODE_ENV !== `production`) {\n const page = findPage(path)\n if (!page) return cb()\n const pageResources = {\n component: syncRequires.components[page.componentChunkName],\n json: syncRequires.json[page.jsonName],\n layout: syncRequires.layouts[page.layout],\n page,\n }\n cb(pageResources)\n return pageResources\n // Production code path\n } else {\n if (failedPaths[path]) {\n handleResourceLoadError(\n path,\n `Previously detected load failure for \"${path}\"`\n )\n\n return cb()\n }\n\n const page = findPage(path)\n\n if (!page) {\n handleResourceLoadError(path, `A page wasn't found for \"${path}\"`)\n\n return cb()\n }\n\n // Use the path from the page so the pathScriptsCache uses\n // the normalized path.\n path = page.path\n\n // Check if it's in the cache already.\n if (pathScriptsCache[path]) {\n process.nextTick(() => {\n cb(pathScriptsCache[path])\n emitter.emit(`onPostLoadPageResources`, {\n page,\n pageResources: pathScriptsCache[path],\n })\n })\n return pathScriptsCache[path]\n }\n\n emitter.emit(`onPreLoadPageResources`, { path })\n // Nope, we need to load resource(s)\n let component\n let json\n let layout\n // Load the component/json/layout and parallel and call this\n // function when they're done loading. When both are loaded,\n // we move on.\n const done = () => {\n if (component && json && (!page.layoutComponentChunkName || layout)) {\n pathScriptsCache[path] = { component, json, layout, page }\n const pageResources = { component, json, layout, page }\n cb(pageResources)\n emitter.emit(`onPostLoadPageResources`, {\n page,\n pageResources,\n })\n }\n }\n getResourceModule(page.componentChunkName, (err, c) => {\n if (err) {\n handleResourceLoadError(\n page.path,\n `Loading the component for ${page.path} failed`\n )\n }\n component = c\n done()\n })\n getResourceModule(page.jsonName, (err, j) => {\n if (err) {\n handleResourceLoadError(\n page.path,\n `Loading the JSON for ${page.path} failed`\n )\n }\n json = j\n done()\n })\n\n page.layoutComponentChunkName &&\n getResourceModule(page.layout, (err, l) => {\n if (err) {\n handleResourceLoadError(\n page.path,\n `Loading the Layout for ${page.path} failed`\n )\n }\n layout = l\n done()\n })\n\n return undefined\n }\n },\n peek: path => pathArray.slice(-1)[0],\n length: () => pathArray.length,\n indexOf: path => pathArray.length - pathArray.indexOf(path) - 1,\n}\n\nexport const publicLoader = {\n getResourcesForPathname: queue.getResourcesForPathname,\n}\n\nexport default queue\n\n\n\n// WEBPACK FOOTER //\n// ./.cache/loader.js","module.exports = [{\"componentChunkName\":\"component---src-pages-404-js\",\"layout\":\"layout---index\",\"layoutComponentChunkName\":\"component---src-layouts-index-js\",\"jsonName\":\"404.json\",\"path\":\"/404/\"},{\"componentChunkName\":\"component---src-pages-challenge-js\",\"layout\":\"layout---index\",\"layoutComponentChunkName\":\"component---src-layouts-index-js\",\"jsonName\":\"challenge.json\",\"path\":\"/challenge/\"},{\"componentChunkName\":\"component---src-pages-index-js\",\"layout\":\"layout---index\",\"layoutComponentChunkName\":\"component---src-layouts-index-js\",\"jsonName\":\"index.json\",\"path\":\"/\"},{\"componentChunkName\":\"component---src-pages-404-js\",\"layout\":\"layout---index\",\"layoutComponentChunkName\":\"component---src-layouts-index-js\",\"jsonName\":\"404-html.json\",\"path\":\"/404.html\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./.cache/pages.json\n// module id = 347\n// module chunks = 231608221292675","module.exports = ({ getNextQueuedResources, createResourceDownload }) => {\n let pagesLoading = []\n let resourcesDownloading = []\n\n // Do things\n const startResourceDownloading = () => {\n const nextResource = getNextQueuedResources()\n if (nextResource) {\n resourcesDownloading.push(nextResource)\n createResourceDownload(nextResource)\n }\n }\n\n const reducer = action => {\n switch (action.type) {\n case `RESOURCE_FINISHED`:\n resourcesDownloading = resourcesDownloading.filter(\n r => r !== action.payload\n )\n break\n case `ON_PRE_LOAD_PAGE_RESOURCES`:\n pagesLoading.push(action.payload.path)\n break\n case `ON_POST_LOAD_PAGE_RESOURCES`:\n pagesLoading = pagesLoading.filter(p => p !== action.payload.page.path)\n break\n case `ON_NEW_RESOURCES_ADDED`:\n break\n }\n\n // Take actions.\n // Wait for event loop queue to finish.\n setTimeout(() => {\n if (resourcesDownloading.length === 0 && pagesLoading.length === 0) {\n // Start another resource downloading.\n startResourceDownloading()\n }\n }, 0)\n }\n\n return {\n onResourcedFinished: event => {\n // Tell prefetcher that the resource finished downloading\n // so it can grab the next one.\n reducer({ type: `RESOURCE_FINISHED`, payload: event })\n },\n onPreLoadPageResources: event => {\n // Tell prefetcher a page load has started so it should stop\n // loading anything new\n reducer({ type: `ON_PRE_LOAD_PAGE_RESOURCES`, payload: event })\n },\n onPostLoadPageResources: event => {\n // Tell prefetcher a page load has finished so it should start\n // loading resources again.\n reducer({ type: `ON_POST_LOAD_PAGE_RESOURCES`, payload: event })\n },\n onNewResourcesAdded: () => {\n // Tell prefetcher that more resources to be downloaded have\n // been added.\n reducer({ type: `ON_NEW_RESOURCES_ADDED` })\n },\n getState: () => {\n return { pagesLoading, resourcesDownloading }\n },\n empty: () => {\n pagesLoading = []\n resourcesDownloading = []\n },\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./.cache/prefetcher.js","if (__POLYFILL__) {\n require(`core-js/fn/promise`)\n}\nimport { apiRunner, apiRunnerAsync } from \"./api-runner-browser\"\nimport React, { createElement } from \"react\"\nimport ReactDOM from \"react-dom\"\nimport { Router, Route, withRouter, matchPath } from \"react-router-dom\"\nimport { ScrollContext } from \"gatsby-react-router-scroll\"\nimport domReady from \"domready\"\nimport { createLocation } from \"history\"\nimport history from \"./history\"\nwindow.___history = history\nimport emitter from \"./emitter\"\nwindow.___emitter = emitter\nimport pages from \"./pages.json\"\nimport redirects from \"./redirects.json\"\nimport ComponentRenderer from \"./component-renderer\"\nimport asyncRequires from \"./async-requires\"\nimport loader from \"./loader\"\nloader.addPagesArray(pages)\nloader.addProdRequires(asyncRequires)\nwindow.asyncRequires = asyncRequires\nwindow.___loader = loader\nwindow.matchPath = matchPath\n\n// Convert to a map for faster lookup in maybeRedirect()\nconst redirectMap = redirects.reduce((map, redirect) => {\n map[redirect.fromPath] = redirect\n return map\n}, {})\n\nconst maybeRedirect = pathname => {\n const redirect = redirectMap[pathname]\n\n if (redirect != null) {\n history.replace(redirect.toPath)\n return true\n } else {\n return false\n }\n}\n\n// Check for initial page-load redirect\nmaybeRedirect(window.location.pathname)\n\n// Let the site/plugins run code very early.\napiRunnerAsync(`onClientEntry`).then(() => {\n // Let plugins register a service worker. The plugin just needs\n // to return true.\n if (apiRunner(`registerServiceWorker`).length > 0) {\n require(`./register-service-worker`)\n }\n\n const navigateTo = to => {\n const location = createLocation(to, null, null, history.location)\n let { pathname } = location\n const redirect = redirectMap[pathname]\n\n // If we're redirecting, just replace the passed in pathname\n // to the one we want to redirect to.\n if (redirect) {\n pathname = redirect.toPath\n }\n const wl = window.location\n\n // If we're already at this location, do nothing.\n if (\n wl.pathname === location.pathname &&\n wl.search === location.search &&\n wl.hash === location.hash\n ) {\n return\n }\n\n // Listen to loading events. If page resources load before\n // a second, navigate immediately.\n function eventHandler(e) {\n if (e.page.path === loader.getPage(pathname).path) {\n emitter.off(`onPostLoadPageResources`, eventHandler)\n clearTimeout(timeoutId)\n window.___history.push(location)\n }\n }\n\n // Start a timer to wait for a second before transitioning and showing a\n // loader in case resources aren't around yet.\n const timeoutId = setTimeout(() => {\n emitter.off(`onPostLoadPageResources`, eventHandler)\n emitter.emit(`onDelayedLoadPageResources`, { pathname })\n window.___history.push(location)\n }, 1000)\n\n if (loader.getResourcesForPathname(pathname)) {\n // The resources are already loaded so off we go.\n clearTimeout(timeoutId)\n window.___history.push(location)\n } else {\n // They're not loaded yet so let's add a listener for when\n // they finish loading.\n emitter.on(`onPostLoadPageResources`, eventHandler)\n }\n }\n\n // window.___loadScriptsForPath = loadScriptsForPath\n window.___navigateTo = navigateTo\n\n // Call onRouteUpdate on the initial page load.\n apiRunner(`onRouteUpdate`, {\n location: history.location,\n action: history.action,\n })\n\n let initialAttachDone = false\n function attachToHistory(history) {\n if (!window.___history || initialAttachDone === false) {\n window.___history = history\n initialAttachDone = true\n\n history.listen((location, action) => {\n if (!maybeRedirect(location.pathname)) {\n // Make sure React has had a chance to flush to DOM first.\n setTimeout(() => {\n apiRunner(`onRouteUpdate`, { location, action })\n }, 0)\n }\n })\n }\n }\n\n function shouldUpdateScroll(prevRouterProps, { location: { pathname } }) {\n const results = apiRunner(`shouldUpdateScroll`, {\n prevRouterProps,\n pathname,\n })\n if (results.length > 0) {\n return results[0]\n }\n\n if (prevRouterProps) {\n const { location: { pathname: oldPathname } } = prevRouterProps\n if (oldPathname === pathname) {\n return false\n }\n }\n return true\n }\n\n const AltRouter = apiRunner(`replaceRouterComponent`, { history })[0]\n const DefaultRouter = ({ children }) => (\n <Router history={history}>{children}</Router>\n )\n\n const ComponentRendererWithRouter = withRouter(ComponentRenderer)\n\n loader.getResourcesForPathname(window.location.pathname, () => {\n const Root = () =>\n createElement(\n AltRouter ? AltRouter : DefaultRouter,\n null,\n createElement(\n ScrollContext,\n { shouldUpdateScroll },\n createElement(ComponentRendererWithRouter, {\n layout: true,\n children: layoutProps =>\n createElement(Route, {\n render: routeProps => {\n attachToHistory(routeProps.history)\n const props = layoutProps ? layoutProps : routeProps\n\n if (loader.getPage(props.location.pathname)) {\n return createElement(ComponentRenderer, {\n page: true,\n ...props,\n })\n } else {\n return createElement(ComponentRenderer, {\n page: true,\n location: { pathname: `/404.html` },\n })\n }\n },\n }),\n })\n )\n )\n\n const NewRoot = apiRunner(`wrapRootComponent`, { Root }, Root)[0]\n domReady(() =>\n ReactDOM.render(\n <NewRoot />,\n typeof window !== `undefined`\n ? document.getElementById(`___gatsby`)\n : void 0,\n () => {\n apiRunner(`onInitialClientRender`)\n }\n )\n )\n })\n})\n\n\n\n// WEBPACK FOOTER //\n// ./.cache/production-app.js","module.exports = []\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./.cache/redirects.json\n// module id = 348\n// module chunks = 231608221292675","import emitter from \"./emitter\"\n\nlet pathPrefix = `/`\nif (__PREFIX_PATHS__) {\n pathPrefix = __PATH_PREFIX__ + `/`\n}\n\nif (`serviceWorker` in navigator) {\n navigator.serviceWorker\n .register(`${pathPrefix}sw.js`)\n .then(function(reg) {\n reg.addEventListener(`updatefound`, () => {\n // The updatefound event implies that reg.installing is set; see\n // https://w3c.github.io/ServiceWorker/#service-worker-registration-updatefound-event\n const installingWorker = reg.installing\n console.log(`installingWorker`, installingWorker)\n installingWorker.addEventListener(`statechange`, () => {\n switch (installingWorker.state) {\n case `installed`:\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and the fresh content will\n // have been added to the cache.\n // We reload immediately so the user sees the new content.\n // This could/should be made configurable in the future.\n window.location.reload()\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a \"Content is cached for offline use.\" message.\n console.log(`Content is now available offline!`)\n emitter.emit(`sw:installed`)\n }\n break\n\n case `redundant`:\n console.error(`The installing service worker became redundant.`)\n break\n }\n })\n })\n })\n .catch(function(e) {\n console.error(`Error during service worker registration:`, e)\n })\n}\n\n\n\n// WEBPACK FOOTER //\n// ./.cache/register-service-worker.js","/**\n * Remove a prefix from a string. Return the input string if the given prefix\n * isn't found.\n */\n\nexport default (str, prefix = ``) => {\n if (str.substr(0, prefix.length) === prefix) return str.slice(prefix.length)\n return str\n}\n\n\n\n// WEBPACK FOOTER //\n// ./.cache/strip-prefix.js","/*!\n * domready (c) Dustin Diaz 2014 - License MIT\n */\n!function (name, definition) {\n\n if (typeof module != 'undefined') module.exports = definition()\n else if (typeof define == 'function' && typeof define.amd == 'object') define(definition)\n else this[name] = definition()\n\n}('domready', function () {\n\n var fns = [], listener\n , doc = document\n , hack = doc.documentElement.doScroll\n , domContentLoaded = 'DOMContentLoaded'\n , loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState)\n\n\n if (!loaded)\n doc.addEventListener(domContentLoaded, listener = function () {\n doc.removeEventListener(domContentLoaded, listener)\n loaded = 1\n while (listener = fns.shift()) listener()\n })\n\n return function (fn) {\n loaded ? setTimeout(fn, 0) : fns.push(fn)\n }\n\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/domready/ready.js\n// module id = 322\n// module chunks = 231608221292675","\"use strict\";\n\n/* global document: false, __webpack_require__: false */\npatch();\n\nfunction patch() {\n var head = document.querySelector(\"head\");\n var ensure = __webpack_require__.e;\n var chunks = __webpack_require__.s;\n var failures;\n\n __webpack_require__.e = function (chunkId, callback) {\n var loaded = false;\n var immediate = true;\n\n var handler = function handler(error) {\n if (!callback) return;\n\n callback(__webpack_require__, error);\n callback = null;\n };\n\n if (!chunks && failures && failures[chunkId]) {\n handler(true);\n return;\n }\n\n ensure(chunkId, function () {\n if (loaded) return;\n loaded = true;\n\n if (immediate) {\n // webpack fires callback immediately if chunk was already loaded\n // IE also fires callback immediately if script was already\n // in a cache (AppCache counts too)\n setTimeout(function () {\n handler();\n });\n } else {\n handler();\n }\n });\n\n // This is |true| if chunk is already loaded and does not need onError call.\n // This happens because in such case ensure() is performed in sync way\n if (loaded) {\n return;\n }\n\n immediate = false;\n\n onError(function () {\n if (loaded) return;\n loaded = true;\n\n if (chunks) {\n chunks[chunkId] = void 0;\n } else {\n failures || (failures = {});\n failures[chunkId] = true;\n }\n\n handler(true);\n });\n };\n\n function onError(callback) {\n var script = head.lastChild;\n\n if (script.tagName !== \"SCRIPT\") {\n if (typeof console !== \"undefined\" && console.warn) {\n console.warn(\"Script is not a script\", script);\n }\n\n return;\n }\n\n script.onload = script.onerror = function () {\n script.onload = script.onerror = null;\n setTimeout(callback, 0);\n };\n }\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/gatsby-module-loader/patch.js\n// module id = 33\n// module chunks = 231608221292675","function n(n){return n=n||Object.create(null),{on:function(c,e){(n[c]||(n[c]=[])).push(e)},off:function(c,e){n[c]&&n[c].splice(n[c].indexOf(e)>>>0,1)},emit:function(c,e){(n[c]||[]).slice().map(function(n){n(e)}),(n[\"*\"]||[]).slice().map(function(n){n(c,e)})}}}module.exports=n;\n//# sourceMappingURL=mitt.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/mitt/dist/mitt.js\n// module id = 349\n// module chunks = 231608221292675","/** @license React v16.5.2\n * schedule.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';Object.defineProperty(exports,\"__esModule\",{value:!0});var c=null,e=!1,f=!1,g=\"object\"===typeof performance&&\"function\"===typeof performance.now,l={timeRemaining:g?function(){var a=h()-performance.now();return 0<a?a:0}:function(){var a=h()-Date.now();return 0<a?a:0},didTimeout:!1};function m(){if(!e){var a=c.timesOutAt;f?n():f=!0;p(q,a)}}function r(){var a=c,b=c.next;if(c===b)c=null;else{var d=c.previous;c=d.next=b;b.previous=d}a.next=a.previous=null;a=a.callback;a(l)}\nfunction q(a){e=!0;l.didTimeout=a;try{if(a)for(;null!==c;){var b=exports.unstable_now();if(c.timesOutAt<=b){do r();while(null!==c&&c.timesOutAt<=b)}else break}else if(null!==c){do r();while(null!==c&&0<h()-exports.unstable_now())}}finally{e=!1,null!==c?m(c):f=!1}}\nvar t=Date,u=\"function\"===typeof setTimeout?setTimeout:void 0,v=\"function\"===typeof clearTimeout?clearTimeout:void 0,w=\"function\"===typeof requestAnimationFrame?requestAnimationFrame:void 0,x=\"function\"===typeof cancelAnimationFrame?cancelAnimationFrame:void 0,y,z;function A(a){y=w(function(b){v(z);a(b)});z=u(function(){x(y);a(exports.unstable_now())},100)}if(g){var B=performance;exports.unstable_now=function(){return B.now()}}else exports.unstable_now=function(){return t.now()};var p,n,h;\nif(\"undefined\"===typeof window){var C=-1;p=function(a){C=setTimeout(a,0,!0)};n=function(){clearTimeout(C)};h=function(){return 0}}else if(window._schedMock){var D=window._schedMock;p=D[0];n=D[1];h=D[2]}else{\"undefined\"!==typeof console&&(\"function\"!==typeof w&&console.error(\"This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills\"),\"function\"!==typeof x&&console.error(\"This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills\"));\nvar E=null,F=!1,G=-1,H=!1,I=!1,J=0,K=33,L=33;h=function(){return J};var M=\"__reactIdleCallback$\"+Math.random().toString(36).slice(2);window.addEventListener(\"message\",function(a){if(a.source===window&&a.data===M){F=!1;var b=exports.unstable_now();a=!1;if(0>=J-b)if(-1!==G&&G<=b)a=!0;else{H||(H=!0,A(N));return}G=-1;b=E;E=null;if(null!==b){I=!0;try{b(a)}finally{I=!1}}}},!1);var N=function(a){H=!1;var b=a-J+L;b<L&&K<L?(8>b&&(b=8),L=b<K?K:b):K=b;J=a+L;F||(F=!0,window.postMessage(M,\"*\"))};p=function(a,\nb){E=a;G=b;I?window.postMessage(M,\"*\"):H||(H=!0,A(N))};n=function(){E=null;F=!1;G=-1}}exports.unstable_scheduleWork=function(a,b){var d=exports.unstable_now();b=void 0!==b&&null!==b&&null!==b.timeout&&void 0!==b.timeout?d+b.timeout:d+5E3;a={callback:a,timesOutAt:b,next:null,previous:null};if(null===c)c=a.next=a.previous=a,m(c);else{d=null;var k=c;do{if(k.timesOutAt>b){d=k;break}k=k.next}while(k!==c);null===d?d=c:d===c&&(c=a,m(c));b=d.previous;b.next=d.previous=a;a.next=d;a.previous=b}return a};\nexports.unstable_cancelScheduledWork=function(a){var b=a.next;if(null!==b){if(b===a)c=null;else{a===c&&(c=b);var d=a.previous;d.next=b;b.previous=d}a.next=a.previous=null}};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/schedule/cjs/schedule.production.min.js\n// module id = 379\n// module chunks = 231608221292675","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/schedule.production.min.js');\n} else {\n module.exports = require('./cjs/schedule.development.js');\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/schedule/index.js\n// module id = 380\n// module chunks = 231608221292675","\"use strict\";\n\nexports.__esModule = true;\n// Pulled from react-compat\n// https://github.com/developit/preact-compat/blob/7c5de00e7c85e2ffd011bf3af02899b63f699d3a/src/index.js#L349\nfunction shallowDiffers(a, b) {\n for (var i in a) {\n if (!(i in b)) return true;\n }for (var _i in b) {\n if (a[_i] !== b[_i]) return true;\n }return false;\n}\n\nexports.default = function (instance, nextProps, nextState) {\n return shallowDiffers(instance.props, nextProps) || shallowDiffers(instance.state, nextState);\n};\n\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/shallow-compare/lib/index.js\n// module id = 383\n// module chunks = 231608221292675","require(\n \"!../../node_modules/gatsby-module-loader/patch.js\"\n );\n module.exports = function(cb) { return require.ensure([], function(_, error) {\n if (error) {\n console.log('bundle loading error', error)\n cb(true)\n } else {\n cb(null, function() { return require(\"!!../../node_modules/babel-loader/lib/index.js?{\\\"presets\\\":[\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-env/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-react/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-stage-0/lib/index.js\\\",[\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-env/lib/index.js\\\",{\\\"loose\\\":true,\\\"uglify\\\":true,\\\"modules\\\":\\\"commonjs\\\",\\\"targets\\\":{\\\"browsers\\\":[\\\"> 1%\\\",\\\"last 2 versions\\\",\\\"IE >= 9\\\"]},\\\"exclude\\\":[\\\"transform-regenerator\\\",\\\"transform-es2015-typeof-symbol\\\"]}],\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-stage-0/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-react/lib/index.js\\\"],\\\"plugins\\\":[\\\"/Users/lachlanjc/src/schacks-site/node_modules/gatsby/dist/utils/babel-plugin-extract-graphql.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-plugin-add-module-exports/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-plugin-transform-object-assign/lib/index.js\\\"],\\\"cacheDirectory\\\":true}!./404.js\") })\n }\n }, \"component---src-pages-404-js\");\n }\n \n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/gatsby-module-loader?name=component---src-pages-404-js!./src/pages/404.js\n// module id = 329\n// module chunks = 231608221292675","require(\n \"!../../node_modules/gatsby-module-loader/patch.js\"\n );\n module.exports = function(cb) { return require.ensure([], function(_, error) {\n if (error) {\n console.log('bundle loading error', error)\n cb(true)\n } else {\n cb(null, function() { return require(\"!!../../node_modules/babel-loader/lib/index.js?{\\\"presets\\\":[\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-env/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-react/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-stage-0/lib/index.js\\\",[\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-env/lib/index.js\\\",{\\\"loose\\\":true,\\\"uglify\\\":true,\\\"modules\\\":\\\"commonjs\\\",\\\"targets\\\":{\\\"browsers\\\":[\\\"> 1%\\\",\\\"last 2 versions\\\",\\\"IE >= 9\\\"]},\\\"exclude\\\":[\\\"transform-regenerator\\\",\\\"transform-es2015-typeof-symbol\\\"]}],\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-stage-0/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-react/lib/index.js\\\"],\\\"plugins\\\":[\\\"/Users/lachlanjc/src/schacks-site/node_modules/gatsby/dist/utils/babel-plugin-extract-graphql.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-plugin-add-module-exports/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-plugin-transform-object-assign/lib/index.js\\\"],\\\"cacheDirectory\\\":true}!./challenge.js\") })\n }\n }, \"component---src-pages-challenge-js\");\n }\n \n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/gatsby-module-loader?name=component---src-pages-challenge-js!./src/pages/challenge.js\n// module id = 330\n// module chunks = 231608221292675","require(\n \"!../../node_modules/gatsby-module-loader/patch.js\"\n );\n module.exports = function(cb) { return require.ensure([], function(_, error) {\n if (error) {\n console.log('bundle loading error', error)\n cb(true)\n } else {\n cb(null, function() { return require(\"!!../../node_modules/babel-loader/lib/index.js?{\\\"presets\\\":[\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-env/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-react/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-stage-0/lib/index.js\\\",[\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-env/lib/index.js\\\",{\\\"loose\\\":true,\\\"uglify\\\":true,\\\"modules\\\":\\\"commonjs\\\",\\\"targets\\\":{\\\"browsers\\\":[\\\"> 1%\\\",\\\"last 2 versions\\\",\\\"IE >= 9\\\"]},\\\"exclude\\\":[\\\"transform-regenerator\\\",\\\"transform-es2015-typeof-symbol\\\"]}],\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-stage-0/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-preset-react/lib/index.js\\\"],\\\"plugins\\\":[\\\"/Users/lachlanjc/src/schacks-site/node_modules/gatsby/dist/utils/babel-plugin-extract-graphql.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-plugin-add-module-exports/lib/index.js\\\",\\\"/Users/lachlanjc/src/schacks-site/node_modules/babel-plugin-transform-object-assign/lib/index.js\\\"],\\\"cacheDirectory\\\":true}!./index.js\") })\n }\n }, \"component---src-pages-index-js\");\n }\n \n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/gatsby-module-loader?name=component---src-pages-index-js!./src/pages/index.js\n// module id = 331\n// module chunks = 231608221292675"],"sourceRoot":""}