text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("inferno"),require("inferno-router")):"function"==typeof define&&define.amd?define("InfernoMenuBar",["inferno","inferno-router"],t):"object"==typeof exports?exports.InfernoMenuBar=t(require("inferno"),require("inferno-router")):e.InfernoMenuBar=t(e.inferno,e["inferno-router"])}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=17)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=o.default.createVNode,a=function(e){var t=e.children;return t.forEach(function(t){t.props.onSelect=e.onSelect}),i(2,"ul","menu "+e.className,t)};a.defaultProps={className:""},t.default=a,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=i.default.createVNode,u=function(e){return a(2,"li","menu-item menu-anchor-item "+e.className+" "+(e.unpadded?"menu-item__unpadded":""),a(2,"a",null,e.children,r({},e)))};u.defaultProps={className:""},t.default=u,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(o);n(13);var a=i.default.createVNode,u=function(e){return a(2,"nav",null,a(2,"ul","menu-bar "+e.className,e.children.map(function(t){return a(16,t.type,null,null,r({},e,t.props,{children:t.props.children||t.children}))})))};u.defaultProps={className:""},t.default=u,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=i.default.createVNode,u=function(e){var t=[a(2,"a",null,e.label||e.children,{href:"#",onClick:(0,o.linkEvent)(e.command,e.onSelect)})];return void 0!==e.label&&"object"===r(e.children)&&(e.children.props.onSelect=e.onSelect,t.push(e.children)),a(2,"li","menu-item "+e.className+" "+(e.unpadded?"menu-item__unpadded":""),t)};u.defaultProps={className:""},t.default=u,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},o=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=n(1),u=i.default.createVNode,l=function(e){return u(2,"li","menu-item menu-link-item "+e.className+" "+(e.unpadded?"menu-item__unpadded":""),u(16,a.Link,null,null,r({},e,{children:e.children})))};l.defaultProps={className:""},t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=o.default.createVNode,a=function(e){return i(2,"hr",e.className)};a.defaultProps={className:""},t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(4);Object.defineProperty(t,"MenuBar",{enumerable:!0,get:function(){return r(o).default}});var i=n(5);Object.defineProperty(t,"MenuItem",{enumerable:!0,get:function(){return r(i).default}});var a=n(6);Object.defineProperty(t,"MenuLinkItem",{enumerable:!0,get:function(){return r(a).default}});var u=n(2);Object.defineProperty(t,"Menu",{enumerable:!0,get:function(){return r(u).default}});var l=n(7);Object.defineProperty(t,"MenuSeparator",{enumerable:!0,get:function(){return r(l).default}});var s=n(3);Object.defineProperty(t,"MenuAnchorItem",{enumerable:!0,get:function(){return r(s).default}})},function(e,t,n){t=e.exports=n(10)(void 0),t.push([e.i,"nav ul{margin:0;padding:0;list-style:none}.menu-bar{display:flex;background:#fff;text-align:center}.menu-item>a{display:block;color:#333;text-decoration:none;padding:8px 10px}.menu-item__unpadded a{padding:0}.menu-item{position:relative;text-align:left}.menu-item:hover{background:#ddd}.menu{position:absolute;left:-99999em;background:#fff;border:1px solid #333;white-space:nowrap;z-index:9999}.menu-bar>.menu-item:hover>.menu{left:-1px;min-width:100%}.menu-bar>.menu-item .menu-item:hover>.menu{left:100%;top:0}",""])},function(e,t){function n(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var i=r(o);return[n].concat(o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=h[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(c(r.parts[i],t))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(c(r.parts[i],t));h[r.id]={id:r.id,refs:1,parts:a}}}}function o(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],a=o[1],u=o[2],l=o[3],s={css:a,media:u,sourceMap:l};n[i]?n[i].parts.push(s):t.push(n[i]={id:i,parts:[s]})}return t}function i(e,t){var n=m(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=b[b.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),b.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=b.indexOf(e);t>=0&&b.splice(t,1)}function u(e){var t=document.createElement("style");return e.attrs.type="text/css",s(t,e.attrs),i(e,t),t}function l(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",s(t,e.attrs),i(e,t),t}function s(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function c(e,t){var n,r,o;if(t.singleton){var i=g++;n=y||(y=u(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),r=p.bind(null,n,t),o=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(t),r=d.bind(null,n),o=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}function f(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=O(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=w(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),u=e.href;e.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}var h={},v=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),m=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),y=null,g=0,b=[],w=n(12);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},void 0===t.singleton&&(t.singleton=v()),void 0===t.insertInto&&(t.insertInto="head"),void 0===t.insertAt&&(t.insertAt="bottom");var n=o(e);return r(n,t),function(e){for(var i=[],a=0;a<n.length;a++){var u=n[a],l=h[u.id];l.refs--,i.push(l)}if(e){r(o(e),t)}for(var a=0;a<i.length;a++){var l=i[a];if(0===l.refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete h[l.id]}}}};var O=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o))return e;var i;return i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")"})}},function(e,t,n){var r=n(9);"string"==typeof r&&(r=[[e.i,r,""]]);n(11)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";t.__esModule=!0;t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e},t.stripPrefix=function(e,t){return 0===e.indexOf(t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),t=decodeURI(t),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},t.createPath=function(e){var t=e.pathname,n=e.search,r=e.hash,o=encodeURI(t||"/");return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},function(e,t,n){"use strict";var r=function(){};r=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return n[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}},e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},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},a=n(15),u=r(a),l=n(21),s=r(l),c=n(19),f=n(14),d=n(20),p=r(d),h=n(18),v=function(){try{return window.history.state||{}}catch(e){return{}}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(h.canUseDOM,"Browser history needs a DOM");var t=window.history,n=(0,h.supportsHistory)(),r=!(0,h.supportsPopStateOnHashChange)(),a=e.forceRefresh,l=void 0!==a&&a,d=e.getUserConfirmation,m=void 0===d?h.getConfirmation:d,y=e.keyLength,g=void 0===y?6:y,b=e.basename?(0,f.stripTrailingSlash)((0,f.addLeadingSlash)(e.basename)):"",w=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname,u=o.search,l=o.hash,s=a+u+l;return b&&(s=(0,f.stripPrefix)(s,b)),i({},(0,f.parsePath)(s),{state:r,key:n})},O=function(){return Math.random().toString(36).substr(2,g)},x=(0,p.default)(),M=function(e){i(D,e),D.length=t.length,x.notifyListeners(D.location,D.action)},_=function(e){(0,h.isExtraneousPopstateEvent)(e)||S(w(e.state))},P=function(){S(w(v()))},j=!1,S=function(e){if(j)j=!1,M();else{x.confirmTransitionTo(e,"POP",m,function(t){t?M({action:"POP",location:e}):k(e)})}},k=function(e){var t=D.location,n=A.indexOf(t.key);-1===n&&(n=0);var r=A.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(j=!0,U(o))},L=w(v()),A=[L.key],E=function(e){return b+(0,f.createPath)(e)},R=function(e,r){(0,u.default)(!("object"===(void 0===e?"undefined":o(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,c.createLocation)(e,r,O(),D.location);x.confirmTransitionTo(i,"PUSH",m,function(e){if(e){var r=E(i),o=i.key,a=i.state;if(n)if(t.pushState({key:o,state:a},null,r),l)window.location.href=r;else{var s=A.indexOf(D.location.key),c=A.slice(0,-1===s?0:s+1);c.push(i.key),A=c,M({action:"PUSH",location:i})}else(0,u.default)(void 0===a,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},N=function(e,r){(0,u.default)(!("object"===(void 0===e?"undefined":o(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=(0,c.createLocation)(e,r,O(),D.location);x.confirmTransitionTo(i,"REPLACE",m,function(e){if(e){var r=E(i),o=i.key,a=i.state;if(n)if(t.replaceState({key:o,state:a},null,r),l)window.location.replace(r);else{var s=A.indexOf(D.location.key);-1!==s&&(A[s]=i.key),M({action:"REPLACE",location:i})}else(0,u.default)(void 0===a,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},U=function(e){t.go(e)},I=function(){return U(-1)},T=function(){return U(1)},C=0,B=function(e){C+=e,1===C?((0,h.addEventListener)(window,"popstate",_),r&&(0,h.addEventListener)(window,"hashchange",P)):0===C&&((0,h.removeEventListener)(window,"popstate",_),r&&(0,h.removeEventListener)(window,"hashchange",P))},H=!1,q=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=x.setPrompt(e);return H||(B(1),H=!0),function(){return H&&(H=!1,B(-1)),t()}},V=function(e){var t=x.appendListener(e);return B(1),function(){B(-1),t()}},D={length:t.length,action:"POP",location:L,createHref:E,push:R,replace:N,go:U,goBack:I,goForward:T,block:q,listen:V};return D};t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(0),i=r(o),a=n(1),u=n(8),l=n(16),s=r(l),c=(0,s.default)(),f=function(e){return console.log('"'+e+'" clicked!')},d=i.default.createVNode,p=function(e){return d(2,"div",null,[d(16,u.MenuBar,null,null,{onSelect:f,children:[d(16,u.MenuLinkItem,null,null,{to:"/",children:"Home"}),d(16,u.MenuItem,null,null,{command:"clicker",children:"Logger"}),d(16,u.MenuAnchorItem,null,null,{href:"https://github.com/doytch",children:"My Github"}),d(16,u.MenuItem,null,null,{label:"Tools",children:d(16,u.Menu,null,null,{children:[d(16,u.MenuLinkItem,null,null,{className:"tool-menu-item",to:"/a",children:"Tool A"}),d(16,u.MenuLinkItem,null,null,{className:"tool-menu-item",to:"/b",children:"Tool B"}),d(16,u.MenuLinkItem,null,null,{className:"tool-menu-item",to:"/c",children:"Tool C"}),d(16,u.MenuSeparator),d(16,u.MenuItem,null,null,{label:"External Links...",children:d(16,u.Menu,null,null,{children:[d(16,u.MenuAnchorItem,null,null,{href:"https://ddg.gg",children:"Duck Duck Go"}),d(16,u.MenuAnchorItem,null,null,{href:"https://news.ycombinator.com/",children:"Hacker News"}),d(16,u.MenuAnchorItem,null,null,{href:"https://www.reddit.com/r/hockey/",children:"Reddit"})]})})]})})]}),e.children])},h=function(){return d(2,"div",null,"Home")},v=function(){return d(2,"div",null,"Page A")},m=function(){return d(2,"div",null,"Page B")},y=function(){return d(2,"div",null,"Page C")},g=function(){return d(16,a.Router,null,null,{history:c,children:d(16,a.Route,null,null,{component:p,children:[d(16,a.Route,null,null,{path:"/",component:h}),d(16,a.Route,null,null,{path:"/a",component:v}),d(16,a.Route,null,null,{path:"/b",component:m}),d(16,a.Route,null,null,{path:"/c",component:y}),d(16,a.Route,null,null,{path:"*",component:h})]})})};i.default.render(d(16,g),document.getElementById("app"))},function(e,t,n){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.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"))&&(window.history&&"pushState"in window.history)},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 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},i=n(22),a=r(i),u=n(23),l=r(u),s=n(14);t.createLocation=function(e,t,n,r){var i=void 0;return"string"==typeof e?(i=(0,s.parsePath)(e),i.state=t):(i=o({},e),void 0===i.pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t)),i.key=n,r&&(i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=(0,a.default)(i.pathname,r.pathname)):i.pathname=r.pathname),i},t.locationsAreEqual=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,l.default)(e.state,t.state)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(15),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(){var e=null,t=function(t){return(0,o.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,i):((0,o.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},r=[];return{setPrompt:t,confirmTransitionTo:n,appendListener:function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];r.forEach(function(e){return e.apply(void 0,t)})}}};t.default=i},function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,a,u){if(void 0===t)throw new Error("invariant requires an error message argument");if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],c=0;l=new Error(t.replace(/%s/g,function(){return s[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};e.exports=r},function(e,t,n){"use strict";var r=function(e){return"/"===e.charAt(0)},o=function(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&r(e),u=t&&r(t),l=a||u;if(e&&r(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var s=void 0;if(i.length){var c=i[i.length-1];s="."===c||".."===c||""===c}else s=!1;for(var f=0,d=i.length;d>=0;d--){var p=i[d];"."===p?o(i,d):".."===p?(o(i,d),f++):f&&(o(i,d),f--)}if(!l)for(;f--;f)i.unshift("..");!l||""===i[0]||i[0]&&r(i[0])||i.unshift("");var h=i.join("/");return s&&"/"!==h.substr(-1)&&(h+="/"),h};e.exports=i},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var o=void 0===t?"undefined":r(t);if(o!==(void 0===n?"undefined":r(n)))return!1;if("object"===o){var i=t.valueOf(),a=n.valueOf();if(i!==t||a!==n)return e(i,a);var u=Object.keys(t),l=Object.keys(n);return u.length===l.length&&u.every(function(r){return e(t[r],n[r])})}return!1};t.default=o}])});