text: !function(e){function t(t){for(var r,a,l=t[0],u=t[1],i=t[2],f=0,m=[];f<l.length;f++)a=l[f],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&m.push(o[a][0]),o[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(s&&s(t);m.length;)m.shift()();return c.push.apply(c,i||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],r=!0,a=1;a<n.length;a++){var u=n[a];0!==o[u]&&(r=!1)}r&&(c.splice(t--,1),e=l(l.s=n[0]))}return e}var r={},a={4:0},o={4:0},c=[];function l(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,l),n.l=!0,n.exports}l.e=function(e){var t=[];a[e]?t.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,5:1,6:1,7:1,8:1,9:1}[e]&&t.push(a[e]=new Promise(function(t,n){for(var r="static/css/"+({}[e]||e)+"."+{0:"bedeae33",1:"fff80dee",2:"3669c98b",5:"06ea8862",6:"d2b3b5b1",7:"8e49afd8",8:"cab6c09b",9:"089ccd73",10:"31d6cfe0",11:"31d6cfe0"}[e]+".chunk.css",o=l.p+r,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var i=(s=c[u]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(i===r||i===o))return t()}var f=document.getElementsByTagName("style");for(u=0;u<f.length;u++){var s;if((i=(s=f[u]).getAttribute("data-href"))===r||i===o)return t()}var m=document.createElement("link");m.rel="stylesheet",m.type="text/css",m.onload=t,m.onerror=function(t){var r=t&&t.target&&t.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");c.request=r,delete a[e],m.parentNode.removeChild(m),n(c)},m.href=o,document.getElementsByTagName("head")[0].appendChild(m)}).then(function(){a[e]=0}));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var r=new Promise(function(t,r){n=o[e]=[t,r]});t.push(n[2]=r);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,l.nc&&u.setAttribute("nonce",l.nc),u.src=function(e){return l.p+"static/js/"+({}[e]||e)+"."+{0:"c43ef152",1:"ac82c5c4",2:"a966f7f7",5:"df41c361",6:"776a16a2",7:"e95ef1ef",8:"d433f329",9:"bc5fffca",10:"a0aa0ae5",11:"d641e4e8"}[e]+".chunk.js"}(e);var i=new Error;c=function(t){u.onerror=u.onload=null,clearTimeout(f);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",i.name="ChunkLoadError",i.type=r,i.request=a,n[1](i)}o[e]=void 0}};var f=setTimeout(function(){c({type:"timeout",target:u})},12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(t)},l.m=e,l.c=r,l.d=function(e,t,n){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(l.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)l.d(n,r,function(t){return e[t]}.bind(null,r));return n},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="",l.oe=function(e){throw e};var u=window.webpackJsonp=window.webpackJsonp||[],i=u.push.bind(u);u.push=t,u=u.slice();for(var f=0;f<u.length;f++)t(u[f]);var s=i;c.push([254,3]),n()}({254:function(e,t,n){n(255),e.exports=n(525)},465:function(e,t,n){},466:function(e,t,n){},467:function(e,t,n){},469:function(e,t,n){},470:function(e,t,n){},522:function(e,t,n){},523:function(e,t,n){},524:function(e,t,n){},525:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),o=n(4),c=n.n(o),l=n(246),u=n(62),i=n(243),f=n(244);var s="LOGIN_SUCCESS",m={user:{username:"xiaolong"}},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s:return Object(f.a)(e).setIn(["user","username"],t.payload).toJS();default:return e}},p=Object(u.c)({user:d});function h(e){return(h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var b=("object"===("undefined"===typeof window?"undefined":h(window))&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):u.d)(Object(u.a)(i.a)),y=Object(u.e)(p,b),E=n(61),v=n(46),g=(n(526),n(128)),O=(n(250),n(35)),w=(n(468),n(129));n(470);function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,a=!1,o=void 0;try{for(var c,l=e[Symbol.iterator]();!(r=(c=l.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(u){a=!0,o=u}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var j=w.a.Header,k=w.a.Content;var _=function(e){var t=Object(v.h)(),n=S(Object(r.useState)([]),2),o=n[0],c=n[1];return Object(r.useEffect)(function(){c([t.pathname.split("/")[1]])},[t]),a.a.createElement(w.a,{className:"layout"},a.a.createElement(j,{className:"header"},a.a.createElement(E.b,{to:"/"},a.a.createElement("div",{className:"logo"},"Mocker Xl")),a.a.createElement(g.a,{theme:"light",mode:"horizontal",selectedKeys:o,style:{lineHeight:"64px"}},a.a.createElement(g.a.Item,{key:"dashboard"},a.a.createElement(E.b,{to:"/dashboard"},a.a.createElement(O.a,{type:"home"}),"\u6211\u7684\u9879\u76ee")),a.a.createElement(g.a.Item,{key:"helpdoc"},a.a.createElement(E.b,{to:"/helpdoc"},a.a.createElement(O.a,{type:"book"}),"\u4f7f\u7528\u5e2e\u52a9")))),a.a.createElement(k,{className:"content"},e.children))},x=(n(248),n(179));n(523);var P=function(e){return a.a.createElement("div",{className:"not-match-container"},a.a.createElement("div",{className:"not-match-content"}),a.a.createElement(E.b,{to:"/"},a.a.createElement(x.a,{className:"mt-20",type:"primary"},"\u8fd4\u56de\u9996\u9875")))},N=Object(r.lazy)(function(){return Promise.all([n.e(0),n.e(9)]).then(n.bind(null,1113))}),C=Object(r.lazy)(function(){return Promise.all([n.e(0),n.e(1),n.e(5),n.e(6)]).then(n.bind(null,1117))}),T=Object(r.lazy)(function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(7)]).then(n.bind(null,1114))}),A=Object(r.lazy)(function(){return Promise.all([n.e(0),n.e(1),n.e(2),n.e(8)]).then(n.bind(null,1115))}),I=Object(r.lazy)(function(){return n.e(10).then(n.bind(null,1116))}),M=[{path:"/dashboard",exact:!0,key:"ProjectDetail",component:function(e){return a.a.createElement(r.Suspense,{fallback:null},a.a.createElement(C,e))}},{path:"/project/create",exact:!0,key:"ProjectCreate",component:function(e){return a.a.createElement(r.Suspense,{fallback:null},a.a.createElement(N,e))}},{path:"/api/create",exact:!0,key:"ApiCreate",component:function(e){return a.a.createElement(r.Suspense,{fallback:null},a.a.createElement(T,e))}},{path:"/api/edit/:apiId",exact:!0,key:"ApiEdit",component:function(e){return a.a.createElement(r.Suspense,{fallback:null},a.a.createElement(A,e))}},{path:"/helpdoc",exact:!0,key:"Help",component:function(e){return a.a.createElement(r.Suspense,{fallback:null},a.a.createElement(I,null))}}];var z=function(){return a.a.createElement("div",{className:"App"},a.a.createElement(E.a,null,a.a.createElement(_,null,a.a.createElement(v.b,{exact:!0,path:"/",render:function(){return a.a.createElement(v.a,{to:"/dashboard",push:!0})}}),a.a.createElement(v.d,null,M.map(function(e,t){return a.a.createElement(v.b,{key:e.key||t,path:e.path,exact:e.exact,component:e.component})}),a.a.createElement(v.b,{component:P})))))};Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));n(524);c.a.render(a.a.createElement(l.a,{store:y},a.a.createElement(z,null)),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()})},91:function(e,t,n){}});
  //# sourceMappingURL=main.js.map