From df597a30ae2e51560a471bfb48097b740301468e Mon Sep 17 00:00:00 2001 From: "divjot.singh" Date: Fri, 11 Aug 2017 15:37:48 +0530 Subject: [PATCH] [Update] Fix #83 and improve button styles --- assets/js/main.js | 2 +- assets/js/vendor.js | 4 +- service-worker.js | 4 +- src/components/Button/index.js | 3 +- src/components/Icons/Bookmark.js | 2 +- src/components/Select/index.js | 5 +- src/components/Textfield/index.js | 4 +- src/constants.js | 5 ++ src/pages/Bookmarks/index.js | 116 ++++++++++++++---------------- src/pages/Main/Content.js | 28 ++++---- src/pages/SGGS/index.js | 40 +++++------ src/pages/Shabad/ShabadView.js | 49 +++++++------ src/pages/pageTitleEnchancer.js | 18 +++++ src/utils.js | 25 +++++++ 14 files changed, 176 insertions(+), 129 deletions(-) create mode 100644 src/pages/pageTitleEnchancer.js create mode 100644 src/utils.js diff --git a/assets/js/main.js b/assets/js/main.js index 37f3cd3..0eb265b 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1 +1 @@ -webpackJsonp([0],[,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(315);Object.defineProperty(t,"AuthorChip",{enumerable:!0,get:function(){return r(a).default}});var o=n(74);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return r(o).default}});var i=n(75);Object.defineProperty(t,"Card",{enumerable:!0,get:function(){return r(i).default}});var l=n(316);Object.defineProperty(t,"Chip",{enumerable:!0,get:function(){return r(l).default}});var u=n(76);Object.defineProperty(t,"Fetch",{enumerable:!0,get:function(){return r(u).default}});var c=n(78);Object.defineProperty(t,"FloatingIcon",{enumerable:!0,get:function(){return r(c).default}});var s=n(49);Object.defineProperty(t,"GurbaniFont",{enumerable:!0,get:function(){return r(s).default}});var f=n(28);Object.defineProperty(t,"Icons",{enumerable:!0,get:function(){return r(f).default}});var d=n(132);Object.defineProperty(t,"Json",{enumerable:!0,get:function(){return r(d).default}});var h=n(317);Object.defineProperty(t,"Khajana",{enumerable:!0,get:function(){return r(h).default}});var p=n(318);Object.defineProperty(t,"LinkButton",{enumerable:!0,get:function(){return r(p).default}});var m=n(77);Object.defineProperty(t,"Loader",{enumerable:!0,get:function(){return r(m).default}});var b=n(319);Object.defineProperty(t,"Markdown",{enumerable:!0,get:function(){return r(b).default}});var g=n(131);Object.defineProperty(t,"Nav",{enumerable:!0,get:function(){return r(g).default}});var y=n(320);Object.defineProperty(t,"Select",{enumerable:!0,get:function(){return r(y).default}});var v=n(321);Object.defineProperty(t,"Slider",{enumerable:!0,get:function(){return r(v).default}});var k=n(322);Object.defineProperty(t,"Switch",{enumerable:!0,get:function(){return r(k).default}});var w=n(133);Object.defineProperty(t,"Textfield",{enumerable:!0,get:function(){return r(w).default}});var E=n(79);Object.defineProperty(t,"Toolbar",{enumerable:!0,get:function(){return r(E).default}});var x=n(134);Object.defineProperty(t,"BlockQuote",{enumerable:!0,get:function(){return r(x).default}})},,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CardActions=t.CardText=t.CardTitle=t.Card=void 0;var o=n(2),i=(r(o),n(0)),l=r(i),u=n(3),c=r(u),s=t.Card=(0,c.default)("div","css-191rzlp0",[],[],function(){return{margin:"10px",padding:"5px",backgroundColor:"#fefefe",borderRadius:"5px",WebkitBoxShadow:"0px 0px 5px 0px grey",boxShadow:"0px 0px 5px 0px grey","&:hover":{WebkitBoxShadow:"0px 0px 8px 0px grey",boxShadow:"0px 0px 8px 0px grey"}}}),f=t.CardTitle=(0,c.default)("div","css-191rzlp1",[],[],function(){return{fontSize:"16px",padding:"2px 5px",color:"#080808",margin:"5px",fontWeight:"bold"}}),d=(0,c.default)("div","css-191rzlp2",[],[],function(){return{margin:"5px",color:"#232323",paddgin:"5px"}}),h=function(e){var t=e.enabled,n=void 0===t||t,r=a(e,["enabled"]);return n?l.default.createElement(d,r):null};t.CardText=h;var p=t.CardActions=(0,c.default)("div","css-191rzlp3",[],[function(e){return e.border?"1px solid lightgrey":"none"}],function(e){return{borderTop:e,display:"-webkit-box; display: -ms-flexbox; display: flex",WebkitBoxAlign:"center",msFlexAlign:"center",alignItems:"center",WebkitBoxPack:"justify",msFlexPack:"justify",justifyContent:"space-between",margin:"10px 5px",padding:"10px 5px 0px 5px"}}),m=function(e){var t=e.title,n=e.text,r=e.actions,a=void 0===r?[]:r;return l.default.createElement(s,null,l.default.createElement(f,null,t),l.default.createElement(h,null,n),l.default.createElement(p,{border:!0},a.map(function(e,t){return l.default.createElement("div",{key:t},e)})))};t.default=m},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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:parseInt(localStorage.getItem("font-size"))||16;switch(arguments[1].type){case r.DECREASE_FONT_SIZE:return localStorage.setItem("font-size",Math.max(e-2,5)),Math.max(e-2,5);case r.INCREASE_FONT_SIZE:return localStorage.setItem("font-size",e+2),e+2;default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(37);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1"===localStorage.getItem("night-mode")||!1;switch(arguments[1].type){case r.TOGGLE_NIGHT_MODE:return localStorage.setItem("night-mode",e?"0":"1"),!e;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a,o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:c,t=JSON.stringify(e);return localStorage.setItem("settings",t),e},f=function(e){var t=localStorage.getItem("settings");try{return JSON.parse(t)||e}catch(t){return e}}(c);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments[1];switch(t.type){case l.RESET_SETTINGS:return s(c);case l.UPDATE_SETTING:var n=i(t.payload,2),a=n[0],u=n[1];return s(o({},e,r({},a,u)));default:return e}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),o=r(a),i=n(3),l=r(i),u=n(10),c=n(20),s=n(37),f=n(28),d=n(131),h=r(d),p=n(310),m=r(p),b=(0,l.default)(u.Link,"css-8a2bh30",[],[],function(){return{textDecoration:"none",color:"lightgrey",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"100%",height:"100%","&:hover":{color:"white"},"&:active":{color:"darkgrey"}}}),g=(0,l.default)("a","css-8a2bh31",[],[],function(){return{textDecoration:"none",color:"lightgrey",textOverflow:"ellipsis",width:"100%",height:"100%",whiteSpace:"nowrap",overflow:"hidden","&:hover":{color:"white"},"&:active":{color:"darkgrey"}}}),y=function(e){var t=e.decreaseFontSize,n=e.increaseFontSize,r=e.toggleNightMode;return o.default.createElement(h.default,null,o.default.createElement(d.NavItem,null,o.default.createElement(b,{title:"Home",to:"/"},o.default.createElement(f.Prayer,null))),o.default.createElement(d.NavItem,{title:"Adjust font size",pointer:!0,onClick:t},"a"),o.default.createElement(d.NavItem,{title:"Adjust font size",pointer:!0,onClick:n},"A"),o.default.createElement(d.NavItem,{onClick:r},o.default.createElement(m.default,null)),o.default.createElement(d.NavItem,null,o.default.createElement(g,{title:"About",href:"https://github.com/bogas04/SikhJS",rel:"noopener noreferrer",target:"_blank"},o.default.createElement(f.Information,null))),o.default.createElement(d.NavItem,null,o.default.createElement(g,{title:"Report Issue",href:"https://github.com/bogas04/SikhJS/issues/new",rel:"noopener noreferrer",target:"_blank"},o.default.createElement(f.Bug,null))))},v={toggleNightMode:s.toggleNightMode,increaseFontSize:s.increaseFontSize,decreaseFontSize:s.decreaseFontSize};t.default=(0,c.connect)(null,v)(y)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){var t=e.english,n=e.gurmukhi,r=e.id,o=a(e,["english","gurmukhi","id"]);return t?c.default.createElement(p,i({to:"/authors/"+r},o),c.default.createElement(h.Chip,null,c.default.createElement("span",null,t," ",c.default.createElement(h.GurbaniFont,{inline:!0},n)))):c.default.createElement(p,{to:"/authors/"+r},c.default.createElement(h.Json,{url:"assets/docs/json/authors/"+r+".json",showLoader:!1},function(e){var t=e.loading,n=void 0===t||t,r=e.data,a=void 0===r?{}:r;return c.default.createElement(h.Chip,null,n?"Loading":a.author+" "+a.gurmukhi)}))}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){var t=e.disabled,n=void 0!==t&&t,r=e.children,o=e.to,l=a(e,["disabled","children","to"]);return n?c.default.createElement(d.default,i({disabled:!0},l),r):c.default.createElement(s.Link,i({to:o},l),c.default.createElement(d.default,null,r))}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){var t=e.style,n=e.className,r=a(e,["style","className"]);return c.default.createElement(h.default,r,function(e){var r=e.data;return c.default.createElement("div",{style:i({padding:10},t),className:n},c.default.createElement(p,{text:r,dangerouslySetInnerHTML:{__html:"s"}}))})}Object.defineProperty(t,"__esModule",{value:!0}),t.Markdown=void 0;var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){var t=e.children,n=(e.checked,e.right),r=void 0!==n&&n,o=a(e,["children","checked","right"]),l=u.default.createElement("div",{style:{display:"flex"}},u.default.createElement(p,i({type:"checkbox"},o)),u.default.createElement(h,{className:"status"},u.default.createElement(d,{className:"dot"})));return u.default.createElement(m,i({},o,{id:t}),r?t:l,r?l:t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t-1},s.default.createElement(k.default,{lines:n,larivaar:a,larivaarAssist:o,showTranslation:i}))))}},{key:"updateLines",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.ang;return this.setState({lines:[]}),fetch("assets/docs/json/SGGS/Ang "+t+".json").then(function(e){return e.json()}).then(function(n){return e.setState({lines:n,error:!1,ang:t})}).catch(function(t){console.error(t),e.setState({error:!0})})}},{key:"setAng",value:function(e){var t=this;console.log("SGGS received "+e),e&&(this.props.history.push("/sggs/"+e),this.updateLines(e),(0,h.isBookmarked)({key:"sggs",value:e}).then(function(e){return t.setState({isBookmarked:e})}).catch(function(e){console.error(e),t.setState({error:!0})}),localStorage.setItem("sggs-ang",e))}},{key:"handleRandomAng",value:function(){this.setAng(parseInt(1+1430*Math.random(),10))}},{key:"handleIncrementAng",value:function(){this.setAng(parseInt(this.state.ang,10)+1)}},{key:"handleDecrementAng",value:function(){this.setAng(parseInt(this.state.ang,10)-1)}},{key:"handleToggleLarivaar",value:function(){this.setState({larivaar:!this.state.larivaar})}},{key:"handleToggleLarivaarAssist",value:function(){this.setState({larivaarAssist:!this.state.larivaarAssist})}},{key:"handleToggleTranslation",value:function(){this.setState({showTranslation:!this.state.showTranslation})}},{key:"handleToggleBookmark",value:function(){var e=this,t=this.state,n=t.isBookmarked,r=t.ang,a="Sri Guru Granth Sahib "+r;(0,h.toggleBookmark)({isBookmarked:n,title:a,key:"sggs",value:r}).then(function(t){return e.setState({isBookmarked:t})}).catch(function(t){console.error(t),e.setState({error:!0})})}}]),t}(c.Component);t.default=(0,d.withRouter)(x)},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){var t=e.totalLines,n=e.ang,r=e.isBookmarked,o=e.larivaar,i=e.larivaarAssist,u=e.showTranslation,c=a(e,["totalLines","ang","isBookmarked","larivaar","larivaarAssist","showTranslation"]),d=function(e){var t=e.target.value;tk?c.onSetAng(k):t!=n&&c.onSetAng(parseInt(Number(t)))};return l.default.createElement(s.Toolbar,{title:"Sri Guru Granth Sahib"},l.default.createElement(w,null,l.default.createElement(E,{style:{justifyContent:"space-around"}},l.default.createElement(s.Button,{title:"Bookmark",onClick:c.onToggleBookmark},l.default.createElement(f.Bookmark,{isBookmarked:r})),l.default.createElement(s.Button,{disabled:0===t||n===v,onClick:c.onDecrementAng,title:"Previous"},l.default.createElement(f.Previous,null)),l.default.createElement(s.Textfield,{disabled:0===t,center:!0,size:60,placeholder:String(n),key:n,onKeyDown:d,onBlur:d,defaultValue:n,type:"number",min:v,max:k}),l.default.createElement(s.Button,{disabled:0===t||n===k,onClick:c.onIncrementAng,title:"Next"},l.default.createElement(f.Next,null)),l.default.createElement(s.Button,{size:13,title:"Random Ang",onClick:c.onRandomAng},l.default.createElement(f.Random,null))),l.default.createElement(x,null,l.default.createElement(_,null,l.default.createElement(s.Switch,{right:!0,defaultChecked:o,checked:o,onChange:c.onToggleLarivaar},"Larivaar")),o&&l.default.createElement(_,null,l.default.createElement(s.Switch,{right:!0,defaultChecked:i,checked:i,onChange:c.onToggleLarivaarAssist,disabled:!o},l.default.createElement("span",null,"Larivaar",l.default.createElement(b.default,null,"Assist")))),l.default.createElement(_,null,l.default.createElement(s.Switch,{right:!0,defaultChecked:u,checked:u,onChange:c.onToggleTranslation},"English Translation")))))}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),l=r(i),u=n(3),c=r(u),s=n(8),f=n(28),d=n(134),h=n(39),p=r(h),m=n(136),b=r(m),g=n(135),y=r(g),v=y.default.MIN_ANG,k=y.default.MAX_ANG,w=(0,c.default)("div","css-1owmv2h0",[],[],function(){return{display:"-webkit-box; display: -ms-flexbox; display: flex",WebkitBoxPack:"center",msFlexPack:"center",justifyContent:"center",WebkitBoxAlign:"center",msFlexAlign:"center",alignItems:"center",msFlexWrap:"wrap",flexWrap:"wrap"}}),E=(0,c.default)(w,"css-1owmv2h1",[],[],function(){return{WebkitBoxOrient:"horizontal",WebkitBoxDirection:"normal",msFlexDirection:"row",flexDirection:"row",paddingBottom:"5px","@media (max-width: 500px)":{width:"100vw"}}}),x=(0,c.default)(E,"css-1owmv2h2",[],[],function(){return{"@media (max-width: 500px)":{msFlexWrap:"wrap",flexWrap:"wrap",WebkitBoxOrient:"vertical",WebkitBoxDirection:"normal",msFlexDirection:"column",flexDirection:"column",WebkitBoxAlign:"start",msFlexAlign:"start",alignItems:"flex-start"}}}),_=(0,c.default)("div","css-1owmv2h3",[],[d.slide],function(e){return{margin:"5px 0",WebkitAnimation:e+" normal .25s",animation:e+" normal .25s","@media (max-width: 500px)":{width:"100%"}}}),S=(0,h.notEqualsSome)(["totalLines","ang","isBookmarked","larivaar","larivaarAssist","showTranslation"]);t.default=(0,p.default)(S)(o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.larivaarAssist,n=e.showTranslation,r=e.larivaar,a=e.lines;return i.default.createElement("span",null,a.map(function(e){var a=e.id,o=e.text,l=e.translation;return i.default.createElement(m,{className:"line",key:a,showTranslation:n,larivaar:r},i.default.createElement(p.default,{larivaarAssist:t,enabled:r},o),n?i.default.createElement(s.English,null,i.default.createElement(c.BlockQuote,null,l.text)):"")}))}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=r(o),l=n(3),u=r(l),c=n(8),s=n(49),f=n(39),d=r(f),h=n(326),p=r(h),m=(0,u.default)("div","css-1bb2kk70",[],[function(e){var t=e.showTranslation;e.larivaar;return t?"block":"inline"}],function(e){return{display:e,"@media (max-width: 500px)":{display:"block",overflow:"hidden",textOverflow:"ellipsis",width:"100%"}}}),b=function(e,t){return(0,f.notEqualsSome)(["larivaar","larivaarAssist","showTranslation"])(e,t)||e.lines.some(function(e,n){return e.text!==t.lines[n].text})};t.default=(0,d.default)(b)(a)},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){var t=e.larivaarAssist,n=e.enabled,r=e.children,o=e.style,l=a(e,["larivaarAssist","enabled","children","style"]);return u.default.createElement("span",i({style:i({margin:"0 5px",wordWrap:"break-word"},o)},l),n?r.split(" ").map(function(e,n){return t&&e.indexOf("॥")<0&&n%2==0?u.default.createElement(s.default,{key:n},e):u.default.createElement("span",{key:n},e)}):r)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t0&&f.default.createElement(h.default,{id:parseInt(e.id||e.match.params.id,10),gurbani:i,ang:parseInt(a.pageno,10),source:a.source,author:l({},a.writer,{id:parseInt(a.writer.id,10)})})})}}]),t}(f.default.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t-1}));var o=function(t){var n=t.items,r=(0,p.default)("div","css-1nqqppi1",[],[],function(){return{display:"-webkit-box; display: -ms-flexbox; display: flex",flexWrap:"wrap",justifyContent:"center",flexDirection:"row"}});return f.default.createElement(r,null,n.map(function(t){return f.default.createElement(S,{data:t,key:t.id,onTitleChange:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.title;return e.updateBookmark(l({},t,{title:n}))}})}))};return f.default.createElement("div",null,f.default.createElement(b.default,{title:"Bookmarks"},f.default.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"}},f.default.createElement(E.default,{onChange:this.handleUpdateKeyword,placeholder:"Search"}),f.default.createElement(_.default,{noBorder:!0,onClick:this.handleClearAllBookmarks},"Clear All Bookmarks"))),f.default.createElement(y.default,{loading:n},0===r.length?f.default.createElement("h1",{style:{textAlign:"center"}},"No Bookmarks Found"):f.default.createElement(o,{items:r})))}},{key:"handleUpdateBookmark",value:function(e){var t=e.key,n=e.value,r=e.id,a=e.timestamp,o=e.title;(0,v.updateBookmarkTitle)({key:t,value:n,id:r,timestamp:a,title:o}).then(function(e){return console.log(e)}).catch(function(e){return console.error(e)})}},{key:"handleClearAllBookmarks",value:function(){var e=this;(0,v.clearAllBookmarks)().then(function(){return e.setState({bookmarks:[]})}).catch(function(e){return console.error(e)})}},{key:"handleUpdateKeyword",value:function(e){this.setState({keyword:e})}}]),t}(s.Component);t.default=O},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}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t-1}):n},h=function(e){var t=e.data,n=e.keyword,r=a(e,["data","keyword"]);return l.default.createElement(u.SearchResults,o({data:d({data:t,keyword:n}),mapItemToView:f},r))};t.default=function(){return l.default.createElement(c.default,{resourcePath:"assets/docs/json/authors.json",title:"Authors",onDataLoad:h})}},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}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t-1}):n},h=function(e){var t=e.data,n=e.keyword,r=a(e,["data","keyword"]);return l.default.createElement(u.SearchResults,o({data:d({data:t,keyword:n}),mapItemToView:f},r))};t.default=function(){return l.default.createElement(c.default,{resourcePath:"assets/docs/json/raags.json",title:"Raags",onDataLoad:h})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.match.params,n=t.id,r=t.name;return l.default.createElement("div",null,l.default.createElement(u.Toolbar,{title:r}),l.default.createElement(u.Markdown,{url:"assets/docs/md/authors/"+n+".md"}))}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=(r(o),n(0)),l=r(i),u=n(8),c=n(39),s=r(c);t.default=(0,s.default)(function(e,t){return e.match.params.id!==t.match.params.id})(a)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.match.params,n=t.id,r=t.name;return l.default.createElement("div",null,l.default.createElement(u.Toolbar,{title:r}),l.default.createElement(u.Markdown,{url:"assets/docs/md/raags/"+n+".md"}))}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=(r(o),n(0)),l=r(i),u=n(8),c=n(39),s=r(c);t.default=(0,s.default)(function(e,t){return e.match.params.id!==t.match.params.id})(a)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CardActions=t.CardText=t.CardTitle=t.Card=void 0;var o=n(2),i=(r(o),n(0)),l=r(i),u=n(3),c=r(u),s=t.Card=(0,c.default)("div","css-191rzlp0",[],[],function(){return{margin:"10px",padding:"5px",backgroundColor:"#fefefe",borderRadius:"5px",WebkitBoxShadow:"0px 0px 5px 0px grey",boxShadow:"0px 0px 5px 0px grey","&:hover":{WebkitBoxShadow:"0px 0px 8px 0px grey",boxShadow:"0px 0px 8px 0px grey"}}}),f=t.CardTitle=(0,c.default)("div","css-191rzlp1",[],[],function(){return{fontSize:"16px",padding:"2px 5px",color:"#080808",margin:"5px",fontWeight:"bold"}}),d=(0,c.default)("div","css-191rzlp2",[],[],function(){return{margin:"5px",color:"#232323",paddgin:"5px"}}),h=function(e){var t=e.enabled,n=void 0===t||t,r=a(e,["enabled"]);return n?l.default.createElement(d,r):null};t.CardText=h;var p=t.CardActions=(0,c.default)("div","css-191rzlp3",[],[function(e){return e.border?"1px solid lightgrey":"none"}],function(e){return{borderTop:e,display:"-webkit-box; display: -ms-flexbox; display: flex",WebkitBoxAlign:"center",msFlexAlign:"center",alignItems:"center",WebkitBoxPack:"justify",msFlexPack:"justify",justifyContent:"space-between",margin:"10px 5px",padding:"10px 5px 0px 5px"}}),m=function(e){var t=e.title,n=e.text,r=e.actions,a=void 0===r?[]:r;return l.default.createElement(s,null,l.default.createElement(f,null,t),l.default.createElement(h,null,n),l.default.createElement(p,{border:!0},a.map(function(e,t){return l.default.createElement("div",{key:t},e)})))};t.default=m},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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:parseInt(localStorage.getItem("font-size"))||16;switch(arguments[1].type){case r.DECREASE_FONT_SIZE:return localStorage.setItem("font-size",Math.max(e-2,5)),Math.max(e-2,5);case r.INCREASE_FONT_SIZE:return localStorage.setItem("font-size",e+2),e+2;default:return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(39);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1"===localStorage.getItem("night-mode")||!1;switch(arguments[1].type){case r.TOGGLE_NIGHT_MODE:return localStorage.setItem("night-mode",e?"0":"1"),!e;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a,o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:c,t=JSON.stringify(e);return localStorage.setItem("settings",t),e},f=function(e){var t=localStorage.getItem("settings");try{return JSON.parse(t)||e}catch(t){return e}}(c);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments[1];switch(t.type){case l.RESET_SETTINGS:return s(c);case l.UPDATE_SETTING:var n=i(t.payload,2),a=n[0],u=n[1];return s(o({},e,r({},a,u)));default:return e}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),o=r(a),i=n(3),l=r(i),u=n(10),c=n(20),s=n(39),f=n(29),d=n(128),h=r(d),p=n(310),m=r(p),b=(0,l.default)(u.Link,"css-8a2bh30",[],[],function(){return{textDecoration:"none",color:"lightgrey",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"100%",height:"100%","&:hover":{color:"white"},"&:active":{color:"darkgrey"}}}),g=(0,l.default)("a","css-8a2bh31",[],[],function(){return{textDecoration:"none",color:"lightgrey",textOverflow:"ellipsis",width:"100%",height:"100%",whiteSpace:"nowrap",overflow:"hidden","&:hover":{color:"white"},"&:active":{color:"darkgrey"}}}),y=function(e){var t=e.decreaseFontSize,n=e.increaseFontSize,r=e.toggleNightMode;return o.default.createElement(h.default,null,o.default.createElement(d.NavItem,null,o.default.createElement(b,{title:"Home",to:"/"},o.default.createElement(f.Prayer,null))),o.default.createElement(d.NavItem,{title:"Adjust font size",pointer:!0,onClick:t},"a"),o.default.createElement(d.NavItem,{title:"Adjust font size",pointer:!0,onClick:n},"A"),o.default.createElement(d.NavItem,{onClick:r},o.default.createElement(m.default,null)),o.default.createElement(d.NavItem,null,o.default.createElement(g,{title:"About",href:"https://github.com/bogas04/SikhJS",rel:"noopener noreferrer",target:"_blank"},o.default.createElement(f.Information,null))),o.default.createElement(d.NavItem,null,o.default.createElement(g,{title:"Report Issue",href:"https://github.com/bogas04/SikhJS/issues/new",rel:"noopener noreferrer",target:"_blank"},o.default.createElement(f.Bug,null))))},v={toggleNightMode:s.toggleNightMode,increaseFontSize:s.increaseFontSize,decreaseFontSize:s.decreaseFontSize};t.default=(0,c.connect)(null,v)(y)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){var t=e.english,n=e.gurmukhi,r=e.id,o=a(e,["english","gurmukhi","id"]);return t?c.default.createElement(p,i({to:"/authors/"+r},o),c.default.createElement(h.Chip,null,c.default.createElement("span",null,t," ",c.default.createElement(h.GurbaniFont,{inline:!0},n)))):c.default.createElement(p,{to:"/authors/"+r},c.default.createElement(h.Json,{url:"assets/docs/json/authors/"+r+".json",showLoader:!1},function(e){var t=e.loading,n=void 0===t||t,r=e.data,a=void 0===r?{}:r;return c.default.createElement(h.Chip,null,n?"Loading":a.author+" "+a.gurmukhi)}))}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){var t=e.disabled,n=void 0!==t&&t,r=e.children,o=e.to,l=a(e,["disabled","children","to"]);return n?c.default.createElement(d.default,i({disabled:!0},l),r):c.default.createElement(s.Link,i({to:o},l),c.default.createElement(d.default,null,r))}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){var t=e.style,n=e.className,r=a(e,["style","className"]);return c.default.createElement(h.default,r,function(e){var r=e.data;return c.default.createElement("div",{style:i({padding:10},t),className:n},c.default.createElement(p,{text:r,dangerouslySetInnerHTML:{__html:"s"}}))})}Object.defineProperty(t,"__esModule",{value:!0}),t.Markdown=void 0;var i=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e){var t=e.children,n=(e.checked,e.right),r=void 0!==n&&n,o=a(e,["children","checked","right"]),l=u.default.createElement("div",{style:{display:"flex"}},u.default.createElement(p,i({type:"checkbox"},o)),u.default.createElement(h,{className:"status"},u.default.createElement(d,{className:"dot"})));return u.default.createElement(m,i({},o,{id:t}),r?t:l,r?l:t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t-1},s.default.createElement(k.default,{lines:n,larivaar:a,larivaarAssist:o,showTranslation:i}))))}},{key:"updateLines",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.ang;return this.setState({lines:[]}),fetch("assets/docs/json/SGGS/Ang "+t+".json").then(function(e){return e.json()}).then(function(n){return e.setState({lines:n,error:!1,ang:t})}).catch(function(t){console.error(t),e.setState({error:!0})})}},{key:"setAng",value:function(e){console.log("SGGS received "+e),e&&(localStorage.setItem("sggs-ang",e),this.props.history.push("/sggs/"+e))}},{key:"handleRandomAng",value:function(){this.setAng(parseInt(1+1430*Math.random(),10))}},{key:"handleIncrementAng",value:function(){this.setAng(parseInt(this.state.ang,10)+1)}},{key:"handleDecrementAng",value:function(){this.setAng(parseInt(this.state.ang,10)-1)}},{key:"handleToggleLarivaar",value:function(){this.setState({larivaar:!this.state.larivaar})}},{key:"handleToggleLarivaarAssist",value:function(){this.setState({larivaarAssist:!this.state.larivaarAssist})}},{key:"handleToggleTranslation",value:function(){this.setState({showTranslation:!this.state.showTranslation})}},{key:"handleToggleBookmark",value:function(){var e=this,t=this.state,n=t.isBookmarked,r=t.ang,a="Sri Guru Granth Sahib "+r;(0,h.toggleBookmark)({isBookmarked:n,title:a,key:"sggs",value:r}).then(function(t){return e.setState({isBookmarked:t})}).catch(function(t){console.error(t),e.setState({error:!0})})}}]),t}(c.Component);t.default=(0,d.withRouter)(_)},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){var t=e.totalLines,n=e.ang,r=e.isBookmarked,o=e.larivaar,i=e.larivaarAssist,u=e.showTranslation,c=a(e,["totalLines","ang","isBookmarked","larivaar","larivaarAssist","showTranslation"]),d=function(e){var t=e.target.value;tk?c.onSetAng(k):t!=n&&c.onSetAng(parseInt(Number(t)))};return l.default.createElement(s.Toolbar,{title:"Sri Guru Granth Sahib"},l.default.createElement(w,null,l.default.createElement(E,{style:{justifyContent:"space-around"}},l.default.createElement(s.Button,{title:"Bookmark",onClick:c.onToggleBookmark},l.default.createElement(f.Bookmark,{isBookmarked:r})),l.default.createElement(s.Button,{disabled:0===t||n===v,onClick:c.onDecrementAng,title:"Previous"},l.default.createElement(f.Previous,null)),l.default.createElement(s.Textfield,{disabled:0===t,center:!0,size:60,placeholder:String(n),key:n,onKeyDown:d,onBlur:d,defaultValue:n,type:"number",min:v,max:k}),l.default.createElement(s.Button,{disabled:0===t||n===k,onClick:c.onIncrementAng,title:"Next"},l.default.createElement(f.Next,null)),l.default.createElement(s.Button,{size:13,title:"Random Ang",onClick:c.onRandomAng},l.default.createElement(f.Random,null))),l.default.createElement(_,null,l.default.createElement(x,null,l.default.createElement(s.Switch,{right:!0,defaultChecked:o,checked:o,onChange:c.onToggleLarivaar},"Larivaar")),o&&l.default.createElement(x,null,l.default.createElement(s.Switch,{right:!0,defaultChecked:i,checked:i,onChange:c.onToggleLarivaarAssist,disabled:!o},l.default.createElement("span",null,"Larivaar",l.default.createElement(b.default,null,"Assist")))),l.default.createElement(x,null,l.default.createElement(s.Switch,{right:!0,defaultChecked:u,checked:u,onChange:c.onToggleTranslation},"English Translation")))))}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),l=r(i),u=n(3),c=r(u),s=n(8),f=n(29),d=n(133),h=n(40),p=r(h),m=n(135),b=r(m),g=n(134),y=r(g),v=y.default.MIN_ANG,k=y.default.MAX_ANG,w=(0,c.default)("div","css-1owmv2h0",[],[],function(){return{display:"-webkit-box; display: -ms-flexbox; display: flex",WebkitBoxPack:"center",msFlexPack:"center",justifyContent:"center",WebkitBoxAlign:"center",msFlexAlign:"center",alignItems:"center",msFlexWrap:"wrap",flexWrap:"wrap"}}),E=(0,c.default)(w,"css-1owmv2h1",[],[],function(){return{WebkitBoxOrient:"horizontal",WebkitBoxDirection:"normal",msFlexDirection:"row",flexDirection:"row",paddingBottom:"5px","@media (max-width: 500px)":{width:"100vw"}}}),_=(0,c.default)(E,"css-1owmv2h2",[],[],function(){return{"@media (max-width: 500px)":{msFlexWrap:"wrap",flexWrap:"wrap",WebkitBoxOrient:"vertical",WebkitBoxDirection:"normal",msFlexDirection:"column",flexDirection:"column",WebkitBoxAlign:"start",msFlexAlign:"start",alignItems:"flex-start"}}}),x=(0,c.default)("div","css-1owmv2h3",[],[d.slide],function(e){return{margin:"5px 0",WebkitAnimation:e+" normal .25s",animation:e+" normal .25s","@media (max-width: 500px)":{width:"100%"}}}),S=(0,h.notEqualsSome)(["totalLines","ang","isBookmarked","larivaar","larivaarAssist","showTranslation"]);t.default=(0,p.default)(S)(o)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.larivaarAssist,n=e.showTranslation,r=e.larivaar,a=e.lines;return i.default.createElement("span",null,a.map(function(e){var a=e.id,o=e.text,l=e.translation;return i.default.createElement(m,{className:"line",key:a,showTranslation:n,larivaar:r},i.default.createElement(p.default,{larivaarAssist:t,enabled:r},o),n?i.default.createElement(s.English,null,i.default.createElement(c.BlockQuote,null,l.text)):"")}))}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=r(o),l=n(3),u=r(l),c=n(8),s=n(49),f=n(40),d=r(f),h=n(327),p=r(h),m=(0,u.default)("div","css-1bb2kk70",[],[function(e){var t=e.showTranslation;e.larivaar;return t?"block":"inline"}],function(e){return{display:e,"@media (max-width: 500px)":{display:"block",overflow:"hidden",textOverflow:"ellipsis",width:"100%"}}}),b=function(e,t){return(0,f.notEqualsSome)(["larivaar","larivaarAssist","showTranslation"])(e,t)||e.lines.some(function(e,n){return e.text!==t.lines[n].text})};t.default=(0,d.default)(b)(a)},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){var t=e.larivaarAssist,n=e.enabled,r=e.children,o=e.style,l=a(e,["larivaarAssist","enabled","children","style"]);return u.default.createElement("span",i({style:i({margin:"0 5px",wordWrap:"break-word"},o)},l),n?r.split(" ").map(function(e,n){return t&&e.indexOf("॥")<0&&n%2==0?u.default.createElement(s.default,{key:n},e):u.default.createElement("span",{key:n},e)}):r)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t0&&f.default.createElement(h.default,{id:parseInt(e.id||e.match.params.id,10),gurbani:i,ang:parseInt(a.pageno,10),source:a.source,author:l({},a.writer,{id:parseInt(a.writer.id,10)})})})}}]),t}(f.default.Component);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t-1})),f.default.createElement("div",null,f.default.createElement(g.Toolbar,{title:"Bookmarks"},f.default.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"}},f.default.createElement(g.Textfield,{onChange:this.handleUpdateKeyword,placeholder:"Search"}),f.default.createElement(g.Button,{noBorder:!0,onClick:this.handleClearAllBookmarks},"Clear All Bookmarks"))),f.default.createElement(g.Loader,{loading:t},0===n.length?f.default.createElement("h1",{style:{textAlign:"center"}},"No Bookmarks Found"):f.default.createElement(x,{items:n,onTitleChange:this.handleUpdateBookmark})))}},{key:"handleUpdateBookmark",value:function(e){var t=e.key,n=e.value,r=e.id,a=e.timestamp,o=e.title;(0,b.updateBookmarkTitle)({key:t,value:n,id:r,timestamp:a,title:o}).then(function(e){return console.log(e)}).catch(function(e){return console.error(e)})}},{key:"handleClearAllBookmarks",value:function(){var e=this;(0,b.clearAllBookmarks)().then(function(){return e.setState({bookmarks:[]})}).catch(function(e){return console.error(e)})}},{key:"handleUpdateKeyword",value:function(e){var t=e.currentTarget.value;this.setState({keyword:t})}}]),t}(s.Component);t.default=S},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}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t-1}):n},h=function(e){var t=e.data,n=e.keyword,r=a(e,["data","keyword"]);return l.default.createElement(u.SearchResults,o({data:d({data:t,keyword:n}),mapItemToView:f},r))};t.default=function(){return l.default.createElement(c.default,{resourcePath:"assets/docs/json/authors.json",title:"Authors",onDataLoad:h})}},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}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t-1}):n},h=function(e){var t=e.data,n=e.keyword,r=a(e,["data","keyword"]);return l.default.createElement(u.SearchResults,o({data:d({data:t,keyword:n}),mapItemToView:f},r))};t.default=function(){return l.default.createElement(c.default,{resourcePath:"assets/docs/json/raags.json",title:"Raags",onDataLoad:h})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.match.params,n=t.id,r=t.name;return l.default.createElement("div",null,l.default.createElement(u.Toolbar,{title:r}),l.default.createElement(u.Markdown,{url:"assets/docs/md/authors/"+n+".md"}))}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=(r(o),n(0)),l=r(i),u=n(8),c=n(40),s=r(c);t.default=(0,s.default)(function(e,t){return e.match.params.id!==t.match.params.id})(a)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.match.params,n=t.id,r=t.name;return l.default.createElement("div",null,l.default.createElement(u.Toolbar,{title:r}),l.default.createElement(u.Markdown,{url:"assets/docs/md/raags/"+n+".md"}))}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),i=(r(o),n(0)),l=r(i),u=n(8),c=n(40),s=r(c);t.default=(0,s.default)(function(e,t){return e.match.params.id!==t.match.params.id})(a)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n1){for(var h=Array(d),y=0;y1){for(var v=Array(m),g=0;g1&&void 0!==arguments[1]?arguments[1]:"";return e?t?(0,A.map)(t.split(","),function(t){return t.indexOf("&")>=0?t.replace(W,".css-"+e):".css-"+e+t}).join(","):".css-"+e:t.replace(W,"")}function b(e){var t=void 0,n=void 0,r=void 0,o=void 0;return(0,A.forEach)((0,A.keys)(e),function(i){i.indexOf("&")>=0?(n=n||{},n[i]=b(e[i]).plain):0===i.indexOf("@media")?(r=r||{},r[i]=b(e[i])):0===i.indexOf("@supports")?(o=o||{},o[i]=b(e[i])):(t=t||{},t[i]=e[i])}),{plain:t,selects:n,medias:r,supports:o}}function _(e,t){var n=t.plain,r=t.selects,o=t.medias,i=t.supports,a=[];return n&&a.push(g(e)+"{"+(0,j.createMarkupForStyles)(n)+"}"),r&&(0,A.forEach)((0,A.keys)(r),function(t){return a.push(g(e,t)+"{"+(0,j.createMarkupForStyles)(r[t])+"}")}),o&&(0,A.forEach)((0,A.keys)(o),function(t){return a.push(t+"{"+_(e,o[t]).join("")+"}")}),i&&(0,A.forEach)((0,A.keys)(i),function(t){return a.push(t+"{"+_(e,i[t]).join("")+"}")}),a}function w(e){if(!F[e.id]){F[e.id]=!0;var t=b(e.style);(0,A.map)(_(e.id,t),function(e){return U.insert(e)})}}function S(e){var t;if(o(e),w(e),V[e.id])return V[e.id];var n=(t={},t["css-"+e.id]="",t);return Object.defineProperty(n,"toString",{enumerable:!1,value:function(){return"css-"+e.id}}),V[e.id]=n,n}function x(e){return 0===e.indexOf("$")}function C(e){for(var t=[":",".","[",">"," "],n=!1,r=e.charAt(0),o=0;o=0}function E(e,t){var n=(0,A.map)(e.split(","),function(e){return e.indexOf("&")>=0?e:"&"+e}),r=(0,A.map)(t.split(","),function(e){return e.indexOf("&")>=0?e:"&"+e});return(0,A.reduce)(r,function(e,t){return e.concat((0,A.map)(n,function(e){return t.replace(W,e)}))},[]).join(",")}function k(e,t){return e?"@media "+e.substring(6)+" and "+t.substring(6):t}function P(e){return 0===e.indexOf("@media")}function O(e){return 0===e.indexOf("@supports")}function T(e,t){return e?"@supports "+e.substring(9)+" and "+t.substring(9):t}function M(e){var t=[];return(0,A.forEach)(e,function(e){t=Array.isArray(e)?t.concat(M(e)):t.concat(e)}),t}function N(e,t){var n=t.selector,r=void 0===n?"":n,o=t.mq,a=void 0===o?"":o,u=t.supp,s=void 0===u?"":u,c=t.src,l=void 0===c?[{}]:c;Array.isArray(l)||(l=[l]),l=M(l),(0,A.forEach)(l,function(t){if(m(t)){var n=i(t);if("css"!==n.type)throw new Error("cannot merge this rule");t=n.style}t=(0,L.default)(t),t&&t.composes&&N(e,{selector:r,mq:a,supp:s,src:t.composes}),(0,A.forEach)((0,A.keys)(t||{}),function(n){if(x(n)){var o=t[n];if("string"==typeof o){var i=H.exec(o);if(null!==i&&B[i[1]]){var u=B[i[1]];if("css"!==u.type)throw new Error("cannot merge this rule");N(e,{selector:r,mq:a,supp:s,src:u.style})}}else N(e,{selector:r,mq:a,supp:s,src:o})}else if(C(n))N(e,{selector:E(r,n),mq:a,supp:s,src:t[n]});else if(P(n))N(e,{selector:r,mq:k(a,n),supp:s,src:t[n]});else if(O(n))N(e,{selector:r,mq:a,supp:T(s,n),src:t[n]});else if("composes"===n);else{var c=e;s&&(c[s]=c[s]||{},c=c[s]),a&&(c[a]=c[a]||{},c=c[a]),r&&(c[r]=c[r]||{},c=c[r]),c[n]=t[n]}})})}t.__esModule=!0,t.inserted=t.sheet=void 0,t.flush=r,t.css=u,t.injectGlobal=c,t.fontFace=l,t.keyframes=p,t.hydrate=d,t.objStyle=h,t.isLikeRule=m,t.idFor=v;var I=n(282),A=n(36),R=n(283),j=n(284),D=n(287),L=function(e){return e&&e.__esModule?e:{default:e}}(D),U=t.sheet=new I.StyleSheet;U.inject();var F=t.inserted={},B=U.registered={},q="undefined"!=typeof WeakMap?function(e){return function(t){if(z[t.length]){for(var n=z[t.length],r=0;r]/,s=n(58),c=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&u.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=c},function(e,t,n){"use strict";function r(e){var t=""+e,n=i.exec(t);if(!n)return t;var r,o="",a=0,u=0;for(a=n.index;a]/;e.exports=o},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,y)||(e[y]=d++,f[e[y]]={}),f[e[y]]}var o,i=n(6),a=n(50),u=n(181),s=n(96),c=n(182),l=n(54),f={},p=!1,d=0,h={topAbort:"abort",topAnimationEnd:c("animationend")||"animationend",topAnimationIteration:c("animationiteration")||"animationiteration",topAnimationStart:c("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:c("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},y="_reactListenersID"+String(Math.random()).slice(2),m=i({},u,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(m.handleTopLevel),m.ReactEventListener=e}},setEnabled:function(e){m.ReactEventListener&&m.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!m.ReactEventListener||!m.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,o=r(n),i=a.registrationNameDependencies[e],u=0;u1)for(var n=1;n-1||a("96",e),!c.plugins[n]){t.extractEvents||a("97",e),c.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)||a("98",i,e)}}}function o(e,t,n){c.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),c.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];i(u,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){c.registrationNameModules[e]&&a("100",e),c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(5),u=(n(1),null),s={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){u&&a("101"),u=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];s.hasOwnProperty(n)&&s[n]===o||(s[n]&&a("102",n),s[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=c.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){u=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=c},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function o(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=v.getNodeFromInstance(r),t?y.invokeGuardedCallbackWithCatch(o,n,e):y.invokeGuardedCallback(o,n,e),e.currentTarget=null}function u(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o1){for(var h=Array(d),y=0;y1){for(var v=Array(m),g=0;g1&&void 0!==arguments[1]?arguments[1]:"";return e?t?(0,A.map)(t.split(","),function(t){return t.indexOf("&")>=0?t.replace(W,".css-"+e):".css-"+e+t}).join(","):".css-"+e:t.replace(W,"")}function b(e){var t=void 0,n=void 0,r=void 0,o=void 0;return(0,A.forEach)((0,A.keys)(e),function(i){i.indexOf("&")>=0?(n=n||{},n[i]=b(e[i]).plain):0===i.indexOf("@media")?(r=r||{},r[i]=b(e[i])):0===i.indexOf("@supports")?(o=o||{},o[i]=b(e[i])):(t=t||{},t[i]=e[i])}),{plain:t,selects:n,medias:r,supports:o}}function _(e,t){var n=t.plain,r=t.selects,o=t.medias,i=t.supports,a=[];return n&&a.push(g(e)+"{"+(0,j.createMarkupForStyles)(n)+"}"),r&&(0,A.forEach)((0,A.keys)(r),function(t){return a.push(g(e,t)+"{"+(0,j.createMarkupForStyles)(r[t])+"}")}),o&&(0,A.forEach)((0,A.keys)(o),function(t){return a.push(t+"{"+_(e,o[t]).join("")+"}")}),i&&(0,A.forEach)((0,A.keys)(i),function(t){return a.push(t+"{"+_(e,i[t]).join("")+"}")}),a}function w(e){if(!F[e.id]){F[e.id]=!0;var t=b(e.style);(0,A.map)(_(e.id,t),function(e){return U.insert(e)})}}function S(e){var t;if(o(e),w(e),V[e.id])return V[e.id];var n=(t={},t["css-"+e.id]="",t);return Object.defineProperty(n,"toString",{enumerable:!1,value:function(){return"css-"+e.id}}),V[e.id]=n,n}function x(e){return 0===e.indexOf("$")}function C(e){for(var t=[":",".","[",">"," "],n=!1,r=e.charAt(0),o=0;o=0}function E(e,t){var n=(0,A.map)(e.split(","),function(e){return e.indexOf("&")>=0?e:"&"+e}),r=(0,A.map)(t.split(","),function(e){return e.indexOf("&")>=0?e:"&"+e});return(0,A.reduce)(r,function(e,t){return e.concat((0,A.map)(n,function(e){return t.replace(W,e)}))},[]).join(",")}function k(e,t){return e?"@media "+e.substring(6)+" and "+t.substring(6):t}function P(e){return 0===e.indexOf("@media")}function O(e){return 0===e.indexOf("@supports")}function T(e,t){return e?"@supports "+e.substring(9)+" and "+t.substring(9):t}function M(e){var t=[];return(0,A.forEach)(e,function(e){t=Array.isArray(e)?t.concat(M(e)):t.concat(e)}),t}function N(e,t){var n=t.selector,r=void 0===n?"":n,o=t.mq,a=void 0===o?"":o,u=t.supp,s=void 0===u?"":u,c=t.src,l=void 0===c?[{}]:c;Array.isArray(l)||(l=[l]),l=M(l),(0,A.forEach)(l,function(t){if(m(t)){var n=i(t);if("css"!==n.type)throw new Error("cannot merge this rule");t=n.style}t=(0,L.default)(t),t&&t.composes&&N(e,{selector:r,mq:a,supp:s,src:t.composes}),(0,A.forEach)((0,A.keys)(t||{}),function(n){if(x(n)){var o=t[n];if("string"==typeof o){var i=H.exec(o);if(null!==i&&B[i[1]]){var u=B[i[1]];if("css"!==u.type)throw new Error("cannot merge this rule");N(e,{selector:r,mq:a,supp:s,src:u.style})}}else N(e,{selector:r,mq:a,supp:s,src:o})}else if(C(n))N(e,{selector:E(r,n),mq:a,supp:s,src:t[n]});else if(P(n))N(e,{selector:r,mq:k(a,n),supp:s,src:t[n]});else if(O(n))N(e,{selector:r,mq:a,supp:T(s,n),src:t[n]});else if("composes"===n);else{var c=e;s&&(c[s]=c[s]||{},c=c[s]),a&&(c[a]=c[a]||{},c=c[a]),r&&(c[r]=c[r]||{},c=c[r]),c[n]=t[n]}})})}t.__esModule=!0,t.inserted=t.sheet=void 0,t.flush=r,t.css=u,t.injectGlobal=c,t.fontFace=l,t.keyframes=p,t.hydrate=d,t.objStyle=h,t.isLikeRule=m,t.idFor=v;var I=n(282),A=n(37),R=n(283),j=n(284),D=n(287),L=function(e){return e&&e.__esModule?e:{default:e}}(D),U=t.sheet=new I.StyleSheet;U.inject();var F=t.inserted={},B=U.registered={},q="undefined"!=typeof WeakMap?function(e){return function(t){if(z[t.length]){for(var n=z[t.length],r=0;r]/,s=n(58),c=s(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&u.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=c},function(e,t,n){"use strict";function r(e){var t=""+e,n=i.exec(t);if(!n)return t;var r,o="",a=0,u=0;for(a=n.index;a]/;e.exports=o},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,y)||(e[y]=d++,f[e[y]]={}),f[e[y]]}var o,i=n(6),a=n(50),u=n(181),s=n(93),c=n(182),l=n(54),f={},p=!1,d=0,h={topAbort:"abort",topAnimationEnd:c("animationend")||"animationend",topAnimationIteration:c("animationiteration")||"animationiteration",topAnimationStart:c("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:c("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},y="_reactListenersID"+String(Math.random()).slice(2),m=i({},u,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(m.handleTopLevel),m.ReactEventListener=e}},setEnabled:function(e){m.ReactEventListener&&m.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!m.ReactEventListener||!m.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,o=r(n),i=a.registrationNameDependencies[e],u=0;u1)for(var n=1;n-1||a("96",e),!c.plugins[n]){t.extractEvents||a("97",e),c.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)||a("98",i,e)}}}function o(e,t,n){c.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),c.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];i(u,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){c.registrationNameModules[e]&&a("100",e),c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(5),u=(n(1),null),s={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){u&&a("101"),u=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];s.hasOwnProperty(n)&&s[n]===o||(s[n]&&a("102",n),s[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=c.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){u=null;for(var e in s)s.hasOwnProperty(e)&&delete s[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=c},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function o(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=v.getNodeFromInstance(r),t?y.invokeGuardedCallbackWithCatch(o,n,e):y.invokeGuardedCallback(o,n,e),e.currentTarget=null}function u(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var a="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},u=n(5),s=(n(15),n(33)),c=(n(13),n(14)),l=(n(1),n(4),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){l.validateCallback(t,n);var o=i(e);if(!o)return null;o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],r(o)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t,n){var o=i(e,"replaceState");o&&(o._pendingStateQueue=[t],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(l.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&u("122",t,o(e))}});e.exports=l},function(e,t,n){"use strict";var r=(n(6),n(11)),o=(n(4),r);e.exports=o},function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=r},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 may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){(0,c.default)(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?d.default.Children.only(e):null},t}(d.default.Component);v.propTypes={history:y.default.object.isRequired,children:y.default.node},v.contextTypes={router:y.default.object},v.childContextTypes={router:y.default.object.isRequired},t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(237),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i={},a=0,u=function(e,t){var n=""+t.end+t.strict,r=i[n]||(i[n]={});if(r[e])return r[e];var u=[],s=(0,o.default)(e,u,t),c={re:s,keys:u};return a<1e4&&(r[e]=c,a++),c},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t&&(t={path:t});var n=t,r=n.path,o=void 0===r?"/":r,i=n.exact,a=void 0!==i&&i,s=n.strict,c=void 0!==s&&s,l=u(o,{end:a,strict:c}),f=l.re,p=l.keys,d=f.exec(e);if(!d)return null;var h=d[0],y=d.slice(1),m=e===h;return a&&!m?null:{path:o,url:"/"===o&&""===h?"/":h,isExact:m,params:p.reduce(function(e,t,n){return e[t.name]=y[n],e},{})}};t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(!(0,l.default)(e)||(0,a.default)(e)!=f)return!1;var t=(0,s.default)(e);if(null===t)return!0;var n=y.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&h.call(n)==m}Object.defineProperty(t,"__esModule",{value:!0});var i=n(255),a=r(i),u=n(260),s=r(u),c=n(262),l=r(c),f="[object Object]",p=Function.prototype,d=Object.prototype,h=p.toString,y=d.hasOwnProperty,m=h.call(Object);t.default=o},function(e,t,n){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof fetch?fetch.bind():function(e,t){return t=t||{},new Promise(function(n,r){function o(){var e,t=[],n=[],r={};return i.getAllResponseHeaders().replace(/^(.*?):\s*([\s\S]*?)$/gm,function(o,i,a){t.push(i=i.toLowerCase()),n.push([i,a]),e=r[i],r[i]=e?e+","+a:a}),{ok:1==(i.status/200|0),status:i.status,statusText:i.statusText,url:i.responseURL,clone:o,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},headers:{keys:function(){return t},entries:function(){return n},get:function(e){return r[e.toLowerCase()]},has:function(e){return e.toLowerCase()in r}}}}var i=new XMLHttpRequest;i.open(t.method||"get",e);for(var a in t.headers)i.setRequestHeader(a,t.headers[a]);i.withCredentials="include"==t.credentials,i.onload=function(){n(o())},i.onerror=r,i.send(t.body)})};t.default=r},,,,,,,,function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||c}function o(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||c}function i(){}var a="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},u=n(29),s=n(6),c=n(82),l=(n(83),n(40));n(1),n(139);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!==(void 0===e?"undefined":a(e))&&"function"!=typeof e&&null!=e&&u("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};i.prototype=r.prototype,o.prototype=new i,o.prototype.constructor=o,s(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,e.exports={Component:r,PureComponent:o}},function(e,t,n){"use strict";var r=(n(4),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){},enqueueReplaceState:function(e,t){},enqueueSetState:function(e,t){}});e.exports=r},function(e,t,n){"use strict";var r=!1;e.exports=r},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r},function(e,t,n){"use strict";var r=n(147);e.exports=function(e){return r(e,!1)}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";e.exports=n(153)},function(e,t,n){"use strict";var r={hasCachedChildNodes:1};e.exports=r},function(e,t,n){"use strict";function r(e,t){return null==t&&o("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var o=n(5);n(1);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(9),i=null;e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n(5),i=n(18),a=(n(1),function(){function e(t){r(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,n=this._arg;if(e&&t){e.length!==t.length&&o("24"),this._callbacks=null,this._contexts=null;for(var r=0;r.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,u=m.createElement(U,{child:t});if(e){var s=S.get(e);a=s._processChildContext(s._context)}else a=P;var l=p(n);if(l){var f=l._currentElement,h=f.props.child;if(M(h,t)){var y=l._renderedComponent.getPublicInstance(),v=r&&function(){r.call(y)};return F._updateRootComponent(l,u,a,n,v),y}F.unmountComponentAtNode(n)}var g=o(n),b=g&&!!i(g),_=c(n),w=b&&!l&&!_,x=F._renderNewRootComponent(u,n,w,a)._renderedComponent.getPublicInstance();return r&&r.call(x),x},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){l(e)||d("40");var t=p(e);if(!t){c(e),1===e.nodeType&&e.hasAttribute(I);return!1}return delete D[t._instance.rootID],k.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(l(t)||d("41"),i){var u=o(t);if(x.canReuseMarkup(e,u))return void g.precacheNode(n,u);var s=u.getAttribute(x.CHECKSUM_ATTR_NAME);u.removeAttribute(x.CHECKSUM_ATTR_NAME);var c=u.outerHTML;u.setAttribute(x.CHECKSUM_ATTR_NAME,s);var f=e,p=r(f,c),y=" (client) "+f.substring(p-20,p+20)+"\n (server) "+c.substring(p-20,p+20);t.nodeType===R&&d("42",y)}if(t.nodeType===R&&d("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else T(t,e),g.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.HOST?e._renderedComponent:t===o.EMPTY?null:void 0}var o=n(104);e.exports=r},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}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u="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},s=n(19),c=r(s),l=n(0),f=r(l),p=n(2),d=r(p),h=n(70),y=r(h),m=Object.assign||function(e){for(var t=1;t and in the same route; will be ignored"),(0,c.default)(!(t&&r),"You should not use and in the same route; will be ignored"),(0,c.default)(!(n&&r),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){(0,c.default)(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,c.default)(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,a=i.history,u=i.route,s=i.staticContext,c=this.props.location||u.location,l={match:e,location:c,history:a,staticContext:s};return r?e?f.default.createElement(r,l):null:o?e?o(l):null:n?"function"==typeof n?n(l):!Array.isArray(n)||n.length?f.default.Children.only(n):null:null},t}(f.default.Component);v.contextTypes={router:d.default.shape({history:d.default.object.isRequired,route:d.default.object.isRequired,staticContext:d.default.object})},v.childContextTypes={router:d.default.object.isRequired},t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s="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},c=n(0),l=r(c),f=n(2),p=r(f),d=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(){}function c(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}function l(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=r.getDisplayName,f=void 0===l?function(e){return"ConnectAdvanced("+e+")"}:l,p=r.methodName,h=void 0===p?"connectAdvanced":p,v=r.renderCountProp,x=void 0===v?void 0:v,C=r.shouldHandleStateChanges,E=void 0===C||C,k=r.storeKey,P=void 0===k?"store":k,O=r.withRef,T=void 0!==O&&O,M=u(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),N=P+"Subscription",I=w++,A=(t={},t[P]=b.storeShape,t[N]=b.subscriptionShape,t),R=(n={},n[N]=b.subscriptionShape,n);return function(t){(0,y.default)("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",r=f(n),u=_({},M,{getDisplayName:f,methodName:h,renderCountProp:x,shouldHandleStateChanges:E,storeKey:P,withRef:T,displayName:r,wrappedComponentName:n,WrappedComponent:t}),l=function(n){function l(e,t){o(this,l);var a=i(this,n.call(this,e,t));return a.version=I,a.state={},a.renderCount=0,a.store=e[P]||t[P],a.propsMode=Boolean(e[P]),a.setWrappedInstance=a.setWrappedInstance.bind(a),(0,y.default)(a.store,'Could not find "'+P+'" in either the context or props of "'+r+'". Either wrap the root component in a , or explicitly pass "'+P+'" as a prop to "'+r+'".'),a.initSelector(),a.initSubscription(),a}return a(l,n),l.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[N]=t||this.context[N],e},l.prototype.componentDidMount=function(){E&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},l.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},l.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},l.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=s,this.store=null,this.selector.run=s,this.selector.shouldComponentUpdate=!1},l.prototype.getWrappedInstance=function(){return(0,y.default)(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+h+"() call."),this.wrappedInstance},l.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},l.prototype.initSelector=function(){var t=e(this.store.dispatch,u);this.selector=c(t,this.store),this.selector.run(this.props)},l.prototype.initSubscription=function(){if(E){var e=(this.propsMode?this.props:this.context)[N];this.subscription=new g.default(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},l.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(S)):this.notifyNestedSubs()},l.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},l.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},l.prototype.addExtraProps=function(e){if(!(T||x||this.propsMode&&this.subscription))return e;var t=_({},e);return T&&(t.ref=this.setWrappedInstance),x&&(t[x]=this.renderCount++),this.propsMode&&this.subscription&&(t[N]=this.subscription),t},l.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,m.createElement)(t,this.addExtraProps(e.props))},l}(m.Component);return l.WrappedComponent=t,l.displayName=r,l.childContextTypes=R,l.contextTypes=A,l.propTypes=A,(0,d.default)(l,t)}}Object.defineProperty(t,"__esModule",{value:!0});var f="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};t.default=l;var p=n(270),d=r(p),h=n(34),y=r(h),m=n(0),v=n(271),g=r(v),b=n(122),_=Object.assign||function(e){for(var t=1;t0;)for(e=ct,ct=[],n=e.length,t=0;t0);tt=!0,nt=!0}function ne(){var e=rt;rt=[],e.forEach(function(e){e._PSD.onunhandled.call(null,e._value,e)});for(var t=ft.slice(0),n=t.length;n;)t[--n]()}function re(e){function t(){e(),ft.splice(ft.indexOf(t),1)}ft.push(t),++lt,et(function(){0==--lt&&ne()},[])}function oe(e){rt.some(function(t){return t._value===e._value})||rt.push(e)}function ie(e){for(var t=rt.length;t;)if(rt[--t]._value===e._value)return void rt.splice(t,1)}function ae(e){console.warn("Unhandled rejection: "+(e.stack||e))}function ue(e){return new V(Xe,!1,e)}function se(e,t){var n=st;return function(){var r=ee(),o=st;try{return o!==n&&(st=n),e.apply(this,arguments)}catch(e){t&&t(e)}finally{o!==n&&(st=o),r&&te()}}}function ce(e,t,n,r){var o=st,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=le(i,e,t,n,r);return 0===i.ref&&i.finalize(),a}function le(e,t,n,r,o){var i=st;try{return e!==i&&(st=e),t(n,r,o)}finally{e!==i&&(st=i)}}function fe(t,n){var r;try{r=n.onuncatched(t)}catch(e){}if(!1!==r)try{var o,i={promise:n,reason:t};if(Te.document&&document.createEvent?(o=document.createEvent("Event"),o.initEvent(dt,!0,!0),e(o,i)):Te.CustomEvent&&(o=new CustomEvent(dt,{detail:i}),e(o,i)),o&&Te.dispatchEvent&&(dispatchEvent(o),!Te.PromiseRejectionEvent&&Te.onunhandledrejection))try{Te.onunhandledrejection(o)}catch(e){}o.defaultPrevented||V.on.error.fire(t,n)}catch(e){}}function pe(e,t){var n=V.reject(e);return t?n.uncaught(t):n}function de(r,o){function s(e){this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null},this.stores({})}function d(e,t,n){var r=nt._createTransaction(tt,Ge,ze);r.create(t),r._completion.catch(n);var o=r._reject.bind(r);ce(function(){st.trans=r,0===e?(Pe(ze).forEach(function(e){I(t,e,ze[e].primKey,ze[e].indexes)}),V.follow(function(){return nt.on.populate.fire(r)}).catch(o)):b(e,r,t).catch(o)})}function b(e,t,n){function r(){return o.length?V.resolve(o.shift()(t.idbtrans)).then(r):V.resolve()}var o=[],i=$e.filter(function(t){return t._cfg.version===e})[0];if(!i)throw new Ye.Upgrade("Dexie specification of currently installed DB version is missing");ze=nt._dbSchema=i._cfg.dbschema;var a=!1;return $e.filter(function(t){return t._cfg.version>e}).forEach(function(e){o.push(function(){var r=ze,o=e._cfg.dbschema;Ae(r,n),Ae(o,n),ze=nt._dbSchema=o;var i=O(r,o);if(i.add.forEach(function(e){I(n,e[0],e[1].primKey,e[1].indexes)}),i.change.forEach(function(e){if(e.recreate)throw new Ye.Upgrade("Not yet support for changing primary key");var t=n.objectStore(e.name);e.add.forEach(function(e){U(t,e)}),e.change.forEach(function(e){t.deleteIndex(e.name),U(t,e)}),e.del.forEach(function(e){t.deleteIndex(e)})}),e._cfg.contentUpgrade)return a=!0,V.follow(function(){e._cfg.contentUpgrade(t)})}),o.push(function(t){a&&wt||D(e._cfg.dbschema,t)})}),r().then(function(){R(ze,n)})}function O(e,t){var n={del:[],add:[],change:[]};for(var r in e)t[r]||n.del.push(r);for(r in t){var o=e[r],i=t[r];if(o){var a={name:r,def:i,recreate:!1,del:[],add:[],change:[]};if(o.primKey.src!==i.primKey.src)a.recreate=!0,n.change.push(a);else{var u=o.idxByName,s=i.idxByName;for(var c in u)s[c]||a.del.push(c);for(c in s){var l=u[c],f=s[c];l?l.src!==f.src&&a.change.push(f):a.add.push(f)}(a.del.length>0||a.add.length>0||a.change.length>0)&&n.change.push(a)}}else n.add.push([r,i])}return n}function I(e,t,n,r){var o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(function(e){U(o,e)}),o}function R(e,t){Pe(e).forEach(function(n){t.db.objectStoreNames.contains(n)||I(t,n,e[n].primKey,e[n].indexes)})}function D(e,t){for(var n=0;n0?e:t}function fe(e,t){return Ve.cmp(e,t)}function he(e,t){return Ve.cmp(t,e)}function Te(e,t){return et?-1:e===t?0:1}function Ne(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}function Ie(){if(nt.verno=Qe.version/10,nt._dbSchema=ze={},Ge=c(Qe.objectStoreNames,0),0!==Ge.length){var e=Qe.transaction(Ee(Ge),"readonly");Ge.forEach(function(t){for(var n=e.objectStore(t),r=n.keyPath,o=r&&"string"==typeof r&&-1!==r.indexOf("."),i=new xe(r,r||"",!1,!1,!!n.autoIncrement,r&&"string"!=typeof r,o),a=[],u=0;u0&&(it=!1),!Ve)throw new Ye.MissingAPI("indexedDB API not found. If using IE10+, make sure to run your code on a server URL (not locally). If using old Safari versions, make sure to include indexedDB polyfill.");var o=it?Ve.open(r):Ve.open(r,Math.round(10*nt.verno));if(!o)throw new Ye.MissingAPI("IndexedDB API not available");o.onerror=se(ge(n)),o.onblocked=se(Re),o.onupgradeneeded=se(function(e){if(t=o.transaction,it&&!nt._allowEmptyDB){o.onerror=_e,t.abort(),o.result.close();var i=Ve.deleteDatabase(r);i.onsuccess=i.onerror=se(function(){n(new Ye.NoSuchDatabase("Database "+r+" doesnt exist"))})}else{t.onerror=se(ge(n));d((e.oldVersion>Math.pow(2,62)?0:e.oldVersion)/10,t,n)}},n),o.onsuccess=se(function(){if(t=null,Qe=o.result,bt.push(nt),it)Ie();else if(Qe.objectStoreNames.length>0)try{Ae(ze,Qe.transaction(Ee(Qe.objectStoreNames),"readonly"))}catch(e){}Qe.onversionchange=se(function(e){nt._vcFired=!0,nt.on("versionchange").fire(e)}),at||we(function(e){if(-1===e.indexOf(r))return e.push(r)}),e()},n)})]).then(function(){return de.vip(nt.on.ready.fire)}).then(function(){return Ze=!1,nt}).catch(function(e){try{t&&t.abort()}catch(e){}return Ze=!1,nt.close(),Je=e,pe(Je,F)}).finally(function(){et=!0,e()})},this.close=function(){var e=bt.indexOf(nt);if(e>=0&&bt.splice(e,1),Qe){try{Qe.close()}catch(e){}Qe=null}We=!1,Je=new Ye.DatabaseClosed,Ze&&Le(Je),rt=new V(function(e){je=e}),ot=new V(function(e,t){Le=t})},this.delete=function(){var e=arguments.length>0;return new V(function(t,n){function o(){nt.close();var e=Ve.deleteDatabase(r);e.onsuccess=se(function(){at||we(function(e){var t=e.indexOf(r);if(t>=0)return e.splice(t,1)}),t()}),e.onerror=se(ge(n)),e.onblocked=Re}if(e)throw new Ye.InvalidArgument("Arguments not allowed in db.delete()");Ze?rt.then(o):o()}).uncaught(F)},this.backendDB=function(){return Qe},this.isOpen=function(){return null!==Qe},this.hasFailed=function(){return null!==Je},this.dynamicallyOpened=function(){return it},this.name=r,i(this,"tables",{get:function(){return Pe(Xe).map(function(e){return Xe[e]})}}),this.on=W(this,"error","populate","blocked","versionchange",{ready:[A,E]}),this.on.error.subscribe=L("Dexie.on.error",this.on.error.subscribe),this.on.error.unsubscribe=L("Dexie.on.error.unsubscribe",this.on.error.unsubscribe),this.on.ready.subscribe=l(this.on.ready.subscribe,function(e){return function(t,n){de.vip(function(){et?(Je||V.resolve().then(t),n&&e(t)):(e(t),n||e(function e(){nt.on.ready.unsubscribe(t),nt.on.ready.unsubscribe(e)}))})}}),Ct(function(){nt.on("populate").fire(nt._createTransaction(tt,Ge,ze)),nt.on("error").fire(new Error)}),this.transaction=function(e,n,r){function o(n){var o=st;n(V.resolve().then(function(){return ce(function(){st.transless=st.transless||o;var n=nt._createTransaction(e,l,ze,s);st.trans=n,s?n.idbtrans=s.idbtrans:n.create();var i=l.map(function(e){return Xe[e]});i.push(n);var a;return V.follow(function(){if(a=r.apply(n,i))if("function"==typeof a.next&&"function"==typeof a.throw)a=Se(a);else if("function"==typeof a.then&&!t(a,"_PSD"))throw new Ye.IncompatiblePromise("Incompatible Promise returned from transaction scope (read more at http://tinyurl.com/znyqjqc). Transaction scope: "+r.toString())}).uncaught(F).then(function(){return s&&n._resolve(),n._completion}).then(function(){return a}).catch(function(e){return n._reject(e),pe(e)})})}))}var i=arguments.length;if(i<2)throw new Ye.InvalidArgument("Too few arguments");for(var a=new Array(i-1);--i;)a[i-1]=arguments[i];r=a.pop();var u=C(a),s=st.trans;s&&s.db===nt&&-1===e.indexOf("!")||(s=null);var c=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{var l=u.map(function(e){var t=e instanceof K?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t});if("r"==e||"readonly"==e)e="readonly";else{if("rw"!=e&&e!=tt)throw new Ye.InvalidArgument("Invalid transaction mode: "+e);e=tt}if(s){if("readonly"===s.mode&&e===tt){if(!c)throw new Ye.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");s=null}s&&l.forEach(function(e){if(s&&-1===s.storeNames.indexOf(e)){if(!c)throw new Ye.SubTransaction("Table "+e+" not included in parent transaction.");s=null}})}}catch(e){return s?s._promise(null,function(t,n){n(e)}):pe(e,F)}return s?s._promise(e,o,"lock"):nt._whenReady(o)},this.table=function(e){if(Et&&it)return new z(e);if(!t(Xe,e))throw new Ye.InvalidTable("Table "+e+" does not exist");return Xe[e]},n(K.prototype,{_trans:function(e,t,n){var r=st.trans;return r&&r.db===nt?r._promise(e,t,n):H(e,[this.name],t)},_idbstore:function(e,t,n){function r(e,n,r){t(e,n,r.idbtrans.objectStore(i),r)}if(Et)return new V(t);var o=st.trans,i=this.name;return o&&o.db===nt?o._promise(e,r,n):H(e,[this.name],r)},get:function(e,t){var n=this;return this._idbstore("readonly",function(t,r,o){Et&&t(n.schema.instanceTemplate);var i=o.get(e);i.onerror=ge(r),i.onsuccess=se(function(){t(n.hook.reading.fire(i.result))},r)}).then(t)},where:function(e){return new X(this,e)},count:function(e){return this.toCollection().count(e)},offset:function(e){return this.toCollection().offset(e)},limit:function(e){return this.toCollection().limit(e)},reverse:function(){return this.toCollection().reverse()},filter:function(e){return this.toCollection().and(e)},each:function(e){return this.toCollection().each(e)},toArray:function(e){return this.toCollection().toArray(e)},orderBy:function(e){return new this._collClass(new X(this,e))},toCollection:function(){return new this._collClass(new X(this))},mapToClass:function(e,n){this.schema.mappedClass=e;var r=Object.create(e.prototype);n&&ye(r,n),this.schema.instanceTemplate=r;var o=function(n){if(!n)return n;var r=Object.create(e.prototype);for(var o in n)if(t(n,o))try{r[o]=n[o]}catch(e){}return r};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=o,this.hook("reading",o),e},defineClass:function(e){return this.mapToClass(de.defineClass(e),e)}}),a(z).from(K).extend({bulkDelete:function(e){return this.hook.deleting.fire===E?this._idbstore(tt,function(t,n,r,o){t($(r,o,e,!1,E))}):this.where(":id").anyOf(e).delete().then(function(){})},bulkPut:function(e,t){var n=this;return this._idbstore(tt,function(r,o,i){if(!i.keyPath&&!n.schema.primKey.auto&&!t)throw new Ye.InvalidArgument("bulkPut() with non-inbound keys requires keys array in second argument");if(i.keyPath&&t)throw new Ye.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(t&&t.length!==e.length)throw new Ye.InvalidArgument("Arguments objects and keys must have the same length");if(0===e.length)return r();var a,u,s=function(e){0===c.length?r(e):o(new q(n.name+".bulkPut(): "+c.length+" of "+l+" operations failed",c))},c=[],l=e.length,f=n;if(n.hook.creating.fire===E&&n.hook.updating.fire===E){u=Y(c);for(var p=0,d=e.length;p=0;--o){var i=y[o];(null==i||m[i])&&(n.push(e[o]),t&&r.push(i),null!=i&&(m[i]=null))}return n.reverse(),t&&r.reverse(),f.bulkAdd(n,r)}).then(function(e){var t=y[y.length-1];return null!=t?t:e}):f.bulkAdd(e)).then(s).catch(q,function(e){c=c.concat(e.failures),s()}).catch(o)}},"locked")},bulkAdd:function(e,t){var n=this,r=this.hook.creating.fire;return this._idbstore(tt,function(o,i,a,u){function s(e){0===p.length?o(e):i(new q(n.name+".bulkAdd(): "+p.length+" of "+d+" operations failed",p))}if(!a.keyPath&&!n.schema.primKey.auto&&!t)throw new Ye.InvalidArgument("bulkAdd() with non-inbound keys requires keys array in second argument");if(a.keyPath&&t)throw new Ye.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(t&&t.length!==e.length)throw new Ye.InvalidArgument("Arguments objects and keys must have the same length");if(0===e.length)return o();var c,l,f,p=[],d=e.length;if(r!==E){var h,y=a.keyPath;l=Y(p,null,!0),f=ve(null),m(function(){for(var n=0,o=e.length;n0&&!this._locked();){var e=this._blockedFuncs.shift();try{le(e[1],e[0])}catch(e){}}return this},_locked:function(){return this._reculock&&st.lockOwnerFor!==this},create:function(e){var t=this;if(p(!this.idbtrans),!e&&!Qe)switch(Je&&Je.name){case"DatabaseClosedError":throw new Ye.DatabaseClosed(Je);case"MissingAPIError":throw new Ye.MissingAPI(Je.message,Je);default:throw new Ye.OpenFailed(Je)}if(!this.active)throw new Ye.TransactionInactive;return p(null===this._completion._state),e=this.idbtrans=e||Qe.transaction(Ee(this.storeNames),this.mode),e.onerror=se(function(n){_e(n),t._reject(e.error)}),e.onabort=se(function(e){_e(e),t.active&&t._reject(new Ye.Abort),t.active=!1,t.on("abort").fire(e)}),e.oncomplete=se(function(){t.active=!1,t._resolve()}),this},_promise:function(e,t,n){var r=this,o=r._locked()?new V(function(o,i){r._blockedFuncs.push([function(){r._promise(e,t,n).then(o,i)},st])}):ce(function(){var o=r.active?new V(function(o,i){if(e===tt&&r.mode!==tt)throw new Ye.ReadOnly("Transaction is readonly");!r.idbtrans&&e&&r.create(),n&&r._lock(),t(o,i,r)}):pe(new Ye.TransactionInactive);return r.active&&n&&o.finally(function(){r._unlock()}),o});return o._lib=!0,o.uncaught(F)},abort:function(){this.active&&this._reject(new Ye.Abort),this.active=!1},tables:{get:L("Transaction.tables",function(){return h(this.storeNames,function(e){return[e,Xe[e]]})},"Use db.tables()")},complete:L("Transaction.complete()",function(e){return this.on("complete",e)}),error:L("Transaction.error()",function(e){return this.on("error",e)}),table:L("Transaction.table()",function(e){if(-1===this.storeNames.indexOf(e))throw new Ye.InvalidTable("Table "+e+" not in transaction");return Xe[e]})}),n(X.prototype,function(){function e(e,t,n){var r=e instanceof X?new e._ctx.collClass(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function t(e){return new e._ctx.collClass(e,function(){return Ke.only("")}).limit(0)}function n(e){return"next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()}}function r(e){return"next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()}}function o(e,t,n,r,o,i){for(var a=Math.min(e.length,r.length),u=-1,s=0;s=0?e.substr(0,u)+t[u]+n.substr(u+1):null;o(e[s],c)<0&&(u=s)}return a0)&&(u=c)}return t(null!==u?function(){e.continue(u+y)}:n),!1}),v}return{between:function(n,r,o,i){o=!1!==o,i=!0===i;try{return ie(n,r)>0||0===ie(n,r)&&(o||i)&&(!o||!i)?t(this):new this._ctx.collClass(this,function(){return Ke.bound(n,r,!o,!i)})}catch(t){return e(this,vt)}},equals:function(e){return new this._ctx.collClass(this,function(){return Ke.only(e)})},above:function(e){return new this._ctx.collClass(this,function(){return Ke.lowerBound(e,!0)})},aboveOrEqual:function(e){return new this._ctx.collClass(this,function(){return Ke.lowerBound(e)})},below:function(e){return new this._ctx.collClass(this,function(){return Ke.upperBound(e,!0)})},belowOrEqual:function(e){return new this._ctx.collClass(this,function(){return Ke.upperBound(e)})},startsWith:function(t){return"string"!=typeof t?e(this,gt):this.between(t,t+yt,!0,!0)},startsWithIgnoreCase:function(e){return""===e?this.startsWith(e):i(this,function(e,t){return 0===e.indexOf(t[0])},[e],yt)},equalsIgnoreCase:function(e){return i(this,function(e,t){return e===t[0]},[e],"")},anyOfIgnoreCase:function(){var e=x.apply(De,arguments);return 0===e.length?t(this):i(this,function(e,t){return-1!==t.indexOf(e)},e,"")},startsWithAnyOfIgnoreCase:function(){var e=x.apply(De,arguments);return 0===e.length?t(this):i(this,function(e,t){return t.some(function(t){return 0===e.indexOf(t)})},e,yt)},anyOf:function(){var n=x.apply(De,arguments),r=fe;try{n.sort(r)}catch(t){return e(this,vt)}if(0===n.length)return t(this);var o=new this._ctx.collClass(this,function(){return Ke.bound(n[0],n[n.length-1])});o._ondirectionchange=function(e){r="next"===e?fe:he,n.sort(r)};var i=0;return o._addAlgorithm(function(e,t,o){for(var a=e.key;r(a,n[i])>0;)if(++i===n.length)return t(o),!1;return 0===r(a,n[i])||(t(function(){e.continue(n[i])}),!1)}),o},notEqual:function(e){return this.inAnyRange([[-1/0,e],[e,mt]],{includeLowers:!1,includeUppers:!1})},noneOf:function(){var t=x.apply(De,arguments);if(0===t.length)return new this._ctx.collClass(this);try{t.sort(fe)}catch(t){return e(this,vt)}var n=t.reduce(function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]},null);return n.push([t[t.length-1],mt]),this.inAnyRange(n,{includeLowers:!1,includeUppers:!1})},inAnyRange:function(n,r){function o(e,t){for(var n=0,r=e.length;n0){o[0]=ae(o[0],t[0]),o[1]=ue(o[1],t[1]);break}}return n===r&&e.push(t),e}function i(e,t){return f(e[0],t[0])}function a(e){return!d(e)&&!h(e)}var u=this._ctx;if(0===n.length)return t(this);if(!n.every(function(e){return void 0!==e[0]&&void 0!==e[1]&&fe(e[0],e[1])<=0}))return e(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ye.InvalidArgument);var s,c=!r||!1!==r.includeLowers,l=r&&!0===r.includeUppers,f=fe;try{s=n.reduce(o,[]),s.sort(i)}catch(t){return e(this,vt)}var p=0,d=l?function(e){return fe(e,s[p][1])>0}:function(e){return fe(e,s[p][1])>=0},h=c?function(e){return he(e,s[p][0])>0}:function(e){return he(e,s[p][0])>=0},y=d,m=new u.collClass(this,function(){return Ke.bound(s[0][0],s[s.length-1][1],!c,!l)});return m._ondirectionchange=function(e){"next"===e?(y=d,f=fe):(y=h,f=he),s.sort(i)},m._addAlgorithm(function(e,t,n){for(var r=e.key;y(r);)if(++p===s.length)return t(n),!1;return!!a(r)||0!==ie(r,s[p][1])&&0!==ie(r,s[p][0])&&(t(function(){f===fe?e.continue(s[p][0]):e.continue(s[p][1])}),!1)}),m},startsWithAnyOf:function(){var n=x.apply(De,arguments);return n.every(function(e){return"string"==typeof e})?0===n.length?t(this):this.inAnyRange(n.map(function(e){return[e,e+yt]})):e(this,"startsWithAnyOf() only works with strings")}}}),n(Q.prototype,function(){function n(e,t){e.filter=Ne(e.filter,t)}function r(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return Ne(r(),t())}:t,e.justLimit=n&&!r}function o(e,t){e.isMatch=Ne(e.isMatch,t)}function i(e,t){if(e.isPrimKey)return t;var n=e.table.schema.idxByName[e.index];if(!n)throw new Ye.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return t.index(n.name)}function a(e,t){var n=i(e,t);return e.keysOnly&&"openKeyCursor"in n?n.openKeyCursor(e.range||null,e.dir+e.unique):n.openCursor(e.range||null,e.dir+e.unique)}function u(e,n,r,o,i){var u=e.replayFilter?Ne(e.filter,e.replayFilter()):e.filter;e.or?function(){function s(){2==++f&&r()}function c(e,r,i){if(!u||u(r,i,s,o)){var a=r.primaryKey.toString();t(l,a)||(l[a]=!0,n(e,r,i))}}var l={},f=0;e.or._iterate(c,s,o,i),re(a(e,i),e.algorithm,c,s,o,!e.keysOnly&&e.valueMapper)}():re(a(e,i),Ne(e.algorithm,u),n,r,o,!e.keysOnly&&e.valueMapper)}function s(e){return e.table.schema.instanceTemplate}return{_read:function(e,t){var n=this._ctx;return n.error?n.table._trans(null,function(e,t){t(n.error)}):n.table._idbstore("readonly",e).then(t)},_write:function(e){var t=this._ctx;return t.error?t.table._trans(null,function(e,n){n(t.error)}):t.table._idbstore(tt,e,"locked")},_addAlgorithm:function(e){var t=this._ctx;t.algorithm=Ne(t.algorithm,e)},_iterate:function(e,t,n,r){return u(this._ctx,e,t,n,r)},clone:function(t){var n=Object.create(this.constructor.prototype),r=Object.create(this._ctx);return t&&e(r,t),n._ctx=r,n},raw:function(){return this._ctx.valueMapper=null,this},each:function(e){var t=this._ctx;if(Et){var n=s(t),r=t.table.schema.primKey.keyPath,o=v(n,t.index?t.table.schema.idxByName[t.index].keyPath:r),i=v(n,r);e(n,{key:o,primaryKey:i})}return this._read(function(n,r,o){u(t,e,n,r,o)})},count:function(e){if(Et)return V.resolve(0).then(e);var t=this._ctx;if(J(t,!0))return this._read(function(e,n,r){var o=i(t,r),a=t.range?o.count(t.range):o.count();a.onerror=ge(n),a.onsuccess=function(n){e(Math.min(n.target.result,t.limit))}},e);var n=0;return this._read(function(e,r,o){u(t,function(){return++n,!1},function(){e(n)},r,o)},e)},sortBy:function(e,t){function n(e,t){return t?n(e[o[t]],t-1):e[i]}function r(e,t){var r=n(e,a),o=n(t,a);return ro?u:0}var o=e.split(".").reverse(),i=o[0],a=o.length-1,u="next"===this._ctx.dir?1:-1;return this.toArray(function(e){return e.sort(r)}).then(t)},toArray:function(e){var t=this._ctx;return this._read(function(e,n,r){if(Et&&e([s(t)]),Fe&&"next"===t.dir&&J(t,!0)&&t.limit>0){var o=t.table.hook.reading.fire,a=i(t,r),c=t.limit<1/0?a.getAll(t.range,t.limit):a.getAll(t.range);c.onerror=ge(n),c.onsuccess=o===k?me(e):se(me(function(t){try{e(t.map(o))}catch(e){n(e)}}))}else{var l=[];u(t,function(e){l.push(e)},function(){e(l)},n,r)}},e)},offset:function(e){var t=this._ctx;return e<=0?this:(t.offset+=e,J(t)?r(t,function(){var t=e;return function(e,n){return 0===t||(1===t?(--t,!1):(n(function(){e.advance(t),t=0}),!1))}}):r(t,function(){var t=e;return function(){return--t<0}}),this)},limit:function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),r(this._ctx,function(){var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}},!0),this},until:function(e,t){var r=this._ctx;return Et&&e(s(r)),n(this._ctx,function(n,r,o){return!e(n.value)||(r(o),t)}),this},first:function(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)},last:function(e){return this.reverse().first(e)},filter:function(e){return Et&&e(s(this._ctx)),n(this._ctx,function(t){return e(t.value)}),o(this._ctx,e),this},and:function(e){return this.filter(e)},or:function(e){return new X(this._ctx.table,e,this)},reverse:function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},desc:function(){return this.reverse()},eachKey:function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.key,n)})},eachUniqueKey:function(e){return this._ctx.unique="unique",this.eachKey(e)},eachPrimaryKey:function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.primaryKey,n)})},keys:function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)},primaryKeys:function(e){var t=this._ctx;if(Fe&&"next"===t.dir&&J(t,!0)&&t.limit>0)return this._read(function(e,n,r){var o=i(t,r),a=t.limit<1/0?o.getAllKeys(t.range,t.limit):o.getAllKeys(t.range);a.onerror=ge(n),a.onsuccess=me(e)}).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).then(e)},uniqueKeys:function(e){return this._ctx.unique="unique",this.keys(e)},firstKey:function(e){return this.limit(1).keys(function(e){return e[0]}).then(e)},lastKey:function(e){return this.reverse().firstKey(e)},distinct:function(){var e=this._ctx,r=e.index&&e.table.schema.idxByName[e.index];if(!r||!r.multi)return this;var o={};return n(this._ctx,function(e){var n=e.primaryKey.toString(),r=t(o,n);return o[n]=!0,!r}),this}}}),a(Z).from(Q).extend({modify:function(n){var r=this,o=this._ctx,i=o.table.hook,a=i.updating.fire,u=i.deleting.fire;return Et&&"function"==typeof n&&n.call({value:o.table.schema.instanceTemplate},o.table.schema.instanceTemplate),this._write(function(o,i,s,c){function l(e,n){function r(e){return P.push(e),O.push(o.primKey),p(),!0}T=n.primaryKey;var o={primKey:n.primaryKey,value:e,onsuccess:null,onerror:null};if(!1!==d.call(o,e,o)){var i=!t(o,"value");++x,m(function(){var e=i?n.delete():n.update(o.value);e._hookCtx=o,e.onerror=be(r),e.onsuccess=ve(function(){++C,p()})},r)}else o.onsuccess&&o.onsuccess(o.value)}function f(e){return e&&(P.push(e),O.push(T)),i(new B("Error modifying one or more objects",P,C,O))}function p(){k&&C+P.length===x&&(P.length>0?f():o(C))}var d;if("function"==typeof n)d=a===E&&u===E?n:function(e){var r=w(e);if(!1===n.call(this,e,this))return!1;if(t(this,"value")){var o=S(r,this.value),i=a.call(this,o,this.primKey,r,c);i&&(e=this.value,Pe(i).forEach(function(t){g(e,t,i[t])}))}else u.call(this,this.primKey,e,c)};else if(a===E){var h=Pe(n),y=h.length;d=function(e){for(var t=!1,r=0;r0?console.warn("Another connection wants to upgrade database '"+nt.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+nt.name+"'. Closing db now to resume the delete request."),nt.close()}),nt.on("blocked",function(e){!e.newVersion||e.newVersion8&&w<=11),C=32,E=String.fromCharCode(C),k={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},P=!1,O=null,T={eventTypes:k,extractEvents:function(e,t,n,r){return[s(e,t,n,r),f(e,t,n,r)]}};e.exports=T},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=n(6),i=n(18),a=n(91);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(e=0;e1?1-t:void 0;return this._fallbackText=o.slice(e,u),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(16),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(16),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=k.getPooled(N.change,e,t,n);return r.type="change",S.accumulateTwoPhaseDispatches(r),r}function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function i(e){var t=r(A,e,O(e));E.batchedUpdates(a,t)}function a(e){w.enqueueEvents(e),w.processEventQueue(!1)}function u(e,t){I=e,A=t,I.attachEvent("onchange",i)}function s(){I&&(I.detachEvent("onchange",i),I=null,A=null)}function c(e,t){var n=P.updateValueIfChanged(e),r=!0===t.simulated&&D._allowSimulatedPassThrough;if(n||r)return e}function l(e,t){if("topChange"===e)return t}function f(e,t,n){"topFocus"===e?(s(),u(t,n)):"topBlur"===e&&s()}function p(e,t){I=e,A=t,I.attachEvent("onpropertychange",h)}function d(){I&&(I.detachEvent("onpropertychange",h),I=null,A=null)}function h(e){"value"===e.propertyName&&c(A,e)&&i(e)}function y(e,t,n){"topFocus"===e?(d(),p(t,n)):"topBlur"===e&&d()}function m(e,t,n){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return c(A,n)}function v(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t,n){if("topClick"===e)return c(t,n)}function b(e,t,n){if("topInput"===e||"topChange"===e)return c(t,n)}function _(e,t){if(null!=e){var n=e._wrapperState||t._wrapperState;if(n&&n.controlled&&"number"===t.type){var r=""+t.value;t.getAttribute("value")!==r&&t.setAttribute("value",r)}}}var w=n(31),S=n(30),x=n(9),C=n(7),E=n(14),k=n(16),P=n(94),O=n(53),T=n(54),M=n(95),N={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},I=null,A=null,R=!1;x.canUseDOM&&(R=T("change")&&(!document.documentMode||document.documentMode>8));var j=!1;x.canUseDOM&&(j=T("input")&&(!("documentMode"in document)||document.documentMode>9));var D={eventTypes:N,_allowSimulatedPassThrough:!0,_isInputEventSupported:j,extractEvents:function(e,t,n,i){var a,u,s=t?C.getNodeFromInstance(t):window;if(o(s)?R?a=l:u=f:M(s)?j?a=b:(a=m,u=y):v(s)&&(a=g),a){var c=a(e,t,n);if(c){return r(c,n,i)}}u&&u(e,s,t),"topBlur"===e&&_(t,s)}};e.exports=D},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):a.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):a.removeComponentAsRefFrom(t,e,n)}var i="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},a=n(162),u={};u.attachRefs=function(e,t){if(null!==t&&"object"===(void 0===t?"undefined":i(t))){var n=t.ref;null!=n&&r(n,e,t._owner)}},u.shouldUpdateRefs=function(e,t){var n=null,r=null;null!==e&&"object"===(void 0===e?"undefined":i(e))&&(n=e.ref,r=e._owner);var o=null,a=null;return null!==t&&"object"===(void 0===t?"undefined":i(t))&&(o=t.ref,a=t._owner),n!==o||"string"==typeof o&&a!==r},u.detachRefs=function(e,t){if(null!==t&&"object"===(void 0===t?"undefined":i(t))){var n=t.ref;null!=n&&o(n,e,t._owner)}},e.exports=u},function(e,t,n){"use strict";function r(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)}var o=n(5),i=(n(1),{addComponentAsRefTo:function(e,t,n){r(n)||o("119"),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){r(n)||o("120");var i=n.getPublicInstance();i&&i.refs[t]===e.getPublicInstance()&&n.detachRef(t)}});e.exports=i},function(e,t,n){"use strict";var r=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=r},function(e,t,n){"use strict";var r=n(30),o=n(7),i=n(42),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},u={eventTypes:a,extractEvents:function(e,t,n,u){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(u.window===u)s=u;else{var c=u.ownerDocument;s=c?c.defaultView||c.parentWindow:window}var l,f;if("topMouseOut"===e){l=t;var p=n.relatedTarget||n.toElement;f=p?o.getClosestInstanceFromNode(p):null}else l=null,f=t;if(l===f)return null;var d=null==l?s:o.getNodeFromInstance(l),h=null==f?s:o.getNodeFromInstance(f),y=i.getPooled(a.mouseLeave,l,n,u);y.type="mouseleave",y.target=d,y.relatedTarget=h;var m=i.getPooled(a.mouseEnter,f,n,u);return m.type="mouseenter",m.target=h,m.relatedTarget=d,r.accumulateEnterLeaveDispatches(y,m,l,f),[y,m]}};e.exports=u},function(e,t,n){"use strict";var r=n(23),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,u=r.injection.HAS_POSITIVE_NUMERIC_VALUE,s=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:u,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:u,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:u,sizes:0,span:u,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}};e.exports=c},function(e,t,n){"use strict";var r=n(56),o=n(171),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";var r=n(5),o=n(25),i=n(9),a=n(168),u=n(11),s=(n(1),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||r("56"),t||r("57"),"HTML"===e.nodeName&&r("58"),"string"==typeof t){var n=a(t,u)[0];e.parentNode.replaceChild(n,e)}else o.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";function r(e){var t=e.match(l);return t&&t[1].toLowerCase()}function o(e,t){var n=c;c||s(!1);var o=r(e),i=o&&u(o);if(i){n.innerHTML=i[1]+e+i[2];for(var l=i[0];l--;)n=n.lastChild}else n.innerHTML=e;var f=n.getElementsByTagName("script");f.length&&(t||s(!1),a(f).forEach(t));for(var p=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return p}var i=n(9),a=n(169),u=n(170),s=n(1),c=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.length;if((Array.isArray(e)||"object"!==(void 0===e?"undefined":a(e))&&"function"!=typeof e)&&u(!1),"number"!=typeof t&&u(!1),0===t||t-1 in e||u(!1),"function"==typeof e.callee&&u(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r":"<"+e+">",u[e]=!a.firstChild),u[e]?p[e]:null}var o=n(9),i=n(1),a=o.canUseDOM?document.createElement("div"):null,u={},s=[1,'"],c=[1,"","
"],l=[3,"","
"],f=[1,'',""],p={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:s,option:s,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=f,u[e]=!0}),e.exports=r},function(e,t,n){"use strict";var r=n(56),o=n(7),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=o.getNodeFromInstance(e);r.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function r(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function o(e,t){t&&(X[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&v("137",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&v("60"),"object"===m(t.dangerouslySetInnerHTML)&&V in t.dangerouslySetInnerHTML||v("61")),null!=t.style&&"object"!==m(t.style)&&v("62",r(e)))}function i(e,t,n,r){if(!(r instanceof j)){var o=e._hostContainerInfo,i=o._node&&o._node.nodeType===z,u=i?o._node:o._ownerDocument;q(t,u),r.getReactMountReady().enqueue(a,{inst:e,registrationName:t,listener:n})}}function a(){var e=this;E.putListener(e.inst,e.registrationName,e.listener)}function u(){var e=this;M.postMountWrapper(e)}function s(){var e=this;A.postMountWrapper(e)}function c(){var e=this;N.postMountWrapper(e)}function l(){L.track(this)}function f(){var e=this;e._rootNodeID||v("63");var t=B(e);switch(t||v("64"),e._tag){case"iframe":case"object":e._wrapperState.listeners=[P.trapBubbledEvent("topLoad","load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in Y)Y.hasOwnProperty(n)&&e._wrapperState.listeners.push(P.trapBubbledEvent(n,Y[n],t));break;case"source":e._wrapperState.listeners=[P.trapBubbledEvent("topError","error",t)];break;case"img":e._wrapperState.listeners=[P.trapBubbledEvent("topError","error",t),P.trapBubbledEvent("topLoad","load",t)];break;case"form":e._wrapperState.listeners=[P.trapBubbledEvent("topReset","reset",t),P.trapBubbledEvent("topSubmit","submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[P.trapBubbledEvent("topInvalid","invalid",t)]}}function p(){I.postUpdateWrapper(this)}function d(e){Z.call(J,e)||(Q.test(e)||v("65",e),J[e]=!0)}function h(e,t){return e.indexOf("-")>=0||null!=t.is}function y(e){var t=e.type;d(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m="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},v=n(5),g=n(6),b=n(173),_=n(174),w=n(25),S=n(57),x=n(23),C=n(101),E=n(31),k=n(50),P=n(45),O=n(88),T=n(7),M=n(183),N=n(185),I=n(102),A=n(186),R=(n(13),n(187)),j=n(194),D=(n(11),n(44)),L=(n(1),n(54),n(61),n(94)),U=(n(65),n(4),O),F=E.deleteListener,B=T.getNodeFromInstance,q=P.listenTo,H=k.registrationNameModules,W={string:!0,number:!0},V="__html",K={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},z=11,Y={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},$={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},G={listing:!0,pre:!0,textarea:!0},X=g({menuitem:!0},$),Q=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,J={},Z={}.hasOwnProperty,ee=1;y.displayName="ReactDOMComponent",y.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=ee++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(f,this);break;case"input":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(l,this),e.getReactMountReady().enqueue(f,this);break;case"option":N.mountWrapper(this,i,t),i=N.getHostProps(this,i);break;case"select":I.mountWrapper(this,i,t),i=I.getHostProps(this,i),e.getReactMountReady().enqueue(f,this);break;case"textarea":A.mountWrapper(this,i,t),i=A.getHostProps(this,i),e.getReactMountReady().enqueue(l,this),e.getReactMountReady().enqueue(f,this)}o(this,i);var a,p;null!=t?(a=t._namespaceURI,p=t._tag):n._tag&&(a=n._namespaceURI,p=n._tag),(null==a||a===S.svg&&"foreignobject"===p)&&(a=S.html),a===S.html&&("svg"===this._tag?a=S.svg:"math"===this._tag&&(a=S.mathml)),this._namespaceURI=a;var d;if(e.useCreateElement){var h,y=n._ownerDocument;if(a===S.html)if("script"===this._tag){var m=y.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",h=m.removeChild(m.firstChild)}else h=i.is?y.createElement(this._currentElement.type,i.is):y.createElement(this._currentElement.type);else h=y.createElementNS(a,this._currentElement.type);T.precacheNode(this,h),this._flags|=U.hasCachedChildNodes,this._hostParent||C.setAttributeForRoot(h),this._updateDOMProperties(null,i,e);var g=w(h);this._createInitialChildren(e,i,r,g),d=g}else{var _=this._createOpenTagMarkupAndPutListeners(e,i),x=this._createContentMarkup(e,i,r);d=!x&&$[this._tag]?_+"/>":_+">"+x+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(u,this),i.autoFocus&&e.getReactMountReady().enqueue(b.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(b.focusDOMComponent,this);break;case"select":case"button":i.autoFocus&&e.getReactMountReady().enqueue(b.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(c,this)}return d},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(H.hasOwnProperty(r))o&&i(this,r,o,e);else{"style"===r&&(o&&(o=this._previousStyleCopy=g({},t.style)),o=_.createMarkupForStyles(o,this));var a=null;null!=this._tag&&h(this._tag,t)?K.hasOwnProperty(r)||(a=C.createMarkupForCustomAttribute(r,o)):a=C.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+C.createMarkupForRoot()),n+=" "+C.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=W[m(t.children)]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=D(i);else if(null!=a){var u=this.mountChildren(a,e,n);r=u.join("")}}return G[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&w.queueHTML(r,o.__html);else{var i=W[m(t.children)]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&w.queueText(r,i);else if(null!=a)for(var u=this.mountChildren(a,e,n),s=0;s0;)e=e._hostParent,n--;for(;o-n>0;)t=t._hostParent,o--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function o(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var o;for(o=r.length;o-- >0;)t(r[o],"captured",n);for(o=0;o0;)n(s[c],"captured",i)}var s=n(5);n(1);e.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:u}},function(e,t,n){"use strict";var r=n(5),o=n(6),i=n(56),a=n(25),u=n(7),s=n(44),c=(n(1),n(65),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(c.prototype,{mountComponent:function(e,t,n,r){var o=n._idCounter++,i=" react-text: "+o+" ";if(this._domID=o,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,l=c.createComment(i),f=c.createComment(" /react-text "),p=a(c.createDocumentFragment());return a.queueChild(p,a(l)),this._stringText&&a.queueChild(p,a(c.createTextNode(this._stringText))),a.queueChild(p,a(f)),u.precacheNode(this,l),this._closingComment=f,p}var d=s(this._stringText);return e.renderToStaticMarkup?d:"\x3c!--"+i+"--\x3e"+d+"\x3c!-- /react-text --\x3e"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=u.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&r("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,u.uncacheNode(this)}}),e.exports=c},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(6),i=n(14),a=n(41),u=n(11),s={initialize:u,close:function(){p.isBatchingUpdates=!1}},c={initialize:u,close:i.flushBatchedUpdates.bind(i)},l=[c,s];o(r.prototype,a,{getTransactionWrappers:function(){return l}});var f=new r,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,r,o,i):f.perform(e,null,t,n,r,o,i)}};e.exports=p},function(e,t,n){"use strict";function r(e){for(;e._hostParent;)e=e._hostParent;var t=f.getNodeFromInstance(e),n=t.parentNode;return f.getClosestInstanceFromNode(n)}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=d(e.nativeEvent),n=f.getClosestInstanceFromNode(t),o=n;do{e.ancestors.push(o),o=o&&r(o)}while(o);for(var i=0;it.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function u(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i=void 0===t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var u=c(e,o),s=c(e,i);if(u&&s){var f=document.createRange();f.setStart(u.node,u.offset),n.removeAllRanges(),o>i?(n.addRange(f),n.extend(s.node,s.offset)):(f.setEnd(s.node,s.offset),n.addRange(f))}}}var s=n(9),c=n(205),l=n(91),f=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:f?o:i,setOffsets:f?a:u};e.exports=p},function(e,t,n){"use strict";function r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function i(e,t){for(var n=r(e),i=0,a=0;n;){if(3===n.nodeType){if(a=i+n.textContent.length,i<=t&&a>=t)return{node:n,offset:t-i};i=a}n=r(o(n))}}e.exports=i},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(207);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(208);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"===(void 0===e?"undefined":o(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}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};e.exports=r},function(e,t,n){"use strict";var r={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},o={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},i={Properties:{},DOMAttributeNamespaces:{xlinkActuate:r.xlink,xlinkArcrole:r.xlink,xlinkHref:r.xlink,xlinkRole:r.xlink,xlinkShow:r.xlink,xlinkTitle:r.xlink,xlinkType:r.xlink,xmlBase:r.xml,xmlLang:r.xml,xmlSpace:r.xml},DOMAttributeNames:{}};Object.keys(o).forEach(function(e){i.Properties[e]=0,o[e]&&(i.DOMAttributeNames[e]=o[e])}),e.exports=i},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&s.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e,t){if(g||null==y||y!==l())return null;var n=r(y);if(!v||!p(v,n)){v=n;var o=c.getPooled(h.select,m,e,t);return o.type="select",o.target=y,i.accumulateTwoPhaseDispatches(o),o}return null}var i=n(30),a=n(9),u=n(7),s=n(110),c=n(16),l=n(111),f=n(95),p=n(61),d=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,h={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},y=null,m=null,v=null,g=!1,b=!1,_={eventTypes:h,extractEvents:function(e,t,n,r){if(!b)return null;var i=t?u.getNodeFromInstance(t):window;switch(e){case"topFocus":(f(i)||"true"===i.contentEditable)&&(y=i,m=t,v=null);break;case"topBlur":y=null,m=null,v=null;break;case"topMouseDown":g=!0;break;case"topContextMenu":case"topMouseUp":return g=!1,o(n,r);case"topSelectionChange":if(d)break;case"topKeyDown":case"topKeyUp":return o(n,r)}return null},didPutListener:function(e,t,n){"onSelect"===t&&(b=!0)}};e.exports=_},function(e,t,n){"use strict";function r(e){return"."+e._rootNodeID}function o(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}var i=n(5),a=n(109),u=n(30),s=n(7),c=n(212),l=n(213),f=n(16),p=n(214),d=n(215),h=n(42),y=n(217),m=n(218),v=n(219),g=n(32),b=n(220),_=n(11),w=n(66),S=(n(1),{}),x={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t,r="top"+t,o={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};S[e]=o,x[r]=o});var C={},E={eventTypes:S,extractEvents:function(e,t,n,r){var o=x[e];if(!o)return null;var a;switch(e){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":a=f;break;case"topKeyPress":if(0===w(n))return null;case"topKeyDown":case"topKeyUp":a=d;break;case"topBlur":case"topFocus":a=p;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":a=h;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":a=y;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":a=m;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":a=c;break;case"topTransitionEnd":a=v;break;case"topScroll":a=g;break;case"topWheel":a=b;break;case"topCopy":case"topCut":case"topPaste":a=l}a||i("86",e);var s=a.getPooled(o,t,n,r);return u.accumulateTwoPhaseDispatches(s),s},didPutListener:function(e,t,n){if("onClick"===t&&!o(e._tag)){var i=r(e),u=s.getNodeFromInstance(e);C[i]||(C[i]=a.listen(u,"click",_))}},willDeleteListener:function(e,t){if("onClick"===t&&!o(e._tag)){var n=r(e);C[n].remove(),delete C[n]}}};e.exports=E},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(16),i={animationName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(16),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(32),i={relatedTarget:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(32),i=n(66),a=n(216),u=n(55),s={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:u,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=n(66),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(42),i={dataTransfer:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(32),i=n(55),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(16),i={propertyName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(42),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===o?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return n}var o=(n(65),9);e.exports=r},function(e,t,n){"use strict";var r={useCreateElement:!0,useFiber:!1};e.exports=r},function(e,t,n){"use strict";var r=n(224),o=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return i.test(e)?e:e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(e)===n}};e.exports=a},function(e,t,n){"use strict";function r(e){for(var t=1,n=0,r=0,i=e.length,a=-4&i;r0&&void 0!==arguments[0]?arguments[0]:{};(0,l.default)(y.canUseDOM,"Browser history needs a DOM");var t=window.history,n=(0,y.supportsHistory)(),r=!(0,y.supportsPopStateOnHashChange)(),o=e.forceRefresh,u=void 0!==o&&o,c=e.getUserConfirmation,d=void 0===c?y.getConfirmation:c,v=e.keyLength,g=void 0===v?6:v,b=e.basename?(0,p.stripTrailingSlash)((0,p.addLeadingSlash)(e.basename)):"",_=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname,a=o.search,u=o.hash,c=i+a+u;return(0,s.default)(!b||(0,p.hasBasename)(c,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+c+'" to begin with "'+b+'".'),b&&(c=(0,p.stripBasename)(c,b)),(0,f.createLocation)(c,r,n)},w=function(){return Math.random().toString(36).substr(2,g)},S=(0,h.default)(),x=function(e){a(H,e),H.length=t.length,S.notifyListeners(H.location,H.action)},C=function(e){(0,y.isExtraneousPopstateEvent)(e)||P(_(e.state))},E=function(){P(_(m()))},k=!1,P=function(e){if(k)k=!1,x();else{S.confirmTransitionTo(e,"POP",d,function(t){t?x({action:"POP",location:e}):O(e)})}},O=function(e){var t=H.location,n=M.indexOf(t.key);-1===n&&(n=0);var r=M.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(k=!0,R(o))},T=_(m()),M=[T.key],N=function(e){return b+(0,p.createPath)(e)},I=function(e,r){(0,s.default)(!("object"===(void 0===e?"undefined":i(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 o=(0,f.createLocation)(e,r,w(),H.location);S.confirmTransitionTo(o,"PUSH",d,function(e){if(e){var r=N(o),i=o.key,a=o.state;if(n)if(t.pushState({key:i,state:a},null,r),u)window.location.href=r;else{var c=M.indexOf(H.location.key),l=M.slice(0,-1===c?0:c+1);l.push(o.key),M=l,x({action:"PUSH",location:o})}else(0,s.default)(void 0===a,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},A=function(e,r){(0,s.default)(!("object"===(void 0===e?"undefined":i(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 o=(0,f.createLocation)(e,r,w(),H.location);S.confirmTransitionTo(o,"REPLACE",d,function(e){if(e){var r=N(o),i=o.key,a=o.state;if(n)if(t.replaceState({key:i,state:a},null,r),u)window.location.replace(r);else{var c=M.indexOf(H.location.key);-1!==c&&(M[c]=o.key),x({action:"REPLACE",location:o})}else(0,s.default)(void 0===a,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},R=function(e){t.go(e)},j=function(){return R(-1)},D=function(){return R(1)},L=0,U=function(e){L+=e,1===L?((0,y.addEventListener)(window,"popstate",C),r&&(0,y.addEventListener)(window,"hashchange",E)):0===L&&((0,y.removeEventListener)(window,"popstate",C),r&&(0,y.removeEventListener)(window,"hashchange",E))},F=!1,B=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=S.setPrompt(e);return F||(U(1),F=!0),function(){return F&&(F=!1,U(-1)),t()}},q=function(e){var t=S.appendListener(e);return U(1),function(){U(-1),t()}},H={length:t.length,action:"POP",location:T,createHref:N,push:I,replace:A,go:R,goBack:j,goForward:D,block:B,listen:q};return H};t.default=v},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;r1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&r(e),u=t&&r(t),s=a||u;if(e&&r(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var c=void 0;if(i.length){var l=i[i.length-1];c="."===l||".."===l||""===l}else c=!1;for(var f=0,p=i.length;p>=0;p--){var d=i[p];"."===d?o(i,p):".."===d?(o(i,p),f++):f&&(o(i,p),f--)}if(!s)for(;f--;f)i.unshift("..");!s||""===i[0]||i[0]&&r(i[0])||i.unshift("");var h=i.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h};e.exports=i},function(e,t,n){"use strict";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};t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)},i=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 r=void 0===t?"undefined":o(t);if(r!==(void 0===n?"undefined":o(n)))return!1;if("object"===r){var i=t.valueOf(),a=n.valueOf();if(i!==t||a!==n)return e(i,a);var u=Object.keys(t),s=Object.keys(n);return u.length===s.length&&u.every(function(r){return e(t[r],n[r])})}return!1};t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u="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},s=n(0),c=r(s),l=n(2),f=(r(l),n(234)),p=r(f),d=n(69),h=r(d),y=function(e){function t(){var n,r,a;o(this,t);for(var u=arguments.length,s=Array(u),c=0;c0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,o=e.initialIndex,u=void 0===o?0:o,f=e.keyLength,h=void 0===f?6:f,y=(0,p.default)(),m=function(e){a(T,e),T.length=T.entries.length,y.notifyListeners(T.location,T.action)},v=function(){return Math.random().toString(36).substr(2,h)},g=d(u,0,r.length-1),b=r.map(function(e){return"string"==typeof e?(0,l.createLocation)(e,void 0,v()):(0,l.createLocation)(e,void 0,e.key||v())}),_=c.createPath,w=function(e,n){(0,s.default)(!("object"===(void 0===e?"undefined":i(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,l.createLocation)(e,n,v(),T.location);y.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=T.index,n=t+1,o=T.entries.slice(0);o.length>n?o.splice(n,o.length-n,r):o.push(r),m({action:"PUSH",location:r,index:n,entries:o})}})},S=function(e,n){(0,s.default)(!("object"===(void 0===e?"undefined":i(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,l.createLocation)(e,n,v(),T.location);y.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(T.entries[T.index]=r,m({action:"REPLACE",location:r}))})},x=function(e){var n=d(T.index+e,0,T.entries.length-1),r=T.entries[n];y.confirmTransitionTo(r,"POP",t,function(e){e?m({action:"POP",location:r,index:n}):m()})},C=function(){return x(-1)},E=function(){return x(1)},k=function(e){var t=T.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return y.setPrompt(e)},O=function(e){return y.appendListener(e)},T={length:b.length,action:"POP",location:b[g],index:g,entries:b,createHref:_,push:w,replace:S,go:x,goBack:C,goForward:E,canGo:k,block:P,listen:O};return T};t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u="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},s=n(0),c=r(s),l=n(2),f=r(l),p=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(c.default.Component);p.propTypes={when:f.default.bool,message:f.default.oneOfType([f.default.func,f.default.string]).isRequired},p.defaultProps={when:!0},p.contextTypes={router:f.default.shape({history:f.default.shape({block:f.default.func.isRequired}).isRequired}).isRequired},t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u="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},s=n(0),c=r(s),l=n(2),f=r(l),p=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.perform=function(){var e=this.context.router.history,t=this.props,n=t.push,r=t.to;n?e.push(r):e.replace(r)},t.prototype.render=function(){return null},t}(c.default.Component);p.propTypes={push:f.default.bool,from:f.default.string,to:f.default.oneOfType([f.default.string,f.default.object])},p.defaultProps={push:!1},p.contextTypes={router:f.default.shape({history:f.default.shape({push:f.default.func.isRequired,replace:f.default.func.isRequired}).isRequired,staticContext:f.default.object}).isRequired},t.default=p},function(e,t,n){"use strict";function r(e,t){for(var n,r=[],o=0,i=0,a="",u=t&&t.delimiter||"/";null!=(n=b.exec(e));){var l=n[0],f=n[1],p=n.index;if(a+=e.slice(i,p),i=p+l.length,f)a+=f[1];else{var d=e[i],h=n[2],y=n[3],m=n[4],v=n[5],g=n[6],_=n[7];a&&(r.push(a),a="");var w=null!=h&&null!=d&&d!==h,S="+"===g||"*"===g,x="?"===g||"*"===g,C=n[2]||u,E=m||v;r.push({name:y||o++,prefix:h||"",delimiter:C,optional:x,repeat:S,partial:w,asterisk:!!_,pattern:E?c(E):_?".*":"[^"+s(C)+"]+?"})}}return i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s="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},c=n(34),l=r(c),f=n(0),p=r(f),d=n(2),h=r(d),y=n(35),m=n(69),v=r(m),g=Object.assign||function(e){for(var t=1;t",e)}},E=function(){},k=function(e){function t(){var n,r,o;i(this,t);for(var u=arguments.length,s=Array(u),c=0;c elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,d.default)(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,o=void 0;return c.default.Children.forEach(t,function(t){if(c.default.isValidElement(t)){var i=t.props,a=i.path,u=i.exact,s=i.strict,l=i.from,f=a||l;null==r&&(o=t,r=f?(0,y.default)(n.pathname,{path:f,exact:u,strict:s}):e.match)}}),r?c.default.cloneElement(o,{location:n,computedMatch:r}):null},t}(c.default.Component);m.contextTypes={router:f.default.shape({route:f.default.object.isRequired}).isRequired},t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=r(i),u=n(2),s=(r(u),n(242)),c=r(s),l=n(115),f=r(l),p=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(d.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,d.supportsGoWithoutReloadUsingHash)(),r=e.getUserConfirmation,i=void 0===r?d.getConfirmation:r,u=e.hashType,f=void 0===u?"slash":u,g=e.basename?(0,l.stripTrailingSlash)((0,l.addLeadingSlash)(e.basename)):"",b=h[f],_=b.encodePath,w=b.decodePath,S=function(){var e=w(y());return(0,a.default)(!g||(0,l.hasBasename)(e,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+g+'".'),g&&(e=(0,l.stripBasename)(e,g)),(0,c.createLocation)(e)},x=(0,p.default)(),C=function(e){o(K,e),K.length=t.length,x.notifyListeners(K.location,K.action)},E=!1,k=null,P=function(){var e=y(),t=_(e);if(e!==t)v(t);else{var n=S(),r=K.location;if(!E&&(0,c.locationsAreEqual)(r,n))return;if(k===(0,l.createPath)(n))return;k=null,O(n)}},O=function(e){if(E)E=!1,C();else{x.confirmTransitionTo(e,"POP",i,function(t){t?C({action:"POP",location:e}):T(e)})}},T=function(e){var t=K.location,n=A.lastIndexOf((0,l.createPath)(t));-1===n&&(n=0);var r=A.lastIndexOf((0,l.createPath)(e));-1===r&&(r=0);var o=n-r;o&&(E=!0,L(o))},M=y(),N=_(M);M!==N&&v(N);var I=S(),A=[(0,l.createPath)(I)],R=function(e){return"#"+_(g+(0,l.createPath)(e))},j=function(e,t){(0,a.default)(void 0===t,"Hash history cannot push state; it is ignored");var n=(0,c.createLocation)(e,void 0,void 0,K.location);x.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=(0,l.createPath)(n),r=_(g+t);if(y()!==r){k=t,m(r);var o=A.lastIndexOf((0,l.createPath)(K.location)),i=A.slice(0,-1===o?0:o+1);i.push(t),A=i,C({action:"PUSH",location:n})}else(0,a.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),C()}})},D=function(e,t){(0,a.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n=(0,c.createLocation)(e,void 0,void 0,K.location);x.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=(0,l.createPath)(n),r=_(g+t);y()!==r&&(k=t,v(r));var o=A.indexOf((0,l.createPath)(K.location));-1!==o&&(A[o]=t),C({action:"REPLACE",location:n})}})},L=function(e){(0,a.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},U=function(){return L(-1)},F=function(){return L(1)},B=0,q=function(e){B+=e,1===B?(0,d.addEventListener)(window,"hashchange",P):0===B&&(0,d.removeEventListener)(window,"hashchange",P)},H=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=x.setPrompt(e);return H||(q(1),H=!0),function(){return H&&(H=!1,q(-1)),t()}},V=function(e){var t=x.appendListener(e);return q(1),function(){q(-1),t()}},K={length:t.length,action:"POP",location:I,createHref:R,push:j,replace:D,go:L,goBack:U,goForward:F,block:W,listen:V};return K};t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.MemoryRouter}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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}Object.defineProperty(t,"__esModule",{value:!0});var i="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},a=n(0),u=r(a),s=n(2),c=(r(s),n(12)),l=n(116),f=r(l),p=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(s)throw s;for(var r=!1,i={},a=0;a0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1],r=n||t+"Subscription",u=function(e){function n(r,a){o(this,n);var u=i(this,e.call(this,r,a));return u[t]=r.store,u}return a(n,e),n.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[r]=null,e},n.prototype.render=function(){return c.Children.only(this.props.children)},n}(c.Component);return u.propTypes={store:p.storeShape.isRequired,children:f.default.element.isRequired},u.childContextTypes=(e={},e[t]=p.storeShape.isRequired,e[r]=p.subscriptionShape,e),u}Object.defineProperty(t,"__esModule",{value:!0});var s="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};t.createProvider=u;var c=n(0),l=n(2),f=r(l),p=n(122),d=n(72);r(d);t.default=u()},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.getOwnPropertySymbols,a=(Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable),u=Object.getPrototypeOf,s=u&&u(Object),c=Object.getOwnPropertyNames;e.exports=function e(t,n,l){if("string"!=typeof n){if(s){var f=u(n);f&&f!==s&&e(t,f,l)}var p=c(n);i&&(p=p.concat(i(n)));for(var d=0;d=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+(void 0===e?"undefined":s(e))+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function a(e,t){return e===t}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?l.default:t,r=e.mapStateToPropsFactories,u=void 0===r?m.default:r,s=e.mapDispatchToPropsFactories,c=void 0===s?h.default:s,f=e.mergePropsFactories,d=void 0===f?g.default:f,y=e.selectorFactory,v=void 0===y?_.default:y;return function(e,t,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=s.pure,f=void 0===l||l,h=s.areStatesEqual,y=void 0===h?a:h,m=s.areOwnPropsEqual,g=void 0===m?p.default:m,b=s.areStatePropsEqual,_=void 0===b?p.default:b,S=s.areMergedPropsEqual,x=void 0===S?p.default:S,C=o(s,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),E=i(e,u,"mapStateToProps"),k=i(t,c,"mapDispatchToProps"),P=i(r,d,"mergeProps");return n(v,w({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:k,initMergeProps:P,pure:f,areStatesEqual:y,areOwnPropsEqual:g,areStatePropsEqual:_,areMergedPropsEqual:x},C))}}Object.defineProperty(t,"__esModule",{value:!0});var s="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};t.createConnect=u;var c=n(123),l=r(c),f=n(273),p=r(f),d=n(274),h=r(d),y=n(275),m=r(y),v=n(276),g=r(v),b=n(277),_=r(b),w=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function i(e,t,n,r,o){function i(o,i){return h=o,y=i,m=e(h,y),v=t(r,y),g=n(m,v,y),d=!0,g}function a(){return m=e(h,y),t.dependsOnOwnProps&&(v=t(r,y)),g=n(m,v,y)}function u(){return e.dependsOnOwnProps&&(m=e(h,y)),t.dependsOnOwnProps&&(v=t(r,y)),g=n(m,v,y)}function s(){var t=e(h,y),r=!p(t,m);return m=t,r&&(g=n(m,v,y)),g}function c(e,t){var n=!f(t,y),r=!l(e,h);return h=e,y=t,n&&r?a():n?u():r?s():g}var l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1,h=void 0,y=void 0,m=void 0,v=void 0,g=void 0;return function(e,t){return d?c(e,t):i(e,t)}}function a(e,t){var n=t.initMapStateToProps,a=t.initMapDispatchToProps,u=t.initMergeProps,s=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),c=n(e,s),l=a(e,s),f=u(e,s);return(s.pure?i:o)(c,l,f,e,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.impureFinalPropsSelectorFactory=o,t.pureFinalPropsSelectorFactory=i,t.default=a;var u=n(278);!function(e){e&&e.__esModule}(u)},function(e,t,n){"use strict";function r(e,t,n){if(!e)throw new Error("Unexpected value for "+t+" in "+n+".");"mapStateToProps"!==t&&"mapDispatchToProps"!==t||e.hasOwnProperty("dependsOnOwnProps")||(0,a.default)("The selector for "+t+" of "+n+" did not specify a value for dependsOnOwnProps.")}function o(e,t,n,o){r(e,"mapStateToProps",o),r(t,"mapDispatchToProps",o),r(n,"mergeProps",o)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(72),a=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e,t){this._id=e,this._clearFn=t}var o=Function.prototype.apply;t.setTimeout=function(){return new r(o.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(280);var i=n(281);t.setImmediate=i.setImmediate,t.clearImmediate=i.clearImmediate},function(e,t,n){"use strict";(function(e,t){!function(e,n){function r(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.speedy,o=void 0===n?!c&&!l:n,i=t.maxLength,a=void 0===i?s&&f?4e3:65e3:i;r(this,e),this.isSpeedy=o,this.sheet=void 0,this.tags=[],this.maxLength=a,this.ctr=0}return e.prototype.getSheet=function(){return i(o(this.tags))},e.prototype.inject=function(){var e=this;if(this.injected)throw new Error("already injected!");s?this.tags[0]=a():this.sheet={cssRules:[],insertRule:function(t){e.sheet.cssRules.push({cssText:t})}},this.injected=!0},e.prototype.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},e.prototype._insert=function(e){try{var t=this.getSheet();t.insertRule(e,-1!==e.indexOf("@import")?0:t.cssRules.length)}catch(t){c&&console.warn("illegal rule",e)}},e.prototype.insert=function(e){if(s)if(this.isSpeedy&&this.getSheet().insertRule)this._insert(e);else if(-1!==e.indexOf("@import")){var t=o(this.tags);t.insertBefore(document.createTextNode(e),t.firstChild)}else o(this.tags).appendChild(document.createTextNode(e));else this.sheet.insertRule(e,-1!==e.indexOf("@import")?0:this.sheet.cssRules.length);return this.ctr++,s&&this.ctr%this.maxLength==0&&this.tags.push(a()),this.ctr-1},e.prototype.delete=function(e){return this.replace(e,"")},e.prototype.flush=function(){s?((0,u.forEach)(this.tags,function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.sheet=null,this.ctr=0):this.sheet.cssRules=[],this.injected=!1},e.prototype.rules=function(){if(!s)return this.sheet.cssRules;var e=[];return(0,u.forEach)(this.tags,function(t){return e.splice.apply(e,[e.length,0].concat(Array.from(i(t).cssRules)))}),e},e}()},function(e,t,n){"use strict";function r(e){return i(e.join(","))}function o(){for(var e="",t=arguments.length,n=Array(t),r=0;r=4;){var a=u(e,i);a=c(a,n),a^=a>>>24,a=c(a,n),r=c(r,n),r^=a,i+=4,o-=4}switch(o){case 3:r^=s(e,i),r^=e.charCodeAt(i+2)<<16,r=c(r,n);break;case 2:r^=s(e,i),r=c(r,n);break;case 1:r^=e.charCodeAt(i),r=c(r,n)}return r^=r>>>13,r=c(r,n),(r^=r>>>15)>>>0}function u(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function s(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function c(e,t){return e|=0,t|=0,(65535&e)*t+(((e>>>16)*t&65535)<<16)|0}t.__esModule=!0,t.hashArray=r,t.hashObject=o,t.hashString=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t="";for(var n in e){var r=0===n.indexOf("--");if(e.hasOwnProperty(n)){var o=e[n];null!=o&&(r?t+=n+":"+o+";":(t+=l(n)+":",t+=(0,a.default)(n,o)+";"))}}return t||null}t.__esModule=!0,t.processStyleName=void 0,t.createMarkupForStyles=o;var i=n(285),a=r(i),u=n(100),s=r(u),c=/[A-Z]|^ms/g,l=t.processStyleName=(0,s.default)(function(e){return e.replace(c,"-$&").toLowerCase()})},function(e,t,n){"use strict";function r(e,t){return null==t||"boolean"==typeof t||""===t?"":isNaN(t)||0===t||1===i.default[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}t.__esModule=!0;var o=n(286),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}t.__esModule=!0;var o=n(36),i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineClamp:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=["Webkit","ms","Moz","O"];(0,o.forEach)((0,o.keys)(i),function(e){(0,o.forEach)(a,function(t){i[r(t,e)]=1})}),t.default=i},function(e,t,n){"use strict";function r(e){return null===e||void 0===e||!1===e||"object"===(void 0===e?"undefined":s(e))&&0===(0,c.keys)(e).length}function o(e){if(r(e))return null;if("object"!==(void 0===e?"undefined":s(e)))return e;var t={},n=!1;return(0,c.forEach)((0,c.keys)(e),function(e){var r=a(e);null!==r&&r===e||(n=!0),null!==r&&(t[e]=r)}),0===(0,c.keys)(t).length?null:n?t:e}function i(e){var t=!1,n=[];return(0,c.forEach)(e,function(e){var r=a(e);null!==r&&r===e||(t=!0),null!==r&&n.push(r)}),0===n.length?null:t?n:e}function a(e){return"string"==typeof e?e.trim():Array.isArray(e)?i(e):o(e)}var u="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};t.__esModule=!0;var s="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":u(e)};t.default=a;var c=n(36)},function(e,t,n){"use strict";t.__esModule=!0,t.objStyle=t.hydrate=t.keyframes=t.fontFace=t.injectGlobal=t.css=t.flush=void 0;var r=n(27);Object.defineProperty(t,"flush",{enumerable:!0,get:function(){return r.flush}}),Object.defineProperty(t,"css",{enumerable:!0,get:function(){return r.css}}),Object.defineProperty(t,"injectGlobal",{enumerable:!0,get:function(){return r.injectGlobal}}),Object.defineProperty(t,"fontFace",{enumerable:!0,get:function(){return r.fontFace}}),Object.defineProperty(t,"keyframes",{enumerable:!0,get:function(){return r.keyframes}}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return r.hydrate}}),Object.defineProperty(t,"objStyle",{enumerable:!0,get:function(){return r.objStyle}}),t.default=function(e,t,n){function u(e,t){var n=function(n){return n&&"function"==typeof n?void 0!==n.__emotion_class?"& ."+n.__emotion_class:n(e,t):n},u=[];a(u,(0,i.reduce)(h,function(e,t){return a(e,t.objs),t.content&&e.push(t.content.apply(null,(0,i.map)(t.vars,n))),e.push(t.cls),e},[])),e.className&&a(u,e.className.split(" "));var s=(0,r.css)((0,i.map)(u,n));return(0,o.createElement)(y,(0,i.omit)((0,i.assign)({},e,{ref:e.innerRef,className:s}),m))}var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],f=arguments[4];if(!e)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var p=e.displayName||e.name||"Component",d={vars:l,content:f,objs:n,tag:e,cls:t},h=void 0!==e.__emotion_spec?e.__emotion_spec.concat(d):[d],y=h[0].tag,m="string"==typeof y?s:c;return u.displayName="styled("+p+")",u.__emotion_spec=h,u.__emotion_class=t,u};var o=n(0),i=n(36),a=function(e,t){return Array.prototype.push.apply(e,t)},u=new RegExp("^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|accept|acceptCharset|accessKey|action|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable)|(on[A-Z].*)|((data|aria)-.*))$"),s=function(e){return u.test(e)},c=function(e){return"theme"!==e&&"innerRef"!==e}},function(e,t,n){"use strict";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};!function(e){function t(){return"Markdown.mk_block( "+uneval(this.toString())+", "+uneval(this.trailing)+", "+uneval(this.lineNumber)+" )"}function o(){var e=n(290);return"Markdown.mk_block( "+e.inspect(this.toString())+", "+e.inspect(this.trailing)+", "+e.inspect(this.lineNumber)+" )"}function i(e){for(var t=0,n=-1;-1!==(n=e.indexOf("\n",n+1));)t++;return t}function u(e,t){function n(e){this.len_after=e,this.name="close_"+t}var r=e+"_state",o="strong"==e?"em_state":"strong_state";return function(i,a){if(this[r][0]==t)return this[r].shift(),[i.length,new n(i.length-t.length)];var u=this[o].slice(),s=this[r].slice();this[r].unshift(t);var c=this.processInline(i.substr(t.length)),l=c[c.length-1];this[r].shift();if(l instanceof n){c.pop();return[i.length-l.len_after,[e].concat(c)]}return this[o]=u,this[r]=s,[t.length,t]}}function s(e){for(var t=e.split(""),n=[""],r=!1;t.length;){var o=t.shift();switch(o){case" ":r?n[n.length-1]+=o:n.push("");break;case"'":case'"':r=!r;break;case"\\":o=t.shift();default:n[n.length-1]+=o}}return n}function c(e){return g(e)&&e.length>1&&"object"===r(e[1])&&!g(e[1])?e[1]:void 0}function l(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function f(e){if("string"==typeof e)return l(e);var t=e.shift(),n={},o=[];for(!e.length||"object"!==r(e[0])||e[0]instanceof Array||(n=e.shift());e.length;)o.push(f(e.shift()));var i="";for(var a in n)i+=" "+a+'="'+l(n[a])+'"';return"img"==t||"br"==t||"hr"==t?"<"+t+i+"/>":"<"+t+i+">"+o.join("")+""}function d(e,t,n){var r;n=n||{};var o=e.slice(0);"function"==typeof n.preprocessTreeNode&&(o=n.preprocessTreeNode(o,t));var i=c(o);if(i){o[1]={};for(r in i)o[1][r]=i[r];i=o[1]}if("string"==typeof o)return o;switch(o[0]){case"header":o[0]="h"+o[1].level,delete o[1].level;break;case"bulletlist":o[0]="ul";break;case"numberlist":o[0]="ol";break;case"listitem":o[0]="li";break;case"para":o[0]="p";break;case"markdown":o[0]="html",i&&delete i.references;break;case"code_block":o[0]="pre",r=i?2:1;var a=["code"];a.push.apply(a,o.splice(r,o.length-r)),o[r]=a;break;case"inlinecode":o[0]="code";break;case"img":o[1].src=o[1].href,delete o[1].href;break;case"linebreak":o[0]="br";break;case"link":o[0]="a";break;case"link_ref":o[0]="a";var u=t[i.ref];if(!u)return i.original;delete i.ref,i.href=u.href,u.title&&(i.title=u.title),delete i.original;break;case"img_ref":o[0]="img";var u=t[i.ref];if(!u)return i.original;delete i.ref,i.src=u.href,u.title&&(i.title=u.title),delete i.original}if(r=1,i){for(var s in o[1]){r=2;break}1===r&&o.splice(r,1)}for(;r0&&!g(i[0]))&&this.debug(r[o],"didn't return a proper array"),i}return[]},y.prototype.processInline=function(e){return this.dialect.inline.__call__.call(this,String(e))},y.prototype.toTree=function(e,t){var n=e instanceof Array?e:this.split_blocks(e),r=this.tree;try{for(this.tree=t||this.tree||["markdown"];n.length;){var o=this.processBlock(n.shift(),n);o.length&&this.tree.push.apply(this.tree,o)}return this.tree}finally{t&&(this.tree=r)}},y.prototype.debug=function(){var e=Array.prototype.slice.call(arguments);e.unshift(this.debug_indent),"undefined"!=typeof print&&print.apply(print,e),"undefined"!=typeof console&&void 0!==console.log&&console.log.apply(null,e)},y.prototype.loop_re_over_block=function(e,t,n){for(var r,o=t.valueOf();o.length&&null!=(r=e.exec(o));)o=o.substr(r[0].length),n.call(this,r);return o},y.dialects={},y.dialects.Gruber={block:{atxHeader:function(e,t){var n=e.match(/^(#{1,6})\s*(.*?)\s*#*\s*(?:\n|$)/);if(n){var r=["header",{level:n[1].length}];return Array.prototype.push.apply(r,this.processInline(n[2])),n[0].length1&&n.unshift(r);for(var i=0;i1&&"string"==typeof o[o.length-1]?o[o.length-1]+=a:o.push(a)}}function r(e,t){for(var n=new RegExp("^("+s+"{"+e+"}.*?\\n?)*$"),r=new RegExp("^"+s+"{"+e+"}","gm"),o=[];t.length>0&&n.exec(t[0]);){var i=t.shift(),a=i.replace(r,"");o.push(m(a,i.trailing,i.lineNumber))}return o}function o(e,t,n){var r=e.list,o=r[r.length-1];if(!(o[1]instanceof Array&&"para"==o[1][0]))if(t+1==n.length)o.push(["para"].concat(o.splice(1,o.length-1)));else{var i=o.pop();o.push(["para"].concat(o.splice(1,o.length-1)),i)}}var i="[*+-]|\\d+\\.",a=/[*+-]/,u=new RegExp("^( {0,3})("+i+")[ \t]+"),s="(?: {0,3}\\t| {4})";return function(i,s){function c(e){var t=a.exec(e[2])?["bulletlist"]:["numberlist"];return d.push({list:t,indent:e[1]}),t}var l=i.match(u);if(l){for(var f,p,d=[],h=c(l),y=!1,m=[d[0].list];;){for(var g=i.split(/(?=\n)/),b="",_=0;_d.length)h=c(l),f.push(h),f=h[1]=["listitem"];else{var E=!1;for(p=0;pl[0].length&&(b+=w+S.substr(l[0].length))}b.length&&(n(f,y,this.processInline(b),w),y=!1,b="");var k=r(d.length,s);k.length>0&&(v(d,o,this),f.push.apply(f,this.toTree(k,[])));var P=s[0]&&s[0].valueOf()||"";if(!P.match(u)&&!P.match(/^ /))break;i=s.shift();var O=this.dialect.block.horizRule(i,s);if(O){m.push.apply(m,O);break}v(d,o,this),y=!0}return m}}}(),blockquote:function(e,t){if(e.match(/^>/m)){var n=[];if(">"!=e[0]){for(var r=e.split(/\n/),o=[],i=e.lineNumber;r.length&&">"!=r[0][0];)o.push(r.shift()),i++;var a=m(o.join("\n"),"\n",e.lineNumber);n.push.apply(n,this.processBlock(a,[])),e=m(r.join("\n"),e.trailing,i)}for(;t.length&&">"==t[0][0];){var u=t.shift();e=m(e+e.trailing+u,u.trailing,e.lineNumber)}var s=e.replace(/^> ?/gm,""),l=(this.tree,this.toTree(s,["blockquote"])),f=c(l);return f&&f.references&&(delete f.references,b(f)&&l.splice(1,1)),n.push(l),n}},referenceDefn:function(e,t){var n=/^\s*\[(.*?)\]:\s*(\S+)(?:\s+(?:(['"])(.*?)\3|\((.*?)\)))?\n?/;if(e.match(n)){c(this.tree)||this.tree.splice(1,0,{});var r=c(this.tree);void 0===r.references&&(r.references={});var o=this.loop_re_over_block(n,e,function(e){e[2]&&"<"==e[2][0]&&">"==e[2][e[2].length-1]&&(e[2]=e[2].substring(1,e[2].length-1));var t=r.references[e[1].toLowerCase()]={href:e[2]};void 0!==e[4]?t.title=e[4]:void 0!==e[5]&&(t.title=e[5])});return o.length&&t.unshift(m(o,e.trailing)),[]}},para:function(e,t){return[["para"].concat(this.processInline(e))]}}},y.dialects.Gruber.inline={__oneElement__:function(e,t,n){var r,o;if(t=t||this.dialect.inline.__patterns__,!(r=new RegExp("([\\s\\S]*?)("+(t.source||t)+")").exec(e)))return[e.length,e];if(r[1])return[r[1].length,r[1]];var o;return r[2]in this.dialect.inline&&(o=this.dialect.inline[r[2]].call(this,e.substr(r.index),r,n||[])),o=o||[r[2].length,r[2]]},__call__:function(e,t){function n(e){"string"==typeof e&&"string"==typeof o[o.length-1]?o[o.length-1]+=e:o.push(e)}for(var r,o=[];e.length>0;)r=this.dialect.inline.__oneElement__.call(this,e,t,o),e=e.substr(r.shift()),v(r,n);return o},"]":function(){},"}":function(){},__escape__:/^\\[\\`\*_{}\[\]()#\+.!\-]/,"\\":function(e){return this.dialect.inline.__escape__.exec(e)?[2,e.charAt(1)]:[1,"\\"]},"![":function(e){var t=e.match(/^!\[(.*?)\][ \t]*\([ \t]*([^")]*?)(?:[ \t]+(["'])(.*?)\3)?[ \t]*\)/);if(t){t[2]&&"<"==t[2][0]&&">"==t[2][t[2].length-1]&&(t[2]=t[2].substring(1,t[2].length-1)),t[2]=this.dialect.inline.__call__.call(this,t[2],/\\/)[0];var n={alt:t[1],href:t[2]||""};return void 0!==t[4]&&(n.title=t[4]),[t[0].length,["img",n]]}return t=e.match(/^!\[(.*?)\][ \t]*\[(.*?)\]/),t?[t[0].length,["img_ref",{alt:t[1],ref:t[2].toLowerCase(),original:t[0]}]]:[2,"!["]},"[":function(e){var t=String(e),n=y.DialectHelpers.inline_until_char.call(this,e.substr(1),"]");if(!n)return[1,"["];var r,o,i=1+n[0],a=n[1];e=e.substr(i);var u=e.match(/^\s*\([ \t]*([^"']*)(?:[ \t]+(["'])(.*?)\2)?[ \t]*\)/);if(u){var s=u[1];if(i+=u[0].length,s&&"<"==s[0]&&">"==s[s.length-1]&&(s=s.substring(1,s.length-1)),!u[3])for(var c=1,l=0;l]+)|(.*?@.*?\.[a-zA-Z]+))>/))?t[3]?[t[0].length,["link",{href:"mailto:"+t[3]},t[3]]]:"mailto"==t[2]?[t[0].length,["link",{href:t[1]},t[1].substr("mailto:".length)]]:[t[0].length,["link",{href:t[1]},t[1]]]:[1,"<"]},"`":function(e){var t=e.match(/(`+)(([\s\S]*?)\1)/);return t&&t[2]?[t[1].length+t[2].length,["inlinecode",t[3]]]:[1,"`"]}," \n":function(e){return[3,["linebreak"]]}},y.dialects.Gruber.inline["**"]=u("strong","**"),y.dialects.Gruber.inline.__=u("strong","__"),y.dialects.Gruber.inline["*"]=u("em","*"),y.dialects.Gruber.inline._=u("em","_"),y.buildBlockOrder=function(e){var t=[];for(var n in e)"__order__"!=n&&"__call__"!=n&&t.push(n);e.__order__=t},y.buildInlinePatterns=function(e){var t=[];for(var n in e)if(!n.match(/^__.*__$/)){var r=n.replace(/([\\.*+?|()\[\]{}])/g,"\\$1").replace(/\n/,"\\n");t.push(1==n.length?r:"(?:"+r+")")}t=t.join("|"),e.__patterns__=t;var o=e.__call__;e.__call__=function(e,n){return void 0!=n?o.call(this,e,n):o.call(this,e,t)}},y.DialectHelpers={},y.DialectHelpers.inline_until_char=function(e,t){for(var n=0,r=[];;){if(e.charAt(n)==t)return n++,[n,r];if(n>=e.length)return null;var o=this.dialect.inline.__oneElement__.call(this,e.substr(n));n+=o[0],r.push.apply(r,o.slice(1))}},y.subclassDialect=function(e){function t(){}function n(){}return t.prototype=e.block,n.prototype=e.inline,{block:new t,inline:new n}},y.buildBlockOrder(y.dialects.Gruber.block),y.buildInlinePatterns(y.dialects.Gruber.inline),y.dialects.Maruku=y.subclassDialect(y.dialects.Gruber),y.dialects.Maruku.processMetaHash=function(e){for(var t=s(e),n={},r=0;r1)&&e.match(/^(?:\w+:.*\n)*\w+:.*$/)){c(this.tree)||this.tree.splice(1,0,{});var n=e.split(/\n/);for(p in n){var r=n[p].match(/(\w+):\s*(.*)$/),o=r[1].toLowerCase(),i=r[2];this.tree[1][o]=i}return[]}},y.dialects.Maruku.block.block_meta=function(e,t){var n=e.match(/(^|\n) {0,3}\{:\s*((?:\\\}|[^\}])*)\s*\}$/);if(n){var r,o=this.dialect.processMetaHash(n[2]);if(""===n[1]){var i=this.tree[this.tree.length-1];if(r=c(i),"string"==typeof i)return;r||(r={},i.splice(1,0,r));for(a in o)r[a]=o[a];return[]}var u=e.replace(/\n.*$/,""),s=this.processBlock(u,[]);r=c(s[0]),r||(r={},s[0].splice(1,0,r));for(a in o)r[a]=o[a];return s}},y.dialects.Maruku.block.definition_list=function(e,t){var n,r,o=/^((?:[^\s:].*\n)+):\s+([\s\S]+)$/,i=["dl"];if(r=e.match(o)){for(var a=[e];t.length&&o.exec(t[0]);)a.push(t.shift());for(var u=0;u=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),s(r,e,r.depth)}function i(e,t){var n=o.styles[t];return n?"["+o.colors[n][0]+"m"+e+"["+o.colors[n][1]+"m":e}function a(e,t){return e}function u(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function s(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=s(e,o,r)),o}var i=c(e,n);if(i)return i;var a=Object.keys(n),y=u(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),E(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(n);if(0===a.length){if(k(n)){var m=n.name?": "+n.name:"";return e.stylize("[Function"+m+"]","special")}if(S(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(C(n))return e.stylize(Date.prototype.toString.call(n),"date");if(E(n))return l(n)}var v="",g=!1,_=["{","}"];if(h(n)&&(g=!0,_=["[","]"]),k(n)){v=" [Function"+(n.name?": "+n.name:"")+"]"}if(S(n)&&(v=" "+RegExp.prototype.toString.call(n)),C(n)&&(v=" "+Date.prototype.toUTCString.call(n)),E(n)&&(v=" "+l(n)),0===a.length&&(!g||0==n.length))return _[0]+v+_[1];if(r<0)return S(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var w;return w=g?f(e,n,r,y,a):a.map(function(t){return p(e,n,r,y,t,g)}),e.seen.pop(),d(w,v,_)}function c(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,o){for(var i=[],a=0,u=t.length;a-1&&(u=i?u.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return" "+e}).join("\n"))):u=e.stylize("[Circular]","special")),w(a)){if(i&&o.match(/^\d+$/))return u;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+u}function d(e,t,n){var r=0;return e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return null==e}function g(e){return"number"==typeof e}function b(e){return"string"==typeof e}function _(e){return"symbol"===(void 0===e?"undefined":I(e))}function w(e){return void 0===e}function S(e){return x(e)&&"[object RegExp]"===O(e)}function x(e){return"object"===(void 0===e?"undefined":I(e))&&null!==e}function C(e){return x(e)&&"[object Date]"===O(e)}function E(e){return x(e)&&("[object Error]"===O(e)||e instanceof Error)}function k(e){return"function"==typeof e}function P(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===(void 0===e?"undefined":I(e))||void 0===e}function O(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}function M(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var I="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},A=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),u=r[n];n0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var a="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},u=n(5),s=(n(15),n(34)),c=(n(13),n(14)),l=(n(1),n(4),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){l.validateCallback(t,n);var o=i(e);if(!o)return null;o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],r(o)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t,n){var o=i(e,"replaceState");o&&(o._pendingStateQueue=[t],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(l.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&u("122",t,o(e))}});e.exports=l},function(e,t,n){"use strict";var r=(n(6),n(11)),o=(n(4),r);e.exports=o},function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=r},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 may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){(0,c.default)(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?d.default.Children.only(e):null},t}(d.default.Component);v.propTypes={history:y.default.object.isRequired,children:y.default.node},v.contextTypes={router:y.default.object},v.childContextTypes={router:y.default.object.isRequired},t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(237),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i={},a=0,u=function(e,t){var n=""+t.end+t.strict,r=i[n]||(i[n]={});if(r[e])return r[e];var u=[],s=(0,o.default)(e,u,t),c={re:s,keys:u};return a<1e4&&(r[e]=c,a++),c},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t&&(t={path:t});var n=t,r=n.path,o=void 0===r?"/":r,i=n.exact,a=void 0!==i&&i,s=n.strict,c=void 0!==s&&s,l=u(o,{end:a,strict:c}),f=l.re,p=l.keys,d=f.exec(e);if(!d)return null;var h=d[0],y=d.slice(1),m=e===h;return a&&!m?null:{path:o,url:"/"===o&&""===h?"/":h,isExact:m,params:p.reduce(function(e,t,n){return e[t.name]=y[n],e},{})}};t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(!(0,l.default)(e)||(0,a.default)(e)!=f)return!1;var t=(0,s.default)(e);if(null===t)return!0;var n=y.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&h.call(n)==m}Object.defineProperty(t,"__esModule",{value:!0});var i=n(255),a=r(i),u=n(260),s=r(u),c=n(262),l=r(c),f="[object Object]",p=Function.prototype,d=Object.prototype,h=p.toString,y=d.hasOwnProperty,m=h.call(Object);t.default=o},function(e,t,n){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof fetch?fetch.bind():function(e,t){return t=t||{},new Promise(function(n,r){function o(){var e,t=[],n=[],r={};return i.getAllResponseHeaders().replace(/^(.*?):\s*([\s\S]*?)$/gm,function(o,i,a){t.push(i=i.toLowerCase()),n.push([i,a]),e=r[i],r[i]=e?e+","+a:a}),{ok:1==(i.status/200|0),status:i.status,statusText:i.statusText,url:i.responseURL,clone:o,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},headers:{keys:function(){return t},entries:function(){return n},get:function(e){return r[e.toLowerCase()]},has:function(e){return e.toLowerCase()in r}}}}var i=new XMLHttpRequest;i.open(t.method||"get",e);for(var a in t.headers)i.setRequestHeader(a,t.headers[a]);i.withCredentials="include"==t.credentials,i.onload=function(){n(o())},i.onerror=r,i.send(t.body)})};t.default=r},,,,,function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||c}function o(e,t,n){this.props=e,this.context=t,this.refs=l,this.updater=n||c}function i(){}var a="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},u=n(30),s=n(6),c=n(79),l=(n(80),n(41));n(1),n(139);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!==(void 0===e?"undefined":a(e))&&"function"!=typeof e&&null!=e&&u("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};i.prototype=r.prototype,o.prototype=new i,o.prototype.constructor=o,s(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,e.exports={Component:r,PureComponent:o}},function(e,t,n){"use strict";var r=(n(4),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){},enqueueReplaceState:function(e,t){},enqueueSetState:function(e,t){}});e.exports=r},function(e,t,n){"use strict";var r=!1;e.exports=r},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r},function(e,t,n){"use strict";var r=n(147);e.exports=function(e){return r(e,!1)}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";e.exports=n(153)},function(e,t,n){"use strict";var r={hasCachedChildNodes:1};e.exports=r},function(e,t,n){"use strict";function r(e,t){return null==t&&o("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var o=n(5);n(1);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(9),i=null;e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=n(5),i=n(18),a=(n(1),function(){function e(t){r(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,n=this._arg;if(e&&t){e.length!==t.length&&o("24"),this._callbacks=null,this._contexts=null;for(var r=0;r.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,u=m.createElement(U,{child:t});if(e){var s=S.get(e);a=s._processChildContext(s._context)}else a=P;var l=p(n);if(l){var f=l._currentElement,h=f.props.child;if(M(h,t)){var y=l._renderedComponent.getPublicInstance(),v=r&&function(){r.call(y)};return F._updateRootComponent(l,u,a,n,v),y}F.unmountComponentAtNode(n)}var g=o(n),b=g&&!!i(g),_=c(n),w=b&&!l&&!_,x=F._renderNewRootComponent(u,n,w,a)._renderedComponent.getPublicInstance();return r&&r.call(x),x},render:function(e,t,n){return F._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){l(e)||d("40");var t=p(e);if(!t){c(e),1===e.nodeType&&e.hasAttribute(I);return!1}return delete D[t._instance.rootID],k.batchedUpdates(s,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(l(t)||d("41"),i){var u=o(t);if(x.canReuseMarkup(e,u))return void g.precacheNode(n,u);var s=u.getAttribute(x.CHECKSUM_ATTR_NAME);u.removeAttribute(x.CHECKSUM_ATTR_NAME);var c=u.outerHTML;u.setAttribute(x.CHECKSUM_ATTR_NAME,s);var f=e,p=r(f,c),y=" (client) "+f.substring(p-20,p+20)+"\n (server) "+c.substring(p-20,p+20);t.nodeType===R&&d("42",y)}if(t.nodeType===R&&d("43"),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);h.insertTreeBefore(t,e,null)}else T(t,e),g.precacheNode(n,t.firstChild)}};e.exports=F},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.HOST?e._renderedComponent:t===o.EMPTY?null:void 0}var o=n(101);e.exports=r},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}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u="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},s=n(19),c=r(s),l=n(0),f=r(l),p=n(2),d=r(p),h=n(70),y=r(h),m=Object.assign||function(e){for(var t=1;t and in the same route; will be ignored"),(0,c.default)(!(t&&r),"You should not use and in the same route; will be ignored"),(0,c.default)(!(n&&r),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){(0,c.default)(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,c.default)(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,o=t.render,i=this.context.router,a=i.history,u=i.route,s=i.staticContext,c=this.props.location||u.location,l={match:e,location:c,history:a,staticContext:s};return r?e?f.default.createElement(r,l):null:o?e?o(l):null:n?"function"==typeof n?n(l):!Array.isArray(n)||n.length?f.default.Children.only(n):null:null},t}(f.default.Component);v.contextTypes={router:d.default.shape({history:d.default.object.isRequired,route:d.default.object.isRequired,staticContext:d.default.object})},v.childContextTypes={router:d.default.object.isRequired},t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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 i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s="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},c=n(0),l=r(c),f=n(2),p=r(f),d=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(){}function c(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}function l(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=r.getDisplayName,f=void 0===l?function(e){return"ConnectAdvanced("+e+")"}:l,p=r.methodName,h=void 0===p?"connectAdvanced":p,v=r.renderCountProp,x=void 0===v?void 0:v,C=r.shouldHandleStateChanges,E=void 0===C||C,k=r.storeKey,P=void 0===k?"store":k,O=r.withRef,T=void 0!==O&&O,M=u(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),N=P+"Subscription",I=w++,A=(t={},t[P]=b.storeShape,t[N]=b.subscriptionShape,t),R=(n={},n[N]=b.subscriptionShape,n);return function(t){(0,y.default)("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",r=f(n),u=_({},M,{getDisplayName:f,methodName:h,renderCountProp:x,shouldHandleStateChanges:E,storeKey:P,withRef:T,displayName:r,wrappedComponentName:n,WrappedComponent:t}),l=function(n){function l(e,t){o(this,l);var a=i(this,n.call(this,e,t));return a.version=I,a.state={},a.renderCount=0,a.store=e[P]||t[P],a.propsMode=Boolean(e[P]),a.setWrappedInstance=a.setWrappedInstance.bind(a),(0,y.default)(a.store,'Could not find "'+P+'" in either the context or props of "'+r+'". Either wrap the root component in a , or explicitly pass "'+P+'" as a prop to "'+r+'".'),a.initSelector(),a.initSubscription(),a}return a(l,n),l.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[N]=t||this.context[N],e},l.prototype.componentDidMount=function(){E&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},l.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},l.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},l.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=s,this.store=null,this.selector.run=s,this.selector.shouldComponentUpdate=!1},l.prototype.getWrappedInstance=function(){return(0,y.default)(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+h+"() call."),this.wrappedInstance},l.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},l.prototype.initSelector=function(){var t=e(this.store.dispatch,u);this.selector=c(t,this.store),this.selector.run(this.props)},l.prototype.initSubscription=function(){if(E){var e=(this.propsMode?this.props:this.context)[N];this.subscription=new g.default(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},l.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(S)):this.notifyNestedSubs()},l.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},l.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},l.prototype.addExtraProps=function(e){if(!(T||x||this.propsMode&&this.subscription))return e;var t=_({},e);return T&&(t.ref=this.setWrappedInstance),x&&(t[x]=this.renderCount++),this.propsMode&&this.subscription&&(t[N]=this.subscription),t},l.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,m.createElement)(t,this.addExtraProps(e.props))},l}(m.Component);return l.WrappedComponent=t,l.displayName=r,l.childContextTypes=R,l.contextTypes=A,l.propTypes=A,(0,d.default)(l,t)}}Object.defineProperty(t,"__esModule",{value:!0});var f="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};t.default=l;var p=n(270),d=r(p),h=n(35),y=r(h),m=n(0),v=n(271),g=r(v),b=n(119),_=Object.assign||function(e){for(var t=1;t0;)for(e=ct,ct=[],n=e.length,t=0;t0);tt=!0,nt=!0}function ne(){var e=rt;rt=[],e.forEach(function(e){e._PSD.onunhandled.call(null,e._value,e)});for(var t=ft.slice(0),n=t.length;n;)t[--n]()}function re(e){function t(){e(),ft.splice(ft.indexOf(t),1)}ft.push(t),++lt,et(function(){0==--lt&&ne()},[])}function oe(e){rt.some(function(t){return t._value===e._value})||rt.push(e)}function ie(e){for(var t=rt.length;t;)if(rt[--t]._value===e._value)return void rt.splice(t,1)}function ae(e){console.warn("Unhandled rejection: "+(e.stack||e))}function ue(e){return new V(Xe,!1,e)}function se(e,t){var n=st;return function(){var r=ee(),o=st;try{return o!==n&&(st=n),e.apply(this,arguments)}catch(e){t&&t(e)}finally{o!==n&&(st=o),r&&te()}}}function ce(e,t,n,r){var o=st,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=le(i,e,t,n,r);return 0===i.ref&&i.finalize(),a}function le(e,t,n,r,o){var i=st;try{return e!==i&&(st=e),t(n,r,o)}finally{e!==i&&(st=i)}}function fe(t,n){var r;try{r=n.onuncatched(t)}catch(e){}if(!1!==r)try{var o,i={promise:n,reason:t};if(Te.document&&document.createEvent?(o=document.createEvent("Event"),o.initEvent(dt,!0,!0),e(o,i)):Te.CustomEvent&&(o=new CustomEvent(dt,{detail:i}),e(o,i)),o&&Te.dispatchEvent&&(dispatchEvent(o),!Te.PromiseRejectionEvent&&Te.onunhandledrejection))try{Te.onunhandledrejection(o)}catch(e){}o.defaultPrevented||V.on.error.fire(t,n)}catch(e){}}function pe(e,t){var n=V.reject(e);return t?n.uncaught(t):n}function de(r,o){function s(e){this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null},this.stores({})}function d(e,t,n){var r=nt._createTransaction(tt,Ge,ze);r.create(t),r._completion.catch(n);var o=r._reject.bind(r);ce(function(){st.trans=r,0===e?(Pe(ze).forEach(function(e){I(t,e,ze[e].primKey,ze[e].indexes)}),V.follow(function(){return nt.on.populate.fire(r)}).catch(o)):b(e,r,t).catch(o)})}function b(e,t,n){function r(){return o.length?V.resolve(o.shift()(t.idbtrans)).then(r):V.resolve()}var o=[],i=$e.filter(function(t){return t._cfg.version===e})[0];if(!i)throw new Ye.Upgrade("Dexie specification of currently installed DB version is missing");ze=nt._dbSchema=i._cfg.dbschema;var a=!1;return $e.filter(function(t){return t._cfg.version>e}).forEach(function(e){o.push(function(){var r=ze,o=e._cfg.dbschema;Ae(r,n),Ae(o,n),ze=nt._dbSchema=o;var i=O(r,o);if(i.add.forEach(function(e){I(n,e[0],e[1].primKey,e[1].indexes)}),i.change.forEach(function(e){if(e.recreate)throw new Ye.Upgrade("Not yet support for changing primary key");var t=n.objectStore(e.name);e.add.forEach(function(e){U(t,e)}),e.change.forEach(function(e){t.deleteIndex(e.name),U(t,e)}),e.del.forEach(function(e){t.deleteIndex(e)})}),e._cfg.contentUpgrade)return a=!0,V.follow(function(){e._cfg.contentUpgrade(t)})}),o.push(function(t){a&&wt||D(e._cfg.dbschema,t)})}),r().then(function(){R(ze,n)})}function O(e,t){var n={del:[],add:[],change:[]};for(var r in e)t[r]||n.del.push(r);for(r in t){var o=e[r],i=t[r];if(o){var a={name:r,def:i,recreate:!1,del:[],add:[],change:[]};if(o.primKey.src!==i.primKey.src)a.recreate=!0,n.change.push(a);else{var u=o.idxByName,s=i.idxByName;for(var c in u)s[c]||a.del.push(c);for(c in s){var l=u[c],f=s[c];l?l.src!==f.src&&a.change.push(f):a.add.push(f)}(a.del.length>0||a.add.length>0||a.change.length>0)&&n.change.push(a)}}else n.add.push([r,i])}return n}function I(e,t,n,r){var o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(function(e){U(o,e)}),o}function R(e,t){Pe(e).forEach(function(n){t.db.objectStoreNames.contains(n)||I(t,n,e[n].primKey,e[n].indexes)})}function D(e,t){for(var n=0;n0?e:t}function fe(e,t){return Ve.cmp(e,t)}function he(e,t){return Ve.cmp(t,e)}function Te(e,t){return et?-1:e===t?0:1}function Ne(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}function Ie(){if(nt.verno=Qe.version/10,nt._dbSchema=ze={},Ge=c(Qe.objectStoreNames,0),0!==Ge.length){var e=Qe.transaction(Ee(Ge),"readonly");Ge.forEach(function(t){for(var n=e.objectStore(t),r=n.keyPath,o=r&&"string"==typeof r&&-1!==r.indexOf("."),i=new xe(r,r||"",!1,!1,!!n.autoIncrement,r&&"string"!=typeof r,o),a=[],u=0;u0&&(it=!1),!Ve)throw new Ye.MissingAPI("indexedDB API not found. If using IE10+, make sure to run your code on a server URL (not locally). If using old Safari versions, make sure to include indexedDB polyfill.");var o=it?Ve.open(r):Ve.open(r,Math.round(10*nt.verno));if(!o)throw new Ye.MissingAPI("IndexedDB API not available");o.onerror=se(ge(n)),o.onblocked=se(Re),o.onupgradeneeded=se(function(e){if(t=o.transaction,it&&!nt._allowEmptyDB){o.onerror=_e,t.abort(),o.result.close();var i=Ve.deleteDatabase(r);i.onsuccess=i.onerror=se(function(){n(new Ye.NoSuchDatabase("Database "+r+" doesnt exist"))})}else{t.onerror=se(ge(n));d((e.oldVersion>Math.pow(2,62)?0:e.oldVersion)/10,t,n)}},n),o.onsuccess=se(function(){if(t=null,Qe=o.result,bt.push(nt),it)Ie();else if(Qe.objectStoreNames.length>0)try{Ae(ze,Qe.transaction(Ee(Qe.objectStoreNames),"readonly"))}catch(e){}Qe.onversionchange=se(function(e){nt._vcFired=!0,nt.on("versionchange").fire(e)}),at||we(function(e){if(-1===e.indexOf(r))return e.push(r)}),e()},n)})]).then(function(){return de.vip(nt.on.ready.fire)}).then(function(){return Ze=!1,nt}).catch(function(e){try{t&&t.abort()}catch(e){}return Ze=!1,nt.close(),Je=e,pe(Je,F)}).finally(function(){et=!0,e()})},this.close=function(){var e=bt.indexOf(nt);if(e>=0&&bt.splice(e,1),Qe){try{Qe.close()}catch(e){}Qe=null}We=!1,Je=new Ye.DatabaseClosed,Ze&&Le(Je),rt=new V(function(e){je=e}),ot=new V(function(e,t){Le=t})},this.delete=function(){var e=arguments.length>0;return new V(function(t,n){function o(){nt.close();var e=Ve.deleteDatabase(r);e.onsuccess=se(function(){at||we(function(e){var t=e.indexOf(r);if(t>=0)return e.splice(t,1)}),t()}),e.onerror=se(ge(n)),e.onblocked=Re}if(e)throw new Ye.InvalidArgument("Arguments not allowed in db.delete()");Ze?rt.then(o):o()}).uncaught(F)},this.backendDB=function(){return Qe},this.isOpen=function(){return null!==Qe},this.hasFailed=function(){return null!==Je},this.dynamicallyOpened=function(){return it},this.name=r,i(this,"tables",{get:function(){return Pe(Xe).map(function(e){return Xe[e]})}}),this.on=W(this,"error","populate","blocked","versionchange",{ready:[A,E]}),this.on.error.subscribe=L("Dexie.on.error",this.on.error.subscribe),this.on.error.unsubscribe=L("Dexie.on.error.unsubscribe",this.on.error.unsubscribe),this.on.ready.subscribe=l(this.on.ready.subscribe,function(e){return function(t,n){de.vip(function(){et?(Je||V.resolve().then(t),n&&e(t)):(e(t),n||e(function e(){nt.on.ready.unsubscribe(t),nt.on.ready.unsubscribe(e)}))})}}),Ct(function(){nt.on("populate").fire(nt._createTransaction(tt,Ge,ze)),nt.on("error").fire(new Error)}),this.transaction=function(e,n,r){function o(n){var o=st;n(V.resolve().then(function(){return ce(function(){st.transless=st.transless||o;var n=nt._createTransaction(e,l,ze,s);st.trans=n,s?n.idbtrans=s.idbtrans:n.create();var i=l.map(function(e){return Xe[e]});i.push(n);var a;return V.follow(function(){if(a=r.apply(n,i))if("function"==typeof a.next&&"function"==typeof a.throw)a=Se(a);else if("function"==typeof a.then&&!t(a,"_PSD"))throw new Ye.IncompatiblePromise("Incompatible Promise returned from transaction scope (read more at http://tinyurl.com/znyqjqc). Transaction scope: "+r.toString())}).uncaught(F).then(function(){return s&&n._resolve(),n._completion}).then(function(){return a}).catch(function(e){return n._reject(e),pe(e)})})}))}var i=arguments.length;if(i<2)throw new Ye.InvalidArgument("Too few arguments");for(var a=new Array(i-1);--i;)a[i-1]=arguments[i];r=a.pop();var u=C(a),s=st.trans;s&&s.db===nt&&-1===e.indexOf("!")||(s=null);var c=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{var l=u.map(function(e){var t=e instanceof K?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t});if("r"==e||"readonly"==e)e="readonly";else{if("rw"!=e&&e!=tt)throw new Ye.InvalidArgument("Invalid transaction mode: "+e);e=tt}if(s){if("readonly"===s.mode&&e===tt){if(!c)throw new Ye.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");s=null}s&&l.forEach(function(e){if(s&&-1===s.storeNames.indexOf(e)){if(!c)throw new Ye.SubTransaction("Table "+e+" not included in parent transaction.");s=null}})}}catch(e){return s?s._promise(null,function(t,n){n(e)}):pe(e,F)}return s?s._promise(e,o,"lock"):nt._whenReady(o)},this.table=function(e){if(Et&&it)return new z(e);if(!t(Xe,e))throw new Ye.InvalidTable("Table "+e+" does not exist");return Xe[e]},n(K.prototype,{_trans:function(e,t,n){var r=st.trans;return r&&r.db===nt?r._promise(e,t,n):H(e,[this.name],t)},_idbstore:function(e,t,n){function r(e,n,r){t(e,n,r.idbtrans.objectStore(i),r)}if(Et)return new V(t);var o=st.trans,i=this.name;return o&&o.db===nt?o._promise(e,r,n):H(e,[this.name],r)},get:function(e,t){var n=this;return this._idbstore("readonly",function(t,r,o){Et&&t(n.schema.instanceTemplate);var i=o.get(e);i.onerror=ge(r),i.onsuccess=se(function(){t(n.hook.reading.fire(i.result))},r)}).then(t)},where:function(e){return new X(this,e)},count:function(e){return this.toCollection().count(e)},offset:function(e){return this.toCollection().offset(e)},limit:function(e){return this.toCollection().limit(e)},reverse:function(){return this.toCollection().reverse()},filter:function(e){return this.toCollection().and(e)},each:function(e){return this.toCollection().each(e)},toArray:function(e){return this.toCollection().toArray(e)},orderBy:function(e){return new this._collClass(new X(this,e))},toCollection:function(){return new this._collClass(new X(this))},mapToClass:function(e,n){this.schema.mappedClass=e;var r=Object.create(e.prototype);n&&ye(r,n),this.schema.instanceTemplate=r;var o=function(n){if(!n)return n;var r=Object.create(e.prototype);for(var o in n)if(t(n,o))try{r[o]=n[o]}catch(e){}return r};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=o,this.hook("reading",o),e},defineClass:function(e){return this.mapToClass(de.defineClass(e),e)}}),a(z).from(K).extend({bulkDelete:function(e){return this.hook.deleting.fire===E?this._idbstore(tt,function(t,n,r,o){t($(r,o,e,!1,E))}):this.where(":id").anyOf(e).delete().then(function(){})},bulkPut:function(e,t){var n=this;return this._idbstore(tt,function(r,o,i){if(!i.keyPath&&!n.schema.primKey.auto&&!t)throw new Ye.InvalidArgument("bulkPut() with non-inbound keys requires keys array in second argument");if(i.keyPath&&t)throw new Ye.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(t&&t.length!==e.length)throw new Ye.InvalidArgument("Arguments objects and keys must have the same length");if(0===e.length)return r();var a,u,s=function(e){0===c.length?r(e):o(new q(n.name+".bulkPut(): "+c.length+" of "+l+" operations failed",c))},c=[],l=e.length,f=n;if(n.hook.creating.fire===E&&n.hook.updating.fire===E){u=Y(c);for(var p=0,d=e.length;p=0;--o){var i=y[o];(null==i||m[i])&&(n.push(e[o]),t&&r.push(i),null!=i&&(m[i]=null))}return n.reverse(),t&&r.reverse(),f.bulkAdd(n,r)}).then(function(e){var t=y[y.length-1];return null!=t?t:e}):f.bulkAdd(e)).then(s).catch(q,function(e){c=c.concat(e.failures),s()}).catch(o)}},"locked")},bulkAdd:function(e,t){var n=this,r=this.hook.creating.fire;return this._idbstore(tt,function(o,i,a,u){function s(e){0===p.length?o(e):i(new q(n.name+".bulkAdd(): "+p.length+" of "+d+" operations failed",p))}if(!a.keyPath&&!n.schema.primKey.auto&&!t)throw new Ye.InvalidArgument("bulkAdd() with non-inbound keys requires keys array in second argument");if(a.keyPath&&t)throw new Ye.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(t&&t.length!==e.length)throw new Ye.InvalidArgument("Arguments objects and keys must have the same length");if(0===e.length)return o();var c,l,f,p=[],d=e.length;if(r!==E){var h,y=a.keyPath;l=Y(p,null,!0),f=ve(null),m(function(){for(var n=0,o=e.length;n0&&!this._locked();){var e=this._blockedFuncs.shift();try{le(e[1],e[0])}catch(e){}}return this},_locked:function(){return this._reculock&&st.lockOwnerFor!==this},create:function(e){var t=this;if(p(!this.idbtrans),!e&&!Qe)switch(Je&&Je.name){case"DatabaseClosedError":throw new Ye.DatabaseClosed(Je);case"MissingAPIError":throw new Ye.MissingAPI(Je.message,Je);default:throw new Ye.OpenFailed(Je)}if(!this.active)throw new Ye.TransactionInactive;return p(null===this._completion._state),e=this.idbtrans=e||Qe.transaction(Ee(this.storeNames),this.mode),e.onerror=se(function(n){_e(n),t._reject(e.error)}),e.onabort=se(function(e){_e(e),t.active&&t._reject(new Ye.Abort),t.active=!1,t.on("abort").fire(e)}),e.oncomplete=se(function(){t.active=!1,t._resolve()}),this},_promise:function(e,t,n){var r=this,o=r._locked()?new V(function(o,i){r._blockedFuncs.push([function(){r._promise(e,t,n).then(o,i)},st])}):ce(function(){var o=r.active?new V(function(o,i){if(e===tt&&r.mode!==tt)throw new Ye.ReadOnly("Transaction is readonly");!r.idbtrans&&e&&r.create(),n&&r._lock(),t(o,i,r)}):pe(new Ye.TransactionInactive);return r.active&&n&&o.finally(function(){r._unlock()}),o});return o._lib=!0,o.uncaught(F)},abort:function(){this.active&&this._reject(new Ye.Abort),this.active=!1},tables:{get:L("Transaction.tables",function(){return h(this.storeNames,function(e){return[e,Xe[e]]})},"Use db.tables()")},complete:L("Transaction.complete()",function(e){return this.on("complete",e)}),error:L("Transaction.error()",function(e){return this.on("error",e)}),table:L("Transaction.table()",function(e){if(-1===this.storeNames.indexOf(e))throw new Ye.InvalidTable("Table "+e+" not in transaction");return Xe[e]})}),n(X.prototype,function(){function e(e,t,n){var r=e instanceof X?new e._ctx.collClass(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function t(e){return new e._ctx.collClass(e,function(){return Ke.only("")}).limit(0)}function n(e){return"next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()}}function r(e){return"next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()}}function o(e,t,n,r,o,i){for(var a=Math.min(e.length,r.length),u=-1,s=0;s=0?e.substr(0,u)+t[u]+n.substr(u+1):null;o(e[s],c)<0&&(u=s)}return a0)&&(u=c)}return t(null!==u?function(){e.continue(u+y)}:n),!1}),v}return{between:function(n,r,o,i){o=!1!==o,i=!0===i;try{return ie(n,r)>0||0===ie(n,r)&&(o||i)&&(!o||!i)?t(this):new this._ctx.collClass(this,function(){return Ke.bound(n,r,!o,!i)})}catch(t){return e(this,vt)}},equals:function(e){return new this._ctx.collClass(this,function(){return Ke.only(e)})},above:function(e){return new this._ctx.collClass(this,function(){return Ke.lowerBound(e,!0)})},aboveOrEqual:function(e){return new this._ctx.collClass(this,function(){return Ke.lowerBound(e)})},below:function(e){return new this._ctx.collClass(this,function(){return Ke.upperBound(e,!0)})},belowOrEqual:function(e){return new this._ctx.collClass(this,function(){return Ke.upperBound(e)})},startsWith:function(t){return"string"!=typeof t?e(this,gt):this.between(t,t+yt,!0,!0)},startsWithIgnoreCase:function(e){return""===e?this.startsWith(e):i(this,function(e,t){return 0===e.indexOf(t[0])},[e],yt)},equalsIgnoreCase:function(e){return i(this,function(e,t){return e===t[0]},[e],"")},anyOfIgnoreCase:function(){var e=x.apply(De,arguments);return 0===e.length?t(this):i(this,function(e,t){return-1!==t.indexOf(e)},e,"")},startsWithAnyOfIgnoreCase:function(){var e=x.apply(De,arguments);return 0===e.length?t(this):i(this,function(e,t){return t.some(function(t){return 0===e.indexOf(t)})},e,yt)},anyOf:function(){var n=x.apply(De,arguments),r=fe;try{n.sort(r)}catch(t){return e(this,vt)}if(0===n.length)return t(this);var o=new this._ctx.collClass(this,function(){return Ke.bound(n[0],n[n.length-1])});o._ondirectionchange=function(e){r="next"===e?fe:he,n.sort(r)};var i=0;return o._addAlgorithm(function(e,t,o){for(var a=e.key;r(a,n[i])>0;)if(++i===n.length)return t(o),!1;return 0===r(a,n[i])||(t(function(){e.continue(n[i])}),!1)}),o},notEqual:function(e){return this.inAnyRange([[-1/0,e],[e,mt]],{includeLowers:!1,includeUppers:!1})},noneOf:function(){var t=x.apply(De,arguments);if(0===t.length)return new this._ctx.collClass(this);try{t.sort(fe)}catch(t){return e(this,vt)}var n=t.reduce(function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]},null);return n.push([t[t.length-1],mt]),this.inAnyRange(n,{includeLowers:!1,includeUppers:!1})},inAnyRange:function(n,r){function o(e,t){for(var n=0,r=e.length;n0){o[0]=ae(o[0],t[0]),o[1]=ue(o[1],t[1]);break}}return n===r&&e.push(t),e}function i(e,t){return f(e[0],t[0])}function a(e){return!d(e)&&!h(e)}var u=this._ctx;if(0===n.length)return t(this);if(!n.every(function(e){return void 0!==e[0]&&void 0!==e[1]&&fe(e[0],e[1])<=0}))return e(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ye.InvalidArgument);var s,c=!r||!1!==r.includeLowers,l=r&&!0===r.includeUppers,f=fe;try{s=n.reduce(o,[]),s.sort(i)}catch(t){return e(this,vt)}var p=0,d=l?function(e){return fe(e,s[p][1])>0}:function(e){return fe(e,s[p][1])>=0},h=c?function(e){return he(e,s[p][0])>0}:function(e){return he(e,s[p][0])>=0},y=d,m=new u.collClass(this,function(){return Ke.bound(s[0][0],s[s.length-1][1],!c,!l)});return m._ondirectionchange=function(e){"next"===e?(y=d,f=fe):(y=h,f=he),s.sort(i)},m._addAlgorithm(function(e,t,n){for(var r=e.key;y(r);)if(++p===s.length)return t(n),!1;return!!a(r)||0!==ie(r,s[p][1])&&0!==ie(r,s[p][0])&&(t(function(){f===fe?e.continue(s[p][0]):e.continue(s[p][1])}),!1)}),m},startsWithAnyOf:function(){var n=x.apply(De,arguments);return n.every(function(e){return"string"==typeof e})?0===n.length?t(this):this.inAnyRange(n.map(function(e){return[e,e+yt]})):e(this,"startsWithAnyOf() only works with strings")}}}),n(Q.prototype,function(){function n(e,t){e.filter=Ne(e.filter,t)}function r(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return Ne(r(),t())}:t,e.justLimit=n&&!r}function o(e,t){e.isMatch=Ne(e.isMatch,t)}function i(e,t){if(e.isPrimKey)return t;var n=e.table.schema.idxByName[e.index];if(!n)throw new Ye.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return t.index(n.name)}function a(e,t){var n=i(e,t);return e.keysOnly&&"openKeyCursor"in n?n.openKeyCursor(e.range||null,e.dir+e.unique):n.openCursor(e.range||null,e.dir+e.unique)}function u(e,n,r,o,i){var u=e.replayFilter?Ne(e.filter,e.replayFilter()):e.filter;e.or?function(){function s(){2==++f&&r()}function c(e,r,i){if(!u||u(r,i,s,o)){var a=r.primaryKey.toString();t(l,a)||(l[a]=!0,n(e,r,i))}}var l={},f=0;e.or._iterate(c,s,o,i),re(a(e,i),e.algorithm,c,s,o,!e.keysOnly&&e.valueMapper)}():re(a(e,i),Ne(e.algorithm,u),n,r,o,!e.keysOnly&&e.valueMapper)}function s(e){return e.table.schema.instanceTemplate}return{_read:function(e,t){var n=this._ctx;return n.error?n.table._trans(null,function(e,t){t(n.error)}):n.table._idbstore("readonly",e).then(t)},_write:function(e){var t=this._ctx;return t.error?t.table._trans(null,function(e,n){n(t.error)}):t.table._idbstore(tt,e,"locked")},_addAlgorithm:function(e){var t=this._ctx;t.algorithm=Ne(t.algorithm,e)},_iterate:function(e,t,n,r){return u(this._ctx,e,t,n,r)},clone:function(t){var n=Object.create(this.constructor.prototype),r=Object.create(this._ctx);return t&&e(r,t),n._ctx=r,n},raw:function(){return this._ctx.valueMapper=null,this},each:function(e){var t=this._ctx;if(Et){var n=s(t),r=t.table.schema.primKey.keyPath,o=v(n,t.index?t.table.schema.idxByName[t.index].keyPath:r),i=v(n,r);e(n,{key:o,primaryKey:i})}return this._read(function(n,r,o){u(t,e,n,r,o)})},count:function(e){if(Et)return V.resolve(0).then(e);var t=this._ctx;if(J(t,!0))return this._read(function(e,n,r){var o=i(t,r),a=t.range?o.count(t.range):o.count();a.onerror=ge(n),a.onsuccess=function(n){e(Math.min(n.target.result,t.limit))}},e);var n=0;return this._read(function(e,r,o){u(t,function(){return++n,!1},function(){e(n)},r,o)},e)},sortBy:function(e,t){function n(e,t){return t?n(e[o[t]],t-1):e[i]}function r(e,t){var r=n(e,a),o=n(t,a);return ro?u:0}var o=e.split(".").reverse(),i=o[0],a=o.length-1,u="next"===this._ctx.dir?1:-1;return this.toArray(function(e){return e.sort(r)}).then(t)},toArray:function(e){var t=this._ctx;return this._read(function(e,n,r){if(Et&&e([s(t)]),Fe&&"next"===t.dir&&J(t,!0)&&t.limit>0){var o=t.table.hook.reading.fire,a=i(t,r),c=t.limit<1/0?a.getAll(t.range,t.limit):a.getAll(t.range);c.onerror=ge(n),c.onsuccess=o===k?me(e):se(me(function(t){try{e(t.map(o))}catch(e){n(e)}}))}else{var l=[];u(t,function(e){l.push(e)},function(){e(l)},n,r)}},e)},offset:function(e){var t=this._ctx;return e<=0?this:(t.offset+=e,J(t)?r(t,function(){var t=e;return function(e,n){return 0===t||(1===t?(--t,!1):(n(function(){e.advance(t),t=0}),!1))}}):r(t,function(){var t=e;return function(){return--t<0}}),this)},limit:function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),r(this._ctx,function(){var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}},!0),this},until:function(e,t){var r=this._ctx;return Et&&e(s(r)),n(this._ctx,function(n,r,o){return!e(n.value)||(r(o),t)}),this},first:function(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)},last:function(e){return this.reverse().first(e)},filter:function(e){return Et&&e(s(this._ctx)),n(this._ctx,function(t){return e(t.value)}),o(this._ctx,e),this},and:function(e){return this.filter(e)},or:function(e){return new X(this._ctx.table,e,this)},reverse:function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},desc:function(){return this.reverse()},eachKey:function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.key,n)})},eachUniqueKey:function(e){return this._ctx.unique="unique",this.eachKey(e)},eachPrimaryKey:function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.primaryKey,n)})},keys:function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)},primaryKeys:function(e){var t=this._ctx;if(Fe&&"next"===t.dir&&J(t,!0)&&t.limit>0)return this._read(function(e,n,r){var o=i(t,r),a=t.limit<1/0?o.getAllKeys(t.range,t.limit):o.getAllKeys(t.range);a.onerror=ge(n),a.onsuccess=me(e)}).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).then(e)},uniqueKeys:function(e){return this._ctx.unique="unique",this.keys(e)},firstKey:function(e){return this.limit(1).keys(function(e){return e[0]}).then(e)},lastKey:function(e){return this.reverse().firstKey(e)},distinct:function(){var e=this._ctx,r=e.index&&e.table.schema.idxByName[e.index];if(!r||!r.multi)return this;var o={};return n(this._ctx,function(e){var n=e.primaryKey.toString(),r=t(o,n);return o[n]=!0,!r}),this}}}),a(Z).from(Q).extend({modify:function(n){var r=this,o=this._ctx,i=o.table.hook,a=i.updating.fire,u=i.deleting.fire;return Et&&"function"==typeof n&&n.call({value:o.table.schema.instanceTemplate},o.table.schema.instanceTemplate),this._write(function(o,i,s,c){function l(e,n){function r(e){return P.push(e),O.push(o.primKey),p(),!0}T=n.primaryKey;var o={primKey:n.primaryKey,value:e,onsuccess:null,onerror:null};if(!1!==d.call(o,e,o)){var i=!t(o,"value");++x,m(function(){var e=i?n.delete():n.update(o.value);e._hookCtx=o,e.onerror=be(r),e.onsuccess=ve(function(){++C,p()})},r)}else o.onsuccess&&o.onsuccess(o.value)}function f(e){return e&&(P.push(e),O.push(T)),i(new B("Error modifying one or more objects",P,C,O))}function p(){k&&C+P.length===x&&(P.length>0?f():o(C))}var d;if("function"==typeof n)d=a===E&&u===E?n:function(e){var r=w(e);if(!1===n.call(this,e,this))return!1;if(t(this,"value")){var o=S(r,this.value),i=a.call(this,o,this.primKey,r,c);i&&(e=this.value,Pe(i).forEach(function(t){g(e,t,i[t])}))}else u.call(this,this.primKey,e,c)};else if(a===E){var h=Pe(n),y=h.length;d=function(e){for(var t=!1,r=0;r0?console.warn("Another connection wants to upgrade database '"+nt.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+nt.name+"'. Closing db now to resume the delete request."),nt.close()}),nt.on("blocked",function(e){!e.newVersion||e.newVersion8&&w<=11),C=32,E=String.fromCharCode(C),k={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},P=!1,O=null,T={eventTypes:k,extractEvents:function(e,t,n,r){return[s(e,t,n,r),f(e,t,n,r)]}};e.exports=T},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=n(6),i=n(18),a=n(88);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(e=0;e1?1-t:void 0;return this._fallbackText=o.slice(e,u),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(16),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(16),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=k.getPooled(N.change,e,t,n);return r.type="change",S.accumulateTwoPhaseDispatches(r),r}function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function i(e){var t=r(A,e,O(e));E.batchedUpdates(a,t)}function a(e){w.enqueueEvents(e),w.processEventQueue(!1)}function u(e,t){I=e,A=t,I.attachEvent("onchange",i)}function s(){I&&(I.detachEvent("onchange",i),I=null,A=null)}function c(e,t){var n=P.updateValueIfChanged(e),r=!0===t.simulated&&D._allowSimulatedPassThrough;if(n||r)return e}function l(e,t){if("topChange"===e)return t}function f(e,t,n){"topFocus"===e?(s(),u(t,n)):"topBlur"===e&&s()}function p(e,t){I=e,A=t,I.attachEvent("onpropertychange",h)}function d(){I&&(I.detachEvent("onpropertychange",h),I=null,A=null)}function h(e){"value"===e.propertyName&&c(A,e)&&i(e)}function y(e,t,n){"topFocus"===e?(d(),p(t,n)):"topBlur"===e&&d()}function m(e,t,n){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return c(A,n)}function v(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t,n){if("topClick"===e)return c(t,n)}function b(e,t,n){if("topInput"===e||"topChange"===e)return c(t,n)}function _(e,t){if(null!=e){var n=e._wrapperState||t._wrapperState;if(n&&n.controlled&&"number"===t.type){var r=""+t.value;t.getAttribute("value")!==r&&t.setAttribute("value",r)}}}var w=n(32),S=n(31),x=n(9),C=n(7),E=n(14),k=n(16),P=n(91),O=n(53),T=n(54),M=n(92),N={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},I=null,A=null,R=!1;x.canUseDOM&&(R=T("change")&&(!document.documentMode||document.documentMode>8));var j=!1;x.canUseDOM&&(j=T("input")&&(!("documentMode"in document)||document.documentMode>9));var D={eventTypes:N,_allowSimulatedPassThrough:!0,_isInputEventSupported:j,extractEvents:function(e,t,n,i){var a,u,s=t?C.getNodeFromInstance(t):window;if(o(s)?R?a=l:u=f:M(s)?j?a=b:(a=m,u=y):v(s)&&(a=g),a){var c=a(e,t,n);if(c){return r(c,n,i)}}u&&u(e,s,t),"topBlur"===e&&_(t,s)}};e.exports=D},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):a.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):a.removeComponentAsRefFrom(t,e,n)}var i="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},a=n(162),u={};u.attachRefs=function(e,t){if(null!==t&&"object"===(void 0===t?"undefined":i(t))){var n=t.ref;null!=n&&r(n,e,t._owner)}},u.shouldUpdateRefs=function(e,t){var n=null,r=null;null!==e&&"object"===(void 0===e?"undefined":i(e))&&(n=e.ref,r=e._owner);var o=null,a=null;return null!==t&&"object"===(void 0===t?"undefined":i(t))&&(o=t.ref,a=t._owner),n!==o||"string"==typeof o&&a!==r},u.detachRefs=function(e,t){if(null!==t&&"object"===(void 0===t?"undefined":i(t))){var n=t.ref;null!=n&&o(n,e,t._owner)}},e.exports=u},function(e,t,n){"use strict";function r(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)}var o=n(5),i=(n(1),{addComponentAsRefTo:function(e,t,n){r(n)||o("119"),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){r(n)||o("120");var i=n.getPublicInstance();i&&i.refs[t]===e.getPublicInstance()&&n.detachRef(t)}});e.exports=i},function(e,t,n){"use strict";var r=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=r},function(e,t,n){"use strict";var r=n(31),o=n(7),i=n(43),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},u={eventTypes:a,extractEvents:function(e,t,n,u){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var s;if(u.window===u)s=u;else{var c=u.ownerDocument;s=c?c.defaultView||c.parentWindow:window}var l,f;if("topMouseOut"===e){l=t;var p=n.relatedTarget||n.toElement;f=p?o.getClosestInstanceFromNode(p):null}else l=null,f=t;if(l===f)return null;var d=null==l?s:o.getNodeFromInstance(l),h=null==f?s:o.getNodeFromInstance(f),y=i.getPooled(a.mouseLeave,l,n,u);y.type="mouseleave",y.target=d,y.relatedTarget=h;var m=i.getPooled(a.mouseEnter,f,n,u);return m.type="mouseenter",m.target=h,m.relatedTarget=d,r.accumulateEnterLeaveDispatches(y,m,l,f),[y,m]}};e.exports=u},function(e,t,n){"use strict";var r=n(23),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,u=r.injection.HAS_POSITIVE_NUMERIC_VALUE,s=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:u,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:s,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:u,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:u,sizes:0,span:u,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}};e.exports=c},function(e,t,n){"use strict";var r=n(56),o=n(171),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";var r=n(5),o=n(25),i=n(9),a=n(168),u=n(11),s=(n(1),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(i.canUseDOM||r("56"),t||r("57"),"HTML"===e.nodeName&&r("58"),"string"==typeof t){var n=a(t,u)[0];e.parentNode.replaceChild(n,e)}else o.replaceChildWithTree(e,t)}});e.exports=s},function(e,t,n){"use strict";function r(e){var t=e.match(l);return t&&t[1].toLowerCase()}function o(e,t){var n=c;c||s(!1);var o=r(e),i=o&&u(o);if(i){n.innerHTML=i[1]+e+i[2];for(var l=i[0];l--;)n=n.lastChild}else n.innerHTML=e;var f=n.getElementsByTagName("script");f.length&&(t||s(!1),a(f).forEach(t));for(var p=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return p}var i=n(9),a=n(169),u=n(170),s=n(1),c=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.length;if((Array.isArray(e)||"object"!==(void 0===e?"undefined":a(e))&&"function"!=typeof e)&&u(!1),"number"!=typeof t&&u(!1),0===t||t-1 in e||u(!1),"function"==typeof e.callee&&u(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r":"<"+e+">",u[e]=!a.firstChild),u[e]?p[e]:null}var o=n(9),i=n(1),a=o.canUseDOM?document.createElement("div"):null,u={},s=[1,'"],c=[1,"","
"],l=[3,"","
"],f=[1,'',""],p={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:s,option:s,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){p[e]=f,u[e]=!0}),e.exports=r},function(e,t,n){"use strict";var r=n(56),o=n(7),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=o.getNodeFromInstance(e);r.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function r(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function o(e,t){t&&(X[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&v("137",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&v("60"),"object"===m(t.dangerouslySetInnerHTML)&&V in t.dangerouslySetInnerHTML||v("61")),null!=t.style&&"object"!==m(t.style)&&v("62",r(e)))}function i(e,t,n,r){if(!(r instanceof j)){var o=e._hostContainerInfo,i=o._node&&o._node.nodeType===z,u=i?o._node:o._ownerDocument;q(t,u),r.getReactMountReady().enqueue(a,{inst:e,registrationName:t,listener:n})}}function a(){var e=this;E.putListener(e.inst,e.registrationName,e.listener)}function u(){var e=this;M.postMountWrapper(e)}function s(){var e=this;A.postMountWrapper(e)}function c(){var e=this;N.postMountWrapper(e)}function l(){L.track(this)}function f(){var e=this;e._rootNodeID||v("63");var t=B(e);switch(t||v("64"),e._tag){case"iframe":case"object":e._wrapperState.listeners=[P.trapBubbledEvent("topLoad","load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in Y)Y.hasOwnProperty(n)&&e._wrapperState.listeners.push(P.trapBubbledEvent(n,Y[n],t));break;case"source":e._wrapperState.listeners=[P.trapBubbledEvent("topError","error",t)];break;case"img":e._wrapperState.listeners=[P.trapBubbledEvent("topError","error",t),P.trapBubbledEvent("topLoad","load",t)];break;case"form":e._wrapperState.listeners=[P.trapBubbledEvent("topReset","reset",t),P.trapBubbledEvent("topSubmit","submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[P.trapBubbledEvent("topInvalid","invalid",t)]}}function p(){I.postUpdateWrapper(this)}function d(e){Z.call(J,e)||(Q.test(e)||v("65",e),J[e]=!0)}function h(e,t){return e.indexOf("-")>=0||null!=t.is}function y(e){var t=e.type;d(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m="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},v=n(5),g=n(6),b=n(173),_=n(174),w=n(25),S=n(57),x=n(23),C=n(98),E=n(32),k=n(50),P=n(46),O=n(85),T=n(7),M=n(183),N=n(185),I=n(99),A=n(186),R=(n(13),n(187)),j=n(194),D=(n(11),n(45)),L=(n(1),n(54),n(61),n(91)),U=(n(65),n(4),O),F=E.deleteListener,B=T.getNodeFromInstance,q=P.listenTo,H=k.registrationNameModules,W={string:!0,number:!0},V="__html",K={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},z=11,Y={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},$={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},G={listing:!0,pre:!0,textarea:!0},X=g({menuitem:!0},$),Q=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,J={},Z={}.hasOwnProperty,ee=1;y.displayName="ReactDOMComponent",y.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=ee++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(f,this);break;case"input":M.mountWrapper(this,i,t),i=M.getHostProps(this,i),e.getReactMountReady().enqueue(l,this),e.getReactMountReady().enqueue(f,this);break;case"option":N.mountWrapper(this,i,t),i=N.getHostProps(this,i);break;case"select":I.mountWrapper(this,i,t),i=I.getHostProps(this,i),e.getReactMountReady().enqueue(f,this);break;case"textarea":A.mountWrapper(this,i,t),i=A.getHostProps(this,i),e.getReactMountReady().enqueue(l,this),e.getReactMountReady().enqueue(f,this)}o(this,i);var a,p;null!=t?(a=t._namespaceURI,p=t._tag):n._tag&&(a=n._namespaceURI,p=n._tag),(null==a||a===S.svg&&"foreignobject"===p)&&(a=S.html),a===S.html&&("svg"===this._tag?a=S.svg:"math"===this._tag&&(a=S.mathml)),this._namespaceURI=a;var d;if(e.useCreateElement){var h,y=n._ownerDocument;if(a===S.html)if("script"===this._tag){var m=y.createElement("div"),v=this._currentElement.type;m.innerHTML="<"+v+">",h=m.removeChild(m.firstChild)}else h=i.is?y.createElement(this._currentElement.type,i.is):y.createElement(this._currentElement.type);else h=y.createElementNS(a,this._currentElement.type);T.precacheNode(this,h),this._flags|=U.hasCachedChildNodes,this._hostParent||C.setAttributeForRoot(h),this._updateDOMProperties(null,i,e);var g=w(h);this._createInitialChildren(e,i,r,g),d=g}else{var _=this._createOpenTagMarkupAndPutListeners(e,i),x=this._createContentMarkup(e,i,r);d=!x&&$[this._tag]?_+"/>":_+">"+x+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(u,this),i.autoFocus&&e.getReactMountReady().enqueue(b.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(s,this),i.autoFocus&&e.getReactMountReady().enqueue(b.focusDOMComponent,this);break;case"select":case"button":i.autoFocus&&e.getReactMountReady().enqueue(b.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(c,this)}return d},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(H.hasOwnProperty(r))o&&i(this,r,o,e);else{"style"===r&&(o&&(o=this._previousStyleCopy=g({},t.style)),o=_.createMarkupForStyles(o,this));var a=null;null!=this._tag&&h(this._tag,t)?K.hasOwnProperty(r)||(a=C.createMarkupForCustomAttribute(r,o)):a=C.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+C.createMarkupForRoot()),n+=" "+C.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=W[m(t.children)]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=D(i);else if(null!=a){var u=this.mountChildren(a,e,n);r=u.join("")}}return G[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&w.queueHTML(r,o.__html);else{var i=W[m(t.children)]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&w.queueText(r,i);else if(null!=a)for(var u=this.mountChildren(a,e,n),s=0;s0;)e=e._hostParent,n--;for(;o-n>0;)t=t._hostParent,o--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function o(e,t){"_hostNode"in e||s("35"),"_hostNode"in t||s("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||s("36"),e._hostParent}function a(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var o;for(o=r.length;o-- >0;)t(r[o],"captured",n);for(o=0;o0;)n(s[c],"captured",i)}var s=n(5);n(1);e.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:u}},function(e,t,n){"use strict";var r=n(5),o=n(6),i=n(56),a=n(25),u=n(7),s=n(45),c=(n(1),n(65),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(c.prototype,{mountComponent:function(e,t,n,r){var o=n._idCounter++,i=" react-text: "+o+" ";if(this._domID=o,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,l=c.createComment(i),f=c.createComment(" /react-text "),p=a(c.createDocumentFragment());return a.queueChild(p,a(l)),this._stringText&&a.queueChild(p,a(c.createTextNode(this._stringText))),a.queueChild(p,a(f)),u.precacheNode(this,l),this._closingComment=f,p}var d=s(this._stringText);return e.renderToStaticMarkup?d:"\x3c!--"+i+"--\x3e"+d+"\x3c!-- /react-text --\x3e"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=u.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&r("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,u.uncacheNode(this)}}),e.exports=c},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(6),i=n(14),a=n(42),u=n(11),s={initialize:u,close:function(){p.isBatchingUpdates=!1}},c={initialize:u,close:i.flushBatchedUpdates.bind(i)},l=[c,s];o(r.prototype,a,{getTransactionWrappers:function(){return l}});var f=new r,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=p.isBatchingUpdates;return p.isBatchingUpdates=!0,a?e(t,n,r,o,i):f.perform(e,null,t,n,r,o,i)}};e.exports=p},function(e,t,n){"use strict";function r(e){for(;e._hostParent;)e=e._hostParent;var t=f.getNodeFromInstance(e),n=t.parentNode;return f.getClosestInstanceFromNode(n)}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=d(e.nativeEvent),n=f.getClosestInstanceFromNode(t),o=n;do{e.ancestors.push(o),o=o&&r(o)}while(o);for(var i=0;it.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function u(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i=void 0===t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var u=c(e,o),s=c(e,i);if(u&&s){var f=document.createRange();f.setStart(u.node,u.offset),n.removeAllRanges(),o>i?(n.addRange(f),n.extend(s.node,s.offset)):(f.setEnd(s.node,s.offset),n.addRange(f))}}}var s=n(9),c=n(205),l=n(88),f=s.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:f?o:i,setOffsets:f?a:u};e.exports=p},function(e,t,n){"use strict";function r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function i(e,t){for(var n=r(e),i=0,a=0;n;){if(3===n.nodeType){if(a=i+n.textContent.length,i<=t&&a>=t)return{node:n,offset:t-i};i=a}n=r(o(n))}}e.exports=i},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(207);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(208);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"===(void 0===e?"undefined":o(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}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};e.exports=r},function(e,t,n){"use strict";var r={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},o={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},i={Properties:{},DOMAttributeNamespaces:{xlinkActuate:r.xlink,xlinkArcrole:r.xlink,xlinkHref:r.xlink,xlinkRole:r.xlink,xlinkShow:r.xlink,xlinkTitle:r.xlink,xlinkType:r.xlink,xmlBase:r.xml,xmlLang:r.xml,xmlSpace:r.xml},DOMAttributeNames:{}};Object.keys(o).forEach(function(e){i.Properties[e]=0,o[e]&&(i.DOMAttributeNames[e]=o[e])}),e.exports=i},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&s.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e,t){if(g||null==y||y!==l())return null;var n=r(y);if(!v||!p(v,n)){v=n;var o=c.getPooled(h.select,m,e,t);return o.type="select",o.target=y,i.accumulateTwoPhaseDispatches(o),o}return null}var i=n(31),a=n(9),u=n(7),s=n(107),c=n(16),l=n(108),f=n(92),p=n(61),d=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,h={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},y=null,m=null,v=null,g=!1,b=!1,_={eventTypes:h,extractEvents:function(e,t,n,r){if(!b)return null;var i=t?u.getNodeFromInstance(t):window;switch(e){case"topFocus":(f(i)||"true"===i.contentEditable)&&(y=i,m=t,v=null);break;case"topBlur":y=null,m=null,v=null;break;case"topMouseDown":g=!0;break;case"topContextMenu":case"topMouseUp":return g=!1,o(n,r);case"topSelectionChange":if(d)break;case"topKeyDown":case"topKeyUp":return o(n,r)}return null},didPutListener:function(e,t,n){"onSelect"===t&&(b=!0)}};e.exports=_},function(e,t,n){"use strict";function r(e){return"."+e._rootNodeID}function o(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}var i=n(5),a=n(106),u=n(31),s=n(7),c=n(212),l=n(213),f=n(16),p=n(214),d=n(215),h=n(43),y=n(217),m=n(218),v=n(219),g=n(33),b=n(220),_=n(11),w=n(66),S=(n(1),{}),x={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t,r="top"+t,o={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};S[e]=o,x[r]=o});var C={},E={eventTypes:S,extractEvents:function(e,t,n,r){var o=x[e];if(!o)return null;var a;switch(e){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":a=f;break;case"topKeyPress":if(0===w(n))return null;case"topKeyDown":case"topKeyUp":a=d;break;case"topBlur":case"topFocus":a=p;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":a=h;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":a=y;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":a=m;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":a=c;break;case"topTransitionEnd":a=v;break;case"topScroll":a=g;break;case"topWheel":a=b;break;case"topCopy":case"topCut":case"topPaste":a=l}a||i("86",e);var s=a.getPooled(o,t,n,r);return u.accumulateTwoPhaseDispatches(s),s},didPutListener:function(e,t,n){if("onClick"===t&&!o(e._tag)){var i=r(e),u=s.getNodeFromInstance(e);C[i]||(C[i]=a.listen(u,"click",_))}},willDeleteListener:function(e,t){if("onClick"===t&&!o(e._tag)){var n=r(e);C[n].remove(),delete C[n]}}};e.exports=E},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(16),i={animationName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(16),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(33),i={relatedTarget:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(33),i=n(66),a=n(216),u=n(55),s={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:u,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=n(66),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(43),i={dataTransfer:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(33),i=n(55),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(16),i={propertyName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(43),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===o?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return n}var o=(n(65),9);e.exports=r},function(e,t,n){"use strict";var r={useCreateElement:!0,useFiber:!1};e.exports=r},function(e,t,n){"use strict";var r=n(224),o=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return i.test(e)?e:e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(e)===n}};e.exports=a},function(e,t,n){"use strict";function r(e){for(var t=1,n=0,r=0,i=e.length,a=-4&i;r0&&void 0!==arguments[0]?arguments[0]:{};(0,l.default)(y.canUseDOM,"Browser history needs a DOM");var t=window.history,n=(0,y.supportsHistory)(),r=!(0,y.supportsPopStateOnHashChange)(),o=e.forceRefresh,u=void 0!==o&&o,c=e.getUserConfirmation,d=void 0===c?y.getConfirmation:c,v=e.keyLength,g=void 0===v?6:v,b=e.basename?(0,p.stripTrailingSlash)((0,p.addLeadingSlash)(e.basename)):"",_=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname,a=o.search,u=o.hash,c=i+a+u;return(0,s.default)(!b||(0,p.hasBasename)(c,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+c+'" to begin with "'+b+'".'),b&&(c=(0,p.stripBasename)(c,b)),(0,f.createLocation)(c,r,n)},w=function(){return Math.random().toString(36).substr(2,g)},S=(0,h.default)(),x=function(e){a(H,e),H.length=t.length,S.notifyListeners(H.location,H.action)},C=function(e){(0,y.isExtraneousPopstateEvent)(e)||P(_(e.state))},E=function(){P(_(m()))},k=!1,P=function(e){if(k)k=!1,x();else{S.confirmTransitionTo(e,"POP",d,function(t){t?x({action:"POP",location:e}):O(e)})}},O=function(e){var t=H.location,n=M.indexOf(t.key);-1===n&&(n=0);var r=M.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(k=!0,R(o))},T=_(m()),M=[T.key],N=function(e){return b+(0,p.createPath)(e)},I=function(e,r){(0,s.default)(!("object"===(void 0===e?"undefined":i(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 o=(0,f.createLocation)(e,r,w(),H.location);S.confirmTransitionTo(o,"PUSH",d,function(e){if(e){var r=N(o),i=o.key,a=o.state;if(n)if(t.pushState({key:i,state:a},null,r),u)window.location.href=r;else{var c=M.indexOf(H.location.key),l=M.slice(0,-1===c?0:c+1);l.push(o.key),M=l,x({action:"PUSH",location:o})}else(0,s.default)(void 0===a,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},A=function(e,r){(0,s.default)(!("object"===(void 0===e?"undefined":i(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 o=(0,f.createLocation)(e,r,w(),H.location);S.confirmTransitionTo(o,"REPLACE",d,function(e){if(e){var r=N(o),i=o.key,a=o.state;if(n)if(t.replaceState({key:i,state:a},null,r),u)window.location.replace(r);else{var c=M.indexOf(H.location.key);-1!==c&&(M[c]=o.key),x({action:"REPLACE",location:o})}else(0,s.default)(void 0===a,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},R=function(e){t.go(e)},j=function(){return R(-1)},D=function(){return R(1)},L=0,U=function(e){L+=e,1===L?((0,y.addEventListener)(window,"popstate",C),r&&(0,y.addEventListener)(window,"hashchange",E)):0===L&&((0,y.removeEventListener)(window,"popstate",C),r&&(0,y.removeEventListener)(window,"hashchange",E))},F=!1,B=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=S.setPrompt(e);return F||(U(1),F=!0),function(){return F&&(F=!1,U(-1)),t()}},q=function(e){var t=S.appendListener(e);return U(1),function(){U(-1),t()}},H={length:t.length,action:"POP",location:T,createHref:N,push:I,replace:A,go:R,goBack:j,goForward:D,block:B,listen:q};return H};t.default=v},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;r1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&r(e),u=t&&r(t),s=a||u;if(e&&r(e)?i=n:n.length&&(i.pop(),i=i.concat(n)),!i.length)return"/";var c=void 0;if(i.length){var l=i[i.length-1];c="."===l||".."===l||""===l}else c=!1;for(var f=0,p=i.length;p>=0;p--){var d=i[p];"."===d?o(i,p):".."===d?(o(i,p),f++):f&&(o(i,p),f--)}if(!s)for(;f--;f)i.unshift("..");!s||""===i[0]||i[0]&&r(i[0])||i.unshift("");var h=i.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h};e.exports=i},function(e,t,n){"use strict";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};t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)},i=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 r=void 0===t?"undefined":o(t);if(r!==(void 0===n?"undefined":o(n)))return!1;if("object"===r){var i=t.valueOf(),a=n.valueOf();if(i!==t||a!==n)return e(i,a);var u=Object.keys(t),s=Object.keys(n);return u.length===s.length&&u.every(function(r){return e(t[r],n[r])})}return!1};t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u="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},s=n(0),c=r(s),l=n(2),f=(r(l),n(234)),p=r(f),d=n(69),h=r(d),y=function(e){function t(){var n,r,a;o(this,t);for(var u=arguments.length,s=Array(u),c=0;c0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,o=e.initialIndex,u=void 0===o?0:o,f=e.keyLength,h=void 0===f?6:f,y=(0,p.default)(),m=function(e){a(T,e),T.length=T.entries.length,y.notifyListeners(T.location,T.action)},v=function(){return Math.random().toString(36).substr(2,h)},g=d(u,0,r.length-1),b=r.map(function(e){return"string"==typeof e?(0,l.createLocation)(e,void 0,v()):(0,l.createLocation)(e,void 0,e.key||v())}),_=c.createPath,w=function(e,n){(0,s.default)(!("object"===(void 0===e?"undefined":i(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,l.createLocation)(e,n,v(),T.location);y.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=T.index,n=t+1,o=T.entries.slice(0);o.length>n?o.splice(n,o.length-n,r):o.push(r),m({action:"PUSH",location:r,index:n,entries:o})}})},S=function(e,n){(0,s.default)(!("object"===(void 0===e?"undefined":i(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,l.createLocation)(e,n,v(),T.location);y.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(T.entries[T.index]=r,m({action:"REPLACE",location:r}))})},x=function(e){var n=d(T.index+e,0,T.entries.length-1),r=T.entries[n];y.confirmTransitionTo(r,"POP",t,function(e){e?m({action:"POP",location:r,index:n}):m()})},C=function(){return x(-1)},E=function(){return x(1)},k=function(e){var t=T.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return y.setPrompt(e)},O=function(e){return y.appendListener(e)},T={length:b.length,action:"POP",location:b[g],index:g,entries:b,createHref:_,push:w,replace:S,go:x,goBack:C,goForward:E,canGo:k,block:P,listen:O};return T};t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u="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},s=n(0),c=r(s),l=n(2),f=r(l),p=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(c.default.Component);p.propTypes={when:f.default.bool,message:f.default.oneOfType([f.default.func,f.default.string]).isRequired},p.defaultProps={when:!0},p.contextTypes={router:f.default.shape({history:f.default.shape({block:f.default.func.isRequired}).isRequired}).isRequired},t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":u(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u="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},s=n(0),c=r(s),l=n(2),f=r(l),p=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.perform=function(){var e=this.context.router.history,t=this.props,n=t.push,r=t.to;n?e.push(r):e.replace(r)},t.prototype.render=function(){return null},t}(c.default.Component);p.propTypes={push:f.default.bool,from:f.default.string,to:f.default.oneOfType([f.default.string,f.default.object])},p.defaultProps={push:!1},p.contextTypes={router:f.default.shape({history:f.default.shape({push:f.default.func.isRequired,replace:f.default.func.isRequired}).isRequired,staticContext:f.default.object}).isRequired},t.default=p},function(e,t,n){"use strict";function r(e,t){for(var n,r=[],o=0,i=0,a="",u=t&&t.delimiter||"/";null!=(n=b.exec(e));){var l=n[0],f=n[1],p=n.index;if(a+=e.slice(i,p),i=p+l.length,f)a+=f[1];else{var d=e[i],h=n[2],y=n[3],m=n[4],v=n[5],g=n[6],_=n[7];a&&(r.push(a),a="");var w=null!=h&&null!=d&&d!==h,S="+"===g||"*"===g,x="?"===g||"*"===g,C=n[2]||u,E=m||v;r.push({name:y||o++,prefix:h||"",delimiter:C,optional:x,repeat:S,partial:w,asterisk:!!_,pattern:E?c(E):_?".*":"[^"+s(C)+"]+?"})}}return i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":s(t))&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s="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},c=n(35),l=r(c),f=n(0),p=r(f),d=n(2),h=r(d),y=n(36),m=n(69),v=r(m),g=Object.assign||function(e){for(var t=1;t",e)}},E=function(){},k=function(e){function t(){var n,r,o;i(this,t);for(var u=arguments.length,s=Array(u),c=0;c elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,d.default)(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,o=void 0;return c.default.Children.forEach(t,function(t){if(c.default.isValidElement(t)){var i=t.props,a=i.path,u=i.exact,s=i.strict,l=i.from,f=a||l;null==r&&(o=t,r=f?(0,y.default)(n.pathname,{path:f,exact:u,strict:s}):e.match)}}),r?c.default.cloneElement(o,{location:n,computedMatch:r}):null},t}(c.default.Component);m.contextTypes={router:f.default.shape({route:f.default.object.isRequired}).isRequired},t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=r(i),u=n(2),s=(r(u),n(242)),c=r(s),l=n(112),f=r(l),p=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(d.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,d.supportsGoWithoutReloadUsingHash)(),r=e.getUserConfirmation,i=void 0===r?d.getConfirmation:r,u=e.hashType,f=void 0===u?"slash":u,g=e.basename?(0,l.stripTrailingSlash)((0,l.addLeadingSlash)(e.basename)):"",b=h[f],_=b.encodePath,w=b.decodePath,S=function(){var e=w(y());return(0,a.default)(!g||(0,l.hasBasename)(e,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+g+'".'),g&&(e=(0,l.stripBasename)(e,g)),(0,c.createLocation)(e)},x=(0,p.default)(),C=function(e){o(K,e),K.length=t.length,x.notifyListeners(K.location,K.action)},E=!1,k=null,P=function(){var e=y(),t=_(e);if(e!==t)v(t);else{var n=S(),r=K.location;if(!E&&(0,c.locationsAreEqual)(r,n))return;if(k===(0,l.createPath)(n))return;k=null,O(n)}},O=function(e){if(E)E=!1,C();else{x.confirmTransitionTo(e,"POP",i,function(t){t?C({action:"POP",location:e}):T(e)})}},T=function(e){var t=K.location,n=A.lastIndexOf((0,l.createPath)(t));-1===n&&(n=0);var r=A.lastIndexOf((0,l.createPath)(e));-1===r&&(r=0);var o=n-r;o&&(E=!0,L(o))},M=y(),N=_(M);M!==N&&v(N);var I=S(),A=[(0,l.createPath)(I)],R=function(e){return"#"+_(g+(0,l.createPath)(e))},j=function(e,t){(0,a.default)(void 0===t,"Hash history cannot push state; it is ignored");var n=(0,c.createLocation)(e,void 0,void 0,K.location);x.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=(0,l.createPath)(n),r=_(g+t);if(y()!==r){k=t,m(r);var o=A.lastIndexOf((0,l.createPath)(K.location)),i=A.slice(0,-1===o?0:o+1);i.push(t),A=i,C({action:"PUSH",location:n})}else(0,a.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),C()}})},D=function(e,t){(0,a.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n=(0,c.createLocation)(e,void 0,void 0,K.location);x.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=(0,l.createPath)(n),r=_(g+t);y()!==r&&(k=t,v(r));var o=A.indexOf((0,l.createPath)(K.location));-1!==o&&(A[o]=t),C({action:"REPLACE",location:n})}})},L=function(e){(0,a.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},U=function(){return L(-1)},F=function(){return L(1)},B=0,q=function(e){B+=e,1===B?(0,d.addEventListener)(window,"hashchange",P):0===B&&(0,d.removeEventListener)(window,"hashchange",P)},H=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=x.setPrompt(e);return H||(q(1),H=!0),function(){return H&&(H=!1,q(-1)),t()}},V=function(e){var t=x.appendListener(e);return q(1),function(){q(-1),t()}},K={length:t.length,action:"POP",location:I,createHref:R,push:j,replace:D,go:L,goBack:U,goForward:F,block:W,listen:V};return K};t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.MemoryRouter}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(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}Object.defineProperty(t,"__esModule",{value:!0});var i="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},a=n(0),u=r(a),s=n(2),c=(r(s),n(12)),l=n(113),f=r(l),p=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(s)throw s;for(var r=!1,i={},a=0;a0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1],r=n||t+"Subscription",u=function(e){function n(r,a){o(this,n);var u=i(this,e.call(this,r,a));return u[t]=r.store,u}return a(n,e),n.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[r]=null,e},n.prototype.render=function(){return c.Children.only(this.props.children)},n}(c.Component);return u.propTypes={store:p.storeShape.isRequired,children:f.default.element.isRequired},u.childContextTypes=(e={},e[t]=p.storeShape.isRequired,e[r]=p.subscriptionShape,e),u}Object.defineProperty(t,"__esModule",{value:!0});var s="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};t.createProvider=u;var c=n(0),l=n(2),f=r(l),p=n(119),d=n(72);r(d);t.default=u()},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.getOwnPropertySymbols,a=(Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable),u=Object.getPrototypeOf,s=u&&u(Object),c=Object.getOwnPropertyNames;e.exports=function e(t,n,l){if("string"!=typeof n){if(s){var f=u(n);f&&f!==s&&e(t,f,l)}var p=c(n);i&&(p=p.concat(i(n)));for(var d=0;d=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+(void 0===e?"undefined":s(e))+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function a(e,t){return e===t}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?l.default:t,r=e.mapStateToPropsFactories,u=void 0===r?m.default:r,s=e.mapDispatchToPropsFactories,c=void 0===s?h.default:s,f=e.mergePropsFactories,d=void 0===f?g.default:f,y=e.selectorFactory,v=void 0===y?_.default:y;return function(e,t,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=s.pure,f=void 0===l||l,h=s.areStatesEqual,y=void 0===h?a:h,m=s.areOwnPropsEqual,g=void 0===m?p.default:m,b=s.areStatePropsEqual,_=void 0===b?p.default:b,S=s.areMergedPropsEqual,x=void 0===S?p.default:S,C=o(s,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),E=i(e,u,"mapStateToProps"),k=i(t,c,"mapDispatchToProps"),P=i(r,d,"mergeProps");return n(v,w({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:k,initMergeProps:P,pure:f,areStatesEqual:y,areOwnPropsEqual:g,areStatePropsEqual:_,areMergedPropsEqual:x},C))}}Object.defineProperty(t,"__esModule",{value:!0});var s="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};t.createConnect=u;var c=n(120),l=r(c),f=n(273),p=r(f),d=n(274),h=r(d),y=n(275),m=r(y),v=n(276),g=r(v),b=n(277),_=r(b),w=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function i(e,t,n,r,o){function i(o,i){return h=o,y=i,m=e(h,y),v=t(r,y),g=n(m,v,y),d=!0,g}function a(){return m=e(h,y),t.dependsOnOwnProps&&(v=t(r,y)),g=n(m,v,y)}function u(){return e.dependsOnOwnProps&&(m=e(h,y)),t.dependsOnOwnProps&&(v=t(r,y)),g=n(m,v,y)}function s(){var t=e(h,y),r=!p(t,m);return m=t,r&&(g=n(m,v,y)),g}function c(e,t){var n=!f(t,y),r=!l(e,h);return h=e,y=t,n&&r?a():n?u():r?s():g}var l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,d=!1,h=void 0,y=void 0,m=void 0,v=void 0,g=void 0;return function(e,t){return d?c(e,t):i(e,t)}}function a(e,t){var n=t.initMapStateToProps,a=t.initMapDispatchToProps,u=t.initMergeProps,s=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),c=n(e,s),l=a(e,s),f=u(e,s);return(s.pure?i:o)(c,l,f,e,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.impureFinalPropsSelectorFactory=o,t.pureFinalPropsSelectorFactory=i,t.default=a;var u=n(278);!function(e){e&&e.__esModule}(u)},function(e,t,n){"use strict";function r(e,t,n){if(!e)throw new Error("Unexpected value for "+t+" in "+n+".");"mapStateToProps"!==t&&"mapDispatchToProps"!==t||e.hasOwnProperty("dependsOnOwnProps")||(0,a.default)("The selector for "+t+" of "+n+" did not specify a value for dependsOnOwnProps.")}function o(e,t,n,o){r(e,"mapStateToProps",o),r(t,"mapDispatchToProps",o),r(n,"mergeProps",o)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(72),a=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function r(e,t){this._id=e,this._clearFn=t}var o=Function.prototype.apply;t.setTimeout=function(){return new r(o.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(280);var i=n(281);t.setImmediate=i.setImmediate,t.clearImmediate=i.clearImmediate},function(e,t,n){"use strict";(function(e,t){!function(e,n){function r(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.speedy,o=void 0===n?!c&&!l:n,i=t.maxLength,a=void 0===i?s&&f?4e3:65e3:i;r(this,e),this.isSpeedy=o,this.sheet=void 0,this.tags=[],this.maxLength=a,this.ctr=0}return e.prototype.getSheet=function(){return i(o(this.tags))},e.prototype.inject=function(){var e=this;if(this.injected)throw new Error("already injected!");s?this.tags[0]=a():this.sheet={cssRules:[],insertRule:function(t){e.sheet.cssRules.push({cssText:t})}},this.injected=!0},e.prototype.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},e.prototype._insert=function(e){try{var t=this.getSheet();t.insertRule(e,-1!==e.indexOf("@import")?0:t.cssRules.length)}catch(t){c&&console.warn("illegal rule",e)}},e.prototype.insert=function(e){if(s)if(this.isSpeedy&&this.getSheet().insertRule)this._insert(e);else if(-1!==e.indexOf("@import")){var t=o(this.tags);t.insertBefore(document.createTextNode(e),t.firstChild)}else o(this.tags).appendChild(document.createTextNode(e));else this.sheet.insertRule(e,-1!==e.indexOf("@import")?0:this.sheet.cssRules.length);return this.ctr++,s&&this.ctr%this.maxLength==0&&this.tags.push(a()),this.ctr-1},e.prototype.delete=function(e){return this.replace(e,"")},e.prototype.flush=function(){s?((0,u.forEach)(this.tags,function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.sheet=null,this.ctr=0):this.sheet.cssRules=[],this.injected=!1},e.prototype.rules=function(){if(!s)return this.sheet.cssRules;var e=[];return(0,u.forEach)(this.tags,function(t){return e.splice.apply(e,[e.length,0].concat(Array.from(i(t).cssRules)))}),e},e}()},function(e,t,n){"use strict";function r(e){return i(e.join(","))}function o(){for(var e="",t=arguments.length,n=Array(t),r=0;r=4;){var a=u(e,i);a=c(a,n),a^=a>>>24,a=c(a,n),r=c(r,n),r^=a,i+=4,o-=4}switch(o){case 3:r^=s(e,i),r^=e.charCodeAt(i+2)<<16,r=c(r,n);break;case 2:r^=s(e,i),r=c(r,n);break;case 1:r^=e.charCodeAt(i),r=c(r,n)}return r^=r>>>13,r=c(r,n),(r^=r>>>15)>>>0}function u(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function s(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function c(e,t){return e|=0,t|=0,(65535&e)*t+(((e>>>16)*t&65535)<<16)|0}t.__esModule=!0,t.hashArray=r,t.hashObject=o,t.hashString=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t="";for(var n in e){var r=0===n.indexOf("--");if(e.hasOwnProperty(n)){var o=e[n];null!=o&&(r?t+=n+":"+o+";":(t+=l(n)+":",t+=(0,a.default)(n,o)+";"))}}return t||null}t.__esModule=!0,t.processStyleName=void 0,t.createMarkupForStyles=o;var i=n(285),a=r(i),u=n(97),s=r(u),c=/[A-Z]|^ms/g,l=t.processStyleName=(0,s.default)(function(e){return e.replace(c,"-$&").toLowerCase()})},function(e,t,n){"use strict";function r(e,t){return null==t||"boolean"==typeof t||""===t?"":isNaN(t)||0===t||1===i.default[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}t.__esModule=!0;var o=n(286),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}t.__esModule=!0;var o=n(37),i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineClamp:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=["Webkit","ms","Moz","O"];(0,o.forEach)((0,o.keys)(i),function(e){(0,o.forEach)(a,function(t){i[r(t,e)]=1})}),t.default=i},function(e,t,n){"use strict";function r(e){return null===e||void 0===e||!1===e||"object"===(void 0===e?"undefined":s(e))&&0===(0,c.keys)(e).length}function o(e){if(r(e))return null;if("object"!==(void 0===e?"undefined":s(e)))return e;var t={},n=!1;return(0,c.forEach)((0,c.keys)(e),function(e){var r=a(e);null!==r&&r===e||(n=!0),null!==r&&(t[e]=r)}),0===(0,c.keys)(t).length?null:n?t:e}function i(e){var t=!1,n=[];return(0,c.forEach)(e,function(e){var r=a(e);null!==r&&r===e||(t=!0),null!==r&&n.push(r)}),0===n.length?null:t?n:e}function a(e){return"string"==typeof e?e.trim():Array.isArray(e)?i(e):o(e)}var u="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};t.__esModule=!0;var s="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":u(e)};t.default=a;var c=n(37)},function(e,t,n){"use strict";t.__esModule=!0,t.objStyle=t.hydrate=t.keyframes=t.fontFace=t.injectGlobal=t.css=t.flush=void 0;var r=n(27);Object.defineProperty(t,"flush",{enumerable:!0,get:function(){return r.flush}}),Object.defineProperty(t,"css",{enumerable:!0,get:function(){return r.css}}),Object.defineProperty(t,"injectGlobal",{enumerable:!0,get:function(){return r.injectGlobal}}),Object.defineProperty(t,"fontFace",{enumerable:!0,get:function(){return r.fontFace}}),Object.defineProperty(t,"keyframes",{enumerable:!0,get:function(){return r.keyframes}}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return r.hydrate}}),Object.defineProperty(t,"objStyle",{enumerable:!0,get:function(){return r.objStyle}}),t.default=function(e,t,n){function u(e,t){var n=function(n){return n&&"function"==typeof n?void 0!==n.__emotion_class?"& ."+n.__emotion_class:n(e,t):n},u=[];a(u,(0,i.reduce)(h,function(e,t){return a(e,t.objs),t.content&&e.push(t.content.apply(null,(0,i.map)(t.vars,n))),e.push(t.cls),e},[])),e.className&&a(u,e.className.split(" "));var s=(0,r.css)((0,i.map)(u,n));return(0,o.createElement)(y,(0,i.omit)((0,i.assign)({},e,{ref:e.innerRef,className:s}),m))}var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],f=arguments[4];if(!e)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var p=e.displayName||e.name||"Component",d={vars:l,content:f,objs:n,tag:e,cls:t},h=void 0!==e.__emotion_spec?e.__emotion_spec.concat(d):[d],y=h[0].tag,m="string"==typeof y?s:c;return u.displayName="styled("+p+")",u.__emotion_spec=h,u.__emotion_class=t,u};var o=n(0),i=n(37),a=function(e,t){return Array.prototype.push.apply(e,t)},u=new RegExp("^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|accept|acceptCharset|accessKey|action|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable)|(on[A-Z].*)|((data|aria)-.*))$"),s=function(e){return u.test(e)},c=function(e){return"theme"!==e&&"innerRef"!==e}},function(e,t,n){"use strict";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};!function(e){function t(){return"Markdown.mk_block( "+uneval(this.toString())+", "+uneval(this.trailing)+", "+uneval(this.lineNumber)+" )"}function o(){var e=n(290);return"Markdown.mk_block( "+e.inspect(this.toString())+", "+e.inspect(this.trailing)+", "+e.inspect(this.lineNumber)+" )"}function i(e){for(var t=0,n=-1;-1!==(n=e.indexOf("\n",n+1));)t++;return t}function u(e,t){function n(e){this.len_after=e,this.name="close_"+t}var r=e+"_state",o="strong"==e?"em_state":"strong_state";return function(i,a){if(this[r][0]==t)return this[r].shift(),[i.length,new n(i.length-t.length)];var u=this[o].slice(),s=this[r].slice();this[r].unshift(t);var c=this.processInline(i.substr(t.length)),l=c[c.length-1];this[r].shift();if(l instanceof n){c.pop();return[i.length-l.len_after,[e].concat(c)]}return this[o]=u,this[r]=s,[t.length,t]}}function s(e){for(var t=e.split(""),n=[""],r=!1;t.length;){var o=t.shift();switch(o){case" ":r?n[n.length-1]+=o:n.push("");break;case"'":case'"':r=!r;break;case"\\":o=t.shift();default:n[n.length-1]+=o}}return n}function c(e){return g(e)&&e.length>1&&"object"===r(e[1])&&!g(e[1])?e[1]:void 0}function l(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function f(e){if("string"==typeof e)return l(e);var t=e.shift(),n={},o=[];for(!e.length||"object"!==r(e[0])||e[0]instanceof Array||(n=e.shift());e.length;)o.push(f(e.shift()));var i="";for(var a in n)i+=" "+a+'="'+l(n[a])+'"';return"img"==t||"br"==t||"hr"==t?"<"+t+i+"/>":"<"+t+i+">"+o.join("")+""}function d(e,t,n){var r;n=n||{};var o=e.slice(0);"function"==typeof n.preprocessTreeNode&&(o=n.preprocessTreeNode(o,t));var i=c(o);if(i){o[1]={};for(r in i)o[1][r]=i[r];i=o[1]}if("string"==typeof o)return o;switch(o[0]){case"header":o[0]="h"+o[1].level,delete o[1].level;break;case"bulletlist":o[0]="ul";break;case"numberlist":o[0]="ol";break;case"listitem":o[0]="li";break;case"para":o[0]="p";break;case"markdown":o[0]="html",i&&delete i.references;break;case"code_block":o[0]="pre",r=i?2:1;var a=["code"];a.push.apply(a,o.splice(r,o.length-r)),o[r]=a;break;case"inlinecode":o[0]="code";break;case"img":o[1].src=o[1].href,delete o[1].href;break;case"linebreak":o[0]="br";break;case"link":o[0]="a";break;case"link_ref":o[0]="a";var u=t[i.ref];if(!u)return i.original;delete i.ref,i.href=u.href,u.title&&(i.title=u.title),delete i.original;break;case"img_ref":o[0]="img";var u=t[i.ref];if(!u)return i.original;delete i.ref,i.src=u.href,u.title&&(i.title=u.title),delete i.original}if(r=1,i){for(var s in o[1]){r=2;break}1===r&&o.splice(r,1)}for(;r0&&!g(i[0]))&&this.debug(r[o],"didn't return a proper array"),i}return[]},y.prototype.processInline=function(e){return this.dialect.inline.__call__.call(this,String(e))},y.prototype.toTree=function(e,t){var n=e instanceof Array?e:this.split_blocks(e),r=this.tree;try{for(this.tree=t||this.tree||["markdown"];n.length;){var o=this.processBlock(n.shift(),n);o.length&&this.tree.push.apply(this.tree,o)}return this.tree}finally{t&&(this.tree=r)}},y.prototype.debug=function(){var e=Array.prototype.slice.call(arguments);e.unshift(this.debug_indent),"undefined"!=typeof print&&print.apply(print,e),"undefined"!=typeof console&&void 0!==console.log&&console.log.apply(null,e)},y.prototype.loop_re_over_block=function(e,t,n){for(var r,o=t.valueOf();o.length&&null!=(r=e.exec(o));)o=o.substr(r[0].length),n.call(this,r);return o},y.dialects={},y.dialects.Gruber={block:{atxHeader:function(e,t){var n=e.match(/^(#{1,6})\s*(.*?)\s*#*\s*(?:\n|$)/);if(n){var r=["header",{level:n[1].length}];return Array.prototype.push.apply(r,this.processInline(n[2])),n[0].length1&&n.unshift(r);for(var i=0;i1&&"string"==typeof o[o.length-1]?o[o.length-1]+=a:o.push(a)}}function r(e,t){for(var n=new RegExp("^("+s+"{"+e+"}.*?\\n?)*$"),r=new RegExp("^"+s+"{"+e+"}","gm"),o=[];t.length>0&&n.exec(t[0]);){var i=t.shift(),a=i.replace(r,"");o.push(m(a,i.trailing,i.lineNumber))}return o}function o(e,t,n){var r=e.list,o=r[r.length-1];if(!(o[1]instanceof Array&&"para"==o[1][0]))if(t+1==n.length)o.push(["para"].concat(o.splice(1,o.length-1)));else{var i=o.pop();o.push(["para"].concat(o.splice(1,o.length-1)),i)}}var i="[*+-]|\\d+\\.",a=/[*+-]/,u=new RegExp("^( {0,3})("+i+")[ \t]+"),s="(?: {0,3}\\t| {4})";return function(i,s){function c(e){var t=a.exec(e[2])?["bulletlist"]:["numberlist"];return d.push({list:t,indent:e[1]}),t}var l=i.match(u);if(l){for(var f,p,d=[],h=c(l),y=!1,m=[d[0].list];;){for(var g=i.split(/(?=\n)/),b="",_=0;_d.length)h=c(l),f.push(h),f=h[1]=["listitem"];else{var E=!1;for(p=0;pl[0].length&&(b+=w+S.substr(l[0].length))}b.length&&(n(f,y,this.processInline(b),w),y=!1,b="");var k=r(d.length,s);k.length>0&&(v(d,o,this),f.push.apply(f,this.toTree(k,[])));var P=s[0]&&s[0].valueOf()||"";if(!P.match(u)&&!P.match(/^ /))break;i=s.shift();var O=this.dialect.block.horizRule(i,s);if(O){m.push.apply(m,O);break}v(d,o,this),y=!0}return m}}}(),blockquote:function(e,t){if(e.match(/^>/m)){var n=[];if(">"!=e[0]){for(var r=e.split(/\n/),o=[],i=e.lineNumber;r.length&&">"!=r[0][0];)o.push(r.shift()),i++;var a=m(o.join("\n"),"\n",e.lineNumber);n.push.apply(n,this.processBlock(a,[])),e=m(r.join("\n"),e.trailing,i)}for(;t.length&&">"==t[0][0];){var u=t.shift();e=m(e+e.trailing+u,u.trailing,e.lineNumber)}var s=e.replace(/^> ?/gm,""),l=(this.tree,this.toTree(s,["blockquote"])),f=c(l);return f&&f.references&&(delete f.references,b(f)&&l.splice(1,1)),n.push(l),n}},referenceDefn:function(e,t){var n=/^\s*\[(.*?)\]:\s*(\S+)(?:\s+(?:(['"])(.*?)\3|\((.*?)\)))?\n?/;if(e.match(n)){c(this.tree)||this.tree.splice(1,0,{});var r=c(this.tree);void 0===r.references&&(r.references={});var o=this.loop_re_over_block(n,e,function(e){e[2]&&"<"==e[2][0]&&">"==e[2][e[2].length-1]&&(e[2]=e[2].substring(1,e[2].length-1));var t=r.references[e[1].toLowerCase()]={href:e[2]};void 0!==e[4]?t.title=e[4]:void 0!==e[5]&&(t.title=e[5])});return o.length&&t.unshift(m(o,e.trailing)),[]}},para:function(e,t){return[["para"].concat(this.processInline(e))]}}},y.dialects.Gruber.inline={__oneElement__:function(e,t,n){var r,o;if(t=t||this.dialect.inline.__patterns__,!(r=new RegExp("([\\s\\S]*?)("+(t.source||t)+")").exec(e)))return[e.length,e];if(r[1])return[r[1].length,r[1]];var o;return r[2]in this.dialect.inline&&(o=this.dialect.inline[r[2]].call(this,e.substr(r.index),r,n||[])),o=o||[r[2].length,r[2]]},__call__:function(e,t){function n(e){"string"==typeof e&&"string"==typeof o[o.length-1]?o[o.length-1]+=e:o.push(e)}for(var r,o=[];e.length>0;)r=this.dialect.inline.__oneElement__.call(this,e,t,o),e=e.substr(r.shift()),v(r,n);return o},"]":function(){},"}":function(){},__escape__:/^\\[\\`\*_{}\[\]()#\+.!\-]/,"\\":function(e){return this.dialect.inline.__escape__.exec(e)?[2,e.charAt(1)]:[1,"\\"]},"![":function(e){var t=e.match(/^!\[(.*?)\][ \t]*\([ \t]*([^")]*?)(?:[ \t]+(["'])(.*?)\3)?[ \t]*\)/);if(t){t[2]&&"<"==t[2][0]&&">"==t[2][t[2].length-1]&&(t[2]=t[2].substring(1,t[2].length-1)),t[2]=this.dialect.inline.__call__.call(this,t[2],/\\/)[0];var n={alt:t[1],href:t[2]||""};return void 0!==t[4]&&(n.title=t[4]),[t[0].length,["img",n]]}return t=e.match(/^!\[(.*?)\][ \t]*\[(.*?)\]/),t?[t[0].length,["img_ref",{alt:t[1],ref:t[2].toLowerCase(),original:t[0]}]]:[2,"!["]},"[":function(e){var t=String(e),n=y.DialectHelpers.inline_until_char.call(this,e.substr(1),"]");if(!n)return[1,"["];var r,o,i=1+n[0],a=n[1];e=e.substr(i);var u=e.match(/^\s*\([ \t]*([^"']*)(?:[ \t]+(["'])(.*?)\2)?[ \t]*\)/);if(u){var s=u[1];if(i+=u[0].length,s&&"<"==s[0]&&">"==s[s.length-1]&&(s=s.substring(1,s.length-1)),!u[3])for(var c=1,l=0;l]+)|(.*?@.*?\.[a-zA-Z]+))>/))?t[3]?[t[0].length,["link",{href:"mailto:"+t[3]},t[3]]]:"mailto"==t[2]?[t[0].length,["link",{href:t[1]},t[1].substr("mailto:".length)]]:[t[0].length,["link",{href:t[1]},t[1]]]:[1,"<"]},"`":function(e){var t=e.match(/(`+)(([\s\S]*?)\1)/);return t&&t[2]?[t[1].length+t[2].length,["inlinecode",t[3]]]:[1,"`"]}," \n":function(e){return[3,["linebreak"]]}},y.dialects.Gruber.inline["**"]=u("strong","**"),y.dialects.Gruber.inline.__=u("strong","__"),y.dialects.Gruber.inline["*"]=u("em","*"),y.dialects.Gruber.inline._=u("em","_"),y.buildBlockOrder=function(e){var t=[];for(var n in e)"__order__"!=n&&"__call__"!=n&&t.push(n);e.__order__=t},y.buildInlinePatterns=function(e){var t=[];for(var n in e)if(!n.match(/^__.*__$/)){var r=n.replace(/([\\.*+?|()\[\]{}])/g,"\\$1").replace(/\n/,"\\n");t.push(1==n.length?r:"(?:"+r+")")}t=t.join("|"),e.__patterns__=t;var o=e.__call__;e.__call__=function(e,n){return void 0!=n?o.call(this,e,n):o.call(this,e,t)}},y.DialectHelpers={},y.DialectHelpers.inline_until_char=function(e,t){for(var n=0,r=[];;){if(e.charAt(n)==t)return n++,[n,r];if(n>=e.length)return null;var o=this.dialect.inline.__oneElement__.call(this,e.substr(n));n+=o[0],r.push.apply(r,o.slice(1))}},y.subclassDialect=function(e){function t(){}function n(){}return t.prototype=e.block,n.prototype=e.inline,{block:new t,inline:new n}},y.buildBlockOrder(y.dialects.Gruber.block),y.buildInlinePatterns(y.dialects.Gruber.inline),y.dialects.Maruku=y.subclassDialect(y.dialects.Gruber),y.dialects.Maruku.processMetaHash=function(e){for(var t=s(e),n={},r=0;r1)&&e.match(/^(?:\w+:.*\n)*\w+:.*$/)){c(this.tree)||this.tree.splice(1,0,{});var n=e.split(/\n/);for(p in n){var r=n[p].match(/(\w+):\s*(.*)$/),o=r[1].toLowerCase(),i=r[2];this.tree[1][o]=i}return[]}},y.dialects.Maruku.block.block_meta=function(e,t){var n=e.match(/(^|\n) {0,3}\{:\s*((?:\\\}|[^\}])*)\s*\}$/);if(n){var r,o=this.dialect.processMetaHash(n[2]);if(""===n[1]){var i=this.tree[this.tree.length-1];if(r=c(i),"string"==typeof i)return;r||(r={},i.splice(1,0,r));for(a in o)r[a]=o[a];return[]}var u=e.replace(/\n.*$/,""),s=this.processBlock(u,[]);r=c(s[0]),r||(r={},s[0].splice(1,0,r));for(a in o)r[a]=o[a];return s}},y.dialects.Maruku.block.definition_list=function(e,t){var n,r,o=/^((?:[^\s:].*\n)+):\s+([\s\S]+)$/,i=["dl"];if(r=e.match(o)){for(var a=[e];t.length&&o.exec(t[0]);)a.push(t.shift());for(var u=0;u=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),s(r,e,r.depth)}function i(e,t){var n=o.styles[t];return n?"["+o.colors[n][0]+"m"+e+"["+o.colors[n][1]+"m":e}function a(e,t){return e}function u(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function s(e,n,r){if(e.customInspect&&n&&k(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=s(e,o,r)),o}var i=c(e,n);if(i)return i;var a=Object.keys(n),y=u(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),E(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(n);if(0===a.length){if(k(n)){var m=n.name?": "+n.name:"";return e.stylize("[Function"+m+"]","special")}if(S(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(C(n))return e.stylize(Date.prototype.toString.call(n),"date");if(E(n))return l(n)}var v="",g=!1,_=["{","}"];if(h(n)&&(g=!0,_=["[","]"]),k(n)){v=" [Function"+(n.name?": "+n.name:"")+"]"}if(S(n)&&(v=" "+RegExp.prototype.toString.call(n)),C(n)&&(v=" "+Date.prototype.toUTCString.call(n)),E(n)&&(v=" "+l(n)),0===a.length&&(!g||0==n.length))return _[0]+v+_[1];if(r<0)return S(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var w;return w=g?f(e,n,r,y,a):a.map(function(t){return p(e,n,r,y,t,g)}),e.seen.pop(),d(w,v,_)}function c(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,o){for(var i=[],a=0,u=t.length;a-1&&(u=i?u.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return" "+e}).join("\n"))):u=e.stylize("[Circular]","special")),w(a)){if(i&&o.match(/^\d+$/))return u;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+u}function d(e,t,n){var r=0;return e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return null==e}function g(e){return"number"==typeof e}function b(e){return"string"==typeof e}function _(e){return"symbol"===(void 0===e?"undefined":I(e))}function w(e){return void 0===e}function S(e){return x(e)&&"[object RegExp]"===O(e)}function x(e){return"object"===(void 0===e?"undefined":I(e))&&null!==e}function C(e){return x(e)&&"[object Date]"===O(e)}function E(e){return x(e)&&("[object Error]"===O(e)||e instanceof Error)}function k(e){return"function"==typeof e}function P(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===(void 0===e?"undefined":I(e))||void 0===e}function O(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}function M(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var I="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},A=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),u=r[n];n dark ? `white` : `black`}; background-color: ${({ naked }) => naked ? 'transparent' : 'white'}; - border: none; + border: 1px solid darkgrey; outline: ${({ naked }) => naked ? 'none' : 'initial'}; border-radius: '2px'; - box-shadow: ${({ naked, noBorder }) => !naked && !noBorder ? '2px 2px 3px 0px black' : 'auto'}; font-weight: 100; font-size: ${({ size = 16 }) => `${size}px`}; margin: 2px 5px; diff --git a/src/components/Icons/Bookmark.js b/src/components/Icons/Bookmark.js index e40c440..713cacd 100644 --- a/src/components/Icons/Bookmark.js +++ b/src/components/Icons/Bookmark.js @@ -5,7 +5,7 @@ export default ({ isBookmarked, ...props }) => ( - {!isBookmarked && } + {isBookmarked && } ); diff --git a/src/components/Select/index.js b/src/components/Select/index.js index 9622da6..9b9f004 100644 --- a/src/components/Select/index.js +++ b/src/components/Select/index.js @@ -2,7 +2,7 @@ import styled from 'emotion/react'; export default styled.select` width: 300px; - box-shadow: 2px 2px 3px 0px black; + border: 1px solid darkgrey; background-color: #fafafa; text-overflow: ellipsis; outline: none; @@ -13,4 +13,7 @@ export default styled.select` max-width: 80vw; font-size: 20px; padding: 5px; + &:focus, &:active { + border-color: teal; + } `; diff --git a/src/components/Textfield/index.js b/src/components/Textfield/index.js index a3f076d..cdc60c1 100644 --- a/src/components/Textfield/index.js +++ b/src/components/Textfield/index.js @@ -2,9 +2,8 @@ import styled from 'emotion/react'; export default styled.input` border-radius: 1px; - box-shadow: 2px 2px 3px 0px black; background-color: #fafafa; - border: none; + border: 1px solid darkgrey; padding: 10px; margin: 5px; width: ${({ size }) => size ? `${size}px` : '280px'}; @@ -14,5 +13,6 @@ export default styled.input` text-align: ${({ center }) => center ? 'center' : 'initial'}; &:focus { outline: none; + border-color: teal; } `; diff --git a/src/constants.js b/src/constants.js index 1a6f12f..0922dd0 100644 --- a/src/constants.js +++ b/src/constants.js @@ -21,4 +21,9 @@ export const SETTINGS = { export const SEARCH_OPTIONS = { TYPE: 'search-type', SOURCE: 'search-source', +}; + +export const BOOKMARK_TYPES = { + SGGS: 'sggs', + SHABAD: 'shabad', }; \ No newline at end of file diff --git a/src/pages/Bookmarks/index.js b/src/pages/Bookmarks/index.js index e9df227..65fcfd8 100644 --- a/src/pages/Bookmarks/index.js +++ b/src/pages/Bookmarks/index.js @@ -1,57 +1,64 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; - import { Link } from 'react-router-dom'; - import styled from 'emotion/react'; - -import Toolbar from '../../components/Toolbar'; - -import Loader from '../../components/Loader'; - +import { BOOKMARK_TYPES } from '../../constants'; import { clearAllBookmarks, getAllBookmarks, updateBookmarkTitle } from '../../bookmarks'; - -import { Card, CardActions, CardTitle } from '../../components/Card'; - -import Textfield from '../../components/Textfield'; - -import Button from '../../components/Button'; - -const SearchCard = ({ data, onTitleChange }) => { - const { title, key, value } = data; - - const Wrapper = styled.div` - display: flex; - flexWrap: wrap; - alignItems: center; - justifyContent: space-between - `; - - return ( - - - - onTitleChange(v)} - type="text" - defaultValue={title} - /> - - - - { key === 'shabad' && } - { key === 'sggs' && } - - - ); -}; +import { Textfield, Button, Toolbar, Loader } from '../../components'; +import { Card, CardText, CardActions, CardTitle } from '../../components/Card'; + +const { SGGS, SHABAD } = BOOKMARK_TYPES; + +const SearchCardWrapper = styled.div` + display: flex; + flex-wrap: wrap; + justify-content: center; + flex-direction: column; + width: 100%; + align-items: center; +`; + +const StyledLink = styled(Link)` + text-decoration: none; + color: teal; + cursor: pointer; +`; + +const SearchCard = ({ data: { title, key, value }, onTitleChange }) => ( + + {title} + + + Edit Title + + + + {key === SHABAD && Open Shabad} + {key === SGGS && Open Ang {value}} + + +); SearchCard.propTypes = { data: PropTypes.object, onTitleChange: PropTypes.func, }; +const SearchCards = ({ items, onTitleChange }) => ( + + { + items + .map(b => ( + onTitleChange({ ...b, title })} + /> + )) + } + +); + export default class Bookmarks extends Component { constructor (p) { super(p); @@ -77,25 +84,6 @@ export default class Bookmarks extends Component { bookmarks = bookmarks.filter(e => e.title.toLowerCase().indexOf(keyword.toLowerCase()) > -1); } - const SearchCards = ({ items }) => { - const Wrapper = styled.div` - display: flex; - flexWrap: wrap; - justifyContent: center; - flexDirection: row - `; - - return ({ - items - .map(b => ( - this.updateBookmark({ ...b, title })} - /> - )) - }); - }; return (
@@ -110,7 +98,7 @@ export default class Bookmarks extends Component { { bookmarks.length === 0 ?

No Bookmarks Found

- : + : }
); @@ -128,7 +116,7 @@ export default class Bookmarks extends Component { .catch(err => console.error(err)); } - handleUpdateKeyword (keyword) { + handleUpdateKeyword ({ currentTarget: { value: keyword }}) { this.setState({ keyword }); } } diff --git a/src/pages/Main/Content.js b/src/pages/Main/Content.js index c24ee59..d61956e 100644 --- a/src/pages/Main/Content.js +++ b/src/pages/Main/Content.js @@ -2,10 +2,12 @@ import React from 'react'; import styled from 'emotion/react'; import { Switch, Route } from 'react-router-dom'; import { connect } from 'react-redux'; +import { SOURCES } from 'khajana'; import { Author, Raag, Raags, Authors, Home, Bookmarks, Hukamnama, Baani, SGGS, Nitnem, Calendar, Shabad, Shabads, NotFound, Settings, } from '../'; +import pageTitleEnchancer from '../pageTitleEnchancer'; import { Search } from '../../components/Icons'; import FloatingIcon from '../../components/FloatingIcon'; @@ -21,24 +23,26 @@ const BaaniWrapper = connect(mapStateToProps, null)(styled.div` padding-bottom: 100px; `); +const propsToParamTitle = param => props => props.match.params[param]; +const propsToSGGSTitle = props => 'Sri Guru Granth Sahib - Ang ' + props.match.params.ang; const Content = () => (
- - - + + + - - - - - - - - - + + + + + + + + + diff --git a/src/pages/SGGS/index.js b/src/pages/SGGS/index.js index e33825f..84fc248 100644 --- a/src/pages/SGGS/index.js +++ b/src/pages/SGGS/index.js @@ -13,9 +13,7 @@ class SGGS extends Component { constructor (props) { super(props); - let { ang = parseInt(localStorage.getItem('sggs-ang')) || 1} = this.props.match.params || { }; - - ang = parseInt(ang, 10); + const ang = parseInt(this.props.match.params.ang || localStorage.getItem('sggs-ang') || 1); this.state = { error: false, @@ -27,15 +25,6 @@ class SGGS extends Component { isBookmarked: false, }; - this.updateLines(); - - isBookmarked({ key: 'sggs', value: this.state.ang }) - .then(isBookmarked => this.setState({ isBookmarked })) - .catch(err => { - console.error(err); - this.setState({ error: true }); - }); - this.setAng = this.setAng.bind(this); this.handleDecrementAng = this.handleDecrementAng.bind(this); this.handleIncrementAng = this.handleIncrementAng.bind(this); @@ -47,6 +36,21 @@ class SGGS extends Component { this.handleToggleBookmark = this.handleToggleBookmark.bind(this); } + componentDidMount() { + if (this.props.match.params.ang) { + this.updateLines(); + + isBookmarked({ key: 'sggs', value: this.state.ang }) + .then(isBookmarked => this.setState({ isBookmarked })) + .catch(err => { + console.error(err); + this.setState({ error: true }); + }); + } else { + this.props.history.push(`/sggs/${this.state.ang}`); + } + } + render () { const { isBookmarked, lines, ang, larivaar, larivaarAssist, showTranslation, error } = this.state; @@ -86,6 +90,7 @@ class SGGS extends Component { updateLines(ang = this.state.ang) { this.setState({ lines: [] }); + return fetch(`assets/docs/json/SGGS/Ang ${ang}.json`) .then(r => r.json()) .then(lines => this.setState({ lines, error: false, ang })) @@ -98,17 +103,8 @@ class SGGS extends Component { setAng(ang) { console.log('SGGS received ' + ang); if (ang) { - this.props.history.push(`/sggs/${ang}`); - this.updateLines(ang); - - isBookmarked({ key: 'sggs', value: ang }) - .then(isBookmarked => this.setState({ isBookmarked })) - .catch(err => { - console.error(err); - this.setState({ error: true }); - }); - localStorage.setItem('sggs-ang', ang); + this.props.history.push(`/sggs/${ang}`); } } diff --git a/src/pages/Shabad/ShabadView.js b/src/pages/Shabad/ShabadView.js index 99edc69..7b59d8f 100644 --- a/src/pages/Shabad/ShabadView.js +++ b/src/pages/Shabad/ShabadView.js @@ -2,12 +2,19 @@ import PropTypes from 'prop-types'; import React from 'react'; import styled from 'emotion/react'; import { SOURCES } from 'khajana'; +import { Link } from 'react-router-dom'; import { isBookmarked, toggleBookmark } from '../../bookmarks'; import { Chip, AuthorChip, Toolbar, LinkButton, Button } from '../../components/'; import Bookmark from '../../components/Icons/Bookmark'; -import { Link } from 'react-router-dom'; +import { findShabadTitle } from '../../utils'; +import pageTitleEnchancer from '../pageTitleEnchancer'; import Shabad from './Shabad'; +const StyledLink = styled(Link)` + display: block; + text-decoration: none; +`; + const ToolbarWrapper = styled('div')` width: 100%; display: flex; @@ -16,21 +23,13 @@ const ToolbarWrapper = styled('div')` align-items: center; `; -export default class ShabadView extends React.PureComponent { +class ShabadView extends React.PureComponent { constructor (p) { super(p); - const { id, gurbani, author, ang, source } = this.props; + this.state = { isBookmarked: false }; - this.state = { - loading: true, - isBookmarked: false, - id, - gurbani, - author, - ang, - source, - }; + const { id, ang, gurbani: lines, source } = this.props; isBookmarked({ key: 'shabad', value: id }) .then(isBookmarked => this.setState({ isBookmarked })) @@ -39,20 +38,23 @@ export default class ShabadView extends React.PureComponent { this.handleToggleBookmark = this.handleToggleBookmark.bind(this); } render () { - const { ang, author, gurbani, source, isBookmarked } = this.state; + const { ang, author, gurbani, source } = this.props; + const { isBookmarked } = this.state; const toolbar = ( - - { author && } + + {author && } { ang && ( - + {`SGGS:${ang}`} - + ) } @@ -67,8 +69,9 @@ export default class ShabadView extends React.PureComponent { ); } handleToggleBookmark () { - const { isBookmarked, id, source, ang } = this.state; - const title = `Shabad ${id} ${SOURCES[source.id]} Ang ${ang}`; + const { isBookmarked } = this.state; + const { id, source, ang, gurbani: lines } = this.props; + const title = findShabadTitle({ lines, id, ang, sourceName: SOURCES[source] }); toggleBookmark({ isBookmarked, title, key: 'shabad', value: id }) .then(isBookmarked => this.setState({ isBookmarked })) @@ -82,4 +85,10 @@ ShabadView.propTypes = { author: PropTypes.object, ang: PropTypes.number, source: PropTypes.object, -}; \ No newline at end of file +}; + +const propsToShabadTitle = ({ id, source, ang, gurbani: lines }) => ( + findShabadTitle({ lines, id, ang, sourceName: SOURCES[source] }) +); + +export default pageTitleEnchancer(propsToShabadTitle)(ShabadView); \ No newline at end of file diff --git a/src/pages/pageTitleEnchancer.js b/src/pages/pageTitleEnchancer.js new file mode 100644 index 0000000..6b19344 --- /dev/null +++ b/src/pages/pageTitleEnchancer.js @@ -0,0 +1,18 @@ +import React from 'react'; + +export default title => Component => class extends React.PureComponent { + componentDidMount() { + this.oldTitle = document.title; + document.title = (typeof title === 'function' ? title(this.props) : title) + ' | SikhJS'; + } + componentDidUpdate() { + this.oldTitle = document.title; + document.title = typeof title === 'function' ? title(this.props) : title; + } + componentWillUnmount() { + document.title = this.oldTitle; + } + render() { + return + } +}; \ No newline at end of file diff --git a/src/utils.js b/src/utils.js new file mode 100644 index 0000000..be4d7d1 --- /dev/null +++ b/src/utils.js @@ -0,0 +1,25 @@ +const englishToUnicodeNumbers = ['੦', '੧', '੨', '੩', '੪', '੫', '੬', '੭', '੮', '੯']; + +export const lineToTitle = ({ gurbani: { unicode }, transliteration }) => + `${unicode.split('॥')[0]} (${transliteration.split('|')[0]})` +; + +export const findRahao = lines => lines.find(line => line.gurbani.unicode.includes('ਰਹਾਉ')); +export const findNthLine = nth => lines => lines.find(line => + line.gurbani.unicode.includes(`॥${englishToUnicodeNumbers[nth]}॥`) +); +export const findFirstLine = findNthLine(1); +export const findLastLine = lines => lines.slice(-1); + +export const findShabadTitle = ({ lines, id, ang, sourceName }) => { + const rahao = findRahao(lines.map(e => e.shabad)); + const lastLine = findLastLine(lines); + + if (rahao) { + return lineToTitle(rahao); + } else if (lastLine) { + return lineToTitle(lastLine); + } else { // Fallback + return `Shabad ${id} ${sourceName} Ang ${ang}`; + } +} \ No newline at end of file