Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-router

Package Overview
Dependencies
Maintainers
2
Versions
576
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router - npm Package Compare versions

Comparing version 4.4.0-beta.5 to 4.4.0-beta.6

8

cjs/react-router.js

@@ -8,9 +8,9 @@ 'use strict';

var createContext = _interopDefault(require('create-react-context'));
var warning = _interopDefault(require('warning'));
var warning = _interopDefault(require('tiny-warning'));
var React = _interopDefault(require('react'));
var PropTypes = _interopDefault(require('prop-types'));
var history = require('history');
var invariant = _interopDefault(require('invariant'));
var invariant = _interopDefault(require('tiny-invariant'));
var pathToRegexp = _interopDefault(require('path-to-regexp'));
var ReactIs = _interopDefault(require('react-is'));
var reactIs = require('react-is');
var hoistStatics = _interopDefault(require('hoist-non-react-statics'));

@@ -579,3 +579,3 @@

component: function component(props, propName) {
if (props[propName] && !ReactIs.isValidElementType(props[propName])) {
if (props[propName] && !reactIs.isValidElementType(props[propName])) {
return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component");

@@ -582,0 +582,0 @@ }

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

"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var createContext=_interopDefault(require("create-react-context"));require("warning");var React=_interopDefault(require("react")),PropTypes=_interopDefault(require("prop-types")),history=require("history"),invariant=_interopDefault(require("invariant")),pathToRegexp=_interopDefault(require("path-to-regexp"));require("react-is");var hoistStatics=_interopDefault(require("hoist-non-react-statics"));function _extends(){return(_extends=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}).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 n,o,r={},a=Object.keys(t);for(o=0;o<a.length;o++)n=a[o],0<=e.indexOf(n)||(r[n]=t[n]);return r}var context=createContext();function getContext(t,e){return{history:t.history,location:e.location,match:Router.computeRootMatch(e.location.pathname),staticContext:t.staticContext}}context.Provider.displayName="Router.Provider",context.Consumer.displayName="Router.Consumer";var Router=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}_inheritsLoose(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(){var t=getContext(this.props,this.state);return React.createElement(context.Provider,{children:this.props.children||null,value:t})},t}(React.Component);React.createContext||(Router.childContextTypes={router:PropTypes.object.isRequired},Router.prototype.getChildContext=function(){return{router:getContext(this.props,this.state)}});var MemoryRouter=function(r){function t(){for(var t,e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return(t=r.call.apply(r,[this].concat(n))||this).history=history.createMemoryHistory(t.props),t}return _inheritsLoose(t,r),t.prototype.render=function(){return React.createElement(Router,{history:this.history,children:this.props.children})},t}(React.Component),Lifecycle=function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(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}(React.Component);function Prompt(e){return React.createElement(context.Consumer,null,function(t){if(t||invariant(!1),!e.when||t.staticContext)return null;var n=t.history.block,o=e.message;return React.createElement(Lifecycle,{onMount:function(t){t.release=n(o)},onUpdate:function(t,e){e.message!==o&&(t.release(),t.release=n(o))},onUnmount:function(t){t.release()}})})}Prompt.defaultProps={when:!0};var cache={},cacheLimit=1e4,cacheCount=0;function compilePath(t){if(cache[t])return cache[t];var e=pathToRegexp.compile(t);return cacheCount<cacheLimit&&(cache[t]=e,cacheCount++),e}function generatePath(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:compilePath(t)(e,{pretty:!0})}function Redirect(e){return React.createElement(context.Consumer,null,function(t){t||invariant(!1);var n=e.push?t.history.push:t.history.replace,o=history.createLocation(e.computedMatch?"string"==typeof e.to?generatePath(e.to,e.computedMatch.params):_extends({},e.to,{pathname:generatePath(e.to.pathname,e.computedMatch.params)}):e.to);return t.staticContext?(n(o),null):React.createElement(Lifecycle,{onMount:function(){n(o)},onUpdate:function(t,e){history.locationsAreEqual(e.to,o)||n(o)},to:o})})}Redirect.defaultProps={push:!1};var cache$1={},cacheLimit$1=1e4,cacheCount$1=0;function compilePath$1(t,e){var n=""+e.end+e.strict+e.sensitive,o=cache$1[n]||(cache$1[n]={});if(o[t])return o[t];var r=[],a={regexp:pathToRegexp(t,r,e),keys:r};return cacheCount$1<cacheLimit$1&&(o[t]=a,cacheCount$1++),a}function matchPath(s,t){void 0===t&&(t={}),"string"==typeof t&&(t={path:t});var e=t,n=e.path,o=e.exact,p=void 0!==o&&o,r=e.strict,h=void 0!==r&&r,a=e.sensitive,l=void 0!==a&&a;return[].concat(n).reduce(function(t,e){if(t)return t;var n=compilePath$1(e,{end:p,strict:h,sensitive:l}),o=n.regexp,r=n.keys,a=o.exec(s);if(!a)return null;var i=a[0],c=a.slice(1),u=s===i;return p&&!u?null:{path:e,url:"/"===e&&""===i?"/":i,isExact:u,params:r.reduce(function(t,e,n){return t[e.name]=c[n],t},{})}},null)}function isEmptyChildren(t){return 0===React.Children.count(t)}function getContext$1(t,e){var n=t.location||e.location;return _extends({},e,{location:n,match:t.computedMatch?t.computedMatch:t.path?matchPath(n.pathname,t):e.match})}var Route=function(t){function e(){return t.apply(this,arguments)||this}return _inheritsLoose(e,t),e.prototype.render=function(){var i=this;return React.createElement(context.Consumer,null,function(t){t||invariant(!1);var e=getContext$1(i.props,t),n=i.props,o=n.children,r=n.component,a=n.render;return Array.isArray(o)&&0===o.length&&(o=null),"function"==typeof o&&void 0===(o=o(e))&&(o=null),React.createElement(context.Provider,{value:e},o&&!isEmptyChildren(o)?o:e.match?r?React.createElement(r,e):a?a(e):null:null)})},e}(React.Component);function addLeadingSlash(t){return"/"===t.charAt(0)?t:"/"+t}function addBasename(t,e){return t?_extends({},e,{pathname:addLeadingSlash(t)+e.pathname}):e}function stripBasename(t,e){if(!t)return e;var n=addLeadingSlash(t);return 0!==e.pathname.indexOf(n)?e:_extends({},e,{pathname:e.pathname.substr(n.length)})}function createURL(t){return"string"==typeof t?t:history.createPath(t)}function staticHandler(t){return function(){invariant(!1)}}function noop(){}React.createContext||(Route.contextTypes={router:PropTypes.object.isRequired},Route.childContextTypes={router:PropTypes.object.isRequired},Route.prototype.getChildContext=function(){this.context.router||invariant(!1);var t=this.context.router;return{router:getContext$1(this.props,t)}});var StaticRouter=function(o){function t(){for(var r,t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(r=o.call.apply(o,[this].concat(e))||this).createHref=function(t){return addLeadingSlash(r.props.basename+createURL(t))},r.handlePush=function(t){var e=r.props,n=e.basename,o=e.context;o.action="PUSH",o.location=addBasename(n,history.createLocation(t)),o.url=createURL(o.location)},r.handleReplace=function(t){var e=r.props,n=e.basename,o=e.context;o.action="REPLACE",o.location=addBasename(n,history.createLocation(t)),o.url=createURL(o.location)},r.handleListen=function(){return noop},r.handleBlock=function(){return noop},r}return _inheritsLoose(t,o),t.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),o=_objectWithoutPropertiesLoose(t,["basename","context","location"]),r={createHref:this.createHref,action:"POP",location:stripBasename(e,history.createLocation(n)),push:this.handlePush,replace:this.handleReplace,go:staticHandler("go"),goBack:staticHandler("goBack"),goForward:staticHandler("goForward"),listen:this.handleListen,block:this.handleBlock};return React.createElement(Router,_extends({},o,{history:r,staticContext:this.props.context||{}}))},t}(React.Component);StaticRouter.defaultProps={basename:"",location:"/"};var Switch=function(t){function e(){return t.apply(this,arguments)||this}return _inheritsLoose(e,t),e.prototype.render=function(){var t=this;return React.createElement(context.Consumer,null,function(n){n||invariant(!1);var o,r,a=t.props.location||n.location;return React.Children.forEach(t.props.children,function(t){if(null==r&&React.isValidElement(t)){var e=(o=t).props.path||t.props.from;r=e?matchPath(a.pathname,_extends({},t.props,{path:e})):n.match}}),r?React.cloneElement(o,{location:a,computedMatch:r}):null})},e}(React.Component);function withRouter(o){var t=function(t){var e=t.wrappedComponentRef,n=_objectWithoutPropertiesLoose(t,["wrappedComponentRef"]);return React.createElement(Route,{children:function(t){return React.createElement(o,_extends({},n,t,{ref:e}))}})};return t.displayName="withRouter("+(o.displayName||o.name)+")",t.WrappedComponent=o,hoistStatics(t,o)}exports.MemoryRouter=MemoryRouter,exports.Prompt=Prompt,exports.Redirect=Redirect,exports.Route=Route,exports.Router=Router,exports.StaticRouter=StaticRouter,exports.Switch=Switch,exports.generatePath=generatePath,exports.matchPath=matchPath,exports.withRouter=withRouter,exports.__RouterContext=context;
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var createContext=_interopDefault(require("create-react-context"));require("tiny-warning");var React=_interopDefault(require("react")),PropTypes=_interopDefault(require("prop-types")),history=require("history"),invariant=_interopDefault(require("tiny-invariant")),pathToRegexp=_interopDefault(require("path-to-regexp"));require("react-is");var hoistStatics=_interopDefault(require("hoist-non-react-statics"));function _extends(){return(_extends=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}).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 n,o,r={},a=Object.keys(t);for(o=0;o<a.length;o++)n=a[o],0<=e.indexOf(n)||(r[n]=t[n]);return r}var context=createContext();function getContext(t,e){return{history:t.history,location:e.location,match:Router.computeRootMatch(e.location.pathname),staticContext:t.staticContext}}context.Provider.displayName="Router.Provider",context.Consumer.displayName="Router.Consumer";var Router=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}_inheritsLoose(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(){var t=getContext(this.props,this.state);return React.createElement(context.Provider,{children:this.props.children||null,value:t})},t}(React.Component);React.createContext||(Router.childContextTypes={router:PropTypes.object.isRequired},Router.prototype.getChildContext=function(){return{router:getContext(this.props,this.state)}});var MemoryRouter=function(r){function t(){for(var t,e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return(t=r.call.apply(r,[this].concat(n))||this).history=history.createMemoryHistory(t.props),t}return _inheritsLoose(t,r),t.prototype.render=function(){return React.createElement(Router,{history:this.history,children:this.props.children})},t}(React.Component),Lifecycle=function(t){function e(){return t.apply(this,arguments)||this}_inheritsLoose(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}(React.Component);function Prompt(e){return React.createElement(context.Consumer,null,function(t){if(t||invariant(!1),!e.when||t.staticContext)return null;var n=t.history.block,o=e.message;return React.createElement(Lifecycle,{onMount:function(t){t.release=n(o)},onUpdate:function(t,e){e.message!==o&&(t.release(),t.release=n(o))},onUnmount:function(t){t.release()}})})}Prompt.defaultProps={when:!0};var cache={},cacheLimit=1e4,cacheCount=0;function compilePath(t){if(cache[t])return cache[t];var e=pathToRegexp.compile(t);return cacheCount<cacheLimit&&(cache[t]=e,cacheCount++),e}function generatePath(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:compilePath(t)(e,{pretty:!0})}function Redirect(e){return React.createElement(context.Consumer,null,function(t){t||invariant(!1);var n=e.push?t.history.push:t.history.replace,o=history.createLocation(e.computedMatch?"string"==typeof e.to?generatePath(e.to,e.computedMatch.params):_extends({},e.to,{pathname:generatePath(e.to.pathname,e.computedMatch.params)}):e.to);return t.staticContext?(n(o),null):React.createElement(Lifecycle,{onMount:function(){n(o)},onUpdate:function(t,e){history.locationsAreEqual(e.to,o)||n(o)},to:o})})}Redirect.defaultProps={push:!1};var cache$1={},cacheLimit$1=1e4,cacheCount$1=0;function compilePath$1(t,e){var n=""+e.end+e.strict+e.sensitive,o=cache$1[n]||(cache$1[n]={});if(o[t])return o[t];var r=[],a={regexp:pathToRegexp(t,r,e),keys:r};return cacheCount$1<cacheLimit$1&&(o[t]=a,cacheCount$1++),a}function matchPath(s,t){void 0===t&&(t={}),"string"==typeof t&&(t={path:t});var e=t,n=e.path,o=e.exact,p=void 0!==o&&o,r=e.strict,h=void 0!==r&&r,a=e.sensitive,l=void 0!==a&&a;return[].concat(n).reduce(function(t,e){if(t)return t;var n=compilePath$1(e,{end:p,strict:h,sensitive:l}),o=n.regexp,r=n.keys,a=o.exec(s);if(!a)return null;var i=a[0],c=a.slice(1),u=s===i;return p&&!u?null:{path:e,url:"/"===e&&""===i?"/":i,isExact:u,params:r.reduce(function(t,e,n){return t[e.name]=c[n],t},{})}},null)}function isEmptyChildren(t){return 0===React.Children.count(t)}function getContext$1(t,e){var n=t.location||e.location;return _extends({},e,{location:n,match:t.computedMatch?t.computedMatch:t.path?matchPath(n.pathname,t):e.match})}var Route=function(t){function e(){return t.apply(this,arguments)||this}return _inheritsLoose(e,t),e.prototype.render=function(){var i=this;return React.createElement(context.Consumer,null,function(t){t||invariant(!1);var e=getContext$1(i.props,t),n=i.props,o=n.children,r=n.component,a=n.render;return Array.isArray(o)&&0===o.length&&(o=null),"function"==typeof o&&void 0===(o=o(e))&&(o=null),React.createElement(context.Provider,{value:e},o&&!isEmptyChildren(o)?o:e.match?r?React.createElement(r,e):a?a(e):null:null)})},e}(React.Component);function addLeadingSlash(t){return"/"===t.charAt(0)?t:"/"+t}function addBasename(t,e){return t?_extends({},e,{pathname:addLeadingSlash(t)+e.pathname}):e}function stripBasename(t,e){if(!t)return e;var n=addLeadingSlash(t);return 0!==e.pathname.indexOf(n)?e:_extends({},e,{pathname:e.pathname.substr(n.length)})}function createURL(t){return"string"==typeof t?t:history.createPath(t)}function staticHandler(t){return function(){invariant(!1)}}function noop(){}React.createContext||(Route.contextTypes={router:PropTypes.object.isRequired},Route.childContextTypes={router:PropTypes.object.isRequired},Route.prototype.getChildContext=function(){this.context.router||invariant(!1);var t=this.context.router;return{router:getContext$1(this.props,t)}});var StaticRouter=function(o){function t(){for(var r,t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(r=o.call.apply(o,[this].concat(e))||this).createHref=function(t){return addLeadingSlash(r.props.basename+createURL(t))},r.handlePush=function(t){var e=r.props,n=e.basename,o=e.context;o.action="PUSH",o.location=addBasename(n,history.createLocation(t)),o.url=createURL(o.location)},r.handleReplace=function(t){var e=r.props,n=e.basename,o=e.context;o.action="REPLACE",o.location=addBasename(n,history.createLocation(t)),o.url=createURL(o.location)},r.handleListen=function(){return noop},r.handleBlock=function(){return noop},r}return _inheritsLoose(t,o),t.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),o=_objectWithoutPropertiesLoose(t,["basename","context","location"]),r={createHref:this.createHref,action:"POP",location:stripBasename(e,history.createLocation(n)),push:this.handlePush,replace:this.handleReplace,go:staticHandler("go"),goBack:staticHandler("goBack"),goForward:staticHandler("goForward"),listen:this.handleListen,block:this.handleBlock};return React.createElement(Router,_extends({},o,{history:r,staticContext:this.props.context||{}}))},t}(React.Component);StaticRouter.defaultProps={basename:"",location:"/"};var Switch=function(t){function e(){return t.apply(this,arguments)||this}return _inheritsLoose(e,t),e.prototype.render=function(){var t=this;return React.createElement(context.Consumer,null,function(n){n||invariant(!1);var o,r,a=t.props.location||n.location;return React.Children.forEach(t.props.children,function(t){if(null==r&&React.isValidElement(t)){var e=(o=t).props.path||t.props.from;r=e?matchPath(a.pathname,_extends({},t.props,{path:e})):n.match}}),r?React.cloneElement(o,{location:a,computedMatch:r}):null})},e}(React.Component);function withRouter(o){var t=function(t){var e=t.wrappedComponentRef,n=_objectWithoutPropertiesLoose(t,["wrappedComponentRef"]);return React.createElement(Route,{children:function(t){return React.createElement(o,_extends({},n,t,{ref:e}))}})};return t.displayName="withRouter("+(o.displayName||o.name)+")",t.WrappedComponent=o,hoistStatics(t,o)}exports.MemoryRouter=MemoryRouter,exports.Prompt=Prompt,exports.Redirect=Redirect,exports.Route=Route,exports.Router=Router,exports.StaticRouter=StaticRouter,exports.Switch=Switch,exports.generatePath=generatePath,exports.matchPath=matchPath,exports.withRouter=withRouter,exports.__RouterContext=context;
import createContext from 'create-react-context';
import warning from 'warning';
import warning from 'tiny-warning';
import _extends from '@babel/runtime/helpers/esm/extends';

@@ -8,5 +8,5 @@ import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';

import { createMemoryHistory, createLocation, locationsAreEqual, createPath } from 'history';
import invariant from 'invariant';
import invariant from 'tiny-invariant';
import pathToRegexp from 'path-to-regexp';
import ReactIs from 'react-is';
import { isValidElementType } from 'react-is';
import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';

@@ -537,3 +537,3 @@ import hoistStatics from 'hoist-non-react-statics';

component: function component(props, propName) {
if (props[propName] && !ReactIs.isValidElementType(props[propName])) {
if (props[propName] && !isValidElementType(props[propName])) {
return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component");

@@ -540,0 +540,0 @@ }

{
"name": "react-router",
"version": "4.4.0-beta.5",
"version": "4.4.0-beta.6",
"description": "Declarative routing for React",

@@ -46,7 +46,8 @@ "repository": "ReactTraining/react-router",

"hoist-non-react-statics": "^2.5.0",
"invariant": "^2.2.4",
"loose-envify": "^1.3.1",
"path-to-regexp": "^1.7.0",
"prop-types": "^15.6.2",
"react-is": "^16.5.2",
"warning": "^4.0.1"
"tiny-invariant": "^1.0.2",
"tiny-warning": "^1.0.0"
},

@@ -69,3 +70,2 @@ "devDependencies": {

"jest-circus": "^23.6.0",
"prop-types": "^15.6.2",
"raf": "^3.4.0",

@@ -95,3 +95,3 @@ "react": "^16.5.2",

],
"gitHead": "2686600f91e6b3231117ee4d4e2fdcddd30465c8"
"gitHead": "5ccb241cd59eae7a15de31c7babff6619378be39"
}

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t.ReactRouter={},t.React)}(this,function(t,h){"use strict";function i(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}h=h&&h.hasOwnProperty("default")?h.default:h;var e="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 r(t,e){return t(e={exports:{}},e.exports),e.exports}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,c=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 u(){}var d=r(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,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=u,n.PropTypes=n}()});function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function m(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 s="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};function x(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 P(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=b({},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){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],o=t&&m(t),i=e&&m(e),a=o||i;if(t&&m(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!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,p=r.length;0<=p;p--){var l=r[p];"."===l?y(r,p):".."===l?(y(r,p),s++):s&&(y(r,p),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&m(r[0])||r.unshift("");var f=r.join("/");return c&&"/"!==f.substr(-1)&&(f+="/"),f}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function p(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":s(e);if(t!==(void 0===r?"undefined":s(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)}"undefined"==typeof window||!window.document||window.document.createElement;function w(t,e,n){return Math.min(Math.max(t,e),n)}function l(t){void 0===t&&(t={});var i,r,e=t,o=e.getUserConfirmation,n=e.initialEntries,a=void 0===n?["/"]:n,c=e.initialIndex,u=void 0===c?0:c,s=e.keyLength,p=void 0===s?6:s,l=(i=null,r=[],{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)})}});function f(t){b(g,t),g.length=g.entries.length,l.notifyListeners(g.location,g.action)}function h(){return Math.random().toString(36).substr(2,p)}var d=w(u,0,a.length-1),m=a.map(function(t){return P(t,void 0,"string"==typeof t?h():t.key||h())}),y=x;function v(t){var e=w(g.index+t,0,g.entries.length-1),n=g.entries[e];l.confirmTransitionTo(n,"POP",o,function(t){t?f({action:"POP",location:n,index:e}):f()})}var g={length:m.length,action:"POP",location:m[d],index:d,entries:m,createHref:y,push:function(t,e){var r=P(t,e,h(),g.location);l.confirmTransitionTo(r,"PUSH",o,function(t){if(t){var e=g.index+1,n=g.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),f({action:"PUSH",location:r,index:e,entries:n})}})},replace:function(t,e){var n="REPLACE",r=P(t,e,h(),g.location);l.confirmTransitionTo(r,n,o,function(t){t&&(g.entries[g.index]=r,f({action:n,location:r}))})},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(t){var e=g.index+t;return 0<=e&&e<g.entries.length},block:function(t){return void 0===t&&(t=!1),l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return g}var f="__global_unique_id__",v=function(){return e[f]=(e[f]||0)+1};function g(t){return function(){return t}}var C=function(){};C.thatReturns=g,C.thatReturnsFalse=g(!1),C.thatReturnsTrue=g(!0),C.thatReturnsNull=g(null),C.thatReturnsThis=function(){return this},C.thatReturnsArgument=function(t){return t};var E=C,O=r(function(t,e){e.__esModule=!0;n(h);var c=n(d),u=n(v);n(E);function n(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(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 l(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)}var f=1073741823;e.default=function(t,a){var e,n,r="__create-react-context-"+(0,u.default)()+"__",o=function(c){function u(){var t,e,n,r;s(this,u);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return(t=e=p(this,c.call.apply(c,[this].concat(i)))).emitter=(n=e.props.value,r=[],{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)})}}),p(e,t)}return l(u,c),u.prototype.getChildContext=function(){var t;return(t={})[r]=this.emitter,t},u.prototype.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var e=this.props.value,n=t.value,r=void 0;((o=e)===(i=n)?0!==o||1/o==1/i:o!=o&&i!=i)?r=0:(r="function"==typeof a?a(e,n):f,0!=(r|=0)&&this.emitter.set(t.value,r))}var o,i},u.prototype.render=function(){return this.props.children},u}(h.Component);o.childContextTypes=((e={})[r]=c.default.object.isRequired,e);var i=function(i){function a(){var t,n;s(this,a);for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n=p(this,i.call.apply(i,[this].concat(r)))).state={value:n.getValue()},n.onUpdate=function(t,e){0!=((0|n.observedBits)&e)&&n.setState({value:n.getValue()})},p(n,t)}return l(a,i),a.prototype.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?f:e},a.prototype.componentDidMount=function(){this.context[r]&&this.context[r].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?f:t},a.prototype.componentWillUnmount=function(){this.context[r]&&this.context[r].off(this.onUpdate)},a.prototype.getValue=function(){return this.context[r]?this.context[r].get():t},a.prototype.render=function(){return t=this.props.children,(Array.isArray(t)?t[0]:t)(this.state.value);var t},a}(h.Component);return i.contextTypes=((n={})[r]=c.default.object,n),{Provider:o,Consumer:i}},t.exports=e.default});n(O);var R=n(r(function(t,e){e.__esModule=!0;var n=o(h),r=o(O);function o(t){return t&&t.__esModule?t:{default:t}}e.default=n.default.createContext||r.default,t.exports=e.default}))();function _(t,e){return{history:t.history,location:e.location,match:j.computeRootMatch(e.location.pathname),staticContext:t.staticContext}}R.Provider.displayName="Router.Provider",R.Consumer.displayName="Router.Consumer";var j=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}i(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(){var t=_(this.props,this.state);return h.createElement(R.Provider,{children:this.props.children||null,value:t})},t}(h.Component);h.createContext||(j.childContextTypes={router:d.object.isRequired},j.prototype.getChildContext=function(){return{router:_(this.props,this.state)}});var S=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=l(t.props),t}return i(t,o),t.prototype.render=function(){return h.createElement(j,{history:this.history,children:this.props.children})},t}(h.Component),M=function(t,e,n,r,o,i,a,c){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,c],p=0;(u=new Error(e.replace(/%s/g,function(){return s[p++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}},T=function(t){function e(){return t.apply(this,arguments)||this}i(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}(h.Component);function A(e){return h.createElement(R.Consumer,null,function(t){if(t||M(!1),!e.when||t.staticContext)return null;var n=t.history.block,r=e.message;return h.createElement(T,{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()}})})}A.defaultProps={when:!0};var k=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},U=G,$=B,F=function(t,e){return D(B(t,e))},L=D,I=J,N=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function B(t,e){for(var n,r,o=[],i=0,a=0,c="",u=e&&e.delimiter||"/";null!=(n=N.exec(t));){var s=n[0],p=n[1],l=n.index;if(c+=t.slice(a,l),a=l+s.length,p)c+=p[1];else{var f=t[a],h=n[2],d=n[3],m=n[4],y=n[5],v=n[6],g=n[7];c&&(o.push(c),c="");var b=null!=h&&null!=f&&f!==h,x="+"===v||"*"===v,P="?"===v||"*"===v,w=n[2]||u,C=m||y;o.push({name:d||i++,prefix:h||"",delimiter:w,optional:P,repeat:x,partial:b,asterisk:!!g,pattern:C?(r=C,r.replace(/([=!:$\/()])/g,"\\$1")):g?".*":"[^"+V(w)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&o.push(c),o}function q(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function D(p){for(var l=new Array(p.length),t=0;t<p.length;t++)"object"==typeof p[t]&&(l[t]=new RegExp("^(?:"+p[t].pattern+")$"));return function(t,e){for(var n="",r=t||{},o=(e||{}).pretty?q:encodeURIComponent,i=0;i<p.length;i++){var a=p[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 V(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function H(t,e){return t.keys=e,t}function W(t){return t.sensitive?"":"i"}function J(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+=V(c);else{var u=V(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 p=V(n.delimiter||"/"),l=i.slice(-p.length)===p;return r||(i=(l?i.slice(0,-p.length):i)+"(?:"+p+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+p+"|$)",H(new RegExp("^"+i,W(n)),e)}function G(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 H(t,e)}(t,e):k(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(G(t[o],e,n).source);return H(new RegExp("(?:"+r.join("|")+")",W(n)),e)}(t,e,n):(r=e,J(B(t,o=n),r,o));var r,o}U.parse=$,U.compile=F,U.tokensToFunction=L,U.tokensToRegExp=I;var Y={},z=1e4,K=0;function Q(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(Y[t])return Y[t];var e=U.compile(t);return K<z&&(Y[t]=e,K++),e}(t)(e,{pretty:!0})}function X(e){return h.createElement(R.Consumer,null,function(t){t||M(!1);var n=e.push?t.history.push:t.history.replace,r=P(e.computedMatch?"string"==typeof e.to?Q(e.to,e.computedMatch.params):b({},e.to,{pathname:Q(e.to.pathname,e.computedMatch.params)}):e.to);return t.staticContext?(n(r),null):h.createElement(T,{onMount:function(){n(r)},onUpdate:function(t,e){p(e.to,r)||n(r)},to:r})})}X.defaultProps={push:!1};var Z=r(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,p=n?Symbol.for("react.async_mode"):60111,l=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.placeholder"):60113;function h(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case p:case i:case c:case a:return t;default:switch(t=t&&t.$$typeof){case s:case l:case u:return t;default:return e}}case o:return e}}}e.typeOf=h,e.AsyncMode=p,e.ContextConsumer=s,e.ContextProvider=u,e.Element=r,e.ForwardRef=l,e.Fragment=i,e.Profiler=c,e.Portal=o,e.StrictMode=a,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===p||t===c||t===a||t===f||"object"==typeof t&&null!==t&&("function"==typeof t.then||t.$$typeof===u||t.$$typeof===s||t.$$typeof===l)},e.isAsyncMode=function(t){return h(t)===p},e.isContextConsumer=function(t){return h(t)===s},e.isContextProvider=function(t){return h(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return h(t)===l},e.isFragment=function(t){return h(t)===i},e.isProfiler=function(t){return h(t)===c},e.isPortal=function(t){return h(t)===o},e.isStrictMode=function(t){return h(t)===a}});n(Z);Z.typeOf,Z.AsyncMode,Z.ContextConsumer,Z.ContextProvider,Z.Element,Z.ForwardRef,Z.Fragment,Z.Profiler,Z.Portal,Z.StrictMode,Z.isValidElementType,Z.isAsyncMode,Z.isContextConsumer,Z.isContextProvider,Z.isElement,Z.isForwardRef,Z.isFragment,Z.isProfiler,Z.isPortal,Z.isStrictMode;var tt=r(function(t,e){});n(tt);tt.typeOf,tt.AsyncMode,tt.ContextConsumer,tt.ContextProvider,tt.Element,tt.ForwardRef,tt.Fragment,tt.Profiler,tt.Portal,tt.StrictMode,tt.isValidElementType,tt.isAsyncMode,tt.isContextConsumer,tt.isContextProvider,tt.isElement,tt.isForwardRef,tt.isFragment,tt.isProfiler,tt.isPortal,tt.isStrictMode,r(function(t){t.exports=Z});var et={},nt=1e4,rt=0;function ot(s,t){void 0===t&&(t={}),"string"==typeof t&&(t={path:t});var e=t,n=e.path,r=e.exact,p=void 0!==r&&r,o=e.strict,l=void 0!==o&&o,i=e.sensitive,f=void 0!==i&&i;return[].concat(n).reduce(function(t,e){if(t)return t;var n=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=et[n]||(et[n]={});if(r[t])return r[t];var o=[],i={regexp:U(t,o,e),keys:o};return rt<nt&&(r[t]=i,rt++),i}(e,{end:p,strict:l,sensitive:f}),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 p&&!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)}function it(t,e){var n=t.location||e.location;return b({},e,{location:n,match:t.computedMatch?t.computedMatch:t.path?ot(n.pathname,t):e.match})}var at=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(){var c=this;return h.createElement(R.Consumer,null,function(t){t||M(!1);var e,n=it(c.props,t),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(n))&&(o=null),h.createElement(R.Provider,{value:n},o&&(e=o,0!==h.Children.count(e))?o:n.match?i?h.createElement(i,n):a?a(n):null:null)})},e}(h.Component);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}function ut(t){return"/"===t.charAt(0)?t:"/"+t}function st(t,e){return t?b({},e,{pathname:ut(t)+e.pathname}):e}function pt(t){return"string"==typeof t?t:x(t)}function lt(t){return function(){M(!1)}}function ft(){}h.createContext||(at.contextTypes={router:d.object.isRequired},at.childContextTypes={router:d.object.isRequired},at.prototype.getChildContext=function(){this.context.router||M(!1);var t=this.context.router;return{router:it(this.props,t)}});var ht=function(r){function t(){for(var o,t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(o=r.call.apply(r,[this].concat(e))||this).createHref=function(t){return ut(o.props.basename+pt(t))},o.handlePush=function(t){var e=o.props,n=e.basename,r=e.context;r.action="PUSH",r.location=st(n,P(t)),r.url=pt(r.location)},o.handleReplace=function(t){var e=o.props,n=e.basename,r=e.context;r.action="REPLACE",r.location=st(n,P(t)),r.url=pt(r.location)},o.handleListen=function(){return ft},o.handleBlock=function(){return ft},o}return i(t,r),t.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),r=ct(t,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:function(t,e){if(!t)return e;var n=ut(t);return 0!==e.pathname.indexOf(n)?e:b({},e,{pathname:e.pathname.substr(n.length)})}(e,P(n)),push:this.handlePush,replace:this.handleReplace,go:lt(),goBack:lt(),goForward:lt(),listen:this.handleListen,block:this.handleBlock};return h.createElement(j,b({},r,{history:o,staticContext:this.props.context||{}}))},t}(h.Component);ht.defaultProps={basename:"",location:"/"};var dt=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(){var t=this;return h.createElement(R.Consumer,null,function(n){n||M(!1);var r,o,i=t.props.location||n.location;return h.Children.forEach(t.props.children,function(t){if(null==o&&h.isValidElement(t)){var e=(r=t).props.path||t.props.from;o=e?ot(i.pathname,b({},t.props,{path:e})):n.match}}),o?h.cloneElement(r,{location:i,computedMatch:o}):null})},e}(h.Component),mt={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vt=Object.defineProperty,gt=Object.getOwnPropertyNames,bt=Object.getOwnPropertySymbols,xt=Object.getOwnPropertyDescriptor,Pt=Object.getPrototypeOf,wt=Pt&&Pt(Object);var Ct=function t(e,n,r){if("string"==typeof n)return e;if(wt){var o=Pt(n);o&&o!==wt&&t(e,o,r)}var i=gt(n);bt&&(i=i.concat(bt(n)));for(var a=0;a<i.length;++a){var c=i[a];if(!(mt[c]||yt[c]||r&&r[c])){var u=xt(n,c);try{vt(e,c,u)}catch(t){}}}return e};t.MemoryRouter=S,t.Prompt=A,t.Redirect=X,t.Route=at,t.Router=j,t.StaticRouter=ht,t.Switch=dt,t.generatePath=Q,t.matchPath=ot,t.withRouter=function(r){var t=function(t){var e=t.wrappedComponentRef,n=ct(t,["wrappedComponentRef"]);return h.createElement(at,{children:function(t){return h.createElement(r,b({},n,t,{ref:e}))}})};return t.displayName="withRouter("+(r.displayName||r.name)+")",t.WrappedComponent=r,Ct(t,r)},t.__RouterContext=R,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.ReactRouter={},t.React)}(this,function(t,h){"use strict";function i(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}h=h&&h.hasOwnProperty("default")?h.default:h;var e="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 r(t,e){return t(e={exports:{}},e.exports),e.exports}var o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,c=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 u(){}var d=r(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,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=u,n.PropTypes=n}()});function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function y(t){return"/"===t.charAt(0)}function m(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 s="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 p="Invariant failed";function l(t,e){if(!t)throw new Error(p)}function x(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 P(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=b({},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){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],o=t&&y(t),i=e&&y(e),a=o||i;if(t&&y(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!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,p=r.length;0<=p;p--){var l=r[p];"."===l?m(r,p):".."===l?(m(r,p),s++):s&&(m(r,p),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&y(r[0])||r.unshift("");var f=r.join("/");return c&&"/"!==f.substr(-1)&&(f+="/"),f}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function f(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":s(e);if(t!==(void 0===r?"undefined":s(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)}"undefined"==typeof window||!window.document||window.document.createElement;function w(t,e,n){return Math.min(Math.max(t,e),n)}function v(t){void 0===t&&(t={});var i,r,e=t,o=e.getUserConfirmation,n=e.initialEntries,a=void 0===n?["/"]:n,c=e.initialIndex,u=void 0===c?0:c,s=e.keyLength,p=void 0===s?6:s,l=(i=null,r=[],{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)})}});function f(t){b(g,t),g.length=g.entries.length,l.notifyListeners(g.location,g.action)}function h(){return Math.random().toString(36).substr(2,p)}var d=w(u,0,a.length-1),y=a.map(function(t){return P(t,void 0,"string"==typeof t?h():t.key||h())}),m=x;function v(t){var e=w(g.index+t,0,g.entries.length-1),n=g.entries[e];l.confirmTransitionTo(n,"POP",o,function(t){t?f({action:"POP",location:n,index:e}):f()})}var g={length:y.length,action:"POP",location:y[d],index:d,entries:y,createHref:m,push:function(t,e){var r=P(t,e,h(),g.location);l.confirmTransitionTo(r,"PUSH",o,function(t){if(t){var e=g.index+1,n=g.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),f({action:"PUSH",location:r,index:e,entries:n})}})},replace:function(t,e){var n="REPLACE",r=P(t,e,h(),g.location);l.confirmTransitionTo(r,n,o,function(t){t&&(g.entries[g.index]=r,f({action:n,location:r}))})},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(t){var e=g.index+t;return 0<=e&&e<g.entries.length},block:function(t){return void 0===t&&(t=!1),l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return g}var g="__global_unique_id__",C=function(){return e[g]=(e[g]||0)+1};function E(t){return function(){return t}}var O=function(){};O.thatReturns=E,O.thatReturnsFalse=E(!1),O.thatReturnsTrue=E(!0),O.thatReturnsNull=E(null),O.thatReturnsThis=function(){return this},O.thatReturnsArgument=function(t){return t};var R=O,_=r(function(t,e){e.__esModule=!0;n(h);var c=n(d),u=n(C);n(R);function n(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(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 l(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)}var f=1073741823;e.default=function(t,a){var e,n,r="__create-react-context-"+(0,u.default)()+"__",o=function(c){function u(){var t,e,n,r;s(this,u);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return(t=e=p(this,c.call.apply(c,[this].concat(i)))).emitter=(n=e.props.value,r=[],{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)})}}),p(e,t)}return l(u,c),u.prototype.getChildContext=function(){var t;return(t={})[r]=this.emitter,t},u.prototype.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var e=this.props.value,n=t.value,r=void 0;((o=e)===(i=n)?0!==o||1/o==1/i:o!=o&&i!=i)?r=0:(r="function"==typeof a?a(e,n):f,0!=(r|=0)&&this.emitter.set(t.value,r))}var o,i},u.prototype.render=function(){return this.props.children},u}(h.Component);o.childContextTypes=((e={})[r]=c.default.object.isRequired,e);var i=function(i){function a(){var t,n;s(this,a);for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n=p(this,i.call.apply(i,[this].concat(r)))).state={value:n.getValue()},n.onUpdate=function(t,e){0!=((0|n.observedBits)&e)&&n.setState({value:n.getValue()})},p(n,t)}return l(a,i),a.prototype.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?f:e},a.prototype.componentDidMount=function(){this.context[r]&&this.context[r].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?f:t},a.prototype.componentWillUnmount=function(){this.context[r]&&this.context[r].off(this.onUpdate)},a.prototype.getValue=function(){return this.context[r]?this.context[r].get():t},a.prototype.render=function(){return t=this.props.children,(Array.isArray(t)?t[0]:t)(this.state.value);var t},a}(h.Component);return i.contextTypes=((n={})[r]=c.default.object,n),{Provider:o,Consumer:i}},t.exports=e.default});n(_);var j=n(r(function(t,e){e.__esModule=!0;var n=o(h),r=o(_);function o(t){return t&&t.__esModule?t:{default:t}}e.default=n.default.createContext||r.default,t.exports=e.default}))();function S(t,e){return{history:t.history,location:e.location,match:M.computeRootMatch(e.location.pathname),staticContext:t.staticContext}}j.Provider.displayName="Router.Provider",j.Consumer.displayName="Router.Consumer";var M=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}i(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(){var t=S(this.props,this.state);return h.createElement(j.Provider,{children:this.props.children||null,value:t})},t}(h.Component);h.createContext||(M.childContextTypes={router:d.object.isRequired},M.prototype.getChildContext=function(){return{router:S(this.props,this.state)}});var T=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=v(t.props),t}return i(t,o),t.prototype.render=function(){return h.createElement(M,{history:this.history,children:this.props.children})},t}(h.Component),A=function(t){function e(){return t.apply(this,arguments)||this}i(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}(h.Component);function k(e){return h.createElement(j.Consumer,null,function(t){if(t||l(!1),!e.when||t.staticContext)return null;var n=t.history.block,r=e.message;return h.createElement(A,{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()}})})}k.defaultProps={when:!0};var U=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},$=Y,F=q,L=function(t,e){return V(q(t,e))},I=V,N=G,B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function q(t,e){for(var n,r,o=[],i=0,a=0,c="",u=e&&e.delimiter||"/";null!=(n=B.exec(t));){var s=n[0],p=n[1],l=n.index;if(c+=t.slice(a,l),a=l+s.length,p)c+=p[1];else{var f=t[a],h=n[2],d=n[3],y=n[4],m=n[5],v=n[6],g=n[7];c&&(o.push(c),c="");var b=null!=h&&null!=f&&f!==h,x="+"===v||"*"===v,P="?"===v||"*"===v,w=n[2]||u,C=y||m;o.push({name:d||i++,prefix:h||"",delimiter:w,optional:P,repeat:x,partial:b,asterisk:!!g,pattern:C?(r=C,r.replace(/([=!:$\/()])/g,"\\$1")):g?".*":"[^"+H(w)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&o.push(c),o}function D(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function V(p){for(var l=new Array(p.length),t=0;t<p.length;t++)"object"==typeof p[t]&&(l[t]=new RegExp("^(?:"+p[t].pattern+")$"));return function(t,e){for(var n="",r=t||{},o=(e||{}).pretty?D:encodeURIComponent,i=0;i<p.length;i++){var a=p[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(U(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 H(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function W(t,e){return t.keys=e,t}function J(t){return t.sensitive?"":"i"}function G(t,e,n){U(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+=H(c);else{var u=H(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 p=H(n.delimiter||"/"),l=i.slice(-p.length)===p;return r||(i=(l?i.slice(0,-p.length):i)+"(?:"+p+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+p+"|$)",W(new RegExp("^"+i,J(n)),e)}function Y(t,e,n){return U(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 W(t,e)}(t,e):U(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(Y(t[o],e,n).source);return W(new RegExp("(?:"+r.join("|")+")",J(n)),e)}(t,e,n):(r=e,G(q(t,o=n),r,o));var r,o}$.parse=F,$.compile=L,$.tokensToFunction=I,$.tokensToRegExp=N;var z={},K=1e4,Q=0;function X(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(z[t])return z[t];var e=$.compile(t);return Q<K&&(z[t]=e,Q++),e}(t)(e,{pretty:!0})}function Z(e){return h.createElement(j.Consumer,null,function(t){t||l(!1);var n=e.push?t.history.push:t.history.replace,r=P(e.computedMatch?"string"==typeof e.to?X(e.to,e.computedMatch.params):b({},e.to,{pathname:X(e.to.pathname,e.computedMatch.params)}):e.to);return t.staticContext?(n(r),null):h.createElement(A,{onMount:function(){n(r)},onUpdate:function(t,e){f(e.to,r)||n(r)},to:r})})}Z.defaultProps={push:!1};var tt=r(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,p=n?Symbol.for("react.async_mode"):60111,l=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.placeholder"):60113;function h(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case p:case i:case c:case a:return t;default:switch(t=t&&t.$$typeof){case s:case l:case u:return t;default:return e}}case o:return e}}}e.typeOf=h,e.AsyncMode=p,e.ContextConsumer=s,e.ContextProvider=u,e.Element=r,e.ForwardRef=l,e.Fragment=i,e.Profiler=c,e.Portal=o,e.StrictMode=a,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===p||t===c||t===a||t===f||"object"==typeof t&&null!==t&&("function"==typeof t.then||t.$$typeof===u||t.$$typeof===s||t.$$typeof===l)},e.isAsyncMode=function(t){return h(t)===p},e.isContextConsumer=function(t){return h(t)===s},e.isContextProvider=function(t){return h(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return h(t)===l},e.isFragment=function(t){return h(t)===i},e.isProfiler=function(t){return h(t)===c},e.isPortal=function(t){return h(t)===o},e.isStrictMode=function(t){return h(t)===a}});n(tt);tt.typeOf,tt.AsyncMode,tt.ContextConsumer,tt.ContextProvider,tt.Element,tt.ForwardRef,tt.Fragment,tt.Profiler,tt.Portal,tt.StrictMode,tt.isValidElementType,tt.isAsyncMode,tt.isContextConsumer,tt.isContextProvider,tt.isElement,tt.isForwardRef,tt.isFragment,tt.isProfiler,tt.isPortal,tt.isStrictMode;var et=r(function(t,e){});n(et);et.typeOf,et.AsyncMode,et.ContextConsumer,et.ContextProvider,et.Element,et.ForwardRef,et.Fragment,et.Profiler,et.Portal,et.StrictMode,et.isValidElementType,et.isAsyncMode,et.isContextConsumer,et.isContextProvider,et.isElement,et.isForwardRef,et.isFragment,et.isProfiler,et.isPortal,et.isStrictMode,r(function(t){t.exports=tt}).isValidElementType;var nt={},rt=1e4,ot=0;function it(s,t){void 0===t&&(t={}),"string"==typeof t&&(t={path:t});var e=t,n=e.path,r=e.exact,p=void 0!==r&&r,o=e.strict,l=void 0!==o&&o,i=e.sensitive,f=void 0!==i&&i;return[].concat(n).reduce(function(t,e){if(t)return t;var n=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=nt[n]||(nt[n]={});if(r[t])return r[t];var o=[],i={regexp:$(t,o,e),keys:o};return ot<rt&&(r[t]=i,ot++),i}(e,{end:p,strict:l,sensitive:f}),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 p&&!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)}function at(t,e){var n=t.location||e.location;return b({},e,{location:n,match:t.computedMatch?t.computedMatch:t.path?it(n.pathname,t):e.match})}var ct=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(){var c=this;return h.createElement(j.Consumer,null,function(t){t||l(!1);var e,n=at(c.props,t),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(n))&&(o=null),h.createElement(j.Provider,{value:n},o&&(e=o,0!==h.Children.count(e))?o:n.match?i?h.createElement(i,n):a?a(n):null:null)})},e}(h.Component);function ut(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}function st(t){return"/"===t.charAt(0)?t:"/"+t}function pt(t,e){return t?b({},e,{pathname:st(t)+e.pathname}):e}function lt(t){return"string"==typeof t?t:x(t)}function ft(t){return function(){l(!1)}}function ht(){}h.createContext||(ct.contextTypes={router:d.object.isRequired},ct.childContextTypes={router:d.object.isRequired},ct.prototype.getChildContext=function(){this.context.router||l(!1);var t=this.context.router;return{router:at(this.props,t)}});var dt=function(r){function t(){for(var o,t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(o=r.call.apply(r,[this].concat(e))||this).createHref=function(t){return st(o.props.basename+lt(t))},o.handlePush=function(t){var e=o.props,n=e.basename,r=e.context;r.action="PUSH",r.location=pt(n,P(t)),r.url=lt(r.location)},o.handleReplace=function(t){var e=o.props,n=e.basename,r=e.context;r.action="REPLACE",r.location=pt(n,P(t)),r.url=lt(r.location)},o.handleListen=function(){return ht},o.handleBlock=function(){return ht},o}return i(t,r),t.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),r=ut(t,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:function(t,e){if(!t)return e;var n=st(t);return 0!==e.pathname.indexOf(n)?e:b({},e,{pathname:e.pathname.substr(n.length)})}(e,P(n)),push:this.handlePush,replace:this.handleReplace,go:ft(),goBack:ft(),goForward:ft(),listen:this.handleListen,block:this.handleBlock};return h.createElement(M,b({},r,{history:o,staticContext:this.props.context||{}}))},t}(h.Component);dt.defaultProps={basename:"",location:"/"};var yt=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(){var t=this;return h.createElement(j.Consumer,null,function(n){n||l(!1);var r,o,i=t.props.location||n.location;return h.Children.forEach(t.props.children,function(t){if(null==o&&h.isValidElement(t)){var e=(r=t).props.path||t.props.from;o=e?it(i.pathname,b({},t.props,{path:e})):n.match}}),o?h.cloneElement(r,{location:i,computedMatch:o}):null})},e}(h.Component),mt={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},vt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},gt=Object.defineProperty,bt=Object.getOwnPropertyNames,xt=Object.getOwnPropertySymbols,Pt=Object.getOwnPropertyDescriptor,wt=Object.getPrototypeOf,Ct=wt&&wt(Object);var Et=function t(e,n,r){if("string"==typeof n)return e;if(Ct){var o=wt(n);o&&o!==Ct&&t(e,o,r)}var i=bt(n);xt&&(i=i.concat(xt(n)));for(var a=0;a<i.length;++a){var c=i[a];if(!(mt[c]||vt[c]||r&&r[c])){var u=Pt(n,c);try{gt(e,c,u)}catch(t){}}}return e};t.MemoryRouter=T,t.Prompt=k,t.Redirect=Z,t.Route=ct,t.Router=M,t.StaticRouter=dt,t.Switch=yt,t.generatePath=X,t.matchPath=it,t.withRouter=function(r){var t=function(t){var e=t.wrappedComponentRef,n=ut(t,["wrappedComponentRef"]);return h.createElement(ct,{children:function(t){return h.createElement(r,b({},n,t,{ref:e}))}})};return t.displayName="withRouter("+(r.displayName||r.name)+")",t.WrappedComponent=r,Et(t,r)},t.__RouterContext=j,Object.defineProperty(t,"__esModule",{value:!0})});

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc