webpackHotUpdate(0,{

/***/ 72:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("Object.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(5);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(75);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_App__ = __webpack_require__(89);\n\n\n\n\nconst params = decodeURI(window.location.search.substr(1)).split('&').reduce((params, value) => {\n  const array = value.split('=');\n  params[array[0]] = array[1];\n  return params;\n}, {\n  model: 'kevlib.json',\n  script: 'kevs/main.kevs'\n});\n\nconst root = document.getElementById('root');\n\nfetch(`http://localhost:8080/app/${params.model}`).then(res => {\n  return res.json();\n}, () => {\n  throw new Error('Kevoree Browser Tester needs \"kevlib.json\". Build your project with <pre><code>npm run build</code></pre> and refresh the page.');\n}).then(model => {\n  return fetch(`http://localhost:8080/app/${params.script}`).then(res => {\n    console.log(res);\n    return res.text();\n  }, () => {\n    throw new Error('Kevoree Browser Tester needs a KevScript at \"kevs/main.kevs\". Create one and refresh the page.');\n  }).then(script => ({ model, script }));\n}).then(params => {\n  __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__components_App__[\"a\" /* default */], params), root);\n}).catch(err => {\n  __WEBPACK_IMPORTED_MODULE_1_react_dom___default.a.render(__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(\n    'p',\n    { style: 'color: red;' },\n    err.message\n  ), root);\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/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