Socket
Socket
Sign inDemoInstall

react-router-dom

Package Overview
Dependencies
8
Maintainers
2
Versions
331
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.1 to 5.1.0

cjs/react-router-dom.js.map

179

cjs/react-router-dom.js

@@ -5,4 +5,4 @@ 'use strict';

var reactRouter = require('react-router');
var React = _interopDefault(require('react'));
var reactRouter = require('react-router');
var history = require('history');

@@ -95,3 +95,3 @@ var PropTypes = _interopDefault(require('prop-types'));

BrowserRouter.prototype.componentDidMount = function () {
warning(!this.props.history, "<BrowserRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { BrowserRouter as Router }`.");
warning(!this.props.history, "<BrowserRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { BrowserRouter as Router }`.") ;
};

@@ -142,78 +142,95 @@ }

HashRouter.prototype.componentDidMount = function () {
warning(!this.props.history, "<HashRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { HashRouter as Router }`.");
warning(!this.props.history, "<HashRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { HashRouter as Router }`.") ;
};
}
var resolveToLocation = function resolveToLocation(to, currentLocation) {
return typeof to === "function" ? to(currentLocation) : to;
};
var normalizeToLocation = function normalizeToLocation(to, currentLocation) {
return typeof to === "string" ? history.createLocation(to, null, null, currentLocation) : to;
};
var forwardRef = React.forwardRef;
if (typeof forwardRef === "undefined") {
forwardRef = function forwardRef(C) {
return C;
};
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}
/**
* The public API for rendering a history-aware <a>.
*/
var LinkAnchor = forwardRef(function (_ref, forwardedRef) {
var innerRef = _ref.innerRef,
navigate = _ref.navigate,
_onClick = _ref.onClick,
rest = _objectWithoutPropertiesLoose(_ref, ["innerRef", "navigate", "onClick"]);
var Link =
/*#__PURE__*/
function (_React$Component) {
_inheritsLoose(Link, _React$Component);
function Link() {
return _React$Component.apply(this, arguments) || this;
}
var _proto = Link.prototype;
_proto.handleClick = function handleClick(event, history$$1) {
try {
if (this.props.onClick) this.props.onClick(event);
} catch (ex) {
event.preventDefault();
throw ex;
}
if (!event.defaultPrevented && // onClick prevented default
event.button === 0 && ( // ignore everything but left clicks
!this.props.target || this.props.target === "_self") && // let browser handle "target=_blank" etc.
!isModifiedEvent(event) // ignore clicks with modifier keys
) {
var target = rest.target;
return React.createElement("a", _extends({}, rest, {
ref: forwardedRef || innerRef,
onClick: function onClick(event) {
try {
if (_onClick) _onClick(event);
} catch (ex) {
event.preventDefault();
var method = this.props.replace ? history$$1.replace : history$$1.push;
method(this.props.to);
throw ex;
}
};
_proto.render = function render() {
var _this = this;
if (!event.defaultPrevented && // onClick prevented default
event.button === 0 && ( // ignore everything but left clicks
!target || target === "_self") && // let browser handle "target=_blank" etc.
!isModifiedEvent(event) // ignore clicks with modifier keys
) {
event.preventDefault();
navigate();
}
}
}));
});
var _this$props = this.props,
innerRef = _this$props.innerRef,
replace = _this$props.replace,
to = _this$props.to,
rest = _objectWithoutPropertiesLoose(_this$props, ["innerRef", "replace", "to"]); // eslint-disable-line no-unused-vars
{
LinkAnchor.displayName = "LinkAnchor";
}
/**
* The public API for rendering a history-aware <a>.
*/
return React.createElement(reactRouter.__RouterContext.Consumer, null, function (context) {
!context ? invariant(false, "You should not use <Link> outside a <Router>") : void 0;
var location = typeof to === "string" ? history.createLocation(to, null, null, context.location) : to;
var href = location ? context.history.createHref(location) : "";
return React.createElement("a", _extends({}, rest, {
onClick: function onClick(event) {
return _this.handleClick(event, context.history);
},
href: href,
ref: innerRef
}));
});
};
var Link = forwardRef(function (_ref2, forwardedRef) {
var _ref2$component = _ref2.component,
component = _ref2$component === void 0 ? LinkAnchor : _ref2$component,
replace = _ref2.replace,
to = _ref2.to,
innerRef = _ref2.innerRef,
rest = _objectWithoutPropertiesLoose(_ref2, ["component", "replace", "to", "innerRef"]);
return Link;
}(React.Component);
return React.createElement(reactRouter.__RouterContext.Consumer, null, function (context) {
!context ? invariant(false, "You should not use <Link> outside a <Router>") : void 0;
var history = context.history;
var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);
var href = location ? history.createHref(location) : "";
return React.createElement(component, _extends({}, rest, {
ref: forwardedRef || innerRef,
href: href,
navigate: function navigate() {
var location = resolveToLocation(to, context.location);
var method = replace ? history.replace : history.push;
method(location);
}
}));
});
});
{
var toType = PropTypes.oneOfType([PropTypes.string, PropTypes.object]);
var innerRefType = PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.shape({
var toType = PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.func]);
var refType = PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.shape({
current: PropTypes.any
})]);
Link.displayName = "Link";
Link.propTypes = {
innerRef: innerRefType,
innerRef: refType,
onClick: PropTypes.func,

@@ -226,2 +243,10 @@ replace: PropTypes.bool,

var forwardRef$1 = React.forwardRef;
if (typeof forwardRef$1 === "undefined") {
forwardRef$1 = function forwardRef(C) {
return C;
};
}
function joinClassnames() {

@@ -241,3 +266,3 @@ for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) {

function NavLink(_ref) {
var NavLink = forwardRef$1(function (_ref, forwardedRef) {
var _ref$ariaCurrent = _ref["aria-current"],

@@ -255,11 +280,13 @@ ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent,

to = _ref.to,
rest = _objectWithoutPropertiesLoose(_ref, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "strict", "style", "to"]);
innerRef = _ref.innerRef,
rest = _objectWithoutPropertiesLoose(_ref, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "strict", "style", "to", "innerRef"]);
var path = typeof to === "object" ? to.pathname : to; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
return React.createElement(reactRouter.__RouterContext.Consumer, null, function (context) {
!context ? invariant(false, "You should not use <NavLink> outside a <Router>") : void 0;
var currentLocation = locationProp || context.location;
var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);
var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
return React.createElement(reactRouter.__RouterContext.Consumer, null, function (context) {
!context ? invariant(false, "You should not use <NavLink> outside a <Router>") : void 0;
var pathToMatch = locationProp ? locationProp.pathname : context.location.pathname;
var match = escapedPath ? reactRouter.matchPath(pathToMatch, {
var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
var match = escapedPath ? reactRouter.matchPath(currentLocation.pathname, {
path: escapedPath,

@@ -269,15 +296,17 @@ exact: exact,

}) : null;
var isActive = !!(isActiveProp ? isActiveProp(match, context.location) : match);
var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);
var className = isActive ? joinClassnames(classNameProp, activeClassName) : classNameProp;
var style = isActive ? _extends({}, styleProp, activeStyle) : styleProp;
var style = isActive ? _extends({}, styleProp, {}, activeStyle) : styleProp;
return React.createElement(Link, _extends({
ref: forwardedRef || innerRef,
"aria-current": isActive && ariaCurrent || null,
className: className,
style: style,
to: to
to: toLocation
}, rest));
});
}
});
{
NavLink.displayName = "NavLink";
var ariaCurrentType = PropTypes.oneOf(["page", "step", "location", "date", "time", "true"]);

@@ -297,3 +326,10 @@ NavLink.propTypes = _extends({}, Link.propTypes, {

Object.keys(reactRouter).forEach(function (key) { exports[key] = reactRouter[key]; });
Object.keys(reactRouter).forEach(function (k) {
if (k !== 'default') Object.defineProperty(exports, k, {
enumerable: true,
get: function () {
return reactRouter[k];
}
});
});
exports.BrowserRouter = BrowserRouter;

@@ -303,1 +339,2 @@ exports.HashRouter = HashRouter;

exports.NavLink = NavLink;
//# sourceMappingURL=react-router-dom.js.map

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

"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var React=_interopDefault(require("react")),reactRouter=require("react-router"),history=require("history");require("prop-types"),require("tiny-warning");var invariant=_interopDefault(require("tiny-invariant"));function _extends(){return(_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t}).apply(this,arguments)}function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var r,o,n={},i=Object.keys(t);for(o=0;o<i.length;o++)r=i[o],0<=e.indexOf(r)||(n[r]=t[r]);return n}var BrowserRouter=function(n){function t(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))||this).history=history.createBrowserHistory(t.props),t}return _inheritsLoose(t,n),t.prototype.render=function(){return React.createElement(reactRouter.Router,{history:this.history,children:this.props.children})},t}(React.Component),HashRouter=function(n){function t(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n.call.apply(n,[this].concat(r))||this).history=history.createHashHistory(t.props),t}return _inheritsLoose(t,n),t.prototype.render=function(){return React.createElement(reactRouter.Router,{history:this.history,children:this.props.children})},t}(React.Component);function isModifiedEvent(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var Link=function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(e,t);var r=e.prototype;return r.handleClick=function(e,t){try{this.props.onClick&&this.props.onClick(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||this.props.target&&"_self"!==this.props.target||isModifiedEvent(e)||(e.preventDefault(),(this.props.replace?t.replace:t.push)(this.props.to))},r.render=function(){var o=this,t=this.props,n=t.innerRef,i=(t.replace,t.to),a=_objectWithoutPropertiesLoose(t,["innerRef","replace","to"]);return React.createElement(reactRouter.__RouterContext.Consumer,null,function(e){e||invariant(!1);var t="string"==typeof i?history.createLocation(i,null,null,e.location):i,r=t?e.history.createHref(t):"";return React.createElement("a",_extends({},a,{onClick:function(t){return o.handleClick(t,e.history)},href:r,ref:n}))})},e}(React.Component);function joinClassnames(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.filter(function(t){return t}).join(" ")}function NavLink(t){var e=t["aria-current"],a=void 0===e?"page":e,r=t.activeClassName,s=void 0===r?"active":r,c=t.activeStyle,u=t.className,l=t.exact,p=t.isActive,h=t.location,f=t.strict,y=t.style,v=t.to,R=_objectWithoutPropertiesLoose(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to"]),o="object"==typeof v?v.pathname:v,d=o&&o.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return React.createElement(reactRouter.__RouterContext.Consumer,null,function(t){t||invariant(!1);var e=h?h.pathname:t.location.pathname,r=d?reactRouter.matchPath(e,{path:d,exact:l,strict:f}):null,o=!!(p?p(r,t.location):r),n=o?joinClassnames(u,s):u,i=o?_extends({},y,c):y;return React.createElement(Link,_extends({"aria-current":o&&a||null,className:n,style:i,to:v},R))})}Object.keys(reactRouter).forEach(function(t){exports[t]=reactRouter[t]}),exports.BrowserRouter=BrowserRouter,exports.HashRouter=HashRouter,exports.Link=Link,exports.NavLink=NavLink;
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var reactRouter=require("react-router"),React=_interopDefault(require("react")),history=require("history");require("prop-types"),require("tiny-warning");var invariant=_interopDefault(require("tiny-invariant"));function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],0<=t.indexOf(r)||(n[r]=e[r]);return n}var BrowserRouter=function(n){function e(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))||this).history=history.createBrowserHistory(e.props),e}return _inheritsLoose(e,n),e.prototype.render=function(){return React.createElement(reactRouter.Router,{history:this.history,children:this.props.children})},e}(React.Component),HashRouter=function(n){function e(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n.call.apply(n,[this].concat(r))||this).history=history.createHashHistory(e.props),e}return _inheritsLoose(e,n),e.prototype.render=function(){return React.createElement(reactRouter.Router,{history:this.history,children:this.props.children})},e}(React.Component),resolveToLocation=function(e,t){return"function"==typeof e?e(t):e},normalizeToLocation=function(e,t){return"string"==typeof e?history.createLocation(e,null,null,t):e},forwardRef=React.forwardRef;function isModifiedEvent(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}void 0===forwardRef&&(forwardRef=function(e){return e});var LinkAnchor=forwardRef(function(e,t){var r=e.innerRef,o=e.navigate,n=e.onClick,a=_objectWithoutPropertiesLoose(e,["innerRef","navigate","onClick"]),i=a.target;return React.createElement("a",_extends({},a,{ref:t||r,onClick:function(t){try{n&&n(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||i&&"_self"!==i||isModifiedEvent(t)||(t.preventDefault(),o())}}))}),Link=forwardRef(function(e,n){var t=e.component,a=void 0===t?LinkAnchor:t,i=e.replace,c=e.to,u=e.innerRef,s=_objectWithoutPropertiesLoose(e,["component","replace","to","innerRef"]);return React.createElement(reactRouter.__RouterContext.Consumer,null,function(t){t||invariant(!1);var r=t.history,e=normalizeToLocation(resolveToLocation(c,t.location),t.location),o=e?r.createHref(e):"";return React.createElement(a,_extends({},s,{ref:n||u,href:o,navigate:function(){var e=resolveToLocation(c,t.location);(i?r.replace:r.push)(e)}}))})}),forwardRef$1=React.forwardRef;function joinClassnames(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(e){return e}).join(" ")}void 0===forwardRef$1&&(forwardRef$1=function(e){return e});var NavLink=forwardRef$1(function(e,s){var t=e["aria-current"],f=void 0===t?"page":t,r=e.activeClassName,l=void 0===r?"active":r,p=e.activeStyle,h=e.className,v=e.exact,y=e.isActive,R=e.location,d=e.strict,m=e.style,_=e.to,L=e.innerRef,w=_objectWithoutPropertiesLoose(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return React.createElement(reactRouter.__RouterContext.Consumer,null,function(e){e||invariant(!1);var t=R||e.location,r=normalizeToLocation(resolveToLocation(_,t),t),o=r.pathname,n=o&&o.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),a=n?reactRouter.matchPath(t.pathname,{path:n,exact:v,strict:d}):null,i=!!(y?y(a,t):a),c=i?joinClassnames(h,l):h,u=i?_extends({},m,{},p):m;return React.createElement(Link,_extends({ref:s||L,"aria-current":i&&f||null,className:c,style:u,to:r},w))})});Object.keys(reactRouter).forEach(function(e){"default"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return reactRouter[e]}})}),exports.BrowserRouter=BrowserRouter,exports.HashRouter=HashRouter,exports.Link=Link,exports.NavLink=NavLink;
//# sourceMappingURL=react-router-dom.min.js.map

