Comparing version 2.1.1 to 2.2.0
@@ -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(t){return[].slice.call(t)}function o(e){if(e instanceof Element||t(e))return[e];if(e instanceof NodeList)return a(e);if(Array.isArray(e))return e;try{return a(document.querySelectorAll(e))}catch(t){return[]}}function r(t){for(var e=[!1,'webkit'],a=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length;o++){var i=e[o],r=i?''+i+a:t;if('undefined'!=typeof document.body.style[r])return r}return null}function p(t,e,a){var i=a.arrow,o=a.arrowType,p=a.arrowTransform,n=a.animateFill,s=a.inertia,l=a.animation,d=a.size,c=a.theme,m=a.html,f=a.zIndex,h=a.interactive,b=a.maxWidth,u=document.createElement('div');u.setAttribute('class','tippy-popper'),u.setAttribute('role','tooltip'),u.setAttribute('id','tippy-'+t),u.style.zIndex=f,u.style.maxWidth=b;var y=document.createElement('div');if(y.setAttribute('class','tippy-tooltip'),y.setAttribute('data-size',d),y.setAttribute('data-animation',l),y.setAttribute('data-state','hidden'),c.split(' ').forEach(function(e){y.classList.add(e+'-theme')}),i){var g=document.createElement('div');g.style[r('transform')]=p,'round'===o?(g.classList.add('tippy-roundarrow'),g.innerHTML='<svg viewBox="0 0 24 8" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M1 8s4.577-.019 7.253-4.218c2.357-3.698 5.175-3.721 7.508 0C18.404 7.997 23 8 23 8H1z"/></svg>'):g.classList.add('tippy-arrow'),y.appendChild(g)}if(n){y.setAttribute('data-animatefill','');var w=document.createElement('div');w.setAttribute('data-state','hidden'),w.classList.add('tippy-backdrop'),y.appendChild(w)}s&&y.setAttribute('data-inertia',''),h&&y.setAttribute('data-interactive','');var x=document.createElement('div');if(x.setAttribute('class','tippy-content'),m){var v;m instanceof Element?(x.appendChild(m),v='#'+m.id||'tippy-html-template'):(x.innerHTML=document.querySelector(m).innerHTML,v=m),u.setAttribute('data-html',''),h&&u.setAttribute('tabindex','-1'),y.setAttribute('data-template-id',v)}else x.innerHTML=e;return y.appendChild(x),u.appendChild(y),u}function n(t,e,a,i){var o=a.handleTrigger,r=a.handleMouseLeave,p=a.handleBlur,n=a.handleDelegateShow,s=a.handleDelegateHide,l=[];if('manual'===t)return l;var d=function(t,a){e.addEventListener(t,a),l.push({event:t,handler:a})};return i.target?(At.supportsTouch&&i.touchHold&&(d('touchstart',n),d('touchend',s)),'mouseenter'===t&&(d('mouseover',n),d('mouseout',s)),'focus'===t&&(d('focusin',n),d('focusout',s)),'click'===t&&d('click',n)):(d(t,o),At.supportsTouch&&i.touchHold&&(d('touchstart',o),d('touchend',r)),'mouseenter'===t&&d('mouseleave',r),'focus'===t&&d('blur',p)),l}function s(t,e){var a=Yt.reduce(function(a,i){var o=t.getAttribute('data-tippy-'+i.toLowerCase())||e[i];return'false'===o&&(o=!1),'true'===o&&(o=!0),isFinite(o)&&!isNaN(parseFloat(o))&&(o=parseFloat(o)),'target'!==i&&'string'==typeof o&&'['===o.trim().charAt(0)&&(o=JSON.parse(o)),a[i]=o,a},{});return It({},e,a)}function l(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 d(t){return{tooltip:t.querySelector(Ct.TOOLTIP),backdrop:t.querySelector(Ct.BACKDROP),content:t.querySelector(Ct.CONTENT)}}function c(t){var e=t.getAttribute('title');e&&t.setAttribute('data-original-title',e),t.removeAttribute('title')}function m(t){return t&&'[object Function]'==={}.toString.call(t)}function f(t,e){if(1!==t.nodeType)return[];var a=getComputedStyle(t,null);return e?a[e]:a}function h(t){return'HTML'===t.nodeName?t:t.parentNode||t.host}function b(t){if(!t)return document.body;switch(t.nodeName){case'HTML':case'BODY':return t.ownerDocument.body;case'#document':return t.body;}var e=f(t),a=e.overflow,i=e.overflowX,o=e.overflowY;return /(auto|scroll)/.test(a+o+i)?t:b(h(t))}function u(t){var e=t&&t.offsetParent,a=e&&e.nodeName;return a&&'BODY'!==a&&'HTML'!==a?-1!==['TD','TABLE'].indexOf(e.nodeName)&&'static'===f(e,'position')?u(e):e:t?t.ownerDocument.documentElement:document.documentElement}function y(t){var e=t.nodeName;return'BODY'!==e&&('HTML'===e||u(t.firstElementChild)===t)}function g(t){return null===t.parentNode?t:g(t.parentNode)}function w(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,o=a?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var p=r.commonAncestorContainer;if(t!==p&&e!==p||i.contains(o))return y(p)?p:u(p);var n=g(t);return n.host?w(n.host,e):w(t,g(e).host)}function x(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 o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[a]}return t[a]}function v(t,e){var a=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=x(e,'top'),o=x(e,'left'),r=a?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function k(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 E(t,e,a,i){return Lt(e['offset'+t],e['scroll'+t],a['client'+t],a['offset'+t],a['scroll'+t],Bt()?a['offset'+t]+i['margin'+('Height'===t?'Top':'Left')]+i['margin'+('Height'===t?'Bottom':'Right')]:0)}function L(){var t=document.body,e=document.documentElement,a=Bt()&&getComputedStyle(e);return{height:E('Height',t,e,a),width:E('Width',t,e,a)}}function O(t){return qt({},t,{right:t.left+t.width,bottom:t.top+t.height})}function A(t){var e={};if(Bt())try{e=t.getBoundingClientRect();var a=x(t,'top'),i=x(t,'left');e.top+=a,e.left+=i,e.bottom+=a,e.right+=i}catch(t){}else e=t.getBoundingClientRect();var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r='HTML'===t.nodeName?L():{},p=r.width||t.clientWidth||o.right-o.left,n=r.height||t.clientHeight||o.bottom-o.top,s=t.offsetWidth-p,l=t.offsetHeight-n;if(s||l){var d=f(t);s-=k(d,'x'),l-=k(d,'y'),o.width-=s,o.height-=l}return O(o)}function C(t,e){var a=Bt(),i='HTML'===e.nodeName,o=A(t),r=A(e),p=b(t),n=f(e),s=parseFloat(n.borderTopWidth,10),l=parseFloat(n.borderLeftWidth,10),d=O({top:o.top-r.top-s,left:o.left-r.left-l,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!a&&i){var c=parseFloat(n.marginTop,10),m=parseFloat(n.marginLeft,10);d.top-=s-c,d.bottom-=s-c,d.left-=l-m,d.right-=l-m,d.marginTop=c,d.marginLeft=m}return(a?e.contains(p):e===p&&'BODY'!==p.nodeName)&&(d=v(d,e)),d}function S(t){var e=t.ownerDocument.documentElement,a=C(t,e),i=Lt(e.clientWidth,window.innerWidth||0),o=Lt(e.clientHeight,window.innerHeight||0),r=x(e),p=x(e,'left'),n={top:r-a.top+a.marginTop,left:p-a.left+a.marginLeft,width:i,height:o};return O(n)}function Y(t){var e=t.nodeName;return'BODY'===e||'HTML'===e?!1:'fixed'===f(t,'position')||Y(h(t))}function X(t,e,a,i){var o={top:0,left:0},r=w(t,e);if('viewport'===i)o=S(r);else{var p;'scrollParent'===i?(p=b(h(e)),'BODY'===p.nodeName&&(p=t.ownerDocument.documentElement)):'window'===i?p=t.ownerDocument.documentElement:p=i;var n=C(p,r);if('HTML'===p.nodeName&&!Y(r)){var s=L(),l=s.height,d=s.width;o.top+=n.top-n.marginTop,o.bottom=l+n.top,o.left+=n.left-n.marginLeft,o.right=d+n.left}else o=n}return o.left+=a,o.top+=a,o.right-=a,o.bottom-=a,o}function _(t){var e=t.width,a=t.height;return e*a}function I(t,e,a,i,o){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf('auto'))return t;var p=X(a,i,r,o),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 qt({key:t},n[t],{area:_(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 P(t,e,a){var i=w(e,a);return C(a,i)}function D(t){var e=getComputedStyle(t),a=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight),o={width:t.offsetWidth+i,height:t.offsetHeight+a};return o}function N(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 H(t,e,a){a=a.split('-')[0];var i=D(t),o={width:i.width,height:i.height},r=-1!==['right','left'].indexOf(a),p=r?'top':'left',n=r?'left':'top',s=r?'height':'width',l=r?'width':'height';return o[p]=e[p]+e[s]/2-i[s]/2,o[n]=a===n?e[n]-i[l]:e[N(n)],o}function R(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function M(t,e,a){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===a});var i=R(t,function(t){return t[e]===a});return t.indexOf(i)}function B(t,e,a){var i=void 0===a?t:t.slice(0,M(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&&m(a)&&(e.offsets.popper=O(e.offsets.popper),e.offsets.reference=O(e.offsets.reference),e=a(e,t))}),e}function W(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=P(this.state,this.popper,this.reference),t.placement=I(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=H(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position='absolute',t=B(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function z(t,e){return t.some(function(t){var a=t.name,i=t.enabled;return i&&a===e})}function U(t){for(var e=[!1,'ms','Webkit','Moz','O'],a=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length-1;o++){var i=e[o],r=i?''+i+a:t;if('undefined'!=typeof document.body.style[r])return r}return null}function q(){return this.state.isDestroyed=!0,z(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[U('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function F(t){var e=t.ownerDocument;return e?e.defaultView:window}function j(t,e,a,i){var o='BODY'===t.nodeName,r=o?t.ownerDocument.defaultView:t;r.addEventListener(e,a,{passive:!0}),o||j(b(r.parentNode),e,a,i),i.push(r)}function K(t,e,a,i){a.updateBound=i,F(t).addEventListener('resize',a.updateBound,{passive:!0});var o=b(t);return j(o,'scroll',a.updateBound,a.scrollParents),a.scrollElement=o,a.eventsEnabled=!0,a}function V(){this.state.eventsEnabled||(this.state=K(this.reference,this.options,this.state,this.scheduleUpdate))}function G(t,e){return F(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=G(this.reference,this.state))}function J(t){return''!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Z(t,e){Object.keys(e).forEach(function(a){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(a)&&J(e[a])&&(i='px'),t.style[a]=e[a]+i})}function $(t,e){Object.keys(e).forEach(function(a){var i=e[a];!1===i?t.removeAttribute(a):t.setAttribute(a,e[a])})}function tt(t,e,a){var i=R(t,function(t){var a=t.name;return a===e}),o=!!i&&t.some(function(t){return t.name===a&&t.enabled&&t.order<i.order});if(!o){var r='`'+e+'`';console.warn('`'+a+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return o}function et(t){return'end'===t?'start':'start'===t?'end':t}function at(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=jt.indexOf(t),i=jt.slice(a+1).concat(jt.slice(0,a));return e?i.reverse():i}function it(t,e,a,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],p=o[2];if(!r)return t;if(0===p.indexOf('%')){var n;switch(p){case'%p':n=a;break;case'%':case'%r':default:n=i;}var s=O(n);return s[e]/100*r}if('vh'===p||'vw'===p){var l;return l='vh'===p?Lt(document.documentElement.clientHeight,window.innerHeight||0):Lt(document.documentElement.clientWidth,window.innerWidth||0),l/100*r}return r}function ot(t,e,a,i){var o=[0,0],r=-1!==['right','left'].indexOf(i),p=t.split(/(\+|\-)/).map(function(t){return t.trim()}),n=p.indexOf(R(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 o=(1===i?!r:r)?'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 it(t,o,e,a)})}),l.forEach(function(t,e){t.forEach(function(a,i){J(a)&&(o[e]+=a*('-'===t[i-1]?-1:1))})}),o}function rt(t){return t.getAttribute('x-placement').replace(/-.+/,'')}function pt(t,e,a){if(!e.getAttribute('x-placement'))return!0;var i=t.clientX,o=t.clientY,r=a.interactiveBorder,p=a.distance,n=e.getBoundingClientRect(),s=rt(e),l=r+p,d={top:n.top-o>r,bottom:o-n.bottom>r,left:n.left-i>r,right:i-n.right>r};return'top'===s?d.top=n.top-o>l:'bottom'===s?d.bottom=o-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 nt(t,e,a,i){if(!e.length)return'';var o={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 o[t]}function st(t,e){if(!t)return'';return e?t:{X:'Y',Y:'X'}[t]}function lt(t,e,a){var i=rt(t),o='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'+st(d.translate.axis,o)+'('+nt('translate',d.translate.numbers,o,p)+')').replace(l.scale,'scale'+st(d.scale.axis,o)+'('+nt('scale',d.scale.numbers,o,p)+')');e.style[r('transform')]=c}function dt(t){return-(t-St.distance)+'px'}function ct(t){requestAnimationFrame(function(){setTimeout(t,1)})}function mt(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 ft(t,e){return Array.isArray(t)?t[e]:t}function ht(t,e){t.forEach(function(t){t&&t.setAttribute('data-state',e)})}function bt(t,e){t.forEach(function(t){t&&(t.style[r('transitionDuration')]=e+'ms')})}function ut(t){void t.offsetHeight}function yt(t){var e=window.scrollX||window.pageXOffset,a=window.scrollY||window.pageYOffset;t.focus(),scroll(e,a)}function gt(t,e){return t.reduce(function(t,a){var i=ee,o=l(a,e.performance?e:s(a,e)),r=a.getAttribute('title');if(!r&&!o.target&&!o.html&&!o.dynamicTitle)return t;a.setAttribute(o.target?'data-tippy-delegate':'data-tippy',''),c(a);var m=p(i,r,o),f=new T({id:i,reference:a,popper:m,options:o,title:r,popperInstance:null});o.createPopperInstanceOnInit&&(f.popperInstance=$t.call(f),f.popperInstance.disableEventListeners());var h=Zt.call(f);return f.listeners=o.trigger.trim().split(' ').reduce(function(t,e){return t.concat(n(e,a,h,o))},[]),o.dynamicTitle&&te.call(f,{target:a,callback:function(){var t=d(m),e=t.content,i=a.getAttribute('title');i&&(e.innerHTML=f.title=i,c(a))},options:{attributes:!0}}),a._tippy=f,m._tippy=f,m._reference=a,t.push(f),ee++,t},[])}function wt(t){var e=a(document.querySelectorAll(Ct.POPPER));e.forEach(function(e){var a=e._tippy,i=a.options;(!0===i.hideOnClick||-1<i.trigger.indexOf('focus'))&&(!t||e!==t.popper)&&a.hide()})}function xt(){var t=function(){At.usingTouch||(At.usingTouch=!0,At.iOS&&document.body.classList.add('tippy-touch'),At.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',a),At.onUserInputChange('touch'))},a=function(){var t;return function(){var e=performance.now();20>e-t&&(At.usingTouch=!1,document.removeEventListener('mousemove',a),!At.iOS&&document.body.classList.remove('tippy-touch'),At.onUserInputChange('mouse')),t=e}}();document.addEventListener('click',function(t){if(!(t.target instanceof Element))return wt();var e=mt(t.target,Ct.REFERENCE),a=mt(t.target,Ct.POPPER);if(!(a&&a._reference._tippy.options.interactive)){if(e){var i=e._tippy.options;if(!i.multiple&&At.usingTouch||!i.multiple&&-1<i.trigger.indexOf('click'))return wt(e._tippy);if(!0!==i.hideOnClick||-1<i.trigger.indexOf('click'))return}wt()}}),document.addEventListener('touchstart',t),window.addEventListener('blur',function(){var t=document,a=t.activeElement;a&&a.blur&&e.call(a,Ct.REFERENCE)&&a.blur()}),!At.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',t)}function vt(e,a){return At.supported&&!At._eventListenersBound&&(xt(),At._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]}}),a=It({},St,a),{selector:e,options:a,tooltips:At.supported?gt(o(e),a):[],destroyAll:function(){this.tooltips.forEach(function(t){return t.destroy()}),this.tooltips=[]}}}var kt=Math.round,Et=Math.min,Tt=Math.floor,Lt=Math.max,Ot='undefined'!=typeof window,At={};Ot&&(At.supported='requestAnimationFrame'in window,At.supportsTouch='ontouchstart'in window,At.usingTouch=!1,At.dynamicInputDetection=!0,At.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,At.onUserInputChange=function(){},At._eventListenersBound=!1);for(var Ct={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},St={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:'',target:null,popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},Yt=At.supported&&Object.keys(St),Xt=function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')},_t=function(){function t(t,e){for(var a,o=0;o<e.length;o++)a=e[o],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},Pt='undefined'!=typeof window&&'undefined'!=typeof document,Dt=['Edge','Trident','Firefox'],Nt=0,Ht=0;Ht<Dt.length;Ht+=1)if(Pt&&0<=navigator.userAgent.indexOf(Dt[Ht])){Nt=1;break}var i,Rt=Pt&&window.Promise,Mt=Rt?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()},Nt))}},Bt=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},Wt=function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')},zt=function(){function t(t,e){for(var a,o=0;o<e.length;o++)a=e[o],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}}(),Ut=function(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t},qt=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},Ft=['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'],jt=Ft.slice(3),Kt={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},Vt=function(){function t(e,a){var i=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Wt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Mt(this.update.bind(this)),this.options=qt({},t.Defaults,o),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(qt({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){i.options.modifiers[e]=qt({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return qt({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&m(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return zt(t,[{key:'update',value:function(){return W.call(this)}},{key:'destroy',value:function(){return q.call(this)}},{key:'enableEventListeners',value:function(){return V.call(this)}},{key:'disableEventListeners',value:function(){return Q.call(this)}}]),t}();Vt.Utils=('undefined'==typeof window?global:window).PopperUtils,Vt.placements=Ft,Vt.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 o=t.offsets,r=o.reference,p=o.popper,n=-1!==['bottom','top'].indexOf(a),s=n?'left':'top',l=n?'width':'height',d={start:Ut({},s,r[s]),end:Ut({},s,r[s]+r[l]-p[l])};t.offsets.popper=qt({},p,d[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var a,i=e.offset,o=t.placement,r=t.offsets,p=r.popper,n=r.reference,s=o.split('-')[0];return a=J(+i)?[+i,0]:ot(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||u(t.instance.popper);t.instance.reference===a&&(a=u(a));var i=X(t.instance.popper,t.instance.reference,e.padding,a);e.boundaries=i;var o=e.priority,r=t.offsets.popper,p={primary:function(t){var a=r[t];return r[t]<i[t]&&!e.escapeWithReference&&(a=Lt(r[t],i[t])),Ut({},t,a)},secondary:function(t){var a='right'===t?'left':'top',o=r[a];return r[t]>i[t]&&!e.escapeWithReference&&(o=Et(r[a],i[t]-('right'===t?r.width:r.height))),Ut({},a,o)}};return o.forEach(function(t){var e=-1===['left','top'].indexOf(t)?'secondary':'primary';r=qt({},r,p[e](t))}),t.offsets.popper=r,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,o=t.placement.split('-')[0],r=Tt,p=-1!==['top','bottom'].indexOf(o),n=p?'right':'bottom',s=p?'left':'top',l=p?'width':'height';return a[n]<r(i[s])&&(t.offsets.popper[s]=r(i[s])-a[l]),a[s]>r(i[n])&&(t.offsets.popper[s]=r(i[n])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var a;if(!tt(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 o=t.placement.split('-')[0],r=t.offsets,p=r.popper,n=r.reference,s=-1!==['left','right'].indexOf(o),l=s?'height':'width',d=s?'Top':'Left',c=d.toLowerCase(),m=s?'left':'top',h=s?'bottom':'right',b=D(i)[l];n[h]-b<p[c]&&(t.offsets.popper[c]-=p[c]-(n[h]-b)),n[c]+b>p[h]&&(t.offsets.popper[c]+=n[c]+b-p[h]),t.offsets.popper=O(t.offsets.popper);var u=n[c]+n[l]/2-b/2,y=f(t.instance.popper),g=parseFloat(y['margin'+d],10),w=parseFloat(y['border'+d+'Width'],10),x=u-t.offsets.popper[c]-g-w;return x=Lt(Et(p[l]-b,x),0),t.arrowElement=i,t.offsets.arrow=(a={},Ut(a,c,kt(x)),Ut(a,m,''),a),t},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(t,e){if(z(t.instance.modifiers,'inner'))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var a=X(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split('-')[0],o=N(i),r=t.placement.split('-')[1]||'',p=[];switch(e.behavior){case Kt.FLIP:p=[i,o];break;case Kt.CLOCKWISE:p=at(i);break;case Kt.COUNTERCLOCKWISE:p=at(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],o=N(i);var l=t.offsets.popper,d=t.offsets.reference,c=Tt,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),w=!!e.flipVariations&&(g&&'start'===r&&f||g&&'end'===r&&h||!g&&'start'===r&&b||!g&&'end'===r&&u);(m||y||w)&&(t.flipped=!0,(m||y)&&(i=p[s+1]),w&&(r=et(r)),t.placement=i+(r?'-'+r:''),t.offsets.popper=qt({},t.offsets.popper,H(t.instance.popper,t.offsets.reference,t.placement)),t=B(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,o=i.popper,r=i.reference,p=-1!==['left','right'].indexOf(a),n=-1===['top','left'].indexOf(a);return o[p?'left':'top']=r[a]-(n?o[p?'width':'height']:0),t.placement=N(e),t.offsets.popper=O(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!tt(t.instance.modifiers,'hide','preventOverflow'))return t;var e=t.offsets.reference,a=R(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,o=t.offsets.popper,r=R(t.instance.modifiers,function(t){return'applyStyle'===t.name}).gpuAcceleration;void 0!==r&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var p,n,s=void 0===r?e.gpuAcceleration:r,l=u(t.instance.popper),d=A(l),c={position:o.position},m={left:Tt(o.left),top:Tt(o.top),bottom:Tt(o.bottom),right:Tt(o.right)},f='bottom'===a?'top':'bottom',h='right'===i?'left':'right',b=U('transform');if(n='bottom'==f?-d.height+m.bottom:m.top,p='right'==h?-d.width+m.right:m.left,s&&b)c[b]='translate3d('+p+'px, '+n+'px, 0)',c[f]=0,c[h]=0,c.willChange='transform';else{var y='bottom'==f?-1:1,g='right'==h?-1:1;c[f]=n*y,c[h]=p*g,c.willChange=f+', '+h}var w={"x-placement":t.placement};return t.attributes=qt({},w,t.attributes),t.styles=qt({},c,t.styles),t.arrowStyles=qt({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(t){return Z(t.instance.popper,t.styles),$(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&Z(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,a,i,o){var r=P(o,e,t),p=I(a.placement,r,e,t,a.modifiers.flip.boundariesElement,a.modifiers.flip.padding);return e.setAttribute('x-placement',p),Z(e,{position:'absolute'}),a},gpuAcceleration:void 0}}};var Gt={};if(Ot){var Qt=Element.prototype;Gt=Qt.matches||Qt.matchesSelector||Qt.webkitMatchesSelector||Qt.mozMatchesSelector||Qt.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=Gt,Jt=function(){function t(t){var e=mt(t.target,this.options.target);if(e&&!e._tippy){var a=e.getAttribute('title')||this.title;a&&(e.setAttribute('title',a),vt(e,It({},this.options,{target:null})),e._tippy.show())}}function e(e){var a=this;if(n.call(this),!this.state.visible){if(this.options.target)return void t.call(this,e);if(this._(f).isPreparingToShow=!0,this.options.wait)return void this.options.wait.call(this.popper,this.show.bind(this),e);this.options.followCursor&&!At.usingTouch&&(!this._(f).followCursorListener&&s.call(this),document.addEventListener('mousemove',this._(f).followCursorListener));var i=Array.isArray(this.options.delay)?this.options.delay[0]:this.options.delay;i?this._(f).showTimeout=setTimeout(function(){a.show()},i):this.show()}}function i(){var t=this;if(n.call(this),!!this.state.visible){this._(f).isPreparingToShow=!1;var e=Array.isArray(this.options.delay)?this.options.delay[1]:this.options.delay;e?this._(f).hideTimeout=setTimeout(function(){t.state.visible&&t.hide()},e):this.hide()}}function o(){var t=this,e=this.popper,a=this.reference,i=this.options,o=d(e),p=o.tooltip,n=i.popperOptions,s='round'===i.arrowType?Ct.ROUND_ARROW:Ct.ARROW,l=p.querySelector(s),m=It({placement:i.placement},n||{},{modifiers:It({},n?n.modifiers:{},{arrow:It({element:s},n&&n.modifiers?n.modifiers.arrow:{}),flip:It({enabled:i.flip,padding:i.distance+5,behavior:i.flipBehavior},n&&n.modifiers?n.modifiers.flip:{}),offset:It({offset:i.offset},n&&n.modifiers?n.modifiers.offset:{})}),onCreate:function(){p.style[rt(e)]=dt(i.distance),l&&i.arrowTransform&<(e,l,i.arrowTransform)},onUpdate:function(){var t=p.style;t.top='',t.bottom='',t.left='',t.right='',t[rt(e)]=dt(i.distance),l&&i.arrowTransform&<(e,l,i.arrowTransform)}});return c.call(this,{target:e,callback:function(){var a=e.style;a[r('transitionDuration')]=null;var o=t.popperInstance.options.onUpdate;t.popperInstance.options.onUpdate=function(){ut(t.popper),a[r('transitionDuration')]=i.updateDuration+'ms',t.popperInstance.options.onUpdate=o},t.popperInstance.update()},options:{childList:!0,subtree:!0,characterData:!0}}),new Vt(a,e,m)}function p(t){var e=this;this.popperInstance?(this.popper.style[r('transform')]=null,this.popperInstance.scheduleUpdate(),(!this.options.followCursor||At.usingTouch)&&this.popperInstance.enableEventListeners()):this.popperInstance=o.call(this);var a=this.popperInstance.options.onCreate,i=this.popperInstance.options.onUpdate;this.popperInstance.options.onCreate=this.popperInstance.options.onUpdate=function(){ut(e.popper),t(),e.popperInstance.options.onUpdate=i,e.popperInstance.options.onCreate=a},this.options.appendTo.contains(this.popper)||this.options.appendTo.appendChild(this.popper)}function n(){var t=this._(f),e=t.showTimeout,a=t.hideTimeout;clearTimeout(e),clearTimeout(a)}function s(){var t=this;this._(f).followCursorListener=function(e){if(!(t._(f).lastTriggerEvent&&'focus'===t._(f).lastTriggerEvent.type)){t._(f).lastMouseMoveEvent=e;var a=document.documentElement.offsetWidth||document.body.offsetWidth,i=kt(t.popper.offsetWidth/2),o=kt(t.popper.offsetHeight/2),p=t.options.offset,n=e.pageX,s=e.pageY,l=5,d=t.options.placement.replace(/-.+/,'');t.popper.getAttribute('x-placement')&&(d=rt(t.popper));var c,m;'top'===d?(c=n-i+p,m=s-2*o):'bottom'===d?(c=n-i+p,m=s+10):'left'===d?(c=n-2*i,m=s-o+p):'right'===d?(c=n+5,m=s-o+p):void 0;('top'===d||'bottom'===d)&&(n+l+i+p>a&&(c=a-l-2*i),0>n-l-i+p&&(c=l)),t.popper.style[r('transform')]='translate3d('+c+'px, '+m+'px, 0)'}}}function l(){var t=this,e=function(){t.popper.style[r('transitionDuration')]=t.options.updateDuration+'ms'},a=function(){t.popper.style[r('transitionDuration')]=''};ct(function i(){t.popperInstance&&t.popperInstance.scheduleUpdate(),e(),t.state.visible?requestAnimationFrame(i):a()})}function c(t){var e=t.target,a=t.callback,i=t.options;if(window.MutationObserver){var o=new MutationObserver(a);o.observe(e,i),this._(f).mutationObservers.push(o)}}function m(t,a){if(!t)return a();var e=d(this.popper),i=e.tooltip,o=function(t,e){e&&i[t+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',e)},r=function t(r){r.target===i&&(o('remove',t),a())};o('remove',this._(f).transitionendListener),o('add',r),this._(f).transitionendListener=r}var f={},h=function(t){return function(e){return e===f&&t}},b=function(){function t(e){for(var a in Xt(this,t),e)this[a]=e[a];this.state={destroyed:!1,visible:!1,enabled:!0},this._=h({mutationObservers:[]})}return _t(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,o=this.options,n=d(a),s=n.tooltip,c=n.backdrop,h=n.content;return o.dynamicTitle&&!i.getAttribute('data-original-title')?void 0:i.refObj||document.documentElement.contains(i)?void(o.onShow.call(a,this),t=ft(void 0===t?o.duration:t,0),bt([a,s,c],0),a.style.visibility='visible',this.state.visible=!0,p.call(this,function(){if(e.state.visible){if((!o.followCursor||At.usingTouch)&&(e.popperInstance.scheduleUpdate(),bt([a],o.updateDuration)),o.followCursor&&!At.usingTouch){e.popperInstance.disableEventListeners();var p=Array.isArray(o.delay)?o.delay[0]:o.delay;e._(f).lastTriggerEvent&&e._(f).followCursorListener(p&&e._(f).lastMouseMoveEvent?e._(f).lastMouseMoveEvent:e._(f).lastTriggerEvent)}bt([s,c,c?h:null],t),c&&getComputedStyle(c)[r('transform')],o.interactive&&i.classList.add('tippy-active'),o.sticky&&l.call(e),ht([s,c],'visible'),m.call(e,t,function(){o.updateDuration||s.classList.add('tippy-notransition'),o.interactive&&yt(a),i.setAttribute('aria-describedby','tippy-'+e.id),o.onShown.call(a,e)})}})):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,o=this.options,r=d(a),p=r.tooltip,n=r.backdrop,s=r.content;o.onHide.call(a,this),t=ft(void 0===t?o.duration:t,1),o.updateDuration||p.classList.remove('tippy-notransition'),o.interactive&&i.classList.remove('tippy-active'),a.style.visibility='hidden',this.state.visible=!1,bt([p,n,n?s:null],t),ht([p,n],'hidden'),o.interactive&&-1<o.trigger.indexOf('click')&&yt(i),ct(function(){m.call(e,t,function(){e.state.visible||!o.appendTo.contains(a)||(!e._(f).isPreparingToShow&&(document.removeEventListener('mousemove',e._(f).followCursorListener),e._(f).lastMouseMoveEvent=null),i.removeAttribute('aria-describedby'),e.popperInstance.disableEventListeners(),o.appendTo.removeChild(a),o.onHidden.call(a,e))})})}}},{key:'destroy',value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;if(!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','data-tippy-delegate'].forEach(function(e){t.reference.removeAttribute(e)}),this.options.target&&e&&a(this.reference.querySelectorAll(this.options.target)).forEach(function(t){return t._tippy&&t._tippy.destroy()}),this.popperInstance&&this.popperInstance.destroy(),this._(f).mutationObservers.forEach(function(t){t.disconnect()}),this.state.destroyed=!0}}}]),t}();return{Tippy:b,_getEventListeners:function(){var t=this;return{handleTrigger:function(a){if(t.state.enabled){var o=At.supportsTouch&&At.usingTouch&&-1<['mouseenter','mouseover','focus'].indexOf(a.type);o&&t.options.touchHold||(t._(f).lastTriggerEvent=a,'click'===a.type&&'persistent'!==t.options.hideOnClick&&t.state.visible?i.call(t):e.call(t,a),o&&At.iOS&&t.reference.click&&t.reference.click())}},handleMouseLeave:function(e){if(!(-1<['mouseleave','mouseout'].indexOf(e.type)&&At.supportsTouch&&At.usingTouch&&t.options.touchHold)){if(t.options.interactive){var a=i.bind(t),o=function e(o){var r=mt(o.target,Ct.REFERENCE),p=mt(o.target,Ct.POPPER)===t.popper,n=r===t.reference;p||n||pt(o,t.popper,t.options)&&(document.body.removeEventListener('mouseleave',a),document.removeEventListener('mousemove',e),i.call(t))};return document.body.addEventListener('mouseleave',a),void document.addEventListener('mousemove',o)}i.call(t)}},handleBlur:function(e){!e.relatedTarget||At.usingTouch||mt(e.relatedTarget,Ct.POPPER)||i.call(t)},handleDelegateShow:function(a){mt(a.target,t.options.target)&&e.call(t,a)},handleDelegateHide:function(e){mt(e.target,t.options.target)&&i.call(t)}}},_addMutationObserver:c,_createPopperInstance:o,_onTransitionEnd:m}}(),T=Jt.Tippy,Zt=Jt._getEventListeners,$t=Jt._createPopperInstance,te=Jt._addMutationObserver,ee=1;return vt.browser=At,vt.defaults=St,function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:'';if(Ot&&At.supported){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{bottom:-8px;margin:0 6px;-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=top] .tippy-roundarrow svg{position:absolute;left:0;-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 7px;-webkit-transform-origin:50% 0;transform-origin:50% 0}.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{top:-8px;margin:0 6px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.tippy-popper[x-placement^=bottom] .tippy-roundarrow svg{position:absolute;left:0;-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 7px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.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{right:-16px;margin:4px 0;-webkit-transform-origin:33.33333333% 50%;transform-origin:33.33333333% 50%}.tippy-popper[x-placement^=left] .tippy-roundarrow svg{position:absolute;left:0;-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:4px 0;-webkit-transform-origin:0 50%;transform-origin:0 50%}.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{left:-16px;margin:4px 0;-webkit-transform-origin:66.66666666% 50%;transform-origin:66.66666666% 50%}.tippy-popper[x-placement^=right] .tippy-roundarrow svg{position:absolute;left:0;-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:4px 0;-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.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] .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-roundarrow{width:24px;height:8px;fill:#333;pointer-events:none}.tippy-roundarrow path{pointer-events:auto}.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);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop:after{content:"";float:left;padding-top:100%}body:not(.tippy-touch) .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%)}body:not(.tippy-touch) .tippy-tooltip[data-animatefill][data-state=hidden] .tippy-content{-webkit-clip-path:ellipse(5% 50% at 50% 50%);clip-path:ellipse(5% 50% at 50% 50%)}body:not(.tippy-touch) .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%)}body:not(.tippy-touch) .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%)}body:not(.tippy-touch) .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%)}body:not(.tippy-touch) .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)}}'),vt}); | ||
(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(t){return[].slice.call(t)}function o(e){if(e instanceof Element||t(e))return[e];if(e instanceof NodeList)return a(e);if(Array.isArray(e))return e;try{return a(document.querySelectorAll(e))}catch(t){return[]}}function r(t){for(var e=[!1,'webkit'],a=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length;o++){var i=e[o],r=i?''+i+a:t;if('undefined'!=typeof document.body.style[r])return r}return null}function p(t,e,a){var i=a.arrow,o=a.arrowType,p=a.arrowTransform,n=a.animateFill,s=a.inertia,l=a.animation,d=a.size,c=a.theme,m=a.html,f=a.zIndex,h=a.interactive,b=a.maxWidth,u=document.createElement('div');u.setAttribute('class','tippy-popper'),u.setAttribute('role','tooltip'),u.setAttribute('id','tippy-'+t),u.style.zIndex=f,u.style.maxWidth=b;var y=document.createElement('div');if(y.setAttribute('class','tippy-tooltip'),y.setAttribute('data-size',d),y.setAttribute('data-animation',l),y.setAttribute('data-state','hidden'),c.split(' ').forEach(function(e){y.classList.add(e+'-theme')}),i){var g=document.createElement('div');g.style[r('transform')]=p,'round'===o?(g.classList.add('tippy-roundarrow'),g.innerHTML='<svg viewBox="0 0 24 8" xmlns="http://www.w3.org/2000/svg"><path d="M1 8s4.577-.019 7.253-4.218c2.357-3.698 5.175-3.721 7.508 0C18.404 7.997 23 8 23 8H1z"/></svg>'):g.classList.add('tippy-arrow'),y.appendChild(g)}if(n){y.setAttribute('data-animatefill','');var w=document.createElement('div');w.setAttribute('data-state','hidden'),w.classList.add('tippy-backdrop'),y.appendChild(w)}s&&y.setAttribute('data-inertia',''),h&&y.setAttribute('data-interactive','');var x=document.createElement('div');if(x.setAttribute('class','tippy-content'),m){var v;m instanceof Element?(x.appendChild(m),v='#'+m.id||'tippy-html-template'):(x.innerHTML=document.querySelector(m).innerHTML,v=m),u.setAttribute('data-html',''),h&&u.setAttribute('tabindex','-1'),y.setAttribute('data-template-id',v)}else x.innerHTML=e;return y.appendChild(x),u.appendChild(y),u}function n(t,e,a,i){var o=a.handleTrigger,r=a.handleMouseLeave,p=a.handleBlur,n=a.handleDelegateShow,s=a.handleDelegateHide,l=[];if('manual'===t)return l;var d=function(t,a){e.addEventListener(t,a),l.push({event:t,handler:a})};return i.target?(Wt.supportsTouch&&i.touchHold&&(d('touchstart',n),d('touchend',s)),'mouseenter'===t&&(d('mouseover',n),d('mouseout',s)),'focus'===t&&(d('focusin',n),d('focusout',s)),'click'===t&&d('click',n)):(d(t,o),Wt.supportsTouch&&i.touchHold&&(d('touchstart',o),d('touchend',r)),'mouseenter'===t&&d('mouseleave',r),'focus'===t&&d(Mt?'focusout':'blur',p)),l}function s(t,e){var a=Ut.reduce(function(a,i){var o=t.getAttribute('data-tippy-'+i.toLowerCase())||e[i];return'false'===o&&(o=!1),'true'===o&&(o=!0),isFinite(o)&&!isNaN(parseFloat(o))&&(o=parseFloat(o)),'target'!==i&&'string'==typeof o&&'['===o.trim().charAt(0)&&(o=JSON.parse(o)),a[i]=o,a},{});return jt({},e,a)}function l(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 d(t){return{tooltip:t.querySelector(Bt.TOOLTIP),backdrop:t.querySelector(Bt.BACKDROP),content:t.querySelector(Bt.CONTENT)}}function c(t){var e=t.getAttribute('title');e&&t.setAttribute('data-original-title',e),t.removeAttribute('title')}function m(t){return t&&'[object Function]'==={}.toString.call(t)}function f(t,e){if(1!==t.nodeType)return[];var a=getComputedStyle(t,null);return e?a[e]:a}function h(t){return'HTML'===t.nodeName?t:t.parentNode||t.host}function b(t){if(!t)return document.body;switch(t.nodeName){case'HTML':case'BODY':return t.ownerDocument.body;case'#document':return t.body;}var e=f(t),a=e.overflow,i=e.overflowX,o=e.overflowY;return /(auto|scroll)/.test(a+o+i)?t:b(h(t))}function u(t){var e=t&&t.offsetParent,a=e&&e.nodeName;return a&&'BODY'!==a&&'HTML'!==a?-1!==['TD','TABLE'].indexOf(e.nodeName)&&'static'===f(e,'position')?u(e):e:t?t.ownerDocument.documentElement:document.documentElement}function y(t){var e=t.nodeName;return'BODY'!==e&&('HTML'===e||u(t.firstElementChild)===t)}function g(t){return null===t.parentNode?t:g(t.parentNode)}function w(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,o=a?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var p=r.commonAncestorContainer;if(t!==p&&e!==p||i.contains(o))return y(p)?p:u(p);var n=g(t);return n.host?w(n.host,e):w(t,g(e).host)}function x(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 o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[a]}return t[a]}function v(t,e){var a=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=x(e,'top'),o=x(e,'left'),r=a?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function k(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 E(t,e,a,i){return Ht(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 T(){var t=document.body,e=document.documentElement,a=Qt()&&getComputedStyle(e);return{height:E('Height',t,e,a),width:E('Width',t,e,a)}}function L(t){return ie({},t,{right:t.left+t.width,bottom:t.top+t.height})}function O(t){var e={};if(Qt())try{e=t.getBoundingClientRect();var a=x(t,'top'),i=x(t,'left');e.top+=a,e.left+=i,e.bottom+=a,e.right+=i}catch(t){}else e=t.getBoundingClientRect();var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r='HTML'===t.nodeName?T():{},p=r.width||t.clientWidth||o.right-o.left,n=r.height||t.clientHeight||o.bottom-o.top,s=t.offsetWidth-p,l=t.offsetHeight-n;if(s||l){var d=f(t);s-=k(d,'x'),l-=k(d,'y'),o.width-=s,o.height-=l}return L(o)}function A(t,e){var a=Qt(),i='HTML'===e.nodeName,o=O(t),r=O(e),p=b(t),n=f(e),s=parseFloat(n.borderTopWidth,10),l=parseFloat(n.borderLeftWidth,10),d=L({top:o.top-r.top-s,left:o.left-r.left-l,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!a&&i){var c=parseFloat(n.marginTop,10),m=parseFloat(n.marginLeft,10);d.top-=s-c,d.bottom-=s-c,d.left-=l-m,d.right-=l-m,d.marginTop=c,d.marginLeft=m}return(a?e.contains(p):e===p&&'BODY'!==p.nodeName)&&(d=v(d,e)),d}function C(t){var e=t.ownerDocument.documentElement,a=A(t,e),i=Ht(e.clientWidth,window.innerWidth||0),o=Ht(e.clientHeight,window.innerHeight||0),r=x(e),p=x(e,'left'),n={top:r-a.top+a.marginTop,left:p-a.left+a.marginLeft,width:i,height:o};return L(n)}function S(t){var e=t.nodeName;return'BODY'===e||'HTML'===e?!1:'fixed'===f(t,'position')||S(h(t))}function Y(t,e,a,i){var o={top:0,left:0},r=w(t,e);if('viewport'===i)o=C(r);else{var p;'scrollParent'===i?(p=b(h(e)),'BODY'===p.nodeName&&(p=t.ownerDocument.documentElement)):'window'===i?p=t.ownerDocument.documentElement:p=i;var n=A(p,r);if('HTML'===p.nodeName&&!S(r)){var s=T(),l=s.height,d=s.width;o.top+=n.top-n.marginTop,o.bottom=l+n.top,o.left+=n.left-n.marginLeft,o.right=d+n.left}else o=n}return o.left+=a,o.top+=a,o.right-=a,o.bottom-=a,o}function P(t){var e=t.width,a=t.height;return e*a}function X(t,e,a,i,o){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf('auto'))return t;var p=Y(a,i,r,o),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 ie({key:t},n[t],{area:P(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 D(t,e,a){var i=w(e,a);return A(a,i)}function I(t){var e=getComputedStyle(t),a=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight),o={width:t.offsetWidth+i,height:t.offsetHeight+a};return o}function _(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 N(t,e,a){a=a.split('-')[0];var i=I(t),o={width:i.width,height:i.height},r=-1!==['right','left'].indexOf(a),p=r?'top':'left',n=r?'left':'top',s=r?'height':'width',l=r?'width':'height';return o[p]=e[p]+e[s]/2-i[s]/2,o[n]=a===n?e[n]-i[l]:e[_(n)],o}function H(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function R(t,e,a){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===a});var i=H(t,function(t){return t[e]===a});return t.indexOf(i)}function M(t,e,a){var i=void 0===a?t:t.slice(0,R(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&&m(a)&&(e.offsets.popper=L(e.offsets.popper),e.offsets.reference=L(e.offsets.reference),e=a(e,t))}),e}function W(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=D(this.state,this.popper,this.reference),t.placement=X(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=N(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position='absolute',t=M(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,i=t.enabled;return i&&a===e})}function z(t){for(var e=[!1,'ms','Webkit','Moz','O'],a=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length-1;o++){var i=e[o],r=i?''+i+a:t;if('undefined'!=typeof document.body.style[r])return r}return null}function U(){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[z('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(t){var e=t.ownerDocument;return e?e.defaultView:window}function F(t,e,a,i){var o='BODY'===t.nodeName,r=o?t.ownerDocument.defaultView:t;r.addEventListener(e,a,{passive:!0}),o||F(b(r.parentNode),e,a,i),i.push(r)}function j(t,e,a,i){a.updateBound=i,q(t).addEventListener('resize',a.updateBound,{passive:!0});var o=b(t);return F(o,'scroll',a.updateBound,a.scrollParents),a.scrollElement=o,a.eventsEnabled=!0,a}function K(){this.state.eventsEnabled||(this.state=j(this.reference,this.options,this.state,this.scheduleUpdate))}function V(t,e){return q(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 G(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=V(this.reference,this.state))}function J(t){return''!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Z(t,e){Object.keys(e).forEach(function(a){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(a)&&J(e[a])&&(i='px'),t.style[a]=e[a]+i})}function $(t,e){Object.keys(e).forEach(function(a){var i=e[a];!1===i?t.removeAttribute(a):t.setAttribute(a,e[a])})}function Q(t,e,a){var i=H(t,function(t){var a=t.name;return a===e}),o=!!i&&t.some(function(t){return t.name===a&&t.enabled&&t.order<i.order});if(!o){var r='`'+e+'`';console.warn('`'+a+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return o}function tt(t){return'end'===t?'start':'start'===t?'end':t}function et(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=re.indexOf(t),i=re.slice(a+1).concat(re.slice(0,a));return e?i.reverse():i}function at(t,e,a,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],p=o[2];if(!r)return t;if(0===p.indexOf('%')){var n;switch(p){case'%p':n=a;break;case'%':case'%r':default:n=i;}var s=L(n);return s[e]/100*r}if('vh'===p||'vw'===p){var l;return l='vh'===p?Ht(document.documentElement.clientHeight,window.innerHeight||0):Ht(document.documentElement.clientWidth,window.innerWidth||0),l/100*r}return r}function it(t,e,a,i){var o=[0,0],r=-1!==['right','left'].indexOf(i),p=t.split(/(\+|\-)/).map(function(t){return t.trim()}),n=p.indexOf(H(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 o=(1===i?!r:r)?'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 at(t,o,e,a)})}),l.forEach(function(t,e){t.forEach(function(a,i){J(a)&&(o[e]+=a*('-'===t[i-1]?-1:1))})}),o}function ot(t){var e=t.style;e[r('transform')]=null,e.top=null,e.left=null}function rt(t){void t.offsetHeight}function pt(t,e,a){var i=t.popper,o=t.options,r=o.onCreate,p=o.onUpdate;o.onCreate=o.onUpdate=function(){rt(i),e&&e(),p(),o.onCreate=r,o.onUpdate=p},a||t.scheduleUpdate()}function nt(t){return t.getAttribute('x-placement').replace(/-.+/,'')}function st(t,e,a){if(!e.getAttribute('x-placement'))return!0;var i=t.clientX,o=t.clientY,r=a.interactiveBorder,p=a.distance,n=e.getBoundingClientRect(),s=nt(e),l=r+p,d={top:n.top-o>r,bottom:o-n.bottom>r,left:n.left-i>r,right:i-n.right>r};return'top'===s?d.top=n.top-o>l:'bottom'===s?d.bottom=o-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 lt(t,e,a,i){if(!e.length)return'';var o={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 o[t]}function dt(t,e){if(!t)return'';return e?t:{X:'Y',Y:'X'}[t]}function ct(t,e,a){var i=nt(t),o='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'+dt(d.translate.axis,o)+'('+lt('translate',d.translate.numbers,o,p)+')').replace(l.scale,'scale'+dt(d.scale.axis,o)+'('+lt('scale',d.scale.numbers,o,p)+')');e.style[r('transform')]=c}function mt(t){return-(t-zt.distance)+'px'}function ft(t){requestAnimationFrame(function(){setTimeout(t,1)})}function ht(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 bt(t,e){return Array.isArray(t)?t[e]:t}function ut(t,e){t.forEach(function(t){t&&t.setAttribute('data-state',e)})}function yt(t,e){t.forEach(function(t){t&&(t.style[r('transitionDuration')]=e+'ms')})}function gt(t){var e=window.scrollX||window.pageXOffset,a=window.scrollY||window.pageYOffset;t.focus(),scroll(e,a)}function wt(t){var e=ht(t.target,this.options.target);if(e&&!e._tippy){var a=e.getAttribute('title')||this.title;a&&(e.setAttribute('title',a),Dt(e,jt({},this.options,{target:null})),e._tippy.show())}}function xt(t){var e=this;if(Lt.call(this),!this.state.visible){if(this.options.target)return void wt.call(this,t);if(this._(de).isPreparingToShow=!0,this.options.wait)return void this.options.wait.call(this.popper,this.show.bind(this),t);this.options.followCursor&&!Wt.usingTouch&&(!this._(de).followCursorListener&&Ot.call(this),document.addEventListener('mousemove',this._(de).followCursorListener));var a=Array.isArray(this.options.delay)?this.options.delay[0]:this.options.delay;a?this._(de).showTimeout=setTimeout(function(){e.show()},a):this.show()}}function vt(){var t=this;if(Lt.call(this),!!this.state.visible){this._(de).isPreparingToShow=!1;var e=Array.isArray(this.options.delay)?this.options.delay[1]:this.options.delay;e?this._(de).hideTimeout=setTimeout(function(){t.state.visible&&t.hide()},e):this.hide()}}function kt(){var t=this;return{handleTrigger:function(e){if(t.state.enabled){var a=Wt.supportsTouch&&Wt.usingTouch&&-1<['mouseenter','mouseover','focus'].indexOf(e.type);a&&t.options.touchHold||(t._(de).lastTriggerEvent=e,'click'===e.type&&'persistent'!==t.options.hideOnClick&&t.state.visible?vt.call(t):xt.call(t,e),a&&Wt.iOS&&t.reference.click&&t.reference.click())}},handleMouseLeave:function(e){if(!(-1<['mouseleave','mouseout'].indexOf(e.type)&&Wt.supportsTouch&&Wt.usingTouch&&t.options.touchHold)){if(t.options.interactive){var a=vt.bind(t),i=function e(i){var o=ht(i.target,Bt.REFERENCE),r=ht(i.target,Bt.POPPER)===t.popper,p=o===t.reference;r||p||st(i,t.popper,t.options)&&(document.body.removeEventListener('mouseleave',a),document.removeEventListener('mousemove',e),vt.call(t))};return document.body.addEventListener('mouseleave',a),void document.addEventListener('mousemove',i)}vt.call(t)}},handleBlur:function(e){e.target!==t.reference||!e.relatedTarget||Wt.usingTouch||ht(e.relatedTarget,Bt.POPPER)||vt.call(t)},handleDelegateShow:function(e){ht(e.target,t.options.target)&&xt.call(t,e)},handleDelegateHide:function(e){ht(e.target,t.options.target)&&vt.call(t)}}}function Et(){var t=this,e=this.popper,a=this.reference,i=this.options,o=d(e),r=o.tooltip,p=i.popperOptions,n='round'===i.arrowType?Bt.ROUND_ARROW:Bt.ARROW,s=r.querySelector(n),l=jt({placement:i.placement},p||{},{modifiers:jt({},p?p.modifiers:{},{arrow:jt({element:n},p&&p.modifiers?p.modifiers.arrow:{}),flip:jt({enabled:i.flip,padding:i.distance+5,behavior:i.flipBehavior},p&&p.modifiers?p.modifiers.flip:{}),offset:jt({offset:i.offset},p&&p.modifiers?p.modifiers.offset:{})}),onCreate:function(){r.style[nt(e)]=mt(i.distance),s&&i.arrowTransform&&ct(e,s,i.arrowTransform)},onUpdate:function(){var t=r.style;t.top='',t.bottom='',t.left='',t.right='',t[nt(e)]=mt(i.distance),s&&i.arrowTransform&&ct(e,s,i.arrowTransform)}});return Ct.call(this,{target:e,callback:function(){t.popperInstance.scheduleUpdate()},options:{childList:!0,subtree:!0,characterData:!0}}),new ne(a,e,l)}function Tt(t){var e=this.options;this.popperInstance?(ot(this.popper),this.popperInstance.scheduleUpdate(),e.livePlacement&&(!e.followCursor||Wt.usingTouch)&&this.popperInstance.enableEventListeners()):(this.popperInstance=Et.call(this),!e.livePlacement&&this.popperInstance.disableEventListeners()),pt(this.popperInstance,t,!0),e.appendTo.contains(this.popper)||e.appendTo.appendChild(this.popper)}function Lt(){var t=this._(de),e=t.showTimeout,a=t.hideTimeout;clearTimeout(e),clearTimeout(a)}function Ot(){var t=this;this._(de).followCursorListener=function(e){if(!(t._(de).lastTriggerEvent&&'focus'===t._(de).lastTriggerEvent.type)){t._(de).lastMouseMoveEvent=e;var a=document.documentElement.offsetWidth||document.body.offsetWidth,i=It(t.popper.offsetWidth/2),o=It(t.popper.offsetHeight/2),p=t.options.offset,n=e.pageX,s=e.pageY,l=5,d=t.options.placement.replace(/-.+/,'');t.popper.getAttribute('x-placement')&&(d=nt(t.popper));var c,m;'top'===d?(c=n-i+p,m=s-2*o):'bottom'===d?(c=n-i+p,m=s+10):'left'===d?(c=n-2*i,m=s-o+p):'right'===d?(c=n+5,m=s-o+p):void 0;('top'===d||'bottom'===d)&&(n+l+i+p>a&&(c=a-l-2*i),0>n-l-i+p&&(c=l)),t.popper.style[r('transform')]='translate3d('+c+'px, '+m+'px, 0)'}}}function At(){var t=this,e=function(){t.popper.style[r('transitionDuration')]=t.options.updateDuration+'ms'},a=function(){t.popper.style[r('transitionDuration')]=''};ft(function i(){t.popperInstance&&t.popperInstance.scheduleUpdate(),e(),t.state.visible?requestAnimationFrame(i):a()})}function Ct(t){var e=t.target,a=t.callback,i=t.options;if(window.MutationObserver){var o=new MutationObserver(a);o.observe(e,i),this._(de).mutationObservers.push(o)}}function St(t,a){if(!t)return a();var e=d(this.popper),i=e.tooltip,o=function(t,e){e&&i[t+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',e)},r=function t(r){r.target===i&&(o('remove',t),a())};o('remove',this._(de).transitionendListener),o('add',r),this._(de).transitionendListener=r}function Yt(t,e){return t.reduce(function(t,a){var i=fe,o=l(a,e.performance?e:s(a,e)),r=a.getAttribute('title');if(!r&&!o.target&&!o.html&&!o.dynamicTitle)return t;a.setAttribute(o.target?'data-tippy-delegate':'data-tippy',''),c(a);var m=p(i,r,o),f=new me({id:i,reference:a,popper:m,options:o,title:r,popperInstance:null});o.createPopperInstanceOnInit&&(f.popperInstance=Et.call(f),f.popperInstance.disableEventListeners());var h=kt.call(f);return f.listeners=o.trigger.trim().split(' ').reduce(function(t,e){return t.concat(n(e,a,h,o))},[]),o.dynamicTitle&&Ct.call(f,{target:a,callback:function(){var t=d(m),e=t.content,i=a.getAttribute('title');i&&(e.innerHTML=f.title=i,c(a))},options:{attributes:!0}}),a._tippy=f,m._tippy=f,m._reference=a,t.push(f),fe++,t},[])}function Pt(t){var e=a(document.querySelectorAll(Bt.POPPER));e.forEach(function(e){var a=e._tippy,i=a.options;(!0===i.hideOnClick||-1<i.trigger.indexOf('focus'))&&(!t||e!==t.popper)&&a.hide()})}function Xt(){var t=function(){Wt.usingTouch||(Wt.usingTouch=!0,Wt.iOS&&document.body.classList.add('tippy-touch'),Wt.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',i),Wt.onUserInputChange('touch'))},i=function(){var t;return function(){var e=performance.now();20>e-t&&(Wt.usingTouch=!1,document.removeEventListener('mousemove',i),!Wt.iOS&&document.body.classList.remove('tippy-touch'),Wt.onUserInputChange('mouse')),t=e}}();document.addEventListener('click',function(t){if(!(t.target instanceof Element))return Pt();var e=ht(t.target,Bt.REFERENCE),a=ht(t.target,Bt.POPPER);if(!(a&&a._reference._tippy.options.interactive)){if(e){var i=e._tippy.options;if(!i.multiple&&Wt.usingTouch||!i.multiple&&-1<i.trigger.indexOf('click'))return Pt(e._tippy);if(!0!==i.hideOnClick||-1<i.trigger.indexOf('click'))return}Pt()}}),document.addEventListener('touchstart',t),window.addEventListener('blur',function(){var t=document,a=t.activeElement;a&&a.blur&&e.call(a,Bt.REFERENCE)&&a.blur()}),window.addEventListener('resize',function(){a(document.querySelectorAll(Bt.POPPER)).forEach(function(t){var e=t._tippy;e.options.livePlacement||e.popperInstance.scheduleUpdate()})}),!Wt.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',t)}function Dt(e,a){return Wt.supported&&!he&&(Xt(),he=!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]}}),a=jt({},zt,a),{selector:e,options:a,tooltips:Wt.supported?Yt(o(e),a):[],destroyAll:function(){this.tooltips.forEach(function(t){return t.destroy()}),this.tooltips=[]}}}var It=Math.round,_t=Math.min,Nt=Math.floor,Ht=Math.max,Rt='undefined'!=typeof window,Mt=Rt&&/MSIE |Trident\//.test(navigator.userAgent),Wt={};Rt&&(Wt.supported='requestAnimationFrame'in window,Wt.supportsTouch='ontouchstart'in window,Wt.usingTouch=!1,Wt.dynamicInputDetection=!0,Wt.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,Wt.onUserInputChange=function(){});for(var Bt={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},zt={placement:'top',livePlacement:!0,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:'',target:null,popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},Ut=Wt.supported&&Object.keys(zt),qt=function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')},Ft=function(){function t(t,e){for(var a,o=0;o<e.length;o++)a=e[o],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}}(),jt=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},Kt='undefined'!=typeof window&&'undefined'!=typeof document,Vt=['Edge','Trident','Firefox'],Gt=0,Jt=0;Jt<Vt.length;Jt+=1)if(Kt&&0<=navigator.userAgent.indexOf(Vt[Jt])){Gt=1;break}var i,Zt=Kt&&window.Promise,$t=Zt?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()},Gt))}},Qt=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},te=function(t,e){if(!(t instanceof e))throw new TypeError('Cannot call a class as a function')},ee=function(){function t(t,e){for(var a,o=0;o<e.length;o++)a=e[o],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}}(),ae=function(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t},ie=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},oe=['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'],re=oe.slice(3),pe={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},ne=function(){function t(e,a){var i=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};te(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=$t(this.update.bind(this)),this.options=ie({},t.Defaults,o),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(ie({},t.Defaults.modifiers,o.modifiers)).forEach(function(e){i.options.modifiers[e]=ie({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return ie({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&m(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return ee(t,[{key:'update',value:function(){return W.call(this)}},{key:'destroy',value:function(){return U.call(this)}},{key:'enableEventListeners',value:function(){return K.call(this)}},{key:'disableEventListeners',value:function(){return G.call(this)}}]),t}();ne.Utils=('undefined'==typeof window?global:window).PopperUtils,ne.placements=oe,ne.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 o=t.offsets,r=o.reference,p=o.popper,n=-1!==['bottom','top'].indexOf(a),s=n?'left':'top',l=n?'width':'height',d={start:ae({},s,r[s]),end:ae({},s,r[s]+r[l]-p[l])};t.offsets.popper=ie({},p,d[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var a,i=e.offset,o=t.placement,r=t.offsets,p=r.popper,n=r.reference,s=o.split('-')[0];return a=J(+i)?[+i,0]:it(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||u(t.instance.popper);t.instance.reference===a&&(a=u(a));var i=Y(t.instance.popper,t.instance.reference,e.padding,a);e.boundaries=i;var o=e.priority,r=t.offsets.popper,p={primary:function(t){var a=r[t];return r[t]<i[t]&&!e.escapeWithReference&&(a=Ht(r[t],i[t])),ae({},t,a)},secondary:function(t){var a='right'===t?'left':'top',o=r[a];return r[t]>i[t]&&!e.escapeWithReference&&(o=_t(r[a],i[t]-('right'===t?r.width:r.height))),ae({},a,o)}};return o.forEach(function(t){var e=-1===['left','top'].indexOf(t)?'secondary':'primary';r=ie({},r,p[e](t))}),t.offsets.popper=r,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,o=t.placement.split('-')[0],r=Nt,p=-1!==['top','bottom'].indexOf(o),n=p?'right':'bottom',s=p?'left':'top',l=p?'width':'height';return a[n]<r(i[s])&&(t.offsets.popper[s]=r(i[s])-a[l]),a[s]>r(i[n])&&(t.offsets.popper[s]=r(i[n])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var a;if(!Q(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 o=t.placement.split('-')[0],r=t.offsets,p=r.popper,n=r.reference,s=-1!==['left','right'].indexOf(o),l=s?'height':'width',d=s?'Top':'Left',c=d.toLowerCase(),m=s?'left':'top',h=s?'bottom':'right',b=I(i)[l];n[h]-b<p[c]&&(t.offsets.popper[c]-=p[c]-(n[h]-b)),n[c]+b>p[h]&&(t.offsets.popper[c]+=n[c]+b-p[h]),t.offsets.popper=L(t.offsets.popper);var u=n[c]+n[l]/2-b/2,y=f(t.instance.popper),g=parseFloat(y['margin'+d],10),w=parseFloat(y['border'+d+'Width'],10),x=u-t.offsets.popper[c]-g-w;return x=Ht(_t(p[l]-b,x),0),t.arrowElement=i,t.offsets.arrow=(a={},ae(a,c,It(x)),ae(a,m,''),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=Y(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split('-')[0],o=_(i),r=t.placement.split('-')[1]||'',p=[];switch(e.behavior){case pe.FLIP:p=[i,o];break;case pe.CLOCKWISE:p=et(i);break;case pe.COUNTERCLOCKWISE:p=et(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],o=_(i);var l=t.offsets.popper,d=t.offsets.reference,c=Nt,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),w=!!e.flipVariations&&(g&&'start'===r&&f||g&&'end'===r&&h||!g&&'start'===r&&b||!g&&'end'===r&&u);(m||y||w)&&(t.flipped=!0,(m||y)&&(i=p[s+1]),w&&(r=tt(r)),t.placement=i+(r?'-'+r:''),t.offsets.popper=ie({},t.offsets.popper,N(t.instance.popper,t.offsets.reference,t.placement)),t=M(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,o=i.popper,r=i.reference,p=-1!==['left','right'].indexOf(a),n=-1===['top','left'].indexOf(a);return o[p?'left':'top']=r[a]-(n?o[p?'width':'height']:0),t.placement=_(e),t.offsets.popper=L(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Q(t.instance.modifiers,'hide','preventOverflow'))return t;var e=t.offsets.reference,a=H(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,o=t.offsets.popper,r=H(t.instance.modifiers,function(t){return'applyStyle'===t.name}).gpuAcceleration;void 0!==r&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var p,n,s=void 0===r?e.gpuAcceleration:r,l=u(t.instance.popper),d=O(l),c={position:o.position},m={left:Nt(o.left),top:Nt(o.top),bottom:Nt(o.bottom),right:Nt(o.right)},f='bottom'===a?'top':'bottom',h='right'===i?'left':'right',b=z('transform');if(n='bottom'==f?-d.height+m.bottom:m.top,p='right'==h?-d.width+m.right:m.left,s&&b)c[b]='translate3d('+p+'px, '+n+'px, 0)',c[f]=0,c[h]=0,c.willChange='transform';else{var y='bottom'==f?-1:1,g='right'==h?-1:1;c[f]=n*y,c[h]=p*g,c.willChange=f+', '+h}var w={"x-placement":t.placement};return t.attributes=ie({},w,t.attributes),t.styles=ie({},c,t.styles),t.arrowStyles=ie({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(t){return Z(t.instance.popper,t.styles),$(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&Z(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,a,i,o){var r=D(o,e,t),p=X(a.placement,r,e,t,a.modifiers.flip.boundariesElement,a.modifiers.flip.padding);return e.setAttribute('x-placement',p),Z(e,{position:'absolute'}),a},gpuAcceleration:void 0}}};var se={};if(Rt){var le=Element.prototype;se=le.matches||le.matchesSelector||le.webkitMatchesSelector||le.mozMatchesSelector||le.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=se,de={},ce=function(t){return function(e){return e===de&&t}},me=function(){function t(e){for(var a in qt(this,t),e)this[a]=e[a];this.state={destroyed:!1,visible:!1,enabled:!0},this._=ce({mutationObservers:[]})}return Ft(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,o=this.options,p=d(a),n=p.tooltip,s=p.backdrop,l=p.content;return o.dynamicTitle&&!i.getAttribute('data-original-title')?void 0:i.refObj||document.documentElement.contains(i)?void(o.onShow.call(a,this),t=bt(void 0===t?o.duration:t,0),yt([a,n,s],0),a.style.visibility='visible',this.state.visible=!0,Tt.call(this,function(){if(e.state.visible){if((!o.followCursor||Wt.usingTouch)&&e.popperInstance.scheduleUpdate(),o.followCursor&&!Wt.usingTouch){e.popperInstance.disableEventListeners();var p=Array.isArray(o.delay)?o.delay[0]:o.delay;e._(de).lastTriggerEvent&&e._(de).followCursorListener(p&&e._(de).lastMouseMoveEvent?e._(de).lastMouseMoveEvent:e._(de).lastTriggerEvent)}yt([n,s,s?l:null],t),s&&getComputedStyle(s)[r('transform')],o.interactive&&i.classList.add('tippy-active'),o.sticky&&At.call(e),ut([n,s],'visible'),St.call(e,t,function(){o.updateDuration||n.classList.add('tippy-notransition'),o.interactive&>(a),i.setAttribute('aria-describedby','tippy-'+e.id),o.onShown.call(a,e)})}})):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,o=this.options,r=d(a),p=r.tooltip,n=r.backdrop,s=r.content;o.onHide.call(a,this),t=bt(void 0===t?o.duration:t,1),o.updateDuration||p.classList.remove('tippy-notransition'),o.interactive&&i.classList.remove('tippy-active'),a.style.visibility='hidden',this.state.visible=!1,yt([p,n,n?s:null],t),ut([p,n],'hidden'),o.interactive&&-1<o.trigger.indexOf('click')&>(i),ft(function(){St.call(e,t,function(){e.state.visible||!o.appendTo.contains(a)||(!e._(de).isPreparingToShow&&(document.removeEventListener('mousemove',e._(de).followCursorListener),e._(de).lastMouseMoveEvent=null),i.removeAttribute('aria-describedby'),e.popperInstance.disableEventListeners(),o.appendTo.removeChild(a),o.onHidden.call(a,e))})})}}},{key:'destroy',value:function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;if(!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','data-tippy-delegate'].forEach(function(e){t.reference.removeAttribute(e)}),this.options.target&&e&&a(this.reference.querySelectorAll(this.options.target)).forEach(function(t){return t._tippy&&t._tippy.destroy()}),this.popperInstance&&this.popperInstance.destroy(),this._(de).mutationObservers.forEach(function(t){t.disconnect()}),this.state.destroyed=!0}}}]),t}(),fe=1,he=!1;return Dt.browser=Wt,Dt.defaults=zt,function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:'';if(Rt&&Wt.supported){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{bottom:-8px;margin:0 6px;-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=top] .tippy-roundarrow svg{position:absolute;left:0;-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 7px;-webkit-transform-origin:50% 0;transform-origin:50% 0}.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{top:-8px;margin:0 6px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.tippy-popper[x-placement^=bottom] .tippy-roundarrow svg{position:absolute;left:0;-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 7px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.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{right:-16px;margin:4px 0;-webkit-transform-origin:33.33333333% 50%;transform-origin:33.33333333% 50%}.tippy-popper[x-placement^=left] .tippy-roundarrow svg{position:absolute;left:0;-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:4px 0;-webkit-transform-origin:0 50%;transform-origin:0 50%}.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{left:-16px;margin:4px 0;-webkit-transform-origin:66.66666666% 50%;transform-origin:66.66666666% 50%}.tippy-popper[x-placement^=right] .tippy-roundarrow svg{position:absolute;left:0;-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:4px 0;-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.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] .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-roundarrow{width:24px;height:8px;fill:#333;pointer-events:none}.tippy-roundarrow path{pointer-events:auto}.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);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop:after{content:"";float:left;padding-top:100%}body:not(.tippy-touch) .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%)}body:not(.tippy-touch) .tippy-tooltip[data-animatefill][data-state=hidden] .tippy-content{-webkit-clip-path:ellipse(5% 50% at 50% 50%);clip-path:ellipse(5% 50% at 50% 50%)}body:not(.tippy-touch) .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%)}body:not(.tippy-touch) .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%)}body:not(.tippy-touch) .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%)}body:not(.tippy-touch) .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)}}'),Dt}); |
@@ -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){return'[object Object]'===Object.prototype.toString.call(e)}function o(e){return[].slice.call(e)}function n(e){if(e instanceof Element||t(e))return[e];if(e instanceof NodeList)return o(e);if(Array.isArray(e))return e;try{return o(document.querySelectorAll(e))}catch(e){return[]}}function r(e){for(var t=[!1,'webkit'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof document.body.style[r])return r}return null}function s(e,t,o){var i=o.arrow,n=o.arrowType,s=o.arrowTransform,a=o.animateFill,p=o.inertia,l=o.animation,d=o.size,c=o.theme,f=o.html,m=o.zIndex,u=o.interactive,h=o.maxWidth,g=document.createElement('div');g.setAttribute('class','tippy-popper'),g.setAttribute('role','tooltip'),g.setAttribute('id','tippy-'+e),g.style.zIndex=m,g.style.maxWidth=h;var b=document.createElement('div');if(b.setAttribute('class','tippy-tooltip'),b.setAttribute('data-size',d),b.setAttribute('data-animation',l),b.setAttribute('data-state','hidden'),c.split(' ').forEach(function(e){b.classList.add(e+'-theme')}),i){var y=document.createElement('div');y.style[r('transform')]=s,'round'===n?(y.classList.add('tippy-roundarrow'),y.innerHTML='<svg viewBox="0 0 24 8" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M1 8s4.577-.019 7.253-4.218c2.357-3.698 5.175-3.721 7.508 0C18.404 7.997 23 8 23 8H1z"/></svg>'):y.classList.add('tippy-arrow'),b.appendChild(y)}if(a){b.setAttribute('data-animatefill','');var v=document.createElement('div');v.setAttribute('data-state','hidden'),v.classList.add('tippy-backdrop'),b.appendChild(v)}p&&b.setAttribute('data-inertia',''),u&&b.setAttribute('data-interactive','');var w=document.createElement('div');if(w.setAttribute('class','tippy-content'),f){var E;f instanceof Element?(w.appendChild(f),E='#'+f.id||'tippy-html-template'):(w.innerHTML=document.querySelector(f).innerHTML,E=f),g.setAttribute('data-html',''),u&&g.setAttribute('tabindex','-1'),b.setAttribute('data-template-id',E)}else w.innerHTML=t;return b.appendChild(w),g.appendChild(b),g}function a(e,t,o,i){var n=o.handleTrigger,r=o.handleMouseLeave,s=o.handleBlur,a=o.handleDelegateShow,p=o.handleDelegateHide,l=[];if('manual'===e)return l;var d=function(e,o){t.addEventListener(e,o),l.push({event:e,handler:o})};return i.target?(Ae.supportsTouch&&i.touchHold&&(d('touchstart',a),d('touchend',p)),'mouseenter'===e&&(d('mouseover',a),d('mouseout',p)),'focus'===e&&(d('focusin',a),d('focusout',p)),'click'===e&&d('click',a)):(d(e,n),Ae.supportsTouch&&i.touchHold&&(d('touchstart',n),d('touchend',r)),'mouseenter'===e&&d('mouseleave',r),'focus'===e&&d('blur',s)),l}function p(e,t){var o=_e.reduce(function(o,i){var n=e.getAttribute('data-tippy-'+i.toLowerCase())||t[i];return'false'===n&&(n=!1),'true'===n&&(n=!0),isFinite(n)&&!isNaN(parseFloat(n))&&(n=parseFloat(n)),'target'!==i&&'string'==typeof n&&'['===n.trim().charAt(0)&&(n=JSON.parse(n)),o[i]=n,o},{});return De({},t,o)}function l(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 d(e){return{tooltip:e.querySelector(Ce.TOOLTIP),backdrop:e.querySelector(Ce.BACKDROP),content:e.querySelector(Ce.CONTENT)}}function c(e){var t=e.getAttribute('title');t&&e.setAttribute('data-original-title',t),e.removeAttribute('title')}function f(e){return e&&'[object Function]'==={}.toString.call(e)}function m(e,t){if(1!==e.nodeType)return[];var o=getComputedStyle(e,null);return t?o[t]:o}function u(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function h(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var t=m(e),o=t.overflow,i=t.overflowX,n=t.overflowY;return /(auto|scroll)/.test(o+n+i)?e:h(u(e))}function g(e){var t=e&&e.offsetParent,o=t&&t.nodeName;return o&&'BODY'!==o&&'HTML'!==o?-1!==['TD','TABLE'].indexOf(t.nodeName)&&'static'===m(t,'position')?g(t):t:e?e.ownerDocument.documentElement:document.documentElement}function b(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||g(e.firstElementChild)===e)}function y(e){return null===e.parentNode?e:y(e.parentNode)}function v(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,n=o?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(n,0);var s=r.commonAncestorContainer;if(e!==s&&t!==s||i.contains(n))return b(s)?s:g(s);var a=y(e);return a.host?v(a.host,t):v(e,y(t).host)}function w(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',i=e.nodeName;if('BODY'===i||'HTML'===i){var n=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||n;return r[o]}return e[o]}function E(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=w(t,'top'),n=w(t,'left'),r=o?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=n*r,e.right+=n*r,e}function L(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 O(e,t,o,i){return xe(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],Ue()?o['offset'+e]+i['margin'+('Height'===e?'Top':'Left')]+i['margin'+('Height'===e?'Bottom':'Right')]:0)}function x(){var e=document.body,t=document.documentElement,o=Ue()&&getComputedStyle(t);return{height:O('Height',e,t,o),width:O('Width',e,t,o)}}function k(e){return ze({},e,{right:e.left+e.width,bottom:e.top+e.height})}function A(e){var t={};if(Ue())try{t=e.getBoundingClientRect();var o=w(e,'top'),i=w(e,'left');t.top+=o,t.left+=i,t.bottom+=o,t.right+=i}catch(e){}else t=e.getBoundingClientRect();var n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},r='HTML'===e.nodeName?x():{},s=r.width||e.clientWidth||n.right-n.left,a=r.height||e.clientHeight||n.bottom-n.top,p=e.offsetWidth-s,l=e.offsetHeight-a;if(p||l){var d=m(e);p-=L(d,'x'),l-=L(d,'y'),n.width-=p,n.height-=l}return k(n)}function C(e,t){var o=Ue(),i='HTML'===t.nodeName,n=A(e),r=A(t),s=h(e),a=m(t),p=parseFloat(a.borderTopWidth,10),l=parseFloat(a.borderLeftWidth,10),d=k({top:n.top-r.top-p,left:n.left-r.left-l,width:n.width,height:n.height});if(d.marginTop=0,d.marginLeft=0,!o&&i){var c=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=E(d,t)),d}function S(e){var t=e.ownerDocument.documentElement,o=C(e,t),i=xe(t.clientWidth,window.innerWidth||0),n=xe(t.clientHeight,window.innerHeight||0),r=w(t),s=w(t,'left'),a={top:r-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:n};return k(a)}function _(e){var t=e.nodeName;return'BODY'===t||'HTML'===t?!1:'fixed'===m(e,'position')||_(u(e))}function I(e,t,o,i){var n={top:0,left:0},r=v(e,t);if('viewport'===i)n=S(r);else{var s;'scrollParent'===i?(s=h(u(t)),'BODY'===s.nodeName&&(s=e.ownerDocument.documentElement)):'window'===i?s=e.ownerDocument.documentElement:s=i;var a=C(s,r);if('HTML'===s.nodeName&&!_(r)){var p=x(),l=p.height,d=p.width;n.top+=a.top-a.marginTop,n.bottom=l+a.top,n.left+=a.left-a.marginLeft,n.right=d+a.left}else n=a}return n.left+=o,n.top+=o,n.right-=o,n.bottom-=o,n}function P(e){var t=e.width,o=e.height;return t*o}function D(e,t,o,i,n){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var s=I(o,i,r,n),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},p=Object.keys(a).map(function(e){return ze({key:e},a[e],{area:P(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 N(e,t,o){var i=v(t,o);return C(o,i)}function H(e){var t=getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight),n={width:e.offsetWidth+i,height:e.offsetHeight+o};return n}function R(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 M(e,t,o){o=o.split('-')[0];var i=H(e),n={width:i.width,height:i.height},r=-1!==['right','left'].indexOf(o),s=r?'top':'left',a=r?'left':'top',p=r?'height':'width',l=r?'width':'height';return n[s]=t[s]+t[p]/2-i[p]/2,n[a]=o===a?t[a]-i[l]:t[R(a)],n}function B(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function W(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var i=B(e,function(e){return e[t]===o});return e.indexOf(i)}function U(e,t,o){var i=void 0===o?e:e.slice(0,W(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&&f(o)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=o(t,e))}),t}function Y(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=N(this.state,this.popper,this.reference),e.placement=D(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=M(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=U(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 F(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length-1;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof document.body.style[r])return r}return null}function z(){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[F('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function j(e){var t=e.ownerDocument;return t?t.defaultView:window}function X(e,t,o,i){var n='BODY'===e.nodeName,r=n?e.ownerDocument.defaultView:e;r.addEventListener(t,o,{passive:!0}),n||X(h(r.parentNode),t,o,i),i.push(r)}function K(e,t,o,i){o.updateBound=i,j(e).addEventListener('resize',o.updateBound,{passive:!0});var n=h(e);return X(n,'scroll',o.updateBound,o.scrollParents),o.scrollElement=n,o.eventsEnabled=!0,o}function V(){this.state.eventsEnabled||(this.state=K(this.reference,this.options,this.state,this.scheduleUpdate))}function G(e,t){return j(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 Q(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=G(this.reference,this.state))}function J(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Z(e,t){Object.keys(t).forEach(function(o){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&J(t[o])&&(i='px'),e.style[o]=t[o]+i})}function $(e,t){Object.keys(t).forEach(function(o){var i=t[o];!1===i?e.removeAttribute(o):e.setAttribute(o,t[o])})}function ee(e,t,o){var i=B(e,function(e){var o=e.name;return o===t}),n=!!i&&e.some(function(e){return e.name===o&&e.enabled&&e.order<i.order});if(!n){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return n}function te(e){return'end'===e?'start':'start'===e?'end':e}function oe(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=Xe.indexOf(e),i=Xe.slice(o+1).concat(Xe.slice(0,o));return t?i.reverse():i}function ie(e,t,o,i){var n=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+n[1],s=n[2];if(!r)return e;if(0===s.indexOf('%')){var a;switch(s){case'%p':a=o;break;case'%':case'%r':default:a=i;}var p=k(a);return p[t]/100*r}if('vh'===s||'vw'===s){var l;return l='vh'===s?xe(document.documentElement.clientHeight,window.innerHeight||0):xe(document.documentElement.clientWidth,window.innerWidth||0),l/100*r}return r}function ne(e,t,o,i){var n=[0,0],r=-1!==['right','left'].indexOf(i),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=s.indexOf(B(s,function(e){return-1!==e.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var p=/\s*,\s*|\s+/,l=-1===a?[s]:[s.slice(0,a).concat([s[a].split(p)[0]]),[s[a].split(p)[1],s.slice(a+1)]];return l=l.map(function(e,i){var n=(1===i?!r:r)?'height':'width',s=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)},[]).map(function(e){return ie(e,n,t,o)})}),l.forEach(function(e,t){e.forEach(function(o,i){J(o)&&(n[t]+=o*('-'===e[i-1]?-1:1))})}),n}function se(e){return e.getAttribute('x-placement').replace(/-.+/,'')}function re(e,t,o){if(!t.getAttribute('x-placement'))return!0;var i=e.clientX,n=e.clientY,r=o.interactiveBorder,s=o.distance,a=t.getBoundingClientRect(),p=se(t),l=r+s,d={top:a.top-n>r,bottom:n-a.bottom>r,left:a.left-i>r,right:i-a.right>r};return'top'===p?d.top=a.top-n>l:'bottom'===p?d.bottom=n-a.bottom>l:'left'===p?d.left=a.left-i>l:'right'===p?d.right=i-a.right>l:void 0,d.top||d.bottom||d.left||d.right}function ae(e,t,o,i){if(!t.length)return'';var n={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 n[e]}function pe(e,t){if(!e)return'';return t?e:{X:'Y',Y:'X'}[e]}function le(e,t,o){var i=se(e),n='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'+pe(d.translate.axis,n)+'('+ae('translate',d.translate.numbers,n,s)+')').replace(l.scale,'scale'+pe(d.scale.axis,n)+'('+ae('scale',d.scale.numbers,n,s)+')');t.style[r('transform')]=c}function de(e){return-(e-Se.distance)+'px'}function ce(e){requestAnimationFrame(function(){setTimeout(e,1)})}function fe(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 me(e,t){return Array.isArray(e)?e[t]:e}function ue(e,t){e.forEach(function(e){e&&e.setAttribute('data-state',t)})}function he(e,t){e.forEach(function(e){e&&(e.style[r('transitionDuration')]=t+'ms')})}function ge(e){void e.offsetHeight}function be(e){var t=window.scrollX||window.pageXOffset,o=window.scrollY||window.pageYOffset;e.focus(),scroll(t,o)}function ye(e,t){return e.reduce(function(e,o){var i=tt,n=l(o,t.performance?t:p(o,t)),r=o.getAttribute('title');if(!r&&!n.target&&!n.html&&!n.dynamicTitle)return e;o.setAttribute(n.target?'data-tippy-delegate':'data-tippy',''),c(o);var f=s(i,r,n),m=new T({id:i,reference:o,popper:f,options:n,title:r,popperInstance:null});n.createPopperInstanceOnInit&&(m.popperInstance=$e.call(m),m.popperInstance.disableEventListeners());var u=Ze.call(m);return m.listeners=n.trigger.trim().split(' ').reduce(function(e,t){return e.concat(a(t,o,u,n))},[]),n.dynamicTitle&&et.call(m,{target:o,callback:function(){var e=d(f),t=e.content,i=o.getAttribute('title');i&&(t.innerHTML=m.title=i,c(o))},options:{attributes:!0}}),o._tippy=m,f._tippy=m,f._reference=o,e.push(m),tt++,e},[])}function ve(e){var t=o(document.querySelectorAll(Ce.POPPER));t.forEach(function(t){var o=t._tippy,i=o.options;(!0===i.hideOnClick||-1<i.trigger.indexOf('focus'))&&(!e||t!==e.popper)&&o.hide()})}function we(){var t=function(){Ae.usingTouch||(Ae.usingTouch=!0,Ae.iOS&&document.body.classList.add('tippy-touch'),Ae.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',o),Ae.onUserInputChange('touch'))},o=function(){var e;return function(){var t=performance.now();20>t-e&&(Ae.usingTouch=!1,document.removeEventListener('mousemove',o),!Ae.iOS&&document.body.classList.remove('tippy-touch'),Ae.onUserInputChange('mouse')),e=t}}();document.addEventListener('click',function(e){if(!(e.target instanceof Element))return ve();var t=fe(e.target,Ce.REFERENCE),o=fe(e.target,Ce.POPPER);if(!(o&&o._reference._tippy.options.interactive)){if(t){var i=t._tippy.options;if(!i.multiple&&Ae.usingTouch||!i.multiple&&-1<i.trigger.indexOf('click'))return ve(t._tippy);if(!0!==i.hideOnClick||-1<i.trigger.indexOf('click'))return}ve()}}),document.addEventListener('touchstart',t),window.addEventListener('blur',function(){var t=document,o=t.activeElement;o&&o.blur&&e.call(o,Ce.REFERENCE)&&o.blur()}),!Ae.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',t)}function Ee(e,o){return Ae.supported&&!Ae._eventListenersBound&&(we(),Ae._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]}}),o=De({},Se,o),{selector:e,options:o,tooltips:Ae.supported?ye(n(e),o):[],destroyAll:function(){this.tooltips.forEach(function(e){return e.destroy()}),this.tooltips=[]}}}var Te=Math.round,Le=Math.min,Oe=Math.floor,xe=Math.max,ke='undefined'!=typeof window,Ae={};ke&&(Ae.supported='requestAnimationFrame'in window,Ae.supportsTouch='ontouchstart'in window,Ae.usingTouch=!1,Ae.dynamicInputDetection=!0,Ae.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,Ae.onUserInputChange=function(){},Ae._eventListenersBound=!1);for(var Ce={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},Se={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:'',target:null,popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},_e=Ae.supported&&Object.keys(Se),Ie=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},Pe=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,('value'in o)&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),De=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},Ne='undefined'!=typeof window&&'undefined'!=typeof document,He=['Edge','Trident','Firefox'],Re=0,Me=0;Me<He.length;Me+=1)if(Ne&&0<=navigator.userAgent.indexOf(He[Me])){Re=1;break}var i,Be=Ne&&window.Promise,We=Be?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()},Re))}},Ue=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},Ye=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},qe=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),Fe=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},ze=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},je=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],Xe=je.slice(3),Ke={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},Ve=function(){function e(t,o){var i=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Ye(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=We(this.update.bind(this)),this.options=ze({},e.Defaults,n),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(ze({},e.Defaults.modifiers,n.modifiers)).forEach(function(t){i.options.modifiers[t]=ze({},e.Defaults.modifiers[t]||{},n.modifiers?n.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ze({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&f(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return qe(e,[{key:'update',value:function(){return Y.call(this)}},{key:'destroy',value:function(){return z.call(this)}},{key:'enableEventListeners',value:function(){return V.call(this)}},{key:'disableEventListeners',value:function(){return Q.call(this)}}]),e}();Ve.Utils=('undefined'==typeof window?global:window).PopperUtils,Ve.placements=je,Ve.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],i=t.split('-')[1];if(i){var n=e.offsets,r=n.reference,s=n.popper,a=-1!==['bottom','top'].indexOf(o),p=a?'left':'top',l=a?'width':'height',d={start:Fe({},p,r[p]),end:Fe({},p,r[p]+r[l]-s[l])};e.offsets.popper=ze({},s,d[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var o,i=t.offset,n=e.placement,r=e.offsets,s=r.popper,a=r.reference,p=n.split('-')[0];return o=J(+i)?[+i,0]:ne(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||g(e.instance.popper);e.instance.reference===o&&(o=g(o));var i=I(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=i;var n=t.priority,r=e.offsets.popper,s={primary:function(e){var o=r[e];return r[e]<i[e]&&!t.escapeWithReference&&(o=xe(r[e],i[e])),Fe({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=r[o];return r[e]>i[e]&&!t.escapeWithReference&&(n=Le(r[o],i[e]-('right'===e?r.width:r.height))),Fe({},o,n)}};return n.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';r=ze({},r,s[t](e))}),e.offsets.popper=r,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,i=t.reference,n=e.placement.split('-')[0],r=Oe,s=-1!==['top','bottom'].indexOf(n),a=s?'right':'bottom',p=s?'left':'top',l=s?'width':'height';return o[a]<r(i[p])&&(e.offsets.popper[p]=r(i[p])-o[l]),o[p]>r(i[a])&&(e.offsets.popper[p]=r(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var o;if(!ee(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 n=e.placement.split('-')[0],r=e.offsets,s=r.popper,a=r.reference,p=-1!==['left','right'].indexOf(n),l=p?'height':'width',d=p?'Top':'Left',c=d.toLowerCase(),f=p?'left':'top',u=p?'bottom':'right',h=H(i)[l];a[u]-h<s[c]&&(e.offsets.popper[c]-=s[c]-(a[u]-h)),a[c]+h>s[u]&&(e.offsets.popper[c]+=a[c]+h-s[u]),e.offsets.popper=k(e.offsets.popper);var g=a[c]+a[l]/2-h/2,b=m(e.instance.popper),y=parseFloat(b['margin'+d],10),v=parseFloat(b['border'+d+'Width'],10),w=g-e.offsets.popper[c]-y-v;return w=xe(Le(s[l]-h,w),0),e.arrowElement=i,e.offsets.arrow=(o={},Fe(o,c,Te(w)),Fe(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=I(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],n=R(i),r=e.placement.split('-')[1]||'',s=[];switch(t.behavior){case Ke.FLIP:s=[i,n];break;case Ke.CLOCKWISE:s=oe(i);break;case Ke.COUNTERCLOCKWISE:s=oe(i,!0);break;default:s=t.behavior;}return s.forEach(function(a,p){if(i!==a||s.length===p+1)return e;i=e.placement.split('-')[0],n=R(i);var l=e.offsets.popper,d=e.offsets.reference,c=Oe,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),u=c(l.right)>c(o.right),h=c(l.top)<c(o.top),g=c(l.bottom)>c(o.bottom),b='left'===i&&m||'right'===i&&u||'top'===i&&h||'bottom'===i&&g,y=-1!==['top','bottom'].indexOf(i),v=!!t.flipVariations&&(y&&'start'===r&&m||y&&'end'===r&&u||!y&&'start'===r&&h||!y&&'end'===r&&g);(f||b||v)&&(e.flipped=!0,(f||b)&&(i=s[p+1]),v&&(r=te(r)),e.placement=i+(r?'-'+r:''),e.offsets.popper=ze({},e.offsets.popper,M(e.instance.popper,e.offsets.reference,e.placement)),e=U(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],i=e.offsets,n=i.popper,r=i.reference,s=-1!==['left','right'].indexOf(o),a=-1===['top','left'].indexOf(o);return n[s?'left':'top']=r[o]-(a?n[s?'width':'height']:0),e.placement=R(t),e.offsets.popper=k(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ee(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=B(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,i=t.y,n=e.offsets.popper,r=B(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==r&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,a,p=void 0===r?t.gpuAcceleration:r,l=g(e.instance.popper),d=A(l),c={position:n.position},f={left:Oe(n.left),top:Oe(n.top),bottom:Oe(n.bottom),right:Oe(n.right)},m='bottom'===o?'top':'bottom',u='right'===i?'left':'right',h=F('transform');if(a='bottom'==m?-d.height+f.bottom:f.top,s='right'==u?-d.width+f.right:f.left,p&&h)c[h]='translate3d('+s+'px, '+a+'px, 0)',c[m]=0,c[u]=0,c.willChange='transform';else{var b='bottom'==m?-1:1,y='right'==u?-1:1;c[m]=a*b,c[u]=s*y,c.willChange=m+', '+u}var v={"x-placement":e.placement};return e.attributes=ze({},v,e.attributes),e.styles=ze({},c,e.styles),e.arrowStyles=ze({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return Z(e.instance.popper,e.styles),$(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Z(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,i,n){var r=N(n,t,e),s=D(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',s),Z(t,{position:'absolute'}),o},gpuAcceleration:void 0}}};var Ge={};if(ke){var Qe=Element.prototype;Ge=Qe.matches||Qe.matchesSelector||Qe.webkitMatchesSelector||Qe.mozMatchesSelector||Qe.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=Ge,Je=function(){function e(e){var t=fe(e.target,this.options.target);if(t&&!t._tippy){var o=t.getAttribute('title')||this.title;o&&(t.setAttribute('title',o),Ee(t,De({},this.options,{target:null})),t._tippy.show())}}function t(t){var o=this;if(a.call(this),!this.state.visible){if(this.options.target)return void e.call(this,t);if(this._(m).isPreparingToShow=!0,this.options.wait)return void this.options.wait.call(this.popper,this.show.bind(this),t);this.options.followCursor&&!Ae.usingTouch&&(!this._(m).followCursorListener&&p.call(this),document.addEventListener('mousemove',this._(m).followCursorListener));var i=Array.isArray(this.options.delay)?this.options.delay[0]:this.options.delay;i?this._(m).showTimeout=setTimeout(function(){o.show()},i):this.show()}}function i(){var e=this;if(a.call(this),!!this.state.visible){this._(m).isPreparingToShow=!1;var t=Array.isArray(this.options.delay)?this.options.delay[1]:this.options.delay;t?this._(m).hideTimeout=setTimeout(function(){e.state.visible&&e.hide()},t):this.hide()}}function n(){var e=this,t=this.popper,o=this.reference,i=this.options,n=d(t),s=n.tooltip,a=i.popperOptions,p='round'===i.arrowType?Ce.ROUND_ARROW:Ce.ARROW,l=s.querySelector(p),f=De({placement:i.placement},a||{},{modifiers:De({},a?a.modifiers:{},{arrow:De({element:p},a&&a.modifiers?a.modifiers.arrow:{}),flip:De({enabled:i.flip,padding:i.distance+5,behavior:i.flipBehavior},a&&a.modifiers?a.modifiers.flip:{}),offset:De({offset:i.offset},a&&a.modifiers?a.modifiers.offset:{})}),onCreate:function(){s.style[se(t)]=de(i.distance),l&&i.arrowTransform&&le(t,l,i.arrowTransform)},onUpdate:function(){var e=s.style;e.top='',e.bottom='',e.left='',e.right='',e[se(t)]=de(i.distance),l&&i.arrowTransform&&le(t,l,i.arrowTransform)}});return c.call(this,{target:t,callback:function(){var o=t.style;o[r('transitionDuration')]=null;var n=e.popperInstance.options.onUpdate;e.popperInstance.options.onUpdate=function(){ge(e.popper),o[r('transitionDuration')]=i.updateDuration+'ms',e.popperInstance.options.onUpdate=n},e.popperInstance.update()},options:{childList:!0,subtree:!0,characterData:!0}}),new Ve(o,t,f)}function s(e){var t=this;this.popperInstance?(this.popper.style[r('transform')]=null,this.popperInstance.scheduleUpdate(),(!this.options.followCursor||Ae.usingTouch)&&this.popperInstance.enableEventListeners()):this.popperInstance=n.call(this);var o=this.popperInstance.options.onCreate,i=this.popperInstance.options.onUpdate;this.popperInstance.options.onCreate=this.popperInstance.options.onUpdate=function(){ge(t.popper),e(),t.popperInstance.options.onUpdate=i,t.popperInstance.options.onCreate=o},this.options.appendTo.contains(this.popper)||this.options.appendTo.appendChild(this.popper)}function a(){var e=this._(m),t=e.showTimeout,o=e.hideTimeout;clearTimeout(t),clearTimeout(o)}function p(){var e=this;this._(m).followCursorListener=function(t){if(!(e._(m).lastTriggerEvent&&'focus'===e._(m).lastTriggerEvent.type)){e._(m).lastMouseMoveEvent=t;var o=document.documentElement.offsetWidth||document.body.offsetWidth,i=Te(e.popper.offsetWidth/2),n=Te(e.popper.offsetHeight/2),s=e.options.offset,a=t.pageX,p=t.pageY,l=5,d=e.options.placement.replace(/-.+/,'');e.popper.getAttribute('x-placement')&&(d=se(e.popper));var c,f;'top'===d?(c=a-i+s,f=p-2*n):'bottom'===d?(c=a-i+s,f=p+10):'left'===d?(c=a-2*i,f=p-n+s):'right'===d?(c=a+5,f=p-n+s):void 0;('top'===d||'bottom'===d)&&(a+l+i+s>o&&(c=o-l-2*i),0>a-l-i+s&&(c=l)),e.popper.style[r('transform')]='translate3d('+c+'px, '+f+'px, 0)'}}}function l(){var e=this,t=function(){e.popper.style[r('transitionDuration')]=e.options.updateDuration+'ms'},o=function(){e.popper.style[r('transitionDuration')]=''};ce(function i(){e.popperInstance&&e.popperInstance.scheduleUpdate(),t(),e.state.visible?requestAnimationFrame(i):o()})}function c(e){var t=e.target,o=e.callback,i=e.options;if(window.MutationObserver){var n=new MutationObserver(o);n.observe(t,i),this._(m).mutationObservers.push(n)}}function f(e,t){if(!e)return t();var o=d(this.popper),i=o.tooltip,n=function(e,t){t&&i[e+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',t)},r=function o(r){r.target===i&&(n('remove',o),t())};n('remove',this._(m).transitionendListener),n('add',r),this._(m).transitionendListener=r}var m={},u=function(e){return function(t){return t===m&&e}},h=function(){function e(t){for(var o in Ie(this,e),t)this[o]=t[o];this.state={destroyed:!1,visible:!1,enabled:!0},this._=u({mutationObservers:[]})}return Pe(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,n=this.options,a=d(o),p=a.tooltip,c=a.backdrop,u=a.content;return n.dynamicTitle&&!i.getAttribute('data-original-title')?void 0:i.refObj||document.documentElement.contains(i)?void(n.onShow.call(o,this),e=me(void 0===e?n.duration:e,0),he([o,p,c],0),o.style.visibility='visible',this.state.visible=!0,s.call(this,function(){if(t.state.visible){if((!n.followCursor||Ae.usingTouch)&&(t.popperInstance.scheduleUpdate(),he([o],n.updateDuration)),n.followCursor&&!Ae.usingTouch){t.popperInstance.disableEventListeners();var s=Array.isArray(n.delay)?n.delay[0]:n.delay;t._(m).lastTriggerEvent&&t._(m).followCursorListener(s&&t._(m).lastMouseMoveEvent?t._(m).lastMouseMoveEvent:t._(m).lastTriggerEvent)}he([p,c,c?u:null],e),c&&getComputedStyle(c)[r('transform')],n.interactive&&i.classList.add('tippy-active'),n.sticky&&l.call(t),ue([p,c],'visible'),f.call(t,e,function(){n.updateDuration||p.classList.add('tippy-notransition'),n.interactive&&be(o),i.setAttribute('aria-describedby','tippy-'+t.id),n.onShown.call(o,t)})}})):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,n=this.options,r=d(o),s=r.tooltip,a=r.backdrop,p=r.content;n.onHide.call(o,this),e=me(void 0===e?n.duration:e,1),n.updateDuration||s.classList.remove('tippy-notransition'),n.interactive&&i.classList.remove('tippy-active'),o.style.visibility='hidden',this.state.visible=!1,he([s,a,a?p:null],e),ue([s,a],'hidden'),n.interactive&&-1<n.trigger.indexOf('click')&&be(i),ce(function(){f.call(t,e,function(){t.state.visible||!n.appendTo.contains(o)||(!t._(m).isPreparingToShow&&(document.removeEventListener('mousemove',t._(m).followCursorListener),t._(m).lastMouseMoveEvent=null),i.removeAttribute('aria-describedby'),t.popperInstance.disableEventListeners(),n.appendTo.removeChild(o),n.onHidden.call(o,t))})})}}},{key:'destroy',value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;if(!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','data-tippy-delegate'].forEach(function(t){e.reference.removeAttribute(t)}),this.options.target&&t&&o(this.reference.querySelectorAll(this.options.target)).forEach(function(e){return e._tippy&&e._tippy.destroy()}),this.popperInstance&&this.popperInstance.destroy(),this._(m).mutationObservers.forEach(function(e){e.disconnect()}),this.state.destroyed=!0}}}]),e}();return{Tippy:h,_getEventListeners:function(){var e=this;return{handleTrigger:function(o){if(e.state.enabled){var n=Ae.supportsTouch&&Ae.usingTouch&&-1<['mouseenter','mouseover','focus'].indexOf(o.type);n&&e.options.touchHold||(e._(m).lastTriggerEvent=o,'click'===o.type&&'persistent'!==e.options.hideOnClick&&e.state.visible?i.call(e):t.call(e,o),n&&Ae.iOS&&e.reference.click&&e.reference.click())}},handleMouseLeave:function(t){if(!(-1<['mouseleave','mouseout'].indexOf(t.type)&&Ae.supportsTouch&&Ae.usingTouch&&e.options.touchHold)){if(e.options.interactive){var o=i.bind(e),n=function t(n){var r=fe(n.target,Ce.REFERENCE),s=fe(n.target,Ce.POPPER)===e.popper,a=r===e.reference;s||a||re(n,e.popper,e.options)&&(document.body.removeEventListener('mouseleave',o),document.removeEventListener('mousemove',t),i.call(e))};return document.body.addEventListener('mouseleave',o),void document.addEventListener('mousemove',n)}i.call(e)}},handleBlur:function(t){!t.relatedTarget||Ae.usingTouch||fe(t.relatedTarget,Ce.POPPER)||i.call(e)},handleDelegateShow:function(o){fe(o.target,e.options.target)&&t.call(e,o)},handleDelegateHide:function(t){fe(t.target,e.options.target)&&i.call(e)}}},_addMutationObserver:c,_createPopperInstance:n,_onTransitionEnd:f}}(),T=Je.Tippy,Ze=Je._getEventListeners,$e=Je._createPopperInstance,et=Je._addMutationObserver,tt=1;return Ee.browser=Ae,Ee.defaults=Se,Ee}); | ||
(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.tippy=t()})(this,function(){'use strict';function t(e){return'[object Object]'===Object.prototype.toString.call(e)}function o(e){return[].slice.call(e)}function r(e){if(e instanceof Element||t(e))return[e];if(e instanceof NodeList)return o(e);if(Array.isArray(e))return e;try{return o(document.querySelectorAll(e))}catch(e){return[]}}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.arrow,r=o.arrowType,s=o.arrowTransform,a=o.animateFill,p=o.inertia,l=o.animation,d=o.size,c=o.theme,f=o.html,m=o.zIndex,u=o.interactive,h=o.maxWidth,g=document.createElement('div');g.setAttribute('class','tippy-popper'),g.setAttribute('role','tooltip'),g.setAttribute('id','tippy-'+e),g.style.zIndex=m,g.style.maxWidth=h;var b=document.createElement('div');if(b.setAttribute('class','tippy-tooltip'),b.setAttribute('data-size',d),b.setAttribute('data-animation',l),b.setAttribute('data-state','hidden'),c.split(' ').forEach(function(e){b.classList.add(e+'-theme')}),i){var y=document.createElement('div');y.style[n('transform')]=s,'round'===r?(y.classList.add('tippy-roundarrow'),y.innerHTML='<svg viewBox="0 0 24 8" xmlns="http://www.w3.org/2000/svg"><path d="M1 8s4.577-.019 7.253-4.218c2.357-3.698 5.175-3.721 7.508 0C18.404 7.997 23 8 23 8H1z"/></svg>'):y.classList.add('tippy-arrow'),b.appendChild(y)}if(a){b.setAttribute('data-animatefill','');var v=document.createElement('div');v.setAttribute('data-state','hidden'),v.classList.add('tippy-backdrop'),b.appendChild(v)}p&&b.setAttribute('data-inertia',''),u&&b.setAttribute('data-interactive','');var w=document.createElement('div');if(w.setAttribute('class','tippy-content'),f){var E;f instanceof Element?(w.appendChild(f),E='#'+f.id||'tippy-html-template'):(w.innerHTML=document.querySelector(f).innerHTML,E=f),g.setAttribute('data-html',''),u&&g.setAttribute('tabindex','-1'),b.setAttribute('data-template-id',E)}else w.innerHTML=t;return b.appendChild(w),g.appendChild(b),g}function a(e,t,o,i){var r=o.handleTrigger,n=o.handleMouseLeave,s=o.handleBlur,a=o.handleDelegateShow,p=o.handleDelegateHide,l=[];if('manual'===e)return l;var d=function(e,o){t.addEventListener(e,o),l.push({event:e,handler:o})};return i.target?(Ue.supportsTouch&&i.touchHold&&(d('touchstart',a),d('touchend',p)),'mouseenter'===e&&(d('mouseover',a),d('mouseout',p)),'focus'===e&&(d('focusin',a),d('focusout',p)),'click'===e&&d('click',a)):(d(e,r),Ue.supportsTouch&&i.touchHold&&(d('touchstart',r),d('touchend',n)),'mouseenter'===e&&d('mouseleave',n),'focus'===e&&d(Be?'focusout':'blur',s)),l}function p(e,t){var o=Fe.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)),'target'!==i&&'string'==typeof r&&'['===r.trim().charAt(0)&&(r=JSON.parse(r)),o[i]=r,o},{});return Xe({},t,o)}function l(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 d(e){return{tooltip:e.querySelector(qe.TOOLTIP),backdrop:e.querySelector(qe.BACKDROP),content:e.querySelector(qe.CONTENT)}}function c(e){var t=e.getAttribute('title');t&&e.setAttribute('data-original-title',t),e.removeAttribute('title')}function f(e){return e&&'[object Function]'==={}.toString.call(e)}function m(e,t){if(1!==e.nodeType)return[];var o=getComputedStyle(e,null);return t?o[t]:o}function u(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function h(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var t=m(e),o=t.overflow,i=t.overflowX,r=t.overflowY;return /(auto|scroll)/.test(o+r+i)?e:h(u(e))}function g(e){var t=e&&e.offsetParent,o=t&&t.nodeName;return o&&'BODY'!==o&&'HTML'!==o?-1!==['TD','TABLE'].indexOf(t.nodeName)&&'static'===m(t,'position')?g(t):t:e?e.ownerDocument.documentElement:document.documentElement}function b(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||g(e.firstElementChild)===e)}function y(e){return null===e.parentNode?e:y(e.parentNode)}function v(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 b(s)?s:g(s);var a=y(e);return a.host?v(a.host,t):v(e,y(t).host)}function w(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 E(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=w(t,'top'),r=w(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 T(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 L(e,t,o,i){return Me(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],$e()?o['offset'+e]+i['margin'+('Height'===e?'Top':'Left')]+i['margin'+('Height'===e?'Bottom':'Right')]:0)}function O(){var e=document.body,t=document.documentElement,o=$e()&&getComputedStyle(t);return{height:L('Height',e,t,o),width:L('Width',e,t,o)}}function x(e){return it({},e,{right:e.left+e.width,bottom:e.top+e.height})}function A(e){var t={};if($e())try{t=e.getBoundingClientRect();var o=w(e,'top'),i=w(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?O():{},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=m(e);p-=T(d,'x'),l-=T(d,'y'),r.width-=p,r.height-=l}return x(r)}function k(e,t){var o=$e(),i='HTML'===t.nodeName,r=A(e),n=A(t),s=h(e),a=m(t),p=parseFloat(a.borderTopWidth,10),l=parseFloat(a.borderLeftWidth,10),d=x({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=E(d,t)),d}function C(e){var t=e.ownerDocument.documentElement,o=k(e,t),i=Me(t.clientWidth,window.innerWidth||0),r=Me(t.clientHeight,window.innerHeight||0),n=w(t),s=w(t,'left'),a={top:n-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:r};return x(a)}function S(e){var t=e.nodeName;return'BODY'===t||'HTML'===t?!1:'fixed'===m(e,'position')||S(u(e))}function P(e,t,o,i){var r={top:0,left:0},n=v(e,t);if('viewport'===i)r=C(n);else{var s;'scrollParent'===i?(s=h(u(t)),'BODY'===s.nodeName&&(s=e.ownerDocument.documentElement)):'window'===i?s=e.ownerDocument.documentElement:s=i;var a=k(s,n);if('HTML'===s.nodeName&&!S(n)){var p=O(),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 D(e){var t=e.width,o=e.height;return t*o}function I(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=P(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 it({key:e},a[e],{area:D(a[e])})}).sort(function(e,t){return t.area-e.area}),l=p.filter(function(e){var t=e.width,i=e.height;return t>=o.clientWidth&&i>=o.clientHeight}),d=0<l.length?l[0].key:p[0].key,c=e.split('-')[1];return d+(c?'-'+c:'')}function _(e,t,o){var i=v(t,o);return k(o,i)}function N(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 H(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 R(e,t,o){o=o.split('-')[0];var i=N(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[H(a)],r}function M(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function W(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var i=M(e,function(e){return e[t]===o});return e.indexOf(i)}function B(e,t,o){var i=void 0===o?e:e.slice(0,W(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&&f(o)&&(t.offsets.popper=x(t.offsets.popper),t.offsets.reference=x(t.offsets.reference),t=o(t,e))}),t}function U(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=_(this.state,this.popper,this.reference),e.placement=I(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=R(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=B(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 Y(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 F(){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[Y('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function z(e){var t=e.ownerDocument;return t?t.defaultView:window}function j(e,t,o,i){var r='BODY'===e.nodeName,n=r?e.ownerDocument.defaultView:e;n.addEventListener(t,o,{passive:!0}),r||j(h(n.parentNode),t,o,i),i.push(n)}function X(e,t,o,i){o.updateBound=i,z(e).addEventListener('resize',o.updateBound,{passive:!0});var r=h(e);return j(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function K(){this.state.eventsEnabled||(this.state=X(this.reference,this.options,this.state,this.scheduleUpdate))}function V(e,t){return z(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 G(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=V(this.reference,this.state))}function J(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Q(e,t){Object.keys(t).forEach(function(o){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&J(t[o])&&(i='px'),e.style[o]=t[o]+i})}function Z(e,t){Object.keys(t).forEach(function(o){var i=t[o];!1===i?e.removeAttribute(o):e.setAttribute(o,t[o])})}function $(e,t,o){var i=M(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 ee(e){return'end'===e?'start':'start'===e?'end':e}function te(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=nt.indexOf(e),i=nt.slice(o+1).concat(nt.slice(0,o));return t?i.reverse():i}function oe(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=x(a);return p[t]/100*n}if('vh'===s||'vw'===s){var l;return l='vh'===s?Me(document.documentElement.clientHeight,window.innerHeight||0):Me(document.documentElement.clientWidth,window.innerWidth||0),l/100*n}return n}function ie(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(M(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 oe(e,r,t,o)})}),l.forEach(function(e,t){e.forEach(function(o,i){J(o)&&(r[t]+=o*('-'===e[i-1]?-1:1))})}),r}function re(e){var t=e.style;t[n('transform')]=null,t.top=null,t.left=null}function ne(e){void e.offsetHeight}function se(e,t,o){var i=e.popper,r=e.options,n=r.onCreate,s=r.onUpdate;r.onCreate=r.onUpdate=function(){ne(i),t&&t(),s(),r.onCreate=n,r.onUpdate=s},o||e.scheduleUpdate()}function ae(e){return e.getAttribute('x-placement').replace(/-.+/,'')}function pe(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=ae(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 le(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 de(e,t){if(!e)return'';return t?e:{X:'Y',Y:'X'}[e]}function ce(e,t,o){var i=ae(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'+de(d.translate.axis,r)+'('+le('translate',d.translate.numbers,r,s)+')').replace(l.scale,'scale'+de(d.scale.axis,r)+'('+le('scale',d.scale.numbers,r,s)+')');t.style[n('transform')]=c}function fe(e){return-(e-Ye.distance)+'px'}function me(e){requestAnimationFrame(function(){setTimeout(e,1)})}function ue(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 he(e,t){return Array.isArray(e)?e[t]:e}function ge(e,t){e.forEach(function(e){e&&e.setAttribute('data-state',t)})}function be(e,t){e.forEach(function(e){e&&(e.style[n('transitionDuration')]=t+'ms')})}function ye(e){var t=window.scrollX||window.pageXOffset,o=window.scrollY||window.pageYOffset;e.focus(),scroll(t,o)}function ve(e){var t=ue(e.target,this.options.target);if(t&&!t._tippy){var o=t.getAttribute('title')||this.title;o&&(t.setAttribute('title',o),_e(t,Xe({},this.options,{target:null})),t._tippy.show())}}function we(e){var t=this;if(xe.call(this),!this.state.visible){if(this.options.target)return void ve.call(this,e);if(this._(dt).isPreparingToShow=!0,this.options.wait)return void this.options.wait.call(this.popper,this.show.bind(this),e);this.options.followCursor&&!Ue.usingTouch&&(!this._(dt).followCursorListener&&Ae.call(this),document.addEventListener('mousemove',this._(dt).followCursorListener));var o=Array.isArray(this.options.delay)?this.options.delay[0]:this.options.delay;o?this._(dt).showTimeout=setTimeout(function(){t.show()},o):this.show()}}function Ee(){var e=this;if(xe.call(this),!!this.state.visible){this._(dt).isPreparingToShow=!1;var t=Array.isArray(this.options.delay)?this.options.delay[1]:this.options.delay;t?this._(dt).hideTimeout=setTimeout(function(){e.state.visible&&e.hide()},t):this.hide()}}function Te(){var e=this;return{handleTrigger:function(t){if(e.state.enabled){var o=Ue.supportsTouch&&Ue.usingTouch&&-1<['mouseenter','mouseover','focus'].indexOf(t.type);o&&e.options.touchHold||(e._(dt).lastTriggerEvent=t,'click'===t.type&&'persistent'!==e.options.hideOnClick&&e.state.visible?Ee.call(e):we.call(e,t),o&&Ue.iOS&&e.reference.click&&e.reference.click())}},handleMouseLeave:function(t){if(!(-1<['mouseleave','mouseout'].indexOf(t.type)&&Ue.supportsTouch&&Ue.usingTouch&&e.options.touchHold)){if(e.options.interactive){var o=Ee.bind(e),i=function t(i){var r=ue(i.target,qe.REFERENCE),n=ue(i.target,qe.POPPER)===e.popper,s=r===e.reference;n||s||pe(i,e.popper,e.options)&&(document.body.removeEventListener('mouseleave',o),document.removeEventListener('mousemove',t),Ee.call(e))};return document.body.addEventListener('mouseleave',o),void document.addEventListener('mousemove',i)}Ee.call(e)}},handleBlur:function(t){t.target!==e.reference||!t.relatedTarget||Ue.usingTouch||ue(t.relatedTarget,qe.POPPER)||Ee.call(e)},handleDelegateShow:function(t){ue(t.target,e.options.target)&&we.call(e,t)},handleDelegateHide:function(t){ue(t.target,e.options.target)&&Ee.call(e)}}}function Le(){var e=this,t=this.popper,o=this.reference,i=this.options,r=d(t),n=r.tooltip,s=i.popperOptions,a='round'===i.arrowType?qe.ROUND_ARROW:qe.ARROW,p=n.querySelector(a),l=Xe({placement:i.placement},s||{},{modifiers:Xe({},s?s.modifiers:{},{arrow:Xe({element:a},s&&s.modifiers?s.modifiers.arrow:{}),flip:Xe({enabled:i.flip,padding:i.distance+5,behavior:i.flipBehavior},s&&s.modifiers?s.modifiers.flip:{}),offset:Xe({offset:i.offset},s&&s.modifiers?s.modifiers.offset:{})}),onCreate:function(){n.style[ae(t)]=fe(i.distance),p&&i.arrowTransform&&ce(t,p,i.arrowTransform)},onUpdate:function(){var e=n.style;e.top='',e.bottom='',e.left='',e.right='',e[ae(t)]=fe(i.distance),p&&i.arrowTransform&&ce(t,p,i.arrowTransform)}});return Ce.call(this,{target:t,callback:function(){e.popperInstance.scheduleUpdate()},options:{childList:!0,subtree:!0,characterData:!0}}),new at(o,t,l)}function Oe(e){var t=this.options;this.popperInstance?(re(this.popper),this.popperInstance.scheduleUpdate(),t.livePlacement&&(!t.followCursor||Ue.usingTouch)&&this.popperInstance.enableEventListeners()):(this.popperInstance=Le.call(this),!t.livePlacement&&this.popperInstance.disableEventListeners()),se(this.popperInstance,e,!0),t.appendTo.contains(this.popper)||t.appendTo.appendChild(this.popper)}function xe(){var e=this._(dt),t=e.showTimeout,o=e.hideTimeout;clearTimeout(t),clearTimeout(o)}function Ae(){var e=this;this._(dt).followCursorListener=function(t){if(!(e._(dt).lastTriggerEvent&&'focus'===e._(dt).lastTriggerEvent.type)){e._(dt).lastMouseMoveEvent=t;var o=document.documentElement.offsetWidth||document.body.offsetWidth,i=Ne(e.popper.offsetWidth/2),r=Ne(e.popper.offsetHeight/2),s=e.options.offset,a=t.pageX,p=t.pageY,l=5,d=e.options.placement.replace(/-.+/,'');e.popper.getAttribute('x-placement')&&(d=ae(e.popper));var c,f;'top'===d?(c=a-i+s,f=p-2*r):'bottom'===d?(c=a-i+s,f=p+10):'left'===d?(c=a-2*i,f=p-r+s):'right'===d?(c=a+5,f=p-r+s):void 0;('top'===d||'bottom'===d)&&(a+l+i+s>o&&(c=o-l-2*i),0>a-l-i+s&&(c=l)),e.popper.style[n('transform')]='translate3d('+c+'px, '+f+'px, 0)'}}}function ke(){var e=this,t=function(){e.popper.style[n('transitionDuration')]=e.options.updateDuration+'ms'},o=function(){e.popper.style[n('transitionDuration')]=''};me(function i(){e.popperInstance&&e.popperInstance.scheduleUpdate(),t(),e.state.visible?requestAnimationFrame(i):o()})}function Ce(e){var t=e.target,o=e.callback,i=e.options;if(window.MutationObserver){var r=new MutationObserver(o);r.observe(t,i),this._(dt).mutationObservers.push(r)}}function Se(e,t){if(!e)return t();var o=d(this.popper),i=o.tooltip,r=function(e,t){t&&i[e+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',t)},n=function o(n){n.target===i&&(r('remove',o),t())};r('remove',this._(dt).transitionendListener),r('add',n),this._(dt).transitionendListener=n}function Pe(e,t){return e.reduce(function(e,o){var i=mt,r=l(o,t.performance?t:p(o,t)),n=o.getAttribute('title');if(!n&&!r.target&&!r.html&&!r.dynamicTitle)return e;o.setAttribute(r.target?'data-tippy-delegate':'data-tippy',''),c(o);var f=s(i,n,r),m=new ft({id:i,reference:o,popper:f,options:r,title:n,popperInstance:null});r.createPopperInstanceOnInit&&(m.popperInstance=Le.call(m),m.popperInstance.disableEventListeners());var u=Te.call(m);return m.listeners=r.trigger.trim().split(' ').reduce(function(e,t){return e.concat(a(t,o,u,r))},[]),r.dynamicTitle&&Ce.call(m,{target:o,callback:function(){var e=d(f),t=e.content,i=o.getAttribute('title');i&&(t.innerHTML=m.title=i,c(o))},options:{attributes:!0}}),o._tippy=m,f._tippy=m,f._reference=o,e.push(m),mt++,e},[])}function De(e){var t=o(document.querySelectorAll(qe.POPPER));t.forEach(function(t){var o=t._tippy,i=o.options;(!0===i.hideOnClick||-1<i.trigger.indexOf('focus'))&&(!e||t!==e.popper)&&o.hide()})}function Ie(){var t=function(){Ue.usingTouch||(Ue.usingTouch=!0,Ue.iOS&&document.body.classList.add('tippy-touch'),Ue.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',i),Ue.onUserInputChange('touch'))},i=function(){var e;return function(){var t=performance.now();20>t-e&&(Ue.usingTouch=!1,document.removeEventListener('mousemove',i),!Ue.iOS&&document.body.classList.remove('tippy-touch'),Ue.onUserInputChange('mouse')),e=t}}();document.addEventListener('click',function(e){if(!(e.target instanceof Element))return De();var t=ue(e.target,qe.REFERENCE),o=ue(e.target,qe.POPPER);if(!(o&&o._reference._tippy.options.interactive)){if(t){var i=t._tippy.options;if(!i.multiple&&Ue.usingTouch||!i.multiple&&-1<i.trigger.indexOf('click'))return De(t._tippy);if(!0!==i.hideOnClick||-1<i.trigger.indexOf('click'))return}De()}}),document.addEventListener('touchstart',t),window.addEventListener('blur',function(){var t=document,o=t.activeElement;o&&o.blur&&e.call(o,qe.REFERENCE)&&o.blur()}),window.addEventListener('resize',function(){o(document.querySelectorAll(qe.POPPER)).forEach(function(e){var t=e._tippy;t.options.livePlacement||t.popperInstance.scheduleUpdate()})}),!Ue.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',t)}function _e(e,o){return Ue.supported&&!ut&&(Ie(),ut=!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]}}),o=Xe({},Ye,o),{selector:e,options:o,tooltips:Ue.supported?Pe(r(e),o):[],destroyAll:function(){this.tooltips.forEach(function(e){return e.destroy()}),this.tooltips=[]}}}var Ne=Math.round,He=Math.min,Re=Math.floor,Me=Math.max,We='undefined'!=typeof window,Be=We&&/MSIE |Trident\//.test(navigator.userAgent),Ue={};We&&(Ue.supported='requestAnimationFrame'in window,Ue.supportsTouch='ontouchstart'in window,Ue.usingTouch=!1,Ue.dynamicInputDetection=!0,Ue.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,Ue.onUserInputChange=function(){});for(var qe={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},Ye={placement:'top',livePlacement:!0,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:'',target:null,popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},Fe=Ue.supported&&Object.keys(Ye),ze=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},je=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=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},Ke='undefined'!=typeof window&&'undefined'!=typeof document,Ve=['Edge','Trident','Firefox'],Ge=0,Je=0;Je<Ve.length;Je+=1)if(Ke&&0<=navigator.userAgent.indexOf(Ve[Je])){Ge=1;break}var i,Qe=Ke&&window.Promise,Ze=Qe?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Ge))}},$e=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},et=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},tt=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}}(),ot=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},it=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},rt=['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'],nt=rt.slice(3),st={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},at=function(){function e(t,o){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};et(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=Ze(this.update.bind(this)),this.options=it({},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(it({},e.Defaults.modifiers,r.modifiers)).forEach(function(t){i.options.modifiers[t]=it({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return it({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&f(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 tt(e,[{key:'update',value:function(){return U.call(this)}},{key:'destroy',value:function(){return F.call(this)}},{key:'enableEventListeners',value:function(){return K.call(this)}},{key:'disableEventListeners',value:function(){return G.call(this)}}]),e}();at.Utils=('undefined'==typeof window?global:window).PopperUtils,at.placements=rt,at.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:ot({},p,n[p]),end:ot({},p,n[p]+n[l]-s[l])};e.offsets.popper=it({},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=J(+i)?[+i,0]:ie(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||g(e.instance.popper);e.instance.reference===o&&(o=g(o));var i=P(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=Me(n[e],i[e])),ot({},e,o)},secondary:function(e){var o='right'===e?'left':'top',r=n[o];return n[e]>i[e]&&!t.escapeWithReference&&(r=He(n[o],i[e]-('right'===e?n.width:n.height))),ot({},o,r)}};return r.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';n=it({},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=Re,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(!$(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',u=p?'bottom':'right',h=N(i)[l];a[u]-h<s[c]&&(e.offsets.popper[c]-=s[c]-(a[u]-h)),a[c]+h>s[u]&&(e.offsets.popper[c]+=a[c]+h-s[u]),e.offsets.popper=x(e.offsets.popper);var g=a[c]+a[l]/2-h/2,b=m(e.instance.popper),y=parseFloat(b['margin'+d],10),v=parseFloat(b['border'+d+'Width'],10),w=g-e.offsets.popper[c]-y-v;return w=Me(He(s[l]-h,w),0),e.arrowElement=i,e.offsets.arrow=(o={},ot(o,c,Ne(w)),ot(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=P(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],r=H(i),n=e.placement.split('-')[1]||'',s=[];switch(t.behavior){case st.FLIP:s=[i,r];break;case st.CLOCKWISE:s=te(i);break;case st.COUNTERCLOCKWISE:s=te(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=H(i);var l=e.offsets.popper,d=e.offsets.reference,c=Re,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),u=c(l.right)>c(o.right),h=c(l.top)<c(o.top),g=c(l.bottom)>c(o.bottom),b='left'===i&&m||'right'===i&&u||'top'===i&&h||'bottom'===i&&g,y=-1!==['top','bottom'].indexOf(i),v=!!t.flipVariations&&(y&&'start'===n&&m||y&&'end'===n&&u||!y&&'start'===n&&h||!y&&'end'===n&&g);(f||b||v)&&(e.flipped=!0,(f||b)&&(i=s[p+1]),v&&(n=ee(n)),e.placement=i+(n?'-'+n:''),e.offsets.popper=it({},e.offsets.popper,R(e.instance.popper,e.offsets.reference,e.placement)),e=B(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=H(t),e.offsets.popper=x(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!$(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=M(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=M(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=g(e.instance.popper),d=A(l),c={position:r.position},f={left:Re(r.left),top:Re(r.top),bottom:Re(r.bottom),right:Re(r.right)},m='bottom'===o?'top':'bottom',u='right'===i?'left':'right',h=Y('transform');if(a='bottom'==m?-d.height+f.bottom:f.top,s='right'==u?-d.width+f.right:f.left,p&&h)c[h]='translate3d('+s+'px, '+a+'px, 0)',c[m]=0,c[u]=0,c.willChange='transform';else{var b='bottom'==m?-1:1,y='right'==u?-1:1;c[m]=a*b,c[u]=s*y,c.willChange=m+', '+u}var v={"x-placement":e.placement};return e.attributes=it({},v,e.attributes),e.styles=it({},c,e.styles),e.arrowStyles=it({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return Q(e.instance.popper,e.styles),Z(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Q(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,i,r){var n=_(r,t,e),s=I(o.placement,n,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',s),Q(t,{position:'absolute'}),o},gpuAcceleration:void 0}}};var pt={};if(We){var lt=Element.prototype;pt=lt.matches||lt.matchesSelector||lt.webkitMatchesSelector||lt.mozMatchesSelector||lt.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=pt,dt={},ct=function(e){return function(t){return t===dt&&e}},ft=function(){function e(t){for(var o in ze(this,e),t)this[o]=t[o];this.state={destroyed:!1,visible:!1,enabled:!0},this._=ct({mutationObservers:[]})}return je(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=d(o),a=s.tooltip,p=s.backdrop,l=s.content;return r.dynamicTitle&&!i.getAttribute('data-original-title')?void 0:i.refObj||document.documentElement.contains(i)?void(r.onShow.call(o,this),e=he(void 0===e?r.duration:e,0),be([o,a,p],0),o.style.visibility='visible',this.state.visible=!0,Oe.call(this,function(){if(t.state.visible){if((!r.followCursor||Ue.usingTouch)&&t.popperInstance.scheduleUpdate(),r.followCursor&&!Ue.usingTouch){t.popperInstance.disableEventListeners();var s=Array.isArray(r.delay)?r.delay[0]:r.delay;t._(dt).lastTriggerEvent&&t._(dt).followCursorListener(s&&t._(dt).lastMouseMoveEvent?t._(dt).lastMouseMoveEvent:t._(dt).lastTriggerEvent)}be([a,p,p?l:null],e),p&&getComputedStyle(p)[n('transform')],r.interactive&&i.classList.add('tippy-active'),r.sticky&&ke.call(t),ge([a,p],'visible'),Se.call(t,e,function(){r.updateDuration||a.classList.add('tippy-notransition'),r.interactive&&ye(o),i.setAttribute('aria-describedby','tippy-'+t.id),r.onShown.call(o,t)})}})):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=d(o),s=n.tooltip,a=n.backdrop,p=n.content;r.onHide.call(o,this),e=he(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,be([s,a,a?p:null],e),ge([s,a],'hidden'),r.interactive&&-1<r.trigger.indexOf('click')&&ye(i),me(function(){Se.call(t,e,function(){t.state.visible||!r.appendTo.contains(o)||(!t._(dt).isPreparingToShow&&(document.removeEventListener('mousemove',t._(dt).followCursorListener),t._(dt).lastMouseMoveEvent=null),i.removeAttribute('aria-describedby'),t.popperInstance.disableEventListeners(),r.appendTo.removeChild(o),r.onHidden.call(o,t))})})}}},{key:'destroy',value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;if(!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','data-tippy-delegate'].forEach(function(t){e.reference.removeAttribute(t)}),this.options.target&&t&&o(this.reference.querySelectorAll(this.options.target)).forEach(function(e){return e._tippy&&e._tippy.destroy()}),this.popperInstance&&this.popperInstance.destroy(),this._(dt).mutationObservers.forEach(function(e){e.disconnect()}),this.state.destroyed=!0}}}]),e}(),mt=1,ut=!1;return _e.browser=Ue,_e.defaults=Ye,_e}); |
@@ -11,2 +11,4 @@ (function (global, factory) { | ||
var isIE = isBrowser && /MSIE |Trident\//.test(navigator.userAgent); | ||
var browser = {}; | ||
@@ -21,3 +23,2 @@ | ||
browser.onUserInputChange = function () {}; | ||
browser._eventListenersBound = false; | ||
} | ||
@@ -42,2 +43,3 @@ | ||
placement: 'top', | ||
livePlacement: true, | ||
trigger: 'mouseenter focus', | ||
@@ -197,3 +199,3 @@ animation: 'shift-away', | ||
_arrow.classList.add('tippy-roundarrow'); | ||
_arrow.innerHTML = '<svg viewBox="0 0 24 8" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M1 8s4.577-.019 7.253-4.218c2.357-3.698 5.175-3.721 7.508 0C18.404 7.997 23 8 23 8H1z"/></svg>'; | ||
_arrow.innerHTML = '<svg viewBox="0 0 24 8" xmlns="http://www.w3.org/2000/svg"><path d="M1 8s4.577-.019 7.253-4.218c2.357-3.698 5.175-3.721 7.508 0C18.404 7.997 23 8 23 8H1z"/></svg>'; | ||
} else { | ||
@@ -286,3 +288,3 @@ _arrow.classList.add('tippy-arrow'); | ||
if (eventType === 'focus') { | ||
on('blur', handleBlur); | ||
on(isIE ? 'focusout' : 'blur', handleBlur); | ||
} | ||
@@ -437,2 +439,49 @@ } else { | ||
/** | ||
* Resets a popper's position to fix https://github.com/FezVrasta/popper.js/issues/251 | ||
* @param {Element} popper | ||
*/ | ||
function resetPopperPosition(popper) { | ||
var styles = popper.style; | ||
styles[prefix('transform')] = null; | ||
styles.top = null; | ||
styles.left = null; | ||
} | ||
/** | ||
* Triggers document reflow. | ||
* Use void because some minifiers or engines think simply accessing the property | ||
* is unnecessary. | ||
* @param {Element} popper | ||
*/ | ||
function reflow(popper) { | ||
void popper.offsetHeight; | ||
} | ||
/** | ||
* Wrapper util for popper position updating. | ||
* Updates the popper's position and invokes the callback on update. | ||
* Hackish workaround until Popper 2.0's update() becomes sync. | ||
* @param {Popper} popperInstance | ||
* @param {Function} callback: to run once popper's position was updated | ||
* @param {Boolean} updateAlreadyCalled: was scheduleUpdate() already called? | ||
*/ | ||
function updatePopperPosition(popperInstance, callback, updateAlreadyCalled) { | ||
var popper = popperInstance.popper, | ||
options = popperInstance.options; | ||
var onCreate = options.onCreate; | ||
var onUpdate = options.onUpdate; | ||
options.onCreate = options.onUpdate = function () { | ||
reflow(popper), callback && callback(), onUpdate(); | ||
options.onCreate = onCreate; | ||
options.onUpdate = onUpdate; | ||
}; | ||
if (!updateAlreadyCalled) { | ||
popperInstance.scheduleUpdate(); | ||
} | ||
} | ||
/** | ||
* Returns the core placement ('top', 'bottom', 'left', 'right') of a popper | ||
@@ -672,12 +721,2 @@ * @param {Element} popper | ||
/** | ||
* Triggers document reflow. | ||
* Use void because some minifiers or engines think simply accessing the property | ||
* is unnecessary. | ||
* @param {Element} popper | ||
*/ | ||
function reflow(popper) { | ||
void popper.offsetHeight; | ||
} | ||
/** | ||
* Focuses an element while preventing a scroll jump if it's not entirely within the viewport | ||
@@ -693,31 +732,43 @@ * @param {Element} el | ||
var T = (function () { | ||
var key = {}; | ||
var store = function store(data) { | ||
return function (k) { | ||
return k === key && data; | ||
}; | ||
var key = {}; | ||
var store = function store(data) { | ||
return function (k) { | ||
return k === key && data; | ||
}; | ||
}; | ||
var Tippy = function () { | ||
function Tippy(config) { | ||
classCallCheck(this, Tippy); | ||
var Tippy = function () { | ||
function Tippy(config) { | ||
classCallCheck(this, Tippy); | ||
for (var _key in config) { | ||
this[_key] = config[_key]; | ||
} | ||
for (var _key in config) { | ||
this[_key] = config[_key]; | ||
} | ||
this.state = { | ||
destroyed: false, | ||
visible: false, | ||
enabled: true | ||
}; | ||
this.state = { | ||
destroyed: false, | ||
visible: false, | ||
enabled: true | ||
}; | ||
this._ = store({ | ||
mutationObservers: [] | ||
}); | ||
this._ = store({ | ||
mutationObservers: [] | ||
}); | ||
} | ||
/** | ||
* Enables the tooltip to allow it to show or hide | ||
* @memberof Tippy | ||
* @public | ||
*/ | ||
createClass(Tippy, [{ | ||
key: 'enable', | ||
value: function enable() { | ||
this.state.enabled = true; | ||
} | ||
/** | ||
* Enables the tooltip to allow it to show or hide | ||
* Disables the tooltip from showing or hiding, but does not destroy it | ||
* @memberof Tippy | ||
@@ -727,738 +778,690 @@ * @public | ||
}, { | ||
key: 'disable', | ||
value: function disable() { | ||
this.state.enabled = false; | ||
} | ||
createClass(Tippy, [{ | ||
key: 'enable', | ||
value: function enable() { | ||
this.state.enabled = true; | ||
} | ||
/** | ||
* Shows the tooltip | ||
* @param {Number} duration in milliseconds | ||
* @memberof Tippy | ||
* @public | ||
*/ | ||
/** | ||
* Disables the tooltip from showing or hiding, but does not destroy it | ||
* @memberof Tippy | ||
* @public | ||
*/ | ||
}, { | ||
key: 'show', | ||
value: function show(duration) { | ||
var _this = this; | ||
}, { | ||
key: 'disable', | ||
value: function disable() { | ||
this.state.enabled = false; | ||
} | ||
if (this.state.destroyed || !this.state.enabled) return; | ||
/** | ||
* Shows the tooltip | ||
* @param {Number} duration in milliseconds | ||
* @memberof Tippy | ||
* @public | ||
*/ | ||
var popper = this.popper, | ||
reference = this.reference, | ||
options = this.options; | ||
}, { | ||
key: 'show', | ||
value: function show(duration) { | ||
var _this = this; | ||
var _getInnerElements = getInnerElements(popper), | ||
tooltip = _getInnerElements.tooltip, | ||
backdrop = _getInnerElements.backdrop, | ||
content = _getInnerElements.content; | ||
if (this.state.destroyed || !this.state.enabled) return; | ||
// If the `dynamicTitle` option is true, the instance is allowed | ||
// to be created with an empty title. Make sure that the tooltip | ||
// content is not empty before showing it | ||
var popper = this.popper, | ||
reference = this.reference, | ||
options = this.options; | ||
var _getInnerElements = getInnerElements(popper), | ||
tooltip = _getInnerElements.tooltip, | ||
backdrop = _getInnerElements.backdrop, | ||
content = _getInnerElements.content; | ||
if (options.dynamicTitle && !reference.getAttribute('data-original-title')) return; | ||
// If the `dynamicTitle` option is true, the instance is allowed | ||
// to be created with an empty title. Make sure that the tooltip | ||
// content is not empty before showing it | ||
// Destroy tooltip if the reference element is no longer on the DOM | ||
if (!reference.refObj && !document.documentElement.contains(reference)) { | ||
this.destroy(); | ||
return; | ||
} | ||
options.onShow.call(popper, this); | ||
if (options.dynamicTitle && !reference.getAttribute('data-original-title')) return; | ||
duration = getDuration(duration !== undefined ? duration : options.duration, 0); | ||
// Destroy tooltip if the reference element is no longer on the DOM | ||
if (!reference.refObj && !document.documentElement.contains(reference)) { | ||
this.destroy(); | ||
return; | ||
} | ||
// Prevent a transition when popper changes position | ||
applyTransitionDuration([popper, tooltip, backdrop], 0); | ||
options.onShow.call(popper, this); | ||
popper.style.visibility = 'visible'; | ||
this.state.visible = true; | ||
duration = getDuration(duration !== undefined ? duration : options.duration, 0); | ||
_mount.call(this, function () { | ||
if (!_this.state.visible) return; | ||
// Prevent a transition when popper changes position | ||
applyTransitionDuration([popper, tooltip, backdrop], 0); | ||
if (!options.followCursor || browser.usingTouch) { | ||
// FIX: Arrow will sometimes not be positioned correctly. Force another update. | ||
_this.popperInstance.scheduleUpdate(); | ||
} | ||
popper.style.visibility = 'visible'; | ||
this.state.visible = true; | ||
// Set initial position near the cursor | ||
if (options.followCursor && !browser.usingTouch) { | ||
_this.popperInstance.disableEventListeners(); | ||
var delay = Array.isArray(options.delay) ? options.delay[0] : options.delay; | ||
if (_this._(key).lastTriggerEvent) { | ||
_this._(key).followCursorListener(delay && _this._(key).lastMouseMoveEvent ? _this._(key).lastMouseMoveEvent : _this._(key).lastTriggerEvent); | ||
} | ||
} | ||
_mount.call(this, function () { | ||
// ~20ms can elapse before this defer callback is run, so the hide() method | ||
// may have been invoked -- check if the popper is still visible and cancel | ||
// this callback if not | ||
if (!_this.state.visible) return; | ||
// Re-apply transition durations | ||
applyTransitionDuration([tooltip, backdrop, backdrop ? content : null], duration); | ||
if (!options.followCursor || browser.usingTouch) { | ||
_this.popperInstance.scheduleUpdate(); | ||
applyTransitionDuration([popper], options.updateDuration); | ||
} | ||
if (backdrop) { | ||
getComputedStyle(backdrop)[prefix('transform')]; | ||
} | ||
// Set initial position near the cursor | ||
if (options.followCursor && !browser.usingTouch) { | ||
_this.popperInstance.disableEventListeners(); | ||
var delay = Array.isArray(options.delay) ? options.delay[0] : options.delay; | ||
if (_this._(key).lastTriggerEvent) { | ||
_this._(key).followCursorListener(delay && _this._(key).lastMouseMoveEvent ? _this._(key).lastMouseMoveEvent : _this._(key).lastTriggerEvent); | ||
} | ||
} | ||
if (options.interactive) { | ||
reference.classList.add('tippy-active'); | ||
} | ||
// Re-apply transition durations | ||
applyTransitionDuration([tooltip, backdrop, backdrop ? content : null], duration); | ||
if (options.sticky) { | ||
_makeSticky.call(_this); | ||
} | ||
if (backdrop) { | ||
getComputedStyle(backdrop)[prefix('transform')]; | ||
setVisibilityState([tooltip, backdrop], 'visible'); | ||
_onTransitionEnd.call(_this, duration, function () { | ||
if (!options.updateDuration) { | ||
tooltip.classList.add('tippy-notransition'); | ||
} | ||
if (options.interactive) { | ||
reference.classList.add('tippy-active'); | ||
focus(popper); | ||
} | ||
if (options.sticky) { | ||
_makeSticky.call(_this); | ||
} | ||
reference.setAttribute('aria-describedby', 'tippy-' + _this.id); | ||
setVisibilityState([tooltip, backdrop], 'visible'); | ||
_onTransitionEnd.call(_this, duration, function () { | ||
if (!options.updateDuration) { | ||
tooltip.classList.add('tippy-notransition'); | ||
} | ||
if (options.interactive) { | ||
focus(popper); | ||
} | ||
reference.setAttribute('aria-describedby', 'tippy-' + _this.id); | ||
options.onShown.call(popper, _this); | ||
}); | ||
options.onShown.call(popper, _this); | ||
}); | ||
} | ||
}); | ||
} | ||
/** | ||
* Hides the tooltip | ||
* @param {Number} duration in milliseconds | ||
* @memberof Tippy | ||
* @public | ||
*/ | ||
/** | ||
* Hides the tooltip | ||
* @param {Number} duration in milliseconds | ||
* @memberof Tippy | ||
* @public | ||
*/ | ||
}, { | ||
key: 'hide', | ||
value: function hide(duration) { | ||
var _this2 = this; | ||
}, { | ||
key: 'hide', | ||
value: function hide(duration) { | ||
var _this2 = this; | ||
if (this.state.destroyed || !this.state.enabled) return; | ||
if (this.state.destroyed || !this.state.enabled) return; | ||
var popper = this.popper, | ||
reference = this.reference, | ||
options = this.options; | ||
var popper = this.popper, | ||
reference = this.reference, | ||
options = this.options; | ||
var _getInnerElements2 = getInnerElements(popper), | ||
tooltip = _getInnerElements2.tooltip, | ||
backdrop = _getInnerElements2.backdrop, | ||
content = _getInnerElements2.content; | ||
var _getInnerElements2 = getInnerElements(popper), | ||
tooltip = _getInnerElements2.tooltip, | ||
backdrop = _getInnerElements2.backdrop, | ||
content = _getInnerElements2.content; | ||
options.onHide.call(popper, this); | ||
options.onHide.call(popper, this); | ||
duration = getDuration(duration !== undefined ? duration : options.duration, 1); | ||
duration = getDuration(duration !== undefined ? duration : options.duration, 1); | ||
if (!options.updateDuration) { | ||
tooltip.classList.remove('tippy-notransition'); | ||
} | ||
if (!options.updateDuration) { | ||
tooltip.classList.remove('tippy-notransition'); | ||
} | ||
if (options.interactive) { | ||
reference.classList.remove('tippy-active'); | ||
} | ||
if (options.interactive) { | ||
reference.classList.remove('tippy-active'); | ||
} | ||
popper.style.visibility = 'hidden'; | ||
this.state.visible = false; | ||
popper.style.visibility = 'hidden'; | ||
this.state.visible = false; | ||
applyTransitionDuration([tooltip, backdrop, backdrop ? content : null], duration); | ||
applyTransitionDuration([tooltip, backdrop, backdrop ? content : null], duration); | ||
setVisibilityState([tooltip, backdrop], 'hidden'); | ||
setVisibilityState([tooltip, backdrop], 'hidden'); | ||
if (options.interactive && options.trigger.indexOf('click') > -1) { | ||
focus(reference); | ||
} | ||
if (options.interactive && options.trigger.indexOf('click') > -1) { | ||
focus(reference); | ||
} | ||
/* | ||
* 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.call(_this2, duration, function () { | ||
if (_this2.state.visible || !options.appendTo.contains(popper)) return; | ||
/* | ||
* 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.call(_this2, duration, function () { | ||
if (_this2.state.visible || !options.appendTo.contains(popper)) return; | ||
if (!_this2._(key).isPreparingToShow) { | ||
document.removeEventListener('mousemove', _this2._(key).followCursorListener); | ||
_this2._(key).lastMouseMoveEvent = null; | ||
} | ||
if (!_this2._(key).isPreparingToShow) { | ||
document.removeEventListener('mousemove', _this2._(key).followCursorListener); | ||
_this2._(key).lastMouseMoveEvent = null; | ||
} | ||
reference.removeAttribute('aria-describedby'); | ||
_this2.popperInstance.disableEventListeners(); | ||
options.appendTo.removeChild(popper); | ||
options.onHidden.call(popper, _this2); | ||
}); | ||
reference.removeAttribute('aria-describedby'); | ||
_this2.popperInstance.disableEventListeners(); | ||
options.appendTo.removeChild(popper); | ||
options.onHidden.call(popper, _this2); | ||
}); | ||
} | ||
}); | ||
} | ||
/** | ||
* Destroys the tooltip instance | ||
* @param {Boolean} destroyTargetInstances - relevant only when destroying delegates | ||
* @memberof Tippy | ||
* @public | ||
*/ | ||
/** | ||
* Destroys the tooltip instance | ||
* @param {Boolean} destroyTargetInstances - relevant only when destroying delegates | ||
* @memberof Tippy | ||
* @public | ||
*/ | ||
}, { | ||
key: 'destroy', | ||
value: function destroy() { | ||
var _this3 = this; | ||
}, { | ||
key: 'destroy', | ||
value: function destroy() { | ||
var _this3 = this; | ||
var destroyTargetInstances = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; | ||
var destroyTargetInstances = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; | ||
if (this.state.destroyed) return; | ||
if (this.state.destroyed) return; | ||
// Ensure the popper is hidden | ||
if (this.state.visible) { | ||
this.hide(0); | ||
} | ||
// Ensure the popper is hidden | ||
if (this.state.visible) { | ||
this.hide(0); | ||
} | ||
this.listeners.forEach(function (listener) { | ||
_this3.reference.removeEventListener(listener.event, listener.handler); | ||
}); | ||
this.listeners.forEach(function (listener) { | ||
_this3.reference.removeEventListener(listener.event, listener.handler); | ||
}); | ||
// Restore title | ||
this.reference.setAttribute('title', this.reference.getAttribute('data-original-title')); | ||
// Restore title | ||
this.reference.setAttribute('title', this.reference.getAttribute('data-original-title')); | ||
delete this.reference._tippy; | ||
delete this.reference._tippy; | ||
var attributes = ['data-original-title', 'data-tippy', 'data-tippy-delegate']; | ||
attributes.forEach(function (attr) { | ||
_this3.reference.removeAttribute(attr); | ||
}); | ||
var attributes = ['data-original-title', 'data-tippy', 'data-tippy-delegate']; | ||
attributes.forEach(function (attr) { | ||
_this3.reference.removeAttribute(attr); | ||
}); | ||
if (this.options.target && destroyTargetInstances) { | ||
toArray(this.reference.querySelectorAll(this.options.target)).forEach(function (child) { | ||
return child._tippy && child._tippy.destroy(); | ||
}); | ||
} | ||
if (this.popperInstance) { | ||
this.popperInstance.destroy(); | ||
} | ||
this._(key).mutationObservers.forEach(function (observer) { | ||
observer.disconnect(); | ||
if (this.options.target && destroyTargetInstances) { | ||
toArray(this.reference.querySelectorAll(this.options.target)).forEach(function (child) { | ||
return child._tippy && child._tippy.destroy(); | ||
}); | ||
} | ||
this.state.destroyed = true; | ||
if (this.popperInstance) { | ||
this.popperInstance.destroy(); | ||
} | ||
}]); | ||
return Tippy; | ||
}(); | ||
/** | ||
* ------------------------------------------------------------------------ | ||
* Private methods | ||
* ------------------------------------------------------------------------ | ||
* Standalone functions to be called with the instance's `this` context to make | ||
* them truly private and not accessible on the prototype | ||
*/ | ||
this._(key).mutationObservers.forEach(function (observer) { | ||
observer.disconnect(); | ||
}); | ||
/** | ||
* Creates the Tippy instance for the child target of the delegate container | ||
* @param {Event} event | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
this.state.destroyed = true; | ||
} | ||
}]); | ||
return Tippy; | ||
}(); | ||
/** | ||
* ------------------------------------------------------------------------ | ||
* Private methods | ||
* ------------------------------------------------------------------------ | ||
* Standalone functions to be called with the instance's `this` context to make | ||
* them truly private and not accessible on the prototype | ||
*/ | ||
function _createDelegateChildTippy(event) { | ||
var targetEl = closest(event.target, this.options.target); | ||
if (targetEl && !targetEl._tippy) { | ||
var title = targetEl.getAttribute('title') || this.title; | ||
if (title) { | ||
targetEl.setAttribute('title', title); | ||
tippy$1(targetEl, _extends({}, this.options, { target: null })); | ||
targetEl._tippy.show(); | ||
} | ||
/** | ||
* Creates the Tippy instance for the child target of the delegate container | ||
* @param {Event} event | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _createDelegateChildTippy(event) { | ||
var targetEl = closest(event.target, this.options.target); | ||
if (targetEl && !targetEl._tippy) { | ||
var title = targetEl.getAttribute('title') || this.title; | ||
if (title) { | ||
targetEl.setAttribute('title', title); | ||
tippy$1(targetEl, _extends({}, this.options, { target: null })); | ||
targetEl._tippy.show(); | ||
} | ||
} | ||
} | ||
/** | ||
* Method used by event listeners to invoke the show method, taking into account delays and | ||
* the `wait` option | ||
* @param {Event} event | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _enter(event) { | ||
var _this4 = this; | ||
/** | ||
* Method used by event listeners to invoke the show method, taking into account delays and | ||
* the `wait` option | ||
* @param {Event} event | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _enter(event) { | ||
var _this4 = this; | ||
_clearDelayTimeouts.call(this); | ||
_clearDelayTimeouts.call(this); | ||
if (this.state.visible) return; | ||
if (this.state.visible) return; | ||
// Is a delegate, create Tippy instance for the child target | ||
if (this.options.target) { | ||
_createDelegateChildTippy.call(this, event); | ||
return; | ||
} | ||
// Is a delegate, create Tippy instance for the child target | ||
if (this.options.target) { | ||
_createDelegateChildTippy.call(this, event); | ||
return; | ||
} | ||
this._(key).isPreparingToShow = true; | ||
this._(key).isPreparingToShow = true; | ||
if (this.options.wait) { | ||
this.options.wait.call(this.popper, this.show.bind(this), event); | ||
return; | ||
} | ||
if (this.options.wait) { | ||
this.options.wait.call(this.popper, this.show.bind(this), event); | ||
return; | ||
} | ||
// If the tooltip has a delay, we need to be listening to the mousemove as soon as the trigger | ||
// event is fired so that it's in the correct position upon mount. | ||
if (this.options.followCursor && !browser.usingTouch) { | ||
if (!this._(key).followCursorListener) { | ||
_setFollowCursorListener.call(this); | ||
} | ||
document.addEventListener('mousemove', this._(key).followCursorListener); | ||
// If the tooltip has a delay, we need to be listening to the mousemove as soon as the trigger | ||
// event is fired so that it's in the correct position upon mount. | ||
if (this.options.followCursor && !browser.usingTouch) { | ||
if (!this._(key).followCursorListener) { | ||
_setFollowCursorListener.call(this); | ||
} | ||
document.addEventListener('mousemove', this._(key).followCursorListener); | ||
} | ||
var delay = Array.isArray(this.options.delay) ? this.options.delay[0] : this.options.delay; | ||
var delay = Array.isArray(this.options.delay) ? this.options.delay[0] : this.options.delay; | ||
if (delay) { | ||
this._(key).showTimeout = setTimeout(function () { | ||
_this4.show(); | ||
}, delay); | ||
} else { | ||
this.show(); | ||
} | ||
if (delay) { | ||
this._(key).showTimeout = setTimeout(function () { | ||
_this4.show(); | ||
}, delay); | ||
} else { | ||
this.show(); | ||
} | ||
} | ||
/** | ||
* Method used by event listeners to invoke the hide method, taking into account delays | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _leave() { | ||
var _this5 = this; | ||
/** | ||
* Method used by event listeners to invoke the hide method, taking into account delays | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _leave() { | ||
var _this5 = this; | ||
_clearDelayTimeouts.call(this); | ||
_clearDelayTimeouts.call(this); | ||
if (!this.state.visible) return; | ||
if (!this.state.visible) return; | ||
this._(key).isPreparingToShow = false; | ||
this._(key).isPreparingToShow = false; | ||
var delay = Array.isArray(this.options.delay) ? this.options.delay[1] : this.options.delay; | ||
var delay = Array.isArray(this.options.delay) ? this.options.delay[1] : this.options.delay; | ||
if (delay) { | ||
this._(key).hideTimeout = setTimeout(function () { | ||
if (!_this5.state.visible) return; | ||
_this5.hide(); | ||
}, delay); | ||
} else { | ||
this.hide(); | ||
} | ||
if (delay) { | ||
this._(key).hideTimeout = setTimeout(function () { | ||
if (!_this5.state.visible) return; | ||
_this5.hide(); | ||
}, delay); | ||
} else { | ||
this.hide(); | ||
} | ||
} | ||
/** | ||
* Returns relevant listeners for the instance | ||
* @return {Object} of listeners | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _getEventListeners() { | ||
var _this6 = this; | ||
/** | ||
* Returns relevant listeners for the instance | ||
* @return {Object} of listeners | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _getEventListeners() { | ||
var _this6 = this; | ||
var handleTrigger = function handleTrigger(event) { | ||
if (!_this6.state.enabled) return; | ||
var handleTrigger = function handleTrigger(event) { | ||
if (!_this6.state.enabled) return; | ||
var shouldStopEvent = browser.supportsTouch && browser.usingTouch && ['mouseenter', 'mouseover', 'focus'].indexOf(event.type) > -1; | ||
var shouldStopEvent = browser.supportsTouch && browser.usingTouch && ['mouseenter', 'mouseover', 'focus'].indexOf(event.type) > -1; | ||
if (shouldStopEvent && _this6.options.touchHold) return; | ||
if (shouldStopEvent && _this6.options.touchHold) return; | ||
_this6._(key).lastTriggerEvent = event; | ||
_this6._(key).lastTriggerEvent = event; | ||
// Toggle show/hide when clicking click-triggered tooltips | ||
if (event.type === 'click' && _this6.options.hideOnClick !== 'persistent' && _this6.state.visible) { | ||
_leave.call(_this6); | ||
} else { | ||
_enter.call(_this6, event); | ||
} | ||
// Toggle show/hide when clicking click-triggered tooltips | ||
if (event.type === 'click' && _this6.options.hideOnClick !== 'persistent' && _this6.state.visible) { | ||
_leave.call(_this6); | ||
} else { | ||
_enter.call(_this6, event); | ||
} | ||
// iOS prevents click events from firing | ||
if (shouldStopEvent && browser.iOS && _this6.reference.click) { | ||
_this6.reference.click(); | ||
} | ||
}; | ||
// iOS prevents click events from firing | ||
if (shouldStopEvent && browser.iOS && _this6.reference.click) { | ||
_this6.reference.click(); | ||
} | ||
}; | ||
var handleMouseLeave = function handleMouseLeave(event) { | ||
if (['mouseleave', 'mouseout'].indexOf(event.type) > -1 && browser.supportsTouch && browser.usingTouch && _this6.options.touchHold) return; | ||
var handleMouseLeave = function handleMouseLeave(event) { | ||
if (['mouseleave', 'mouseout'].indexOf(event.type) > -1 && browser.supportsTouch && browser.usingTouch && _this6.options.touchHold) return; | ||
if (_this6.options.interactive) { | ||
var hide = _leave.bind(_this6); | ||
if (_this6.options.interactive) { | ||
var hide = _leave.bind(_this6); | ||
// Temporarily handle mousemove to check if the mouse left somewhere other than the popper | ||
var handleMouseMove = function handleMouseMove(event) { | ||
var referenceCursorIsOver = closest(event.target, selectors.REFERENCE); | ||
var cursorIsOverPopper = closest(event.target, selectors.POPPER) === _this6.popper; | ||
var cursorIsOverReference = referenceCursorIsOver === _this6.reference; | ||
// Temporarily handle mousemove to check if the mouse left somewhere other than the popper | ||
var handleMouseMove = function handleMouseMove(event) { | ||
var referenceCursorIsOver = closest(event.target, selectors.REFERENCE); | ||
var cursorIsOverPopper = closest(event.target, selectors.POPPER) === _this6.popper; | ||
var cursorIsOverReference = referenceCursorIsOver === _this6.reference; | ||
if (cursorIsOverPopper || cursorIsOverReference) return; | ||
if (cursorIsOverPopper || cursorIsOverReference) return; | ||
if (cursorIsOutsideInteractiveBorder(event, _this6.popper, _this6.options)) { | ||
document.body.removeEventListener('mouseleave', hide); | ||
document.removeEventListener('mousemove', handleMouseMove); | ||
if (cursorIsOutsideInteractiveBorder(event, _this6.popper, _this6.options)) { | ||
document.body.removeEventListener('mouseleave', hide); | ||
document.removeEventListener('mousemove', handleMouseMove); | ||
_leave.call(_this6); | ||
} | ||
}; | ||
document.body.addEventListener('mouseleave', hide); | ||
document.addEventListener('mousemove', handleMouseMove); | ||
return; | ||
} | ||
_leave.call(_this6); | ||
} | ||
}; | ||
document.body.addEventListener('mouseleave', hide); | ||
document.addEventListener('mousemove', handleMouseMove); | ||
return; | ||
} | ||
_leave.call(_this6); | ||
}; | ||
_leave.call(_this6); | ||
}; | ||
var handleBlur = function handleBlur(event) { | ||
if (!event.relatedTarget || browser.usingTouch) return; | ||
if (closest(event.relatedTarget, selectors.POPPER)) return; | ||
var handleBlur = function handleBlur(event) { | ||
if (event.target !== _this6.reference || !event.relatedTarget || browser.usingTouch) return; | ||
if (closest(event.relatedTarget, selectors.POPPER)) return; | ||
_leave.call(_this6); | ||
}; | ||
_leave.call(_this6); | ||
}; | ||
var handleDelegateShow = function handleDelegateShow(event) { | ||
if (closest(event.target, _this6.options.target)) { | ||
_enter.call(_this6, event); | ||
} | ||
}; | ||
var handleDelegateShow = function handleDelegateShow(event) { | ||
if (closest(event.target, _this6.options.target)) { | ||
_enter.call(_this6, event); | ||
} | ||
}; | ||
var handleDelegateHide = function handleDelegateHide(event) { | ||
if (closest(event.target, _this6.options.target)) { | ||
_leave.call(_this6); | ||
} | ||
}; | ||
var handleDelegateHide = function handleDelegateHide(event) { | ||
if (closest(event.target, _this6.options.target)) { | ||
_leave.call(_this6); | ||
} | ||
}; | ||
return { | ||
handleTrigger: handleTrigger, | ||
handleMouseLeave: handleMouseLeave, | ||
handleBlur: handleBlur, | ||
handleDelegateShow: handleDelegateShow, | ||
handleDelegateHide: handleDelegateHide | ||
}; | ||
} | ||
return { | ||
handleTrigger: handleTrigger, | ||
handleMouseLeave: handleMouseLeave, | ||
handleBlur: handleBlur, | ||
handleDelegateShow: handleDelegateShow, | ||
handleDelegateHide: handleDelegateHide | ||
}; | ||
} | ||
/** | ||
* Creates and returns a new popper instance | ||
* @return {Popper} | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _createPopperInstance() { | ||
var _this7 = this; | ||
/** | ||
* Creates and returns a new popper instance | ||
* @return {Popper} | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _createPopperInstance() { | ||
var _this7 = this; | ||
var popper = this.popper, | ||
reference = this.reference, | ||
options = this.options; | ||
var popper = this.popper, | ||
reference = this.reference, | ||
options = this.options; | ||
var _getInnerElements3 = getInnerElements(popper), | ||
tooltip = _getInnerElements3.tooltip; | ||
var _getInnerElements3 = getInnerElements(popper), | ||
tooltip = _getInnerElements3.tooltip; | ||
var popperOptions = options.popperOptions; | ||
var popperOptions = options.popperOptions; | ||
var arrowSelector = options.arrowType === 'round' ? selectors.ROUND_ARROW : selectors.ARROW; | ||
var arrow = tooltip.querySelector(arrowSelector); | ||
var arrowSelector = options.arrowType === 'round' ? selectors.ROUND_ARROW : selectors.ARROW; | ||
var arrow = tooltip.querySelector(arrowSelector); | ||
var config = _extends({ | ||
placement: options.placement | ||
}, popperOptions || {}, { | ||
modifiers: _extends({}, popperOptions ? popperOptions.modifiers : {}, { | ||
arrow: _extends({ | ||
element: arrowSelector | ||
}, popperOptions && popperOptions.modifiers ? popperOptions.modifiers.arrow : {}), | ||
flip: _extends({ | ||
enabled: options.flip, | ||
padding: options.distance + 5 /* 5px from viewport boundary */ | ||
, behavior: options.flipBehavior | ||
}, popperOptions && popperOptions.modifiers ? popperOptions.modifiers.flip : {}), | ||
offset: _extends({ | ||
offset: options.offset | ||
}, popperOptions && popperOptions.modifiers ? popperOptions.modifiers.offset : {}) | ||
}), | ||
onCreate: function onCreate() { | ||
tooltip.style[getPopperPlacement(popper)] = getOffsetDistanceInPx(options.distance); | ||
var config = _extends({ | ||
placement: options.placement | ||
}, popperOptions || {}, { | ||
modifiers: _extends({}, popperOptions ? popperOptions.modifiers : {}, { | ||
arrow: _extends({ | ||
element: arrowSelector | ||
}, popperOptions && popperOptions.modifiers ? popperOptions.modifiers.arrow : {}), | ||
flip: _extends({ | ||
enabled: options.flip, | ||
padding: options.distance + 5 /* 5px from viewport boundary */ | ||
, behavior: options.flipBehavior | ||
}, popperOptions && popperOptions.modifiers ? popperOptions.modifiers.flip : {}), | ||
offset: _extends({ | ||
offset: options.offset | ||
}, popperOptions && popperOptions.modifiers ? popperOptions.modifiers.offset : {}) | ||
}), | ||
onCreate: function onCreate() { | ||
tooltip.style[getPopperPlacement(popper)] = getOffsetDistanceInPx(options.distance); | ||
if (arrow && options.arrowTransform) { | ||
computeArrowTransform(popper, arrow, options.arrowTransform); | ||
} | ||
}, | ||
onUpdate: function onUpdate() { | ||
var styles = tooltip.style; | ||
styles.top = ''; | ||
styles.bottom = ''; | ||
styles.left = ''; | ||
styles.right = ''; | ||
styles[getPopperPlacement(popper)] = getOffsetDistanceInPx(options.distance); | ||
if (arrow && options.arrowTransform) { | ||
computeArrowTransform(popper, arrow, options.arrowTransform); | ||
} | ||
if (arrow && options.arrowTransform) { | ||
computeArrowTransform(popper, arrow, options.arrowTransform); | ||
} | ||
}); | ||
}, | ||
onUpdate: function onUpdate() { | ||
var styles = tooltip.style; | ||
styles.top = ''; | ||
styles.bottom = ''; | ||
styles.left = ''; | ||
styles.right = ''; | ||
styles[getPopperPlacement(popper)] = getOffsetDistanceInPx(options.distance); | ||
_addMutationObserver.call(this, { | ||
target: popper, | ||
callback: function callback() { | ||
var styles = popper.style; | ||
styles[prefix('transitionDuration')] = null; | ||
var _onUpdate = _this7.popperInstance.options.onUpdate; | ||
_this7.popperInstance.options.onUpdate = function () { | ||
reflow(_this7.popper); | ||
styles[prefix('transitionDuration')] = options.updateDuration + 'ms'; | ||
_this7.popperInstance.options.onUpdate = _onUpdate; | ||
}; | ||
_this7.popperInstance.update(); | ||
}, | ||
options: { | ||
childList: true, | ||
subtree: true, | ||
characterData: true | ||
if (arrow && options.arrowTransform) { | ||
computeArrowTransform(popper, arrow, options.arrowTransform); | ||
} | ||
}); | ||
} | ||
}); | ||
return new Popper(reference, popper, config); | ||
} | ||
_addMutationObserver.call(this, { | ||
target: popper, | ||
callback: function callback() { | ||
_this7.popperInstance.scheduleUpdate(); | ||
}, | ||
options: { | ||
childList: true, | ||
subtree: true, | ||
characterData: true | ||
} | ||
}); | ||
/** | ||
* Appends the popper element to the DOM, updating or creating the popper instance | ||
* @param {Function} callback | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _mount(callback) { | ||
var _this8 = this; | ||
return new Popper(reference, popper, config); | ||
} | ||
if (!this.popperInstance) { | ||
this.popperInstance = _createPopperInstance.call(this); | ||
} else { | ||
this.popper.style[prefix('transform')] = null; | ||
this.popperInstance.scheduleUpdate(); | ||
/** | ||
* Appends the popper element to the DOM, updating or creating the popper instance | ||
* @param {Function} callback | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _mount(callback) { | ||
var options = this.options; | ||
if (!this.options.followCursor || browser.usingTouch) { | ||
this.popperInstance.enableEventListeners(); | ||
} | ||
} | ||
var _onCreate = this.popperInstance.options.onCreate; | ||
var _onUpdate = this.popperInstance.options.onUpdate; | ||
this.popperInstance.options.onCreate = this.popperInstance.options.onUpdate = function () { | ||
reflow(_this8.popper); | ||
callback(); | ||
_this8.popperInstance.options.onUpdate = _onUpdate; | ||
_this8.popperInstance.options.onCreate = _onCreate; | ||
}; | ||
if (!this.options.appendTo.contains(this.popper)) { | ||
this.options.appendTo.appendChild(this.popper); | ||
if (!this.popperInstance) { | ||
this.popperInstance = _createPopperInstance.call(this); | ||
if (!options.livePlacement) { | ||
this.popperInstance.disableEventListeners(); | ||
} | ||
} else { | ||
resetPopperPosition(this.popper); | ||
this.popperInstance.scheduleUpdate(); | ||
if (options.livePlacement && (!options.followCursor || browser.usingTouch)) { | ||
this.popperInstance.enableEventListeners(); | ||
} | ||
} | ||
/** | ||
* Clears the show and hide delay timeouts | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _clearDelayTimeouts() { | ||
var _ref = this._(key), | ||
showTimeout = _ref.showTimeout, | ||
hideTimeout = _ref.hideTimeout; | ||
updatePopperPosition(this.popperInstance, callback, true); | ||
clearTimeout(showTimeout); | ||
clearTimeout(hideTimeout); | ||
if (!options.appendTo.contains(this.popper)) { | ||
options.appendTo.appendChild(this.popper); | ||
} | ||
} | ||
/** | ||
* Sets the mousemove event listener function for `followCursor` option | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _setFollowCursorListener() { | ||
var _this9 = this; | ||
/** | ||
* Clears the show and hide delay timeouts | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _clearDelayTimeouts() { | ||
var _ref = this._(key), | ||
showTimeout = _ref.showTimeout, | ||
hideTimeout = _ref.hideTimeout; | ||
this._(key).followCursorListener = function (event) { | ||
// Ignore if the tooltip was triggered by `focus` | ||
if (_this9._(key).lastTriggerEvent && _this9._(key).lastTriggerEvent.type === 'focus') return; | ||
clearTimeout(showTimeout); | ||
clearTimeout(hideTimeout); | ||
} | ||
_this9._(key).lastMouseMoveEvent = event; | ||
/** | ||
* Sets the mousemove event listener function for `followCursor` option | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _setFollowCursorListener() { | ||
var _this8 = this; | ||
// Expensive operations, but their dimensions can change freely | ||
var pageWidth = document.documentElement.offsetWidth || document.body.offsetWidth; | ||
var halfPopperWidth = Math.round(_this9.popper.offsetWidth / 2); | ||
var halfPopperHeight = Math.round(_this9.popper.offsetHeight / 2); | ||
var offset = _this9.options.offset; | ||
var pageX = event.pageX, | ||
pageY = event.pageY; | ||
this._(key).followCursorListener = function (event) { | ||
// Ignore if the tooltip was triggered by `focus` | ||
if (_this8._(key).lastTriggerEvent && _this8._(key).lastTriggerEvent.type === 'focus') return; | ||
var PADDING = 5; | ||
_this8._(key).lastMouseMoveEvent = event; | ||
var placement = _this9.options.placement.replace(/-.+/, ''); | ||
if (_this9.popper.getAttribute('x-placement')) { | ||
placement = getPopperPlacement(_this9.popper); | ||
} | ||
// Expensive operations, but their dimensions can change freely | ||
var pageWidth = document.documentElement.offsetWidth || document.body.offsetWidth; | ||
var halfPopperWidth = Math.round(_this8.popper.offsetWidth / 2); | ||
var halfPopperHeight = Math.round(_this8.popper.offsetHeight / 2); | ||
var offset = _this8.options.offset; | ||
var pageX = event.pageX, | ||
pageY = event.pageY; | ||
var x = void 0, | ||
y = void 0; | ||
var PADDING = 5; | ||
/* eslint-disable indent */ | ||
switch (placement) { | ||
case 'top': | ||
x = pageX - halfPopperWidth + offset; | ||
y = pageY - 2 * halfPopperHeight; | ||
break; | ||
case 'bottom': | ||
x = pageX - halfPopperWidth + offset; | ||
y = pageY + 10; | ||
break; | ||
case 'left': | ||
x = pageX - 2 * halfPopperWidth; | ||
y = pageY - halfPopperHeight + offset; | ||
break; | ||
case 'right': | ||
x = pageX + 5; | ||
y = pageY - halfPopperHeight + offset; | ||
break; | ||
} | ||
/* eslint-enable indent */ | ||
var placement = _this8.options.placement.replace(/-.+/, ''); | ||
if (_this8.popper.getAttribute('x-placement')) { | ||
placement = getPopperPlacement(_this8.popper); | ||
} | ||
var isRightOverflowing = pageX + PADDING + halfPopperWidth + offset > pageWidth; | ||
var isLeftOverflowing = pageX - PADDING - halfPopperWidth + offset < 0; | ||
var x = void 0, | ||
y = void 0; | ||
// Prevent left/right overflow | ||
if (placement === 'top' || placement === 'bottom') { | ||
if (isRightOverflowing) { | ||
x = pageWidth - PADDING - 2 * halfPopperWidth; | ||
} | ||
/* eslint-disable indent */ | ||
switch (placement) { | ||
case 'top': | ||
x = pageX - halfPopperWidth + offset; | ||
y = pageY - 2 * halfPopperHeight; | ||
break; | ||
case 'bottom': | ||
x = pageX - halfPopperWidth + offset; | ||
y = pageY + 10; | ||
break; | ||
case 'left': | ||
x = pageX - 2 * halfPopperWidth; | ||
y = pageY - halfPopperHeight + offset; | ||
break; | ||
case 'right': | ||
x = pageX + 5; | ||
y = pageY - halfPopperHeight + offset; | ||
break; | ||
} | ||
/* eslint-enable indent */ | ||
if (isLeftOverflowing) { | ||
x = PADDING; | ||
} | ||
var isRightOverflowing = pageX + PADDING + halfPopperWidth + offset > pageWidth; | ||
var isLeftOverflowing = pageX - PADDING - halfPopperWidth + offset < 0; | ||
// Prevent left/right overflow | ||
if (placement === 'top' || placement === 'bottom') { | ||
if (isRightOverflowing) { | ||
x = pageWidth - PADDING - 2 * halfPopperWidth; | ||
} | ||
_this9.popper.style[prefix('transform')] = 'translate3d(' + x + 'px, ' + y + 'px, 0)'; | ||
}; | ||
} | ||
/** | ||
* Updates the popper's position on each animation frame | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _makeSticky() { | ||
var _this10 = this; | ||
var applyTransitionDuration$$1 = function applyTransitionDuration$$1() { | ||
_this10.popper.style[prefix('transitionDuration')] = _this10.options.updateDuration + 'ms'; | ||
}; | ||
var removeTransitionDuration = function removeTransitionDuration() { | ||
_this10.popper.style[prefix('transitionDuration')] = ''; | ||
}; | ||
var updatePosition = function updatePosition() { | ||
if (_this10.popperInstance) { | ||
_this10.popperInstance.scheduleUpdate(); | ||
if (isLeftOverflowing) { | ||
x = PADDING; | ||
} | ||
} | ||
applyTransitionDuration$$1(); | ||
_this8.popper.style[prefix('transform')] = 'translate3d(' + x + 'px, ' + y + 'px, 0)'; | ||
}; | ||
} | ||
if (_this10.state.visible) { | ||
requestAnimationFrame(updatePosition); | ||
} else { | ||
removeTransitionDuration(); | ||
} | ||
}; | ||
/** | ||
* Updates the popper's position on each animation frame | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _makeSticky() { | ||
var _this9 = this; | ||
// Wait until the popper's position has been updated initially | ||
defer(updatePosition); | ||
} | ||
var applyTransitionDuration$$1 = function applyTransitionDuration$$1() { | ||
_this9.popper.style[prefix('transitionDuration')] = _this9.options.updateDuration + 'ms'; | ||
}; | ||
/** | ||
* Adds a mutation observer to an element and stores it in the instance | ||
* @param {Object} | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _addMutationObserver(_ref2) { | ||
var target = _ref2.target, | ||
callback = _ref2.callback, | ||
options = _ref2.options; | ||
var removeTransitionDuration = function removeTransitionDuration() { | ||
_this9.popper.style[prefix('transitionDuration')] = ''; | ||
}; | ||
if (!window.MutationObserver) return; | ||
var updatePosition = function updatePosition() { | ||
if (_this9.popperInstance) { | ||
_this9.popperInstance.scheduleUpdate(); | ||
} | ||
var observer = new MutationObserver(callback); | ||
observer.observe(target, options); | ||
applyTransitionDuration$$1(); | ||
this._(key).mutationObservers.push(observer); | ||
} | ||
/** | ||
* Fires the callback functions once the CSS transition ends for `show` and `hide` methods | ||
* @param {Number} duration | ||
* @param {Function} callback - callback function to fire once transition completes | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _onTransitionEnd(duration, callback) { | ||
// Make callback synchronous if duration is 0 | ||
if (!duration) { | ||
return callback(); | ||
if (_this9.state.visible) { | ||
requestAnimationFrame(updatePosition); | ||
} else { | ||
removeTransitionDuration(); | ||
} | ||
}; | ||
var _getInnerElements4 = getInnerElements(this.popper), | ||
tooltip = _getInnerElements4.tooltip; | ||
// Wait until the popper's position has been updated initially | ||
defer(updatePosition); | ||
} | ||
var toggleListeners = function toggleListeners(action, listener) { | ||
if (!listener) return; | ||
tooltip[action + 'EventListener']('ontransitionend' in window ? 'transitionend' : 'webkitTransitionEnd', listener); | ||
}; | ||
/** | ||
* Adds a mutation observer to an element and stores it in the instance | ||
* @param {Object} | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _addMutationObserver(_ref2) { | ||
var target = _ref2.target, | ||
callback = _ref2.callback, | ||
options = _ref2.options; | ||
var listener = function listener(e) { | ||
if (e.target === tooltip) { | ||
toggleListeners('remove', listener); | ||
callback(); | ||
} | ||
}; | ||
if (!window.MutationObserver) return; | ||
toggleListeners('remove', this._(key).transitionendListener); | ||
toggleListeners('add', listener); | ||
var observer = new MutationObserver(callback); | ||
observer.observe(target, options); | ||
this._(key).transitionendListener = listener; | ||
this._(key).mutationObservers.push(observer); | ||
} | ||
/** | ||
* Fires the callback functions once the CSS transition ends for `show` and `hide` methods | ||
* @param {Number} duration | ||
* @param {Function} callback - callback function to fire once transition completes | ||
* @memberof Tippy | ||
* @private | ||
*/ | ||
function _onTransitionEnd(duration, callback) { | ||
// Make callback synchronous if duration is 0 | ||
if (!duration) { | ||
return callback(); | ||
} | ||
return { | ||
Tippy: Tippy, | ||
_getEventListeners: _getEventListeners, | ||
_addMutationObserver: _addMutationObserver, | ||
_createPopperInstance: _createPopperInstance, | ||
_onTransitionEnd: _onTransitionEnd | ||
var _getInnerElements4 = getInnerElements(this.popper), | ||
tooltip = _getInnerElements4.tooltip; | ||
var toggleListeners = function toggleListeners(action, listener) { | ||
if (!listener) return; | ||
tooltip[action + 'EventListener']('ontransitionend' in window ? 'transitionend' : 'webkitTransitionEnd', listener); | ||
}; | ||
})(); | ||
var Tippy = T.Tippy; | ||
var _getEventListeners = T._getEventListeners; | ||
var _createPopperInstance = T._createPopperInstance; | ||
var _addMutationObserver = T._addMutationObserver; | ||
var listener = function listener(e) { | ||
if (e.target === tooltip) { | ||
toggleListeners('remove', listener); | ||
callback(); | ||
} | ||
}; | ||
toggleListeners('remove', this._(key).transitionendListener); | ||
toggleListeners('add', listener); | ||
this._(key).transitionendListener = listener; | ||
} | ||
var idCounter = 1; | ||
@@ -1571,3 +1574,3 @@ | ||
function bindEventListeners() { | ||
var touchHandler = function touchHandler() { | ||
var onDocumentTouch = function onDocumentTouch() { | ||
if (browser.usingTouch) return; | ||
@@ -1582,3 +1585,3 @@ | ||
if (browser.dynamicInputDetection && window.performance) { | ||
document.addEventListener('mousemove', mousemoveHandler); | ||
document.addEventListener('mousemove', onDocumentMouseMove); | ||
} | ||
@@ -1589,3 +1592,3 @@ | ||
var mousemoveHandler = function () { | ||
var onDocumentMouseMove = function () { | ||
var time = void 0; | ||
@@ -1599,3 +1602,3 @@ | ||
browser.usingTouch = false; | ||
document.removeEventListener('mousemove', mousemoveHandler); | ||
document.removeEventListener('mousemove', onDocumentMouseMove); | ||
if (!browser.iOS) { | ||
@@ -1611,3 +1614,3 @@ document.body.classList.remove('tippy-touch'); | ||
var clickHandler = function clickHandler(event) { | ||
var onDocumentClick = function onDocumentClick(event) { | ||
// Simulated events dispatched on the document | ||
@@ -1640,3 +1643,3 @@ if (!(event.target instanceof Element)) { | ||
var blurHandler = function blurHandler() { | ||
var onWindowBlur = function onWindowBlur() { | ||
var _document = document, | ||
@@ -1650,11 +1653,23 @@ el = _document.activeElement; | ||
document.addEventListener('click', clickHandler); | ||
document.addEventListener('touchstart', touchHandler); | ||
window.addEventListener('blur', blurHandler); | ||
var onWindowResize = function onWindowResize() { | ||
toArray(document.querySelectorAll(selectors.POPPER)).forEach(function (popper) { | ||
var tippyInstance = popper._tippy; | ||
if (!tippyInstance.options.livePlacement) { | ||
tippyInstance.popperInstance.scheduleUpdate(); | ||
} | ||
}); | ||
}; | ||
document.addEventListener('click', onDocumentClick); | ||
document.addEventListener('touchstart', onDocumentTouch); | ||
window.addEventListener('blur', onWindowBlur); | ||
window.addEventListener('resize', onWindowResize); | ||
if (!browser.supportsTouch && (navigator.maxTouchPoints || navigator.msMaxTouchPoints)) { | ||
document.addEventListener('pointerdown', touchHandler); | ||
document.addEventListener('pointerdown', onDocumentTouch); | ||
} | ||
} | ||
var eventListenersBound = false; | ||
/** | ||
@@ -1667,5 +1682,5 @@ * Creates tooltips | ||
function tippy$1(selector, options) { | ||
if (browser.supported && !browser._eventListenersBound) { | ||
if (browser.supported && !eventListenersBound) { | ||
bindEventListeners(); | ||
browser._eventListenersBound = true; | ||
eventListenersBound = true; | ||
} | ||
@@ -1672,0 +1687,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){return[].slice.call(a)}function d(a){if(a instanceof Element||b(a))return[a];if(a instanceof NodeList)return c(a);if(Array.isArray(a))return a;try{return c(document.querySelectorAll(a))}catch(a){return[]}}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.arrow,e=c.arrowType,g=c.arrowTransform,h=c.animateFill,i=c.inertia,j=c.animation,k=c.size,l=c.theme,m=c.html,n=c.zIndex,o=c.interactive,p=c.maxWidth,q=document.createElement('div');q.setAttribute('class','tippy-popper'),q.setAttribute('role','tooltip'),q.setAttribute('id','tippy-'+a),q.style.zIndex=n,q.style.maxWidth=p;var r=document.createElement('div');if(r.setAttribute('class','tippy-tooltip'),r.setAttribute('data-size',k),r.setAttribute('data-animation',j),r.setAttribute('data-state','hidden'),l.split(' ').forEach(function(a){r.classList.add(a+'-theme')}),d){var s=document.createElement('div');s.style[f('transform')]=g,'round'===e?(s.classList.add('tippy-roundarrow'),s.innerHTML='<svg viewBox="0 0 24 8" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M1 8s4.577-.019 7.253-4.218c2.357-3.698 5.175-3.721 7.508 0C18.404 7.997 23 8 23 8H1z"/></svg>'):s.classList.add('tippy-arrow'),r.appendChild(s)}if(h){r.setAttribute('data-animatefill','');var t=document.createElement('div');t.setAttribute('data-state','hidden'),t.classList.add('tippy-backdrop'),r.appendChild(t)}i&&r.setAttribute('data-inertia',''),o&&r.setAttribute('data-interactive','');var u=document.createElement('div');if(u.setAttribute('class','tippy-content'),m){var v;m instanceof Element?(u.appendChild(m),v='#'+m.id||'tippy-html-template'):(u.innerHTML=document.querySelector(m).innerHTML,v=m),q.setAttribute('data-html',''),o&&q.setAttribute('tabindex','-1'),r.setAttribute('data-template-id',v)}else u.innerHTML=b;return r.appendChild(u),q.appendChild(r),q}function h(a,b,c,d){var e=c.handleTrigger,f=c.handleMouseLeave,g=c.handleBlur,h=c.handleDelegateShow,i=c.handleDelegateHide,j=[];if('manual'===a)return j;var k=function(a,c){b.addEventListener(a,c),j.push({event:a,handler:c})};return d.target?(E.supportsTouch&&d.touchHold&&(k('touchstart',h),k('touchend',i)),'mouseenter'===a&&(k('mouseover',h),k('mouseout',i)),'focus'===a&&(k('focusin',h),k('focusout',i)),'click'===a&&k('click',h)):(k(a,e),E.supportsTouch&&d.touchHold&&(k('touchstart',e),k('touchend',f)),'mouseenter'===a&&k('mouseleave',f),'focus'===a&&k('blur',g)),j}function i(a,b){var c=H.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)),'target'!==d&&'string'==typeof e&&'['===e.trim().charAt(0)&&(e=JSON.parse(e)),c[d]=e,c},{});return K({},b,c)}function j(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 k(a){return{tooltip:a.querySelector(F.TOOLTIP),backdrop:a.querySelector(F.BACKDROP),content:a.querySelector(F.CONTENT)}}function l(a){var b=a.getAttribute('title');b&&a.setAttribute('data-original-title',b),a.removeAttribute('title')}function m(a){return a.getAttribute('x-placement').replace(/-.+/,'')}function n(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=m(b),j=f+g,k={top:h.top-e>f,bottom:e-h.bottom>f,left:h.left-d>f,right:d-h.right>f};return'top'===i?k.top=h.top-e>j:'bottom'===i?k.bottom=e-h.bottom>j:'left'===i?k.left=h.left-d>j:'right'===i?k.right=d-h.right>j:void 0,k.top||k.bottom||k.left||k.right}function o(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 p(a,b){if(!a)return'';return b?a:{X:'Y',Y:'X'}[a]}function q(a,b,c){var d=m(a),e='top'===d||'bottom'===d,g='right'===d||'bottom'===d,h=function(a){var b=c.match(a);return b?b[1]:''},i=function(a){var b=c.match(a);return b?b[1].split(',').map(parseFloat):[]},j={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},k={translate:{axis:h(/translate([XY])/),numbers:i(j.translate)},scale:{axis:h(/scale([XY])/),numbers:i(j.scale)}},l=c.replace(j.translate,'translate'+p(k.translate.axis,e)+'('+o('translate',k.translate.numbers,e,g)+')').replace(j.scale,'scale'+p(k.scale.axis,e)+'('+o('scale',k.scale.numbers,e,g)+')');b.style[f('transform')]=l}function r(a){return-(a-G.distance)+'px'}function s(a){requestAnimationFrame(function(){setTimeout(a,1)})}function t(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 u(a,b){return Array.isArray(a)?a[b]:a}function v(a,b){a.forEach(function(a){a&&a.setAttribute('data-state',b)})}function w(a,b){a.forEach(function(a){a&&(a.style[f('transitionDuration')]=b+'ms')})}function x(a){void a.offsetHeight}function y(a){var b=window.scrollX||window.pageXOffset,c=window.scrollY||window.pageYOffset;a.focus(),scroll(b,c)}function z(a,b){return a.reduce(function(a,c){var d=S,e=j(c,b.performance?b:i(c,b)),f=c.getAttribute('title');if(!f&&!e.target&&!e.html&&!e.dynamicTitle)return a;c.setAttribute(e.target?'data-tippy-delegate':'data-tippy',''),l(c);var m=g(d,f,e),n=new O({id:d,reference:c,popper:m,options:e,title:f,popperInstance:null});e.createPopperInstanceOnInit&&(n.popperInstance=Q.call(n),n.popperInstance.disableEventListeners());var o=P.call(n);return n.listeners=e.trigger.trim().split(' ').reduce(function(a,b){return a.concat(h(b,c,o,e))},[]),e.dynamicTitle&&R.call(n,{target:c,callback:function(){var a=k(m),b=a.content,d=c.getAttribute('title');d&&(b.innerHTML=n.title=d,l(c))},options:{attributes:!0}}),c._tippy=n,m._tippy=n,m._reference=c,a.push(n),S++,a},[])}function A(a){var b=c(document.querySelectorAll(F.POPPER));b.forEach(function(b){var c=b._tippy,d=c.options;(!0===d.hideOnClick||-1<d.trigger.indexOf('focus'))&&(!a||b!==a.popper)&&c.hide()})}function B(){var a=function(){E.usingTouch||(E.usingTouch=!0,E.iOS&&document.body.classList.add('tippy-touch'),E.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',b),E.onUserInputChange('touch'))},b=function(){var a;return function(){var c=performance.now();20>c-a&&(E.usingTouch=!1,document.removeEventListener('mousemove',b),!E.iOS&&document.body.classList.remove('tippy-touch'),E.onUserInputChange('mouse')),a=c}}();document.addEventListener('click',function(a){if(!(a.target instanceof Element))return A();var b=t(a.target,F.REFERENCE),c=t(a.target,F.POPPER);if(!(c&&c._reference._tippy.options.interactive)){if(b){var d=b._tippy.options;if(!d.multiple&&E.usingTouch||!d.multiple&&-1<d.trigger.indexOf('click'))return A(b._tippy);if(!0!==d.hideOnClick||-1<d.trigger.indexOf('click'))return}A()}}),document.addEventListener('touchstart',a),window.addEventListener('blur',function(){var a=document,b=a.activeElement;b&&b.blur&&e.call(b,F.REFERENCE)&&b.blur()}),!E.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',a)}function C(a,c){return E.supported&&!E._eventListenersBound&&(B(),E._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]}}),c=K({},G,c),{selector:a,options:c,tooltips:E.supported?z(d(a),c):[],destroyAll:function(){this.tooltips.forEach(function(a){return a.destroy()}),this.tooltips=[]}}}a=a&&a.hasOwnProperty('default')?a['default']:a;var D='undefined'!=typeof window,E={};D&&(E.supported='requestAnimationFrame'in window,E.supportsTouch='ontouchstart'in window,E.usingTouch=!1,E.dynamicInputDetection=!0,E.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,E.onUserInputChange=function(){},E._eventListenersBound=!1);var F={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},G={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:'',target:null,popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},H=E.supported&&Object.keys(G),I=function(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')},J=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}}(),K=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},L={};if(D){var M=Element.prototype;L=M.matches||M.matchesSelector||M.webkitMatchesSelector||M.mozMatchesSelector||M.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=L,N=function(){function b(a){var b=t(a.target,this.options.target);if(b&&!b._tippy){var c=b.getAttribute('title')||this.title;c&&(b.setAttribute('title',c),C(b,K({},this.options,{target:null})),b._tippy.show())}}function d(a){var c=this;if(i.call(this),!this.state.visible){if(this.options.target)return void b.call(this,a);if(this._(z).isPreparingToShow=!0,this.options.wait)return void this.options.wait.call(this.popper,this.show.bind(this),a);this.options.followCursor&&!E.usingTouch&&(!this._(z).followCursorListener&&j.call(this),document.addEventListener('mousemove',this._(z).followCursorListener));var d=Array.isArray(this.options.delay)?this.options.delay[0]:this.options.delay;d?this._(z).showTimeout=setTimeout(function(){c.show()},d):this.show()}}function e(){var a=this;if(i.call(this),!!this.state.visible){this._(z).isPreparingToShow=!1;var b=Array.isArray(this.options.delay)?this.options.delay[1]:this.options.delay;b?this._(z).hideTimeout=setTimeout(function(){a.state.visible&&a.hide()},b):this.hide()}}function g(){var b=this,c=this.popper,d=this.reference,e=this.options,g=k(c),h=g.tooltip,i=e.popperOptions,j='round'===e.arrowType?F.ROUND_ARROW:F.ARROW,l=h.querySelector(j),n=K({placement:e.placement},i||{},{modifiers:K({},i?i.modifiers:{},{arrow:K({element:j},i&&i.modifiers?i.modifiers.arrow:{}),flip:K({enabled:e.flip,padding:e.distance+5,behavior:e.flipBehavior},i&&i.modifiers?i.modifiers.flip:{}),offset:K({offset:e.offset},i&&i.modifiers?i.modifiers.offset:{})}),onCreate:function(){h.style[m(c)]=r(e.distance),l&&e.arrowTransform&&q(c,l,e.arrowTransform)},onUpdate:function(){var a=h.style;a.top='',a.bottom='',a.left='',a.right='',a[m(c)]=r(e.distance),l&&e.arrowTransform&&q(c,l,e.arrowTransform)}});return o.call(this,{target:c,callback:function(){var a=c.style;a[f('transitionDuration')]=null;var d=b.popperInstance.options.onUpdate;b.popperInstance.options.onUpdate=function(){x(b.popper),a[f('transitionDuration')]=e.updateDuration+'ms',b.popperInstance.options.onUpdate=d},b.popperInstance.update()},options:{childList:!0,subtree:!0,characterData:!0}}),new a(d,c,n)}function h(a){var b=this;this.popperInstance?(this.popper.style[f('transform')]=null,this.popperInstance.scheduleUpdate(),(!this.options.followCursor||E.usingTouch)&&this.popperInstance.enableEventListeners()):this.popperInstance=g.call(this);var c=this.popperInstance.options.onCreate,d=this.popperInstance.options.onUpdate;this.popperInstance.options.onCreate=this.popperInstance.options.onUpdate=function(){x(b.popper),a(),b.popperInstance.options.onUpdate=d,b.popperInstance.options.onCreate=c},this.options.appendTo.contains(this.popper)||this.options.appendTo.appendChild(this.popper)}function i(){var a=this._(z),b=a.showTimeout,c=a.hideTimeout;clearTimeout(b),clearTimeout(c)}function j(){var a=this;this._(z).followCursorListener=function(b){var c=Math.round;if(!(a._(z).lastTriggerEvent&&'focus'===a._(z).lastTriggerEvent.type)){a._(z).lastMouseMoveEvent=b;var d=document.documentElement.offsetWidth||document.body.offsetWidth,e=c(a.popper.offsetWidth/2),g=c(a.popper.offsetHeight/2),h=a.options.offset,i=b.pageX,j=b.pageY,k=5,l=a.options.placement.replace(/-.+/,'');a.popper.getAttribute('x-placement')&&(l=m(a.popper));var n,o;'top'===l?(n=i-e+h,o=j-2*g):'bottom'===l?(n=i-e+h,o=j+10):'left'===l?(n=i-2*e,o=j-g+h):'right'===l?(n=i+5,o=j-g+h):void 0;('top'===l||'bottom'===l)&&(i+k+e+h>d&&(n=d-k-2*e),0>i-k-e+h&&(n=k)),a.popper.style[f('transform')]='translate3d('+n+'px, '+o+'px, 0)'}}}function l(){var a=this,b=function(){a.popper.style[f('transitionDuration')]=a.options.updateDuration+'ms'},c=function(){a.popper.style[f('transitionDuration')]=''};s(function d(){a.popperInstance&&a.popperInstance.scheduleUpdate(),b(),a.state.visible?requestAnimationFrame(d):c()})}function o(a){var b=a.target,c=a.callback,d=a.options;if(window.MutationObserver){var e=new MutationObserver(c);e.observe(b,d),this._(z).mutationObservers.push(e)}}function p(a,b){if(!a)return b();var c=k(this.popper),d=c.tooltip,f=function(a,b){b&&d[a+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',b)},e=function a(c){c.target===d&&(f('remove',a),b())};f('remove',this._(z).transitionendListener),f('add',e),this._(z).transitionendListener=e}var z={},A=function(a){return function(b){return b===z&&a}},B=function(){function a(b){for(var c in I(this,a),b)this[c]=b[c];this.state={destroyed:!1,visible:!1,enabled:!0},this._=A({mutationObservers:[]})}return J(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=k(c),i=g.tooltip,j=g.backdrop,m=g.content;return e.dynamicTitle&&!d.getAttribute('data-original-title')?void 0:d.refObj||document.documentElement.contains(d)?void(e.onShow.call(c,this),a=u(void 0===a?e.duration:a,0),w([c,i,j],0),c.style.visibility='visible',this.state.visible=!0,h.call(this,function(){if(b.state.visible){if((!e.followCursor||E.usingTouch)&&(b.popperInstance.scheduleUpdate(),w([c],e.updateDuration)),e.followCursor&&!E.usingTouch){b.popperInstance.disableEventListeners();var g=Array.isArray(e.delay)?e.delay[0]:e.delay;b._(z).lastTriggerEvent&&b._(z).followCursorListener(g&&b._(z).lastMouseMoveEvent?b._(z).lastMouseMoveEvent:b._(z).lastTriggerEvent)}w([i,j,j?m:null],a),j&&getComputedStyle(j)[f('transform')],e.interactive&&d.classList.add('tippy-active'),e.sticky&&l.call(b),v([i,j],'visible'),p.call(b,a,function(){e.updateDuration||i.classList.add('tippy-notransition'),e.interactive&&y(c),d.setAttribute('aria-describedby','tippy-'+b.id),e.onShown.call(c,b)})}})):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=k(c),g=f.tooltip,h=f.backdrop,i=f.content;e.onHide.call(c,this),a=u(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,w([g,h,h?i:null],a),v([g,h],'hidden'),e.interactive&&-1<e.trigger.indexOf('click')&&y(d),s(function(){p.call(b,a,function(){b.state.visible||!e.appendTo.contains(c)||(!b._(z).isPreparingToShow&&(document.removeEventListener('mousemove',b._(z).followCursorListener),b._(z).lastMouseMoveEvent=null),d.removeAttribute('aria-describedby'),b.popperInstance.disableEventListeners(),e.appendTo.removeChild(c),e.onHidden.call(c,b))})})}}},{key:'destroy',value:function(){var a=this,b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;if(!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','data-tippy-delegate'].forEach(function(b){a.reference.removeAttribute(b)}),this.options.target&&b&&c(this.reference.querySelectorAll(this.options.target)).forEach(function(a){return a._tippy&&a._tippy.destroy()}),this.popperInstance&&this.popperInstance.destroy(),this._(z).mutationObservers.forEach(function(a){a.disconnect()}),this.state.destroyed=!0}}}]),a}();return{Tippy:B,_getEventListeners:function(){var a=this;return{handleTrigger:function(b){if(a.state.enabled){var c=E.supportsTouch&&E.usingTouch&&-1<['mouseenter','mouseover','focus'].indexOf(b.type);c&&a.options.touchHold||(a._(z).lastTriggerEvent=b,'click'===b.type&&'persistent'!==a.options.hideOnClick&&a.state.visible?e.call(a):d.call(a,b),c&&E.iOS&&a.reference.click&&a.reference.click())}},handleMouseLeave:function(b){if(!(-1<['mouseleave','mouseout'].indexOf(b.type)&&E.supportsTouch&&E.usingTouch&&a.options.touchHold)){if(a.options.interactive){var c=e.bind(a),d=function b(d){var f=t(d.target,F.REFERENCE),g=t(d.target,F.POPPER)===a.popper,h=f===a.reference;g||h||n(d,a.popper,a.options)&&(document.body.removeEventListener('mouseleave',c),document.removeEventListener('mousemove',b),e.call(a))};return document.body.addEventListener('mouseleave',c),void document.addEventListener('mousemove',d)}e.call(a)}},handleBlur:function(b){!b.relatedTarget||E.usingTouch||t(b.relatedTarget,F.POPPER)||e.call(a)},handleDelegateShow:function(b){t(b.target,a.options.target)&&d.call(a,b)},handleDelegateHide:function(b){t(b.target,a.options.target)&&e.call(a)}}},_addMutationObserver:o,_createPopperInstance:g,_onTransitionEnd:p}}(),O=N.Tippy,P=N._getEventListeners,Q=N._createPopperInstance,R=N._addMutationObserver,S=1;return C.browser=E,C.defaults=G,C}); | ||
(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){return[].slice.call(a)}function d(a){if(a instanceof Element||b(a))return[a];if(a instanceof NodeList)return c(a);if(Array.isArray(a))return a;try{return c(document.querySelectorAll(a))}catch(a){return[]}}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.arrow,e=c.arrowType,g=c.arrowTransform,h=c.animateFill,i=c.inertia,j=c.animation,k=c.size,l=c.theme,m=c.html,n=c.zIndex,o=c.interactive,p=c.maxWidth,q=document.createElement('div');q.setAttribute('class','tippy-popper'),q.setAttribute('role','tooltip'),q.setAttribute('id','tippy-'+a),q.style.zIndex=n,q.style.maxWidth=p;var r=document.createElement('div');if(r.setAttribute('class','tippy-tooltip'),r.setAttribute('data-size',k),r.setAttribute('data-animation',j),r.setAttribute('data-state','hidden'),l.split(' ').forEach(function(a){r.classList.add(a+'-theme')}),d){var s=document.createElement('div');s.style[f('transform')]=g,'round'===e?(s.classList.add('tippy-roundarrow'),s.innerHTML='<svg viewBox="0 0 24 8" xmlns="http://www.w3.org/2000/svg"><path d="M1 8s4.577-.019 7.253-4.218c2.357-3.698 5.175-3.721 7.508 0C18.404 7.997 23 8 23 8H1z"/></svg>'):s.classList.add('tippy-arrow'),r.appendChild(s)}if(h){r.setAttribute('data-animatefill','');var t=document.createElement('div');t.setAttribute('data-state','hidden'),t.classList.add('tippy-backdrop'),r.appendChild(t)}i&&r.setAttribute('data-inertia',''),o&&r.setAttribute('data-interactive','');var u=document.createElement('div');if(u.setAttribute('class','tippy-content'),m){var v;m instanceof Element?(u.appendChild(m),v='#'+m.id||'tippy-html-template'):(u.innerHTML=document.querySelector(m).innerHTML,v=m),q.setAttribute('data-html',''),o&&q.setAttribute('tabindex','-1'),r.setAttribute('data-template-id',v)}else u.innerHTML=b;return r.appendChild(u),q.appendChild(r),q}function h(a,b,c,d){var e=c.handleTrigger,f=c.handleMouseLeave,g=c.handleBlur,h=c.handleDelegateShow,i=c.handleDelegateHide,j=[];if('manual'===a)return j;var k=function(a,c){b.addEventListener(a,c),j.push({event:a,handler:c})};return d.target?(S.supportsTouch&&d.touchHold&&(k('touchstart',h),k('touchend',i)),'mouseenter'===a&&(k('mouseover',h),k('mouseout',i)),'focus'===a&&(k('focusin',h),k('focusout',i)),'click'===a&&k('click',h)):(k(a,e),S.supportsTouch&&d.touchHold&&(k('touchstart',e),k('touchend',f)),'mouseenter'===a&&k('mouseleave',f),'focus'===a&&k(R?'focusout':'blur',g)),j}function i(a,b){var c=V.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)),'target'!==d&&'string'==typeof e&&'['===e.trim().charAt(0)&&(e=JSON.parse(e)),c[d]=e,c},{});return Y({},b,c)}function j(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 k(a){return{tooltip:a.querySelector(T.TOOLTIP),backdrop:a.querySelector(T.BACKDROP),content:a.querySelector(T.CONTENT)}}function l(a){var b=a.getAttribute('title');b&&a.setAttribute('data-original-title',b),a.removeAttribute('title')}function m(a){var b=a.style;b[f('transform')]=null,b.top=null,b.left=null}function n(a){void a.offsetHeight}function o(a,b,c){var d=a.popper,e=a.options,f=e.onCreate,g=e.onUpdate;e.onCreate=e.onUpdate=function(){n(d),b&&b(),g(),e.onCreate=f,e.onUpdate=g},c||a.scheduleUpdate()}function p(a){return a.getAttribute('x-placement').replace(/-.+/,'')}function q(a,b,c){if(!b.getAttribute('x-placement'))return!0;var d=a.clientX,e=a.clientY,f=c.interactiveBorder,g=c.distance,h=b.getBoundingClientRect(),i=p(b),j=f+g,k={top:h.top-e>f,bottom:e-h.bottom>f,left:h.left-d>f,right:d-h.right>f};return'top'===i?k.top=h.top-e>j:'bottom'===i?k.bottom=e-h.bottom>j:'left'===i?k.left=h.left-d>j:'right'===i?k.right=d-h.right>j:void 0,k.top||k.bottom||k.left||k.right}function r(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 s(a,b){if(!a)return'';return b?a:{X:'Y',Y:'X'}[a]}function t(a,b,c){var d=p(a),e='top'===d||'bottom'===d,g='right'===d||'bottom'===d,h=function(a){var b=c.match(a);return b?b[1]:''},i=function(a){var b=c.match(a);return b?b[1].split(',').map(parseFloat):[]},j={translate:/translateX?Y?\(([^)]+)\)/,scale:/scaleX?Y?\(([^)]+)\)/},k={translate:{axis:h(/translate([XY])/),numbers:i(j.translate)},scale:{axis:h(/scale([XY])/),numbers:i(j.scale)}},l=c.replace(j.translate,'translate'+s(k.translate.axis,e)+'('+r('translate',k.translate.numbers,e,g)+')').replace(j.scale,'scale'+s(k.scale.axis,e)+'('+r('scale',k.scale.numbers,e,g)+')');b.style[f('transform')]=l}function u(a){return-(a-U.distance)+'px'}function v(a){requestAnimationFrame(function(){setTimeout(a,1)})}function w(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 x(a,b){return Array.isArray(a)?a[b]:a}function y(a,b){a.forEach(function(a){a&&a.setAttribute('data-state',b)})}function z(a,b){a.forEach(function(a){a&&(a.style[f('transitionDuration')]=b+'ms')})}function A(a){var b=window.scrollX||window.pageXOffset,c=window.scrollY||window.pageYOffset;a.focus(),scroll(b,c)}function B(a){var b=w(a.target,this.options.target);if(b&&!b._tippy){var c=b.getAttribute('title')||this.title;c&&(b.setAttribute('title',c),P(b,Y({},this.options,{target:null})),b._tippy.show())}}function C(a){var b=this;if(H.call(this),!this.state.visible){if(this.options.target)return void B.call(this,a);if(this._(_).isPreparingToShow=!0,this.options.wait)return void this.options.wait.call(this.popper,this.show.bind(this),a);this.options.followCursor&&!S.usingTouch&&(!this._(_).followCursorListener&&I.call(this),document.addEventListener('mousemove',this._(_).followCursorListener));var c=Array.isArray(this.options.delay)?this.options.delay[0]:this.options.delay;c?this._(_).showTimeout=setTimeout(function(){b.show()},c):this.show()}}function D(){var a=this;if(H.call(this),!!this.state.visible){this._(_).isPreparingToShow=!1;var b=Array.isArray(this.options.delay)?this.options.delay[1]:this.options.delay;b?this._(_).hideTimeout=setTimeout(function(){a.state.visible&&a.hide()},b):this.hide()}}function E(){var a=this;return{handleTrigger:function(b){if(a.state.enabled){var c=S.supportsTouch&&S.usingTouch&&-1<['mouseenter','mouseover','focus'].indexOf(b.type);c&&a.options.touchHold||(a._(_).lastTriggerEvent=b,'click'===b.type&&'persistent'!==a.options.hideOnClick&&a.state.visible?D.call(a):C.call(a,b),c&&S.iOS&&a.reference.click&&a.reference.click())}},handleMouseLeave:function(b){if(!(-1<['mouseleave','mouseout'].indexOf(b.type)&&S.supportsTouch&&S.usingTouch&&a.options.touchHold)){if(a.options.interactive){var c=D.bind(a),d=function b(d){var e=w(d.target,T.REFERENCE),f=w(d.target,T.POPPER)===a.popper,g=e===a.reference;f||g||q(d,a.popper,a.options)&&(document.body.removeEventListener('mouseleave',c),document.removeEventListener('mousemove',b),D.call(a))};return document.body.addEventListener('mouseleave',c),void document.addEventListener('mousemove',d)}D.call(a)}},handleBlur:function(b){b.target!==a.reference||!b.relatedTarget||S.usingTouch||w(b.relatedTarget,T.POPPER)||D.call(a)},handleDelegateShow:function(b){w(b.target,a.options.target)&&C.call(a,b)},handleDelegateHide:function(b){w(b.target,a.options.target)&&D.call(a)}}}function F(){var b=this,c=this.popper,d=this.reference,e=this.options,f=k(c),g=f.tooltip,h=e.popperOptions,i='round'===e.arrowType?T.ROUND_ARROW:T.ARROW,j=g.querySelector(i),l=Y({placement:e.placement},h||{},{modifiers:Y({},h?h.modifiers:{},{arrow:Y({element:i},h&&h.modifiers?h.modifiers.arrow:{}),flip:Y({enabled:e.flip,padding:e.distance+5,behavior:e.flipBehavior},h&&h.modifiers?h.modifiers.flip:{}),offset:Y({offset:e.offset},h&&h.modifiers?h.modifiers.offset:{})}),onCreate:function(){g.style[p(c)]=u(e.distance),j&&e.arrowTransform&&t(c,j,e.arrowTransform)},onUpdate:function(){var a=g.style;a.top='',a.bottom='',a.left='',a.right='',a[p(c)]=u(e.distance),j&&e.arrowTransform&&t(c,j,e.arrowTransform)}});return K.call(this,{target:c,callback:function(){b.popperInstance.scheduleUpdate()},options:{childList:!0,subtree:!0,characterData:!0}}),new a(d,c,l)}function G(a){var b=this.options;this.popperInstance?(m(this.popper),this.popperInstance.scheduleUpdate(),b.livePlacement&&(!b.followCursor||S.usingTouch)&&this.popperInstance.enableEventListeners()):(this.popperInstance=F.call(this),!b.livePlacement&&this.popperInstance.disableEventListeners()),o(this.popperInstance,a,!0),b.appendTo.contains(this.popper)||b.appendTo.appendChild(this.popper)}function H(){var a=this._(_),b=a.showTimeout,c=a.hideTimeout;clearTimeout(b),clearTimeout(c)}function I(){var a=this;this._(_).followCursorListener=function(b){var c=Math.round;if(!(a._(_).lastTriggerEvent&&'focus'===a._(_).lastTriggerEvent.type)){a._(_).lastMouseMoveEvent=b;var d=document.documentElement.offsetWidth||document.body.offsetWidth,e=c(a.popper.offsetWidth/2),g=c(a.popper.offsetHeight/2),h=a.options.offset,i=b.pageX,j=b.pageY,k=5,l=a.options.placement.replace(/-.+/,'');a.popper.getAttribute('x-placement')&&(l=p(a.popper));var m,n;'top'===l?(m=i-e+h,n=j-2*g):'bottom'===l?(m=i-e+h,n=j+10):'left'===l?(m=i-2*e,n=j-g+h):'right'===l?(m=i+5,n=j-g+h):void 0;('top'===l||'bottom'===l)&&(i+k+e+h>d&&(m=d-k-2*e),0>i-k-e+h&&(m=k)),a.popper.style[f('transform')]='translate3d('+m+'px, '+n+'px, 0)'}}}function J(){var a=this,b=function(){a.popper.style[f('transitionDuration')]=a.options.updateDuration+'ms'},c=function(){a.popper.style[f('transitionDuration')]=''};v(function d(){a.popperInstance&&a.popperInstance.scheduleUpdate(),b(),a.state.visible?requestAnimationFrame(d):c()})}function K(a){var b=a.target,c=a.callback,d=a.options;if(window.MutationObserver){var e=new MutationObserver(c);e.observe(b,d),this._(_).mutationObservers.push(e)}}function L(a,b){if(!a)return b();var c=k(this.popper),d=c.tooltip,f=function(a,b){b&&d[a+'EventListener']('ontransitionend'in window?'transitionend':'webkitTransitionEnd',b)},e=function a(c){c.target===d&&(f('remove',a),b())};f('remove',this._(_).transitionendListener),f('add',e),this._(_).transitionendListener=e}function M(a,b){return a.reduce(function(a,c){var d=ca,e=j(c,b.performance?b:i(c,b)),f=c.getAttribute('title');if(!f&&!e.target&&!e.html&&!e.dynamicTitle)return a;c.setAttribute(e.target?'data-tippy-delegate':'data-tippy',''),l(c);var m=g(d,f,e),n=new ba({id:d,reference:c,popper:m,options:e,title:f,popperInstance:null});e.createPopperInstanceOnInit&&(n.popperInstance=F.call(n),n.popperInstance.disableEventListeners());var o=E.call(n);return n.listeners=e.trigger.trim().split(' ').reduce(function(a,b){return a.concat(h(b,c,o,e))},[]),e.dynamicTitle&&K.call(n,{target:c,callback:function(){var a=k(m),b=a.content,d=c.getAttribute('title');d&&(b.innerHTML=n.title=d,l(c))},options:{attributes:!0}}),c._tippy=n,m._tippy=n,m._reference=c,a.push(n),ca++,a},[])}function N(a){var b=c(document.querySelectorAll(T.POPPER));b.forEach(function(b){var c=b._tippy,d=c.options;(!0===d.hideOnClick||-1<d.trigger.indexOf('focus'))&&(!a||b!==a.popper)&&c.hide()})}function O(){var a=function(){S.usingTouch||(S.usingTouch=!0,S.iOS&&document.body.classList.add('tippy-touch'),S.dynamicInputDetection&&window.performance&&document.addEventListener('mousemove',b),S.onUserInputChange('touch'))},b=function(){var a;return function(){var c=performance.now();20>c-a&&(S.usingTouch=!1,document.removeEventListener('mousemove',b),!S.iOS&&document.body.classList.remove('tippy-touch'),S.onUserInputChange('mouse')),a=c}}();document.addEventListener('click',function(a){if(!(a.target instanceof Element))return N();var b=w(a.target,T.REFERENCE),c=w(a.target,T.POPPER);if(!(c&&c._reference._tippy.options.interactive)){if(b){var d=b._tippy.options;if(!d.multiple&&S.usingTouch||!d.multiple&&-1<d.trigger.indexOf('click'))return N(b._tippy);if(!0!==d.hideOnClick||-1<d.trigger.indexOf('click'))return}N()}}),document.addEventListener('touchstart',a),window.addEventListener('blur',function(){var a=document,b=a.activeElement;b&&b.blur&&e.call(b,T.REFERENCE)&&b.blur()}),window.addEventListener('resize',function(){c(document.querySelectorAll(T.POPPER)).forEach(function(a){var b=a._tippy;b.options.livePlacement||b.popperInstance.scheduleUpdate()})}),!S.supportsTouch&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)&&document.addEventListener('pointerdown',a)}function P(a,c){return S.supported&&!da&&(O(),da=!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]}}),c=Y({},U,c),{selector:a,options:c,tooltips:S.supported?M(d(a),c):[],destroyAll:function(){this.tooltips.forEach(function(a){return a.destroy()}),this.tooltips=[]}}}a=a&&a.hasOwnProperty('default')?a['default']:a;var Q='undefined'!=typeof window,R=Q&&/MSIE |Trident\//.test(navigator.userAgent),S={};Q&&(S.supported='requestAnimationFrame'in window,S.supportsTouch='ontouchstart'in window,S.usingTouch=!1,S.dynamicInputDetection=!0,S.iOS=/iPhone|iPad|iPod/.test(navigator.platform)&&!window.MSStream,S.onUserInputChange=function(){});var T={POPPER:'.tippy-popper',TOOLTIP:'.tippy-tooltip',CONTENT:'.tippy-content',BACKDROP:'.tippy-backdrop',ARROW:'.tippy-arrow',ROUND_ARROW:'.tippy-roundarrow',REFERENCE:'[data-tippy]'},U={placement:'top',livePlacement:!0,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:'',target:null,popperOptions:{},createPopperInstanceOnInit:!1,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){}},V=S.supported&&Object.keys(U),W=function(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')},X=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}}(),Y=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},Z={};if(Q){var $=Element.prototype;Z=$.matches||$.matchesSelector||$.webkitMatchesSelector||$.mozMatchesSelector||$.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=Z,_={},aa=function(a){return function(b){return b===_&&a}},ba=function(){function a(b){for(var c in W(this,a),b)this[c]=b[c];this.state={destroyed:!1,visible:!1,enabled:!0},this._=aa({mutationObservers:[]})}return X(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=k(c),h=g.tooltip,i=g.backdrop,j=g.content;return e.dynamicTitle&&!d.getAttribute('data-original-title')?void 0:d.refObj||document.documentElement.contains(d)?void(e.onShow.call(c,this),a=x(void 0===a?e.duration:a,0),z([c,h,i],0),c.style.visibility='visible',this.state.visible=!0,G.call(this,function(){if(b.state.visible){if((!e.followCursor||S.usingTouch)&&b.popperInstance.scheduleUpdate(),e.followCursor&&!S.usingTouch){b.popperInstance.disableEventListeners();var g=Array.isArray(e.delay)?e.delay[0]:e.delay;b._(_).lastTriggerEvent&&b._(_).followCursorListener(g&&b._(_).lastMouseMoveEvent?b._(_).lastMouseMoveEvent:b._(_).lastTriggerEvent)}z([h,i,i?j:null],a),i&&getComputedStyle(i)[f('transform')],e.interactive&&d.classList.add('tippy-active'),e.sticky&&J.call(b),y([h,i],'visible'),L.call(b,a,function(){e.updateDuration||h.classList.add('tippy-notransition'),e.interactive&&A(c),d.setAttribute('aria-describedby','tippy-'+b.id),e.onShown.call(c,b)})}})):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=k(c),g=f.tooltip,h=f.backdrop,i=f.content;e.onHide.call(c,this),a=x(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,z([g,h,h?i:null],a),y([g,h],'hidden'),e.interactive&&-1<e.trigger.indexOf('click')&&A(d),v(function(){L.call(b,a,function(){b.state.visible||!e.appendTo.contains(c)||(!b._(_).isPreparingToShow&&(document.removeEventListener('mousemove',b._(_).followCursorListener),b._(_).lastMouseMoveEvent=null),d.removeAttribute('aria-describedby'),b.popperInstance.disableEventListeners(),e.appendTo.removeChild(c),e.onHidden.call(c,b))})})}}},{key:'destroy',value:function(){var a=this,b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;if(!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','data-tippy-delegate'].forEach(function(b){a.reference.removeAttribute(b)}),this.options.target&&b&&c(this.reference.querySelectorAll(this.options.target)).forEach(function(a){return a._tippy&&a._tippy.destroy()}),this.popperInstance&&this.popperInstance.destroy(),this._(_).mutationObservers.forEach(function(a){a.disconnect()}),this.state.destroyed=!0}}}]),a}(),ca=1,da=!1;return P.browser=S,P.defaults=U,P}); |
{ | ||
"name": "tippy.js", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "Vanilla JS Tooltip Library", | ||
@@ -14,29 +14,35 @@ "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 && rollup -c scripts/rollup.bundle.min.config.js", | ||
"standalone": | ||
"rollup -c scripts/rollup.standalone.config.js && rollup -c scripts/rollup.standalone.min.config.js", | ||
"themes": | ||
"rollup -c scripts/themes/rollup.light.config.js && rollup -c scripts/themes/rollup.translucent.config.js", | ||
"test": "eslint 'src/**/*.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", | ||
"themes": "rollup -c scripts/themes/rollup.light.config.js && rollup -c scripts/themes/rollup.translucent.config.js", | ||
"test": "eslint 'src/**/*.js' && jest --verbose", | ||
"prettier": "prettier --print-width 100 --no-semi --single-quote es5 --write 'src/**/*.js'" | ||
}, | ||
"jest": { | ||
"setupFiles": [ | ||
"./tests/polyfills/createRange.js", | ||
"./tests/polyfills/MutationObserver.js" | ||
] | ||
}, | ||
"author": "atomiks", | ||
"license": "MIT", | ||
"keywords": ["tooltip", "tippy", "tippy.js"], | ||
"keywords": [ | ||
"tooltip", | ||
"tippy", | ||
"tippy.js" | ||
], | ||
"devDependencies": { | ||
"autoprefixer": "^6.7.7", | ||
"babel-core": "^6.25.0", | ||
"babel-jest": "^22.1.0", | ||
"babel-loader": "^6.4.1", | ||
"babel-plugin-transform-object-assign": "^6.22.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.23.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-preset-es2015-rollup": "^3.0.0", | ||
"cssnano": "^3.10.0", | ||
"eslint": "^4.14.0", | ||
"jasmine": "^2.8.0", | ||
"karma": "^1.7.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-firefox-launcher": "^1.0.1", | ||
"karma-jasmine": "^1.1.1", | ||
"jest": "^22.1.4", | ||
"jsdom": "^11.6.2", | ||
"mutation-observer": "^1.0.3", | ||
"postcss": "^5.2.16", | ||
@@ -43,0 +49,0 @@ "postcss-cssnext": "^3.0.2", |
@@ -54,3 +54,3 @@ # Tippy.js | ||
<!-- Include Tippy --> | ||
<script src="https://unpkg.com/tippy.js@2.0.9/dist/tippy.all.min.js"></script> | ||
<script src="https://unpkg.com/tippy.js@2.2.0/dist/tippy.all.min.js"></script> | ||
<!-- Initialize tooltips by calling the `tippy` function with a CSS selector --> | ||
@@ -65,2 +65,1 @@ <script> | ||
View the [docs](https://atomiks.github.io/tippyjs/) for details on all of the options you can supply to customize tooltips to suit your needs. | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
28
453403
9057
64