UNPKG

mirrorx

Version:

A React framework with minimal API and zero boilerplate.

9 lines 64.9 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("PropTypes"),require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["PropTypes","React","ReactDOM"],e):"object"==typeof exports?exports.Mirror=e(require("PropTypes"),require("React"),require("ReactDOM")):t.Mirror=e(t.PropTypes,t.React,t.ReactDOM)}(window,(function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=40)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o,i,a,c){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,c],f=0;(u=new Error(e.replace(/%s/g,(function(){return s[f++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return f}));var r=n(17),o=n.n(r),i=n(13);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={historyMode:"browser",middlewares:[],reducers:{},addEffect:Object(i.a)(i.b)},s=["browser","hash","memory"];function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.historyMode,n=t.middlewares,r=t.addEffect;if(e&&!s.includes(e))throw new Error('historyMode "'.concat(e,'" is invalid, must be one of ').concat(s.join(", "),"!"));if(n&&!Array.isArray(n))throw new Error('middlewares "'.concat(n,'" is invalid, must be an Array!'));if(r){if("function"!=typeof r||"function"!=typeof r({}))throw new Error('addEffect "'.concat(r,'" is invalid, must be a function that returns a function'));t.addEffect=t.addEffect(i.b)}Object.keys(t).forEach((function(e){u[e]="reducers"===e?c(c({},u[e]),t[e]):t[e]}))}},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return S})),n.d(e,"d",(function(){return C})),n.d(e,"c",(function(){return y})),n.d(e,"e",(function(){return b}));var r=n(5);function o(t){return"/"===t.charAt(0)}function i(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}var a=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],a=e&&e.split("/")||[],c=t&&o(t),u=e&&o(e),s=c||u;if(t&&o(t)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var f=a[a.length-1];n="."===f||".."===f||""===f}else n=!1;for(var p=0,l=a.length;l>=0;l--){var d=a[l];"."===d?i(a,l):".."===d?(i(a,l),p++):p&&(i(a,l),p--)}if(!s)for(;p--;p)a.unshift("..");!s||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function c(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var u=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"==typeof e||"object"==typeof n){var r=c(e),o=c(n);return r!==e||o!==n?t(r,o):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1};var s=function(t,e){if(!t)throw new Error("Invariant failed")};function f(t){return"/"===t.charAt(0)?t:"/"+t}function p(t){return"/"===t.charAt(0)?t.substr(1):t}function l(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function d(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function h(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(t,e,n,o){var i;"string"==typeof t?(i=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(i=Object(r.a)({},t)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function b(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&u(t.state,e.state)}function v(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}var m=!("undefined"==typeof window||!window.document||!window.document.createElement);function w(t,e){e(window.confirm(t))}function g(){try{return window.history.state||{}}catch(t){return{}}}function O(t){void 0===t&&(t={}),m||s(!1);var e,n=window.history,o=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=t,c=a.forceRefresh,u=void 0!==c&&c,p=a.getUserConfirmation,b=void 0===p?w:p,O=a.keyLength,j=void 0===O?6:O,P=t.basename?d(f(t.basename)):"";function x(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return P&&(i=l(i,P)),y(i,r,n)}function E(){return Math.random().toString(36).substr(2,j)}var S=v();function R(t){Object(r.a)(L,t),L.length=n.length,S.notifyListeners(L.location,L.action)}function C(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||M(x(t.state))}function T(){M(x(g()))}var k=!1;function M(t){if(k)k=!1,R();else{S.confirmTransitionTo(t,"POP",b,(function(e){e?R({action:"POP",location:t}):function(t){var e=L.location,n=N.indexOf(e.key);-1===n&&(n=0);var r=N.indexOf(t.key);-1===r&&(r=0);var o=n-r;o&&(k=!0,_(o))}(t)}))}}var A=x(g()),N=[A.key];function q(t){return P+h(t)}function _(t){n.go(t)}var I=0;function D(t){1===(I+=t)&&1===t?(window.addEventListener("popstate",C),i&&window.addEventListener("hashchange",T)):0===I&&(window.removeEventListener("popstate",C),i&&window.removeEventListener("hashchange",T))}var U=!1;var L={length:n.length,action:"POP",location:A,createHref:q,push:function(t,e){var r=y(t,e,E(),L.location);S.confirmTransitionTo(r,"PUSH",b,(function(t){if(t){var e=q(r),i=r.key,a=r.state;if(o)if(n.pushState({key:i,state:a},null,e),u)window.location.href=e;else{var c=N.indexOf(L.location.key),s=N.slice(0,c+1);s.push(r.key),N=s,R({action:"PUSH",location:r})}else window.location.href=e}}))},replace:function(t,e){var r=y(t,e,E(),L.location);S.confirmTransitionTo(r,"REPLACE",b,(function(t){if(t){var e=q(r),i=r.key,a=r.state;if(o)if(n.replaceState({key:i,state:a},null,e),u)window.location.replace(e);else{var c=N.indexOf(L.location.key);-1!==c&&(N[c]=r.key),R({action:"REPLACE",location:r})}else window.location.replace(e)}}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(t){void 0===t&&(t=!1);var e=S.setPrompt(t);return U||(D(1),U=!0),function(){return U&&(U=!1,D(-1)),e()}},listen:function(t){var e=S.appendListener(t);return D(1),function(){D(-1),e()}}};return L}var j={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+p(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:p,decodePath:f},slash:{encodePath:f,decodePath:f}};function P(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function x(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function E(t){window.location.replace(P(window.location.href)+"#"+t)}function S(t){void 0===t&&(t={}),m||s(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),o=n.getUserConfirmation,i=void 0===o?w:o,a=n.hashType,c=void 0===a?"slash":a,u=t.basename?d(f(t.basename)):"",p=j[c],b=p.encodePath,g=p.decodePath;function O(){var t=g(x());return u&&(t=l(t,u)),y(t)}var S=v();function R(t){Object(r.a)(L,t),L.length=e.length,S.notifyListeners(L.location,L.action)}var C=!1,T=null;function k(){var t,e,n=x(),r=b(n);if(n!==r)E(r);else{var o=O(),a=L.location;if(!C&&(e=o,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(T===h(o))return;T=null,function(t){if(C)C=!1,R();else{S.confirmTransitionTo(t,"POP",i,(function(e){e?R({action:"POP",location:t}):function(t){var e=L.location,n=q.lastIndexOf(h(e));-1===n&&(n=0);var r=q.lastIndexOf(h(t));-1===r&&(r=0);var o=n-r;o&&(C=!0,_(o))}(t)}))}}(o)}}var M=x(),A=b(M);M!==A&&E(A);var N=O(),q=[h(N)];function _(t){e.go(t)}var I=0;function D(t){1===(I+=t)&&1===t?window.addEventListener("hashchange",k):0===I&&window.removeEventListener("hashchange",k)}var U=!1;var L={length:e.length,action:"POP",location:N,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=P(window.location.href)),n+"#"+b(u+h(t))},push:function(t,e){var n=y(t,void 0,void 0,L.location);S.confirmTransitionTo(n,"PUSH",i,(function(t){if(t){var e=h(n),r=b(u+e);if(x()!==r){T=e,function(t){window.location.hash=t}(r);var o=q.lastIndexOf(h(L.location)),i=q.slice(0,o+1);i.push(e),q=i,R({action:"PUSH",location:n})}else R()}}))},replace:function(t,e){var n=y(t,void 0,void 0,L.location);S.confirmTransitionTo(n,"REPLACE",i,(function(t){if(t){var e=h(n),r=b(u+e);x()!==r&&(T=e,E(r));var o=q.indexOf(h(L.location));-1!==o&&(q[o]=e),R({action:"REPLACE",location:n})}}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(t){void 0===t&&(t=!1);var e=S.setPrompt(t);return U||(D(1),U=!0),function(){return U&&(U=!1,D(-1)),e()}},listen:function(t){var e=S.appendListener(t);return D(1),function(){D(-1),e()}}};return L}function R(t,e,n){return Math.min(Math.max(t,e),n)}function C(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,o=e.initialEntries,i=void 0===o?["/"]:o,a=e.initialIndex,c=void 0===a?0:a,u=e.keyLength,s=void 0===u?6:u,f=v();function p(t){Object(r.a)(g,t),g.length=g.entries.length,f.notifyListeners(g.location,g.action)}function l(){return Math.random().toString(36).substr(2,s)}var d=R(c,0,i.length-1),b=i.map((function(t){return y(t,void 0,"string"==typeof t?l():t.key||l())})),m=h;function w(t){var e=R(g.index+t,0,g.entries.length-1),r=g.entries[e];f.confirmTransitionTo(r,"POP",n,(function(t){t?p({action:"POP",location:r,index:e}):p()}))}var g={length:b.length,action:"POP",location:b[d],index:d,entries:b,createHref:m,push:function(t,e){var r=y(t,e,l(),g.location);f.confirmTransitionTo(r,"PUSH",n,(function(t){if(t){var e=g.index+1,n=g.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),p({action:"PUSH",location:r,index:e,entries:n})}}))},replace:function(t,e){var r=y(t,e,l(),g.location);f.confirmTransitionTo(r,"REPLACE",n,(function(t){t&&(g.entries[g.index]=r,p({action:"REPLACE",location:r}))}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},canGo:function(t){var e=g.index+t;return e>=0&&e<g.entries.length},block:function(t){return void 0===t&&(t=!1),f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return g}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return a}));var r=n(11),o=function(t){return"[object Object]"===Object.prototype.toString.call(t)},i=[];function a(t){var e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name,n=t.reducers,r=t.effects;if(!e||"string"!=typeof e)throw new Error("Model name must be a valid string!");if("routing"===e)throw new Error('Model name can not be "routing", it is used by react-router-redux!');if(i.find((function(t){return t.name===e})))throw new Error('Model "'.concat(e,'" has been created, please select another name!'));if(void 0!==n&&!o(n))throw new Error("Model reducers must be a valid object!");if(void 0!==r&&!o(r))throw new Error("Model effects must be a valid object!");return t.reducers=c(n),t.effects=c(r),t}(t),n=e.name,a=e.reducers,u=e.initialState,s=e.effects,f={name:n,reducer:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments.length>1?arguments[1]:void 0;return"function"==typeof t[r.type]?t[r.type](n,r.data):n}}(Object(r.c)(n,a),u)};return i.push(f),Object(r.b)(n,a,s),f}function c(t){return t?Object.keys(t).reduce((function(e,n){return"function"==typeof t[n]&&(e[n]=t[n]),e}),{}):t}},function(t,e,n){"use strict";n.d(e,"b",(function(){return P})),n.d(e,"d",(function(){return w})),n.d(e,"a",(function(){return x})),n.d(e,"c",(function(){return S}));var r=n(1),o=n.n(r),i=n(0),a=n.n(i),c=n(4),u=n.n(c),s=n(2),f=n.n(s),p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var h=function(t){function e(){var n,r;l(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,t.call.apply(t,[this].concat(i))),r.state={match:r.computeMatch(r.props.history.location.pathname)},d(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getChildContext=function(){return{router:p({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},e.prototype.computeMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},e.prototype.componentWillMount=function(){var t=this,e=this.props,n=e.children,r=e.history;f()(null==n||1===o.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen((function(){t.setState({match:t.computeMatch(r.location.pathname)})}))},e.prototype.componentWillReceiveProps=function(t){u()(this.props.history===t.history,"You cannot change <Router history>")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?o.a.Children.only(t):null},e}(o.a.Component);h.propTypes={history:a.a.object.isRequired,children:a.a.node},h.contextTypes={router:a.a.object},h.childContextTypes={router:a.a.object.isRequired};var y=h,b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v="@@router/LOCATION_CHANGE",m={location:null};function w(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.type,r=e.payload;return n===v?b({},t,{location:r}):t}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var j=function(t){function e(){var n,r;g(this,e);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=O(this,t.call.apply(t,[this].concat(i))),r.handleLocationChange=function(t){r.store.dispatch({type:v,payload:t})},O(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){var t=this.props,e=t.store,n=t.history,r=t.isSSR;this.store=e||this.context.store,this.handleLocationChange(n.location),r||(this.unsubscribeFromHistory=n.listen(this.handleLocationChange))},e.prototype.componentWillUnmount=function(){this.unsubscribeFromHistory&&this.unsubscribeFromHistory()},e.prototype.render=function(){return o.a.createElement(y,this.props)},e}(r.Component);j.propTypes={store:a.a.object,history:a.a.object.isRequired,children:a.a.node,isSSR:a.a.bool},j.contextTypes={store:a.a.object};var P=j,x=(n(19),"@@router/CALL_HISTORY_METHOD");function E(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return{type:x,payload:{method:t,args:n}}}}var S={push:E("push"),replace:E("replace"),go:E("go"),goBack:E("goBack"),goForward:E("goForward")}},function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return b}));var r,o=n(17),i=n.n(o),a=n(18),c=n.n(a),u=n(12),s=n(8),f=n(10),p=n(14);function l(){return function(){return function(t){return function(e){if(e.type!==s.a)return t(e);var n=e.payload,r=n.method,o=n.args;p.b[r].apply(p.b,c()(o))}}}}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=u.a.apply(void 0,[l()].concat(c()(o),[Object(f.a)()])),a=[i],s=u.d;var p=v(t,e),d=s.apply(void 0,a);return r=Object(u.e)(p,n,d)}function b(t,e,n){var r=v(e,n);t.replaceReducer(r)}function v(t,e){var n=t.reduce((function(t,e){return t[e.name]=e.reducer,t}),{});return Object(u.c)(h(h(h({},e),n),{},{routing:s.d}))}},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return u}));var r=n(13),o=n(16);function i(){throw new Error('You are calling "dispatch" or "getState" without applying mirrorMiddleware! Please create your store with mirrorMiddleware first!')}var a=i,c=i;function u(){return function(t){return a=t.dispatch,c=t.getState,function(t){return function(e){var n=t(e);return"function"==typeof r.b[e.type]&&(n=r.b[e.type](e.data,c)),o.b.forEach((function(t){return t(e,c)})),n}}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c}));var r=n(10),o=n(3),i={};function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(Object.keys(e).length||Object.keys(n).length)&&(i[t]=i[t]||{}),u(e,(function(e){i[t][e]=s(t,e)})),u(n,(function(e){if(i[t][e])throw new Error('Action name "'.concat(e,'" has been used! Please select another name as effect name!'));o.b.addEffect("".concat(t).concat("/").concat(e),n[e]),i[t][e]=s(t,e),i[t][e].isEffect=!0}))}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(n,r){return n["".concat(t).concat("/").concat(r)]=e[r],n}),{})}function u(t,e){Object.keys(t).forEach(e)}function s(t,e){return function(n){return Object(r.b)({type:"".concat(t).concat("/").concat(e),data:n})}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return y})),n.d(e,"e",(function(){return c}));var r=n(23),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function c(t,e,n){var o;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(c)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var u=t,s=e,f=[],p=f,l=!1;function d(){p===f&&(p=f.slice())}function h(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function y(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var e=!0;return d(),p.push(t),function(){if(e){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");e=!1,d();var n=p.indexOf(t);p.splice(n,1),f=null}}}function b(t){if(!a(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,s=u(s,t)}finally{l=!1}for(var e=f=p,n=0;n<e.length;n++){(0,e[n])()}return t}function v(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");u=t,b({type:i.REPLACE})}function m(){var t,e=y;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(h())}return n(),{unsubscribe:e(n)}}})[r.a]=function(){return this},t}return b({type:i.INIT}),(o={dispatch:b,subscribe:y,getState:h,replaceReducer:v})[r.a]=m,o}function u(t,e){var n=e&&e.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function s(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++){var o=e[r];0,"function"==typeof t[o]&&(n[o]=t[o])}var a,c=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if(void 0===n(void 0,{type:i.INIT}))throw new Error('Reducer "'+e+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:i.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+i.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(t){a=t}return function(t,e){if(void 0===t&&(t={}),a)throw a;for(var r=!1,o={},i=0;i<c.length;i++){var s=c[i],f=n[s],p=t[s],l=f(p,e);if(void 0===l){var d=u(s,e);throw new Error(d)}o[s]=l,r=r||l!==p}return(r=r||c.length!==Object.keys(t).length)?o:t}}function f(t,e){return function(){return e(t.apply(this,arguments))}}function p(t,e){if("function"==typeof t)return f(t,e);if("object"!=typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in t){var o=t[r];"function"==typeof o&&(n[r]=f(o,e))}return n}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){var n=Object.keys(t);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(t)),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(n,!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function b(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(){var n=t.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=e.map((function(t){return t(o)}));return h({},n,{dispatch:r=y.apply(void 0,i)(n.dispatch)})}}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));var r={},o=function(t){return function(e,n){t[e]=n}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return y}));var r=n(30),o=n.n(r),i=n(1),a=n.n(i),c=n(0),u=n.n(c),s=n(6),f=n(8),p=n(3),l=n(10),d=n(11),h=null;function y(t){var e,n,r,i=t.history,c=t.children,u=o()(t,["history","children"]);return d.a.routing=Object.keys(f.c).reduce((function(t,e){return t[e]=function(){Object(l.b)(f.c[e].apply(f.c,arguments))},t}),{}),i||(e=u,n=p.b.historyMode,r={browser:s.a,hash:s.b,memory:s.d},i=h=r[n](e)),h=i,a.a.createElement(f.b,{history:i},c)}y.propTypes={children:u.a.element.isRequired,history:u.a.object}},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return tt}));var o=n(1),i=n.n(o),a=n(0),c=n.n(a),u=c.a.shape({trySubscribe:c.a.func.isRequired,tryUnsubscribe:c.a.func.isRequired,notifyNestedSubs:c.a.func.isRequired,isSubscribed:c.a.func.isRequired}),s=c.a.shape({subscribe:c.a.func.isRequired,dispatch:c.a.func.isRequired,getState:c.a.func.isRequired});i.a.forwardRef;var f=function(t){var e;void 0===t&&(t="store");var n=t+"Subscription",i=function(e){r(a,e);var i=a.prototype;function a(n,r){var o;return(o=e.call(this,n,r)||this)[t]=n.store,o}return i.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},i.render=function(){return o.Children.only(this.props.children)},a}(o.Component);return i.propTypes={store:s.isRequired,children:c.a.element.isRequired},i.childContextTypes=((e={})[t]=s.isRequired,e[n]=u,e),i}();function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var l=n(5);function d(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}var h=n(27),y=n.n(h),b=n(2),v=n.n(b),m=n(22),w={notify:function(){}};var g=function(){function t(t,e,n){this.store=t,this.parentSub=e,this.onStateChange=n,this.unsubscribe=null,this.listeners=w}var e=t.prototype;return e.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},e.notifyNestedSubs=function(){this.listeners.notify()},e.isSubscribed=function(){return Boolean(this.unsubscribe)},e.trySubscribe=function(){var t,e;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(t=[],e=[],{clear:function(){e=null,t=null},notify:function(){for(var n=t=e,r=0;r<n.length;r++)n[r]()},get:function(){return e},subscribe:function(n){var r=!0;return e===t&&(e=t.slice()),e.push(n),function(){r&&null!==t&&(r=!1,e===t&&(e=t.slice()),e.splice(e.indexOf(n),1))}}}))},e.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=w)},t}(),O=void 0!==i.a.forwardRef,j=0,P={};function x(){}function E(t,e){var n,i;void 0===e&&(e={});var a=e,c=a.getDisplayName,f=void 0===c?function(t){return"ConnectAdvanced("+t+")"}:c,h=a.methodName,b=void 0===h?"connectAdvanced":h,w=a.renderCountProp,E=void 0===w?void 0:w,S=a.shouldHandleStateChanges,R=void 0===S||S,C=a.storeKey,T=void 0===C?"store":C,k=a.withRef,M=void 0!==k&&k,A=d(a,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),N=T+"Subscription",q=j++,_=((n={})[T]=s,n[N]=u,n),I=((i={})[N]=u,i);return function(e){v()(Object(m.isValidElementType)(e),"You must pass a component to the function returned by "+b+". Instead received "+JSON.stringify(e));var n=e.displayName||e.name||"Component",i=f(n),a=Object(l.a)({},A,{getDisplayName:f,methodName:b,renderCountProp:E,shouldHandleStateChanges:R,storeKey:T,withRef:M,displayName:i,wrappedComponentName:n,WrappedComponent:e}),c=function(n){function c(t,e){var r;return(r=n.call(this,t,e)||this).version=q,r.state={},r.renderCount=0,r.store=t[T]||e[T],r.propsMode=Boolean(t[T]),r.setWrappedInstance=r.setWrappedInstance.bind(p(p(r))),v()(r.store,'Could not find "'+T+'" in either the context or props of "'+i+'". Either wrap the root component in a <Provider>, or explicitly pass "'+T+'" as a prop to "'+i+'".'),r.initSelector(),r.initSubscription(),r}r(c,n);var u=c.prototype;return u.getChildContext=function(){var t,e=this.propsMode?null:this.subscription;return(t={})[N]=e||this.context[N],t},u.componentDidMount=function(){R&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},u.componentWillReceiveProps=function(t){this.selector.run(t)},u.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},u.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=x,this.store=null,this.selector.run=x,this.selector.shouldComponentUpdate=!1},u.getWrappedInstance=function(){return v()(M,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+b+"() call."),this.wrappedInstance},u.setWrappedInstance=function(t){this.wrappedInstance=t},u.initSelector=function(){var e=t(this.store.dispatch,a);this.selector=function(t,e){var n={run:function(r){try{var o=t(e.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(t){n.shouldComponentUpdate=!0,n.error=t}}};return n}(e,this.store),this.selector.run(this.props)},u.initSubscription=function(){if(R){var t=(this.propsMode?this.props:this.context)[N];this.subscription=new g(this.store,t,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},u.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(P)):this.notifyNestedSubs()},u.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},u.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},u.addExtraProps=function(t){if(!(M||E||this.propsMode&&this.subscription))return t;var e=Object(l.a)({},t);return M&&(e.ref=this.setWrappedInstance),E&&(e[E]=this.renderCount++),this.propsMode&&this.subscription&&(e[N]=this.subscription),e},u.render=function(){var t=this.selector;if(t.shouldComponentUpdate=!1,t.error)throw t.error;return Object(o.createElement)(e,this.addExtraProps(t.props))},c}(o.Component);return O&&(c.prototype.UNSAFE_componentWillReceiveProps=c.prototype.componentWillReceiveProps,delete c.prototype.componentWillReceiveProps),c.WrappedComponent=e,c.displayName=i,c.childContextTypes=I,c.contextTypes=_,c.propTypes=_,y()(c,e)}}var S=Object.prototype.hasOwnProperty;function R(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function C(t,e){if(R(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!S.call(e,n[o])||!R(t[n[o]],e[n[o]]))return!1;return!0}var T=n(12);function k(t){return function(e,n){var r=t(e,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function M(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function A(t,e){return function(e,n){n.displayName;var r=function(t,e){return r.dependsOnOwnProps?r.mapToProps(t,e):r.mapToProps(t)};return r.dependsOnOwnProps=!0,r.mapToProps=function(e,n){r.mapToProps=t,r.dependsOnOwnProps=M(t);var o=r(e,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=M(o),o=r(e,n)),o},r}}var N=[function(t){return"function"==typeof t?A(t):void 0},function(t){return t?void 0:k((function(t){return{dispatch:t}}))},function(t){return t&&"object"==typeof t?k((function(e){return Object(T.b)(t,e)})):void 0}];var q=[function(t){return"function"==typeof t?A(t):void 0},function(t){return t?void 0:k((function(){return{}}))}];function _(t,e,n){return Object(l.a)({},n,t,e)}var I=[function(t){return"function"==typeof t?function(t){return function(e,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(e,n,c){var u=t(e,n,c);return a?o&&i(u,r)||(r=u):(a=!0,r=u),r}}}(t):void 0},function(t){return t?void 0:function(){return _}}];function D(t,e,n,r){return function(o,i){return n(t(o,i),e(r,i),i)}}function U(t,e,n,r,o){var i,a,c,u,s,f=o.areStatesEqual,p=o.areOwnPropsEqual,l=o.areStatePropsEqual,d=!1;function h(o,d){var h,y,b=!p(d,a),v=!f(o,i);return i=o,a=d,b&&v?(c=t(i,a),e.dependsOnOwnProps&&(u=e(r,a)),s=n(c,u,a)):b?(t.dependsOnOwnProps&&(c=t(i,a)),e.dependsOnOwnProps&&(u=e(r,a)),s=n(c,u,a)):v?(h=t(i,a),y=!l(h,c),c=h,y&&(s=n(c,u,a)),s):s}return function(o,f){return d?h(o,f):(c=t(i=o,a=f),u=e(r,a),s=n(c,u,a),d=!0,s)}}function L(t,e){var n=e.initMapStateToProps,r=e.initMapDispatchToProps,o=e.initMergeProps,i=d(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(t,i),c=r(t,i),u=o(t,i);return(i.pure?U:D)(a,c,u,t,i)}function $(t,e,n){for(var r=e.length-1;r>=0;r--){var o=e[r](t);if(o)return o}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function W(t,e){return t===e}var F,H,Y,B,K,z,V,G,J,Q,X,Z,tt=(Y=(H=void 0===F?{}:F).connectHOC,B=void 0===Y?E:Y,K=H.mapStateToPropsFactories,z=void 0===K?q:K,V=H.mapDispatchToPropsFactories,G=void 0===V?N:V,J=H.mergePropsFactories,Q=void 0===J?I:J,X=H.selectorFactory,Z=void 0===X?L:X,function(t,e,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,c=o.areStatesEqual,u=void 0===c?W:c,s=o.areOwnPropsEqual,f=void 0===s?C:s,p=o.areStatePropsEqual,h=void 0===p?C:p,y=o.areMergedPropsEqual,b=void 0===y?C:y,v=d(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),m=$(t,z,"mapStateToProps"),w=$(e,G,"mapDispatchToProps"),g=$(n,Q,"mergeProps");return B(Z,Object(l.a)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:m,initMapDispatchToProps:w,initMergeProps:g,pure:a,areStatesEqual:u,areOwnPropsEqual:f,areStatePropsEqual:h,areMergedPropsEqual:b},v))})},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));var r=[];function o(t){if("function"!=typeof t)throw new Error("Invalid hook, must be a function!");return r.push(t),function(){r.splice(r.indexOf(t),1)}}},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){var r=n(34),o=n(35),i=n(36),a=n(37);t.exports=function(t){return r(t)||o(t)||i(t)||a()}},function(t,e,n){"use strict";var r=n(20),o=n.n(r),i={},a=0,c=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=i[n]||(i[n]={});if(r[t])return r[t];var c=[],u={re:o()(t,c,e),keys:c};return a<1e4&&(r[t]=u,a++),u};e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof e&&(e={path:e});var r=e,o=r.path,i=r.exact,a=void 0!==i&&i,u=r.strict,s=void 0!==u&&u,f=r.sensitive,p=void 0!==f&&f;if(null==o)return n;var l=c(o,{end:a,strict:s,sensitive:p}),d=l.re,h=l.keys,y=d.exec(t);if(!y)return null;var b=y[0],v=y.slice(1),m=t===b;return a&&!m?null:{path:o,url:"/"===o&&""===b?"/":b,isExact:m,params:h.reduce((function(t,e,n){return t[e.name]=v[n],t}),{})}}},function(t,e,n){var r=n(38);t.exports=d,t.exports.parse=i,t.exports.compile=function(t,e){return c(i(t,e))},t.exports.tokensToFunction=c,t.exports.tokensToRegExp=l;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,e){for(var n,r=[],i=0,a=0,c="",f=e&&e.delimiter||"/";null!=(n=o.exec(t));){var p=n[0],l=n[1],d=n.index;if(c+=t.slice(a,d),a=d+p.length,l)c+=l[1];else{var h=t[a],y=n[2],b=n[3],v=n[4],m=n[5],w=n[6],g=n[7];c&&(r.push(c),c="");var O=null!=y&&null!=h&&h!==y,j="+"===w||"*"===w,P="?"===w||"*"===w,x=n[2]||f,E=v||m;r.push({name:b||i++,prefix:y||"",delimiter:x,optional:P,repeat:j,partial:O,asterisk:!!g,pattern:E?s(E):g?".*":"[^"+u(x)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&r.push(c),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function c(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,o){for(var i="",c=n||{},u=(o||{}).pretty?a:encodeURIComponent,s=0;s<t.length;s++){var f=t[s];if("string"!=typeof f){var p,l=c[f.name];if(null==l){if(f.optional){f.partial&&(i+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(r(l)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var d=0;d<l.length;d++){if(p=u(l[d]),!e[s].test(p))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(p)+"`");i+=(0===d?f.prefix:f.delimiter)+p}}else{if(p=f.asterisk?encodeURI(l).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(l),!e[s].test(p))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+p+'"');i+=f.prefix+p}}else i+=f}return i}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,e){return t.keys=e,t}function p(t){return t.sensitive?"":"i"}function l(t,e,n){r(e)||(n=e||n,e=[]);for(var o=(n=n||{}).strict,i=!1!==n.end,a="",c=0;c<t.length;c++){var s=t[c];if("string"==typeof s)a+=u(s);else{var l=u(s.prefix),d="(?:"+s.pattern+")";e.push(s),s.repeat&&(d+="(?:"+l+d+")*"),a+=d=s.optional?s.partial?l+"("+d+")?":"(?:"+l+"("+d+"))?":l+"("+d+")"}}var h=u(n.delimiter||"/"),y=a.slice(-h.length)===h;return o||(a=(y?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=i?"$":o&&y?"":"(?="+h+"|$)",f(new RegExp("^"+a,p(n)),e)}function d(t,e,n){return r(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(d(t[o],e,n).source);return f(new RegExp("(?:"+r.join("|")+")",p(n)),e)}(t,e,n):function(t,e,n){return l(i(t,n),e,n)}(t,e,n)}},function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return h}));var r,o=n(1),i=n.n(o),a=n(29),c=n.n(a),u=n(15),s=n(3),f=n(7),p=n(9),l=!1;function d(e,n,o){var a=s.b.initialState,d=s.b.middlewares,h=s.b.reducers;if(l){if(Object(p.b)(p.c,f.b,h),0===arguments.length)return r}else Object(p.a)(f.b,h,a,d);return r=function(){return i.a.createElement(u.a,{store:p.c},e)},l=!0,t.document&&c.a.render(i.a.createElement(r,null),n,o),r}function h(t){var e=s.b.initialState,n=s.b.middlewares,o=s.b.reducers;if(l){if(Object(p.b)(p.c,f.b,o),0===arguments.length)return i.a.createElement(r,null)}else Object(p.a)(f.b,o,e,n);return r=function(){return i.a.createElement(u.a,{store:p.c},t.children)},l=!0,i.a.createElement(r,null)}}).call(this,n(25))},function(t,e,n){"use strict";t.exports=n(32)},function(t,e,n){"use strict";(function(t,r){var o,i=n(28);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:r;var a=Object(i.a)(o);e.a=a}).call(this,n(25),n(33)(t))},,function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}},function(t,e,n){"use strict";var r=n(22),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(t){return r.isMemo(t)?a:c[t.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,f=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&t(e,o,r)}var a=f(n);p&&(a=a.concat(p(n)));for(var c=u(e),y=u(n),b=0;b<a.length;++b){var v=a[b];if(!(i[v]||r&&r[v]||y&&y[v]||c&&c[v])){var m=l(n,v);try{s(e,v,m)}catch(t){}}}}return e}},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return r}))},function(t,e){t.exports=n},function(t,e,n){var r=n(39);t.exports=function(t,e){if(null==t)return{};var n,o,i=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}},function(t,e,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,s=Object.getPrototypeOf,f=s&&s(Object);t.exports=function t(e,n,p){if("string"!=typeof n){if(f){var l=s(n);l&&l!==f&&t(e,l,p)}var d=a(n);c&&(d=d.concat(c(n)));for(var h=0;h<d.length;++h){var y=d[h];if(!(r[y]||o[y]||p&&p[y])){var b=u(n,y);try{i(e,y,b)}catch(t){}}}return e}return e}},function(t,e,n){"use strict"; /** @license React v16.8.6 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,f=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,l=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116;function v(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case o:switch(t=t.type){case p:case l:case a:case u:case c:case h:return t;default:switch(t=t&&t.$$typeof){case f:case d:case s:return t;default:return e}}case b:case y:case i:return e}}}function m(t){return v(t)===l}e.typeOf=v,e.AsyncMode=p,e.ConcurrentMode=l,e.ContextConsumer=f,e.ContextProvider=s,e.Element=o,e.ForwardRef=d,e.Fragment=a,e.Lazy=b,e.Memo=y,e.Portal=i,e.Profiler=u,e.StrictMode=c,e.Suspense=h,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===l||t===u||t===c||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===b||t.$$typeof===y||t.$$typeof===s||t.$$typeof===f||t.$$typeof===d)},e.isAsyncMode=function(t){return m(t)||v(t)===p},e.isConcurrentMode=m,e.isContextConsumer=function(t){return v(t)===f},e.isContextProvider=function(t){return v(t)===s},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===o},e.isForwardRef=function(t){return v(t)===d},e.isFragment=function(t){return v(t)===a},e.isLazy=function(t){return v(t)===b},e.isMemo=function(t){return v(t)===y},e.isPortal=function(t){return v(t)===i},e.isProfiler=function(t){return v(t)===u},e.isStrictMode=function(t){return v(t)===c},e.isSuspense=function(t){return v(t)===h}},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){var r=n(26);t.exports=function(t){if(Array.isArray(t))return r(t)}},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},function(t,e,n){var r=n(26);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e){t.exports=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}},function(t,e,n){"use strict";n.r(e),n.d(e,"model",(function(){return et.a})),n.d(e,"actions",(function(){return nt.a})),n.d(e,"hook",(function(){return ot.a})),n.d(e,"defaults",(function(){return at.a})),n.d(e,"connect",(function