"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"));function matchRoutes(e,r,o){return void 0===o&&(o=[]),e.some(function(e){var t=e.path?reactRouter.matchPath(r,e):o.length?o[o.length-1].match:reactRouter.Router.computeRootMatch(r);return t&&(o.push({route:e,match:t}),e.routes&&matchRoutes(e.routes,r,o)),t}),o}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t