Socket
Socket
Sign inDemoInstall

react-popper

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-popper - npm Package Compare versions

Comparing version 0.4.3 to 0.5.0

11

CHANGELOG.md
## CHANGELOG
### 0.5.0
Use `prop-types` package instead of React PropTypes [#9](https://github.com/souporserious/react-popper/pull/9)
Make updateState modifier return data object [#11](https://github.com/souporserious/react-popper/pull/11)
Removed `findDOMNode` 🎉
Moved back to `tag` instead of `component`. Use a child function now for custom components and pass down the provided ref to the proper component.
Removed default classNames for `popper` and `popper__arrow` so we can be unopinionated about styling.
### 0.4.3

@@ -3,0 +14,0 @@ Allow passing children through to components

6

dist/react-popper.min.js
/*!
* React Popper 0.4.3
* React Popper 0.5.0
* https://github.com/souporserious/react-popper
* Copyright (c) 2017 React Popper Authors
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactPopper=t(require("react"),require("react-dom")):e.ReactPopper=t(e.React,e.ReactDOM)}(this,function(e,t){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="dist/",t(0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=t.Popper=t.Target=t.Manager=void 0;var o=r(1),i=n(o),a=r(4),s=n(a),f=r(5),u=n(f),p=r(9),c=n(p);t.Manager=i.default,t.Target=s.default,t.Popper=u.default,t.Arrow=c.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}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"!=typeof t&&"function"!=typeof t?e:t}function s(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 f=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(2),p=(n(u),r(3)),c=(n(p),function(e){function t(){var e,r,n,o;i(this,t);for(var s=arguments.length,f=Array(s),u=0;u<s;u++)f[u]=arguments[u];return r=n=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(f))),n._setTargetNode=function(e){n._targetNode=e},n._getTargetNode=function(){return n._targetNode},o=r,a(n,o)}return s(t,e),f(t,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this._setTargetNode,getTargetNode:this._getTargetNode}}}},{key:"render",value:function(){var e=this.props,t=e.component,r=e.children,n=o(e,["component","children"]);return t?(0,u.createElement)(t,n,r):r}}]),t}(u.Component));c.childContextTypes={popperManager:u.PropTypes.object.isRequired},c.propTypes={component:u.PropTypes.any},c.defaultProps={component:"div"},t.default=c},function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}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"!=typeof t&&"function"!=typeof t?e:t}function s(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 f=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(2),p=(n(u),r(3)),c=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),f(t,[{key:"componentDidMount",value:function(){this.context.popperManager.setTargetNode((0,p.findDOMNode)(this))}},{key:"render",value:function(){var e=this.props,t=e.component,r=e.children,n=o(e,["component","children"]);return t?(0,u.createElement)(t,n,r):r}}]),t}(u.Component);c.contextTypes={popperManager:u.PropTypes.object.isRequired},c.propTypes={component:u.PropTypes.any},c.defaultProps={component:"div"},t.default=c},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}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"!=typeof t&&"function"!=typeof t?e:t}function s(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 f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=r(2),c=(n(p),r(3)),l=(n(c),r(6)),d=n(l),h=r(7),m=n(h),Popper=function(e){function Popper(){var e,t,r,n;i(this,Popper);for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return t=r=a(this,(e=Popper.__proto__||Object.getPrototypeOf(Popper)).call.apply(e,[this].concat(s))),r.state={},r._setArrowNode=function(e){r._arrowNode=e},r._getTargetNode=function(){return r.context.popperManager.getTargetNode()},r._updateStateModifier={enabled:!0,order:900,function:function(e){(r.state.data&&!(0,m.default)(e.offsets,r.state.data.offsets)||!r.state.data)&&r.setState({data:e})}},r._getPopperStyle=function(){var e=r.state.data;if(!r._popper||!e)return{position:"absolute",pointerEvents:"none",opacity:0};var t=e.offsets.popper,n=t.top,o=t.left,i=t.position;return f({position:i,top:0,left:0,transform:"translate3d("+Math.round(o)+"px, "+Math.round(n)+"px, 0px)",willChange:"transform"},e.styles)},r._getPopperPlacement=function(){return r.state.data?r.state.data.placement:void 0},r._getArrowStyle=function(){if(r.state.data&&r.state.data.offsets.arrow){var e=r.state.data.offsets.arrow,t=e.top,n=e.left;return n?{left:+n}:{top:+t}}return{}},n=t,a(r,n)}return s(Popper,e),u(Popper,[{key:"getChildContext",value:function(){return{popper:{setArrowNode:this._setArrowNode,getArrowStyle:this._getArrowStyle}}}},{key:"componentDidMount",value:function(){this._updatePopper()}},{key:"componentDidUpdate",value:function(e){e.placement===this.props.placement&&e.eventsEnabled===this.props.eventsEnabled||this._updatePopper()}},{key:"componentWillUnmount",value:function(){this._destroyPopper()}},{key:"_updatePopper",value:function(){this._destroyPopper(),this._createPopper()}},{key:"_createPopper",value:function(){var e=this.props,t=e.placement,r=e.eventsEnabled,n=f({},this.props.modifiers,{applyStyle:{enabled:!1},updateState:this._updateStateModifier});this._arrowNode&&(n.arrow={element:this._arrowNode}),this._popper=new d.default(this._getTargetNode(),(0,c.findDOMNode)(this),{placement:t,eventsEnabled:r,modifiers:n}),this._popper.scheduleUpdate()}},{key:"_destroyPopper",value:function(){this._popper&&this._popper.destroy()}},{key:"_getProps",value:function(){var e=this.props,t=(e.component,e.placement,e.eventsEnabled,e.modifiers,e.style),r=(e.children,o(e,["component","placement","eventsEnabled","modifiers","style","children"]));return f({style:f({},this._getPopperStyle(),t),"data-placement":this._getPopperPlacement()},r)}},{key:"render",value:function(){var e=this.props,t=e.component,r=e.children,n=this._getProps();return"function"==typeof r?r(n):(0,p.createElement)(t,n,r)}}]),Popper}(p.Component);Popper.contextTypes={popperManager:p.PropTypes.object.isRequired},Popper.childContextTypes={popper:p.PropTypes.object.isRequired},Popper.propTypes={component:p.PropTypes.any,placement:p.PropTypes.oneOf(d.default.placements),eventsEnabled:p.PropTypes.bool,modifiers:p.PropTypes.object},Popper.defaultProps={component:"div",placement:"bottom",eventsEnabled:!0,modifiers:{},className:"popper"},t.default=Popper},function(e,t,r){var n,o,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};/**!
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactPopper=t(require("react")):e.ReactPopper=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Arrow=t.Popper=t.Target=t.Manager=void 0;var o=n(1),i=r(o),a=n(12),f=r(a),u=n(13),s=r(u),c=n(17),p=r(c);t.Manager=i.default,t.Target=f.default,t.Popper=s.default,t.Arrow=p.default},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"!=typeof t&&"function"!=typeof t?e:t}function f(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=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(2),c=(r(s),n(3)),p=r(c),l=function(e){function t(){var e,n,r,o;i(this,t);for(var f=arguments.length,u=Array(f),s=0;s<f;s++)u[s]=arguments[s];return n=r=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r._setTargetNode=function(e){r._targetNode=e},r._getTargetNode=function(){return r._targetNode},o=n,a(r,o)}return f(t,e),u(t,[{key:"getChildContext",value:function(){return{popperManager:{setTargetNode:this._setTargetNode,getTargetNode:this._getTargetNode}}}},{key:"render",value:function(){var e=this.props,t=e.tag,n=e.children,r=o(e,["tag","children"]);return t!==!1?(0,s.createElement)(t,r,n):n}}]),t}(s.Component);l.childContextTypes={popperManager:p.default.object.isRequired},l.propTypes={tag:p.default.oneOfType([p.default.string,p.default.bool])},l.defaultProps={tag:"div"},t.default=l},function(t,n){t.exports=e},function(e,t,n){(function(t){"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};if("production"!==t.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=function(e){return"object"===("undefined"==typeof e?"undefined":r(e))&&null!==e&&e.$$typeof===o},a=!0;e.exports=n(5)(i,a)}else e.exports=n(11)()}).call(t,n(4))},function(e,t){"use strict";function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){y&&d&&(y=!1,d.length?h=d.concat(h):v=-1,h.length&&f())}function f(){if(!y){var e=o(a);y=!0;for(var t=h.length;t;){for(d=h,h=[];++v<t;)d&&d[v].run();v=-1,t=h.length}d=null,y=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function s(){}var c,p,l=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var d,h=[],y=!1,v=-1;l.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new u(e,t)),1!==h.length||y||o(f)},u.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=s,l.addListener=s,l.once=s,l.off=s,l.removeListener=s,l.removeAllListeners=s,l.emit=s,l.binding=function(e){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(e){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(e,t,n){(function(t){"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},o=n(6),i=n(7),a=n(8),f=n(9),u=n(10);e.exports=function(e,n){function s(e){var t=e&&(S&&e[S]||e[N]);if("function"==typeof t)return t}function c(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function p(e){this.message=e,this.stack=""}function l(e){function r(r,s,c,l,d,h,y){if(l=l||A,h=h||c,y!==f)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+c;!o[v]&&u<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",h,l),o[v]=!0,u++)}return null==s[c]?r?new p(null===s[c]?"The "+d+" `"+h+"` is marked as required "+("in `"+l+"`, but its value is `null`."):"The "+d+" `"+h+"` is marked as required in "+("`"+l+"`, but its value is `undefined`.")):null:e(s,c,l,d,h)}if("production"!==t.env.NODE_ENV)var o={},u=0;var s=r.bind(null,!1);return s.isRequired=r.bind(null,!0),s}function d(e){function t(t,n,r,o,i,a){var f=t[n],u=E(f);if(u!==e){var s=T(f);return new p("Invalid "+o+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return l(t)}function h(){return l(o.thatReturnsNull)}function y(e){function t(t,n,r,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a)){var u=E(a);return new p("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var s=0;s<a.length;s++){var c=e(a,s,r,o,i+"["+s+"]",f);if(c instanceof Error)return c}return null}return l(t)}function v(){function t(t,n,r,o,i){var a=t[n];if(!e(a)){var f=E(a);return new p("Invalid "+o+" `"+i+"` of type "+("`"+f+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return l(t)}function m(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||A,f=P(t[n]);return new p("Invalid "+o+" `"+i+"` of type "+("`"+f+"` supplied to `"+r+"`, expected ")+("instance of `"+a+"`."))}return null}return l(t)}function b(e){function n(t,n,r,o,i){for(var a=t[n],f=0;f<e.length;f++)if(c(a,e[f]))return null;var u=JSON.stringify(e);return new p("Invalid "+o+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}return Array.isArray(e)?l(n):("production"!==t.env.NODE_ENV?a(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,o.thatReturnsNull)}function g(e){function t(t,n,r,o,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],u=E(a);if("object"!==u)return new p("Invalid "+o+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an object."));for(var s in a)if(a.hasOwnProperty(s)){var c=e(a,s,r,o,i+"."+s,f);if(c instanceof Error)return c}return null}return l(t)}function w(e){function n(t,n,r,o,i){for(var a=0;a<e.length;a++){var u=e[a];if(null==u(t,n,r,o,i,f))return null}return new p("Invalid "+o+" `"+i+"` supplied to "+("`"+r+"`."))}return Array.isArray(e)?l(n):("production"!==t.env.NODE_ENV?a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,o.thatReturnsNull)}function _(){function e(e,t,n,r,o){return x(e[t])?null:new p("Invalid "+r+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return l(e)}function O(e){function t(t,n,r,o,i){var a=t[n],u=E(a);if("object"!==u)return new p("Invalid "+o+" `"+i+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."));for(var s in e){var c=e[s];if(c){var l=c(a,s,r,o,i+"."+s,f);if(l)return l}}return null}return l(t)}function x(t){switch("undefined"==typeof t?"undefined":r(t)){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(x);if(null===t||e(t))return!0;var n=s(t);if(!n)return!1;var o,i=n.call(t);if(n!==t.entries){for(;!(o=i.next()).done;)if(!x(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!x(a[1]))return!1}return!0;default:return!1}}function j(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function E(e){var t="undefined"==typeof e?"undefined":r(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":j(t,e)?"symbol":t}function T(e){var t=E(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function P(e){return e.constructor&&e.constructor.name?e.constructor.name:A}var S="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",A="<<anonymous>>",R={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:h(),arrayOf:y,element:v(),instanceOf:m,node:_(),objectOf:g,oneOf:b,oneOfType:w,shape:O};return p.prototype=Error.prototype,R.checkPropTypes=u,R.PropTypes=R,R}}).call(t,n(4))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";function n(e,t,n,o,i,a,f,u){if(r(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,i,a,f,u],p=0;s=new Error(t.replace(/%s/g,function(){return c[p++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(4))},function(e,t,n){(function(t){"use strict";var r=n(6),o=r;"production"!==t.env.NODE_ENV&&!function(){var e=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};o=function(t,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!t){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];e.apply(void 0,[n].concat(o))}}}(),e.exports=o}).call(t,n(4))},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){(function(t){"use strict";function r(e,n,r,s,c){if("production"!==t.env.NODE_ENV)for(var p in e)if(e.hasOwnProperty(p)){var l;try{i("function"==typeof e[p],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",s||"React class",r,p),l=e[p](n,p,s,r,null,f)}catch(e){l=e}if(a(!l||l instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",r,p,"undefined"==typeof l?"undefined":o(l)),l instanceof Error&&!(l.message in u)){u[l.message]=!0;var d=c?c():"";a(!1,"Failed %s type: %s%s",r,l.message,null!=d?d:"")}}}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};if("production"!==t.env.NODE_ENV)var i=n(7),a=n(8),f=n(9),u={};e.exports=r}).call(t,n(4))},function(e,t,n){"use strict";var r=n(6),o=n(7);e.exports=function(){function e(){o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return n.checkPropTypes=r,n.PropTypes=n,n}},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=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(2),f=(r(a),n(3)),u=r(f),s=function(e,t){var n=e.tag,r=void 0===n?"div":n,f=e.innerRef,u=e.children,s=o(e,["tag","innerRef","children"]),c=t.popperManager,p=function(e){return c.setTargetNode(e)};return"function"==typeof u?u({targetRef:p}):(0,a.createElement)(r,i({ref:function(e){p(e),"function"==typeof f&&f(e)}},s),u)};s.contextTypes={popperManager:u.default.object.isRequired},s.propTypes={tag:u.default.string,innerRef:u.default.func,children:u.default.oneOfType([u.default.node,u.default.func])},t.default=s},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"!=typeof t&&"function"!=typeof t?e:t}function f(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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(2),p=(r(c),n(3)),l=r(p),d=n(14),h=r(d),y=n(15),v=r(y),Popper=function(e){function Popper(){var e,t,n,r;i(this,Popper);for(var o=arguments.length,f=Array(o),s=0;s<o;s++)f[s]=arguments[s];return t=n=a(this,(e=Popper.__proto__||Object.getPrototypeOf(Popper)).call.apply(e,[this].concat(f))),n.state={},n._setArrowNode=function(e){n._arrowNode=e},n._getTargetNode=function(){return n.context.popperManager.getTargetNode()},n._updateStateModifier={enabled:!0,order:900,function:function(e){return(n.state.data&&!(0,v.default)(e.offsets,n.state.data.offsets)||!n.state.data)&&n.setState({data:e}),e}},n._getPopperStyle=function(){var e=n.state.data;if(!n._popper||!e)return{position:"absolute",pointerEvents:"none",opacity:0};var t=e.offsets.popper,r=t.top,o=t.left,i=t.position;return u({position:i,top:0,left:0,transform:"translate3d("+Math.round(o)+"px, "+Math.round(r)+"px, 0px)",willChange:"transform"},e.styles)},n._getPopperPlacement=function(){return n.state.data?n.state.data.placement:void 0},n._getArrowStyle=function(){if(n.state.data&&n.state.data.offsets.arrow){var e=n.state.data.offsets.arrow,t=e.top,r=e.left;return r?{left:+r}:{top:+t}}return{}},r=t,a(n,r)}return f(Popper,e),s(Popper,[{key:"getChildContext",value:function(){return{popper:{setArrowNode:this._setArrowNode,getArrowStyle:this._getArrowStyle}}}},{key:"componentDidMount",value:function(){this._updatePopper()}},{key:"componentDidUpdate",value:function(e){e.placement===this.props.placement&&e.eventsEnabled===this.props.eventsEnabled||this._updatePopper()}},{key:"componentWillUnmount",value:function(){this._destroyPopper()}},{key:"_updatePopper",value:function(){this._destroyPopper(),this._node&&this._createPopper()}},{key:"_createPopper",value:function(){var e=this.props,t=e.placement,n=e.eventsEnabled,r=u({},this.props.modifiers,{applyStyle:{enabled:!1},updateState:this._updateStateModifier});this._arrowNode&&(r.arrow={element:this._arrowNode}),this._popper=new h.default(this._getTargetNode(),this._node,{placement:t,eventsEnabled:n,modifiers:r}),this._popper.scheduleUpdate()}},{key:"_destroyPopper",value:function(){this._popper&&this._popper.destroy()}},{key:"render",value:function(){var e=this,t=this.props,n=t.tag,r=t.innerRef,i=(t.placement,t.eventsEnabled,t.modifiers,t.style),a=t.children,f=o(t,["tag","innerRef","placement","eventsEnabled","modifiers","style","children"]),s=function(t){e._node=t},p=u({},this._getPopperStyle(),i),l=this._getPopperPlacement();return"function"==typeof a?a({popperRef:s,popperStyle:p,popperPlacement:l}):(0,c.createElement)(n,u({ref:function(e){s(e),"function"==typeof r&&r(e)},style:p,"data-placement":l},f),a)}}]),Popper}(c.Component);Popper.contextTypes={popperManager:l.default.object.isRequired},Popper.childContextTypes={popper:l.default.object.isRequired},Popper.propTypes={tag:l.default.string,innerRef:l.default.func,placement:l.default.oneOf(h.default.placements),eventsEnabled:l.default.bool,modifiers:l.default.object,children:l.default.oneOfType([l.default.node,l.default.func])},Popper.defaultProps={tag:"div",placement:"bottom",eventsEnabled:!0,modifiers:{}},t.default=Popper},function(e,t,n){var r,o,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};/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.

@@ -30,2 +30,2 @@ * @version 1.0.8

*/
!function(a,s){"object"===i(t)&&"undefined"!=typeof e?e.exports=s():(n=s,o="function"==typeof n?n.call(t,r,t,e):n,!(void 0!==o&&(e.exports=o)))}(void 0,function(){"use strict";function e(e){var t=e.offsetParent,r=t&&t.nodeName;return r&&"BODY"!==r&&"HTML"!==r?t:window.document.documentElement}function t(e,t){if(1!==e.nodeType)return[];var r=window.getComputedStyle(e,null);return t?r[t]:r}function r(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e||["HTML","BODY","#document"].indexOf(e.nodeName)!==-1)return window.document.body;var o=t(e),i=o.overflow,a=o.overflowX,s=o.overflowY;return/(auto|scroll)/.test(i+s+a)?e:n(r(e))}function o(e){var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===t(e,"position")||o(r(e)))}function i(t){var r=e(t),n=o(r);return n?"fixed":"absolute"}function a(e,t){var r="x"===t?"Left":"Top",n="Left"===r?"Right":"Bottom";return Number(e["border"+r+"Width"].split("px")[0])+Number(e["border"+n+"Width"].split("px")[0])}function s(e){var r=navigator.appVersion.indexOf("MSIE 10")!==-1,n=void 0;if(r)try{n=e.getBoundingClientRect()}catch(e){n={}}else n=e.getBoundingClientRect();var o={left:n.left,top:n.top,right:n.right,bottom:n.bottom,width:n.right-n.left,height:n.bottom-n.top};if("HTML"===e.nodeName&&r){var i=window.document.documentElement,s=i.scrollTop,f=i.scrollLeft;o.top-=s,o.bottom-=s,o.left-=f,o.right-=f}var u=n.width-(e.clientWidth||n.right-n.left),p=n.height-(e.clientHeight||n.bottom-n.top);if(u||p){var c=t(e);u-=a(c,"x"),p-=a(c,"y")}return o.right-=u,o.width-=u,o.bottom-=p,o.height-=p,o}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r="top"===t?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var o=window.document.documentElement,i=window.document.scrollingElement||o;return i[r]}return e[r]}function u(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=f(t,"top"),o=f(t,"left"),i=r?-1:1;return e.top+=n*i,e.bottom+=n*i,e.left+=o*i,e.right+=o*i,e}function p(r,o){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],f=n(o),p=s(r),c=s(o),l={top:p.top-c.top,left:p.left-c.left,bottom:p.top-c.top+p.height,right:p.left-c.left+p.width,width:p.width,height:p.height};i&&!a?l=u(l,f,!0):e(r).contains(f)&&"BODY"!==f.nodeName&&(l=u(l,o));var d=t(o),h=Number(d.borderTopWidth.split("px")[0]),m=Number(d.borderLeftWidth.split("px")[0]);return l.top-=h,l.bottom-=h,l.left-=m,l.right-=m,l}function c(){var e=window.document.body,t=window.document.documentElement;return{height:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight),width:Math.max(e.scrollWidth,e.offsetWidth,t.clientWidth,t.scrollWidth,t.offsetWidth)}}function l(e){var t=void 0;if("HTML"===e.nodeName){var r=c(),n=r.width,o=r.height;t={width:n,height:o,left:0,top:0}}else t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function d(t){var r=l(t);if("HTML"!==t.nodeName){var n=e(t),o=d(n),i={width:r.offsetWidth,height:r.offsetHeight,left:r.left+o.left,top:r.top+o.top,right:r.right-o.right,bottom:r.bottom-o.bottom};return i}return r}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",o=n(e),i=f(o,t);return["BODY","HTML"].indexOf(o.nodeName)===-1?i+h(r(o),t):i}function m(t,a,s){var f={top:0,left:0},u=e(t);if("viewport"===s){var l=d(u),m=l.left,v=l.top,b=window.document.documentElement,y=b.clientWidth,g=b.clientHeight;if("fixed"===i(t))f.right=y,f.bottom=g;else{var _=h(t,"left"),w=h(t,"top");f={top:0-v,right:y-m+_,bottom:g-v+w,left:0-m}}}else{var O=void 0;if(O="scrollParent"===s?n(r(t)):"window"===s?window.document.body:s,"BODY"===O.nodeName){var j=c(),x=j.height,P=j.width;f.right=P,f.bottom=x}else f=p(O,u,o(t))}return f.left+=a,f.top+=a,f.right-=a,f.bottom-=a,f}function v(e,t,r){if(e.indexOf("auto")===-1)return e;var n=m(r,0,"scrollParent"),o={top:t.top-n.top,right:n.right-t.right,bottom:n.bottom-t.bottom,left:t.left-n.left},i=Object.keys(o).sort(function(e,t){return o[t]-o[e]})[0],a=e.split("-")[1];return i+(a?"-"+a:"")}function b(e){var t=!1,r=0,n=document.createElement("span"),o=new MutationObserver(function(){e(),t=!1});return o.observe(n,{attributes:!0}),function(){t||(t=!0,n.setAttribute("x-index",r),r+=1)}}function y(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Z))}}function g(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function _(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===r});var n=g(e,function(e){return e[t]===r});return e.indexOf(n)}function w(e){return ae({},e,{right:e.left+e.width,bottom:e.top+e.height})}function O(e){var t=window.getComputedStyle(e),r=parseFloat(t.marginTop)+parseFloat(t.marginBottom),n=parseFloat(t.marginLeft)+parseFloat(t.marginRight),o={width:e.offsetWidth+n,height:e.offsetHeight+r};return o}function j(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function x(e,t,r,n){n=n.split("-")[0];var o=O(t),i={position:e,width:o.width,height:o.height},a=["right","left"].indexOf(n)!==-1,s=a?"top":"left",f=a?"left":"top",u=a?"height":"width",p=a?"width":"height";return i[s]=r[s]+r[u]/2-o[u]/2,n===f?i[f]=r[f]-o[p]:i[f]=r[j(f)],i}function P(t,r,n){var o="fixed"===t.position,i=t.isParentTransformed,a=e(o&&i?n:r);return p(n,a,o,i)}function E(e){for(var t=[!1,"ms","webkit","moz","o"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length-1;n++){var o=t[n],i=o?""+o+r:e;if("undefined"!=typeof window.document.body.style[i])return i}return null}function T(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function M(e,t){return e.some(function(e){var r=e.name,n=e.enabled;return n&&r===t})}function N(e,t,r){var n=g(e,function(e){var r=e.name;return r===t});return!!n&&e.some(function(e){return e.name===r&&e.enabled&&e.order<n.order})}function S(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function A(e){return"BODY"!==e.nodeName&&("none"!==t(e,"transform")||(r(e)?A(r(e)):e))}function k(e,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function C(e,t,r){var n=void 0===r?e:e.slice(0,_(e,"name",r));return n.forEach(function(e){e.enabled&&T(e.function)&&(t=e.function(t,e))}),t}function L(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function R(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&S(t[r])&&(n="px"),e.style[r]=t[r]+n})}function z(e,t,r,o){var i="BODY"===e.nodeName,a=i?window:e;a.addEventListener(t,r,{passive:!0}),i||z(n(a.parentNode),t,r,o),o.push(a)}function D(e,t,r,o){r.updateBound=o,window.addEventListener("resize",r.updateBound,{passive:!0});var i=n(e);return z(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function B(e,t){var r={position:e.offsets.popper.position},n={"x-placement":e.placement},o=Math.round(e.offsets.popper.left),i=Math.round(e.offsets.popper.top),a=E("transform");return t.gpuAcceleration&&a?(r[a]="translate3d("+o+"px, "+i+"px, 0)",r.top=0,r.left=0,r.willChange="transform"):(r.left=o,r.top=i,r.willChange="top, left"),R(e.instance.popper,ae({},r,e.styles)),L(e.instance.popper,ae({},n,e.attributes)),e.offsets.arrow&&R(e.arrowElement,e.offsets.arrow),e}function W(e,t,r,n,o){var i=P(o,t,e);return r.placement=v(r.placement,i,t),t.setAttribute("x-placement",r.placement),r}function H(e,t){if(!N(e.instance.modifiers,"arrow","keepTogether"))return console.warn("WARNING: `keepTogether` modifier is required by arrow modifier in order to work, be sure to include it before `arrow`!"),e;var r=t.element;if("string"==typeof r){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var n=e.placement.split("-")[0],o=w(e.offsets.popper),i=e.offsets.reference,a=["left","right"].indexOf(n)!==-1,s=a?"height":"width",f=a?"top":"left",u=a?"left":"top",p=a?"bottom":"right",c=O(r)[s];i[p]-c<o[f]&&(e.offsets.popper[f]-=o[f]-(i[p]-c)),i[f]+c>o[p]&&(e.offsets.popper[f]+=i[f]+c-o[p]);var l=i[f]+i[s]/2-c/2,d=l-w(e.offsets.popper)[f];return d=Math.max(Math.min(o[s]-c,d),0),e.arrowElement=r,e.offsets.arrow={},e.offsets.arrow[f]=d,e.offsets.arrow[u]="",e}function F(e){return"end"===e?"start":"start"===e?"end":e}function q(e,t){if(M(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var r=m(e.instance.popper,t.padding,t.boundariesElement),n=e.placement.split("-")[0],o=j(n),i=e.placement.split("-")[1]||"",a=[];return a="flip"===t.behavior?[n,o]:t.behavior,a.forEach(function(s,f){if(n!==s||a.length===f+1)return e;n=e.placement.split("-")[0],o=j(n);var u=w(e.offsets.popper),p=e.offsets.reference,c=Math.floor,l="left"===n&&c(u.right)>c(p.left)||"right"===n&&c(u.left)<c(p.right)||"top"===n&&c(u.bottom)>c(p.top)||"bottom"===n&&c(u.top)<c(p.bottom),d=c(u.left)<c(r.left),h=c(u.right)>c(r.right),m=c(u.top)<c(r.top),v=c(u.bottom)>c(r.bottom),b="left"===n&&d||"right"===n&&h||"top"===n&&m||"bottom"===n&&v,y=["top","bottom"].indexOf(n)!==-1,g=!!t.flipVariations&&(y&&"start"===i&&d||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&v);(l||b||g)&&(e.flipped=!0,(l||b)&&(n=a[f+1]),g&&(i=F(i)),e.placement=n+(i?"-"+i:""),e.offsets.popper=x(e.instance.state.position,e.instance.popper,e.offsets.reference,e.placement),e=C(e.instance.modifiers,e,"flip"))}),e}function U(e){var t=w(e.offsets.popper),r=e.offsets.reference,n=e.placement.split("-")[0],o=Math.floor,i=["top","bottom"].indexOf(n)!==-1,a=i?"right":"bottom",s=i?"left":"top",f=i?"width":"height";return t[a]<o(r[s])&&(e.offsets.popper[s]=o(r[s])-t[f]),t[s]>o(r[a])&&(e.offsets.popper[s]=o(r[a])),e}function I(e,t){var r=e.placement,n=e.offsets.popper,o=void 0;return S(t.offset)?o=[t.offset,0]:(o=t.offset.split(" "),o=o.map(function(t,n){var o=t.match(/(\d*\.?\d*)(.*)/),i=+o[1],a=o[2],s=r.indexOf("right")!==-1||r.indexOf("left")!==-1;1===n&&(s=!s);var f=s?"height":"width";if(0===a.indexOf("%")){var u=void 0;switch(a){case"%p":u=e.offsets.popper;break;case"%":case"$r":default:u=e.offsets.reference}var p=w(u),c=p[f];return c/100*i}if("vh"===a||"vw"===a){var l=void 0;return l="vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),l/100*i}return"px"===a?+i:+t})),e.placement.indexOf("left")!==-1?(n.top+=o[0],n.left-=o[1]||0):e.placement.indexOf("right")!==-1?(n.top+=o[0],n.left+=o[1]||0):e.placement.indexOf("top")!==-1?(n.left+=o[0],n.top-=o[1]||0):e.placement.indexOf("bottom")!==-1&&(n.left+=o[0],n.top+=o[1]||0),e}function Y(t,r){var n=r.boundariesElement||e(t.instance.popper),o=m(t.instance.popper,r.padding,n);r.boundaries=o;var i=r.priority,a=w(t.offsets.popper),s={primary:function(e){var t=a[e];return a[e]<o[e]&&!r.escapeWithReference&&(t=Math.max(a[e],o[e])),ie({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=a[t];return a[e]>o[e]&&!r.escapeWithReference&&(n=Math.min(a[t],o[e]-("right"===e?a.width:a.height))),ie({},t,n)}};return i.forEach(function(e){var t=["left","top"].indexOf(e)!==-1?"primary":"secondary";a=ae({},a,s[t](e))}),t.offsets.popper=a,t}function $(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var o=e.offsets.reference,i=w(e.offsets.popper),a=["bottom","top"].indexOf(r)!==-1,s=a?"left":"top",f=a?"width":"height",u={start:ie({},s,o[s]),end:ie({},s,o[s]+o[f]-i[f])};e.offsets.popper=ae({},i,u[n])}return e}function G(e){if(!N(e.instance.modifiers,"hide","preventOverflow"))return console.warn("WARNING: preventOverflow modifier is required by hide modifier in order to work, be sure to include it before hide!"),e;var t=e.offsets.reference,r=g(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function V(e){var t=e.placement,r=t.split("-")[0],n=w(e.offsets.popper),o=w(e.offsets.reference),i=["left","right"].indexOf(r)!==-1,a=["top","left"].indexOf(r)===-1;return n[i?"left":"top"]=o[t]-(a?n[i?"width":"height"]:0),e.placement=j(t),e.offsets.popper=w(n),e}for(var X=["native code","[object MutationObserverConstructor]"],J=function(e){return X.some(function(t){return(e||"").toString().indexOf(t)>-1})},K="undefined"!=typeof window,Q=["Edge","Trident","Firefox"],Z=0,ee=0;ee<Q.length;ee+=1)if(K&&navigator.userAgent.indexOf(Q[ee])>=0){Z=1;break}var te=K&&J(window.MutationObserver),re=te?b:y,ne=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},oe=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),ie=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},se={computeAutoPlacement:v,debounce:re,findIndex:_,getBordersSize:a,getBoundaries:m,getBoundingClientRect:s,getClientRect:w,getOffsetParent:e,getOffsetRect:l,getOffsetRectRelativeToCustomParent:p,getOuterSizes:O,getParentNode:r,getPopperOffsets:x,getPosition:i,getReferenceOffsets:P,getScroll:f,getScrollParent:n,getStyleComputedProperty:t,getSupportedPropertyName:E,getTotalScroll:h,getWindowSizes:c,includeScroll:u,isFixed:o,isFunction:T,isModifierEnabled:M,isModifierRequired:N,isNative:J,isNumeric:S,isTransformed:A,removeEventListeners:k,runModifiers:C,setAttributes:L,setStyles:R,setupEventListeners:D},fe={shift:{order:100,enabled:!0,function:$},offset:{order:200,enabled:!0,function:I,offset:0},preventOverflow:{order:300,enabled:!0,function:Y,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,function:U},arrow:{order:500,enabled:!0,function:H,element:"[x-arrow]"},flip:{order:600,enabled:!0,function:q,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,function:V},hide:{order:800,enabled:!0,function:G},applyStyle:{order:900,enabled:!0,gpuAcceleration:!0,function:B,onLoad:W}},ue={placement:"bottom",eventsEnabled:!0,onCreate:function(){},onUpdate:function(){},modifiers:fe},Popper=function(){function Popper(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ne(this,Popper),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=re(this.update.bind(this)),this.options=ae({},Popper.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=t.jquery?t[0]:t,this.modifiers=Object.keys(Popper.Defaults.modifiers).map(function(e){return ae({name:e},Popper.Defaults.modifiers[e])}),this.modifiers=this.modifiers.map(function(e){var t=n.modifiers&&n.modifiers[e.name]||{};return ae({},e,t)}),n.modifiers&&(this.options.modifiers=ae({},Popper.Defaults.modifiers,n.modifiers),Object.keys(n.modifiers).forEach(function(e){if(void 0===Popper.Defaults.modifiers[e]){var t=n.modifiers[e];t.name=e,r.modifiers.push(t)}})),this.state.position=i(this.reference),this.modifiers=this.modifiers.sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&T(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.state.isParentTransformed=A(this.popper.parentNode),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return oe(Popper,[{key:"update",value:function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};this.state.position=i(this.reference),R(this.popper,{position:this.state.position}),e.offsets.reference=P(this.state,this.popper,this.reference),e.placement=v(this.options.placement,e.offsets.reference,this.popper),e.originalPlacement=this.options.placement,e.offsets.popper=x(this.state,this.popper,e.offsets.reference,e.placement),e=C(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}},{key:"destroy",value:function(){return this.state.isDestroyed=!0,M(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[E("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}},{key:"enableEventListeners",value:function(){this.state.eventsEnabled||(this.state=D(this.reference,this.options,this.state,this.scheduleUpdate))}},{key:"disableEventListeners",value:function(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=k(this.reference,this.state))}}]),Popper}();return Popper.Utils=se,Popper.placements=["auto","auto-start","auto-end","top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],Popper.Defaults=ue,Popper})},function(e,t,r){(function(e,r){"use strict";function n(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function o(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function i(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function a(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function s(e){return function(t){return e(t)}}function f(e,t){return e.has(t)}function u(e,t){return null==e?void 0:e[t]}function p(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function c(e,t){return function(r){return e(t(r))}}function l(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function d(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function h(){this.__data__=Bt?Bt(null):{},this.size=0}function m(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function v(e){var t=this.__data__;if(Bt){var r=t[e];return r===we?void 0:r}return _t.call(t,e)?t[e]:void 0}function b(e){var t=this.__data__;return Bt?void 0!==t[e]:_t.call(t,e)}function y(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Bt&&void 0===t?we:t,this}function g(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function _(){this.__data__=[],this.size=0}function w(e){var t=this.__data__,r=F(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Mt.call(t,r,1),--this.size,!0}function O(e){var t=this.__data__,r=F(t,e);return r<0?void 0:t[r][1]}function j(e){return F(this.__data__,e)>-1}function x(e,t){var r=this.__data__,n=F(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function P(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function E(){this.size=0,this.__data__={hash:new d,map:new(Lt||g),string:new d}}function T(e){var t=ee(this,e).delete(e);return this.size-=t?1:0,t}function M(e){return ee(this,e).get(e)}function N(e){return ee(this,e).has(e)}function S(e,t){var r=ee(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function A(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new P;++t<r;)this.add(e[t])}function k(e){return this.__data__.set(e,we),this}function C(e){return this.__data__.has(e)}function L(e){var t=this.__data__=new g(e);this.size=t.size}function R(){this.__data__=new g,this.size=0}function z(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function D(e){return this.__data__.get(e)}function B(e){return this.__data__.has(e)}function W(e,t){var r=this.__data__;if(r instanceof g){var n=r.__data__;if(!Lt||n.length<_e-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new P(n)}return r.set(e,t),this.size=r.size,this}function H(e,t){var r=Xt(e),n=!r&&Vt(e),o=!r&&!n&&Jt(e),i=!r&&!n&&!o&&Kt(e),s=r||n||o||i,f=s?a(e.length,String):[],u=f.length;for(var p in e)!t&&!_t.call(e,p)||s&&("length"==p||o&&("offset"==p||"parent"==p)||i&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||ne(p,u))||f.push(p);return f}function F(e,t){for(var r=e.length;r--;)if(ue(e[r][0],t))return r;return-1}function q(e,t,r){var n=t(e);return Xt(e)?n:o(n,r(e))}function U(e){return null==e?void 0===e?Ue:Re:Nt&&Nt in Object(e)?re(e):se(e)}function I(e){return me(e)&&U(e)==Pe}function Y(e,t,r,n,o){return e===t||(null==e||null==t||!me(e)&&!me(t)?e!==e&&t!==t:$(e,t,r,n,Y,o))}function $(e,t,r,n,o,i){var a=Xt(e),s=Xt(t),f=a?Ee:Gt(e),u=s?Ee:Gt(t);f=f==Pe?ze:f,u=u==Pe?ze:u;var p=f==ze,c=u==ze,l=f==u;if(l&&Jt(e)){if(!Jt(t))return!1;a=!0,p=!1}if(l&&!p)return i||(i=new L),a||Kt(e)?J(e,t,r,n,o,i):K(e,t,f,r,n,o,i);if(!(r&Oe)){var d=p&&_t.call(e,"__wrapped__"),h=c&&_t.call(t,"__wrapped__");if(d||h){var m=d?e.value():e,v=h?t.value():t;return i||(i=new L),o(m,v,r,n,i)}}return!!l&&(i||(i=new L),Q(e,t,r,n,o,i))}function G(e){if(!he(e)||ie(e))return!1;var t=le(e)?jt:nt;return t.test(fe(e))}function V(e){return me(e)&&de(e.length)&&!!it[U(e)]}function X(e){if(!ae(e))return kt(e);var t=[];for(var r in Object(e))_t.call(e,r)&&"constructor"!=r&&t.push(r);return t}function J(e,t,r,n,o,a){var s=r&Oe,u=e.length,p=t.length;if(u!=p&&!(s&&p>u))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var l=-1,d=!0,h=r&je?new A:void 0;for(a.set(e,t),a.set(t,e);++l<u;){var m=e[l],v=t[l];if(n)var b=s?n(v,m,l,t,e,a):n(m,v,l,e,t,a);if(void 0!==b){if(b)continue;d=!1;break}if(h){if(!i(t,function(e,t){if(!f(h,t)&&(m===e||o(m,e,r,n,a)))return h.push(t)})){d=!1;break}}else if(m!==v&&!o(m,v,r,n,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function K(e,t,r,n,o,i,a){switch(r){case $e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ye:return!(e.byteLength!=t.byteLength||!i(new Et(e),new Et(t)));case Me:case Ne:case Le:return ue(+e,+t);case Se:return e.name==t.name&&e.message==t.message;case We:case Fe:return e==t+"";case Ce:var s=p;case He:var f=n&Oe;if(s||(s=l),e.size!=t.size&&!f)return!1;var u=a.get(e);if(u)return u==t;n|=je,a.set(e,t);var c=J(s(e),s(t),n,o,i,a);return a.delete(e),c;case qe:if(Yt)return Yt.call(e)==Yt.call(t)}return!1}function Q(e,t,r,n,o,i){var a=r&Oe,s=Z(e),f=s.length,u=Z(t),p=u.length;if(f!=p&&!a)return!1;for(var c=f;c--;){var l=s[c];if(!(a?l in t:_t.call(t,l)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var h=!0;i.set(e,t),i.set(t,e);for(var m=a;++c<f;){l=s[c];var v=e[l],b=t[l];if(n)var y=a?n(b,v,l,t,e,i):n(v,b,l,e,t,i);if(!(void 0===y?v===b||o(v,b,r,n,i):y)){h=!1;break}m||(m="constructor"==l)}if(h&&!m){var g=e.constructor,_=t.constructor;g!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof g&&g instanceof g&&"function"==typeof _&&_ instanceof _)&&(h=!1)}return i.delete(e),i.delete(t),h}function Z(e){return q(e,ve,$t)}function ee(e,t){var r=e.__data__;return oe(t)?r["string"==typeof t?"string":"hash"]:r.map}function te(e,t){var r=u(e,t);return G(r)?r:void 0}function re(e){var t=_t.call(e,Nt),r=e[Nt];try{e[Nt]=void 0;var n=!0}catch(e){}var o=Ot.call(e);return n&&(t?e[Nt]=r:delete e[Nt]),o}function ne(e,t){return t=null==t?xe:t,!!t&&("number"==typeof e||ot.test(e))&&e>-1&&e%1==0&&e<t}function oe(e){var t="undefined"==typeof e?"undefined":ge(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ie(e){return!!wt&&wt in e}function ae(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||bt;return e===r}function se(e){return Ot.call(e)}function fe(e){if(null!=e){try{return gt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ue(e,t){return e===t||e!==e&&t!==t}function pe(e){return null!=e&&de(e.length)&&!le(e)}function ce(e,t){return Y(e,t)}function le(e){if(!he(e))return!1;var t=U(e);return t==Ae||t==ke||t==Te||t==Be}function de(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=xe}function he(e){var t="undefined"==typeof e?"undefined":ge(e);return null!=e&&("object"==t||"function"==t)}function me(e){return null!=e&&"object"==("undefined"==typeof e?"undefined":ge(e))}function ve(e){return pe(e)?H(e):X(e)}function be(){return[]}function ye(){return!1}var ge="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=200,we="__lodash_hash_undefined__",Oe=1,je=2,xe=9007199254740991,Pe="[object Arguments]",Ee="[object Array]",Te="[object AsyncFunction]",Me="[object Boolean]",Ne="[object Date]",Se="[object Error]",Ae="[object Function]",ke="[object GeneratorFunction]",Ce="[object Map]",Le="[object Number]",Re="[object Null]",ze="[object Object]",De="[object Promise]",Be="[object Proxy]",We="[object RegExp]",He="[object Set]",Fe="[object String]",qe="[object Symbol]",Ue="[object Undefined]",Ie="[object WeakMap]",Ye="[object ArrayBuffer]",$e="[object DataView]",Ge="[object Float32Array]",Ve="[object Float64Array]",Xe="[object Int8Array]",Je="[object Int16Array]",Ke="[object Int32Array]",Qe="[object Uint8Array]",Ze="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",rt=/[\\^$.*+?()[\]{}|]/g,nt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,it={};it[Ge]=it[Ve]=it[Xe]=it[Je]=it[Ke]=it[Qe]=it[Ze]=it[et]=it[tt]=!0,it[Pe]=it[Ee]=it[Ye]=it[Me]=it[$e]=it[Ne]=it[Se]=it[Ae]=it[Ce]=it[Le]=it[ze]=it[We]=it[He]=it[Fe]=it[Ie]=!1;var at="object"==("undefined"==typeof e?"undefined":ge(e))&&e&&e.Object===Object&&e,st="object"==("undefined"==typeof self?"undefined":ge(self))&&self&&self.Object===Object&&self,ft=at||st||Function("return this")(),ut="object"==ge(t)&&t&&!t.nodeType&&t,pt=ut&&"object"==ge(r)&&r&&!r.nodeType&&r,ct=pt&&pt.exports===ut,lt=ct&&at.process,dt=function(){try{return lt&&lt.binding&&lt.binding("util")}catch(e){}}(),ht=dt&&dt.isTypedArray,mt=Array.prototype,vt=Function.prototype,bt=Object.prototype,yt=ft["__core-js_shared__"],gt=vt.toString,_t=bt.hasOwnProperty,wt=function(){var e=/[^.]+$/.exec(yt&&yt.keys&&yt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ot=bt.toString,jt=RegExp("^"+gt.call(_t).replace(rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=ct?ft.Buffer:void 0,Pt=ft.Symbol,Et=ft.Uint8Array,Tt=bt.propertyIsEnumerable,Mt=mt.splice,Nt=Pt?Pt.toStringTag:void 0,St=Object.getOwnPropertySymbols,At=xt?xt.isBuffer:void 0,kt=c(Object.keys,Object),Ct=te(ft,"DataView"),Lt=te(ft,"Map"),Rt=te(ft,"Promise"),zt=te(ft,"Set"),Dt=te(ft,"WeakMap"),Bt=te(Object,"create"),Wt=fe(Ct),Ht=fe(Lt),Ft=fe(Rt),qt=fe(zt),Ut=fe(Dt),It=Pt?Pt.prototype:void 0,Yt=It?It.valueOf:void 0;d.prototype.clear=h,d.prototype.delete=m,d.prototype.get=v,d.prototype.has=b,d.prototype.set=y,g.prototype.clear=_,g.prototype.delete=w,g.prototype.get=O,g.prototype.has=j,g.prototype.set=x,P.prototype.clear=E,P.prototype.delete=T,P.prototype.get=M,P.prototype.has=N,P.prototype.set=S,A.prototype.add=A.prototype.push=k,A.prototype.has=C,L.prototype.clear=R,L.prototype.delete=z,L.prototype.get=D,L.prototype.has=B,L.prototype.set=W;var $t=St?function(e){return null==e?[]:(e=Object(e),n(St(e),function(t){return Tt.call(e,t)}))}:be,Gt=U;(Ct&&Gt(new Ct(new ArrayBuffer(1)))!=$e||Lt&&Gt(new Lt)!=Ce||Rt&&Gt(Rt.resolve())!=De||zt&&Gt(new zt)!=He||Dt&&Gt(new Dt)!=Ie)&&(Gt=function(e){var t=U(e),r=t==ze?e.constructor:void 0,n=r?fe(r):"";if(n)switch(n){case Wt:return $e;case Ht:return Ce;case Ft:return De;case qt:return He;case Ut:return Ie}return t});var Vt=I(function(){return arguments}())?I:function(e){return me(e)&&_t.call(e,"callee")&&!Tt.call(e,"callee")},Xt=Array.isArray,Jt=At||ye,Kt=ht?s(ht):V;r.exports=ce}).call(t,function(){return this}(),r(8)(e))},function(e,t){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}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"!=typeof t&&"function"!=typeof t?e:t}function s(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 f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=r(2),c=(n(p),r(3)),l=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"componentDidMount",value:function(){this.context.popper.setArrowNode((0,c.findDOMNode)(this))}},{key:"render",value:function(){var e=this.props,t=e.component,r=e.style,n=o(e,["component","style"]);return(0,p.createElement)(t,f({style:f({},this.context.popper.getArrowStyle(),r)},n))}}]),t}(p.Component);l.contextTypes={popper:p.PropTypes.object.isRequired},l.propTypes={component:p.PropTypes.any},l.defaultProps={component:"span",className:"popper__arrow"},t.default=l}])});
!function(a,f){"object"===i(t)&&"undefined"!=typeof e?e.exports=f():(r=f,o="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==o&&(e.exports=o)))}(void 0,function(){"use strict";function e(e){var t=e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?t:window.document.documentElement}function t(e,t){if(1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n}function n(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function r(e){if(!e||["HTML","BODY","#document"].indexOf(e.nodeName)!==-1)return window.document.body;var o=t(e),i=o.overflow,a=o.overflowX,f=o.overflowY;return/(auto|scroll)/.test(i+f+a)?e:r(n(e))}function o(e){var r=e.nodeName;return"BODY"!==r&&"HTML"!==r&&("fixed"===t(e,"position")||o(n(e)))}function i(t){var n=e(t),r=o(n);return r?"fixed":"absolute"}function a(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return Number(e["border"+n+"Width"].split("px")[0])+Number(e["border"+r+"Width"].split("px")[0])}function f(e){var n=navigator.appVersion.indexOf("MSIE 10")!==-1,r=void 0;if(n)try{r=e.getBoundingClientRect()}catch(e){r={}}else r=e.getBoundingClientRect();var o={left:r.left,top:r.top,right:r.right,bottom:r.bottom,width:r.right-r.left,height:r.bottom-r.top};if("HTML"===e.nodeName&&n){var i=window.document.documentElement,f=i.scrollTop,u=i.scrollLeft;o.top-=f,o.bottom-=f,o.left-=u,o.right-=u}var s=r.width-(e.clientWidth||r.right-r.left),c=r.height-(e.clientHeight||r.bottom-r.top);if(s||c){var p=t(e);s-=a(p,"x"),c-=a(p,"y")}return o.right-=s,o.width-=s,o.bottom-=c,o.height-=c,o}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=window.document.documentElement,i=window.document.scrollingElement||o;return i[n]}return e[n]}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=u(t,"top"),o=u(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function c(n,o){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=r(o),c=f(n),p=f(o),l={top:c.top-p.top,left:c.left-p.left,bottom:c.top-p.top+c.height,right:c.left-p.left+c.width,width:c.width,height:c.height};i&&!a?l=s(l,u,!0):e(n).contains(u)&&"BODY"!==u.nodeName&&(l=s(l,o));var d=t(o),h=Number(d.borderTopWidth.split("px")[0]),y=Number(d.borderLeftWidth.split("px")[0]);return l.top-=h,l.bottom-=h,l.left-=y,l.right-=y,l}function p(){var e=window.document.body,t=window.document.documentElement;return{height:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight),width:Math.max(e.scrollWidth,e.offsetWidth,t.clientWidth,t.scrollWidth,t.offsetWidth)}}function l(e){var t=void 0;if("HTML"===e.nodeName){var n=p(),r=n.width,o=n.height;t={width:r,height:o,left:0,top:0}}else t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function d(t){var n=l(t);if("HTML"!==t.nodeName){var r=e(t),o=d(r),i={width:n.offsetWidth,height:n.offsetHeight,left:n.left+o.left,top:n.top+o.top,right:n.right-o.right,bottom:n.bottom-o.bottom};return i}return n}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",o=r(e),i=u(o,t);return["BODY","HTML"].indexOf(o.nodeName)===-1?i+h(n(o),t):i}function y(t,a,f){var u={top:0,left:0},s=e(t);if("viewport"===f){var l=d(s),y=l.left,v=l.top,m=window.document.documentElement,b=m.clientWidth,g=m.clientHeight;if("fixed"===i(t))u.right=b,u.bottom=g;else{var w=h(t,"left"),_=h(t,"top");u={top:0-v,right:b-y+w,bottom:g-v+_,left:0-y}}}else{var O=void 0;if(O="scrollParent"===f?r(n(t)):"window"===f?window.document.body:f,"BODY"===O.nodeName){var x=p(),j=x.height,E=x.width;u.right=E,u.bottom=j}else u=c(O,s,o(t))}return u.left+=a,u.top+=a,u.right-=a,u.bottom-=a,u}function v(e,t,n){if(e.indexOf("auto")===-1)return e;var r=y(n,0,"scrollParent"),o={top:t.top-r.top,right:r.right-t.right,bottom:r.bottom-t.bottom,left:t.left-r.left},i=Object.keys(o).sort(function(e,t){return o[t]-o[e]})[0],a=e.split("-")[1];return i+(a?"-"+a:"")}function m(e){var t=!1,n=0,r=document.createElement("span"),o=new MutationObserver(function(){e(),t=!1});return o.observe(r,{attributes:!0}),function(){t||(t=!0,r.setAttribute("x-index",n),n+=1)}}function b(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Z))}}function g(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function w(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=g(e,function(e){return e[t]===n});return e.indexOf(r)}function _(e){return ae({},e,{right:e.left+e.width,bottom:e.top+e.height})}function O(e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight),o={width:e.offsetWidth+r,height:e.offsetHeight+n};return o}function x(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function j(e,t,n,r){r=r.split("-")[0];var o=O(t),i={position:e,width:o.width,height:o.height},a=["right","left"].indexOf(r)!==-1,f=a?"top":"left",u=a?"left":"top",s=a?"height":"width",c=a?"width":"height";return i[f]=n[f]+n[s]/2-o[s]/2,r===u?i[u]=n[u]-o[c]:i[u]=n[x(u)],i}function E(t,n,r){var o="fixed"===t.position,i=t.isParentTransformed,a=e(o&&i?r:n);return c(r,a,o,i)}function T(e){for(var t=[!1,"ms","webkit","moz","o"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length-1;r++){var o=t[r],i=o?""+o+n:e;if("undefined"!=typeof window.document.body.style[i])return i}return null}function P(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function S(e,t){return e.some(function(e){var n=e.name,r=e.enabled;return r&&n===t})}function N(e,t,n){var r=g(e,function(e){var n=e.name;return n===t});return!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order})}function A(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function R(e){return"BODY"!==e.nodeName&&("none"!==t(e,"transform")||(n(e)?R(n(e)):e))}function k(e,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function M(e,t,n){var r=void 0===n?e:e.slice(0,w(e,"name",n));return r.forEach(function(e){e.enabled&&P(e.function)&&(t=e.function(t,e))}),t}function L(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function C(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&A(t[n])&&(r="px"),e.style[n]=t[n]+r})}function D(e,t,n,o){var i="BODY"===e.nodeName,a=i?window:e;a.addEventListener(t,n,{passive:!0}),i||D(r(a.parentNode),t,n,o),o.push(a)}function z(e,t,n,o){n.updateBound=o,window.addEventListener("resize",n.updateBound,{passive:!0});var i=r(e);return D(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function B(e,t){var n={position:e.offsets.popper.position},r={"x-placement":e.placement},o=Math.round(e.offsets.popper.left),i=Math.round(e.offsets.popper.top),a=T("transform");return t.gpuAcceleration&&a?(n[a]="translate3d("+o+"px, "+i+"px, 0)",n.top=0,n.left=0,n.willChange="transform"):(n.left=o,n.top=i,n.willChange="top, left"),C(e.instance.popper,ae({},n,e.styles)),L(e.instance.popper,ae({},r,e.attributes)),e.offsets.arrow&&C(e.arrowElement,e.offsets.arrow),e}function I(e,t,n,r,o){var i=E(o,t,e);return n.placement=v(n.placement,i,t),t.setAttribute("x-placement",n.placement),n}function W(e,t){if(!N(e.instance.modifiers,"arrow","keepTogether"))return console.warn("WARNING: `keepTogether` modifier is required by arrow modifier in order to work, be sure to include it before `arrow`!"),e;var n=t.element;if("string"==typeof n){if(n=e.instance.popper.querySelector(n),!n)return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=_(e.offsets.popper),i=e.offsets.reference,a=["left","right"].indexOf(r)!==-1,f=a?"height":"width",u=a?"top":"left",s=a?"left":"top",c=a?"bottom":"right",p=O(n)[f];i[c]-p<o[u]&&(e.offsets.popper[u]-=o[u]-(i[c]-p)),i[u]+p>o[c]&&(e.offsets.popper[u]+=i[u]+p-o[c]);var l=i[u]+i[f]/2-p/2,d=l-_(e.offsets.popper)[u];return d=Math.max(Math.min(o[f]-p,d),0),e.arrowElement=n,e.offsets.arrow={},e.offsets.arrow[u]=d,e.offsets.arrow[s]="",e}function F(e){return"end"===e?"start":"start"===e?"end":e}function H(e,t){if(S(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=y(e.instance.popper,t.padding,t.boundariesElement),r=e.placement.split("-")[0],o=x(r),i=e.placement.split("-")[1]||"",a=[];return a="flip"===t.behavior?[r,o]:t.behavior,a.forEach(function(f,u){if(r!==f||a.length===u+1)return e;r=e.placement.split("-")[0],o=x(r);var s=_(e.offsets.popper),c=e.offsets.reference,p=Math.floor,l="left"===r&&p(s.right)>p(c.left)||"right"===r&&p(s.left)<p(c.right)||"top"===r&&p(s.bottom)>p(c.top)||"bottom"===r&&p(s.top)<p(c.bottom),d=p(s.left)<p(n.left),h=p(s.right)>p(n.right),y=p(s.top)<p(n.top),v=p(s.bottom)>p(n.bottom),m="left"===r&&d||"right"===r&&h||"top"===r&&y||"bottom"===r&&v,b=["top","bottom"].indexOf(r)!==-1,g=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&h||!b&&"start"===i&&y||!b&&"end"===i&&v);(l||m||g)&&(e.flipped=!0,(l||m)&&(r=a[u+1]),g&&(i=F(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=j(e.instance.state.position,e.instance.popper,e.offsets.reference,e.placement),e=M(e.instance.modifiers,e,"flip"))}),e}function q(e){var t=_(e.offsets.popper),n=e.offsets.reference,r=e.placement.split("-")[0],o=Math.floor,i=["top","bottom"].indexOf(r)!==-1,a=i?"right":"bottom",f=i?"left":"top",u=i?"width":"height";return t[a]<o(n[f])&&(e.offsets.popper[f]=o(n[f])-t[u]),t[f]>o(n[a])&&(e.offsets.popper[f]=o(n[a])),e}function U(e,t){var n=e.placement,r=e.offsets.popper,o=void 0;return A(t.offset)?o=[t.offset,0]:(o=t.offset.split(" "),o=o.map(function(t,r){var o=t.match(/(\d*\.?\d*)(.*)/),i=+o[1],a=o[2],f=n.indexOf("right")!==-1||n.indexOf("left")!==-1;1===r&&(f=!f);var u=f?"height":"width";if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=e.offsets.popper;break;case"%":case"$r":default:s=e.offsets.reference}var c=_(s),p=c[u];return p/100*i}if("vh"===a||"vw"===a){var l=void 0;return l="vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),l/100*i}return"px"===a?+i:+t})),e.placement.indexOf("left")!==-1?(r.top+=o[0],r.left-=o[1]||0):e.placement.indexOf("right")!==-1?(r.top+=o[0],r.left+=o[1]||0):e.placement.indexOf("top")!==-1?(r.left+=o[0],r.top-=o[1]||0):e.placement.indexOf("bottom")!==-1&&(r.left+=o[0],r.top+=o[1]||0),e}function V(t,n){var r=n.boundariesElement||e(t.instance.popper),o=y(t.instance.popper,n.padding,r);n.boundaries=o;var i=n.priority,a=_(t.offsets.popper),f={primary:function(e){var t=a[e];return a[e]<o[e]&&!n.escapeWithReference&&(t=Math.max(a[e],o[e])),ie({},e,t)},secondary:function(e){var t="right"===e?"left":"top",r=a[t];return a[e]>o[e]&&!n.escapeWithReference&&(r=Math.min(a[t],o[e]-("right"===e?a.width:a.height))),ie({},t,r)}};return i.forEach(function(e){var t=["left","top"].indexOf(e)!==-1?"primary":"secondary";a=ae({},a,f[t](e))}),t.offsets.popper=a,t}function Y(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets.reference,i=_(e.offsets.popper),a=["bottom","top"].indexOf(n)!==-1,f=a?"left":"top",u=a?"width":"height",s={start:ie({},f,o[f]),end:ie({},f,o[f]+o[u]-i[u])};e.offsets.popper=ae({},i,s[r])}return e}function $(e){if(!N(e.instance.modifiers,"hide","preventOverflow"))return console.warn("WARNING: preventOverflow modifier is required by hide modifier in order to work, be sure to include it before hide!"),e;var t=e.offsets.reference,n=g(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function G(e){var t=e.placement,n=t.split("-")[0],r=_(e.offsets.popper),o=_(e.offsets.reference),i=["left","right"].indexOf(n)!==-1,a=["top","left"].indexOf(n)===-1;return r[i?"left":"top"]=o[t]-(a?r[i?"width":"height"]:0),e.placement=x(t),e.offsets.popper=_(r),e}for(var J=["native code","[object MutationObserverConstructor]"],X=function(e){return J.some(function(t){return(e||"").toString().indexOf(t)>-1})},K="undefined"!=typeof window,Q=["Edge","Trident","Firefox"],Z=0,ee=0;ee<Q.length;ee+=1)if(K&&navigator.userAgent.indexOf(Q[ee])>=0){Z=1;break}var te=K&&X(window.MutationObserver),ne=te?m:b,re=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},oe=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ie=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fe={computeAutoPlacement:v,debounce:ne,findIndex:w,getBordersSize:a,getBoundaries:y,getBoundingClientRect:f,getClientRect:_,getOffsetParent:e,getOffsetRect:l,getOffsetRectRelativeToCustomParent:c,getOuterSizes:O,getParentNode:n,getPopperOffsets:j,getPosition:i,getReferenceOffsets:E,getScroll:u,getScrollParent:r,getStyleComputedProperty:t,getSupportedPropertyName:T,getTotalScroll:h,getWindowSizes:p,includeScroll:s,isFixed:o,isFunction:P,isModifierEnabled:S,isModifierRequired:N,isNative:X,isNumeric:A,isTransformed:R,removeEventListeners:k,runModifiers:M,setAttributes:L,setStyles:C,setupEventListeners:z},ue={shift:{order:100,enabled:!0,function:Y},offset:{order:200,enabled:!0,function:U,offset:0},preventOverflow:{order:300,enabled:!0,function:V,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,function:q},arrow:{order:500,enabled:!0,function:W,element:"[x-arrow]"},flip:{order:600,enabled:!0,function:H,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,function:G},hide:{order:800,enabled:!0,function:$},applyStyle:{order:900,enabled:!0,gpuAcceleration:!0,function:B,onLoad:I}},se={placement:"bottom",eventsEnabled:!0,onCreate:function(){},onUpdate:function(){},modifiers:ue},Popper=function(){function Popper(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};re(this,Popper),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=ne(this.update.bind(this)),this.options=ae({},Popper.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e.jquery?e[0]:e,this.popper=t.jquery?t[0]:t,this.modifiers=Object.keys(Popper.Defaults.modifiers).map(function(e){return ae({name:e},Popper.Defaults.modifiers[e])}),this.modifiers=this.modifiers.map(function(e){var t=r.modifiers&&r.modifiers[e.name]||{};return ae({},e,t)}),r.modifiers&&(this.options.modifiers=ae({},Popper.Defaults.modifiers,r.modifiers),Object.keys(r.modifiers).forEach(function(e){if(void 0===Popper.Defaults.modifiers[e]){var t=r.modifiers[e];t.name=e,n.modifiers.push(t)}})),this.state.position=i(this.reference),this.modifiers=this.modifiers.sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&P(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.state.isParentTransformed=R(this.popper.parentNode),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return oe(Popper,[{key:"update",value:function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};this.state.position=i(this.reference),C(this.popper,{position:this.state.position}),e.offsets.reference=E(this.state,this.popper,this.reference),e.placement=v(this.options.placement,e.offsets.reference,this.popper),e.originalPlacement=this.options.placement,e.offsets.popper=j(this.state,this.popper,e.offsets.reference,e.placement),e=M(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}},{key:"destroy",value:function(){return this.state.isDestroyed=!0,S(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[T("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}},{key:"enableEventListeners",value:function(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}},{key:"disableEventListeners",value:function(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=k(this.reference,this.state))}}]),Popper}();return Popper.Utils=fe,Popper.placements=["auto","auto-start","auto-end","top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],Popper.Defaults=se,Popper})},function(e,t,n){(function(e,n){"use strict";function r(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function o(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function i(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function a(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function f(e){return function(t){return e(t)}}function u(e,t){return e.has(t)}function s(e,t){return null==e?void 0:e[t]}function c(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function p(e,t){return function(n){return e(t(n))}}function l(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function h(){this.__data__=Bt?Bt(null):{},this.size=0}function y(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function v(e){var t=this.__data__;if(Bt){var n=t[e];return n===_e?void 0:n}return wt.call(t,e)?t[e]:void 0}function m(e){var t=this.__data__;return Bt?void 0!==t[e]:wt.call(t,e)}function b(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Bt&&void 0===t?_e:t,this}function g(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function w(){this.__data__=[],this.size=0}function _(e){var t=this.__data__,n=F(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():St.call(t,n,1),--this.size,!0}function O(e){var t=this.__data__,n=F(t,e);return n<0?void 0:t[n][1]}function x(e){return F(this.__data__,e)>-1}function j(e,t){var n=this.__data__,r=F(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function E(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function T(){this.size=0,this.__data__={hash:new d,map:new(Lt||g),string:new d}}function P(e){var t=ee(this,e).delete(e);return this.size-=t?1:0,t}function S(e){return ee(this,e).get(e)}function N(e){return ee(this,e).has(e)}function A(e,t){var n=ee(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function R(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new E;++t<n;)this.add(e[t])}function k(e){return this.__data__.set(e,_e),this}function M(e){return this.__data__.has(e)}function L(e){var t=this.__data__=new g(e);this.size=t.size}function C(){this.__data__=new g,this.size=0}function D(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function z(e){return this.__data__.get(e)}function B(e){return this.__data__.has(e)}function I(e,t){var n=this.__data__;if(n instanceof g){var r=n.__data__;if(!Lt||r.length<we-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new E(r)}return n.set(e,t),this.size=n.size,this}function W(e,t){var n=Jt(e),r=!n&&Gt(e),o=!n&&!r&&Xt(e),i=!n&&!r&&!o&&Kt(e),f=n||r||o||i,u=f?a(e.length,String):[],s=u.length;for(var c in e)!t&&!wt.call(e,c)||f&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||re(c,s))||u.push(c);return u}function F(e,t){for(var n=e.length;n--;)if(se(e[n][0],t))return n;return-1}function H(e,t,n){var r=t(e);return Jt(e)?r:o(r,n(e))}function q(e){return null==e?void 0===e?qe:Ce:Nt&&Nt in Object(e)?ne(e):fe(e)}function U(e){return ye(e)&&q(e)==Ee}function V(e,t,n,r,o){return e===t||(null==e||null==t||!ye(e)&&!ye(t)?e!==e&&t!==t:Y(e,t,n,r,V,o))}function Y(e,t,n,r,o,i){var a=Jt(e),f=Jt(t),u=a?Te:$t(e),s=f?Te:$t(t);u=u==Ee?De:u,s=s==Ee?De:s;var c=u==De,p=s==De,l=u==s;if(l&&Xt(e)){if(!Xt(t))return!1;a=!0,c=!1}if(l&&!c)return i||(i=new L),a||Kt(e)?X(e,t,n,r,o,i):K(e,t,u,n,r,o,i);if(!(n&Oe)){var d=c&&wt.call(e,"__wrapped__"),h=p&&wt.call(t,"__wrapped__");if(d||h){var y=d?e.value():e,v=h?t.value():t;return i||(i=new L),o(y,v,n,r,i)}}return!!l&&(i||(i=new L),Q(e,t,n,r,o,i))}function $(e){if(!he(e)||ie(e))return!1;var t=le(e)?xt:rt;return t.test(ue(e))}function G(e){return ye(e)&&de(e.length)&&!!it[q(e)]}function J(e){if(!ae(e))return kt(e);var t=[];for(var n in Object(e))wt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function X(e,t,n,r,o,a){var f=n&Oe,s=e.length,c=t.length;if(s!=c&&!(f&&c>s))return!1;var p=a.get(e);if(p&&a.get(t))return p==t;var l=-1,d=!0,h=n&xe?new R:void 0;for(a.set(e,t),a.set(t,e);++l<s;){var y=e[l],v=t[l];if(r)var m=f?r(v,y,l,t,e,a):r(y,v,l,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!i(t,function(e,t){if(!u(h,t)&&(y===e||o(y,e,n,r,a)))return h.push(t)})){d=!1;break}}else if(y!==v&&!o(y,v,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function K(e,t,n,r,o,i,a){switch(n){case Ye:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ve:return!(e.byteLength!=t.byteLength||!i(new Tt(e),new Tt(t)));case Se:case Ne:case Le:return se(+e,+t);case Ae:return e.name==t.name&&e.message==t.message;case Ie:case Fe:return e==t+"";case Me:var f=c;case We:var u=r&Oe;if(f||(f=l),e.size!=t.size&&!u)return!1;var s=a.get(e);if(s)return s==t;r|=xe,a.set(e,t);var p=X(f(e),f(t),r,o,i,a);return a.delete(e),p;case He:if(Vt)return Vt.call(e)==Vt.call(t)}return!1}function Q(e,t,n,r,o,i){var a=n&Oe,f=Z(e),u=f.length,s=Z(t),c=s.length;if(u!=c&&!a)return!1;for(var p=u;p--;){var l=f[p];if(!(a?l in t:wt.call(t,l)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var h=!0;i.set(e,t),i.set(t,e);for(var y=a;++p<u;){l=f[p];var v=e[l],m=t[l];if(r)var b=a?r(m,v,l,t,e,i):r(v,m,l,e,t,i);if(!(void 0===b?v===m||o(v,m,n,r,i):b)){h=!1;break}y||(y="constructor"==l)}if(h&&!y){var g=e.constructor,w=t.constructor;g!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w)&&(h=!1)}return i.delete(e),i.delete(t),h}function Z(e){return H(e,ve,Yt)}function ee(e,t){var n=e.__data__;return oe(t)?n["string"==typeof t?"string":"hash"]:n.map}function te(e,t){var n=s(e,t);return $(n)?n:void 0}function ne(e){var t=wt.call(e,Nt),n=e[Nt];try{e[Nt]=void 0;var r=!0}catch(e){}var o=Ot.call(e);return r&&(t?e[Nt]=n:delete e[Nt]),o}function re(e,t){return t=null==t?je:t,!!t&&("number"==typeof e||ot.test(e))&&e>-1&&e%1==0&&e<t}function oe(e){var t="undefined"==typeof e?"undefined":ge(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ie(e){return!!_t&&_t in e}function ae(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||mt;return e===n}function fe(e){return Ot.call(e)}function ue(e){if(null!=e){try{return gt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function se(e,t){return e===t||e!==e&&t!==t}function ce(e){return null!=e&&de(e.length)&&!le(e)}function pe(e,t){return V(e,t)}function le(e){if(!he(e))return!1;var t=q(e);return t==Re||t==ke||t==Pe||t==Be}function de(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=je}function he(e){var t="undefined"==typeof e?"undefined":ge(e);return null!=e&&("object"==t||"function"==t)}function ye(e){return null!=e&&"object"==("undefined"==typeof e?"undefined":ge(e))}function ve(e){return ce(e)?W(e):J(e)}function me(){return[]}function be(){return!1}var ge="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},we=200,_e="__lodash_hash_undefined__",Oe=1,xe=2,je=9007199254740991,Ee="[object Arguments]",Te="[object Array]",Pe="[object AsyncFunction]",Se="[object Boolean]",Ne="[object Date]",Ae="[object Error]",Re="[object Function]",ke="[object GeneratorFunction]",Me="[object Map]",Le="[object Number]",Ce="[object Null]",De="[object Object]",ze="[object Promise]",Be="[object Proxy]",Ie="[object RegExp]",We="[object Set]",Fe="[object String]",He="[object Symbol]",qe="[object Undefined]",Ue="[object WeakMap]",Ve="[object ArrayBuffer]",Ye="[object DataView]",$e="[object Float32Array]",Ge="[object Float64Array]",Je="[object Int8Array]",Xe="[object Int16Array]",Ke="[object Int32Array]",Qe="[object Uint8Array]",Ze="[object Uint8ClampedArray]",et="[object Uint16Array]",tt="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,rt=/^\[object .+?Constructor\]$/,ot=/^(?:0|[1-9]\d*)$/,it={};it[$e]=it[Ge]=it[Je]=it[Xe]=it[Ke]=it[Qe]=it[Ze]=it[et]=it[tt]=!0,it[Ee]=it[Te]=it[Ve]=it[Se]=it[Ye]=it[Ne]=it[Ae]=it[Re]=it[Me]=it[Le]=it[De]=it[Ie]=it[We]=it[Fe]=it[Ue]=!1;var at="object"==("undefined"==typeof e?"undefined":ge(e))&&e&&e.Object===Object&&e,ft="object"==("undefined"==typeof self?"undefined":ge(self))&&self&&self.Object===Object&&self,ut=at||ft||Function("return this")(),st="object"==ge(t)&&t&&!t.nodeType&&t,ct=st&&"object"==ge(n)&&n&&!n.nodeType&&n,pt=ct&&ct.exports===st,lt=pt&&at.process,dt=function(){try{return lt&&lt.binding&&lt.binding("util")}catch(e){}}(),ht=dt&&dt.isTypedArray,yt=Array.prototype,vt=Function.prototype,mt=Object.prototype,bt=ut["__core-js_shared__"],gt=vt.toString,wt=mt.hasOwnProperty,_t=function(){var e=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ot=mt.toString,xt=RegExp("^"+gt.call(wt).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jt=pt?ut.Buffer:void 0,Et=ut.Symbol,Tt=ut.Uint8Array,Pt=mt.propertyIsEnumerable,St=yt.splice,Nt=Et?Et.toStringTag:void 0,At=Object.getOwnPropertySymbols,Rt=jt?jt.isBuffer:void 0,kt=p(Object.keys,Object),Mt=te(ut,"DataView"),Lt=te(ut,"Map"),Ct=te(ut,"Promise"),Dt=te(ut,"Set"),zt=te(ut,"WeakMap"),Bt=te(Object,"create"),It=ue(Mt),Wt=ue(Lt),Ft=ue(Ct),Ht=ue(Dt),qt=ue(zt),Ut=Et?Et.prototype:void 0,Vt=Ut?Ut.valueOf:void 0;d.prototype.clear=h,d.prototype.delete=y,d.prototype.get=v,d.prototype.has=m,d.prototype.set=b,g.prototype.clear=w,g.prototype.delete=_,g.prototype.get=O,g.prototype.has=x,g.prototype.set=j,E.prototype.clear=T,E.prototype.delete=P,E.prototype.get=S,E.prototype.has=N,E.prototype.set=A,R.prototype.add=R.prototype.push=k,R.prototype.has=M,L.prototype.clear=C,L.prototype.delete=D,L.prototype.get=z,L.prototype.has=B,L.prototype.set=I;var Yt=At?function(e){return null==e?[]:(e=Object(e),r(At(e),function(t){return Pt.call(e,t)}))}:me,$t=q;(Mt&&$t(new Mt(new ArrayBuffer(1)))!=Ye||Lt&&$t(new Lt)!=Me||Ct&&$t(Ct.resolve())!=ze||Dt&&$t(new Dt)!=We||zt&&$t(new zt)!=Ue)&&($t=function(e){var t=q(e),n=t==De?e.constructor:void 0,r=n?ue(n):"";if(r)switch(r){case It:return Ye;case Wt:return Me;case Ft:return ze;case Ht:return We;case qt:return Ue}return t});var Gt=U(function(){return arguments}())?U:function(e){return ye(e)&&wt.call(e,"callee")&&!Pt.call(e,"callee")},Jt=Array.isArray,Xt=Rt||be,Kt=ht?f(ht):G;n.exports=pe}).call(t,function(){return this}(),n(16)(e))},function(e,t){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},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=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(2),f=(r(a),n(3)),u=r(f),s=function(e,t){var n=e.tag,r=void 0===n?"span":n,f=e.innerRef,u=e.style,s=e.children,c=o(e,["tag","innerRef","style","children"]),p=t.popper,l=function(e){return p.setArrowNode(e)},d=i({},p.getArrowStyle(),u);return"function"==typeof s?s({arrowRef:l,arrowStyle:d}):(0,a.createElement)(r,i({ref:function(e){l(e),"function"==typeof f&&f(e)},style:d},c),s)};s.contextTypes={popper:u.default.object.isRequired},s.propTypes={tag:u.default.string,innerRef:u.default.func,children:u.default.oneOfType([u.default.node,u.default.func])},t.default=s}])});

@@ -9,4 +9,2 @@ 'use strict';

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _react = require('react');

@@ -16,4 +14,6 @@

var _reactDom = require('react-dom');
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -23,49 +23,42 @@

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Arrow = function Arrow(props, context) {
var _props$tag = props.tag,
tag = _props$tag === undefined ? 'span' : _props$tag,
innerRef = props.innerRef,
style = props.style,
children = props.children,
restProps = _objectWithoutProperties(props, ['tag', 'innerRef', 'style', 'children']);
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
var popper = context.popper;
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var arrowRef = function arrowRef(node) {
return popper.setArrowNode(node);
};
var arrowStyle = _extends({}, popper.getArrowStyle(), style);
var Arrow = function (_Component) {
_inherits(Arrow, _Component);
function Arrow() {
_classCallCheck(this, Arrow);
return _possibleConstructorReturn(this, (Arrow.__proto__ || Object.getPrototypeOf(Arrow)).apply(this, arguments));
if (typeof children === 'function') {
return children({ arrowRef: arrowRef, arrowStyle: arrowStyle });
}
_createClass(Arrow, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.context.popper.setArrowNode((0, _reactDom.findDOMNode)(this));
}
}, {
key: 'render',
value: function render() {
var _props = this.props,
component = _props.component,
style = _props.style,
restProps = _objectWithoutProperties(_props, ['component', 'style']);
return (0, _react.createElement)(tag, _extends({
ref: function ref(node) {
arrowRef(node);
if (typeof innerRef === 'function') {
innerRef(node);
}
},
style: arrowStyle
}, restProps), children);
};
return (0, _react.createElement)(component, _extends({
style: _extends({}, this.context.popper.getArrowStyle(), style)
}, restProps));
}
}]);
return Arrow;
}(_react.Component);
Arrow.contextTypes = {
popper: _react.PropTypes.object.isRequired
popper: _propTypes2.default.object.isRequired
};
Arrow.propTypes = {
component: _react.PropTypes.any
tag: _propTypes2.default.string,
innerRef: _propTypes2.default.func,
children: _propTypes2.default.oneOfType([_propTypes2.default.node, _propTypes2.default.func])
};
Arrow.defaultProps = {
component: 'span',
className: 'popper__arrow'
};
exports.default = Arrow;

@@ -13,5 +13,5 @@ 'use strict';

var _reactDom = require('react-dom');
var _propTypes = require('prop-types');
var _reactDom2 = _interopRequireDefault(_reactDom);
var _propTypes2 = _interopRequireDefault(_propTypes);

@@ -63,8 +63,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _props = this.props,
component = _props.component,
tag = _props.tag,
children = _props.children,
restProps = _objectWithoutProperties(_props, ['component', 'children']);
restProps = _objectWithoutProperties(_props, ['tag', 'children']);
if (component) {
return (0, _react.createElement)(component, restProps, children);
if (tag !== false) {
return (0, _react.createElement)(tag, restProps, children);
} else {

@@ -80,10 +80,10 @@ return children;

Manager.childContextTypes = {
popperManager: _react.PropTypes.object.isRequired
popperManager: _propTypes2.default.object.isRequired
};
Manager.propTypes = {
component: _react.PropTypes.any
tag: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.bool])
};
Manager.defaultProps = {
component: 'div'
tag: 'div'
};
exports.default = Manager;

@@ -15,5 +15,5 @@ 'use strict';

var _reactDom = require('react-dom');
var _propTypes = require('prop-types');
var _reactDom2 = _interopRequireDefault(_reactDom);
var _propTypes2 = _interopRequireDefault(_propTypes);

@@ -67,2 +67,3 @@ var _popper = require('popper.js');

}
return data;
}

@@ -146,3 +147,5 @@ }, _this._getPopperStyle = function () {

this._destroyPopper();
this._createPopper();
if (this._node) {
this._createPopper();
}
}

@@ -167,3 +170,3 @@ }, {

this._popper = new _popper2.default(this._getTargetNode(), (0, _reactDom.findDOMNode)(this), {
this._popper = new _popper2.default(this._getTargetNode(), this._node, {
placement: placement,

@@ -186,6 +189,9 @@ eventsEnabled: eventsEnabled,

}, {
key: '_getProps',
value: function _getProps() {
key: 'render',
value: function render() {
var _this2 = this;
var _props2 = this.props,
component = _props2.component,
tag = _props2.tag,
innerRef = _props2.innerRef,
placement = _props2.placement,

@@ -196,22 +202,24 @@ eventsEnabled = _props2.eventsEnabled,

children = _props2.children,
restProps = _objectWithoutProperties(_props2, ['component', 'placement', 'eventsEnabled', 'modifiers', 'style', 'children']);
restProps = _objectWithoutProperties(_props2, ['tag', 'innerRef', 'placement', 'eventsEnabled', 'modifiers', 'style', 'children']);
return _extends({
style: _extends({}, this._getPopperStyle(), style),
'data-placement': this._getPopperPlacement()
}, restProps);
}
}, {
key: 'render',
value: function render() {
var _props3 = this.props,
component = _props3.component,
children = _props3.children;
var popperRef = function popperRef(node) {
_this2._node = node;
};
var popperStyle = _extends({}, this._getPopperStyle(), style);
var popperPlacement = this._getPopperPlacement();
var props = this._getProps();
if (typeof children === 'function') {
return children(props);
} else {
return (0, _react.createElement)(component, props, children);
return children({ popperRef: popperRef, popperStyle: popperStyle, popperPlacement: popperPlacement });
}
return (0, _react.createElement)(tag, _extends({
ref: function ref(node) {
popperRef(node);
if (typeof innerRef === 'function') {
innerRef(node);
}
},
style: popperStyle,
'data-placement': popperPlacement
}, restProps), children);
}

@@ -224,20 +232,21 @@ }]);

Popper.contextTypes = {
popperManager: _react.PropTypes.object.isRequired
popperManager: _propTypes2.default.object.isRequired
};
Popper.childContextTypes = {
popper: _react.PropTypes.object.isRequired
popper: _propTypes2.default.object.isRequired
};
Popper.propTypes = {
component: _react.PropTypes.any,
placement: _react.PropTypes.oneOf(_popper2.default.placements),
eventsEnabled: _react.PropTypes.bool,
modifiers: _react.PropTypes.object
tag: _propTypes2.default.string,
innerRef: _propTypes2.default.func,
placement: _propTypes2.default.oneOf(_popper2.default.placements),
eventsEnabled: _propTypes2.default.bool,
modifiers: _propTypes2.default.object,
children: _propTypes2.default.oneOfType([_propTypes2.default.node, _propTypes2.default.func])
};
Popper.defaultProps = {
component: 'div',
tag: 'div',
placement: 'bottom',
eventsEnabled: true,
modifiers: {},
className: 'popper'
modifiers: {}
};
exports.default = Popper;

@@ -7,3 +7,3 @@ 'use strict';

var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

@@ -14,4 +14,6 @@ var _react = require('react');

var _reactDom = require('react-dom');
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -21,50 +23,39 @@

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Target = function Target(props, context) {
var _props$tag = props.tag,
tag = _props$tag === undefined ? 'div' : _props$tag,
innerRef = props.innerRef,
children = props.children,
restProps = _objectWithoutProperties(props, ['tag', 'innerRef', 'children']);
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
var popperManager = context.popperManager;
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var targetRef = function targetRef(node) {
return popperManager.setTargetNode(node);
};
var Target = function (_Component) {
_inherits(Target, _Component);
function Target() {
_classCallCheck(this, Target);
return _possibleConstructorReturn(this, (Target.__proto__ || Object.getPrototypeOf(Target)).apply(this, arguments));
if (typeof children === 'function') {
return children({ targetRef: targetRef });
}
_createClass(Target, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.context.popperManager.setTargetNode((0, _reactDom.findDOMNode)(this));
}
}, {
key: 'render',
value: function render() {
var _props = this.props,
component = _props.component,
children = _props.children,
restProps = _objectWithoutProperties(_props, ['component', 'children']);
if (component) {
return (0, _react.createElement)(component, restProps, children);
} else {
return children;
return (0, _react.createElement)(tag, _extends({
ref: function ref(node) {
targetRef(node);
if (typeof innerRef === 'function') {
innerRef(node);
}
}
}]);
}, restProps), children);
};
return Target;
}(_react.Component);
Target.contextTypes = {
popperManager: _react.PropTypes.object.isRequired
popperManager: _propTypes2.default.object.isRequired
};
Target.propTypes = {
component: _react.PropTypes.any
tag: _propTypes2.default.string,
innerRef: _propTypes2.default.func,
children: _propTypes2.default.oneOfType([_propTypes2.default.node, _propTypes2.default.func])
};
Target.defaultProps = {
component: 'div'
};
exports.default = Target;
{
"name": "react-popper",
"version": "0.4.3",
"version": "0.5.0",
"description": "React wrapper around PopperJS.",

@@ -59,2 +59,3 @@ "main": "lib/react-popper.js",

"postcss-loader": "^0.13.0",
"prop-types": "^15.5.8",
"react": "15.3.2",

@@ -61,0 +62,0 @@ "react-dom": "15.3.2",

@@ -39,11 +39,55 @@ ## React Popper

## `Common Props`
## Usage w/ child function
`Target`, `Popper`, and `Arrow` all share the following props
This is a useful way to interact with custom components. Just make sure you pass down the refs properly.
#### `component`: PropTypes.any
```js
import { Manager, Target, Popper, Arrow } from 'react-popper'
The component that gets rendered.
const PopperExample = () => (
<Manager>
<Target>
{({ targetRef }) => (
<div ref={targetRef}>
Target Box
</div>
)}
</Target>
<Popper placement="left">
{({ popperRef, popperStyle, popperPlacement }) => (
<div
ref={popperRef}
className="popper"
style={popperStyle}
data-placement={popperPlacement}
>
Popper Content
<Arrow>
{({ arrowRef, arrowStyle }) => (
<span
ref={arrowRef}
className="popper__arrow"
style={arrowStyle}
/>
)}
</Arrow>
</div>
)}
</Popper>
</Manager>
)
```
## `Shared Props`
`Manager`, `Target`, `Popper`, and `Arrow` all share the following props
#### `tag`: PropTypes.string
A valid DOM tag to render. Some components allow rendering just children or a child function making this prop obsolete.
#### `innerRef`: PropTypes.func
Use this prop to access the internal ref. Does not apply to the `Manager` component since we do not interact with its ref.
## `Manager`

@@ -53,2 +97,4 @@

The `tag` prop can be set to `false` to allow just passing children through. This can be useful when composing other components.
## `Target`

@@ -58,2 +104,18 @@

Each `Target` must be wrapped in a `Manager`, and each `Manager` can wrap only one `Target`.
#### `children`: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
A `Target`'s child may be one of the following:
- a React element[s]
- a function accepting the following object (all props must be passed down in order for the PopperJS to work properly)
```js
{
targetRef, // a function that accepts the target component as an argument
}
```
## `Popper`

@@ -63,2 +125,4 @@

Each `Popper` must be wrapped in a `Manager`, and each `Manager` can wrap multiple `Popper` components.
#### `placement`: PropTypes.oneOf(Popper.placements)

@@ -70,2 +134,17 @@ #### `eventsEnabled`: PropTypes.bool

#### `children`: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
A `Popper`'s child may be one of the following:
- a React element[s]
- a function accepting the following object (all props must be passed down in order for the PopperJS to work properly)
```js
{
popperRef, // a function that accepts the popper component as an argument
popperStyle, // the styles to apply to the popper element
popperPlacement // the placement of the Popper, pass to data-placement
}
```
## `Arrow`

@@ -75,2 +154,17 @@

#### `children`: PropTypes.oneOfType([PropTypes.node, PropTypes.func])
An `Arrow`'s child may be one of the following:
- a React element[s]
- a function accepting the following object (all props must be passed down in order for the PopperJS to work properly)
```js
{
arrowRef, // a function that accepts the arrow component as an argument
arrowStyle // the styles to apply to the arrow element
}
```
## Running Locally

@@ -77,0 +171,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc