react-github-corner
Advanced tools
Comparing version 0.1.0 to 0.2.0
'use strict'; | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
@@ -38,3 +38,3 @@ Object.defineProperty(exports, "__esModule", { | ||
var GithubCorner = (function (_Component) { | ||
var GithubCorner = function (_Component) { | ||
_inherits(GithubCorner, _Component); | ||
@@ -96,3 +96,3 @@ | ||
mainStyle.right = 0; | ||
armStyle.webkitTransformOrigin = '130px 106px'; | ||
armStyle.WebkitTransformOrigin = '130px 106px'; | ||
armStyle.transformOrigin = '130px 106px'; | ||
@@ -115,3 +115,3 @@ } | ||
return GithubCorner; | ||
})(_react.Component); | ||
}(_react.Component); | ||
@@ -118,0 +118,0 @@ exports.default = GithubCorner; |
@@ -1,8 +0,42 @@ | ||
## [HEAD] | ||
> Unreleased | ||
## [v2.0.0-rc2] | ||
- **Feature** Accept location descriptors in `createPath` and `createHref` ([#173]) | ||
- **Deprecation** Deprecate the `query` arg to `createPath` and `createHref` in favor of using location descriptor objects ([#173]) | ||
- Add back deprecation warnings | ||
[HEAD]: https://github.com/rackt/history/compare/latest...HEAD | ||
[v2.0.0-rc2]: https://github.com/rackt/history/compare/v2.0.0-rc1...v2.0.0-rc2 | ||
## [v2.0.0-rc1] | ||
> Jan 2, 2016 | ||
- **Bugfix:** Don't create empty entries in session storage ([#177]) | ||
[v2.0.0-rc1]: https://github.com/rackt/history/compare/v1.17.0...v2.0.0-rc1 | ||
[#177]: https://github.com/rackt/history/pull/177 | ||
## [v1.17.0] | ||
> Dec 19, 2015 | ||
- **Bugfix:** Don't throw in memory history when out of history entries ([#170]) | ||
- **Bugfix:** Fix the deprecation warnings on `createPath` and `createHref` ([#189]) | ||
[v1.17.0]: https://github.com/rackt/history/compare/v1.16.0...v1.17.0 | ||
[#170]: https://github.com/rackt/history/pull/170 | ||
[#189]: https://github.com/rackt/history/pull/189 | ||
## [v1.16.0] | ||
> Dec 10, 2015 | ||
- **Bugfix:** Silence all warnings that were introduced since 1.13 (see [rackt/react-router#2682]) | ||
- **Deprecation:** Deprecate the `createLocation` method in the top-level exports | ||
- **Deprecation:** Deprecate the `state` arg to `history.createLocation` | ||
[v1.16.0]: https://github.com/rackt/history/compare/v1.15.0...v1.16.0 | ||
[rackt/react-router#2682]: https://github.com/rackt/react-router/issues/2682 | ||
## [v1.15.0] | ||
> Dec 7, 2015 | ||
- **Feature:** Accept location descriptors in `createPath` and `createHref` ([#173]) | ||
- **Deprecation:** Deprecate the `query` arg to `createPath` and `createHref` in favor of using location descriptor objects ([#173]) | ||
[v1.15.0]: https://github.com/rackt/history/compare/v1.14.0...v1.15.0 | ||
[#173]: https://github.com/rackt/history/pull/173 | ||
@@ -16,3 +50,3 @@ | ||
- **Bugfix:** Disable browser history on Chrome iOS ([#146]) | ||
- **Bugfix:** Do not convert same-path PUSH to REPLACE if the hash has changed ([#167]) | ||
- **Bugfix:** Do not convert same-path PUSH to REPLACE if the hash has changed ([#167]) | ||
- Add ES2015 module build ([#152]) | ||
@@ -38,3 +72,3 @@ - Use query-string module instead of qs to save on bytes ([#121]) | ||
[#43]: https://github.com/rackt/history/pull/43 | ||
[#139]: https://github.com/rackt/history/pull/139 | ||
[#139]: https://github.com/rackt/history/pull/139 | ||
@@ -41,0 +75,0 @@ ## [v1.13.0] |
@@ -11,2 +11,3 @@ 'use strict'; | ||
import createDOMHistory from './createDOMHistory'; | ||
import parsePath from './parsePath'; | ||
@@ -49,3 +50,5 @@ /** | ||
return history.createLocation(path, state, undefined, key); | ||
var location = parsePath(path); | ||
return history.createLocation(_extends({}, location, { state: state }), undefined, key); | ||
} | ||
@@ -52,0 +55,0 @@ |
@@ -12,2 +12,3 @@ 'use strict'; | ||
import createDOMHistory from './createDOMHistory'; | ||
import parsePath from './parsePath'; | ||
@@ -72,3 +73,5 @@ function isAbsolutePath(path) { | ||
return history.createLocation(path, state, undefined, key); | ||
var location = parsePath(path); | ||
return history.createLocation(_extends({}, location, { state: state }), undefined, key); | ||
} | ||
@@ -75,0 +78,0 @@ |
@@ -5,2 +5,3 @@ 'use strict'; | ||
import warning from 'warning'; | ||
import deepEqual from 'deep-equal'; | ||
@@ -10,4 +11,4 @@ import { loopAsync } from './AsyncUtils'; | ||
import _createLocation from './createLocation'; | ||
import runTransitionHook from './runTransitionHook'; | ||
import parsePath from './parsePath'; | ||
import runTransitionHook from './runTransitionHook'; | ||
import deprecate from './deprecate'; | ||
@@ -148,7 +149,7 @@ | ||
function push(location) { | ||
transitionTo(createLocation(location, null, PUSH, createKey())); | ||
transitionTo(createLocation(location, PUSH, createKey())); | ||
} | ||
function replace(location) { | ||
transitionTo(createLocation(location, null, REPLACE, createKey())); | ||
transitionTo(createLocation(location, REPLACE, createKey())); | ||
} | ||
@@ -188,6 +189,17 @@ | ||
function createLocation(path, state, action) { | ||
var key = arguments.length <= 3 || arguments[3] === undefined ? createKey() : arguments[3]; | ||
function createLocation(location, action) { | ||
var key = arguments.length <= 2 || arguments[2] === undefined ? createKey() : arguments[2]; | ||
return _createLocation(path, state, action, key); | ||
if (typeof action === 'object') { | ||
process.env.NODE_ENV !== 'production' ? warning(false, 'The state (2nd) argument to history.createLocation is deprecated; use a ' + 'location descriptor instead') : undefined; | ||
if (typeof location === 'string') location = parsePath(location); | ||
location = _extends({}, location, { state: action }); | ||
action = key; | ||
key = arguments[3] || createKey(); | ||
} | ||
return _createLocation(location, action, key); | ||
} | ||
@@ -194,0 +206,0 @@ |
'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
import warning from 'warning'; | ||
import { POP } from './Actions'; | ||
@@ -8,15 +11,23 @@ import parsePath from './parsePath'; | ||
var location = arguments.length <= 0 || arguments[0] === undefined ? '/' : arguments[0]; | ||
var state = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; | ||
var action = arguments.length <= 2 || arguments[2] === undefined ? POP : arguments[2]; | ||
var key = arguments.length <= 3 || arguments[3] === undefined ? null : arguments[3]; | ||
var action = arguments.length <= 1 || arguments[1] === undefined ? POP : arguments[1]; | ||
var key = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2]; | ||
var _fourthArg = arguments.length <= 3 || arguments[3] === undefined ? null : arguments[3]; | ||
if (typeof location === 'string') location = parsePath(location); | ||
if (typeof action === 'object') { | ||
process.env.NODE_ENV !== 'production' ? warning(false, 'The state (2nd) argument to createLocation is deprecated; use a ' + 'location descriptor instead') : undefined; | ||
location = _extends({}, location, { state: action }); | ||
action = key || POP; | ||
key = _fourthArg; | ||
} | ||
var pathname = location.pathname || '/'; | ||
var search = location.search || ''; | ||
var hash = location.hash || ''; | ||
var state = location.state || null; | ||
// TODO: Deprecate passing state directly into createLocation. | ||
state = location.state || state; | ||
return { | ||
@@ -23,0 +34,0 @@ pathname: pathname, |
@@ -5,5 +5,7 @@ 'use strict'; | ||
import warning from 'warning'; | ||
import invariant from 'invariant'; | ||
import { PUSH, REPLACE, POP } from './Actions'; | ||
import createHistory from './createHistory'; | ||
import parsePath from './parsePath'; | ||
@@ -89,3 +91,5 @@ function createStateStorage(entries) { | ||
return history.createLocation(path, state, undefined, key); | ||
var location = parsePath(path); | ||
return history.createLocation(_extends({}, location, { state: state }), undefined, key); | ||
} | ||
@@ -100,3 +104,6 @@ | ||
if (n) { | ||
!canGo(n) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot go(%s) there is not enough history', n) : invariant(false) : undefined; | ||
if (!canGo(n)) { | ||
process.env.NODE_ENV !== 'production' ? warning(false, 'Cannot go(%s) there is not enough history', n) : undefined; | ||
return; | ||
} | ||
@@ -103,0 +110,0 @@ current += n; |
@@ -18,3 +18,7 @@ /*eslint-disable no-empty */ | ||
try { | ||
window.sessionStorage.setItem(createKey(key), JSON.stringify(state)); | ||
if (state == null) { | ||
window.sessionStorage.removeItem(createKey(key)); | ||
} else { | ||
window.sessionStorage.setItem(createKey(key), JSON.stringify(state)); | ||
} | ||
} catch (error) { | ||
@@ -21,0 +25,0 @@ if (error.name === SecurityError) { |
'use strict'; | ||
import deprecate from './deprecate'; | ||
import _createLocation from './createLocation'; | ||
import _createHistory from './createBrowserHistory'; | ||
@@ -9,4 +11,2 @@ export { _createHistory as createHistory }; | ||
export { _createMemoryHistory as createMemoryHistory }; | ||
import _createLocation from './createLocation'; | ||
export { _createLocation as createLocation }; | ||
import _useBasename from './useBasename'; | ||
@@ -25,2 +25,4 @@ export { _useBasename as useBasename }; | ||
import _enableQueries from './enableQueries'; | ||
export { _enableQueries as enableQueries }; | ||
export { _enableQueries as enableQueries }; | ||
var createLocation = deprecate(_createLocation, 'Using createLocation without a history instance is deprecated; please use history.createLocation instead'); | ||
export { createLocation }; |
@@ -107,3 +107,4 @@ 'use strict'; | ||
function createPath(location, query) { | ||
process.env.NODE_ENV !== 'production' ? warning(query, 'the query argument to createPath is deprecated; use a location descriptor instead') : undefined; | ||
process.env.NODE_ENV !== 'production' ? warning(!query, 'the query argument to createPath is deprecated; use a location descriptor instead') : undefined; | ||
return history.createPath(appendQuery(location, query || location.query)); | ||
@@ -113,3 +114,4 @@ } | ||
function createHref(location, query) { | ||
process.env.NODE_ENV !== 'production' ? warning(query, 'the query argument to createHref is deprecated; use a location descriptor instead') : undefined; | ||
process.env.NODE_ENV !== 'production' ? warning(!query, 'the query argument to createHref is deprecated; use a location descriptor instead') : undefined; | ||
return history.createHref(appendQuery(location, query || location.query)); | ||
@@ -116,0 +118,0 @@ } |
@@ -25,2 +25,6 @@ 'use strict'; | ||
var _parsePath = require('./parsePath'); | ||
var _parsePath2 = _interopRequireDefault(_parsePath); | ||
/** | ||
@@ -62,3 +66,5 @@ * Creates and returns a history object that uses HTML5's history API | ||
return history.createLocation(path, state, undefined, key); | ||
var location = _parsePath2['default'](path); | ||
return history.createLocation(_extends({}, location, { state: state }), undefined, key); | ||
} | ||
@@ -65,0 +71,0 @@ |
@@ -29,2 +29,6 @@ 'use strict'; | ||
var _parsePath = require('./parsePath'); | ||
var _parsePath2 = _interopRequireDefault(_parsePath); | ||
function isAbsolutePath(path) { | ||
@@ -88,3 +92,5 @@ return typeof path === 'string' && path.charAt(0) === '/'; | ||
return history.createLocation(path, state, undefined, key); | ||
var location = _parsePath2['default'](path); | ||
return history.createLocation(_extends({}, location, { state: state }), undefined, key); | ||
} | ||
@@ -91,0 +97,0 @@ |
@@ -9,2 +9,6 @@ 'use strict'; | ||
var _warning = require('warning'); | ||
var _warning2 = _interopRequireDefault(_warning); | ||
var _deepEqual = require('deep-equal'); | ||
@@ -22,2 +26,6 @@ | ||
var _runTransitionHook = require('./runTransitionHook'); | ||
var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); | ||
var _parsePath = require('./parsePath'); | ||
@@ -27,6 +35,2 @@ | ||
var _runTransitionHook = require('./runTransitionHook'); | ||
var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); | ||
var _deprecate = require('./deprecate'); | ||
@@ -169,7 +173,7 @@ | ||
function push(location) { | ||
transitionTo(createLocation(location, null, _Actions.PUSH, createKey())); | ||
transitionTo(createLocation(location, _Actions.PUSH, createKey())); | ||
} | ||
function replace(location) { | ||
transitionTo(createLocation(location, null, _Actions.REPLACE, createKey())); | ||
transitionTo(createLocation(location, _Actions.REPLACE, createKey())); | ||
} | ||
@@ -209,6 +213,17 @@ | ||
function createLocation(path, state, action) { | ||
var key = arguments.length <= 3 || arguments[3] === undefined ? createKey() : arguments[3]; | ||
function createLocation(location, action) { | ||
var key = arguments.length <= 2 || arguments[2] === undefined ? createKey() : arguments[2]; | ||
return _createLocation3['default'](path, state, action, key); | ||
if (typeof action === 'object') { | ||
process.env.NODE_ENV !== 'production' ? _warning2['default'](false, 'The state (2nd) argument to history.createLocation is deprecated; use a ' + 'location descriptor instead') : undefined; | ||
if (typeof location === 'string') location = _parsePath2['default'](location); | ||
location = _extends({}, location, { state: action }); | ||
action = key; | ||
key = arguments[3] || createKey(); | ||
} | ||
return _createLocation3['default'](location, action, key); | ||
} | ||
@@ -215,0 +230,0 @@ |
@@ -5,4 +5,10 @@ 'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _warning = require('warning'); | ||
var _warning2 = _interopRequireDefault(_warning); | ||
var _Actions = require('./Actions'); | ||
@@ -16,15 +22,23 @@ | ||
var location = arguments.length <= 0 || arguments[0] === undefined ? '/' : arguments[0]; | ||
var state = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; | ||
var action = arguments.length <= 2 || arguments[2] === undefined ? _Actions.POP : arguments[2]; | ||
var key = arguments.length <= 3 || arguments[3] === undefined ? null : arguments[3]; | ||
var action = arguments.length <= 1 || arguments[1] === undefined ? _Actions.POP : arguments[1]; | ||
var key = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2]; | ||
var _fourthArg = arguments.length <= 3 || arguments[3] === undefined ? null : arguments[3]; | ||
if (typeof location === 'string') location = _parsePath2['default'](location); | ||
if (typeof action === 'object') { | ||
process.env.NODE_ENV !== 'production' ? _warning2['default'](false, 'The state (2nd) argument to createLocation is deprecated; use a ' + 'location descriptor instead') : undefined; | ||
location = _extends({}, location, { state: action }); | ||
action = key || _Actions.POP; | ||
key = _fourthArg; | ||
} | ||
var pathname = location.pathname || '/'; | ||
var search = location.search || ''; | ||
var hash = location.hash || ''; | ||
var state = location.state || null; | ||
// TODO: Deprecate passing state directly into createLocation. | ||
state = location.state || state; | ||
return { | ||
@@ -31,0 +45,0 @@ pathname: pathname, |
@@ -9,2 +9,6 @@ 'use strict'; | ||
var _warning = require('warning'); | ||
var _warning2 = _interopRequireDefault(_warning); | ||
var _invariant = require('invariant'); | ||
@@ -20,2 +24,6 @@ | ||
var _parsePath = require('./parsePath'); | ||
var _parsePath2 = _interopRequireDefault(_parsePath); | ||
function createStateStorage(entries) { | ||
@@ -100,3 +108,5 @@ return entries.filter(function (entry) { | ||
return history.createLocation(path, state, undefined, key); | ||
var location = _parsePath2['default'](path); | ||
return history.createLocation(_extends({}, location, { state: state }), undefined, key); | ||
} | ||
@@ -111,3 +121,6 @@ | ||
if (n) { | ||
!canGo(n) ? process.env.NODE_ENV !== 'production' ? _invariant2['default'](false, 'Cannot go(%s) there is not enough history', n) : _invariant2['default'](false) : undefined; | ||
if (!canGo(n)) { | ||
process.env.NODE_ENV !== 'production' ? _warning2['default'](false, 'Cannot go(%s) there is not enough history', n) : undefined; | ||
return; | ||
} | ||
@@ -114,0 +127,0 @@ current += n; |
@@ -24,3 +24,7 @@ /*eslint-disable no-empty */ | ||
try { | ||
window.sessionStorage.setItem(createKey(key), JSON.stringify(state)); | ||
if (state == null) { | ||
window.sessionStorage.removeItem(createKey(key)); | ||
} else { | ||
window.sessionStorage.setItem(createKey(key), JSON.stringify(state)); | ||
} | ||
} catch (error) { | ||
@@ -27,0 +31,0 @@ if (error.name === SecurityError) { |
@@ -7,2 +7,10 @@ 'use strict'; | ||
var _deprecate = require('./deprecate'); | ||
var _deprecate2 = _interopRequireDefault(_deprecate); | ||
var _createLocation2 = require('./createLocation'); | ||
var _createLocation3 = _interopRequireDefault(_createLocation2); | ||
var _createBrowserHistory = require('./createBrowserHistory'); | ||
@@ -26,8 +34,2 @@ | ||
var _createLocation2 = require('./createLocation'); | ||
var _createLocation3 = _interopRequireDefault(_createLocation2); | ||
exports.createLocation = _createLocation3['default']; | ||
var _useBasename2 = require('./useBasename'); | ||
@@ -69,2 +71,4 @@ | ||
exports.enableQueries = _enableQueries3['default']; | ||
exports.enableQueries = _enableQueries3['default']; | ||
var createLocation = _deprecate2['default'](_createLocation3['default'], 'Using createLocation without a history instance is deprecated; please use history.createLocation instead'); | ||
exports.createLocation = createLocation; |
@@ -123,3 +123,4 @@ 'use strict'; | ||
function createPath(location, query) { | ||
process.env.NODE_ENV !== 'production' ? _warning2['default'](query, 'the query argument to createPath is deprecated; use a location descriptor instead') : undefined; | ||
process.env.NODE_ENV !== 'production' ? _warning2['default'](!query, 'the query argument to createPath is deprecated; use a location descriptor instead') : undefined; | ||
return history.createPath(appendQuery(location, query || location.query)); | ||
@@ -129,3 +130,4 @@ } | ||
function createHref(location, query) { | ||
process.env.NODE_ENV !== 'production' ? _warning2['default'](query, 'the query argument to createHref is deprecated; use a location descriptor instead') : undefined; | ||
process.env.NODE_ENV !== 'production' ? _warning2['default'](!query, 'the query argument to createHref is deprecated; use a location descriptor instead') : undefined; | ||
return history.createHref(appendQuery(location, query || location.query)); | ||
@@ -132,0 +134,0 @@ } |
{ | ||
"_args": [ | ||
[ | ||
"history@^1.15.0", | ||
"history@^2.0.0-rc2", | ||
"/Users/jas/Projects/git/react-github-corner" | ||
] | ||
], | ||
"_from": "history@>=1.15.0 <2.0.0", | ||
"_id": "history@1.15.0", | ||
"_from": "history@>=2.0.0-rc2 <3.0.0", | ||
"_id": "history@2.0.0-rc2", | ||
"_inCache": true, | ||
"_installable": true, | ||
"_location": "/history", | ||
"_nodeVersion": "5.0.0", | ||
"_nodeVersion": "5.3.0", | ||
"_npmUser": { | ||
@@ -18,20 +18,19 @@ "email": "mjijackson@gmail.com", | ||
}, | ||
"_npmVersion": "3.4.1", | ||
"_npmVersion": "3.3.12", | ||
"_phantomChildren": {}, | ||
"_requested": { | ||
"name": "history", | ||
"raw": "history@^1.15.0", | ||
"rawSpec": "^1.15.0", | ||
"raw": "history@^2.0.0-rc2", | ||
"rawSpec": "^2.0.0-rc2", | ||
"scope": null, | ||
"spec": ">=1.15.0 <2.0.0", | ||
"spec": ">=2.0.0-rc2 <3.0.0", | ||
"type": "range" | ||
}, | ||
"_requiredBy": [ | ||
"#DEV:/", | ||
"/redux-router" | ||
"#DEV:/" | ||
], | ||
"_resolved": "https://registry.npmjs.org/history/-/history-1.15.0.tgz", | ||
"_shasum": "67fe73e23b9b98d70eaf61187b0e1a61d72700f7", | ||
"_resolved": "https://registry.npmjs.org/history/-/history-2.0.0-rc2.tgz", | ||
"_shasum": "71cc5575bf9afe3e8b06a21f5f8e013c6094325a", | ||
"_shrinkwrap": null, | ||
"_spec": "history@^1.15.0", | ||
"_spec": "history@^2.0.0-rc2", | ||
"_where": "/Users/jas/Projects/git/react-github-corner", | ||
@@ -81,4 +80,4 @@ "authors": [ | ||
"dist": { | ||
"shasum": "67fe73e23b9b98d70eaf61187b0e1a61d72700f7", | ||
"tarball": "http://registry.npmjs.org/history/-/history-1.15.0.tgz" | ||
"shasum": "71cc5575bf9afe3e8b06a21f5f8e013c6094325a", | ||
"tarball": "http://registry.npmjs.org/history/-/history-2.0.0-rc2.tgz" | ||
}, | ||
@@ -93,3 +92,3 @@ "files": [ | ||
], | ||
"gitHead": "f7ec1ed278d7837f3d49da226e02973b23186c32", | ||
"gitHead": "fa638bc7e95d933430374de8c398243843312e6b", | ||
"homepage": "https://github.com/rackt/history#readme", | ||
@@ -130,3 +129,3 @@ "keywords": [ | ||
], | ||
"version": "1.15.0" | ||
"version": "2.0.0-rc2" | ||
} |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.History=t():e.History=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var a=n(17),o=r(a);t.createHistory=o["default"];var u=n(18),i=r(u);t.createHashHistory=i["default"];var s=n(19),f=r(s);t.createMemoryHistory=f["default"];var c=n(12),l=r(c);t.createLocation=l["default"];var d=n(22),p=r(d);t.useBasename=p["default"];var h=n(14),g=r(h);t.useBeforeUnload=g["default"];var v=n(15),y=r(v);t.useQueries=y["default"];var m=n(2),w=r(m);t.Actions=w["default"];var O=n(20),_=r(O);t.enableBeforeUnload=_["default"];var b=n(21),P=r(b);t.enableQueries=P["default"]},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t){"use strict";t.__esModule=!0;var n="PUSH";t.PUSH=n;var r="REPLACE";t.REPLACE=r;var a="POP";t.POP=a,t["default"]={PUSH:n,REPLACE:r,POP:a}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){return function(){return e.apply(this,arguments)}}t.__esModule=!0;var o=n(1);r(o);t["default"]=a,e.exports=t["default"]},function(e,t){"use strict";t.__esModule=!0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.canUseDOM=n},function(e,t){"use strict";function n(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function r(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function a(){return window.location.href.split("#")[1]||""}function o(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function u(){return window.location.pathname+window.location.search+window.location.hash}function i(e){e&&window.history.go(e)}function s(e,t){t(window.confirm(e))}function f(){var e=navigator.userAgent;return-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")?-1!==e.indexOf("CriOS")?!1:window.history&&"pushState"in window.history:!1}function c(){var e=navigator.userAgent;return-1===e.indexOf("Firefox")}t.__esModule=!0,t.addEventListener=n,t.removeEventListener=r,t.getHashPath=a,t.replaceHashPath=o,t.getWindowPath=u,t.go=i,t.getUserConfirmation=s,t.supportsHistory=f,t.supportsGoWithoutReloadUsingHash=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){var t=i["default"](e),n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substring(a),t=t.substring(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substring(o),t=t.substring(0,o)),""===t&&(t="/"),{pathname:t,search:n,hash:r}}t.__esModule=!0;var o=n(1),u=(r(o),n(13)),i=r(u);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";var r=function(e,t,n,r,a,o,u,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,r,a,o,u,i],c=0;s=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return f[c++]}))}throw s.framesToPop=1,s}};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t,n){var r=e(t,n);e.length<2&&n(r)}t.__esModule=!0;var o=n(1);r(o);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){return s+e}function o(e,t){try{window.sessionStorage.setItem(a(e),JSON.stringify(t))}catch(n){if(n.name===c)return;if(n.name===f&&0===window.sessionStorage.length)return;throw n}}function u(e){var t=void 0;try{t=window.sessionStorage.getItem(a(e))}catch(n){if(n.name===c)return null}if(t)try{return JSON.parse(t)}catch(n){}return null}t.__esModule=!0,t.saveState=o,t.readState=u;var i=n(1),s=(r(i),"@@History/"),f="QuotaExceededError",c="SecurityError"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){function t(e){return s.canUseDOM?void 0:i["default"](!1),n.listen(e)}var n=l["default"](o({getUserConfirmation:f.getUserConfirmation},e,{go:f.go}));return o({},n,{listen:t})}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(7),i=r(u),s=n(4),f=n(5),c=n(11),l=r(c);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){return Math.random().toString(36).substr(2,e)}function o(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.key===t.key&&f["default"](e.state,t.state)}function u(){function e(e){return R.push(e),function(){R=R.filter(function(t){return t!==e})}}function t(){return I&&I.action===l.POP?q.indexOf(I.key):Q?q.indexOf(Q.key):-1}function n(e){var n=t();Q=e,Q.action===l.PUSH?q=[].concat(q.slice(0,n+1),[Q.key]):Q.action===l.REPLACE&&(q[n]=Q.key),D.forEach(function(e){e(Q)})}function r(e){if(D.push(e),Q)e(Q);else{var t=U();q=[t.key],n(t)}return function(){D=D.filter(function(t){return t!==e})}}function u(e,t){c.loopAsync(R.length,function(t,n,r){y["default"](R[t],e,function(e){null!=e?r(e):n()})},function(e){C&&"string"==typeof e?C(e,function(e){t(e!==!1)}):t(e!==!1)})}function s(e){Q&&o(Q,e)||(I=e,u(e,function(t){if(I===e)if(t){if(e.action===l.PUSH){var r=_(Q),a=_(e);a===r&&(e.action=l.REPLACE)}L(e)!==!1&&n(e)}else if(Q&&e.action===l.POP){var o=q.indexOf(Q.key),u=q.indexOf(e.key);-1!==o&&-1!==u&&B(o-u)}}))}function f(e){s(P(e,null,l.PUSH,m()))}function d(e){s(P(e,null,l.REPLACE,m()))}function h(){B(-1)}function v(){B(1)}function m(){return a(T)}function _(e){if(null==e||"string"==typeof e)return e;var t=e.pathname,n=e.search,r=e.hash,a=t;return n&&(a+=n),r&&(a+=r),a}function b(e){return _(e)}function P(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?m():arguments[3];return p["default"](e,t,n,r)}function S(e){Q?(x(Q,e),n(Q)):x(U(),e)}function x(e,t){e.state=i({},e.state,t),A(e.key,e.state)}function H(e){-1===R.indexOf(e)&&R.push(e)}function k(e){R=R.filter(function(t){return t!==e})}function M(e,t){"string"==typeof t&&(t=g["default"](t)),f(i({state:e},t))}function E(e,t){"string"==typeof t&&(t=g["default"](t)),d(i({state:e},t))}var j=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],U=j.getCurrentLocation,L=j.finishTransition,A=j.saveState,B=j.go,T=j.keyLength,C=j.getUserConfirmation;"number"!=typeof T&&(T=O);var R=[],q=[],D=[],Q=void 0,I=void 0;return{listenBefore:e,listen:r,transitionTo:s,push:f,replace:d,go:B,goBack:h,goForward:v,createKey:m,createPath:_,createHref:b,createLocation:P,setState:w["default"](S,"setState is deprecated; use location.key to save state instead"),registerTransitionHook:w["default"](H,"registerTransitionHook is deprecated; use listenBefore instead"),unregisterTransitionHook:w["default"](k,"unregisterTransitionHook is deprecated; use the callback returned from listenBefore instead"),pushState:w["default"](M,"pushState is deprecated; use push instead"),replaceState:w["default"](E,"replaceState is deprecated; use replace instead")}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(23),f=r(s),c=n(16),l=n(2),d=n(12),p=r(d),h=n(6),g=r(h),v=n(8),y=r(v),m=n(3),w=r(m),O=6;t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(){var e=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],t=arguments.length<=1||void 0===arguments[1]?null:arguments[1],n=arguments.length<=2||void 0===arguments[2]?o.POP:arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof e&&(e=i["default"](e));var a=e.pathname||"/",u=e.search||"",s=e.hash||"";return t=e.state||t,{pathname:a,search:u,hash:s,state:t,action:n,key:r}}t.__esModule=!0;var o=n(2),u=n(6),i=r(u);t["default"]=a,e.exports=t["default"]},function(e,t){"use strict";function n(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){function t(t){var n=e();return"string"==typeof n?((t||window.event).returnValue=n,n):void 0}return f.addEventListener(window,"beforeunload",t),function(){f.removeEventListener(window,"beforeunload",t)}}function o(e){return function(t){function n(){for(var e=void 0,t=0,n=d.length;null==e&&n>t;++t)e=d[t].call();return e}function r(e){return d.push(e),1===d.length&&s.canUseDOM&&(c=a(n)),function(){d=d.filter(function(t){return t!==e}),0===d.length&&c&&(c(),c=null)}}function o(e){s.canUseDOM&&-1===d.indexOf(e)&&(d.push(e),1===d.length&&(c=a(n)))}function i(e){d.length>0&&(d=d.filter(function(t){return t!==e}),0===d.length&&c())}var f=e(t),c=void 0,d=[];return u({},f,{listenBeforeUnload:r,registerBeforeUnloadHook:l["default"](o,"registerBeforeUnloadHook is deprecated; use listenBeforeUnload instead"),unregisterBeforeUnloadHook:l["default"](i,"unregisterBeforeUnloadHook is deprecated; use the callback returned from listenBeforeUnload instead")})}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),s=(r(i),n(4)),f=n(5),c=n(3),l=r(c);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){return f.stringify(e).replace(/%20/g,"+")}function u(e){return function(){function t(e){if(null==e.query){var t=e.search;e.query=b(t.substring(1)),e[v]={search:t,searchBase:""}}return e}function n(e,t){var n,r=void 0;if(!t||""===(r=_(t)))return e;"string"==typeof e&&(e=p["default"](e));var a=e[v],o=void 0;o=a&&e.search===a.search?a.searchBase:e.search||"";var u=o+(o?"&":"?")+r;return i({},e,(n={search:u},n[v]={search:u,searchBase:o},n))}function r(e){return S.listenBefore(function(n,r){l["default"](e,t(n),r)})}function u(e){return S.listen(function(n){e(t(n))})}function s(e){S.push(n(e,e.query))}function f(e){S.replace(n(e,e.query))}function c(e,t){return S.createPath(n(e,t||e.query))}function d(e,t){return S.createHref(n(e,t||e.query))}function h(){return t(S.createLocation.apply(S,arguments))}function m(e,t,n){"string"==typeof t&&(t=p["default"](t)),s(i({state:e},t,{query:n}))}function w(e,t,n){"string"==typeof t&&(t=p["default"](t)),f(i({state:e},t,{query:n}))}var O=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],_=O.stringifyQuery,b=O.parseQueryString,P=a(O,["stringifyQuery","parseQueryString"]),S=e(P);return"function"!=typeof _&&(_=o),"function"!=typeof b&&(b=y),i({},S,{listenBefore:r,listen:u,push:s,replace:f,createPath:c,createHref:d,createLocation:h,pushState:g["default"](m,"pushState is deprecated; use push instead"),replaceState:g["default"](w,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),f=(r(s),n(26)),c=n(8),l=r(c),d=n(6),p=r(d),h=n(3),g=r(h),v="$searchBase",y=f.parse;t["default"]=u,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){function r(){u=!0,n.apply(this,arguments)}function a(){u||(e>o?t.call(this,o++,a,r):r.apply(this,arguments))}var o=0,u=!1;a()}t.__esModule=!0,t.loopAsync=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(){function e(e){e=e||window.history.state||{};var t=c.getWindowPath(),n=e,r=n.key,a=void 0;return r?a=l.readState(r):(a=null,r=m.createKey(),v&&window.history.replaceState(o({},e,{key:r}),null,t)),m.createLocation(t,a,void 0,r)}function t(t){function n(t){void 0!==t.state&&r(e(t.state))}var r=t.transitionTo;return c.addEventListener(window,"popstate",n),function(){c.removeEventListener(window,"popstate",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,a=e.hash,o=e.state,u=e.action,i=e.key;if(u!==s.POP){l.saveState(i,o);var f=(t||"")+n+r+a,c={key:i};if(u===s.PUSH){if(y)return window.location.href=f,!1;window.history.pushState(c,null,f)}else{if(y)return window.location.replace(f),!1;window.history.replaceState(c,null,f)}}}function r(e){1===++w&&(O=t(m));var n=m.listenBefore(e);return function(){n(),0===--w&&O()}}function a(e){1===++w&&(O=t(m));var n=m.listen(e);return function(){n(),0===--w&&O()}}function u(e){1===++w&&(O=t(m)),m.registerTransitionHook(e)}function d(e){m.unregisterTransitionHook(e),0===--w&&O()}var h=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];f.canUseDOM?void 0:i["default"](!1);var g=h.forceRefresh,v=c.supportsHistory(),y=!v||g,m=p["default"](o({},h,{getCurrentLocation:e,finishTransition:n,saveState:l.saveState})),w=0,O=void 0;return o({},m,{listenBefore:r,listen:a,registerTransitionHook:u,unregisterTransitionHook:d})}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(7),i=r(u),s=n(2),f=n(4),c=n(5),l=n(9),d=n(10),p=r(d);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){return"string"==typeof e&&"/"===e.charAt(0)}function o(){var e=v.getHashPath();return a(e)?!0:(v.replaceHashPath("/"+e),!1)}function u(e,t,n){return e+(-1===e.indexOf("?")?"?":"&")+(t+"="+n)}function i(e,t){return e.replace(new RegExp("[?&]?"+t+"=[a-zA-Z0-9]+"),"")}function s(e,t){var n=e.match(new RegExp("\\?.*?\\b"+t+"=(.+?)\\b"));return n&&n[1]}function f(){function e(){var e=v.getHashPath(),t=void 0,n=void 0;return H?(t=s(e,H),e=i(e,H),t?n=y.readState(t):(n=null,t=k.createKey(),v.replaceHashPath(u(e,H,t)))):t=n=null,k.createLocation(e,n,void 0,t)}function t(t){function n(){o()&&r(e())}var r=t.transitionTo;return o(),v.addEventListener(window,"hashchange",n),function(){v.removeEventListener(window,"hashchange",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,a=e.state,o=e.action,i=e.key;if(o!==h.POP){var s=(t||"")+n+r;H?(s=u(s,H,i),y.saveState(i,a)):e.key=e.state=null;var f=v.getHashPath();o===h.PUSH?f!==s&&(window.location.hash=s):f!==s&&v.replaceHashPath(s)}}function r(e){1===++M&&(E=t(k));var n=k.listenBefore(e);return function(){n(),0===--M&&E()}}function a(e){1===++M&&(E=t(k));var n=k.listen(e);return function(){n(),0===--M&&E()}}function f(e){k.push(e)}function l(e){k.replace(e)}function d(e){k.go(e)}function m(e){return"#"+k.createHref(e)}function _(e){1===++M&&(E=t(k)),k.registerTransitionHook(e)}function b(e){k.unregisterTransitionHook(e),0===--M&&E()}function P(e,t){k.pushState(e,t)}function S(e,t){k.replaceState(e,t)}var x=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];g.canUseDOM?void 0:p["default"](!1);var H=x.queryKey;(void 0===H||H)&&(H="string"==typeof H?H:O);var k=w["default"](c({},x,{getCurrentLocation:e,finishTransition:n,saveState:y.saveState})),M=0,E=void 0;v.supportsGoWithoutReloadUsingHash();return c({},k,{listenBefore:r,listen:a,push:f,replace:l,go:d,createHref:m,registerTransitionHook:_,unregisterTransitionHook:b,pushState:P,replaceState:S})}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(1),d=(r(l),n(7)),p=r(d),h=n(2),g=n(4),v=n(5),y=n(9),m=n(10),w=r(m),O="_k";t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){return e.filter(function(e){return e.state}).reduce(function(e,t){return e[t.key]=t.state,e},{})}function o(){function e(e,t){v[e]=t}function t(e){return v[e]}function n(){var e=h[g],n=e.key,r=e.basename,a=e.pathname,o=e.search,u=(r||"")+a+(o||""),i=void 0;return n?i=t(n):(i=null,n=d.createKey(),e.key=n),d.createLocation(u,i,void 0,n)}function r(e){var t=g+e;return t>=0&&t<h.length}function o(e){if(e){r(e)?void 0:s["default"](!1),g+=e;var t=n();d.transitionTo(u({},t,{action:f.POP}))}}function i(t){switch(t.action){case f.PUSH:g+=1,g<h.length&&h.splice(g),h.push(t),e(t.key,t.state);break;case f.REPLACE:h[g]=t,e(t.key,t.state)}}var c=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];Array.isArray(c)?c={entries:c}:"string"==typeof c&&(c={entries:[c]});var d=l["default"](u({},c,{getCurrentLocation:n,finishTransition:i,saveState:e,go:o})),p=c,h=p.entries,g=p.current;"string"==typeof h?h=[h]:Array.isArray(h)||(h=["/"]),h=h.map(function(e){var t=d.createKey();return"string"==typeof e?{pathname:e,key:t}:"object"==typeof e&&e?u({},e,{key:t}):void s["default"](!1)}),null==g?g=h.length-1:g>=0&&g<h.length?void 0:s["default"](!1);var v=a(h);return d}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(7),s=r(i),f=n(2),c=n(11),l=r(c);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var a=n(3),o=r(a),u=n(14),i=r(u);t["default"]=o["default"](i["default"],"enableBeforeUnload is deprecated, use useBeforeUnload instead"),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var a=n(3),o=r(a),u=n(15),i=r(u);t["default"]=o["default"](i["default"],"enableQueries is deprecated, use useQueries instead"),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){return function(){function t(e){return O&&null==e.basename&&(0===e.pathname.indexOf(O)?(e.pathname=e.pathname.substring(O.length),e.basename=O,""===e.pathname&&(e.pathname="/")):e.basename=""),e}function n(e){if(!O)return e;"string"==typeof e&&(e=p["default"](e));var t=e.pathname,n="/"===O.slice(-1)?O:O+"/",r="/"===t.charAt(0)?t.slice(1):t,a=n+r;return u({},e,{pathname:a})}function r(e){return b.listenBefore(function(n,r){f["default"](e,t(n),r)})}function o(e){return b.listen(function(n){e(t(n))})}function s(e){b.push(n(e))}function c(e){b.replace(n(e))}function d(e){return b.createPath(n(e))}function h(e){return b.createHref(n(e))}function v(){return t(b.createLocation.apply(b,arguments))}function y(e,t){"string"==typeof t&&(t=p["default"](t)),s(u({state:e},t))}function m(e,t){"string"==typeof t&&(t=p["default"](t)),c(u({state:e},t))}var w=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],O=w.basename,_=a(w,["basename"]),b=e(_);if(null==O&&i.canUseDOM){var P=document.getElementsByTagName("base")[0];P&&(O=l["default"](P.href))}return u({},b,{listenBefore:r,listen:o,push:s,replace:c,createPath:d,createHref:h,createLocation:v,pushState:g["default"](y,"pushState is deprecated; use push instead"),replaceState:g["default"](m,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(4),s=n(8),f=r(s),c=n(13),l=r(c),d=n(6),p=r(d),h=n(3),g=r(h);t["default"]=o,e.exports=t["default"]},function(e,t,n){function r(e){return null===e||void 0===e}function a(e){return e&&"object"==typeof e&&"number"==typeof e.length?"function"!=typeof e.copy||"function"!=typeof e.slice?!1:e.length>0&&"number"!=typeof e[0]?!1:!0:!1}function o(e,t,n){var o,c;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(s(e))return s(t)?(e=u.call(e),t=u.call(t),f(e,t,n)):!1;if(a(e)){if(!a(t))return!1;if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}try{var l=i(e),d=i(t)}catch(p){return!1}if(l.length!=d.length)return!1;for(l.sort(),d.sort(),o=l.length-1;o>=0;o--)if(l[o]!=d[o])return!1;for(o=l.length-1;o>=0;o--)if(c=l[o],!f(e[c],t[c],n))return!1;return typeof e==typeof t}var u=Array.prototype.slice,i=n(25),s=n(24),f=e.exports=function(e,t,n){return n||(n={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:o(e,t,n)}},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var a="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=a?n:r,t.supported=n,t.unsupported=r},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t,n){"use strict";var r=n(27);t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n.shift(),a=n.length>0?n.join("="):void 0;return r=decodeURIComponent(r),a=void 0===a?null:decodeURIComponent(a),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(a):e[r]=[e[r],a]:e[r]=a,e},{}):{})},t.stringify=function(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];return void 0===n?"":null===n?t:Array.isArray(n)?n.sort().map(function(e){return r(t)+"="+r(e)}).join("&"):r(t)+"="+r(n)}).filter(function(e){return e.length>0}).join("&"):""}},function(e,t){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16)})}}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.History=t():e.History=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var a=n(2),o=r(a),u=n(12),i=r(u),s=n(17),f=r(s);t.createHistory=f["default"];var c=n(18),l=r(c);t.createHashHistory=l["default"];var d=n(19),p=r(d);t.createMemoryHistory=p["default"];var h=n(22),g=r(h);t.useBasename=g["default"];var v=n(14),y=r(v);t.useBeforeUnload=y["default"];var m=n(15),w=r(m);t.useQueries=w["default"];var O=n(4),_=r(O);t.Actions=_["default"];var b=n(20),P=r(b);t.enableBeforeUnload=P["default"];var S=n(21),x=r(S);t.enableQueries=x["default"];var H=o["default"](i["default"],"Using createLocation without a history instance is deprecated; please use history.createLocation instead");t.createLocation=H},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){return function(){return e.apply(this,arguments)}}t.__esModule=!0;var o=n(1);r(o);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){var t=i["default"](e),n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substring(a),t=t.substring(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substring(o),t=t.substring(0,o)),""===t&&(t="/"),{pathname:t,search:n,hash:r}}t.__esModule=!0;var o=n(1),u=(r(o),n(13)),i=r(u);t["default"]=a,e.exports=t["default"]},function(e,t){"use strict";t.__esModule=!0;var n="PUSH";t.PUSH=n;var r="REPLACE";t.REPLACE=r;var a="POP";t.POP=a,t["default"]={PUSH:n,REPLACE:r,POP:a}},function(e,t){"use strict";t.__esModule=!0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.canUseDOM=n},function(e,t){"use strict";function n(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function r(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function a(){return window.location.href.split("#")[1]||""}function o(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function u(){return window.location.pathname+window.location.search+window.location.hash}function i(e){e&&window.history.go(e)}function s(e,t){t(window.confirm(e))}function f(){var e=navigator.userAgent;return-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")?-1!==e.indexOf("CriOS")?!1:window.history&&"pushState"in window.history:!1}function c(){var e=navigator.userAgent;return-1===e.indexOf("Firefox")}t.__esModule=!0,t.addEventListener=n,t.removeEventListener=r,t.getHashPath=a,t.replaceHashPath=o,t.getWindowPath=u,t.go=i,t.getUserConfirmation=s,t.supportsHistory=f,t.supportsGoWithoutReloadUsingHash=c},function(e,t,n){"use strict";var r=function(e,t,n,r,a,o,u,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,r,a,o,u,i],c=0;s=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return f[c++]}))}throw s.framesToPop=1,s}};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t,n){var r=e(t,n);e.length<2&&n(r)}t.__esModule=!0;var o=n(1);r(o);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){return s+e}function o(e,t){try{null==t?window.sessionStorage.removeItem(a(e)):window.sessionStorage.setItem(a(e),JSON.stringify(t))}catch(n){if(n.name===c)return;if(n.name===f&&0===window.sessionStorage.length)return;throw n}}function u(e){var t=void 0;try{t=window.sessionStorage.getItem(a(e))}catch(n){if(n.name===c)return null}if(t)try{return JSON.parse(t)}catch(n){}return null}t.__esModule=!0,t.saveState=o,t.readState=u;var i=n(1),s=(r(i),"@@History/"),f="QuotaExceededError",c="SecurityError"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){function t(e){return s.canUseDOM?void 0:i["default"](!1),n.listen(e)}var n=l["default"](o({getUserConfirmation:f.getUserConfirmation},e,{go:f.go}));return o({},n,{listen:t})}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(7),i=r(u),s=n(5),f=n(6),c=n(11),l=r(c);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){return Math.random().toString(36).substr(2,e)}function o(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.key===t.key&&c["default"](e.state,t.state)}function u(){function e(e){return R.push(e),function(){R=R.filter(function(t){return t!==e})}}function t(){return I&&I.action===d.POP?q.indexOf(I.key):Q?q.indexOf(Q.key):-1}function n(e){var n=t();Q=e,Q.action===d.PUSH?q=[].concat(q.slice(0,n+1),[Q.key]):Q.action===d.REPLACE&&(q[n]=Q.key),D.forEach(function(e){e(Q)})}function r(e){if(D.push(e),Q)e(Q);else{var t=U();q=[t.key],n(t)}return function(){D=D.filter(function(t){return t!==e})}}function u(e,t){l.loopAsync(R.length,function(t,n,r){v["default"](R[t],e,function(e){null!=e?r(e):n()})},function(e){C&&"string"==typeof e?C(e,function(e){t(e!==!1)}):t(e!==!1)})}function s(e){Q&&o(Q,e)||(I=e,u(e,function(t){if(I===e)if(t){if(e.action===d.PUSH){var r=w(Q),a=w(e);a===r&&(e.action=d.REPLACE)}L(e)!==!1&&n(e)}else if(Q&&e.action===d.POP){var o=q.indexOf(Q.key),u=q.indexOf(e.key);-1!==o&&-1!==u&&B(o-u)}}))}function f(e){s(P(e,d.PUSH,y()))}function c(e){s(P(e,d.REPLACE,y()))}function p(){B(-1)}function g(){B(1)}function y(){return a(T)}function w(e){if(null==e||"string"==typeof e)return e;var t=e.pathname,n=e.search,r=e.hash,a=t;return n&&(a+=n),r&&(a+=r),a}function b(e){return w(e)}function P(e,t){var n=arguments.length<=2||void 0===arguments[2]?y():arguments[2];return"object"==typeof t&&("string"==typeof e&&(e=m["default"](e)),e=i({},e,{state:t}),t=n,n=arguments[3]||y()),h["default"](e,t,n)}function S(e){Q?(x(Q,e),n(Q)):x(U(),e)}function x(e,t){e.state=i({},e.state,t),A(e.key,e.state)}function H(e){-1===R.indexOf(e)&&R.push(e)}function k(e){R=R.filter(function(t){return t!==e})}function M(e,t){"string"==typeof t&&(t=m["default"](t)),f(i({state:e},t))}function j(e,t){"string"==typeof t&&(t=m["default"](t)),c(i({state:e},t))}var E=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],U=E.getCurrentLocation,L=E.finishTransition,A=E.saveState,B=E.go,T=E.keyLength,C=E.getUserConfirmation;"number"!=typeof T&&(T=_);var R=[],q=[],D=[],Q=void 0,I=void 0;return{listenBefore:e,listen:r,transitionTo:s,push:f,replace:c,go:B,goBack:p,goForward:g,createKey:y,createPath:w,createHref:b,createLocation:P,setState:O["default"](S,"setState is deprecated; use location.key to save state instead"),registerTransitionHook:O["default"](H,"registerTransitionHook is deprecated; use listenBefore instead"),unregisterTransitionHook:O["default"](k,"unregisterTransitionHook is deprecated; use the callback returned from listenBefore instead"),pushState:O["default"](M,"pushState is deprecated; use push instead"),replaceState:O["default"](j,"replaceState is deprecated; use replace instead")}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),f=(r(s),n(23)),c=r(f),l=n(16),d=n(4),p=n(12),h=r(p),g=n(8),v=r(g),y=n(3),m=r(y),w=n(2),O=r(w),_=6;t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(){var e=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],t=arguments.length<=1||void 0===arguments[1]?i.POP:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof e&&(e=f["default"](e)),"object"==typeof t&&(e=o({},e,{state:t}),t=n||i.POP,n=r);var a=e.pathname||"/",u=e.search||"",s=e.hash||"",c=e.state||null;return{pathname:a,search:u,hash:s,state:c,action:t,key:n}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(1),i=(r(u),n(4)),s=n(3),f=r(s);t["default"]=a,e.exports=t["default"]},function(e,t){"use strict";function n(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){function t(t){var n=e();return"string"==typeof n?((t||window.event).returnValue=n,n):void 0}return f.addEventListener(window,"beforeunload",t),function(){f.removeEventListener(window,"beforeunload",t)}}function o(e){return function(t){function n(){for(var e=void 0,t=0,n=d.length;null==e&&n>t;++t)e=d[t].call();return e}function r(e){return d.push(e),1===d.length&&s.canUseDOM&&(c=a(n)),function(){d=d.filter(function(t){return t!==e}),0===d.length&&c&&(c(),c=null)}}function o(e){s.canUseDOM&&-1===d.indexOf(e)&&(d.push(e),1===d.length&&(c=a(n)))}function i(e){d.length>0&&(d=d.filter(function(t){return t!==e}),0===d.length&&c())}var f=e(t),c=void 0,d=[];return u({},f,{listenBeforeUnload:r,registerBeforeUnloadHook:l["default"](o,"registerBeforeUnloadHook is deprecated; use listenBeforeUnload instead"),unregisterBeforeUnloadHook:l["default"](i,"unregisterBeforeUnloadHook is deprecated; use the callback returned from listenBeforeUnload instead")})}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),s=(r(i),n(5)),f=n(6),c=n(2),l=r(c);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){return f.stringify(e).replace(/%20/g,"+")}function u(e){return function(){function t(e){if(null==e.query){var t=e.search;e.query=b(t.substring(1)),e[v]={search:t,searchBase:""}}return e}function n(e,t){var n,r=void 0;if(!t||""===(r=_(t)))return e;"string"==typeof e&&(e=p["default"](e));var a=e[v],o=void 0;o=a&&e.search===a.search?a.searchBase:e.search||"";var u=o+(o?"&":"?")+r;return i({},e,(n={search:u},n[v]={search:u,searchBase:o},n))}function r(e){return S.listenBefore(function(n,r){l["default"](e,t(n),r)})}function u(e){return S.listen(function(n){e(t(n))})}function s(e){S.push(n(e,e.query))}function f(e){S.replace(n(e,e.query))}function c(e,t){return S.createPath(n(e,t||e.query))}function d(e,t){return S.createHref(n(e,t||e.query))}function h(){return t(S.createLocation.apply(S,arguments))}function m(e,t,n){"string"==typeof t&&(t=p["default"](t)),s(i({state:e},t,{query:n}))}function w(e,t,n){"string"==typeof t&&(t=p["default"](t)),f(i({state:e},t,{query:n}))}var O=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],_=O.stringifyQuery,b=O.parseQueryString,P=a(O,["stringifyQuery","parseQueryString"]),S=e(P);return"function"!=typeof _&&(_=o),"function"!=typeof b&&(b=y),i({},S,{listenBefore:r,listen:u,push:s,replace:f,createPath:c,createHref:d,createLocation:h,pushState:g["default"](m,"pushState is deprecated; use push instead"),replaceState:g["default"](w,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),f=(r(s),n(26)),c=n(8),l=r(c),d=n(3),p=r(d),h=n(2),g=r(h),v="$searchBase",y=f.parse;t["default"]=u,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){function r(){u=!0,n.apply(this,arguments)}function a(){u||(e>o?t.call(this,o++,a,r):r.apply(this,arguments))}var o=0,u=!1;a()}t.__esModule=!0,t.loopAsync=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(){function e(e){e=e||window.history.state||{};var t=c.getWindowPath(),n=e,r=n.key,a=void 0;r?a=l.readState(r):(a=null,r=w.createKey(),y&&window.history.replaceState(o({},e,{key:r}),null,t));var u=g["default"](t);return w.createLocation(o({},u,{state:a}),void 0,r)}function t(t){function n(t){void 0!==t.state&&r(e(t.state))}var r=t.transitionTo;return c.addEventListener(window,"popstate",n),function(){c.removeEventListener(window,"popstate",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,a=e.hash,o=e.state,u=e.action,i=e.key;if(u!==s.POP){l.saveState(i,o);var f=(t||"")+n+r+a,c={key:i};if(u===s.PUSH){if(m)return window.location.href=f,!1;window.history.pushState(c,null,f)}else{if(m)return window.location.replace(f),!1;window.history.replaceState(c,null,f)}}}function r(e){1===++O&&(_=t(w));var n=w.listenBefore(e);return function(){n(),0===--O&&_()}}function a(e){1===++O&&(_=t(w));var n=w.listen(e);return function(){n(),0===--O&&_()}}function u(e){1===++O&&(_=t(w)),w.registerTransitionHook(e)}function d(e){w.unregisterTransitionHook(e),0===--O&&_()}var h=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];f.canUseDOM?void 0:i["default"](!1);var v=h.forceRefresh,y=c.supportsHistory(),m=!y||v,w=p["default"](o({},h,{getCurrentLocation:e,finishTransition:n,saveState:l.saveState})),O=0,_=void 0;return o({},w,{listenBefore:r,listen:a,registerTransitionHook:u,unregisterTransitionHook:d})}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(7),i=r(u),s=n(4),f=n(5),c=n(6),l=n(9),d=n(10),p=r(d),h=n(3),g=r(h);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){return"string"==typeof e&&"/"===e.charAt(0)}function o(){var e=v.getHashPath();return a(e)?!0:(v.replaceHashPath("/"+e),!1)}function u(e,t,n){return e+(-1===e.indexOf("?")?"?":"&")+(t+"="+n)}function i(e,t){return e.replace(new RegExp("[?&]?"+t+"=[a-zA-Z0-9]+"),"")}function s(e,t){var n=e.match(new RegExp("\\?.*?\\b"+t+"=(.+?)\\b"));return n&&n[1]}function f(){function e(){var e=v.getHashPath(),t=void 0,n=void 0;k?(t=s(e,k),e=i(e,k),t?n=y.readState(t):(n=null,t=M.createKey(),v.replaceHashPath(u(e,k,t)))):t=n=null;var r=_["default"](e);return M.createLocation(c({},r,{state:n}),void 0,t)}function t(t){function n(){o()&&r(e())}var r=t.transitionTo;return o(),v.addEventListener(window,"hashchange",n),function(){v.removeEventListener(window,"hashchange",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,a=e.state,o=e.action,i=e.key;if(o!==h.POP){var s=(t||"")+n+r;k?(s=u(s,k,i),y.saveState(i,a)):e.key=e.state=null;var f=v.getHashPath();o===h.PUSH?f!==s&&(window.location.hash=s):f!==s&&v.replaceHashPath(s)}}function r(e){1===++j&&(E=t(M));var n=M.listenBefore(e);return function(){n(),0===--j&&E()}}function a(e){1===++j&&(E=t(M));var n=M.listen(e);return function(){n(),0===--j&&E()}}function f(e){M.push(e)}function l(e){M.replace(e)}function d(e){M.go(e)}function m(e){return"#"+M.createHref(e)}function O(e){1===++j&&(E=t(M)),M.registerTransitionHook(e)}function P(e){M.unregisterTransitionHook(e),0===--j&&E()}function S(e,t){M.pushState(e,t)}function x(e,t){M.replaceState(e,t)}var H=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];g.canUseDOM?void 0:p["default"](!1);var k=H.queryKey;(void 0===k||k)&&(k="string"==typeof k?k:b);var M=w["default"](c({},H,{getCurrentLocation:e,finishTransition:n,saveState:y.saveState})),j=0,E=void 0;v.supportsGoWithoutReloadUsingHash();return c({},M,{listenBefore:r,listen:a,push:f,replace:l,go:d,createHref:m,registerTransitionHook:O,unregisterTransitionHook:P,pushState:S,replaceState:x})}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(1),d=(r(l),n(7)),p=r(d),h=n(4),g=n(5),v=n(6),y=n(9),m=n(10),w=r(m),O=n(3),_=r(O),b="_k";t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e){return e.filter(function(e){return e.state}).reduce(function(e,t){return e[t.key]=t.state,e},{})}function o(){function e(e,t){y[e]=t}function t(e){return y[e]}function n(){var e=g[v],n=e.key,r=e.basename,a=e.pathname,o=e.search,i=(r||"")+a+(o||""),s=void 0;n?s=t(n):(s=null,n=l.createKey(),e.key=n);var f=h["default"](i);return l.createLocation(u({},f,{state:s}),void 0,n)}function r(e){var t=v+e;return t>=0&&t<g.length}function o(e){if(e){if(!r(e))return;v+=e;var t=n();l.transitionTo(u({},t,{action:c.POP}))}}function i(t){switch(t.action){case c.PUSH:v+=1,v<g.length&&g.splice(v),g.push(t),e(t.key,t.state);break;case c.REPLACE:g[v]=t,e(t.key,t.state)}}var s=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];Array.isArray(s)?s={entries:s}:"string"==typeof s&&(s={entries:[s]});var l=d["default"](u({},s,{getCurrentLocation:n,finishTransition:i,saveState:e,go:o})),p=s,g=p.entries,v=p.current;"string"==typeof g?g=[g]:Array.isArray(g)||(g=["/"]),g=g.map(function(e){var t=l.createKey();return"string"==typeof e?{pathname:e,key:t}:"object"==typeof e&&e?u({},e,{key:t}):void f["default"](!1)}),null==v?v=g.length-1:v>=0&&v<g.length?void 0:f["default"](!1);var y=a(g);return l}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),s=(r(i),n(7)),f=r(s),c=n(4),l=n(11),d=r(l),p=n(3),h=r(p);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var a=n(2),o=r(a),u=n(14),i=r(u);t["default"]=o["default"](i["default"],"enableBeforeUnload is deprecated, use useBeforeUnload instead"),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var a=n(2),o=r(a),u=n(15),i=r(u);t["default"]=o["default"](i["default"],"enableQueries is deprecated, use useQueries instead"),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){return function(){function t(e){return O&&null==e.basename&&(0===e.pathname.indexOf(O)?(e.pathname=e.pathname.substring(O.length),e.basename=O,""===e.pathname&&(e.pathname="/")):e.basename=""),e}function n(e){if(!O)return e;"string"==typeof e&&(e=p["default"](e));var t=e.pathname,n="/"===O.slice(-1)?O:O+"/",r="/"===t.charAt(0)?t.slice(1):t,a=n+r;return u({},e,{pathname:a})}function r(e){return b.listenBefore(function(n,r){f["default"](e,t(n),r)})}function o(e){return b.listen(function(n){e(t(n))})}function s(e){b.push(n(e))}function c(e){b.replace(n(e))}function d(e){return b.createPath(n(e))}function h(e){return b.createHref(n(e))}function v(){return t(b.createLocation.apply(b,arguments))}function y(e,t){"string"==typeof t&&(t=p["default"](t)),s(u({state:e},t))}function m(e,t){"string"==typeof t&&(t=p["default"](t)),c(u({state:e},t))}var w=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],O=w.basename,_=a(w,["basename"]),b=e(_);if(null==O&&i.canUseDOM){var P=document.getElementsByTagName("base")[0];P&&(O=l["default"](P.href))}return u({},b,{listenBefore:r,listen:o,push:s,replace:c,createPath:d,createHref:h,createLocation:v,pushState:g["default"](y,"pushState is deprecated; use push instead"),replaceState:g["default"](m,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(5),s=n(8),f=r(s),c=n(13),l=r(c),d=n(3),p=r(d),h=n(2),g=r(h);t["default"]=o,e.exports=t["default"]},function(e,t,n){function r(e){return null===e||void 0===e}function a(e){return e&&"object"==typeof e&&"number"==typeof e.length?"function"!=typeof e.copy||"function"!=typeof e.slice?!1:e.length>0&&"number"!=typeof e[0]?!1:!0:!1}function o(e,t,n){var o,c;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(s(e))return s(t)?(e=u.call(e),t=u.call(t),f(e,t,n)):!1;if(a(e)){if(!a(t))return!1;if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}try{var l=i(e),d=i(t)}catch(p){return!1}if(l.length!=d.length)return!1;for(l.sort(),d.sort(),o=l.length-1;o>=0;o--)if(l[o]!=d[o])return!1;for(o=l.length-1;o>=0;o--)if(c=l[o],!f(e[c],t[c],n))return!1;return typeof e==typeof t}var u=Array.prototype.slice,i=n(25),s=n(24),f=e.exports=function(e,t,n){return n||(n={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:o(e,t,n)}},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var a="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=a?n:r,t.supported=n,t.unsupported=r},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t,n){"use strict";var r=n(27);t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n.shift(),a=n.length>0?n.join("="):void 0;return r=decodeURIComponent(r),a=void 0===a?null:decodeURIComponent(a),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(a):e[r]=[e[r],a]:e[r]=a,e},{}):{})},t.stringify=function(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];return void 0===n?"":null===n?t:Array.isArray(n)?n.sort().map(function(e){return r(t)+"="+r(e)}).join("&"):r(t)+"="+r(n)}).filter(function(e){return e.length>0}).join("&"):""}},function(e,t){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16)})}}])}); |
{ | ||
"name": "react-github-corner", | ||
"description": "Add a Github banner to your project page. A React version of: https://github.com/tholman/github-corners", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"homepage": "https://github.com/skratchdot/react-github-corner/", | ||
@@ -30,14 +30,14 @@ "main": "./lib/GithubCorner.js", | ||
"devDependencies": { | ||
"babel-core": "^6.3.15", | ||
"babel-eslint": "^5.0.0-beta4", | ||
"babel-loader": "^6.2.0", | ||
"babel-core": "^6.4.0", | ||
"babel-eslint": "^5.0.0-beta6", | ||
"babel-loader": "^6.2.1", | ||
"babel-preset-es2015": "^6.3.13", | ||
"babel-preset-react": "^6.3.13", | ||
"bootstrap": "^3.3.6", | ||
"brfs": "^1.4.1", | ||
"brfs": "^1.4.2", | ||
"copy-webpack-plugin": "^0.3.3", | ||
"css-loader": "^0.23.0", | ||
"css-loader": "^0.23.1", | ||
"eslint": "^1.10.3", | ||
"eslint-plugin-react": "^3.11.3", | ||
"extract-text-webpack-plugin": "^0.9.1", | ||
"eslint-plugin-react": "^3.15.0", | ||
"extract-text-webpack-plugin": "^1.0.1", | ||
"file-loader": "^0.8.5", | ||
@@ -53,3 +53,3 @@ "gulp": "^3.9.0", | ||
"gulp-util": "^3.0.7", | ||
"history": "^1.15.0", | ||
"history": "^2.0.0-rc2", | ||
"isparta": "^4.0.0", | ||
@@ -61,16 +61,16 @@ "json-loader": "^0.5.4", | ||
"object-path-get": "0.0.3", | ||
"react-bootstrap": "^0.28.1", | ||
"react-dom": "^0.14.3", | ||
"react-bootstrap": "^0.28.2", | ||
"react-dom": "^0.14.6", | ||
"react-hot-loader": "^1.3.0", | ||
"react-redux": "^4.0.0", | ||
"react-router": "^1.0.1", | ||
"redux": "^3.0.4", | ||
"redux-devtools": "^2.1.5", | ||
"redux-router": "^1.0.0-beta5", | ||
"redux-thunk": "^1.0.0", | ||
"react-redux": "^4.0.6", | ||
"react-router": "^1.0.3", | ||
"redux": "^3.0.5", | ||
"redux-devtools": "^3.0.1", | ||
"redux-router": "^1.0.0-beta7", | ||
"redux-thunk": "^1.0.3", | ||
"style-loader": "^0.13.0", | ||
"transform-loader": "^0.2.3", | ||
"url-loader": "^0.5.7", | ||
"webpack": "^1.12.9", | ||
"webpack-dev-server": "^1.14.0" | ||
"webpack": "^1.12.11", | ||
"webpack-dev-server": "^1.14.1" | ||
}, | ||
@@ -77,0 +77,0 @@ "keywords": [ |
@@ -27,3 +27,3 @@ import React, { Component } from 'react'; | ||
</Jumbotron> | ||
<h1 className="title">Examples</h1> | ||
<h1 className="title text-center">Examples</h1> | ||
{[ | ||
@@ -30,0 +30,0 @@ ['#fff', '#151513', '#fff', 'right'], |
@@ -54,3 +54,3 @@ import React, { Component } from 'react'; | ||
mainStyle.right = 0; | ||
armStyle.webkitTransformOrigin = '130px 106px'; | ||
armStyle.WebkitTransformOrigin = '130px 106px'; | ||
armStyle.transformOrigin = '130px 106px'; | ||
@@ -57,0 +57,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
578476
4880
50