Comparing version 6.0.2 to 6.0.3
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t=t||self).tippy=e(t.Popper)}(this,(function(t){"use strict";var e="undefined"!=typeof window&&"undefined"!=typeof document,n=e?navigator.userAgent:"",r=/MSIE |Trident\//.test(n),i=e&&/iPhone|iPad|iPod/.test(navigator.platform),o={passive:!0};function a(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function s(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function p(t,e){return"function"==typeof t?t.apply(void 0,e):t}function u(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function c(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}function f(t){return[].concat(t)}function l(t,e){-1===t.indexOf(e)&&t.push(e)}function d(t){return t.split("-")[0]}function m(t){return[].slice.call(t)}function v(){return document.createElement("div")}function g(t){return s(t,"Element")}function h(t){return s(t,"MouseEvent")}function b(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function y(t){return g(t)?[t]:function(t){return s(t,"NodeList")}(t)?m(t):Array.isArray(t)?t:m(document.querySelectorAll(t))}function x(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function w(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function T(t){var e=f(t)[0];return e&&e.ownerDocument||document}function E(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}var A={isTouch:!1},C=0;function O(){A.isTouch||(A.isTouch=!0,window.performance&&document.addEventListener("mousemove",D))}function D(){var t=performance.now();t-C<20&&(A.isTouch=!1,document.removeEventListener("mousemove",D)),C=t}function L(){var t=document.activeElement;if(b(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var k=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},content:"",delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),V=Object.keys(k);function M(t){var e=(t.plugins||[]).reduce((function(e,n){var r=n.name,i=n.defaultValue;return r&&(e[r]=void 0!==t[r]?t[r]:i),e}),{});return Object.assign({},t,{},e)}function j(t,e){var n=Object.assign({},e,{content:p(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(M(Object.assign({},k,{plugins:e}))):V).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},k.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function R(t,e){t.innerHTML=e}function S(t){var e=v();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",g(t)?e.appendChild(t):R(e,t)),e}function P(t,e){g(e.content)?(R(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?R(t,e.content):t.textContent=e.content)}function I(t){var e=t.firstElementChild,n=m(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function B(t){var e=v(),n=v();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=v();function i(n,r){var i=I(e),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content!==r.content&&P(a,t.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(S(r.arrow))):o.appendChild(S(r.arrow)):s&&o.removeChild(s)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),P(r,t.props),e.appendChild(n),n.appendChild(r),i(t.props,t.props),{popper:e,onUpdate:i}}B.$$tippy=!0;var N=1,H=[],U=[];function _(e,n){var s,c,g,b,y,C,O,D,L=j(e,Object.assign({},k,{},M(n))),V=!1,R=!1,S=!1,P=[],B=u(gt,L.interactiveDebounce),_=T(L.triggerTarget||e),z=N++,F=(D=L.plugins).filter((function(t,e){return D.indexOf(t)===e})),q={id:z,reference:e,popper:v(),popperInstance:null,props:L,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:F,clearDelayTimeouts:function(){clearTimeout(s),clearTimeout(c),cancelAnimationFrame(g)},setProps:function(t){if(q.state.isDestroyed)return;it("onBeforeUpdate",[q,t]),mt();var n=q.props,r=j(e,Object.assign({},q.props,{},t,{ignoreAttributes:!0}));q.props=r,dt(),n.interactiveDebounce!==r.interactiveDebounce&&(st(),B=u(gt,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?f(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");at(),nt(),$&&$(n,r);q.popperInstance&&(xt(),Tt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));it("onAfterUpdate",[q,t])},setContent:function(t){q.setProps({content:t})},show:function(){var t=q.state.isVisible,e=q.state.isDestroyed,n=!q.state.isEnabled,r=A.isTouch&&!q.props.touch,i=a(q.props.duration,0,k.duration);if(t||e||n||r)return;if(Z().hasAttribute("disabled"))return;if(it("onShow",[q],!1),!1===q.props.onShow(q))return;q.state.isVisible=!0,Q()&&(Y.style.visibility="visible");nt(),ut(),q.state.isMounted||(Y.style.transition="none");if(Q()){var o=tt(),s=o.box,u=o.content;x([s,u],0)}C=function(){if(q.state.isVisible&&!S){if(S=!0,Y.offsetHeight,Y.style.transition=q.props.moveTransition,Q()&&q.props.animation){var t=tt(),e=t.box,n=t.content;x([e,n],i),w([e,n],"visible")}ot(),at(),l(U,q),rt(!0),q.state.isMounted=!0,it("onMount",[q]),q.props.animation&&Q()&&function(t,e){ft(t,e)}(i,(function(){q.state.isShown=!0,it("onShown",[q])}))}},function(){var t,e=q.props.appendTo,n=Z();t=q.props.interactive&&e===k.appendTo||"parent"===e?n.parentNode:p(e,[n]);t.contains(Y)||t.appendChild(Y);xt()}()},hide:function(){var t=!q.state.isVisible,e=q.state.isDestroyed,n=!q.state.isEnabled,r=a(q.props.duration,1,k.duration);if(t||e||n)return;if(it("onHide",[q],!1),!1===q.props.onHide(q))return;q.state.isVisible=!1,q.state.isShown=!1,S=!1,Q()&&(Y.style.visibility="hidden");if(st(),ct(),nt(),Q()){var i=tt(),o=i.box,s=i.content;q.props.animation&&(x([o,s],r),w([o,s],"hidden"))}ot(),at(),q.props.animation?Q()&&function(t,e){ft(t,(function(){!q.state.isVisible&&Y.parentNode&&Y.parentNode.contains(Y)&&e()}))}(r,q.unmount):q.unmount()},enable:function(){q.state.isEnabled=!0},disable:function(){q.hide(),q.state.isEnabled=!1},unmount:function(){q.state.isVisible&&q.hide();if(!q.state.isMounted)return;wt(),Tt().forEach((function(t){t._tippy.unmount()})),Y.parentNode&&Y.parentNode.removeChild(Y);0===(U=U.filter((function(t){return t!==q}))).length&&rt(!1);q.state.isMounted=!1,it("onHidden",[q])},destroy:function(){if(q.state.isDestroyed)return;q.clearDelayTimeouts(),q.unmount(),mt(),delete e._tippy,q.state.isDestroyed=!0,it("onDestroy",[q])}};if(!L.render)return q;var X=L.render(q),Y=X.popper,$=X.onUpdate;Y.setAttribute("data-tippy-root",""),Y.id="tippy-"+q.id,q.popper=Y,e._tippy=q,Y._tippy=q;var W=F.map((function(t){return t.fn(q)})),J=e.hasAttribute("aria-expanded");return dt(),at(),nt(),it("onCreate",[q]),L.showOnCreate&&Et(),Y.addEventListener("mouseenter",(function(){q.props.interactive&&q.state.isVisible&&q.clearDelayTimeouts()})),Y.addEventListener("mouseleave",(function(t){q.props.interactive&&q.props.trigger.indexOf("mouseenter")>=0&&(_.addEventListener("mousemove",B),B(t))})),q;function G(){var t=q.props.touch;return Array.isArray(t)?t:[t,0]}function K(){return"hold"===G()[0]}function Q(){var t;return!!(null==(t=q.props.render)?void 0:t.$$tippy)}function Z(){return O||e}function tt(){return I(Y)}function et(t){return q.state.isMounted&&!q.state.isVisible||A.isTouch||b&&"focus"===b.type?0:a(q.props.delay,t?0:1,k.delay)}function nt(){Y.style.pointerEvents=q.props.interactive&&q.state.isVisible?"":"none",Y.style.zIndex=""+q.props.zIndex}function rt(t){var e=t&&i&&A.isTouch;_.body.classList[e?"add":"remove"]("tippy-iOS")}function it(t,e,n){var r;(void 0===n&&(n=!0),W.forEach((function(n){n[t]&&n[t].apply(void 0,e)})),n)&&(r=q.props)[t].apply(r,e)}function ot(){var t=q.props.aria;if(t.content){var n="aria-"+t.content,r=Y.id;f(q.props.triggerTarget||e).forEach((function(t){var e=t.getAttribute(n);if(q.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var i=e&&e.replace(r,"").trim();i?t.setAttribute(n,i):t.removeAttribute(n)}}))}}function at(){!J&&q.props.aria.expanded&&f(q.props.triggerTarget||e).forEach((function(t){q.props.interactive?t.setAttribute("aria-expanded",q.state.isVisible&&t===Z()?"true":"false"):t.removeAttribute("aria-expanded")}))}function st(){_.body.removeEventListener("mouseleave",At),_.removeEventListener("mousemove",B),H=H.filter((function(t){return t!==B}))}function pt(t){if(!q.props.interactive||!Y.contains(t.target)){if(Z().contains(t.target)){if(A.isTouch)return;if(q.state.isVisible&&q.props.trigger.indexOf("click")>=0)return}!0===q.props.hideOnClick&&(V=!1,q.clearDelayTimeouts(),q.hide(),R=!0,setTimeout((function(){R=!1})),q.state.isMounted||ct())}}function ut(){_.addEventListener("mousedown",pt,!0)}function ct(){_.removeEventListener("mousedown",pt,!0)}function ft(t,e){var n=tt().box;function r(t){t.target===n&&(E(n,"remove",r),e())}if(0===t)return e();E(n,"remove",y),E(n,"add",r),y=r}function lt(t,n,r){void 0===r&&(r=!1),f(q.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),P.push({node:e,eventType:t,handler:n,options:r})}))}function dt(){var t;K()&&(lt("touchstart",vt,o),lt("touchend",ht,o)),(t=q.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(lt(t,vt),t){case"mouseenter":lt("mouseleave",ht);break;case"focus":lt(r?"focusout":"blur",bt);break;case"focusin":lt("focusout",bt)}}))}function mt(){P.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)})),P=[]}function vt(t){var e=!1;if(q.state.isEnabled&&!yt(t)&&!R){if(b=t,O=t.currentTarget,at(),!q.state.isVisible&&h(t)&&H.forEach((function(e){return e(t)})),"click"===t.type&&(q.props.trigger.indexOf("mouseenter")<0||V)&&!1!==q.props.hideOnClick&&q.state.isVisible)e=!0;else{var n=G(),r=n[0],i=n[1];A.isTouch&&"hold"===r&&i?s=setTimeout((function(){Et(t)}),i):Et(t)}"click"===t.type&&(V=!e),e&&At(t)}}function gt(t){var n=t.target,r=e.contains(n)||Y.contains(n);"mousemove"===t.type&&r||function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,i=t.popperState,o=t.props.interactiveBorder,a=d(i.placement),s=i.modifiersData.offset;if(!s)return!0;var p="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,f="left"===a?s.right.x:0,l=e.top-r+p>o,m=r-e.bottom-u>o,v=e.left-n+c>o,g=n-e.right-f>o;return l||m||v||g}))}(Tt().concat(Y).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:L}:null})).filter(Boolean),t)&&(st(),At(t))}function ht(t){if(!(yt(t)||q.props.trigger.indexOf("click")>=0&&V))return q.props.interactive?(_.body.addEventListener("mouseleave",At),_.addEventListener("mousemove",B),l(H,B),void B(t)):void At(t)}function bt(t){q.props.trigger.indexOf("focusin")<0&&t.target!==Z()||q.props.interactive&&t.relatedTarget&&Y.contains(t.relatedTarget)||At(t)}function yt(t){return!!A.isTouch&&K()!==t.type.indexOf("touch")>=0}function xt(){wt();var n=q.props,r=n.popperOptions,i=n.placement,o=n.offset,a=n.getReferenceClientRect,s=n.moveTransition,p=Q()?I(Y).arrow:null,u=a?{getBoundingClientRect:a}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(Q()){var n=tt().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}},f={name:"arrow",enabled:!!p,options:{element:p,padding:3}},l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}}].concat(Q()?[f]:[],(null==r?void 0:r.modifiers)||[],[c]);q.popperInstance=t.createPopper(u,Y,Object.assign({},r,{placement:i,onFirstUpdate:C,modifiers:l}))}function wt(){q.popperInstance&&(q.popperInstance.destroy(),q.popperInstance=null)}function Tt(){return m(Y.querySelectorAll("[data-tippy-root]"))}function Et(t){q.clearDelayTimeouts(),t&&it("onTrigger",[q,t]),ut();var e=et(!0);e?s=setTimeout((function(){q.show()}),e):q.show()}function At(t){if(q.clearDelayTimeouts(),it("onUntrigger",[q,t]),q.state.isVisible){if(!(q.props.trigger.indexOf("mouseenter")>=0&&q.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&V)){var e=et(!1);e?c=setTimeout((function(){q.state.isVisible&&q.hide()}),e):g=requestAnimationFrame((function(){q.hide()}))}}else ct()}}function z(t,e){void 0===e&&(e={});var n=k.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",O,Object.assign({},o,{capture:!0})),window.addEventListener("blur",L);var r=Object.assign({},e,{plugins:n}),i=y(t).reduce((function(t,e){var n=e&&_(e,r);return n&&t.push(n),t}),[]);return g(t)?i[0]:i}z.defaultProps=k,z.setDefaultProps=function(t){Object.keys(t).forEach((function(e){k[e]=t[e]}))},z.currentInput=A;var F={mouseover:"mouseenter",focusin:"focus",click:"click"};var q={name:"animateFill",defaultValue:!1,fn:function(t){var e;if(t.props.animateFill&&!(null==(e=t.props.render)?void 0:e.$$tippy))return{};var n=I(t.popper),r=n.box,i=n.content,o=t.props.animateFill?function(){var t=v();return t.className="tippy-backdrop",w([t],"hidden"),t}():null;return{onCreate:function(){o&&(r.insertBefore(o,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var t=r.style.transitionDuration,e=Number(t.replace("ms",""));i.style.transitionDelay=Math.round(e/10)+"ms",o.style.transitionDuration=t,w([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&w([o],"hidden")}}}};var X={name:"followCursor",defaultValue:!1,fn:function(t){var e=t.reference,n=T(t.props.triggerTarget||e),r=null;function i(){return"manual"===t.props.trigger.trim()}function o(){var e=!!i()||null!==r&&!(0===r.clientX&&0===r.clientY);return t.props.followCursor&&e}function a(e){e&&t.setProps({getReferenceClientRect:null})}function s(){o()?n.addEventListener("mousemove",u):a(t.props.followCursor)}function p(){n.removeEventListener("mousemove",u)}function u(n){r={clientX:n.clientX,clientY:n.clientY};var i=!n.target||e.contains(n.target),o=t.props.followCursor,a=n.clientX,s=n.clientY,u=e.getBoundingClientRect(),c=a-u.left,f=s-u.top;!i&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=e.getBoundingClientRect(),n=a,r=s;"initial"===o&&(n=t.left+c,r=t.top+f);var i="horizontal"===o?t.top:r,p="vertical"===o?t.right:n,u="horizontal"===o?t.bottom:r,l="vertical"===o?t.left:n;return{width:p-l,height:u-i,top:i,right:p,bottom:u,left:l}}}),(A.isTouch||"initial"===t.props.followCursor&&t.state.isVisible)&&p()}return{onAfterUpdate:function(t,e){var n=e.followCursor;void 0===n||n||a(!0)},onMount:function(){o()&&u(r)},onShow:function(){i()&&(r={clientX:0,clientY:0},s())},onTrigger:function(t,e){r||(h(e)&&(r={clientX:e.clientX,clientY:e.clientY}),s())},onUntrigger:function(){t.state.isVisible||(p(),r=null)},onHidden:function(){p(),r=null}}}},Y={name:"inlinePositioning",defaultValue:!1,fn:function(t){var e,n=t.reference;var r={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var i=r.state;t.props.inlinePositioning&&(e!==i.placement&&t.setProps({getReferenceClientRect:function(){return function(t){return function(t,e,n){if(n.length<2||null===t)return e;switch(t){case"top":case"bottom":var r=n[0],i=n[n.length-1],o="top"===t,a=r.top,s=i.bottom,p=o?r.left:i.left,u=o?r.right:i.right;return{top:a,bottom:s,left:p,right:u,width:u-p,height:s-a};case"left":case"right":var c=Math.min.apply(Math,n.map((function(t){return t.left}))),f=Math.max.apply(Math,n.map((function(t){return t.right}))),l=n.filter((function(e){return"left"===t?e.left===c:e.right===f})),d=l[0].top,m=l[l.length-1].bottom;return{top:d,bottom:m,left:c,right:f,width:f-c,height:m-d};default:return e}}(d(t),n.getBoundingClientRect(),m(n.getClientRects()))}(i.placement)}}),e=i.placement)}};return{onCreate:function(){var e;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[],[r])})})}}}};var $={name:"sticky",defaultValue:!1,fn:function(t){var e=t.reference,n=t.popper;function r(e){return!0===t.props.sticky||t.props.sticky===e}var i=null,o=null;function a(){var s=r("reference")?(t.popperInstance?t.popperInstance.state.elements.reference:e).getBoundingClientRect():null,p=r("popper")?n.getBoundingClientRect():null;(s&&W(i,s)||p&&W(o,p))&&t.popperInstance&&t.popperInstance.update(),i=s,o=p,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function W(t,e){return!t||!e||(t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left)}return e&&function(t){var e=document.createElement("style");e.textContent=t,e.setAttribute("data-tippy-stylesheet","");var n=document.head,r=document.querySelector("head>style,head>link");r?n.insertBefore(e,r):n.appendChild(e)}('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:#333;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:#333;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:#333;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:#333;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),z.setDefaultProps({plugins:[q,X,Y,$],render:B}),z.createSingleton=function(t,e){var n;void 0===e&&(e={}),t.forEach((function(t){t.disable()}));var r=t.map((function(t){return t.reference})),i={fn:function(){return{onDestroy:function(){t.forEach((function(t){t.enable()}))},onTrigger:function(i,o){var a=o.currentTarget,s=r.indexOf(a);if(a!==n){n=a;var p=(e.overrides||[]).concat("content").reduce((function(e,n){return e[n]=t[s].props[n],e}),{});i.setProps(Object.assign({},p,{getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}};return z(v(),Object.assign({},c(e,["overrides"]),{plugins:[i].concat(e.plugins||[]),triggerTarget:r}))},z.delegate=function(t,e){var n=[],r=[],i=e.target,o=c(e,["target"]),a=Object.assign({},o,{trigger:"manual"}),s=Object.assign({},o,{showOnCreate:!0}),p=z(t,a);function u(t){if(t.target){var n=t.target.closest(i);if(n)if(!((n.getAttribute("data-tippy-trigger")||e.trigger||k.trigger).indexOf(F[t.type])<0||n._tippy)){var o=z(n,s);o&&(r=r.concat(o))}}}function l(t,e,r,i){void 0===i&&(i=!1),t.addEventListener(e,r,i),n.push({node:t,eventType:e,handler:r,options:i})}return f(p).forEach((function(t){var e=t.destroy;t.destroy=function(t){void 0===t&&(t=!0),t&&r.forEach((function(t){t.destroy()})),r=[],n.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)})),n=[],e()},function(t){var e=t.reference;l(e,"mouseover",u),l(e,"focusin",u),l(e,"click",u)}(t)})),p},z.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,r=e.duration;U.forEach((function(t){var e=!1;if(n&&(e=b(n)?t.reference===n:t.popper===n.popper),!e){var i=t.props.duration;t.setProps({duration:r}),t.hide(),t.state.isDestroyed||t.setProps({duration:i})}}))},z.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',z})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t=t||self).tippy=e(t.Popper)}(this,(function(t){"use strict";var e="undefined"!=typeof window&&"undefined"!=typeof document,n=e?navigator.userAgent:"",r=/MSIE |Trident\//.test(n),i=e&&/iPhone|iPad|iPod/.test(navigator.platform),o={passive:!0};function a(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function s(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function p(t,e){return"function"==typeof t?t.apply(void 0,e):t}function u(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function c(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}function f(t){return[].concat(t)}function l(t,e){-1===t.indexOf(e)&&t.push(e)}function d(t){return t.split("-")[0]}function m(t){return[].slice.call(t)}function v(){return document.createElement("div")}function g(t){return s(t,"Element")}function h(t){return s(t,"MouseEvent")}function b(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function y(t){return g(t)?[t]:function(t){return s(t,"NodeList")}(t)?m(t):Array.isArray(t)?t:m(document.querySelectorAll(t))}function x(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function w(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function T(t){var e=f(t)[0];return e&&e.ownerDocument||document}function E(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}var A={isTouch:!1},C=0;function O(){A.isTouch||(A.isTouch=!0,window.performance&&document.addEventListener("mousemove",D))}function D(){var t=performance.now();t-C<20&&(A.isTouch=!1,document.removeEventListener("mousemove",D)),C=t}function L(){var t=document.activeElement;if(b(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var k=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},content:"",delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),V=Object.keys(k);function M(t){var e=(t.plugins||[]).reduce((function(e,n){var r=n.name,i=n.defaultValue;return r&&(e[r]=void 0!==t[r]?t[r]:i),e}),{});return Object.assign({},t,{},e)}function j(t,e){var n=Object.assign({},e,{content:p(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(M(Object.assign({},k,{plugins:e}))):V).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},k.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function R(t,e){t.innerHTML=e}function S(t){var e=v();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",g(t)?e.appendChild(t):R(e,t)),e}function P(t,e){g(e.content)?(R(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?R(t,e.content):t.textContent=e.content)}function I(t){var e=t.firstElementChild,n=m(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function B(t){var e=v(),n=v();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=v();function i(n,r){var i=I(e),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content!==r.content&&P(a,t.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(S(r.arrow))):o.appendChild(S(r.arrow)):s&&o.removeChild(s)}return r.className="tippy-content",r.setAttribute("data-state","hidden"),P(r,t.props),e.appendChild(n),n.appendChild(r),i(t.props,t.props),{popper:e,onUpdate:i}}B.$$tippy=!0;var N=1,H=[],U=[];function _(e,n){var s,c,g,b,y,C,O,D,L=j(e,Object.assign({},k,{},M(n))),V=!1,R=!1,S=!1,P=[],B=u(gt,L.interactiveDebounce),_=T(L.triggerTarget||e),z=N++,F=(D=L.plugins).filter((function(t,e){return D.indexOf(t)===e})),q={id:z,reference:e,popper:v(),popperInstance:null,props:L,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:F,clearDelayTimeouts:function(){clearTimeout(s),clearTimeout(c),cancelAnimationFrame(g)},setProps:function(t){if(q.state.isDestroyed)return;it("onBeforeUpdate",[q,t]),mt();var n=q.props,r=j(e,Object.assign({},q.props,{},t,{ignoreAttributes:!0}));q.props=r,dt(),n.interactiveDebounce!==r.interactiveDebounce&&(st(),B=u(gt,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?f(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");at(),nt(),$&&$(n,r);q.popperInstance&&(xt(),Tt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));it("onAfterUpdate",[q,t])},setContent:function(t){q.setProps({content:t})},show:function(){var t=q.state.isVisible,e=q.state.isDestroyed,n=!q.state.isEnabled,r=A.isTouch&&!q.props.touch,i=a(q.props.duration,0,k.duration);if(t||e||n||r)return;if(Z().hasAttribute("disabled"))return;if(it("onShow",[q],!1),!1===q.props.onShow(q))return;q.state.isVisible=!0,Q()&&(Y.style.visibility="visible");nt(),ut(),q.state.isMounted||(Y.style.transition="none");if(Q()){var o=tt(),s=o.box,u=o.content;x([s,u],0)}C=function(){if(q.state.isVisible&&!S){if(S=!0,Y.offsetHeight,Y.style.transition=q.props.moveTransition,Q()&&q.props.animation){var t=tt(),e=t.box,n=t.content;x([e,n],i),w([e,n],"visible")}ot(),at(),l(U,q),rt(!0),q.state.isMounted=!0,it("onMount",[q]),q.props.animation&&Q()&&function(t,e){ft(t,e)}(i,(function(){q.state.isShown=!0,it("onShown",[q])}))}},function(){var t,e=q.props.appendTo,n=Z();t=q.props.interactive&&e===k.appendTo||"parent"===e?n.parentNode:p(e,[n]);t.contains(Y)||t.appendChild(Y);xt()}()},hide:function(){var t=!q.state.isVisible,e=q.state.isDestroyed,n=!q.state.isEnabled,r=a(q.props.duration,1,k.duration);if(t||e||n)return;if(it("onHide",[q],!1),!1===q.props.onHide(q))return;q.state.isVisible=!1,q.state.isShown=!1,S=!1,Q()&&(Y.style.visibility="hidden");if(st(),ct(),nt(),Q()){var i=tt(),o=i.box,s=i.content;q.props.animation&&(x([o,s],r),w([o,s],"hidden"))}ot(),at(),q.props.animation?Q()&&function(t,e){ft(t,(function(){!q.state.isVisible&&Y.parentNode&&Y.parentNode.contains(Y)&&e()}))}(r,q.unmount):q.unmount()},enable:function(){q.state.isEnabled=!0},disable:function(){q.hide(),q.state.isEnabled=!1},unmount:function(){q.state.isVisible&&q.hide();if(!q.state.isMounted)return;wt(),Tt().forEach((function(t){t._tippy.unmount()})),Y.parentNode&&Y.parentNode.removeChild(Y);0===(U=U.filter((function(t){return t!==q}))).length&&rt(!1);q.state.isMounted=!1,it("onHidden",[q])},destroy:function(){if(q.state.isDestroyed)return;q.clearDelayTimeouts(),q.unmount(),mt(),delete e._tippy,q.state.isDestroyed=!0,it("onDestroy",[q])}};if(!L.render)return q;var X=L.render(q),Y=X.popper,$=X.onUpdate;Y.setAttribute("data-tippy-root",""),Y.id="tippy-"+q.id,q.popper=Y,e._tippy=q,Y._tippy=q;var W=F.map((function(t){return t.fn(q)})),J=e.hasAttribute("aria-expanded");return dt(),at(),nt(),it("onCreate",[q]),L.showOnCreate&&Et(),Y.addEventListener("mouseenter",(function(){q.props.interactive&&q.state.isVisible&&q.clearDelayTimeouts()})),Y.addEventListener("mouseleave",(function(t){q.props.interactive&&q.props.trigger.indexOf("mouseenter")>=0&&(_.addEventListener("mousemove",B),B(t))})),q;function G(){var t=q.props.touch;return Array.isArray(t)?t:[t,0]}function K(){return"hold"===G()[0]}function Q(){var t;return!!(null==(t=q.props.render)?void 0:t.$$tippy)}function Z(){return O||e}function tt(){return I(Y)}function et(t){return q.state.isMounted&&!q.state.isVisible||A.isTouch||b&&"focus"===b.type?0:a(q.props.delay,t?0:1,k.delay)}function nt(){Y.style.pointerEvents=q.props.interactive&&q.state.isVisible?"":"none",Y.style.zIndex=""+q.props.zIndex}function rt(t){var e=t&&i&&A.isTouch;_.body.classList[e?"add":"remove"]("tippy-iOS")}function it(t,e,n){var r;(void 0===n&&(n=!0),W.forEach((function(n){n[t]&&n[t].apply(void 0,e)})),n)&&(r=q.props)[t].apply(r,e)}function ot(){var t=q.props.aria;if(t.content){var n="aria-"+t.content,r=Y.id;f(q.props.triggerTarget||e).forEach((function(t){var e=t.getAttribute(n);if(q.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var i=e&&e.replace(r,"").trim();i?t.setAttribute(n,i):t.removeAttribute(n)}}))}}function at(){!J&&q.props.aria.expanded&&f(q.props.triggerTarget||e).forEach((function(t){q.props.interactive?t.setAttribute("aria-expanded",q.state.isVisible&&t===Z()?"true":"false"):t.removeAttribute("aria-expanded")}))}function st(){_.body.removeEventListener("mouseleave",At),_.removeEventListener("mousemove",B),H=H.filter((function(t){return t!==B}))}function pt(t){if(!q.props.interactive||!Y.contains(t.target)){if(Z().contains(t.target)){if(A.isTouch)return;if(q.state.isVisible&&q.props.trigger.indexOf("click")>=0)return}!0===q.props.hideOnClick&&(V=!1,q.clearDelayTimeouts(),q.hide(),R=!0,setTimeout((function(){R=!1})),q.state.isMounted||ct())}}function ut(){_.addEventListener("mousedown",pt,!0)}function ct(){_.removeEventListener("mousedown",pt,!0)}function ft(t,e){var n=tt().box;function r(t){t.target===n&&(E(n,"remove",r),e())}if(0===t)return e();E(n,"remove",y),E(n,"add",r),y=r}function lt(t,n,r){void 0===r&&(r=!1),f(q.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),P.push({node:e,eventType:t,handler:n,options:r})}))}function dt(){var t;K()&&(lt("touchstart",vt,o),lt("touchend",ht,o)),(t=q.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(lt(t,vt),t){case"mouseenter":lt("mouseleave",ht);break;case"focus":lt(r?"focusout":"blur",bt);break;case"focusin":lt("focusout",bt)}}))}function mt(){P.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)})),P=[]}function vt(t){var e=!1;if(q.state.isEnabled&&!yt(t)&&!R){if(b=t,O=t.currentTarget,at(),!q.state.isVisible&&h(t)&&H.forEach((function(e){return e(t)})),"click"===t.type&&(q.props.trigger.indexOf("mouseenter")<0||V)&&!1!==q.props.hideOnClick&&q.state.isVisible)e=!0;else{var n=G(),r=n[0],i=n[1];A.isTouch&&"hold"===r&&i?s=setTimeout((function(){Et(t)}),i):Et(t)}"click"===t.type&&(V=!e),e&&At(t)}}function gt(t){var n=t.target,r=e.contains(n)||Y.contains(n);"mousemove"===t.type&&r||function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,i=t.popperState,o=t.props.interactiveBorder,a=d(i.placement),s=i.modifiersData.offset;if(!s)return!0;var p="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,f="left"===a?s.right.x:0,l=e.top-r+p>o,m=r-e.bottom-u>o,v=e.left-n+c>o,g=n-e.right-f>o;return l||m||v||g}))}(Tt().concat(Y).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:L}:null})).filter(Boolean),t)&&(st(),At(t))}function ht(t){if(!(yt(t)||q.props.trigger.indexOf("click")>=0&&V))return q.props.interactive?(_.body.addEventListener("mouseleave",At),_.addEventListener("mousemove",B),l(H,B),void B(t)):void At(t)}function bt(t){q.props.trigger.indexOf("focusin")<0&&t.target!==Z()||q.props.interactive&&t.relatedTarget&&Y.contains(t.relatedTarget)||At(t)}function yt(t){return!!A.isTouch&&K()!==t.type.indexOf("touch")>=0}function xt(){wt();var n=q.props,r=n.popperOptions,i=n.placement,o=n.offset,a=n.getReferenceClientRect,s=n.moveTransition,p=Q()?I(Y).arrow:null,u=a?{getBoundingClientRect:a}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(Q()){var n=tt().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}},f={name:"arrow",enabled:!!p,options:{element:p,padding:3}},l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}}].concat(Q()?[f]:[],(null==r?void 0:r.modifiers)||[],[c]);q.popperInstance=t.createPopper(u,Y,Object.assign({},r,{placement:i,onFirstUpdate:C,modifiers:l}))}function wt(){q.popperInstance&&(q.popperInstance.destroy(),q.popperInstance=null)}function Tt(){return m(Y.querySelectorAll("[data-tippy-root]"))}function Et(t){q.clearDelayTimeouts(),t&&it("onTrigger",[q,t]),ut();var e=et(!0);e?s=setTimeout((function(){q.show()}),e):q.show()}function At(t){if(q.clearDelayTimeouts(),it("onUntrigger",[q,t]),q.state.isVisible){if(!(q.props.trigger.indexOf("mouseenter")>=0&&q.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&V)){var e=et(!1);e?c=setTimeout((function(){q.state.isVisible&&q.hide()}),e):g=requestAnimationFrame((function(){q.hide()}))}}else ct()}}function z(t,e){void 0===e&&(e={});var n=k.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",O,Object.assign({},o,{capture:!0})),window.addEventListener("blur",L);var r=Object.assign({},e,{plugins:n}),i=y(t).reduce((function(t,e){var n=e&&_(e,r);return n&&t.push(n),t}),[]);return g(t)?i[0]:i}z.defaultProps=k,z.setDefaultProps=function(t){Object.keys(t).forEach((function(e){k[e]=t[e]}))},z.currentInput=A;var F={mouseover:"mouseenter",focusin:"focus",click:"click"};var q={name:"animateFill",defaultValue:!1,fn:function(t){var e;if(!(null==(e=t.props.render)?void 0:e.$$tippy))return t.props.animateFill,{};var n=I(t.popper),r=n.box,i=n.content,o=t.props.animateFill?function(){var t=v();return t.className="tippy-backdrop",w([t],"hidden"),t}():null;return{onCreate:function(){o&&(r.insertBefore(o,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var t=r.style.transitionDuration,e=Number(t.replace("ms",""));i.style.transitionDelay=Math.round(e/10)+"ms",o.style.transitionDuration=t,w([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&w([o],"hidden")}}}};var X={name:"followCursor",defaultValue:!1,fn:function(t){var e=t.reference,n=T(t.props.triggerTarget||e),r=null;function i(){return"manual"===t.props.trigger.trim()}function o(){var e=!!i()||null!==r&&!(0===r.clientX&&0===r.clientY);return t.props.followCursor&&e}function a(e){e&&t.setProps({getReferenceClientRect:null})}function s(){o()?n.addEventListener("mousemove",u):a(t.props.followCursor)}function p(){n.removeEventListener("mousemove",u)}function u(n){r={clientX:n.clientX,clientY:n.clientY};var i=!n.target||e.contains(n.target),o=t.props.followCursor,a=n.clientX,s=n.clientY,u=e.getBoundingClientRect(),c=a-u.left,f=s-u.top;!i&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=e.getBoundingClientRect(),n=a,r=s;"initial"===o&&(n=t.left+c,r=t.top+f);var i="horizontal"===o?t.top:r,p="vertical"===o?t.right:n,u="horizontal"===o?t.bottom:r,l="vertical"===o?t.left:n;return{width:p-l,height:u-i,top:i,right:p,bottom:u,left:l}}}),(A.isTouch||"initial"===t.props.followCursor&&t.state.isVisible)&&p()}return{onAfterUpdate:function(t,e){var n=e.followCursor;void 0===n||n||a(!0)},onMount:function(){o()&&u(r)},onShow:function(){i()&&(r={clientX:0,clientY:0},s())},onTrigger:function(t,e){r||(h(e)&&(r={clientX:e.clientX,clientY:e.clientY}),s())},onUntrigger:function(){t.state.isVisible||(p(),r=null)},onHidden:function(){p(),r=null}}}},Y={name:"inlinePositioning",defaultValue:!1,fn:function(t){var e,n=t.reference;var r={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var i=r.state;t.props.inlinePositioning&&(e!==i.placement&&t.setProps({getReferenceClientRect:function(){return function(t){return function(t,e,n){if(n.length<2||null===t)return e;switch(t){case"top":case"bottom":var r=n[0],i=n[n.length-1],o="top"===t,a=r.top,s=i.bottom,p=o?r.left:i.left,u=o?r.right:i.right;return{top:a,bottom:s,left:p,right:u,width:u-p,height:s-a};case"left":case"right":var c=Math.min.apply(Math,n.map((function(t){return t.left}))),f=Math.max.apply(Math,n.map((function(t){return t.right}))),l=n.filter((function(e){return"left"===t?e.left===c:e.right===f})),d=l[0].top,m=l[l.length-1].bottom;return{top:d,bottom:m,left:c,right:f,width:f-c,height:m-d};default:return e}}(d(t),n.getBoundingClientRect(),m(n.getClientRects()))}(i.placement)}}),e=i.placement)}};return{onCreate:function(){var e;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[],[r])})})}}}};var $={name:"sticky",defaultValue:!1,fn:function(t){var e=t.reference,n=t.popper;function r(e){return!0===t.props.sticky||t.props.sticky===e}var i=null,o=null;function a(){var s=r("reference")?(t.popperInstance?t.popperInstance.state.elements.reference:e).getBoundingClientRect():null,p=r("popper")?n.getBoundingClientRect():null;(s&&W(i,s)||p&&W(o,p))&&t.popperInstance&&t.popperInstance.update(),i=s,o=p,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function W(t,e){return!t||!e||(t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left)}return e&&function(t){var e=document.createElement("style");e.textContent=t,e.setAttribute("data-tippy-stylesheet","");var n=document.head,r=document.querySelector("head>style,head>link");r?n.insertBefore(e,r):n.appendChild(e)}('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:#333;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:#333;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:#333;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:#333;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}'),z.setDefaultProps({plugins:[q,X,Y,$],render:B}),z.createSingleton=function(t,e){var n;void 0===e&&(e={}),t.forEach((function(t){t.disable()}));var r=t.map((function(t){return t.reference})),i={fn:function(){return{onDestroy:function(){t.forEach((function(t){t.enable()}))},onTrigger:function(i,o){var a=o.currentTarget,s=r.indexOf(a);if(a!==n){n=a;var p=(e.overrides||[]).concat("content").reduce((function(e,n){return e[n]=t[s].props[n],e}),{});i.setProps(Object.assign({},p,{getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}};return z(v(),Object.assign({},c(e,["overrides"]),{plugins:[i].concat(e.plugins||[]),triggerTarget:r}))},z.delegate=function(t,e){var n=[],r=[],i=e.target,o=c(e,["target"]),a=Object.assign({},o,{trigger:"manual"}),s=Object.assign({},o,{showOnCreate:!0}),p=z(t,a);function u(t){if(t.target){var n=t.target.closest(i);if(n)if(!((n.getAttribute("data-tippy-trigger")||e.trigger||k.trigger).indexOf(F[t.type])<0||n._tippy)){var o=z(n,s);o&&(r=r.concat(o))}}}function l(t,e,r,i){void 0===i&&(i=!1),t.addEventListener(e,r,i),n.push({node:t,eventType:e,handler:r,options:i})}return f(p).forEach((function(t){var e=t.destroy;t.destroy=function(t){void 0===t&&(t=!0),t&&r.forEach((function(t){t.destroy()})),r=[],n.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,i=t.options;e.removeEventListener(n,r,i)})),n=[],e()},function(t){var e=t.reference;l(e,"mouseover",u),l(e,"focusin",u),l(e,"click",u)}(t)})),p},z.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,r=e.duration;U.forEach((function(t){var e=!1;if(n&&(e=b(n)?t.reference===n:t.popper===n.popper),!e){var i=t.props.duration;t.setProps({duration:r}),t.hide(),t.state.isDestroyed||t.setProps({duration:i})}}))},z.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',z})); | ||
//# sourceMappingURL=tippy-bundle.umd.min.js.map |
/**! | ||
* tippy.js v6.0.2 | ||
* tippy.js v6.0.3 | ||
* (c) 2017-2020 atomiks | ||
@@ -1736,5 +1736,7 @@ * MIT License | ||
// @ts-ignore | ||
if (instance.props.animateFill && !((_instance$props$rende = instance.props.render) == null ? void 0 : _instance$props$rende.$$tippy)) { | ||
if (process.env.NODE_ENV !== "production") { | ||
errorWhen(true, 'The `animateFill` plugin requires the default render function.'); | ||
if (!((_instance$props$rende = instance.props.render) == null ? void 0 : _instance$props$rende.$$tippy)) { | ||
if (instance.props.animateFill) { | ||
if (process.env.NODE_ENV !== "production") { | ||
errorWhen(true, 'The `animateFill` plugin requires the default render function.'); | ||
} | ||
} | ||
@@ -1741,0 +1743,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t=t||self).tippy=e(t.Popper)}(this,(function(t){"use strict";var e={passive:!0};function n(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?Array.isArray(n)?n[e]:n:i}return t}function i(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function r(t,e){return"function"==typeof t?t.apply(void 0,e):t}function o(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout((function(){t(i)}),e)};var n}function a(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}function s(t){return[].concat(t)}function u(t,e){-1===t.indexOf(e)&&t.push(e)}function c(t){return t.split("-")[0]}function p(t){return[].slice.call(t)}function f(){return document.createElement("div")}function l(t){return i(t,"Element")}function d(t){return i(t,"MouseEvent")}function v(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function m(t){return l(t)?[t]:function(t){return i(t,"NodeList")}(t)?p(t):Array.isArray(t)?t:p(document.querySelectorAll(t))}function g(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function h(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function b(t){var e=s(t)[0];return e&&e.ownerDocument||document}function y(t,e,n){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[i](e,n)}))}var w={isTouch:!1},T=0;function E(){w.isTouch||(w.isTouch=!0,window.performance&&document.addEventListener("mousemove",x))}function x(){var t=performance.now();t-T<20&&(w.isTouch=!1,document.removeEventListener("mousemove",x)),T=t}function A(){var t=document.activeElement;if(v(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var C="undefined"!=typeof window&&"undefined"!=typeof document,O=C?navigator.userAgent:"",D=/MSIE |Trident\//.test(O),L=C&&/iPhone|iPad|iPod/.test(navigator.platform),V=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},content:"",delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),k=Object.keys(V);function M(t){var e=(t.plugins||[]).reduce((function(e,n){var i=n.name,r=n.defaultValue;return i&&(e[i]=void 0!==t[i]?t[i]:r),e}),{});return Object.assign({},t,{},e)}function j(t,e){var n=Object.assign({},e,{content:r(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(M(Object.assign({},V,{plugins:e}))):k).reduce((function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},V.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function R(t,e){t.innerHTML=e}function P(t){var e=f();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",l(t)?e.appendChild(t):R(e,t)),e}function S(t,e){l(e.content)?(R(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?R(t,e.content):t.textContent=e.content)}function I(t){var e=t.firstElementChild,n=p(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function B(t){var e=f(),n=f();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=f();function r(n,i){var r=I(e),o=r.box,a=r.content,s=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content!==i.content&&S(a,t.props),i.arrow?s?n.arrow!==i.arrow&&(o.removeChild(s),o.appendChild(P(i.arrow))):o.appendChild(P(i.arrow)):s&&o.removeChild(s)}return i.className="tippy-content",i.setAttribute("data-state","hidden"),S(i,t.props),e.appendChild(n),n.appendChild(i),r(t.props,t.props),{popper:e,onUpdate:r}}B.$$tippy=!0;var N=1,H=[],U=[];function _(i,a){var l,v,m,T,E,x,A,C,O=j(i,Object.assign({},V,{},M(a))),k=!1,R=!1,P=!1,S=[],B=o(gt,O.interactiveDebounce),_=b(O.triggerTarget||i),F=N++,X=(C=O.plugins).filter((function(t,e){return C.indexOf(t)===e})),Y={id:F,reference:i,popper:f(),popperInstance:null,props:O,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:X,clearDelayTimeouts:function(){clearTimeout(l),clearTimeout(v),cancelAnimationFrame(m)},setProps:function(t){if(Y.state.isDestroyed)return;rt("onBeforeUpdate",[Y,t]),vt();var e=Y.props,n=j(i,Object.assign({},Y.props,{},t,{ignoreAttributes:!0}));Y.props=n,dt(),e.interactiveDebounce!==n.interactiveDebounce&&(st(),B=o(gt,n.interactiveDebounce));e.triggerTarget&&!n.triggerTarget?s(e.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):n.triggerTarget&&i.removeAttribute("aria-expanded");at(),nt(),W&&W(e,n);Y.popperInstance&&(wt(),Et().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));rt("onAfterUpdate",[Y,t])},setContent:function(t){Y.setProps({content:t})},show:function(){var t=Y.state.isVisible,e=Y.state.isDestroyed,i=!Y.state.isEnabled,o=w.isTouch&&!Y.props.touch,a=n(Y.props.duration,0,V.duration);if(t||e||i||o)return;if(Z().hasAttribute("disabled"))return;if(rt("onShow",[Y],!1),!1===Y.props.onShow(Y))return;Y.state.isVisible=!0,Q()&&(q.style.visibility="visible");nt(),ct(),Y.state.isMounted||(q.style.transition="none");if(Q()){var s=tt(),c=s.box,p=s.content;g([c,p],0)}x=function(){if(Y.state.isVisible&&!P){if(P=!0,q.offsetHeight,q.style.transition=Y.props.moveTransition,Q()&&Y.props.animation){var t=tt(),e=t.box,n=t.content;g([e,n],a),h([e,n],"visible")}ot(),at(),u(U,Y),it(!0),Y.state.isMounted=!0,rt("onMount",[Y]),Y.props.animation&&Q()&&function(t,e){ft(t,e)}(a,(function(){Y.state.isShown=!0,rt("onShown",[Y])}))}},function(){var t,e=Y.props.appendTo,n=Z();t=Y.props.interactive&&e===V.appendTo||"parent"===e?n.parentNode:r(e,[n]);t.contains(q)||t.appendChild(q);wt()}()},hide:function(){var t=!Y.state.isVisible,e=Y.state.isDestroyed,i=!Y.state.isEnabled,r=n(Y.props.duration,1,V.duration);if(t||e||i)return;if(rt("onHide",[Y],!1),!1===Y.props.onHide(Y))return;Y.state.isVisible=!1,Y.state.isShown=!1,P=!1,Q()&&(q.style.visibility="hidden");if(st(),pt(),nt(),Q()){var o=tt(),a=o.box,s=o.content;Y.props.animation&&(g([a,s],r),h([a,s],"hidden"))}ot(),at(),Y.props.animation?Q()&&function(t,e){ft(t,(function(){!Y.state.isVisible&&q.parentNode&&q.parentNode.contains(q)&&e()}))}(r,Y.unmount):Y.unmount()},enable:function(){Y.state.isEnabled=!0},disable:function(){Y.hide(),Y.state.isEnabled=!1},unmount:function(){Y.state.isVisible&&Y.hide();if(!Y.state.isMounted)return;Tt(),Et().forEach((function(t){t._tippy.unmount()})),q.parentNode&&q.parentNode.removeChild(q);0===(U=U.filter((function(t){return t!==Y}))).length&&it(!1);Y.state.isMounted=!1,rt("onHidden",[Y])},destroy:function(){if(Y.state.isDestroyed)return;Y.clearDelayTimeouts(),Y.unmount(),vt(),delete i._tippy,Y.state.isDestroyed=!0,rt("onDestroy",[Y])}};if(!O.render)return Y;var $=O.render(Y),q=$.popper,W=$.onUpdate;q.setAttribute("data-tippy-root",""),q.id="tippy-"+Y.id,Y.popper=q,i._tippy=Y,q._tippy=Y;var z=X.map((function(t){return t.fn(Y)})),J=i.hasAttribute("aria-expanded");return dt(),at(),nt(),rt("onCreate",[Y]),O.showOnCreate&&xt(),q.addEventListener("mouseenter",(function(){Y.props.interactive&&Y.state.isVisible&&Y.clearDelayTimeouts()})),q.addEventListener("mouseleave",(function(t){Y.props.interactive&&Y.props.trigger.indexOf("mouseenter")>=0&&(_.addEventListener("mousemove",B),B(t))})),Y;function G(){var t=Y.props.touch;return Array.isArray(t)?t:[t,0]}function K(){return"hold"===G()[0]}function Q(){var t;return!!(null==(t=Y.props.render)?void 0:t.$$tippy)}function Z(){return A||i}function tt(){return I(q)}function et(t){return Y.state.isMounted&&!Y.state.isVisible||w.isTouch||T&&"focus"===T.type?0:n(Y.props.delay,t?0:1,V.delay)}function nt(){q.style.pointerEvents=Y.props.interactive&&Y.state.isVisible?"":"none",q.style.zIndex=""+Y.props.zIndex}function it(t){var e=t&&L&&w.isTouch;_.body.classList[e?"add":"remove"]("tippy-iOS")}function rt(t,e,n){var i;(void 0===n&&(n=!0),z.forEach((function(n){n[t]&&n[t].apply(void 0,e)})),n)&&(i=Y.props)[t].apply(i,e)}function ot(){var t=Y.props.aria;if(t.content){var e="aria-"+t.content,n=q.id;s(Y.props.triggerTarget||i).forEach((function(t){var i=t.getAttribute(e);if(Y.state.isVisible)t.setAttribute(e,i?i+" "+n:n);else{var r=i&&i.replace(n,"").trim();r?t.setAttribute(e,r):t.removeAttribute(e)}}))}}function at(){!J&&Y.props.aria.expanded&&s(Y.props.triggerTarget||i).forEach((function(t){Y.props.interactive?t.setAttribute("aria-expanded",Y.state.isVisible&&t===Z()?"true":"false"):t.removeAttribute("aria-expanded")}))}function st(){_.body.removeEventListener("mouseleave",At),_.removeEventListener("mousemove",B),H=H.filter((function(t){return t!==B}))}function ut(t){if(!Y.props.interactive||!q.contains(t.target)){if(Z().contains(t.target)){if(w.isTouch)return;if(Y.state.isVisible&&Y.props.trigger.indexOf("click")>=0)return}!0===Y.props.hideOnClick&&(k=!1,Y.clearDelayTimeouts(),Y.hide(),R=!0,setTimeout((function(){R=!1})),Y.state.isMounted||pt())}}function ct(){_.addEventListener("mousedown",ut,!0)}function pt(){_.removeEventListener("mousedown",ut,!0)}function ft(t,e){var n=tt().box;function i(t){t.target===n&&(y(n,"remove",i),e())}if(0===t)return e();y(n,"remove",E),y(n,"add",i),E=i}function lt(t,e,n){void 0===n&&(n=!1),s(Y.props.triggerTarget||i).forEach((function(i){i.addEventListener(t,e,n),S.push({node:i,eventType:t,handler:e,options:n})}))}function dt(){var t;K()&&(lt("touchstart",mt,e),lt("touchend",ht,e)),(t=Y.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(lt(t,mt),t){case"mouseenter":lt("mouseleave",ht);break;case"focus":lt(D?"focusout":"blur",bt);break;case"focusin":lt("focusout",bt)}}))}function vt(){S.forEach((function(t){var e=t.node,n=t.eventType,i=t.handler,r=t.options;e.removeEventListener(n,i,r)})),S=[]}function mt(t){var e=!1;if(Y.state.isEnabled&&!yt(t)&&!R){if(T=t,A=t.currentTarget,at(),!Y.state.isVisible&&d(t)&&H.forEach((function(e){return e(t)})),"click"===t.type&&(Y.props.trigger.indexOf("mouseenter")<0||k)&&!1!==Y.props.hideOnClick&&Y.state.isVisible)e=!0;else{var n=G(),i=n[0],r=n[1];w.isTouch&&"hold"===i&&r?l=setTimeout((function(){xt(t)}),r):xt(t)}"click"===t.type&&(k=!e),e&&At(t)}}function gt(t){var e=t.target,n=i.contains(e)||q.contains(e);"mousemove"===t.type&&n||function(t,e){var n=e.clientX,i=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,o=t.props.interactiveBorder,a=c(r.placement),s=r.modifiersData.offset;if(!s)return!0;var u="bottom"===a?s.top.y:0,p="top"===a?s.bottom.y:0,f="right"===a?s.left.x:0,l="left"===a?s.right.x:0,d=e.top-i+u>o,v=i-e.bottom-p>o,m=e.left-n+f>o,g=n-e.right-l>o;return d||v||m||g}))}(Et().concat(q).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:O}:null})).filter(Boolean),t)&&(st(),At(t))}function ht(t){if(!(yt(t)||Y.props.trigger.indexOf("click")>=0&&k))return Y.props.interactive?(_.body.addEventListener("mouseleave",At),_.addEventListener("mousemove",B),u(H,B),void B(t)):void At(t)}function bt(t){Y.props.trigger.indexOf("focusin")<0&&t.target!==Z()||Y.props.interactive&&t.relatedTarget&&q.contains(t.relatedTarget)||At(t)}function yt(t){return!!w.isTouch&&K()!==t.type.indexOf("touch")>=0}function wt(){Tt();var e=Y.props,n=e.popperOptions,r=e.placement,o=e.offset,a=e.getReferenceClientRect,s=e.moveTransition,u=Q()?I(q).arrow:null,c=a?{getBoundingClientRect:a}:i,p={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(Q()){var n=tt().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}},f={name:"arrow",enabled:!!u,options:{element:u,padding:3}},l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}}].concat(Q()?[f]:[],(null==n?void 0:n.modifiers)||[],[p]);Y.popperInstance=t.createPopper(c,q,Object.assign({},n,{placement:r,onFirstUpdate:x,modifiers:l}))}function Tt(){Y.popperInstance&&(Y.popperInstance.destroy(),Y.popperInstance=null)}function Et(){return p(q.querySelectorAll("[data-tippy-root]"))}function xt(t){Y.clearDelayTimeouts(),t&&rt("onTrigger",[Y,t]),ct();var e=et(!0);e?l=setTimeout((function(){Y.show()}),e):Y.show()}function At(t){if(Y.clearDelayTimeouts(),rt("onUntrigger",[Y,t]),Y.state.isVisible){if(!(Y.props.trigger.indexOf("mouseenter")>=0&&Y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&k)){var e=et(!1);e?v=setTimeout((function(){Y.state.isVisible&&Y.hide()}),e):m=requestAnimationFrame((function(){Y.hide()}))}}else pt()}}function F(t,n){void 0===n&&(n={});var i=V.plugins.concat(n.plugins||[]);document.addEventListener("touchstart",E,Object.assign({},e,{capture:!0})),window.addEventListener("blur",A);var r=Object.assign({},n,{plugins:i}),o=m(t).reduce((function(t,e){var n=e&&_(e,r);return n&&t.push(n),t}),[]);return l(t)?o[0]:o}F.defaultProps=V,F.setDefaultProps=function(t){Object.keys(t).forEach((function(e){V[e]=t[e]}))},F.currentInput=w;var X={mouseover:"mouseenter",focusin:"focus",click:"click"};var Y={name:"animateFill",defaultValue:!1,fn:function(t){var e;if(t.props.animateFill&&!(null==(e=t.props.render)?void 0:e.$$tippy))return{};var n=I(t.popper),i=n.box,r=n.content,o=t.props.animateFill?function(){var t=f();return t.className="tippy-backdrop",h([t],"hidden"),t}():null;return{onCreate:function(){o&&(i.insertBefore(o,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var t=i.style.transitionDuration,e=Number(t.replace("ms",""));r.style.transitionDelay=Math.round(e/10)+"ms",o.style.transitionDuration=t,h([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&h([o],"hidden")}}}};var $={name:"followCursor",defaultValue:!1,fn:function(t){var e=t.reference,n=b(t.props.triggerTarget||e),i=null;function r(){return"manual"===t.props.trigger.trim()}function o(){var e=!!r()||null!==i&&!(0===i.clientX&&0===i.clientY);return t.props.followCursor&&e}function a(e){e&&t.setProps({getReferenceClientRect:null})}function s(){o()?n.addEventListener("mousemove",c):a(t.props.followCursor)}function u(){n.removeEventListener("mousemove",c)}function c(n){i={clientX:n.clientX,clientY:n.clientY};var r=!n.target||e.contains(n.target),o=t.props.followCursor,a=n.clientX,s=n.clientY,c=e.getBoundingClientRect(),p=a-c.left,f=s-c.top;!r&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=e.getBoundingClientRect(),n=a,i=s;"initial"===o&&(n=t.left+p,i=t.top+f);var r="horizontal"===o?t.top:i,u="vertical"===o?t.right:n,c="horizontal"===o?t.bottom:i,l="vertical"===o?t.left:n;return{width:u-l,height:c-r,top:r,right:u,bottom:c,left:l}}}),(w.isTouch||"initial"===t.props.followCursor&&t.state.isVisible)&&u()}return{onAfterUpdate:function(t,e){var n=e.followCursor;void 0===n||n||a(!0)},onMount:function(){o()&&c(i)},onShow:function(){r()&&(i={clientX:0,clientY:0},s())},onTrigger:function(t,e){i||(d(e)&&(i={clientX:e.clientX,clientY:e.clientY}),s())},onUntrigger:function(){t.state.isVisible||(u(),i=null)},onHidden:function(){u(),i=null}}}},q={name:"inlinePositioning",defaultValue:!1,fn:function(t){var e,n=t.reference;var i={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(i){var r=i.state;t.props.inlinePositioning&&(e!==r.placement&&t.setProps({getReferenceClientRect:function(){return function(t){return function(t,e,n){if(n.length<2||null===t)return e;switch(t){case"top":case"bottom":var i=n[0],r=n[n.length-1],o="top"===t,a=i.top,s=r.bottom,u=o?i.left:r.left,c=o?i.right:r.right;return{top:a,bottom:s,left:u,right:c,width:c-u,height:s-a};case"left":case"right":var p=Math.min.apply(Math,n.map((function(t){return t.left}))),f=Math.max.apply(Math,n.map((function(t){return t.right}))),l=n.filter((function(e){return"left"===t?e.left===p:e.right===f})),d=l[0].top,v=l[l.length-1].bottom;return{top:d,bottom:v,left:p,right:f,width:f-p,height:v-d};default:return e}}(c(t),n.getBoundingClientRect(),p(n.getClientRects()))}(r.placement)}}),e=r.placement)}};return{onCreate:function(){var e;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[],[i])})})}}}};var W={name:"sticky",defaultValue:!1,fn:function(t){var e=t.reference,n=t.popper;function i(e){return!0===t.props.sticky||t.props.sticky===e}var r=null,o=null;function a(){var s=i("reference")?(t.popperInstance?t.popperInstance.state.elements.reference:e).getBoundingClientRect():null,u=i("popper")?n.getBoundingClientRect():null;(s&&z(r,s)||u&&z(o,u))&&t.popperInstance&&t.popperInstance.update(),r=s,o=u,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function z(t,e){return!t||!e||(t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left)}return F.setDefaultProps({plugins:[Y,$,q,W],render:B}),F.createSingleton=function(t,e){var n;void 0===e&&(e={}),t.forEach((function(t){t.disable()}));var i=t.map((function(t){return t.reference})),r={fn:function(){return{onDestroy:function(){t.forEach((function(t){t.enable()}))},onTrigger:function(r,o){var a=o.currentTarget,s=i.indexOf(a);if(a!==n){n=a;var u=(e.overrides||[]).concat("content").reduce((function(e,n){return e[n]=t[s].props[n],e}),{});r.setProps(Object.assign({},u,{getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}};return F(f(),Object.assign({},a(e,["overrides"]),{plugins:[r].concat(e.plugins||[]),triggerTarget:i}))},F.delegate=function(t,e){var n=[],i=[],r=e.target,o=a(e,["target"]),u=Object.assign({},o,{trigger:"manual"}),c=Object.assign({},o,{showOnCreate:!0}),p=F(t,u);function f(t){if(t.target){var n=t.target.closest(r);if(n)if(!((n.getAttribute("data-tippy-trigger")||e.trigger||V.trigger).indexOf(X[t.type])<0||n._tippy)){var o=F(n,c);o&&(i=i.concat(o))}}}function l(t,e,i,r){void 0===r&&(r=!1),t.addEventListener(e,i,r),n.push({node:t,eventType:e,handler:i,options:r})}return s(p).forEach((function(t){var e=t.destroy;t.destroy=function(t){void 0===t&&(t=!0),t&&i.forEach((function(t){t.destroy()})),i=[],n.forEach((function(t){var e=t.node,n=t.eventType,i=t.handler,r=t.options;e.removeEventListener(n,i,r)})),n=[],e()},function(t){var e=t.reference;l(e,"mouseover",f),l(e,"focusin",f),l(e,"click",f)}(t)})),p},F.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,i=e.duration;U.forEach((function(t){var e=!1;if(n&&(e=v(n)?t.reference===n:t.popper===n.popper),!e){var r=t.props.duration;t.setProps({duration:i}),t.hide(),t.state.isDestroyed||t.setProps({duration:r})}}))},F.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',F})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t=t||self).tippy=e(t.Popper)}(this,(function(t){"use strict";var e={passive:!0};function n(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?Array.isArray(n)?n[e]:n:i}return t}function i(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function r(t,e){return"function"==typeof t?t.apply(void 0,e):t}function o(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout((function(){t(i)}),e)};var n}function a(t,e){var n=Object.assign({},t);return e.forEach((function(t){delete n[t]})),n}function s(t){return[].concat(t)}function u(t,e){-1===t.indexOf(e)&&t.push(e)}function c(t){return t.split("-")[0]}function p(t){return[].slice.call(t)}function f(){return document.createElement("div")}function l(t){return i(t,"Element")}function d(t){return i(t,"MouseEvent")}function v(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function m(t){return l(t)?[t]:function(t){return i(t,"NodeList")}(t)?p(t):Array.isArray(t)?t:p(document.querySelectorAll(t))}function g(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function h(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function b(t){var e=s(t)[0];return e&&e.ownerDocument||document}function y(t,e,n){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[i](e,n)}))}var w={isTouch:!1},T=0;function E(){w.isTouch||(w.isTouch=!0,window.performance&&document.addEventListener("mousemove",x))}function x(){var t=performance.now();t-T<20&&(w.isTouch=!1,document.removeEventListener("mousemove",x)),T=t}function A(){var t=document.activeElement;if(v(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var C="undefined"!=typeof window&&"undefined"!=typeof document,O=C?navigator.userAgent:"",D=/MSIE |Trident\//.test(O),L=C&&/iPhone|iPad|iPod/.test(navigator.platform),V=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},content:"",delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),k=Object.keys(V);function M(t){var e=(t.plugins||[]).reduce((function(e,n){var i=n.name,r=n.defaultValue;return i&&(e[i]=void 0!==t[i]?t[i]:r),e}),{});return Object.assign({},t,{},e)}function j(t,e){var n=Object.assign({},e,{content:r(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(M(Object.assign({},V,{plugins:e}))):k).reduce((function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},V.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function R(t,e){t.innerHTML=e}function P(t){var e=f();return!0===t?e.className="tippy-arrow":(e.className="tippy-svg-arrow",l(t)?e.appendChild(t):R(e,t)),e}function S(t,e){l(e.content)?(R(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?R(t,e.content):t.textContent=e.content)}function I(t){var e=t.firstElementChild,n=p(e.children);return{box:e,content:n.find((function(t){return t.classList.contains("tippy-content")})),arrow:n.find((function(t){return t.classList.contains("tippy-arrow")||t.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(t){return t.classList.contains("tippy-backdrop")}))}}function B(t){var e=f(),n=f();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=f();function r(n,i){var r=I(e),o=r.box,a=r.content,s=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content!==i.content&&S(a,t.props),i.arrow?s?n.arrow!==i.arrow&&(o.removeChild(s),o.appendChild(P(i.arrow))):o.appendChild(P(i.arrow)):s&&o.removeChild(s)}return i.className="tippy-content",i.setAttribute("data-state","hidden"),S(i,t.props),e.appendChild(n),n.appendChild(i),r(t.props,t.props),{popper:e,onUpdate:r}}B.$$tippy=!0;var N=1,H=[],U=[];function _(i,a){var l,v,m,T,E,x,A,C,O=j(i,Object.assign({},V,{},M(a))),k=!1,R=!1,P=!1,S=[],B=o(gt,O.interactiveDebounce),_=b(O.triggerTarget||i),F=N++,X=(C=O.plugins).filter((function(t,e){return C.indexOf(t)===e})),Y={id:F,reference:i,popper:f(),popperInstance:null,props:O,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:X,clearDelayTimeouts:function(){clearTimeout(l),clearTimeout(v),cancelAnimationFrame(m)},setProps:function(t){if(Y.state.isDestroyed)return;rt("onBeforeUpdate",[Y,t]),vt();var e=Y.props,n=j(i,Object.assign({},Y.props,{},t,{ignoreAttributes:!0}));Y.props=n,dt(),e.interactiveDebounce!==n.interactiveDebounce&&(st(),B=o(gt,n.interactiveDebounce));e.triggerTarget&&!n.triggerTarget?s(e.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):n.triggerTarget&&i.removeAttribute("aria-expanded");at(),nt(),W&&W(e,n);Y.popperInstance&&(wt(),Et().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));rt("onAfterUpdate",[Y,t])},setContent:function(t){Y.setProps({content:t})},show:function(){var t=Y.state.isVisible,e=Y.state.isDestroyed,i=!Y.state.isEnabled,o=w.isTouch&&!Y.props.touch,a=n(Y.props.duration,0,V.duration);if(t||e||i||o)return;if(Z().hasAttribute("disabled"))return;if(rt("onShow",[Y],!1),!1===Y.props.onShow(Y))return;Y.state.isVisible=!0,Q()&&(q.style.visibility="visible");nt(),ct(),Y.state.isMounted||(q.style.transition="none");if(Q()){var s=tt(),c=s.box,p=s.content;g([c,p],0)}x=function(){if(Y.state.isVisible&&!P){if(P=!0,q.offsetHeight,q.style.transition=Y.props.moveTransition,Q()&&Y.props.animation){var t=tt(),e=t.box,n=t.content;g([e,n],a),h([e,n],"visible")}ot(),at(),u(U,Y),it(!0),Y.state.isMounted=!0,rt("onMount",[Y]),Y.props.animation&&Q()&&function(t,e){ft(t,e)}(a,(function(){Y.state.isShown=!0,rt("onShown",[Y])}))}},function(){var t,e=Y.props.appendTo,n=Z();t=Y.props.interactive&&e===V.appendTo||"parent"===e?n.parentNode:r(e,[n]);t.contains(q)||t.appendChild(q);wt()}()},hide:function(){var t=!Y.state.isVisible,e=Y.state.isDestroyed,i=!Y.state.isEnabled,r=n(Y.props.duration,1,V.duration);if(t||e||i)return;if(rt("onHide",[Y],!1),!1===Y.props.onHide(Y))return;Y.state.isVisible=!1,Y.state.isShown=!1,P=!1,Q()&&(q.style.visibility="hidden");if(st(),pt(),nt(),Q()){var o=tt(),a=o.box,s=o.content;Y.props.animation&&(g([a,s],r),h([a,s],"hidden"))}ot(),at(),Y.props.animation?Q()&&function(t,e){ft(t,(function(){!Y.state.isVisible&&q.parentNode&&q.parentNode.contains(q)&&e()}))}(r,Y.unmount):Y.unmount()},enable:function(){Y.state.isEnabled=!0},disable:function(){Y.hide(),Y.state.isEnabled=!1},unmount:function(){Y.state.isVisible&&Y.hide();if(!Y.state.isMounted)return;Tt(),Et().forEach((function(t){t._tippy.unmount()})),q.parentNode&&q.parentNode.removeChild(q);0===(U=U.filter((function(t){return t!==Y}))).length&&it(!1);Y.state.isMounted=!1,rt("onHidden",[Y])},destroy:function(){if(Y.state.isDestroyed)return;Y.clearDelayTimeouts(),Y.unmount(),vt(),delete i._tippy,Y.state.isDestroyed=!0,rt("onDestroy",[Y])}};if(!O.render)return Y;var $=O.render(Y),q=$.popper,W=$.onUpdate;q.setAttribute("data-tippy-root",""),q.id="tippy-"+Y.id,Y.popper=q,i._tippy=Y,q._tippy=Y;var z=X.map((function(t){return t.fn(Y)})),J=i.hasAttribute("aria-expanded");return dt(),at(),nt(),rt("onCreate",[Y]),O.showOnCreate&&xt(),q.addEventListener("mouseenter",(function(){Y.props.interactive&&Y.state.isVisible&&Y.clearDelayTimeouts()})),q.addEventListener("mouseleave",(function(t){Y.props.interactive&&Y.props.trigger.indexOf("mouseenter")>=0&&(_.addEventListener("mousemove",B),B(t))})),Y;function G(){var t=Y.props.touch;return Array.isArray(t)?t:[t,0]}function K(){return"hold"===G()[0]}function Q(){var t;return!!(null==(t=Y.props.render)?void 0:t.$$tippy)}function Z(){return A||i}function tt(){return I(q)}function et(t){return Y.state.isMounted&&!Y.state.isVisible||w.isTouch||T&&"focus"===T.type?0:n(Y.props.delay,t?0:1,V.delay)}function nt(){q.style.pointerEvents=Y.props.interactive&&Y.state.isVisible?"":"none",q.style.zIndex=""+Y.props.zIndex}function it(t){var e=t&&L&&w.isTouch;_.body.classList[e?"add":"remove"]("tippy-iOS")}function rt(t,e,n){var i;(void 0===n&&(n=!0),z.forEach((function(n){n[t]&&n[t].apply(void 0,e)})),n)&&(i=Y.props)[t].apply(i,e)}function ot(){var t=Y.props.aria;if(t.content){var e="aria-"+t.content,n=q.id;s(Y.props.triggerTarget||i).forEach((function(t){var i=t.getAttribute(e);if(Y.state.isVisible)t.setAttribute(e,i?i+" "+n:n);else{var r=i&&i.replace(n,"").trim();r?t.setAttribute(e,r):t.removeAttribute(e)}}))}}function at(){!J&&Y.props.aria.expanded&&s(Y.props.triggerTarget||i).forEach((function(t){Y.props.interactive?t.setAttribute("aria-expanded",Y.state.isVisible&&t===Z()?"true":"false"):t.removeAttribute("aria-expanded")}))}function st(){_.body.removeEventListener("mouseleave",At),_.removeEventListener("mousemove",B),H=H.filter((function(t){return t!==B}))}function ut(t){if(!Y.props.interactive||!q.contains(t.target)){if(Z().contains(t.target)){if(w.isTouch)return;if(Y.state.isVisible&&Y.props.trigger.indexOf("click")>=0)return}!0===Y.props.hideOnClick&&(k=!1,Y.clearDelayTimeouts(),Y.hide(),R=!0,setTimeout((function(){R=!1})),Y.state.isMounted||pt())}}function ct(){_.addEventListener("mousedown",ut,!0)}function pt(){_.removeEventListener("mousedown",ut,!0)}function ft(t,e){var n=tt().box;function i(t){t.target===n&&(y(n,"remove",i),e())}if(0===t)return e();y(n,"remove",E),y(n,"add",i),E=i}function lt(t,e,n){void 0===n&&(n=!1),s(Y.props.triggerTarget||i).forEach((function(i){i.addEventListener(t,e,n),S.push({node:i,eventType:t,handler:e,options:n})}))}function dt(){var t;K()&&(lt("touchstart",mt,e),lt("touchend",ht,e)),(t=Y.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(lt(t,mt),t){case"mouseenter":lt("mouseleave",ht);break;case"focus":lt(D?"focusout":"blur",bt);break;case"focusin":lt("focusout",bt)}}))}function vt(){S.forEach((function(t){var e=t.node,n=t.eventType,i=t.handler,r=t.options;e.removeEventListener(n,i,r)})),S=[]}function mt(t){var e=!1;if(Y.state.isEnabled&&!yt(t)&&!R){if(T=t,A=t.currentTarget,at(),!Y.state.isVisible&&d(t)&&H.forEach((function(e){return e(t)})),"click"===t.type&&(Y.props.trigger.indexOf("mouseenter")<0||k)&&!1!==Y.props.hideOnClick&&Y.state.isVisible)e=!0;else{var n=G(),i=n[0],r=n[1];w.isTouch&&"hold"===i&&r?l=setTimeout((function(){xt(t)}),r):xt(t)}"click"===t.type&&(k=!e),e&&At(t)}}function gt(t){var e=t.target,n=i.contains(e)||q.contains(e);"mousemove"===t.type&&n||function(t,e){var n=e.clientX,i=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,o=t.props.interactiveBorder,a=c(r.placement),s=r.modifiersData.offset;if(!s)return!0;var u="bottom"===a?s.top.y:0,p="top"===a?s.bottom.y:0,f="right"===a?s.left.x:0,l="left"===a?s.right.x:0,d=e.top-i+u>o,v=i-e.bottom-p>o,m=e.left-n+f>o,g=n-e.right-l>o;return d||v||m||g}))}(Et().concat(q).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:O}:null})).filter(Boolean),t)&&(st(),At(t))}function ht(t){if(!(yt(t)||Y.props.trigger.indexOf("click")>=0&&k))return Y.props.interactive?(_.body.addEventListener("mouseleave",At),_.addEventListener("mousemove",B),u(H,B),void B(t)):void At(t)}function bt(t){Y.props.trigger.indexOf("focusin")<0&&t.target!==Z()||Y.props.interactive&&t.relatedTarget&&q.contains(t.relatedTarget)||At(t)}function yt(t){return!!w.isTouch&&K()!==t.type.indexOf("touch")>=0}function wt(){Tt();var e=Y.props,n=e.popperOptions,r=e.placement,o=e.offset,a=e.getReferenceClientRect,s=e.moveTransition,u=Q()?I(q).arrow:null,c=a?{getBoundingClientRect:a}:i,p={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(Q()){var n=tt().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}},f={name:"arrow",enabled:!!u,options:{element:u,padding:3}},l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}}].concat(Q()?[f]:[],(null==n?void 0:n.modifiers)||[],[p]);Y.popperInstance=t.createPopper(c,q,Object.assign({},n,{placement:r,onFirstUpdate:x,modifiers:l}))}function Tt(){Y.popperInstance&&(Y.popperInstance.destroy(),Y.popperInstance=null)}function Et(){return p(q.querySelectorAll("[data-tippy-root]"))}function xt(t){Y.clearDelayTimeouts(),t&&rt("onTrigger",[Y,t]),ct();var e=et(!0);e?l=setTimeout((function(){Y.show()}),e):Y.show()}function At(t){if(Y.clearDelayTimeouts(),rt("onUntrigger",[Y,t]),Y.state.isVisible){if(!(Y.props.trigger.indexOf("mouseenter")>=0&&Y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&k)){var e=et(!1);e?v=setTimeout((function(){Y.state.isVisible&&Y.hide()}),e):m=requestAnimationFrame((function(){Y.hide()}))}}else pt()}}function F(t,n){void 0===n&&(n={});var i=V.plugins.concat(n.plugins||[]);document.addEventListener("touchstart",E,Object.assign({},e,{capture:!0})),window.addEventListener("blur",A);var r=Object.assign({},n,{plugins:i}),o=m(t).reduce((function(t,e){var n=e&&_(e,r);return n&&t.push(n),t}),[]);return l(t)?o[0]:o}F.defaultProps=V,F.setDefaultProps=function(t){Object.keys(t).forEach((function(e){V[e]=t[e]}))},F.currentInput=w;var X={mouseover:"mouseenter",focusin:"focus",click:"click"};var Y={name:"animateFill",defaultValue:!1,fn:function(t){var e;if(!(null==(e=t.props.render)?void 0:e.$$tippy))return t.props.animateFill,{};var n=I(t.popper),i=n.box,r=n.content,o=t.props.animateFill?function(){var t=f();return t.className="tippy-backdrop",h([t],"hidden"),t}():null;return{onCreate:function(){o&&(i.insertBefore(o,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var t=i.style.transitionDuration,e=Number(t.replace("ms",""));r.style.transitionDelay=Math.round(e/10)+"ms",o.style.transitionDuration=t,h([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&h([o],"hidden")}}}};var $={name:"followCursor",defaultValue:!1,fn:function(t){var e=t.reference,n=b(t.props.triggerTarget||e),i=null;function r(){return"manual"===t.props.trigger.trim()}function o(){var e=!!r()||null!==i&&!(0===i.clientX&&0===i.clientY);return t.props.followCursor&&e}function a(e){e&&t.setProps({getReferenceClientRect:null})}function s(){o()?n.addEventListener("mousemove",c):a(t.props.followCursor)}function u(){n.removeEventListener("mousemove",c)}function c(n){i={clientX:n.clientX,clientY:n.clientY};var r=!n.target||e.contains(n.target),o=t.props.followCursor,a=n.clientX,s=n.clientY,c=e.getBoundingClientRect(),p=a-c.left,f=s-c.top;!r&&t.props.interactive||t.setProps({getReferenceClientRect:function(){var t=e.getBoundingClientRect(),n=a,i=s;"initial"===o&&(n=t.left+p,i=t.top+f);var r="horizontal"===o?t.top:i,u="vertical"===o?t.right:n,c="horizontal"===o?t.bottom:i,l="vertical"===o?t.left:n;return{width:u-l,height:c-r,top:r,right:u,bottom:c,left:l}}}),(w.isTouch||"initial"===t.props.followCursor&&t.state.isVisible)&&u()}return{onAfterUpdate:function(t,e){var n=e.followCursor;void 0===n||n||a(!0)},onMount:function(){o()&&c(i)},onShow:function(){r()&&(i={clientX:0,clientY:0},s())},onTrigger:function(t,e){i||(d(e)&&(i={clientX:e.clientX,clientY:e.clientY}),s())},onUntrigger:function(){t.state.isVisible||(u(),i=null)},onHidden:function(){u(),i=null}}}},q={name:"inlinePositioning",defaultValue:!1,fn:function(t){var e,n=t.reference;var i={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(i){var r=i.state;t.props.inlinePositioning&&(e!==r.placement&&t.setProps({getReferenceClientRect:function(){return function(t){return function(t,e,n){if(n.length<2||null===t)return e;switch(t){case"top":case"bottom":var i=n[0],r=n[n.length-1],o="top"===t,a=i.top,s=r.bottom,u=o?i.left:r.left,c=o?i.right:r.right;return{top:a,bottom:s,left:u,right:c,width:c-u,height:s-a};case"left":case"right":var p=Math.min.apply(Math,n.map((function(t){return t.left}))),f=Math.max.apply(Math,n.map((function(t){return t.right}))),l=n.filter((function(e){return"left"===t?e.left===p:e.right===f})),d=l[0].top,v=l[l.length-1].bottom;return{top:d,bottom:v,left:p,right:f,width:f-p,height:v-d};default:return e}}(c(t),n.getBoundingClientRect(),p(n.getClientRects()))}(r.placement)}}),e=r.placement)}};return{onCreate:function(){var e;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[],[i])})})}}}};var W={name:"sticky",defaultValue:!1,fn:function(t){var e=t.reference,n=t.popper;function i(e){return!0===t.props.sticky||t.props.sticky===e}var r=null,o=null;function a(){var s=i("reference")?(t.popperInstance?t.popperInstance.state.elements.reference:e).getBoundingClientRect():null,u=i("popper")?n.getBoundingClientRect():null;(s&&z(r,s)||u&&z(o,u))&&t.popperInstance&&t.popperInstance.update(),r=s,o=u,t.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){t.props.sticky&&a()}}}};function z(t,e){return!t||!e||(t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left)}return F.setDefaultProps({plugins:[Y,$,q,W],render:B}),F.createSingleton=function(t,e){var n;void 0===e&&(e={}),t.forEach((function(t){t.disable()}));var i=t.map((function(t){return t.reference})),r={fn:function(){return{onDestroy:function(){t.forEach((function(t){t.enable()}))},onTrigger:function(r,o){var a=o.currentTarget,s=i.indexOf(a);if(a!==n){n=a;var u=(e.overrides||[]).concat("content").reduce((function(e,n){return e[n]=t[s].props[n],e}),{});r.setProps(Object.assign({},u,{getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}};return F(f(),Object.assign({},a(e,["overrides"]),{plugins:[r].concat(e.plugins||[]),triggerTarget:i}))},F.delegate=function(t,e){var n=[],i=[],r=e.target,o=a(e,["target"]),u=Object.assign({},o,{trigger:"manual"}),c=Object.assign({},o,{showOnCreate:!0}),p=F(t,u);function f(t){if(t.target){var n=t.target.closest(r);if(n)if(!((n.getAttribute("data-tippy-trigger")||e.trigger||V.trigger).indexOf(X[t.type])<0||n._tippy)){var o=F(n,c);o&&(i=i.concat(o))}}}function l(t,e,i,r){void 0===r&&(r=!1),t.addEventListener(e,i,r),n.push({node:t,eventType:e,handler:i,options:r})}return s(p).forEach((function(t){var e=t.destroy;t.destroy=function(t){void 0===t&&(t=!0),t&&i.forEach((function(t){t.destroy()})),i=[],n.forEach((function(t){var e=t.node,n=t.eventType,i=t.handler,r=t.options;e.removeEventListener(n,i,r)})),n=[],e()},function(t){var e=t.reference;l(e,"mouseover",f),l(e,"focusin",f),l(e,"click",f)}(t)})),p},F.hideAll=function(t){var e=void 0===t?{}:t,n=e.exclude,i=e.duration;U.forEach((function(t){var e=!1;if(n&&(e=v(n)?t.reference===n:t.popper===n.popper),!e){var r=t.props.duration;t.setProps({duration:i}),t.hide(),t.state.isDestroyed||t.setProps({duration:r})}}))},F.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',F})); | ||
//# sourceMappingURL=tippy.umd.min.js.map |
/**! | ||
* tippy.js v6.0.2 | ||
* tippy.js v6.0.3 | ||
* (c) 2017-2020 atomiks | ||
@@ -1627,5 +1627,7 @@ * MIT License | ||
// @ts-ignore | ||
if (instance.props.animateFill && !((_instance$props$rende = instance.props.render) == null ? void 0 : _instance$props$rende.$$tippy)) { | ||
if (process.env.NODE_ENV !== "production") { | ||
errorWhen(true, 'The `animateFill` plugin requires the default render function.'); | ||
if (!((_instance$props$rende = instance.props.render) == null ? void 0 : _instance$props$rende.$$tippy)) { | ||
if (instance.props.animateFill) { | ||
if (process.env.NODE_ENV !== "production") { | ||
errorWhen(true, 'The `animateFill` plugin requires the default render function.'); | ||
} | ||
} | ||
@@ -1632,0 +1634,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e=e||self).tippy=t(e.Popper)}(this,(function(e){"use strict";var t={passive:!0};function n(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function i(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function r(e,t){return"function"==typeof e?e.apply(void 0,t):e}function o(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function a(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function s(e){return[].concat(e)}function u(e,t){-1===e.indexOf(t)&&e.push(t)}function c(e){return e.split("-")[0]}function p(e){return[].slice.call(e)}function f(){return document.createElement("div")}function l(e){return i(e,"Element")}function d(e){return i(e,"MouseEvent")}function v(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function g(e){return l(e)?[e]:function(e){return i(e,"NodeList")}(e)?p(e):Array.isArray(e)?e:p(document.querySelectorAll(e))}function m(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function h(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function b(e){var t=s(e)[0];return t&&t.ownerDocument||document}function y(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}var E={isTouch:!1},T=0;function w(){E.isTouch||(E.isTouch=!0,window.performance&&document.addEventListener("mousemove",O))}function O(){var e=performance.now();e-T<20&&(E.isTouch=!1,document.removeEventListener("mousemove",O)),T=e}function x(){var e=document.activeElement;if(v(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var A="undefined"!=typeof window&&"undefined"!=typeof document,C=A?navigator.userAgent:"",D=/MSIE |Trident\//.test(C),L=A&&/iPhone|iPad|iPod/.test(navigator.platform),V=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},content:"",delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),k=Object.keys(V);function j(e){var t=(e.plugins||[]).reduce((function(t,n){var i=n.name,r=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:r),t}),{});return Object.assign({},e,{},t)}function R(e,t){var n=Object.assign({},t,{content:r(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(j(Object.assign({},V,{plugins:t}))):k).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},V.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function M(e){var t=e.firstElementChild,n=p(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}var P=1,S=[],I=[];function B(i,a){var l,v,g,T,w,O,x,A,C=R(i,Object.assign({},V,{},j(a))),k=!1,B=!1,U=!1,H=[],_=o(me,C.interactiveDebounce),F=b(C.triggerTarget||i),N=P++,X=(A=C.plugins).filter((function(e,t){return A.indexOf(e)===t})),Y={id:N,reference:i,popper:f(),popperInstance:null,props:C,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:X,clearDelayTimeouts:function(){clearTimeout(l),clearTimeout(v),cancelAnimationFrame(g)},setProps:function(e){if(Y.state.isDestroyed)return;re("onBeforeUpdate",[Y,e]),ve();var t=Y.props,n=R(i,Object.assign({},Y.props,{},e,{ignoreAttributes:!0}));Y.props=n,de(),t.interactiveDebounce!==n.interactiveDebounce&&(se(),_=o(me,n.interactiveDebounce));t.triggerTarget&&!n.triggerTarget?s(t.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&i.removeAttribute("aria-expanded");ae(),ne(),$&&$(t,n);Y.popperInstance&&(Ee(),we().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));re("onAfterUpdate",[Y,e])},setContent:function(e){Y.setProps({content:e})},show:function(){var e=Y.state.isVisible,t=Y.state.isDestroyed,i=!Y.state.isEnabled,o=E.isTouch&&!Y.props.touch,a=n(Y.props.duration,0,V.duration);if(e||t||i||o)return;if(Z().hasAttribute("disabled"))return;if(re("onShow",[Y],!1),!1===Y.props.onShow(Y))return;Y.state.isVisible=!0,Q()&&(z.style.visibility="visible");ne(),ce(),Y.state.isMounted||(z.style.transition="none");if(Q()){var s=ee(),c=s.box,p=s.content;m([c,p],0)}O=function(){if(Y.state.isVisible&&!U){if(U=!0,z.offsetHeight,z.style.transition=Y.props.moveTransition,Q()&&Y.props.animation){var e=ee(),t=e.box,n=e.content;m([t,n],a),h([t,n],"visible")}oe(),ae(),u(I,Y),ie(!0),Y.state.isMounted=!0,re("onMount",[Y]),Y.props.animation&&Q()&&function(e,t){fe(e,t)}(a,(function(){Y.state.isShown=!0,re("onShown",[Y])}))}},function(){var e,t=Y.props.appendTo,n=Z();e=Y.props.interactive&&t===V.appendTo||"parent"===t?n.parentNode:r(t,[n]);e.contains(z)||e.appendChild(z);Ee()}()},hide:function(){var e=!Y.state.isVisible,t=Y.state.isDestroyed,i=!Y.state.isEnabled,r=n(Y.props.duration,1,V.duration);if(e||t||i)return;if(re("onHide",[Y],!1),!1===Y.props.onHide(Y))return;Y.state.isVisible=!1,Y.state.isShown=!1,U=!1,Q()&&(z.style.visibility="hidden");if(se(),pe(),ne(),Q()){var o=ee(),a=o.box,s=o.content;Y.props.animation&&(m([a,s],r),h([a,s],"hidden"))}oe(),ae(),Y.props.animation?Q()&&function(e,t){fe(e,(function(){!Y.state.isVisible&&z.parentNode&&z.parentNode.contains(z)&&t()}))}(r,Y.unmount):Y.unmount()},enable:function(){Y.state.isEnabled=!0},disable:function(){Y.hide(),Y.state.isEnabled=!1},unmount:function(){Y.state.isVisible&&Y.hide();if(!Y.state.isMounted)return;Te(),we().forEach((function(e){e._tippy.unmount()})),z.parentNode&&z.parentNode.removeChild(z);0===(I=I.filter((function(e){return e!==Y}))).length&&ie(!1);Y.state.isMounted=!1,re("onHidden",[Y])},destroy:function(){if(Y.state.isDestroyed)return;Y.clearDelayTimeouts(),Y.unmount(),ve(),delete i._tippy,Y.state.isDestroyed=!0,re("onDestroy",[Y])}};if(!C.render)return Y;var q=C.render(Y),z=q.popper,$=q.onUpdate;z.setAttribute("data-tippy-root",""),z.id="tippy-"+Y.id,Y.popper=z,i._tippy=Y,z._tippy=Y;var W=X.map((function(e){return e.fn(Y)})),J=i.hasAttribute("aria-expanded");return de(),ae(),ne(),re("onCreate",[Y]),C.showOnCreate&&Oe(),z.addEventListener("mouseenter",(function(){Y.props.interactive&&Y.state.isVisible&&Y.clearDelayTimeouts()})),z.addEventListener("mouseleave",(function(e){Y.props.interactive&&Y.props.trigger.indexOf("mouseenter")>=0&&(F.addEventListener("mousemove",_),_(e))})),Y;function G(){var e=Y.props.touch;return Array.isArray(e)?e:[e,0]}function K(){return"hold"===G()[0]}function Q(){var e;return!!(null==(e=Y.props.render)?void 0:e.$$tippy)}function Z(){return x||i}function ee(){return M(z)}function te(e){return Y.state.isMounted&&!Y.state.isVisible||E.isTouch||T&&"focus"===T.type?0:n(Y.props.delay,e?0:1,V.delay)}function ne(){z.style.pointerEvents=Y.props.interactive&&Y.state.isVisible?"":"none",z.style.zIndex=""+Y.props.zIndex}function ie(e){var t=e&&L&&E.isTouch;F.body.classList[t?"add":"remove"]("tippy-iOS")}function re(e,t,n){var i;(void 0===n&&(n=!0),W.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(i=Y.props)[e].apply(i,t)}function oe(){var e=Y.props.aria;if(e.content){var t="aria-"+e.content,n=z.id;s(Y.props.triggerTarget||i).forEach((function(e){var i=e.getAttribute(t);if(Y.state.isVisible)e.setAttribute(t,i?i+" "+n:n);else{var r=i&&i.replace(n,"").trim();r?e.setAttribute(t,r):e.removeAttribute(t)}}))}}function ae(){!J&&Y.props.aria.expanded&&s(Y.props.triggerTarget||i).forEach((function(e){Y.props.interactive?e.setAttribute("aria-expanded",Y.state.isVisible&&e===Z()?"true":"false"):e.removeAttribute("aria-expanded")}))}function se(){F.body.removeEventListener("mouseleave",xe),F.removeEventListener("mousemove",_),S=S.filter((function(e){return e!==_}))}function ue(e){if(!Y.props.interactive||!z.contains(e.target)){if(Z().contains(e.target)){if(E.isTouch)return;if(Y.state.isVisible&&Y.props.trigger.indexOf("click")>=0)return}!0===Y.props.hideOnClick&&(k=!1,Y.clearDelayTimeouts(),Y.hide(),B=!0,setTimeout((function(){B=!1})),Y.state.isMounted||pe())}}function ce(){F.addEventListener("mousedown",ue,!0)}function pe(){F.removeEventListener("mousedown",ue,!0)}function fe(e,t){var n=ee().box;function i(e){e.target===n&&(y(n,"remove",i),t())}if(0===e)return t();y(n,"remove",w),y(n,"add",i),w=i}function le(e,t,n){void 0===n&&(n=!1),s(Y.props.triggerTarget||i).forEach((function(i){i.addEventListener(e,t,n),H.push({node:i,eventType:e,handler:t,options:n})}))}function de(){var e;K()&&(le("touchstart",ge,t),le("touchend",he,t)),(e=Y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(le(e,ge),e){case"mouseenter":le("mouseleave",he);break;case"focus":le(D?"focusout":"blur",be);break;case"focusin":le("focusout",be)}}))}function ve(){H.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),H=[]}function ge(e){var t=!1;if(Y.state.isEnabled&&!ye(e)&&!B){if(T=e,x=e.currentTarget,ae(),!Y.state.isVisible&&d(e)&&S.forEach((function(t){return t(e)})),"click"===e.type&&(Y.props.trigger.indexOf("mouseenter")<0||k)&&!1!==Y.props.hideOnClick&&Y.state.isVisible)t=!0;else{var n=G(),i=n[0],r=n[1];E.isTouch&&"hold"===i&&r?l=setTimeout((function(){Oe(e)}),r):Oe(e)}"click"===e.type&&(k=!t),t&&xe(e)}}function me(e){var t=e.target,n=i.contains(t)||z.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,a=c(r.placement),s=r.modifiersData.offset;if(!s)return!0;var u="bottom"===a?s.top.y:0,p="top"===a?s.bottom.y:0,f="right"===a?s.left.x:0,l="left"===a?s.right.x:0,d=t.top-i+u>o,v=i-t.bottom-p>o,g=t.left-n+f>o,m=n-t.right-l>o;return d||v||g||m}))}(we().concat(z).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:C}:null})).filter(Boolean),e)&&(se(),xe(e))}function he(e){if(!(ye(e)||Y.props.trigger.indexOf("click")>=0&&k))return Y.props.interactive?(F.body.addEventListener("mouseleave",xe),F.addEventListener("mousemove",_),u(S,_),void _(e)):void xe(e)}function be(e){Y.props.trigger.indexOf("focusin")<0&&e.target!==Z()||Y.props.interactive&&e.relatedTarget&&z.contains(e.relatedTarget)||xe(e)}function ye(e){return!!E.isTouch&&K()!==e.type.indexOf("touch")>=0}function Ee(){Te();var t=Y.props,n=t.popperOptions,r=t.placement,o=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,u=Q()?M(z).arrow:null,c=a?{getBoundingClientRect:a}:i,p={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(Q()){var n=ee().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},f={name:"arrow",enabled:!!u,options:{element:u,padding:3}},l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}}].concat(Q()?[f]:[],(null==n?void 0:n.modifiers)||[],[p]);Y.popperInstance=e.createPopper(c,z,Object.assign({},n,{placement:r,onFirstUpdate:O,modifiers:l}))}function Te(){Y.popperInstance&&(Y.popperInstance.destroy(),Y.popperInstance=null)}function we(){return p(z.querySelectorAll("[data-tippy-root]"))}function Oe(e){Y.clearDelayTimeouts(),e&&re("onTrigger",[Y,e]),ce();var t=te(!0);t?l=setTimeout((function(){Y.show()}),t):Y.show()}function xe(e){if(Y.clearDelayTimeouts(),re("onUntrigger",[Y,e]),Y.state.isVisible){if(!(Y.props.trigger.indexOf("mouseenter")>=0&&Y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&k)){var t=te(!1);t?v=setTimeout((function(){Y.state.isVisible&&Y.hide()}),t):g=requestAnimationFrame((function(){Y.hide()}))}}else pe()}}function U(e,n){void 0===n&&(n={});var i=V.plugins.concat(n.plugins||[]);document.addEventListener("touchstart",w,Object.assign({},t,{capture:!0})),window.addEventListener("blur",x);var r=Object.assign({},n,{plugins:i}),o=g(e).reduce((function(e,t){var n=t&&B(t,r);return n&&e.push(n),e}),[]);return l(e)?o[0]:o}U.defaultProps=V,U.setDefaultProps=function(e){Object.keys(e).forEach((function(t){V[t]=e[t]}))},U.currentInput=E;var H={mouseover:"mouseenter",focusin:"focus",click:"click"};var _={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(e.props.animateFill&&!(null==(t=e.props.render)?void 0:t.$$tippy))return{};var n=M(e.popper),i=n.box,r=n.content,o=e.props.animateFill?function(){var e=f();return e.className="tippy-backdrop",h([e],"hidden"),e}():null;return{onCreate:function(){o&&(i.insertBefore(o,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var e=i.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",o.style.transitionDuration=e,h([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&h([o],"hidden")}}}};var F={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=b(e.props.triggerTarget||t),i=null;function r(){return"manual"===e.props.trigger.trim()}function o(){var t=!!r()||null!==i&&!(0===i.clientX&&0===i.clientY);return e.props.followCursor&&t}function a(t){t&&e.setProps({getReferenceClientRect:null})}function s(){o()?n.addEventListener("mousemove",c):a(e.props.followCursor)}function u(){n.removeEventListener("mousemove",c)}function c(n){i={clientX:n.clientX,clientY:n.clientY};var r=!n.target||t.contains(n.target),o=e.props.followCursor,a=n.clientX,s=n.clientY,c=t.getBoundingClientRect(),p=a-c.left,f=s-c.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=a,i=s;"initial"===o&&(n=e.left+p,i=e.top+f);var r="horizontal"===o?e.top:i,u="vertical"===o?e.right:n,c="horizontal"===o?e.bottom:i,l="vertical"===o?e.left:n;return{width:u-l,height:c-r,top:r,right:u,bottom:c,left:l}}}),(E.isTouch||"initial"===e.props.followCursor&&e.state.isVisible)&&u()}return{onAfterUpdate:function(e,t){var n=t.followCursor;void 0===n||n||a(!0)},onMount:function(){o()&&c(i)},onShow:function(){r()&&(i={clientX:0,clientY:0},s())},onTrigger:function(e,t){i||(d(t)&&(i={clientX:t.clientX,clientY:t.clientY}),s())},onUntrigger:function(){e.state.isVisible||(u(),i=null)},onHidden:function(){u(),i=null}}}},N={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var i={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(i){var r=i.state;e.props.inlinePositioning&&(t!==r.placement&&e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n){if(n.length<2||null===e)return t;switch(e){case"top":case"bottom":var i=n[0],r=n[n.length-1],o="top"===e,a=i.top,s=r.bottom,u=o?i.left:r.left,c=o?i.right:r.right;return{top:a,bottom:s,left:u,right:c,width:c-u,height:s-a};case"left":case"right":var p=Math.min.apply(Math,n.map((function(e){return e.left}))),f=Math.max.apply(Math,n.map((function(e){return e.right}))),l=n.filter((function(t){return"left"===e?t.left===p:t.right===f})),d=l[0].top,v=l[l.length-1].bottom;return{top:d,bottom:v,left:p,right:f,width:f-p,height:v-d};default:return t}}(c(e),n.getBoundingClientRect(),p(n.getClientRects()))}(r.placement)}}),t=r.placement)}};return{onCreate:function(){var t;e.setProps({popperOptions:Object.assign({},e.props.popperOptions,{modifiers:[].concat((null==(t=e.props.popperOptions)?void 0:t.modifiers)||[],[i])})})}}}};var X={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function i(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,o=null;function a(){var s=i("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,u=i("popper")?n.getBoundingClientRect():null;(s&&Y(r,s)||u&&Y(o,u))&&e.popperInstance&&e.popperInstance.update(),r=s,o=u,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function Y(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}return U.setDefaultProps({plugins:[_,F,N,X],animation:!1}),U.createSingleton=function(e,t){var n;void 0===t&&(t={}),e.forEach((function(e){e.disable()}));var i=e.map((function(e){return e.reference})),r={fn:function(){return{onDestroy:function(){e.forEach((function(e){e.enable()}))},onTrigger:function(r,o){var a=o.currentTarget,s=i.indexOf(a);if(a!==n){n=a;var u=(t.overrides||[]).concat("content").reduce((function(t,n){return t[n]=e[s].props[n],t}),{});r.setProps(Object.assign({},u,{getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}};return U(f(),Object.assign({},a(t,["overrides"]),{plugins:[r].concat(t.plugins||[]),triggerTarget:i}))},U.delegate=function(e,t){var n=[],i=[],r=t.target,o=a(t,["target"]),u=Object.assign({},o,{trigger:"manual"}),c=Object.assign({},o,{showOnCreate:!0}),p=U(e,u);function f(e){if(e.target){var n=e.target.closest(r);if(n)if(!((n.getAttribute("data-tippy-trigger")||t.trigger||V.trigger).indexOf(H[e.type])<0||n._tippy)){var o=U(n,c);o&&(i=i.concat(o))}}}function l(e,t,i,r){void 0===r&&(r=!1),e.addEventListener(t,i,r),n.push({node:e,eventType:t,handler:i,options:r})}return s(p).forEach((function(e){var t=e.destroy;e.destroy=function(e){void 0===e&&(e=!0),e&&i.forEach((function(e){e.destroy()})),i=[],n.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),n=[],t()},function(e){var t=e.reference;l(t,"mouseover",f),l(t,"focusin",f),l(t,"click",f)}(e)})),p},U.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,i=t.duration;I.forEach((function(e){var t=!1;if(n&&(t=v(n)?e.reference===n:e.popper===n.popper),!t){var r=e.props.duration;e.setProps({duration:i}),e.hide(),e.state.isDestroyed||e.setProps({duration:r})}}))},U.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',U})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e=e||self).tippy=t(e.Popper)}(this,(function(e){"use strict";var t={passive:!0};function n(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function i(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function r(e,t){return"function"==typeof e?e.apply(void 0,t):e}function o(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function a(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function s(e){return[].concat(e)}function u(e,t){-1===e.indexOf(t)&&e.push(t)}function c(e){return e.split("-")[0]}function p(e){return[].slice.call(e)}function f(){return document.createElement("div")}function l(e){return i(e,"Element")}function d(e){return i(e,"MouseEvent")}function v(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function g(e){return l(e)?[e]:function(e){return i(e,"NodeList")}(e)?p(e):Array.isArray(e)?e:p(document.querySelectorAll(e))}function m(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function h(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function b(e){var t=s(e)[0];return t&&t.ownerDocument||document}function y(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}var E={isTouch:!1},T=0;function w(){E.isTouch||(E.isTouch=!0,window.performance&&document.addEventListener("mousemove",O))}function O(){var e=performance.now();e-T<20&&(E.isTouch=!1,document.removeEventListener("mousemove",O)),T=e}function x(){var e=document.activeElement;if(v(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var A="undefined"!=typeof window&&"undefined"!=typeof document,C=A?navigator.userAgent:"",D=/MSIE |Trident\//.test(C),L=A&&/iPhone|iPad|iPod/.test(navigator.platform),V=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},content:"",delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),k=Object.keys(V);function j(e){var t=(e.plugins||[]).reduce((function(t,n){var i=n.name,r=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:r),t}),{});return Object.assign({},e,{},t)}function R(e,t){var n=Object.assign({},t,{content:r(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(j(Object.assign({},V,{plugins:t}))):k).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},V.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function M(e){var t=e.firstElementChild,n=p(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}var P=1,S=[],I=[];function B(i,a){var l,v,g,T,w,O,x,A,C=R(i,Object.assign({},V,{},j(a))),k=!1,B=!1,U=!1,H=[],_=o(me,C.interactiveDebounce),F=b(C.triggerTarget||i),N=P++,X=(A=C.plugins).filter((function(e,t){return A.indexOf(e)===t})),Y={id:N,reference:i,popper:f(),popperInstance:null,props:C,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:X,clearDelayTimeouts:function(){clearTimeout(l),clearTimeout(v),cancelAnimationFrame(g)},setProps:function(e){if(Y.state.isDestroyed)return;re("onBeforeUpdate",[Y,e]),ve();var t=Y.props,n=R(i,Object.assign({},Y.props,{},e,{ignoreAttributes:!0}));Y.props=n,de(),t.interactiveDebounce!==n.interactiveDebounce&&(se(),_=o(me,n.interactiveDebounce));t.triggerTarget&&!n.triggerTarget?s(t.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):n.triggerTarget&&i.removeAttribute("aria-expanded");ae(),ne(),$&&$(t,n);Y.popperInstance&&(Ee(),we().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));re("onAfterUpdate",[Y,e])},setContent:function(e){Y.setProps({content:e})},show:function(){var e=Y.state.isVisible,t=Y.state.isDestroyed,i=!Y.state.isEnabled,o=E.isTouch&&!Y.props.touch,a=n(Y.props.duration,0,V.duration);if(e||t||i||o)return;if(Z().hasAttribute("disabled"))return;if(re("onShow",[Y],!1),!1===Y.props.onShow(Y))return;Y.state.isVisible=!0,Q()&&(z.style.visibility="visible");ne(),ce(),Y.state.isMounted||(z.style.transition="none");if(Q()){var s=ee(),c=s.box,p=s.content;m([c,p],0)}O=function(){if(Y.state.isVisible&&!U){if(U=!0,z.offsetHeight,z.style.transition=Y.props.moveTransition,Q()&&Y.props.animation){var e=ee(),t=e.box,n=e.content;m([t,n],a),h([t,n],"visible")}oe(),ae(),u(I,Y),ie(!0),Y.state.isMounted=!0,re("onMount",[Y]),Y.props.animation&&Q()&&function(e,t){fe(e,t)}(a,(function(){Y.state.isShown=!0,re("onShown",[Y])}))}},function(){var e,t=Y.props.appendTo,n=Z();e=Y.props.interactive&&t===V.appendTo||"parent"===t?n.parentNode:r(t,[n]);e.contains(z)||e.appendChild(z);Ee()}()},hide:function(){var e=!Y.state.isVisible,t=Y.state.isDestroyed,i=!Y.state.isEnabled,r=n(Y.props.duration,1,V.duration);if(e||t||i)return;if(re("onHide",[Y],!1),!1===Y.props.onHide(Y))return;Y.state.isVisible=!1,Y.state.isShown=!1,U=!1,Q()&&(z.style.visibility="hidden");if(se(),pe(),ne(),Q()){var o=ee(),a=o.box,s=o.content;Y.props.animation&&(m([a,s],r),h([a,s],"hidden"))}oe(),ae(),Y.props.animation?Q()&&function(e,t){fe(e,(function(){!Y.state.isVisible&&z.parentNode&&z.parentNode.contains(z)&&t()}))}(r,Y.unmount):Y.unmount()},enable:function(){Y.state.isEnabled=!0},disable:function(){Y.hide(),Y.state.isEnabled=!1},unmount:function(){Y.state.isVisible&&Y.hide();if(!Y.state.isMounted)return;Te(),we().forEach((function(e){e._tippy.unmount()})),z.parentNode&&z.parentNode.removeChild(z);0===(I=I.filter((function(e){return e!==Y}))).length&&ie(!1);Y.state.isMounted=!1,re("onHidden",[Y])},destroy:function(){if(Y.state.isDestroyed)return;Y.clearDelayTimeouts(),Y.unmount(),ve(),delete i._tippy,Y.state.isDestroyed=!0,re("onDestroy",[Y])}};if(!C.render)return Y;var q=C.render(Y),z=q.popper,$=q.onUpdate;z.setAttribute("data-tippy-root",""),z.id="tippy-"+Y.id,Y.popper=z,i._tippy=Y,z._tippy=Y;var W=X.map((function(e){return e.fn(Y)})),J=i.hasAttribute("aria-expanded");return de(),ae(),ne(),re("onCreate",[Y]),C.showOnCreate&&Oe(),z.addEventListener("mouseenter",(function(){Y.props.interactive&&Y.state.isVisible&&Y.clearDelayTimeouts()})),z.addEventListener("mouseleave",(function(e){Y.props.interactive&&Y.props.trigger.indexOf("mouseenter")>=0&&(F.addEventListener("mousemove",_),_(e))})),Y;function G(){var e=Y.props.touch;return Array.isArray(e)?e:[e,0]}function K(){return"hold"===G()[0]}function Q(){var e;return!!(null==(e=Y.props.render)?void 0:e.$$tippy)}function Z(){return x||i}function ee(){return M(z)}function te(e){return Y.state.isMounted&&!Y.state.isVisible||E.isTouch||T&&"focus"===T.type?0:n(Y.props.delay,e?0:1,V.delay)}function ne(){z.style.pointerEvents=Y.props.interactive&&Y.state.isVisible?"":"none",z.style.zIndex=""+Y.props.zIndex}function ie(e){var t=e&&L&&E.isTouch;F.body.classList[t?"add":"remove"]("tippy-iOS")}function re(e,t,n){var i;(void 0===n&&(n=!0),W.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(i=Y.props)[e].apply(i,t)}function oe(){var e=Y.props.aria;if(e.content){var t="aria-"+e.content,n=z.id;s(Y.props.triggerTarget||i).forEach((function(e){var i=e.getAttribute(t);if(Y.state.isVisible)e.setAttribute(t,i?i+" "+n:n);else{var r=i&&i.replace(n,"").trim();r?e.setAttribute(t,r):e.removeAttribute(t)}}))}}function ae(){!J&&Y.props.aria.expanded&&s(Y.props.triggerTarget||i).forEach((function(e){Y.props.interactive?e.setAttribute("aria-expanded",Y.state.isVisible&&e===Z()?"true":"false"):e.removeAttribute("aria-expanded")}))}function se(){F.body.removeEventListener("mouseleave",xe),F.removeEventListener("mousemove",_),S=S.filter((function(e){return e!==_}))}function ue(e){if(!Y.props.interactive||!z.contains(e.target)){if(Z().contains(e.target)){if(E.isTouch)return;if(Y.state.isVisible&&Y.props.trigger.indexOf("click")>=0)return}!0===Y.props.hideOnClick&&(k=!1,Y.clearDelayTimeouts(),Y.hide(),B=!0,setTimeout((function(){B=!1})),Y.state.isMounted||pe())}}function ce(){F.addEventListener("mousedown",ue,!0)}function pe(){F.removeEventListener("mousedown",ue,!0)}function fe(e,t){var n=ee().box;function i(e){e.target===n&&(y(n,"remove",i),t())}if(0===e)return t();y(n,"remove",w),y(n,"add",i),w=i}function le(e,t,n){void 0===n&&(n=!1),s(Y.props.triggerTarget||i).forEach((function(i){i.addEventListener(e,t,n),H.push({node:i,eventType:e,handler:t,options:n})}))}function de(){var e;K()&&(le("touchstart",ge,t),le("touchend",he,t)),(e=Y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(le(e,ge),e){case"mouseenter":le("mouseleave",he);break;case"focus":le(D?"focusout":"blur",be);break;case"focusin":le("focusout",be)}}))}function ve(){H.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),H=[]}function ge(e){var t=!1;if(Y.state.isEnabled&&!ye(e)&&!B){if(T=e,x=e.currentTarget,ae(),!Y.state.isVisible&&d(e)&&S.forEach((function(t){return t(e)})),"click"===e.type&&(Y.props.trigger.indexOf("mouseenter")<0||k)&&!1!==Y.props.hideOnClick&&Y.state.isVisible)t=!0;else{var n=G(),i=n[0],r=n[1];E.isTouch&&"hold"===i&&r?l=setTimeout((function(){Oe(e)}),r):Oe(e)}"click"===e.type&&(k=!t),t&&xe(e)}}function me(e){var t=e.target,n=i.contains(t)||z.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,a=c(r.placement),s=r.modifiersData.offset;if(!s)return!0;var u="bottom"===a?s.top.y:0,p="top"===a?s.bottom.y:0,f="right"===a?s.left.x:0,l="left"===a?s.right.x:0,d=t.top-i+u>o,v=i-t.bottom-p>o,g=t.left-n+f>o,m=n-t.right-l>o;return d||v||g||m}))}(we().concat(z).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:C}:null})).filter(Boolean),e)&&(se(),xe(e))}function he(e){if(!(ye(e)||Y.props.trigger.indexOf("click")>=0&&k))return Y.props.interactive?(F.body.addEventListener("mouseleave",xe),F.addEventListener("mousemove",_),u(S,_),void _(e)):void xe(e)}function be(e){Y.props.trigger.indexOf("focusin")<0&&e.target!==Z()||Y.props.interactive&&e.relatedTarget&&z.contains(e.relatedTarget)||xe(e)}function ye(e){return!!E.isTouch&&K()!==e.type.indexOf("touch")>=0}function Ee(){Te();var t=Y.props,n=t.popperOptions,r=t.placement,o=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,u=Q()?M(z).arrow:null,c=a?{getBoundingClientRect:a}:i,p={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(Q()){var n=ee().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},f={name:"arrow",enabled:!!u,options:{element:u,padding:3}},l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}}].concat(Q()?[f]:[],(null==n?void 0:n.modifiers)||[],[p]);Y.popperInstance=e.createPopper(c,z,Object.assign({},n,{placement:r,onFirstUpdate:O,modifiers:l}))}function Te(){Y.popperInstance&&(Y.popperInstance.destroy(),Y.popperInstance=null)}function we(){return p(z.querySelectorAll("[data-tippy-root]"))}function Oe(e){Y.clearDelayTimeouts(),e&&re("onTrigger",[Y,e]),ce();var t=te(!0);t?l=setTimeout((function(){Y.show()}),t):Y.show()}function xe(e){if(Y.clearDelayTimeouts(),re("onUntrigger",[Y,e]),Y.state.isVisible){if(!(Y.props.trigger.indexOf("mouseenter")>=0&&Y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&k)){var t=te(!1);t?v=setTimeout((function(){Y.state.isVisible&&Y.hide()}),t):g=requestAnimationFrame((function(){Y.hide()}))}}else pe()}}function U(e,n){void 0===n&&(n={});var i=V.plugins.concat(n.plugins||[]);document.addEventListener("touchstart",w,Object.assign({},t,{capture:!0})),window.addEventListener("blur",x);var r=Object.assign({},n,{plugins:i}),o=g(e).reduce((function(e,t){var n=t&&B(t,r);return n&&e.push(n),e}),[]);return l(e)?o[0]:o}U.defaultProps=V,U.setDefaultProps=function(e){Object.keys(e).forEach((function(t){V[t]=e[t]}))},U.currentInput=E;var H={mouseover:"mouseenter",focusin:"focus",click:"click"};var _={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(!(null==(t=e.props.render)?void 0:t.$$tippy))return e.props.animateFill,{};var n=M(e.popper),i=n.box,r=n.content,o=e.props.animateFill?function(){var e=f();return e.className="tippy-backdrop",h([e],"hidden"),e}():null;return{onCreate:function(){o&&(i.insertBefore(o,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(o){var e=i.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",o.style.transitionDuration=e,h([o],"visible")}},onShow:function(){o&&(o.style.transitionDuration="0ms")},onHide:function(){o&&h([o],"hidden")}}}};var F={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=b(e.props.triggerTarget||t),i=null;function r(){return"manual"===e.props.trigger.trim()}function o(){var t=!!r()||null!==i&&!(0===i.clientX&&0===i.clientY);return e.props.followCursor&&t}function a(t){t&&e.setProps({getReferenceClientRect:null})}function s(){o()?n.addEventListener("mousemove",c):a(e.props.followCursor)}function u(){n.removeEventListener("mousemove",c)}function c(n){i={clientX:n.clientX,clientY:n.clientY};var r=!n.target||t.contains(n.target),o=e.props.followCursor,a=n.clientX,s=n.clientY,c=t.getBoundingClientRect(),p=a-c.left,f=s-c.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=a,i=s;"initial"===o&&(n=e.left+p,i=e.top+f);var r="horizontal"===o?e.top:i,u="vertical"===o?e.right:n,c="horizontal"===o?e.bottom:i,l="vertical"===o?e.left:n;return{width:u-l,height:c-r,top:r,right:u,bottom:c,left:l}}}),(E.isTouch||"initial"===e.props.followCursor&&e.state.isVisible)&&u()}return{onAfterUpdate:function(e,t){var n=t.followCursor;void 0===n||n||a(!0)},onMount:function(){o()&&c(i)},onShow:function(){r()&&(i={clientX:0,clientY:0},s())},onTrigger:function(e,t){i||(d(t)&&(i={clientX:t.clientX,clientY:t.clientY}),s())},onUntrigger:function(){e.state.isVisible||(u(),i=null)},onHidden:function(){u(),i=null}}}},N={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference;var i={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(i){var r=i.state;e.props.inlinePositioning&&(t!==r.placement&&e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n){if(n.length<2||null===e)return t;switch(e){case"top":case"bottom":var i=n[0],r=n[n.length-1],o="top"===e,a=i.top,s=r.bottom,u=o?i.left:r.left,c=o?i.right:r.right;return{top:a,bottom:s,left:u,right:c,width:c-u,height:s-a};case"left":case"right":var p=Math.min.apply(Math,n.map((function(e){return e.left}))),f=Math.max.apply(Math,n.map((function(e){return e.right}))),l=n.filter((function(t){return"left"===e?t.left===p:t.right===f})),d=l[0].top,v=l[l.length-1].bottom;return{top:d,bottom:v,left:p,right:f,width:f-p,height:v-d};default:return t}}(c(e),n.getBoundingClientRect(),p(n.getClientRects()))}(r.placement)}}),t=r.placement)}};return{onCreate:function(){var t;e.setProps({popperOptions:Object.assign({},e.props.popperOptions,{modifiers:[].concat((null==(t=e.props.popperOptions)?void 0:t.modifiers)||[],[i])})})}}}};var X={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function i(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,o=null;function a(){var s=i("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,u=i("popper")?n.getBoundingClientRect():null;(s&&Y(r,s)||u&&Y(o,u))&&e.popperInstance&&e.popperInstance.update(),r=s,o=u,e.state.isMounted&&requestAnimationFrame(a)}return{onMount:function(){e.props.sticky&&a()}}}};function Y(e,t){return!e||!t||(e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left)}return U.setDefaultProps({plugins:[_,F,N,X],animation:!1}),U.createSingleton=function(e,t){var n;void 0===t&&(t={}),e.forEach((function(e){e.disable()}));var i=e.map((function(e){return e.reference})),r={fn:function(){return{onDestroy:function(){e.forEach((function(e){e.enable()}))},onTrigger:function(r,o){var a=o.currentTarget,s=i.indexOf(a);if(a!==n){n=a;var u=(t.overrides||[]).concat("content").reduce((function(t,n){return t[n]=e[s].props[n],t}),{});r.setProps(Object.assign({},u,{getReferenceClientRect:function(){return a.getBoundingClientRect()}}))}}}}};return U(f(),Object.assign({},a(t,["overrides"]),{plugins:[r].concat(t.plugins||[]),triggerTarget:i}))},U.delegate=function(e,t){var n=[],i=[],r=t.target,o=a(t,["target"]),u=Object.assign({},o,{trigger:"manual"}),c=Object.assign({},o,{showOnCreate:!0}),p=U(e,u);function f(e){if(e.target){var n=e.target.closest(r);if(n)if(!((n.getAttribute("data-tippy-trigger")||t.trigger||V.trigger).indexOf(H[e.type])<0||n._tippy)){var o=U(n,c);o&&(i=i.concat(o))}}}function l(e,t,i,r){void 0===r&&(r=!1),e.addEventListener(t,i,r),n.push({node:e,eventType:t,handler:i,options:r})}return s(p).forEach((function(e){var t=e.destroy;e.destroy=function(e){void 0===e&&(e=!0),e&&i.forEach((function(e){e.destroy()})),i=[],n.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),n=[],t()},function(e){var t=e.reference;l(t,"mouseover",f),l(t,"focusin",f),l(t,"click",f)}(e)})),p},U.hideAll=function(e){var t=void 0===e?{}:e,n=t.exclude,i=t.duration;I.forEach((function(e){var t=!1;if(n&&(t=v(n)?e.reference===n:e.popper===n.popper),!t){var r=e.props.duration;e.setProps({duration:i}),e.hide(),e.state.isDestroyed||e.setProps({duration:r})}}))},U.roundArrow='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',U})); | ||
//# sourceMappingURL=tippy-headless.umd.min.js.map |
{ | ||
"name": "tippy.js", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"description": "The complete tooltip, popover, dropdown, and menu solution for the web", | ||
@@ -5,0 +5,0 @@ "main": "dist/tippy.umd.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1385487
9350