react-history
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -29,10 +29,14 @@ 'use strict'; | ||
Action.prototype.componentDidMount = function componentDidMount() { | ||
Action.prototype.performAction = function performAction() { | ||
this.props.perform(this.context.history); | ||
}; | ||
Action.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { | ||
nextProps.perform(this.context.history); | ||
Action.prototype.componentDidMount = function componentDidMount() { | ||
this.performAction(); | ||
}; | ||
Action.prototype.componentDidUpdate = function componentDidUpdate() { | ||
this.performAction(); | ||
}; | ||
Action.prototype.render = function render() { | ||
@@ -39,0 +43,0 @@ return null; |
{ | ||
"name": "react-history", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Manage the URL with React", | ||
@@ -5,0 +5,0 @@ "repository": "ReactTraining/react-history", |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ReactHistory=e():t.ReactHistory=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.Prompt=e.MemoryHistory=e.HashHistory=e.BrowserHistory=void 0;var r=n(23);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})});var i=n(24),a=o(i),u=n(25),s=o(u),c=n(27),p=o(c),l=n(28),f=o(l);e.BrowserHistory=a["default"],e.HashHistory=s["default"],e.MemoryHistory=p["default"],e.Prompt=f["default"]},function(t,e,n){"use strict";var o=n(9),r=o;t.exports=r},function(t,e,n){"use strict";function o(t){return void 0!==t.ref}function r(t){return void 0!==t.key}var i=n(6),a=n(19),u=(n(1),n(21),Object.prototype.hasOwnProperty),s="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,c={key:!0,ref:!0,__self:!0,__source:!0},p=function(t,e,n,o,r,i,a){var u={$$typeof:s,type:t,key:e,ref:n,props:a,_owner:i};return u};p.createElement=function(t,e,n){var i,s={},l=null,f=null,d=null,h=null;if(null!=e){o(e)&&(f=e.ref),r(e)&&(l=""+e.key),d=void 0===e.__self?null:e.__self,h=void 0===e.__source?null:e.__source;for(i in e)u.call(e,i)&&!c.hasOwnProperty(i)&&(s[i]=e[i])}var y=arguments.length-2;if(1===y)s.children=n;else if(y>1){for(var v=Array(y),m=0;m<y;m++)v[m]=arguments[m+2];s.children=v}if(t&&t.defaultProps){var b=t.defaultProps;for(i in b)void 0===s[i]&&(s[i]=b[i])}return p(t,l,f,d,h,a.current,s)},p.createFactory=function(t){var e=p.createElement.bind(null,t);return e.type=t,e},p.cloneAndReplaceKey=function(t,e){var n=p(t.type,e,t.ref,t._self,t._source,t._owner,t.props);return n},p.cloneElement=function(t,e,n){var s,l=i({},t.props),f=t.key,d=t.ref,h=t._self,y=t._source,v=t._owner;if(null!=e){o(e)&&(d=e.ref,v=a.current),r(e)&&(f=""+e.key);var m;t.type&&t.type.defaultProps&&(m=t.type.defaultProps);for(s in e)u.call(e,s)&&!c.hasOwnProperty(s)&&(void 0===e[s]&&void 0!==m?l[s]=m[s]:l[s]=e[s])}var b=arguments.length-2;if(1===b)l.children=n;else if(b>1){for(var g=Array(b),P=0;P<b;P++)g[P]=arguments[P+2];l.children=g}return p(t.type,f,d,h,y,v,l)},p.isValidElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===s},p.REACT_ELEMENT_TYPE=s,t.exports=p},function(t,e,n){"use strict";t.exports=n(33)},function(t,e,n){"use strict";function o(t,e,n,o,r,i,a,u){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,u],p=0;s=new Error(e.replace(/%s/g,function(){return c[p++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}t.exports=o},function(t,e){"use strict";function n(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,o=0;o<e;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var r=new Error(n);throw r.name="Invariant Violation",r.framesToPop=1,r}t.exports=n},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function o(){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;var o=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==o.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}var r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(t,e){for(var o,a,u=n(t),s=1;s<arguments.length;s++){o=Object(arguments[s]);for(var c in o)r.call(o,c)&&(u[c]=o[c]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(o);for(var p=0;p<a.length;p++)i.call(o,a[p])&&(u[a[p]]=o[a[p]])}}return u}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=n(3),c=o(s),p=n(8),l=function(t){function e(){return i(this,e),a(this,t.apply(this,arguments))}return u(e,t),e.prototype.getChildContext=function(){return{history:this.props.historyContext}},e.prototype.render=function(){var t=this.props,e=t.historyContext,n=t.children,o=e.action,i=e.location,a=r(e,["action","location"]);return n({history:a,action:o,location:i})},e}(c["default"].Component);l.propTypes={historyContext:p.historyContext.isRequired,children:s.PropTypes.func.isRequired},l.childContextTypes={history:p.historyContext.isRequired},e["default"]=l},function(t,e,n){"use strict";e.__esModule=!0,e.historyContext=e.location=e.action=void 0;var o=n(3),r=e.action=o.PropTypes.oneOf(["PUSH","REPLACE","POP"]),i=e.location=o.PropTypes.shape({path:o.PropTypes.string.isRequired,state:o.PropTypes.object,key:o.PropTypes.string});e.historyContext=o.PropTypes.shape({action:r.isRequired,location:i.isRequired,block:o.PropTypes.func.isRequired,push:o.PropTypes.func.isRequired,replace:o.PropTypes.func.isRequired,go:o.PropTypes.func.isRequired,goBack:o.PropTypes.func.isRequired,goForward:o.PropTypes.func.isRequired,canGo:o.PropTypes.func})},function(t,e){"use strict";function n(t){return function(){return t}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,n){"use strict";var o={};t.exports=o},function(t,e,n){"use strict";var o=function(t,e,n,o,r,i,a,u){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,u],p=0;s=new Error(e.replace(/%s/g,function(){return c[p++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};t.exports=o},function(t,e,n){"use strict";function o(t,e,n){this.props=t,this.context=e,this.refs=a,this.updater=n||i}var r=n(5),i=n(13),a=(n(21),n(10));n(4),n(1);o.prototype.isReactComponent={},o.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t?r("85"):void 0,this.updater.enqueueSetState(this,t),e&&this.updater.enqueueCallback(this,e,"setState")},o.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")};t.exports=o},function(t,e,n){"use strict";function o(t,e){}var r=(n(1),{isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){o(t,"forceUpdate")},enqueueReplaceState:function(t,e){o(t,"replaceState")},enqueueSetState:function(t,e){o(t,"setState")}});t.exports=r},function(t,e,n){"use strict";var o=function(){};t.exports=o},function(t,e){"use strict";e.__esModule=!0;e.addEventListener=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},e.supportsHistory=function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)},e.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},e.supportsPopStateOnHashChange=function(){return window.navigator.userAgent.indexOf("Trident")===-1}},function(t,e){"use strict";e.__esModule=!0;e.createKey=function(t){return Math.random().toString(36).substr(2,t)}},function(t,e){"use strict";e.__esModule=!0;e.stripPrefix=function(t,e){return 0===e.indexOf(t)?e.substring(t.length):e}},function(t,e,n){"use strict";var o=n(4),r=function(t){var e,n={};t instanceof Object&&!Array.isArray(t)?void 0:o(!1);for(e in t)t.hasOwnProperty(e)&&(n[e]=e);return n};t.exports=r},function(t,e){"use strict";var n={current:null};t.exports=n},function(t,e,n){"use strict";var o={};t.exports=o},function(t,e,n){"use strict";var o=!1;t.exports=o},function(t,e){"use strict";function n(t){var e=t&&(o&&t[o]||t[r]);if("function"==typeof e)return e}var o="function"==typeof Symbol&&Symbol.iterator,r="@@iterator";t.exports=n},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.Forward=e.Back=e.Pop=e.Replace=e.Push=void 0;var u=n(3),s=o(u),c=n(8),p=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentDidMount=function(){this.props.perform(this.context.history)},e.prototype.componentWillReceiveProps=function(t){t.perform(this.context.history)},e.prototype.render=function(){return null},e}(s["default"].Component);p.contextTypes={history:c.historyContext.isRequired},p.propTypes={perform:u.PropTypes.func.isRequired};var l=e.Push=function(t){var e=t.path,n=t.state;return s["default"].createElement(p,{perform:function(t){return t.push(e,n)}})};l.propTypes={path:u.PropTypes.string,state:u.PropTypes.any};var f=e.Replace=function(t){var e=t.path,n=t.state;return s["default"].createElement(p,{perform:function(t){return t.replace(e,n)}})};f.propTypes=l.propTypes;var d=e.Pop=function(t){var e=t.go;return s["default"].createElement(p,{perform:function(t){return t.go(e)}})};d.propTypes={go:u.PropTypes.number},d.defaultProps={go:-1};e.Back=function(){return s["default"].createElement(p,{perform:function(t){return t.goBack()}})},e.Forward=function(){return s["default"].createElement(p,{perform:function(t){return t.goForward()}})}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},s=n(14),c=o(s),p=n(11),l=o(p),f=n(3),d=o(f),h=n(16),y=n(7),v=o(y),m=n(15),b=n(17),g="popstate",P="hashchange",w=function(){try{return window.history.state||{}}catch(t){return{}}},E=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,s=Array(u),p=0;p<u;p++)s[p]=arguments[p];return n=o=i(this,t.call.apply(t,[this].concat(s))),o.state={action:null,location:null,allKeys:null},o.block=function(t){return(0,l["default"])("string"==typeof t||"function"==typeof t,"A <BrowserHistory> prompt must be a string or a function"),(0,c["default"])(null==o.prompt,"<BrowserHistory> supports only one <Prompt> at a time"),o.prompt=t,function(){o.prompt===t&&(o.prompt=null)}},o.push=function(t,e){var n="PUSH",r=o.createKey(),i={path:t,state:e,key:r};o.confirmTransitionTo(n,i,function(a){if(a){var u=o.props.basename+t;o.supportsHistory?(window.history.pushState({key:r,state:e},null,u),o.setState(function(t){var e=t.allKeys,o=e.indexOf(t.location.key),r=e.slice(0,o===-1?0:o+1);return r.push(i.key),{action:n,location:i,allKeys:r}})):((0,c["default"])(void 0===e,"<BrowserHistory> cannot push state in browsers that do not support HTML5 history"),window.location.href=u)}})},o.replace=function(t,e){var n="REPLACE",r=o.createKey(),i={path:t,state:e,key:r};o.confirmTransitionTo(n,i,function(a){if(a){var u=o.props.basename+t;o.supportsHistory?(window.history.replaceState({key:r,state:e},null,u),o.setState(function(t){var e=t.allKeys.slice(0),o=e.indexOf(t.location.key);return o!==-1&&(e[o]=i.key),{action:n,location:i,allKeys:e}})):((0,c["default"])(void 0===e,"<BrowserHistory> cannot replace state in browsers that do not support HTML5 history"),window.location.replace(u))}})},o.go=function(t){window.history.go(t)},o.goBack=function(){return o.go(-1)},o.goForward=function(){return o.go(1)},o.handlePopState=function(t){if(void 0!==t.state){var e="POP",n=o.createLocation(t.state);o.forceNextPop?(o.forceNextPop=!1,o.forceUpdate()):o.confirmTransitionTo(e,n,function(t){t?o.setState({action:e,location:n}):o.revertPop(n)})}},o.handleHashChange=function(){var t="POP",e=o.createLocation(w());o.forceNextPop?(o.forceNextPop=!1,o.forceUpdate()):o.confirmTransitionTo(t,e,function(n){n?o.setState({action:t,location:e}):o.revertPop(e)})},a=n,i(o,a)}return a(e,t),e.prototype.createKey=function(){return(0,h.createKey)(this.props.keyLength)},e.prototype.createLocation=function(t){var e=t||{},n=e.key,o=e.state,r=window.location,i=r.pathname,a=r.search,u=r.hash,s=i+a+u,c=this.props.basename;return c&&(s=(0,b.stripPrefix)(c,s)),{path:s,state:o,key:n}},e.prototype.confirmTransitionTo=function(t,e,n){var o=this.prompt;o?("function"==typeof o&&(o=o(e,t)),this.props.getUserConfirmation(o,n)):n(!0)},e.prototype.revertPop=function(t){var e=this.state,n=e.location,o=e.allKeys,r=o.indexOf(n.key);r===-1&&(r=0);var i=o.indexOf(t.key);i===-1&&(i=0);var a=r-i;a&&(this.forceNextPop=!0,window.history.go(a))},e.prototype.componentWillMount=function(){if("object"===("undefined"==typeof window?"undefined":u(window))){this.supportsHistory=(0,m.supportsHistory)(),this.needsHashChangeListener=!(0,m.supportsPopStateOnHashChange)();var t=this.createLocation(w());this.setState({action:"POP",location:t,allKeys:[t.key]})}else(0,c["default"])(!1,"<BrowserHistory> works only in DOM environments")},e.prototype.componentDidMount=function(){(0,m.addEventListener)(window,g,this.handlePopState),this.needsHashChangeListener&&(0,m.addEventListener)(window,P)},e.prototype.componentWillUnmount=function(){(0,m.removeEventListener)(window,g,this.handlePopState),this.needsHashChangeListener&&(0,m.removeEventListener)(window,P,this.handleHashChange)},e.prototype.render=function(){var t=this.props.children,e=this.state,n=e.action,o=e.location,r={action:n,location:o,block:this.block,push:this.push,replace:this.replace,go:this.go,goBack:this.goBack,goForward:this.goForward};return d["default"].createElement(v["default"],{historyContext:r,children:t})},e}(d["default"].Component);E.propTypes={basename:f.PropTypes.string,children:f.PropTypes.func.isRequired,getUserConfirmation:f.PropTypes.func,keyLength:f.PropTypes.number},E.defaultProps={basename:"",keyLength:6,getUserConfirmation:function(t,e){e(window.confirm(t))}},e["default"]=E},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},s=n(14),c=o(s),p=n(11),l=o(p),f=n(3),d=o(f),h=n(7),y=o(h),v=n(15),m=n(26),b=n(17),g="hashchange",P=function(t){return"/"===t.charAt(0)?t:"/"+t},w={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!"+P(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substring(1):t}},noslash:{encodePath:function(t){return"/"===t.charAt(0)?t.substring(1):t},decodePath:P},slash:{encodePath:P,decodePath:P}},E=function(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.substring(e+1)},x=function(t){return window.location.hash=t},_=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)},O=function(t){function e(){var n,o,a;r(this,e);for(var s=arguments.length,p=Array(s),f=0;f<s;f++)p[f]=arguments[f];return n=o=i(this,t.call.apply(t,[this].concat(p))),o.state={action:null,location:null,allPaths:null},o.block=function(t){return(0,l["default"])("string"==typeof t||"function"==typeof t,"A <HashHistory> prompt must be a string or a function"),(0,c["default"])(null==o.prompt,"<HashHistory> supports only one <Prompt> at a time"),o.prompt=t,function(){o.prompt===t&&(o.prompt=null)}},o.push=function(t,e){(0,c["default"])(void 0===e,"<HashHistory> cannot push state; it will be dropped");var n="PUSH",r={path:t};o.confirmTransitionTo(n,r,function(e){if(e){var i=o.encodePath(o.props.basename+t),a=E()!==i;a&&(o.ignorePath=t,x(i)),o.setState(function(t){var e=t.allPaths,o=e.lastIndexOf(t.location.path),i=e.slice(0,o===-1?0:o+1);return i.push(r.path),{action:n,location:r,allPaths:i}})}})},o.replace=function(t,e){(0,c["default"])(void 0===e,"<HashHistory> cannot replace state; it will be dropped");var n="REPLACE",r={path:t};o.confirmTransitionTo(n,r,function(e){if(e){var i=o.encodePath(o.props.basename+t),a=E()!==i;a&&(o.ignorePath=t,_(i)),o.setState(function(t){var e=t.allPaths.slice(0),o=e.indexOf(t.location.path);return o!==-1&&(e[o]=r.path),{action:n,location:r,allPaths:e}})}})},o.go=function(t){(0,c["default"])(o.goIsSupportedWithoutReload,"<HashHistory> go(n) causes a full page reload in this browser"),window.history.go(t)},o.goBack=function(){return o.go(-1)},o.goForward=function(){return o.go(1)},o.handleHashChange=function(){var t=E(),e=o.encodePath(t);if(t!==e)_(e);else{var n=function(){var t="POP",e=o.createLocation(),n=o.state.location;return!o.forceNextPop&&(0,m.locationsAreEqual)(n,e)?{v:void 0}:o.ignorePath===e.path?{v:void 0}:(o.ignorePath=null,void(o.forceNextPop?(o.forceNextPop=!1,o.forceUpdate()):o.confirmTransitionTo(t,e,function(n){n?o.setState({action:t,location:e}):o.revertPop(e)})))}();if("object"===("undefined"==typeof n?"undefined":u(n)))return n.v}},a=n,i(o,a)}return a(e,t),e.prototype.decodePath=function(t){return w[this.props.hashType].decodePath(t)},e.prototype.encodePath=function(t){return w[this.props.hashType].encodePath(t)},e.prototype.createLocation=function(){var t=this.decodePath(E()),e=this.props.basename;return e&&(t=(0,b.stripPrefix)(e,t)),{path:t}},e.prototype.confirmTransitionTo=function(t,e,n){var o=this.prompt;o?("function"==typeof o&&(o=o(e,t)),this.props.getUserConfirmation(o,n)):n(!0)},e.prototype.revertPop=function(t){var e=this.state,n=e.location,o=e.allPaths,r=o.lastIndexOf(n.path);r===-1&&(r=0);var i=o.lastIndexOf(t.path);i===-1&&(i=0);var a=r-i;a&&(this.forceNextPop=!0,window.history.go(a))},e.prototype.componentWillMount=function(){if("object"===("undefined"==typeof window?"undefined":u(window))){this.goIsSupportedWithoutReload=(0,v.supportsGoWithoutReloadUsingHash)();var t=E(),e=this.encodePath(t);t!==e&&_(e);var n=this.createLocation();this.setState({action:"POP",location:n,allPaths:[n.path]})}else(0,c["default"])(!1,"<HashHistory> works only in DOM environments")},e.prototype.componentDidMount=function(){(0,v.addEventListener)(window,g,this.handleHashChange)},e.prototype.componentWillUnmount=function(){(0,v.removeEventListener)(window,g,this.handleHashChange)},e.prototype.render=function(){var t=this.props.children,e=this.state,n=e.action,o=e.location,r={action:n,location:o,block:this.block,push:this.push,replace:this.replace,go:this.go,goBack:this.goBack,goForward:this.goForward};return d["default"].createElement(y["default"],{historyContext:r,children:t})},e}(d["default"].Component);O.propTypes={basename:f.PropTypes.string,children:f.PropTypes.func.isRequired,getUserConfirmation:f.PropTypes.func,hashType:f.PropTypes.oneOf(Object.keys(w))},O.defaultProps={basename:"",hashType:"slash",getUserConfirmation:function(t,e){e(window.confirm(t))}},e["default"]=O},function(t,e){"use strict";e.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=function r(t,e){if(null==t)return t==e;var o="undefined"==typeof t?"undefined":n(t),i="undefined"==typeof e?"undefined":n(e);if(o!==i)return!1;if(Array.isArray(t))return!(!Array.isArray(e)||t.length!==e.length)&&t.every(function(t,n){return r(t,e[n])});if("object"===o){var a=Object.keys(t),u=Object.keys(e);return a.length===u.length&&a.every(function(n){return r(t[n],e[n])})}return t===e};e.locationsAreEqual=function(t,e){return t.path===e.path&&t.key===e.key&&o(t.state,e.state)}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(14),s=o(u),c=n(11),p=o(c),l=n(3),f=o(l),d=n(16),h=n(7),y=o(h),v=function(t,e,n){return Math.min(Math.max(t,e),n)},m=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,c=Array(u),l=0;l<u;l++)c[l]=arguments[l];return n=o=i(this,t.call.apply(t,[this].concat(c))),o.state={prevIndex:null,action:null,index:null,entries:null},o.block=function(t){return(0,p["default"])("string"==typeof t||"function"==typeof t,"A <MemoryHistory> prompt must be a string or a function"),(0,s["default"])(null==o.prompt,"<MemoryHistory> supports only one <Prompt> at a time"),o.prompt=t,function(){o.prompt===t&&(o.prompt=null)}},o.push=function(t,e){var n="PUSH",r=o.createKey(),i={path:t,state:e,key:r};o.confirmTransitionTo(n,i,function(t){t&&o.setState(function(t){var e=t.index,o=t.entries.slice(0),r=e+1;return o.length>r?o.splice(r,o.length-r,i):o.push(i),{prevIndex:t.index,action:n,index:r,entries:o}})})},o.replace=function(t,e){var n="REPLACE",r=o.createKey(),i={path:t,state:e,key:r};o.confirmTransitionTo(n,i,function(t){t&&o.setState(function(t){var e=t.index,o=t.entries.slice(0);return o[e]=i,{prevIndex:t.index,action:n,entries:o}})})},o.go=function(t){var e=o.state,n=e.index,r=e.entries,i=v(n+t,0,r.length-1),a="POP",u=r[i];o.confirmTransitionTo(a,u,function(t){t?o.setState({prevIndex:n,action:a,index:i}):o.forceUpdate()})},o.goBack=function(){return o.go(-1)},o.goForward=function(){return o.go(1)},o.canGo=function(t){var e=o.state,n=e.index,r=e.entries,i=n+t;return i>=0&&i<r.length},a=n,i(o,a)}return a(e,t),e.prototype.createKey=function(){return(0,d.createKey)(this.props.keyLength)},e.prototype.confirmTransitionTo=function(t,e,n){var o=this.prompt;o?("function"==typeof o&&(o=o(e,t)),this.props.getUserConfirmation?this.props.getUserConfirmation(o,n):(0,s["default"])(!1,"<MemoryHistory> needs a getUserConfirmation prop in order to use a <Prompt>")):n(!0)},e.prototype.componentWillMount=function(){var t=this.props,e=t.initialEntries,n=t.initialIndex,o=e.map(function(t){return"string"==typeof t?{path:t}:t});this.setState({action:"POP",index:v(n,0,e.length-1),entries:o})},e.prototype.render=function(){var t=this.props.children,e=this.state,n=e.action,o=e.index,r=e.entries,i=r[o],a={action:n,location:i,block:this.block,push:this.push,replace:this.replace,go:this.go,goBack:this.goBack,goForward:this.goForward,canGo:this.canGo};return f["default"].createElement(y["default"],{historyContext:a,children:t})},e}(f["default"].Component);m.propTypes={children:l.PropTypes.func.isRequired,getUserConfirmation:l.PropTypes.func,initialEntries:l.PropTypes.array,initialIndex:l.PropTypes.number,keyLength:l.PropTypes.number},m.defaultProps={initialEntries:["/"],initialIndex:0,keyLength:6},e["default"]=m},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(3),s=o(u),c=n(8),p=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.block=function(){this.teardownPrompt||(this.teardownPrompt=this.context.history.block(this.props.message))},e.prototype.unblock=function(){this.teardownPrompt&&(this.teardownPrompt(),this.teardownPrompt=null)},e.prototype.componentWillMount=function(){this.props.when&&this.block()},e.prototype.componentWillReceiveProps=function(t){t.when?this.block():this.unblock()},e.prototype.componentWillUnmount=function(){this.unblock()},e.prototype.render=function(){return null},e}(s["default"].Component);p.contextTypes={history:c.historyContext.isRequired},p.propTypes={when:u.PropTypes.bool,message:u.PropTypes.oneOfType([u.PropTypes.func,u.PropTypes.string]).isRequired},p.defaultProps={when:!0},e["default"]=p},function(t,e){"use strict";var n=function(t){var e;for(e in t)if(t.hasOwnProperty(e))return e;return null};t.exports=n},function(t,e){"use strict";function n(t,e,n){if(!t)return null;var r={};for(var i in t)o.call(t,i)&&(r[i]=e.call(n,t[i],i,t));return r}var o=Object.prototype.hasOwnProperty;t.exports=n},function(t,e){"use strict";function n(t){var e=/[=:]/g,n={"=":"=0",":":"=2"},o=(""+t).replace(e,function(t){return n[t]});return"$"+o}function o(t){var e=/(=0|=2)/g,n={"=0":"=","=2":":"},o="."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1);return(""+o).replace(e,function(t){return n[t]})}var r={escape:n,unescape:o};t.exports=r},function(t,e,n){"use strict";var o=n(5),r=(n(4),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),i=function(t,e){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,t,e),o}return new n(t,e)},a=function(t,e,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,t,e,n),r}return new o(t,e,n)},u=function(t,e,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,t,e,n,o),i}return new r(t,e,n,o)},s=function(t,e,n,o,r){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,t,e,n,o,r),a}return new i(t,e,n,o,r)},c=function(t){var e=this;t instanceof e?void 0:o("25"),t.destructor(),e.instancePool.length<e.poolSize&&e.instancePool.push(t)},p=10,l=r,f=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||l,n.poolSize||(n.poolSize=p),n.release=c,n},d={addPoolingTo:f,oneArgumentPooler:r,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:u,fiveArgumentPooler:s};t.exports=d},function(t,e,n){"use strict";var o=n(6),r=n(34),i=n(12),a=n(40),u=n(35),s=n(36),c=n(2),p=n(38),l=n(41),f=n(42),d=(n(1),c.createElement),h=c.createFactory,y=c.cloneElement,v=o,m={Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:f},Component:i,PureComponent:a,createElement:d,cloneElement:y,isValidElement:c.isValidElement,PropTypes:p,createClass:u.createClass,createFactory:h,createMixin:function(t){return t},DOM:s,version:l,__spread:v};t.exports=m},function(t,e,n){"use strict";function o(t){return(""+t).replace(P,"$&/")}function r(t,e){this.func=t,this.context=e,this.count=0}function i(t,e,n){var o=t.func,r=t.context;o.call(r,e,t.count++)}function a(t,e,n){if(null==t)return t;var o=r.getPooled(e,n);m(t,i,o),r.release(o)}function u(t,e,n,o){this.result=t,this.keyPrefix=e,this.func=n,this.context=o,this.count=0}function s(t,e,n){var r=t.result,i=t.keyPrefix,a=t.func,u=t.context,s=a.call(u,e,t.count++);Array.isArray(s)?c(s,r,n,v.thatReturnsArgument):null!=s&&(y.isValidElement(s)&&(s=y.cloneAndReplaceKey(s,i+(!s.key||e&&e.key===s.key?"":o(s.key)+"/")+n)),r.push(s))}function c(t,e,n,r,i){var a="";null!=n&&(a=o(n)+"/");var c=u.getPooled(e,a,r,i);m(t,s,c),u.release(c)}function p(t,e,n){if(null==t)return t;var o=[];return c(t,o,null,e,n),o}function l(t,e,n){return null}function f(t,e){return m(t,l,null)}function d(t){var e=[];return c(t,e,null,v.thatReturnsArgument),e}var h=n(32),y=n(2),v=n(9),m=n(43),b=h.twoArgumentPooler,g=h.fourArgumentPooler,P=/\/+/g;r.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(r,b),u.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(u,g);var w={forEach:a,map:p,mapIntoWithKeyPrefixInternal:c,count:f,toArray:d};t.exports=w},function(t,e,n){"use strict";function o(t,e){var n=E.hasOwnProperty(e)?E[e]:null;_.hasOwnProperty(e)&&(n!==P.OVERRIDE_BASE?l("73",e):void 0),t&&(n!==P.DEFINE_MANY&&n!==P.DEFINE_MANY_MERGED?l("74",e):void 0)}function r(t,e){if(e){"function"==typeof e?l("75"):void 0,h.isValidElement(e)?l("76"):void 0;var n=t.prototype,r=n.__reactAutoBindPairs;e.hasOwnProperty(g)&&x.mixins(t,e.mixins);for(var i in e)if(e.hasOwnProperty(i)&&i!==g){var a=e[i],c=n.hasOwnProperty(i);if(o(c,i),x.hasOwnProperty(i))x[i](t,a);else{var p=E.hasOwnProperty(i),f="function"==typeof a,d=f&&!p&&!c&&e.autobind!==!1;if(d)r.push(i,a),n[i]=a;else if(c){var y=E[i];!p||y!==P.DEFINE_MANY_MERGED&&y!==P.DEFINE_MANY?l("77",y,i):void 0,y===P.DEFINE_MANY_MERGED?n[i]=u(n[i],a):y===P.DEFINE_MANY&&(n[i]=s(n[i],a))}else n[i]=a}}}else;}function i(t,e){if(e)for(var n in e){var o=e[n];if(e.hasOwnProperty(n)){var r=n in x;r?l("78",n):void 0;var i=n in t;i?l("79",n):void 0,t[n]=o}}}function a(t,e){t&&e&&"object"==typeof t&&"object"==typeof e?void 0:l("80"); | ||
for(var n in e)e.hasOwnProperty(n)&&(void 0!==t[n]?l("81",n):void 0,t[n]=e[n]);return t}function u(t,e){return function(){var n=t.apply(this,arguments),o=e.apply(this,arguments);if(null==n)return o;if(null==o)return n;var r={};return a(r,n),a(r,o),r}}function s(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function c(t,e){var n=e.bind(t);return n}function p(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var o=e[n],r=e[n+1];t[o]=c(t,r)}}var l=n(5),f=n(6),d=n(12),h=n(2),y=(n(37),n(20),n(13)),v=n(10),m=(n(4),n(18)),b=n(29),g=(n(1),b({mixins:null})),P=m({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),w=[],E={mixins:P.DEFINE_MANY,statics:P.DEFINE_MANY,propTypes:P.DEFINE_MANY,contextTypes:P.DEFINE_MANY,childContextTypes:P.DEFINE_MANY,getDefaultProps:P.DEFINE_MANY_MERGED,getInitialState:P.DEFINE_MANY_MERGED,getChildContext:P.DEFINE_MANY_MERGED,render:P.DEFINE_ONCE,componentWillMount:P.DEFINE_MANY,componentDidMount:P.DEFINE_MANY,componentWillReceiveProps:P.DEFINE_MANY,shouldComponentUpdate:P.DEFINE_ONCE,componentWillUpdate:P.DEFINE_MANY,componentDidUpdate:P.DEFINE_MANY,componentWillUnmount:P.DEFINE_MANY,updateComponent:P.OVERRIDE_BASE},x={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)r(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=f({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=f({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=u(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=f({},t.propTypes,e)},statics:function(t,e){i(t,e)},autobind:function(){}},_={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t),e&&this.updater.enqueueCallback(this,e,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},O=function(){};f(O.prototype,d.prototype,_);var T={createClass:function(t){var e=function(t,n,o){this.__reactAutoBindPairs.length&&p(this),this.props=t,this.context=n,this.refs=v,this.updater=o||y,this.state=null;var r=this.getInitialState?this.getInitialState():null;"object"!=typeof r||Array.isArray(r)?l("82",e.displayName||"ReactCompositeComponent"):void 0,this.state=r};e.prototype=new O,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],w.forEach(r.bind(null,e)),r(e,t),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),e.prototype.render?void 0:l("83");for(var n in E)e.prototype[n]||(e.prototype[n]=null);return e},injection:{injectMixin:function(t){w.push(t)}}};t.exports=T},function(t,e,n){"use strict";function o(t){return r.createFactory(t)}var r=n(2),i=n(30),a=i({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},o);t.exports=a},function(t,e,n){"use strict";var o=n(18),r=o({prop:null,context:null,childContext:null});t.exports=r},function(t,e,n){"use strict";function o(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function r(t){function e(e,n,o,r,i,a,u){r=r||O,a=a||o;if(null==n[o]){var s=w[i];return e?new Error("Required "+s+" `"+a+"` was not specified in "+("`"+r+"`.")):null}return t(n,o,r,i,a)}var n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n}function i(t){function e(e,n,o,r,i,a){var u=e[n],s=m(u);if(s!==t){var c=w[r],p=b(u);return new Error("Invalid "+c+" `"+i+"` of type "+("`"+p+"` supplied to `"+o+"`, expected ")+("`"+t+"`."))}return null}return r(e)}function a(){return r(x.thatReturns(null))}function u(t){function e(e,n,o,r,i){if("function"!=typeof t)return new Error("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a)){var u=w[r],s=m(a);return new Error("Invalid "+u+" `"+i+"` of type "+("`"+s+"` supplied to `"+o+"`, expected an array."))}for(var c=0;c<a.length;c++){var p=t(a,c,o,r,i+"["+c+"]",E);if(p instanceof Error)return p}return null}return r(e)}function s(){function t(t,e,n,o,r){var i=t[e];if(!P.isValidElement(i)){var a=w[o],u=m(i);return new Error("Invalid "+a+" `"+r+"` of type "+("`"+u+"` supplied to `"+n+"`, expected a single ReactElement."))}return null}return r(t)}function c(t){function e(e,n,o,r,i){if(!(e[n]instanceof t)){var a=w[r],u=t.name||O,s=g(e[n]);return new Error("Invalid "+a+" `"+i+"` of type "+("`"+s+"` supplied to `"+o+"`, expected ")+("instance of `"+u+"`."))}return null}return r(e)}function p(t){function e(e,n,r,i,a){for(var u=e[n],s=0;s<t.length;s++)if(o(u,t[s]))return null;var c=w[i],p=JSON.stringify(t);return new Error("Invalid "+c+" `"+a+"` of value `"+u+"` "+("supplied to `"+r+"`, expected one of "+p+"."))}return Array.isArray(t)?r(e):x.thatReturnsNull}function l(t){function e(e,n,o,r,i){if("function"!=typeof t)return new Error("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var a=e[n],u=m(a);if("object"!==u){var s=w[r];return new Error("Invalid "+s+" `"+i+"` of type "+("`"+u+"` supplied to `"+o+"`, expected an object."))}for(var c in a)if(a.hasOwnProperty(c)){var p=t(a,c,o,r,i+"."+c,E);if(p instanceof Error)return p}return null}return r(e)}function f(t){function e(e,n,o,r,i){for(var a=0;a<t.length;a++){var u=t[a];if(null==u(e,n,o,r,i,E))return null}var s=w[r];return new Error("Invalid "+s+" `"+i+"` supplied to "+("`"+o+"`."))}return Array.isArray(t)?r(e):x.thatReturnsNull}function d(){function t(t,e,n,o,r){if(!y(t[e])){var i=w[o];return new Error("Invalid "+i+" `"+r+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(t)}function h(t){function e(e,n,o,r,i){var a=e[n],u=m(a);if("object"!==u){var s=w[r];return new Error("Invalid "+s+" `"+i+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."))}for(var c in t){var p=t[c];if(p){var l=p(a,c,o,r,i+"."+c,E);if(l)return l}}return null}return r(e)}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||P.isValidElement(t))return!0;var e=_(t);if(!e)return!1;var n,o=e.call(t);if(e!==t.entries){for(;!(n=o.next()).done;)if(!y(n.value))return!1}else for(;!(n=o.next()).done;){var r=n.value;if(r&&!y(r[1]))return!1}return!0;default:return!1}}function v(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function m(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":v(e,t)?"symbol":e}function b(t){var e=m(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function g(t){return t.constructor&&t.constructor.name?t.constructor.name:O}var P=n(2),w=n(20),E=n(39),x=n(9),_=n(22),O=(n(1),"<<anonymous>>"),T={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),symbol:i("symbol"),any:a(),arrayOf:u,element:s(),instanceOf:c,node:d(),objectOf:l,oneOf:p,oneOfType:f,shape:h};t.exports=T},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e,n){"use strict";function o(t,e,n){this.props=t,this.context=e,this.refs=s,this.updater=n||u}function r(){}var i=n(6),a=n(12),u=n(13),s=n(10);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,t.exports=o},function(t,e){"use strict";t.exports="15.3.0"},function(t,e,n){"use strict";function o(t){return i.isValidElement(t)?void 0:r("23"),t}var r=n(5),i=n(2);n(4);t.exports=o},function(t,e,n){"use strict";function o(t,e){return t&&"object"==typeof t&&null!=t.key?c.escape(t.key):e.toString(36)}function r(t,e,n,i){var f=typeof t;if("undefined"!==f&&"boolean"!==f||(t=null),null===t||"string"===f||"number"===f||u.isValidElement(t))return n(i,t,""===e?p+o(t,0):e),1;var d,h,y=0,v=""===e?p:e+l;if(Array.isArray(t))for(var m=0;m<t.length;m++)d=t[m],h=v+o(d,m),y+=r(d,h,n,i);else{var b=s(t);if(b){var g,P=b.call(t);if(b!==t.entries)for(var w=0;!(g=P.next()).done;)d=g.value,h=v+o(d,w++),y+=r(d,h,n,i);else for(;!(g=P.next()).done;){var E=g.value;E&&(d=E[1],h=v+c.escape(E[0])+l+o(d,0),y+=r(d,h,n,i))}}else if("object"===f){var x="",_=String(t);a("31","[object Object]"===_?"object with keys {"+Object.keys(t).join(", ")+"}":_,x)}}return y}function i(t,e,n){return null==t?0:r(t,"",e,n)}var a=n(5),u=(n(19),n(2)),s=n(22),c=(n(4),n(31)),p=(n(1),"."),l=":";t.exports=i}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ReactHistory=e():t.ReactHistory=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e.Prompt=e.MemoryHistory=e.HashHistory=e.BrowserHistory=void 0;var r=n(23);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})});var i=n(24),a=o(i),u=n(25),s=o(u),c=n(27),p=o(c),l=n(28),f=o(l);e.BrowserHistory=a["default"],e.HashHistory=s["default"],e.MemoryHistory=p["default"],e.Prompt=f["default"]},function(t,e,n){"use strict";var o=n(9),r=o;t.exports=r},function(t,e,n){"use strict";function o(t){return void 0!==t.ref}function r(t){return void 0!==t.key}var i=n(6),a=n(19),u=(n(1),n(21),Object.prototype.hasOwnProperty),s="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,c={key:!0,ref:!0,__self:!0,__source:!0},p=function(t,e,n,o,r,i,a){var u={$$typeof:s,type:t,key:e,ref:n,props:a,_owner:i};return u};p.createElement=function(t,e,n){var i,s={},l=null,f=null,d=null,h=null;if(null!=e){o(e)&&(f=e.ref),r(e)&&(l=""+e.key),d=void 0===e.__self?null:e.__self,h=void 0===e.__source?null:e.__source;for(i in e)u.call(e,i)&&!c.hasOwnProperty(i)&&(s[i]=e[i])}var y=arguments.length-2;if(1===y)s.children=n;else if(y>1){for(var v=Array(y),m=0;m<y;m++)v[m]=arguments[m+2];s.children=v}if(t&&t.defaultProps){var b=t.defaultProps;for(i in b)void 0===s[i]&&(s[i]=b[i])}return p(t,l,f,d,h,a.current,s)},p.createFactory=function(t){var e=p.createElement.bind(null,t);return e.type=t,e},p.cloneAndReplaceKey=function(t,e){var n=p(t.type,e,t.ref,t._self,t._source,t._owner,t.props);return n},p.cloneElement=function(t,e,n){var s,l=i({},t.props),f=t.key,d=t.ref,h=t._self,y=t._source,v=t._owner;if(null!=e){o(e)&&(d=e.ref,v=a.current),r(e)&&(f=""+e.key);var m;t.type&&t.type.defaultProps&&(m=t.type.defaultProps);for(s in e)u.call(e,s)&&!c.hasOwnProperty(s)&&(void 0===e[s]&&void 0!==m?l[s]=m[s]:l[s]=e[s])}var b=arguments.length-2;if(1===b)l.children=n;else if(b>1){for(var g=Array(b),P=0;P<b;P++)g[P]=arguments[P+2];l.children=g}return p(t.type,f,d,h,y,v,l)},p.isValidElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===s},p.REACT_ELEMENT_TYPE=s,t.exports=p},function(t,e,n){"use strict";t.exports=n(33)},function(t,e,n){"use strict";function o(t,e,n,o,r,i,a,u){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,u],p=0;s=new Error(e.replace(/%s/g,function(){return c[p++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}t.exports=o},function(t,e){"use strict";function n(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,o=0;o<e;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var r=new Error(n);throw r.name="Invariant Violation",r.framesToPop=1,r}t.exports=n},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function o(){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;var o=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==o.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}var r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(t,e){for(var o,a,u=n(t),s=1;s<arguments.length;s++){o=Object(arguments[s]);for(var c in o)r.call(o,c)&&(u[c]=o[c]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(o);for(var p=0;p<a.length;p++)i.call(o,a[p])&&(u[a[p]]=o[a[p]])}}return u}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=n(3),c=o(s),p=n(8),l=function(t){function e(){return i(this,e),a(this,t.apply(this,arguments))}return u(e,t),e.prototype.getChildContext=function(){return{history:this.props.historyContext}},e.prototype.render=function(){var t=this.props,e=t.historyContext,n=t.children,o=e.action,i=e.location,a=r(e,["action","location"]);return n({history:a,action:o,location:i})},e}(c["default"].Component);l.propTypes={historyContext:p.historyContext.isRequired,children:s.PropTypes.func.isRequired},l.childContextTypes={history:p.historyContext.isRequired},e["default"]=l},function(t,e,n){"use strict";e.__esModule=!0,e.historyContext=e.location=e.action=void 0;var o=n(3),r=e.action=o.PropTypes.oneOf(["PUSH","REPLACE","POP"]),i=e.location=o.PropTypes.shape({path:o.PropTypes.string.isRequired,state:o.PropTypes.object,key:o.PropTypes.string});e.historyContext=o.PropTypes.shape({action:r.isRequired,location:i.isRequired,block:o.PropTypes.func.isRequired,push:o.PropTypes.func.isRequired,replace:o.PropTypes.func.isRequired,go:o.PropTypes.func.isRequired,goBack:o.PropTypes.func.isRequired,goForward:o.PropTypes.func.isRequired,canGo:o.PropTypes.func})},function(t,e){"use strict";function n(t){return function(){return t}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,n){"use strict";var o={};t.exports=o},function(t,e,n){"use strict";var o=function(t,e,n,o,r,i,a,u){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,r,i,a,u],p=0;s=new Error(e.replace(/%s/g,function(){return c[p++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};t.exports=o},function(t,e,n){"use strict";function o(t,e,n){this.props=t,this.context=e,this.refs=a,this.updater=n||i}var r=n(5),i=n(13),a=(n(21),n(10));n(4),n(1);o.prototype.isReactComponent={},o.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t?r("85"):void 0,this.updater.enqueueSetState(this,t),e&&this.updater.enqueueCallback(this,e,"setState")},o.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")};t.exports=o},function(t,e,n){"use strict";function o(t,e){}var r=(n(1),{isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){o(t,"forceUpdate")},enqueueReplaceState:function(t,e){o(t,"replaceState")},enqueueSetState:function(t,e){o(t,"setState")}});t.exports=r},function(t,e,n){"use strict";var o=function(){};t.exports=o},function(t,e){"use strict";e.__esModule=!0;e.addEventListener=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},e.supportsHistory=function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)},e.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},e.supportsPopStateOnHashChange=function(){return window.navigator.userAgent.indexOf("Trident")===-1}},function(t,e){"use strict";e.__esModule=!0;e.createKey=function(t){return Math.random().toString(36).substr(2,t)}},function(t,e){"use strict";e.__esModule=!0;e.stripPrefix=function(t,e){return 0===e.indexOf(t)?e.substring(t.length):e}},function(t,e,n){"use strict";var o=n(4),r=function(t){var e,n={};t instanceof Object&&!Array.isArray(t)?void 0:o(!1);for(e in t)t.hasOwnProperty(e)&&(n[e]=e);return n};t.exports=r},function(t,e){"use strict";var n={current:null};t.exports=n},function(t,e,n){"use strict";var o={};t.exports=o},function(t,e,n){"use strict";var o=!1;t.exports=o},function(t,e){"use strict";function n(t){var e=t&&(o&&t[o]||t[r]);if("function"==typeof e)return e}var o="function"==typeof Symbol&&Symbol.iterator,r="@@iterator";t.exports=n},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.Forward=e.Back=e.Pop=e.Replace=e.Push=void 0;var u=n(3),s=o(u),c=n(8),p=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.performAction=function(){this.props.perform(this.context.history)},e.prototype.componentDidMount=function(){this.performAction()},e.prototype.componentDidUpdate=function(){this.performAction()},e.prototype.render=function(){return null},e}(s["default"].Component);p.contextTypes={history:c.historyContext.isRequired},p.propTypes={perform:u.PropTypes.func.isRequired};var l=e.Push=function(t){var e=t.path,n=t.state;return s["default"].createElement(p,{perform:function(t){return t.push(e,n)}})};l.propTypes={path:u.PropTypes.string,state:u.PropTypes.any};var f=e.Replace=function(t){var e=t.path,n=t.state;return s["default"].createElement(p,{perform:function(t){return t.replace(e,n)}})};f.propTypes=l.propTypes;var d=e.Pop=function(t){var e=t.go;return s["default"].createElement(p,{perform:function(t){return t.go(e)}})};d.propTypes={go:u.PropTypes.number},d.defaultProps={go:-1};e.Back=function(){return s["default"].createElement(p,{perform:function(t){return t.goBack()}})},e.Forward=function(){return s["default"].createElement(p,{perform:function(t){return t.goForward()}})}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},s=n(14),c=o(s),p=n(11),l=o(p),f=n(3),d=o(f),h=n(16),y=n(7),v=o(y),m=n(15),b=n(17),g="popstate",P="hashchange",w=function(){try{return window.history.state||{}}catch(t){return{}}},E=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,s=Array(u),p=0;p<u;p++)s[p]=arguments[p];return n=o=i(this,t.call.apply(t,[this].concat(s))),o.state={action:null,location:null,allKeys:null},o.block=function(t){return(0,l["default"])("string"==typeof t||"function"==typeof t,"A <BrowserHistory> prompt must be a string or a function"),(0,c["default"])(null==o.prompt,"<BrowserHistory> supports only one <Prompt> at a time"),o.prompt=t,function(){o.prompt===t&&(o.prompt=null)}},o.push=function(t,e){var n="PUSH",r=o.createKey(),i={path:t,state:e,key:r};o.confirmTransitionTo(n,i,function(a){if(a){var u=o.props.basename+t;o.supportsHistory?(window.history.pushState({key:r,state:e},null,u),o.setState(function(t){var e=t.allKeys,o=e.indexOf(t.location.key),r=e.slice(0,o===-1?0:o+1);return r.push(i.key),{action:n,location:i,allKeys:r}})):((0,c["default"])(void 0===e,"<BrowserHistory> cannot push state in browsers that do not support HTML5 history"),window.location.href=u)}})},o.replace=function(t,e){var n="REPLACE",r=o.createKey(),i={path:t,state:e,key:r};o.confirmTransitionTo(n,i,function(a){if(a){var u=o.props.basename+t;o.supportsHistory?(window.history.replaceState({key:r,state:e},null,u),o.setState(function(t){var e=t.allKeys.slice(0),o=e.indexOf(t.location.key);return o!==-1&&(e[o]=i.key),{action:n,location:i,allKeys:e}})):((0,c["default"])(void 0===e,"<BrowserHistory> cannot replace state in browsers that do not support HTML5 history"),window.location.replace(u))}})},o.go=function(t){window.history.go(t)},o.goBack=function(){return o.go(-1)},o.goForward=function(){return o.go(1)},o.handlePopState=function(t){if(void 0!==t.state){var e="POP",n=o.createLocation(t.state);o.forceNextPop?(o.forceNextPop=!1,o.forceUpdate()):o.confirmTransitionTo(e,n,function(t){t?o.setState({action:e,location:n}):o.revertPop(n)})}},o.handleHashChange=function(){var t="POP",e=o.createLocation(w());o.forceNextPop?(o.forceNextPop=!1,o.forceUpdate()):o.confirmTransitionTo(t,e,function(n){n?o.setState({action:t,location:e}):o.revertPop(e)})},a=n,i(o,a)}return a(e,t),e.prototype.createKey=function(){return(0,h.createKey)(this.props.keyLength)},e.prototype.createLocation=function(t){var e=t||{},n=e.key,o=e.state,r=window.location,i=r.pathname,a=r.search,u=r.hash,s=i+a+u,c=this.props.basename;return c&&(s=(0,b.stripPrefix)(c,s)),{path:s,state:o,key:n}},e.prototype.confirmTransitionTo=function(t,e,n){var o=this.prompt;o?("function"==typeof o&&(o=o(e,t)),this.props.getUserConfirmation(o,n)):n(!0)},e.prototype.revertPop=function(t){var e=this.state,n=e.location,o=e.allKeys,r=o.indexOf(n.key);r===-1&&(r=0);var i=o.indexOf(t.key);i===-1&&(i=0);var a=r-i;a&&(this.forceNextPop=!0,window.history.go(a))},e.prototype.componentWillMount=function(){if("object"===("undefined"==typeof window?"undefined":u(window))){this.supportsHistory=(0,m.supportsHistory)(),this.needsHashChangeListener=!(0,m.supportsPopStateOnHashChange)();var t=this.createLocation(w());this.setState({action:"POP",location:t,allKeys:[t.key]})}else(0,c["default"])(!1,"<BrowserHistory> works only in DOM environments")},e.prototype.componentDidMount=function(){(0,m.addEventListener)(window,g,this.handlePopState),this.needsHashChangeListener&&(0,m.addEventListener)(window,P)},e.prototype.componentWillUnmount=function(){(0,m.removeEventListener)(window,g,this.handlePopState),this.needsHashChangeListener&&(0,m.removeEventListener)(window,P,this.handleHashChange)},e.prototype.render=function(){var t=this.props.children,e=this.state,n=e.action,o=e.location,r={action:n,location:o,block:this.block,push:this.push,replace:this.replace,go:this.go,goBack:this.goBack,goForward:this.goForward};return d["default"].createElement(v["default"],{historyContext:r,children:t})},e}(d["default"].Component);E.propTypes={basename:f.PropTypes.string,children:f.PropTypes.func.isRequired,getUserConfirmation:f.PropTypes.func,keyLength:f.PropTypes.number},E.defaultProps={basename:"",keyLength:6,getUserConfirmation:function(t,e){e(window.confirm(t))}},e["default"]=E},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},s=n(14),c=o(s),p=n(11),l=o(p),f=n(3),d=o(f),h=n(7),y=o(h),v=n(15),m=n(26),b=n(17),g="hashchange",P=function(t){return"/"===t.charAt(0)?t:"/"+t},w={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!"+P(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substring(1):t}},noslash:{encodePath:function(t){return"/"===t.charAt(0)?t.substring(1):t},decodePath:P},slash:{encodePath:P,decodePath:P}},E=function(){var t=window.location.href,e=t.indexOf("#");return e===-1?"":t.substring(e+1)},x=function(t){return window.location.hash=t},_=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)},O=function(t){function e(){var n,o,a;r(this,e);for(var s=arguments.length,p=Array(s),f=0;f<s;f++)p[f]=arguments[f];return n=o=i(this,t.call.apply(t,[this].concat(p))),o.state={action:null,location:null,allPaths:null},o.block=function(t){return(0,l["default"])("string"==typeof t||"function"==typeof t,"A <HashHistory> prompt must be a string or a function"),(0,c["default"])(null==o.prompt,"<HashHistory> supports only one <Prompt> at a time"),o.prompt=t,function(){o.prompt===t&&(o.prompt=null)}},o.push=function(t,e){(0,c["default"])(void 0===e,"<HashHistory> cannot push state; it will be dropped");var n="PUSH",r={path:t};o.confirmTransitionTo(n,r,function(e){if(e){var i=o.encodePath(o.props.basename+t),a=E()!==i;a&&(o.ignorePath=t,x(i)),o.setState(function(t){var e=t.allPaths,o=e.lastIndexOf(t.location.path),i=e.slice(0,o===-1?0:o+1);return i.push(r.path),{action:n,location:r,allPaths:i}})}})},o.replace=function(t,e){(0,c["default"])(void 0===e,"<HashHistory> cannot replace state; it will be dropped");var n="REPLACE",r={path:t};o.confirmTransitionTo(n,r,function(e){if(e){var i=o.encodePath(o.props.basename+t),a=E()!==i;a&&(o.ignorePath=t,_(i)),o.setState(function(t){var e=t.allPaths.slice(0),o=e.indexOf(t.location.path);return o!==-1&&(e[o]=r.path),{action:n,location:r,allPaths:e}})}})},o.go=function(t){(0,c["default"])(o.goIsSupportedWithoutReload,"<HashHistory> go(n) causes a full page reload in this browser"),window.history.go(t)},o.goBack=function(){return o.go(-1)},o.goForward=function(){return o.go(1)},o.handleHashChange=function(){var t=E(),e=o.encodePath(t);if(t!==e)_(e);else{var n=function(){var t="POP",e=o.createLocation(),n=o.state.location;return!o.forceNextPop&&(0,m.locationsAreEqual)(n,e)?{v:void 0}:o.ignorePath===e.path?{v:void 0}:(o.ignorePath=null,void(o.forceNextPop?(o.forceNextPop=!1,o.forceUpdate()):o.confirmTransitionTo(t,e,function(n){n?o.setState({action:t,location:e}):o.revertPop(e)})))}();if("object"===("undefined"==typeof n?"undefined":u(n)))return n.v}},a=n,i(o,a)}return a(e,t),e.prototype.decodePath=function(t){return w[this.props.hashType].decodePath(t)},e.prototype.encodePath=function(t){return w[this.props.hashType].encodePath(t)},e.prototype.createLocation=function(){var t=this.decodePath(E()),e=this.props.basename;return e&&(t=(0,b.stripPrefix)(e,t)),{path:t}},e.prototype.confirmTransitionTo=function(t,e,n){var o=this.prompt;o?("function"==typeof o&&(o=o(e,t)),this.props.getUserConfirmation(o,n)):n(!0)},e.prototype.revertPop=function(t){var e=this.state,n=e.location,o=e.allPaths,r=o.lastIndexOf(n.path);r===-1&&(r=0);var i=o.lastIndexOf(t.path);i===-1&&(i=0);var a=r-i;a&&(this.forceNextPop=!0,window.history.go(a))},e.prototype.componentWillMount=function(){if("object"===("undefined"==typeof window?"undefined":u(window))){this.goIsSupportedWithoutReload=(0,v.supportsGoWithoutReloadUsingHash)();var t=E(),e=this.encodePath(t);t!==e&&_(e);var n=this.createLocation();this.setState({action:"POP",location:n,allPaths:[n.path]})}else(0,c["default"])(!1,"<HashHistory> works only in DOM environments")},e.prototype.componentDidMount=function(){(0,v.addEventListener)(window,g,this.handleHashChange)},e.prototype.componentWillUnmount=function(){(0,v.removeEventListener)(window,g,this.handleHashChange)},e.prototype.render=function(){var t=this.props.children,e=this.state,n=e.action,o=e.location,r={action:n,location:o,block:this.block,push:this.push,replace:this.replace,go:this.go,goBack:this.goBack,goForward:this.goForward};return d["default"].createElement(y["default"],{historyContext:r,children:t})},e}(d["default"].Component);O.propTypes={basename:f.PropTypes.string,children:f.PropTypes.func.isRequired,getUserConfirmation:f.PropTypes.func,hashType:f.PropTypes.oneOf(Object.keys(w))},O.defaultProps={basename:"",hashType:"slash",getUserConfirmation:function(t,e){e(window.confirm(t))}},e["default"]=O},function(t,e){"use strict";e.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=function r(t,e){if(null==t)return t==e;var o="undefined"==typeof t?"undefined":n(t),i="undefined"==typeof e?"undefined":n(e);if(o!==i)return!1;if(Array.isArray(t))return!(!Array.isArray(e)||t.length!==e.length)&&t.every(function(t,n){return r(t,e[n])});if("object"===o){var a=Object.keys(t),u=Object.keys(e);return a.length===u.length&&a.every(function(n){return r(t[n],e[n])})}return t===e};e.locationsAreEqual=function(t,e){return t.path===e.path&&t.key===e.key&&o(t.state,e.state)}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(14),s=o(u),c=n(11),p=o(c),l=n(3),f=o(l),d=n(16),h=n(7),y=o(h),v=function(t,e,n){return Math.min(Math.max(t,e),n)},m=function(t){function e(){var n,o,a;r(this,e);for(var u=arguments.length,c=Array(u),l=0;l<u;l++)c[l]=arguments[l];return n=o=i(this,t.call.apply(t,[this].concat(c))),o.state={prevIndex:null,action:null,index:null,entries:null},o.block=function(t){return(0,p["default"])("string"==typeof t||"function"==typeof t,"A <MemoryHistory> prompt must be a string or a function"),(0,s["default"])(null==o.prompt,"<MemoryHistory> supports only one <Prompt> at a time"),o.prompt=t,function(){o.prompt===t&&(o.prompt=null)}},o.push=function(t,e){var n="PUSH",r=o.createKey(),i={path:t,state:e,key:r};o.confirmTransitionTo(n,i,function(t){t&&o.setState(function(t){var e=t.index,o=t.entries.slice(0),r=e+1;return o.length>r?o.splice(r,o.length-r,i):o.push(i),{prevIndex:t.index,action:n,index:r,entries:o}})})},o.replace=function(t,e){var n="REPLACE",r=o.createKey(),i={path:t,state:e,key:r};o.confirmTransitionTo(n,i,function(t){t&&o.setState(function(t){var e=t.index,o=t.entries.slice(0);return o[e]=i,{prevIndex:t.index,action:n,entries:o}})})},o.go=function(t){var e=o.state,n=e.index,r=e.entries,i=v(n+t,0,r.length-1),a="POP",u=r[i];o.confirmTransitionTo(a,u,function(t){t?o.setState({prevIndex:n,action:a,index:i}):o.forceUpdate()})},o.goBack=function(){return o.go(-1)},o.goForward=function(){return o.go(1)},o.canGo=function(t){var e=o.state,n=e.index,r=e.entries,i=n+t;return i>=0&&i<r.length},a=n,i(o,a)}return a(e,t),e.prototype.createKey=function(){return(0,d.createKey)(this.props.keyLength)},e.prototype.confirmTransitionTo=function(t,e,n){var o=this.prompt;o?("function"==typeof o&&(o=o(e,t)),this.props.getUserConfirmation?this.props.getUserConfirmation(o,n):(0,s["default"])(!1,"<MemoryHistory> needs a getUserConfirmation prop in order to use a <Prompt>")):n(!0)},e.prototype.componentWillMount=function(){var t=this.props,e=t.initialEntries,n=t.initialIndex,o=e.map(function(t){return"string"==typeof t?{path:t}:t});this.setState({action:"POP",index:v(n,0,e.length-1),entries:o})},e.prototype.render=function(){var t=this.props.children,e=this.state,n=e.action,o=e.index,r=e.entries,i=r[o],a={action:n,location:i,block:this.block,push:this.push,replace:this.replace,go:this.go,goBack:this.goBack,goForward:this.goForward,canGo:this.canGo};return f["default"].createElement(y["default"],{historyContext:a,children:t})},e}(f["default"].Component);m.propTypes={children:l.PropTypes.func.isRequired,getUserConfirmation:l.PropTypes.func,initialEntries:l.PropTypes.array,initialIndex:l.PropTypes.number,keyLength:l.PropTypes.number},m.defaultProps={initialEntries:["/"],initialIndex:0,keyLength:6},e["default"]=m},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var u=n(3),s=o(u),c=n(8),p=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.block=function(){this.teardownPrompt||(this.teardownPrompt=this.context.history.block(this.props.message))},e.prototype.unblock=function(){this.teardownPrompt&&(this.teardownPrompt(),this.teardownPrompt=null)},e.prototype.componentWillMount=function(){this.props.when&&this.block()},e.prototype.componentWillReceiveProps=function(t){t.when?this.block():this.unblock()},e.prototype.componentWillUnmount=function(){this.unblock()},e.prototype.render=function(){return null},e}(s["default"].Component);p.contextTypes={history:c.historyContext.isRequired},p.propTypes={when:u.PropTypes.bool,message:u.PropTypes.oneOfType([u.PropTypes.func,u.PropTypes.string]).isRequired},p.defaultProps={when:!0},e["default"]=p},function(t,e){"use strict";var n=function(t){var e;for(e in t)if(t.hasOwnProperty(e))return e;return null};t.exports=n},function(t,e){"use strict";function n(t,e,n){if(!t)return null;var r={};for(var i in t)o.call(t,i)&&(r[i]=e.call(n,t[i],i,t));return r}var o=Object.prototype.hasOwnProperty;t.exports=n},function(t,e){"use strict";function n(t){var e=/[=:]/g,n={"=":"=0",":":"=2"},o=(""+t).replace(e,function(t){return n[t]});return"$"+o}function o(t){var e=/(=0|=2)/g,n={"=0":"=","=2":":"},o="."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1);return(""+o).replace(e,function(t){return n[t]})}var r={escape:n,unescape:o};t.exports=r},function(t,e,n){"use strict";var o=n(5),r=(n(4),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),i=function(t,e){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,t,e),o}return new n(t,e)},a=function(t,e,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,t,e,n),r}return new o(t,e,n)},u=function(t,e,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,t,e,n,o),i}return new r(t,e,n,o)},s=function(t,e,n,o,r){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,t,e,n,o,r),a}return new i(t,e,n,o,r)},c=function(t){var e=this;t instanceof e?void 0:o("25"),t.destructor(),e.instancePool.length<e.poolSize&&e.instancePool.push(t)},p=10,l=r,f=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||l,n.poolSize||(n.poolSize=p),n.release=c,n},d={addPoolingTo:f,oneArgumentPooler:r,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:u,fiveArgumentPooler:s};t.exports=d},function(t,e,n){"use strict";var o=n(6),r=n(34),i=n(12),a=n(40),u=n(35),s=n(36),c=n(2),p=n(38),l=n(41),f=n(42),d=(n(1),c.createElement),h=c.createFactory,y=c.cloneElement,v=o,m={Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:f},Component:i,PureComponent:a,createElement:d,cloneElement:y,isValidElement:c.isValidElement,PropTypes:p,createClass:u.createClass,createFactory:h,createMixin:function(t){return t},DOM:s,version:l,__spread:v};t.exports=m},function(t,e,n){"use strict";function o(t){return(""+t).replace(P,"$&/")}function r(t,e){this.func=t,this.context=e,this.count=0}function i(t,e,n){var o=t.func,r=t.context;o.call(r,e,t.count++)}function a(t,e,n){if(null==t)return t;var o=r.getPooled(e,n);m(t,i,o),r.release(o)}function u(t,e,n,o){this.result=t,this.keyPrefix=e,this.func=n,this.context=o,this.count=0}function s(t,e,n){var r=t.result,i=t.keyPrefix,a=t.func,u=t.context,s=a.call(u,e,t.count++);Array.isArray(s)?c(s,r,n,v.thatReturnsArgument):null!=s&&(y.isValidElement(s)&&(s=y.cloneAndReplaceKey(s,i+(!s.key||e&&e.key===s.key?"":o(s.key)+"/")+n)),r.push(s))}function c(t,e,n,r,i){var a="";null!=n&&(a=o(n)+"/");var c=u.getPooled(e,a,r,i);m(t,s,c),u.release(c)}function p(t,e,n){if(null==t)return t;var o=[];return c(t,o,null,e,n),o}function l(t,e,n){return null}function f(t,e){return m(t,l,null)}function d(t){var e=[];return c(t,e,null,v.thatReturnsArgument),e}var h=n(32),y=n(2),v=n(9),m=n(43),b=h.twoArgumentPooler,g=h.fourArgumentPooler,P=/\/+/g;r.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(r,b),u.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(u,g);var w={forEach:a,map:p,mapIntoWithKeyPrefixInternal:c,count:f,toArray:d};t.exports=w},function(t,e,n){"use strict";function o(t,e){var n=E.hasOwnProperty(e)?E[e]:null;_.hasOwnProperty(e)&&(n!==P.OVERRIDE_BASE?l("73",e):void 0),t&&(n!==P.DEFINE_MANY&&n!==P.DEFINE_MANY_MERGED?l("74",e):void 0)}function r(t,e){if(e){"function"==typeof e?l("75"):void 0,h.isValidElement(e)?l("76"):void 0;var n=t.prototype,r=n.__reactAutoBindPairs;e.hasOwnProperty(g)&&x.mixins(t,e.mixins);for(var i in e)if(e.hasOwnProperty(i)&&i!==g){var a=e[i],c=n.hasOwnProperty(i);if(o(c,i),x.hasOwnProperty(i))x[i](t,a);else{var p=E.hasOwnProperty(i),f="function"==typeof a,d=f&&!p&&!c&&e.autobind!==!1;if(d)r.push(i,a),n[i]=a;else if(c){var y=E[i];!p||y!==P.DEFINE_MANY_MERGED&&y!==P.DEFINE_MANY?l("77",y,i):void 0,y===P.DEFINE_MANY_MERGED?n[i]=u(n[i],a):y===P.DEFINE_MANY&&(n[i]=s(n[i],a))}else n[i]=a}}}else;}function i(t,e){if(e)for(var n in e){var o=e[n];if(e.hasOwnProperty(n)){var r=n in x;r?l("78",n):void 0;var i=n in t;i?l("79",n):void 0,t[n]=o; | ||
}}}function a(t,e){t&&e&&"object"==typeof t&&"object"==typeof e?void 0:l("80");for(var n in e)e.hasOwnProperty(n)&&(void 0!==t[n]?l("81",n):void 0,t[n]=e[n]);return t}function u(t,e){return function(){var n=t.apply(this,arguments),o=e.apply(this,arguments);if(null==n)return o;if(null==o)return n;var r={};return a(r,n),a(r,o),r}}function s(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function c(t,e){var n=e.bind(t);return n}function p(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var o=e[n],r=e[n+1];t[o]=c(t,r)}}var l=n(5),f=n(6),d=n(12),h=n(2),y=(n(37),n(20),n(13)),v=n(10),m=(n(4),n(18)),b=n(29),g=(n(1),b({mixins:null})),P=m({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),w=[],E={mixins:P.DEFINE_MANY,statics:P.DEFINE_MANY,propTypes:P.DEFINE_MANY,contextTypes:P.DEFINE_MANY,childContextTypes:P.DEFINE_MANY,getDefaultProps:P.DEFINE_MANY_MERGED,getInitialState:P.DEFINE_MANY_MERGED,getChildContext:P.DEFINE_MANY_MERGED,render:P.DEFINE_ONCE,componentWillMount:P.DEFINE_MANY,componentDidMount:P.DEFINE_MANY,componentWillReceiveProps:P.DEFINE_MANY,shouldComponentUpdate:P.DEFINE_ONCE,componentWillUpdate:P.DEFINE_MANY,componentDidUpdate:P.DEFINE_MANY,componentWillUnmount:P.DEFINE_MANY,updateComponent:P.OVERRIDE_BASE},x={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)r(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=f({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=f({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=u(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=f({},t.propTypes,e)},statics:function(t,e){i(t,e)},autobind:function(){}},_={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t),e&&this.updater.enqueueCallback(this,e,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},O=function(){};f(O.prototype,d.prototype,_);var T={createClass:function(t){var e=function(t,n,o){this.__reactAutoBindPairs.length&&p(this),this.props=t,this.context=n,this.refs=v,this.updater=o||y,this.state=null;var r=this.getInitialState?this.getInitialState():null;"object"!=typeof r||Array.isArray(r)?l("82",e.displayName||"ReactCompositeComponent"):void 0,this.state=r};e.prototype=new O,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],w.forEach(r.bind(null,e)),r(e,t),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),e.prototype.render?void 0:l("83");for(var n in E)e.prototype[n]||(e.prototype[n]=null);return e},injection:{injectMixin:function(t){w.push(t)}}};t.exports=T},function(t,e,n){"use strict";function o(t){return r.createFactory(t)}var r=n(2),i=n(30),a=i({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},o);t.exports=a},function(t,e,n){"use strict";var o=n(18),r=o({prop:null,context:null,childContext:null});t.exports=r},function(t,e,n){"use strict";function o(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function r(t){function e(e,n,o,r,i,a,u){r=r||O,a=a||o;if(null==n[o]){var s=w[i];return e?new Error("Required "+s+" `"+a+"` was not specified in "+("`"+r+"`.")):null}return t(n,o,r,i,a)}var n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n}function i(t){function e(e,n,o,r,i,a){var u=e[n],s=m(u);if(s!==t){var c=w[r],p=b(u);return new Error("Invalid "+c+" `"+i+"` of type "+("`"+p+"` supplied to `"+o+"`, expected ")+("`"+t+"`."))}return null}return r(e)}function a(){return r(x.thatReturns(null))}function u(t){function e(e,n,o,r,i){if("function"!=typeof t)return new Error("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=e[n];if(!Array.isArray(a)){var u=w[r],s=m(a);return new Error("Invalid "+u+" `"+i+"` of type "+("`"+s+"` supplied to `"+o+"`, expected an array."))}for(var c=0;c<a.length;c++){var p=t(a,c,o,r,i+"["+c+"]",E);if(p instanceof Error)return p}return null}return r(e)}function s(){function t(t,e,n,o,r){var i=t[e];if(!P.isValidElement(i)){var a=w[o],u=m(i);return new Error("Invalid "+a+" `"+r+"` of type "+("`"+u+"` supplied to `"+n+"`, expected a single ReactElement."))}return null}return r(t)}function c(t){function e(e,n,o,r,i){if(!(e[n]instanceof t)){var a=w[r],u=t.name||O,s=g(e[n]);return new Error("Invalid "+a+" `"+i+"` of type "+("`"+s+"` supplied to `"+o+"`, expected ")+("instance of `"+u+"`."))}return null}return r(e)}function p(t){function e(e,n,r,i,a){for(var u=e[n],s=0;s<t.length;s++)if(o(u,t[s]))return null;var c=w[i],p=JSON.stringify(t);return new Error("Invalid "+c+" `"+a+"` of value `"+u+"` "+("supplied to `"+r+"`, expected one of "+p+"."))}return Array.isArray(t)?r(e):x.thatReturnsNull}function l(t){function e(e,n,o,r,i){if("function"!=typeof t)return new Error("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var a=e[n],u=m(a);if("object"!==u){var s=w[r];return new Error("Invalid "+s+" `"+i+"` of type "+("`"+u+"` supplied to `"+o+"`, expected an object."))}for(var c in a)if(a.hasOwnProperty(c)){var p=t(a,c,o,r,i+"."+c,E);if(p instanceof Error)return p}return null}return r(e)}function f(t){function e(e,n,o,r,i){for(var a=0;a<t.length;a++){var u=t[a];if(null==u(e,n,o,r,i,E))return null}var s=w[r];return new Error("Invalid "+s+" `"+i+"` supplied to "+("`"+o+"`."))}return Array.isArray(t)?r(e):x.thatReturnsNull}function d(){function t(t,e,n,o,r){if(!y(t[e])){var i=w[o];return new Error("Invalid "+i+" `"+r+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(t)}function h(t){function e(e,n,o,r,i){var a=e[n],u=m(a);if("object"!==u){var s=w[r];return new Error("Invalid "+s+" `"+i+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."))}for(var c in t){var p=t[c];if(p){var l=p(a,c,o,r,i+"."+c,E);if(l)return l}}return null}return r(e)}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||P.isValidElement(t))return!0;var e=_(t);if(!e)return!1;var n,o=e.call(t);if(e!==t.entries){for(;!(n=o.next()).done;)if(!y(n.value))return!1}else for(;!(n=o.next()).done;){var r=n.value;if(r&&!y(r[1]))return!1}return!0;default:return!1}}function v(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function m(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":v(e,t)?"symbol":e}function b(t){var e=m(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function g(t){return t.constructor&&t.constructor.name?t.constructor.name:O}var P=n(2),w=n(20),E=n(39),x=n(9),_=n(22),O=(n(1),"<<anonymous>>"),T={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),symbol:i("symbol"),any:a(),arrayOf:u,element:s(),instanceOf:c,node:d(),objectOf:l,oneOf:p,oneOfType:f,shape:h};t.exports=T},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e,n){"use strict";function o(t,e,n){this.props=t,this.context=e,this.refs=s,this.updater=n||u}function r(){}var i=n(6),a=n(12),u=n(13),s=n(10);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,t.exports=o},function(t,e){"use strict";t.exports="15.3.0"},function(t,e,n){"use strict";function o(t){return i.isValidElement(t)?void 0:r("23"),t}var r=n(5),i=n(2);n(4);t.exports=o},function(t,e,n){"use strict";function o(t,e){return t&&"object"==typeof t&&null!=t.key?c.escape(t.key):e.toString(36)}function r(t,e,n,i){var f=typeof t;if("undefined"!==f&&"boolean"!==f||(t=null),null===t||"string"===f||"number"===f||u.isValidElement(t))return n(i,t,""===e?p+o(t,0):e),1;var d,h,y=0,v=""===e?p:e+l;if(Array.isArray(t))for(var m=0;m<t.length;m++)d=t[m],h=v+o(d,m),y+=r(d,h,n,i);else{var b=s(t);if(b){var g,P=b.call(t);if(b!==t.entries)for(var w=0;!(g=P.next()).done;)d=g.value,h=v+o(d,w++),y+=r(d,h,n,i);else for(;!(g=P.next()).done;){var E=g.value;E&&(d=E[1],h=v+c.escape(E[0])+l+o(d,0),y+=r(d,h,n,i))}}else if("object"===f){var x="",_=String(t);a("31","[object Object]"===_?"object with keys {"+Object.keys(t).join(", ")+"}":_,x)}}return y}function i(t,e,n){return null==t?0:r(t,"",e,n)}var a=n(5),u=(n(19),n(2)),s=n(22),c=(n(4),n(31)),p=(n(1),"."),l=":";t.exports=i}])}); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
252228
5283