Socket
Socket
Sign inDemoInstall

react-router-dom

Package Overview
Dependencies
33
Maintainers
3
Versions
324
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.1.0

14

BrowserRouter.js

@@ -9,2 +9,6 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _createBrowserHistory = require('history/createBrowserHistory');

@@ -50,8 +54,8 @@

BrowserRouter.propTypes = {
basename: _react.PropTypes.string,
forceRefresh: _react.PropTypes.bool,
getUserConfirmation: _react.PropTypes.func,
keyLength: _react.PropTypes.number,
children: _react.PropTypes.node
basename: _propTypes2.default.string,
forceRefresh: _propTypes2.default.bool,
getUserConfirmation: _propTypes2.default.func,
keyLength: _propTypes2.default.number,
children: _propTypes2.default.node
};
exports.default = BrowserRouter;

@@ -7,3 +7,4 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

import React, { PropTypes } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import createHistory from 'history/createBrowserHistory';

@@ -10,0 +11,0 @@ import { Router } from 'react-router';

@@ -7,3 +7,4 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

import React, { PropTypes } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import createHistory from 'history/createHashHistory';

@@ -10,0 +11,0 @@ import { Router } from 'react-router';

@@ -11,3 +11,4 @@ var _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; };

import React, { PropTypes } from 'react';
import React from 'react';
import PropTypes from 'prop-types';

@@ -14,0 +15,0 @@ var isModifiedEvent = function isModifiedEvent(event) {

@@ -7,3 +7,4 @@ var _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; };

import React, { PropTypes } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import { Route } from 'react-router';

@@ -19,2 +20,3 @@ import Link from './Link';

strict = _ref.strict,
location = _ref.location,
activeClassName = _ref.activeClassName,

@@ -25,3 +27,3 @@ className = _ref.className,

getIsActive = _ref.isActive,
rest = _objectWithoutProperties(_ref, ['to', 'exact', 'strict', 'activeClassName', 'className', 'activeStyle', 'style', 'isActive']);
rest = _objectWithoutProperties(_ref, ['to', 'exact', 'strict', 'location', 'activeClassName', 'className', 'activeStyle', 'style', 'isActive']);

@@ -32,2 +34,3 @@ return React.createElement(Route, {

strict: strict,
location: location,
children: function children(_ref2) {

@@ -41,3 +44,5 @@ var location = _ref2.location,

to: to,
className: isActive ? [activeClassName, className].join(' ') : className,
className: isActive ? [activeClassName, className].filter(function (i) {
return i;
}).join(' ') : className,
style: isActive ? _extends({}, style, activeStyle) : style

@@ -53,2 +58,3 @@ }, rest));

strict: PropTypes.bool,
location: PropTypes.object,
activeClassName: PropTypes.string,

@@ -55,0 +61,0 @@ className: PropTypes.string,

@@ -9,2 +9,6 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _createHashHistory = require('history/createHashHistory');

@@ -50,7 +54,7 @@

HashRouter.propTypes = {
basename: _react.PropTypes.string,
getUserConfirmation: _react.PropTypes.func,
hashType: _react.PropTypes.oneOf(['hashbang', 'noslash', 'slash']),
children: _react.PropTypes.node
basename: _propTypes2.default.string,
getUserConfirmation: _propTypes2.default.func,
hashType: _propTypes2.default.oneOf(['hashbang', 'noslash', 'slash']),
children: _propTypes2.default.node
};
exports.default = HashRouter;

@@ -11,2 +11,6 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -82,6 +86,6 @@

Link.propTypes = {
onClick: _react.PropTypes.func,
target: _react.PropTypes.string,
replace: _react.PropTypes.bool,
to: _react.PropTypes.oneOfType([_react.PropTypes.string, _react.PropTypes.object]).isRequired
onClick: _propTypes2.default.func,
target: _propTypes2.default.string,
replace: _propTypes2.default.bool,
to: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]).isRequired
};

