!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,e){"use strict";function n(t,e){return e={exports:{}},t(e,e.exports),e.exports}function r(t){return function(){return t}}function o(t){return"/"===t.charAt(0)}function i(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],a=t&&o(t),c=e&&o(e),u=a||c;if(t&&o(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var p=r[r.length-1];s="."===p||".."===p||""===p}else s=!1;for(var h=0,l=r.length;l>=0;l--){var f=r[l];"."===f?i(r,l):".."===f?(i(r,l),h++):h&&(i(r,l),h--)}if(!u)for(;h--;h)r.unshift("..");!u||""===r[0]||r[0]&&o(r[0])||r.unshift("");var d=r.join("/");return s&&"/"!==d.substr(-1)&&(d+="/"),d}function c(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,n){return c(t,e[n])});var n=void 0===t?"undefined":U(t);if(n!==(void 0===e?"undefined":U(e)))return!1;if("object"===n){var r=t.valueOf(),o=e.valueOf();if(r!==t||o!==e)return c(r,o);var i=Object.keys(t),a=Object.keys(e);return i.length===a.length&&i.every(function(n){return c(t[n],e[n])})}return!1}function u(t,e){for(var n,r=[],o=0,i=0,a="",c=e&&e.delimiter||"/";null!=(n=ct.exec(t));){var u=n[0],s=n[1],p=n.index;if(a+=t.slice(i,p),i=p+u.length,s)a+=s[1];else{var h=t[i],d=n[2],y=n[3],m=n[4],v=n[5],g=n[6],b=n[7];a&&(r.push(a),a="");var x=null!=d&&null!=h&&h!==d,R="+"===g||"*"===g,O="?"===g||"*"===g,P=n[2]||c,w=m||v;r.push({name:y||o++,prefix:d||"",delimiter:P,optional:O,repeat:R,partial:x,asterisk:!!b,pattern:w?f(w):b?".*":"[^"+l(P)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function s(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function p(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function h(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var o="",i=n||{},a=(r||{}).pretty?s:encodeURIComponent,c=0;c<t.length;c++){var u=t[c];if("string"!=typeof u){var h,l=i[u.name];if(null==l){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(nt(l)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<l.length;f++){if(h=a(l[f]),!e[c].test(h))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(h)+"`");o+=(0===f?u.prefix:u.delimiter)+h}}else{if(h=u.asterisk?p(l):a(l),!e[c].test(h))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+h+'"');o+=u.prefix+h}}else o+=u}return o}}function l(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function f(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function d(t,e){return t.keys=e,t}function y(t){return t.sensitive?"":"i"}function m(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 d(t,e)}function v(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(x(t[o],e,n).source);return d(new RegExp("(?:"+r.join("|")+")",y(n)),e)}function g(t,e,n){return b(u(t,n),e,n)}function b(t,e,n){nt(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+=l(c);else{var u=l(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=l(n.delimiter||"/"),h=i.slice(-p.length)===p;return r||(i=(h?i.slice(0,-p.length):i)+"(?:"+p+"(?=$))?"),i+=o?"$":r&&h?"":"(?="+p+"|$)",d(new RegExp("^"+i,y(n)),e)}function x(t,e,n){return nt(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?m(t,e):nt(t)?v(t,e,n):g(t,e,n)}e=e&&e.hasOwnProperty("default")?e.default:e;var R=function(){},O=R,P=function(){};P.thatReturns=r,P.thatReturnsFalse=r(!1),P.thatReturnsTrue=r(!0),P.thatReturnsNull=r(null),P.thatReturnsThis=function(){return this},P.thatReturnsArgument=function(t){return t};var w=P,E=function(t){},j=function(t,e,n,r,o,i,a,c){if(E(e),!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}},C="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",T=function(){function t(t,e,n,r,o,i){i!==C&&j(!1,"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")}function e(){return t}t.isRequired=t;var n={array: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};return n.checkPropTypes=w,n.PropTypes=n,n},k=n(function(t){t.exports=T()}),A=n(function(t,e){e.__esModule=!0;e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t};var n=e.hasBasename=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)};e.stripBasename=function(t,e){return n(t,e)?t.substr(e.length):t},e.stripTrailingSlash=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},e.parsePath=function(t){var e=t||"/",n="",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}},e.createPath=function(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}}),S=A.addLeadingSlash,M=A.parsePath,_=A.createPath,L=Object.freeze({default:a}),U="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},q=Object.freeze({default:c}),I=L&&a||L,W=q&&c||q,$=n(function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.locationsAreEqual=e.createLocation=void 0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=n(I),i=n(W);e.createLocation=function(t,e,n,i){var a=void 0;"string"==typeof t?(a=(0,A.parsePath)(t)).state=e:(void 0===(a=r({},t)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==e&&void 0===a.state&&(a.state=e));try{a.pathname=decodeURI(a.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(a.key=n),i?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=(0,o.default)(a.pathname,i.pathname)):a.pathname=i.pathname:a.pathname||(a.pathname="/"),a},e.locationsAreEqual=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&(0,i.default)(t.state,e.state)}}),H=n(function(t,e){e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(O);e.default=function(){var t=null,e=[];return{setPrompt:function(e){return(0,n.default)(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,r,o,i){if(null!=t){var a="function"==typeof t?t(e,r):t;"string"==typeof a?"function"==typeof o?o(a,i):((0,n.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},appendListener:function(t){var n=!0,r=function(){n&&t.apply(void 0,arguments)};return e.push(r),function(){n=!1,e=e.filter(function(t){return t!==r})}},notifyListeners:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach(function(t){return t.apply(void 0,n)})}}}}),N=function(t){return t&&t.__esModule?t.default:t}(n(function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=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},i=n(O),a=n(H),c=function(t,e,n){return Math.min(Math.max(t,e),n)};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,u=void 0===n?["/"]:n,s=t.initialIndex,p=void 0===s?0:s,h=t.keyLength,l=void 0===h?6:h,f=(0,a.default)(),d=function(t){o(x,t),x.length=x.entries.length,f.notifyListeners(x.location,x.action)},y=function(){return Math.random().toString(36).substr(2,l)},m=c(p,0,u.length-1),v=u.map(function(t){return"string"==typeof t?(0,$.createLocation)(t,void 0,y()):(0,$.createLocation)(t,void 0,t.key||y())}),g=A.createPath,b=function(t){var n=c(x.index+t,0,x.entries.length-1),r=x.entries[n];f.confirmTransitionTo(r,"POP",e,function(t){t?d({action:"POP",location:r,index:n}):d()})},x={length:v.length,action:"POP",location:v[m],index:m,entries:v,createHref:g,push:function(t,n){(0,i.default)(!("object"===(void 0===t?"undefined":r(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=(0,$.createLocation)(t,n,y(),x.location);f.confirmTransitionTo(o,"PUSH",e,function(t){if(t){var e=x.index+1,n=x.entries.slice(0);n.length>e?n.splice(e,n.length-e,o):n.push(o),d({action:"PUSH",location:o,index:e,entries:n})}})},replace:function(t,n){(0,i.default)(!("object"===(void 0===t?"undefined":r(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=(0,$.createLocation)(t,n,y(),x.location);f.confirmTransitionTo(o,"REPLACE",e,function(t){t&&(x.entries[x.index]=o,d({action:"REPLACE",location:o}))})},go:b,goBack:function(){return b(-1)},goForward:function(){return b(1)},canGo:function(t){var e=x.index+t;return e>=0&&e<x.entries.length},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return x}})),B=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}},D=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},F=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},V=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},Y=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},z=function(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},J=function(t){function n(){var e,r,o;D(this,n);for(var i=arguments.length,a=Array(i),c=0;c<i;c++)a[c]=arguments[c];return e=r=z(this,t.call.apply(t,[this].concat(a))),r.state={match:r.computeMatch(r.props.history.location.pathname)},o=e,z(r,o)}return V(n,t),n.prototype.getChildContext=function(){return{router:F({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},n.prototype.computeMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},n.prototype.componentWillMount=function(){var t=this,n=this.props,r=n.children,o=n.history;null!=r&&1!==e.Children.count(r)&&B(!1),this.unlisten=o.listen(function(){t.setState({match:t.computeMatch(o.location.pathname)})})},n.prototype.componentWillReceiveProps=function(t){},n.prototype.componentWillUnmount=function(){this.unlisten()},n.prototype.render=function(){var t=this.props.children;return t?e.Children.only(t):null},n}(e.Component);J.contextTypes={router:k.object},J.childContextTypes={router:k.object.isRequired};var G=function(t){function n(){var e,r,o;D(this,n);for(var i=arguments.length,a=Array(i),c=0;c<i;c++)a[c]=arguments[c];return e=r=z(this,t.call.apply(t,[this].concat(a))),r.history=N(r.props),o=e,z(r,o)}return V(n,t),n.prototype.componentWillMount=function(){},n.prototype.render=function(){return e.createElement(J,{history:this.history,children:this.props.children})},n}(e.Component),K=function(t){function e(){return D(this,e),z(this,t.apply(this,arguments))}return V(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){this.context.router||B(!1),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(e.Component);K.defaultProps={when:!0},K.contextTypes={router:k.shape({history:k.shape({block:k.func.isRequired}).isRequired}).isRequired};var Q=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}},X=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},Z=function(t,e,n,r){var o=void 0;"string"==typeof t?(o=Q(t)).state=e:(void 0===(o=X({},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=a(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o},tt=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&c(t.state,e.state)},et=function(t){function e(){return D(this,e),z(this,t.apply(this,arguments))}return V(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){this.context.router||B(!1),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=Z(t.to),n=Z(this.props.to);tt(e,n)||this.perform()},e.prototype.perform=function(){var t=this.context.router.history,e=this.props,n=e.push,r=e.to;n?t.push(r):t.replace(r)},e.prototype.render=function(){return null},e}(e.Component);et.defaultProps={push:!1},et.contextTypes={router:k.shape({history:k.shape({push:k.func.isRequired,replace:k.func.isRequired}).isRequired,staticContext:k.object}).isRequired};var nt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},rt=x,ot=u,it=h,at=b,ct=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");rt.parse=ot,rt.compile=function(t,e){return h(u(t,e))},rt.tokensToFunction=it,rt.tokensToRegExp=at;var ut={},st=0,pt=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=ut[n]||(ut[n]={});if(r[t])return r[t];var o=[],i={re:rt(t,o,e),keys:o};return st<1e4&&(r[t]=i,st++),i},ht=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e={path:e});var n=e,r=n.path,o=void 0===r?"/":r,i=n.exact,a=void 0!==i&&i,c=n.strict,u=void 0!==c&&c,s=n.sensitive,p=pt(o,{end:a,strict:u,sensitive:void 0!==s&&s}),h=p.re,l=p.keys,f=h.exec(t);if(!f)return null;var d=f[0],y=f.slice(1),m=t===d;return a&&!m?null:{path:o,url:"/"===o&&""===d?"/":d,isExact:m,params:l.reduce(function(t,e,n){return t[e.name]=y[n],t},{})}},lt=function(t){return 0===e.Children.count(t)},ft=function(t){function n(){var e,r,o;D(this,n);for(var i=arguments.length,a=Array(i),c=0;c<i;c++)a[c]=arguments[c];return e=r=z(this,t.call.apply(t,[this].concat(a))),r.state={match:r.computeMatch(r.props,r.context.router)},o=e,z(r,o)}return V(n,t),n.prototype.getChildContext=function(){return{router:F({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},n.prototype.computeMatch=function(t,e){var n=t.computedMatch,r=t.location,o=t.path,i=t.strict,a=t.exact,c=t.sensitive;if(n)return n;e||B(!1);var u=e.route,s=(r||u.location).pathname;return o?ht(s,{path:o,strict:i,exact:a,sensitive:c}):u.match},n.prototype.componentWillMount=function(){},n.prototype.componentWillReceiveProps=function(t,e){this.setState({match:this.computeMatch(t,e.router)})},n.prototype.render=function(){var t=this.state.match,n=this.props,r=n.children,o=n.component,i=n.render,a=this.context.router,c=a.history,u=a.route,s=a.staticContext,p={match:t,location:this.props.location||u.location,history:c,staticContext:s};return o?t?e.createElement(o,p):null:i?t?i(p):null:r?"function"==typeof r?r(p):lt(r)?null:e.Children.only(r):null},n}(e.Component);ft.contextTypes={router:k.shape({history:k.object.isRequired,route:k.object.isRequired,staticContext:k.object})},ft.childContextTypes={router:k.object.isRequired};var dt=function(t){var e=t.pathname,n=void 0===e?"/":e,r=t.search,o=void 0===r?"":r,i=t.hash,a=void 0===i?"":i;return{pathname:n,search:"?"===o?"":o,hash:"#"===a?"":a}},yt=function(t,e){return t?F({},e,{pathname:S(t)+e.pathname}):e},mt=function(t,e){if(!t)return e;var n=S(t);return 0!==e.pathname.indexOf(n)?e:F({},e,{pathname:e.pathname.substr(n.length)})},vt=function(t){return"string"==typeof t?M(t):dt(t)},gt=function(t){return"string"==typeof t?t:_(t)},bt=function(t){return function(){B(!1)}},xt=function(){},Rt=function(t){function n(){var e,r,o;D(this,n);for(var i=arguments.length,a=Array(i),c=0;c<i;c++)a[c]=arguments[c];return e=r=z(this,t.call.apply(t,[this].concat(a))),r.createHref=function(t){return S(r.props.basename+gt(t))},r.handlePush=function(t){var e=r.props,n=e.basename,o=e.context;o.action="PUSH",o.location=yt(n,vt(t)),o.url=gt(o.location)},r.handleReplace=function(t){var e=r.props,n=e.basename,o=e.context;o.action="REPLACE",o.location=yt(n,vt(t)),o.url=gt(o.location)},r.handleListen=function(){return xt},r.handleBlock=function(){return xt},o=e,z(r,o)}return V(n,t),n.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},n.prototype.componentWillMount=function(){},n.prototype.render=function(){var t=this.props,n=t.basename,r=(t.context,t.location),o=Y(t,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:mt(n,vt(r)),push:this.handlePush,replace:this.handleReplace,go:bt(),goBack:bt(),goForward:bt(),listen:this.handleListen,block:this.handleBlock};return e.createElement(J,F({},o,{history:i}))},n}(e.Component);Rt.defaultProps={basename:"",location:"/"},Rt.childContextTypes={router:k.object.isRequired};var Ot=function(t){function n(){return D(this,n),z(this,t.apply(this,arguments))}return V(n,t),n.prototype.componentWillMount=function(){this.context.router||B(!1)},n.prototype.componentWillReceiveProps=function(t){},n.prototype.render=function(){var t=this.context.router.route,n=this.props.children,r=this.props.location||t.location,o=void 0,i=void 0;return e.Children.forEach(n,function(n){if(e.isValidElement(n)){var a=n.props,c=a.path,u=a.exact,s=a.strict,p=a.sensitive,h=a.from,l=c||h;null==o&&(i=n,o=l?ht(r.pathname,{path:l,exact:u,strict:s,sensitive:p}):t.match)}}),o?e.cloneElement(i,{location:r,computedMatch:o}):null},n}(e.Component);Ot.contextTypes={router:k.shape({route:k.object.isRequired}).isRequired};var Pt={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},wt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Et=Object.defineProperty,jt=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,Tt=Object.getOwnPropertyDescriptor,kt=Object.getPrototypeOf,At=kt&&kt(Object),St=function t(e,n,r){if("string"!=typeof n){if(At){var o=kt(n);o&&o!==At&&t(e,o,r)}var i=jt(n);Ct&&(i=i.concat(Ct(n)));for(var a=0;a<i.length;++a){var c=i[a];if(!(Pt[c]||wt[c]||r&&r[c])){var u=Tt(n,c);try{Et(e,c,u)}catch(t){}}}return e}return e};t.MemoryRouter=G,t.Prompt=K,t.Redirect=et,t.Route=ft,t.Router=J,t.StaticRouter=Rt,t.Switch=Ot,t.matchPath=ht,t.withRouter=function(t){var n=function(n){var r=n.wrappedComponentRef,o=Y(n,["wrappedComponentRef"]);return e.createElement(ft,{render:function(n){return e.createElement(t,F({},o,n,{ref:r}))}})};return n.displayName="withRouter("+(t.displayName||t.name)+")",n.WrappedComponent=t,St(n,t)},Object.defineProperty(t,"__esModule",{value:!0})});