Comparing version 2.0.0 to 2.0.1
@@ -1,1 +0,1 @@ | ||
(function(t,e){'object'==typeof exports&&'undefined'!=typeof module?module.exports=e():'function'==typeof define&&define.amd?define(e):t.tippy=e()})(this,function(){'use strict';function t(t){return'[object Object]'===Object.prototype.toString.call(t)}function a(e){if(e instanceof Element||t(e))return[e];if(e instanceof NodeList)return[].slice.call(e);if(Array.isArray(e))return e;try{return[].slice.call(document.querySelectorAll(e))}catch(t){return[]}}function r(t,e){var a=Rt.reduce(function(a,r){var i=t.getAttribute('data-tippy-'+r.toLowerCase())||e[r];return'false'===i&&(i=!1),'true'===i&&(i=!0),isFinite(i)&&!isNaN(parseFloat(i))&&(i=parseFloat(i)),'string'==typeof i&&'['===i.trim().charAt(0)&&(i=JSON.parse(i)),a[r]=i,a},{});return Wt({},e,a)}function o(t){for(var e=[!1,'webkit'],a=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?''+i+a:t;if('undefined'!=typeof document.body.style[o])return o}return null}function p(t,e,a){var r=a.placement,i=a.distance,p=a.arrow,n=a.arrowType,s=a.arrowTransform,l=a.animateFill,d=a.inertia,c=a.animation,m=a.size,f=a.theme,h=a.html,b=a.zIndex,u=a.interactive,y=a.maxWidth,g=document.createElement('div');g.setAttribute('class','tippy-popper'),g.setAttribute('role','tooltip'),g.setAttribute('aria-hidden','true'),g.setAttribute('id','tippy-'+t),g.style.zIndex=b,g.style.maxWidth=y;var x=document.createElement('div');if(x.setAttribute('class','tippy-tooltip'),x.setAttribute('data-size',m),x.setAttribute('data-animation',c),x.setAttribute('data-state','hidden'),f.split(' ').forEach(function(e){x.classList.add(e+'-theme')}),p){var w=document.createElement('div');w.style[o('transform')]=s,'round'===n?(w.classList.add('tippy-roundarrow'),w.innerHTML='\n <svg width="100%" height="100%" viewBox="0 0 64 20" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">\n <g transform="matrix(1.04009,0,0,1.45139,-1.26297,-65.9145)">\n <path d="M1.214,59.185C1.214,59.185 12.868,59.992 21.5,51.55C29.887,43.347 33.898,43.308 42.5,51.55C51.352,60.031 62.747,59.185 62.747,59.185L1.214,59.185Z"/>\n </g>\n </svg>'):w.classList.add('tippy-arrow'),x.appendChild(w)}if(l){x.setAttribute('data-animatefill','');var v=document.createElement('div');v.setAttribute('data-state','hidden'),v.classList.add('tippy-backdrop'),x.appendChild(v)}d&&x.setAttribute('data-inertia',''),u&&x.setAttribute('data-interactive','');var k=document.createElement('div');if(k.setAttribute('class','tippy-content'),h){var E;h instanceof Element?(k.appendChild(h),E='#'+h.id||'tippy-html-template'):(k.innerHTML=document.querySelector(h).innerHTML,E=h),g.setAttribute('data-html',''),u&&g.setAttribute('tabindex','-1'),x.setAttribute('data-template-id',E)}else k.innerHTML=e;return x.appendChild(k),g.appendChild(x),g}function n(t){return t&&'[object Function]'==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var a=getComputedStyle(t,null);return e?a[e]:a}function l(t){return'HTML'===t.nodeName?t:t.parentNode||t.host}function d(t){if(!t)return document.body;switch(t.nodeName){case'HTML':case'BODY':return t.ownerDocument.body;case'#document':return t.body;}var e=s(t),a=e.overflow,r=e.overflowX,i=e.overflowY;return /(auto|scroll)/.test(a+i+r)?t:d(l(t))}function c(t){var e=t&&t.offsetParent,a=e&&e.nodeName;return a&&'BODY'!==a&&'HTML'!==a?-1!==['TD','TABLE'].indexOf(e.nodeName)&&'static'===s(e,'position')?c(e):e:t?t.ownerDocument.documentElement:document.documentElement}function m(t){var e=t.nodeName;return'BODY'!==e&&('HTML'===e||c(t.firstElementChild)===t)}function f(t){return null===t.parentNode?t:f(t.parentNode)}function h(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var a=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=a?t:e,i=a?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var p=o.commonAncestorContainer;if(t!==p&&e!==p||r.contains(i))return m(p)?p:c(p);var n=f(t);return n.host?h(n.host,e):h(t,f(e).host)}function b(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',a='top'===e?'scrollTop':'scrollLeft',r=t.nodeName;if('BODY'===r||'HTML'===r){var i=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||i;return o[a]}return t[a]}function u(t,e){var a=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=b(e,'top'),i=b(e,'left'),o=a?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}function y(t,e){var a='x'===e?'Left':'Top',r='Left'==a?'Right':'Bottom';return parseFloat(t['border'+a+'Width'],10)+parseFloat(t['border'+r+'Width'],10)}function g(t,e,a,r){return Yt(e['offset'+t],e['scroll'+t],a['client'+t],a['offset'+t],a['scroll'+t],Ft()?a['offset'+t]+r['margin'+('Height'===t?'Top':'Left')]+r['margin'+('Height'===t?'Bottom':'Right')]:0)}function x(){var t=document.body,e=document.documentElement,a=Ft()&&getComputedStyle(e);return{height:g('Height',t,e,a),width:g('Width',t,e,a)}}function w(t){return Gt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function v(t){var e={};if(Ft())try{e=t.getBoundingClientRect();var a=b(t,'top'),r=b(t,'left');e.top+=a,e.left+=r,e.bottom+=a,e.right+=r}catch(t){}else e=t.getBoundingClientRect();var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o='HTML'===t.nodeName?x():{},p=o.width||t.clientWidth||i.right-i.left,n=o.height||t.clientHeight||i.bottom-i.top,l=t.offsetWidth-p,d=t.offsetHeight-n;if(l||d){var c=s(t);l-=y(c,'x'),d-=y(c,'y'),i.width-=l,i.height-=d}return w(i)}function k(t,e){var a=Ft(),r='HTML'===e.nodeName,i=v(t),o=v(e),p=d(t),n=s(e),l=parseFloat(n.borderTopWidth,10),c=parseFloat(n.borderLeftWidth,10),m=w({top:i.top-o.top-l,left:i.left-o.left-c,width:i.width,height:i.height});if(m.marginTop=0,m.marginLeft=0,!a&&r){var f=parseFloat(n.marginTop,10),h=parseFloat(n.marginLeft,10);m.top-=l-f,m.bottom-=l-f,m.left-=c-h,m.right-=c-h,m.marginTop=f,m.marginLeft=h}return(a?e.contains(p):e===p&&'BODY'!==p.nodeName)&&(m=u(m,e)),m}function E(t){var e=t.ownerDocument.documentElement,a=k(t,e),r=Yt(e.clientWidth,window.innerWidth||0),i=Yt(e.clientHeight,window.innerHeight||0),o=b(e),p=b(e,'left'),n={top:o-a.top+a.marginTop,left:p-a.left+a.marginLeft,width:r,height:i};return w(n)}function L(t){var e=t.nodeName;return'BODY'===e||'HTML'===e?!1:'fixed'===s(t,'position')||L(l(t))}function O(t,e,a,r){var i={top:0,left:0},o=h(t,e);if('viewport'===r)i=E(o);else{var p;'scrollParent'===r?(p=d(l(e)),'BODY'===p.nodeName&&(p=t.ownerDocument.documentElement)):'window'===r?p=t.ownerDocument.documentElement:p=r;var n=k(p,o);if('HTML'===p.nodeName&&!L(o)){var s=x(),c=s.height,m=s.width;i.top+=n.top-n.marginTop,i.bottom=c+n.top,i.left+=n.left-n.marginLeft,i.right=m+n.left}else i=n}return i.left+=a,i.top+=a,i.right-=a,i.bottom-=a,i}function T(t){var e=t.width,a=t.height;return e*a}function A(t,e,a,r,i){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf('auto'))return t;var p=O(a,r,o,i),n={top:{width:p.width,height:e.top-p.top},right:{width:p.right-e.right,height:p.height},bottom:{width:p.width,height:p.bottom-e.bottom},left:{width:e.left-p.left,height:p.height}},s=Object.keys(n).map(function(t){return Gt({key:t},n[t],{area:T(n[t])})}).sort(function(t,e){return e.area-t.area}),l=s.filter(function(t){var e=t.width,r=t.height;return e>=a.clientWidth&&r>=a.clientHeight}),d=0<l.length?l[0].key:s[0].key,c=t.split('-')[1];return d+(c?'-'+c:'')}function S(t,e,a){var r=h(e,a);return k(a,r)}function C(t){var e=getComputedStyle(t),a=parseFloat(e.marginTop)+parseFloat(e.marginBottom),r=parseFloat(e.marginLeft)+parseFloat(e.marginRight),i={width:t.offsetWidth+r,height:t.offsetHeight+a};return i}function Y(t){var e={left:'right',right:'left',bottom:'top',top:'bottom'};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function X(t,e,a){a=a.split('-')[0];var r=C(t),i={width:r.width,height:r.height},o=-1!==['right','left'].indexOf(a),p=o?'top':'left',n=o?'left':'top',s=o?'height':'width',l=o?'width':'height';return i[p]=e[p]+e[s]/2-r[s]/2,i[n]=a===n?e[n]-r[l]:e[Y(n)],i}function P(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function D(t,e,a){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===a});var r=P(t,function(t){return t[e]===a});return t.indexOf(r)}function N(t,e,a){var r=void 0===a?t:t.slice(0,D(t,'name',a));return r.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var a=t['function']||t.fn;t.enabled&&n(a)&&(e.offsets.popper=w(e.offsets.popper),e.offsets.reference=w(e.offsets.reference),e=a(e,t))}),e}function R(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=S(this.state,this.popper,this.reference),t.placement=A(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=X(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position='absolute',t=N(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function B(t,e){return t.some(function(t){var a=t.name,r=t.enabled;return r&&a===e})}function I(t){for(var e=[!1,'ms','Webkit','Moz','O'],a=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length-1;r++){var i=e[r],o=i?''+i+a:t;if('undefined'!=typeof document.body.style[o])return o}return null}function W(){return this.state.isDestroyed=!0,B(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[I('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function H(t){var e=t.ownerDocument;return e?e.defaultView:window}function M(t,e,a,r){var i='BODY'===t.nodeName,o=i?t.ownerDocument.defaultView:t;o.addEventListener(e,a,{passive:!0}),i||M(d(o.parentNode),e,a,r),r.push(o)}function z(t,e,a,r){a.updateBound=r,H(t).addEventListener('resize',a.updateBound,{passive:!0});var i=d(t);return M(i,'scroll',a.updateBound,a.scrollParents),a.scrollElement=i,a.eventsEnabled=!0,a}function _(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}function U(t,e){return H(t).removeEventListener('resize',e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener('scroll',e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function q(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=U(this.reference,this.state))}function F(t){return''!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function j(t,e){Object.keys(e).forEach(function(a){var r='';-1!==['width','height','top','right','bottom','left'].indexOf(a)&&F(e[a])&&(r='px'),t.style[a]=e[a]+r})}function K(t,e){Object.keys(e).forEach(function(a){var r=e[a];!1===r?t.removeAttribute(a):t.setAttribute(a,e[a])})}function V(t,e,a){var r=P(t,function(t){var a=t.name;return a===e}),i=!!r&&t.some(function(t){return t.name===a&&t.enabled&&t.order<r.order});if(!i){var o='`'+e+'`';console.warn('`'+a+'`'+' modifier is required by '+o+' modifier in order to work, be sure to include it before '+o+'!')}return i}function G(t){return'end'===t?'start':'start'===t?'end':t}function Z(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=Qt.indexOf(t),r=Qt.slice(a+1).concat(Qt.slice(0,a));return e?r.reverse():r}function Q(t,e,a,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],p=i[2];if(!o)return t;if(0===p.indexOf('%')){var n;switch(p){case'%p':n=a;break;case'%':case'%r':default:n=r;}var s=w(n);return s[e]/100*o}if('vh'===p||'vw'===p){var l;return l='vh'===p?Yt(document.documentElement.clientHeight,window.innerHeight||0):Yt(document.documentElement.clientWidth,window.innerWidth||0),l/100*o}return o}function $(t,e,a,r){var i=[0,0],o=-1!==['right','left'].indexOf(r),p=t.split(/(\+|\-)/).map(function(t){return t.trim()}),n=p.indexOf(P(p,function(t){return-1!==t.search(/,|\s/)}));p[n]&&-1===p[n].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var s=/\s*,\s*|\s+/,l=-1===n?[p]:[p.slice(0,n).concat([p[n].split(s)[0]]),[p[n].split(s)[1],p.slice(n+1)]];return l=l.map(function(t,r){var i=(1===r?!o:o)?'height':'width',p=!1;return t.reduce(function(t,e){return''===t[t.length-1]&&-1!==['+','-'].indexOf(e)?(t[t.length-1]=e,p=!0,t):p?(t[t.length-1]+=e,p=!1,t):t.concat(e)},[]).map(function(t){return Q(t,i,e,a)})}),l.forEach(function(t,e){t.forEach(function(a,r){F(a)&&(i[e]+=a*('-'===t[r-1]?-1:1))})}),i}function J(t,e,a,r){if(!e.length)return'';var i={scale:function(){return 1===e.length?''+e[0]:a?e[0]+', '+e[1]:e[1]+', '+e[0]}(),translate:function(){return 1===e.length?r?-e[0]+'px':e[0]+'px':a?r?e[0]+'px, '+-e[1]+'px':e[0]+'px, '+e[1]+'px':r?-e[1]+'px, '+e[0]+'px':e[1]+'px, '+e[0]+'px'}()};return i[t]}function tt(t,e){if(!t)return'';return e?t:{X:'Y',Y:'X'}[t]}function et(t){return t.getAttribute('x-placement').replace(/-.+/,'')}function at(t,e,a){var r=et(t),i='top'===r||'bottom'===r,p='right'===r||'bottom'===r,n=function(t){var e=a.match(t);return e?e[1]:''},s=function(t){var e=a.match(t);return e?e[1].split(',').map(parseFloat):[]},l={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},d={translate:{axis:n(/translate([XY])/),numbers:s(l.translate)},scale:{axis:n(/scale([XY])/),numbers:s(l.scale)}},c=a.replace(l.translate,'translate'+tt(d.translate.axis,i)+'('+J('translate',d.translate.numbers,i,p)+')').replace(l.scale,'scale'+tt(d.scale.axis,i)+'('+J('scale',d.scale.numbers,i,p)+')');e.style[o('transform')]=c}function rt(t){requestAnimationFrame(function(){setTimeout(t,0)})}function it(t){return'visible'===t.style.visibility}function ot(t){return{tooltip:t.querySelector(Dt.TOOLTIP),backdrop:t.querySelector(Dt.BACKDROP),content:t.querySelector(Dt.CONTENT)}}function pt(t){return-(t-Nt.distance)+'px'}function nt(t){var e=t.tippy,a=t.target,r=t.callback,i=t.options;if(window.MutationObserver){var o=new MutationObserver(r);o.observe(a,i),e._mutationObservers.push(o)}}function st(t){var e=t.reference,a=t.popper,r=t.options,i=r.placement,p=r.popperOptions,n=r.offset,s=r.distance,l=r.updateDuration,d=r.flip,c=r.flipBehavior,m=r.arrowType,f=r.arrowTransform,h=ot(a),b=h.tooltip,u='round'===m?Dt.ROUND_ARROW:Dt.ARROW,y=b.querySelector(u),g=Wt({placement:i},p||{},{modifiers:Wt({},p?p.modifiers:{},{arrow:Wt({element:u},p&&p.modifiers?p.modifiers.arrow:{}),flip:Wt({enabled:d,padding:s+5,behavior:c},p&&p.modifiers?p.modifiers.flip:{}),offset:Wt({offset:n},p&&p.modifiers?p.modifiers.offset:{})}),onCreate:function(){b.style[et(a)]=pt(s),y&&f&&at(a,y,f)},onUpdate:function(){var t=b.style;t.top='',t.bottom='',t.left='',t.right='',t[et(a)]=pt(s),y&&f&&at(a,y,f)}});return nt({tippy:t,target:a,callback:function(){var e=a.style;e[o('transitionDuration')]='0ms',t.popperInstance.update(),rt(function(){e[o('transitionDuration')]=l+'ms'})},options:{childList:!0,subtree:!0,characterData:!0}}),new Jt(e,a,g)}function lt(t,e,a,r){var i=[];return'manual'===t?i:(e.addEventListener(t,a.handleTrigger),i.push({event:t,handler:a.handleTrigger}),'mouseenter'===t&&(Pt.supportsTouch&&r&&(e.addEventListener('touchstart',a.handleTrigger),i.push({event:'touchstart',handler:a.handleTrigger}),e.addEventListener('touchend',a.handleMouseleave),i.push({event:'touchend',handler:a.handleMouseleave})),e.addEventListener('mouseleave',a.handleMouseleave),i.push({event:'mouseleave',handler:a.handleMouseleave})),'focus'===t&&(e.addEventListener('blur',a.handleBlur),i.push({event:'blur',handler:a.handleBlur})),i)}function dt(t,a){var r=Element.prototype.closest||function(t){for(var a=this;a;){if(e.call(a,t))return a;a=a.parentElement}};return r.call(t,a)}function ct(t,e,a){if(!e.getAttribute('x-placement'))return!0;var r=t.clientX,i=t.clientY,o=a.interactiveBorder,p=a.distance,n=e.getBoundingClientRect(),s=et(e),l=o+p,d={top:n.top-i>o,bottom:i-n.bottom>o,left:n.left-r>o,right:r-n.right>o};return'top'===s?d.top=n.top-i>l:'bottom'===s?d.bottom=i-n.bottom>l:'left'===s?d.left=n.left-r>l:'right'===s?d.right=r-n.right>l:void 0,d.top||d.bottom||d.left||d.right}function mt(t,e){var a,r,i=t.popper,o=t.reference,p=t.options,n=p.delay,s=p.duration,l=p.interactive,d=p.interactiveBorder,c=p.hideOnClick,m=p.trigger,f=p.touchHold,h=function(){clearTimeout(a),clearTimeout(r)},b=function(){if(h(),!it(i)){var e=Array.isArray(n)?n[0]:n;n?a=setTimeout(function(){return t.show()},e):t.show()}},u=function(e){t.options.wait?t.options.wait.call(i,b,e):b()},y=function(){if(h(),!!it(i)){var e=Array.isArray(n)?n[1]:n;n?r=setTimeout(function(){it(i)&&t.hide()},e):t.hide()}};return{handleTrigger:function(e){var a=Pt.supportsTouch&&Pt.usingTouch&&('mouseenter'===e.type||'focus'===e.type);if(!(a&&f)){t._lastTriggerEvent=e.type;var r='click'===e.type;r&&it(i)&&'persistent'!==c?y():u(e),a&&Pt.iOS&&o.click&&o.click()}},handleMouseleave:function(t){if(!('mouseleave'===t.type&&Pt.supportsTouch&&Pt.usingTouch&&f)){if(l){var a=function t(a){var r=dt(a.target,Dt.REFERENCE),p=dt(a.target,Dt.POPPER)===i;p||r===o||ct(a,i,e)&&(document.body.removeEventListener('mouseleave',y),document.removeEventListener('mousemove',t),y())};return document.body.addEventListener('mouseleave',y),void document.addEventListener('mousemove',a)}y()}},handleBlur:function(t){!t.relatedTarget||Pt.usingTouch||dt(t.relatedTarget,Dt.POPPER)||y()}}}function ft(t,e){return e.arrow&&(e.animateFill=!1),e.appendTo&&'function'==typeof e.appendTo&&(e.appendTo=e.appendTo()),'function'==typeof e.html&&(e.html=e.html(t)),e}function ht(t){var e=t.getAttribute('title');e&&t.setAttribute('data-original-title',e),t.removeAttribute('title')}function bt(t){var e=function(a){if('focus'!==t._lastTriggerEvent){var e,r,i=t.popper,p=t.options.offset,n=et(i),s=At(i.offsetWidth/2),l=At(i.offsetHeight/2),d=5,c=document.documentElement.offsetWidth||document.body.offsetWidth,m=a.pageX,f=a.pageY;'top'===n?(e=m-s+p,r=f-2*l):'bottom'===n?(e=m-s+p,r=f+10):'left'===n?(e=m-2*s,r=f-l+p):'right'===n?(e=m+5,r=f-l+p):void 0;('top'===n||'bottom'===n)&&(m+d+s+p>c&&(e=c-d-2*s),0>m-d-s+p&&(e=d)),i.style[o('transform')]='translate3d('+e+'px, '+r+'px, 0)'}};return t._followCursorListener=e,e}function ut(t){var e=t.popper,a=t.reference,r=t.options,i=r.appendTo,o=r.followCursor;i.contains(e)||(i.appendChild(e),t.popperInstance?(t.popperInstance.update(),(!o||Pt.usingTouch)&&t.popperInstance.enableEventListeners()):t.popperInstance=st(t),o&&!Pt.usingTouch&&(document.addEventListener('mousemove',bt(t)),t.popperInstance.disableEventListeners()))}function yt(t){var e=function(){t.popper.style[o('transitionDuration')]=t.options.updateDuration+'ms'},a=function(){t.popper.style[o('transitionDuration')]=''};rt(function r(){t.popperInstance&&t.popperInstance.scheduleUpdate(),e(),it(t.popper)?requestAnimationFrame(r):a()})}function gt(t,e,a){if(!e)return a();var r=ot(t.popper),i=r.tooltip,o=function(t,e){e&&(i[t+'EventListener']('webkitTransitionEnd',e),i[t+'EventListener']('transitionend',e))},p=function t(r){r.target===i&&(o('remove',t),a())};o('remove',t._transitionendListener),o('add',p),t._transitionendListener=p}function xt(t){var e=t.getBoundingClientRect();return 0<=e.top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function wt(t,e){return Array.isArray(t)?t[e]:t}function vt(t,e){t.forEach(function(t){t&&t.setAttribute('data-state',e)})}function kt(t,a){t.forEach(function(t){if(t){var r=e.call(t,Dt.CONTENT),i=r?At(a/1.3):a;t.style[o('transitionDuration')]=i+'ms'}})}function Et(t,e){return t.reduce(function(t,a){var i=re,o=ft(a,e.performance?e:r(a,e)),n=o.html,s=o.trigger,l=o.touchHold,d=o.dynamicTitle,c=o.createPopperInstanceOnInit,m=a.getAttribute('title');if(!m&&!n)return t;a.setAttribute('data-tippy',''),a.setAttribute('aria-describedby','tippy-'+i),ht(a);var f=p(i,m,o),h=new ae({id:i,reference:a,popper:f,options:o,_mutationObservers:[]});h.popperInstance=c?st(h):null;var b=mt(h,o);return h.listeners=s.trim().split(' ').reduce(function(t,e){return t.concat(lt(e,a,b,l))},[]),d&&nt({tippy:h,target:a,callback:function(){var t=ot(f),e=t.content,r=a.getAttribute('title');r&&(e.innerHTML=r,ht(a))},options:{attributes:!0}}),a._tippy=h,f._reference=a,t.push(h),re++,t},[])}function Lt(t){var e=[].slice.call(document.querySelectorAll(Dt.POPPER));e.forEach(function(e){var a=e._reference._tippy,r=a.options;(!0===r.hideOnClick||-1<r.trigger.indexOf('focus'))&&(!t||e!==t.popper)&&a.hide()})}function Ot(){var t=function(){Pt.usingTouch=!0,Pt.iOS&&document.body.classList.add('tippy-touch'),Pt.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',a)},a=function(){var t;return function(){var e=performance.now();20>e-t&&(Pt.usingTouch=!1,document.removeEventListener('mousemove',a),!Pt.iOS&&document.body.classList.remove('tippy-touch')),t=e}}();document.addEventListener('click',function(t){if(!(t.target instanceof Element))return Lt();var e=dt(t.target,Dt.REFERENCE),a=dt(t.target,Dt.POPPER);if(!(a&&a._reference._tippy.options.interactive)){if(e){var r=e._tippy.options;if(!r.multiple&&Pt.usingTouch||!r.multiple&&-1<r.trigger.indexOf('click'))return Lt(e._tippy);if(!0!==r.hideOnClick||-1<r.trigger.indexOf('click'))return}document.querySelector(Dt.POPPER)&&Lt()}}),document.addEventListener('touchstart',t),window.addEventListener('blur',function(){var t=document,a=t.activeElement;a&&a.blur&&e.call(a,Dt.REFERENCE)&&a.blur()}),!Pt.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',t)}function Tt(e,r){return Pt.supported&&!Pt.eventsBound&&(Ot(),Pt.eventsBound=!0),t(e)&&(e.refObj=!0,e.attributes=e.attributes||{},e.setAttribute=function(t,a){e.attributes[t]=a},e.getAttribute=function(t){return e.attributes[t]},e.removeAttribute=function(t){delete e.attributes[t]},e.addEventListener=function(){},e.removeEventListener=function(){},e.classList={classNames:{},add:function(t){return e.classList.classNames[t]=!0},remove:function(t){return delete e.classList.classNames[t],!0},contains:function(t){return!!e.classList.classNames[t]}}),r=Wt({},Nt,r),{selector:e,options:r,tooltips:Pt.supported?Et(a(e),r):[],destroyAll:function(){this.tooltips.forEach(function(t){return t.destroy()})}}}var At=Math.round,St=Math.min,Ct=Math.floor,Yt=Math.max,Xt='undefined'!=typeof window,Pt={};Xt&&(Pt.supported='requestAnimationFrame'in window,Pt.supportsTouch='ontouchstart'in window,Pt.usingTouch=!1,Pt.eventsBound=!1,Pt.dynamicInputDetection=!0,Pt.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream);for(var Dt={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},Nt={placement:'top',trigger:'mouseenter focus',animation:'shift-away',html:!1,animateFill:!0,arrow:!1,delay:0,duration:[350,300],interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,updateDuration:350,sticky:!1,stickyDuration:200,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,flip:!0,flipBehavior:'flip',arrowType:'sharp',arrowTransform:'',maxWidth:'',popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},Rt=Pt.supported&&Object.keys(Nt),Bt=function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')},It=function(){function t(t,e){for(var a,r=0;r<e.length;r++)a=e[r],a.enumerable=a.enumerable||!1,a.configurable=!0,('value'in a)&&(a.writable=!0),Object.defineProperty(t,a.key,a)}return function(e,a,r){return a&&t(e.prototype,a),r&&t(e,r),e}}(),Wt=Object.assign||function(t){for(var e,a=1;a<arguments.length;a++)for(var r in e=arguments[a],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ht='undefined'!=typeof window&&'undefined'!=typeof document,Mt=['Edge','Trident','Firefox'],zt=0,_t=0;_t<Mt.length;_t+=1)if(Ht&&0<=navigator.userAgent.indexOf(Mt[_t])){zt=1;break}var i,Ut=Ht&&window.Promise,qt=Ut?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},zt))}},Ft=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},jt=function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')},Kt=function(){function t(t,e){for(var a,r=0;r<e.length;r++)a=e[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}return function(e,a,r){return a&&t(e.prototype,a),r&&t(e,r),e}}(),Vt=function(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t},Gt=Object.assign||function(t){for(var e,a=1;a<arguments.length;a++)for(var r in e=arguments[a],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Zt=['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'],Qt=Zt.slice(3),$t={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},Jt=function(){function t(e,a){var r=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};jt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=qt(this.update.bind(this)),this.options=Gt({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=a&&a.jquery?a[0]:a,this.options.modifiers={},Object.keys(Gt({},t.Defaults.modifiers,i.modifiers)).forEach(function(e){r.options.modifiers[e]=Gt({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return Gt({name:t},r.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&n(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Kt(t,[{key:'update',value:function(){return R.call(this)}},{key:'destroy',value:function(){return W.call(this)}},{key:'enableEventListeners',value:function(){return _.call(this)}},{key:'disableEventListeners',value:function(){return q.call(this)}}]),t}();Jt.Utils=('undefined'==typeof window?global:window).PopperUtils,Jt.placements=Zt,Jt.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,a=e.split('-')[0],r=e.split('-')[1];if(r){var i=t.offsets,o=i.reference,p=i.popper,n=-1!==['bottom','top'].indexOf(a),s=n?'left':'top',l=n?'width':'height',d={start:Vt({},s,o[s]),end:Vt({},s,o[s]+o[l]-p[l])};t.offsets.popper=Gt({},p,d[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var a,r=e.offset,i=t.placement,o=t.offsets,p=o.popper,n=o.reference,s=i.split('-')[0];return a=F(+r)?[+r,0]:$(r,p,n,s),'left'===s?(p.top+=a[0],p.left-=a[1]):'right'===s?(p.top+=a[0],p.left+=a[1]):'top'===s?(p.left+=a[0],p.top-=a[1]):'bottom'===s&&(p.left+=a[0],p.top+=a[1]),t.popper=p,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var a=e.boundariesElement||c(t.instance.popper);t.instance.reference===a&&(a=c(a));var r=O(t.instance.popper,t.instance.reference,e.padding,a);e.boundaries=r;var i=e.priority,o=t.offsets.popper,p={primary:function(t){var a=o[t];return o[t]<r[t]&&!e.escapeWithReference&&(a=Yt(o[t],r[t])),Vt({},t,a)},secondary:function(t){var a='right'===t?'left':'top',i=o[a];return o[t]>r[t]&&!e.escapeWithReference&&(i=St(o[a],r[t]-('right'===t?o.width:o.height))),Vt({},a,i)}};return i.forEach(function(t){var e=-1===['left','top'].indexOf(t)?'secondary':'primary';o=Gt({},o,p[e](t))}),t.offsets.popper=o,t},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,a=e.popper,r=e.reference,i=t.placement.split('-')[0],o=Ct,p=-1!==['top','bottom'].indexOf(i),n=p?'right':'bottom',s=p?'left':'top',l=p?'width':'height';return a[n]<o(r[s])&&(t.offsets.popper[s]=o(r[s])-a[l]),a[s]>o(r[n])&&(t.offsets.popper[s]=o(r[n])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var a;if(!V(t.instance.modifiers,'arrow','keepTogether'))return t;var r=e.element;if('string'==typeof r){if(r=t.instance.popper.querySelector(r),!r)return t;}else if(!t.instance.popper.contains(r))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),t;var i=t.placement.split('-')[0],o=t.offsets,p=o.popper,n=o.reference,l=-1!==['left','right'].indexOf(i),d=l?'height':'width',c=l?'Top':'Left',m=c.toLowerCase(),f=l?'left':'top',h=l?'bottom':'right',b=C(r)[d];n[h]-b<p[m]&&(t.offsets.popper[m]-=p[m]-(n[h]-b)),n[m]+b>p[h]&&(t.offsets.popper[m]+=n[m]+b-p[h]),t.offsets.popper=w(t.offsets.popper);var u=n[m]+n[d]/2-b/2,y=s(t.instance.popper),g=parseFloat(y['margin'+c],10),x=parseFloat(y['border'+c+'Width'],10),v=u-t.offsets.popper[m]-g-x;return v=Yt(St(p[d]-b,v),0),t.arrowElement=r,t.offsets.arrow=(a={},Vt(a,m,At(v)),Vt(a,f,''),a),t},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(t,e){if(B(t.instance.modifiers,'inner'))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var a=O(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),r=t.placement.split('-')[0],i=Y(r),o=t.placement.split('-')[1]||'',p=[];switch(e.behavior){case $t.FLIP:p=[r,i];break;case $t.CLOCKWISE:p=Z(r);break;case $t.COUNTERCLOCKWISE:p=Z(r,!0);break;default:p=e.behavior;}return p.forEach(function(n,s){if(r!==n||p.length===s+1)return t;r=t.placement.split('-')[0],i=Y(r);var l=t.offsets.popper,d=t.offsets.reference,c=Ct,m='left'===r&&c(l.right)>c(d.left)||'right'===r&&c(l.left)<c(d.right)||'top'===r&&c(l.bottom)>c(d.top)||'bottom'===r&&c(l.top)<c(d.bottom),f=c(l.left)<c(a.left),h=c(l.right)>c(a.right),b=c(l.top)<c(a.top),u=c(l.bottom)>c(a.bottom),y='left'===r&&f||'right'===r&&h||'top'===r&&b||'bottom'===r&&u,g=-1!==['top','bottom'].indexOf(r),x=!!e.flipVariations&&(g&&'start'===o&&f||g&&'end'===o&&h||!g&&'start'===o&&b||!g&&'end'===o&&u);(m||y||x)&&(t.flipped=!0,(m||y)&&(r=p[s+1]),x&&(o=G(o)),t.placement=r+(o?'-'+o:''),t.offsets.popper=Gt({},t.offsets.popper,X(t.instance.popper,t.offsets.reference,t.placement)),t=N(t.instance.modifiers,t,'flip'))}),t},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,a=e.split('-')[0],r=t.offsets,i=r.popper,o=r.reference,p=-1!==['left','right'].indexOf(a),n=-1===['top','left'].indexOf(a);return i[p?'left':'top']=o[a]-(n?i[p?'width':'height']:0),t.placement=Y(e),t.offsets.popper=w(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!V(t.instance.modifiers,'hide','preventOverflow'))return t;var e=t.offsets.reference,a=P(t.instance.modifiers,function(t){return'preventOverflow'===t.name}).boundaries;if(e.bottom<a.top||e.left>a.right||e.top>a.bottom||e.right<a.left){if(!0===t.hide)return t;t.hide=!0,t.attributes['x-out-of-boundaries']=''}else{if(!1===t.hide)return t;t.hide=!1,t.attributes['x-out-of-boundaries']=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var a=e.x,r=e.y,i=t.offsets.popper,o=P(t.instance.modifiers,function(t){return'applyStyle'===t.name}).gpuAcceleration;void 0!==o&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var p,n,s=void 0===o?e.gpuAcceleration:o,l=c(t.instance.popper),d=v(l),m={position:i.position},f={left:Ct(i.left),top:Ct(i.top),bottom:Ct(i.bottom),right:Ct(i.right)},h='bottom'===a?'top':'bottom',b='right'===r?'left':'right',u=I('transform');if(n='bottom'==h?-d.height+f.bottom:f.top,p='right'==b?-d.width+f.right:f.left,s&&u)m[u]='translate3d('+p+'px, '+n+'px, 0)',m[h]=0,m[b]=0,m.willChange='transform';else{var y='bottom'==h?-1:1,g='right'==b?-1:1;m[h]=n*y,m[b]=p*g,m.willChange=h+', '+b}var x={"x-placement":t.placement};return t.attributes=Gt({},x,t.attributes),t.styles=Gt({},m,t.styles),t.arrowStyles=Gt({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(t){return j(t.instance.popper,t.styles),K(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&j(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,a,r,i){var o=S(i,e,t),p=A(a.placement,o,e,t,a.modifiers.flip.boundariesElement,a.modifiers.flip.padding);return e.setAttribute('x-placement',p),j(e,{position:'absolute'}),a},gpuAcceleration:void 0}}};var te={};if(Xt){var ee=Element.prototype;te=ee.matches||ee.matchesSelector||ee.webkitMatchesSelector||ee.mozMatchesSelector||ee.msMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),a=e.length;0<=--a&&e.item(a)!==this;);return-1<a}}var e=te,ae=function(){function t(e){for(var a in Bt(this,t),e)this[a]=e[a];this.state={destroyed:!1}}return It(t,[{key:'show',value:function(t){var e=this;if(!this.state.destroyed){var a=this.popper,r=this.reference,i=this.options,o=ot(a),p=o.tooltip,n=o.backdrop,s=o.content;return r.refObj||document.body.contains(r)?void(i.onShow.call(a),t=wt(void 0===t?i.duration:t,0),kt([a,p,n],0),ut(this),a.style.visibility='visible',a.setAttribute('aria-hidden','false'),rt(function(){it(a)&&(!i.followCursor&&(e.popperInstance.update(),kt([a],i.updateDuration)),kt([p,n],t),n&&(s.style.opacity=1),i.interactive&&r.classList.add('tippy-active'),i.sticky&&yt(e),vt([p,n],'visible'),gt(e,t,function(){it(a)&&(i.interactive&&a.focus(),i.onShown.call(a))}))})):void this.destroy()}}},{key:'hide',value:function(t){var e=this;if(!this.state.destroyed){var a=this.popper,r=this.reference,i=this.options,o=ot(a),p=o.tooltip,n=o.backdrop,s=o.content;i.onHide.call(a),t=wt(void 0===t?i.duration:t,1),i.interactive&&r.classList.remove('tippy-active'),a.style.visibility='hidden',a.setAttribute('aria-hidden','true'),kt([p,n,n?s:null],t),n&&(s.style.opacity=0),vt([p,n],'hidden'),i.interactive&&-1<i.trigger.indexOf('click')&&xt(r)&&r.focus(),gt(this,t,function(){!it(a)&&i.appendTo.contains(a)&&'1'!==getComputedStyle(p).opacity&&(document.removeEventListener('mousemove',e._followCursorListener),e.popperInstance.disableEventListeners(),i.appendTo.removeChild(a),i.onHidden.call(a))})}}},{key:'destroy',value:function(){var t=this;this.state.destroyed||(it(this.popper)&&this.hide(0),this.listeners.forEach(function(e){t.reference.removeEventListener(e.event,e.handler)}),this.reference.setAttribute('title',this.reference.getAttribute('data-original-title')),delete this.reference._tippy,['data-original-title','data-tippy','aria-describedby'].forEach(function(e){t.reference.removeAttribute(e)}),this.popperInstance&&this.popperInstance.destroy(),this._mutationObservers.forEach(function(t){t.disconnect()}),this.state.destroyed=!0)}}]),t}(),re=1;return Tt.browser=Pt,Tt.defaults=Nt,function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:'';if(Xt){var e=document.head||document.querySelector('head'),a=document.createElement('style');a.type='text/css',e.insertBefore(a,e.firstChild),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}('.tippy-touch{cursor:pointer!important}.tippy-popper{max-width:350px;-webkit-perspective:700px;perspective:700px;z-index:9999;outline:0;-webkit-transition-timing-function:cubic-bezier(.165,.84,.44,1);transition-timing-function:cubic-bezier(.165,.84,.44,1);pointer-events:none}.tippy-popper[data-html]{max-width:96%;max-width:calc(100% - 20px)}.tippy-popper[x-placement^=top] .tippy-backdrop{border-radius:50% 50% 0 0}.tippy-popper[x-placement^=top] .tippy-roundarrow{width:24px;height:24px;fill:#333;bottom:-15px}.tippy-popper[x-placement^=top] .tippy-roundarrow svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.tippy-popper[x-placement^=top] .tippy-arrow{border-top:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;bottom:-7px;margin:0 9px}.tippy-popper[x-placement^=top] .tippy-backdrop{-webkit-transform-origin:0 33%;transform-origin:0 33%}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-60%);transform:scale(1) translate(-50%,-60%);opacity:1}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.25) translate(-50%,-50%);transform:scale(.25) translate(-50%,-50%);opacity:0}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px)}.tippy-popper[x-placement^=top] [data-animation=perspective]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px) rotateX(0);transform:translateY(-10px) rotateX(0)}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) rotateX(90deg);transform:translateY(0) rotateX(90deg)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px) scale(1);transform:translateY(-10px) scale(1)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=bottom] .tippy-backdrop{border-radius:0 0 50% 50%}.tippy-popper[x-placement^=bottom] .tippy-roundarrow{width:24px;height:24px;fill:#333;top:-15px}.tippy-popper[x-placement^=bottom] .tippy-roundarrow svg{-webkit-transform:rotate(0);transform:rotate(0)}.tippy-popper[x-placement^=bottom] .tippy-arrow{border-bottom:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;top:-7px;margin:0 9px}.tippy-popper[x-placement^=bottom] .tippy-backdrop{-webkit-transform-origin:0 -50%;transform-origin:0 -50%}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-40%);transform:scale(1) translate(-50%,-40%);opacity:1}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.25) translate(-50%);transform:scale(.25) translate(-50%);opacity:0}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(20px);transform:translateY(20px)}.tippy-popper[x-placement^=bottom] [data-animation=perspective]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateY(10px) rotateX(0);transform:translateY(10px) rotateX(0)}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) rotateX(-90deg);transform:translateY(0) rotateX(-90deg)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateY(10px) scale(1);transform:translateY(10px) scale(1)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=left] .tippy-backdrop{border-radius:50% 0 0 50%}.tippy-popper[x-placement^=left] .tippy-roundarrow{width:24px;height:24px;fill:#333;right:-15px}.tippy-popper[x-placement^=left] .tippy-roundarrow svg{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.tippy-popper[x-placement^=left] .tippy-arrow{border-left:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;right:-7px;margin:6px 0}.tippy-popper[x-placement^=left] .tippy-backdrop{-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%);opacity:1}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.25) translate(-50%,-50%);transform:scale(.25) translate(-50%,-50%);opacity:0}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(-20px);transform:translateX(-20px)}.tippy-popper[x-placement^=left] [data-animation=perspective]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px) rotateY(0);transform:translateX(-10px) rotateY(0)}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) rotateY(-90deg);transform:translateX(0) rotateY(-90deg)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px) scale(1);transform:translateX(-10px) scale(1)}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-popper[x-placement^=right] .tippy-backdrop{border-radius:0 50% 50% 0}.tippy-popper[x-placement^=right] .tippy-roundarrow{width:24px;height:24px;fill:#333;left:-15px}.tippy-popper[x-placement^=right] .tippy-roundarrow svg{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.tippy-popper[x-placement^=right] .tippy-arrow{border-right:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;left:-7px;margin:6px 0}.tippy-popper[x-placement^=right] .tippy-backdrop{-webkit-transform-origin:-50% 0;transform-origin:-50% 0}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%);opacity:1}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.25) translate(-50%,-50%);transform:scale(.25) translate(-50%,-50%);opacity:0}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(20px);transform:translateX(20px)}.tippy-popper[x-placement^=right] [data-animation=perspective]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateX(10px) rotateY(0);transform:translateX(10px) rotateY(0)}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) rotateY(90deg);transform:translateX(0) rotateY(90deg)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateX(10px) scale(1);transform:translateX(10px) scale(1)}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-tooltip{position:relative;color:#fff;border-radius:4px;font-size:.9rem;padding:.3rem .6rem;text-align:center;will-change:transform;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#333}.tippy-tooltip[data-size=small]{padding:.2rem .4rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.4rem .8rem;font-size:1rem}.tippy-tooltip[data-animatefill]{overflow:hidden;background-color:transparent}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia]{-webkit-transition-timing-function:cubic-bezier(.53,2,.36,.85);transition-timing-function:cubic-bezier(.53,2,.36,.85)}.tippy-tooltip .tippy-arrow,.tippy-tooltip .tippy-roundarrow{position:absolute;width:0;height:0}.tippy-tooltip .tippy-backdrop{position:absolute;will-change:transform;background-color:#333;border-radius:50%;width:135%;left:50%;top:50%;z-index:-1;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-tooltip .tippy-backdrop[data-state=visible]{-webkit-transition:all cubic-bezier(.37,.21,.32,.82);transition:all cubic-bezier(.37,.21,.32,.82)}.tippy-tooltip .tippy-backdrop[data-state=hidden]{-webkit-transition:all cubic-bezier(.4,.5,.5,.99);transition:all cubic-bezier(.4,.5,.5,.99)}.tippy-tooltip .tippy-backdrop:after{content:"";float:left;padding-top:90%}@media (max-width:400px){.tippy-popper{max-width:96%;max-width:calc(100% - 20px)}}'),Tt}); | ||
(function(t,e){'object'==typeof exports&&'undefined'!=typeof module?module.exports=e():'function'==typeof define&&define.amd?define(e):t.tippy=e()})(this,function(){'use strict';function t(t){return'[object Object]'===Object.prototype.toString.call(t)}function a(e){if(e instanceof Element||t(e))return[e];if(e instanceof NodeList)return[].slice.call(e);if(Array.isArray(e))return e;try{return[].slice.call(document.querySelectorAll(e))}catch(t){return[]}}function r(t,e){var a=Nt.reduce(function(a,i){var r=t.getAttribute('data-tippy-'+i.toLowerCase())||e[i];return'false'===r&&(r=!1),'true'===r&&(r=!0),isFinite(r)&&!isNaN(parseFloat(r))&&(r=parseFloat(r)),'string'==typeof r&&'['===r.trim().charAt(0)&&(r=JSON.parse(r)),a[i]=r,a},{});return It({},e,a)}function o(t){for(var e=[!1,'webkit'],a=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?''+i+a:t;if('undefined'!=typeof document.body.style[o])return o}return null}function p(t,e,a){var i=a.placement,r=a.distance,p=a.arrow,n=a.arrowType,s=a.arrowTransform,l=a.animateFill,d=a.inertia,c=a.animation,m=a.size,f=a.theme,h=a.html,b=a.zIndex,u=a.interactive,y=a.maxWidth,g=document.createElement('div');g.setAttribute('class','tippy-popper'),g.setAttribute('role','tooltip'),g.setAttribute('id','tippy-'+t),g.style.zIndex=b,g.style.maxWidth=y;var x=document.createElement('div');if(x.setAttribute('class','tippy-tooltip'),x.setAttribute('data-size',m),x.setAttribute('data-animation',c),x.setAttribute('data-state','hidden'),f.split(' ').forEach(function(e){x.classList.add(e+'-theme')}),p){var w=document.createElement('div');w.style[o('transform')]=s,'round'===n?(w.classList.add('tippy-roundarrow'),w.innerHTML='\n <svg width="100%" height="100%" viewBox="0 0 64 20" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">\n <g transform="matrix(1.04009,0,0,1.45139,-1.26297,-65.9145)">\n <path d="M1.214,59.185C1.214,59.185 12.868,59.992 21.5,51.55C29.887,43.347 33.898,43.308 42.5,51.55C51.352,60.031 62.747,59.185 62.747,59.185L1.214,59.185Z"/>\n </g>\n </svg>'):w.classList.add('tippy-arrow'),x.appendChild(w)}if(l){x.setAttribute('data-animatefill','');var v=document.createElement('div');v.setAttribute('data-state','hidden'),v.classList.add('tippy-backdrop'),x.appendChild(v)}d&&x.setAttribute('data-inertia',''),u&&x.setAttribute('data-interactive','');var k=document.createElement('div');if(k.setAttribute('class','tippy-content'),h){var E;h instanceof Element?(k.appendChild(h),E='#'+h.id||'tippy-html-template'):(k.innerHTML=document.querySelector(h).innerHTML,E=h),g.setAttribute('data-html',''),u&&g.setAttribute('tabindex','-1'),x.setAttribute('data-template-id',E)}else k.innerHTML=e;return x.appendChild(k),g.appendChild(x),g}function n(t){return t&&'[object Function]'==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var a=getComputedStyle(t,null);return e?a[e]:a}function l(t){return'HTML'===t.nodeName?t:t.parentNode||t.host}function d(t){if(!t)return document.body;switch(t.nodeName){case'HTML':case'BODY':return t.ownerDocument.body;case'#document':return t.body;}var e=s(t),a=e.overflow,i=e.overflowX,r=e.overflowY;return /(auto|scroll)/.test(a+r+i)?t:d(l(t))}function c(t){var e=t&&t.offsetParent,a=e&&e.nodeName;return a&&'BODY'!==a&&'HTML'!==a?-1!==['TD','TABLE'].indexOf(e.nodeName)&&'static'===s(e,'position')?c(e):e:t?t.ownerDocument.documentElement:document.documentElement}function m(t){var e=t.nodeName;return'BODY'!==e&&('HTML'===e||c(t.firstElementChild)===t)}function f(t){return null===t.parentNode?t:f(t.parentNode)}function h(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var a=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=a?t:e,r=a?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var p=o.commonAncestorContainer;if(t!==p&&e!==p||i.contains(r))return m(p)?p:c(p);var n=f(t);return n.host?h(n.host,e):h(t,f(e).host)}function b(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',a='top'===e?'scrollTop':'scrollLeft',i=t.nodeName;if('BODY'===i||'HTML'===i){var r=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||r;return o[a]}return t[a]}function u(t,e){var a=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=b(e,'top'),r=b(e,'left'),o=a?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}function y(t,e){var a='x'===e?'Left':'Top',i='Left'==a?'Right':'Bottom';return parseFloat(t['border'+a+'Width'],10)+parseFloat(t['border'+i+'Width'],10)}function g(t,e,a,i){return St(e['offset'+t],e['scroll'+t],a['client'+t],a['offset'+t],a['scroll'+t],qt()?a['offset'+t]+i['margin'+('Height'===t?'Top':'Left')]+i['margin'+('Height'===t?'Bottom':'Right')]:0)}function x(){var t=document.body,e=document.documentElement,a=qt()&&getComputedStyle(e);return{height:g('Height',t,e,a),width:g('Width',t,e,a)}}function w(t){return Vt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function v(t){var e={};if(qt())try{e=t.getBoundingClientRect();var a=b(t,'top'),i=b(t,'left');e.top+=a,e.left+=i,e.bottom+=a,e.right+=i}catch(t){}else e=t.getBoundingClientRect();var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o='HTML'===t.nodeName?x():{},p=o.width||t.clientWidth||r.right-r.left,n=o.height||t.clientHeight||r.bottom-r.top,l=t.offsetWidth-p,d=t.offsetHeight-n;if(l||d){var c=s(t);l-=y(c,'x'),d-=y(c,'y'),r.width-=l,r.height-=d}return w(r)}function k(t,e){var a=qt(),i='HTML'===e.nodeName,r=v(t),o=v(e),p=d(t),n=s(e),l=parseFloat(n.borderTopWidth,10),c=parseFloat(n.borderLeftWidth,10),m=w({top:r.top-o.top-l,left:r.left-o.left-c,width:r.width,height:r.height});if(m.marginTop=0,m.marginLeft=0,!a&&i){var f=parseFloat(n.marginTop,10),h=parseFloat(n.marginLeft,10);m.top-=l-f,m.bottom-=l-f,m.left-=c-h,m.right-=c-h,m.marginTop=f,m.marginLeft=h}return(a?e.contains(p):e===p&&'BODY'!==p.nodeName)&&(m=u(m,e)),m}function E(t){var e=t.ownerDocument.documentElement,a=k(t,e),i=St(e.clientWidth,window.innerWidth||0),r=St(e.clientHeight,window.innerHeight||0),o=b(e),p=b(e,'left'),n={top:o-a.top+a.marginTop,left:p-a.left+a.marginLeft,width:i,height:r};return w(n)}function L(t){var e=t.nodeName;return'BODY'===e||'HTML'===e?!1:'fixed'===s(t,'position')||L(l(t))}function T(t,e,a,i){var r={top:0,left:0},o=h(t,e);if('viewport'===i)r=E(o);else{var p;'scrollParent'===i?(p=d(l(e)),'BODY'===p.nodeName&&(p=t.ownerDocument.documentElement)):'window'===i?p=t.ownerDocument.documentElement:p=i;var n=k(p,o);if('HTML'===p.nodeName&&!L(o)){var s=x(),c=s.height,m=s.width;r.top+=n.top-n.marginTop,r.bottom=c+n.top,r.left+=n.left-n.marginLeft,r.right=m+n.left}else r=n}return r.left+=a,r.top+=a,r.right-=a,r.bottom-=a,r}function O(t){var e=t.width,a=t.height;return e*a}function A(t,e,a,i,r){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf('auto'))return t;var p=T(a,i,o,r),n={top:{width:p.width,height:e.top-p.top},right:{width:p.right-e.right,height:p.height},bottom:{width:p.width,height:p.bottom-e.bottom},left:{width:e.left-p.left,height:p.height}},s=Object.keys(n).map(function(t){return Vt({key:t},n[t],{area:O(n[t])})}).sort(function(t,e){return e.area-t.area}),l=s.filter(function(t){var e=t.width,i=t.height;return e>=a.clientWidth&&i>=a.clientHeight}),d=0<l.length?l[0].key:s[0].key,c=t.split('-')[1];return d+(c?'-'+c:'')}function C(t,e,a){var i=h(e,a);return k(a,i)}function S(t){var e=getComputedStyle(t),a=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight),r={width:t.offsetWidth+i,height:t.offsetHeight+a};return r}function Y(t){var e={left:'right',right:'left',bottom:'top',top:'bottom'};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function X(t,e,a){a=a.split('-')[0];var i=S(t),r={width:i.width,height:i.height},o=-1!==['right','left'].indexOf(a),p=o?'top':'left',n=o?'left':'top',s=o?'height':'width',l=o?'width':'height';return r[p]=e[p]+e[s]/2-i[s]/2,r[n]=a===n?e[n]-i[l]:e[Y(n)],r}function D(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function P(t,e,a){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===a});var i=D(t,function(t){return t[e]===a});return t.indexOf(i)}function N(t,e,a){var i=void 0===a?t:t.slice(0,P(t,'name',a));return i.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var a=t['function']||t.fn;t.enabled&&n(a)&&(e.offsets.popper=w(e.offsets.popper),e.offsets.reference=w(e.offsets.reference),e=a(e,t))}),e}function B(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=C(this.state,this.popper,this.reference),t.placement=A(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=X(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position='absolute',t=N(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function R(t,e){return t.some(function(t){var a=t.name,i=t.enabled;return i&&a===e})}function I(t){for(var e=[!1,'ms','Webkit','Moz','O'],a=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length-1;r++){var i=e[r],o=i?''+i+a:t;if('undefined'!=typeof document.body.style[o])return o}return null}function W(){return this.state.isDestroyed=!0,R(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[I('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function H(t){var e=t.ownerDocument;return e?e.defaultView:window}function M(t,e,a,i){var r='BODY'===t.nodeName,o=r?t.ownerDocument.defaultView:t;o.addEventListener(e,a,{passive:!0}),r||M(d(o.parentNode),e,a,i),i.push(o)}function z(t,e,a,i){a.updateBound=i,H(t).addEventListener('resize',a.updateBound,{passive:!0});var r=d(t);return M(r,'scroll',a.updateBound,a.scrollParents),a.scrollElement=r,a.eventsEnabled=!0,a}function _(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}function U(t,e){return H(t).removeEventListener('resize',e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener('scroll',e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function q(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=U(this.reference,this.state))}function F(t){return''!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function j(t,e){Object.keys(e).forEach(function(a){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(a)&&F(e[a])&&(i='px'),t.style[a]=e[a]+i})}function K(t,e){Object.keys(e).forEach(function(a){var i=e[a];!1===i?t.removeAttribute(a):t.setAttribute(a,e[a])})}function V(t,e,a){var i=D(t,function(t){var a=t.name;return a===e}),r=!!i&&t.some(function(t){return t.name===a&&t.enabled&&t.order<i.order});if(!r){var o='`'+e+'`';console.warn('`'+a+'`'+' modifier is required by '+o+' modifier in order to work, be sure to include it before '+o+'!')}return r}function G(t){return'end'===t?'start':'start'===t?'end':t}function Z(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=Zt.indexOf(t),i=Zt.slice(a+1).concat(Zt.slice(0,a));return e?i.reverse():i}function Q(t,e,a,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],p=r[2];if(!o)return t;if(0===p.indexOf('%')){var n;switch(p){case'%p':n=a;break;case'%':case'%r':default:n=i;}var s=w(n);return s[e]/100*o}if('vh'===p||'vw'===p){var l;return l='vh'===p?St(document.documentElement.clientHeight,window.innerHeight||0):St(document.documentElement.clientWidth,window.innerWidth||0),l/100*o}return o}function $(t,e,a,i){var r=[0,0],o=-1!==['right','left'].indexOf(i),p=t.split(/(\+|\-)/).map(function(t){return t.trim()}),n=p.indexOf(D(p,function(t){return-1!==t.search(/,|\s/)}));p[n]&&-1===p[n].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var s=/\s*,\s*|\s+/,l=-1===n?[p]:[p.slice(0,n).concat([p[n].split(s)[0]]),[p[n].split(s)[1],p.slice(n+1)]];return l=l.map(function(t,i){var r=(1===i?!o:o)?'height':'width',p=!1;return t.reduce(function(t,e){return''===t[t.length-1]&&-1!==['+','-'].indexOf(e)?(t[t.length-1]=e,p=!0,t):p?(t[t.length-1]+=e,p=!1,t):t.concat(e)},[]).map(function(t){return Q(t,r,e,a)})}),l.forEach(function(t,e){t.forEach(function(a,i){F(a)&&(r[e]+=a*('-'===t[i-1]?-1:1))})}),r}function J(t,e,a,i){if(!e.length)return'';var r={scale:function(){return 1===e.length?''+e[0]:a?e[0]+', '+e[1]:e[1]+', '+e[0]}(),translate:function(){return 1===e.length?i?-e[0]+'px':e[0]+'px':a?i?e[0]+'px, '+-e[1]+'px':e[0]+'px, '+e[1]+'px':i?-e[1]+'px, '+e[0]+'px':e[1]+'px, '+e[0]+'px'}()};return r[t]}function tt(t,e){if(!t)return'';return e?t:{X:'Y',Y:'X'}[t]}function et(t){return t.getAttribute('x-placement').replace(/-.+/,'')}function at(t,e,a){var i=et(t),r='top'===i||'bottom'===i,p='right'===i||'bottom'===i,n=function(t){var e=a.match(t);return e?e[1]:''},s=function(t){var e=a.match(t);return e?e[1].split(',').map(parseFloat):[]},l={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},d={translate:{axis:n(/translate([XY])/),numbers:s(l.translate)},scale:{axis:n(/scale([XY])/),numbers:s(l.scale)}},c=a.replace(l.translate,'translate'+tt(d.translate.axis,r)+'('+J('translate',d.translate.numbers,r,p)+')').replace(l.scale,'scale'+tt(d.scale.axis,r)+'('+J('scale',d.scale.numbers,r,p)+')');e.style[o('transform')]=c}function it(t){requestAnimationFrame(function(){setTimeout(t,0)})}function rt(t){return{tooltip:t.querySelector(Dt.TOOLTIP),backdrop:t.querySelector(Dt.BACKDROP),content:t.querySelector(Dt.CONTENT)}}function ot(t){return-(t-Pt.distance)+'px'}function pt(t){var e=t.tippy,a=t.target,i=t.callback,r=t.options;if(window.MutationObserver){var o=new MutationObserver(i);o.observe(a,r),e._mutationObservers.push(o)}}function nt(t){var e=t.reference,a=t.popper,i=t.options,r=i.placement,p=i.popperOptions,n=i.offset,s=i.distance,l=i.updateDuration,d=i.flip,c=i.flipBehavior,m=i.arrowType,f=i.arrowTransform,h=i.sticky,b=rt(a),u=b.tooltip,y='round'===m?Dt.ROUND_ARROW:Dt.ARROW,g=u.querySelector(y),x=It({placement:r},p||{},{modifiers:It({},p?p.modifiers:{},{arrow:It({element:y},p&&p.modifiers?p.modifiers.arrow:{}),flip:It({enabled:d,padding:s+5,behavior:c},p&&p.modifiers?p.modifiers.flip:{}),offset:It({offset:n},p&&p.modifiers?p.modifiers.offset:{})}),onCreate:function(){u.style[et(a)]=ot(s),g&&f&&at(a,g,f)},onUpdate:function(){var t=u.style;t.top='',t.bottom='',t.left='',t.right='',t[et(a)]=ot(s),g&&f&&at(a,g,f)}});return pt({tippy:t,target:a,callback:function(){var e=a.style;e[o('transitionDuration')]='0ms',t.popperInstance.update(),it(function(){e[o('transitionDuration')]=l+'ms'})},options:{childList:!0,subtree:!0,characterData:!0}}),new $t(e,a,x)}function st(t,e,a,i){var r=[];return'manual'===t?r:(e.addEventListener(t,a.handleTrigger),r.push({event:t,handler:a.handleTrigger}),'mouseenter'===t&&(Xt.supportsTouch&&i&&(e.addEventListener('touchstart',a.handleTrigger),r.push({event:'touchstart',handler:a.handleTrigger}),e.addEventListener('touchend',a.handleMouseleave),r.push({event:'touchend',handler:a.handleMouseleave})),e.addEventListener('mouseleave',a.handleMouseleave),r.push({event:'mouseleave',handler:a.handleMouseleave})),'focus'===t&&(e.addEventListener('blur',a.handleBlur),r.push({event:'blur',handler:a.handleBlur})),r)}function lt(t,a){var i=Element.prototype.closest||function(t){for(var a=this;a;){if(e.call(a,t))return a;a=a.parentElement}};return i.call(t,a)}function dt(t,e,a){if(!e.getAttribute('x-placement'))return!0;var i=t.clientX,r=t.clientY,o=a.interactiveBorder,p=a.distance,n=e.getBoundingClientRect(),s=et(e),l=o+p,d={top:n.top-r>o,bottom:r-n.bottom>o,left:n.left-i>o,right:i-n.right>o};return'top'===s?d.top=n.top-r>l:'bottom'===s?d.bottom=r-n.bottom>l:'left'===s?d.left=n.left-i>l:'right'===s?d.right=i-n.right>l:void 0,d.top||d.bottom||d.left||d.right}function ct(t,e){var a,i,r=t.popper,o=t.reference,p=t.options,n=p.delay,s=p.duration,l=p.interactive,d=p.interactiveBorder,c=p.hideOnClick,m=p.trigger,f=p.touchHold,h=function(){clearTimeout(a),clearTimeout(i)},b=function(){if(h(),!t.state.visible){var e=Array.isArray(n)?n[0]:n;n?a=setTimeout(function(){return t.show()},e):t.show()}},u=function(e){t.options.wait?t.options.wait.call(r,b,e):b()},y=function(){if(h(),!!t.state.visible){var e=Array.isArray(n)?n[1]:n;n?i=setTimeout(function(){t.state.visible&&t.hide()},e):t.hide()}};return{handleTrigger:function(e){if(!t.state.disabled){var a=Xt.supportsTouch&&Xt.usingTouch&&('mouseenter'===e.type||'focus'===e.type);if(!(a&&f)){t._lastTriggerEvent=e.type;var i='click'===e.type;i&&t.state.visible&&'persistent'!==c?y():u(e),a&&Xt.iOS&&o.click&&o.click()}}},handleMouseleave:function(t){if(!('mouseleave'===t.type&&Xt.supportsTouch&&Xt.usingTouch&&f)){if(l){var a=function t(a){var i=lt(a.target,Dt.REFERENCE),p=lt(a.target,Dt.POPPER)===r;p||i===o||dt(a,r,e)&&(document.body.removeEventListener('mouseleave',y),document.removeEventListener('mousemove',t),y())};return document.body.addEventListener('mouseleave',y),void document.addEventListener('mousemove',a)}y()}},handleBlur:function(t){!t.relatedTarget||Xt.usingTouch||lt(t.relatedTarget,Dt.POPPER)||y()}}}function mt(t,e){return e.arrow&&(e.animateFill=!1),e.appendTo&&'function'==typeof e.appendTo&&(e.appendTo=e.appendTo()),'function'==typeof e.html&&(e.html=e.html(t)),e}function ft(t){var e=t.getAttribute('title');e&&t.setAttribute('data-original-title',e),t.removeAttribute('title')}function ht(t){var e=function(a){if('focus'!==t._lastTriggerEvent){var e,i,r=t.popper,p=t.options.offset,n=et(r),s=Ot(r.offsetWidth/2),l=Ot(r.offsetHeight/2),d=5,c=document.documentElement.offsetWidth||document.body.offsetWidth,m=a.pageX,f=a.pageY;'top'===n?(e=m-s+p,i=f-2*l):'bottom'===n?(e=m-s+p,i=f+10):'left'===n?(e=m-2*s,i=f-l+p):'right'===n?(e=m+5,i=f-l+p):void 0;('top'===n||'bottom'===n)&&(m+d+s+p>c&&(e=c-d-2*s),0>m-d-s+p&&(e=d)),r.style[o('transform')]='translate3d('+e+'px, '+i+'px, 0)'}};return t._followCursorListener=e,e}function bt(t){var e=t.popper,a=t.reference,i=t.options,r=t.popperInstance;i.appendTo.contains(e)||(i.appendTo.appendChild(e),r?(e.style[o('transform')]=null,r.update(),(!i.followCursor||Xt.usingTouch)&&r.enableEventListeners()):r=t.popperInstance=nt(t),i.followCursor&&!Xt.usingTouch&&(document.addEventListener('mousemove',ht(t)),r.disableEventListeners()))}function ut(t){var e=function(){t.popper.style[o('transitionDuration')]=t.options.updateDuration+'ms'},a=function(){t.popper.style[o('transitionDuration')]=''};it(function i(){t.popperInstance&&t.popperInstance.scheduleUpdate(),e(),t.state.visible?requestAnimationFrame(i):a()})}function yt(t,e,a){if(!e)return a();var i=rt(t.popper),r=i.tooltip,o=function(t,e){e&&r[t+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',e)},p=function t(i){i.target===r&&(o('remove',t),a())};o('remove',t._transitionendListener),o('add',p),t._transitionendListener=p}function gt(t){var e=t.getBoundingClientRect();return 0<=e.top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function xt(t,e){return Array.isArray(t)?t[e]:t}function wt(t,e){t.forEach(function(t){t&&t.setAttribute('data-state',e)})}function vt(t,e){t.forEach(function(t){t&&(t.style[o('transitionDuration')]=e+'ms')})}function kt(t,e){return t.reduce(function(t,a){var i=ae,o=mt(a,e.performance?e:r(a,e)),n=o.html,s=o.trigger,l=o.touchHold,d=o.dynamicTitle,c=o.createPopperInstanceOnInit,m=a.getAttribute('title');if(!m&&!n)return t;a.setAttribute('data-tippy',''),a.setAttribute('aria-describedby','tippy-'+i),ft(a);var f=p(i,m,o),h=new ee({id:i,reference:a,popper:f,options:o,_mutationObservers:[]});h.popperInstance=c?nt(h):null;var b=ct(h,o);return h.listeners=s.trim().split(' ').reduce(function(t,e){return t.concat(st(e,a,b,l))},[]),d&&pt({tippy:h,target:a,callback:function(){var t=rt(f),e=t.content,i=a.getAttribute('title');i&&(e.innerHTML=i,ft(a))},options:{attributes:!0}}),a._tippy=h,f._reference=a,t.push(h),ae++,t},[])}function Et(t){var e=[].slice.call(document.querySelectorAll(Dt.POPPER));e.forEach(function(e){var a=e._reference._tippy,i=a.options;(!0===i.hideOnClick||-1<i.trigger.indexOf('focus'))&&(!t||e!==t.popper)&&a.hide()})}function Lt(){var t=function(){Xt.usingTouch||(Xt.usingTouch=!0,Xt.iOS&&document.body.classList.add('tippy-touch'),Xt.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',a),Xt.onUserInputChange('touch'))},a=function(){var t;return function(){var e=performance.now();20>e-t&&(Xt.usingTouch=!1,document.removeEventListener('mousemove',a),!Xt.iOS&&document.body.classList.remove('tippy-touch'),Xt.onUserInputChange('mouse')),t=e}}();document.addEventListener('click',function(t){if(!(t.target instanceof Element))return Et();var e=lt(t.target,Dt.REFERENCE),a=lt(t.target,Dt.POPPER);if(!(a&&a._reference._tippy.options.interactive)){if(e){var i=e._tippy.options;if(!i.multiple&&Xt.usingTouch||!i.multiple&&-1<i.trigger.indexOf('click'))return Et(e._tippy);if(!0!==i.hideOnClick||-1<i.trigger.indexOf('click'))return}Et()}}),document.addEventListener('touchstart',t),window.addEventListener('blur',function(){var t=document,a=t.activeElement;a&&a.blur&&e.call(a,Dt.REFERENCE)&&a.blur()}),!Xt.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',t)}function Tt(e,i){return Xt.supported&&!Xt._eventListenersBound&&(Lt(),Xt._eventListenersBound=!0),t(e)&&(e.refObj=!0,e.attributes=e.attributes||{},e.setAttribute=function(t,a){e.attributes[t]=a},e.getAttribute=function(t){return e.attributes[t]},e.removeAttribute=function(t){delete e.attributes[t]},e.addEventListener=function(){},e.removeEventListener=function(){},e.classList={classNames:{},add:function(t){return e.classList.classNames[t]=!0},remove:function(t){return delete e.classList.classNames[t],!0},contains:function(t){return!!e.classList.classNames[t]}}),i=It({},Pt,i),{selector:e,options:i,tooltips:Xt.supported?kt(a(e),i):[],destroyAll:function(){this.tooltips.forEach(function(t){return t.destroy()})}}}var Ot=Math.round,At=Math.min,Ct=Math.floor,St=Math.max,Yt='undefined'!=typeof window,Xt={};Yt&&(Xt.supported='requestAnimationFrame'in window,Xt.supportsTouch='ontouchstart'in window,Xt.usingTouch=!1,Xt.dynamicInputDetection=!0,Xt.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,Xt.onUserInputChange=function(){},Xt._eventListenersBound=!1);for(var Dt={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},Pt={placement:'top',trigger:'mouseenter focus',animation:'shift-away',html:!1,animateFill:!0,arrow:!1,delay:0,duration:[350,300],interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,updateDuration:350,sticky:!1,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,flip:!0,flipBehavior:'flip',arrowType:'sharp',arrowTransform:'',maxWidth:'',popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},Nt=Xt.supported&&Object.keys(Pt),Bt=function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')},Rt=function(){function t(t,e){for(var a,r=0;r<e.length;r++)a=e[r],a.enumerable=a.enumerable||!1,a.configurable=!0,('value'in a)&&(a.writable=!0),Object.defineProperty(t,a.key,a)}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}(),It=Object.assign||function(t){for(var e,a=1;a<arguments.length;a++)for(var i in e=arguments[a],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Wt='undefined'!=typeof window&&'undefined'!=typeof document,Ht=['Edge','Trident','Firefox'],Mt=0,zt=0;zt<Ht.length;zt+=1)if(Wt&&0<=navigator.userAgent.indexOf(Ht[zt])){Mt=1;break}var i,_t=Wt&&window.Promise,Ut=_t?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Mt))}},qt=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},Ft=function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')},jt=function(){function t(t,e){for(var a,r=0;r<e.length;r++)a=e[r],a.enumerable=a.enumerable||!1,a.configurable=!0,'value'in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}return function(e,a,i){return a&&t(e.prototype,a),i&&t(e,i),e}}(),Kt=function(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t},Vt=Object.assign||function(t){for(var e,a=1;a<arguments.length;a++)for(var i in e=arguments[a],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Gt=['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'],Zt=Gt.slice(3),Qt={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},$t=function(){function t(e,a){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Ft(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Ut(this.update.bind(this)),this.options=Vt({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=a&&a.jquery?a[0]:a,this.options.modifiers={},Object.keys(Vt({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=Vt({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return Vt({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&n(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return jt(t,[{key:'update',value:function(){return B.call(this)}},{key:'destroy',value:function(){return W.call(this)}},{key:'enableEventListeners',value:function(){return _.call(this)}},{key:'disableEventListeners',value:function(){return q.call(this)}}]),t}();$t.Utils=('undefined'==typeof window?global:window).PopperUtils,$t.placements=Gt,$t.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,a=e.split('-')[0],i=e.split('-')[1];if(i){var r=t.offsets,o=r.reference,p=r.popper,n=-1!==['bottom','top'].indexOf(a),s=n?'left':'top',l=n?'width':'height',d={start:Kt({},s,o[s]),end:Kt({},s,o[s]+o[l]-p[l])};t.offsets.popper=Vt({},p,d[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var a,i=e.offset,r=t.placement,o=t.offsets,p=o.popper,n=o.reference,s=r.split('-')[0];return a=F(+i)?[+i,0]:$(i,p,n,s),'left'===s?(p.top+=a[0],p.left-=a[1]):'right'===s?(p.top+=a[0],p.left+=a[1]):'top'===s?(p.left+=a[0],p.top-=a[1]):'bottom'===s&&(p.left+=a[0],p.top+=a[1]),t.popper=p,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var a=e.boundariesElement||c(t.instance.popper);t.instance.reference===a&&(a=c(a));var i=T(t.instance.popper,t.instance.reference,e.padding,a);e.boundaries=i;var r=e.priority,o=t.offsets.popper,p={primary:function(t){var a=o[t];return o[t]<i[t]&&!e.escapeWithReference&&(a=St(o[t],i[t])),Kt({},t,a)},secondary:function(t){var a='right'===t?'left':'top',r=o[a];return o[t]>i[t]&&!e.escapeWithReference&&(r=At(o[a],i[t]-('right'===t?o.width:o.height))),Kt({},a,r)}};return r.forEach(function(t){var e=-1===['left','top'].indexOf(t)?'secondary':'primary';o=Vt({},o,p[e](t))}),t.offsets.popper=o,t},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,a=e.popper,i=e.reference,r=t.placement.split('-')[0],o=Ct,p=-1!==['top','bottom'].indexOf(r),n=p?'right':'bottom',s=p?'left':'top',l=p?'width':'height';return a[n]<o(i[s])&&(t.offsets.popper[s]=o(i[s])-a[l]),a[s]>o(i[n])&&(t.offsets.popper[s]=o(i[n])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var a;if(!V(t.instance.modifiers,'arrow','keepTogether'))return t;var i=e.element;if('string'==typeof i){if(i=t.instance.popper.querySelector(i),!i)return t;}else if(!t.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),t;var r=t.placement.split('-')[0],o=t.offsets,p=o.popper,n=o.reference,l=-1!==['left','right'].indexOf(r),d=l?'height':'width',c=l?'Top':'Left',m=c.toLowerCase(),f=l?'left':'top',h=l?'bottom':'right',b=S(i)[d];n[h]-b<p[m]&&(t.offsets.popper[m]-=p[m]-(n[h]-b)),n[m]+b>p[h]&&(t.offsets.popper[m]+=n[m]+b-p[h]),t.offsets.popper=w(t.offsets.popper);var u=n[m]+n[d]/2-b/2,y=s(t.instance.popper),g=parseFloat(y['margin'+c],10),x=parseFloat(y['border'+c+'Width'],10),v=u-t.offsets.popper[m]-g-x;return v=St(At(p[d]-b,v),0),t.arrowElement=i,t.offsets.arrow=(a={},Kt(a,m,Ot(v)),Kt(a,f,''),a),t},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(t,e){if(R(t.instance.modifiers,'inner'))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var a=T(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split('-')[0],r=Y(i),o=t.placement.split('-')[1]||'',p=[];switch(e.behavior){case Qt.FLIP:p=[i,r];break;case Qt.CLOCKWISE:p=Z(i);break;case Qt.COUNTERCLOCKWISE:p=Z(i,!0);break;default:p=e.behavior;}return p.forEach(function(n,s){if(i!==n||p.length===s+1)return t;i=t.placement.split('-')[0],r=Y(i);var l=t.offsets.popper,d=t.offsets.reference,c=Ct,m='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),f=c(l.left)<c(a.left),h=c(l.right)>c(a.right),b=c(l.top)<c(a.top),u=c(l.bottom)>c(a.bottom),y='left'===i&&f||'right'===i&&h||'top'===i&&b||'bottom'===i&&u,g=-1!==['top','bottom'].indexOf(i),x=!!e.flipVariations&&(g&&'start'===o&&f||g&&'end'===o&&h||!g&&'start'===o&&b||!g&&'end'===o&&u);(m||y||x)&&(t.flipped=!0,(m||y)&&(i=p[s+1]),x&&(o=G(o)),t.placement=i+(o?'-'+o:''),t.offsets.popper=Vt({},t.offsets.popper,X(t.instance.popper,t.offsets.reference,t.placement)),t=N(t.instance.modifiers,t,'flip'))}),t},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,a=e.split('-')[0],i=t.offsets,r=i.popper,o=i.reference,p=-1!==['left','right'].indexOf(a),n=-1===['top','left'].indexOf(a);return r[p?'left':'top']=o[a]-(n?r[p?'width':'height']:0),t.placement=Y(e),t.offsets.popper=w(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!V(t.instance.modifiers,'hide','preventOverflow'))return t;var e=t.offsets.reference,a=D(t.instance.modifiers,function(t){return'preventOverflow'===t.name}).boundaries;if(e.bottom<a.top||e.left>a.right||e.top>a.bottom||e.right<a.left){if(!0===t.hide)return t;t.hide=!0,t.attributes['x-out-of-boundaries']=''}else{if(!1===t.hide)return t;t.hide=!1,t.attributes['x-out-of-boundaries']=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var a=e.x,i=e.y,r=t.offsets.popper,o=D(t.instance.modifiers,function(t){return'applyStyle'===t.name}).gpuAcceleration;void 0!==o&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var p,n,s=void 0===o?e.gpuAcceleration:o,l=c(t.instance.popper),d=v(l),m={position:r.position},f={left:Ct(r.left),top:Ct(r.top),bottom:Ct(r.bottom),right:Ct(r.right)},h='bottom'===a?'top':'bottom',b='right'===i?'left':'right',u=I('transform');if(n='bottom'==h?-d.height+f.bottom:f.top,p='right'==b?-d.width+f.right:f.left,s&&u)m[u]='translate3d('+p+'px, '+n+'px, 0)',m[h]=0,m[b]=0,m.willChange='transform';else{var y='bottom'==h?-1:1,g='right'==b?-1:1;m[h]=n*y,m[b]=p*g,m.willChange=h+', '+b}var x={"x-placement":t.placement};return t.attributes=Vt({},x,t.attributes),t.styles=Vt({},m,t.styles),t.arrowStyles=Vt({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(t){return j(t.instance.popper,t.styles),K(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&j(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,a,i,r){var o=C(r,e,t),p=A(a.placement,o,e,t,a.modifiers.flip.boundariesElement,a.modifiers.flip.padding);return e.setAttribute('x-placement',p),j(e,{position:'absolute'}),a},gpuAcceleration:void 0}}};var Jt={};if(Yt){var te=Element.prototype;Jt=te.matches||te.matchesSelector||te.webkitMatchesSelector||te.mozMatchesSelector||te.msMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),a=e.length;0<=--a&&e.item(a)!==this;);return-1<a}}var e=Jt,ee=function(){function t(e){for(var a in Bt(this,t),e)this[a]=e[a];this.state={destroyed:!1,visible:!1,enabled:!0}}return Rt(t,[{key:'enable',value:function(){this.state.enabled=!0}},{key:'disable',value:function(){this.state.enabled=!1}},{key:'show',value:function(t){var e=this;if(!this.state.destroyed&&this.state.enabled){var a=this.popper,i=this.reference,r=this.options,p=rt(a),n=p.tooltip,s=p.backdrop,l=p.content;return i.refObj||document.body.contains(i)?void(r.onShow.call(a),t=xt(void 0===t?r.duration:t,0),vt([a,n,s],0),bt(this),a.style.visibility='visible',this.state.visible=!0,it(function(){e.state.visible&&((!r.followCursor||Xt.usingTouch)&&(e.popperInstance.update(),vt([a],r.updateDuration)),vt([n,s,s?l:null],t),s&&getComputedStyle(s)[o('transform')],r.interactive&&i.classList.add('tippy-active'),r.sticky&&ut(e),wt([n,s],'visible'),yt(e,t,function(){r.updateDuration||n.classList.add('tippy-notransition'),r.interactive&&a.focus(),r.onShown.call(a)}))})):void this.destroy()}}},{key:'hide',value:function(t){var e=this;if(!this.state.destroyed&&this.state.enabled){var a=this.popper,i=this.reference,r=this.options,o=rt(a),p=o.tooltip,n=o.backdrop,s=o.content;r.onHide.call(a),t=xt(void 0===t?r.duration:t,1),r.updateDuration||p.classList.remove('tippy-notransition'),r.interactive&&i.classList.remove('tippy-active'),a.style.visibility='hidden',this.state.visible=!1,vt([p,n,n?s:null],t),wt([p,n],'hidden'),r.interactive&&-1<r.trigger.indexOf('click')&>(i)&&i.focus(),it(function(){yt(e,t,function(){e.state.visible||!r.appendTo.contains(a)||(e.popperInstance.disableEventListeners(),document.removeEventListener('mousemove',e._followCursorListener),r.appendTo.removeChild(a),r.onHidden.call(a))})})}}},{key:'destroy',value:function(){var t=this;this.state.destroyed||(this.state.visible&&this.hide(0),this.listeners.forEach(function(e){t.reference.removeEventListener(e.event,e.handler)}),this.reference.setAttribute('title',this.reference.getAttribute('data-original-title')),delete this.reference._tippy,['data-original-title','data-tippy','aria-describedby'].forEach(function(e){t.reference.removeAttribute(e)}),this.popperInstance&&this.popperInstance.destroy(),this._mutationObservers.forEach(function(t){t.disconnect()}),this.state.destroyed=!0)}}]),t}(),ae=1;return Tt.browser=Xt,Tt.defaults=Pt,function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:'';if(Yt){var e=document.head||document.querySelector('head'),a=document.createElement('style');a.type='text/css',e.insertBefore(a,e.firstChild),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}('.tippy-touch{cursor:pointer!important}.tippy-notransition{-webkit-transition:none!important;transition:none!important}.tippy-popper{max-width:350px;-webkit-perspective:700px;perspective:700px;z-index:9999;outline:0;-webkit-transition-timing-function:cubic-bezier(.165,.84,.44,1);transition-timing-function:cubic-bezier(.165,.84,.44,1);pointer-events:none}.tippy-popper[data-html]{max-width:96%;max-width:calc(100% - 20px)}.tippy-popper[x-placement^=top] .tippy-backdrop{border-radius:40% 40% 0 0}.tippy-popper[x-placement^=top] .tippy-roundarrow{width:23px;height:23px;fill:#333;bottom:-15px;margin:0 6px}.tippy-popper[x-placement^=top] .tippy-roundarrow svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.tippy-popper[x-placement^=top] .tippy-arrow{border-top:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;bottom:-7px;margin:0 9px}.tippy-popper[x-placement^=top] .tippy-backdrop{-webkit-transform-origin:0 100%;transform-origin:0 100%}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(5.5) translate(-50%,25%);transform:scale(5.5) translate(-50%,25%);opacity:1}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(1) translate(-50%,25%);transform:scale(1) translate(-50%,25%);opacity:0}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px)}.tippy-popper[x-placement^=top] [data-animation=perspective]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px) rotateX(0);transform:translateY(-10px) rotateX(0)}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) rotateX(90deg);transform:translateY(0) rotateX(90deg)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateY(-10px) scale(1);transform:translateY(-10px) scale(1)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=bottom] .tippy-backdrop{border-radius:0 0 30% 30%}.tippy-popper[x-placement^=bottom] .tippy-roundarrow{width:23px;height:23px;fill:#333;top:-15px;margin:0 6px}.tippy-popper[x-placement^=bottom] .tippy-roundarrow svg{-webkit-transform:rotate(0);transform:rotate(0)}.tippy-popper[x-placement^=bottom] .tippy-arrow{border-bottom:7px solid #333;border-right:7px solid transparent;border-left:7px solid transparent;top:-7px;margin:0 9px}.tippy-popper[x-placement^=bottom] .tippy-backdrop{-webkit-transform-origin:0 -100%;transform-origin:0 -100%}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(5.5) translate(-50%,-125%);transform:scale(5.5) translate(-50%,-125%);opacity:1}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(1) translate(-50%,-125%);transform:scale(1) translate(-50%,-125%);opacity:0}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(20px);transform:translateY(20px)}.tippy-popper[x-placement^=bottom] [data-animation=perspective]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateY(10px) rotateX(0);transform:translateY(10px) rotateX(0)}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) rotateX(-90deg);transform:translateY(0) rotateX(-90deg)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateY(0);transform:translateY(0)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateY(10px) scale(1);transform:translateY(10px) scale(1)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(0) scale(0);transform:translateY(0) scale(0)}.tippy-popper[x-placement^=left] .tippy-backdrop{border-radius:30% 0 0 30%}.tippy-popper[x-placement^=left] .tippy-roundarrow{width:23px;height:23px;fill:#333;right:-15px;margin:4px 0}.tippy-popper[x-placement^=left] .tippy-roundarrow svg{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.tippy-popper[x-placement^=left] .tippy-arrow{border-left:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;right:-7px;margin:6px 0}.tippy-popper[x-placement^=left] .tippy-backdrop{-webkit-transform-origin:100% 0;transform-origin:100% 0}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(5.5) translate(33%,-50%);transform:scale(5.5) translate(33%,-50%);opacity:1}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(1.5) translate(33%,-50%);transform:scale(1.5) translate(33%,-50%);opacity:0}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(-20px);transform:translateX(-20px)}.tippy-popper[x-placement^=left] [data-animation=perspective]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px) rotateY(0);transform:translateX(-10px) rotateY(0)}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) rotateY(-90deg);transform:translateX(0) rotateY(-90deg)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateX(-10px) scale(1);transform:translateX(-10px) scale(1)}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-popper[x-placement^=right] .tippy-backdrop{border-radius:0 30% 30% 0}.tippy-popper[x-placement^=right] .tippy-roundarrow{width:23px;height:23px;fill:#333;left:-15px;margin:4px 0}.tippy-popper[x-placement^=right] .tippy-roundarrow svg{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.tippy-popper[x-placement^=right] .tippy-arrow{border-right:7px solid #333;border-top:7px solid transparent;border-bottom:7px solid transparent;left:-7px;margin:6px 0}.tippy-popper[x-placement^=right] .tippy-backdrop{-webkit-transform-origin:-100% 0;transform-origin:-100% 0}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(5.5) translate(-133%,-50%);transform:scale(5.5) translate(-133%,-50%);opacity:1}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(1.5) translate(-133%,-50%);transform:scale(1.5) translate(-133%,-50%);opacity:0}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=visible]{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(20px);transform:translateX(20px)}.tippy-popper[x-placement^=right] [data-animation=perspective]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=visible]{opacity:1;-webkit-transform:translateX(10px) rotateY(0);transform:translateX(10px) rotateY(0)}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) rotateY(90deg);transform:translateX(0) rotateY(90deg)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=visible]{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=visible]{opacity:1;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=hidden]{opacity:0;-webkit-transform:translateX(0);transform:translateX(0)}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=visible]{opacity:1;-webkit-transform:translateX(10px) scale(1);transform:translateX(10px) scale(1)}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(0) scale(0);transform:translateX(0) scale(0)}.tippy-tooltip{position:relative;color:#fff;border-radius:4px;font-size:.9rem;padding:.3rem .6rem;text-align:center;will-change:transform;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#333}.tippy-tooltip[data-size=small]{padding:.2rem .4rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.4rem .8rem;font-size:1rem}.tippy-tooltip[data-animatefill]{overflow:hidden;background-color:transparent}.tippy-tooltip[data-animatefill][data-state=visible] .tippy-content{-webkit-clip-path:ellipse(100% 100% at 50% 50%);clip-path:ellipse(100% 100% at 50% 50%)}.tippy-tooltip[data-animatefill][data-state=hidden] .tippy-content{-webkit-clip-path:ellipse(5% 20% at 50% 50%);clip-path:ellipse(5% 20% at 50% 50%)}.tippy-tooltip[data-animatefill] .tippy-content{-webkit-transition:-webkit-clip-path cubic-bezier(.46,.1,.52,.98);transition:-webkit-clip-path cubic-bezier(.46,.1,.52,.98);transition:clip-path cubic-bezier(.46,.1,.52,.98);transition:clip-path cubic-bezier(.46,.1,.52,.98),-webkit-clip-path cubic-bezier(.46,.1,.52,.98)}.tippy-tooltip[data-interactive]{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(.53,2,.36,.85);transition-timing-function:cubic-bezier(.53,2,.36,.85)}.tippy-tooltip[data-inertia][data-state=hidden]{-webkit-transition-timing-function:ease;transition-timing-function:ease}.tippy-arrow,.tippy-roundarrow{position:absolute;width:0;height:0}.tippy-backdrop{position:absolute;will-change:transform;background-color:#333;border-radius:50%;width:26%;left:50%;top:50%;z-index:-1;-webkit-transition:all cubic-bezier(.46,.1,.52,.98);transition:all cubic-bezier(.46,.1,.52,.98)}.tippy-backdrop:after{content:"";float:left;padding-top:100%}.tippy-popper[x-placement=right] .tippy-tooltip[data-animatefill][data-state=visible] .tippy-content{-webkit-clip-path:ellipse(135% 100% at 0 50%);clip-path:ellipse(135% 100% at 0 50%)}.tippy-popper[x-placement=right] .tippy-tooltip[data-animatefill][data-state=hidden] .tippy-content{-webkit-clip-path:ellipse(25% 100% at 0 50%);clip-path:ellipse(25% 100% at 0 50%)}.tippy-popper[x-placement=left] .tippy-tooltip[data-animatefill][data-state=visible] .tippy-content{-webkit-clip-path:ellipse(135% 100% at 100% 50%);clip-path:ellipse(135% 100% at 100% 50%)}.tippy-popper[x-placement=left] .tippy-tooltip[data-animatefill][data-state=hidden] .tippy-content{-webkit-clip-path:ellipse(25% 100% at 100% 50%);clip-path:ellipse(25% 100% at 100% 50%)}@media (max-width:360px){.tippy-popper{max-width:96%;max-width:calc(100% - 20px)}}'),Tt}); |
@@ -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 t(e){Ie.forEach(function(t){var o=t.popper,i=t.tippyInstance,r=t.options,n=r.appendTo,s=r.hideOnClick,a=r.trigger;if(n.contains(o)){var p=!0===s||-1<a.indexOf('focus'),l=!e||o!==e.popper;p&&l&&i.hide(o)}})}function o(t,o){var i=Element.prototype.closest||function(t){for(var o=this;o;){if(e.call(o,t))return o;o=o.parentElement}};return i.call(t,o)}function r(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function n(){var i=function(){De.usingTouch=!0,De.iOS&&document.body.classList.add('tippy-touch'),De.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',n)},n=function(){var e;return function(){var t=performance.now();20>t-e&&(De.usingTouch=!1,document.removeEventListener('mousemove',n),!De.iOS&&document.body.classList.remove('tippy-touch')),e=t}}();document.addEventListener('click',function(e){if(!(e.target instanceof Element))return t();var i=o(e.target,Ne.TOOLTIPPED_EL),n=o(e.target,Ne.POPPER);if(n){var s=r(Ie,function(e){return e.popper===n});if(s.options.interactive)return}if(i){var a=r(Ie,function(e){return e.reference===i}),p=a.options,l=p.hideOnClick,d=p.multiple,c=p.trigger;if(!d&&De.usingTouch||!d&&-1!==c.indexOf('click'))return t(a);if(!0!==l||-1!==c.indexOf('click'))return}o(e.target,Ne.CONTROLLER)||!document.querySelector(Ne.POPPER)||t()}),document.addEventListener('touchstart',i),window.addEventListener('blur',function(){var t=document,o=t.activeElement;o&&o.blur&&e.call(o,Ne.TOOLTIPPED_EL)&&o.blur()}),!De.supportsTouch&&(0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',i)}function s(){return!s.done&&(s.done=!0,n(),!0)}function a(e){requestAnimationFrame(function(){setTimeout(e,0)})}function p(e){for(var t=[!1,'webkit'],o=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],n=i?''+i+o:e;if('undefined'!=typeof window.document.body.style[n])return n}return null}function l(e,t){return Array.prototype.findIndex?e.findIndex(t):e.indexOf(r(e,t))}function d(e){var t=e.getAttribute('title');t&&e.setAttribute('data-original-title',t),e.removeAttribute('title')}function c(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 f(e,t){t?getComputedStyle(t)[p('transform')]:getComputedStyle(e).opacity}function m(e,t){e.forEach(function(e){e&&e.setAttribute('x-state',t)})}function h(e){return{tooltip:e.querySelector(Ne.TOOLTIP),circle:e.querySelector(Ne.CIRCLE),content:e.querySelector(Ne.CONTENT)}}function u(t,o){t.forEach(function(t){if(t){var i=e.call(t,Ne.CONTENT),r=i?Pe(o/1.3):o;t.style[p('transitionDuration')]=r+'ms'}})}function g(e){return'visible'===e.style.visibility}function b(){}function y(e){return!!e&&'[object Object]'===e.toString()}function v(e){return e.replace(/-.+/,'')}function w(e){var t=r(Ie,function(t){return t.reference===e}),o=function(o){var e,i,r=t.popper,n=t.options.offset,s=v(r.getAttribute('x-placement')),a=Pe(r.offsetWidth/2),l=Pe(r.offsetHeight/2),d=5,c=document.documentElement.offsetWidth||document.body.offsetWidth,f=o.pageX,m=o.pageY;'top'===s?(e=f-a+n,i=m-2*l):'bottom'===s?(e=f-a+n,i=m+10):'left'===s?(e=f-2*a,i=m-l+n):'right'===s?(e=f+5,i=m-l+n):void 0;('top'===s||'bottom'===s)&&(f+d+a+n>c&&(e=c-d-2*a),0>f-d-a+n&&(e=d)),r.style[p('transform')]='translate3d('+e+'px, '+i+'px, 0)'};return t._followCursorHandler=o,o}function E(e){if(e instanceof Element||y(e))return[e];if(e instanceof NodeList)return[].slice.call(e);if(Array.isArray(e))return e;try{return[].slice.call(document.querySelectorAll(e))}catch(e){return[]}}function L(e,t,o){if(!t)return o();var i=h(e.popper),r=i.tooltip,n=!1,s=function(t){t.target!==r||n||(n=!0,o())};r.addEventListener('webkitTransitionEnd',s),r.addEventListener('transitionend',s),clearTimeout(e._transitionendTimeout),e._transitionendTimeout=setTimeout(function(){n||(n=!0,o())},t)}function T(e){return e&&'[object Function]'==={}.toString.call(e)}function O(e,t){if(1!==e.nodeType)return[];var o=getComputedStyle(e,null);return t?o[t]:o}function x(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function k(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var t=O(e),o=t.overflow,i=t.overflowX,r=t.overflowY;return /(auto|scroll)/.test(o+r+i)?e:k(x(e))}function A(e){var t=e&&e.offsetParent,o=t&&t.nodeName;return o&&'BODY'!==o&&'HTML'!==o?-1!==['TD','TABLE'].indexOf(t.nodeName)&&'static'===O(t,'position')?A(t):t:e?e.ownerDocument.documentElement:document.documentElement}function C(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||A(e.firstElementChild)===e)}function S(e){return null===e.parentNode?e:S(e.parentNode)}function P(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:t,r=o?t:e,n=document.createRange();n.setStart(i,0),n.setEnd(r,0);var s=n.commonAncestorContainer;if(e!==s&&t!==s||i.contains(r))return C(s)?s:A(s);var a=S(e);return a.host?P(a.host,t):P(e,S(t).host)}function D(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 r=e.ownerDocument.documentElement,n=e.ownerDocument.scrollingElement||r;return n[o]}return e[o]}function I(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=D(t,'top'),r=D(t,'left'),n=o?-1:1;return e.top+=i*n,e.bottom+=i*n,e.left+=r*n,e.right+=r*n,e}function N(e,t){var o='x'===t?'Left':'Top',i='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'],10)+parseFloat(e['border'+i+'Width'],10)}function H(e,t,o,i){return Se(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],je()?o['offset'+e]+i['margin'+('Height'===e?'Top':'Left')]+i['margin'+('Height'===e?'Bottom':'Right')]:0)}function B(){var e=document.body,t=document.documentElement,o=je()&&getComputedStyle(t);return{height:H('Height',e,t,o),width:H('Width',e,t,o)}}function W(e){return Xe({},e,{right:e.left+e.width,bottom:e.top+e.height})}function M(e){var t={};if(je())try{t=e.getBoundingClientRect();var o=D(e,'top'),i=D(e,'left');t.top+=o,t.left+=i,t.bottom+=o,t.right+=i}catch(e){}else t=e.getBoundingClientRect();var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},n='HTML'===e.nodeName?B():{},s=n.width||e.clientWidth||r.right-r.left,a=n.height||e.clientHeight||r.bottom-r.top,p=e.offsetWidth-s,l=e.offsetHeight-a;if(p||l){var d=O(e);p-=N(d,'x'),l-=N(d,'y'),r.width-=p,r.height-=l}return W(r)}function R(e,t){var o=je(),i='HTML'===t.nodeName,r=M(e),n=M(t),s=k(e),a=O(t),p=parseFloat(a.borderTopWidth,10),l=parseFloat(a.borderLeftWidth,10),d=W({top:r.top-n.top-p,left:r.left-n.left-l,width:r.width,height:r.height});if(d.marginTop=0,d.marginLeft=0,!o&&i){var c=parseFloat(a.marginTop,10),f=parseFloat(a.marginLeft,10);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=I(d,t)),d}function _(e){var t=e.ownerDocument.documentElement,o=R(e,t),i=Se(t.clientWidth,window.innerWidth||0),r=Se(t.clientHeight,window.innerHeight||0),n=D(t),s=D(t,'left'),a={top:n-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:r};return W(a)}function U(e){var t=e.nodeName;return'BODY'===t||'HTML'===t?!1:'fixed'===O(e,'position')||U(x(e))}function F(e,t,o,i){var r={top:0,left:0},n=P(e,t);if('viewport'===i)r=_(n);else{var s;'scrollParent'===i?(s=k(x(t)),'BODY'===s.nodeName&&(s=e.ownerDocument.documentElement)):'window'===i?s=e.ownerDocument.documentElement:s=i;var a=R(s,n);if('HTML'===s.nodeName&&!U(n)){var p=B(),l=p.height,d=p.width;r.top+=a.top-a.marginTop,r.bottom=l+a.top,r.left+=a.left-a.marginLeft,r.right=d+a.left}else r=a}return r.left+=o,r.top+=o,r.right-=o,r.bottom-=o,r}function Y(e){var t=e.width,o=e.height;return t*o}function q(e,t,o,i,r){var n=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var s=F(o,i,n,r),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 Xe({key:e},a[e],{area:Y(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 j(e,t,o){var i=P(t,o);return R(o,i)}function z(e){var t=getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight),r={width:e.offsetWidth+i,height:e.offsetHeight+o};return r}function V(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 K(e,t,o){o=o.split('-')[0];var i=z(e),r={width:i.width,height:i.height},n=-1!==['right','left'].indexOf(o),s=n?'top':'left',a=n?'left':'top',p=n?'height':'width',l=n?'width':'height';return r[s]=t[s]+t[p]/2-i[p]/2,r[a]=o===a?t[a]-i[l]:t[V(a)],r}function X(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function G(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var i=X(e,function(e){return e[t]===o});return e.indexOf(i)}function Z(e,t,o){var i=void 0===o?e:e.slice(0,G(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&&T(o)&&(t.offsets.popper=W(t.offsets.popper),t.offsets.reference=W(t.offsets.reference),t=o(t,e))}),t}function J(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=j(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=K(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=Z(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Q(e,t){return e.some(function(e){var o=e.name,i=e.enabled;return i&&o===t})}function $(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length-1;r++){var i=t[r],n=i?''+i+o:e;if('undefined'!=typeof document.body.style[n])return n}return null}function ee(){return this.state.isDestroyed=!0,Q(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[$('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function te(e){var t=e.ownerDocument;return t?t.defaultView:window}function oe(e,t,o,i){var r='BODY'===e.nodeName,n=r?e.ownerDocument.defaultView:e;n.addEventListener(t,o,{passive:!0}),r||oe(k(n.parentNode),t,o,i),i.push(n)}function ie(e,t,o,i){o.updateBound=i,te(e).addEventListener('resize',o.updateBound,{passive:!0});var r=k(e);return oe(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function re(){this.state.eventsEnabled||(this.state=ie(this.reference,this.options,this.state,this.scheduleUpdate))}function ne(e,t){return te(e).removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function se(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=ne(this.reference,this.state))}function ae(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function pe(e,t){Object.keys(t).forEach(function(o){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&ae(t[o])&&(i='px'),e.style[o]=t[o]+i})}function le(e,t){Object.keys(t).forEach(function(o){var i=t[o];!1===i?e.removeAttribute(o):e.setAttribute(o,t[o])})}function de(e,t,o){var i=X(e,function(e){var o=e.name;return o===t}),r=!!i&&e.some(function(e){return e.name===o&&e.enabled&&e.order<i.order});if(!r){var n='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+n+' modifier in order to work, be sure to include it before '+n+'!')}return r}function ce(e){return'end'===e?'start':'start'===e?'end':e}function fe(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=Ze.indexOf(e),i=Ze.slice(o+1).concat(Ze.slice(0,o));return t?i.reverse():i}function me(e,t,o,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),n=+r[1],s=r[2];if(!n)return e;if(0===s.indexOf('%')){var a;switch(s){case'%p':a=o;break;case'%':case'%r':default:a=i;}var p=W(a);return p[t]/100*n}if('vh'===s||'vw'===s){var l;return l='vh'===s?Se(document.documentElement.clientHeight,window.innerHeight||0):Se(document.documentElement.clientWidth,window.innerWidth||0),l/100*n}return n}function he(e,t,o,i){var r=[0,0],n=-1!==['right','left'].indexOf(i),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=s.indexOf(X(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 r=(1===i?!n:n)?'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 me(e,r,t,o)})}),l.forEach(function(e,t){e.forEach(function(o,i){ae(o)&&(r[t]+=o*('-'===e[i-1]?-1:1))})}),r}function ue(e){return-(e-He.distance)+'px'}function ge(e){var t=e.reference,o=e.popper,i=e.options,r=i.placement,n=i.popperOptions,s=i.offset,l=i.distance,d=i.updateDuration,c=i.flip,f=i.flipBehavior,m=i.arrowStyle,u=h(o),g=u.tooltip,b=tt({placement:r},n||{},{modifiers:tt({},n?n.modifiers:{},{arrow:tt({element:'round'===m?'[x-roundarrow]':'[x-arrow]'},n&&n.modifiers?n.modifiers.arrow:{}),flip:tt({enabled:c,padding:l+5,behavior:f},n&&n.modifiers?n.modifiers.flip:{}),offset:tt({offset:s},n&&n.modifiers?n.modifiers.offset:{})}),onUpdate:function(){var e=g.style;e.top='',e.bottom='',e.left='',e.right='',e[v(o.getAttribute('x-placement'))]=ue(l)}});if(window.MutationObserver){var y=o.style,w=new MutationObserver(function(){y[p('transitionDuration')]='0ms',e.popperInstance.update(),a(function(){y[p('transitionDuration')]=d+'ms'})});w.observe(o,{childList:!0,subtree:!0,characterData:!0}),e._mutationObservers.push(w)}return new Qe(t,o,b)}function be(e){var t=e.reference,o=e.popper,i=e.options,r=i.appendTo,n=i.followCursor;r.contains(o)||(r.appendChild(o),e.popperInstance?(e.popperInstance.update(),(!n||De.usingTouch)&&e.popperInstance.enableEventListeners()):e.popperInstance=ge(e),n&&!De.usingTouch&&(document.addEventListener('mousemove',w(e.reference)),e.popperInstance.disableEventListeners()))}function ye(e){var t=e.popper,o=e.popperInstance,i=e.options.stickyDuration,r=function(){return t.style[p('transitionDuration')]=i+'ms'},n=function(){return t.style[p('transitionDuration')]=''};a(function e(){o&&o.scheduleUpdate(),r(),g(t)?requestAnimationFrame(e):n()})}function ve(e,t){var o=Be.reduce(function(o,i){var r=e.getAttribute('data-tippy-'+i.toLowerCase())||t[i];return'false'===r&&(r=!1),'true'===r&&(r=!0),isFinite(r)&&!isNaN(parseFloat(r))&&(r=parseFloat(r)),'string'==typeof r&&'['===r.trim().charAt(0)&&(r=JSON.parse(r)),o[i]=r,o},{});return tt({},t,o)}function we(e,t,o){var i=o.placement,r=o.distance,n=o.arrow,s=o.arrowStyle,a=o.arrowTransform,l=o.animateFill,d=o.inertia,c=o.animation,f=o.size,m=o.theme,h=o.html,u=o.zIndex,g=o.interactive,b=o.maxWidth,y=document.createElement('div');y.setAttribute('class','tippy-popper'),y.setAttribute('role','tooltip'),y.setAttribute('aria-hidden','true'),y.setAttribute('id','tippy-tooltip-'+e),y.style.zIndex=u,y.style.maxWidth=b;var w=document.createElement('div');if(w.setAttribute('class','tippy-tooltip'),w.setAttribute('x-size',f),w.setAttribute('x-animation',c),w.setAttribute('x-state','hidden'),m.split(' ').forEach(function(e){w.classList.add(e+'-theme')}),n){var E=document.createElement('div');E.style[p('transform')]=a,'round'===s?(E.setAttribute('x-roundarrow',''),E.innerHTML='\n <svg width="100%" height="100%" viewBox="0 0 64 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">\n <g transform="matrix(1.20755,0,0,1.42589,-6.03774,-64.3912)">\n <path d="M5,59.185C5,59.185 14.88,57.927 21.5,51.55C30.308,43.066 33.909,43.016 42.5,51.55C48.775,57.783 58,59.185 58,59.185L5,59.185Z"/>\n </g>\n </svg>'):E.setAttribute('x-arrow',''),w.appendChild(E)}if(l){w.setAttribute('x-animatefill','');var L=document.createElement('div');L.setAttribute('x-state','hidden'),L.setAttribute('x-circle',''),w.appendChild(L)}d&&w.setAttribute('x-inertia',''),g&&w.setAttribute('x-interactive','');var T=document.createElement('div');if(T.setAttribute('class','tippy-tooltip-content'),h){var O;h instanceof Element?(T.appendChild(h),O='#'+h.id||'tippy-html-template'):(T.innerHTML=document.getElementById(h.replace('#','')).innerHTML,O=h),y.classList.add('html-template'),g&&y.setAttribute('tabindex','-1'),w.setAttribute('data-template-id',O)}else T.innerHTML=t;return w.style[v(i)]=ue(r),w.appendChild(T),y.appendChild(w),y}function Ee(e,t,o,i){var r=[];return'manual'===e?r:(t.addEventListener(e,o.handleTrigger),r.push({event:e,handler:o.handleTrigger}),'mouseenter'===e&&(De.supportsTouch&&i&&(t.addEventListener('touchstart',o.handleTrigger),r.push({event:'touchstart',handler:o.handleTrigger}),t.addEventListener('touchend',o.handleMouseleave),r.push({event:'touchend',handler:o.handleMouseleave})),t.addEventListener('mouseleave',o.handleMouseleave),r.push({event:'mouseleave',handler:o.handleMouseleave})),'focus'===e&&(t.addEventListener('blur',o.handleBlur),r.push({event:'blur',handler:o.handleBlur})),r)}function Le(e,t,o){if(!t.getAttribute('x-placement'))return!0;var i=e.clientX,r=e.clientY,n=o.interactiveBorder,s=o.distance,a=t.getBoundingClientRect(),p=v(t.getAttribute('x-placement')),l=n+s,d={top:a.top-r>n,bottom:r-a.bottom>n,left:a.left-i>n,right:i-a.right>n};return'top'===p?d.top=a.top-r>l:'bottom'===p?d.bottom=r-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 Te(e,t,i){var r,n,s=this,a=i.delay,p=i.duration,l=i.interactive,d=i.interactiveBorder,c=i.hideOnClick,f=i.trigger,m=i.touchHold,h=function(){clearTimeout(r),clearTimeout(n)},u=function(){if(h(),!g(t)){var e=Array.isArray(a)?a[0]:a;a?r=setTimeout(function(){return s.show(t)},e):s.show(t)}},b=function(e){s.callbacks.wait?s.callbacks.wait.call(t,u,e):u()},y=function(){h();var e=Array.isArray(a)?a[1]:a;a?n=setTimeout(function(){return s.hide(t)},e):s.hide(t)};return{handleTrigger:function(o){var i='mouseenter'===o.type&&De.supportsTouch&&De.usingTouch;if(!(i&&m)){var r='click'===o.type;r&&g(t)&&'persistent'!==c?y():b(o),i&&De.iOS&&e.click&&e.click()}},handleMouseleave:function(r){if(!('mouseleave'===r.type&&De.supportsTouch&&De.usingTouch&&m)){if(l){var n=function r(n){var s=function(){document.body.removeEventListener('mouseleave',y),document.removeEventListener('mousemove',r),y()},a=o(n.target,Ne.TOOLTIPPED_EL),p=o(n.target,Ne.POPPER)===t,l=-1<f.indexOf('click');return a&&a!==e?s():void(p||a===e||l||Le(n,t,i)&&s())};return document.body.addEventListener('mouseleave',y),void document.addEventListener('mousemove',n)}y()}},handleBlur:function(e){!e.relatedTarget||De.usingTouch||o(e.relatedTarget,Ne.POPPER)||y()}}}function Oe(e){return e.arrow&&(e.animateFill=!1),e.appendTo&&'function'==typeof e.appendTo&&(e.appendTo=e.appendTo()),e}function xe(e){var t=this;return e.reduce(function(e,o){var i=ot,r=tt({},Oe(t.options.performance?t.options:ve(o,t.options)));'function'==typeof r.html&&(r.html=r.html(o));var n=r.html,s=r.trigger,a=r.touchHold,p=r.dynamicTitle,l=o.getAttribute('title');if(!l&&!n)return e;o.setAttribute('x-tooltipped',''),o.setAttribute('aria-describedby','tippy-tooltip-'+i),d(o);var c=we(i,l,r),f=Te.call(t,o,c,r),m=[];s.trim().split(' ').forEach(function(e){return m=m.concat(Ee(e,o,f,a))}),o._tippy=t,o._popper=c,c._reference=o;var u;if(p&&window.MutationObserver){var g=h(c),b=g.content;u=new MutationObserver(function(){var e=o.getAttribute('title');e&&(b.innerHTML=e,d(o))}),u.observe(o,{attributes:!0})}return e.push({id:i,reference:o,popper:c,options:r,listeners:m,tippyInstance:t,_mutationObservers:[u]}),ot++,e},[])}function ke(e,t){return y(e)&&(e={refObj:!0,attributes:e.attributes||{},getBoundingClientRect:e.getBoundingClientRect,clientWidth:e.clientWidth,clientHeight:e.clientHeight,setAttribute:function(t,o){e.attributes[t]=o},getAttribute:function(t){return e.attributes[t]},removeAttribute:function(t){delete e.attributes[t]},addEventListener:function(){},removeEventListener:function(){},classList:{classNames:{},add:function(t){e.classList.classNames[t]=!0},remove:function(t){return e.classList.classNames[t]=!1,!0},contains:function(t){return!!e.classList.classNames[t]}}}),new it(e,t)}var Ae=Math.min,Ce=Math.floor,Se=Math.max,Pe=Math.round,De={};'undefined'!=typeof window&&(De.supported='requestAnimationFrame'in window,De.supportsTouch='ontouchstart'in window,De.usingTouch=!1,De.dynamicInputDetection=!0,De.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream);var Ie=[],Ne={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-tooltip-content',CIRCLE:'[x-circle]',ARROW:'[x-arrow]',TOOLTIPPED_EL:'[x-tooltipped]',CONTROLLER:'[x-tippy-controller]'},He={html:!1,placement:'top',animation:'shift',animateFill:!0,arrow:!1,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,updateDuration:350,sticky:!1,stickyDuration:200,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,flip:!0,flipBehavior:'flip',arrowStyle:'sharp',arrowTransform:'',maxWidth:'350px',popperOptions:{}},Be=De.supported&&Object.keys(He),We={};if('undefined'!=typeof Element){var Me=Element.prototype;We=Me.matches||Me.matchesSelector||Me.webkitMatchesSelector||Me.mozMatchesSelector||Me.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=t.length;0<=--o&&t.item(o)!==this;);return-1<o}}for(var e=We,Re='undefined'!=typeof window&&'undefined'!=typeof document,_e=['Edge','Trident','Firefox'],Ue=0,Fe=0;Fe<_e.length;Fe+=1)if(Re&&0<=navigator.userAgent.indexOf(_e[Fe])){Ue=1;break}var i,Ye=Re&&window.Promise,qe=Ye?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Ue))}},je=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},ze=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,r=0;r<t.length;r++)o=t[r],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),Ke=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},Xe=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},Ge=['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'],Ze=Ge.slice(3),Je={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},Qe=function(){function e(t,o){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};ze(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=qe(this.update.bind(this)),this.options=Xe({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=o&&o.jquery?o[0]:o,this.options.modifiers={},Object.keys(Xe({},e.Defaults.modifiers,r.modifiers)).forEach(function(t){i.options.modifiers[t]=Xe({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Xe({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&T(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var n=this.options.eventsEnabled;n&&this.enableEventListeners(),this.state.eventsEnabled=n}return Ve(e,[{key:'update',value:function(){return J.call(this)}},{key:'destroy',value:function(){return ee.call(this)}},{key:'enableEventListeners',value:function(){return re.call(this)}},{key:'disableEventListeners',value:function(){return se.call(this)}}]),e}();Qe.Utils=('undefined'==typeof window?global:window).PopperUtils,Qe.placements=Ge,Qe.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 r=e.offsets,n=r.reference,s=r.popper,a=-1!==['bottom','top'].indexOf(o),p=a?'left':'top',l=a?'width':'height',d={start:Ke({},p,n[p]),end:Ke({},p,n[p]+n[l]-s[l])};e.offsets.popper=Xe({},s,d[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var o,i=t.offset,r=e.placement,n=e.offsets,s=n.popper,a=n.reference,p=r.split('-')[0];return o=ae(+i)?[+i,0]:he(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||A(e.instance.popper);e.instance.reference===o&&(o=A(o));var i=F(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=i;var r=t.priority,n=e.offsets.popper,s={primary:function(e){var o=n[e];return n[e]<i[e]&&!t.escapeWithReference&&(o=Se(n[e],i[e])),Ke({},e,o)},secondary:function(e){var o='right'===e?'left':'top',r=n[o];return n[e]>i[e]&&!t.escapeWithReference&&(r=Ae(n[o],i[e]-('right'===e?n.width:n.height))),Ke({},o,r)}};return r.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';n=Xe({},n,s[t](e))}),e.offsets.popper=n,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,r=e.placement.split('-')[0],n=Ce,s=-1!==['top','bottom'].indexOf(r),a=s?'right':'bottom',p=s?'left':'top',l=s?'width':'height';return o[a]<n(i[p])&&(e.offsets.popper[p]=n(i[p])-o[l]),o[p]>n(i[a])&&(e.offsets.popper[p]=n(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var o;if(!de(e.instance.modifiers,'arrow','keepTogether'))return e;var i=t.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],n=e.offsets,s=n.popper,a=n.reference,p=-1!==['left','right'].indexOf(r),l=p?'height':'width',d=p?'Top':'Left',c=d.toLowerCase(),f=p?'left':'top',m=p?'bottom':'right',h=z(i)[l];a[m]-h<s[c]&&(e.offsets.popper[c]-=s[c]-(a[m]-h)),a[c]+h>s[m]&&(e.offsets.popper[c]+=a[c]+h-s[m]),e.offsets.popper=W(e.offsets.popper);var u=a[c]+a[l]/2-h/2,g=O(e.instance.popper),b=parseFloat(g['margin'+d],10),y=parseFloat(g['border'+d+'Width'],10),v=u-e.offsets.popper[c]-b-y;return v=Se(Ae(s[l]-h,v),0),e.arrowElement=i,e.offsets.arrow=(o={},Ke(o,c,Pe(v)),Ke(o,f,''),o),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(Q(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=F(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],r=V(i),n=e.placement.split('-')[1]||'',s=[];switch(t.behavior){case Je.FLIP:s=[i,r];break;case Je.CLOCKWISE:s=fe(i);break;case Je.COUNTERCLOCKWISE:s=fe(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],r=V(i);var l=e.offsets.popper,d=e.offsets.reference,c=Ce,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'===n&&m||y&&'end'===n&&h||!y&&'start'===n&&u||!y&&'end'===n&&g);(f||b||v)&&(e.flipped=!0,(f||b)&&(i=s[p+1]),v&&(n=ce(n)),e.placement=i+(n?'-'+n:''),e.offsets.popper=Xe({},e.offsets.popper,K(e.instance.popper,e.offsets.reference,e.placement)),e=Z(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,r=i.popper,n=i.reference,s=-1!==['left','right'].indexOf(o),a=-1===['top','left'].indexOf(o);return r[s?'left':'top']=n[o]-(a?r[s?'width':'height']:0),e.placement=V(t),e.offsets.popper=W(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!de(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=X(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,r=e.offsets.popper,n=X(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==n&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,a,p=void 0===n?t.gpuAcceleration:n,l=A(e.instance.popper),d=M(l),c={position:r.position},f={left:Ce(r.left),top:Ce(r.top),bottom:Ce(r.bottom),right:Ce(r.right)},m='bottom'===o?'top':'bottom',h='right'===i?'left':'right',u=$('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=Xe({},y,e.attributes),e.styles=Xe({},c,e.styles),e.arrowStyles=Xe({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return pe(e.instance.popper,e.styles),le(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&pe(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,i,r){var n=j(r,t,e),s=q(o.placement,n,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',s),pe(t,{position:'absolute'}),o},gpuAcceleration:void 0}}};var $e=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},et=function(){function e(e,t){for(var o,r=0;r<t.length;r++)o=t[r],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),tt=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},ot=1,it=function(){function e(t){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};$e(this,e),De.supported&&(s(),this.state={destroyed:!1},this.selector=t,this.options=tt({},He,o),this.callbacks={wait:o.wait,show:o.onShow||b,shown:o.onShown||b,hide:o.onHide||b,hidden:o.onHidden||b},this.store=xe.call(this,E(t)),Ie.push.apply(Ie,this.store))}return et(e,[{key:'getData',value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.store[0].popper;return r(this.store,function(t){return t.reference===e||t.popper===e})}},{key:'show',value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.store[0].popper,o=arguments[1];if(!this.state.destroyed){var i=r(this.store,function(e){return e.popper===t}),n=h(t),s=n.tooltip,p=n.circle,l=n.content;if(!this.selector.refObj&&!document.body.contains(i.reference))return void this.destroy(t);this.callbacks.show.call(t);var d=i.reference,c=i.options,b=c.appendTo,y=c.sticky,v=c.interactive,w=c.followCursor,E=c.updateDuration,T=c.duration,O=void 0===o?Array.isArray(T)?T[0]:T:o;u([t,s,p],0),be(i),t.style.visibility='visible',t.setAttribute('aria-hidden','false'),a(function(){g(t)&&((!w||De.usingTouch)&&(i.popperInstance.update(),u([t],E)),u([s,p],O),p&&(l.style.opacity=1),v&&d.classList.add('active'),y&&ye(i),f(s,p),m([s,p],'visible'),L(i,O,function(){!g(t)||i._onShownFired||(v&&t.focus(),i._onShownFired=!0,e.callbacks.shown.call(t))}))})}}},{key:'hide',value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.store[0].popper,o=arguments[1];if(!this.state.destroyed){this.callbacks.hide.call(t);var i=r(this.store,function(e){return e.popper===t}),n=h(t),s=n.tooltip,a=n.circle,p=n.content,l=i.reference,d=i.options,f=d.appendTo,b=d.sticky,y=d.interactive,v=d.followCursor,w=d.html,E=d.trigger,T=d.duration,O=void 0===o?Array.isArray(T)?T[1]:T:o;i._onShownFired=!1,y&&l.classList.remove('active'),t.style.visibility='hidden',t.setAttribute('aria-hidden','true'),u([s,a,a?p:null],O),a&&(p.style.opacity=0),m([s,a],'hidden'),w&&-1<E.indexOf('click')&&c(l)&&l.focus(),L(i,O,function(){g(t)||!f.contains(t)||'1'===getComputedStyle(s).opacity||(document.removeEventListener('mousemove',i._followCursorHandler),i.popperInstance.disableEventListeners(),f.removeChild(t),e.callbacks.hidden.call(t))})}}},{key:'destroy',value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.store[0].popper,o=arguments[1];if(!this.state.destroyed){var i=r(this.store,function(e){return e.popper===t}),n=i.reference,s=i.popperInstance,a=i.listeners,p=i._mutationObservers;g(t)&&this.hide(t,0),a.forEach(function(e){n.removeEventListener(e.event,e.handler)}),n.setAttribute('title',n.getAttribute('data-original-title')),delete n._tippy,['data-original-title','x-tooltipped','aria-describedby'].forEach(function(e){n.removeAttribute(e)}),s&&s.destroy(),p.forEach(function(e){e&&e.disconnect()}),Ie.splice(l(Ie,function(e){return e.popper===t}),1),(void 0===o||o)&&(this.store=Ie.filter(function(t){return t.tippyInstance===e}))}}},{key:'destroyAll',value:function(){var e=this;if(!this.state.destroyed){var t=this.store.length;this.store.forEach(function(o,i){var r=o.popper;e.destroy(r,i===t-1)}),this.store=null,this.state.destroyed=!0}}}]),e}();return ke.browser=De,ke.defaults=He,ke}); | ||
(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 t(e){return'[object Object]'===Object.prototype.toString.call(e)}function o(e){if(e instanceof Element||t(e))return[e];if(e instanceof NodeList)return[].slice.call(e);if(Array.isArray(e))return e;try{return[].slice.call(document.querySelectorAll(e))}catch(e){return[]}}function r(e,t){var o=Ie.reduce(function(o,i){var r=e.getAttribute('data-tippy-'+i.toLowerCase())||t[i];return'false'===r&&(r=!1),'true'===r&&(r=!0),isFinite(r)&&!isNaN(parseFloat(r))&&(r=parseFloat(r)),'string'==typeof r&&'['===r.trim().charAt(0)&&(r=JSON.parse(r)),o[i]=r,o},{});return He({},t,o)}function n(e){for(var t=[!1,'webkit'],o=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],n=i?''+i+o:e;if('undefined'!=typeof document.body.style[n])return n}return null}function s(e,t,o){var i=o.placement,r=o.distance,s=o.arrow,a=o.arrowType,p=o.arrowTransform,l=o.animateFill,d=o.inertia,c=o.animation,f=o.size,m=o.theme,h=o.html,u=o.zIndex,g=o.interactive,b=o.maxWidth,y=document.createElement('div');y.setAttribute('class','tippy-popper'),y.setAttribute('role','tooltip'),y.setAttribute('id','tippy-'+e),y.style.zIndex=u,y.style.maxWidth=b;var v=document.createElement('div');if(v.setAttribute('class','tippy-tooltip'),v.setAttribute('data-size',f),v.setAttribute('data-animation',c),v.setAttribute('data-state','hidden'),m.split(' ').forEach(function(e){v.classList.add(e+'-theme')}),s){var E=document.createElement('div');E.style[n('transform')]=p,'round'===a?(E.classList.add('tippy-roundarrow'),E.innerHTML='\n <svg width="100%" height="100%" viewBox="0 0 64 20" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">\n <g transform="matrix(1.04009,0,0,1.45139,-1.26297,-65.9145)">\n <path d="M1.214,59.185C1.214,59.185 12.868,59.992 21.5,51.55C29.887,43.347 33.898,43.308 42.5,51.55C51.352,60.031 62.747,59.185 62.747,59.185L1.214,59.185Z"/>\n </g>\n </svg>'):E.classList.add('tippy-arrow'),v.appendChild(E)}if(l){v.setAttribute('data-animatefill','');var w=document.createElement('div');w.setAttribute('data-state','hidden'),w.classList.add('tippy-backdrop'),v.appendChild(w)}d&&v.setAttribute('data-inertia',''),g&&v.setAttribute('data-interactive','');var L=document.createElement('div');if(L.setAttribute('class','tippy-content'),h){var T;h instanceof Element?(L.appendChild(h),T='#'+h.id||'tippy-html-template'):(L.innerHTML=document.querySelector(h).innerHTML,T=h),y.setAttribute('data-html',''),g&&y.setAttribute('tabindex','-1'),v.setAttribute('data-template-id',T)}else L.innerHTML=t;return v.appendChild(L),y.appendChild(v),y}function a(e){return e&&'[object Function]'==={}.toString.call(e)}function p(e,t){if(1!==e.nodeType)return[];var o=getComputedStyle(e,null);return t?o[t]:o}function l(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function d(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var t=p(e),o=t.overflow,i=t.overflowX,r=t.overflowY;return /(auto|scroll)/.test(o+r+i)?e:d(l(e))}function c(e){var t=e&&e.offsetParent,o=t&&t.nodeName;return o&&'BODY'!==o&&'HTML'!==o?-1!==['TD','TABLE'].indexOf(t.nodeName)&&'static'===p(t,'position')?c(t):t:e?e.ownerDocument.documentElement:document.documentElement}function f(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||c(e.firstElementChild)===e)}function m(e){return null===e.parentNode?e:m(e.parentNode)}function h(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:t,r=o?t:e,n=document.createRange();n.setStart(i,0),n.setEnd(r,0);var s=n.commonAncestorContainer;if(e!==s&&t!==s||i.contains(r))return f(s)?s:c(s);var a=m(e);return a.host?h(a.host,t):h(e,m(t).host)}function u(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 r=e.ownerDocument.documentElement,n=e.ownerDocument.scrollingElement||r;return n[o]}return e[o]}function g(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=u(t,'top'),r=u(t,'left'),n=o?-1:1;return e.top+=i*n,e.bottom+=i*n,e.left+=r*n,e.right+=r*n,e}function b(e,t){var o='x'===t?'Left':'Top',i='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'],10)+parseFloat(e['border'+i+'Width'],10)}function y(e,t,o,i){return Se(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],je()?o['offset'+e]+i['margin'+('Height'===e?'Top':'Left')]+i['margin'+('Height'===e?'Bottom':'Right')]:0)}function v(){var e=document.body,t=document.documentElement,o=je()&&getComputedStyle(t);return{height:y('Height',e,t,o),width:y('Width',e,t,o)}}function E(e){return Ve({},e,{right:e.left+e.width,bottom:e.top+e.height})}function w(e){var t={};if(je())try{t=e.getBoundingClientRect();var o=u(e,'top'),i=u(e,'left');t.top+=o,t.left+=i,t.bottom+=o,t.right+=i}catch(e){}else t=e.getBoundingClientRect();var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},n='HTML'===e.nodeName?v():{},s=n.width||e.clientWidth||r.right-r.left,a=n.height||e.clientHeight||r.bottom-r.top,l=e.offsetWidth-s,d=e.offsetHeight-a;if(l||d){var c=p(e);l-=b(c,'x'),d-=b(c,'y'),r.width-=l,r.height-=d}return E(r)}function L(e,t){var o=je(),i='HTML'===t.nodeName,r=w(e),n=w(t),s=d(e),a=p(t),l=parseFloat(a.borderTopWidth,10),c=parseFloat(a.borderLeftWidth,10),f=E({top:r.top-n.top-l,left:r.left-n.left-c,width:r.width,height:r.height});if(f.marginTop=0,f.marginLeft=0,!o&&i){var m=parseFloat(a.marginTop,10),h=parseFloat(a.marginLeft,10);f.top-=l-m,f.bottom-=l-m,f.left-=c-h,f.right-=c-h,f.marginTop=m,f.marginLeft=h}return(o?t.contains(s):t===s&&'BODY'!==s.nodeName)&&(f=g(f,t)),f}function T(e){var t=e.ownerDocument.documentElement,o=L(e,t),i=Se(t.clientWidth,window.innerWidth||0),r=Se(t.clientHeight,window.innerHeight||0),n=u(t),s=u(t,'left'),a={top:n-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:r};return E(a)}function O(e){var t=e.nodeName;return'BODY'===t||'HTML'===t?!1:'fixed'===p(e,'position')||O(l(e))}function x(e,t,o,i){var r={top:0,left:0},n=h(e,t);if('viewport'===i)r=T(n);else{var s;'scrollParent'===i?(s=d(l(t)),'BODY'===s.nodeName&&(s=e.ownerDocument.documentElement)):'window'===i?s=e.ownerDocument.documentElement:s=i;var a=L(s,n);if('HTML'===s.nodeName&&!O(n)){var p=v(),c=p.height,f=p.width;r.top+=a.top-a.marginTop,r.bottom=c+a.top,r.left+=a.left-a.marginLeft,r.right=f+a.left}else r=a}return r.left+=o,r.top+=o,r.right-=o,r.bottom-=o,r}function k(e){var t=e.width,o=e.height;return t*o}function A(e,t,o,i,r){var n=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var s=x(o,i,n,r),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 Ve({key:e},a[e],{area:k(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 C(e,t,o){var i=h(t,o);return L(o,i)}function S(e){var t=getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight),r={width:e.offsetWidth+i,height:e.offsetHeight+o};return r}function P(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 D(e,t,o){o=o.split('-')[0];var i=S(e),r={width:i.width,height:i.height},n=-1!==['right','left'].indexOf(o),s=n?'top':'left',a=n?'left':'top',p=n?'height':'width',l=n?'width':'height';return r[s]=t[s]+t[p]/2-i[p]/2,r[a]=o===a?t[a]-i[l]:t[P(a)],r}function N(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function R(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var i=N(e,function(e){return e[t]===o});return e.indexOf(i)}function I(e,t,o){var i=void 0===o?e:e.slice(0,R(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&&a(o)&&(t.offsets.popper=E(t.offsets.popper),t.offsets.reference=E(t.offsets.reference),t=o(t,e))}),t}function B(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=C(this.state,this.popper,this.reference),e.placement=A(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=D(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=I(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some(function(e){var o=e.name,i=e.enabled;return i&&o===t})}function H(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length-1;r++){var i=t[r],n=i?''+i+o:e;if('undefined'!=typeof document.body.style[n])return n}return null}function M(){return this.state.isDestroyed=!0,W(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[H('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function _(e){var t=e.ownerDocument;return t?t.defaultView:window}function U(e,t,o,i){var r='BODY'===e.nodeName,n=r?e.ownerDocument.defaultView:e;n.addEventListener(t,o,{passive:!0}),r||U(d(n.parentNode),t,o,i),i.push(n)}function Y(e,t,o,i){o.updateBound=i,_(e).addEventListener('resize',o.updateBound,{passive:!0});var r=d(e);return U(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function F(){this.state.eventsEnabled||(this.state=Y(this.reference,this.options,this.state,this.scheduleUpdate))}function q(e,t){return _(e).removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function j(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=q(this.reference,this.state))}function z(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function K(e,t){Object.keys(t).forEach(function(o){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&z(t[o])&&(i='px'),e.style[o]=t[o]+i})}function X(e,t){Object.keys(t).forEach(function(o){var i=t[o];!1===i?e.removeAttribute(o):e.setAttribute(o,t[o])})}function V(e,t,o){var i=N(e,function(e){var o=e.name;return o===t}),r=!!i&&e.some(function(e){return e.name===o&&e.enabled&&e.order<i.order});if(!r){var n='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+n+' modifier in order to work, be sure to include it before '+n+'!')}return r}function G(e){return'end'===e?'start':'start'===e?'end':e}function Z(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=Ze.indexOf(e),i=Ze.slice(o+1).concat(Ze.slice(0,o));return t?i.reverse():i}function J(e,t,o,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),n=+r[1],s=r[2];if(!n)return e;if(0===s.indexOf('%')){var a;switch(s){case'%p':a=o;break;case'%':case'%r':default:a=i;}var p=E(a);return p[t]/100*n}if('vh'===s||'vw'===s){var l;return l='vh'===s?Se(document.documentElement.clientHeight,window.innerHeight||0):Se(document.documentElement.clientWidth,window.innerWidth||0),l/100*n}return n}function Q(e,t,o,i){var r=[0,0],n=-1!==['right','left'].indexOf(i),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=s.indexOf(N(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 r=(1===i?!n:n)?'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 J(e,r,t,o)})}),l.forEach(function(e,t){e.forEach(function(o,i){z(o)&&(r[t]+=o*('-'===e[i-1]?-1:1))})}),r}function $(e,t,o,i){if(!t.length)return'';var r={scale:function(){return 1===t.length?''+t[0]:o?t[0]+', '+t[1]:t[1]+', '+t[0]}(),translate:function(){return 1===t.length?i?-t[0]+'px':t[0]+'px':o?i?t[0]+'px, '+-t[1]+'px':t[0]+'px, '+t[1]+'px':i?-t[1]+'px, '+t[0]+'px':t[1]+'px, '+t[0]+'px'}()};return r[e]}function ee(e,t){if(!e)return'';return t?e:{X:'Y',Y:'X'}[e]}function te(e){return e.getAttribute('x-placement').replace(/-.+/,'')}function oe(e,t,o){var i=te(e),r='top'===i||'bottom'===i,s='right'===i||'bottom'===i,a=function(e){var t=o.match(e);return t?t[1]:''},p=function(e){var t=o.match(e);return t?t[1].split(',').map(parseFloat):[]},l={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},d={translate:{axis:a(/translate([XY])/),numbers:p(l.translate)},scale:{axis:a(/scale([XY])/),numbers:p(l.scale)}},c=o.replace(l.translate,'translate'+ee(d.translate.axis,r)+'('+$('translate',d.translate.numbers,r,s)+')').replace(l.scale,'scale'+ee(d.scale.axis,r)+'('+$('scale',d.scale.numbers,r,s)+')');t.style[n('transform')]=c}function ie(e){requestAnimationFrame(function(){setTimeout(e,0)})}function re(e){return{tooltip:e.querySelector(Ne.TOOLTIP),backdrop:e.querySelector(Ne.BACKDROP),content:e.querySelector(Ne.CONTENT)}}function ne(e){return-(e-Re.distance)+'px'}function se(e){var t=e.tippy,o=e.target,i=e.callback,r=e.options;if(window.MutationObserver){var n=new MutationObserver(i);n.observe(o,r),t._mutationObservers.push(n)}}function ae(e){var t=e.reference,o=e.popper,i=e.options,r=i.placement,s=i.popperOptions,a=i.offset,p=i.distance,l=i.updateDuration,d=i.flip,c=i.flipBehavior,f=i.arrowType,m=i.arrowTransform,h=i.sticky,u=re(o),g=u.tooltip,b='round'===f?Ne.ROUND_ARROW:Ne.ARROW,y=g.querySelector(b),v=He({placement:r},s||{},{modifiers:He({},s?s.modifiers:{},{arrow:He({element:b},s&&s.modifiers?s.modifiers.arrow:{}),flip:He({enabled:d,padding:p+5,behavior:c},s&&s.modifiers?s.modifiers.flip:{}),offset:He({offset:a},s&&s.modifiers?s.modifiers.offset:{})}),onCreate:function(){g.style[te(o)]=ne(p),y&&m&&oe(o,y,m)},onUpdate:function(){var e=g.style;e.top='',e.bottom='',e.left='',e.right='',e[te(o)]=ne(p),y&&m&&oe(o,y,m)}});return se({tippy:e,target:o,callback:function(){var t=o.style;t[n('transitionDuration')]='0ms',e.popperInstance.update(),ie(function(){t[n('transitionDuration')]=l+'ms'})},options:{childList:!0,subtree:!0,characterData:!0}}),new Qe(t,o,v)}function pe(e,t,o,i){var r=[];return'manual'===e?r:(t.addEventListener(e,o.handleTrigger),r.push({event:e,handler:o.handleTrigger}),'mouseenter'===e&&(De.supportsTouch&&i&&(t.addEventListener('touchstart',o.handleTrigger),r.push({event:'touchstart',handler:o.handleTrigger}),t.addEventListener('touchend',o.handleMouseleave),r.push({event:'touchend',handler:o.handleMouseleave})),t.addEventListener('mouseleave',o.handleMouseleave),r.push({event:'mouseleave',handler:o.handleMouseleave})),'focus'===e&&(t.addEventListener('blur',o.handleBlur),r.push({event:'blur',handler:o.handleBlur})),r)}function le(t,o){var i=Element.prototype.closest||function(t){for(var o=this;o;){if(e.call(o,t))return o;o=o.parentElement}};return i.call(t,o)}function de(e,t,o){if(!t.getAttribute('x-placement'))return!0;var i=e.clientX,r=e.clientY,n=o.interactiveBorder,s=o.distance,a=t.getBoundingClientRect(),p=te(t),l=n+s,d={top:a.top-r>n,bottom:r-a.bottom>n,left:a.left-i>n,right:i-a.right>n};return'top'===p?d.top=a.top-r>l:'bottom'===p?d.bottom=r-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 ce(e,t){var o,i,r=e.popper,n=e.reference,s=e.options,a=s.delay,p=s.duration,l=s.interactive,d=s.interactiveBorder,c=s.hideOnClick,f=s.trigger,m=s.touchHold,h=function(){clearTimeout(o),clearTimeout(i)},u=function(){if(h(),!e.state.visible){var t=Array.isArray(a)?a[0]:a;a?o=setTimeout(function(){return e.show()},t):e.show()}},g=function(t){e.options.wait?e.options.wait.call(r,u,t):u()},b=function(){if(h(),!!e.state.visible){var t=Array.isArray(a)?a[1]:a;a?i=setTimeout(function(){e.state.visible&&e.hide()},t):e.hide()}};return{handleTrigger:function(t){if(!e.state.disabled){var o=De.supportsTouch&&De.usingTouch&&('mouseenter'===t.type||'focus'===t.type);if(!(o&&m)){e._lastTriggerEvent=t.type;var i='click'===t.type;i&&e.state.visible&&'persistent'!==c?b():g(t),o&&De.iOS&&n.click&&n.click()}}},handleMouseleave:function(e){if(!('mouseleave'===e.type&&De.supportsTouch&&De.usingTouch&&m)){if(l){var o=function e(o){var i=le(o.target,Ne.REFERENCE),s=le(o.target,Ne.POPPER)===r;s||i===n||de(o,r,t)&&(document.body.removeEventListener('mouseleave',b),document.removeEventListener('mousemove',e),b())};return document.body.addEventListener('mouseleave',b),void document.addEventListener('mousemove',o)}b()}},handleBlur:function(e){!e.relatedTarget||De.usingTouch||le(e.relatedTarget,Ne.POPPER)||b()}}}function fe(e,t){return t.arrow&&(t.animateFill=!1),t.appendTo&&'function'==typeof t.appendTo&&(t.appendTo=t.appendTo()),'function'==typeof t.html&&(t.html=t.html(e)),t}function me(e){var t=e.getAttribute('title');t&&e.setAttribute('data-original-title',t),e.removeAttribute('title')}function he(t){var e=function(o){if('focus'!==t._lastTriggerEvent){var e,i,r=t.popper,s=t.options.offset,a=te(r),p=ke(r.offsetWidth/2),l=ke(r.offsetHeight/2),d=5,c=document.documentElement.offsetWidth||document.body.offsetWidth,f=o.pageX,m=o.pageY;'top'===a?(e=f-p+s,i=m-2*l):'bottom'===a?(e=f-p+s,i=m+10):'left'===a?(e=f-2*p,i=m-l+s):'right'===a?(e=f+5,i=m-l+s):void 0;('top'===a||'bottom'===a)&&(f+d+p+s>c&&(e=c-d-2*p),0>f-d-p+s&&(e=d)),r.style[n('transform')]='translate3d('+e+'px, '+i+'px, 0)'}};return t._followCursorListener=e,e}function ue(e){var t=e.popper,o=e.reference,i=e.options,r=e.popperInstance;i.appendTo.contains(t)||(i.appendTo.appendChild(t),r?(t.style[n('transform')]=null,r.update(),(!i.followCursor||De.usingTouch)&&r.enableEventListeners()):r=e.popperInstance=ae(e),i.followCursor&&!De.usingTouch&&(document.addEventListener('mousemove',he(e)),r.disableEventListeners()))}function ge(e){var t=function(){e.popper.style[n('transitionDuration')]=e.options.updateDuration+'ms'},o=function(){e.popper.style[n('transitionDuration')]=''};ie(function i(){e.popperInstance&&e.popperInstance.scheduleUpdate(),t(),e.state.visible?requestAnimationFrame(i):o()})}function be(e,t,o){if(!t)return o();var i=re(e.popper),r=i.tooltip,n=function(e,t){t&&r[e+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',t)},s=function t(i){i.target===r&&(n('remove',t),o())};n('remove',e._transitionendListener),n('add',s),e._transitionendListener=s}function ye(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 ve(e,t){return Array.isArray(e)?e[t]:e}function Ee(e,t){e.forEach(function(e){e&&e.setAttribute('data-state',t)})}function we(e,t){e.forEach(function(e){e&&(e.style[n('transitionDuration')]=t+'ms')})}function Le(e,t){return e.reduce(function(e,o){var i=ot,n=fe(o,t.performance?t:r(o,t)),a=n.html,p=n.trigger,l=n.touchHold,d=n.dynamicTitle,c=n.createPopperInstanceOnInit,f=o.getAttribute('title');if(!f&&!a)return e;o.setAttribute('data-tippy',''),o.setAttribute('aria-describedby','tippy-'+i),me(o);var m=s(i,f,n),h=new tt({id:i,reference:o,popper:m,options:n,_mutationObservers:[]});h.popperInstance=c?ae(h):null;var u=ce(h,n);return h.listeners=p.trim().split(' ').reduce(function(e,t){return e.concat(pe(t,o,u,l))},[]),d&&se({tippy:h,target:o,callback:function(){var e=re(m),t=e.content,i=o.getAttribute('title');i&&(t.innerHTML=i,me(o))},options:{attributes:!0}}),o._tippy=h,m._reference=o,e.push(h),ot++,e},[])}function Te(e){var t=[].slice.call(document.querySelectorAll(Ne.POPPER));t.forEach(function(t){var o=t._reference._tippy,i=o.options;(!0===i.hideOnClick||-1<i.trigger.indexOf('focus'))&&(!e||t!==e.popper)&&o.hide()})}function Oe(){var t=function(){De.usingTouch||(De.usingTouch=!0,De.iOS&&document.body.classList.add('tippy-touch'),De.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',o),De.onUserInputChange('touch'))},o=function(){var e;return function(){var t=performance.now();20>t-e&&(De.usingTouch=!1,document.removeEventListener('mousemove',o),!De.iOS&&document.body.classList.remove('tippy-touch'),De.onUserInputChange('mouse')),e=t}}();document.addEventListener('click',function(e){if(!(e.target instanceof Element))return Te();var t=le(e.target,Ne.REFERENCE),o=le(e.target,Ne.POPPER);if(!(o&&o._reference._tippy.options.interactive)){if(t){var i=t._tippy.options;if(!i.multiple&&De.usingTouch||!i.multiple&&-1<i.trigger.indexOf('click'))return Te(t._tippy);if(!0!==i.hideOnClick||-1<i.trigger.indexOf('click'))return}Te()}}),document.addEventListener('touchstart',t),window.addEventListener('blur',function(){var t=document,o=t.activeElement;o&&o.blur&&e.call(o,Ne.REFERENCE)&&o.blur()}),!De.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',t)}function xe(e,i){return De.supported&&!De._eventListenersBound&&(Oe(),De._eventListenersBound=!0),t(e)&&(e.refObj=!0,e.attributes=e.attributes||{},e.setAttribute=function(t,o){e.attributes[t]=o},e.getAttribute=function(t){return e.attributes[t]},e.removeAttribute=function(t){delete e.attributes[t]},e.addEventListener=function(){},e.removeEventListener=function(){},e.classList={classNames:{},add:function(t){return e.classList.classNames[t]=!0},remove:function(t){return delete e.classList.classNames[t],!0},contains:function(t){return!!e.classList.classNames[t]}}),i=He({},Re,i),{selector:e,options:i,tooltips:De.supported?Le(o(e),i):[],destroyAll:function(){this.tooltips.forEach(function(e){return e.destroy()})}}}var ke=Math.round,Ae=Math.min,Ce=Math.floor,Se=Math.max,Pe='undefined'!=typeof window,De={};Pe&&(De.supported='requestAnimationFrame'in window,De.supportsTouch='ontouchstart'in window,De.usingTouch=!1,De.dynamicInputDetection=!0,De.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,De.onUserInputChange=function(){},De._eventListenersBound=!1);for(var Ne={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},Re={placement:'top',trigger:'mouseenter focus',animation:'shift-away',html:!1,animateFill:!0,arrow:!1,delay:0,duration:[350,300],interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,updateDuration:350,sticky:!1,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,flip:!0,flipBehavior:'flip',arrowType:'sharp',arrowTransform:'',maxWidth:'',popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},Ie=De.supported&&Object.keys(Re),Be=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},We=function(){function e(e,t){for(var o,r=0;r<t.length;r++)o=t[r],o.enumerable=o.enumerable||!1,o.configurable=!0,('value'in o)&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),He=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},Me='undefined'!=typeof window&&'undefined'!=typeof document,_e=['Edge','Trident','Firefox'],Ue=0,Ye=0;Ye<_e.length;Ye+=1)if(Me&&0<=navigator.userAgent.indexOf(_e[Ye])){Ue=1;break}var i,Fe=Me&&window.Promise,qe=Fe?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Ue))}},je=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},ze=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},Ke=function(){function e(e,t){for(var o,r=0;r<t.length;r++)o=t[r],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),Xe=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},Ve=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},Ge=['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'],Ze=Ge.slice(3),Je={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},Qe=function(){function e(t,o){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};ze(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=qe(this.update.bind(this)),this.options=Ve({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=o&&o.jquery?o[0]:o,this.options.modifiers={},Object.keys(Ve({},e.Defaults.modifiers,r.modifiers)).forEach(function(t){i.options.modifiers[t]=Ve({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Ve({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var n=this.options.eventsEnabled;n&&this.enableEventListeners(),this.state.eventsEnabled=n}return Ke(e,[{key:'update',value:function(){return B.call(this)}},{key:'destroy',value:function(){return M.call(this)}},{key:'enableEventListeners',value:function(){return F.call(this)}},{key:'disableEventListeners',value:function(){return j.call(this)}}]),e}();Qe.Utils=('undefined'==typeof window?global:window).PopperUtils,Qe.placements=Ge,Qe.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 r=e.offsets,n=r.reference,s=r.popper,a=-1!==['bottom','top'].indexOf(o),p=a?'left':'top',l=a?'width':'height',d={start:Xe({},p,n[p]),end:Xe({},p,n[p]+n[l]-s[l])};e.offsets.popper=Ve({},s,d[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var o,i=t.offset,r=e.placement,n=e.offsets,s=n.popper,a=n.reference,p=r.split('-')[0];return o=z(+i)?[+i,0]:Q(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||c(e.instance.popper);e.instance.reference===o&&(o=c(o));var i=x(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=i;var r=t.priority,n=e.offsets.popper,s={primary:function(e){var o=n[e];return n[e]<i[e]&&!t.escapeWithReference&&(o=Se(n[e],i[e])),Xe({},e,o)},secondary:function(e){var o='right'===e?'left':'top',r=n[o];return n[e]>i[e]&&!t.escapeWithReference&&(r=Ae(n[o],i[e]-('right'===e?n.width:n.height))),Xe({},o,r)}};return r.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';n=Ve({},n,s[t](e))}),e.offsets.popper=n,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,r=e.placement.split('-')[0],n=Ce,s=-1!==['top','bottom'].indexOf(r),a=s?'right':'bottom',p=s?'left':'top',l=s?'width':'height';return o[a]<n(i[p])&&(e.offsets.popper[p]=n(i[p])-o[l]),o[p]>n(i[a])&&(e.offsets.popper[p]=n(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var o;if(!V(e.instance.modifiers,'arrow','keepTogether'))return e;var i=t.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],n=e.offsets,s=n.popper,a=n.reference,l=-1!==['left','right'].indexOf(r),d=l?'height':'width',c=l?'Top':'Left',f=c.toLowerCase(),m=l?'left':'top',h=l?'bottom':'right',u=S(i)[d];a[h]-u<s[f]&&(e.offsets.popper[f]-=s[f]-(a[h]-u)),a[f]+u>s[h]&&(e.offsets.popper[f]+=a[f]+u-s[h]),e.offsets.popper=E(e.offsets.popper);var g=a[f]+a[d]/2-u/2,b=p(e.instance.popper),y=parseFloat(b['margin'+c],10),v=parseFloat(b['border'+c+'Width'],10),w=g-e.offsets.popper[f]-y-v;return w=Se(Ae(s[d]-u,w),0),e.arrowElement=i,e.offsets.arrow=(o={},Xe(o,f,ke(w)),Xe(o,m,''),o),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=x(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],r=P(i),n=e.placement.split('-')[1]||'',s=[];switch(t.behavior){case Je.FLIP:s=[i,r];break;case Je.CLOCKWISE:s=Z(i);break;case Je.COUNTERCLOCKWISE:s=Z(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],r=P(i);var l=e.offsets.popper,d=e.offsets.reference,c=Ce,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'===n&&m||y&&'end'===n&&h||!y&&'start'===n&&u||!y&&'end'===n&&g);(f||b||v)&&(e.flipped=!0,(f||b)&&(i=s[p+1]),v&&(n=G(n)),e.placement=i+(n?'-'+n:''),e.offsets.popper=Ve({},e.offsets.popper,D(e.instance.popper,e.offsets.reference,e.placement)),e=I(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,r=i.popper,n=i.reference,s=-1!==['left','right'].indexOf(o),a=-1===['top','left'].indexOf(o);return r[s?'left':'top']=n[o]-(a?r[s?'width':'height']:0),e.placement=P(t),e.offsets.popper=E(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!V(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=N(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,r=e.offsets.popper,n=N(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==n&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,a,p=void 0===n?t.gpuAcceleration:n,l=c(e.instance.popper),d=w(l),f={position:r.position},m={left:Ce(r.left),top:Ce(r.top),bottom:Ce(r.bottom),right:Ce(r.right)},h='bottom'===o?'top':'bottom',u='right'===i?'left':'right',g=H('transform');if(a='bottom'==h?-d.height+m.bottom:m.top,s='right'==u?-d.width+m.right:m.left,p&&g)f[g]='translate3d('+s+'px, '+a+'px, 0)',f[h]=0,f[u]=0,f.willChange='transform';else{var b='bottom'==h?-1:1,y='right'==u?-1:1;f[h]=a*b,f[u]=s*y,f.willChange=h+', '+u}var v={"x-placement":e.placement};return e.attributes=Ve({},v,e.attributes),e.styles=Ve({},f,e.styles),e.arrowStyles=Ve({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return K(e.instance.popper,e.styles),X(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&K(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,i,r){var n=C(r,t,e),s=A(o.placement,n,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',s),K(t,{position:'absolute'}),o},gpuAcceleration:void 0}}};var $e={};if(Pe){var et=Element.prototype;$e=et.matches||et.matchesSelector||et.webkitMatchesSelector||et.mozMatchesSelector||et.msMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=t.length;0<=--o&&t.item(o)!==this;);return-1<o}}var e=$e,tt=function(){function e(t){for(var o in Be(this,e),t)this[o]=t[o];this.state={destroyed:!1,visible:!1,enabled:!0}}return We(e,[{key:'enable',value:function(){this.state.enabled=!0}},{key:'disable',value:function(){this.state.enabled=!1}},{key:'show',value:function(e){var t=this;if(!this.state.destroyed&&this.state.enabled){var o=this.popper,i=this.reference,r=this.options,s=re(o),a=s.tooltip,p=s.backdrop,l=s.content;return i.refObj||document.body.contains(i)?void(r.onShow.call(o),e=ve(void 0===e?r.duration:e,0),we([o,a,p],0),ue(this),o.style.visibility='visible',this.state.visible=!0,ie(function(){t.state.visible&&((!r.followCursor||De.usingTouch)&&(t.popperInstance.update(),we([o],r.updateDuration)),we([a,p,p?l:null],e),p&&getComputedStyle(p)[n('transform')],r.interactive&&i.classList.add('tippy-active'),r.sticky&&ge(t),Ee([a,p],'visible'),be(t,e,function(){r.updateDuration||a.classList.add('tippy-notransition'),r.interactive&&o.focus(),r.onShown.call(o)}))})):void this.destroy()}}},{key:'hide',value:function(e){var t=this;if(!this.state.destroyed&&this.state.enabled){var o=this.popper,i=this.reference,r=this.options,n=re(o),s=n.tooltip,a=n.backdrop,p=n.content;r.onHide.call(o),e=ve(void 0===e?r.duration:e,1),r.updateDuration||s.classList.remove('tippy-notransition'),r.interactive&&i.classList.remove('tippy-active'),o.style.visibility='hidden',this.state.visible=!1,we([s,a,a?p:null],e),Ee([s,a],'hidden'),r.interactive&&-1<r.trigger.indexOf('click')&&ye(i)&&i.focus(),ie(function(){be(t,e,function(){t.state.visible||!r.appendTo.contains(o)||(t.popperInstance.disableEventListeners(),document.removeEventListener('mousemove',t._followCursorListener),r.appendTo.removeChild(o),r.onHidden.call(o))})})}}},{key:'destroy',value:function(){var e=this;this.state.destroyed||(this.state.visible&&this.hide(0),this.listeners.forEach(function(t){e.reference.removeEventListener(t.event,t.handler)}),this.reference.setAttribute('title',this.reference.getAttribute('data-original-title')),delete this.reference._tippy,['data-original-title','data-tippy','aria-describedby'].forEach(function(t){e.reference.removeAttribute(t)}),this.popperInstance&&this.popperInstance.destroy(),this._mutationObservers.forEach(function(e){e.disconnect()}),this.state.destroyed=!0)}}]),e}(),ot=1;return xe.browser=De,xe.defaults=Re,xe}); |
@@ -17,5 +17,6 @@ (function (global, factory) { | ||
browser.usingTouch = false; | ||
browser.eventsBound = false; | ||
browser.dynamicInputDetection = true; | ||
browser.iOS = /iPhone|iPad|iPod/.test(navigator.platform) && !window.MSStream; | ||
browser.onUserInputChange = function () {}; | ||
browser._eventListenersBound = false; | ||
} | ||
@@ -59,3 +60,2 @@ | ||
sticky: false, | ||
stickyDuration: 200, | ||
appendTo: function appendTo() { | ||
@@ -244,3 +244,2 @@ return document.body; | ||
popper.setAttribute('role', 'tooltip'); | ||
popper.setAttribute('aria-hidden', 'true'); | ||
popper.setAttribute('id', 'tippy-' + id); | ||
@@ -431,11 +430,2 @@ popper.style.zIndex = zIndex; | ||
/** | ||
* Determines if an element is currently visible | ||
* @param {Element} el | ||
* @return {Boolean} | ||
*/ | ||
function isVisible(el) { | ||
return el.style.visibility === 'visible'; | ||
} | ||
/** | ||
* Returns inner elements of the popper element | ||
@@ -497,3 +487,4 @@ * @param {Element} popper | ||
arrowType = _tippy$options.arrowType, | ||
arrowTransform = _tippy$options.arrowTransform; | ||
arrowTransform = _tippy$options.arrowTransform, | ||
sticky = _tippy$options.sticky; | ||
@@ -727,3 +718,3 @@ var _getInnerElements = getInnerElements(popper), | ||
if (isVisible(popper)) return; | ||
if (tippy.state.visible) return; | ||
@@ -748,3 +739,3 @@ var _delay = Array.isArray(delay) ? delay[0] : delay; | ||
if (!isVisible(popper)) return; | ||
if (!tippy.state.visible) return; | ||
@@ -755,3 +746,3 @@ var _delay = Array.isArray(delay) ? delay[1] : delay; | ||
hideDelay = setTimeout(function () { | ||
if (!isVisible(popper)) return; | ||
if (!tippy.state.visible) return; | ||
tippy.hide(); | ||
@@ -765,2 +756,4 @@ }, _delay); | ||
var handleTrigger = function handleTrigger(event) { | ||
if (tippy.state.disabled) return; | ||
var shouldStopEvent = browser.supportsTouch && browser.usingTouch && (event.type === 'mouseenter' || event.type === 'focus'); | ||
@@ -776,3 +769,3 @@ | ||
isClick && isVisible(popper) && isNotPersistent ? hide() : show(event); | ||
isClick && tippy.state.visible && isNotPersistent ? hide() : show(event); | ||
@@ -943,19 +936,18 @@ // iOS prevents click events from firing | ||
reference = tippy.reference, | ||
_tippy$options = tippy.options, | ||
appendTo = _tippy$options.appendTo, | ||
followCursor = _tippy$options.followCursor; | ||
options = tippy.options; | ||
var popperInstance = tippy.popperInstance; | ||
// Already on the DOM | ||
if (appendTo.contains(popper)) return; | ||
if (options.appendTo.contains(popper)) return; | ||
options.appendTo.appendChild(popper); | ||
appendTo.appendChild(popper); | ||
if (!tippy.popperInstance) { | ||
tippy.popperInstance = createPopperInstance(tippy); | ||
if (!popperInstance) { | ||
popperInstance = tippy.popperInstance = createPopperInstance(tippy); | ||
} else { | ||
tippy.popperInstance.update(); | ||
popper.style[prefix('transform')] = null; | ||
popperInstance.update(); | ||
if (!followCursor || browser.usingTouch) { | ||
tippy.popperInstance.enableEventListeners(); | ||
if (!options.followCursor || browser.usingTouch) { | ||
popperInstance.enableEventListeners(); | ||
} | ||
@@ -965,5 +957,5 @@ } | ||
// Since touch is determined dynamically, followCursor is set on mount | ||
if (followCursor && !browser.usingTouch) { | ||
if (options.followCursor && !browser.usingTouch) { | ||
document.addEventListener('mousemove', createFollowCursorListener(tippy)); | ||
tippy.popperInstance.disableEventListeners(); | ||
popperInstance.disableEventListeners(); | ||
} | ||
@@ -990,3 +982,3 @@ } | ||
isVisible(tippy.popper) ? requestAnimationFrame(updatePosition) : removeTransitionDuration(); | ||
tippy.state.visible ? requestAnimationFrame(updatePosition) : removeTransitionDuration(); | ||
}; | ||
@@ -1015,4 +1007,3 @@ | ||
if (!listener) return; | ||
tooltip[action + 'EventListener']('webkitTransitionEnd', listener); | ||
tooltip[action + 'EventListener']('transitionend', listener); | ||
tooltip[action + 'EventListener']('ontransitionend' in window ? 'transitionend' : 'webkitTransitionEnd', listener); | ||
}; | ||
@@ -1074,7 +1065,3 @@ | ||
if (!el) return; | ||
var isContent = matches$1.call(el, selectors.CONTENT); | ||
var _duration = isContent ? Math.round(duration / 1.3) : duration; | ||
el.style[prefix('transitionDuration')] = _duration + 'ms'; | ||
el.style[prefix('transitionDuration')] = duration + 'ms'; | ||
}); | ||
@@ -1091,3 +1078,5 @@ } | ||
this.state = { | ||
destroyed: false | ||
destroyed: false, | ||
visible: false, | ||
enabled: true | ||
}; | ||
@@ -1097,4 +1086,3 @@ } | ||
/** | ||
* Shows the tooltip | ||
* @param {Number} duration in milliseconds | ||
* Enables the tooltip to allow it to show or hide | ||
*/ | ||
@@ -1104,2 +1092,23 @@ | ||
createClass(Tippy, [{ | ||
key: 'enable', | ||
value: function enable() { | ||
this.state.enabled = true; | ||
} | ||
/** | ||
* Disables the tooltip from showing or hiding, but does not destroy it | ||
*/ | ||
}, { | ||
key: 'disable', | ||
value: function disable() { | ||
this.state.enabled = false; | ||
} | ||
/** | ||
* Shows the tooltip | ||
* @param {Number} duration in milliseconds | ||
*/ | ||
}, { | ||
key: 'show', | ||
@@ -1109,3 +1118,3 @@ value: function show(duration) { | ||
if (this.state.destroyed) return; | ||
if (this.state.destroyed || !this.state.enabled) return; | ||
@@ -1139,3 +1148,3 @@ var popper = this.popper, | ||
popper.style.visibility = 'visible'; | ||
popper.setAttribute('aria-hidden', 'false'); | ||
this.state.visible = true; | ||
@@ -1148,7 +1157,5 @@ // Wait for popper's position to update by deferring the callback, so | ||
// this callback if not | ||
if (!isVisible(popper)) return; | ||
if (!_this.state.visible) return; | ||
if (!options.followCursor) { | ||
// The arrow is sometimes not in the correct position, so another update after mount is required | ||
// May be a bug with Popper.js | ||
if (!options.followCursor || browser.usingTouch) { | ||
_this.popperInstance.update(); | ||
@@ -1159,7 +1166,6 @@ applyTransitionDuration([popper], options.updateDuration); | ||
// Re-apply transition durations | ||
applyTransitionDuration([tooltip, backdrop], duration); | ||
applyTransitionDuration([tooltip, backdrop, backdrop ? content : null], duration); | ||
// Make content fade out a bit faster than the tooltip if `animateFill` is true | ||
if (backdrop) { | ||
content.style.opacity = 1; | ||
getComputedStyle(backdrop)[prefix('transform')]; | ||
} | ||
@@ -1178,6 +1184,11 @@ | ||
onTransitionEnd(_this, duration, function () { | ||
if (isVisible(popper)) { | ||
options.interactive && popper.focus(); | ||
options.onShown.call(popper); | ||
if (!options.updateDuration) { | ||
tooltip.classList.add('tippy-notransition'); | ||
} | ||
if (options.interactive) { | ||
popper.focus(); | ||
} | ||
options.onShown.call(popper); | ||
}); | ||
@@ -1197,3 +1208,3 @@ }); | ||
if (this.state.destroyed) return; | ||
if (this.state.destroyed || !this.state.enabled) return; | ||
@@ -1213,2 +1224,6 @@ var popper = this.popper, | ||
if (!options.updateDuration) { | ||
tooltip.classList.remove('tippy-notransition'); | ||
} | ||
if (options.interactive) { | ||
@@ -1219,10 +1234,6 @@ reference.classList.remove('tippy-active'); | ||
popper.style.visibility = 'hidden'; | ||
popper.setAttribute('aria-hidden', 'true'); | ||
this.state.visible = false; | ||
applyTransitionDuration([tooltip, backdrop, backdrop ? content : null], duration); | ||
if (backdrop) { | ||
content.style.opacity = 0; | ||
} | ||
setVisibilityState([tooltip, backdrop], 'hidden'); | ||
@@ -1234,14 +1245,17 @@ | ||
onTransitionEnd(this, duration, function () { | ||
// `isVisible` is not completely reliable to determine if we shouldn't | ||
// run the hidden callback, we need to check the computed opacity style. | ||
// This prevents glitchy behavior of the transition when quickly showing | ||
// and hiding a tooltip. | ||
if (!isVisible(popper) && options.appendTo.contains(popper) && getComputedStyle(tooltip).opacity !== '1') { | ||
/* | ||
* This call is deferred because sometimes when the tooltip is still transitioning in but hide() | ||
* is called before it finishes, the CSS transition won't reverse quickly enough, meaning | ||
* the CSS transition will finish 1-2 frames later, and onHidden() will run since the JS set it | ||
* more quickly. It should actually be onShown(). Seems to be something Chrome does, not Safari | ||
*/ | ||
defer(function () { | ||
onTransitionEnd(_this2, duration, function () { | ||
if (_this2.state.visible || !options.appendTo.contains(popper)) return; | ||
_this2.popperInstance.disableEventListeners(); | ||
document.removeEventListener('mousemove', _this2._followCursorListener); | ||
_this2.popperInstance.disableEventListeners(); | ||
options.appendTo.removeChild(popper); | ||
options.onHidden.call(popper); | ||
} | ||
}); | ||
}); | ||
@@ -1262,3 +1276,3 @@ } | ||
// Ensure the popper is hidden | ||
if (isVisible(this.popper)) { | ||
if (this.state.visible) { | ||
this.hide(0); | ||
@@ -1395,2 +1409,4 @@ } | ||
var touchHandler = function touchHandler() { | ||
if (browser.usingTouch) return; | ||
browser.usingTouch = true; | ||
@@ -1405,2 +1421,4 @@ | ||
} | ||
browser.onUserInputChange('touch'); | ||
}; | ||
@@ -1421,2 +1439,3 @@ | ||
} | ||
browser.onUserInputChange('mouse'); | ||
} | ||
@@ -1453,5 +1472,2 @@ | ||
// Don't needlessly run loop if no poppers are on the document | ||
if (!document.querySelector(selectors.POPPER)) return; | ||
hideAllPoppers(); | ||
@@ -1485,5 +1501,5 @@ }; | ||
function tippy$2(selector, options) { | ||
if (browser.supported && !browser.eventsBound) { | ||
if (browser.supported && !browser._eventListenersBound) { | ||
bindEventListeners(); | ||
browser.eventsBound = true; | ||
browser._eventListenersBound = true; | ||
} | ||
@@ -1490,0 +1506,0 @@ |
@@ -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){return'[object Object]'===Object.prototype.toString.call(a)}function c(a){if(a instanceof Element||b(a))return[a];if(a instanceof NodeList)return[].slice.call(a);if(Array.isArray(a))return a;try{return[].slice.call(document.querySelectorAll(a))}catch(a){return[]}}function d(a,b){var c=O.reduce(function(c,d){var e=a.getAttribute('data-tippy-'+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 R({},b,c)}function f(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 document.body.style[f])return f}return null}function g(a,b,c){var d=c.placement,e=c.distance,g=c.arrow,h=c.arrowType,i=c.arrowTransform,j=c.animateFill,k=c.inertia,l=c.animation,m=c.size,n=c.theme,o=c.html,p=c.zIndex,q=c.interactive,r=c.maxWidth,s=document.createElement('div');s.setAttribute('class','tippy-popper'),s.setAttribute('role','tooltip'),s.setAttribute('aria-hidden','true'),s.setAttribute('id','tippy-'+a),s.style.zIndex=p,s.style.maxWidth=r;var u=document.createElement('div');if(u.setAttribute('class','tippy-tooltip'),u.setAttribute('data-size',m),u.setAttribute('data-animation',l),u.setAttribute('data-state','hidden'),n.split(' ').forEach(function(a){u.classList.add(a+'-theme')}),g){var t=document.createElement('div');t.style[f('transform')]=i,'round'===h?(t.classList.add('tippy-roundarrow'),t.innerHTML='\n <svg width="100%" height="100%" viewBox="0 0 64 20" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">\n <g transform="matrix(1.04009,0,0,1.45139,-1.26297,-65.9145)">\n <path d="M1.214,59.185C1.214,59.185 12.868,59.992 21.5,51.55C29.887,43.347 33.898,43.308 42.5,51.55C51.352,60.031 62.747,59.185 62.747,59.185L1.214,59.185Z"/>\n </g>\n </svg>'):t.classList.add('tippy-arrow'),u.appendChild(t)}if(j){u.setAttribute('data-animatefill','');var v=document.createElement('div');v.setAttribute('data-state','hidden'),v.classList.add('tippy-backdrop'),u.appendChild(v)}k&&u.setAttribute('data-inertia',''),q&&u.setAttribute('data-interactive','');var w=document.createElement('div');if(w.setAttribute('class','tippy-content'),o){var x;o instanceof Element?(w.appendChild(o),x='#'+o.id||'tippy-html-template'):(w.innerHTML=document.querySelector(o).innerHTML,x=o),s.setAttribute('data-html',''),q&&s.setAttribute('tabindex','-1'),u.setAttribute('data-template-id',x)}else w.innerHTML=b;return u.appendChild(w),s.appendChild(u),s}function h(a,b,c,d){if(!b.length)return'';var e={scale:function(){return 1===b.length?''+b[0]:c?b[0]+', '+b[1]:b[1]+', '+b[0]}(),translate:function(){return 1===b.length?d?-b[0]+'px':b[0]+'px':c?d?b[0]+'px, '+-b[1]+'px':b[0]+'px, '+b[1]+'px':d?-b[1]+'px, '+b[0]+'px':b[1]+'px, '+b[0]+'px'}()};return e[a]}function i(a,b){if(!a)return'';return b?a:{X:'Y',Y:'X'}[a]}function j(a){return a.getAttribute('x-placement').replace(/-.+/,'')}function k(a,b,c){var d=j(a),e='top'===d||'bottom'===d,g='right'===d||'bottom'===d,k=function(a){var b=c.match(a);return b?b[1]:''},l=function(a){var b=c.match(a);return b?b[1].split(',').map(parseFloat):[]},m={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},n={translate:{axis:k(/translate([XY])/),numbers:l(m.translate)},scale:{axis:k(/scale([XY])/),numbers:l(m.scale)}},o=c.replace(m.translate,'translate'+i(n.translate.axis,e)+'('+h('translate',n.translate.numbers,e,g)+')').replace(m.scale,'scale'+i(n.scale.axis,e)+'('+h('scale',n.scale.numbers,e,g)+')');b.style[f('transform')]=o}function l(a){requestAnimationFrame(function(){setTimeout(a,0)})}function m(a){return'visible'===a.style.visibility}function n(a){return{tooltip:a.querySelector(M.TOOLTIP),backdrop:a.querySelector(M.BACKDROP),content:a.querySelector(M.CONTENT)}}function o(a){return-(a-N.distance)+'px'}function p(a){var b=a.tippy,c=a.target,d=a.callback,e=a.options;if(window.MutationObserver){var f=new MutationObserver(d);f.observe(c,e),b._mutationObservers.push(f)}}function q(b){var c=b.reference,d=b.popper,e=b.options,g=e.placement,h=e.popperOptions,i=e.offset,m=e.distance,q=e.updateDuration,r=e.flip,s=e.flipBehavior,t=e.arrowType,u=e.arrowTransform,v=n(d),w=v.tooltip,x='round'===t?M.ROUND_ARROW:M.ARROW,y=w.querySelector(x),z=R({placement:g},h||{},{modifiers:R({},h?h.modifiers:{},{arrow:R({element:x},h&&h.modifiers?h.modifiers.arrow:{}),flip:R({enabled:r,padding:m+5,behavior:s},h&&h.modifiers?h.modifiers.flip:{}),offset:R({offset:i},h&&h.modifiers?h.modifiers.offset:{})}),onCreate:function(){w.style[j(d)]=o(m),y&&u&&k(d,y,u)},onUpdate:function(){var a=w.style;a.top='',a.bottom='',a.left='',a.right='',a[j(d)]=o(m),y&&u&&k(d,y,u)}});return p({tippy:b,target:d,callback:function(){var a=d.style;a[f('transitionDuration')]='0ms',b.popperInstance.update(),l(function(){a[f('transitionDuration')]=q+'ms'})},options:{childList:!0,subtree:!0,characterData:!0}}),new a(c,d,z)}function r(a,b,c,d){var e=[];return'manual'===a?e:(b.addEventListener(a,c.handleTrigger),e.push({event:a,handler:c.handleTrigger}),'mouseenter'===a&&(L.supportsTouch&&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 s(a,b){var c=Element.prototype.closest||function(a){for(var b=this;b;){if(e.call(b,a))return b;b=b.parentElement}};return c.call(a,b)}function t(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=j(b),k=f+g,l={top:h.top-e>f,bottom:e-h.bottom>f,left:h.left-d>f,right:d-h.right>f};return'top'===i?l.top=h.top-e>k:'bottom'===i?l.bottom=e-h.bottom>k:'left'===i?l.left=h.left-d>k:'right'===i?l.right=d-h.right>k:void 0,l.top||l.bottom||l.left||l.right}function u(a,b){var c,d,e=a.popper,f=a.reference,g=a.options,h=g.delay,i=g.duration,j=g.interactive,k=g.interactiveBorder,l=g.hideOnClick,n=g.trigger,o=g.touchHold,p=function(){clearTimeout(c),clearTimeout(d)},q=function(){if(p(),!m(e)){var b=Array.isArray(h)?h[0]:h;h?c=setTimeout(function(){return a.show()},b):a.show()}},r=function(b){a.options.wait?a.options.wait.call(e,q,b):q()},u=function(){if(p(),!!m(e)){var b=Array.isArray(h)?h[1]:h;h?d=setTimeout(function(){m(e)&&a.hide()},b):a.hide()}};return{handleTrigger:function(b){var c=L.supportsTouch&&L.usingTouch&&('mouseenter'===b.type||'focus'===b.type);if(!(c&&o)){a._lastTriggerEvent=b.type;var d='click'===b.type;d&&m(e)&&'persistent'!==l?u():r(b),c&&L.iOS&&f.click&&f.click()}},handleMouseleave:function(a){if(!('mouseleave'===a.type&&L.supportsTouch&&L.usingTouch&&o)){if(j){var c=function a(c){var d=s(c.target,M.REFERENCE),g=s(c.target,M.POPPER)===e;g||d===f||t(c,e,b)&&(document.body.removeEventListener('mouseleave',u),document.removeEventListener('mousemove',a),u())};return document.body.addEventListener('mouseleave',u),void document.addEventListener('mousemove',c)}u()}},handleBlur:function(a){!a.relatedTarget||L.usingTouch||s(a.relatedTarget,M.POPPER)||u()}}}function v(a,b){return b.arrow&&(b.animateFill=!1),b.appendTo&&'function'==typeof b.appendTo&&(b.appendTo=b.appendTo()),'function'==typeof b.html&&(b.html=b.html(a)),b}function w(a){var b=a.getAttribute('title');b&&a.setAttribute('data-original-title',b),a.removeAttribute('title')}function x(a){var b=function(b){if('focus'!==a._lastTriggerEvent){var c,d,e=a.popper,g=a.options.offset,h=j(e),i=J(e.offsetWidth/2),k=J(e.offsetHeight/2),l=5,m=document.documentElement.offsetWidth||document.body.offsetWidth,n=b.pageX,o=b.pageY;'top'===h?(c=n-i+g,d=o-2*k):'bottom'===h?(c=n-i+g,d=o+10):'left'===h?(c=n-2*i,d=o-k+g):'right'===h?(c=n+5,d=o-k+g):void 0;('top'===h||'bottom'===h)&&(n+l+i+g>m&&(c=m-l-2*i),0>n-l-i+g&&(c=l)),e.style[f('transform')]='translate3d('+c+'px, '+d+'px, 0)'}};return a._followCursorListener=b,b}function y(a){var b=a.popper,c=a.reference,d=a.options,e=d.appendTo,f=d.followCursor;e.contains(b)||(e.appendChild(b),a.popperInstance?(a.popperInstance.update(),(!f||L.usingTouch)&&a.popperInstance.enableEventListeners()):a.popperInstance=q(a),f&&!L.usingTouch&&(document.addEventListener('mousemove',x(a)),a.popperInstance.disableEventListeners()))}function z(a){var b=function(){a.popper.style[f('transitionDuration')]=a.options.updateDuration+'ms'},c=function(){a.popper.style[f('transitionDuration')]=''};l(function d(){a.popperInstance&&a.popperInstance.scheduleUpdate(),b(),m(a.popper)?requestAnimationFrame(d):c()})}function A(a,b,c){if(!b)return c();var d=n(a.popper),f=d.tooltip,g=function(a,b){b&&(f[a+'EventListener']('webkitTransitionEnd',b),f[a+'EventListener']('transitionend',b))},e=function a(b){b.target===f&&(g('remove',a),c())};g('remove',a._transitionendListener),g('add',e),a._transitionendListener=e}function B(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 C(a,b){return Array.isArray(a)?a[b]:a}function D(a,b){a.forEach(function(a){a&&a.setAttribute('data-state',b)})}function E(a,b){a.forEach(function(a){if(a){var c=e.call(a,M.CONTENT),d=c?J(b/1.3):b;a.style[f('transitionDuration')]=d+'ms'}})}function F(a,b){return a.reduce(function(a,c){var e=V,f=v(c,b.performance?b:d(c,b)),h=f.html,i=f.trigger,j=f.touchHold,k=f.dynamicTitle,l=f.createPopperInstanceOnInit,m=c.getAttribute('title');if(!m&&!h)return a;c.setAttribute('data-tippy',''),c.setAttribute('aria-describedby','tippy-'+e),w(c);var o=g(e,m,f),s=new U({id:e,reference:c,popper:o,options:f,_mutationObservers:[]});s.popperInstance=l?q(s):null;var t=u(s,f);return s.listeners=i.trim().split(' ').reduce(function(a,b){return a.concat(r(b,c,t,j))},[]),k&&p({tippy:s,target:c,callback:function(){var a=n(o),b=a.content,d=c.getAttribute('title');d&&(b.innerHTML=d,w(c))},options:{attributes:!0}}),c._tippy=s,o._reference=c,a.push(s),V++,a},[])}function G(a){var b=[].slice.call(document.querySelectorAll(M.POPPER));b.forEach(function(b){var c=b._reference._tippy,d=c.options;(!0===d.hideOnClick||-1<d.trigger.indexOf('focus'))&&(!a||b!==a.popper)&&c.hide()})}function H(){var a=function(){L.usingTouch=!0,L.iOS&&document.body.classList.add('tippy-touch'),L.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',b)},b=function(){var a;return function(){var c=performance.now();20>c-a&&(L.usingTouch=!1,document.removeEventListener('mousemove',b),!L.iOS&&document.body.classList.remove('tippy-touch')),a=c}}();document.addEventListener('click',function(a){if(!(a.target instanceof Element))return G();var b=s(a.target,M.REFERENCE),c=s(a.target,M.POPPER);if(!(c&&c._reference._tippy.options.interactive)){if(b){var d=b._tippy.options;if(!d.multiple&&L.usingTouch||!d.multiple&&-1<d.trigger.indexOf('click'))return G(b._tippy);if(!0!==d.hideOnClick||-1<d.trigger.indexOf('click'))return}document.querySelector(M.POPPER)&&G()}}),document.addEventListener('touchstart',a),window.addEventListener('blur',function(){var a=document,b=a.activeElement;b&&b.blur&&e.call(b,M.REFERENCE)&&b.blur()}),!L.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',a)}function I(a,d){return L.supported&&!L.eventsBound&&(H(),L.eventsBound=!0),b(a)&&(a.refObj=!0,a.attributes=a.attributes||{},a.setAttribute=function(b,c){a.attributes[b]=c},a.getAttribute=function(b){return a.attributes[b]},a.removeAttribute=function(b){delete a.attributes[b]},a.addEventListener=function(){},a.removeEventListener=function(){},a.classList={classNames:{},add:function(b){return a.classList.classNames[b]=!0},remove:function(b){return delete a.classList.classNames[b],!0},contains:function(b){return!!a.classList.classNames[b]}}),d=R({},N,d),{selector:a,options:d,tooltips:L.supported?F(c(a),d):[],destroyAll:function(){this.tooltips.forEach(function(a){return a.destroy()})}}}var J=Math.round;a=a&&a.hasOwnProperty('default')?a['default']:a;var K='undefined'!=typeof window,L={};K&&(L.supported='requestAnimationFrame'in window,L.supportsTouch='ontouchstart'in window,L.usingTouch=!1,L.eventsBound=!1,L.dynamicInputDetection=!0,L.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream);var M={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},N={placement:'top',trigger:'mouseenter focus',animation:'shift-away',html:!1,animateFill:!0,arrow:!1,delay:0,duration:[350,300],interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,updateDuration:350,sticky:!1,stickyDuration:200,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,flip:!0,flipBehavior:'flip',arrowType:'sharp',arrowTransform:'',maxWidth:'',popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},O=L.supported&&Object.keys(N),P=function(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')},Q=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}}(),R=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},S={};if(K){var T=Element.prototype;S=T.matches||T.matchesSelector||T.webkitMatchesSelector||T.mozMatchesSelector||T.msMatchesSelector||function(a){for(var b=(this.document||this.ownerDocument).querySelectorAll(a),c=b.length;0<=--c&&b.item(c)!==this;);return-1<c}}var e=S,U=function(){function a(b){for(var c in P(this,a),b)this[c]=b[c];this.state={destroyed:!1}}return Q(a,[{key:'show',value:function(a){var b=this;if(!this.state.destroyed){var c=this.popper,d=this.reference,e=this.options,f=n(c),g=f.tooltip,h=f.backdrop,i=f.content;return d.refObj||document.body.contains(d)?void(e.onShow.call(c),a=C(void 0===a?e.duration:a,0),E([c,g,h],0),y(this),c.style.visibility='visible',c.setAttribute('aria-hidden','false'),l(function(){m(c)&&(!e.followCursor&&(b.popperInstance.update(),E([c],e.updateDuration)),E([g,h],a),h&&(i.style.opacity=1),e.interactive&&d.classList.add('tippy-active'),e.sticky&&z(b),D([g,h],'visible'),A(b,a,function(){m(c)&&(e.interactive&&c.focus(),e.onShown.call(c))}))})):void this.destroy()}}},{key:'hide',value:function(a){var b=this;if(!this.state.destroyed){var c=this.popper,d=this.reference,e=this.options,f=n(c),g=f.tooltip,h=f.backdrop,i=f.content;e.onHide.call(c),a=C(void 0===a?e.duration:a,1),e.interactive&&d.classList.remove('tippy-active'),c.style.visibility='hidden',c.setAttribute('aria-hidden','true'),E([g,h,h?i:null],a),h&&(i.style.opacity=0),D([g,h],'hidden'),e.interactive&&-1<e.trigger.indexOf('click')&&B(d)&&d.focus(),A(this,a,function(){!m(c)&&e.appendTo.contains(c)&&'1'!==getComputedStyle(g).opacity&&(document.removeEventListener('mousemove',b._followCursorListener),b.popperInstance.disableEventListeners(),e.appendTo.removeChild(c),e.onHidden.call(c))})}}},{key:'destroy',value:function(){var a=this;this.state.destroyed||(m(this.popper)&&this.hide(0),this.listeners.forEach(function(b){a.reference.removeEventListener(b.event,b.handler)}),this.reference.setAttribute('title',this.reference.getAttribute('data-original-title')),delete this.reference._tippy,['data-original-title','data-tippy','aria-describedby'].forEach(function(b){a.reference.removeAttribute(b)}),this.popperInstance&&this.popperInstance.destroy(),this._mutationObservers.forEach(function(a){a.disconnect()}),this.state.destroyed=!0)}}]),a}(),V=1;return I.browser=L,I.defaults=N,I}); | ||
(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){return'[object Object]'===Object.prototype.toString.call(a)}function c(a){if(a instanceof Element||b(a))return[a];if(a instanceof NodeList)return[].slice.call(a);if(Array.isArray(a))return a;try{return[].slice.call(document.querySelectorAll(a))}catch(a){return[]}}function d(a,b){var c=M.reduce(function(c,d){var e=a.getAttribute('data-tippy-'+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 P({},b,c)}function f(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 document.body.style[f])return f}return null}function g(a,b,c){var d=c.placement,e=c.distance,g=c.arrow,h=c.arrowType,i=c.arrowTransform,j=c.animateFill,k=c.inertia,l=c.animation,m=c.size,n=c.theme,o=c.html,p=c.zIndex,q=c.interactive,r=c.maxWidth,s=document.createElement('div');s.setAttribute('class','tippy-popper'),s.setAttribute('role','tooltip'),s.setAttribute('id','tippy-'+a),s.style.zIndex=p,s.style.maxWidth=r;var u=document.createElement('div');if(u.setAttribute('class','tippy-tooltip'),u.setAttribute('data-size',m),u.setAttribute('data-animation',l),u.setAttribute('data-state','hidden'),n.split(' ').forEach(function(a){u.classList.add(a+'-theme')}),g){var t=document.createElement('div');t.style[f('transform')]=i,'round'===h?(t.classList.add('tippy-roundarrow'),t.innerHTML='\n <svg width="100%" height="100%" viewBox="0 0 64 20" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;">\n <g transform="matrix(1.04009,0,0,1.45139,-1.26297,-65.9145)">\n <path d="M1.214,59.185C1.214,59.185 12.868,59.992 21.5,51.55C29.887,43.347 33.898,43.308 42.5,51.55C51.352,60.031 62.747,59.185 62.747,59.185L1.214,59.185Z"/>\n </g>\n </svg>'):t.classList.add('tippy-arrow'),u.appendChild(t)}if(j){u.setAttribute('data-animatefill','');var v=document.createElement('div');v.setAttribute('data-state','hidden'),v.classList.add('tippy-backdrop'),u.appendChild(v)}k&&u.setAttribute('data-inertia',''),q&&u.setAttribute('data-interactive','');var w=document.createElement('div');if(w.setAttribute('class','tippy-content'),o){var x;o instanceof Element?(w.appendChild(o),x='#'+o.id||'tippy-html-template'):(w.innerHTML=document.querySelector(o).innerHTML,x=o),s.setAttribute('data-html',''),q&&s.setAttribute('tabindex','-1'),u.setAttribute('data-template-id',x)}else w.innerHTML=b;return u.appendChild(w),s.appendChild(u),s}function h(a,b,c,d){if(!b.length)return'';var e={scale:function(){return 1===b.length?''+b[0]:c?b[0]+', '+b[1]:b[1]+', '+b[0]}(),translate:function(){return 1===b.length?d?-b[0]+'px':b[0]+'px':c?d?b[0]+'px, '+-b[1]+'px':b[0]+'px, '+b[1]+'px':d?-b[1]+'px, '+b[0]+'px':b[1]+'px, '+b[0]+'px'}()};return e[a]}function i(a,b){if(!a)return'';return b?a:{X:'Y',Y:'X'}[a]}function j(a){return a.getAttribute('x-placement').replace(/-.+/,'')}function k(a,b,c){var d=j(a),e='top'===d||'bottom'===d,g='right'===d||'bottom'===d,k=function(a){var b=c.match(a);return b?b[1]:''},l=function(a){var b=c.match(a);return b?b[1].split(',').map(parseFloat):[]},m={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},n={translate:{axis:k(/translate([XY])/),numbers:l(m.translate)},scale:{axis:k(/scale([XY])/),numbers:l(m.scale)}},o=c.replace(m.translate,'translate'+i(n.translate.axis,e)+'('+h('translate',n.translate.numbers,e,g)+')').replace(m.scale,'scale'+i(n.scale.axis,e)+'('+h('scale',n.scale.numbers,e,g)+')');b.style[f('transform')]=o}function l(a){requestAnimationFrame(function(){setTimeout(a,0)})}function m(a){return{tooltip:a.querySelector(K.TOOLTIP),backdrop:a.querySelector(K.BACKDROP),content:a.querySelector(K.CONTENT)}}function n(a){return-(a-L.distance)+'px'}function o(a){var b=a.tippy,c=a.target,d=a.callback,e=a.options;if(window.MutationObserver){var f=new MutationObserver(d);f.observe(c,e),b._mutationObservers.push(f)}}function p(b){var c=b.reference,d=b.popper,e=b.options,g=e.placement,h=e.popperOptions,i=e.offset,p=e.distance,q=e.updateDuration,r=e.flip,s=e.flipBehavior,t=e.arrowType,u=e.arrowTransform,v=e.sticky,w=m(d),x=w.tooltip,y='round'===t?K.ROUND_ARROW:K.ARROW,z=x.querySelector(y),A=P({placement:g},h||{},{modifiers:P({},h?h.modifiers:{},{arrow:P({element:y},h&&h.modifiers?h.modifiers.arrow:{}),flip:P({enabled:r,padding:p+5,behavior:s},h&&h.modifiers?h.modifiers.flip:{}),offset:P({offset:i},h&&h.modifiers?h.modifiers.offset:{})}),onCreate:function(){x.style[j(d)]=n(p),z&&u&&k(d,z,u)},onUpdate:function(){var a=x.style;a.top='',a.bottom='',a.left='',a.right='',a[j(d)]=n(p),z&&u&&k(d,z,u)}});return o({tippy:b,target:d,callback:function(){var a=d.style;a[f('transitionDuration')]='0ms',b.popperInstance.update(),l(function(){a[f('transitionDuration')]=q+'ms'})},options:{childList:!0,subtree:!0,characterData:!0}}),new a(c,d,A)}function q(a,b,c,d){var e=[];return'manual'===a?e:(b.addEventListener(a,c.handleTrigger),e.push({event:a,handler:c.handleTrigger}),'mouseenter'===a&&(J.supportsTouch&&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 r(a,b){var c=Element.prototype.closest||function(a){for(var b=this;b;){if(e.call(b,a))return b;b=b.parentElement}};return c.call(a,b)}function s(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=j(b),k=f+g,l={top:h.top-e>f,bottom:e-h.bottom>f,left:h.left-d>f,right:d-h.right>f};return'top'===i?l.top=h.top-e>k:'bottom'===i?l.bottom=e-h.bottom>k:'left'===i?l.left=h.left-d>k:'right'===i?l.right=d-h.right>k:void 0,l.top||l.bottom||l.left||l.right}function t(a,b){var c,d,e=a.popper,f=a.reference,g=a.options,h=g.delay,i=g.duration,j=g.interactive,k=g.interactiveBorder,l=g.hideOnClick,m=g.trigger,n=g.touchHold,o=function(){clearTimeout(c),clearTimeout(d)},p=function(){if(o(),!a.state.visible){var b=Array.isArray(h)?h[0]:h;h?c=setTimeout(function(){return a.show()},b):a.show()}},q=function(b){a.options.wait?a.options.wait.call(e,p,b):p()},t=function(){if(o(),!!a.state.visible){var b=Array.isArray(h)?h[1]:h;h?d=setTimeout(function(){a.state.visible&&a.hide()},b):a.hide()}};return{handleTrigger:function(b){if(!a.state.disabled){var c=J.supportsTouch&&J.usingTouch&&('mouseenter'===b.type||'focus'===b.type);if(!(c&&n)){a._lastTriggerEvent=b.type;var d='click'===b.type;d&&a.state.visible&&'persistent'!==l?t():q(b),c&&J.iOS&&f.click&&f.click()}}},handleMouseleave:function(a){if(!('mouseleave'===a.type&&J.supportsTouch&&J.usingTouch&&n)){if(j){var c=function a(c){var d=r(c.target,K.REFERENCE),g=r(c.target,K.POPPER)===e;g||d===f||s(c,e,b)&&(document.body.removeEventListener('mouseleave',t),document.removeEventListener('mousemove',a),t())};return document.body.addEventListener('mouseleave',t),void document.addEventListener('mousemove',c)}t()}},handleBlur:function(a){!a.relatedTarget||J.usingTouch||r(a.relatedTarget,K.POPPER)||t()}}}function u(a,b){return b.arrow&&(b.animateFill=!1),b.appendTo&&'function'==typeof b.appendTo&&(b.appendTo=b.appendTo()),'function'==typeof b.html&&(b.html=b.html(a)),b}function v(a){var b=a.getAttribute('title');b&&a.setAttribute('data-original-title',b),a.removeAttribute('title')}function w(a){var b=function(b){var c=Math.round;if('focus'!==a._lastTriggerEvent){var d,e,g=a.popper,h=a.options.offset,i=j(g),k=c(g.offsetWidth/2),l=c(g.offsetHeight/2),m=5,n=document.documentElement.offsetWidth||document.body.offsetWidth,o=b.pageX,p=b.pageY;'top'===i?(d=o-k+h,e=p-2*l):'bottom'===i?(d=o-k+h,e=p+10):'left'===i?(d=o-2*k,e=p-l+h):'right'===i?(d=o+5,e=p-l+h):void 0;('top'===i||'bottom'===i)&&(o+m+k+h>n&&(d=n-m-2*k),0>o-m-k+h&&(d=m)),g.style[f('transform')]='translate3d('+d+'px, '+e+'px, 0)'}};return a._followCursorListener=b,b}function x(a){var b=a.popper,c=a.reference,d=a.options,e=a.popperInstance;d.appendTo.contains(b)||(d.appendTo.appendChild(b),e?(b.style[f('transform')]=null,e.update(),(!d.followCursor||J.usingTouch)&&e.enableEventListeners()):e=a.popperInstance=p(a),d.followCursor&&!J.usingTouch&&(document.addEventListener('mousemove',w(a)),e.disableEventListeners()))}function y(a){var b=function(){a.popper.style[f('transitionDuration')]=a.options.updateDuration+'ms'},c=function(){a.popper.style[f('transitionDuration')]=''};l(function d(){a.popperInstance&&a.popperInstance.scheduleUpdate(),b(),a.state.visible?requestAnimationFrame(d):c()})}function z(a,b,c){if(!b)return c();var d=m(a.popper),f=d.tooltip,g=function(a,b){b&&f[a+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',b)},e=function a(b){b.target===f&&(g('remove',a),c())};g('remove',a._transitionendListener),g('add',e),a._transitionendListener=e}function A(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 B(a,b){return Array.isArray(a)?a[b]:a}function C(a,b){a.forEach(function(a){a&&a.setAttribute('data-state',b)})}function D(a,b){a.forEach(function(a){a&&(a.style[f('transitionDuration')]=b+'ms')})}function E(a,b){return a.reduce(function(a,c){var e=T,f=u(c,b.performance?b:d(c,b)),h=f.html,i=f.trigger,j=f.touchHold,k=f.dynamicTitle,l=f.createPopperInstanceOnInit,n=c.getAttribute('title');if(!n&&!h)return a;c.setAttribute('data-tippy',''),c.setAttribute('aria-describedby','tippy-'+e),v(c);var r=g(e,n,f),s=new S({id:e,reference:c,popper:r,options:f,_mutationObservers:[]});s.popperInstance=l?p(s):null;var w=t(s,f);return s.listeners=i.trim().split(' ').reduce(function(a,b){return a.concat(q(b,c,w,j))},[]),k&&o({tippy:s,target:c,callback:function(){var a=m(r),b=a.content,d=c.getAttribute('title');d&&(b.innerHTML=d,v(c))},options:{attributes:!0}}),c._tippy=s,r._reference=c,a.push(s),T++,a},[])}function F(a){var b=[].slice.call(document.querySelectorAll(K.POPPER));b.forEach(function(b){var c=b._reference._tippy,d=c.options;(!0===d.hideOnClick||-1<d.trigger.indexOf('focus'))&&(!a||b!==a.popper)&&c.hide()})}function G(){var a=function(){J.usingTouch||(J.usingTouch=!0,J.iOS&&document.body.classList.add('tippy-touch'),J.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',b),J.onUserInputChange('touch'))},b=function(){var a;return function(){var c=performance.now();20>c-a&&(J.usingTouch=!1,document.removeEventListener('mousemove',b),!J.iOS&&document.body.classList.remove('tippy-touch'),J.onUserInputChange('mouse')),a=c}}();document.addEventListener('click',function(a){if(!(a.target instanceof Element))return F();var b=r(a.target,K.REFERENCE),c=r(a.target,K.POPPER);if(!(c&&c._reference._tippy.options.interactive)){if(b){var d=b._tippy.options;if(!d.multiple&&J.usingTouch||!d.multiple&&-1<d.trigger.indexOf('click'))return F(b._tippy);if(!0!==d.hideOnClick||-1<d.trigger.indexOf('click'))return}F()}}),document.addEventListener('touchstart',a),window.addEventListener('blur',function(){var a=document,b=a.activeElement;b&&b.blur&&e.call(b,K.REFERENCE)&&b.blur()}),!J.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',a)}function H(a,d){return J.supported&&!J._eventListenersBound&&(G(),J._eventListenersBound=!0),b(a)&&(a.refObj=!0,a.attributes=a.attributes||{},a.setAttribute=function(b,c){a.attributes[b]=c},a.getAttribute=function(b){return a.attributes[b]},a.removeAttribute=function(b){delete a.attributes[b]},a.addEventListener=function(){},a.removeEventListener=function(){},a.classList={classNames:{},add:function(b){return a.classList.classNames[b]=!0},remove:function(b){return delete a.classList.classNames[b],!0},contains:function(b){return!!a.classList.classNames[b]}}),d=P({},L,d),{selector:a,options:d,tooltips:J.supported?E(c(a),d):[],destroyAll:function(){this.tooltips.forEach(function(a){return a.destroy()})}}}a=a&&a.hasOwnProperty('default')?a['default']:a;var I='undefined'!=typeof window,J={};I&&(J.supported='requestAnimationFrame'in window,J.supportsTouch='ontouchstart'in window,J.usingTouch=!1,J.dynamicInputDetection=!0,J.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,J.onUserInputChange=function(){},J._eventListenersBound=!1);var K={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},L={placement:'top',trigger:'mouseenter focus',animation:'shift-away',html:!1,animateFill:!0,arrow:!1,delay:0,duration:[350,300],interactive:!1,interactiveBorder:2,theme:'dark',size:'regular',distance:10,offset:0,hideOnClick:!0,multiple:!1,followCursor:!1,inertia:!1,updateDuration:350,sticky:!1,appendTo:function(){return document.body},zIndex:9999,touchHold:!1,performance:!1,dynamicTitle:!1,flip:!0,flipBehavior:'flip',arrowType:'sharp',arrowTransform:'',maxWidth:'',popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},M=J.supported&&Object.keys(L),N=function(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')},O=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}}(),P=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},Q={};if(I){var R=Element.prototype;Q=R.matches||R.matchesSelector||R.webkitMatchesSelector||R.mozMatchesSelector||R.msMatchesSelector||function(a){for(var b=(this.document||this.ownerDocument).querySelectorAll(a),c=b.length;0<=--c&&b.item(c)!==this;);return-1<c}}var e=Q,S=function(){function a(b){for(var c in N(this,a),b)this[c]=b[c];this.state={destroyed:!1,visible:!1,enabled:!0}}return O(a,[{key:'enable',value:function(){this.state.enabled=!0}},{key:'disable',value:function(){this.state.enabled=!1}},{key:'show',value:function(a){var b=this;if(!this.state.destroyed&&this.state.enabled){var c=this.popper,d=this.reference,e=this.options,g=m(c),h=g.tooltip,i=g.backdrop,j=g.content;return d.refObj||document.body.contains(d)?void(e.onShow.call(c),a=B(void 0===a?e.duration:a,0),D([c,h,i],0),x(this),c.style.visibility='visible',this.state.visible=!0,l(function(){b.state.visible&&((!e.followCursor||J.usingTouch)&&(b.popperInstance.update(),D([c],e.updateDuration)),D([h,i,i?j:null],a),i&&getComputedStyle(i)[f('transform')],e.interactive&&d.classList.add('tippy-active'),e.sticky&&y(b),C([h,i],'visible'),z(b,a,function(){e.updateDuration||h.classList.add('tippy-notransition'),e.interactive&&c.focus(),e.onShown.call(c)}))})):void this.destroy()}}},{key:'hide',value:function(a){var b=this;if(!this.state.destroyed&&this.state.enabled){var c=this.popper,d=this.reference,e=this.options,f=m(c),g=f.tooltip,h=f.backdrop,i=f.content;e.onHide.call(c),a=B(void 0===a?e.duration:a,1),e.updateDuration||g.classList.remove('tippy-notransition'),e.interactive&&d.classList.remove('tippy-active'),c.style.visibility='hidden',this.state.visible=!1,D([g,h,h?i:null],a),C([g,h],'hidden'),e.interactive&&-1<e.trigger.indexOf('click')&&A(d)&&d.focus(),l(function(){z(b,a,function(){b.state.visible||!e.appendTo.contains(c)||(b.popperInstance.disableEventListeners(),document.removeEventListener('mousemove',b._followCursorListener),e.appendTo.removeChild(c),e.onHidden.call(c))})})}}},{key:'destroy',value:function(){var a=this;this.state.destroyed||(this.state.visible&&this.hide(0),this.listeners.forEach(function(b){a.reference.removeEventListener(b.event,b.handler)}),this.reference.setAttribute('title',this.reference.getAttribute('data-original-title')),delete this.reference._tippy,['data-original-title','data-tippy','aria-describedby'].forEach(function(b){a.reference.removeAttribute(b)}),this.popperInstance&&this.popperInstance.destroy(),this._mutationObservers.forEach(function(a){a.disconnect()}),this.state.destroyed=!0)}}]),a}(),T=1;return H.browser=J,H.defaults=L,H}); |
{ | ||
"name": "tippy.js", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Vanilla JS Tooltip Library", | ||
@@ -11,3 +11,3 @@ "main": "dist/tippy.all.js", | ||
"all": "rollup -c scripts/rollup.all.config.js && rollup -c scripts/rollup.all.min.config.js", | ||
"bundle": "rollup -c scripts/rollup.bundle.config.js", | ||
"bundle": "rollup -c scripts/rollup.bundle.config.js && rollup -c scripts/rollup.bundle.min.config.js", | ||
"standalone": "rollup -c scripts/rollup.standalone.config.js && rollup -c scripts/rollup.standalone.min.config.js", | ||
@@ -14,0 +14,0 @@ "themes": "rollup -c scripts/rollup.themes.config.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
425886
8558