ZwiiCMS/core/vendor/tippy/tippy.min.js

2 lines
39 KiB
JavaScript
Executable File

(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.tippy=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultView,r=o.getComputedStyle(e,null);return t?r[t]:r}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function r(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),n=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(n+s+p)?e:r(o(e))}function n(e){return 11===e?we:10===e?Ee:we||Ee}function p(e){if(!e)return document.documentElement;for(var o=n(10)?document.body:null,r=e.offsetParent||null;r===o&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var i=r&&r.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(r.nodeName)&&'static'===t(r,'position')?p(r):r:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function a(e){return null===e.parentNode?e:a(e.parentNode)}function d(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=o?e:t,i=o?t:e,n=document.createRange();n.setStart(r,0),n.setEnd(i,0);var l=n.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return s(l)?l:p(l);var c=a(e);return c.host?d(c.host,t):d(e,a(t).host)}function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',r=e.nodeName;if('BODY'===r||'HTML'===r){var i=e.ownerDocument.documentElement,n=e.ownerDocument.scrollingElement||i;return n[o]}return e[o]}function c(e,t){var o=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2],r=l(t,'top'),i=l(t,'left'),n=o?-1:1;return e.top+=r*n,e.bottom+=r*n,e.left+=i*n,e.right+=i*n,e}function f(e,t){var o='x'===t?'Left':'Top',r='Left'===o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'],10)+parseFloat(e['border'+r+'Width'],10)}function m(e,t,o,r){return re(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],n(10)?parseInt(o['offset'+e])+parseInt(r['margin'+('Height'===e?'Top':'Left')])+parseInt(r['margin'+('Height'===e?'Bottom':'Right')]):0)}function h(e){var t=e.body,o=e.documentElement,r=n(10)&&getComputedStyle(o);return{height:m('Height',t,o,r),width:m('Width',t,o,r)}}function u(e){return Ce({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var o={};try{if(n(10)){o=e.getBoundingClientRect();var r=l(e,'top'),i=l(e,'left');o.top+=r,o.left+=i,o.bottom+=r,o.right+=i}else o=e.getBoundingClientRect()}catch(t){}var p={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},s='HTML'===e.nodeName?h(e.ownerDocument):{},a=s.width||e.clientWidth||p.right-p.left,d=s.height||e.clientHeight||p.bottom-p.top,c=e.offsetWidth-a,m=e.offsetHeight-d;if(c||m){var b=t(e);c-=f(b,'x'),m-=f(b,'y'),p.width-=c,p.height-=m}return u(p)}function g(e,o){var i=!!(2<arguments.length&&void 0!==arguments[2])&&arguments[2],p=n(10),s='HTML'===o.nodeName,a=b(e),d=b(o),l=r(e),f=t(o),m=parseFloat(f.borderTopWidth,10),h=parseFloat(f.borderLeftWidth,10);i&&s&&(d.top=re(d.top,0),d.left=re(d.left,0));var g=u({top:a.top-d.top-m,left:a.left-d.left-h,width:a.width,height:a.height});if(g.marginTop=0,g.marginLeft=0,!p&&s){var y=parseFloat(f.marginTop,10),v=parseFloat(f.marginLeft,10);g.top-=m-y,g.bottom-=m-y,g.left-=h-v,g.right-=h-v,g.marginTop=y,g.marginLeft=v}return(p&&!i?o.contains(l):o===l&&'BODY'!==l.nodeName)&&(g=c(g,o)),g}function y(e){var t=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],o=e.ownerDocument.documentElement,r=g(e,o),i=re(o.clientWidth,window.innerWidth||0),n=re(o.clientHeight,window.innerHeight||0),p=t?0:l(o),s=t?0:l(o,'left'),a={top:p-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:n};return u(a)}function v(e){var r=e.nodeName;return'BODY'!==r&&'HTML'!==r&&('fixed'===t(e,'position')||v(o(e)))}function w(e){if(!e||!e.parentElement||n())return document.documentElement;for(var o=e.parentElement;o&&'none'===t(o,'transform');)o=o.parentElement;return o||document.documentElement}function E(e,t,i,n){var p=!!(4<arguments.length&&void 0!==arguments[4])&&arguments[4],s={top:0,left:0},a=p?w(e):d(e,t);if('viewport'===n)s=y(a,p);else{var l;'scrollParent'===n?(l=r(o(t)),'BODY'===l.nodeName&&(l=e.ownerDocument.documentElement)):'window'===n?l=e.ownerDocument.documentElement:l=n;var c=g(l,a,p);if('HTML'===l.nodeName&&!v(a)){var f=h(e.ownerDocument),m=f.height,u=f.width;s.top+=c.top-c.marginTop,s.bottom=m+c.top,s.left+=c.left-c.marginLeft,s.right=u+c.left}else s=c}i=i||0;var b='number'==typeof i;return s.left+=b?i:i.left||0,s.top+=b?i:i.top||0,s.right-=b?i:i.right||0,s.bottom-=b?i:i.bottom||0,s}function x(e){var t=e.width,o=e.height;return t*o}function O(e,t,o,r,i){var n=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=E(o,r,n,i),s={top:{width:p.width,height:t.top-p.top},right:{width:p.right-t.right,height:p.height},bottom:{width:p.width,height:p.bottom-t.bottom},left:{width:t.left-p.left,height:p.height}},a=Object.keys(s).map(function(e){return Ce({key:e},s[e],{area:x(s[e])})}).sort(function(e,t){return t.area-e.area}),d=a.filter(function(e){var t=e.width,r=e.height;return t>=o.clientWidth&&r>=o.clientHeight}),l=0<d.length?d[0].key:a[0].key,c=e.split('-')[1];return l+(c?'-'+c:'')}function L(e,t,o){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,i=r?w(t):d(t,o);return g(o,i,r)}function C(e){var t=e.ownerDocument.defaultView,o=t.getComputedStyle(e),r=parseFloat(o.marginTop||0)+parseFloat(o.marginBottom||0),i=parseFloat(o.marginLeft||0)+parseFloat(o.marginRight||0),n={width:e.offsetWidth+i,height:e.offsetHeight+r};return n}function T(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 A(e,t,o){o=o.split('-')[0];var r=C(e),i={width:r.width,height:r.height},n=-1!==['right','left'].indexOf(o),p=n?'top':'left',s=n?'left':'top',a=n?'height':'width',d=n?'width':'height';return i[p]=t[p]+t[a]/2-r[a]/2,i[s]=o===s?t[s]-r[d]:t[T(s)],i}function k(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function S(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var r=k(e,function(e){return e[t]===o});return e.indexOf(r)}function P(t,o,r){var i=void 0===r?t:t.slice(0,S(t,'name',r));return i.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var r=t['function']||t.fn;t.enabled&&e(r)&&(o.offsets.popper=u(o.offsets.popper),o.offsets.reference=u(o.offsets.reference),o=r(o,t))}),o}function D(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=O(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=A(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?'fixed':'absolute',e=P(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function I(e,t){return e.some(function(e){var o=e.name,r=e.enabled;return r&&o===t})}function N(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],n=i?''+i+o:e;if('undefined'!=typeof document.body.style[n])return n}return null}function H(){return this.state.isDestroyed=!0,I(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.position='',this.popper.style.top='',this.popper.style.left='',this.popper.style.right='',this.popper.style.bottom='',this.popper.style.willChange='',this.popper.style[N('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function R(e){var t=e.ownerDocument;return t?t.defaultView:window}function W(e,t,o,i){var n='BODY'===e.nodeName,p=n?e.ownerDocument.defaultView:e;p.addEventListener(t,o,{passive:!0}),n||W(r(p.parentNode),t,o,i),i.push(p)}function B(e,t,o,i){o.updateBound=i,R(e).addEventListener('resize',o.updateBound,{passive:!0});var n=r(e);return W(n,'scroll',o.updateBound,o.scrollParents),o.scrollElement=n,o.eventsEnabled=!0,o}function M(){this.state.eventsEnabled||(this.state=B(this.reference,this.options,this.state,this.scheduleUpdate))}function _(e,t){return R(e).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 U(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=_(this.reference,this.state))}function F(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function z(e,t){Object.keys(t).forEach(function(o){var r='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&F(t[o])&&(r='px'),e.style[o]=t[o]+r})}function V(e,t){Object.keys(t).forEach(function(o){var r=t[o];!1===r?e.removeAttribute(o):e.setAttribute(o,t[o])})}function Y(e,t){var o=e.offsets,r=o.popper,i=o.reference,n=oe,p=function(e){return e},s=n(r.width),a=n(i.width),d=-1!==['left','right'].indexOf(e.placement),l=-1!==e.placement.indexOf('-'),c=t?d||l||a%2==s%2?n:te:p,f=t?n:p;return{left:c(1==a%2&&1==s%2&&!l&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:c(r.right)}}function q(e,t,o){var r=k(e,function(e){var o=e.name;return o===t}),i=!!r&&e.some(function(e){return e.name===o&&e.enabled&&e.order<r.order});if(!i){var n='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+n+' modifier in order to work, be sure to include it before '+n+'!')}return i}function X(e){return'end'===e?'start':'start'===e?'end':e}function j(e){var t=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],o=ke.indexOf(e),r=ke.slice(o+1).concat(ke.slice(0,o));return t?r.reverse():r}function K(e,t,o,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),n=+i[1],p=i[2];if(!n)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=r;}var a=u(s);return a[t]/100*n}if('vh'===p||'vw'===p){var d;return d='vh'===p?re(document.documentElement.clientHeight,window.innerHeight||0):re(document.documentElement.clientWidth,window.innerWidth||0),d/100*n}return n}function G(e,t,o,r){var i=[0,0],n=-1!==['right','left'].indexOf(r),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(k(p,function(e){return-1!==e.search(/,|\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var a=/\s*,\s*|\s+/,d=-1===s?[p]:[p.slice(0,s).concat([p[s].split(a)[0]]),[p[s].split(a)[1]].concat(p.slice(s+1))];return d=d.map(function(e,r){var i=(1===r?!n:n)?'height':'width',p=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,p=!0,e):p?(e[e.length-1]+=t,p=!1,e):e.concat(t)},[]).map(function(e){return K(e,i,t,o)})}),d.forEach(function(e,t){e.forEach(function(o,r){F(o)&&(i[t]+=o*('-'===e[r-1]?-1:1))})}),i}function Q(e,t){var o=t.offset,r=e.placement,i=e.offsets,n=i.popper,p=i.reference,s=r.split('-')[0],a=void 0;return a=F(+o)?[+o,0]:G(o,n,p,s),'left'===s?(n.top+=a[0],n.left-=a[1]):'right'===s?(n.top+=a[0],n.left+=a[1]):'top'===s?(n.left+=a[0],n.top-=a[1]):'bottom'===s&&(n.left+=a[0],n.top+=a[1]),e.popper=n,e}function Z(){document.addEventListener('click',At,!0),document.addEventListener('touchstart',Lt,{passive:!0}),window.addEventListener('blur',kt),window.addEventListener('resize',St),!he&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',Lt)}function $(e,t){function o(){ht(function(){F=!1})}function r(){N=new MutationObserver(function(){X.popperInstance.update()}),N.observe(Y,{childList:!0,subtree:!0,characterData:!0})}function i(e){var t=R=e,o=t.clientX,r=t.clientY;if(X.popperInstance){var i=gt(X.popper),n=X.popperChildren.arrow?20:5,p='top'===i||'bottom'===i,s='left'===i||'right'===i,a=p?re(n,o):o,d=s?re(n,r):r;p&&a>n&&(a=ee(o,window.innerWidth-n)),s&&d>n&&(d=ee(r,window.innerHeight-n));var l=X.reference.getBoundingClientRect(),c=X.props.followCursor,f='horizontal'===c,m='vertical'===c;X.popperInstance.reference={getBoundingClientRect:function(){return{width:0,height:0,top:f?l.top:d,bottom:f?l.bottom:d,left:m?l.left:a,right:m?l.right:a}},clientWidth:0,clientHeight:0},X.popperInstance.scheduleUpdate()}}function n(e){var t=ot(e.target,X.props.target);t&&!t._tippy&&($(t,ne({},X.props,{target:'',showOnInit:!0})),p(e))}function p(e){if(A(),!X.state.isVisible){if(X.props.target)return n(e);if(M=!0,X.props.wait)return X.props.wait(X,e);v()&&document.addEventListener('mousemove',i);var t=Ve(X.props.delay,0,pe.delay);t?W=setTimeout(function(){S()},t):S()}}function s(){if(A(),!X.state.isVisible)return a();M=!1;var e=Ve(X.props.delay,1,pe.delay);e?B=setTimeout(function(){X.state.isVisible&&P()},e):P()}function a(){document.removeEventListener('mousemove',i),R=null}function d(){document.body.removeEventListener('mouseleave',s),document.removeEventListener('mousemove',z)}function l(e){!X.state.isEnabled||b(e)||(!X.state.isVisible&&(H=e),'click'===e.type&&!1!==X.props.hideOnClick&&X.state.isVisible?s():p(e))}function c(e){var t=rt(e.target,function(e){return e._tippy}),o=ot(e.target,De.POPPER)===X.popper,r=t===X.reference;o||r||ut(gt(X.popper),X.popper.getBoundingClientRect(),e,X.props)&&(d(),s())}function f(e){return b(e)?void 0:X.props.interactive?(document.body.addEventListener('mouseleave',s),void document.addEventListener('mousemove',z)):void s()}function m(e){if(e.target===X.reference){if(X.props.interactive){if(!e.relatedTarget)return;if(ot(e.relatedTarget,De.POPPER))return}s()}}function h(e){ot(e.target,X.props.target)&&p(e)}function u(e){ot(e.target,X.props.target)&&s()}function b(e){var t=-1<e.type.indexOf('touch'),o=he&&Ot&&X.props.touchHold&&!t,r=Ot&&!X.props.touchHold&&t;return o||r}function g(){var e=X.popperChildren.tooltip,t=X.props.popperOptions,o=De['round'===X.props.arrowType?'ROUND_ARROW':'ARROW'],i=e.querySelector(o),n=ne({placement:X.props.placement},t||{},{modifiers:ne({},t?t.modifiers:{},{arrow:ne({element:o},t&&t.modifiers?t.modifiers.arrow:{}),flip:ne({enabled:X.props.flip,padding:X.props.distance+5,behavior:X.props.flipBehavior},t&&t.modifiers?t.modifiers.flip:{}),offset:ne({offset:X.props.offset},t&&t.modifiers?t.modifiers.offset:{})}),onCreate:function(){e.style[gt(X.popper)]=bt(X.props.distance,pe.distance),i&&X.props.arrowTransform&&ct(i,X.props.arrowTransform)},onUpdate:function(){var t=e.style;t.top='',t.bottom='',t.left='',t.right='',t[gt(X.popper)]=bt(X.props.distance,pe.distance),i&&X.props.arrowTransform&&ct(i,X.props.arrowTransform)}});return N||r(),new Pe(X.reference,X.popper,n)}function y(e){X.popperInstance?!v()&&(X.popperInstance.scheduleUpdate(),X.props.livePlacement&&X.popperInstance.enableEventListeners()):(X.popperInstance=g(),(!X.props.livePlacement||v())&&X.popperInstance.disableEventListeners()),X.popperInstance.reference=X.reference;var t=X.popperChildren.arrow;if(v()){t&&(t.style.margin='0');var o=Ve(X.props.delay,0,pe.delay);H.type&&i(o&&R?R:H)}else t&&(t.style.margin='');mt(X.popperInstance,e),X.props.appendTo.contains(X.popper)||(X.props.appendTo.appendChild(X.popper),X.props.onMount(X),X.state.isMounted=!0)}function v(){return X.props.followCursor&&!Ot&&'focus'!==H.type}function w(){We([X.popper],fe?0:X.props.updateDuration);(function e(){X.popperInstance&&X.popperInstance.scheduleUpdate(),X.state.isMounted?requestAnimationFrame(e):We([X.popper],0)})()}function E(e,t){O(e,function(){!X.state.isVisible&&X.props.appendTo.contains(X.popper)&&t()})}function x(e,t){O(e,t)}function O(e,t){if(0===e)return t();var o=X.popperChildren.tooltip,r=function r(i){i.target===o&&(vt(o,'remove',r),t())};vt(o,'remove',_),vt(o,'add',r),_=r}function L(e,t,o){X.reference.addEventListener(e,t),o.push({eventType:e,handler:t})}function C(){U=X.props.trigger.trim().split(' ').reduce(function(e,t){return'manual'===t?e:(X.props.target?'mouseenter'===t?(L('mouseover',h,e),L('mouseout',u,e)):'focus'===t?(L('focusin',h,e),L('focusout',u,e)):'click'===t?L(t,h,e):void 0:(L(t,l,e),X.props.touchHold&&(L('touchstart',l,e),L('touchend',f,e)),'mouseenter'===t?L('mouseleave',f,e):'focus'===t?L(fe?'focusout':'blur',m,e):void 0),e)},[])}function T(){U.forEach(function(e){var t=e.eventType,o=e.handler;X.reference.removeEventListener(t,o)})}function A(){clearTimeout(W),clearTimeout(B)}function k(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Et(e,pe);var t=X.props,o=yt(X.reference,ne({},X.props,e,{performance:!0}));o.performance=xt(e,'performance')?e.performance:t.performance,X.props=o,(xt(e,'trigger')||xt(e,'touchHold'))&&(T(),C()),xt(e,'interactiveDebounce')&&(d(),z=wt(c,e.interactiveDebounce)),Ze(X.popper,t,o),X.popperChildren=Be(X.popper),X.popperInstance&&ae.some(function(t){return xt(e,t)})&&(X.popperInstance.destroy(),X.popperInstance=g(),!X.state.isVisible&&X.popperInstance.disableEventListeners(),X.props.followCursor&&R&&i(R))}function S(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ve(X.props.duration,0,pe.duration[0]);return X.state.isDestroyed||!X.state.isEnabled||Ot&&!X.props.touch?void 0:X.reference.isVirtual||document.documentElement.contains(X.reference)?X.reference.hasAttribute('disabled')?void 0:F?void(F=!1):void(!1===X.props.onShow(X)||(X.popper.style.visibility='visible',X.state.isVisible=!0,We([X.popper,X.popperChildren.tooltip,X.popperChildren.backdrop],0),y(function(){X.state.isVisible&&(!v()&&X.popperInstance.update(),We([X.popperChildren.tooltip,X.popperChildren.backdrop,X.popperChildren.content],e),X.popperChildren.backdrop&&(X.popperChildren.content.style.transitionDelay=oe(e/6)+'ms'),X.props.interactive&&X.reference.classList.add('tippy-active'),X.props.sticky&&w(),ft([X.popperChildren.tooltip,X.popperChildren.backdrop,X.popperChildren.content],'visible'),x(e,function(){0===X.props.updateDuration&&X.popperChildren.tooltip.classList.add('tippy-notransition'),X.props.interactive&&-1<['focus','click'].indexOf(H.type)&&it(X.popper),X.reference.setAttribute('aria-describedby',X.popper.id),X.props.onShown(X),X.state.isShown=!0}))}))):D()}function P(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ve(X.props.duration,1,pe.duration[1]);X.state.isDestroyed||!X.state.isEnabled||!1===X.props.onHide(X)||(0===X.props.updateDuration&&X.popperChildren.tooltip.classList.remove('tippy-notransition'),X.props.interactive&&X.reference.classList.remove('tippy-active'),X.popper.style.visibility='hidden',X.state.isVisible=!1,X.state.isShown=!1,We([X.popperChildren.tooltip,X.popperChildren.backdrop,X.popperChildren.content],e),ft([X.popperChildren.tooltip,X.popperChildren.backdrop,X.popperChildren.content],'hidden'),X.props.interactive&&!F&&-1<['focus','click'].indexOf(H.type)&&('focus'===H.type&&(F=!0),it(X.reference)),E(e,function(){M||a(),X.reference.removeAttribute('aria-describedby'),X.popperInstance.disableEventListeners(),X.props.appendTo.removeChild(X.popper),X.state.isMounted=!1,X.props.onHidden(X)}))}function D(e){X.state.isDestroyed||(X.state.isMounted&&P(0),T(),X.reference.removeEventListener('click',o),delete X.reference._tippy,X.props.target&&e&&Ne(X.reference.querySelectorAll(X.props.target)).forEach(function(e){return e._tippy&&e._tippy.destroy()}),X.popperInstance&&X.popperInstance.destroy(),N&&N.disconnect(),X.state.isDestroyed=!0)}var I=yt(e,t);if(!I.multiple&&e._tippy)return null;var N=null,H={},R=null,W=0,B=0,M=!1,_=function(){},U=[],F=!1,z=0<I.interactiveDebounce?wt(c,I.interactiveDebounce):c,V=Pt++,Y=Qe(V,I);Y.addEventListener('mouseenter',function(e){X.props.interactive&&X.state.isVisible&&'mouseenter'===H.type&&p(e)}),Y.addEventListener('mouseleave',function(e){X.props.interactive&&'mouseenter'===H.type&&0===X.props.interactiveDebounce&&ut(gt(Y),Y.getBoundingClientRect(),e,X.props)&&s()});var q=Be(Y),X={id:V,reference:e,popper:Y,popperChildren:q,popperInstance:null,props:I,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},clearDelayTimeouts:A,set:k,setContent:function(e){k({content:e})},show:S,hide:P,enable:function(){X.state.isEnabled=!0},disable:function(){X.state.isEnabled=!1},destroy:D};return C(),e.addEventListener('click',o),I.lazy||(X.popperInstance=g(),X.popperInstance.disableEventListeners()),I.showOnInit&&p(),!I.a11y||I.target||Re(e)||e.setAttribute('tabindex','0'),e._tippy=X,Y._tippy=X,X}function J(e,t,o){Et(t,pe),Dt||(Z(),Dt=!0);var r=ne({},pe,t);Me(e)&&et(e);var i=Fe(e),n=i[0],p=(o&&n?[n]:i).reduce(function(e,t){var o=t&&$(t,r);return o&&e.push(o),e},[]);return{targets:e,props:r,instances:p,destroyAll:function(){this.instances.forEach(function(e){e.destroy()}),this.instances=[]}}}for(var ee=Math.min,te=Math.floor,oe=Math.round,re=Math.max,ie='3.3.0',ne=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var r in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},pe={a11y:!0,allowHTML:!0,animateFill:!0,animation:'shift-away',appendTo:function(){return document.body},arrow:!1,arrowTransform:'',arrowType:'sharp',content:'',delay:[0,20],distance:10,duration:[325,275],flip:!0,flipBehavior:'flip',followCursor:!1,hideOnClick:!0,inertia:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,lazy:!0,livePlacement:!0,maxWidth:'',multiple:!1,offset:0,onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},performance:!1,placement:'top',popperOptions:{},shouldPopperHideOnBlur:function(){return!0},showOnInit:!1,size:'regular',sticky:!1,target:'',theme:'dark',touch:!0,touchHold:!1,trigger:'mouseenter focus',updateDuration:200,wait:null,zIndex:9999},se=function(e){pe=ne({},pe,e)},ae=['arrowType','distance','flip','flipBehavior','offset','placement','popperOptions'],de='undefined'!=typeof window,le=de?navigator:{},ce=de?window:{},fe=/MSIE |Trident\//.test(le.userAgent),me=/iPhone|iPad|iPod/.test(le.platform)&&!ce.MSStream,he=('ontouchstart'in ce),ue='undefined'!=typeof window&&'undefined'!=typeof document,be=['Edge','Trident','Firefox'],ge=0,ye=0;ye<be.length;ye+=1)if(ue&&0<=navigator.userAgent.indexOf(be[ye])){ge=1;break}var i=ue&&window.Promise,ve=i?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ge))}},we=ue&&!!(window.MSInputMethodContext&&document.documentMode),Ee=ue&&/MSIE 10/.test(navigator.userAgent),xe=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 o,r=0;r<t.length;r++)o=t[r],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}(),Le=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},Ce=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var r in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Te=ue&&/Firefox/i.test(navigator.userAgent),Ae=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],ke=Ae.slice(3),Se={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},Pe=function(){function t(o,r){var i=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};xe(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=ve(this.update.bind(this)),this.options=Ce({},t.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(Ce({},t.Defaults.modifiers,n.modifiers)).forEach(function(e){i.options.modifiers[e]=Ce({},t.Defaults.modifiers[e]||{},n.modifiers?n.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Ce({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return Oe(t,[{key:'update',value:function(){return D.call(this)}},{key:'destroy',value:function(){return H.call(this)}},{key:'enableEventListeners',value:function(){return M.call(this)}},{key:'disableEventListeners',value:function(){return U.call(this)}}]),t}();Pe.Utils=('undefined'==typeof window?global:window).PopperUtils,Pe.placements=Ae,Pe.Defaults={placement:'bottom',positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],r=t.split('-')[1];if(r){var i=e.offsets,n=i.reference,p=i.popper,s=-1!==['bottom','top'].indexOf(o),a=s?'left':'top',d=s?'width':'height',l={start:Le({},a,n[a]),end:Le({},a,n[a]+n[d]-p[d])};e.offsets.popper=Ce({},p,l[r])}return e}},offset:{order:200,enabled:!0,fn:Q,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||p(e.instance.popper);e.instance.reference===o&&(o=p(o));var r=N('transform'),i=e.instance.popper.style,n=i.top,s=i.left,a=i[r];i.top='',i.left='',i[r]='';var d=E(e.instance.popper,e.instance.reference,t.padding,o,e.positionFixed);i.top=n,i.left=s,i[r]=a,t.boundaries=d;var l=t.priority,c=e.offsets.popper,f={primary:function(e){var o=c[e];return c[e]<d[e]&&!t.escapeWithReference&&(o=re(c[e],d[e])),Le({},e,o)},secondary:function(e){var o='right'===e?'left':'top',r=c[o];return c[e]>d[e]&&!t.escapeWithReference&&(r=ee(c[o],d[e]-('right'===e?c.width:c.height))),Le({},o,r)}};return l.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';c=Ce({},c,f[t](e))}),e.offsets.popper=c,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,r=t.reference,i=e.placement.split('-')[0],n=te,p=-1!==['top','bottom'].indexOf(i),s=p?'right':'bottom',a=p?'left':'top',d=p?'width':'height';return o[s]<n(r[a])&&(e.offsets.popper[a]=n(r[a])-o[d]),o[a]>n(r[s])&&(e.offsets.popper[a]=n(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var r;if(!q(e.instance.modifiers,'arrow','keepTogether'))return e;var i=o.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var n=e.placement.split('-')[0],p=e.offsets,s=p.popper,a=p.reference,d=-1!==['left','right'].indexOf(n),l=d?'height':'width',c=d?'Top':'Left',f=c.toLowerCase(),m=d?'left':'top',h=d?'bottom':'right',b=C(i)[l];a[h]-b<s[f]&&(e.offsets.popper[f]-=s[f]-(a[h]-b)),a[f]+b>s[h]&&(e.offsets.popper[f]+=a[f]+b-s[h]),e.offsets.popper=u(e.offsets.popper);var g=a[f]+a[l]/2-b/2,y=t(e.instance.popper),v=parseFloat(y['margin'+c],10),w=parseFloat(y['border'+c+'Width'],10),E=g-e.offsets.popper[f]-v-w;return E=re(ee(s[l]-b,E),0),e.arrowElement=i,e.offsets.arrow=(r={},Le(r,f,oe(E)),Le(r,m,''),r),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(I(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=E(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split('-')[0],i=T(r),n=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case Se.FLIP:p=[r,i];break;case Se.CLOCKWISE:p=j(r);break;case Se.COUNTERCLOCKWISE:p=j(r,!0);break;default:p=t.behavior;}return p.forEach(function(s,a){if(r!==s||p.length===a+1)return e;r=e.placement.split('-')[0],i=T(r);var d=e.offsets.popper,l=e.offsets.reference,c=te,f='left'===r&&c(d.right)>c(l.left)||'right'===r&&c(d.left)<c(l.right)||'top'===r&&c(d.bottom)>c(l.top)||'bottom'===r&&c(d.top)<c(l.bottom),m=c(d.left)<c(o.left),h=c(d.right)>c(o.right),u=c(d.top)<c(o.top),b=c(d.bottom)>c(o.bottom),g='left'===r&&m||'right'===r&&h||'top'===r&&u||'bottom'===r&&b,y=-1!==['top','bottom'].indexOf(r),v=!!t.flipVariations&&(y&&'start'===n&&m||y&&'end'===n&&h||!y&&'start'===n&&u||!y&&'end'===n&&b);(f||g||v)&&(e.flipped=!0,(f||g)&&(r=p[a+1]),v&&(n=X(n)),e.placement=r+(n?'-'+n:''),e.offsets.popper=Ce({},e.offsets.popper,A(e.instance.popper,e.offsets.reference,e.placement)),e=P(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],r=e.offsets,i=r.popper,n=r.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return i[p?'left':'top']=n[o]-(s?i[p?'width':'height']:0),e.placement=T(t),e.offsets.popper=u(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!q(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=k(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,r=t.y,i=e.offsets.popper,n=k(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==n&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s=void 0===n?t.gpuAcceleration:n,a=p(e.instance.popper),d=b(a),l={position:i.position},c=Y(e,2>window.devicePixelRatio||!Te),f='bottom'===o?'top':'bottom',m='right'===r?'left':'right',h=N('transform'),u=void 0,g=void 0;if(g='bottom'==f?'HTML'===a.nodeName?-a.clientHeight+c.bottom:-d.height+c.bottom:c.top,u='right'==m?'HTML'===a.nodeName?-a.clientWidth+c.right:-d.width+c.right:c.left,s&&h)l[h]='translate3d('+u+'px, '+g+'px, 0)',l[f]=0,l[m]=0,l.willChange='transform';else{var y='bottom'==f?-1:1,v='right'==m?-1:1;l[f]=g*y,l[m]=u*v,l.willChange=f+', '+m}var w={"x-placement":e.placement};return e.attributes=Ce({},w,e.attributes),e.styles=Ce({},l,e.styles),e.arrowStyles=Ce({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return z(e.instance.popper,e.styles),V(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&z(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,r,i){var n=L(i,t,e,o.positionFixed),p=O(o.placement,n,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),z(t,{position:o.positionFixed?'fixed':'absolute'}),o},gpuAcceleration:void 0}}};var De={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow'},Ie={x:!0},Ne=function(e){return[].slice.call(e)},He=function(e,t){t.content instanceof Element?(Ue(e,''),e.appendChild(t.content)):e[t.allowHTML?'innerHTML':'textContent']=t.content},Re=function(e){return!(e instanceof Element)||tt.call(e,'a[href],area[href],button,details,input,textarea,select,iframe,[tabindex]')&&!e.hasAttribute('disabled')},We=function(e,t){e.filter(Boolean).forEach(function(e){e.style.transitionDuration=t+'ms'})},Be=function(e){var t=function(t){return e.querySelector(t)};return{tooltip:t(De.TOOLTIP),backdrop:t(De.BACKDROP),content:t(De.CONTENT),arrow:t(De.ARROW)||t(De.ROUND_ARROW)}},Me=function(e){return'[object Object]'==={}.toString.call(e)},_e=function(){return document.createElement('div')},Ue=function(e,t){e[Ie.x&&'innerHTML']=t instanceof Element?t[Ie.x&&'innerHTML']:t},Fe=function(e){if(e instanceof Element||Me(e))return[e];if(e instanceof NodeList)return Ne(e);if(Array.isArray(e))return e;try{return Ne(document.querySelectorAll(e))}catch(t){return[]}},ze=function(e){return!isNaN(e)&&!isNaN(parseFloat(e))},Ve=function(e,t,o){if(Array.isArray(e)){var r=e[t];return null==r?o:r}return e},Ye=function(e){var t=_e();return'round'===e?(t.className='tippy-roundarrow',Ue(t,'<svg viewBox="0 0 24 8" xmlns="http://www.w3.org/2000/svg"><path d="M3 8s2.021-.015 5.253-4.218C9.584 2.051 10.797 1.007 12 1c1.203-.007 2.416 1.035 3.761 2.782C19.012 8.005 21 8 21 8H3z"/></svg>')):t.className='tippy-arrow',t},qe=function(){var e=_e();return e.className='tippy-backdrop',e.setAttribute('data-state','hidden'),e},Xe=function(e,t){e.setAttribute('tabindex','-1'),t.setAttribute('data-interactive','')},je=function(e,t){e.removeAttribute('tabindex'),t.removeAttribute('data-interactive')},Ke=function(e){e.setAttribute('data-inertia','')},Ge=function(e){e.removeAttribute('data-inertia')},Qe=function(e,t){var o=_e();o.className='tippy-popper',o.setAttribute('role','tooltip'),o.id='tippy-'+e,o.style.zIndex=t.zIndex;var r=_e();r.className='tippy-tooltip',r.style.maxWidth=t.maxWidth+('number'==typeof t.maxWidth?'px':''),r.setAttribute('data-size',t.size),r.setAttribute('data-animation',t.animation),r.setAttribute('data-state','hidden'),t.theme.split(' ').forEach(function(e){r.classList.add(e+'-theme')});var i=_e();return i.className='tippy-content',i.setAttribute('data-state','hidden'),t.interactive&&Xe(o,r),t.arrow&&r.appendChild(Ye(t.arrowType)),t.animateFill&&(r.appendChild(qe()),r.setAttribute('data-animatefill','')),t.inertia&&r.setAttribute('data-inertia',''),He(i,t),r.appendChild(i),o.appendChild(r),o.addEventListener('focusout',function(t){t.relatedTarget&&o._tippy&&!rt(t.relatedTarget,function(e){return e===o})&&t.relatedTarget!==o._tippy.reference&&o._tippy.props.shouldPopperHideOnBlur(t)&&o._tippy.hide()}),o},Ze=function(e,t,o){var r=Be(e),i=r.tooltip,n=r.content,p=r.backdrop,s=r.arrow;e.style.zIndex=o.zIndex,i.setAttribute('data-size',o.size),i.setAttribute('data-animation',o.animation),i.style.maxWidth=o.maxWidth+('number'==typeof o.maxWidth?'px':''),t.content!==o.content&&He(n,o),!t.animateFill&&o.animateFill?(i.appendChild(qe()),i.setAttribute('data-animatefill','')):t.animateFill&&!o.animateFill&&(i.removeChild(p),i.removeAttribute('data-animatefill')),!t.arrow&&o.arrow?i.appendChild(Ye(o.arrowType)):t.arrow&&!o.arrow&&i.removeChild(s),t.arrow&&o.arrow&&t.arrowType!==o.arrowType&&i.replaceChild(Ye(o.arrowType),s),!t.interactive&&o.interactive?Xe(e,i):t.interactive&&!o.interactive&&je(e,i),!t.inertia&&o.inertia?Ke(i):t.inertia&&!o.inertia&&Ge(i),t.theme!==o.theme&&(t.theme.split(' ').forEach(function(e){i.classList.remove(e+'-theme')}),o.theme.split(' ').forEach(function(e){i.classList.add(e+'-theme')}))},$e=function(e){Ne(document.querySelectorAll(De.POPPER)).forEach(function(t){var o=t._tippy;o&&!0===o.props.hideOnClick&&(!e||t!==e.popper)&&o.hide()})},Je=function(e){return Object.keys(pe).reduce(function(t,o){var r=(e.getAttribute('data-tippy-'+o)||'').trim();return r?(t[o]='content'===o?r:'true'===r||'false'!==r&&(ze(r)?+r:'['===r[0]||'{'===r[0]?JSON.parse(r):r),t):t},{})},et=function(e){var t={isVirtual:!0,attributes:e.attributes||{},setAttribute:function(t,o){e.attributes[t]=o},getAttribute:function(t){return e.attributes[t]},removeAttribute:function(t){delete e.attributes[t]},hasAttribute:function(t){return t in e.attributes},addEventListener:function(){},removeEventListener:function(){},classList:{classNames:{},add:function(t){e.classList.classNames[t]=!0},remove:function(t){delete e.classList.classNames[t]},contains:function(t){return t in e.classList.classNames}}};for(var o in t)e[o]=t[o];return e},tt=function(){if(de){var t=Element.prototype;return t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector}}(),ot=function(e,t){return(Element.prototype.closest||function(e){for(var t=this;t;){if(tt.call(t,e))return t;t=t.parentElement}}).call(e,t)},rt=function(e,t){for(;e;){if(t(e))return e;e=e.parentElement}},it=function(e){var t=window.scrollX||window.pageXOffset,o=window.scrollY||window.pageYOffset;e.focus(),scroll(t,o)},nt=function(e){void e.offsetHeight},pt=function(e,t){return(t?e:{X:'Y',Y:'X'}[e])||''},st=function(e,t,o,r){var i=t[0],n=t[1];if(!i&&!n)return'';var p={scale:function(){return n?o?i+', '+n:n+', '+i:''+i}(),translate:function(){return n?o?r?i+'px, '+-n+'px':i+'px, '+n+'px':r?-n+'px, '+i+'px':n+'px, '+i+'px':r?-i+'px':i+'px'}()};return p[e]},at=function(e,t){var o=e.match(new RegExp(t+'([XY])'));return o?o[1]:''},dt=function(e,t){var o=e.match(t);return o?o[1].split(',').map(parseFloat):[]},lt={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},ct=function(e,t){var o=gt(ot(e,De.POPPER)),r='top'===o||'bottom'===o,i='right'===o||'bottom'===o,n={translate:{axis:at(t,'translate'),numbers:dt(t,lt.translate)},scale:{axis:at(t,'scale'),numbers:dt(t,lt.scale)}},p=t.replace(lt.translate,'translate'+pt(n.translate.axis,r)+'('+st('translate',n.translate.numbers,r,i)+')').replace(lt.scale,'scale'+pt(n.scale.axis,r)+'('+st('scale',n.scale.numbers,r,i)+')');e.style['undefined'==typeof document.body.style.transform?'webkitTransform':'transform']=p},ft=function(e,t){e.filter(Boolean).forEach(function(e){e.setAttribute('data-state',t)})},mt=function(e,t){var o=e.popper,r=e.options,i=r.onCreate,n=r.onUpdate;r.onCreate=r.onUpdate=function(){nt(o),t(),n(),r.onCreate=i,r.onUpdate=n}},ht=function(e){setTimeout(e,1)},ut=function(e,t,o,r){if(!e)return!0;var i=o.clientX,n=o.clientY,p=r.interactiveBorder,s=r.distance,a=t.top-n>('top'===e?p+s:p),d=n-t.bottom>('bottom'===e?p+s:p),l=t.left-i>('left'===e?p+s:p),c=i-t.right>('right'===e?p+s:p);return a||d||l||c},bt=function(e,t){return-(e-t)+'px'},gt=function(e){var t=e.getAttribute('x-placement');return t?t.split('-')[0]:''},yt=function(e,t){var o=ne({},t,t.performance?{}:Je(e));return o.arrow&&(o.animateFill=!1),'function'==typeof o.appendTo&&(o.appendTo=t.appendTo(e)),'function'==typeof o.content&&(o.content=t.content(e)),o},vt=function(e,t,o){e[t+'EventListener']('transitionend',o)},wt=function(e,t){var o;return function(){var r=this,i=arguments;clearTimeout(o),o=setTimeout(function(){return e.apply(r,i)},t)}},Et=function(e,t){for(var o in e||{})if(!(o in t))throw Error('[tippy]: `'+o+'` is not a valid option')},xt=function(e,t){return{}.hasOwnProperty.call(e,t)},Ot=!1,Lt=function(){Ot||(Ot=!0,me&&document.body.classList.add('tippy-iOS'),window.performance&&document.addEventListener('mousemove',Tt))},Ct=0,Tt=function e(){var t=performance.now();20>t-Ct&&(Ot=!1,document.removeEventListener('mousemove',e),!me&&document.body.classList.remove('tippy-iOS')),Ct=t},At=function(e){var t=e.target;if(!(t instanceof Element))return $e();var o=ot(t,De.POPPER);if(!(o&&o._tippy&&o._tippy.props.interactive)){var r=rt(t,function(e){return e._tippy&&e._tippy.reference===e});if(r){var i=r._tippy,n=-1<i.props.trigger.indexOf('click');if(Ot||n)return $e(i);if(!0!==i.props.hideOnClick||n)return;i.clearDelayTimeouts()}$e()}},kt=function(){var e=document,t=e.activeElement;t&&t.blur&&t._tippy&&t.blur()},St=function(){Ne(document.querySelectorAll(De.POPPER)).forEach(function(e){var t=e._tippy;t.props.livePlacement||t.popperInstance.scheduleUpdate()})},Pt=1,Dt=!1;J.version=ie,J.defaults=pe,J.one=function(e,t){return J(e,t,!0).instances[0]},J.setDefaults=function(e){se(e),J.defaults=pe},J.disableAnimations=function(){J.setDefaults({duration:0,updateDuration:0,animateFill:!1})},J.hideAllPoppers=$e,J.useCapture=function(){};return de&&setTimeout(function(){Ne(document.querySelectorAll('[data-tippy]')).forEach(function(e){var t=e.getAttribute('data-tippy');t&&J(e,{content:t})})}),J});