vue-pure-admin/dist/static/js/vue-tippy.esm-browser.js
2023-07-18 12:46:39 +08:00

6 lines
43 KiB
JavaScript

import{r as Dt,o as Ar,af as Cr,au as xe,av as Mt,I as St,ad as Er,aw as Dr,ax as Pt,R as Mr}from"./index.js";/*!
* vue-tippy v6.2.0
* (c) 2023
* @license MIT
*/var N="top",X="bottom",Y="right",U="left",yt="auto",Fe=[N,X,Y,U],Ce="start",Ve="end",Sr="clippingParents",Kt="viewport",je="popper",Pr="reference",Lt=Fe.reduce(function(e,t){return e.concat([t+"-"+Ce,t+"-"+Ve])},[]),Jt=[].concat(Fe,[yt]).reduce(function(e,t){return e.concat([t,t+"-"+Ce,t+"-"+Ve])},[]),Lr="beforeRead",Rr="read",Br="afterRead",$r="beforeMain",Ir="main",jr="afterMain",kr="beforeWrite",Hr="write",Vr="afterWrite",Nr=[Lr,Rr,Br,$r,Ir,jr,kr,Hr,Vr];function re(e){return e?(e.nodeName||"").toLowerCase():null}function G(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ee(e){var t=G(e).Element;return e instanceof t||e instanceof Element}function W(e){var t=G(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qt(e){if(typeof ShadowRoot>"u")return!1;var t=G(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ur(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},s=t.elements[r];!W(s)||!re(s)||(Object.assign(s.style,n),Object.keys(i).forEach(function(a){var f=i[a];f===!1?s.removeAttribute(a):s.setAttribute(a,f===!0?"":f)}))})}function Fr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],s=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),f=a.reduce(function(u,d){return u[d]="",u},{});!W(i)||!re(i)||(Object.assign(i.style,f),Object.keys(s).forEach(function(u){i.removeAttribute(u)}))})}}var Zt={name:"applyStyles",enabled:!0,phase:"write",fn:Ur,effect:Fr,requires:["computeStyles"]};function ee(e){return e.split("-")[0]}var he=Math.max,ot=Math.min,De=Math.round;function Me(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(W(e)&&t){var s=e.offsetHeight,a=e.offsetWidth;a>0&&(n=De(r.width)/a||1),s>0&&(i=De(r.height)/s||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function bt(e){var t=Me(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function er(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Qt(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ne(e){return G(e).getComputedStyle(e)}function Wr(e){return["table","td","th"].indexOf(re(e))>=0}function pe(e){return((Ee(e)?e.ownerDocument:e.document)||window.document).documentElement}function st(e){return re(e)==="html"?e:e.assignedSlot||e.parentNode||(Qt(e)?e.host:null)||pe(e)}function Rt(e){return!W(e)||ne(e).position==="fixed"?null:e.offsetParent}function Xr(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&W(e)){var n=ne(e);if(n.position==="fixed")return null}for(var i=st(e);W(i)&&["html","body"].indexOf(re(i))<0;){var s=ne(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function We(e){for(var t=G(e),r=Rt(e);r&&Wr(r)&&ne(r).position==="static";)r=Rt(r);return r&&(re(r)==="html"||re(r)==="body"&&ne(r).position==="static")?t:r||Xr(e)||t}function wt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ke(e,t,r){return he(e,ot(t,r))}function Yr(e,t,r){var n=ke(e,t,r);return n>r?r:n}function tr(){return{top:0,right:0,bottom:0,left:0}}function rr(e){return Object.assign({},tr(),e)}function nr(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var _r=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,rr(typeof t!="number"?t:nr(t,Fe))};function qr(e){var t,r=e.state,n=e.name,i=e.options,s=r.elements.arrow,a=r.modifiersData.popperOffsets,f=ee(r.placement),u=wt(f),d=[U,Y].indexOf(f)>=0,c=d?"height":"width";if(!(!s||!a)){var T=_r(i.padding,r),A=bt(s),w=u==="y"?N:U,v=u==="y"?X:Y,g=r.rects.reference[c]+r.rects.reference[u]-a[u]-r.rects.popper[c],y=a[u]-r.rects.reference[u],b=We(s),x=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,E=g/2-y/2,o=T[w],D=x-A[c]-T[v],l=x/2-A[c]/2+E,m=ke(o,l,D),C=u;r.modifiersData[n]=(t={},t[C]=m,t.centerOffset=m-l,t)}}function zr(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||er(t.elements.popper,i)&&(t.elements.arrow=i))}var Gr={name:"arrow",enabled:!0,phase:"main",fn:qr,effect:zr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Se(e){return e.split("-")[1]}var Kr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jr(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:De(t*i)/i||0,y:De(r*i)/i||0}}function Bt(e){var t,r=e.popper,n=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,f=e.position,u=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,T=e.isFixed,A=c===!0?Jr(a):typeof c=="function"?c(a):a,w=A.x,v=w===void 0?0:w,g=A.y,y=g===void 0?0:g,b=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),E=U,o=N,D=window;if(d){var l=We(r),m="clientHeight",C="clientWidth";if(l===G(r)&&(l=pe(r),ne(l).position!=="static"&&f==="absolute"&&(m="scrollHeight",C="scrollWidth")),l=l,i===N||(i===U||i===Y)&&s===Ve){o=X;var L=T&&D.visualViewport?D.visualViewport.height:l[m];y-=L-n.height,y*=u?1:-1}if(i===U||(i===N||i===X)&&s===Ve){E=Y;var R=T&&D.visualViewport?D.visualViewport.width:l[C];v-=R-n.width,v*=u?1:-1}}var B=Object.assign({position:f},d&&Kr);if(u){var P;return Object.assign({},B,(P={},P[o]=x?"0":"",P[E]=b?"0":"",P.transform=(D.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",P))}return Object.assign({},B,(t={},t[o]=x?y+"px":"",t[E]=b?v+"px":"",t.transform="",t))}function Qr(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,s=r.adaptive,a=s===void 0?!0:s,f=r.roundOffsets,u=f===void 0?!0:f,d={placement:ee(t.placement),variation:Se(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Bt(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Bt(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Zr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Qr,data:{}},tt={passive:!0};function en(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,s=i===void 0?!0:i,a=n.resize,f=a===void 0?!0:a,u=G(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(c){c.addEventListener("scroll",r.update,tt)}),f&&u.addEventListener("resize",r.update,tt),function(){s&&d.forEach(function(c){c.removeEventListener("scroll",r.update,tt)}),f&&u.removeEventListener("resize",r.update,tt)}}var tn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:en,data:{}},rn={left:"right",right:"left",bottom:"top",top:"bottom"};function it(e){return e.replace(/left|right|bottom|top/g,function(t){return rn[t]})}var nn={start:"end",end:"start"};function $t(e){return e.replace(/start|end/g,function(t){return nn[t]})}function Ot(e){var t=G(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function xt(e){return Me(pe(e)).left+Ot(e).scrollLeft}function on(e){var t=G(e),r=pe(e),n=t.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,f=0;return n&&(i=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,f=n.offsetTop)),{width:i,height:s,x:a+xt(e),y:f}}function an(e){var t,r=pe(e),n=Ot(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=he(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=he(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),f=-n.scrollLeft+xt(e),u=-n.scrollTop;return ne(i||r).direction==="rtl"&&(f+=he(r.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:f,y:u}}function Tt(e){var t=ne(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function ir(e){return["html","body","#document"].indexOf(re(e))>=0?e.ownerDocument.body:W(e)&&Tt(e)?e:ir(st(e))}function He(e,t){var r;t===void 0&&(t=[]);var n=ir(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=G(n),a=i?[s].concat(s.visualViewport||[],Tt(n)?n:[]):n,f=t.concat(a);return i?f:f.concat(He(st(a)))}function mt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sn(e){var t=Me(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function It(e,t){return t===Kt?mt(on(e)):Ee(t)?sn(t):mt(an(pe(e)))}function un(e){var t=He(st(e)),r=["absolute","fixed"].indexOf(ne(e).position)>=0,n=r&&W(e)?We(e):e;return Ee(n)?t.filter(function(i){return Ee(i)&&er(i,n)&&re(i)!=="body"&&(r?ne(i).position!=="static":!0)}):[]}function fn(e,t,r){var n=t==="clippingParents"?un(e):[].concat(t),i=[].concat(n,[r]),s=i[0],a=i.reduce(function(f,u){var d=It(e,u);return f.top=he(d.top,f.top),f.right=ot(d.right,f.right),f.bottom=ot(d.bottom,f.bottom),f.left=he(d.left,f.left),f},It(e,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function or(e){var t=e.reference,r=e.element,n=e.placement,i=n?ee(n):null,s=n?Se(n):null,a=t.x+t.width/2-r.width/2,f=t.y+t.height/2-r.height/2,u;switch(i){case N:u={x:a,y:t.y-r.height};break;case X:u={x:a,y:t.y+t.height};break;case Y:u={x:t.x+t.width,y:f};break;case U:u={x:t.x-r.width,y:f};break;default:u={x:t.x,y:t.y}}var d=i?wt(i):null;if(d!=null){var c=d==="y"?"height":"width";switch(s){case Ce:u[d]=u[d]-(t[c]/2-r[c]/2);break;case Ve:u[d]=u[d]+(t[c]/2-r[c]/2);break}}return u}function Ne(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,s=r.boundary,a=s===void 0?Sr:s,f=r.rootBoundary,u=f===void 0?Kt:f,d=r.elementContext,c=d===void 0?je:d,T=r.altBoundary,A=T===void 0?!1:T,w=r.padding,v=w===void 0?0:w,g=rr(typeof v!="number"?v:nr(v,Fe)),y=c===je?Pr:je,b=e.rects.popper,x=e.elements[A?y:c],E=fn(Ee(x)?x:x.contextElement||pe(e.elements.popper),a,u),o=Me(e.elements.reference),D=or({reference:o,element:b,strategy:"absolute",placement:i}),l=mt(Object.assign({},b,D)),m=c===je?l:o,C={top:E.top-m.top+g.top,bottom:m.bottom-E.bottom+g.bottom,left:E.left-m.left+g.left,right:m.right-E.right+g.right},L=e.modifiersData.offset;if(c===je&&L){var R=L[i];Object.keys(C).forEach(function(B){var P=[Y,X].indexOf(B)>=0?1:-1,$=[N,X].indexOf(B)>=0?"y":"x";C[B]+=R[$]*P})}return C}function pn(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,s=r.rootBoundary,a=r.padding,f=r.flipVariations,u=r.allowedAutoPlacements,d=u===void 0?Jt:u,c=Se(n),T=c?f?Lt:Lt.filter(function(v){return Se(v)===c}):Fe,A=T.filter(function(v){return d.indexOf(v)>=0});A.length===0&&(A=T);var w=A.reduce(function(v,g){return v[g]=Ne(e,{placement:g,boundary:i,rootBoundary:s,padding:a})[ee(g)],v},{});return Object.keys(w).sort(function(v,g){return w[v]-w[g]})}function ln(e){if(ee(e)===yt)return[];var t=it(e);return[$t(e),t,$t(t)]}function cn(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,s=i===void 0?!0:i,a=r.altAxis,f=a===void 0?!0:a,u=r.fallbackPlacements,d=r.padding,c=r.boundary,T=r.rootBoundary,A=r.altBoundary,w=r.flipVariations,v=w===void 0?!0:w,g=r.allowedAutoPlacements,y=t.options.placement,b=ee(y),x=b===y,E=u||(x||!v?[it(y)]:ln(y)),o=[y].concat(E).reduce(function(ie,q){return ie.concat(ee(q)===yt?pn(t,{placement:q,boundary:c,rootBoundary:T,padding:d,flipVariations:v,allowedAutoPlacements:g}):q)},[]),D=t.rects.reference,l=t.rects.popper,m=new Map,C=!0,L=o[0],R=0;R<o.length;R++){var B=o[R],P=ee(B),$=Se(B)===Ce,V=[N,X].indexOf(P)>=0,_=V?"width":"height",j=Ne(t,{placement:B,boundary:c,rootBoundary:T,altBoundary:A,padding:d}),k=V?$?Y:U:$?X:N;D[_]>l[_]&&(k=it(k));var I=it(k),K=[];if(s&&K.push(j[P]<=0),f&&K.push(j[k]<=0,j[I]<=0),K.every(function(ie){return ie})){L=B,C=!1;break}m.set(B,K)}if(C)for(var J=v?3:1,le=function(q){var oe=o.find(function(ge){var ae=m.get(ge);if(ae)return ae.slice(0,q).every(function(ye){return ye})});if(oe)return L=oe,"break"},Q=J;Q>0;Q--){var ce=le(Q);if(ce==="break")break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}}var dn={name:"flip",enabled:!0,phase:"main",fn:cn,requiresIfExists:["offset"],data:{_skip:!1}};function jt(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function kt(e){return[N,Y,X,U].some(function(t){return e[t]>=0})}function vn(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=Ne(t,{elementContext:"reference"}),f=Ne(t,{altBoundary:!0}),u=jt(a,n),d=jt(f,i,s),c=kt(u),T=kt(d);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:T},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":T})}var mn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vn};function hn(e,t,r){var n=ee(e),i=[U,N].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=s[0],f=s[1];return a=a||0,f=(f||0)*i,[U,Y].indexOf(n)>=0?{x:f,y:a}:{x:a,y:f}}function gn(e){var t=e.state,r=e.options,n=e.name,i=r.offset,s=i===void 0?[0,0]:i,a=Jt.reduce(function(c,T){return c[T]=hn(T,t.rects,s),c},{}),f=a[t.placement],u=f.x,d=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=a}var yn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gn};function bn(e){var t=e.state,r=e.name;t.modifiersData[r]=or({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var wn={name:"popperOffsets",enabled:!0,phase:"read",fn:bn,data:{}};function On(e){return e==="x"?"y":"x"}function xn(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,s=i===void 0?!0:i,a=r.altAxis,f=a===void 0?!1:a,u=r.boundary,d=r.rootBoundary,c=r.altBoundary,T=r.padding,A=r.tether,w=A===void 0?!0:A,v=r.tetherOffset,g=v===void 0?0:v,y=Ne(t,{boundary:u,rootBoundary:d,padding:T,altBoundary:c}),b=ee(t.placement),x=Se(t.placement),E=!x,o=wt(b),D=On(o),l=t.modifiersData.popperOffsets,m=t.rects.reference,C=t.rects.popper,L=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(l){if(s){var $,V=o==="y"?N:U,_=o==="y"?X:Y,j=o==="y"?"height":"width",k=l[o],I=k+y[V],K=k-y[_],J=w?-C[j]/2:0,le=x===Ce?m[j]:C[j],Q=x===Ce?-C[j]:-m[j],ce=t.elements.arrow,ie=w&&ce?bt(ce):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:tr(),oe=q[V],ge=q[_],ae=ke(0,m[j],ie[j]),ye=E?m[j]/2-J-ae-oe-R.mainAxis:le-ae-oe-R.mainAxis,ue=E?-m[j]/2+J+ae+ge+R.mainAxis:Q+ae+ge+R.mainAxis,be=t.elements.arrow&&We(t.elements.arrow),Xe=be?o==="y"?be.clientTop||0:be.clientLeft||0:0,Le=($=B==null?void 0:B[o])!=null?$:0,Ye=k+ye-Le-Xe,_e=k+ue-Le,Re=ke(w?ot(I,Ye):I,k,w?he(K,_e):K);l[o]=Re,P[o]=Re-k}if(f){var Be,qe=o==="x"?N:U,ze=o==="x"?X:Y,se=l[D],fe=D==="y"?"height":"width",$e=se+y[qe],de=se-y[ze],Ie=[N,U].indexOf(b)!==-1,Ge=(Be=B==null?void 0:B[D])!=null?Be:0,Ke=Ie?$e:se-m[fe]-C[fe]-Ge+R.altAxis,Je=Ie?se+m[fe]+C[fe]-Ge-R.altAxis:de,Qe=w&&Ie?Yr(Ke,se,Je):ke(w?Ke:$e,se,w?Je:de);l[D]=Qe,P[D]=Qe-se}t.modifiersData[n]=P}}var Tn={name:"preventOverflow",enabled:!0,phase:"main",fn:xn,requiresIfExists:["offset"]};function An(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Cn(e){return e===G(e)||!W(e)?Ot(e):An(e)}function En(e){var t=e.getBoundingClientRect(),r=De(t.width)/e.offsetWidth||1,n=De(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Dn(e,t,r){r===void 0&&(r=!1);var n=W(t),i=W(t)&&En(t),s=pe(t),a=Me(e,i),f={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((re(t)!=="body"||Tt(s))&&(f=Cn(t)),W(t)?(u=Me(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=xt(s))),{x:a.left+f.scrollLeft-u.x,y:a.top+f.scrollTop-u.y,width:a.width,height:a.height}}function Mn(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function i(s){r.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(f){if(!r.has(f)){var u=t.get(f);u&&i(u)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||i(s)}),n}function Sn(e){var t=Mn(e);return Nr.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Pn(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Ln(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ht={placement:"bottom",modifiers:[],strategy:"absolute"};function Vt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Rn(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,s=i===void 0?Ht:i;return function(f,u,d){d===void 0&&(d=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ht,s),modifiersData:{},elements:{reference:f,popper:u},attributes:{},styles:{}},T=[],A=!1,w={state:c,setOptions:function(b){var x=typeof b=="function"?b(c.options):b;g(),c.options=Object.assign({},s,c.options,x),c.scrollParents={reference:Ee(f)?He(f):f.contextElement?He(f.contextElement):[],popper:He(u)};var E=Sn(Ln([].concat(n,c.options.modifiers)));return c.orderedModifiers=E.filter(function(o){return o.enabled}),v(),w.update()},forceUpdate:function(){if(!A){var b=c.elements,x=b.reference,E=b.popper;if(Vt(x,E)){c.rects={reference:Dn(x,We(E),c.options.strategy==="fixed"),popper:bt(E)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(R){return c.modifiersData[R.name]=Object.assign({},R.data)});for(var o=0;o<c.orderedModifiers.length;o++){if(c.reset===!0){c.reset=!1,o=-1;continue}var D=c.orderedModifiers[o],l=D.fn,m=D.options,C=m===void 0?{}:m,L=D.name;typeof l=="function"&&(c=l({state:c,options:C,name:L,instance:w})||c)}}}},update:Pn(function(){return new Promise(function(y){w.forceUpdate(),y(c)})}),destroy:function(){g(),A=!0}};if(!Vt(f,u))return w;w.setOptions(d).then(function(y){!A&&d.onFirstUpdate&&d.onFirstUpdate(y)});function v(){c.orderedModifiers.forEach(function(y){var b=y.name,x=y.options,E=x===void 0?{}:x,o=y.effect;if(typeof o=="function"){var D=o({state:c,name:b,instance:w,options:E}),l=function(){};T.push(D||l)}})}function g(){T.forEach(function(y){return y()}),T=[]}return w}}var Bn=[tn,wn,Zr,Zt,yn,dn,Tn,Gr,mn],$n=Rn({defaultModifiers:Bn}),In="tippy-box",ar="tippy-content",sr="tippy-backdrop",ur="tippy-arrow",fr="tippy-svg-arrow",me={passive:!0,capture:!0},pr=function(){return document.body};function lt(e,t,r){if(Array.isArray(e)){var n=e[t];return n??(Array.isArray(r)?r[t]:r)}return e}function At(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function lr(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Nt(e,t){if(t===0)return e;var r;return function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)}}function jn(e){return e.split(/\s+/).filter(Boolean)}function Te(e){return[].concat(e)}function Ut(e,t){e.indexOf(t)===-1&&e.push(t)}function kn(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function cr(e){return e.split("-")[0]}function Pe(e){return[].slice.call(e)}function Ft(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function Ae(){return document.createElement("div")}function ut(e){return["Element","Fragment"].some(function(t){return At(e,t)})}function Hn(e){return At(e,"NodeList")}function Ct(e){return At(e,"MouseEvent")}function Vn(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Nn(e){return ut(e)?[e]:Hn(e)?Pe(e):Array.isArray(e)?e:Pe(document.querySelectorAll(e))}function ct(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function Ue(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function dr(e){var t,r=Te(e),n=r[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function Un(e,t){var r=t.clientX,n=t.clientY;return e.every(function(i){var s=i.popperRect,a=i.popperState,f=i.props,u=f.interactiveBorder,d=cr(a.placement),c=a.modifiersData.offset;if(!c)return!0;var T=d==="bottom"?c.top.y:0,A=d==="top"?c.bottom.y:0,w=d==="right"?c.left.x:0,v=d==="left"?c.right.x:0,g=s.top-n+T>u,y=n-s.bottom-A>u,b=s.left-r+w>u,x=r-s.right-v>u;return g||y||b||x})}function dt(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[n](i,r)})}function Wt(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=r.getRootNode==null||(n=r.getRootNode())==null?void 0:n.host}return!1}var Z={isTouch:!1},Xt=0;function Fn(){Z.isTouch||(Z.isTouch=!0,window.performance&&document.addEventListener("mousemove",vr))}function vr(){var e=performance.now();e-Xt<20&&(Z.isTouch=!1,document.removeEventListener("mousemove",vr)),Xt=e}function Wn(){var e=document.activeElement;if(Vn(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Xn(){document.addEventListener("touchstart",Fn,me),window.addEventListener("blur",Wn)}var Yn=typeof window<"u"&&typeof document<"u",_n=Yn?!!window.msCrypto:!1,qn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},zn={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},z=Object.assign({appendTo:pr,aria:{content:"auto",expanded:"auto"},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(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},qn,zn),Gn=Object.keys(z),Kn=function(t){var r=Object.keys(t);r.forEach(function(n){z[n]=t[n]})};function mr(e){var t=e.plugins||[],r=t.reduce(function(n,i){var s=i.name,a=i.defaultValue;if(s){var f;n[s]=e[s]!==void 0?e[s]:(f=z[s])!=null?f:a}return n},{});return Object.assign({},e,r)}function Jn(e,t){var r=t?Object.keys(mr(Object.assign({},z,{plugins:t}))):Gn,n=r.reduce(function(i,s){var a=(e.getAttribute("data-tippy-"+s)||"").trim();if(!a)return i;if(s==="content")i[s]=a;else try{i[s]=JSON.parse(a)}catch{i[s]=a}return i},{});return n}function Yt(e,t){var r=Object.assign({},t,{content:lr(t.content,[e])},t.ignoreAttributes?{}:Jn(e,t.plugins));return r.aria=Object.assign({},z.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var Qn=function(){return"innerHTML"};function ht(e,t){e[Qn()]=t}function _t(e){var t=Ae();return e===!0?t.className=ur:(t.className=fr,ut(e)?t.appendChild(e):ht(t,e)),t}function qt(e,t){ut(t.content)?(ht(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?ht(e,t.content):e.textContent=t.content)}function at(e){var t=e.firstElementChild,r=Pe(t.children);return{box:t,content:r.find(function(n){return n.classList.contains(ar)}),arrow:r.find(function(n){return n.classList.contains(ur)||n.classList.contains(fr)}),backdrop:r.find(function(n){return n.classList.contains(sr)})}}function hr(e){var t=Ae(),r=Ae();r.className=In,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=Ae();n.className=ar,n.setAttribute("data-state","hidden"),qt(n,e.props),t.appendChild(r),r.appendChild(n),i(e.props,e.props);function i(s,a){var f=at(t),u=f.box,d=f.content,c=f.arrow;a.theme?u.setAttribute("data-theme",a.theme):u.removeAttribute("data-theme"),typeof a.animation=="string"?u.setAttribute("data-animation",a.animation):u.removeAttribute("data-animation"),a.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?u.setAttribute("role",a.role):u.removeAttribute("role"),(s.content!==a.content||s.allowHTML!==a.allowHTML)&&qt(d,e.props),a.arrow?c?s.arrow!==a.arrow&&(u.removeChild(c),u.appendChild(_t(a.arrow))):u.appendChild(_t(a.arrow)):c&&u.removeChild(c)}return{popper:t,onUpdate:i}}hr.$$tippy=!0;var Zn=1,rt=[],vt=[];function ei(e,t){var r=Yt(e,Object.assign({},z,mr(Ft(t)))),n,i,s,a=!1,f=!1,u=!1,d=!1,c,T,A,w=[],v=Nt(Ye,r.interactiveDebounce),g,y=Zn++,b=null,x=kn(r.plugins),E={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},o={id:y,reference:e,popper:Ae(),popperInstance:b,props:r,state:E,plugins:x,clearDelayTimeouts:Ke,setProps:Je,setContent:Qe,show:yr,hide:br,hideWithInteractivity:wr,enable:Ie,disable:Ge,unmount:Or,destroy:xr};if(!r.render)return o;var D=r.render(o),l=D.popper,m=D.onUpdate;l.setAttribute("data-tippy-root",""),l.id="tippy-"+o.id,o.popper=l,e._tippy=o,l._tippy=o;var C=x.map(function(p){return p.fn(o)}),L=e.hasAttribute("aria-expanded");return be(),J(),k(),I("onCreate",[o]),r.showOnCreate&&$e(),l.addEventListener("mouseenter",function(){o.props.interactive&&o.state.isVisible&&o.clearDelayTimeouts()}),l.addEventListener("mouseleave",function(){o.props.interactive&&o.props.trigger.indexOf("mouseenter")>=0&&V().addEventListener("mousemove",v)}),o;function R(){var p=o.props.touch;return Array.isArray(p)?p:[p,0]}function B(){return R()[0]==="hold"}function P(){var p;return!!((p=o.props.render)!=null&&p.$$tippy)}function $(){return g||e}function V(){var p=$().parentNode;return p?dr(p):document}function _(){return at(l)}function j(p){return o.state.isMounted&&!o.state.isVisible||Z.isTouch||c&&c.type==="focus"?0:lt(o.props.delay,p?0:1,z.delay)}function k(p){p===void 0&&(p=!1),l.style.pointerEvents=o.props.interactive&&!p?"":"none",l.style.zIndex=""+o.props.zIndex}function I(p,h,O){if(O===void 0&&(O=!0),C.forEach(function(M){M[p]&&M[p].apply(M,h)}),O){var S;(S=o.props)[p].apply(S,h)}}function K(){var p=o.props.aria;if(p.content){var h="aria-"+p.content,O=l.id,S=Te(o.props.triggerTarget||e);S.forEach(function(M){var H=M.getAttribute(h);if(o.state.isVisible)M.setAttribute(h,H?H+" "+O:O);else{var F=H&&H.replace(O,"").trim();F?M.setAttribute(h,F):M.removeAttribute(h)}})}}function J(){if(!(L||!o.props.aria.expanded)){var p=Te(o.props.triggerTarget||e);p.forEach(function(h){o.props.interactive?h.setAttribute("aria-expanded",o.state.isVisible&&h===$()?"true":"false"):h.removeAttribute("aria-expanded")})}}function le(){V().removeEventListener("mousemove",v),rt=rt.filter(function(p){return p!==v})}function Q(p){if(!(Z.isTouch&&(u||p.type==="mousedown"))){var h=p.composedPath&&p.composedPath()[0]||p.target;if(!(o.props.interactive&&Wt(l,h))){if(Te(o.props.triggerTarget||e).some(function(O){return Wt(O,h)})){if(Z.isTouch||o.state.isVisible&&o.props.trigger.indexOf("click")>=0)return}else I("onClickOutside",[o,p]);o.props.hideOnClick===!0&&(o.clearDelayTimeouts(),o.hide(),f=!0,setTimeout(function(){f=!1}),o.state.isMounted||oe())}}}function ce(){u=!0}function ie(){u=!1}function q(){var p=V();p.addEventListener("mousedown",Q,!0),p.addEventListener("touchend",Q,me),p.addEventListener("touchstart",ie,me),p.addEventListener("touchmove",ce,me)}function oe(){var p=V();p.removeEventListener("mousedown",Q,!0),p.removeEventListener("touchend",Q,me),p.removeEventListener("touchstart",ie,me),p.removeEventListener("touchmove",ce,me)}function ge(p,h){ye(p,function(){!o.state.isVisible&&l.parentNode&&l.parentNode.contains(l)&&h()})}function ae(p,h){ye(p,h)}function ye(p,h){var O=_().box;function S(M){M.target===O&&(dt(O,"remove",S),h())}if(p===0)return h();dt(O,"remove",T),dt(O,"add",S),T=S}function ue(p,h,O){O===void 0&&(O=!1);var S=Te(o.props.triggerTarget||e);S.forEach(function(M){M.addEventListener(p,h,O),w.push({node:M,eventType:p,handler:h,options:O})})}function be(){B()&&(ue("touchstart",Le,{passive:!0}),ue("touchend",_e,{passive:!0})),jn(o.props.trigger).forEach(function(p){if(p!=="manual")switch(ue(p,Le),p){case"mouseenter":ue("mouseleave",_e);break;case"focus":ue(_n?"focusout":"blur",Re);break;case"focusin":ue("focusout",Re);break}})}function Xe(){w.forEach(function(p){var h=p.node,O=p.eventType,S=p.handler,M=p.options;h.removeEventListener(O,S,M)}),w=[]}function Le(p){var h,O=!1;if(!(!o.state.isEnabled||Be(p)||f)){var S=((h=c)==null?void 0:h.type)==="focus";c=p,g=p.currentTarget,J(),!o.state.isVisible&&Ct(p)&&rt.forEach(function(M){return M(p)}),p.type==="click"&&(o.props.trigger.indexOf("mouseenter")<0||a)&&o.props.hideOnClick!==!1&&o.state.isVisible?O=!0:$e(p),p.type==="click"&&(a=!O),O&&!S&&de(p)}}function Ye(p){var h=p.target,O=$().contains(h)||l.contains(h);if(!(p.type==="mousemove"&&O)){var S=fe().concat(l).map(function(M){var H,F=M._tippy,we=(H=F.popperInstance)==null?void 0:H.state;return we?{popperRect:M.getBoundingClientRect(),popperState:we,props:r}:null}).filter(Boolean);Un(S,p)&&(le(),de(p))}}function _e(p){var h=Be(p)||o.props.trigger.indexOf("click")>=0&&a;if(!h){if(o.props.interactive){o.hideWithInteractivity(p);return}de(p)}}function Re(p){o.props.trigger.indexOf("focusin")<0&&p.target!==$()||o.props.interactive&&p.relatedTarget&&l.contains(p.relatedTarget)||de(p)}function Be(p){return Z.isTouch?B()!==p.type.indexOf("touch")>=0:!1}function qe(){ze();var p=o.props,h=p.popperOptions,O=p.placement,S=p.offset,M=p.getReferenceClientRect,H=p.moveTransition,F=P()?at(l).arrow:null,we=M?{getBoundingClientRect:M,contextElement:M.contextElement||$()}:e,Et={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ze){var Oe=Ze.state;if(P()){var Tr=_(),pt=Tr.box;["placement","reference-hidden","escaped"].forEach(function(et){et==="placement"?pt.setAttribute("data-placement",Oe.placement):Oe.attributes.popper["data-popper-"+et]?pt.setAttribute("data-"+et,""):pt.removeAttribute("data-"+et)}),Oe.attributes.popper={}}}},ve=[{name:"offset",options:{offset:S}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!H}},Et];P()&&F&&ve.push({name:"arrow",options:{element:F,padding:3}}),ve.push.apply(ve,(h==null?void 0:h.modifiers)||[]),o.popperInstance=$n(we,l,Object.assign({},h,{placement:O,onFirstUpdate:A,modifiers:ve}))}function ze(){o.popperInstance&&(o.popperInstance.destroy(),o.popperInstance=null)}function se(){var p=o.props.appendTo,h,O=$();o.props.interactive&&p===pr||p==="parent"?h=O.parentNode:h=lr(p,[O]),h.contains(l)||h.appendChild(l),o.state.isMounted=!0,qe()}function fe(){return Pe(l.querySelectorAll("[data-tippy-root]"))}function $e(p){o.clearDelayTimeouts(),p&&I("onTrigger",[o,p]),q();var h=j(!0),O=R(),S=O[0],M=O[1];Z.isTouch&&S==="hold"&&M&&(h=M),h?n=setTimeout(function(){o.show()},h):o.show()}function de(p){if(o.clearDelayTimeouts(),I("onUntrigger",[o,p]),!o.state.isVisible){oe();return}if(!(o.props.trigger.indexOf("mouseenter")>=0&&o.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(p.type)>=0&&a)){var h=j(!1);h?i=setTimeout(function(){o.state.isVisible&&o.hide()},h):s=requestAnimationFrame(function(){o.hide()})}}function Ie(){o.state.isEnabled=!0}function Ge(){o.hide(),o.state.isEnabled=!1}function Ke(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(s)}function Je(p){if(!o.state.isDestroyed){I("onBeforeUpdate",[o,p]),Xe();var h=o.props,O=Yt(e,Object.assign({},h,Ft(p),{ignoreAttributes:!0}));o.props=O,be(),h.interactiveDebounce!==O.interactiveDebounce&&(le(),v=Nt(Ye,O.interactiveDebounce)),h.triggerTarget&&!O.triggerTarget?Te(h.triggerTarget).forEach(function(S){S.removeAttribute("aria-expanded")}):O.triggerTarget&&e.removeAttribute("aria-expanded"),J(),k(),m&&m(h,O),o.popperInstance&&(qe(),fe().forEach(function(S){requestAnimationFrame(S._tippy.popperInstance.forceUpdate)})),I("onAfterUpdate",[o,p])}}function Qe(p){o.setProps({content:p})}function yr(){var p=o.state.isVisible,h=o.state.isDestroyed,O=!o.state.isEnabled,S=Z.isTouch&&!o.props.touch,M=lt(o.props.duration,0,z.duration);if(!(p||h||O||S)&&!$().hasAttribute("disabled")&&(I("onShow",[o],!1),o.props.onShow(o)!==!1)){if(o.state.isVisible=!0,P()&&(l.style.visibility="visible"),k(),q(),o.state.isMounted||(l.style.transition="none"),P()){var H=_(),F=H.box,we=H.content;ct([F,we],0)}A=function(){var ve;if(!(!o.state.isVisible||d)){if(d=!0,l.offsetHeight,l.style.transition=o.props.moveTransition,P()&&o.props.animation){var ft=_(),Ze=ft.box,Oe=ft.content;ct([Ze,Oe],M),Ue([Ze,Oe],"visible")}K(),J(),Ut(vt,o),(ve=o.popperInstance)==null||ve.forceUpdate(),I("onMount",[o]),o.props.animation&&P()&&ae(M,function(){o.state.isShown=!0,I("onShown",[o])})}},se()}}function br(){var p=!o.state.isVisible,h=o.state.isDestroyed,O=!o.state.isEnabled,S=lt(o.props.duration,1,z.duration);if(!(p||h||O)&&(I("onHide",[o],!1),o.props.onHide(o)!==!1)){if(o.state.isVisible=!1,o.state.isShown=!1,d=!1,a=!1,P()&&(l.style.visibility="hidden"),le(),oe(),k(!0),P()){var M=_(),H=M.box,F=M.content;o.props.animation&&(ct([H,F],S),Ue([H,F],"hidden"))}K(),J(),o.props.animation?P()&&ge(S,o.unmount):o.unmount()}}function wr(p){V().addEventListener("mousemove",v),Ut(rt,v),v(p)}function Or(){o.state.isVisible&&o.hide(),o.state.isMounted&&(ze(),fe().forEach(function(p){p._tippy.unmount()}),l.parentNode&&l.parentNode.removeChild(l),vt=vt.filter(function(p){return p!==o}),o.state.isMounted=!1,I("onHidden",[o]))}function xr(){o.state.isDestroyed||(o.clearDelayTimeouts(),o.unmount(),Xe(),delete e._tippy,o.state.isDestroyed=!0,I("onDestroy",[o]))}}function te(e,t){t===void 0&&(t={});var r=z.plugins.concat(t.plugins||[]);Xn();var n=Object.assign({},t,{plugins:r}),i=Nn(e),s=i.reduce(function(a,f){var u=f&&ei(f,n);return u&&a.push(u),a},[]);return ut(e)?s[0]:s}te.defaultProps=z;te.setDefaultProps=Kn;te.currentInput=Z;Object.assign({},Zt,{effect:function(t){var r=t.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow)}});var ti={name:"animateFill",defaultValue:!1,fn:function(t){var r;if(!((r=t.props.render)!=null&&r.$$tippy))return{};var n=at(t.popper),i=n.box,s=n.content,a=t.props.animateFill?ri():null;return{onCreate:function(){a&&(i.insertBefore(a,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",t.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(a){var u=i.style.transitionDuration,d=Number(u.replace("ms",""));s.style.transitionDelay=Math.round(d/10)+"ms",a.style.transitionDuration=u,Ue([a],"visible")}},onShow:function(){a&&(a.style.transitionDuration="0ms")},onHide:function(){a&&Ue([a],"hidden")}}}};function ri(){var e=Ae();return e.className=sr,Ue([e],"hidden"),e}var gt={clientX:0,clientY:0},nt=[];function gr(e){var t=e.clientX,r=e.clientY;gt={clientX:t,clientY:r}}function ni(e){e.addEventListener("mousemove",gr)}function ii(e){e.removeEventListener("mousemove",gr)}var oi={name:"followCursor",defaultValue:!1,fn:function(t){var r=t.reference,n=dr(t.props.triggerTarget||r),i=!1,s=!1,a=!0,f=t.props;function u(){return t.props.followCursor==="initial"&&t.state.isVisible}function d(){n.addEventListener("mousemove",A)}function c(){n.removeEventListener("mousemove",A)}function T(){i=!0,t.setProps({getReferenceClientRect:null}),i=!1}function A(g){var y=g.target?r.contains(g.target):!0,b=t.props.followCursor,x=g.clientX,E=g.clientY,o=r.getBoundingClientRect(),D=x-o.left,l=E-o.top;(y||!t.props.interactive)&&t.setProps({getReferenceClientRect:function(){var C=r.getBoundingClientRect(),L=x,R=E;b==="initial"&&(L=C.left+D,R=C.top+l);var B=b==="horizontal"?C.top:R,P=b==="vertical"?C.right:L,$=b==="horizontal"?C.bottom:R,V=b==="vertical"?C.left:L;return{width:P-V,height:$-B,top:B,right:P,bottom:$,left:V}}})}function w(){t.props.followCursor&&(nt.push({instance:t,doc:n}),ni(n))}function v(){nt=nt.filter(function(g){return g.instance!==t}),nt.filter(function(g){return g.doc===n}).length===0&&ii(n)}return{onCreate:w,onDestroy:v,onBeforeUpdate:function(){f=t.props},onAfterUpdate:function(y,b){var x=b.followCursor;i||x!==void 0&&f.followCursor!==x&&(v(),x?(w(),t.state.isMounted&&!s&&!u()&&d()):(c(),T()))},onMount:function(){t.props.followCursor&&!s&&(a&&(A(gt),a=!1),u()||d())},onTrigger:function(y,b){Ct(b)&&(gt={clientX:b.clientX,clientY:b.clientY}),s=b.type==="focus"},onHidden:function(){t.props.followCursor&&(T(),c(),a=!0)}}}};function ai(e,t){var r;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat((((r=e.popperOptions)==null?void 0:r.modifiers)||[]).filter(function(n){var i=n.name;return i!==t.name}),[t])})}}var si={name:"inlinePositioning",defaultValue:!1,fn:function(t){var r=t.reference;function n(){return!!t.props.inlinePositioning}var i,s=-1,a=!1,f=[],u={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(w){var v=w.state;n()&&(f.indexOf(v.placement)!==-1&&(f=[]),i!==v.placement&&f.indexOf(v.placement)===-1&&(f.push(v.placement),t.setProps({getReferenceClientRect:function(){return d(v.placement)}})),i=v.placement)}};function d(A){return ui(cr(A),r.getBoundingClientRect(),Pe(r.getClientRects()),s)}function c(A){a=!0,t.setProps(A),a=!1}function T(){a||c(ai(t.props,u))}return{onCreate:T,onAfterUpdate:T,onTrigger:function(w,v){if(Ct(v)){var g=Pe(t.reference.getClientRects()),y=g.find(function(x){return x.left-2<=v.clientX&&x.right+2>=v.clientX&&x.top-2<=v.clientY&&x.bottom+2>=v.clientY}),b=g.indexOf(y);s=b>-1?b:s}},onHidden:function(){s=-1}}}};function ui(e,t,r,n){if(r.length<2||e===null)return t;if(r.length===2&&n>=0&&r[0].left>r[1].right)return r[n]||t;switch(e){case"top":case"bottom":{var i=r[0],s=r[r.length-1],a=e==="top",f=i.top,u=s.bottom,d=a?i.left:s.left,c=a?i.right:s.right,T=c-d,A=u-f;return{top:f,bottom:u,left:d,right:c,width:T,height:A}}case"left":case"right":{var w=Math.min.apply(Math,r.map(function(l){return l.left})),v=Math.max.apply(Math,r.map(function(l){return l.right})),g=r.filter(function(l){return e==="left"?l.left===w:l.right===v}),y=g[0].top,b=g[g.length-1].bottom,x=w,E=v,o=E-x,D=b-y;return{top:y,bottom:b,left:x,right:E,width:o,height:D}}default:return t}}var fi={name:"sticky",defaultValue:!1,fn:function(t){var r=t.reference,n=t.popper;function i(){return t.popperInstance?t.popperInstance.state.elements.reference:r}function s(d){return t.props.sticky===!0||t.props.sticky===d}var a=null,f=null;function u(){var d=s("reference")?i().getBoundingClientRect():null,c=s("popper")?n.getBoundingClientRect():null;(d&&zt(a,d)||c&&zt(f,c))&&t.popperInstance&&t.popperInstance.update(),a=d,f=c,t.state.isMounted&&requestAnimationFrame(u)}return{onMount:function(){t.props.sticky&&u()}}}};function zt(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}te.setDefaultProps({render:hr});te.setDefaultProps({onShow:e=>{if(!e.props.content)return!1}});function pi(e,t={},r={mount:!0}){const n=Er(),i=Dt(),s=Dt({isEnabled:!1,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1});let a=null;const f=()=>a||(a=document.createDocumentFragment(),a),u=l=>{let m,C=xe(l)?l.value:l;if(Dr(C))n&&(C.appContext=n.appContext),Pt(C,f()),m=()=>f();else if(typeof C=="object"){let L=Mr(C);n&&(L.appContext=n.appContext),Pt(L,f()),m=()=>f()}else m=C;return m},d=l=>{let m={};return xe(l)?m=l.value||{}:Mt(l)?m={...l}:m={...l},m.content&&(m.content=u(m.content)),m.triggerTarget&&(m.triggerTarget=xe(m.triggerTarget)?m.triggerTarget.value:m.triggerTarget),(!m.plugins||!Array.isArray(m.plugins))&&(m.plugins=[]),m.plugins=m.plugins.filter(C=>C.name!=="vueTippyReactiveState"),m.plugins.push({name:"vueTippyReactiveState",fn:()=>({onCreate(){s.value.isEnabled=!0},onMount(){s.value.isMounted=!0},onShow(){s.value.isMounted=!0,s.value.isVisible=!0},onShown(){s.value.isShown=!0},onHide(){s.value.isMounted=!1,s.value.isVisible=!1},onHidden(){s.value.isShown=!1},onUnmounted(){s.value.isMounted=!1},onDestroy(){s.value.isDestroyed=!0}})}),m},c=()=>{i.value&&i.value.setProps(d(t))},T=()=>{!i.value||!t.content||i.value.setContent(u(t.content))},A=l=>{var m;(m=i.value)===null||m===void 0||m.setContent(u(l))},w=l=>{var m;(m=i.value)===null||m===void 0||m.setProps(d(l))},v=()=>{i.value&&(i.value.destroy(),i.value=void 0),a=null},g=()=>{var l;(l=i.value)===null||l===void 0||l.show()},y=()=>{var l;(l=i.value)===null||l===void 0||l.hide()},b=()=>{var l;(l=i.value)===null||l===void 0||l.disable(),s.value.isEnabled=!1},x=()=>{var l;(l=i.value)===null||l===void 0||l.enable(),s.value.isEnabled=!0},E=()=>{var l;(l=i.value)===null||l===void 0||l.unmount()},o=()=>{if(!e)return;let l=xe(e)?e.value:e;typeof l=="function"&&(l=l()),l&&(i.value=te(l,d(t)),l.$tippy=D)},D={tippy:i,refresh:c,refreshContent:T,setContent:A,setProps:w,destroy:v,hide:y,show:g,disable:b,enable:x,unmount:E,mount:o,state:s};return r.mount&&(n?(n.isMounted?o():Ar(o),Cr(()=>{v()})):o()),xe(t)||Mt(t)?St(t,c,{immediate:!1}):xe(t.content)&&St(t.content,T,{immediate:!1}),D}const li=["a11y","allowHTML","arrow","flip","flipOnUpdate","hideOnClick","ignoreAttributes","inertia","interactive","lazy","multiple","showOnInit","touch","touchHold"];let Gt={};Object.keys(te.defaultProps).forEach(e=>{li.includes(e)?Gt[e]={type:Boolean,default:function(){return te.defaultProps[e]}}:Gt[e]={default:function(){return te.defaultProps[e]}}});const vi={mounted(e,t,r){const n=typeof t.value=="string"?{content:t.value}:t.value||{},i=Object.keys(t.modifiers||{}),s=i.find(f=>f!=="arrow"),a=i.findIndex(f=>f==="arrow")!==-1;s&&(n.placement=n.placement||s),a&&(n.arrow=n.arrow!==void 0?n.arrow:!0),r.props&&r.props.onTippyShow&&(n.onShow=function(...f){var u;return(u=r.props)===null||u===void 0?void 0:u.onTippyShow(...f)}),r.props&&r.props.onTippyShown&&(n.onShown=function(...f){var u;return(u=r.props)===null||u===void 0?void 0:u.onTippyShown(...f)}),r.props&&r.props.onTippyHidden&&(n.onHidden=function(...f){var u;return(u=r.props)===null||u===void 0?void 0:u.onTippyHidden(...f)}),r.props&&r.props.onTippyHide&&(n.onHide=function(...f){var u;return(u=r.props)===null||u===void 0?void 0:u.onTippyHide(...f)}),r.props&&r.props.onTippyMount&&(n.onMount=function(...f){var u;return(u=r.props)===null||u===void 0?void 0:u.onTippyMount(...f)}),e.getAttribute("title")&&!n.content&&(n.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!n.content&&(n.content=e.getAttribute("content")),pi(e,n)},unmounted(e){e.$tippy?e.$tippy.destroy():e._tippy&&e._tippy.destroy()},updated(e,t){const r=typeof t.value=="string"?{content:t.value}:t.value||{};e.getAttribute("title")&&!r.content&&(r.content=e.getAttribute("title"),e.removeAttribute("title")),e.getAttribute("content")&&!r.content&&(r.content=e.getAttribute("content")),e.$tippy?e.$tippy.setProps(r||{}):e._tippy&&e._tippy.setProps(r||{})}},ci=te.setDefaultProps;ci({ignoreAttributes:!0,plugins:[fi,si,oi,ti]});export{vi as d,pi as u};