@@ -0,5 +1,5 @@

import { Router, __RouterContext, matchPath } from 'react-router';
export * from 'react-router';
import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';
import React from 'react';
import { Router, __RouterContext, matchPath } from 'react-router';
export * from 'react-router';
import { createBrowserHistory, createHashHistory, createLocation } from 'history';

@@ -105,74 +105,91 @@ import PropTypes from 'prop-types';

var resolveToLocation = function resolveToLocation(to, currentLocation) {
return typeof to === "function" ? to(currentLocation) : to;
};
var normalizeToLocation = function normalizeToLocation(to, currentLocation) {
return typeof to === "string" ? createLocation(to, null, null, currentLocation) : to;
};
var forwardRef = React.forwardRef;
if (typeof forwardRef === "undefined") {
forwardRef = function forwardRef(C) {
return C;
};
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}
/**
* The public API for rendering a history-aware <a>.
*/
var LinkAnchor = forwardRef(function (_ref, forwardedRef) {
var innerRef = _ref.innerRef,
navigate = _ref.navigate,
_onClick = _ref.onClick,
rest = _objectWithoutPropertiesLoose(_ref, ["innerRef", "navigate", "onClick"]);
var Link =
/*#__PURE__*/
function (_React$Component) {
_inheritsLoose(Link, _React$Component);
function Link() {
return _React$Component.apply(this, arguments) || this;
}
var _proto = Link.prototype;
_proto.handleClick = function handleClick(event, history) {
try {
if (this.props.onClick) this.props.onClick(event);
} catch (ex) {
event.preventDefault();
throw ex;
}
if (!event.defaultPrevented && // onClick prevented default
event.button === 0 && ( // ignore everything but left clicks
!this.props.target || this.props.target === "_self") && // let browser handle "target=_blank" etc.
!isModifiedEvent(event) // ignore clicks with modifier keys
) {
var target = rest.target;
return React.createElement("a", _extends({}, rest, {
ref: forwardedRef || innerRef,
onClick: function onClick(event) {
try {
if (_onClick) _onClick(event);
} catch (ex) {
event.preventDefault();
var method = this.props.replace ? history.replace : history.push;
method(this.props.to);
throw ex;
}
};
_proto.render = function render() {
var _this = this;
if (!event.defaultPrevented && // onClick prevented default
event.button === 0 && ( // ignore everything but left clicks
!target || target === "_self") && // let browser handle "target=_blank" etc.
!isModifiedEvent(event) // ignore clicks with modifier keys
) {
event.preventDefault();
navigate();
}
}
}));
});
var _this$props = this.props,
innerRef = _this$props.innerRef,
replace = _this$props.replace,
to = _this$props.to,
rest = _objectWithoutPropertiesLoose(_this$props, ["innerRef", "replace", "to"]); // eslint-disable-line no-unused-vars
if (process.env.NODE_ENV !== "production") {
LinkAnchor.displayName = "LinkAnchor";
}
/**
* The public API for rendering a history-aware <a>.
*/
return React.createElement(__RouterContext.Consumer, null, function (context) {
!context ? process.env.NODE_ENV !== "production" ? invariant(false, "You should not use <Link> outside a <Router>") : invariant(false) : void 0;
var location = typeof to === "string" ? createLocation(to, null, null, context.location) : to;
var href = location ? context.history.createHref(location) : "";
return React.createElement("a", _extends({}, rest, {
onClick: function onClick(event) {
return _this.handleClick(event, context.history);
},
href: href,
ref: innerRef
}));
});
};
var Link = forwardRef(function (_ref2, forwardedRef) {
var _ref2$component = _ref2.component,
component = _ref2$component === void 0 ? LinkAnchor : _ref2$component,
replace = _ref2.replace,
to = _ref2.to,
innerRef = _ref2.innerRef,
rest = _objectWithoutPropertiesLoose(_ref2, ["component", "replace", "to", "innerRef"]);
return Link;
}(React.Component);
return React.createElement(__RouterContext.Consumer, null, function (context) {
!context ? process.env.NODE_ENV !== "production" ? invariant(false, "You should not use <Link> outside a <Router>") : invariant(false) : void 0;
var history = context.history;
var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);
var href = location ? history.createHref(location) : "";
return React.createElement(component, _extends({}, rest, {
ref: forwardedRef || innerRef,
href: href,
navigate: function navigate() {
var location = resolveToLocation(to, context.location);
var method = replace ? history.replace : history.push;
method(location);
}
}));
});
});
if (process.env.NODE_ENV !== "production") {
var toType = PropTypes.oneOfType([PropTypes.string, PropTypes.object]);
var innerRefType = PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.shape({
var toType = PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.func]);
var refType = PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.shape({
current: PropTypes.any
})]);
Link.displayName = "Link";
Link.propTypes = {
innerRef: innerRefType,
innerRef: refType,
onClick: PropTypes.func,

@@ -185,2 +202,10 @@ replace: PropTypes.bool,

var forwardRef$1 = React.forwardRef;
if (typeof forwardRef$1 === "undefined") {
forwardRef$1 = function forwardRef(C) {
return C;
};
}
function joinClassnames() {

@@ -200,3 +225,3 @@ for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) {

function NavLink(_ref) {
var NavLink = forwardRef$1(function (_ref, forwardedRef) {
var _ref$ariaCurrent = _ref["aria-current"],

@@ -214,11 +239,13 @@ ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent,

to = _ref.to,
rest = _objectWithoutPropertiesLoose(_ref, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "strict", "style", "to"]);
innerRef = _ref.innerRef,
rest = _objectWithoutPropertiesLoose(_ref, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "strict", "style", "to", "innerRef"]);
var path = typeof to === "object" ? to.pathname : to; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
return React.createElement(__RouterContext.Consumer, null, function (context) {
!context ? process.env.NODE_ENV !== "production" ? invariant(false, "You should not use <NavLink> outside a <Router>") : invariant(false) : void 0;
var pathToMatch = locationProp ? locationProp.pathname : context.location.pathname;
var match = escapedPath ? matchPath(pathToMatch, {
var currentLocation = locationProp || context.location;
var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);
var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
var match = escapedPath ? matchPath(currentLocation.pathname, {
path: escapedPath,

@@ -228,15 +255,17 @@ exact: exact,

}) : null;
var isActive = !!(isActiveProp ? isActiveProp(match, context.location) : match);
var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);
var className = isActive ? joinClassnames(classNameProp, activeClassName) : classNameProp;
var style = isActive ? _extends({}, styleProp, activeStyle) : styleProp;
var style = isActive ? _extends({}, styleProp, {}, activeStyle) : styleProp;
return React.createElement(Link, _extends({
ref: forwardedRef || innerRef,
"aria-current": isActive && ariaCurrent || null,
className: className,
style: style,
to: to
to: toLocation
}, rest));
});
}
});
if (process.env.NODE_ENV !== "production") {
NavLink.displayName = "NavLink";
var ariaCurrentType = PropTypes.oneOf(["page", "step", "location", "date", "time", "true"]);

@@ -257,1 +286,2 @@ NavLink.propTypes = _extends({}, Link.propTypes, {

export { BrowserRouter, HashRouter, Link, NavLink };
//# sourceMappingURL=react-router-dom.js.map
{
"name": "react-router-dom",
"version": "5.0.1",
"version": "5.1.0",
"description": "DOM bindings for React Router",

@@ -29,2 +29,4 @@ "repository": "ReactTraining/react-router",

"matchPath.js",
"modules/*.js",
"modules/utils/*.js",
"withRouter.js",

@@ -40,3 +42,3 @@ "warnAboutDeprecatedCJSRequire.js",

"lint": "eslint modules",
"prepublishOnly": "npm run build",
"prepublishOnly": "yarn build",
"test": "jest"

@@ -52,31 +54,6 @@ },

"prop-types": "^15.6.2",
"react-router": "5.0.1",
"react-router": "5.1.0",
"tiny-invariant": "^1.0.2",
"tiny-warning": "^1.0.0"
},
"devDependencies": {
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-transform-runtime": "^7.1.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.8.0",
"babel-plugin-dev-expression": "^0.2.1",
"eslint": "^5.16.0",
"eslint-plugin-import": "^2.17.0",
"eslint-plugin-react": "^7.9.1",
"jest": "^24.8.0",
"jest-circus": "^24.8.0",
"raf": "^3.4.1",
"react": "^16.5.2",
"react-dom": "^16.5.2",
"rollup": "^0.66.6",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.3.4",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-size-snapshot": "0.7.0",
"rollup-plugin-uglify": "^6.0.2"
},
"browserify": {

@@ -95,3 +72,3 @@ "transform": [

],
"gitHead": "0c9a10d9807b879912f2dff2fbebffe0aa7048ed"
"gitHead": "0c058adc5b56c6d9b409af5e4d8330c645fac00c"
}

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

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n(t.ReactRouterDOM={},t.React)}(this,function(t,c){"use strict";var g="default"in c?c.default:c,u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,n){return t(n={exports:{}},n.exports),n.exports}var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;!function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var n={},e=0;e<10;e++)n["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(t){return n[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()||Object.assign;function a(){}var s=e(function(t){t.exports=function(){function t(t,n,e,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return t}var e={array:t.isRequired=t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n};return e.checkPropTypes=a,e.PropTypes=e}()}),f="__global_unique_id__";function l(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function p(t,n){t.prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var d=1073741823;var v=g.createContext||function(e,i){var t,n,r="__create-react-context-"+(u[f]=(u[f]||0)+1)+"__",o=function(o){function t(){for(var t,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return l(h(t=o.call.apply(o,[this].concat(e))||this),"emitter",function(e){var r=[];return{on:function(t){r.push(t)},off:function(n){r=r.filter(function(t){return t!==n})},get:function(){return e},set:function(t,n){e=t,r.forEach(function(t){return t(e,n)})}}}(t.props.value)),t}p(t,o);var n=t.prototype;return n.getChildContext=function(){var t;return(t={})[r]=this.emitter,t},n.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,e=this.props.value,r=t.value;!function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}(e,r)?(n="function"==typeof i?i(e,r):d,0!=(n|=0)&&this.emitter.set(t.value,n)):n=0}},n.render=function(){return this.props.children},t}(c.Component);l(o,"childContextTypes",((t={})[r]=s.object.isRequired,t));var a=function(o){function t(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return l(h(e=o.call.apply(o,[this].concat(n))||this),"observedBits",void 0),l(h(e),"state",{value:e.getValue()}),l(h(e),"onUpdate",function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})}),e}p(t,o);var n=t.prototype;return n.componentWillReceiveProps=function(t){var n=t.observedBits;this.observedBits=null==n?d:n},n.componentDidMount=function(){this.context[r]&&this.context[r].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?d:t},n.componentWillUnmount=function(){this.context[r]&&this.context[r].off(this.onUpdate)},n.getValue=function(){return this.context[r]?this.context[r].get():e},n.render=function(){return function(t){return Array.isArray(t)?t[0]:t}(this.props.children)(this.state.value)},t}(c.Component);return l(a,"contextTypes",((n={})[r]=s.object,n)),{Provider:o,Consumer:a}};function y(t,n){t.prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n}function m(){return(m=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function b(t){return"/"===t.charAt(0)}function w(t,n){for(var e=n,r=e+1,o=t.length;r<o;e+=1,r+=1)t[e]=t[r];t.pop()}var O="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};var x="Invariant failed";function P(t,n){if(!t)throw new Error(x)}function E(t){var n=t.pathname,e=t.search,r=t.hash,o=n||"/";return e&&"?"!==e&&(o+="?"===e.charAt(0)?e:"?"+e),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function C(t,n,e,r){var o;"string"==typeof t?(o=function(t){var n=t||"/",e="",r="",o=n.indexOf("#");-1!==o&&(r=n.substr(o),n=n.substr(0,o));var i=n.indexOf("?");return-1!==i&&(e=n.substr(i),n=n.substr(0,i)),{pathname:n,search:"?"===e?"":e,hash:"#"===r?"":r}}(t)).state=n:(void 0===(o=m({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==n&&void 0===o.state&&(o.state=n));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return e&&(o.key=e),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",e=t&&t.split("/")||[],r=n&&n.split("/")||[],o=t&&b(t),i=n&&b(n),a=o||i;if(t&&b(t)?r=e:e.length&&(r.pop(),r=r.concat(e)),!r.length)return"/";var c=void 0;if(r.length){var u=r[r.length-1];c="."===u||".."===u||""===u}else c=!1;for(var s=0,f=r.length;0<=f;f--){var l=r[f];"."===l?w(r,f):".."===l?(w(r,f),s++):s&&(w(r,f),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&b(r[0])||r.unshift("");var p=r.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function S(t,n){return t.pathname===n.pathname&&t.search===n.search&&t.hash===n.hash&&t.key===n.key&&function e(n,r){if(n===r)return!0;if(null==n||null==r)return!1;if(Array.isArray(n))return Array.isArray(r)&&n.length===r.length&&n.every(function(t,n){return e(t,r[n])});var t=void 0===n?"undefined":O(n);if(t!==(void 0===r?"undefined":O(r)))return!1;if("object"!==t)return!1;var o=n.valueOf(),i=r.valueOf();if(o!==n||i!==r)return e(o,i);var a=Object.keys(n),c=Object.keys(r);return a.length===c.length&&a.every(function(t){return e(n[t],r[t])})}(t.state,n.state)}"undefined"!=typeof window&&window.document&&window.document.createElement;function k(t,n,e){return Math.min(Math.max(t,n),e)}function j(t){void 0===t&&(t={});var n=t,o=n.getUserConfirmation,e=n.initialEntries,r=void 0===e?["/"]:e,i=n.initialIndex,a=void 0===i?0:i,c=n.keyLength,u=void 0===c?6:c,s=function(){var i=null,r=[];return{setPrompt:function(t){return i=t,function(){i===t&&(i=null)}},confirmTransitionTo:function(t,n,e,r){if(null!=i){var o="function"==typeof i?i(t,n):i;"string"==typeof o?"function"==typeof e?e(o,r):r(!0):r(!1!==o)}else r(!0)},appendListener:function(t){var n=!0;function e(){n&&t.apply(void 0,arguments)}return r.push(e),function(){n=!1,r=r.filter(function(t){return t!==e})}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];r.forEach(function(t){return t.apply(void 0,n)})}}}();function f(t){m(y,t),y.length=y.entries.length,s.notifyListeners(y.location,y.action)}function l(){return Math.random().toString(36).substr(2,u)}var p=k(a,0,r.length-1),h=r.map(function(t){return C(t,void 0,"string"==typeof t?l():t.key||l())}),d=E;function v(t){var n=k(y.index+t,0,y.entries.length-1),e=y.entries[n];s.confirmTransitionTo(e,"POP",o,function(t){t?f({action:"POP",location:e,index:n}):f()})}var y={length:h.length,action:"POP",location:h[p],index:p,entries:h,createHref:d,push:function(t,n){var r=C(t,n,l(),y.location);s.confirmTransitionTo(r,"PUSH",o,function(t){if(t){var n=y.index+1,e=y.entries.slice(0);e.length>n?e.splice(n,e.length-n,r):e.push(r),f({action:"PUSH",location:r,index:n,entries:e})}})},replace:function(t,n){var e="REPLACE",r=C(t,n,l(),y.location);s.confirmTransitionTo(r,e,o,function(t){t&&(y.entries[y.index]=r,f({action:e,location:r}))})},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(t){var n=y.index+t;return 0<=n&&n<y.entries.length},block:function(t){return void 0===t&&(t=!1),s.setPrompt(t)},listen:function(t){return s.appendListener(t)}};return y}function T(t,n){return F($(t,n))}var A=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},R=V,_=$,M=F,U=D,L=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(t,n){for(var e,r,o=[],i=0,a=0,c="",u=n&&n.delimiter||"/";null!=(e=L.exec(t));){var s=e[0],f=e[1],l=e.index;if(c+=t.slice(a,l),a=l+s.length,f)c+=f[1];else{var p=t[a],h=e[2],d=e[3],v=e[4],y=e[5],m=e[6],g=e[7];c&&(o.push(c),c="");var b=null!=h&&null!=p&&p!==h,w="+"===m||"*"===m,O="?"===m||"*"===m,x=e[2]||u,P=v||y;o.push({name:d||i++,prefix:h||"",delimiter:x,optional:O,repeat:w,partial:b,asterisk:!!g,pattern:P?(r=P,r.replace(/([=!:$\/()])/g,"\\$1")):g?".*":"[^"+N(x)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&o.push(c),o}function I(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function F(f){for(var l=new Array(f.length),t=0;t<f.length;t++)"object"==typeof f[t]&&(l[t]=new RegExp("^(?:"+f[t].pattern+")$"));return function(t,n){for(var e="",r=t||{},o=(n||{}).pretty?I:encodeURIComponent,i=0;i<f.length;i++){var a=f[i];if("string"!=typeof a){var c,u=r[a.name];if(null==u){if(a.optional){a.partial&&(e+=a.prefix);continue}throw new TypeError('Expected "'+a.name+'" to be defined')}if(A(u)){if(!a.repeat)throw new TypeError('Expected "'+a.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(a.optional)continue;throw new TypeError('Expected "'+a.name+'" to not be empty')}for(var s=0;s<u.length;s++){if(c=o(u[s]),!l[i].test(c))throw new TypeError('Expected all "'+a.name+'" to match "'+a.pattern+'", but received `'+JSON.stringify(c)+"`");e+=(0===s?a.prefix:a.delimiter)+c}}else{if(c=a.asterisk?encodeURI(u).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):o(u),!l[i].test(c))throw new TypeError('Expected "'+a.name+'" to match "'+a.pattern+'", but received "'+c+'"');e+=a.prefix+c}}else e+=a}return e}}function N(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function B(t,n){return t.keys=n,t}function H(t){return t.sensitive?"":"i"}function D(t,n,e){A(n)||(e=n||e,n=[]);for(var r=(e=e||{}).strict,o=!1!==e.end,i="",a=0;a<t.length;a++){var c=t[a];if("string"==typeof c)i+=N(c);else{var u=N(c.prefix),s="(?:"+c.pattern+")";n.push(c),c.repeat&&(s+="(?:"+u+s+")*"),i+=s=c.optional?c.partial?u+"("+s+")?":"(?:"+u+"("+s+"))?":u+"("+s+")"}}var f=N(e.delimiter||"/"),l=i.slice(-f.length)===f;return r||(i=(l?i.slice(0,-f.length):i)+"(?:"+f+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+f+"|$)",B(new RegExp("^"+i,H(e)),n)}function V(t,n,e){return A(n)||(e=n||e,n=[]),e=e||{},t instanceof RegExp?function(t,n){var e=t.source.match(/\((?!\?)/g);if(e)for(var r=0;r<e.length;r++)n.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return B(t,n)}(t,n):A(t)?function(t,n,e){for(var r=[],o=0;o<t.length;o++)r.push(V(t[o],n,e).source);return B(new RegExp("(?:"+r.join("|")+")",H(e)),n)}(t,n,e):function(t,n,e){return D($(t,e),n,e)}(t,n,e)}R.parse=_,R.compile=T,R.tokensToFunction=M,R.tokensToRegExp=U;var q=e(function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.memo"):60115,d=e?Symbol.for("react.lazy"):60116;function v(t){if("object"==typeof t&&null!==t){var n=t.$$typeof;switch(n){case r:switch(t=t.type){case f:case i:case c:case a:return t;default:switch(t=t&&t.$$typeof){case s:case l:case u:return t;default:return n}}case o:return n}}}function y(t){return v(t)===f}n.typeOf=v,n.AsyncMode=f,n.ConcurrentMode=f,n.ContextConsumer=s,n.ContextProvider=u,n.Element=r,n.ForwardRef=l,n.Fragment=i,n.Profiler=c,n.Portal=o,n.StrictMode=a,n.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===f||t===c||t===a||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===h||t.$$typeof===u||t.$$typeof===s||t.$$typeof===l)},n.isAsyncMode=function(t){return y(t)},n.isConcurrentMode=y,n.isContextConsumer=function(t){return v(t)===s},n.isContextProvider=function(t){return v(t)===u},n.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},n.isForwardRef=function(t){return v(t)===l},n.isFragment=function(t){return v(t)===i},n.isProfiler=function(t){return v(t)===c},n.isPortal=function(t){return v(t)===o},n.isStrictMode=function(t){return v(t)===a}});n(q);q.typeOf,q.AsyncMode,q.ConcurrentMode,q.ContextConsumer,q.ContextProvider,q.Element,q.ForwardRef,q.Fragment,q.Profiler,q.Portal,q.StrictMode,q.isValidElementType,q.isAsyncMode,q.isConcurrentMode,q.isContextConsumer,q.isContextProvider,q.isElement,q.isForwardRef,q.isFragment,q.isProfiler,q.isPortal,q.isStrictMode;var W=e(function(t,n){});n(W);W.typeOf,W.AsyncMode,W.ConcurrentMode,W.ContextConsumer,W.ContextProvider,W.Element,W.ForwardRef,W.Fragment,W.Profiler,W.Portal,W.StrictMode,W.isValidElementType,W.isAsyncMode,W.isConcurrentMode,W.isContextConsumer,W.isContextProvider,W.isElement,W.isForwardRef,W.isFragment,W.isProfiler,W.isPortal,W.isStrictMode;var K=e(function(t){t.exports=q});K.isValidElementType;function J(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],0<=n.indexOf(e)||(o[e]=t[e]);return o}var Y={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},G={};G[K.ForwardRef]={$$typeof:!0,render:!0};var Q=Object.defineProperty,X=Object.getOwnPropertyNames,Z=Object.getOwnPropertySymbols,tt=Object.getOwnPropertyDescriptor,nt=Object.getPrototypeOf,et=Object.prototype;var rt=function t(n,e,r){if("string"==typeof e)return n;if(et){var o=nt(e);o&&o!==et&&t(n,o,r)}var i=X(e);Z&&(i=i.concat(Z(e)));for(var a=G[n.$$typeof]||Y,c=G[e.$$typeof]||Y,u=0;u<i.length;++u){var s=i[u];if(!(z[s]||r&&r[s]||c&&c[s]||a&&a[s])){var f=tt(e,s);try{Q(n,s,f)}catch(t){}}}return n},ot=function(t){var n=v();return n.displayName=t,n}("Router"),it=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen(function(t){n._isMounted?n.setState({location:t}):n._pendingLocation=t})),n}y(t,e),t.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return g.createElement(ot.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(g.Component),at=function(o){function t(){for(var t,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return(t=o.call.apply(o,[this].concat(e))||this).history=j(t.props),t}return y(t,o),t.prototype.render=function(){return g.createElement(it,{history:this.history,children:this.props.children})},t}(g.Component),ct=function(t){function n(){return t.apply(this,arguments)||this}y(n,t);var e=n.prototype;return e.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},e.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},e.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},e.render=function(){return null},n}(g.Component);var ut={},st=1e4,ft=0;function lt(t,n){return void 0===t&&(t="/"),void 0===n&&(n={}),"/"===t?t:function(t){if(ut[t])return ut[t];var n=R.compile(t);return ft<st&&(ut[t]=n,ft++),n}(t)(n,{pretty:!0})}var pt={},ht=1e4,dt=0;function vt(s,t){void 0===t&&(t={}),"string"==typeof t&&(t={path:t});var n=t,e=n.path,r=n.exact,f=void 0!==r&&r,o=n.strict,l=void 0!==o&&o,i=n.sensitive,p=void 0!==i&&i;return[].concat(e).reduce(function(t,n){if(!n)return null;if(t)return t;var e=function(t,n){var e=""+n.end+n.strict+n.sensitive,r=pt[e]||(pt[e]={});if(r[t])return r[t];var o=[],i={regexp:R(t,o,n),keys:o};return dt<ht&&(r[t]=i,dt++),i}(n,{end:f,strict:l,sensitive:p}),r=e.regexp,o=e.keys,i=r.exec(s);if(!i)return null;var a=i[0],c=i.slice(1),u=s===a;return f&&!u?null:{path:n,url:"/"===n&&""===a?"/":a,isExact:u,params:o.reduce(function(t,n,e){return t[n.name]=c[e],t},{})}},null)}var yt=function(t){function n(){return t.apply(this,arguments)||this}return y(n,t),n.prototype.render=function(){var c=this;return g.createElement(ot.Consumer,null,function(t){t||P(!1);var n=c.props.location||t.location,e=m({},t,{location:n,match:c.props.computedMatch?c.props.computedMatch:c.props.path?vt(n.pathname,c.props):t.match}),r=c.props,o=r.children,i=r.component,a=r.render;return Array.isArray(o)&&0===o.length&&(o=null),"function"==typeof o&&void 0===(o=o(e))&&(o=null),g.createElement(ot.Provider,{value:e},o&&!function(t){return 0===g.Children.count(t)}(o)?o:e.match?i?g.createElement(i,e):a?a(e):null:null)})},n}(g.Component);function mt(t){return"/"===t.charAt(0)?t:"/"+t}function gt(t){return"string"==typeof t?t:E(t)}function bt(t){return function(){P(!1)}}function wt(){}var Ot=function(o){function t(){for(var n,t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return(n=o.call.apply(o,[this].concat(e))||this).handlePush=function(t){return n.navigateTo(t,"PUSH")},n.handleReplace=function(t){return n.navigateTo(t,"REPLACE")},n.handleListen=function(){return wt},n.handleBlock=function(){return wt},n}y(t,o);var n=t.prototype;return n.navigateTo=function(t,n){var e=this.props,r=e.basename,o=void 0===r?"":r,i=e.context,a=void 0===i?{}:i;a.action=n,a.location=function(t,n){return t?m({},n,{pathname:mt(t)+n.pathname}):n}(o,C(t)),a.url=gt(a.location)},n.render=function(){var t=this.props,n=t.basename,e=void 0===n?"":n,r=t.context,o=void 0===r?{}:r,i=t.location,a=void 0===i?"/":i,c=J(t,["basename","context","location"]),u={createHref:function(t){return mt(e+gt(t))},action:"POP",location:function(t,n){if(!t)return n;var e=mt(t);return 0!==n.pathname.indexOf(e)?n:m({},n,{pathname:n.pathname.substr(e.length)})}(e,C(a)),push:this.handlePush,replace:this.handleReplace,go:bt(),goBack:bt(),goForward:bt(),listen:this.handleListen,block:this.handleBlock};return g.createElement(it,m({},c,{history:u,staticContext:o}))},t}(g.Component),xt=function(t){function n(){return t.apply(this,arguments)||this}return y(n,t),n.prototype.render=function(){var t=this;return g.createElement(ot.Consumer,null,function(e){e||P(!1);var r,o,i=t.props.location||e.location;return g.Children.forEach(t.props.children,function(t){if(null==o&&g.isValidElement(t)){var n=(r=t).props.path||t.props.from;o=n?vt(i.pathname,m({},t.props,{path:n})):e.match}}),o?g.cloneElement(r,{location:i,computedMatch:o}):null})},n}(g.Component);function Pt(t,n){t.prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n}function Et(){return(Et=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(this,arguments)}function Ct(t){return"/"===t.charAt(0)}function St(t,n){for(var e=n,r=e+1,o=t.length;r<o;e+=1,r+=1)t[e]=t[r];t.pop()}var kt="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};var jt="Invariant failed";function Tt(t,n){if(!t)throw new Error(jt)}function At(t){return"/"===t.charAt(0)?t:"/"+t}function Rt(t){return"/"===t.charAt(0)?t.substr(1):t}function _t(t,n){return function(t,n){return new RegExp("^"+n+"(\\/|\\?|#|$)","i").test(t)}(t,n)?t.substr(n.length):t}function Mt(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function Ut(t){var n=t.pathname,e=t.search,r=t.hash,o=n||"/";return e&&"?"!==e&&(o+="?"===e.charAt(0)?e:"?"+e),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function Lt(t,n,e,r){var o;"string"==typeof t?(o=function(t){var n=t||"/",e="",r="",o=n.indexOf("#");-1!==o&&(r=n.substr(o),n=n.substr(0,o));var i=n.indexOf("?");return-1!==i&&(e=n.substr(i),n=n.substr(0,i)),{pathname:n,search:"?"===e?"":e,hash:"#"===r?"":r}}(t)).state=n:(void 0===(o=Et({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==n&&void 0===o.state&&(o.state=n));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return e&&(o.key=e),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",e=t&&t.split("/")||[],r=n&&n.split("/")||[],o=t&&Ct(t),i=n&&Ct(n),a=o||i;if(t&&Ct(t)?r=e:e.length&&(r.pop(),r=r.concat(e)),!r.length)return"/";var c=void 0;if(r.length){var u=r[r.length-1];c="."===u||".."===u||""===u}else c=!1;for(var s=0,f=r.length;0<=f;f--){var l=r[f];"."===l?St(r,f):".."===l?(St(r,f),s++):s&&(St(r,f),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&Ct(r[0])||r.unshift("");var p=r.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function $t(t,n){return t.pathname===n.pathname&&t.search===n.search&&t.hash===n.hash&&t.key===n.key&&function e(n,r){if(n===r)return!0;if(null==n||null==r)return!1;if(Array.isArray(n))return Array.isArray(r)&&n.length===r.length&&n.every(function(t,n){return e(t,r[n])});var t=void 0===n?"undefined":kt(n);if(t!==(void 0===r?"undefined":kt(r)))return!1;if("object"!==t)return!1;var o=n.valueOf(),i=r.valueOf();if(o!==n||i!==r)return e(o,i);var a=Object.keys(n),c=Object.keys(r);return a.length===c.length&&a.every(function(t){return e(n[t],r[t])})}(t.state,n.state)}function It(){var i=null;var r=[];return{setPrompt:function(t){return i=t,function(){i===t&&(i=null)}},confirmTransitionTo:function(t,n,e,r){if(null!=i){var o="function"==typeof i?i(t,n):i;"string"==typeof o?"function"==typeof e?e(o,r):r(!0):r(!1!==o)}else r(!0)},appendListener:function(t){var n=!0;function e(){n&&t.apply(void 0,arguments)}return r.push(e),function(){n=!1,r=r.filter(function(t){return t!==e})}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];r.forEach(function(t){return t.apply(void 0,n)})}}}var Ft=!("undefined"==typeof window||!window.document||!window.document.createElement);function Nt(t,n){n(window.confirm(t))}var Bt="popstate",Ht="hashchange";function Dt(){try{return window.history.state||{}}catch(t){return{}}}function Vt(t){void 0===t&&(t={}),Ft||Tt(!1);var c=window.history,u=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),n=!(-1===window.navigator.userAgent.indexOf("Trident")),e=t,r=e.forceRefresh,s=void 0!==r&&r,o=e.getUserConfirmation,f=void 0===o?Nt:o,i=e.keyLength,a=void 0===i?6:i,l=t.basename?Mt(At(t.basename)):"";function p(t){var n=t||{},e=n.key,r=n.state,o=window.location,i=o.pathname+o.search+o.hash;return l&&(i=_t(i,l)),Lt(i,r,e)}function h(){return Math.random().toString(36).substr(2,a)}var d=It();function v(t){Et(k,t),k.length=c.length,d.notifyListeners(k.location,k.action)}function y(t){!function(t){void 0===t.state&&navigator.userAgent.indexOf("CriOS")}(t)&&b(p(t.state))}function m(){b(p(Dt()))}var g=!1;function b(n){if(g)g=!1,v();else{d.confirmTransitionTo(n,"POP",f,function(t){t?v({action:"POP",location:n}):function(t){var n=k.location,e=O.indexOf(n.key);-1===e&&(e=0);var r=O.indexOf(t.key);-1===r&&(r=0);var o=e-r;o&&(g=!0,P(o))}(n)})}}var w=p(Dt()),O=[w.key];function x(t){return l+Ut(t)}function P(t){c.go(t)}var E=0;function C(t){1===(E+=t)&&1===t?(window.addEventListener(Bt,y),n&&window.addEventListener(Ht,m)):0===E&&(window.removeEventListener(Bt,y),n&&window.removeEventListener(Ht,m))}var S=!1;var k={length:c.length,action:"POP",location:w,createHref:x,push:function(t,n){var a=Lt(t,n,h(),k.location);d.confirmTransitionTo(a,"PUSH",f,function(t){if(t){var n=x(a),e=a.key,r=a.state;if(u)if(c.pushState({key:e,state:r},null,n),s)window.location.href=n;else{var o=O.indexOf(k.location.key),i=O.slice(0,-1===o?0:o+1);i.push(a.key),O=i,v({action:"PUSH",location:a})}else window.location.href=n}})},replace:function(t,n){var i="REPLACE",a=Lt(t,n,h(),k.location);d.confirmTransitionTo(a,i,f,function(t){if(t){var n=x(a),e=a.key,r=a.state;if(u)if(c.replaceState({key:e,state:r},null,n),s)window.location.replace(n);else{var o=O.indexOf(k.location.key);-1!==o&&(O[o]=a.key),v({action:i,location:a})}else window.location.replace(n)}})},go:P,goBack:function(){P(-1)},goForward:function(){P(1)},block:function(t){void 0===t&&(t=!1);var n=d.setPrompt(t);return S||(C(1),S=!0),function(){return S&&(S=!1,C(-1)),n()}},listen:function(t){var n=d.appendListener(t);return C(1),function(){C(-1),n()}}};return k}var qt="hashchange",Wt={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+Rt(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:Rt,decodePath:At},slash:{encodePath:At,decodePath:At}};function Kt(){var t=window.location.href,n=t.indexOf("#");return-1===n?"":t.substring(n+1)}function Jt(t){var n=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,0<=n?n:0)+"#"+t)}function Yt(t){void 0===t&&(t={}),Ft||Tt(!1);var n=window.history,e=(window.navigator.userAgent.indexOf("Firefox"),t),r=e.getUserConfirmation,a=void 0===r?Nt:r,o=e.hashType,i=void 0===o?"slash":o,c=t.basename?Mt(At(t.basename)):"",u=Wt[i],s=u.encodePath,f=u.decodePath;function l(){var t=f(Kt());return c&&(t=_t(t,c)),Lt(t)}var p=It();function h(t){Et(C,t),C.length=n.length,p.notifyListeners(C.location,C.action)}var d=!1,v=null;function y(){var t=Kt(),n=s(t);if(t!==n)Jt(n);else{var e=l(),r=C.location;if(!d&&$t(r,e))return;if(v===Ut(e))return;v=null,function(n){if(d)d=!1,h();else{p.confirmTransitionTo(n,"POP",a,function(t){t?h({action:"POP",location:n}):function(t){var n=C.location,e=w.lastIndexOf(Ut(n));-1===e&&(e=0);var r=w.lastIndexOf(Ut(t));-1===r&&(r=0);var o=e-r;o&&(d=!0,O(o))}(n)})}}(e)}}var m=Kt(),g=s(m);m!==g&&Jt(g);var b=l(),w=[Ut(b)];function O(t){n.go(t)}var x=0;function P(t){1===(x+=t)&&1===t?window.addEventListener(qt,y):0===x&&window.removeEventListener(qt,y)}var E=!1;var C={length:n.length,action:"POP",location:b,createHref:function(t){return"#"+s(c+Ut(t))},push:function(t,n){var i=Lt(t,void 0,void 0,C.location);p.confirmTransitionTo(i,"PUSH",a,function(t){if(t){var n=Ut(i),e=s(c+n);if(Kt()!==e){v=n,function(t){window.location.hash=t}(e);var r=w.lastIndexOf(Ut(C.location)),o=w.slice(0,-1===r?0:r+1);o.push(n),w=o,h({action:"PUSH",location:i})}else h()}})},replace:function(t,n){var o="REPLACE",i=Lt(t,void 0,void 0,C.location);p.confirmTransitionTo(i,o,a,function(t){if(t){var n=Ut(i),e=s(c+n);Kt()!==e&&(v=n,Jt(e));var r=w.indexOf(Ut(C.location));-1!==r&&(w[r]=n),h({action:o,location:i})}})},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},block:function(t){void 0===t&&(t=!1);var n=p.setPrompt(t);return E||(P(1),E=!0),function(){return E&&(E=!1,P(-1)),n()}},listen:function(t){var n=p.appendListener(t);return P(1),function(){P(-1),n()}}};return C}var zt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable;!function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var n={},e=0;e<10;e++)n["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(t){return n[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()||Object.assign;function Xt(){}e(function(t){t.exports=function(){function t(t,n,e,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return t}var e={array:t.isRequired=t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n};return e.checkPropTypes=Xt,e.PropTypes=e}()});var Zt=function(o){function t(){for(var t,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return(t=o.call.apply(o,[this].concat(e))||this).history=Vt(t.props),t}return Pt(t,o),t.prototype.render=function(){return g.createElement(it,{history:this.history,children:this.props.children})},t}(g.Component),tn=function(o){function t(){for(var t,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];return(t=o.call.apply(o,[this].concat(e))||this).history=Yt(t.props),t}return Pt(t,o),t.prototype.render=function(){return g.createElement(it,{history:this.history,children:this.props.children})},t}(g.Component);function nn(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],0<=n.indexOf(e)||(o[e]=t[e]);return o}var en=function(t){function n(){return t.apply(this,arguments)||this}Pt(n,t);var e=n.prototype;return e.handleClick=function(n,t){try{this.props.onClick&&this.props.onClick(n)}catch(t){throw n.preventDefault(),t}n.defaultPrevented||0!==n.button||this.props.target&&"_self"!==this.props.target||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(n)||(n.preventDefault(),(this.props.replace?t.replace:t.push)(this.props.to))},e.render=function(){var r=this,t=this.props,o=t.innerRef,i=(t.replace,t.to),a=nn(t,["innerRef","replace","to"]);return g.createElement(ot.Consumer,null,function(n){n||Tt(!1);var t="string"==typeof i?Lt(i,null,null,n.location):i,e=t?n.history.createHref(t):"";return g.createElement("a",Et({},a,{onClick:function(t){return r.handleClick(t,n.history)},href:e,ref:o}))})},n}(g.Component);t.BrowserRouter=Zt,t.HashRouter=tn,t.Link=en,t.NavLink=function(t){var n=t["aria-current"],a=void 0===n?"page":n,e=t.activeClassName,c=void 0===e?"active":e,u=t.activeStyle,s=t.className,f=t.exact,l=t.isActive,p=t.location,h=t.strict,d=t.style,v=t.to,y=nn(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to"]),r="object"==typeof v?v.pathname:v,m=r&&r.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return g.createElement(ot.Consumer,null,function(t){t||Tt(!1);var n=p?p.pathname:t.location.pathname,e=m?vt(n,{path:m,exact:f,strict:h}):null,r=!!(l?l(e,t.location):e),o=r?function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.filter(function(t){return t}).join(" ")}(s,c):s,i=r?Et({},d,u):d;return g.createElement(en,Et({"aria-current":r&&a||null,className:o,style:i,to:v},y))})},t.MemoryRouter=at,t.Prompt=function(t){var r=t.message,n=t.when,o=void 0===n||n;return g.createElement(ot.Consumer,null,function(t){if(t||P(!1),!o||t.staticContext)return null;var e=t.history.block;return g.createElement(ct,{onMount:function(t){t.release=e(r)},onUpdate:function(t,n){n.message!==r&&(t.release(),t.release=e(r))},onUnmount:function(t){t.release()},message:r})})},t.Redirect=function(t){var i=t.computedMatch,a=t.to,n=t.push,c=void 0!==n&&n;return g.createElement(ot.Consumer,null,function(t){t||P(!1);var n=t.history,e=t.staticContext,r=c?n.push:n.replace,o=C(i?"string"==typeof a?lt(a,i.params):m({},a,{pathname:lt(a.pathname,i.params)}):a);return e?(r(o),null):g.createElement(ct,{onMount:function(){r(o)},onUpdate:function(t,n){var e=C(n.to);S(e,m({},o,{key:e.key}))||r(o)},to:a})})},t.Route=yt,t.Router=it,t.StaticRouter=Ot,t.Switch=xt,t.generatePath=lt,t.matchPath=vt,t.withRouter=function(r){function t(t){var n=t.wrappedComponentRef,e=J(t,["wrappedComponentRef"]);return g.createElement(ot.Consumer,null,function(t){return t||P(!1),g.createElement(r,m({},e,t,{ref:n}))})}var n="withRouter("+(r.displayName||r.name)+")";return t.displayName=n,t.WrappedComponent=r,rt(t,r)},t.__RouterContext=ot,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e((t=t||self).ReactRouterDOM={},t.React)}(this,function(t,c){"use strict";var P="default"in c?c.default:c;function r(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t,e){return t(e={exports:{}},e.exports),e.exports}var o=n(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.async_mode"):60111,l=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.fundamental"):60117,g=n?Symbol.for("react.responder"):60118;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case f:case l:case i:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case s:case p:case u:return t;default:return e}}case y:case v:case o:return e}}}function b(t){return w(t)===l}e.typeOf=w,e.AsyncMode=f,e.ConcurrentMode=l,e.ContextConsumer=s,e.ContextProvider=u,e.Element=r,e.ForwardRef=p,e.Fragment=i,e.Lazy=y,e.Memo=v,e.Portal=o,e.Profiler=c,e.StrictMode=a,e.Suspense=h,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===l||t===c||t===a||t===h||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===v||t.$$typeof===u||t.$$typeof===s||t.$$typeof===p||t.$$typeof===m||t.$$typeof===g)},e.isAsyncMode=function(t){return b(t)||w(t)===f},e.isConcurrentMode=b,e.isContextConsumer=function(t){return w(t)===s},e.isContextProvider=function(t){return w(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return w(t)===p},e.isFragment=function(t){return w(t)===i},e.isLazy=function(t){return w(t)===y},e.isMemo=function(t){return w(t)===v},e.isPortal=function(t){return w(t)===o},e.isProfiler=function(t){return w(t)===c},e.isStrictMode=function(t){return w(t)===a},e.isSuspense=function(t){return w(t)===h}});e(o);o.typeOf,o.AsyncMode,o.ConcurrentMode,o.ContextConsumer,o.ContextProvider,o.Element,o.ForwardRef,o.Fragment,o.Lazy,o.Memo,o.Portal,o.Profiler,o.StrictMode,o.Suspense,o.isValidElementType,o.isAsyncMode,o.isConcurrentMode,o.isContextConsumer,o.isContextProvider,o.isElement,o.isForwardRef,o.isFragment,o.isLazy,o.isMemo,o.isPortal,o.isProfiler,o.isStrictMode,o.isSuspense;var i=n(function(t,e){});e(i);i.typeOf,i.AsyncMode,i.ConcurrentMode,i.ContextConsumer,i.ContextProvider,i.Element,i.ForwardRef,i.Fragment,i.Lazy,i.Memo,i.Portal,i.Profiler,i.StrictMode,i.Suspense,i.isValidElementType,i.isAsyncMode,i.isConcurrentMode,i.isContextConsumer,i.isContextProvider,i.isElement,i.isForwardRef,i.isFragment,i.isLazy,i.isMemo,i.isPortal,i.isProfiler,i.isStrictMode,i.isSuspense;var a=n(function(t){t.exports=o}),s=(a.isValidElementType,Object.getOwnPropertySymbols),f=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;!function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()||Object.assign,Function.call.bind(Object.prototype.hasOwnProperty);function p(){}function h(){}h.resetWarningCache=p;var d=n(function(t){t.exports=function(){function t(t,e,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}var n={array:t.isRequired=t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:h,resetWarningCache:p};return n.PropTypes=n}()});function T(){return(T=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function v(t){return"/"===t.charAt(0)}function y(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}var m="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};var g="Invariant failed";function k(t){if(!t)throw new Error(g)}function A(t){return"/"===t.charAt(0)?t:"/"+t}function w(t){return"/"===t.charAt(0)?t.substr(1):t}function M(t,e){return function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)}(t,e)?t.substr(e.length):t}function _(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function j(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function L(t,e,n,r){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=T({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(t,e){var n=1<arguments.length&&void 0!==e?e:"",r=t&&t.split("/")||[],o=n&&n.split("/")||[],i=t&&v(t),a=n&&v(n),c=i||a;if(t&&v(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";var u=void 0;if(o.length){var s=o[o.length-1];u="."===s||".."===s||""===s}else u=!1;for(var f=0,l=o.length;0<=l;l--){var p=o[l];"."===p?y(o,l):".."===p?(y(o,l),f++):f&&(y(o,l),f--)}if(!c)for(;f--;)o.unshift("..");!c||""===o[0]||o[0]&&v(o[0])||o.unshift("");var h=o.join("/");return u&&"/"!==h.substr(-1)&&(h+="/"),h}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function S(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&function n(e,r){if(e===r)return!0;if(null==e||null==r)return!1;if(Array.isArray(e))return Array.isArray(r)&&e.length===r.length&&e.every(function(t,e){return n(t,r[e])});var t=void 0===e?"undefined":m(e);if(t!==(void 0===r?"undefined":m(r)))return!1;if("object"!==t)return!1;var o=e.valueOf(),i=r.valueOf();if(o!==e||i!==r)return n(o,i);var a=Object.keys(e),c=Object.keys(r);return a.length===c.length&&a.every(function(t){return n(e[t],r[t])})}(t.state,e.state)}function $(){var i=null;var r=[];return{setPrompt:function(t){return i=t,function(){i===t&&(i=null)}},confirmTransitionTo:function(t,e,n,r){if(null!=i){var o="function"==typeof i?i(t,e):i;"string"==typeof o?"function"==typeof n?n(o,r):r(!0):r(!1!==o)}else r(!0)},appendListener:function(t){var e=!0;function n(){e&&t.apply(void 0,arguments)}return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},notifyListeners:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}}var U=!("undefined"==typeof window||!window.document||!window.document.createElement);function F(t,e){e(window.confirm(t))}var N="popstate",I="hashchange";function H(){try{return window.history.state||{}}catch(t){return{}}}function b(t){void 0===t&&(t={}),U||k(!1);var c=window.history,u=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),e=!(-1===window.navigator.userAgent.indexOf("Trident")),n=t,r=n.forceRefresh,s=void 0!==r&&r,o=n.getUserConfirmation,f=void 0===o?F:o,i=n.keyLength,a=void 0===i?6:i,l=t.basename?_(A(t.basename)):"";function p(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return l&&(i=M(i,l)),L(i,r,n)}function h(){return Math.random().toString(36).substr(2,a)}var d=$();function v(t){T(R,t),R.length=c.length,d.notifyListeners(R.location,R.action)}function y(t){!function(t){void 0===t.state&&navigator.userAgent.indexOf("CriOS")}(t)&&w(p(t.state))}function m(){w(p(H()))}var g=!1;function w(e){if(g)g=!1,v();else{d.confirmTransitionTo(e,"POP",f,function(t){t?v({action:"POP",location:e}):function(t){var e=R.location,n=x.indexOf(e.key);-1===n&&(n=0);var r=x.indexOf(t.key);-1===r&&(r=0);var o=n-r;o&&(g=!0,O(o))}(e)})}}var b=p(H()),x=[b.key];function P(t){return l+j(t)}function O(t){c.go(t)}var C=0;function E(t){1===(C+=t)&&1===t?(window.addEventListener(N,y),e&&window.addEventListener(I,m)):0===C&&(window.removeEventListener(N,y),e&&window.removeEventListener(I,m))}var S=!1;var R={length:c.length,action:"POP",location:b,createHref:P,push:function(t,e){var a=L(t,e,h(),R.location);d.confirmTransitionTo(a,"PUSH",f,function(t){if(t){var e=P(a),n=a.key,r=a.state;if(u)if(c.pushState({key:n,state:r},null,e),s)window.location.href=e;else{var o=x.indexOf(R.location.key),i=x.slice(0,-1===o?0:o+1);i.push(a.key),x=i,v({action:"PUSH",location:a})}else window.location.href=e}})},replace:function(t,e){var i="REPLACE",a=L(t,e,h(),R.location);d.confirmTransitionTo(a,i,f,function(t){if(t){var e=P(a),n=a.key,r=a.state;if(u)if(c.replaceState({key:n,state:r},null,e),s)window.location.replace(e);else{var o=x.indexOf(R.location.key);-1!==o&&(x[o]=a.key),v({action:i,location:a})}else window.location.replace(e)}})},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},block:function(t){void 0===t&&(t=!1);var e=d.setPrompt(t);return S||(E(1),S=!0),function(){return S&&(S=!1,E(-1)),e()}},listen:function(t){var e=d.appendListener(t);return E(1),function(){E(-1),e()}}};return R}var R="hashchange",B={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+w(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:w,decodePath:A},slash:{encodePath:A,decodePath:A}};function D(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function W(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,0<=e?e:0)+"#"+t)}function x(t){void 0===t&&(t={}),U||k(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),r=n.getUserConfirmation,a=void 0===r?F:r,o=n.hashType,i=void 0===o?"slash":o,c=t.basename?_(A(t.basename)):"",u=B[i],s=u.encodePath,f=u.decodePath;function l(){var t=f(D());return c&&(t=M(t,c)),L(t)}var p=$();function h(t){T(E,t),E.length=e.length,p.notifyListeners(E.location,E.action)}var d=!1,v=null;function y(){var t=D(),e=s(t);if(t!==e)W(e);else{var n=l(),r=E.location;if(!d&&S(r,n))return;if(v===j(n))return;v=null,function(e){if(d)d=!1,h();else{p.confirmTransitionTo(e,"POP",a,function(t){t?h({action:"POP",location:e}):function(t){var e=E.location,n=b.lastIndexOf(j(e));-1===n&&(n=0);var r=b.lastIndexOf(j(t));-1===r&&(r=0);var o=n-r;o&&(d=!0,x(o))}(e)})}}(n)}}var m=D(),g=s(m);m!==g&&W(g);var w=l(),b=[j(w)];function x(t){e.go(t)}var P=0;function O(t){1===(P+=t)&&1===t?window.addEventListener(R,y):0===P&&window.removeEventListener(R,y)}var C=!1;var E={length:e.length,action:"POP",location:w,createHref:function(t){return"#"+s(c+j(t))},push:function(t,e){var i=L(t,void 0,void 0,E.location);p.confirmTransitionTo(i,"PUSH",a,function(t){if(t){var e=j(i),n=s(c+e);if(D()!==n){v=e,function(t){window.location.hash=t}(n);var r=b.lastIndexOf(j(E.location)),o=b.slice(0,-1===r?0:r+1);o.push(e),b=o,h({action:"PUSH",location:i})}else h()}})},replace:function(t,e){var o="REPLACE",i=L(t,void 0,void 0,E.location);p.confirmTransitionTo(i,o,a,function(t){if(t){var e=j(i),n=s(c+e);D()!==n&&(v=e,W(n));var r=b.indexOf(j(E.location));-1!==r&&(b[r]=e),h({action:o,location:i})}})},go:x,goBack:function(){x(-1)},goForward:function(){x(1)},block:function(t){void 0===t&&(t=!1);var e=p.setPrompt(t);return C||(O(1),C=!0),function(){return C&&(C=!1,O(-1)),e()}},listen:function(t){var e=p.appendListener(t);return O(1),function(){O(-1),e()}}};return E}function O(t,e,n){return Math.min(Math.max(t,e),n)}var C=function(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e},E="__global_unique_id__",V=1073741823;function z(t,e){return et(Z(t,e))}var q=P.createContext||function(r,o){var t,e,i="__create-react-context-"+(u[E]=(u[E]||0)+1)+"__",n=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).emitter=function(n){var r=[];return{on:function(t){r.push(t)},off:function(e){r=r.filter(function(t){return t!==e})},get:function(){return n},set:function(t,e){n=t,r.forEach(function(t){return t(n,e)})}}}(t.props.value),t}C(t,e);var n=t.prototype;return n.getChildContext=function(){var t;return(t={})[i]=this.emitter,t},n.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var e,n=this.props.value,r=t.value;!function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}(n,r)?(e="function"==typeof o?o(n,r):V,0!==(e|=0)&&this.emitter.set(t.value,e)):e=0}},n.render=function(){return this.props.children},t}(c.Component);n.childContextTypes=((t={})[i]=d.object.isRequired,t);var a=function(t){function e(){var n;return(n=t.apply(this,arguments)||this).state={value:n.getValue()},n.onUpdate=function(t,e){0!=((0|n.observedBits)&e)&&n.setState({value:n.getValue()})},n}C(e,t);var n=e.prototype;return n.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?V:e},n.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?V:t},n.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},n.getValue=function(){return this.context[i]?this.context[i].get():r},n.render=function(){return function(t){return Array.isArray(t)?t[0]:t}(this.props.children)(this.state.value)},e}(c.Component);return a.contextTypes=((e={})[i]=d.object,e),{Provider:n,Consumer:a}},K=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},J=at,G=Z,Y=et,Q=it,X=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Z(t,e){for(var n,r,o=[],i=0,a=0,c="",u=e&&e.delimiter||"/";null!=(n=X.exec(t));){var s=n[0],f=n[1],l=n.index;if(c+=t.slice(a,l),a=l+s.length,f)c+=f[1];else{var p=t[a],h=n[2],d=n[3],v=n[4],y=n[5],m=n[6],g=n[7];c&&(o.push(c),c="");var w=null!=h&&null!=p&&p!==h,b="+"===m||"*"===m,x="?"===m||"*"===m,P=n[2]||u,O=v||y;o.push({name:d||i++,prefix:h||"",delimiter:P,optional:x,repeat:b,partial:w,asterisk:!!g,pattern:O?(r=O,r.replace(/([=!:$\/()])/g,"\\$1")):g?".*":"[^"+nt(P)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&o.push(c),o}function tt(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function et(f){for(var l=new Array(f.length),t=0;t<f.length;t++)"object"==typeof f[t]&&(l[t]=new RegExp("^(?:"+f[t].pattern+")$"));return function(t,e){for(var n="",r=t||{},o=(e||{}).pretty?tt:encodeURIComponent,i=0;i<f.length;i++){var a=f[i];if("string"!=typeof a){var c,u=r[a.name];if(null==u){if(a.optional){a.partial&&(n+=a.prefix);continue}throw new TypeError('Expected "'+a.name+'" to be defined')}if(K(u)){if(!a.repeat)throw new TypeError('Expected "'+a.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(a.optional)continue;throw new TypeError('Expected "'+a.name+'" to not be empty')}for(var s=0;s<u.length;s++){if(c=o(u[s]),!l[i].test(c))throw new TypeError('Expected all "'+a.name+'" to match "'+a.pattern+'", but received `'+JSON.stringify(c)+"`");n+=(0===s?a.prefix:a.delimiter)+c}}else{if(c=a.asterisk?encodeURI(u).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):o(u),!l[i].test(c))throw new TypeError('Expected "'+a.name+'" to match "'+a.pattern+'", but received "'+c+'"');n+=a.prefix+c}}else n+=a}return n}}function nt(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function rt(t,e){return t.keys=e,t}function ot(t){return t.sensitive?"":"i"}function it(t,e,n){K(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var c=t[a];if("string"==typeof c)i+=nt(c);else{var u=nt(c.prefix),s="(?:"+c.pattern+")";e.push(c),c.repeat&&(s+="(?:"+u+s+")*"),i+=s=c.optional?c.partial?u+"("+s+")?":"(?:"+u+"("+s+"))?":u+"("+s+")"}}var f=nt(n.delimiter||"/"),l=i.slice(-f.length)===f;return r||(i=(l?i.slice(0,-f.length):i)+"(?:"+f+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+f+"|$)",rt(new RegExp("^"+i,ot(n)),e)}function at(t,e,n){return K(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return rt(t,e)}(t,e):K(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(at(t[o],e,n).source);return rt(new RegExp("(?:"+r.join("|")+")",ot(n)),e)}(t,e,n):function(t,e,n){return it(Z(t,n),e,n)}(t,e,n)}function ct(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}J.parse=G,J.compile=z,J.tokensToFunction=Y,J.tokensToRegExp=Q;var ut={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},st={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ft={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},lt={};function pt(t){return a.isMemo(t)?ft:lt[t.$$typeof]||ut}lt[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var ht=Object.defineProperty,dt=Object.getOwnPropertyNames,vt=Object.getOwnPropertySymbols,yt=Object.getOwnPropertyDescriptor,mt=Object.getPrototypeOf,gt=Object.prototype;var wt=function t(e,n,r){if("string"==typeof n)return e;if(gt){var o=mt(n);o&&o!==gt&&t(e,o,r)}var i=dt(n);vt&&(i=i.concat(vt(n)));for(var a=pt(e),c=pt(n),u=0;u<i.length;++u){var s=i[u];if(!(st[s]||r&&r[s]||c&&c[s]||a&&a[s])){var f=yt(n,s);try{ht(e,s,f)}catch(t){}}}return e},bt=function(t){var e=q();return e.displayName=t,e}("Router"),xt=function(n){function t(t){var e;return(e=n.call(this,t)||this).state={location:t.history.location},e._isMounted=!1,e._pendingLocation=null,t.staticContext||(e.unlisten=t.history.listen(function(t){e._isMounted?e.setState({location:t}):e._pendingLocation=t})),e}r(t,n),t.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var e=t.prototype;return e.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},e.componentWillUnmount=function(){this.unlisten&&this.unlisten()},e.render=function(){return P.createElement(bt.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(P.Component),Pt=function(o){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))||this).history=function(t){void 0===t&&(t={});var e=t,o=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,i=e.initialIndex,a=void 0===i?0:i,c=e.keyLength,u=void 0===c?6:c,s=$();function f(t){T(y,t),y.length=y.entries.length,s.notifyListeners(y.location,y.action)}function l(){return Math.random().toString(36).substr(2,u)}var p=O(a,0,r.length-1),h=r.map(function(t){return L(t,void 0,"string"==typeof t?l():t.key||l())}),d=j;function v(t){var e=O(y.index+t,0,y.entries.length-1),n=y.entries[e];s.confirmTransitionTo(n,"POP",o,function(t){t?f({action:"POP",location:n,index:e}):f()})}var y={length:h.length,action:"POP",location:h[p],index:p,entries:h,createHref:d,push:function(t,e){var r=L(t,e,l(),y.location);s.confirmTransitionTo(r,"PUSH",o,function(t){if(t){var e=y.index+1,n=y.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),f({action:"PUSH",location:r,index:e,entries:n})}})},replace:function(t,e){var n="REPLACE",r=L(t,e,l(),y.location);s.confirmTransitionTo(r,n,o,function(t){t&&(y.entries[y.index]=r,f({action:n,location:r}))})},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(t){var e=y.index+t;return 0<=e&&e<y.entries.length},block:function(t){return void 0===t&&(t=!1),s.setPrompt(t)},listen:function(t){return s.appendListener(t)}};return y}(t.props),t}return r(t,o),t.prototype.render=function(){return P.createElement(xt,{history:this.history,children:this.props.children})},t}(P.Component),Ot=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(P.Component);var Ct={},Et=1e4,St=0;function Rt(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(Ct[t])return Ct[t];var e=J.compile(t);return St<Et&&(Ct[t]=e,St++),e}(t)(e,{pretty:!0})}var Tt={},kt=1e4,At=0;function Mt(s,t){void 0===t&&(t={}),"string"!=typeof t&&!Array.isArray(t)||(t={path:t});var e=t,n=e.path,r=e.exact,f=void 0!==r&&r,o=e.strict,l=void 0!==o&&o,i=e.sensitive,p=void 0!==i&&i;return[].concat(n).reduce(function(t,e){if(!e)return null;if(t)return t;var n=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=Tt[n]||(Tt[n]={});if(r[t])return r[t];var o=[],i={regexp:J(t,o,e),keys:o};return At<kt&&(r[t]=i,At++),i}(e,{end:f,strict:l,sensitive:p}),r=n.regexp,o=n.keys,i=r.exec(s);if(!i)return null;var a=i[0],c=i.slice(1),u=s===a;return f&&!u?null:{path:e,url:"/"===e&&""===a?"/":a,isExact:u,params:o.reduce(function(t,e,n){return t[e.name]=c[n],t},{})}},null)}var _t=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var c=this;return P.createElement(bt.Consumer,null,function(t){t||k(!1);var e=c.props.location||t.location,n=T({},t,{location:e,match:c.props.computedMatch?c.props.computedMatch:c.props.path?Mt(e.pathname,c.props):t.match}),r=c.props,o=r.children,i=r.component,a=r.render;return Array.isArray(o)&&0===o.length&&(o=null),P.createElement(bt.Provider,{value:n},n.match?o?"function"==typeof o?o(n):o:i?P.createElement(i,n):a?a(n):null:"function"==typeof o?o(n):null)})},e}(P.Component);function jt(t){return"/"===t.charAt(0)?t:"/"+t}function Lt(t){return"string"==typeof t?t:j(t)}function $t(){return function(){k(!1)}}function Ut(){}var Ft=function(o){function t(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).handlePush=function(t){return e.navigateTo(t,"PUSH")},e.handleReplace=function(t){return e.navigateTo(t,"REPLACE")},e.handleListen=function(){return Ut},e.handleBlock=function(){return Ut},e}r(t,o);var e=t.prototype;return e.navigateTo=function(t,e){var n=this.props,r=n.basename,o=void 0===r?"":r,i=n.context,a=void 0===i?{}:i;a.action=e,a.location=function(t,e){return t?T({},e,{pathname:jt(t)+e.pathname}):e}(o,L(t)),a.url=Lt(a.location)},e.render=function(){var t=this.props,e=t.basename,n=void 0===e?"":e,r=t.context,o=void 0===r?{}:r,i=t.location,a=void 0===i?"/":i,c=ct(t,["basename","context","location"]),u={createHref:function(t){return jt(n+Lt(t))},action:"POP",location:function(t,e){if(!t)return e;var n=jt(t);return 0!==e.pathname.indexOf(n)?e:T({},e,{pathname:e.pathname.substr(n.length)})}(n,L(a)),push:this.handlePush,replace:this.handleReplace,go:$t(),goBack:$t(),goForward:$t(),listen:this.handleListen,block:this.handleBlock};return P.createElement(xt,T({},c,{history:u,staticContext:o}))},t}(P.Component),Nt=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var t=this;return P.createElement(bt.Consumer,null,function(n){n||k(!1);var r,o,i=t.props.location||n.location;return P.Children.forEach(t.props.children,function(t){if(null==o&&P.isValidElement(t)){var e=(r=t).props.path||t.props.from;o=e?Mt(i.pathname,T({},t.props,{path:e})):n.match}}),o?P.cloneElement(r,{location:i,computedMatch:o}):null})},e}(P.Component);var It=P.useContext;function Ht(){return It(bt).location}function Bt(t,e){return"function"==typeof t?t(e):t}function Dt(t,e){return"string"==typeof t?L(t,null,null,e):t}var Wt=function(o){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))||this).history=b(t.props),t}return r(t,o),t.prototype.render=function(){return P.createElement(xt,{history:this.history,children:this.props.children})},t}(P.Component),Vt=function(o){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))||this).history=x(t.props),t}return r(t,o),t.prototype.render=function(){return P.createElement(xt,{history:this.history,children:this.props.children})},t}(P.Component),zt=P.forwardRef;void 0===zt&&(zt=function(t){return t});var qt=zt(function(t,e){var n=t.innerRef,r=t.navigate,o=t.onClick,i=ct(t,["innerRef","navigate","onClick"]),a=i.target;return P.createElement("a",T({},i,{ref:e||n,onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(e)||(e.preventDefault(),r())}}))}),Kt=zt(function(t,o){var e=t.component,i=void 0===e?qt:e,a=t.replace,c=t.to,u=t.innerRef,s=ct(t,["component","replace","to","innerRef"]);return P.createElement(bt.Consumer,null,function(e){e||k(!1);var n=e.history,t=Dt(Bt(c,e.location),e.location),r=t?n.createHref(t):"";return P.createElement(i,T({},s,{ref:o||u,href:r,navigate:function(){var t=Bt(c,e.location);(a?n.replace:n.push)(t)}}))})}),Jt=P.forwardRef;void 0===Jt&&(Jt=function(t){return t});var Gt=Jt(function(t,s){var e=t["aria-current"],f=void 0===e?"page":e,n=t.activeClassName,l=void 0===n?"active":n,p=t.activeStyle,h=t.className,d=t.exact,v=t.isActive,y=t.location,m=t.strict,g=t.style,w=t.to,b=t.innerRef,x=ct(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return P.createElement(bt.Consumer,null,function(t){t||k(!1);var e=y||t.location,n=Dt(Bt(w,e),e),r=n.pathname,o=r&&r.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),i=o?Mt(e.pathname,{path:o,exact:d,strict:m}):null,a=!!(v?v(i,e):i),c=a?function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(function(t){return t}).join(" ")}(h,l):h,u=a?T({},g,{},p):g;return P.createElement(Kt,T({ref:s||b,"aria-current":a&&f||null,className:c,style:u,to:n},x))})});t.BrowserRouter=Wt,t.HashRouter=Vt,t.Link=Kt,t.MemoryRouter=Pt,t.NavLink=Gt,t.Prompt=function(t){var r=t.message,e=t.when,o=void 0===e||e;return P.createElement(bt.Consumer,null,function(t){if(t||k(!1),!o||t.staticContext)return null;var n=t.history.block;return P.createElement(Ot,{onMount:function(t){t.release=n(r)},onUpdate:function(t,e){e.message!==r&&(t.release(),t.release=n(r))},onUnmount:function(t){t.release()},message:r})})},t.Redirect=function(t){var i=t.computedMatch,a=t.to,e=t.push,c=void 0!==e&&e;return P.createElement(bt.Consumer,null,function(t){t||k(!1);var e=t.history,n=t.staticContext,r=c?e.push:e.replace,o=L(i?"string"==typeof a?Rt(a,i.params):T({},a,{pathname:Rt(a.pathname,i.params)}):a);return n?(r(o),null):P.createElement(Ot,{onMount:function(){r(o)},onUpdate:function(t,e){var n=L(e.to);S(n,T({},o,{key:n.key}))||r(o)},to:a})})},t.Route=_t,t.Router=xt,t.StaticRouter=Ft,t.Switch=Nt,t.__RouterContext=bt,t.generatePath=Rt,t.matchPath=Mt,t.useHistory=function(){return It(bt).history},t.useLocation=Ht,t.useParams=function(){return It(bt).match.params},t.useRouteMatch=function(t){return t?Mt(Ht().pathname,t):It(bt).match},t.withRouter=function(r){function t(t){var e=t.wrappedComponentRef,n=ct(t,["wrappedComponentRef"]);return P.createElement(bt.Consumer,null,function(t){return t||k(!1),P.createElement(r,T({},n,t,{ref:e}))})}var e="withRouter("+(r.displayName||r.name)+")";return t.displayName=e,t.WrappedComponent=r,wt(t,r)},Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=react-router-dom.min.js.map

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