Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tippy.js

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tippy.js - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

src/js/core/bindEventListeners.js

2

dist/tippy.min.js

@@ -1,1 +0,1 @@

(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){Se.forEach(function(t){var o=t.popper,i=t.tippyInstance,n=t.settings,r=n.appendTo,s=n.hideOnClick,a=n.trigger;if(r.contains(o)){var p=!0===s||-1!==a.indexOf('focus'),l=!e||o!==e.popper;p&&l&&i.hide(o)}})}function t(e,t){var o=Element.prototype.closest||function(e){for(var t=this;t;){if(ke.call(t,e))return t;t=t.parentElement}};return o.call(e,t)}function o(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function n(){if(n.done)return!1;n.done=!0,Pe.appendTo=document.body;var i=function(){xe.touch=!0,xe.iOS()&&document.body.classList.add('tippy-touch'),xe.dynamicInputDetection&&document.addEventListener('mousemove',r)},r=function(){var e;return function(){var t=performance&&performance.now();t&&10>t-e&&(xe.touch=!1,document.removeEventListener('mousemove',r),!xe.iOS()&&document.body.classList.contains('tippy-touch')&&document.body.classList.remove('tippy-touch')),e=t}}();return document.addEventListener('click',function(i){if(!(i.target instanceof Element))return e();var n=t(i.target,Ce.TOOLTIPPED_EL),r=t(i.target,Ce.POPPER);if(r){var s=o(Se,function(e){return e.popper===r}),a=s.settings.interactive;if(a)return}if(n){var p=o(Se,function(e){return e.el===n}),l=p.settings,d=l.hideOnClick,c=l.multiple,f=l.trigger;if(!c&&xe.touch||!c&&-1!==f.indexOf('click'))return e(p);if(!0!==d||-1!==f.indexOf('click'))return}t(i.target,Ce.CONTROLLER)||!document.querySelector(Ce.POPPER)||e()}),document.addEventListener('touchstart',i),!xe.SUPPORTS_TOUCH&&(0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',i),!0}function r(e){window.requestAnimationFrame(function(){setTimeout(e,0)})}function s(e){for(var t=[!1,'webkit'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof window.document.body.style[r])return r}return null}function a(e,t){return Array.prototype.findIndex?e.findIndex(t):e.indexOf(o(e,t))}function p(e){var t=e.getAttribute('title');e.setAttribute('data-original-title',t||'html'),e.removeAttribute('title')}function l(e){var t=e.getBoundingClientRect();return 0<=t.top&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function d(e,t){t?window.getComputedStyle(t)[s('transform')]:window.getComputedStyle(e).opacity}function c(e,t){e.forEach(function(e){e&&t(e.classList)})}function f(e,t){var o;e.forEach(function(e){if(e){var i=ke.call(e,Ce.CIRCLE),n=ke.call(e,Ce.CONTENT);o=i?Te(o/1.1):n?Te(t/1.3):t,e.style[s('transitionDuration')]=o+'ms'}})}function m(e){return'visible'===e.style.visibility}function h(){}function u(e){return e.replace(/-.+/,'')}function g(t){var e,i,n=this,r=o(Se,function(e){return e.el===n}),a=r.popper,p=u(a.getAttribute('x-placement')),l=Te(a.offsetWidth/2),d=Te(a.offsetHeight/2),c=5,f=document.documentElement.offsetWidth||document.body.offsetWidth,m=t.pageX,h=t.pageY;'top'===p?(e=m-l,i=h-2.5*d):'left'===p?(e=m-2*l-15,i=h-d):'right'===p?(e=m+d,i=h-d):'bottom'===p?(e=m-l,i=h+d/1.5):void 0;('top'===p||'bottom'===p)&&(m+c+l>f&&(e=f-c-2*l),0>m-c-l&&(e=c)),a.style[s('transform')]='translate3d('+e+'px, '+i+'px, 0)'}function b(e){return e instanceof Element?[e]:[].slice.call(document.querySelectorAll(e))}function y(e,t,o){if(!t)return o();var i=e.popper.querySelector(Ce.TOOLTIP),n=!1,r=function t(r){r.target!==i||(n=!0,i.removeEventListener('webkitTransitionEnd',t),i.removeEventListener('transitionend',t),o())};i.addEventListener('webkitTransitionEnd',r),i.addEventListener('transitionend',r),clearTimeout(e._transitionendTimeout),e._transitionendTimeout=setTimeout(function(){n||o()},t)}function v(e){return e&&'[object Function]'==={}.toString.call(e)}function E(e,t){if(1!==e.nodeType)return[];var o=window.getComputedStyle(e,null);return t?o[t]:o}function O(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function w(e){if(!e||-1!==['HTML','BODY','#document'].indexOf(e.nodeName))return window.document.body;var t=E(e),o=t.overflow,i=t.overflowX,n=t.overflowY;return /(auto|scroll)/.test(o+n+i)?e:w(O(e))}function L(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||e.firstElementChild.offsetParent===e)}function T(e){return null===e.parentNode?e:T(e.parentNode)}function S(e){var t=e&&e.offsetParent,o=t&&t.nodeName;return o&&'BODY'!==o&&'HTML'!==o?t:window.document.documentElement}function x(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return window.document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:t,n=o?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(n,0);var s=r.commonAncestorContainer;if(e!==s&&t!==s||i.contains(n))return L(s)?s:S(s);var a=T(e);return a.host?x(a.host,t):x(e,T(t).host)}function C(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',i=e.nodeName;if('BODY'===i||'HTML'===i){var n=window.document.documentElement,r=window.document.scrollingElement||n;return r[o]}return e[o]}function P(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=C(t,'top'),n=C(t,'left'),r=o?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=n*r,e.right+=n*r,e}function A(e,t){var o='x'===t?'Left':'Top',i='Left'==o?'Right':'Bottom';return+e['border'+o+'Width'].split('px')[0]+ +e['border'+i+'Width'].split('px')[0]}function k(e,t,o,i){return Le(t['offset'+e],o['client'+e],o['offset'+e],Ue()?o['offset'+e]+i['margin'+('Height'===e?'Top':'Left')]+i['margin'+('Height'===e?'Bottom':'Right')]:0)}function I(){var e=window.document.body,t=window.document.documentElement,o=Ue()&&window.getComputedStyle(t);return{height:k('Height',e,t,o),width:k('Width',e,t,o)}}function D(e){return Ye({},e,{right:e.left+e.width,bottom:e.top+e.height})}function R(e){var t={};if(Ue())try{t=e.getBoundingClientRect();var o=C(e,'top'),i=C(e,'left');t.top+=o,t.left+=i,t.bottom+=o,t.right+=i}catch(e){}else t=e.getBoundingClientRect();var n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r='HTML'===e.nodeName?I():{},s=r.width||e.clientWidth||n.right-n.left,a=r.height||e.clientHeight||n.bottom-n.top,p=e.offsetWidth-s,l=e.offsetHeight-a;if(p||l){var d=E(e);p-=A(d,'x'),l-=A(d,'y'),n.width-=p,n.height-=l}return D(n)}function N(e,t){var o=Ue(),i='HTML'===t.nodeName,n=R(e),r=R(t),s=w(e),a=E(t),p=+a.borderTopWidth.split('px')[0],l=+a.borderLeftWidth.split('px')[0],d=D({top:n.top-r.top-p,left:n.left-r.left-l,width:n.width,height:n.height});if(d.marginTop=0,d.marginLeft=0,!o&&i){var c=+a.marginTop.split('px')[0],f=+a.marginLeft.split('px')[0];d.top-=p-c,d.bottom-=p-c,d.left-=l-f,d.right-=l-f,d.marginTop=c,d.marginLeft=f}return(o?t.contains(s):t===s&&'BODY'!==s.nodeName)&&(d=P(d,t)),d}function H(e){var t=window.document.documentElement,o=N(e,t),i=Le(t.clientWidth,window.innerWidth||0),n=Le(t.clientHeight,window.innerHeight||0),r=C(t),s=C(t,'left'),a={top:r-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:n};return D(a)}function B(e){var t=e.nodeName;return'BODY'===t||'HTML'===t?!1:'fixed'===E(e,'position')||B(O(e))}function M(e,t,o,i){var n={top:0,left:0},r=x(e,t);if('viewport'===i)n=H(r);else{var s;'scrollParent'===i?(s=w(O(e)),'BODY'===s.nodeName&&(s=window.document.documentElement)):'window'===i?s=window.document.documentElement:s=i;var a=N(s,r);if('HTML'===s.nodeName&&!B(r)){var p=I(),l=p.height,d=p.width;n.top+=a.top-a.marginTop,n.bottom=l+a.top,n.left+=a.left-a.marginLeft,n.right=d+a.left}else n=a}return n.left+=o,n.top+=o,n.right-=o,n.bottom-=o,n}function W(e){var t=e.width,o=e.height;return t*o}function U(e,t,o,i,n){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var s=M(o,i,r,n),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},p=Object.keys(a).map(function(e){return Ye({key:e},a[e],{area:W(a[e])})}).sort(function(e,t){return t.area-e.area}),l=p.filter(function(e){var t=e.width,i=e.height;return t>=o.clientWidth&&i>=o.clientHeight}),d=0<l.length?l[0].key:p[0].key,c=e.split('-')[1];return d+(c?'-'+c:'')}function q(e,t,o){var i=x(t,o);return N(o,i)}function _(e){var t=window.getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight),n={width:e.offsetWidth+i,height:e.offsetHeight+o};return n}function F(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 Y(e,t,o){o=o.split('-')[0];var i=_(e),n={width:i.width,height:i.height},r=-1!==['right','left'].indexOf(o),s=r?'top':'left',a=r?'left':'top',p=r?'height':'width',l=r?'width':'height';return n[s]=t[s]+t[p]/2-i[p]/2,n[a]=o===a?t[a]-i[l]:t[F(a)],n}function z(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function j(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var i=z(e,function(e){return e[t]===o});return e.indexOf(i)}function K(e,t,o){var i=void 0===o?e:e.slice(0,j(e,'name',o));return i.forEach(function(e){e.function&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var o=e.function||e.fn;e.enabled&&v(o)&&(t.offsets.popper=D(t.offsets.popper),t.offsets.reference=D(t.offsets.reference),t=o(t,e))}),t}function G(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=q(this.state,this.popper,this.reference),e.placement=U(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.offsets.popper=Y(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=K(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function X(e,t){return e.some(function(e){var o=e.name,i=e.enabled;return i&&o===t})}function V(e){for(var t=[!1,'ms','webkit','moz','o'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length-1;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof window.document.body.style[r])return r}return null}function Q(){return this.state.isDestroyed=!0,X(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[V('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function J(e,t,o,i){var n='BODY'===e.nodeName,r=n?window:e;r.addEventListener(t,o,{passive:!0}),n||J(w(r.parentNode),t,o,i),i.push(r)}function Z(e,t,o,i){o.updateBound=i,window.addEventListener('resize',o.updateBound,{passive:!0});var n=w(e);return J(n,'scroll',o.updateBound,o.scrollParents),o.scrollElement=n,o.eventsEnabled=!0,o}function $(){this.state.eventsEnabled||(this.state=Z(this.reference,this.options,this.state,this.scheduleUpdate))}function ee(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 te(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=ee(this.reference,this.state))}function oe(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ie(e,t){Object.keys(t).forEach(function(o){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&oe(t[o])&&(i='px'),e.style[o]=t[o]+i})}function ne(e,t){Object.keys(t).forEach(function(o){var i=t[o];!1===i?e.removeAttribute(o):e.setAttribute(o,t[o])})}function re(e,t,o){var i=z(e,function(e){var o=e.name;return o===t}),n=!!i&&e.some(function(e){return e.name===o&&e.enabled&&e.order<i.order});if(!n){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return n}function se(e){return'end'===e?'start':'start'===e?'end':e}function ae(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=je.indexOf(e),i=je.slice(o+1).concat(je.slice(0,o));return t?i.reverse():i}function pe(e,t,o,i){var n=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+n[1],s=n[2];if(!r)return e;if(0===s.indexOf('%')){var a;switch(s){case'%p':a=o;break;case'%':case'%r':default:a=i;}var p=D(a);return p[t]/100*r}if('vh'===s||'vw'===s){var l;return l='vh'===s?Le(document.documentElement.clientHeight,window.innerHeight||0):Le(document.documentElement.clientWidth,window.innerWidth||0),l/100*r}return r}function le(e,t,o,i){var n=[0,0],r=-1!==['right','left'].indexOf(i),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=s.indexOf(z(s,function(e){return-1!==e.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var p=/\s*,\s*|\s+/,l=-1===a?[s]:[s.slice(0,a).concat([s[a].split(p)[0]]),[s[a].split(p)[1],s.slice(a+1)]];return l=l.map(function(e,i){var n=(1===i?!r:r)?'height':'width',s=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)},[]).map(function(e){return pe(e,n,t,o)})}),l.forEach(function(e,t){e.forEach(function(o,i){oe(o)&&(n[t]+=o*('-'===e[i-1]?-1:1))})}),n}function de(e){return-(e-Pe.distance)+'px'}function ce(e){var t=e.el,o=e.popper,i=e.settings,n=i.position,r=i.popperOptions,s=i.offset,a=i.distance,p=o.querySelector(Ce.TOOLTIP),l=Qe({placement:n},r||{},{modifiers:Qe({},r?r.modifiers:{},{flip:Qe({padding:a+5},r&&r.modifiers?r.modifiers.flip:{}),offset:Qe({offset:s},r&&r.modifiers?r.modifiers.offset:{})}),onUpdate:function(){p.style.top='',p.style.bottom='',p.style.left='',p.style.right='',p.style[u(o.getAttribute('x-placement'))]=de(a)}});return new Ge(t,o,l)}function fe(e){var t=e.el,o=e.popper,i=e.settings,n=i.appendTo,r=i.followCursor;n.contains(o)||(n.appendChild(o),e.popperInstance?(e.popperInstance.update(),(!r||xe.touch)&&e.popperInstance.enableEventListeners()):e.popperInstance=ce(e),r&&!xe.touch&&(t.addEventListener('mousemove',g),e.popperInstance.disableEventListeners()))}function me(e){var t=e.popper,o=e.popperInstance,i=e.settings.stickyDuration,n=function(){return t.style[s('transitionDuration')]=i+'ms'},a=function(){return t.style[s('transitionDuration')]=''};r(function e(){o&&o.scheduleUpdate(),n(),m(t)?window.requestAnimationFrame(e):a()})}function he(e,t){var o=Ae.reduce(function(o,i){var n=e.getAttribute('data-'+i.toLowerCase())||t[i];return'false'===n&&(n=!1),'true'===n&&(n=!0),isFinite(n)&&!isNaN(parseFloat(n))&&(n=parseFloat(n)),'string'==typeof n&&'['===n.trim().charAt(0)&&(n=JSON.parse(n)),o[i]=n,o},{});return Qe({},t,o)}function ue(e,t,o){var i=o.position,n=o.distance,r=o.arrow,s=o.animateFill,a=o.inertia,p=o.animation,l=o.arrowSize,d=o.size,c=o.theme,f=o.html,m=o.zIndex,h=o.interactive,g=document.createElement('div');g.setAttribute('class','tippy-popper'),g.setAttribute('role','tooltip'),g.setAttribute('aria-hidden','true'),g.setAttribute('id','tippy-tooltip-'+e),g.style.zIndex=m;var b=document.createElement('div');if(b.setAttribute('class','tippy-tooltip tippy-tooltip--'+d+' leave'),b.setAttribute('data-animation',p),c.split(' ').forEach(function(e){b.classList.add(e+'-theme')}),r){var y=document.createElement('div');y.setAttribute('class','arrow-'+l),y.setAttribute('x-arrow',''),b.appendChild(y)}if(s){b.setAttribute('data-animatefill','');var v=document.createElement('div');v.setAttribute('class','leave'),v.setAttribute('x-circle',''),b.appendChild(v)}a&&b.setAttribute('data-inertia',''),h&&b.setAttribute('data-interactive','');var E=document.createElement('div');if(E.setAttribute('class','tippy-tooltip-content'),f){var O;f instanceof Element?(E.appendChild(f),O='#'+f.id||'tippy-html-template'):(E.innerHTML=document.getElementById(f.replace('#','')).innerHTML,O=f),g.classList.add('html-template'),h&&g.setAttribute('tabindex','-1'),b.setAttribute('data-template-id',O)}else E.innerHTML=t;return b.style[u(i)]=de(n),b.appendChild(E),g.appendChild(b),g}function ge(e,t,o,i){var n=[];return'manual'===e?n:(t.addEventListener(e,o.handleTrigger),n.push({event:e,handler:o.handleTrigger}),'mouseenter'===e&&(xe.SUPPORTS_TOUCH&&i&&(t.addEventListener('touchstart',o.handleTrigger),n.push({event:'touchstart',handler:o.handleTrigger}),t.addEventListener('touchend',o.handleMouseleave),n.push({event:'touchend',handler:o.handleMouseleave})),t.addEventListener('mouseleave',o.handleMouseleave),n.push({event:'mouseleave',handler:o.handleMouseleave})),'focus'===e&&(t.addEventListener('blur',o.handleBlur),n.push({event:'blur',handler:o.handleBlur})),n)}function be(e,t,o){if(!t.getAttribute('x-placement'))return!0;var i=e.clientX,n=e.clientY,r=o.interactiveBorder,s=o.distance,a=t.getBoundingClientRect(),p=u(t.getAttribute('x-placement')),l=r+s,d={top:a.top-n>r,bottom:n-a.bottom>r,left:a.left-i>r,right:i-a.right>r};return'top'===p?d.top=a.top-n>l:'bottom'===p?d.bottom=n-a.bottom>l:'left'===p?d.left=a.left-i>l:'right'===p?d.right=i-a.right>l:void 0,d.top||d.bottom||d.left||d.right}function ye(e,o,i){var n,r,s=this,a=i.position,p=i.delay,l=i.duration,d=i.interactive,c=i.interactiveBorder,f=i.distance,h=i.hideOnClick,u=i.trigger,g=i.touchHold,b=i.touchWait,y=function(){clearTimeout(n),clearTimeout(r)},v=function(){if(y(),!m(o)){var e=Array.isArray(p)?p[0]:p;p?n=setTimeout(function(){return s.show(o)},e):s.show(o)}},E=function(e){return s.callbacks.wait?s.callbacks.wait.call(o,v,e):v()},O=function(){y();var e=Array.isArray(p)?p[1]:p;p?r=setTimeout(function(){return s.hide(o)},e):s.hide(o)};return{handleTrigger:function(t){var i='mouseenter'===t.type&&xe.SUPPORTS_TOUCH&&xe.touch;if(!(i&&g)){var n='click'===t.type;n&&m(o)&&'persistent'!==h?O():E(t),i&&xe.iOS()&&e.click&&e.click()}},handleMouseleave:function(n){if(!('mouseleave'===n.type&&xe.SUPPORTS_TOUCH&&xe.touch&&g)){if(d){var r=function n(r){var s=function(){document.body.removeEventListener('mouseleave',O),document.removeEventListener('mousemove',n),O()},a=t(r.target,Ce.TOOLTIPPED_EL),p=t(r.target,Ce.POPPER)===o,l=-1!==u.indexOf('click');return a&&a!==e?s():void(p||a===e||l||be(r,o,i)&&s())};return document.body.addEventListener('mouseleave',O),void document.addEventListener('mousemove',r)}O()}},handleBlur:function(e){xe.touch||!e.relatedTarget||t(e.relatedTarget,Ce.POPPER)||O()}}}function ve(e){var t=this;return e.reduce(function(e,o){var i=t.settings.performance?t.settings:he(o,t.settings);i.arrow&&(i.animateFill=!1);var n=i.html,r=i.trigger,s=i.touchHold,a=o.getAttribute('title');if(!a&&!n)return e;var l=Je;o.setAttribute('data-tooltipped',''),o.setAttribute('aria-describedby','tippy-tooltip-'+l),p(o);var d=ue(l,a,i),c=ye.call(t,o,d,i),f=[];return r.trim().split(' ').forEach(function(e){return f=f.concat(ge(e,o,c,s))}),e.push({id:l,el:o,popper:d,settings:i,listeners:f,tippyInstance:t}),Je++,e},[])}function Ee(e,t){return new Ze(e,t)}var Oe=Math.min,we=Math.floor,Le=Math.max,Te=Math.round,xe={};'undefined'!=typeof window&&(xe.SUPPORTED=!!window.requestAnimationFrame,xe.SUPPORTS_TOUCH='ontouchstart'in window,xe.touch=!1,xe.dynamicInputDetection=!0,xe.iOS=function(){return /iPhone|iPad|iPod/.test(navigator.userAgent)&&!window.MSStream});for(var Se=[],Ce={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-tooltip-content',CIRCLE:'[x-circle]',ARROW:'[x-arrow]',TOOLTIPPED_EL:'[data-tooltipped]',CONTROLLER:'[data-tippy-controller]'},Pe={html:!1,position:'top',animation:'shift',animateFill:!0,arrow:!1,arrowSize:'regular',delay:0,trigger:'mouseenter focus',duration:350,interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:350,sticky:!1,stickyDuration:200,appendTo:null,zIndex:9999,touchHold:!1,performance:!1,popperOptions:{}},Ae=xe.SUPPORTED&&Object.keys(Pe),ke=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=t.length;0<=--o&&t.item(o)!==this;);return-1<o},Ie=['native code','[object MutationObserverConstructor]'],De=function(e){return Ie.some(function(t){return-1<(e||'').toString().indexOf(t)})},Re='undefined'!=typeof window,Ne=['Edge','Trident','Firefox'],He=0,Be=0;Be<Ne.length;Be+=1)if(Re&&0<=navigator.userAgent.indexOf(Ne[Be])){He=1;break}var i,Me=Re&&De(window.MutationObserver),We=Me?function(e){var t=!1,o=0,i=document.createElement('span'),n=new MutationObserver(function(){e(),t=!1});return n.observe(i,{attributes:!0}),function(){t||(t=!0,i.setAttribute('x-index',o),++o)}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},He))}},Ue=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},qe=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},_e=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),Fe=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},Ye=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ze=['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'],je=ze.slice(3),Ke={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},Ge=function(){function e(t,o){var i=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};qe(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=We(this.update.bind(this)),this.options=Ye({},e.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t.jquery?t[0]:t,this.popper=o.jquery?o[0]:o,this.options.modifiers={},Object.keys(Ye({},e.Defaults.modifiers,n.modifiers)).forEach(function(t){i.options.modifiers[t]=Ye({},e.Defaults.modifiers[t]||{},n.modifiers?n.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Ye({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&v(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return _e(e,[{key:'update',value:function(){return G.call(this)}},{key:'destroy',value:function(){return Q.call(this)}},{key:'enableEventListeners',value:function(){return $.call(this)}},{key:'disableEventListeners',value:function(){return te.call(this)}}]),e}();Ge.Utils=('undefined'==typeof window?global:window).PopperUtils,Ge.placements=ze,Ge.Defaults={placement:'bottom',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],i=t.split('-')[1];if(i){var n=e.offsets,r=n.reference,s=n.popper,a=-1!==['bottom','top'].indexOf(o),p=a?'left':'top',l=a?'width':'height',d={start:Fe({},p,r[p]),end:Fe({},p,r[p]+r[l]-s[l])};e.offsets.popper=Ye({},s,d[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var o,i=t.offset,n=e.placement,r=e.offsets,s=r.popper,a=r.reference,p=n.split('-')[0];return o=oe(+i)?[+i,0]:le(i,s,a,p),'left'===p?(s.top+=o[0],s.left-=o[1]):'right'===p?(s.top+=o[0],s.left+=o[1]):'top'===p?(s.left+=o[0],s.top-=o[1]):'bottom'===p&&(s.left+=o[0],s.top+=o[1]),e.popper=s,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||S(e.instance.popper);e.instance.reference===o&&(o=S(o));var i=M(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=i;var n=t.priority,r=e.offsets.popper,s={primary:function(e){var o=r[e];return r[e]<i[e]&&!t.escapeWithReference&&(o=Le(r[e],i[e])),Fe({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=r[o];return r[e]>i[e]&&!t.escapeWithReference&&(n=Oe(r[o],i[e]-('right'===e?r.width:r.height))),Fe({},o,n)}};return n.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';r=Ye({},r,s[t](e))}),e.offsets.popper=r,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,i=t.reference,n=e.placement.split('-')[0],r=we,s=-1!==['top','bottom'].indexOf(n),a=s?'right':'bottom',p=s?'left':'top',l=s?'width':'height';return o[a]<r(i[p])&&(e.offsets.popper[p]=r(i[p])-o[l]),o[p]>r(i[a])&&(e.offsets.popper[p]=r(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(!re(e.instance.modifiers,'arrow','keepTogether'))return e;var o=t.element;if('string'==typeof o){if(o=e.instance.popper.querySelector(o),!o)return e;}else if(!e.instance.popper.contains(o))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var i=e.placement.split('-')[0],n=e.offsets,r=n.popper,s=n.reference,a=-1!==['left','right'].indexOf(i),p=a?'height':'width',l=a?'top':'left',d=a?'left':'top',c=a?'bottom':'right',f=_(o)[p];s[c]-f<r[l]&&(e.offsets.popper[l]-=r[l]-(s[c]-f)),s[l]+f>r[c]&&(e.offsets.popper[l]+=s[l]+f-r[c]);var m=s[l]+s[p]/2-f/2,h=m-D(e.offsets.popper)[l];return h=Le(Oe(r[p]-f,h),0),e.arrowElement=o,e.offsets.arrow={},e.offsets.arrow[l]=Te(h),e.offsets.arrow[d]='',e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(X(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=M(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],n=F(i),r=e.placement.split('-')[1]||'',s=[];switch(t.behavior){case Ke.FLIP:s=[i,n];break;case Ke.CLOCKWISE:s=ae(i);break;case Ke.COUNTERCLOCKWISE:s=ae(i,!0);break;default:s=t.behavior;}return s.forEach(function(a,p){if(i!==a||s.length===p+1)return e;i=e.placement.split('-')[0],n=F(i);var l=e.offsets.popper,d=e.offsets.reference,c=we,f='left'===i&&c(l.right)>c(d.left)||'right'===i&&c(l.left)<c(d.right)||'top'===i&&c(l.bottom)>c(d.top)||'bottom'===i&&c(l.top)<c(d.bottom),m=c(l.left)<c(o.left),h=c(l.right)>c(o.right),u=c(l.top)<c(o.top),g=c(l.bottom)>c(o.bottom),b='left'===i&&m||'right'===i&&h||'top'===i&&u||'bottom'===i&&g,y=-1!==['top','bottom'].indexOf(i),v=!!t.flipVariations&&(y&&'start'===r&&m||y&&'end'===r&&h||!y&&'start'===r&&u||!y&&'end'===r&&g);(f||b||v)&&(e.flipped=!0,(f||b)&&(i=s[p+1]),v&&(r=se(r)),e.placement=i+(r?'-'+r:''),e.offsets.popper=Ye({},e.offsets.popper,Y(e.instance.popper,e.offsets.reference,e.placement)),e=K(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],i=e.offsets,n=i.popper,r=i.reference,s=-1!==['left','right'].indexOf(o),a=-1===['top','left'].indexOf(o);return n[s?'left':'top']=r[t]-(a?n[s?'width':'height']:0),e.placement=F(t),e.offsets.popper=D(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(!re(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=z(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,i=t.y,n=e.offsets.popper,r=z(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==r&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,a,p=void 0===r?t.gpuAcceleration:r,l=S(e.instance.popper),d=R(l),c={position:n.position},f={left:we(n.left),top:we(n.top),bottom:we(n.bottom),right:we(n.right)},m='bottom'===o?'top':'bottom',h='right'===i?'left':'right',u=V('transform');if(a='bottom'==m?-d.height+f.bottom:f.top,s='right'==h?-d.width+f.right:f.left,p&&u)c[u]='translate3d('+s+'px, '+a+'px, 0)',c[m]=0,c[h]=0,c.willChange='transform';else{var g='bottom'==m?-1:1,b='right'==h?-1:1;c[m]=a*g,c[h]=s*b,c.willChange=m+', '+h}var y={"x-placement":e.placement};return e.attributes=y,e.styles=Ye({},c,e.styles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return ie(e.instance.popper,e.styles),ne(e.instance.popper,e.attributes),e.offsets.arrow&&ie(e.arrowElement,e.offsets.arrow),e},onLoad:function(e,t,o,i,n){var r=q(n,t,e),s=U(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',s),ie(t,{position:'absolute'}),o},gpuAcceleration:void 0}}};var Xe=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},Ve=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),Qe=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Je=1,Ze=function(){function e(t){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};Xe(this,e),xe.SUPPORTED&&(n(),this.state={destroyed:!1},this.selector=t,this.settings=Qe({},Pe,o),this.callbacks={wait:o.wait,show:o.show||h,shown:o.shown||h,hide:o.hide||h,hidden:o.hidden||h},this.store=ve.call(this,b(t)),Se.push.apply(Se,this.store))}return Ve(e,[{key:'getPopperElement',value:function(e){try{return o(this.store,function(t){return t.el===e}).popper}catch(t){console.error('[getPopperElement]: Element passed as the argument does not exist in the instance')}}},{key:'getReferenceElement',value:function(e){try{return o(this.store,function(t){return t.popper===e}).el}catch(t){console.error('[getReferenceElement]: Popper passed as the argument does not exist in the instance')}}},{key:'getReferenceData',value:function(e){return o(this.store,function(t){return t.el===e||t.popper===e})}},{key:'show',value:function(e,t){var i=this;if(!this.state.destroyed){this.callbacks.show.call(e);var n=o(this.store,function(t){return t.popper===e}),s=e.querySelector(Ce.TOOLTIP),a=e.querySelector(Ce.CIRCLE),p=e.querySelector(Ce.CONTENT),l=n.el,h=n.settings,u=h.appendTo,g=h.sticky,b=h.interactive,v=h.followCursor,E=h.flipDuration,O=h.duration,w=void 0===t?Array.isArray(O)?O[0]:O:t;f([e,s,a],0),fe(n),e.style.visibility='visible',e.setAttribute('aria-hidden','false'),r(function(){m(e)&&((!v||xe.touch)&&n.popperInstance.update(),f([s,a],w,!0),(!v||xe.touch)&&f([e],E,!0),a&&(p.style.opacity=1),b&&l.classList.add('active'),g&&me(n),d(s,a),c([s,a],function(e){e.contains('tippy-notransition')&&e.remove('tippy-notransition'),e.remove('leave'),e.add('enter')}),y(n,w,function(){!m(e)||n._onShownFired||(b&&e.focus(),s.classList.add('tippy-notransition'),n._onShownFired=!0,i.callbacks.shown.call(e))}))})}}},{key:'hide',value:function(e,t){var i=this;if(!this.state.destroyed){this.callbacks.hide.call(e);var n=o(this.store,function(t){return t.popper===e}),r=e.querySelector(Ce.TOOLTIP),s=e.querySelector(Ce.CIRCLE),a=e.querySelector(Ce.CONTENT),p=n.el,d=n.settings,h=d.appendTo,u=d.sticky,b=d.interactive,v=d.followCursor,E=d.html,O=d.trigger,w=d.duration,L=void 0===t?Array.isArray(w)?w[1]:w:t;n._onShownFired=!1,b&&p.classList.remove('active'),e.style.visibility='hidden',e.setAttribute('aria-hidden','true'),f([r,s,s?a:null],L),s&&(a.style.opacity=0),c([r,s],function(e){e.contains('tippy-tooltip')&&e.remove('tippy-notransition'),e.remove('enter'),e.add('leave')}),E&&-1!==O.indexOf('click')&&l(p)&&p.focus(),y(n,L,function(){m(e)||!h.contains(e)||(p.removeEventListener('mousemove',g),n.popperInstance.disableEventListeners(),h.removeChild(e),i.callbacks.hidden.call(e))})}}},{key:'update',value:function(e){if(!this.state.destroyed){var t=o(this.store,function(t){return t.popper===e}),i=e.querySelector(Ce.CONTENT),n=t.el,r=t.settings.html;return r instanceof Element?void console.warn('Aborted: update() should not be used if `html` is a DOM element'):void(i.innerHTML=r?document.getElementById(r.replace('#','')).innerHTML:n.getAttribute('title')||n.getAttribute('data-original-title'),!r&&p(n))}}},{key:'destroy',value:function(e,t){var i=this;if(!this.state.destroyed){var n=o(this.store,function(t){return t.popper===e}),r=n.el,s=n.popperInstance,p=n.listeners;m(e)&&this.hide(e,0),p.forEach(function(e){return r.removeEventListener(e.event,e.handler)}),r.setAttribute('title',r.getAttribute('data-original-title')),r.removeAttribute('data-original-title'),r.removeAttribute('data-tooltipped'),r.removeAttribute('aria-describedby'),s&&s.destroy(),Se.splice(a(Se,function(t){return t.popper===e}),1),(void 0===t||t)&&(this.store=Se.filter(function(e){return e.tippyInstance===i}))}}},{key:'destroyAll',value:function(){var e=this;if(!this.state.destroyed){var t=this.store.length;this.store.forEach(function(o,i){var n=o.popper;e.destroy(n,i===t-1)}),this.store=null,this.state.destroyed=!0}}}]),e}();return Ee.Browser=xe,Ee.Defaults=Pe,Ee.disableDynamicInputDetection=function(){return xe.dynamicInputDetection=!1},Ee.enableDynamicInputDetection=function(){return xe.dynamicInputDetection=!0},Ee});
(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){Pe.forEach(function(t){var o=t.popper,i=t.tippyInstance,n=t.settings,r=n.appendTo,s=n.hideOnClick,a=n.trigger;if(r.contains(o)){var p=!0===s||-1!==a.indexOf('focus'),l=!e||o!==e.popper;p&&l&&i.hide(o)}})}function t(e,t){var o=Element.prototype.closest||function(e){for(var t=this;t;){if(Ie.call(t,e))return t;t=t.parentElement}};return o.call(e,t)}function o(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function n(){var i=function(){xe.touch=!0,xe.iOS()&&document.body.classList.add('tippy-touch'),xe.dynamicInputDetection&&document.addEventListener('mousemove',n)},n=function(){var e;return function(){var t=performance&&performance.now();t&&10>t-e&&(xe.touch=!1,document.removeEventListener('mousemove',n),!xe.iOS()&&document.body.classList.contains('tippy-touch')&&document.body.classList.remove('tippy-touch')),e=t}}();document.addEventListener('click',function(i){if(!(i.target instanceof Element))return e();var n=t(i.target,Ce.TOOLTIPPED_EL),r=t(i.target,Ce.POPPER);if(r){var s=o(Pe,function(e){return e.popper===r}),a=s.settings.interactive;if(a)return}if(n){var p=o(Pe,function(e){return e.el===n}),l=p.settings,d=l.hideOnClick,c=l.multiple,f=l.trigger;if(!c&&xe.touch||!c&&-1!==f.indexOf('click'))return e(p);if(!0!==d||-1!==f.indexOf('click'))return}t(i.target,Ce.CONTROLLER)||!document.querySelector(Ce.POPPER)||e()}),document.addEventListener('touchstart',i),window.addEventListener('blur',function(){var e=document,t=e.activeElement;t&&t.blur&&Ie.call(t,Ce.TOOLTIPPED_EL)&&t.blur()}),!xe.SUPPORTS_TOUCH&&(0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',i)}function r(){return!r.done&&(r.done=!0,Ae.appendTo=document.body,n(),!0)}function s(e){window.requestAnimationFrame(function(){setTimeout(e,0)})}function a(e){for(var t=[!1,'webkit'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof window.document.body.style[r])return r}return null}function p(e,t){return Array.prototype.findIndex?e.findIndex(t):e.indexOf(o(e,t))}function l(e){var t=e.getAttribute('title');e.setAttribute('data-original-title',t||'html'),e.removeAttribute('title')}function d(e){var t=e.getBoundingClientRect();return 0<=t.top&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function c(e,t){t?window.getComputedStyle(t)[a('transform')]:window.getComputedStyle(e).opacity}function f(e,t){e.forEach(function(e){e&&t(e.classList)})}function m(e,t){e.forEach(function(e){if(e){var o=Ie.call(e,Ce.CONTENT),i=o?Se(t/1.3):t;e.style[a('transitionDuration')]=i+'ms'}})}function h(e){return'visible'===e.style.visibility}function u(){}function g(e){return e.replace(/-.+/,'')}function b(t){var e,i,n=this,r=o(Pe,function(e){return e.el===n}),s=r.popper,p=g(s.getAttribute('x-placement')),l=Se(s.offsetWidth/2),d=Se(s.offsetHeight/2),c=5,f=document.documentElement.offsetWidth||document.body.offsetWidth,m=t.pageX,h=t.pageY;'top'===p?(e=m-l,i=h-2.5*d):'left'===p?(e=m-2*l-15,i=h-d):'right'===p?(e=m+d,i=h-d):'bottom'===p?(e=m-l,i=h+d/1.5):void 0;('top'===p||'bottom'===p)&&(m+c+l>f&&(e=f-c-2*l),0>m-c-l&&(e=c)),s.style[a('transform')]='translate3d('+e+'px, '+i+'px, 0)'}function y(e){return e instanceof Element?[e]:[].slice.call(document.querySelectorAll(e))}function v(e,t,o){if(!t)return o();var i=e.popper.querySelector(Ce.TOOLTIP),n=!1,r=function t(r){r.target!==i||(n=!0,i.removeEventListener('webkitTransitionEnd',t),i.removeEventListener('transitionend',t),o())};i.addEventListener('webkitTransitionEnd',r),i.addEventListener('transitionend',r),clearTimeout(e._transitionendTimeout),e._transitionendTimeout=setTimeout(function(){n||o()},t)}function E(e){return e&&'[object Function]'==={}.toString.call(e)}function O(e,t){if(1!==e.nodeType)return[];var o=window.getComputedStyle(e,null);return t?o[t]:o}function w(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function L(e){if(!e||-1!==['HTML','BODY','#document'].indexOf(e.nodeName))return window.document.body;var t=O(e),o=t.overflow,i=t.overflowX,n=t.overflowY;return /(auto|scroll)/.test(o+n+i)?e:L(w(e))}function T(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||e.firstElementChild.offsetParent===e)}function S(e){return null===e.parentNode?e:S(e.parentNode)}function P(e){var t=e&&e.offsetParent,o=t&&t.nodeName;return o&&'BODY'!==o&&'HTML'!==o?t:window.document.documentElement}function x(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return window.document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:t,n=o?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(n,0);var s=r.commonAncestorContainer;if(e!==s&&t!==s||i.contains(n))return T(s)?s:P(s);var a=S(e);return a.host?x(a.host,t):x(e,S(t).host)}function C(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',i=e.nodeName;if('BODY'===i||'HTML'===i){var n=window.document.documentElement,r=window.document.scrollingElement||n;return r[o]}return e[o]}function A(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=C(t,'top'),n=C(t,'left'),r=o?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=n*r,e.right+=n*r,e}function k(e,t){var o='x'===t?'Left':'Top',i='Left'==o?'Right':'Bottom';return+e['border'+o+'Width'].split('px')[0]+ +e['border'+i+'Width'].split('px')[0]}function I(e,t,o,i){return Te(t['offset'+e],o['client'+e],o['offset'+e],qe()?o['offset'+e]+i['margin'+('Height'===e?'Top':'Left')]+i['margin'+('Height'===e?'Bottom':'Right')]:0)}function D(){var e=window.document.body,t=window.document.documentElement,o=qe()&&window.getComputedStyle(t);return{height:I('Height',e,t,o),width:I('Width',e,t,o)}}function R(e){return ze({},e,{right:e.left+e.width,bottom:e.top+e.height})}function H(e){var t={};if(qe())try{t=e.getBoundingClientRect();var o=C(e,'top'),i=C(e,'left');t.top+=o,t.left+=i,t.bottom+=o,t.right+=i}catch(e){}else t=e.getBoundingClientRect();var n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r='HTML'===e.nodeName?D():{},s=r.width||e.clientWidth||n.right-n.left,a=r.height||e.clientHeight||n.bottom-n.top,p=e.offsetWidth-s,l=e.offsetHeight-a;if(p||l){var d=O(e);p-=k(d,'x'),l-=k(d,'y'),n.width-=p,n.height-=l}return R(n)}function N(e,t){var o=qe(),i='HTML'===t.nodeName,n=H(e),r=H(t),s=L(e),a=O(t),p=+a.borderTopWidth.split('px')[0],l=+a.borderLeftWidth.split('px')[0],d=R({top:n.top-r.top-p,left:n.left-r.left-l,width:n.width,height:n.height});if(d.marginTop=0,d.marginLeft=0,!o&&i){var c=+a.marginTop.split('px')[0],f=+a.marginLeft.split('px')[0];d.top-=p-c,d.bottom-=p-c,d.left-=l-f,d.right-=l-f,d.marginTop=c,d.marginLeft=f}return(o?t.contains(s):t===s&&'BODY'!==s.nodeName)&&(d=A(d,t)),d}function B(e){var t=window.document.documentElement,o=N(e,t),i=Te(t.clientWidth,window.innerWidth||0),n=Te(t.clientHeight,window.innerHeight||0),r=C(t),s=C(t,'left'),a={top:r-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:n};return R(a)}function M(e){var t=e.nodeName;return'BODY'===t||'HTML'===t?!1:'fixed'===O(e,'position')||M(w(e))}function W(e,t,o,i){var n={top:0,left:0},r=x(e,t);if('viewport'===i)n=B(r);else{var s;'scrollParent'===i?(s=L(w(e)),'BODY'===s.nodeName&&(s=window.document.documentElement)):'window'===i?s=window.document.documentElement:s=i;var a=N(s,r);if('HTML'===s.nodeName&&!M(r)){var p=D(),l=p.height,d=p.width;n.top+=a.top-a.marginTop,n.bottom=l+a.top,n.left+=a.left-a.marginLeft,n.right=d+a.left}else n=a}return n.left+=o,n.top+=o,n.right-=o,n.bottom-=o,n}function U(e){var t=e.width,o=e.height;return t*o}function q(e,t,o,i,n){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var s=W(o,i,r,n),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},p=Object.keys(a).map(function(e){return ze({key:e},a[e],{area:U(a[e])})}).sort(function(e,t){return t.area-e.area}),l=p.filter(function(e){var t=e.width,i=e.height;return t>=o.clientWidth&&i>=o.clientHeight}),d=0<l.length?l[0].key:p[0].key,c=e.split('-')[1];return d+(c?'-'+c:'')}function _(e,t,o){var i=x(t,o);return N(o,i)}function F(e){var t=window.getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight),n={width:e.offsetWidth+i,height:e.offsetHeight+o};return n}function Y(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 z(e,t,o){o=o.split('-')[0];var i=F(e),n={width:i.width,height:i.height},r=-1!==['right','left'].indexOf(o),s=r?'top':'left',a=r?'left':'top',p=r?'height':'width',l=r?'width':'height';return n[s]=t[s]+t[p]/2-i[p]/2,n[a]=o===a?t[a]-i[l]:t[Y(a)],n}function j(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function K(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var i=j(e,function(e){return e[t]===o});return e.indexOf(i)}function G(e,t,o){var i=void 0===o?e:e.slice(0,K(e,'name',o));return i.forEach(function(e){e.function&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var o=e.function||e.fn;e.enabled&&E(o)&&(t.offsets.popper=R(t.offsets.popper),t.offsets.reference=R(t.offsets.reference),t=o(t,e))}),t}function X(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=_(this.state,this.popper,this.reference),e.placement=q(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.offsets.popper=z(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=G(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function V(e,t){return e.some(function(e){var o=e.name,i=e.enabled;return i&&o===t})}function Q(e){for(var t=[!1,'ms','webkit','moz','o'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length-1;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof window.document.body.style[r])return r}return null}function J(){return this.state.isDestroyed=!0,V(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[Q('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Z(e,t,o,i){var n='BODY'===e.nodeName,r=n?window:e;r.addEventListener(t,o,{passive:!0}),n||Z(L(r.parentNode),t,o,i),i.push(r)}function $(e,t,o,i){o.updateBound=i,window.addEventListener('resize',o.updateBound,{passive:!0});var n=L(e);return Z(n,'scroll',o.updateBound,o.scrollParents),o.scrollElement=n,o.eventsEnabled=!0,o}function ee(){this.state.eventsEnabled||(this.state=$(this.reference,this.options,this.state,this.scheduleUpdate))}function te(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 oe(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=te(this.reference,this.state))}function ie(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ne(e,t){Object.keys(t).forEach(function(o){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&ie(t[o])&&(i='px'),e.style[o]=t[o]+i})}function re(e,t){Object.keys(t).forEach(function(o){var i=t[o];!1===i?e.removeAttribute(o):e.setAttribute(o,t[o])})}function se(e,t,o){var i=j(e,function(e){var o=e.name;return o===t}),n=!!i&&e.some(function(e){return e.name===o&&e.enabled&&e.order<i.order});if(!n){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return n}function ae(e){return'end'===e?'start':'start'===e?'end':e}function pe(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=Ke.indexOf(e),i=Ke.slice(o+1).concat(Ke.slice(0,o));return t?i.reverse():i}function le(e,t,o,i){var n=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+n[1],s=n[2];if(!r)return e;if(0===s.indexOf('%')){var a;switch(s){case'%p':a=o;break;case'%':case'%r':default:a=i;}var p=R(a);return p[t]/100*r}if('vh'===s||'vw'===s){var l;return l='vh'===s?Te(document.documentElement.clientHeight,window.innerHeight||0):Te(document.documentElement.clientWidth,window.innerWidth||0),l/100*r}return r}function de(e,t,o,i){var n=[0,0],r=-1!==['right','left'].indexOf(i),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=s.indexOf(j(s,function(e){return-1!==e.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var p=/\s*,\s*|\s+/,l=-1===a?[s]:[s.slice(0,a).concat([s[a].split(p)[0]]),[s[a].split(p)[1],s.slice(a+1)]];return l=l.map(function(e,i){var n=(1===i?!r:r)?'height':'width',s=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)},[]).map(function(e){return le(e,n,t,o)})}),l.forEach(function(e,t){e.forEach(function(o,i){ie(o)&&(n[t]+=o*('-'===e[i-1]?-1:1))})}),n}function ce(e){return-(e-Ae.distance)+'px'}function fe(e){var t=e.el,o=e.popper,i=e.settings,n=i.position,r=i.popperOptions,s=i.offset,a=i.distance,p=i.flipDuration,l=o.querySelector(Ce.TOOLTIP),d=Je({placement:n},r||{},{modifiers:Je({},r?r.modifiers:{},{flip:Je({padding:a+5},r&&r.modifiers?r.modifiers.flip:{}),offset:Je({offset:s},r&&r.modifiers?r.modifiers.offset:{})}),onUpdate:function(){l.style.top='',l.style.bottom='',l.style.left='',l.style.right='',l.style[g(o.getAttribute('x-placement'))]=ce(a)}});return new Xe(t,o,d)}function me(e){var t=e.el,o=e.popper,i=e.settings,n=i.appendTo,r=i.followCursor,p=i.flipDuration;if(!n.contains(o)){if(n.appendChild(o),!!e.popperInstance)e.popperInstance.update(),(!r||xe.touch)&&e.popperInstance.enableEventListeners();else if(e.popperInstance=fe(e),window.MutationObserver){var l=o.style,d=new MutationObserver(function(){l[a('transitionDuration')]='0ms',e.popperInstance.update(),s(function(){l[a('transitionDuration')]=p+'ms'})});d.observe(o,{childList:!0,subtree:!0,characterData:!0}),e._mutationObserver=d}r&&!xe.touch&&(t.addEventListener('mousemove',b),e.popperInstance.disableEventListeners())}}function he(e){var t=e.popper,o=e.popperInstance,i=e.settings.stickyDuration,n=function(){return t.style[a('transitionDuration')]=i+'ms'},r=function(){return t.style[a('transitionDuration')]=''};s(function e(){o&&o.scheduleUpdate(),n(),h(t)?window.requestAnimationFrame(e):r()})}function ue(e,t){var o=ke.reduce(function(o,i){var n=e.getAttribute('data-'+i.toLowerCase())||t[i];return'false'===n&&(n=!1),'true'===n&&(n=!0),isFinite(n)&&!isNaN(parseFloat(n))&&(n=parseFloat(n)),'string'==typeof n&&'['===n.trim().charAt(0)&&(n=JSON.parse(n)),o[i]=n,o},{});return Je({},t,o)}function ge(e,t,o){var i=o.position,n=o.distance,r=o.arrow,s=o.animateFill,a=o.inertia,p=o.animation,l=o.arrowSize,d=o.size,c=o.theme,f=o.html,m=o.zIndex,h=o.interactive,u=document.createElement('div');u.setAttribute('class','tippy-popper'),u.setAttribute('role','tooltip'),u.setAttribute('aria-hidden','true'),u.setAttribute('id','tippy-tooltip-'+e),u.style.zIndex=m;var b=document.createElement('div');if(b.setAttribute('class','tippy-tooltip tippy-tooltip--'+d+' leave'),b.setAttribute('data-animation',p),c.split(' ').forEach(function(e){b.classList.add(e+'-theme')}),r){var y=document.createElement('div');y.setAttribute('class','arrow-'+l),y.setAttribute('x-arrow',''),b.appendChild(y)}if(s){b.setAttribute('data-animatefill','');var v=document.createElement('div');v.setAttribute('class','leave'),v.setAttribute('x-circle',''),b.appendChild(v)}a&&b.setAttribute('data-inertia',''),h&&b.setAttribute('data-interactive','');var E=document.createElement('div');if(E.setAttribute('class','tippy-tooltip-content'),f){var O;f instanceof Element?(E.appendChild(f),O='#'+f.id||'tippy-html-template'):(E.innerHTML=document.getElementById(f.replace('#','')).innerHTML,O=f),u.classList.add('html-template'),h&&u.setAttribute('tabindex','-1'),b.setAttribute('data-template-id',O)}else E.innerHTML=t;return b.style[g(i)]=ce(n),b.appendChild(E),u.appendChild(b),u}function be(e,t,o,i){var n=[];return'manual'===e?n:(t.addEventListener(e,o.handleTrigger),n.push({event:e,handler:o.handleTrigger}),'mouseenter'===e&&(xe.SUPPORTS_TOUCH&&i&&(t.addEventListener('touchstart',o.handleTrigger),n.push({event:'touchstart',handler:o.handleTrigger}),t.addEventListener('touchend',o.handleMouseleave),n.push({event:'touchend',handler:o.handleMouseleave})),t.addEventListener('mouseleave',o.handleMouseleave),n.push({event:'mouseleave',handler:o.handleMouseleave})),'focus'===e&&(t.addEventListener('blur',o.handleBlur),n.push({event:'blur',handler:o.handleBlur})),n)}function ye(e,t,o){if(!t.getAttribute('x-placement'))return!0;var i=e.clientX,n=e.clientY,r=o.interactiveBorder,s=o.distance,a=t.getBoundingClientRect(),p=g(t.getAttribute('x-placement')),l=r+s,d={top:a.top-n>r,bottom:n-a.bottom>r,left:a.left-i>r,right:i-a.right>r};return'top'===p?d.top=a.top-n>l:'bottom'===p?d.bottom=n-a.bottom>l:'left'===p?d.left=a.left-i>l:'right'===p?d.right=i-a.right>l:void 0,d.top||d.bottom||d.left||d.right}function ve(e,o,i){var n,r,s=this,a=i.position,p=i.delay,l=i.duration,d=i.interactive,c=i.interactiveBorder,f=i.distance,m=i.hideOnClick,u=i.trigger,g=i.touchHold,b=i.touchWait,y=function(){clearTimeout(n),clearTimeout(r)},v=function(){if(y(),!h(o)){var e=Array.isArray(p)?p[0]:p;p?n=setTimeout(function(){return s.show(o)},e):s.show(o)}},E=function(e){return s.callbacks.wait?s.callbacks.wait.call(o,v,e):v()},O=function(){y();var e=Array.isArray(p)?p[1]:p;p?r=setTimeout(function(){return s.hide(o)},e):s.hide(o)};return{handleTrigger:function(t){var i='mouseenter'===t.type&&xe.SUPPORTS_TOUCH&&xe.touch;if(!(i&&g)){var n='click'===t.type;n&&h(o)&&'persistent'!==m?O():E(t),i&&xe.iOS()&&e.click&&e.click()}},handleMouseleave:function(n){if(!('mouseleave'===n.type&&xe.SUPPORTS_TOUCH&&xe.touch&&g)){if(d){var r=function n(r){var s=function(){document.body.removeEventListener('mouseleave',O),document.removeEventListener('mousemove',n),O()},a=t(r.target,Ce.TOOLTIPPED_EL),p=t(r.target,Ce.POPPER)===o,l=-1!==u.indexOf('click');return a&&a!==e?s():void(p||a===e||l||ye(r,o,i)&&s())};return document.body.addEventListener('mouseleave',O),void document.addEventListener('mousemove',r)}O()}},handleBlur:function(e){!e.relatedTarget||xe.touch||t(e.relatedTarget,Ce.POPPER)||O()}}}function Ee(e){var t=this;return e.reduce(function(e,o){var i=t.settings.performance?t.settings:ue(o,t.settings);i.arrow&&(i.animateFill=!1);var n=i.html,r=i.trigger,s=i.touchHold,a=o.getAttribute('title');if(!a&&!n)return e;var p=Ze;o.setAttribute('data-tooltipped',''),o.setAttribute('aria-describedby','tippy-tooltip-'+p),l(o);var d=ge(p,a,i),c=ve.call(t,o,d,i),f=[];return r.trim().split(' ').forEach(function(e){return f=f.concat(be(e,o,c,s))}),e.push({id:p,el:o,popper:d,settings:i,listeners:f,tippyInstance:t}),Ze++,e},[])}function Oe(e,t){return new $e(e,t)}var we=Math.min,Le=Math.floor,Te=Math.max,Se=Math.round,xe={};'undefined'!=typeof window&&(xe.SUPPORTED='requestAnimationFrame'in window,xe.SUPPORTS_TOUCH='ontouchstart'in window,xe.touch=!1,xe.dynamicInputDetection=!0,xe.iOS=function(){return /iPhone|iPad|iPod/.test(navigator.userAgent)&&!window.MSStream});for(var Pe=[],Ce={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-tooltip-content',CIRCLE:'[x-circle]',ARROW:'[x-arrow]',TOOLTIPPED_EL:'[data-tooltipped]',CONTROLLER:'[data-tippy-controller]'},Ae={html:!1,position:'top',animation:'shift',animateFill:!0,arrow:!1,arrowSize:'regular',delay:0,trigger:'mouseenter focus',duration:350,interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:350,sticky:!1,stickyDuration:200,appendTo:null,zIndex:9999,touchHold:!1,performance:!1,popperOptions:{}},ke=xe.SUPPORTED&&Object.keys(Ae),Ie=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=t.length;0<=--o&&t.item(o)!==this;);return-1<o},De=['native code','[object MutationObserverConstructor]'],Re=function(e){return De.some(function(t){return-1<(e||'').toString().indexOf(t)})},He='undefined'!=typeof window,Ne=['Edge','Trident','Firefox'],Be=0,Me=0;Me<Ne.length;Me+=1)if(He&&0<=navigator.userAgent.indexOf(Ne[Me])){Be=1;break}var i,We=He&&Re(window.MutationObserver),Ue=We?function(e){var t=!1,o=0,i=document.createElement('span'),n=new MutationObserver(function(){e(),t=!1});return n.observe(i,{attributes:!0}),function(){t||(t=!0,i.setAttribute('x-index',o),++o)}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Be))}},qe=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},_e=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},Fe=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),Ye=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},ze=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},je=['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=je.slice(3),Ge={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},Xe=function(){function e(t,o){var i=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};_e(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Ue(this.update.bind(this)),this.options=ze({},e.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t.jquery?t[0]:t,this.popper=o.jquery?o[0]:o,this.options.modifiers={},Object.keys(ze({},e.Defaults.modifiers,n.modifiers)).forEach(function(t){i.options.modifiers[t]=ze({},e.Defaults.modifiers[t]||{},n.modifiers?n.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ze({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&E(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return Fe(e,[{key:'update',value:function(){return X.call(this)}},{key:'destroy',value:function(){return J.call(this)}},{key:'enableEventListeners',value:function(){return ee.call(this)}},{key:'disableEventListeners',value:function(){return oe.call(this)}}]),e}();Xe.Utils=('undefined'==typeof window?global:window).PopperUtils,Xe.placements=je,Xe.Defaults={placement:'bottom',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],i=t.split('-')[1];if(i){var n=e.offsets,r=n.reference,s=n.popper,a=-1!==['bottom','top'].indexOf(o),p=a?'left':'top',l=a?'width':'height',d={start:Ye({},p,r[p]),end:Ye({},p,r[p]+r[l]-s[l])};e.offsets.popper=ze({},s,d[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var o,i=t.offset,n=e.placement,r=e.offsets,s=r.popper,a=r.reference,p=n.split('-')[0];return o=ie(+i)?[+i,0]:de(i,s,a,p),'left'===p?(s.top+=o[0],s.left-=o[1]):'right'===p?(s.top+=o[0],s.left+=o[1]):'top'===p?(s.left+=o[0],s.top-=o[1]):'bottom'===p&&(s.left+=o[0],s.top+=o[1]),e.popper=s,e},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 i=W(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=i;var n=t.priority,r=e.offsets.popper,s={primary:function(e){var o=r[e];return r[e]<i[e]&&!t.escapeWithReference&&(o=Te(r[e],i[e])),Ye({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=r[o];return r[e]>i[e]&&!t.escapeWithReference&&(n=we(r[o],i[e]-('right'===e?r.width:r.height))),Ye({},o,n)}};return n.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';r=ze({},r,s[t](e))}),e.offsets.popper=r,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,i=t.reference,n=e.placement.split('-')[0],r=Le,s=-1!==['top','bottom'].indexOf(n),a=s?'right':'bottom',p=s?'left':'top',l=s?'width':'height';return o[a]<r(i[p])&&(e.offsets.popper[p]=r(i[p])-o[l]),o[p]>r(i[a])&&(e.offsets.popper[p]=r(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(!se(e.instance.modifiers,'arrow','keepTogether'))return e;var o=t.element;if('string'==typeof o){if(o=e.instance.popper.querySelector(o),!o)return e;}else if(!e.instance.popper.contains(o))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var i=e.placement.split('-')[0],n=e.offsets,r=n.popper,s=n.reference,a=-1!==['left','right'].indexOf(i),p=a?'height':'width',l=a?'top':'left',d=a?'left':'top',c=a?'bottom':'right',f=F(o)[p];s[c]-f<r[l]&&(e.offsets.popper[l]-=r[l]-(s[c]-f)),s[l]+f>r[c]&&(e.offsets.popper[l]+=s[l]+f-r[c]);var m=s[l]+s[p]/2-f/2,h=m-R(e.offsets.popper)[l];return h=Te(we(r[p]-f,h),0),e.arrowElement=o,e.offsets.arrow={},e.offsets.arrow[l]=Se(h),e.offsets.arrow[d]='',e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(V(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=W(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],n=Y(i),r=e.placement.split('-')[1]||'',s=[];switch(t.behavior){case Ge.FLIP:s=[i,n];break;case Ge.CLOCKWISE:s=pe(i);break;case Ge.COUNTERCLOCKWISE:s=pe(i,!0);break;default:s=t.behavior;}return s.forEach(function(a,p){if(i!==a||s.length===p+1)return e;i=e.placement.split('-')[0],n=Y(i);var l=e.offsets.popper,d=e.offsets.reference,c=Le,f='left'===i&&c(l.right)>c(d.left)||'right'===i&&c(l.left)<c(d.right)||'top'===i&&c(l.bottom)>c(d.top)||'bottom'===i&&c(l.top)<c(d.bottom),m=c(l.left)<c(o.left),h=c(l.right)>c(o.right),u=c(l.top)<c(o.top),g=c(l.bottom)>c(o.bottom),b='left'===i&&m||'right'===i&&h||'top'===i&&u||'bottom'===i&&g,y=-1!==['top','bottom'].indexOf(i),v=!!t.flipVariations&&(y&&'start'===r&&m||y&&'end'===r&&h||!y&&'start'===r&&u||!y&&'end'===r&&g);(f||b||v)&&(e.flipped=!0,(f||b)&&(i=s[p+1]),v&&(r=ae(r)),e.placement=i+(r?'-'+r:''),e.offsets.popper=ze({},e.offsets.popper,z(e.instance.popper,e.offsets.reference,e.placement)),e=G(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],i=e.offsets,n=i.popper,r=i.reference,s=-1!==['left','right'].indexOf(o),a=-1===['top','left'].indexOf(o);return n[s?'left':'top']=r[t]-(a?n[s?'width':'height']:0),e.placement=Y(t),e.offsets.popper=R(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(!se(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=j(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,i=t.y,n=e.offsets.popper,r=j(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==r&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,a,p=void 0===r?t.gpuAcceleration:r,l=P(e.instance.popper),d=H(l),c={position:n.position},f={left:Le(n.left),top:Le(n.top),bottom:Le(n.bottom),right:Le(n.right)},m='bottom'===o?'top':'bottom',h='right'===i?'left':'right',u=Q('transform');if(a='bottom'==m?-d.height+f.bottom:f.top,s='right'==h?-d.width+f.right:f.left,p&&u)c[u]='translate3d('+s+'px, '+a+'px, 0)',c[m]=0,c[h]=0,c.willChange='transform';else{var g='bottom'==m?-1:1,b='right'==h?-1:1;c[m]=a*g,c[h]=s*b,c.willChange=m+', '+h}var y={"x-placement":e.placement};return e.attributes=ze({},y,e.attributes),e.styles=ze({},c,e.styles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return ne(e.instance.popper,e.styles),re(e.instance.popper,e.attributes),e.offsets.arrow&&ne(e.arrowElement,e.offsets.arrow),e},onLoad:function(e,t,o,i,n){var r=_(n,t,e),s=q(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',s),ne(t,{position:'absolute'}),o},gpuAcceleration:void 0}}};var Ve=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},Qe=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),Je=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ze=1,$e=function(){function e(t){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};Ve(this,e),xe.SUPPORTED&&(r(),this.state={destroyed:!1},this.selector=t,this.settings=Je({},Ae,o),this.callbacks={wait:o.wait,show:o.onShow||o.show||u,shown:o.onShown||o.shown||u,hide:o.onHide||o.hide||u,hidden:o.onHidden||o.hidden||u},this.store=Ee.call(this,y(t)),Pe.push.apply(Pe,this.store))}return Qe(e,[{key:'getPopperElement',value:function(e){try{return o(this.store,function(t){return t.el===e}).popper}catch(t){console.error('[getPopperElement]: Element passed as the argument does not exist in the instance')}}},{key:'getReferenceElement',value:function(e){try{return o(this.store,function(t){return t.popper===e}).el}catch(t){console.error('[getReferenceElement]: Popper passed as the argument does not exist in the instance')}}},{key:'getReferenceData',value:function(e){return o(this.store,function(t){return t.el===e||t.popper===e})}},{key:'show',value:function(e,t){var i=this;if(!this.state.destroyed){this.callbacks.show.call(e);var n=o(this.store,function(t){return t.popper===e}),r=e.querySelector(Ce.TOOLTIP),a=e.querySelector(Ce.CIRCLE),p=e.querySelector(Ce.CONTENT),l=n.el,d=n.settings,u=d.appendTo,g=d.sticky,b=d.interactive,y=d.followCursor,E=d.flipDuration,O=d.duration,w=void 0===t?Array.isArray(O)?O[0]:O:t;m([e,r,a],0),me(n),e.style.visibility='visible',e.setAttribute('aria-hidden','false'),s(function(){h(e)&&((!y||xe.touch)&&n.popperInstance.update(),m([r,a],w),(!y||xe.touch)&&m([e],E),a&&(p.style.opacity=1),b&&l.classList.add('active'),g&&he(n),c(r,a),f([r,a],function(e){e.contains('tippy-notransition')&&e.remove('tippy-notransition'),e.remove('leave'),e.add('enter')}),v(n,w,function(){!h(e)||n._onShownFired||(b&&e.focus(),r.classList.add('tippy-notransition'),n._onShownFired=!0,i.callbacks.shown.call(e))}))})}}},{key:'hide',value:function(e,t){var i=this;if(!this.state.destroyed){this.callbacks.hide.call(e);var n=o(this.store,function(t){return t.popper===e}),r=e.querySelector(Ce.TOOLTIP),s=e.querySelector(Ce.CIRCLE),a=e.querySelector(Ce.CONTENT),p=n.el,l=n.settings,c=l.appendTo,u=l.sticky,g=l.interactive,y=l.followCursor,E=l.html,O=l.trigger,w=l.duration,L=void 0===t?Array.isArray(w)?w[1]:w:t;n._onShownFired=!1,g&&p.classList.remove('active'),e.style.visibility='hidden',e.setAttribute('aria-hidden','true'),m([r,s,s?a:null],L),s&&(a.style.opacity=0),f([r,s],function(e){e.contains('tippy-tooltip')&&e.remove('tippy-notransition'),e.remove('enter'),e.add('leave')}),E&&-1!==O.indexOf('click')&&d(p)&&p.focus(),v(n,L,function(){h(e)||!c.contains(e)||(p.removeEventListener('mousemove',b),n.popperInstance.disableEventListeners(),c.removeChild(e),i.callbacks.hidden.call(e))})}}},{key:'update',value:function(e){if(!this.state.destroyed){var t=o(this.store,function(t){return t.popper===e}),i=e.querySelector(Ce.CONTENT),n=t.el,r=t.settings.html;return r instanceof Element?void console.warn('Aborted: update() should not be used if `html` is a DOM element'):void(i.innerHTML=r?document.getElementById(r.replace('#','')).innerHTML:n.getAttribute('title')||n.getAttribute('data-original-title'),!r&&l(n))}}},{key:'destroy',value:function(e,t){var i=this;if(!this.state.destroyed){var n=o(this.store,function(t){return t.popper===e}),r=n.el,s=n.popperInstance,a=n.listeners,l=n._mutationObserver;h(e)&&this.hide(e,0),a.forEach(function(e){return r.removeEventListener(e.event,e.handler)}),r.setAttribute('title',r.getAttribute('data-original-title')),r.removeAttribute('data-original-title'),r.removeAttribute('data-tooltipped'),r.removeAttribute('aria-describedby'),s&&s.destroy(),l&&l.disconnect(),Pe.splice(p(Pe,function(t){return t.popper===e}),1),(void 0===t||t)&&(this.store=Pe.filter(function(e){return e.tippyInstance===i}))}}},{key:'destroyAll',value:function(){var e=this;if(!this.state.destroyed){var t=this.store.length;this.store.forEach(function(o,i){var n=o.popper;e.destroy(n,i===t-1)}),this.store=null,this.state.destroyed=!0}}}]),e}();return Oe.Browser=xe,Oe.Defaults=Ae,Oe.disableDynamicInputDetection=function(){return xe.dynamicInputDetection=!1},Oe.enableDynamicInputDetection=function(){return xe.dynamicInputDetection=!0},Oe});

@@ -1,1 +0,1 @@

(function(a,b){'object'==typeof exports&&'undefined'!=typeof module?module.exports=b(require('popper.js')):'function'==typeof define&&define.amd?define(['popper.js'],b):a.tippy=b(a.Popper)})(this,function(a){'use strict';function b(a){G.forEach(function(b){var c=b.popper,d=b.tippyInstance,e=b.settings,f=e.appendTo,g=e.hideOnClick,h=e.trigger;if(f.contains(c)){var i=!0===g||-1!==h.indexOf('focus'),j=!a||c!==a.popper;i&&j&&d.hide(c)}})}function c(a,b){var c=Element.prototype.closest||function(a){for(var b=this;b;){if(K.call(b,a))return b;b=b.parentElement}};return c.call(a,b)}function d(a,b){return Array.prototype.find?a.find(b):a.filter(b)[0]}function e(){if(e.done)return!1;e.done=!0,I.appendTo=document.body;var a=function(){F.touch=!0,F.iOS()&&document.body.classList.add('tippy-touch'),F.dynamicInputDetection&&document.addEventListener('mousemove',f)},f=function(){var a;return function(){var b=performance&&performance.now();b&&10>b-a&&(F.touch=!1,document.removeEventListener('mousemove',f),!F.iOS()&&document.body.classList.contains('tippy-touch')&&document.body.classList.remove('tippy-touch')),a=b}}();return document.addEventListener('click',function(a){if(!(a.target instanceof Element))return b();var e=c(a.target,H.TOOLTIPPED_EL),f=c(a.target,H.POPPER);if(f){var g=d(G,function(a){return a.popper===f}),h=g.settings.interactive;if(h)return}if(e){var i=d(G,function(a){return a.el===e}),j=i.settings,k=j.hideOnClick,l=j.multiple,m=j.trigger;if(!l&&F.touch||!l&&-1!==m.indexOf('click'))return b(i);if(!0!==k||-1!==m.indexOf('click'))return}c(a.target,H.CONTROLLER)||!document.querySelector(H.POPPER)||b()}),document.addEventListener('touchstart',a),!F.SUPPORTS_TOUCH&&(0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',a),!0}function f(a){window.requestAnimationFrame(function(){setTimeout(a,0)})}function g(a){for(var b=[!1,'webkit'],c=a.charAt(0).toUpperCase()+a.slice(1),d=0;d<b.length;d++){var e=b[d],f=e?''+e+c:a;if('undefined'!=typeof window.document.body.style[f])return f}return null}function h(a,b){return Array.prototype.findIndex?a.findIndex(b):a.indexOf(d(a,b))}function i(a){var b=a.getAttribute('title');a.setAttribute('data-original-title',b||'html'),a.removeAttribute('title')}function j(a){var b=a.getBoundingClientRect();return 0<=b.top&&0<=b.left&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)}function k(a,b){b?window.getComputedStyle(b)[g('transform')]:window.getComputedStyle(a).opacity}function l(a,b){a.forEach(function(a){a&&b(a.classList)})}function m(a,b){var c;a.forEach(function(a){if(a){var d=K.call(a,H.CIRCLE),e=K.call(a,H.CONTENT);c=d?E(c/1.1):e?E(b/1.3):b,a.style[g('transitionDuration')]=c+'ms'}})}function n(a){return'visible'===a.style.visibility}function o(){}function p(a){return a.replace(/-.+/,'')}function q(a){var b,c,e=this,f=d(G,function(a){return a.el===e}),h=f.popper,i=p(h.getAttribute('x-placement')),j=E(h.offsetWidth/2),k=E(h.offsetHeight/2),l=5,m=document.documentElement.offsetWidth||document.body.offsetWidth,n=a.pageX,o=a.pageY;'top'===i?(b=n-j,c=o-2.5*k):'left'===i?(b=n-2*j-15,c=o-k):'right'===i?(b=n+k,c=o-k):'bottom'===i?(b=n-j,c=o+k/1.5):void 0;('top'===i||'bottom'===i)&&(n+l+j>m&&(b=m-l-2*j),0>n-l-j&&(b=l)),h.style[g('transform')]='translate3d('+b+'px, '+c+'px, 0)'}function r(a){return a instanceof Element?[a]:[].slice.call(document.querySelectorAll(a))}function s(a,b,c){if(!b)return c();var d=a.popper.querySelector(H.TOOLTIP),f=!1,e=function a(b){b.target!==d||(f=!0,d.removeEventListener('webkitTransitionEnd',a),d.removeEventListener('transitionend',a),c())};d.addEventListener('webkitTransitionEnd',e),d.addEventListener('transitionend',e),clearTimeout(a._transitionendTimeout),a._transitionendTimeout=setTimeout(function(){f||c()},b)}function t(a){return-(a-I.distance)+'px'}function u(b){var c=b.el,d=b.popper,e=b.settings,f=e.position,g=e.popperOptions,h=e.offset,i=e.distance,j=d.querySelector(H.TOOLTIP),k=N({placement:f},g||{},{modifiers:N({},g?g.modifiers:{},{flip:N({padding:i+5},g&&g.modifiers?g.modifiers.flip:{}),offset:N({offset:h},g&&g.modifiers?g.modifiers.offset:{})}),onUpdate:function(){j.style.top='',j.style.bottom='',j.style.left='',j.style.right='',j.style[p(d.getAttribute('x-placement'))]=t(i)}});return new a(c,d,k)}function v(a){var b=a.el,c=a.popper,d=a.settings,e=d.appendTo,f=d.followCursor;e.contains(c)||(e.appendChild(c),a.popperInstance?(a.popperInstance.update(),(!f||F.touch)&&a.popperInstance.enableEventListeners()):a.popperInstance=u(a),f&&!F.touch&&(b.addEventListener('mousemove',q),a.popperInstance.disableEventListeners()))}function w(a){var b=a.popper,c=a.popperInstance,d=a.settings.stickyDuration,e=function(){return b.style[g('transitionDuration')]=d+'ms'},h=function(){return b.style[g('transitionDuration')]=''};f(function a(){c&&c.scheduleUpdate(),e(),n(b)?window.requestAnimationFrame(a):h()})}function x(a,b){var c=J.reduce(function(c,d){var e=a.getAttribute('data-'+d.toLowerCase())||b[d];return'false'===e&&(e=!1),'true'===e&&(e=!0),isFinite(e)&&!isNaN(parseFloat(e))&&(e=parseFloat(e)),'string'==typeof e&&'['===e.trim().charAt(0)&&(e=JSON.parse(e)),c[d]=e,c},{});return N({},b,c)}function y(a,b,c){var d=c.position,e=c.distance,f=c.arrow,g=c.animateFill,h=c.inertia,i=c.animation,j=c.arrowSize,k=c.size,l=c.theme,m=c.html,n=c.zIndex,o=c.interactive,q=document.createElement('div');q.setAttribute('class','tippy-popper'),q.setAttribute('role','tooltip'),q.setAttribute('aria-hidden','true'),q.setAttribute('id','tippy-tooltip-'+a),q.style.zIndex=n;var r=document.createElement('div');if(r.setAttribute('class','tippy-tooltip tippy-tooltip--'+k+' leave'),r.setAttribute('data-animation',i),l.split(' ').forEach(function(a){r.classList.add(a+'-theme')}),f){var s=document.createElement('div');s.setAttribute('class','arrow-'+j),s.setAttribute('x-arrow',''),r.appendChild(s)}if(g){r.setAttribute('data-animatefill','');var u=document.createElement('div');u.setAttribute('class','leave'),u.setAttribute('x-circle',''),r.appendChild(u)}h&&r.setAttribute('data-inertia',''),o&&r.setAttribute('data-interactive','');var v=document.createElement('div');if(v.setAttribute('class','tippy-tooltip-content'),m){var w;m instanceof Element?(v.appendChild(m),w='#'+m.id||'tippy-html-template'):(v.innerHTML=document.getElementById(m.replace('#','')).innerHTML,w=m),q.classList.add('html-template'),o&&q.setAttribute('tabindex','-1'),r.setAttribute('data-template-id',w)}else v.innerHTML=b;return r.style[p(d)]=t(e),r.appendChild(v),q.appendChild(r),q}function z(a,b,c,d){var e=[];return'manual'===a?e:(b.addEventListener(a,c.handleTrigger),e.push({event:a,handler:c.handleTrigger}),'mouseenter'===a&&(F.SUPPORTS_TOUCH&&d&&(b.addEventListener('touchstart',c.handleTrigger),e.push({event:'touchstart',handler:c.handleTrigger}),b.addEventListener('touchend',c.handleMouseleave),e.push({event:'touchend',handler:c.handleMouseleave})),b.addEventListener('mouseleave',c.handleMouseleave),e.push({event:'mouseleave',handler:c.handleMouseleave})),'focus'===a&&(b.addEventListener('blur',c.handleBlur),e.push({event:'blur',handler:c.handleBlur})),e)}function A(a,b,c){if(!b.getAttribute('x-placement'))return!0;var d=a.clientX,e=a.clientY,f=c.interactiveBorder,g=c.distance,h=b.getBoundingClientRect(),i=p(b.getAttribute('x-placement')),j=f+g,k={top:h.top-e>f,bottom:e-h.bottom>f,left:h.left-d>f,right:d-h.right>f};return'top'===i?k.top=h.top-e>j:'bottom'===i?k.bottom=e-h.bottom>j:'left'===i?k.left=h.left-d>j:'right'===i?k.right=d-h.right>j:void 0,k.top||k.bottom||k.left||k.right}function B(a,b,d){var e,f,g=this,h=d.position,i=d.delay,j=d.duration,k=d.interactive,l=d.interactiveBorder,m=d.distance,o=d.hideOnClick,p=d.trigger,q=d.touchHold,r=d.touchWait,s=function(){clearTimeout(e),clearTimeout(f)},t=function(){if(s(),!n(b)){var a=Array.isArray(i)?i[0]:i;i?e=setTimeout(function(){return g.show(b)},a):g.show(b)}},u=function(a){return g.callbacks.wait?g.callbacks.wait.call(b,t,a):t()},v=function(){s();var a=Array.isArray(i)?i[1]:i;i?f=setTimeout(function(){return g.hide(b)},a):g.hide(b)};return{handleTrigger:function(c){var d='mouseenter'===c.type&&F.SUPPORTS_TOUCH&&F.touch;if(!(d&&q)){var e='click'===c.type;e&&n(b)&&'persistent'!==o?v():u(c),d&&F.iOS()&&a.click&&a.click()}},handleMouseleave:function(e){if(!('mouseleave'===e.type&&F.SUPPORTS_TOUCH&&F.touch&&q)){if(k){var f=function e(f){var g=function(){document.body.removeEventListener('mouseleave',v),document.removeEventListener('mousemove',e),v()},h=c(f.target,H.TOOLTIPPED_EL),i=c(f.target,H.POPPER)===b,j=-1!==p.indexOf('click');return h&&h!==a?g():void(i||h===a||j||A(f,b,d)&&g())};return document.body.addEventListener('mouseleave',v),void document.addEventListener('mousemove',f)}v()}},handleBlur:function(a){F.touch||!a.relatedTarget||c(a.relatedTarget,H.POPPER)||v()}}}function C(a){var b=this;return a.reduce(function(c,a){var d=b.settings.performance?b.settings:x(a,b.settings);d.arrow&&(d.animateFill=!1);var e=d.html,f=d.trigger,g=d.touchHold,h=a.getAttribute('title');if(!h&&!e)return c;var j=O;a.setAttribute('data-tooltipped',''),a.setAttribute('aria-describedby','tippy-tooltip-'+j),i(a);var k=y(j,h,d),l=B.call(b,a,k,d),m=[];return f.trim().split(' ').forEach(function(b){return m=m.concat(z(b,a,l,g))}),c.push({id:j,el:a,popper:k,settings:d,listeners:m,tippyInstance:b}),O++,c},[])}function D(a,b){return new P(a,b)}var E=Math.round;a='default'in a?a['default']:a;var F={};'undefined'!=typeof window&&(F.SUPPORTED=!!window.requestAnimationFrame,F.SUPPORTS_TOUCH='ontouchstart'in window,F.touch=!1,F.dynamicInputDetection=!0,F.iOS=function(){return /iPhone|iPad|iPod/.test(navigator.userAgent)&&!window.MSStream});var G=[],H={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-tooltip-content',CIRCLE:'[x-circle]',ARROW:'[x-arrow]',TOOLTIPPED_EL:'[data-tooltipped]',CONTROLLER:'[data-tippy-controller]'},I={html:!1,position:'top',animation:'shift',animateFill:!0,arrow:!1,arrowSize:'regular',delay:0,trigger:'mouseenter focus',duration:350,interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:350,sticky:!1,stickyDuration:200,appendTo:null,zIndex:9999,touchHold:!1,performance:!1,popperOptions:{}},J=F.SUPPORTED&&Object.keys(I),K=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(a){for(var b=(this.document||this.ownerDocument).querySelectorAll(a),c=b.length;0<=--c&&b.item(c)!==this;);return-1<c},L=function(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')},M=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),N=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},O=1,P=function(){function a(b){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};L(this,a),F.SUPPORTED&&(e(),this.state={destroyed:!1},this.selector=b,this.settings=N({},I,c),this.callbacks={wait:c.wait,show:c.show||o,shown:c.shown||o,hide:c.hide||o,hidden:c.hidden||o},this.store=C.call(this,r(b)),G.push.apply(G,this.store))}return M(a,[{key:'getPopperElement',value:function(a){try{return d(this.store,function(b){return b.el===a}).popper}catch(a){console.error('[getPopperElement]: Element passed as the argument does not exist in the instance')}}},{key:'getReferenceElement',value:function(a){try{return d(this.store,function(b){return b.popper===a}).el}catch(a){console.error('[getReferenceElement]: Popper passed as the argument does not exist in the instance')}}},{key:'getReferenceData',value:function(a){return d(this.store,function(b){return b.el===a||b.popper===a})}},{key:'show',value:function(a,b){var c=this;if(!this.state.destroyed){this.callbacks.show.call(a);var e=d(this.store,function(b){return b.popper===a}),g=a.querySelector(H.TOOLTIP),h=a.querySelector(H.CIRCLE),i=a.querySelector(H.CONTENT),j=e.el,o=e.settings,p=o.appendTo,q=o.sticky,r=o.interactive,t=o.followCursor,u=o.flipDuration,x=o.duration,y=void 0===b?Array.isArray(x)?x[0]:x:b;m([a,g,h],0),v(e),a.style.visibility='visible',a.setAttribute('aria-hidden','false'),f(function(){n(a)&&((!t||F.touch)&&e.popperInstance.update(),m([g,h],y,!0),(!t||F.touch)&&m([a],u,!0),h&&(i.style.opacity=1),r&&j.classList.add('active'),q&&w(e),k(g,h),l([g,h],function(a){a.contains('tippy-notransition')&&a.remove('tippy-notransition'),a.remove('leave'),a.add('enter')}),s(e,y,function(){!n(a)||e._onShownFired||(r&&a.focus(),g.classList.add('tippy-notransition'),e._onShownFired=!0,c.callbacks.shown.call(a))}))})}}},{key:'hide',value:function(a,b){var c=this;if(!this.state.destroyed){this.callbacks.hide.call(a);var e=d(this.store,function(b){return b.popper===a}),f=a.querySelector(H.TOOLTIP),g=a.querySelector(H.CIRCLE),h=a.querySelector(H.CONTENT),i=e.el,k=e.settings,o=k.appendTo,p=k.sticky,r=k.interactive,t=k.followCursor,u=k.html,v=k.trigger,w=k.duration,x=void 0===b?Array.isArray(w)?w[1]:w:b;e._onShownFired=!1,r&&i.classList.remove('active'),a.style.visibility='hidden',a.setAttribute('aria-hidden','true'),m([f,g,g?h:null],x),g&&(h.style.opacity=0),l([f,g],function(a){a.contains('tippy-tooltip')&&a.remove('tippy-notransition'),a.remove('enter'),a.add('leave')}),u&&-1!==v.indexOf('click')&&j(i)&&i.focus(),s(e,x,function(){n(a)||!o.contains(a)||(i.removeEventListener('mousemove',q),e.popperInstance.disableEventListeners(),o.removeChild(a),c.callbacks.hidden.call(a))})}}},{key:'update',value:function(a){if(!this.state.destroyed){var b=d(this.store,function(b){return b.popper===a}),c=a.querySelector(H.CONTENT),e=b.el,f=b.settings.html;return f instanceof Element?void console.warn('Aborted: update() should not be used if `html` is a DOM element'):void(c.innerHTML=f?document.getElementById(f.replace('#','')).innerHTML:e.getAttribute('title')||e.getAttribute('data-original-title'),!f&&i(e))}}},{key:'destroy',value:function(a,b){var c=this;if(!this.state.destroyed){var e=d(this.store,function(b){return b.popper===a}),f=e.el,g=e.popperInstance,i=e.listeners;n(a)&&this.hide(a,0),i.forEach(function(a){return f.removeEventListener(a.event,a.handler)}),f.setAttribute('title',f.getAttribute('data-original-title')),f.removeAttribute('data-original-title'),f.removeAttribute('data-tooltipped'),f.removeAttribute('aria-describedby'),g&&g.destroy(),G.splice(h(G,function(b){return b.popper===a}),1),(void 0===b||b)&&(this.store=G.filter(function(a){return a.tippyInstance===c}))}}},{key:'destroyAll',value:function(){var a=this;if(!this.state.destroyed){var b=this.store.length;this.store.forEach(function(c,d){var e=c.popper;a.destroy(e,d===b-1)}),this.store=null,this.state.destroyed=!0}}}]),a}();return D.Browser=F,D.Defaults=I,D.disableDynamicInputDetection=function(){return F.dynamicInputDetection=!1},D.enableDynamicInputDetection=function(){return F.dynamicInputDetection=!0},D});
(function(a,b){'object'==typeof exports&&'undefined'!=typeof module?module.exports=b(require('popper.js')):'function'==typeof define&&define.amd?define(['popper.js'],b):a.tippy=b(a.Popper)})(this,function(a){'use strict';function b(a){H.forEach(function(b){var c=b.popper,d=b.tippyInstance,e=b.settings,f=e.appendTo,g=e.hideOnClick,h=e.trigger;if(f.contains(c)){var i=!0===g||-1!==h.indexOf('focus'),j=!a||c!==a.popper;i&&j&&d.hide(c)}})}function c(a,b){var c=Element.prototype.closest||function(a){for(var b=this;b;){if(L.call(b,a))return b;b=b.parentElement}};return c.call(a,b)}function d(a,b){return Array.prototype.find?a.find(b):a.filter(b)[0]}function e(){var a=function(){G.touch=!0,G.iOS()&&document.body.classList.add('tippy-touch'),G.dynamicInputDetection&&document.addEventListener('mousemove',e)},e=function(){var a;return function(){var b=performance&&performance.now();b&&10>b-a&&(G.touch=!1,document.removeEventListener('mousemove',e),!G.iOS()&&document.body.classList.contains('tippy-touch')&&document.body.classList.remove('tippy-touch')),a=b}}();document.addEventListener('click',function(a){if(!(a.target instanceof Element))return b();var e=c(a.target,I.TOOLTIPPED_EL),f=c(a.target,I.POPPER);if(f){var g=d(H,function(a){return a.popper===f}),h=g.settings.interactive;if(h)return}if(e){var i=d(H,function(a){return a.el===e}),j=i.settings,k=j.hideOnClick,l=j.multiple,m=j.trigger;if(!l&&G.touch||!l&&-1!==m.indexOf('click'))return b(i);if(!0!==k||-1!==m.indexOf('click'))return}c(a.target,I.CONTROLLER)||!document.querySelector(I.POPPER)||b()}),document.addEventListener('touchstart',a),window.addEventListener('blur',function(){var a=document,b=a.activeElement;b&&b.blur&&L.call(b,I.TOOLTIPPED_EL)&&b.blur()}),!G.SUPPORTS_TOUCH&&(0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',a)}function f(){return!f.done&&(f.done=!0,J.appendTo=document.body,e(),!0)}function g(a){window.requestAnimationFrame(function(){setTimeout(a,0)})}function h(a){for(var b=[!1,'webkit'],c=a.charAt(0).toUpperCase()+a.slice(1),d=0;d<b.length;d++){var e=b[d],f=e?''+e+c:a;if('undefined'!=typeof window.document.body.style[f])return f}return null}function i(a,b){return Array.prototype.findIndex?a.findIndex(b):a.indexOf(d(a,b))}function j(a){var b=a.getAttribute('title');a.setAttribute('data-original-title',b||'html'),a.removeAttribute('title')}function k(a){var b=a.getBoundingClientRect();return 0<=b.top&&0<=b.left&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth)}function l(a,b){b?window.getComputedStyle(b)[h('transform')]:window.getComputedStyle(a).opacity}function m(a,b){a.forEach(function(a){a&&b(a.classList)})}function n(a,b){a.forEach(function(a){if(a){var c=L.call(a,I.CONTENT),d=c?F(b/1.3):b;a.style[h('transitionDuration')]=d+'ms'}})}function o(a){return'visible'===a.style.visibility}function p(){}function q(a){return a.replace(/-.+/,'')}function r(a){var b,c,e=this,f=d(H,function(a){return a.el===e}),g=f.popper,i=q(g.getAttribute('x-placement')),j=F(g.offsetWidth/2),k=F(g.offsetHeight/2),l=5,m=document.documentElement.offsetWidth||document.body.offsetWidth,n=a.pageX,o=a.pageY;'top'===i?(b=n-j,c=o-2.5*k):'left'===i?(b=n-2*j-15,c=o-k):'right'===i?(b=n+k,c=o-k):'bottom'===i?(b=n-j,c=o+k/1.5):void 0;('top'===i||'bottom'===i)&&(n+l+j>m&&(b=m-l-2*j),0>n-l-j&&(b=l)),g.style[h('transform')]='translate3d('+b+'px, '+c+'px, 0)'}function s(a){return a instanceof Element?[a]:[].slice.call(document.querySelectorAll(a))}function t(a,b,c){if(!b)return c();var d=a.popper.querySelector(I.TOOLTIP),f=!1,e=function a(b){b.target!==d||(f=!0,d.removeEventListener('webkitTransitionEnd',a),d.removeEventListener('transitionend',a),c())};d.addEventListener('webkitTransitionEnd',e),d.addEventListener('transitionend',e),clearTimeout(a._transitionendTimeout),a._transitionendTimeout=setTimeout(function(){f||c()},b)}function u(a){return-(a-J.distance)+'px'}function v(b){var c=b.el,d=b.popper,e=b.settings,f=e.position,g=e.popperOptions,h=e.offset,i=e.distance,j=e.flipDuration,k=d.querySelector(I.TOOLTIP),l=O({placement:f},g||{},{modifiers:O({},g?g.modifiers:{},{flip:O({padding:i+5},g&&g.modifiers?g.modifiers.flip:{}),offset:O({offset:h},g&&g.modifiers?g.modifiers.offset:{})}),onUpdate:function(){k.style.top='',k.style.bottom='',k.style.left='',k.style.right='',k.style[q(d.getAttribute('x-placement'))]=u(i)}});return new a(c,d,l)}function w(a){var b=a.el,c=a.popper,d=a.settings,e=d.appendTo,f=d.followCursor,i=d.flipDuration;if(!e.contains(c)){if(e.appendChild(c),!!a.popperInstance)a.popperInstance.update(),(!f||G.touch)&&a.popperInstance.enableEventListeners();else if(a.popperInstance=v(a),window.MutationObserver){var j=c.style,k=new MutationObserver(function(){j[h('transitionDuration')]='0ms',a.popperInstance.update(),g(function(){j[h('transitionDuration')]=i+'ms'})});k.observe(c,{childList:!0,subtree:!0,characterData:!0}),a._mutationObserver=k}f&&!G.touch&&(b.addEventListener('mousemove',r),a.popperInstance.disableEventListeners())}}function x(a){var b=a.popper,c=a.popperInstance,d=a.settings.stickyDuration,e=function(){return b.style[h('transitionDuration')]=d+'ms'},f=function(){return b.style[h('transitionDuration')]=''};g(function a(){c&&c.scheduleUpdate(),e(),o(b)?window.requestAnimationFrame(a):f()})}function y(a,b){var c=K.reduce(function(c,d){var e=a.getAttribute('data-'+d.toLowerCase())||b[d];return'false'===e&&(e=!1),'true'===e&&(e=!0),isFinite(e)&&!isNaN(parseFloat(e))&&(e=parseFloat(e)),'string'==typeof e&&'['===e.trim().charAt(0)&&(e=JSON.parse(e)),c[d]=e,c},{});return O({},b,c)}function z(a,b,c){var d=c.position,e=c.distance,f=c.arrow,g=c.animateFill,h=c.inertia,i=c.animation,j=c.arrowSize,k=c.size,l=c.theme,m=c.html,n=c.zIndex,o=c.interactive,p=document.createElement('div');p.setAttribute('class','tippy-popper'),p.setAttribute('role','tooltip'),p.setAttribute('aria-hidden','true'),p.setAttribute('id','tippy-tooltip-'+a),p.style.zIndex=n;var r=document.createElement('div');if(r.setAttribute('class','tippy-tooltip tippy-tooltip--'+k+' leave'),r.setAttribute('data-animation',i),l.split(' ').forEach(function(a){r.classList.add(a+'-theme')}),f){var s=document.createElement('div');s.setAttribute('class','arrow-'+j),s.setAttribute('x-arrow',''),r.appendChild(s)}if(g){r.setAttribute('data-animatefill','');var t=document.createElement('div');t.setAttribute('class','leave'),t.setAttribute('x-circle',''),r.appendChild(t)}h&&r.setAttribute('data-inertia',''),o&&r.setAttribute('data-interactive','');var v=document.createElement('div');if(v.setAttribute('class','tippy-tooltip-content'),m){var w;m instanceof Element?(v.appendChild(m),w='#'+m.id||'tippy-html-template'):(v.innerHTML=document.getElementById(m.replace('#','')).innerHTML,w=m),p.classList.add('html-template'),o&&p.setAttribute('tabindex','-1'),r.setAttribute('data-template-id',w)}else v.innerHTML=b;return r.style[q(d)]=u(e),r.appendChild(v),p.appendChild(r),p}function A(a,b,c,d){var e=[];return'manual'===a?e:(b.addEventListener(a,c.handleTrigger),e.push({event:a,handler:c.handleTrigger}),'mouseenter'===a&&(G.SUPPORTS_TOUCH&&d&&(b.addEventListener('touchstart',c.handleTrigger),e.push({event:'touchstart',handler:c.handleTrigger}),b.addEventListener('touchend',c.handleMouseleave),e.push({event:'touchend',handler:c.handleMouseleave})),b.addEventListener('mouseleave',c.handleMouseleave),e.push({event:'mouseleave',handler:c.handleMouseleave})),'focus'===a&&(b.addEventListener('blur',c.handleBlur),e.push({event:'blur',handler:c.handleBlur})),e)}function B(a,b,c){if(!b.getAttribute('x-placement'))return!0;var d=a.clientX,e=a.clientY,f=c.interactiveBorder,g=c.distance,h=b.getBoundingClientRect(),i=q(b.getAttribute('x-placement')),j=f+g,k={top:h.top-e>f,bottom:e-h.bottom>f,left:h.left-d>f,right:d-h.right>f};return'top'===i?k.top=h.top-e>j:'bottom'===i?k.bottom=e-h.bottom>j:'left'===i?k.left=h.left-d>j:'right'===i?k.right=d-h.right>j:void 0,k.top||k.bottom||k.left||k.right}function C(a,b,d){var e,f,g=this,h=d.position,i=d.delay,j=d.duration,k=d.interactive,l=d.interactiveBorder,m=d.distance,n=d.hideOnClick,p=d.trigger,q=d.touchHold,r=d.touchWait,s=function(){clearTimeout(e),clearTimeout(f)},t=function(){if(s(),!o(b)){var a=Array.isArray(i)?i[0]:i;i?e=setTimeout(function(){return g.show(b)},a):g.show(b)}},u=function(a){return g.callbacks.wait?g.callbacks.wait.call(b,t,a):t()},v=function(){s();var a=Array.isArray(i)?i[1]:i;i?f=setTimeout(function(){return g.hide(b)},a):g.hide(b)};return{handleTrigger:function(c){var d='mouseenter'===c.type&&G.SUPPORTS_TOUCH&&G.touch;if(!(d&&q)){var e='click'===c.type;e&&o(b)&&'persistent'!==n?v():u(c),d&&G.iOS()&&a.click&&a.click()}},handleMouseleave:function(e){if(!('mouseleave'===e.type&&G.SUPPORTS_TOUCH&&G.touch&&q)){if(k){var f=function e(f){var g=function(){document.body.removeEventListener('mouseleave',v),document.removeEventListener('mousemove',e),v()},h=c(f.target,I.TOOLTIPPED_EL),i=c(f.target,I.POPPER)===b,j=-1!==p.indexOf('click');return h&&h!==a?g():void(i||h===a||j||B(f,b,d)&&g())};return document.body.addEventListener('mouseleave',v),void document.addEventListener('mousemove',f)}v()}},handleBlur:function(a){!a.relatedTarget||G.touch||c(a.relatedTarget,I.POPPER)||v()}}}function D(a){var b=this;return a.reduce(function(c,a){var d=b.settings.performance?b.settings:y(a,b.settings);d.arrow&&(d.animateFill=!1);var e=d.html,f=d.trigger,g=d.touchHold,h=a.getAttribute('title');if(!h&&!e)return c;var i=P;a.setAttribute('data-tooltipped',''),a.setAttribute('aria-describedby','tippy-tooltip-'+i),j(a);var k=z(i,h,d),l=C.call(b,a,k,d),m=[];return f.trim().split(' ').forEach(function(b){return m=m.concat(A(b,a,l,g))}),c.push({id:i,el:a,popper:k,settings:d,listeners:m,tippyInstance:b}),P++,c},[])}function E(a,b){return new Q(a,b)}var F=Math.round;a='default'in a?a['default']:a;var G={};'undefined'!=typeof window&&(G.SUPPORTED='requestAnimationFrame'in window,G.SUPPORTS_TOUCH='ontouchstart'in window,G.touch=!1,G.dynamicInputDetection=!0,G.iOS=function(){return /iPhone|iPad|iPod/.test(navigator.userAgent)&&!window.MSStream});var H=[],I={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-tooltip-content',CIRCLE:'[x-circle]',ARROW:'[x-arrow]',TOOLTIPPED_EL:'[data-tooltipped]',CONTROLLER:'[data-tippy-controller]'},J={html:!1,position:'top',animation:'shift',animateFill:!0,arrow:!1,arrowSize:'regular',delay:0,trigger:'mouseenter focus',duration:350,interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,flipDuration:350,sticky:!1,stickyDuration:200,appendTo:null,zIndex:9999,touchHold:!1,performance:!1,popperOptions:{}},K=G.SUPPORTED&&Object.keys(J),L=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||function(a){for(var b=(this.document||this.ownerDocument).querySelectorAll(a),c=b.length;0<=--c&&b.item(c)!==this;);return-1<c},M=function(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')},N=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,'value'in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),O=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},P=1,Q=function(){function a(b){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};M(this,a),G.SUPPORTED&&(f(),this.state={destroyed:!1},this.selector=b,this.settings=O({},J,c),this.callbacks={wait:c.wait,show:c.onShow||c.show||p,shown:c.onShown||c.shown||p,hide:c.onHide||c.hide||p,hidden:c.onHidden||c.hidden||p},this.store=D.call(this,s(b)),H.push.apply(H,this.store))}return N(a,[{key:'getPopperElement',value:function(a){try{return d(this.store,function(b){return b.el===a}).popper}catch(a){console.error('[getPopperElement]: Element passed as the argument does not exist in the instance')}}},{key:'getReferenceElement',value:function(a){try{return d(this.store,function(b){return b.popper===a}).el}catch(a){console.error('[getReferenceElement]: Popper passed as the argument does not exist in the instance')}}},{key:'getReferenceData',value:function(a){return d(this.store,function(b){return b.el===a||b.popper===a})}},{key:'show',value:function(a,b){var c=this;if(!this.state.destroyed){this.callbacks.show.call(a);var e=d(this.store,function(b){return b.popper===a}),f=a.querySelector(I.TOOLTIP),h=a.querySelector(I.CIRCLE),i=a.querySelector(I.CONTENT),j=e.el,k=e.settings,p=k.appendTo,q=k.sticky,r=k.interactive,s=k.followCursor,u=k.flipDuration,v=k.duration,y=void 0===b?Array.isArray(v)?v[0]:v:b;n([a,f,h],0),w(e),a.style.visibility='visible',a.setAttribute('aria-hidden','false'),g(function(){o(a)&&((!s||G.touch)&&e.popperInstance.update(),n([f,h],y),(!s||G.touch)&&n([a],u),h&&(i.style.opacity=1),r&&j.classList.add('active'),q&&x(e),l(f,h),m([f,h],function(a){a.contains('tippy-notransition')&&a.remove('tippy-notransition'),a.remove('leave'),a.add('enter')}),t(e,y,function(){!o(a)||e._onShownFired||(r&&a.focus(),f.classList.add('tippy-notransition'),e._onShownFired=!0,c.callbacks.shown.call(a))}))})}}},{key:'hide',value:function(a,b){var c=this;if(!this.state.destroyed){this.callbacks.hide.call(a);var e=d(this.store,function(b){return b.popper===a}),f=a.querySelector(I.TOOLTIP),g=a.querySelector(I.CIRCLE),h=a.querySelector(I.CONTENT),i=e.el,j=e.settings,l=j.appendTo,p=j.sticky,q=j.interactive,s=j.followCursor,u=j.html,v=j.trigger,w=j.duration,x=void 0===b?Array.isArray(w)?w[1]:w:b;e._onShownFired=!1,q&&i.classList.remove('active'),a.style.visibility='hidden',a.setAttribute('aria-hidden','true'),n([f,g,g?h:null],x),g&&(h.style.opacity=0),m([f,g],function(a){a.contains('tippy-tooltip')&&a.remove('tippy-notransition'),a.remove('enter'),a.add('leave')}),u&&-1!==v.indexOf('click')&&k(i)&&i.focus(),t(e,x,function(){o(a)||!l.contains(a)||(i.removeEventListener('mousemove',r),e.popperInstance.disableEventListeners(),l.removeChild(a),c.callbacks.hidden.call(a))})}}},{key:'update',value:function(a){if(!this.state.destroyed){var b=d(this.store,function(b){return b.popper===a}),c=a.querySelector(I.CONTENT),e=b.el,f=b.settings.html;return f instanceof Element?void console.warn('Aborted: update() should not be used if `html` is a DOM element'):void(c.innerHTML=f?document.getElementById(f.replace('#','')).innerHTML:e.getAttribute('title')||e.getAttribute('data-original-title'),!f&&j(e))}}},{key:'destroy',value:function(a,b){var c=this;if(!this.state.destroyed){var e=d(this.store,function(b){return b.popper===a}),f=e.el,g=e.popperInstance,h=e.listeners,j=e._mutationObserver;o(a)&&this.hide(a,0),h.forEach(function(a){return f.removeEventListener(a.event,a.handler)}),f.setAttribute('title',f.getAttribute('data-original-title')),f.removeAttribute('data-original-title'),f.removeAttribute('data-tooltipped'),f.removeAttribute('aria-describedby'),g&&g.destroy(),j&&j.disconnect(),H.splice(i(H,function(b){return b.popper===a}),1),(void 0===b||b)&&(this.store=H.filter(function(a){return a.tippyInstance===c}))}}},{key:'destroyAll',value:function(){var a=this;if(!this.state.destroyed){var b=this.store.length;this.store.forEach(function(c,d){var e=c.popper;a.destroy(e,d===b-1)}),this.store=null,this.state.destroyed=!0}}}]),a}();return E.Browser=G,E.Defaults=J,E.disableDynamicInputDetection=function(){return G.dynamicInputDetection=!1},E.enableDynamicInputDetection=function(){return G.dynamicInputDetection=!0},E});
{
"name": "tippy.js",
"version": "1.0.1",
"version": "1.1.0",
"description": "Vanilla JS Tooltip Library",

@@ -36,4 +36,4 @@ "main": "dist/tippy.js",

"dependencies": {
"popper.js": "^1.10.6"
"popper.js": "^1.10.8"
}
}

@@ -7,2 +7,3 @@ import Popper from 'popper.js'

import getOffsetDistanceInPx from '../utils/getOffsetDistanceInPx'
import prefix from '../utils/prefix'

@@ -23,3 +24,4 @@ /**

offset,
distance
distance,
flipDuration
}

@@ -29,2 +31,3 @@ } = refData

const tooltip = popper.querySelector(Selectors.TOOLTIP)
let flipped

@@ -45,3 +48,3 @@ const config = {

},
onUpdate() {
onUpdate(data) {
tooltip.style.top = ''

@@ -48,0 +51,0 @@ tooltip.style.bottom = ''

@@ -12,4 +12,4 @@ import { Store } from './globals'

export default function followCursorHandler(e) {
const ref = find(Store, ref => ref.el === this)
const { popper } = ref
const refData = find(Store, refData => refData.el === this)
const { popper } = refData

@@ -16,0 +16,0 @@ const position = getCorePlacement(popper.getAttribute('x-placement'))

@@ -133,3 +133,3 @@ import { Browser, Selectors } from './globals'

// If the related target is a popper, ignore
if (Browser.touch || ! event.relatedTarget) return
if ( ! event.relatedTarget || Browser.touch) return
if (closest(event.relatedTarget, Selectors.POPPER)) return

@@ -136,0 +136,0 @@

export const Browser = {}
if (typeof window !== 'undefined') {
Browser.SUPPORTED = !!window.requestAnimationFrame
Browser.SUPPORTED = 'requestAnimationFrame' in window
Browser.SUPPORTS_TOUCH = 'ontouchstart' in window

@@ -6,0 +6,0 @@ Browser.touch = false

@@ -5,6 +5,6 @@ import { Store } from './globals'

* Hides all poppers
* @param {Object} exclude - reference to exclude if needed
* @param {Object} exclude - refData to exclude if needed
*/
export default function hideAllPoppers(exclude) {
Store.forEach(ref => {
Store.forEach(refData => {
const {

@@ -18,3 +18,3 @@ popper,

}
} = ref
} = refData

@@ -21,0 +21,0 @@ // Don't hide already hidden ones

@@ -1,8 +0,6 @@

import { Browser, Store, Selectors, Defaults } from './globals'
import { Defaults } from './globals'
import hideAllPoppers from './hideAllPoppers'
import bindEventListeners from './bindEventListeners'
import closest from '../utils/closest'
import find from '../utils/find'
/**

@@ -13,3 +11,2 @@ * To run a single time, once DOM is presumed to be ready

export default function init() {
if (init.done) return false

@@ -22,86 +19,5 @@ init.done = true

const touchHandler = () => {
Browser.touch = true
bindEventListeners()
if (Browser.iOS()) {
document.body.classList.add('tippy-touch')
}
if (Browser.dynamicInputDetection) {
document.addEventListener('mousemove', mousemoveHandler)
}
}
const mousemoveHandler = (() => {
let time
return () => {
const now = performance && performance.now()
if (now && now - time < 10) {
Browser.touch = false
document.removeEventListener('mousemove', mousemoveHandler)
if ( ! Browser.iOS() && document.body.classList.contains('tippy-touch')) {
document.body.classList.remove('tippy-touch')
}
}
time = now
}
})()
const clickHandler = event => {
// Simulated events dispatched on the document
if (!(event.target instanceof Element)) {
return hideAllPoppers()
}
const el = closest(event.target, Selectors.TOOLTIPPED_EL)
const popper = closest(event.target, Selectors.POPPER)
if (popper) {
const ref = find(Store, ref => ref.popper === popper)
const { settings: { interactive } } = ref
if (interactive) return
}
if (el) {
const ref = find(Store, ref => ref.el === el)
const {
settings: {
hideOnClick,
multiple,
trigger
}
} = ref
// Hide all poppers except the one belonging to the element that was clicked IF
// `multiple` is false AND they are a touch user, OR
// `multiple` is false AND it's triggered by a click
if ((!multiple && Browser.touch) || (!multiple && trigger.indexOf('click') !== -1)) {
return hideAllPoppers(ref)
}
// If hideOnClick is not strictly true or triggered by a click don't hide poppers
if (hideOnClick !== true || trigger.indexOf('click') !== -1) return
}
// Don't trigger a hide for tippy controllers, and don't needlessly run loop
if (closest(event.target, Selectors.CONTROLLER) ||
!document.querySelector(Selectors.POPPER)
) return
hideAllPoppers()
}
// Hook events
document.addEventListener('click', clickHandler)
document.addEventListener('touchstart', touchHandler)
if ( ! Browser.SUPPORTS_TOUCH && (navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0)) {
document.addEventListener('pointerdown', touchHandler)
}
return true
}

@@ -6,8 +6,11 @@ import { Browser } from './globals'

import queueExecution from '../utils/queueExecution'
import prefix from '../utils/prefix'
/**
* Appends the popper and creates a popper instance if one does not exist
* Also updates its position if need be and enables event listeners
* @param {Object} ref - the element/popper reference
* @param {Object} refData - the element/popper reference data
*/
export default function mountPopper(ref) {
export default function mountPopper(refData) {

@@ -19,5 +22,6 @@ const {

appendTo,
followCursor
followCursor,
flipDuration
}
} = ref
} = refData

@@ -29,11 +33,30 @@ // Already on the DOM

if ( ! ref.popperInstance) {
if ( ! refData.popperInstance) {
// Create instance if it hasn't been created yet
ref.popperInstance = createPopperInstance(ref)
refData.popperInstance = createPopperInstance(refData)
// Update the popper's position whenever its content changes
// Not supported in IE10 unless polyfilled
if (window.MutationObserver) {
const styles = popper.style
const observer = new MutationObserver(() => {
styles[prefix('transitionDuration')] = '0ms'
refData.popperInstance.update()
queueExecution(() => {
styles[prefix('transitionDuration')] = flipDuration + 'ms'
})
})
observer.observe(popper, {
childList: true,
subtree: true,
characterData: true
})
refData._mutationObserver = observer
}
} else {
ref.popperInstance.update()
refData.popperInstance.update()
if ( ! followCursor || Browser.touch) {
ref.popperInstance.enableEventListeners()
refData.popperInstance.enableEventListeners()
}

@@ -46,4 +69,4 @@ }

el.addEventListener('mousemove', followCursorHandler)
ref.popperInstance.disableEventListeners()
refData.popperInstance.disableEventListeners()
}
}

@@ -5,7 +5,7 @@ import { Selectors } from './globals'

* Prepares the callback functions for `show` and `hide` methods
* @param {Object} ref - the element/popper reference
* @param {Object} refData - the element/popper reference data
* @param {Number} duration
* @param {Function} callback - callback function to fire once transitions complete
*/
export default function onTransitionEnd(ref, duration, callback) {
export default function onTransitionEnd(refData, duration, callback) {

@@ -17,3 +17,3 @@ // Make callback synchronous if duration is 0

const tooltip = ref.popper.querySelector(Selectors.TOOLTIP)
const tooltip = refData.popper.querySelector(Selectors.TOOLTIP)
let transitionendFired = false

@@ -37,6 +37,6 @@

// transitionend listener sometimes may not fire
clearTimeout(ref._transitionendTimeout)
ref._transitionendTimeout = setTimeout(() => {
clearTimeout(refData._transitionendTimeout)
refData._transitionendTimeout = setTimeout(() => {
!transitionendFired && callback()
}, duration)
}

@@ -52,8 +52,10 @@ import {

// DEPRECATION: `on` prefixed callbacks are now preferred over non-
// as it better indicates it's a callback function
this.callbacks = {
wait: settings.wait,
show: settings.show || noop,
shown: settings.shown || noop,
hide: settings.hide || noop,
hidden: settings.hidden || noop
show: settings.onShow || settings.show || noop,
shown: settings.onShown || settings.shown || noop,
hide: settings.onHide || settings.hide || noop,
hidden: settings.onHidden || settings.hidden || noop
}

@@ -66,3 +68,3 @@

/**
* Returns the reference element's popper element reference
* Returns the reference element's popper element
* @param {Element} el

@@ -73,3 +75,3 @@ * @return {Element}

try {
return find(this.store, ref => ref.el === el).popper
return find(this.store, refData => refData.el === el).popper
} catch (e) {

@@ -87,3 +89,3 @@ console.error('[getPopperElement]: Element passed as the argument does not exist in the instance')

try {
return find(this.store, ref => ref.popper === popper).el
return find(this.store, refData => refData.popper === popper).el
} catch (e) {

@@ -100,3 +102,3 @@ console.error('[getReferenceElement]: Popper passed as the argument does not exist in the instance')

getReferenceData(x) {
return find(this.store, ref => ref.el === x || ref.popper === x)
return find(this.store, refData => refData.el === x || refData.popper === x)
}

@@ -114,3 +116,3 @@

const ref = find(this.store, ref => ref.popper === popper)
const refData = find(this.store, refData => refData.popper === popper)
const tooltip = popper.querySelector(Selectors.TOOLTIP)

@@ -130,3 +132,3 @@ const circle = popper.querySelector(Selectors.CIRCLE)

}
} = ref
} = refData

@@ -140,3 +142,3 @@ const _duration = customDuration !== undefined

mountPopper(ref)
mountPopper(refData)

@@ -153,9 +155,9 @@ popper.style.visibility = 'visible'

if ( ! followCursor || Browser.touch) {
ref.popperInstance.update()
refData.popperInstance.update()
}
// Re-apply transition durations
applyTransitionDuration([tooltip, circle], _duration, true)
applyTransitionDuration([tooltip, circle], _duration)
if ( ! followCursor || Browser.touch) {
applyTransitionDuration([popper], flipDuration, true)
applyTransitionDuration([popper], flipDuration)
}

@@ -170,3 +172,3 @@

// Update popper's position on every animation frame
sticky && makeSticky(ref)
sticky && makeSticky(refData)

@@ -183,4 +185,4 @@ // Repaint/reflow is required for CSS transition when appending

// Wait for transitions to complete
onTransitionEnd(ref, _duration, () => {
if ( ! isVisible(popper) || ref._onShownFired) return
onTransitionEnd(refData, _duration, () => {
if ( ! isVisible(popper) || refData._onShownFired) return

@@ -194,3 +196,3 @@ // Focus interactive tooltips only

// Prevents shown() from firing more than once from early transition cancellations
ref._onShownFired = true
refData._onShownFired = true

@@ -212,3 +214,3 @@ this.callbacks.shown.call(popper)

const ref = find(this.store, ref => ref.popper === popper)
const refData = find(this.store, refData => refData.popper === popper)
const tooltip = popper.querySelector(Selectors.TOOLTIP)

@@ -229,3 +231,3 @@ const circle = popper.querySelector(Selectors.CIRCLE)

}
} = ref
} = refData

@@ -236,3 +238,3 @@ const _duration = customDuration !== undefined

ref._onShownFired = false
refData._onShownFired = false
interactive && el.classList.remove('active')

@@ -261,3 +263,3 @@

// Wait for transitions to complete
onTransitionEnd(ref, _duration, () => {
onTransitionEnd(refData, _duration, () => {
if (isVisible(popper) || ! appendTo.contains(popper)) return

@@ -267,3 +269,3 @@

ref.popperInstance.disableEventListeners()
refData.popperInstance.disableEventListeners()

@@ -283,5 +285,5 @@ appendTo.removeChild(popper)

const ref = find(this.store, ref => ref.popper === popper)
const refData = find(this.store, refData => refData.popper === popper)
const content = popper.querySelector(Selectors.CONTENT)
const { el, settings: { html } } = ref
const { el, settings: { html } } = refData

@@ -307,5 +309,11 @@ if (html instanceof Element) {

const ref = find(this.store, ref => ref.popper === popper)
const { el, popperInstance, listeners } = ref
const refData = find(this.store, refData => refData.popper === popper)
const {
el,
popperInstance,
listeners,
_mutationObserver
} = refData
// Ensure the popper is hidden

@@ -327,9 +335,10 @@ if (isVisible(popper)) {

popperInstance && popperInstance.destroy()
_mutationObserver && _mutationObserver.disconnect()
// Remove from store
Store.splice(findIndex(Store, ref => ref.popper === popper), 1)
Store.splice(findIndex(Store, refData => refData.popper === popper), 1)
// Ensure filter is called only once
if (_isLast === undefined || _isLast) {
this.store = Store.filter(ref => ref.tippyInstance === this)
this.store = Store.filter(refData => refData.tippyInstance === this)
}

@@ -336,0 +345,0 @@ }

@@ -11,13 +11,9 @@ import { Selectors } from '../core/globals'

export default function applyTransitionDuration(els, duration) {
let _duration
els.forEach(el => {
if (!el) return
const isCircle = matches.call(el, Selectors.CIRCLE)
const isContent = matches.call(el, Selectors.CONTENT)
_duration = isCircle ? Math.round(_duration/1.1)
: isContent ? Math.round(duration/1.3)
: duration
const _duration = isContent ? Math.round(duration/1.3)
: duration

@@ -24,0 +20,0 @@ el.style[prefix('transitionDuration')] = _duration + 'ms'

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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