mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
2 lines
21 KiB
JavaScript
2 lines
21 KiB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","react","popper.js"],t):t(e.ReactPopper={},e.React,e.Popper)}(this,function(e,n,i){"use strict";var y="default"in n?n.default:n;function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(){return(a=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}).apply(this,arguments)}function r(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i=i&&i.hasOwnProperty("default")?i.default:i;var t,o=Object.prototype.toString,u=function(e){var t=o.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Function]"===o.call(e.callee)),r};if(!Object.keys){var f=Object.prototype.hasOwnProperty,d=Object.prototype.toString,h=u,l=Object.prototype.propertyIsEnumerable,b=!l.call({toString:null},"toString"),m=l.call(function(){},"prototype"),g=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],v=function(e){var t=e.constructor;return t&&t.prototype===e},s={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},w=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!s["$"+e]&&f.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{v(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();t=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===d.call(e),n=h(e),o=t&&"[object String]"===d.call(e),i=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var c=m&&r;if(o&&0<e.length&&!f.call(e,0))for(var a=0;a<e.length;++a)i.push(String(a));if(n&&0<e.length)for(var p=0;p<e.length;++p)i.push(String(p));else for(var u in e)c&&"prototype"===u||!f.call(e,u)||i.push(String(u));if(b)for(var l=function(e){if("undefined"==typeof window||!w)return v(e);try{return v(e)}catch(e){return!1}}(e),s=0;s<g.length;++s)l&&"constructor"===g[s]||!f.call(e,g[s])||i.push(g[s]);return i}}var j=t,O=Array.prototype.slice,S=Object.keys,P=S?function(e){return S(e)}:j,$=Object.keys;P.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return u(e)?$(O.call(e)):$(e)}):Object.keys=P;return Object.keys||P};var E=P,x="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,_=Object.prototype.toString,C=function(e){return!(x&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===_.call(e)},M=function(e){return!!C(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Array]"!==_.call(e)&&"[object Function]"===_.call(e.callee)},R=function(){return C(arguments)}();C.isLegacyArguments=M;var A=R?C:M,I=function(e){return e!=e},F=function(e,t){return 0===e&&0===t?1/e==1/t:e===t||!(!I(e)||!I(t))},T=Array.prototype.slice,k=Object.prototype.toString,N=(Function.prototype.bind||function(t){var r=this;if("function"!=typeof r||"[object Function]"!==k.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var n,o=T.call(arguments,1),e=Math.max(0,r.length-o.length),i=[],c=0;c<e;c++)i.push("$"+c);if(n=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var e=r.apply(this,o.concat(T.call(arguments)));return Object(e)===e?e:this}return r.apply(t,o.concat(T.call(arguments)))}),r.prototype){var a=function(){};a.prototype=r.prototype,n.prototype=new a,a.prototype=null}return n}).call(Function.call,Object.prototype.hasOwnProperty),D=RegExp.prototype.exec,U=Object.getOwnPropertyDescriptor,L=Object.prototype.toString,W="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,B=function(e){if(!e||"object"!=typeof e)return!1;if(!W)return"[object RegExp]"===L.call(e);var t=U(e,"lastIndex");return!(!t||!N(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,D.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)},q=Object.prototype.toString,z=function(e){var t=q.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&"[object Function]"===q.call(e.callee)),r},H=Object.prototype.hasOwnProperty,V=Object.prototype.toString,Y=Array.prototype.slice,X=Object.prototype.propertyIsEnumerable,G=!X.call({toString:null},"toString"),J=X.call(function(){},"prototype"),K=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Q=function(e){var t=e.constructor;return t&&t.prototype===e},Z={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},ee=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!Z["$"+e]&&H.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{Q(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),te=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===V.call(e),n=z(e),o=t&&"[object String]"===V.call(e),i=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var c=J&&r;if(o&&0<e.length&&!H.call(e,0))for(var a=0;a<e.length;++a)i.push(String(a));if(n&&0<e.length)for(var p=0;p<e.length;++p)i.push(String(p));else for(var u in e)c&&"prototype"===u||!H.call(e,u)||i.push(String(u));if(G)for(var l=function(e){if("undefined"==typeof window||!ee)return Q(e);try{return Q(e)}catch(e){return!1}}(e),s=0;s<K.length;++s)l&&"constructor"===K[s]||!H.call(e,K[s])||i.push(K[s]);return i};te.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var t=Object.keys;Object.keys=function(e){return z(e)?t(Y.call(e)):t(e)}}}else Object.keys=te;return Object.keys||te};var re=te,ne="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),oe=Object.prototype.toString,ie=Array.prototype.concat,ce=Object.defineProperty,ae=ce&&function(){var e={};try{for(var t in ce(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),pe=function(e,t,r,n){var o;t in e&&("function"!=typeof(o=n)||"[object Function]"!==oe.call(o)||!n())||(ae?ce(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},ue=function(e,t){var r=2<arguments.length?arguments[2]:{},n=re(t);ne&&(n=ie.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o<n.length;o+=1)pe(e,n[o],t[n[o]],r[n[o]])};ue.supportsDescriptors=!!ae;var le=ue,se=Object,fe=TypeError,ye=function(){if(null!=this&&this!==se(this))throw new fe("RegExp.prototype.flags getter called on non-object");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e},de=le.supportsDescriptors,he=Object.getOwnPropertyDescriptor,be=TypeError,me=function(){if(!de)throw new be("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var e=he(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof/a/.dotAll)return e.get}return ye},ge=le.supportsDescriptors,ve=Object.getOwnPropertyDescriptor,we=Object.defineProperty,je=TypeError,Oe=Object.getPrototypeOf,Se=/a/,Pe=Function.call.bind(ye);le(Pe,{getPolyfill:me,implementation:ye,shim:function(){if(!ge||!Oe)throw new je("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=me(),t=Oe(Se),r=ve(t,"flags");return r&&r.get===e||we(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}});var $e=Pe,Ee=Date.prototype.getDay,xe=Object.prototype.toString,_e="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,Ce=function(e){return"object"==typeof e&&null!==e&&(_e?function(e){try{return Ee.call(e),!0}catch(e){return!1}}(e):"[object Date]"===xe.call(e))},Me=Date.prototype.getTime;function Re(e,t,r){var n=r||{};return!(n.strict?!F(e,t):e!==t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?F(e,t):e==t:function(e,t,r){var n,o;if(typeof e!=typeof t)return!1;if(Ae(e)||Ae(t))return!1;if(e.prototype!==t.prototype)return!1;if(A(e)!==A(t))return!1;var i=B(e),c=B(t);if(i!==c)return!1;if(i||c)return e.source===t.source&&$e(e)===$e(t);if(Ce(e)&&Ce(t))return Me.call(e)===Me.call(t);var a=Ie(e),p=Ie(t);if(a!==p)return!1;if(a||p){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}if(typeof e!=typeof t)return!1;try{var u=E(e),l=E(t)}catch(e){return!1}if(u.length!==l.length)return!1;for(u.sort(),l.sort(),n=u.length-1;0<=n;n--)if(u[n]!=l[n])return!1;for(n=u.length-1;0<=n;n--)if(o=u[n],!Re(e[o],t[o],r))return!1;return!0}(e,t,n))}function Ae(e){return null==e}function Ie(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(0<e.length&&"number"!=typeof e[0]))}var Fe=Re,Te="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ne(e,t){return e(t={exports:{}},t.exports),t.exports}var De=Ne(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,p=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,s=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,y=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case s:case i:case a:case c:case y:return e;default:switch(e=e&&e.$$typeof){case u:case f:case p:return e;default:return t}}case b:case h:case o:return t}}}function w(e){return v(e)===s}t.typeOf=v,t.AsyncMode=l,t.ConcurrentMode=s,t.ContextConsumer=u,t.ContextProvider=p,t.Element=n,t.ForwardRef=f,t.Fragment=i,t.Lazy=b,t.Memo=h,t.Portal=o,t.Profiler=a,t.StrictMode=c,t.Suspense=y,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===a||e===c||e===y||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===p||e.$$typeof===u||e.$$typeof===f||e.$$typeof===m||e.$$typeof===g)},t.isAsyncMode=function(e){return w(e)||v(e)===l},t.isConcurrentMode=w,t.isContextConsumer=function(e){return v(e)===u},t.isContextProvider=function(e){return v(e)===p},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return v(e)===f},t.isFragment=function(e){return v(e)===i},t.isLazy=function(e){return v(e)===b},t.isMemo=function(e){return v(e)===h},t.isPortal=function(e){return v(e)===o},t.isProfiler=function(e){return v(e)===a},t.isStrictMode=function(e){return v(e)===c},t.isSuspense=function(e){return v(e)===y}});ke(De);De.typeOf,De.AsyncMode,De.ConcurrentMode,De.ContextConsumer,De.ContextProvider,De.Element,De.ForwardRef,De.Fragment,De.Lazy,De.Memo,De.Portal,De.Profiler,De.StrictMode,De.Suspense,De.isValidElementType,De.isAsyncMode,De.isConcurrentMode,De.isContextConsumer,De.isContextProvider,De.isElement,De.isForwardRef,De.isFragment,De.isLazy,De.isMemo,De.isPortal,De.isProfiler,De.isStrictMode,De.isSuspense;var Ue=Ne(function(e,t){});ke(Ue);Ue.typeOf,Ue.AsyncMode,Ue.ConcurrentMode,Ue.ContextConsumer,Ue.ContextProvider,Ue.Element,Ue.ForwardRef,Ue.Fragment,Ue.Lazy,Ue.Memo,Ue.Portal,Ue.Profiler,Ue.StrictMode,Ue.Suspense,Ue.isValidElementType,Ue.isAsyncMode,Ue.isConcurrentMode,Ue.isContextConsumer,Ue.isContextProvider,Ue.isElement,Ue.isForwardRef,Ue.isFragment,Ue.isLazy,Ue.isMemo,Ue.isPortal,Ue.isProfiler,Ue.isStrictMode,Ue.isSuspense,Ne(function(e){e.exports=De});var Le=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}})()&&Object.assign,Function.call.bind(Object.prototype.hasOwnProperty);function qe(){}function ze(){}ze.resetWarningCache=qe;var He=Ne(function(e){e.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var c=new Error("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");throw c.name="Invariant Violation",c}}function t(){return e}var r={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ze,resetWarningCache:qe};return r.PropTypes=r}()}),Ve="__global_unique_id__",Ye=function(){return Te[Ve]=(Te[Ve]||0)+1},Xe=function(){},Ge=Ne(function(e,t){t.__esModule=!0;r(y);var a=r(He),p=r(Ye);r(Xe);function r(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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)}var f=1073741823;t.default=function(e,c){var t,r,n="__create-react-context-"+(0,p.default)()+"__",o=function(a){function p(){var e,t,r,n;u(this,p);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return(e=t=l(this,a.call.apply(a,[this].concat(i)))).emitter=(r=t.props.value,n=[],{on:function(e){n.push(e)},off:function(t){n=n.filter(function(e){return e!==t})},get:function(){return r},set:function(e,t){r=e,n.forEach(function(e){return e(r,t)})}}),l(t,e)}return s(p,a),p.prototype.getChildContext=function(){var e;return(e={})[n]=this.emitter,e},p.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var t=this.props.value,r=e.value,n=void 0;((o=t)===(i=r)?0!==o||1/o==1/i:o!=o&&i!=i)?n=0:(n="function"==typeof c?c(t,r):f,0!=(n|=0)&&this.emitter.set(e.value,n))}var o,i},p.prototype.render=function(){return this.props.children},p}(y.Component);o.childContextTypes=((t={})[n]=a.default.object.isRequired,t);var i=function(i){function c(){var e,r;u(this,c);for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=r=l(this,i.call.apply(i,[this].concat(n)))).state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},l(r,e)}return s(c,i),c.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?f:t},c.prototype.componentDidMount=function(){this.context[n]&&this.context[n].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?f:e},c.prototype.componentWillUnmount=function(){this.context[n]&&this.context[n].off(this.onUpdate)},c.prototype.getValue=function(){return this.context[n]?this.context[n].get():e},c.prototype.render=function(){return e=this.props.children,(Array.isArray(e)?e[0]:e)(this.state.value);var e},c}(y.Component);return i.contextTypes=((r={})[n]=a.default.object,r),{Provider:o,Consumer:i}},e.exports=t.default});ke(Ge);var Je=ke(Ne(function(e,t){t.__esModule=!0;var r=o(y),n=o(Ge);function o(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||n.default,e.exports=t.default})),Ke=Je(),Qe=Je(),Ze=function(o){function e(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return c(p(p(t=o.call.apply(o,[this].concat(r))||this)),"referenceNode",void 0),c(p(p(t)),"setReferenceNode",function(e){e&&t.referenceNode!==e&&(t.referenceNode=e,t.forceUpdate())}),t}r(e,o);var t=e.prototype;return t.componentWillUnmount=function(){this.referenceNode=null},t.render=function(){return n.createElement(Ke.Provider,{value:this.referenceNode},n.createElement(Qe.Provider,{value:this.setReferenceNode},this.props.children))},e}(n.Component),et=function(e){return Array.isArray(e)?e[0]:e},tt=function(e){if("function"==typeof e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.apply(void 0,r)}},rt=function(e,t){if("function"==typeof e)return tt(e,t);null!=e&&(e.current=t)},nt={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},ot={},it=function(o){function e(){for(var r,e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(p(p(r=o.call.apply(o,[this].concat(t))||this)),"state",{data:void 0,placement:void 0}),c(p(p(r)),"popperInstance",void 0),c(p(p(r)),"popperNode",null),c(p(p(r)),"arrowNode",null),c(p(p(r)),"setPopperNode",function(e){e&&r.popperNode!==e&&(rt(r.props.innerRef,e),r.popperNode=e,r.updatePopperInstance())}),c(p(p(r)),"setArrowNode",function(e){r.arrowNode=e}),c(p(p(r)),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var t=e.placement;return r.setState({data:e,placement:t}),e}}),c(p(p(r)),"getOptions",function(){return{placement:r.props.placement,eventsEnabled:r.props.eventsEnabled,positionFixed:r.props.positionFixed,modifiers:a({},r.props.modifiers,{arrow:a({},r.props.modifiers&&r.props.modifiers.arrow,{enabled:!!r.arrowNode,element:r.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:r.updateStateModifier})}}),c(p(p(r)),"getPopperStyle",function(){return r.popperNode&&r.state.data?a({position:r.state.data.offsets.popper.position},r.state.data.styles):nt}),c(p(p(r)),"getPopperPlacement",function(){return r.state.data?r.state.placement:void 0}),c(p(p(r)),"getArrowStyle",function(){return r.arrowNode&&r.state.data?r.state.data.arrowStyles:ot}),c(p(p(r)),"getOutOfBoundariesState",function(){return r.state.data?r.state.data.hide:void 0}),c(p(p(r)),"destroyPopperInstance",function(){r.popperInstance&&(r.popperInstance.destroy(),r.popperInstance=null)}),c(p(p(r)),"updatePopperInstance",function(){r.destroyPopperInstance();var e=p(p(r)).popperNode,t=r.props.referenceElement;t&&e&&(r.popperInstance=new i(t,e,r.getOptions()))}),c(p(p(r)),"scheduleUpdate",function(){r.popperInstance&&r.popperInstance.scheduleUpdate()}),r}r(e,o);var t=e.prototype;return t.componentDidUpdate=function(e,t){this.props.placement===e.placement&&this.props.referenceElement===e.referenceElement&&this.props.positionFixed===e.positionFixed&&Fe(this.props.modifiers,e.modifiers,{strict:!0})?this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()):this.updatePopperInstance(),t.placement!==this.state.placement&&this.scheduleUpdate()},t.componentWillUnmount=function(){rt(this.props.innerRef,null),this.destroyPopperInstance()},t.render=function(){return et(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},e}(n.Component);c(it,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});var ct=i.placements;var at=function(o){function e(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return c(p(p(t=o.call.apply(o,[this].concat(r))||this)),"refHandler",function(e){rt(t.props.innerRef,e),tt(t.props.setReferenceNode,e)}),t}r(e,o);var t=e.prototype;return t.componentWillUnmount=function(){rt(this.props.innerRef,null)},t.render=function(){return Xe(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),et(this.props.children)({ref:this.refHandler})},e}(n.Component);e.Popper=function(e){var t=e.referenceElement,r=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],0<=t.indexOf(r)||(o[r]=e[r]);return o}(e,["referenceElement"]);return n.createElement(Ke.Consumer,null,function(e){return n.createElement(it,a({referenceElement:void 0!==t?t:e},r))})},e.placements=ct,e.Manager=Ze,e.Reference=function(t){return n.createElement(Qe.Consumer,null,function(e){return n.createElement(at,a({setReferenceNode:e},t))})},Object.defineProperty(e,"__esModule",{value:!0})});
|