import Popper from'popper.js';var version='3.0.0-beta.2',_extends=Object.assign||function(a){for(var b,c=1;c')):b.className='tippy-arrow',b},createBackdropElement=function(){var a=div();return a.className='tippy-backdrop',a.setAttribute('data-state','hidden'),a},addInteractive=function(a,b){a.setAttribute('tabindex','-1'),b.setAttribute('data-interactive','')},removeInteractive=function(a,b){a.removeAttribute('tabindex'),b.removeAttribute('data-interactive')},addInertia=function(a){a.setAttribute('data-inertia','')},removeInertia=function(a){a.removeAttribute('data-inertia')},createPopperElement=function(a,b){var c=div();c.className='tippy-popper',c.setAttribute('role','tooltip'),c.id='tippy-'+a,c.style.zIndex=b.zIndex;var d=div();d.className='tippy-tooltip',d.setAttribute('data-size',b.size),d.setAttribute('data-animation',b.animation),d.setAttribute('data-state','hidden'),b.theme.split(' ').forEach(function(a){d.classList.add(a+'-theme')});var e=div();return e.className='tippy-content',b.interactive&&addInteractive(c,d),b.arrow&&d.appendChild(createArrowElement(b.arrowType)),b.animateFill&&(d.appendChild(createBackdropElement()),d.setAttribute('data-animatefill','')),b.inertia&&d.setAttribute('data-inertia',''),setContent(e,b),d.appendChild(e),c.appendChild(d),c.addEventListener('focusout',function(a){a.relatedTarget&&c._tippy&&!closestCallback(a.relatedTarget,function(a){return a===c})&&c._tippy.props.shouldPopperHideOnBlur(a)&&c._tippy.hide()}),c},updatePopperElement=function(a,b,c){var d=getChildren(a),e=d.tooltip,f=d.content,g=d.backdrop,h=d.arrow;a.style.zIndex=c.zIndex,e.setAttribute('data-size',c.size),e.setAttribute('data-animation',c.animation),b.content!==c.content&&setContent(f,c),!b.animateFill&&c.animateFill?(e.appendChild(createBackdropElement()),e.setAttribute('data-animatefill','')):b.animateFill&&!c.animateFill&&(e.removeChild(g),e.removeAttribute('data-animatefill')),!b.arrow&&c.arrow?e.appendChild(createArrowElement(c.arrowType)):b.arrow&&!c.arrow&&e.removeChild(h),b.arrow&&c.arrow&&b.arrowType!==c.arrowType&&e.replaceChild(createArrowElement(c.arrowType),h),!b.interactive&&c.interactive?addInteractive(a,e):b.interactive&&!c.interactive&&removeInteractive(a,e),!b.inertia&&c.inertia?addInertia(e):b.inertia&&!c.inertia&&removeInertia(e),b.theme!==c.theme&&(b.theme.split(' ').forEach(function(a){e.classList.remove(a+'-theme')}),c.theme.split(' ').forEach(function(a){e.classList.add(a+'-theme')}))},hideAllPoppers=function(a){toArray$1(document.querySelectorAll(Selectors.POPPER)).forEach(function(b){var c=b._tippy;c&&!0===c.props.hideOnClick&&(!a||b!==a.popper)&&c.hide()})},getDataAttributeOptions=function(a){return Object.keys(Defaults).reduce(function(b,c){var d=(a.getAttribute('data-tippy-'+c)||'').trim();return d?(b[c]='true'===d||'false'!==d&&(isNumeric(d)?+d:'target'!==c&&'['===d[0]?JSON.parse(d):d),b):b},{})},polyfillVirtualReferenceProps=function(a){var b={isVirtual:!0,attributes:a.attributes||{},setAttribute:function(b,c){a.attributes[b]=c},getAttribute:function(b){return a.attributes[b]},removeAttribute:function(b){delete a.attributes[b]},hasAttribute:function(b){return b in a.attributes},addEventListener:function(){},removeEventListener:function(){},classList:{classNames:{},add:function(b){a.classList.classNames[b]=!0},remove:function(b){delete a.classList.classNames[b]},contains:function(b){return b in a.classList.classNames}}};for(var c in b)a[c]=b[c];return a},matches=function(){if(isBrowser){var a=Element.prototype;return a.matches||a.matchesSelector||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector}}(),closest=function(a,b){return(Element.prototype.closest||function(a){for(var b=this;b;){if(matches.call(b,a))return b;b=b.parentElement}}).call(a,b)},closestCallback=function(a,b){for(;a;){if(b(a))return a;a=a.parentElement}},focus=function(a){var b=window.scrollX||window.pageXOffset,c=window.scrollY||window.pageYOffset;a.focus(),scroll(b,c)},reflow=function(a){void a.offsetHeight},transformAxisBasedOnPlacement=function(a,b){return(b?a:{X:'Y',Y:'X'}[a])||''},transformNumbersBasedOnPlacement=function(c,d,e,f){var g=d[0],h=d[1];if(!g&&!h)return'';var i={scale:function(){return h?e?g+', '+h:h+', '+g:''+g}(),translate:function(){return h?e?f?g+'px, '+-h+'px':g+'px, '+h+'px':f?-h+'px, '+g+'px':h+'px, '+g+'px':f?-g+'px':g+'px'}()};return i[c]},getTransformAxis=function(a,b){var c=a.match(new RegExp(b+'([XY])'));return c?c[1]:''},getTransformNumbers=function(a,b){var c=a.match(b);return c?c[1].split(',').map(parseFloat):[]},TRANSFORM_NUMBER_RE={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},computeArrowTransform=function(a,b){var c=getPopperPlacement(closest(a,Selectors.POPPER)),d='top'===c||'bottom'===c,e='right'===c||'bottom'===c,f={translate:{axis:getTransformAxis(b,'translate'),numbers:getTransformNumbers(b,TRANSFORM_NUMBER_RE.translate)},scale:{axis:getTransformAxis(b,'scale'),numbers:getTransformNumbers(b,TRANSFORM_NUMBER_RE.scale)}},g=b.replace(TRANSFORM_NUMBER_RE.translate,'translate'+transformAxisBasedOnPlacement(f.translate.axis,d)+'('+transformNumbersBasedOnPlacement('translate',f.translate.numbers,d,e)+')').replace(TRANSFORM_NUMBER_RE.scale,'scale'+transformAxisBasedOnPlacement(f.scale.axis,d)+'('+transformNumbersBasedOnPlacement('scale',f.scale.numbers,d,e)+')');a.style[prefix('transform')]=g},setVisibilityState=function(a,b){a.filter(Boolean).forEach(function(a){a.setAttribute('data-state',b)})},prefix=function(a){for(var b=['','webkit'],c=a[0].toUpperCase()+a.slice(1),d=0;d('top'===a?g+h:g),j=f-b.bottom>('bottom'===a?g+h:g),k=b.left-e>('left'===a?g+h:g),l=e-b.right>('right'===a?g+h:g);return i||j||k||l},getOffsetDistanceInPx=function(a,b){return-(a-b)+'px'},getPopperPlacement=function(a){var b=a.getAttribute('x-placement');return b?b.split('-')[0]:''},evaluateProps=function(a,b){var c=_extends({},b,b.performance?{}:getDataAttributeOptions(a));return c.arrow&&(c.animateFill=!1),'function'==typeof c.appendTo&&(c.appendTo=b.appendTo(a)),'function'==typeof c.content&&(c.content=b.content(a)),c},toggleTransitionEndListener=function(a,b,c){a[b+'EventListener']('transitionend',c)},debounce=function(a,b){var c;return function(){var d=this,e=arguments;clearTimeout(c),c=setTimeout(function(){return a.apply(d,e)},b)}},nav=isBrowser?navigator:{},win=isBrowser?window:{},isIE=/MSIE |Trident\//.test(nav.userAgent),isIOS=/iPhone|iPad|iPod/.test(nav.platform)&&!win.MSStream,supportsTouch='ontouchstart'in win,isUsingTouch=!1,onDocumentTouch=function(){isUsingTouch||(isUsingTouch=!0,isIOS&&document.body.classList.add('tippy-iOS'),window.performance&&document.addEventListener('mousemove',onDocumentMouseMove))},lastMouseMoveTime=0,onDocumentMouseMove=function a(){var b=performance.now();20>b-lastMouseMoveTime&&(isUsingTouch=!1,document.removeEventListener('mousemove',a),!isIOS&&document.body.classList.remove('tippy-iOS')),lastMouseMoveTime=b},onDocumentClick=function(a){var b=a.target;if(!(b instanceof Element))return hideAllPoppers();var c=closest(b,Selectors.POPPER);if(!(c&&c._tippy&&c._tippy.props.interactive)){var d=closestCallback(b,function(a){return a._tippy&&a._tippy.reference===a});if(d){var e=d._tippy,f=-1