@@ -92,7 +96,7 @@ Link.defaultProps = {

Link.contextTypes = {
router: _react.PropTypes.shape({
history: _react.PropTypes.shape({
push: _react.PropTypes.func.isRequired,
replace: _react.PropTypes.func.isRequired,
createHref: _react.PropTypes.func.isRequired
router: _propTypes2.default.shape({
history: _propTypes2.default.shape({
push: _propTypes2.default.func.isRequired,
replace: _propTypes2.default.func.isRequired,
createHref: _propTypes2.default.func.isRequired
}).isRequired

@@ -99,0 +103,0 @@ }).isRequired

@@ -13,2 +13,6 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _reactRouter = require('react-router');

@@ -31,2 +35,3 @@

strict = _ref.strict,
location = _ref.location,
activeClassName = _ref.activeClassName,

@@ -37,3 +42,3 @@ className = _ref.className,

getIsActive = _ref.isActive,
rest = _objectWithoutProperties(_ref, ['to', 'exact', 'strict', 'activeClassName', 'className', 'activeStyle', 'style', 'isActive']);
rest = _objectWithoutProperties(_ref, ['to', 'exact', 'strict', 'location', 'activeClassName', 'className', 'activeStyle', 'style', 'isActive']);

@@ -44,2 +49,3 @@ return _react2.default.createElement(_reactRouter.Route, {

strict: strict,
location: location,
children: function children(_ref2) {

@@ -53,3 +59,5 @@ var location = _ref2.location,

to: to,
className: isActive ? [activeClassName, className].join(' ') : className,
className: isActive ? [activeClassName, className].filter(function (i) {
return i;
}).join(' ') : className,
style: isActive ? _extends({}, style, activeStyle) : style

@@ -63,9 +71,10 @@ }, rest));

to: _Link2.default.propTypes.to,
exact: _react.PropTypes.bool,
strict: _react.PropTypes.bool,
activeClassName: _react.PropTypes.string,
className: _react.PropTypes.string,
activeStyle: _react.PropTypes.object,
style: _react.PropTypes.object,
isActive: _react.PropTypes.func
exact: _propTypes2.default.bool,
strict: _propTypes2.default.bool,
location: _propTypes2.default.object,
activeClassName: _propTypes2.default.string,
className: _propTypes2.default.string,
activeStyle: _propTypes2.default.object,
style: _propTypes2.default.object,
isActive: _propTypes2.default.func
};

@@ -72,0 +81,0 @@

{
"name": "react-router-dom",
"version": "4.0.0",
"version": "4.1.0",
"description": "DOM bindings for React Router",

@@ -26,3 +26,2 @@ "repository": "ReactTraining/react-router",

"withRouter.js",
"README.md",
"es",

@@ -37,3 +36,3 @@ "umd"

"prepublish": "node ./tools/build.js",
"clean": "git clean -e '!node_modules' -fdX .",
"clean": "git clean -fdX .",
"lint": "eslint modules",

@@ -47,3 +46,5 @@ "test": "karma start --single-run"

"history": "^4.5.1",
"react-router": "^4.0.0"
"loose-envify": "^1.3.1",
"prop-types": "^15.5.4",
"react-router": "^4.1.0"
},

@@ -77,3 +78,2 @@ "devDependencies": {

"react-dom": "^15.3.0",
"readline-sync": "^1.4.4",
"webpack": "^1.13.1",

@@ -80,0 +80,0 @@ "webpack-dev-server": "^1.14.1"

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactRouterDOM=e(require("react")):t.ReactRouterDOM=e(t.React)}(this,function(t){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.withRouter=e.matchPath=e.Switch=e.StaticRouter=e.Router=e.Route=e.Redirect=e.Prompt=e.NavLink=e.MemoryRouter=e.Link=e.HashRouter=e.BrowserRouter=void 0;var r=n(16),i=o(r),a=n(17),u=o(a),c=n(9),s=o(c),l=n(18),f=o(l),p=n(19),h=o(p),d=n(20),y=o(d),v=n(21),m=o(v),b=n(22),g=o(b),w=n(23),P=o(w),O=n(24),_=o(O),x=n(25),T=o(x),j=n(26),R=o(j),E=n(27),M=o(E);e.BrowserRouter=i.default,e.HashRouter=u.default,e.Link=s.default,e.MemoryRouter=f.default,e.NavLink=h.default,e.Prompt=y.default,e.Redirect=m.default,e.Route=g.default,e.Router=P.default,e.StaticRouter=_.default,e.Switch=T.default,e.matchPath=R.default,e.withRouter=M.default},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.withRouter=e.matchPath=e.Switch=e.StaticRouter=e.Router=e.Route=e.Redirect=e.Prompt=e.MemoryRouter=void 0;var r=n(32),i=o(r),a=n(33),u=o(a),c=n(34),s=o(c),l=n(14),f=o(l),p=n(6),h=o(p),d=n(35),y=o(d),v=n(36),m=o(v),b=n(7),g=o(b),w=n(37),P=o(w);e.MemoryRouter=i.default,e.Prompt=u.default,e.Redirect=s.default,e.Route=f.default,e.Router=h.default,e.StaticRouter=y.default,e.Switch=m.default,e.matchPath=g.default,e.withRouter=P.default},function(e,n){e.exports=t},function(t,e,n){"use strict";var o=function(){};t.exports=o},function(t,e){"use strict";e.__esModule=!0;e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},e.stripPrefix=function(t,e){return 0===t.indexOf(e)?t.substr(e.length):t},e.stripTrailingSlash=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},e.parsePath=function(t){var e=t||"/",n="",o="";e=decodeURI(e);var r=e.indexOf("#");r!==-1&&(o=e.substr(r),e=e.substr(0,r));var i=e.indexOf("?");return i!==-1&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===o?"":o}},e.createPath=function(t){var e=t.pathname,n=t.search,o=t.hash,r=e||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),encodeURI(r)}},function(t,e,n){"use strict";var o=function(){};t.exports=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},c=n(3),s=o(c),l=n(15),f=o(l),p=n(2),h=o(p),d=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=i(this,t.call.apply(t,[this].concat(c))),o.state={match:o.computeMatch(o.props.history.location.pathname)},a=n,i(o,a)}return a(e,t),e.prototype.getChildContext=function(){return{router:u({},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,o=e.history;(0,f.default)(null==n||1===h.default.Children.count(n),"A <Router> may have only one child element"),this.unlisten=o.listen(function(){t.setState({match:t.computeMatch(o.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){(0,s.default)(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?h.default.Children.only(t):null},e}(h.default.Component);d.propTypes={history:p.PropTypes.object.isRequired,children:p.PropTypes.node},d.contextTypes={router:p.PropTypes.object},d.childContextTypes={router:p.PropTypes.object.isRequired},e.default=d},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(41),i=o(r),a={},u=1e4,c=0,s=function(t,e){var n=""+e.end+e.strict,o=a[n]||(a[n]={});if(o[t])return o[t];var r=[],s=(0,i.default)(t,r,e),l={re:s,keys:r};return c<u&&(o[t]=l,c++),l},l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e={path:e});var n=e,o=n.path,r=void 0===o?"/":o,i=n.exact,a=void 0!==i&&i,u=n.strict,c=void 0!==u&&u,l=s(r,{end:a,strict:c}),f=l.re,p=l.keys,h=f.exec(t);if(!h)return null;var d=h[0],y=h.slice(1),v=t===d;return a&&!v?null:{path:r,url:"/"===r&&""===d?"/":d,isExact:v,params:p.reduce(function(t,e,n){return t[e.name]=y[n],t},{})}};e.default=l},function(t,e){"use strict";e.__esModule=!0;e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},e.stripPrefix=function(t,e){return 0===t.indexOf(e)?t.substr(e.length):t},e.stripTrailingSlash=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},e.parsePath=function(t){var e=t||"/",n="",o="";e=decodeURI(e);var r=e.indexOf("#");r!==-1&&(o=e.substr(r),e=e.substr(0,r));var i=e.indexOf("?");return i!==-1&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===o?"":o}},e.createPath=function(t){var e=t.pathname,n=t.search,o=t.hash,r=e||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),encodeURI(r)}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(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}function u(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.__esModule=!0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},s=n(2),l=o(s),f=function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)},p=function(t){function e(){var n,o,r;i(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=a(this,t.call.apply(t,[this].concat(c))),o.handleClick=function(t){if(o.props.onClick&&o.props.onClick(t),!t.defaultPrevented&&0===t.button&&!o.props.target&&!f(t)){t.preventDefault();var e=o.context.router.history,n=o.props,r=n.replace,i=n.to;r?e.replace(i):e.push(i)}},r=n,a(o,r)}return u(e,t),e.prototype.render=function(){var t=this.props,e=(t.replace,t.to),n=r(t,["replace","to"]),o=this.context.router.history.createHref("string"==typeof e?{pathname:e}:e);return l.default.createElement("a",c({},n,{onClick:this.handleClick,href:o}))},e}(l.default.Component);p.defaultProps={replace:!1},p.contextTypes={router:s.PropTypes.shape({history:s.PropTypes.shape({push:s.PropTypes.func.isRequired,replace:s.PropTypes.func.isRequired,createHref:s.PropTypes.func.isRequired}).isRequired}).isRequired},e.default=p},function(t,e){"use strict";e.__esModule=!0;e.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),e.addEventListener=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},e.getConfirmation=function(t,e){return e(window.confirm(t))},e.supportsHistory=function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)},e.supportsPopStateOnHashChange=function(){return window.navigator.userAgent.indexOf("Trident")===-1},e.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},e.isExtraneousPopstateEvent=function(t){return void 0===t.state&&navigator.userAgent.indexOf("CriOS")===-1}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.locationsAreEqual=e.createLocation=void 0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},i=n(30),a=o(i),u=n(31),c=o(u),s=n(4);e.createLocation=function(t,e,n,o){var i=void 0;return"string"==typeof t?(i=(0,s.parsePath)(t),i.state=e):(i=r({},t),void 0===i.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)),i.key=n,o&&(i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,o.pathname)):i.pathname=o.pathname),i},e.locationsAreEqual=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&(0,c.default)(t.state,e.state)}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(5),i=o(r),a=function(){var t=null,e=function(e){return(0,i.default)(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,o,r){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof o?o(a,r):((0,i.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(a!==!1)}else r(!0)},o=[],r=function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return o.push(n),function(){e=!1,o=o.filter(function(t){return t!==n})}},a=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];o.forEach(function(t){return t.apply(void 0,e)})};return{setPrompt:e,confirmTransitionTo:n,appendListener:r,notifyListeners:a}};e.default=a},function(t,e,n){"use strict";var o=function(t,e,n,o,r,i,a,u){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,r,i,a,u],l=0;c=new Error(e.replace(/%s/g,function(){return s[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},c=n(3),s=o(c),l=n(2),f=o(l),p=n(7),h=o(p),d=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=i(this,t.call.apply(t,[this].concat(c))),o.state={match:o.computeMatch(o.props,o.context.router)},a=n,i(o,a)}return a(e,t),e.prototype.getChildContext=function(){this.context.router;return{router:u({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},e.prototype.computeMatch=function(t,e){var n=t.computedMatch,o=t.location,r=t.path,i=t.strict,a=t.exact,u=e.route;if(n)return n;var c=(o||u.location).pathname;return r?(0,h.default)(c,{path:r,strict:i,exact:a}):u.match},e.prototype.componentWillMount=function(){var t=this.props,e=t.component,n=t.render,o=t.children;(0,s.default)(!(e&&n),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),(0,s.default)(!(e&&o),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),(0,s.default)(!(n&&o),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){(0,s.default)(!(t.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,s.default)(!(!t.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function t(){var e=this.state.match,n=this.props,o=n.children,r=n.component,t=n.render,i=this.context.router,a=i.history,u=i.route,c=i.staticContext,s=this.props.location||u.location,l={match:e,location:s,history:a,staticContext:c};return r?e?f.default.createElement(r,l):null:t?e?t(l):null:o?"function"==typeof o?o(l):!Array.isArray(o)||o.length?f.default.Children.only(o):null:null},e}(f.default.Component);d.propTypes={computedMatch:l.PropTypes.object,path:l.PropTypes.string,exact:l.PropTypes.bool,strict:l.PropTypes.bool,component:l.PropTypes.func,render:l.PropTypes.func,children:l.PropTypes.oneOfType([l.PropTypes.func,l.PropTypes.node]),location:l.PropTypes.object},d.contextTypes={router:l.PropTypes.shape({history:l.PropTypes.object.isRequired,route:l.PropTypes.object.isRequired,staticContext:l.PropTypes.object})},d.childContextTypes={router:l.PropTypes.object.isRequired},e.default=d},function(t,e,n){"use strict";var o=function(t,e,n,o,r,i,a,u){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,r,i,a,u],l=0;c=new Error(e.replace(/%s/g,function(){return s[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=n(2),c=o(u),s=n(28),l=o(s),f=n(1),p=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=i(this,t.call.apply(t,[this].concat(c))),o.history=(0,l.default)(o.props),a=n,i(o,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(f.Router,{history:this.history,children:this.props.children})},e}(c.default.Component);e.default=p},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=n(2),c=o(u),s=n(29),l=o(s),f=n(1),p=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=i(this,t.call.apply(t,[this].concat(c))),o.history=(0,l.default)(o.props),a=n,i(o,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(f.Router,{history:this.history,children:this.props.children})},e}(c.default.Component);e.default=p},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.MemoryRouter}})},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=n(2),c=o(u),s=n(1),l=n(9),f=o(l),p=function(t){var e=t.to,n=t.exact,o=t.strict,u=t.activeClassName,l=t.className,p=t.activeStyle,h=t.style,d=t.isActive,y=r(t,["to","exact","strict","activeClassName","className","activeStyle","style","isActive"]);return c.default.createElement(s.Route,{path:"object"===("undefined"==typeof e?"undefined":a(e))?e.pathname:e,exact:n,strict:o,children:function(t){var n=t.location,o=t.match,r=!!(d?d(o,n):o);return c.default.createElement(f.default,i({to:e,className:r?[u,l].join(" "):l,style:r?i({},h,p):h},y))}})};p.defaultProps={activeClassName:"active"},e.default=p},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.Prompt}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.Redirect}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.Route}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.Router}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.StaticRouter}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.Switch}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.matchPath}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.withRouter}})},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},a=n(5),u=o(a),c=n(13),s=o(c),l=n(11),f=n(4),p=n(12),h=o(p),d=n(10),y="popstate",v="hashchange",m=function(){try{return window.history.state||{}}catch(t){return{}}},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(d.canUseDOM,"Browser history needs a DOM");var e=window.history,n=(0,d.supportsHistory)(),o=!(0,d.supportsPopStateOnHashChange)(),a=t.forceRefresh,c=void 0!==a&&a,p=t.getUserConfirmation,b=void 0===p?d.getConfirmation:p,g=t.keyLength,w=void 0===g?6:g,P=t.basename?(0,f.stripTrailingSlash)((0,f.addLeadingSlash)(t.basename)):"",O=function(t){var e=t||{},n=e.key,o=e.state,r=window.location,a=r.pathname,u=r.search,c=r.hash,s=a+u+c;return P&&(s=(0,f.stripPrefix)(s,P)),i({},(0,f.parsePath)(s),{state:o,key:n})},_=function(){return Math.random().toString(36).substr(2,w)},x=(0,h.default)(),T=function(t){i($,t),$.length=e.length,x.notifyListeners($.location,$.action)},j=function(t){(0,d.isExtraneousPopstateEvent)(t)||M(O(t.state))},R=function(){M(O(m()))},E=!1,M=function(t){if(E)E=!1,T();else{var e="POP";x.confirmTransitionTo(t,e,b,function(n){n?T({action:e,location:t}):S(t)})}},S=function(t){var e=$.location,n=k.indexOf(e.key);n===-1&&(n=0);var o=k.indexOf(t.key);o===-1&&(o=0);var r=n-o;r&&(E=!0,H(r))},C=O(m()),k=[C.key],A=function(t){return P+(0,f.createPath)(t)},L=function(t,o){(0,u.default)(!("object"===("undefined"==typeof t?"undefined":r(t))&&void 0!==t.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i="PUSH",a=(0,l.createLocation)(t,o,_(),$.location);x.confirmTransitionTo(a,i,b,function(t){if(t){var o=A(a),r=a.key,s=a.state;if(n)if(e.pushState({key:r,state:s},null,o),c)window.location.href=o;else{var l=k.indexOf($.location.key),f=k.slice(0,l===-1?0:l+1);f.push(a.key),k=f,T({action:i,location:a})}else(0,u.default)(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}})},q=function(t,o){(0,u.default)(!("object"===("undefined"==typeof t?"undefined":r(t))&&void 0!==t.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i="REPLACE",a=(0,l.createLocation)(t,o,_(),$.location);x.confirmTransitionTo(a,i,b,function(t){if(t){var o=A(a),r=a.key,s=a.state;if(n)if(e.replaceState({key:r,state:s},null,o),c)window.location.replace(o);else{var l=k.indexOf($.location.key);l!==-1&&(k[l]=a.key),T({action:i,location:a})}else(0,u.default)(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}})},H=function(t){e.go(t)},U=function(){return H(-1)},I=function(){return H(1)},W=0,Y=function(t){W+=t,1===W?((0,d.addEventListener)(window,y,j),o&&(0,d.addEventListener)(window,v,R)):0===W&&((0,d.removeEventListener)(window,y,j),o&&(0,d.removeEventListener)(window,v,R))},B=!1,N=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=x.setPrompt(t);return B||(Y(1),B=!0),function(){return B&&(B=!1,Y(-1)),e()}},D=function(t){var e=x.appendListener(t);return Y(1),function(){Y(-1),e()}},$={length:e.length,action:"POP",location:C,createHref:A,push:L,replace:q,go:H,goBack:U,goForward:I,block:N,listen:D};return $};e.default=b},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},i=n(5),a=o(i),u=n(13),c=o(u),s=n(11),l=n(4),f=n(12),p=o(f),h=n(10),d="hashchange",y={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+(0,l.stripLeadingSlash)(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:l.stripLeadingSlash,decodePath:l.addLeadingSlash},slash:{encodePath:l.addLeadingSlash,decodePath:l.addLeadingSlash}},v=function(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.substring(e+1)},m=function(t){return window.location.hash=t},b=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)},g=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,c.default)(h.canUseDOM,"Hash history needs a DOM");var e=window.history,n=(0,h.supportsGoWithoutReloadUsingHash)(),o=t.getUserConfirmation,i=void 0===o?h.getConfirmation:o,u=t.hashType,f=void 0===u?"slash":u,g=t.basename?(0,l.stripTrailingSlash)((0,l.addLeadingSlash)(t.basename)):"",w=y[f],P=w.encodePath,O=w.decodePath,_=function(){var t=O(v());return g&&(t=(0,l.stripPrefix)(t,g)),(0,l.parsePath)(t)},x=(0,p.default)(),T=function(t){r(K,t),K.length=e.length,x.notifyListeners(K.location,K.action)},j=!1,R=null,E=function(){var t=v(),e=P(t);if(t!==e)b(e);else{var n=_(),o=K.location;if(!j&&(0,s.locationsAreEqual)(o,n))return;if(R===(0,l.createPath)(n))return;R=null,M(n)}},M=function(t){if(j)j=!1,T();else{var e="POP";x.confirmTransitionTo(t,e,i,function(n){n?T({action:e,location:t}):S(t)})}},S=function(t){var e=K.location,n=L.lastIndexOf((0,l.createPath)(e));n===-1&&(n=0);var o=L.lastIndexOf((0,l.createPath)(t));o===-1&&(o=0);var r=n-o;r&&(j=!0,I(r))},C=v(),k=P(C);C!==k&&b(k);var A=_(),L=[(0,l.createPath)(A)],q=function(t){return"#"+P(g+(0,l.createPath)(t))},H=function(t,e){(0,a.default)(void 0===e,"Hash history cannot push state; it is ignored");var n="PUSH",o=(0,s.createLocation)(t,void 0,void 0,K.location);x.confirmTransitionTo(o,n,i,function(t){if(t){var e=(0,l.createPath)(o),r=P(g+e),i=v()!==r;if(i){R=e,m(r);var u=L.lastIndexOf((0,l.createPath)(K.location)),c=L.slice(0,u===-1?0:u+1);c.push(e),L=c,T({action:n,location:o})}else(0,a.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),T()}})},U=function(t,e){(0,a.default)(void 0===e,"Hash history cannot replace state; it is ignored");var n="REPLACE",o=(0,s.createLocation)(t,void 0,void 0,K.location);x.confirmTransitionTo(o,n,i,function(t){if(t){var e=(0,l.createPath)(o),r=P(g+e),i=v()!==r;i&&(R=e,b(r));var a=L.indexOf((0,l.createPath)(K.location));a!==-1&&(L[a]=e),T({action:n,location:o})}})},I=function(t){(0,a.default)(n,"Hash history go(n) causes a full page reload in this browser"),e.go(t)},W=function(){return I(-1)},Y=function(){return I(1)},B=0,N=function(t){B+=t,1===B?(0,h.addEventListener)(window,d,E):0===B&&(0,h.removeEventListener)(window,d,E)},D=!1,$=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=x.setPrompt(t);return D||(N(1),D=!0),function(){return D&&(D=!1,N(-1)),e()}},F=function(t){var e=x.appendListener(t);return N(1),function(){N(-1),e()}},K={length:e.length,action:"POP",location:A,createHref:q,push:H,replace:U,go:I,goBack:W,goForward:Y,block:$,listen:F};return K};e.default=g},function(t,e){"use strict";var n=function(t){return"/"===t.charAt(0)},o=function(t,e){for(var n=e,o=n+1,r=t.length;o<r;n+=1,o+=1)t[n]=t[o];t.pop()},r=function(t){var e=arguments.length<=1||void 0===arguments[1]?"":arguments[1],r=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&n(t),u=e&&n(e),c=a||u;if(t&&n(t)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";var s=void 0;if(i.length){var l=i[i.length-1];s="."===l||".."===l||""===l}else s=!1;for(var f=0,p=i.length;p>=0;p--){var h=i[p];"."===h?o(i,p):".."===h?(o(i,p),f++):f&&(o(i,p),f--)}if(!c)for(;f--;f)i.unshift("..");!c||""===i[0]||i[0]&&n(i[0])||i.unshift("");var d=i.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d};t.exports=r},function(t,e){"use strict";e.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function t(e,o){if(e===o)return!0;if(null==e||null==o)return!1;if(Array.isArray(e))return!(!Array.isArray(o)||e.length!==o.length)&&e.every(function(e,n){return t(e,o[n])});var r="undefined"==typeof e?"undefined":n(e),i="undefined"==typeof o?"undefined":n(o);if(r!==i)return!1;if("object"===r){var a=e.valueOf(),u=o.valueOf();if(a!==e||u!==o)return t(a,u);var c=Object.keys(e),s=Object.keys(o);return c.length===s.length&&c.every(function(n){return t(e[n],o[n])})}return!1};e.default=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=n(2),c=o(u),s=n(39),l=o(s),f=n(6),p=o(f),h=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=i(this,t.call.apply(t,[this].concat(c))),o.history=(0,l.default)(o.props),a=n,i(o,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(p.default,{history:this.history,children:this.props.children})},e}(c.default.Component);h.propTypes={initialEntries:u.PropTypes.array,initialIndex:u.PropTypes.number,getUserConfirmation:u.PropTypes.func,keyLength:u.PropTypes.number,children:u.PropTypes.node},e.default=h},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=n(2),c=o(u),s=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(c.default.Component);s.propTypes={when:u.PropTypes.bool,message:u.PropTypes.oneOfType([u.PropTypes.func,u.PropTypes.string]).isRequired},s.defaultProps={when:!0},s.contextTypes={router:u.PropTypes.shape({history:u.PropTypes.shape({block:u.PropTypes.func.isRequired}).isRequired}).isRequired},e.default=s},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=n(2),c=o(u),s=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.perform=function(){var t=this.context.router.history,e=this.props,n=e.push,o=e.to;n?t.push(o):t.replace(o)},e.prototype.render=function(){return null},e}(c.default.Component);s.propTypes={push:u.PropTypes.bool,from:u.PropTypes.string,to:u.PropTypes.oneOfType([u.PropTypes.string,u.PropTypes.object])},s.defaultProps={push:!1},s.contextTypes={router:u.PropTypes.shape({history:u.PropTypes.shape({push:u.PropTypes.func.isRequired,replace:u.PropTypes.func.isRequired}).isRequired,staticContext:u.PropTypes.object}).isRequired},e.default=s},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(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}function u(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.__esModule=!0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},s=n(15),l=o(s),f=n(2),p=o(f),h=n(8),d=n(6),y=o(d),v=function(t){var e=t.pathname,n=void 0===e?"/":e,o=t.search,r=void 0===o?"":o,i=t.hash,a=void 0===i?"":i;return{pathname:n,search:"?"===r?"":r,hash:"#"===a?"":a}},m=function(t,e){return t?c({},e,{pathname:(0,h.addLeadingSlash)(t)+e.pathname}):e},b=function(t,e){if(!t)return e;var n=(0,h.addLeadingSlash)(t);return 0!==e.pathname.indexOf(n)?e:c({},e,{pathname:e.pathname.substr(n.length)})},g=function(t){return"string"==typeof t?(0,h.parsePath)(t):v(t)},w=function(t){return"string"==typeof t?t:(0,h.createPath)(t)},P=function(t){return function(){(0,l.default)(!1,"You cannot %s with <StaticRouter>",t)}},O=function(){},_=function(t){function e(){var n,o,r;i(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=a(this,t.call.apply(t,[this].concat(c))),o.createHref=function(t){return(0,h.addLeadingSlash)(o.props.basename+w(t))},o.handlePush=function(t){var e=o.props,n=e.basename,r=e.context;r.action="PUSH",r.location=m(n,g(t)),r.url=w(r.location)},o.handleReplace=function(t){var e=o.props,n=e.basename,r=e.context;r.action="REPLACE",r.location=m(n,g(t)),r.url=w(r.location)},o.handleListen=function(){return O},o.handleBlock=function(){return O},r=n,a(o,r)}return u(e,t),e.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),o=r(t,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:b(e,g(n)),push:this.handlePush,replace:this.handleReplace,go:P("go"),goBack:P("goBack"),goForward:P("goForward"),listen:this.handleListen,block:this.handleBlock};return p.default.createElement(y.default,c({},o,{history:i}))},e}(p.default.Component);_.propTypes={basename:f.PropTypes.string,context:f.PropTypes.object.isRequired,location:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.object])},_.defaultProps={basename:"",location:"/"},_.childContextTypes={router:f.PropTypes.object.isRequired},e.default=_},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=n(2),c=o(u),s=n(3),l=o(s),f=n(7),p=o(f),h=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillReceiveProps=function(t){(0,l.default)(!(t.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,l.default)(!(!t.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,n=this.props.location||t.location,o=void 0,r=void 0;return c.default.Children.forEach(e,function(e){var i=e.props,a=i.path,u=i.exact,c=i.strict,s=i.from,l=a||s;null==o&&(r=e,o=l?(0,p.default)(n.pathname,{path:l,exact:u,strict:c}):t.match)}),o?c.default.cloneElement(r,{location:n,computedMatch:o}):null},e}(c.default.Component);h.contextTypes={router:u.PropTypes.shape({route:u.PropTypes.object.isRequired}).isRequired},h.propTypes={children:u.PropTypes.node,location:u.PropTypes.object},e.default=h},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},i=n(2),a=o(i),u=n(14),c=o(u),s=function(t){var e=function(e){return a.default.createElement(c.default,{render:function(n){return a.default.createElement(t,r({},e,n))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e};e.default=s},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.locationsAreEqual=e.createLocation=void 0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},i=n(43),a=o(i),u=n(44),c=o(u),s=n(8);e.createLocation=function(t,e,n,o){var i=void 0;return"string"==typeof t?(i=(0,s.parsePath)(t),i.state=e):(i=r({},t),void 0===i.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)),i.key=n,o&&(i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,o.pathname)):i.pathname=o.pathname),i},e.locationsAreEqual=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&(0,c.default)(t.state,e.state)}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},a=n(3),u=o(a),c=n(8),s=n(38),l=n(40),f=o(l),p=function(t,e,n){return Math.min(Math.max(t,e),n)},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,o=void 0===n?["/"]:n,a=t.initialIndex,l=void 0===a?0:a,h=t.keyLength,d=void 0===h?6:h,y=(0,f.default)(),v=function(t){i(M,t),M.length=M.entries.length,y.notifyListeners(M.location,M.action)},m=function(){return Math.random().toString(36).substr(2,d)},b=p(l,0,o.length-1),g=o.map(function(t){return"string"==typeof t?(0,s.createLocation)(t,void 0,m()):(0,s.createLocation)(t,void 0,t.key||m())}),w=c.createPath,P=function(t,n){(0,u.default)(!("object"===("undefined"==typeof t?"undefined":r(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o="PUSH",i=(0,s.createLocation)(t,n,m(),M.location);y.confirmTransitionTo(i,o,e,function(t){if(t){var e=M.index,n=e+1,r=M.entries.slice(0);r.length>n?r.splice(n,r.length-n,i):r.push(i),v({action:o,location:i,index:n,entries:r})}})},O=function(t,n){(0,u.default)(!("object"===("undefined"==typeof t?"undefined":r(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o="REPLACE",i=(0,s.createLocation)(t,n,m(),M.location);y.confirmTransitionTo(i,o,e,function(t){t&&(M.entries[M.index]=i,v({action:o,location:i}))})},_=function(t){var n=p(M.index+t,0,M.entries.length-1),o="POP",r=M.entries[n];y.confirmTransitionTo(r,o,e,function(t){t?v({action:o,location:r,index:n}):v()})},x=function(){return _(-1)},T=function(){return _(1)},j=function(t){var e=M.index+t;return e>=0&&e<M.entries.length},R=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return y.setPrompt(t)},E=function(t){return y.appendListener(t)},M={length:g.length,action:"POP",location:g[b],index:b,entries:g,createHref:w,push:P,replace:O,go:_,goBack:x,goForward:T,canGo:j,block:R,listen:E};return M};e.default=h},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(3),i=o(r),a=function(){var t=null,e=function(e){return(0,i.default)(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,o,r){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof o?o(a,r):((0,i.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(a!==!1)}else r(!0)},o=[],r=function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return o.push(n),function(){e=!1,o=o.filter(function(t){return t!==n})}},a=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];o.forEach(function(t){return t.apply(void 0,e)})};return{setPrompt:e,confirmTransitionTo:n,appendListener:r,notifyListeners:a}};e.default=a},function(t,e,n){function o(t,e){for(var n,o=[],r=0,i=0,a="",u=e&&e.delimiter||"/";null!=(n=b.exec(t));){var l=n[0],f=n[1],p=n.index;if(a+=t.slice(i,p),i=p+l.length,f)a+=f[1];else{var h=t[i],d=n[2],y=n[3],v=n[4],m=n[5],g=n[6],w=n[7];a&&(o.push(a),a="");var P=null!=d&&null!=h&&h!==d,O="+"===g||"*"===g,_="?"===g||"*"===g,x=n[2]||u,T=v||m;o.push({name:y||r++,prefix:d||"",delimiter:x,optional:_,repeat:O,partial:P,asterisk:!!w,pattern:T?s(T):w?".*":"[^"+c(x)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&o.push(a),o}function r(t,e){return u(o(t,e))}function i(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function a(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function u(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 r="",u=n||{},c=o||{},s=c.pretty?i:encodeURIComponent,l=0;l<t.length;l++){var f=t[l];if("string"!=typeof f){var p,h=u[f.name];if(null==h){if(f.optional){f.partial&&(r+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(m(h)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var d=0;d<h.length;d++){if(p=s(h[d]),!e[l].test(p))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(p)+"`");r+=(0===d?f.prefix:f.delimiter)+p}}else{if(p=f.asterisk?a(h):s(h),!e[l].test(p))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+p+'"');r+=f.prefix+p}}else r+=f}return r}}function c(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function l(t,e){return t.keys=e,t}function f(t){return t.sensitive?"":"i"}function p(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var o=0;o<n.length;o++)e.push({name:o,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(t,e)}function h(t,e,n){for(var o=[],r=0;r<t.length;r++)o.push(v(t[r],e,n).source);var i=new RegExp("(?:"+o.join("|")+")",f(n));return l(i,e)}function d(t,e,n){return y(o(t,n),e,n)}function y(t,e,n){m(e)||(n=e||n,e=[]),n=n||{};for(var o=n.strict,r=n.end!==!1,i="",a=0;a<t.length;a++){var u=t[a];if("string"==typeof u)i+=c(u);else{var s=c(u.prefix),p="(?:"+u.pattern+")";e.push(u),u.repeat&&(p+="(?:"+s+p+")*"),p=u.optional?u.partial?s+"("+p+")?":"(?:"+s+"("+p+"))?":s+"("+p+")",i+=p}}var h=c(n.delimiter||"/"),d=i.slice(-h.length)===h;return o||(i=(d?i.slice(0,-h.length):i)+"(?:"+h+"(?=$))?"),i+=r?"$":o&&d?"":"(?="+h+"|$)",l(new RegExp("^"+i,f(n)),e)}function v(t,e,n){return m(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?p(t,e):m(t)?h(t,e,n):d(t,e,n)}var m=n(42);t.exports=v,t.exports.parse=o,t.exports.compile=r,t.exports.tokensToFunction=u,t.exports.tokensToRegExp=y;var b=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e){"use strict";var n=function(t){return"/"===t.charAt(0)},o=function(t,e){for(var n=e,o=n+1,r=t.length;o<r;n+=1,o+=1)t[n]=t[o];t.pop()},r=function(t){var e=arguments.length<=1||void 0===arguments[1]?"":arguments[1],r=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&n(t),u=e&&n(e),c=a||u;if(t&&n(t)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";var s=void 0;if(i.length){var l=i[i.length-1];s="."===l||".."===l||""===l}else s=!1;for(var f=0,p=i.length;p>=0;p--){var h=i[p];"."===h?o(i,p):".."===h?(o(i,p),f++):f&&(o(i,p),f--)}if(!c)for(;f--;f)i.unshift("..");!c||""===i[0]||i[0]&&n(i[0])||i.unshift("");var d=i.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d};t.exports=r},function(t,e){"use strict";e.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function t(e,o){if(e===o)return!0;if(null==e||null==o)return!1;if(Array.isArray(e))return!(!Array.isArray(o)||e.length!==o.length)&&e.every(function(e,n){return t(e,o[n])});var r="undefined"==typeof e?"undefined":n(e),i="undefined"==typeof o?"undefined":n(o);if(r!==i)return!1;if("object"===r){var a=e.valueOf(),u=o.valueOf();if(a!==e||u!==o)return t(a,u);var c=Object.keys(e),s=Object.keys(o);return c.length===s.length&&c.every(function(n){return t(e[n],o[n])})}return!1};e.default=o}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactRouterDOM=e(require("react")):t.ReactRouterDOM=e(t.React)}(this,function(t){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.withRouter=e.matchPath=e.Switch=e.StaticRouter=e.Router=e.Route=e.Redirect=e.Prompt=e.NavLink=e.MemoryRouter=e.Link=e.HashRouter=e.BrowserRouter=void 0;var r=n(16),i=o(r),a=n(17),u=o(a),c=n(9),s=o(c),l=n(18),f=o(l),p=n(19),d=o(p),h=n(20),y=o(h),v=n(21),m=o(v),b=n(22),g=o(b),w=n(23),O=o(w),_=n(24),x=o(_),P=n(25),E=o(P),R=n(26),j=o(R),M=n(27),T=o(M);e.BrowserRouter=i.default,e.HashRouter=u.default,e.Link=s.default,e.MemoryRouter=f.default,e.NavLink=d.default,e.Prompt=y.default,e.Redirect=m.default,e.Route=g.default,e.Router=O.default,e.StaticRouter=x.default,e.Switch=E.default,e.matchPath=j.default,e.withRouter=T.default},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.withRouter=e.matchPath=e.Switch=e.StaticRouter=e.Router=e.Route=e.Redirect=e.Prompt=e.MemoryRouter=void 0;var r=n(32),i=o(r),a=n(33),u=o(a),c=n(34),s=o(c),l=n(14),f=o(l),p=n(6),d=o(p),h=n(35),y=o(h),v=n(36),m=o(v),b=n(7),g=o(b),w=n(37),O=o(w);e.MemoryRouter=i.default,e.Prompt=u.default,e.Redirect=s.default,e.Route=f.default,e.Router=d.default,e.StaticRouter=y.default,e.Switch=m.default,e.matchPath=g.default,e.withRouter=O.default},function(e,n){e.exports=t},function(t,e,n){"use strict";var o=function(){};t.exports=o},function(t,e){"use strict";e.__esModule=!0;e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},e.stripPrefix=function(t,e){return 0===t.indexOf(e)?t.substr(e.length):t},e.stripTrailingSlash=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},e.parsePath=function(t){var e=t||"/",n="",o="",r=e.indexOf("#");r!==-1&&(o=e.substr(r),e=e.substr(0,r));var i=e.indexOf("?");return i!==-1&&(n=e.substr(i),e=e.substr(0,i)),e=decodeURI(e),{pathname:e,search:"?"===n?"":n,hash:"#"===o?"":o}},e.createPath=function(t){var e=t.pathname,n=t.search,o=t.hash,r=encodeURI(e||"/");return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}},function(t,e,n){"use strict";var o=function(){};t.exports=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},c=n(3),s=o(c),l=n(15),f=o(l),p=n(2),d=o(p),h=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),y=o(h),v=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=i(this,t.call.apply(t,[this].concat(c))),o.state={match:o.computeMatch(o.props.history.location.pathname)},a=n,i(o,a)}return a(e,t),e.prototype.getChildContext=function(){return{router:u({},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,o=e.history;(0,f.default)(null==n||1===d.default.Children.count(n),"A <Router> may have only one child element"),this.unlisten=o.listen(function(){t.setState({match:t.computeMatch(o.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){(0,s.default)(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?d.default.Children.only(t):null},e}(d.default.Component);v.propTypes={history:y.default.object.isRequired,children:y.default.node},v.contextTypes={router:y.default.object},v.childContextTypes={router:y.default.object.isRequired},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(41),i=o(r),a={},u=1e4,c=0,s=function(t,e){var n=""+e.end+e.strict,o=a[n]||(a[n]={});if(o[t])return o[t];var r=[],s=(0,i.default)(t,r,e),l={re:s,keys:r};return c<u&&(o[t]=l,c++),l},l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e={path:e});var n=e,o=n.path,r=void 0===o?"/":o,i=n.exact,a=void 0!==i&&i,u=n.strict,c=void 0!==u&&u,l=s(r,{end:a,strict:c}),f=l.re,p=l.keys,d=f.exec(t);if(!d)return null;var h=d[0],y=d.slice(1),v=t===h;return a&&!v?null:{path:r,url:"/"===r&&""===h?"/":h,isExact:v,params:p.reduce(function(t,e,n){return t[e.name]=y[n],t},{})}};e.default=l},function(t,e){"use strict";e.__esModule=!0;e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},e.stripPrefix=function(t,e){return 0===t.indexOf(e)?t.substr(e.length):t},e.stripTrailingSlash=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},e.parsePath=function(t){var e=t||"/",n="",o="",r=e.indexOf("#");r!==-1&&(o=e.substr(r),e=e.substr(0,r));var i=e.indexOf("?");return i!==-1&&(n=e.substr(i),e=e.substr(0,i)),e=decodeURI(e),{pathname:e,search:"?"===n?"":n,hash:"#"===o?"":o}},e.createPath=function(t){var e=t.pathname,n=t.search,o=t.hash,r=encodeURI(e||"/");return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(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}function u(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.__esModule=!0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},s=n(2),l=o(s),f=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),p=o(f),d=function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)},h=function(t){function e(){var n,o,r;i(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=a(this,t.call.apply(t,[this].concat(c))),o.handleClick=function(t){if(o.props.onClick&&o.props.onClick(t),!t.defaultPrevented&&0===t.button&&!o.props.target&&!d(t)){t.preventDefault();var e=o.context.router.history,n=o.props,r=n.replace,i=n.to;r?e.replace(i):e.push(i)}},r=n,a(o,r)}return u(e,t),e.prototype.render=function(){var t=this.props,e=(t.replace,t.to),n=r(t,["replace","to"]),o=this.context.router.history.createHref("string"==typeof e?{pathname:e}:e);return l.default.createElement("a",c({},n,{onClick:this.handleClick,href:o}))},e}(l.default.Component);h.defaultProps={replace:!1},h.contextTypes={router:p.default.shape({history:p.default.shape({push:p.default.func.isRequired,replace:p.default.func.isRequired,createHref:p.default.func.isRequired}).isRequired}).isRequired},e.default=h},function(t,e){"use strict";e.__esModule=!0;e.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),e.addEventListener=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},e.getConfirmation=function(t,e){return e(window.confirm(t))},e.supportsHistory=function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)},e.supportsPopStateOnHashChange=function(){return window.navigator.userAgent.indexOf("Trident")===-1},e.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},e.isExtraneousPopstateEvent=function(t){return void 0===t.state&&navigator.userAgent.indexOf("CriOS")===-1}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.locationsAreEqual=e.createLocation=void 0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},i=n(30),a=o(i),u=n(31),c=o(u),s=n(4);e.createLocation=function(t,e,n,o){var i=void 0;return"string"==typeof t?(i=(0,s.parsePath)(t),i.state=e):(i=r({},t),void 0===i.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)),i.key=n,o&&(i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,o.pathname)):i.pathname=o.pathname),i},e.locationsAreEqual=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&(0,c.default)(t.state,e.state)}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(5),i=o(r),a=function(){var t=null,e=function(e){return(0,i.default)(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,o,r){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof o?o(a,r):((0,i.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(a!==!1)}else r(!0)},o=[],r=function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return o.push(n),function(){e=!1,o=o.filter(function(t){return t!==n})}},a=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];o.forEach(function(t){return t.apply(void 0,e)})};return{setPrompt:e,confirmTransitionTo:n,appendListener:r,notifyListeners:a}};e.default=a},function(t,e,n){"use strict";var o=function(t,e,n,o,r,i,a,u){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,r,i,a,u],l=0;c=new Error(e.replace(/%s/g,function(){return s[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},c=n(3),s=o(c),l=n(2),f=o(l),p=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),d=o(p),h=n(7),y=o(h),v=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=i(this,t.call.apply(t,[this].concat(c))),o.state={match:o.computeMatch(o.props,o.context.router)},a=n,i(o,a)}return a(e,t),e.prototype.getChildContext=function(){return{router:u({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},e.prototype.computeMatch=function(t,e){var n=t.computedMatch,o=t.location,r=t.path,i=t.strict,a=t.exact,u=e.route;if(n)return n;var c=(o||u.location).pathname;return r?(0,y.default)(c,{path:r,strict:i,exact:a}):u.match},e.prototype.componentWillMount=function(){var t=this.props,e=t.component,n=t.render,o=t.children;(0,s.default)(!(e&&n),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),(0,s.default)(!(e&&o),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),(0,s.default)(!(n&&o),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){(0,s.default)(!(t.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,s.default)(!(!t.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function t(){var e=this.state.match,n=this.props,o=n.children,r=n.component,t=n.render,i=this.context.router,a=i.history,u=i.route,c=i.staticContext,s=this.props.location||u.location,l={match:e,location:s,history:a,staticContext:c};return r?e?f.default.createElement(r,l):null:t?e?t(l):null:o?"function"==typeof o?o(l):!Array.isArray(o)||o.length?f.default.Children.only(o):null:null},e}(f.default.Component);v.propTypes={computedMatch:d.default.object,path:d.default.string,exact:d.default.bool,strict:d.default.bool,component:d.default.func,render:d.default.func,children:d.default.oneOfType([d.default.func,d.default.node]),location:d.default.object},v.contextTypes={router:d.default.shape({history:d.default.object.isRequired,route:d.default.object.isRequired,staticContext:d.default.object})},v.childContextTypes={router:d.default.object.isRequired},e.default=v},function(t,e,n){"use strict";var o=function(t,e,n,o,r,i,a,u){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,o,r,i,a,u],l=0;c=new Error(e.replace(/%s/g,function(){return s[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};t.exports=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=n(2),c=o(u),s=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),l=(o(s),n(28)),f=o(l),p=n(1),d=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=i(this,t.call.apply(t,[this].concat(c))),o.history=(0,f.default)(o.props),a=n,i(o,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(p.Router,{history:this.history,children:this.props.children})},e}(c.default.Component);e.default=d},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=n(2),c=o(u),s=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),l=(o(s),n(29)),f=o(l),p=n(1),d=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=i(this,t.call.apply(t,[this].concat(c))),o.history=(0,f.default)(o.props),a=n,i(o,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(p.Router,{history:this.history,children:this.props.children})},e}(c.default.Component);e.default=d},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.MemoryRouter}})},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u=n(2),c=o(u),s=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),l=(o(s),n(1)),f=n(9),p=o(f),d=function(t){var e=t.to,n=t.exact,o=t.strict,u=t.location,s=t.activeClassName,f=t.className,d=t.activeStyle,h=t.style,y=t.isActive,v=r(t,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive"]);return c.default.createElement(l.Route,{path:"object"===("undefined"==typeof e?"undefined":a(e))?e.pathname:e,exact:n,strict:o,location:u,children:function(t){var n=t.location,o=t.match,r=!!(y?y(o,n):o);return c.default.createElement(p.default,i({to:e,className:r?[s,f].filter(function(t){return t}).join(" "):f,style:r?i({},h,d):h},v))}})};d.defaultProps={activeClassName:"active"},e.default=d},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.Prompt}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.Redirect}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.Route}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.Router}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.StaticRouter}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.Switch}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.matchPath}})},function(t,e,n){"use strict";e.__esModule=!0;var o=n(1);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o.withRouter}})},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},a=n(5),u=o(a),c=n(13),s=o(c),l=n(11),f=n(4),p=n(12),d=o(p),h=n(10),y="popstate",v="hashchange",m=function(){try{return window.history.state||{}}catch(t){return{}}},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(h.canUseDOM,"Browser history needs a DOM");var e=window.history,n=(0,h.supportsHistory)(),o=!(0,h.supportsPopStateOnHashChange)(),a=t.forceRefresh,c=void 0!==a&&a,p=t.getUserConfirmation,b=void 0===p?h.getConfirmation:p,g=t.keyLength,w=void 0===g?6:g,O=t.basename?(0,f.stripTrailingSlash)((0,f.addLeadingSlash)(t.basename)):"",_=function(t){var e=t||{},n=e.key,o=e.state,r=window.location,a=r.pathname,u=r.search,c=r.hash,s=a+u+c;return O&&(s=(0,f.stripPrefix)(s,O)),i({},(0,f.parsePath)(s),{state:o,key:n})},x=function(){return Math.random().toString(36).substr(2,w)},P=(0,d.default)(),E=function(t){i(B,t),B.length=e.length,P.notifyListeners(B.location,B.action)},R=function(t){(0,h.isExtraneousPopstateEvent)(t)||T(_(t.state))},j=function(){T(_(m()))},M=!1,T=function(t){if(M)M=!1,E();else{var e="POP";P.confirmTransitionTo(t,e,b,function(n){n?E({action:e,location:t}):S(t)})}},S=function(t){var e=B.location,n=L.indexOf(e.key);n===-1&&(n=0);var o=L.indexOf(t.key);o===-1&&(o=0);var r=n-o;r&&(M=!0,N(r))},C=_(m()),L=[C.key],k=function(t){return O+(0,f.createPath)(t)},A=function(t,o){(0,u.default)(!("object"===("undefined"==typeof t?"undefined":r(t))&&void 0!==t.state&&void 0!==o),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i="PUSH",a=(0,l.createLocation)(t,o,x(),B.location);P.confirmTransitionTo(a,i,b,function(t){if(t){var o=k(a),r=a.key,s=a.state;if(n)if(e.pushState({key:r,state:s},null,o),c)window.location.href=o;else{var l=L.indexOf(B.location.key),f=L.slice(0,l===-1?0:l+1);f.push(a.key),L=f,E({action:i,location:a})}else(0,u.default)(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=o}})},U=function(t,o){(0,u.default)(!("object"===("undefined"==typeof t?"undefined":r(t))&&void 0!==t.state&&void 0!==o),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i="REPLACE",a=(0,l.createLocation)(t,o,x(),B.location);P.confirmTransitionTo(a,i,b,function(t){if(t){var o=k(a),r=a.key,s=a.state;if(n)if(e.replaceState({key:r,state:s},null,o),c)window.location.replace(o);else{var l=L.indexOf(B.location.key);l!==-1&&(L[l]=a.key),E({action:i,location:a})}else(0,u.default)(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(o)}})},N=function(t){e.go(t)},q=function(){return N(-1)},D=function(){return N(1)},H=0,F=function(t){H+=t,1===H?((0,h.addEventListener)(window,y,R),o&&(0,h.addEventListener)(window,v,j)):0===H&&((0,h.removeEventListener)(window,y,R),o&&(0,h.removeEventListener)(window,v,j))},I=!1,W=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=P.setPrompt(t);return I||(F(1),I=!0),function(){return I&&(I=!1,F(-1)),e()}},Y=function(t){var e=P.appendListener(t);return F(1),function(){F(-1),e()}},B={length:e.length,action:"POP",location:C,createHref:k,push:A,replace:U,go:N,goBack:q,goForward:D,block:W,listen:Y};return B};e.default=b},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},i=n(5),a=o(i),u=n(13),c=o(u),s=n(11),l=n(4),f=n(12),p=o(f),d=n(10),h="hashchange",y={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+(0,l.stripLeadingSlash)(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:l.stripLeadingSlash,decodePath:l.addLeadingSlash},slash:{encodePath:l.addLeadingSlash,decodePath:l.addLeadingSlash}},v=function(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.substring(e+1)},m=function(t){return window.location.hash=t},b=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)},g=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,c.default)(d.canUseDOM,"Hash history needs a DOM");var e=window.history,n=(0,d.supportsGoWithoutReloadUsingHash)(),o=t.getUserConfirmation,i=void 0===o?d.getConfirmation:o,u=t.hashType,f=void 0===u?"slash":u,g=t.basename?(0,l.stripTrailingSlash)((0,l.addLeadingSlash)(t.basename)):"",w=y[f],O=w.encodePath,_=w.decodePath,x=function(){var t=_(v());return g&&(t=(0,l.stripPrefix)(t,g)),(0,l.parsePath)(t)},P=(0,p.default)(),E=function(t){r(K,t),K.length=e.length,P.notifyListeners(K.location,K.action)},R=!1,j=null,M=function(){var t=v(),e=O(t);if(t!==e)b(e);else{var n=x(),o=K.location;if(!R&&(0,s.locationsAreEqual)(o,n))return;if(j===(0,l.createPath)(n))return;j=null,T(n)}},T=function(t){if(R)R=!1,E();else{var e="POP";P.confirmTransitionTo(t,e,i,function(n){n?E({action:e,location:t}):S(t)})}},S=function(t){var e=K.location,n=A.lastIndexOf((0,l.createPath)(e));n===-1&&(n=0);var o=A.lastIndexOf((0,l.createPath)(t));o===-1&&(o=0);var r=n-o;r&&(R=!0,D(r))},C=v(),L=O(C);C!==L&&b(L);var k=x(),A=[(0,l.createPath)(k)],U=function(t){return"#"+O(g+(0,l.createPath)(t))},N=function(t,e){(0,a.default)(void 0===e,"Hash history cannot push state; it is ignored");var n="PUSH",o=(0,s.createLocation)(t,void 0,void 0,K.location);P.confirmTransitionTo(o,n,i,function(t){if(t){var e=(0,l.createPath)(o),r=O(g+e),i=v()!==r;if(i){j=e,m(r);var u=A.lastIndexOf((0,l.createPath)(K.location)),c=A.slice(0,u===-1?0:u+1);c.push(e),A=c,E({action:n,location:o})}else(0,a.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),E()}})},q=function(t,e){(0,a.default)(void 0===e,"Hash history cannot replace state; it is ignored");var n="REPLACE",o=(0,s.createLocation)(t,void 0,void 0,K.location);P.confirmTransitionTo(o,n,i,function(t){if(t){var e=(0,l.createPath)(o),r=O(g+e),i=v()!==r;i&&(j=e,b(r));var a=A.indexOf((0,l.createPath)(K.location));a!==-1&&(A[a]=e),E({action:n,location:o})}})},D=function(t){(0,a.default)(n,"Hash history go(n) causes a full page reload in this browser"),e.go(t)},H=function(){return D(-1)},F=function(){return D(1)},I=0,W=function(t){I+=t,1===I?(0,d.addEventListener)(window,h,M):0===I&&(0,d.removeEventListener)(window,h,M)},Y=!1,B=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=P.setPrompt(t);return Y||(W(1),Y=!0),function(){return Y&&(Y=!1,W(-1)),e()}},$=function(t){var e=P.appendListener(t);return W(1),function(){W(-1),e()}},K={length:e.length,action:"POP",location:k,createHref:U,push:N,replace:q,go:D,goBack:H,goForward:F,block:B,listen:$};return K};e.default=g},function(t,e){"use strict";var n=function(t){return"/"===t.charAt(0)},o=function(t,e){for(var n=e,o=n+1,r=t.length;o<r;n+=1,o+=1)t[n]=t[o];t.pop()},r=function(t){var e=arguments.length<=1||void 0===arguments[1]?"":arguments[1],r=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&n(t),u=e&&n(e),c=a||u;if(t&&n(t)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";var s=void 0;if(i.length){var l=i[i.length-1];s="."===l||".."===l||""===l}else s=!1;for(var f=0,p=i.length;p>=0;p--){var d=i[p];"."===d?o(i,p):".."===d?(o(i,p),f++):f&&(o(i,p),f--)}if(!c)for(;f--;f)i.unshift("..");!c||""===i[0]||i[0]&&n(i[0])||i.unshift("");var h=i.join("/");return s&&"/"!==h.substr(-1)&&(h+="/"),h};t.exports=r},function(t,e){"use strict";e.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function t(e,o){if(e===o)return!0;if(null==e||null==o)return!1;if(Array.isArray(e))return!(!Array.isArray(o)||e.length!==o.length)&&e.every(function(e,n){return t(e,o[n])});var r="undefined"==typeof e?"undefined":n(e),i="undefined"==typeof o?"undefined":n(o);if(r!==i)return!1;if("object"===r){var a=e.valueOf(),u=o.valueOf();if(a!==e||u!==o)return t(a,u);var c=Object.keys(e),s=Object.keys(o);return c.length===s.length&&c.every(function(n){return t(e[n],o[n])})}return!1};e.default=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=n(2),c=o(u),s=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),l=o(s),f=n(39),p=o(f),d=n(6),h=o(d),y=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=i(this,t.call.apply(t,[this].concat(c))),o.history=(0,p.default)(o.props),a=n,i(o,a)}return a(e,t),e.prototype.render=function(){return c.default.createElement(h.default,{history:this.history,children:this.props.children})},e}(c.default.Component);y.propTypes={initialEntries:l.default.array,initialIndex:l.default.number,getUserConfirmation:l.default.func,keyLength:l.default.number,children:l.default.node},e.default=y},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=n(2),c=o(u),s=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),l=o(s),f=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null);
},e.prototype.componentWillMount=function(){this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(c.default.Component);f.propTypes={when:l.default.bool,message:l.default.oneOfType([l.default.func,l.default.string]).isRequired},f.defaultProps={when:!0},f.contextTypes={router:l.default.shape({history:l.default.shape({block:l.default.func.isRequired}).isRequired}).isRequired},e.default=f},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=n(2),c=o(u),s=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),l=o(s),f=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.perform=function(){var t=this.context.router.history,e=this.props,n=e.push,o=e.to;n?t.push(o):t.replace(o)},e.prototype.render=function(){return null},e}(c.default.Component);f.propTypes={push:l.default.bool,from:l.default.string,to:l.default.oneOfType([l.default.string,l.default.object])},f.defaultProps={push:!1},f.contextTypes={router:l.default.shape({history:l.default.shape({push:l.default.func.isRequired,replace:l.default.func.isRequired}).isRequired,staticContext:l.default.object}).isRequired},e.default=f},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(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}function u(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.__esModule=!0;var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},s=n(15),l=o(s),f=n(2),p=o(f),d=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),h=o(d),y=n(8),v=n(6),m=o(v),b=function(t){var e=t.pathname,n=void 0===e?"/":e,o=t.search,r=void 0===o?"":o,i=t.hash,a=void 0===i?"":i;return{pathname:n,search:"?"===r?"":r,hash:"#"===a?"":a}},g=function(t,e){return t?c({},e,{pathname:(0,y.addLeadingSlash)(t)+e.pathname}):e},w=function(t,e){if(!t)return e;var n=(0,y.addLeadingSlash)(t);return 0!==e.pathname.indexOf(n)?e:c({},e,{pathname:e.pathname.substr(n.length)})},O=function(t){return"string"==typeof t?(0,y.parsePath)(t):b(t)},_=function(t){return"string"==typeof t?t:(0,y.createPath)(t)},x=function(t){return function(){(0,l.default)(!1,"You cannot %s with <StaticRouter>",t)}},P=function(){},E=function(t){function e(){var n,o,r;i(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=a(this,t.call.apply(t,[this].concat(c))),o.createHref=function(t){return(0,y.addLeadingSlash)(o.props.basename+_(t))},o.handlePush=function(t){var e=o.props,n=e.basename,r=e.context;r.action="PUSH",r.location=g(n,O(t)),r.url=_(r.location)},o.handleReplace=function(t){var e=o.props,n=e.basename,r=e.context;r.action="REPLACE",r.location=g(n,O(t)),r.url=_(r.location)},o.handleListen=function(){return P},o.handleBlock=function(){return P},r=n,a(o,r)}return u(e,t),e.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),o=r(t,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:w(e,O(n)),push:this.handlePush,replace:this.handleReplace,go:x("go"),goBack:x("goBack"),goForward:x("goForward"),listen:this.handleListen,block:this.handleBlock};return p.default.createElement(m.default,c({},o,{history:i}))},e}(p.default.Component);E.propTypes={basename:h.default.string,context:h.default.object.isRequired,location:h.default.oneOfType([h.default.string,h.default.object])},E.defaultProps={basename:"",location:"/"},E.childContextTypes={router:h.default.object.isRequired},e.default=E},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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}function a(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.__esModule=!0;var u=n(2),c=o(u),s=n(!function(){var t=new Error('Cannot find module "prop-types"');throw t.code="MODULE_NOT_FOUND",t}()),l=o(s),f=n(3),p=o(f),d=n(7),h=o(d),y=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentWillReceiveProps=function(t){(0,p.default)(!(t.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,p.default)(!(!t.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,n=this.props.location||t.location,o=void 0,r=void 0;return c.default.Children.forEach(e,function(e){if(c.default.isValidElement(e)){var i=e.props,a=i.path,u=i.exact,s=i.strict,l=i.from,f=a||l;null==o&&(r=e,o=f?(0,h.default)(n.pathname,{path:f,exact:u,strict:s}):t.match)}}),o?c.default.cloneElement(r,{location:n,computedMatch:o}):null},e}(c.default.Component);y.contextTypes={router:l.default.shape({route:l.default.object.isRequired}).isRequired},y.propTypes={children:l.default.node,location:l.default.object},e.default=y},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},a=n(2),u=o(a),c=n(!function(){var t=new Error('Cannot find module "hoist-non-react-statics"');throw t.code="MODULE_NOT_FOUND",t}()),s=o(c),l=n(14),f=o(l),p=function(t){var e=function(e){var n=e.wrappedComponentRef,o=r(e,["wrappedComponentRef"]);return u.default.createElement(f.default,{render:function(e){return u.default.createElement(t,i({},o,e,{ref:n}))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e.WrappedComponent=t,e.propTypes={wrappedComponentRef:a.PropTypes.func},(0,s.default)(e,t)};e.default=p},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.locationsAreEqual=e.createLocation=void 0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},i=n(43),a=o(i),u=n(44),c=o(u),s=n(8);e.createLocation=function(t,e,n,o){var i=void 0;return"string"==typeof t?(i=(0,s.parsePath)(t),i.state=e):(i=r({},t),void 0===i.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)),i.key=n,o&&(i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,o.pathname)):i.pathname=o.pathname),i},e.locationsAreEqual=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&(0,c.default)(t.state,e.state)}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},a=n(3),u=o(a),c=n(8),s=n(38),l=n(40),f=o(l),p=function(t,e,n){return Math.min(Math.max(t,e),n)},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,o=void 0===n?["/"]:n,a=t.initialIndex,l=void 0===a?0:a,d=t.keyLength,h=void 0===d?6:d,y=(0,f.default)(),v=function(t){i(T,t),T.length=T.entries.length,y.notifyListeners(T.location,T.action)},m=function(){return Math.random().toString(36).substr(2,h)},b=p(l,0,o.length-1),g=o.map(function(t){return"string"==typeof t?(0,s.createLocation)(t,void 0,m()):(0,s.createLocation)(t,void 0,t.key||m())}),w=c.createPath,O=function(t,n){(0,u.default)(!("object"===("undefined"==typeof t?"undefined":r(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o="PUSH",i=(0,s.createLocation)(t,n,m(),T.location);y.confirmTransitionTo(i,o,e,function(t){if(t){var e=T.index,n=e+1,r=T.entries.slice(0);r.length>n?r.splice(n,r.length-n,i):r.push(i),v({action:o,location:i,index:n,entries:r})}})},_=function(t,n){(0,u.default)(!("object"===("undefined"==typeof t?"undefined":r(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o="REPLACE",i=(0,s.createLocation)(t,n,m(),T.location);y.confirmTransitionTo(i,o,e,function(t){t&&(T.entries[T.index]=i,v({action:o,location:i}))})},x=function(t){var n=p(T.index+t,0,T.entries.length-1),o="POP",r=T.entries[n];y.confirmTransitionTo(r,o,e,function(t){t?v({action:o,location:r,index:n}):v()})},P=function(){return x(-1)},E=function(){return x(1)},R=function(t){var e=T.index+t;return e>=0&&e<T.entries.length},j=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return y.setPrompt(t)},M=function(t){return y.appendListener(t)},T={length:g.length,action:"POP",location:g[b],index:b,entries:g,createHref:w,push:O,replace:_,go:x,goBack:P,goForward:E,canGo:R,block:j,listen:M};return T};e.default=d},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(3),i=o(r),a=function(){var t=null,e=function(e){return(0,i.default)(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,o,r){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof o?o(a,r):((0,i.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(a!==!1)}else r(!0)},o=[],r=function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return o.push(n),function(){e=!1,o=o.filter(function(t){return t!==n})}},a=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];o.forEach(function(t){return t.apply(void 0,e)})};return{setPrompt:e,confirmTransitionTo:n,appendListener:r,notifyListeners:a}};e.default=a},function(t,e,n){function o(t,e){for(var n,o=[],r=0,i=0,a="",u=e&&e.delimiter||"/";null!=(n=b.exec(t));){var l=n[0],f=n[1],p=n.index;if(a+=t.slice(i,p),i=p+l.length,f)a+=f[1];else{var d=t[i],h=n[2],y=n[3],v=n[4],m=n[5],g=n[6],w=n[7];a&&(o.push(a),a="");var O=null!=h&&null!=d&&d!==h,_="+"===g||"*"===g,x="?"===g||"*"===g,P=n[2]||u,E=v||m;o.push({name:y||r++,prefix:h||"",delimiter:P,optional:x,repeat:_,partial:O,asterisk:!!w,pattern:E?s(E):w?".*":"[^"+c(P)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&o.push(a),o}function r(t,e){return u(o(t,e))}function i(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function a(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function u(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 r="",u=n||{},c=o||{},s=c.pretty?i:encodeURIComponent,l=0;l<t.length;l++){var f=t[l];if("string"!=typeof f){var p,d=u[f.name];if(null==d){if(f.optional){f.partial&&(r+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(m(d)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(p=s(d[h]),!e[l].test(p))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(p)+"`");r+=(0===h?f.prefix:f.delimiter)+p}}else{if(p=f.asterisk?a(d):s(d),!e[l].test(p))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+p+'"');r+=f.prefix+p}}else r+=f}return r}}function c(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function l(t,e){return t.keys=e,t}function f(t){return t.sensitive?"":"i"}function p(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var o=0;o<n.length;o++)e.push({name:o,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(t,e)}function d(t,e,n){for(var o=[],r=0;r<t.length;r++)o.push(v(t[r],e,n).source);var i=new RegExp("(?:"+o.join("|")+")",f(n));return l(i,e)}function h(t,e,n){return y(o(t,n),e,n)}function y(t,e,n){m(e)||(n=e||n,e=[]),n=n||{};for(var o=n.strict,r=n.end!==!1,i="",a=0;a<t.length;a++){var u=t[a];if("string"==typeof u)i+=c(u);else{var s=c(u.prefix),p="(?:"+u.pattern+")";e.push(u),u.repeat&&(p+="(?:"+s+p+")*"),p=u.optional?u.partial?s+"("+p+")?":"(?:"+s+"("+p+"))?":s+"("+p+")",i+=p}}var d=c(n.delimiter||"/"),h=i.slice(-d.length)===d;return o||(i=(h?i.slice(0,-d.length):i)+"(?:"+d+"(?=$))?"),i+=r?"$":o&&h?"":"(?="+d+"|$)",l(new RegExp("^"+i,f(n)),e)}function v(t,e,n){return m(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?p(t,e):m(t)?d(t,e,n):h(t,e,n)}var m=n(42);t.exports=v,t.exports.parse=o,t.exports.compile=r,t.exports.tokensToFunction=u,t.exports.tokensToRegExp=y;var b=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e){"use strict";var n=function(t){return"/"===t.charAt(0)},o=function(t,e){for(var n=e,o=n+1,r=t.length;o<r;n+=1,o+=1)t[n]=t[o];t.pop()},r=function(t){var e=arguments.length<=1||void 0===arguments[1]?"":arguments[1],r=t&&t.split("/")||[],i=e&&e.split("/")||[],a=t&&n(t),u=e&&n(e),c=a||u;if(t&&n(t)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";var s=void 0;if(i.length){var l=i[i.length-1];s="."===l||".."===l||""===l}else s=!1;for(var f=0,p=i.length;p>=0;p--){var d=i[p];"."===d?o(i,p):".."===d?(o(i,p),f++):f&&(o(i,p),f--)}if(!c)for(;f--;f)i.unshift("..");!c||""===i[0]||i[0]&&n(i[0])||i.unshift("");var h=i.join("/");return s&&"/"!==h.substr(-1)&&(h+="/"),h};t.exports=r},function(t,e){"use strict";e.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function t(e,o){if(e===o)return!0;if(null==e||null==o)return!1;if(Array.isArray(e))return!(!Array.isArray(o)||e.length!==o.length)&&e.every(function(e,n){return t(e,o[n])});var r="undefined"==typeof e?"undefined":n(e),i="undefined"==typeof o?"undefined":n(o);if(r!==i)return!1;if("object"===r){var a=e.valueOf(),u=o.valueOf();if(a!==e||u!==o)return t(a,u);var c=Object.keys(e),s=Object.keys(o);return c.length===s.length&&c.every(function(n){return t(e[n],o[n])})}return!1};e.default=o}])});

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc