react-tooltip 5.8.3 → 5.8.4-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,6 +53,8 @@ In versions >=5.8.0, we've introduced the `data-tooltip-id` attribute, and the `
53
53
 
54
54
  1 . Import the CSS file to set default styling.
55
55
 
56
+ > :warning: You must import the CSS file or the tooltip won't show!
57
+
56
58
  ```js
57
59
  import 'react-tooltip/dist/react-tooltip.css'
58
60
  ```
@@ -2506,6 +2506,17 @@ content, html, isOpen, setIsOpen, activeAnchor, setActiveAnchor, }) => {
2506
2506
  afterHide === null || afterHide === void 0 ? void 0 : afterHide();
2507
2507
  }
2508
2508
  }, [show]);
2509
+ require$$0.useEffect(() => {
2510
+ if (rendered) {
2511
+ return;
2512
+ }
2513
+ if (tooltipShowDelayTimerRef.current) {
2514
+ clearTimeout(tooltipShowDelayTimerRef.current);
2515
+ }
2516
+ if (tooltipHideDelayTimerRef.current) {
2517
+ clearTimeout(tooltipHideDelayTimerRef.current);
2518
+ }
2519
+ }, [rendered]);
2509
2520
  const handleShowTooltipDelayed = () => {
2510
2521
  if (tooltipShowDelayTimerRef.current) {
2511
2522
  clearTimeout(tooltipShowDelayTimerRef.current);
@@ -12,4 +12,4 @@
12
12
  Copyright (c) 2018 Jed Watson.
13
13
  Licensed under the MIT License (MIT), see
14
14
  http://jedwatson.github.io/classnames
15
- */i=a,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)n.push(o);else if(Array.isArray(o)){if(o.length){var a=t.apply(null,o);a&&n.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var l in o)e.call(o,l)&&o[l]&&n.push(l)}}}return n.join(" ")}i.exports?(t.default=t,i.exports=t):window.classNames=t}();var l=a.exports;const s=(e,t,n)=>{let r=null;return function(...o){r&&clearTimeout(r),r=setTimeout((()=>{r=null,n||e.apply(this,o)}),t)}},c=({content:e})=>r.exports.jsx("span",{dangerouslySetInnerHTML:{__html:e}}),u={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},f={getTooltipData:()=>u},d=e.createContext(f);function p(t="DEFAULT_TOOLTIP_ID"){return e.useContext(d).getTooltipData(t)}const y="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function m(e){return e.split("-")[1]}function h(e){return"y"===e?"height":"width"}function v(e){return e.split("-")[0]}function g(e){return["top","bottom"].includes(v(e))?"x":"y"}function w(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,l=g(t),s=h(l),c=r[s]/2-o[s]/2,u="x"===l;let f;switch(v(t)){case"top":f={x:i,y:r.y-o.height};break;case"bottom":f={x:i,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:a};break;case"left":f={x:r.x-o.width,y:a};break;default:f={x:r.x,y:r.y}}switch(m(t)){case"start":f[l]-=c*(n&&u?-1:1);break;case"end":f[l]+=c*(n&&u?-1:1)}return f}function b(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function x(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function S(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,y=b(p),m=l[d?"floating"===f?"reference":"floating":f],h=x(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===f?{...a.floating,x:r,y:o}:a.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},S=x(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:g,strategy:s}):v);return{top:(h.top-S.top+y.top)/w.y,bottom:(S.bottom-h.bottom+y.bottom)/w.y,left:(h.left-S.left+y.left)/w.x,right:(S.right-h.right+y.right)/w.x}}const _=Math.min,R=Math.max;function T(e,t,n){return R(e,_(t,n))}const E={left:"right",right:"left",bottom:"top",top:"bottom"};function A(e){return e.replace(/left|right|bottom|top/g,(e=>E[e]))}const O={start:"end",end:"start"};function k(e){return e.replace(/start|end/g,(e=>O[e]))}const j=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:s}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...w}=e,b=v(r),x=v(a)===a,_=await(null==l.isRTL?void 0:l.isRTL(s.floating)),R=f||(x||!y?[A(a)]:function(e){const t=A(e);return[k(e),t,k(t)]}(a));f||"none"===p||R.push(...function(e,t,n,r){const o=m(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(v(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(k)))),i}(a,y,p,_));const T=[a,...R],E=await S(t,w),O=[];let j=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&O.push(E[b]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=m(e),o=g(e),i=h(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=A(a)),{main:a,cross:A(a)}}(r,i,_);O.push(E[e],E[t])}if(j=[...j,{placement:r,overflows:O}],!O.every((e=>e<=0))){var L,P;const e=((null==(L=o.flip)?void 0:L.index)||0)+1,t=T[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let n=null==(P=j.find((e=>e.overflows[0]<=0)))?void 0:P.placement;if(!n)switch(d){case"bestFit":{var D;const e=null==(D=j.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};const L=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=v(n),l=m(n),s="x"===g(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof y&&(p="end"===l?-1*y:y),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};const P=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,c={x:n,y:r},u=await S(t,s),f=g(v(o)),d="x"===f?"y":"x";let p=c[f],y=c[d];if(i){const e="y"===f?"bottom":"right";p=T(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";y=T(y+u["y"===d?"top":"left"],y,y-u[e])}const m=l.fn({...t,[f]:p,[d]:y});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function D(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function N(e){return D(e).getComputedStyle(e)}const F=Math.min,$=Math.max,C=Math.round;function I(e){const t=N(e);let n=parseFloat(t.width),r=parseFloat(t.height);const o=e.offsetWidth,i=e.offsetHeight,a=C(n)!==o||C(r)!==i;return a&&(n=o,r=i),{width:n,height:r,fallback:a}}function W(e){return q(e)?(e.nodeName||"").toLowerCase():""}let U;function H(){if(U)return U;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(U=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),U):navigator.userAgent}function B(e){return e instanceof D(e).HTMLElement}function M(e){return e instanceof D(e).Element}function q(e){return e instanceof D(e).Node}function V(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof D(e).ShadowRoot||e instanceof ShadowRoot}function Y(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=N(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function z(e){return["table","td","th"].includes(W(e))}function X(e){const t=/firefox/i.test(H()),n=N(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function K(){return!/^((?!chrome|android).)*safari/i.test(H())}function J(e){return["html","body","#document"].includes(W(e))}function Z(e){return M(e)?e:e.contextElement}const G={x:1,y:1};function Q(e){const t=Z(e);if(!B(t))return G;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=I(t);let a=(i?C(n.width):n.width)/r,l=(i?C(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function ee(e,t,n,r){var o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),l=Z(e);let s=G;t&&(r?M(r)&&(s=Q(r)):s=Q(e));const c=l?D(l):window,u=!K()&&n;let f=(a.left+(u&&(null==(o=c.visualViewport)?void 0:o.offsetLeft)||0))/s.x,d=(a.top+(u&&(null==(i=c.visualViewport)?void 0:i.offsetTop)||0))/s.y,p=a.width/s.x,y=a.height/s.y;if(l){const e=D(l),t=r&&M(r)?D(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Q(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,f*=e.x,d*=e.y,p*=e.x,y*=e.y,f+=t.x,d+=t.y,n=D(n).frameElement}}return{width:p,height:y,top:d,right:f+p,bottom:d+y,left:f,x:f,y:d}}function te(e){return((q(e)?e.ownerDocument:e.document)||window.document).documentElement}function ne(e){return M(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function re(e){return ee(te(e)).left+ne(e).scrollLeft}function oe(e){if("html"===W(e))return e;const t=e.assignedSlot||e.parentNode||V(e)&&e.host||te(e);return V(t)?t.host:t}function ie(e){const t=oe(e);return J(t)?t.ownerDocument.body:B(t)&&Y(t)?t:ie(t)}function ae(e,t){var n;void 0===t&&(t=[]);const r=ie(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=D(r);return o?t.concat(i,i.visualViewport||[],Y(r)?r:[]):t.concat(r,ae(r))}function le(e,t,n){return"viewport"===t?x(function(e,t){const n=D(e),r=te(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=K();(e||!e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n)):M(t)?x(function(e,t){const n=ee(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=B(e)?Q(e):{x:1,y:1};return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n)):x(function(e){const t=te(e),n=ne(e),r=e.ownerDocument.body,o=$(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=$(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+re(e);const l=-n.scrollTop;return"rtl"===N(r).direction&&(a+=$(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(te(e)))}function se(e){return B(e)&&"fixed"!==N(e).position?e.offsetParent:null}function ce(e){const t=D(e);let n=se(e);for(;n&&z(n)&&"static"===N(n).position;)n=se(n);return n&&("html"===W(n)||"body"===W(n)&&"static"===N(n).position&&!X(n))?t:n||function(e){let t=oe(e);for(;B(t)&&!J(t);){if(X(t))return t;t=oe(t)}return null}(e)||t}function ue(e,t,n){const r=B(t),o=te(t),i=ee(e,!0,"fixed"===n,t);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==W(t)||Y(o))&&(a=ne(t)),B(t)){const e=ee(t,!0);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=re(o));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}const fe={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=ae(e).filter((e=>M(e)&&"body"!==W(e))),o=null;const i="fixed"===N(e).position;let a=i?oe(e):e;for(;M(a)&&!J(a);){const e=N(a),t=X(a);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter((e=>e!==a)),a=oe(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],s=a.reduce(((e,n)=>{const r=le(t,n,o);return e.top=$(r.top,e.top),e.right=F(r.right,e.right),e.bottom=F(r.bottom,e.bottom),e.left=$(r.left,e.left),e}),le(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=B(n),i=te(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==W(n)||Y(i))&&(a=ne(n)),B(n))){const e=ee(n);l=Q(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+s.x,y:t.y*l.y-a.scrollTop*l.y+s.y}},isElement:M,getDimensions:function(e){return B(e)?I(e):e.getBoundingClientRect()},getOffsetParent:ce,getDocumentElement:te,getScale:Q,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||ce,i=this.getDimensions;return{reference:ue(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===N(e).direction},de=(e,t,n)=>{const r=new Map,o={platform:fe,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));if(null==a&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),l.filter((e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t})).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=w(c,r,s),d=r,p={},y=0;for(let n=0;n<l.length;n++){const{name:i,fn:m}=l[n],{x:h,y:v,data:g,reset:b}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=h?h:u,f=null!=v?v:f,p={...p,[i]:{...p[i],...g}},y>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),b&&y<=50&&(y++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:f}=w(c,d,s))),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},pe=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:o=10,strategy:i="absolute",middlewares:a=[L(Number(o)),j(),P({padding:5})]})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{}};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{}};const l=a;return n?(l.push({name:"arrow",options:s={element:n,padding:5},async fn(e){const{element:t,padding:n=0}=s||{},{x:r,y:o,placement:i,rects:a,platform:l}=e;if(null==t)return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const c=b(n),u={x:r,y:o},f=g(i),d=h(f),p=await l.getDimensions(t),y="y"===f?"top":"left",v="y"===f?"bottom":"right",w=a.reference[d]+a.reference[f]-u[f]-a.floating[d],x=u[f]-a.reference[f],S=await(null==l.getOffsetParent?void 0:l.getOffsetParent(t));let _=S?"y"===f?S.clientHeight||0:S.clientWidth||0:0;0===_&&(_=a.floating[d]);const R=w/2-x/2,E=c[y],A=_-p[d]-c[v],O=_/2-p[d]/2+R,k=T(E,O,A),j=null!=m(i)&&O!=k&&a.reference[d]/2-(O<E?c[y]:c[v])-p[d]/2<0;return{[f]:u[f]-(j?O<E?E-O:A-O:0),data:{[f]:k,centerOffset:O-k}}}}),de(e,t,{placement:r,strategy:i,middleware:l}).then((({x:e,y:t,placement:n,middlewareData:r})=>{var o,i;const a={left:`${e}px`,top:`${t}px`},{x:l,y:s}=null!==(o=r.arrow)&&void 0!==o?o:{x:0,y:0};return{tooltipStyles:a,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=s?`${s}px`:"",right:"",bottom:"",[null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom"]:"-4px"}}}))):de(e,t,{placement:"bottom",strategy:i,middleware:l}).then((({x:e,y:t})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{}})));var s};var ye={tooltip:"styles-module_tooltip__mnnfp",fixed:"styles-module_fixed__7ciUi",arrow:"styles-module_arrow__K0L3T","no-arrow":"styles-module_no-arrow__KcFZN",clickable:"styles-module_clickable__Bv9o7",show:"styles-module_show__2NboJ",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const me=({id:t,className:n,classNameArrow:o,variant:i="dark",anchorId:a,anchorSelect:u,place:f="top",offset:d=10,events:m=["hover"],positionStrategy:h="absolute",middlewares:v,wrapper:g,children:w=null,delayShow:b=0,delayHide:x=0,float:S=!1,noArrow:_=!1,clickable:R=!1,closeOnEsc:T=!1,style:E,position:A,afterShow:O,afterHide:k,content:j,html:L,isOpen:P,setIsOpen:D,activeAnchor:N,setActiveAnchor:F})=>{const $=e.useRef(null),C=e.useRef(null),I=e.useRef(null),W=e.useRef(null),[U,H]=e.useState({}),[B,M]=e.useState({}),[q,V]=e.useState(!1),[Y,z]=e.useState(!1),X=e.useRef(!1),K=e.useRef(null),{anchorRefs:J,setActiveAnchor:Z}=p(t),G=e.useRef(!1),[Q,ee]=e.useState([]),te=e.useRef(!1);y((()=>(te.current=!0,()=>{te.current=!1})),[]),e.useEffect((()=>{if(!q){const e=setTimeout((()=>{z(!1)}),150);return()=>{clearTimeout(e)}}return()=>null}),[q]);const ne=e=>{te.current&&(e&&z(!0),setTimeout((()=>{te.current&&(null==D||D(e),void 0===P&&V(e))}),10))};e.useEffect((()=>{if(void 0===P)return()=>null;P&&z(!0);const e=setTimeout((()=>{V(P)}),10);return()=>{clearTimeout(e)}}),[P]),e.useEffect((()=>{q!==X.current&&(X.current=q,q?null==O||O():null==k||k())}),[q]);const re=(e=x)=>{W.current&&clearTimeout(W.current),W.current=setTimeout((()=>{G.current||ne(!1)}),e)},oe=e=>{var t;if(!e)return;b?(I.current&&clearTimeout(I.current),I.current=setTimeout((()=>{ne(!0)}),b)):ne(!0);const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;F(n),Z({current:n}),W.current&&clearTimeout(W.current)},ie=()=>{R?re(x||100):x?re():ne(!1),I.current&&clearTimeout(I.current)},ae=({x:e,y:t})=>{pe({place:f,offset:d,elementReference:{getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})},tooltipReference:$.current,tooltipArrowReference:C.current,strategy:h,middlewares:v}).then((e=>{Object.keys(e.tooltipStyles).length&&H(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&M(e.tooltipArrowStyles)}))},le=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};ae(n),K.current=n},se=e=>{oe(e),x&&re()},ce=e=>{const t=document.querySelector(`[id='${a}']`);(null==t?void 0:t.contains(e.target))||Q.some((t=>t.contains(e.target)))||ne(!1)},ue=e=>{"Escape"===e.key&&ne(!1)},fe=s(oe,50),de=s(ie,50);e.useEffect((()=>{var e,t;const n=new Set(J);Q.forEach((e=>{n.add({current:e})}));const r=document.querySelector(`[id='${a}']`);r&&n.add({current:r}),T&&window.addEventListener("keydown",ue);const o=[];m.find((e=>"click"===e))&&(window.addEventListener("click",ce),o.push({event:"click",listener:se})),m.find((e=>"hover"===e))&&(o.push({event:"mouseenter",listener:fe},{event:"mouseleave",listener:de},{event:"focus",listener:fe},{event:"blur",listener:de}),S&&o.push({event:"mousemove",listener:le}));const i=()=>{G.current=!0},l=()=>{G.current=!1,ie()};return R&&(null===(e=$.current)||void 0===e||e.addEventListener("mouseenter",i),null===(t=$.current)||void 0===t||t.addEventListener("mouseleave",l)),o.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;m.find((e=>"click"===e))&&window.removeEventListener("click",ce),T&&window.removeEventListener("keydown",ue),R&&(null===(e=$.current)||void 0===e||e.removeEventListener("mouseenter",i),null===(t=$.current)||void 0===t||t.removeEventListener("mouseleave",l)),o.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[Y,J,Q,T,m]),e.useEffect((()=>{let e=null!=u?u:"";!e&&t&&(e=`[data-tooltip-id='${t}']`);const n=new MutationObserver((n=>{const r=[];n.forEach((n=>{if("attributes"===n.type&&"data-tooltip-id"===n.attributeName){n.target.getAttribute("data-tooltip-id")===t&&r.push(n.target)}if("childList"===n.type&&(N&&[...n.removedNodes].some((e=>!!e.contains(N)&&(z(!1),ne(!1),F(null),!0))),e))try{const t=[...n.addedNodes].filter((e=>1===e.nodeType));r.push(...t.filter((t=>t.matches(e)))),r.push(...t.flatMap((t=>[...t.querySelectorAll(e)])))}catch(e){}})),r.length&&ee((e=>[...e,...r]))}));return n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{n.disconnect()}}),[t,u,N]),e.useEffect((()=>{A?ae(A):S?K.current&&ae(K.current):pe({place:f,offset:d,elementReference:N,tooltipReference:$.current,tooltipArrowReference:C.current,strategy:h,middlewares:v}).then((e=>{te.current&&(Object.keys(e.tooltipStyles).length&&H(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&M(e.tooltipArrowStyles))}))}),[q,N,j,L,f,d,h,A]),e.useEffect((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...Q,t];N&&n.includes(N)||F(null!==(e=Q[0])&&void 0!==e?e:t)}),[a,Q,N]),e.useEffect((()=>()=>{I.current&&clearTimeout(I.current),W.current&&clearTimeout(W.current)}),[]),e.useEffect((()=>{let e=u;if(!e&&t&&(e=`[data-tooltip-id='${t}']`),e)try{const t=Array.from(document.querySelectorAll(e));ee(t)}catch(e){ee([])}}),[t,u]);const me=Boolean(L||j||w)&&q&&Object.keys(U).length>0;return Y?r.exports.jsxs(g,{id:t,role:"tooltip",className:l("react-tooltip",ye.tooltip,ye[i],n,{[ye.show]:me,[ye.fixed]:"fixed"===h,[ye.clickable]:R}),style:{...E,...U},ref:$,children:[L&&r.exports.jsx(c,{content:L})||j||w,r.exports.jsx(g,{className:l("react-tooltip-arrow",ye.arrow,o,{[ye["no-arrow"]]:_}),style:B,ref:C})]}):null};exports.Tooltip=({id:t,anchorId:n,anchorSelect:o,content:i,html:a,className:l,classNameArrow:s,variant:c="dark",place:u="top",offset:f=10,wrapper:d="div",children:y=null,events:m=["hover"],positionStrategy:h="absolute",middlewares:v,delayShow:g=0,delayHide:w=0,float:b=!1,noArrow:x=!1,clickable:S=!1,closeOnEsc:_=!1,style:R,position:T,isOpen:E,setIsOpen:A,afterShow:O,afterHide:k})=>{const[j,L]=e.useState(i),[P,D]=e.useState(a),[N,F]=e.useState(u),[$,C]=e.useState(c),[I,W]=e.useState(f),[U,H]=e.useState(g),[B,M]=e.useState(w),[q,V]=e.useState(b),[Y,z]=e.useState(d),[X,K]=e.useState(m),[J,Z]=e.useState(h),[G,Q]=e.useState(null),{anchorRefs:ee,activeAnchor:te}=p(t),ne=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;if(n.startsWith("data-tooltip-")){t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null}return t}),{}),re=e=>{const t={place:e=>{var t;F(null!==(t=e)&&void 0!==t?t:u)},content:e=>{L(null!=e?e:i)},html:e=>{D(null!=e?e:a)},variant:e=>{var t;C(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{W(null===e?f:Number(e))},wrapper:e=>{var t;z(null!==(t=e)&&void 0!==t?t:d)},events:e=>{const t=null==e?void 0:e.split(" ");K(null!=t?t:m)},"position-strategy":e=>{var t;Z(null!==(t=e)&&void 0!==t?t:h)},"delay-show":e=>{H(null===e?g:Number(e))},"delay-hide":e=>{M(null===e?w:Number(e))},float:e=>{V(null===e?b:"true"===e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)}))};e.useEffect((()=>{L(i)}),[i]),e.useEffect((()=>{D(a)}),[a]),e.useEffect((()=>{F(u)}),[u]),e.useEffect((()=>{var e;const r=new Set(ee);let i=o;if(!i&&t&&(i=`[data-tooltip-id='${t}']`),i)try{document.querySelectorAll(i).forEach((e=>{r.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${o}" is not a valid CSS selector`)}const a=document.querySelector(`[id='${n}']`);if(a&&r.add({current:a}),!r.size)return()=>null;const l=null!==(e=null!=G?G:a)&&void 0!==e?e:te.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!l||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=ne(l);re(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(l){const e=ne(l);re(e),s.observe(l,c)}return()=>{s.disconnect()}}),[ee,te,G,n,o]);const oe={id:t,anchorId:n,anchorSelect:o,className:l,classNameArrow:s,content:j,html:P,place:N,variant:$,offset:I,wrapper:Y,events:X,positionStrategy:J,middlewares:v,delayShow:U,delayHide:B,float:q,noArrow:x,clickable:S,closeOnEsc:_,style:R,position:T,isOpen:E,setIsOpen:A,afterShow:O,afterHide:k,activeAnchor:G,setActiveAnchor:e=>Q(e)};return y?r.exports.jsx(me,{...oe,children:y}):r.exports.jsx(me,{...oe})},exports.TooltipProvider=({children:t})=>{const[n,o]=e.useState({DEFAULT_TOOLTIP_ID:new Set}),[i,a]=e.useState({DEFAULT_TOOLTIP_ID:{current:null}}),l=(e,...t)=>{o((n=>{var r;const o=null!==(r=n[e])&&void 0!==r?r:new Set;return t.forEach((e=>o.add(e))),{...n,[e]:new Set(o)}}))},s=(e,...t)=>{o((n=>{const r=n[e];return r?(t.forEach((e=>r.delete(e))),{...n}):n}))},c=e.useCallback(((e="DEFAULT_TOOLTIP_ID")=>{var t,r;return{anchorRefs:null!==(t=n[e])&&void 0!==t?t:new Set,activeAnchor:null!==(r=i[e])&&void 0!==r?r:{current:null},attach:(...t)=>l(e,...t),detach:(...t)=>s(e,...t),setActiveAnchor:t=>((e,t)=>{a((n=>{var r;return(null===(r=n[e])||void 0===r?void 0:r.current)===t.current?n:{...n,[e]:t}}))})(e,t)}}),[n,i,l,s]),u=e.useMemo((()=>({getTooltipData:c})),[c]);return r.exports.jsx(d.Provider,{value:u,children:t})},exports.TooltipWrapper=({tooltipId:t,children:n,className:o,place:i,content:a,html:s,variant:c,offset:u,wrapper:f,events:d,positionStrategy:y,delayShow:m,delayHide:h})=>{const{attach:v,detach:g}=p(t),w=e.useRef(null);return e.useEffect((()=>(v(w),()=>{g(w)})),[]),r.exports.jsx("span",{ref:w,className:l("react-tooltip-wrapper",o),"data-tooltip-place":i,"data-tooltip-content":a,"data-tooltip-html":s,"data-tooltip-variant":c,"data-tooltip-offset":u,"data-tooltip-wrapper":f,"data-tooltip-events":d,"data-tooltip-position-strategy":y,"data-tooltip-delay-show":m,"data-tooltip-delay-hide":h,children:n})};
15
+ */i=a,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)n.push(o);else if(Array.isArray(o)){if(o.length){var a=t.apply(null,o);a&&n.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var l in o)e.call(o,l)&&o[l]&&n.push(l)}}}return n.join(" ")}i.exports?(t.default=t,i.exports=t):window.classNames=t}();var l=a.exports;const s=(e,t,n)=>{let r=null;return function(...o){r&&clearTimeout(r),r=setTimeout((()=>{r=null,n||e.apply(this,o)}),t)}},c=({content:e})=>r.exports.jsx("span",{dangerouslySetInnerHTML:{__html:e}}),u={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},f={getTooltipData:()=>u},d=e.createContext(f);function p(t="DEFAULT_TOOLTIP_ID"){return e.useContext(d).getTooltipData(t)}const y="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function m(e){return e.split("-")[1]}function h(e){return"y"===e?"height":"width"}function v(e){return e.split("-")[0]}function g(e){return["top","bottom"].includes(v(e))?"x":"y"}function w(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,l=g(t),s=h(l),c=r[s]/2-o[s]/2,u="x"===l;let f;switch(v(t)){case"top":f={x:i,y:r.y-o.height};break;case"bottom":f={x:i,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:a};break;case"left":f={x:r.x-o.width,y:a};break;default:f={x:r.x,y:r.y}}switch(m(t)){case"start":f[l]-=c*(n&&u?-1:1);break;case"end":f[l]+=c*(n&&u?-1:1)}return f}function b(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function x(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function S(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,y=b(p),m=l[d?"floating"===f?"reference":"floating":f],h=x(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===f?{...a.floating,x:r,y:o}:a.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},S=x(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:g,strategy:s}):v);return{top:(h.top-S.top+y.top)/w.y,bottom:(S.bottom-h.bottom+y.bottom)/w.y,left:(h.left-S.left+y.left)/w.x,right:(S.right-h.right+y.right)/w.x}}const _=Math.min,R=Math.max;function T(e,t,n){return R(e,_(t,n))}const E={left:"right",right:"left",bottom:"top",top:"bottom"};function A(e){return e.replace(/left|right|bottom|top/g,(e=>E[e]))}const O={start:"end",end:"start"};function k(e){return e.replace(/start|end/g,(e=>O[e]))}const j=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:s}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...w}=e,b=v(r),x=v(a)===a,_=await(null==l.isRTL?void 0:l.isRTL(s.floating)),R=f||(x||!y?[A(a)]:function(e){const t=A(e);return[k(e),t,k(t)]}(a));f||"none"===p||R.push(...function(e,t,n,r){const o=m(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(v(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(k)))),i}(a,y,p,_));const T=[a,...R],E=await S(t,w),O=[];let j=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&O.push(E[b]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=m(e),o=g(e),i=h(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=A(a)),{main:a,cross:A(a)}}(r,i,_);O.push(E[e],E[t])}if(j=[...j,{placement:r,overflows:O}],!O.every((e=>e<=0))){var L,P;const e=((null==(L=o.flip)?void 0:L.index)||0)+1,t=T[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let n=null==(P=j.find((e=>e.overflows[0]<=0)))?void 0:P.placement;if(!n)switch(d){case"bestFit":{var D;const e=null==(D=j.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};const L=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=v(n),l=m(n),s="x"===g(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof y&&(p="end"===l?-1*y:y),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};const P=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,c={x:n,y:r},u=await S(t,s),f=g(v(o)),d="x"===f?"y":"x";let p=c[f],y=c[d];if(i){const e="y"===f?"bottom":"right";p=T(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";y=T(y+u["y"===d?"top":"left"],y,y-u[e])}const m=l.fn({...t,[f]:p,[d]:y});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function D(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function N(e){return D(e).getComputedStyle(e)}const F=Math.min,$=Math.max,C=Math.round;function I(e){const t=N(e);let n=parseFloat(t.width),r=parseFloat(t.height);const o=e.offsetWidth,i=e.offsetHeight,a=C(n)!==o||C(r)!==i;return a&&(n=o,r=i),{width:n,height:r,fallback:a}}function W(e){return q(e)?(e.nodeName||"").toLowerCase():""}let U;function H(){if(U)return U;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(U=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),U):navigator.userAgent}function B(e){return e instanceof D(e).HTMLElement}function M(e){return e instanceof D(e).Element}function q(e){return e instanceof D(e).Node}function V(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof D(e).ShadowRoot||e instanceof ShadowRoot}function Y(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=N(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function z(e){return["table","td","th"].includes(W(e))}function X(e){const t=/firefox/i.test(H()),n=N(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function K(){return!/^((?!chrome|android).)*safari/i.test(H())}function J(e){return["html","body","#document"].includes(W(e))}function Z(e){return M(e)?e:e.contextElement}const G={x:1,y:1};function Q(e){const t=Z(e);if(!B(t))return G;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=I(t);let a=(i?C(n.width):n.width)/r,l=(i?C(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function ee(e,t,n,r){var o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),l=Z(e);let s=G;t&&(r?M(r)&&(s=Q(r)):s=Q(e));const c=l?D(l):window,u=!K()&&n;let f=(a.left+(u&&(null==(o=c.visualViewport)?void 0:o.offsetLeft)||0))/s.x,d=(a.top+(u&&(null==(i=c.visualViewport)?void 0:i.offsetTop)||0))/s.y,p=a.width/s.x,y=a.height/s.y;if(l){const e=D(l),t=r&&M(r)?D(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Q(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,f*=e.x,d*=e.y,p*=e.x,y*=e.y,f+=t.x,d+=t.y,n=D(n).frameElement}}return{width:p,height:y,top:d,right:f+p,bottom:d+y,left:f,x:f,y:d}}function te(e){return((q(e)?e.ownerDocument:e.document)||window.document).documentElement}function ne(e){return M(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function re(e){return ee(te(e)).left+ne(e).scrollLeft}function oe(e){if("html"===W(e))return e;const t=e.assignedSlot||e.parentNode||V(e)&&e.host||te(e);return V(t)?t.host:t}function ie(e){const t=oe(e);return J(t)?t.ownerDocument.body:B(t)&&Y(t)?t:ie(t)}function ae(e,t){var n;void 0===t&&(t=[]);const r=ie(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=D(r);return o?t.concat(i,i.visualViewport||[],Y(r)?r:[]):t.concat(r,ae(r))}function le(e,t,n){return"viewport"===t?x(function(e,t){const n=D(e),r=te(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=K();(e||!e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n)):M(t)?x(function(e,t){const n=ee(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=B(e)?Q(e):{x:1,y:1};return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n)):x(function(e){const t=te(e),n=ne(e),r=e.ownerDocument.body,o=$(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=$(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+re(e);const l=-n.scrollTop;return"rtl"===N(r).direction&&(a+=$(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(te(e)))}function se(e){return B(e)&&"fixed"!==N(e).position?e.offsetParent:null}function ce(e){const t=D(e);let n=se(e);for(;n&&z(n)&&"static"===N(n).position;)n=se(n);return n&&("html"===W(n)||"body"===W(n)&&"static"===N(n).position&&!X(n))?t:n||function(e){let t=oe(e);for(;B(t)&&!J(t);){if(X(t))return t;t=oe(t)}return null}(e)||t}function ue(e,t,n){const r=B(t),o=te(t),i=ee(e,!0,"fixed"===n,t);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==W(t)||Y(o))&&(a=ne(t)),B(t)){const e=ee(t,!0);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=re(o));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}const fe={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=ae(e).filter((e=>M(e)&&"body"!==W(e))),o=null;const i="fixed"===N(e).position;let a=i?oe(e):e;for(;M(a)&&!J(a);){const e=N(a),t=X(a);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter((e=>e!==a)),a=oe(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],s=a.reduce(((e,n)=>{const r=le(t,n,o);return e.top=$(r.top,e.top),e.right=F(r.right,e.right),e.bottom=F(r.bottom,e.bottom),e.left=$(r.left,e.left),e}),le(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=B(n),i=te(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==W(n)||Y(i))&&(a=ne(n)),B(n))){const e=ee(n);l=Q(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+s.x,y:t.y*l.y-a.scrollTop*l.y+s.y}},isElement:M,getDimensions:function(e){return B(e)?I(e):e.getBoundingClientRect()},getOffsetParent:ce,getDocumentElement:te,getScale:Q,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||ce,i=this.getDimensions;return{reference:ue(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===N(e).direction},de=(e,t,n)=>{const r=new Map,o={platform:fe,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));if(null==a&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),l.filter((e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t})).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=w(c,r,s),d=r,p={},y=0;for(let n=0;n<l.length;n++){const{name:i,fn:m}=l[n],{x:h,y:v,data:g,reset:b}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=h?h:u,f=null!=v?v:f,p={...p,[i]:{...p[i],...g}},y>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),b&&y<=50&&(y++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:f}=w(c,d,s))),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},pe=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:o=10,strategy:i="absolute",middlewares:a=[L(Number(o)),j(),P({padding:5})]})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{}};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{}};const l=a;return n?(l.push({name:"arrow",options:s={element:n,padding:5},async fn(e){const{element:t,padding:n=0}=s||{},{x:r,y:o,placement:i,rects:a,platform:l}=e;if(null==t)return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const c=b(n),u={x:r,y:o},f=g(i),d=h(f),p=await l.getDimensions(t),y="y"===f?"top":"left",v="y"===f?"bottom":"right",w=a.reference[d]+a.reference[f]-u[f]-a.floating[d],x=u[f]-a.reference[f],S=await(null==l.getOffsetParent?void 0:l.getOffsetParent(t));let _=S?"y"===f?S.clientHeight||0:S.clientWidth||0:0;0===_&&(_=a.floating[d]);const R=w/2-x/2,E=c[y],A=_-p[d]-c[v],O=_/2-p[d]/2+R,k=T(E,O,A),j=null!=m(i)&&O!=k&&a.reference[d]/2-(O<E?c[y]:c[v])-p[d]/2<0;return{[f]:u[f]-(j?O<E?E-O:A-O:0),data:{[f]:k,centerOffset:O-k}}}}),de(e,t,{placement:r,strategy:i,middleware:l}).then((({x:e,y:t,placement:n,middlewareData:r})=>{var o,i;const a={left:`${e}px`,top:`${t}px`},{x:l,y:s}=null!==(o=r.arrow)&&void 0!==o?o:{x:0,y:0};return{tooltipStyles:a,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=s?`${s}px`:"",right:"",bottom:"",[null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom"]:"-4px"}}}))):de(e,t,{placement:"bottom",strategy:i,middleware:l}).then((({x:e,y:t})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{}})));var s};var ye={tooltip:"styles-module_tooltip__mnnfp",fixed:"styles-module_fixed__7ciUi",arrow:"styles-module_arrow__K0L3T","no-arrow":"styles-module_no-arrow__KcFZN",clickable:"styles-module_clickable__Bv9o7",show:"styles-module_show__2NboJ",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const me=({id:t,className:n,classNameArrow:o,variant:i="dark",anchorId:a,anchorSelect:u,place:f="top",offset:d=10,events:m=["hover"],positionStrategy:h="absolute",middlewares:v,wrapper:g,children:w=null,delayShow:b=0,delayHide:x=0,float:S=!1,noArrow:_=!1,clickable:R=!1,closeOnEsc:T=!1,style:E,position:A,afterShow:O,afterHide:k,content:j,html:L,isOpen:P,setIsOpen:D,activeAnchor:N,setActiveAnchor:F})=>{const $=e.useRef(null),C=e.useRef(null),I=e.useRef(null),W=e.useRef(null),[U,H]=e.useState({}),[B,M]=e.useState({}),[q,V]=e.useState(!1),[Y,z]=e.useState(!1),X=e.useRef(!1),K=e.useRef(null),{anchorRefs:J,setActiveAnchor:Z}=p(t),G=e.useRef(!1),[Q,ee]=e.useState([]),te=e.useRef(!1);y((()=>(te.current=!0,()=>{te.current=!1})),[]),e.useEffect((()=>{if(!q){const e=setTimeout((()=>{z(!1)}),150);return()=>{clearTimeout(e)}}return()=>null}),[q]);const ne=e=>{te.current&&(e&&z(!0),setTimeout((()=>{te.current&&(null==D||D(e),void 0===P&&V(e))}),10))};e.useEffect((()=>{if(void 0===P)return()=>null;P&&z(!0);const e=setTimeout((()=>{V(P)}),10);return()=>{clearTimeout(e)}}),[P]),e.useEffect((()=>{q!==X.current&&(X.current=q,q?null==O||O():null==k||k())}),[q]),e.useEffect((()=>{Y||(I.current&&clearTimeout(I.current),W.current&&clearTimeout(W.current))}),[Y]);const re=(e=x)=>{W.current&&clearTimeout(W.current),W.current=setTimeout((()=>{G.current||ne(!1)}),e)},oe=e=>{var t;if(!e)return;b?(I.current&&clearTimeout(I.current),I.current=setTimeout((()=>{ne(!0)}),b)):ne(!0);const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;F(n),Z({current:n}),W.current&&clearTimeout(W.current)},ie=()=>{R?re(x||100):x?re():ne(!1),I.current&&clearTimeout(I.current)},ae=({x:e,y:t})=>{pe({place:f,offset:d,elementReference:{getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})},tooltipReference:$.current,tooltipArrowReference:C.current,strategy:h,middlewares:v}).then((e=>{Object.keys(e.tooltipStyles).length&&H(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&M(e.tooltipArrowStyles)}))},le=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};ae(n),K.current=n},se=e=>{oe(e),x&&re()},ce=e=>{const t=document.querySelector(`[id='${a}']`);(null==t?void 0:t.contains(e.target))||Q.some((t=>t.contains(e.target)))||ne(!1)},ue=e=>{"Escape"===e.key&&ne(!1)},fe=s(oe,50),de=s(ie,50);e.useEffect((()=>{var e,t;const n=new Set(J);Q.forEach((e=>{n.add({current:e})}));const r=document.querySelector(`[id='${a}']`);r&&n.add({current:r}),T&&window.addEventListener("keydown",ue);const o=[];m.find((e=>"click"===e))&&(window.addEventListener("click",ce),o.push({event:"click",listener:se})),m.find((e=>"hover"===e))&&(o.push({event:"mouseenter",listener:fe},{event:"mouseleave",listener:de},{event:"focus",listener:fe},{event:"blur",listener:de}),S&&o.push({event:"mousemove",listener:le}));const i=()=>{G.current=!0},l=()=>{G.current=!1,ie()};return R&&(null===(e=$.current)||void 0===e||e.addEventListener("mouseenter",i),null===(t=$.current)||void 0===t||t.addEventListener("mouseleave",l)),o.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;m.find((e=>"click"===e))&&window.removeEventListener("click",ce),T&&window.removeEventListener("keydown",ue),R&&(null===(e=$.current)||void 0===e||e.removeEventListener("mouseenter",i),null===(t=$.current)||void 0===t||t.removeEventListener("mouseleave",l)),o.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[Y,J,Q,T,m]),e.useEffect((()=>{let e=null!=u?u:"";!e&&t&&(e=`[data-tooltip-id='${t}']`);const n=new MutationObserver((n=>{const r=[];n.forEach((n=>{if("attributes"===n.type&&"data-tooltip-id"===n.attributeName){n.target.getAttribute("data-tooltip-id")===t&&r.push(n.target)}if("childList"===n.type&&(N&&[...n.removedNodes].some((e=>!!e.contains(N)&&(z(!1),ne(!1),F(null),!0))),e))try{const t=[...n.addedNodes].filter((e=>1===e.nodeType));r.push(...t.filter((t=>t.matches(e)))),r.push(...t.flatMap((t=>[...t.querySelectorAll(e)])))}catch(e){}})),r.length&&ee((e=>[...e,...r]))}));return n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{n.disconnect()}}),[t,u,N]),e.useEffect((()=>{A?ae(A):S?K.current&&ae(K.current):pe({place:f,offset:d,elementReference:N,tooltipReference:$.current,tooltipArrowReference:C.current,strategy:h,middlewares:v}).then((e=>{te.current&&(Object.keys(e.tooltipStyles).length&&H(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&M(e.tooltipArrowStyles))}))}),[q,N,j,L,f,d,h,A]),e.useEffect((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...Q,t];N&&n.includes(N)||F(null!==(e=Q[0])&&void 0!==e?e:t)}),[a,Q,N]),e.useEffect((()=>()=>{I.current&&clearTimeout(I.current),W.current&&clearTimeout(W.current)}),[]),e.useEffect((()=>{let e=u;if(!e&&t&&(e=`[data-tooltip-id='${t}']`),e)try{const t=Array.from(document.querySelectorAll(e));ee(t)}catch(e){ee([])}}),[t,u]);const me=Boolean(L||j||w)&&q&&Object.keys(U).length>0;return Y?r.exports.jsxs(g,{id:t,role:"tooltip",className:l("react-tooltip",ye.tooltip,ye[i],n,{[ye.show]:me,[ye.fixed]:"fixed"===h,[ye.clickable]:R}),style:{...E,...U},ref:$,children:[L&&r.exports.jsx(c,{content:L})||j||w,r.exports.jsx(g,{className:l("react-tooltip-arrow",ye.arrow,o,{[ye["no-arrow"]]:_}),style:B,ref:C})]}):null};exports.Tooltip=({id:t,anchorId:n,anchorSelect:o,content:i,html:a,className:l,classNameArrow:s,variant:c="dark",place:u="top",offset:f=10,wrapper:d="div",children:y=null,events:m=["hover"],positionStrategy:h="absolute",middlewares:v,delayShow:g=0,delayHide:w=0,float:b=!1,noArrow:x=!1,clickable:S=!1,closeOnEsc:_=!1,style:R,position:T,isOpen:E,setIsOpen:A,afterShow:O,afterHide:k})=>{const[j,L]=e.useState(i),[P,D]=e.useState(a),[N,F]=e.useState(u),[$,C]=e.useState(c),[I,W]=e.useState(f),[U,H]=e.useState(g),[B,M]=e.useState(w),[q,V]=e.useState(b),[Y,z]=e.useState(d),[X,K]=e.useState(m),[J,Z]=e.useState(h),[G,Q]=e.useState(null),{anchorRefs:ee,activeAnchor:te}=p(t),ne=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;if(n.startsWith("data-tooltip-")){t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null}return t}),{}),re=e=>{const t={place:e=>{var t;F(null!==(t=e)&&void 0!==t?t:u)},content:e=>{L(null!=e?e:i)},html:e=>{D(null!=e?e:a)},variant:e=>{var t;C(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{W(null===e?f:Number(e))},wrapper:e=>{var t;z(null!==(t=e)&&void 0!==t?t:d)},events:e=>{const t=null==e?void 0:e.split(" ");K(null!=t?t:m)},"position-strategy":e=>{var t;Z(null!==(t=e)&&void 0!==t?t:h)},"delay-show":e=>{H(null===e?g:Number(e))},"delay-hide":e=>{M(null===e?w:Number(e))},float:e=>{V(null===e?b:"true"===e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)}))};e.useEffect((()=>{L(i)}),[i]),e.useEffect((()=>{D(a)}),[a]),e.useEffect((()=>{F(u)}),[u]),e.useEffect((()=>{var e;const r=new Set(ee);let i=o;if(!i&&t&&(i=`[data-tooltip-id='${t}']`),i)try{document.querySelectorAll(i).forEach((e=>{r.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${o}" is not a valid CSS selector`)}const a=document.querySelector(`[id='${n}']`);if(a&&r.add({current:a}),!r.size)return()=>null;const l=null!==(e=null!=G?G:a)&&void 0!==e?e:te.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!l||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=ne(l);re(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(l){const e=ne(l);re(e),s.observe(l,c)}return()=>{s.disconnect()}}),[ee,te,G,n,o]);const oe={id:t,anchorId:n,anchorSelect:o,className:l,classNameArrow:s,content:j,html:P,place:N,variant:$,offset:I,wrapper:Y,events:X,positionStrategy:J,middlewares:v,delayShow:U,delayHide:B,float:q,noArrow:x,clickable:S,closeOnEsc:_,style:R,position:T,isOpen:E,setIsOpen:A,afterShow:O,afterHide:k,activeAnchor:G,setActiveAnchor:e=>Q(e)};return y?r.exports.jsx(me,{...oe,children:y}):r.exports.jsx(me,{...oe})},exports.TooltipProvider=({children:t})=>{const[n,o]=e.useState({DEFAULT_TOOLTIP_ID:new Set}),[i,a]=e.useState({DEFAULT_TOOLTIP_ID:{current:null}}),l=(e,...t)=>{o((n=>{var r;const o=null!==(r=n[e])&&void 0!==r?r:new Set;return t.forEach((e=>o.add(e))),{...n,[e]:new Set(o)}}))},s=(e,...t)=>{o((n=>{const r=n[e];return r?(t.forEach((e=>r.delete(e))),{...n}):n}))},c=e.useCallback(((e="DEFAULT_TOOLTIP_ID")=>{var t,r;return{anchorRefs:null!==(t=n[e])&&void 0!==t?t:new Set,activeAnchor:null!==(r=i[e])&&void 0!==r?r:{current:null},attach:(...t)=>l(e,...t),detach:(...t)=>s(e,...t),setActiveAnchor:t=>((e,t)=>{a((n=>{var r;return(null===(r=n[e])||void 0===r?void 0:r.current)===t.current?n:{...n,[e]:t}}))})(e,t)}}),[n,i,l,s]),u=e.useMemo((()=>({getTooltipData:c})),[c]);return r.exports.jsx(d.Provider,{value:u,children:t})},exports.TooltipWrapper=({tooltipId:t,children:n,className:o,place:i,content:a,html:s,variant:c,offset:u,wrapper:f,events:d,positionStrategy:y,delayShow:m,delayHide:h})=>{const{attach:v,detach:g}=p(t),w=e.useRef(null);return e.useEffect((()=>(v(w),()=>{g(w)})),[]),r.exports.jsx("span",{ref:w,className:l("react-tooltip-wrapper",o),"data-tooltip-place":i,"data-tooltip-content":a,"data-tooltip-html":s,"data-tooltip-variant":c,"data-tooltip-offset":u,"data-tooltip-wrapper":f,"data-tooltip-events":d,"data-tooltip-position-strategy":y,"data-tooltip-delay-show":m,"data-tooltip-delay-hide":h,children:n})};
@@ -114,7 +114,7 @@ declare const TooltipController: ({ id, anchorId, anchorSelect, content, html, c
114
114
  * @deprecated Use the `data-tooltip-id` attribute, or the `anchorSelect` prop instead.
115
115
  * See https://react-tooltip.com/docs/getting-started
116
116
  */
117
- declare const TooltipProvider: React.FC<PropsWithChildren>;
117
+ declare const TooltipProvider: React.FC<PropsWithChildren<void>>;
118
118
 
119
119
  /**
120
120
  * @deprecated Use the `data-tooltip-id` attribute, or the `anchorSelect` prop instead.
@@ -2498,6 +2498,17 @@ content, html, isOpen, setIsOpen, activeAnchor, setActiveAnchor, }) => {
2498
2498
  afterHide === null || afterHide === void 0 ? void 0 : afterHide();
2499
2499
  }
2500
2500
  }, [show]);
2501
+ useEffect(() => {
2502
+ if (rendered) {
2503
+ return;
2504
+ }
2505
+ if (tooltipShowDelayTimerRef.current) {
2506
+ clearTimeout(tooltipShowDelayTimerRef.current);
2507
+ }
2508
+ if (tooltipHideDelayTimerRef.current) {
2509
+ clearTimeout(tooltipHideDelayTimerRef.current);
2510
+ }
2511
+ }, [rendered]);
2501
2512
  const handleShowTooltipDelayed = () => {
2502
2513
  if (tooltipShowDelayTimerRef.current) {
2503
2514
  clearTimeout(tooltipShowDelayTimerRef.current);
@@ -7,9 +7,9 @@ import e,{createContext as t,useState as n,useCallback as r,useMemo as o,useCont
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
- s=f,function(){var t=e,n=60103,r=60106;s.Fragment=60107;var o=60108,i=60114,l=60109,a=60110,c=60112,u=60113,f=60120,d=60115,p=60116,y=60121,m=60122,h=60117,g=60129,v=60131;if("function"==typeof Symbol&&Symbol.for){var w=Symbol.for;n=w("react.element"),r=w("react.portal"),s.Fragment=w("react.fragment"),o=w("react.strict_mode"),i=w("react.profiler"),l=w("react.provider"),a=w("react.context"),c=w("react.forward_ref"),u=w("react.suspense"),f=w("react.suspense_list"),d=w("react.memo"),p=w("react.lazy"),y=w("react.block"),m=w("react.server.block"),h=w("react.fundamental"),w("react.scope"),w("react.opaque.id"),g=w("react.debug_trace_mode"),w("react.offscreen"),v=w("react.legacy_hidden")}var b="function"==typeof Symbol&&Symbol.iterator,x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];S("error",e,n)}function S(e,t,n){var r=x.ReactDebugCurrentFrame,o="";if(O){var i=A(O.type),l=O._owner;o+=function(e,t,n){var r="";if(t){var o=t.fileName,i=o.replace(T,"");if(/^index\./.test(i)){var l=o.match(T);if(l){var a=l[1];a&&(i=a.replace(T,"")+"/"+i)}}r=" (at "+i+":"+t.lineNumber+")"}else n&&(r=" (created by "+n+")");return"\n in "+(e||"Unknown")+r}(i,O._source,l&&A(l.type))}""!==(o+=r.getStackAddendum())&&(t+="%s",n=n.concat([o]));var a=n.map((function(e){return""+e}));a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}var T=/^(.*)[\\\/]/;function A(e){if(null==e)return null;if("number"==typeof e.tag&&_("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case s.Fragment:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case a:return"Context.Consumer";case l:return"Context.Provider";case c:return m=e,h=e.render,g="ForwardRef",v=h.displayName||h.name||"",m.displayName||(""!==v?g+"("+v+")":g);case d:return A(e.type);case y:return A(e.render);case p:var t=1===(n=e)._status?n._result:null;if(t)return A(t)}var n,m,h,g,v;return null}var R={};x.ReactDebugCurrentFrame;var O=null;function k(e){O=e}var E,j,L,P=x.ReactCurrentOwner,D=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0};function F(e,t,r,o,i){var l,a={},c=null,s=null;for(l in void 0!==r&&(c=""+r),function(e){if(D.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(c=""+t.key),function(e){if(D.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(s=t.ref,function(e,t){if("string"==typeof e.ref&&P.current&&t&&P.current.stateNode!==t){var n=A(P.current.type);L[n]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(P.current.type),e.ref),L[n]=!0)}}(t,i)),t)D.call(t,l)&&!N.hasOwnProperty(l)&&(a[l]=t[l]);if(e&&e.defaultProps){var u=e.defaultProps;for(l in u)void 0===a[l]&&(a[l]=u[l])}if(c||s){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;c&&function(e,t){var n=function(){E||(E=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,f),s&&function(e,t){var n=function(){j||(j=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,f)}return function(e,t,r,o,i,l,a){var c={$$typeof:n,type:e,key:t,ref:r,props:a,_owner:l,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}(e,c,s,i,o,P.current,a)}L={};var $,C=x.ReactCurrentOwner;function I(e){O=e}function W(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function U(){if(C.current){var e=A(C.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}x.ReactDebugCurrentFrame,$=!1;var H={};function B(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=U();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!H[n]){H[n]=!0;var r="";e&&e._owner&&e._owner!==C.current&&(r=" It was passed a child from "+A(e._owner.type)+"."),I(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),I(null)}}}function M(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];W(r)&&B(r,t)}else if(W(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=b&&e[b]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,l=o.call(e);!(i=l.next()).done;)W(i.value)&&B(i.value,t)}}function q(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==d)return;t=n.propTypes}if(t){var r=A(n);!function(e,t,n,r,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var l in e)if(i(e,l)){var a=void 0;try{if("function"!=typeof e[l]){var c=Error((r||"React class")+": "+n+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}a=e[l](t,l,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){a=e}!a||a instanceof Error||(k(o),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,l,typeof a),k(null)),a instanceof Error&&!(a.message in R)&&(R[a.message]=!0,k(o),_("Failed %s type: %s",n,a.message),k(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||$||($=!0,_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function V(e,t,r,w,b,x){var S=function(e){return"string"==typeof e||"function"==typeof e||e===s.Fragment||e===i||e===g||e===o||e===u||e===f||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===l||e.$$typeof===a||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e[0]===m)}(e);if(!S){var T="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R,O=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(b);T+=O||U(),null===e?R="null":Array.isArray(e)?R="array":void 0!==e&&e.$$typeof===n?(R="<"+(A(e.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,T)}var k=F(e,t,r,b,x);if(null==k)return k;if(S){var E=t.children;if(void 0!==E)if(w)if(Array.isArray(E)){for(var j=0;j<E.length;j++)M(E[j],e);Object.freeze&&Object.freeze(E)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else M(E,e)}return e===s.Fragment?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){I(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),I(null);break}}null!==e.ref&&(I(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}(k):q(k),k}var Y=function(e,t,n){return V(e,t,n,!1)},z=function(e,t,n){return V(e,t,n,!0)};s.jsx=Y,s.jsxs=z}(),u.exports=f;var d,p={exports:{}};
10
+ s=f,function(){var t=e,n=60103,r=60106;s.Fragment=60107;var o=60108,i=60114,l=60109,a=60110,c=60112,u=60113,f=60120,d=60115,p=60116,y=60121,m=60122,h=60117,g=60129,v=60131;if("function"==typeof Symbol&&Symbol.for){var w=Symbol.for;n=w("react.element"),r=w("react.portal"),s.Fragment=w("react.fragment"),o=w("react.strict_mode"),i=w("react.profiler"),l=w("react.provider"),a=w("react.context"),c=w("react.forward_ref"),u=w("react.suspense"),f=w("react.suspense_list"),d=w("react.memo"),p=w("react.lazy"),y=w("react.block"),m=w("react.server.block"),h=w("react.fundamental"),w("react.scope"),w("react.opaque.id"),g=w("react.debug_trace_mode"),w("react.offscreen"),v=w("react.legacy_hidden")}var b="function"==typeof Symbol&&Symbol.iterator,x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];T("error",e,n)}function T(e,t,n){var r=x.ReactDebugCurrentFrame,o="";if(O){var i=A(O.type),l=O._owner;o+=function(e,t,n){var r="";if(t){var o=t.fileName,i=o.replace(S,"");if(/^index\./.test(i)){var l=o.match(S);if(l){var a=l[1];a&&(i=a.replace(S,"")+"/"+i)}}r=" (at "+i+":"+t.lineNumber+")"}else n&&(r=" (created by "+n+")");return"\n in "+(e||"Unknown")+r}(i,O._source,l&&A(l.type))}""!==(o+=r.getStackAddendum())&&(t+="%s",n=n.concat([o]));var a=n.map((function(e){return""+e}));a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}var S=/^(.*)[\\\/]/;function A(e){if(null==e)return null;if("number"==typeof e.tag&&_("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case s.Fragment:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case a:return"Context.Consumer";case l:return"Context.Provider";case c:return m=e,h=e.render,g="ForwardRef",v=h.displayName||h.name||"",m.displayName||(""!==v?g+"("+v+")":g);case d:return A(e.type);case y:return A(e.render);case p:var t=1===(n=e)._status?n._result:null;if(t)return A(t)}var n,m,h,g,v;return null}var R={};x.ReactDebugCurrentFrame;var O=null;function k(e){O=e}var E,j,L,P=x.ReactCurrentOwner,D=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0};function F(e,t,r,o,i){var l,a={},c=null,s=null;for(l in void 0!==r&&(c=""+r),function(e){if(D.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(c=""+t.key),function(e){if(D.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(s=t.ref,function(e,t){if("string"==typeof e.ref&&P.current&&t&&P.current.stateNode!==t){var n=A(P.current.type);L[n]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(P.current.type),e.ref),L[n]=!0)}}(t,i)),t)D.call(t,l)&&!N.hasOwnProperty(l)&&(a[l]=t[l]);if(e&&e.defaultProps){var u=e.defaultProps;for(l in u)void 0===a[l]&&(a[l]=u[l])}if(c||s){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;c&&function(e,t){var n=function(){E||(E=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,f),s&&function(e,t){var n=function(){j||(j=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,f)}return function(e,t,r,o,i,l,a){var c={$$typeof:n,type:e,key:t,ref:r,props:a,_owner:l,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c}(e,c,s,i,o,P.current,a)}L={};var $,C=x.ReactCurrentOwner;function I(e){O=e}function W(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function U(){if(C.current){var e=A(C.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}x.ReactDebugCurrentFrame,$=!1;var H={};function B(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=U();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!H[n]){H[n]=!0;var r="";e&&e._owner&&e._owner!==C.current&&(r=" It was passed a child from "+A(e._owner.type)+"."),I(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),I(null)}}}function M(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];W(r)&&B(r,t)}else if(W(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=b&&e[b]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,l=o.call(e);!(i=l.next()).done;)W(i.value)&&B(i.value,t)}}function q(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==d)return;t=n.propTypes}if(t){var r=A(n);!function(e,t,n,r,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var l in e)if(i(e,l)){var a=void 0;try{if("function"!=typeof e[l]){var c=Error((r||"React class")+": "+n+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}a=e[l](t,l,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){a=e}!a||a instanceof Error||(k(o),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,l,typeof a),k(null)),a instanceof Error&&!(a.message in R)&&(R[a.message]=!0,k(o),_("Failed %s type: %s",n,a.message),k(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||$||($=!0,_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function V(e,t,r,w,b,x){var T=function(e){return"string"==typeof e||"function"==typeof e||e===s.Fragment||e===i||e===g||e===o||e===u||e===f||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===l||e.$$typeof===a||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e[0]===m)}(e);if(!T){var S="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R,O=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(b);S+=O||U(),null===e?R="null":Array.isArray(e)?R="array":void 0!==e&&e.$$typeof===n?(R="<"+(A(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,S)}var k=F(e,t,r,b,x);if(null==k)return k;if(T){var E=t.children;if(void 0!==E)if(w)if(Array.isArray(E)){for(var j=0;j<E.length;j++)M(E[j],e);Object.freeze&&Object.freeze(E)}else _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else M(E,e)}return e===s.Fragment?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){I(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),I(null);break}}null!==e.ref&&(I(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}(k):q(k),k}var Y=function(e,t,n){return V(e,t,n,!1)},z=function(e,t,n){return V(e,t,n,!0)};s.jsx=Y,s.jsxs=z}(),u.exports=f;var d,p={exports:{}};
11
11
  /*!
12
12
  Copyright (c) 2018 Jed Watson.
13
13
  Licensed under the MIT License (MIT), see
14
14
  http://jedwatson.github.io/classnames
15
- */d=p,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)n.push(o);else if(Array.isArray(o)){if(o.length){var l=t.apply(null,o);l&&n.push(l)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var a in o)e.call(o,a)&&o[a]&&n.push(a)}}}return n.join(" ")}d.exports?(t.default=t,d.exports=t):window.classNames=t}();var y=p.exports;const m=(e,t,n)=>{let r=null;return function(...o){r&&clearTimeout(r),r=setTimeout((()=>{r=null,n||e.apply(this,o)}),t)}},h=({content:e})=>u.exports.jsx("span",{dangerouslySetInnerHTML:{__html:e}}),g={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},v=t({getTooltipData:()=>g}),w=({children:e})=>{const[t,i]=n({DEFAULT_TOOLTIP_ID:new Set}),[l,a]=n({DEFAULT_TOOLTIP_ID:{current:null}}),c=(e,...t)=>{i((n=>{var r;const o=null!==(r=n[e])&&void 0!==r?r:new Set;return t.forEach((e=>o.add(e))),{...n,[e]:new Set(o)}}))},s=(e,...t)=>{i((n=>{const r=n[e];return r?(t.forEach((e=>r.delete(e))),{...n}):n}))},f=r(((e="DEFAULT_TOOLTIP_ID")=>{var n,r;return{anchorRefs:null!==(n=t[e])&&void 0!==n?n:new Set,activeAnchor:null!==(r=l[e])&&void 0!==r?r:{current:null},attach:(...t)=>c(e,...t),detach:(...t)=>s(e,...t),setActiveAnchor:t=>((e,t)=>{a((n=>{var r;return(null===(r=n[e])||void 0===r?void 0:r.current)===t.current?n:{...n,[e]:t}}))})(e,t)}}),[t,l,c,s]),d=o((()=>({getTooltipData:f})),[f]);return u.exports.jsx(v.Provider,{value:d,children:e})};function b(e="DEFAULT_TOOLTIP_ID"){return i(v).getTooltipData(e)}const x=({tooltipId:e,children:t,className:n,place:r,content:o,html:i,variant:c,offset:s,wrapper:f,events:d,positionStrategy:p,delayShow:m,delayHide:h})=>{const{attach:g,detach:v}=b(e),w=l(null);return a((()=>(g(w),()=>{v(w)})),[]),u.exports.jsx("span",{ref:w,className:y("react-tooltip-wrapper",n),"data-tooltip-place":r,"data-tooltip-content":o,"data-tooltip-html":i,"data-tooltip-variant":c,"data-tooltip-offset":s,"data-tooltip-wrapper":f,"data-tooltip-events":d,"data-tooltip-position-strategy":p,"data-tooltip-delay-show":m,"data-tooltip-delay-hide":h,children:t})},_="undefined"!=typeof window?c:a;function S(e){return e.split("-")[1]}function T(e){return"y"===e?"height":"width"}function A(e){return e.split("-")[0]}function R(e){return["top","bottom"].includes(A(e))?"x":"y"}function O(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,a=R(t),c=T(a),s=r[c]/2-o[c]/2,u="x"===a;let f;switch(A(t)){case"top":f={x:i,y:r.y-o.height};break;case"bottom":f={x:i,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:l};break;case"left":f={x:r.x-o.width,y:l};break;default:f={x:r.x,y:r.y}}switch(S(t)){case"start":f[a]-=s*(n&&u?-1:1);break;case"end":f[a]+=s*(n&&u?-1:1)}return f}function k(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function E(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function j(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,y=k(p),m=a[d?"floating"===f?"reference":"floating":f],h=E(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:c})),g="floating"===f?{...l.floating,x:r,y:o}:l.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},b=E(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:v,strategy:c}):g);return{top:(h.top-b.top+y.top)/w.y,bottom:(b.bottom-h.bottom+y.bottom)/w.y,left:(h.left-b.left+y.left)/w.x,right:(b.right-h.right+y.right)/w.x}}const L=Math.min,P=Math.max;function D(e,t,n){return P(e,L(t,n))}const N={left:"right",right:"left",bottom:"top",top:"bottom"};function F(e){return e.replace(/left|right|bottom|top/g,(e=>N[e]))}const $={start:"end",end:"start"};function C(e){return e.replace(/start|end/g,(e=>$[e]))}const I=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:s=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...m}=e,h=A(r),g=A(l)===l,v=await(null==a.isRTL?void 0:a.isRTL(c.floating)),w=f||(g||!y?[F(l)]:function(e){const t=F(e);return[C(e),t,C(t)]}(l));f||"none"===p||w.push(...function(e,t,n,r){const o=S(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}(A(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(C)))),i}(l,y,p,v));const b=[l,...w],x=await j(t,m),_=[];let O=(null==(n=o.flip)?void 0:n.overflows)||[];if(s&&_.push(x[h]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=S(e),o=R(e),i=T(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=F(l)),{main:l,cross:F(l)}}(r,i,v);_.push(x[e],x[t])}if(O=[...O,{placement:r,overflows:_}],!_.every((e=>e<=0))){var k,E;const e=((null==(k=o.flip)?void 0:k.index)||0)+1,t=b[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(E=O.find((e=>e.overflows[0]<=0)))?void 0:E.placement;if(!n)switch(d){case"bestFit":{var L;const e=null==(L=O.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:L[0];e&&(n=e);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}};const W=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=A(n),a=S(n),c="x"===R(n),s=["left","top"].includes(l)?-1:1,u=i&&c?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof y&&(p="end"===a?-1*y:y),c?{x:p*u,y:d*s}:{x:d*s,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};const U=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,s={x:n,y:r},u=await j(t,c),f=R(A(o)),d="x"===f?"y":"x";let p=s[f],y=s[d];if(i){const e="y"===f?"bottom":"right";p=D(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";y=D(y+u["y"===d?"top":"left"],y,y-u[e])}const m=a.fn({...t,[f]:p,[d]:y});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function H(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function B(e){return H(e).getComputedStyle(e)}const M=Math.min,q=Math.max,V=Math.round;function Y(e){const t=B(e);let n=parseFloat(t.width),r=parseFloat(t.height);const o=e.offsetWidth,i=e.offsetHeight,l=V(n)!==o||V(r)!==i;return l&&(n=o,r=i),{width:n,height:r,fallback:l}}function z(e){return G(e)?(e.nodeName||"").toLowerCase():""}let X;function K(){if(X)return X;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(X=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),X):navigator.userAgent}function J(e){return e instanceof H(e).HTMLElement}function Z(e){return e instanceof H(e).Element}function G(e){return e instanceof H(e).Node}function Q(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof H(e).ShadowRoot||e instanceof ShadowRoot}function ee(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function te(e){return["table","td","th"].includes(z(e))}function ne(e){const t=/firefox/i.test(K()),n=B(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function re(){return!/^((?!chrome|android).)*safari/i.test(K())}function oe(e){return["html","body","#document"].includes(z(e))}function ie(e){return Z(e)?e:e.contextElement}const le={x:1,y:1};function ae(e){const t=ie(e);if(!J(t))return le;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=Y(t);let l=(i?V(n.width):n.width)/r,a=(i?V(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}function ce(e,t,n,r){var o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect(),a=ie(e);let c=le;t&&(r?Z(r)&&(c=ae(r)):c=ae(e));const s=a?H(a):window,u=!re()&&n;let f=(l.left+(u&&(null==(o=s.visualViewport)?void 0:o.offsetLeft)||0))/c.x,d=(l.top+(u&&(null==(i=s.visualViewport)?void 0:i.offsetTop)||0))/c.y,p=l.width/c.x,y=l.height/c.y;if(a){const e=H(a),t=r&&Z(r)?H(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=ae(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,f*=e.x,d*=e.y,p*=e.x,y*=e.y,f+=t.x,d+=t.y,n=H(n).frameElement}}return{width:p,height:y,top:d,right:f+p,bottom:d+y,left:f,x:f,y:d}}function se(e){return((G(e)?e.ownerDocument:e.document)||window.document).documentElement}function ue(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fe(e){return ce(se(e)).left+ue(e).scrollLeft}function de(e){if("html"===z(e))return e;const t=e.assignedSlot||e.parentNode||Q(e)&&e.host||se(e);return Q(t)?t.host:t}function pe(e){const t=de(e);return oe(t)?t.ownerDocument.body:J(t)&&ee(t)?t:pe(t)}function ye(e,t){var n;void 0===t&&(t=[]);const r=pe(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=H(r);return o?t.concat(i,i.visualViewport||[],ee(r)?r:[]):t.concat(r,ye(r))}function me(e,t,n){return"viewport"===t?E(function(e,t){const n=H(e),r=se(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,c=0;if(o){i=o.width,l=o.height;const e=re();(e||!e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:l,x:a,y:c}}(e,n)):Z(t)?E(function(e,t){const n=ce(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=J(e)?ae(e):{x:1,y:1};return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n)):E(function(e){const t=se(e),n=ue(e),r=e.ownerDocument.body,o=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+fe(e);const a=-n.scrollTop;return"rtl"===B(r).direction&&(l+=q(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(se(e)))}function he(e){return J(e)&&"fixed"!==B(e).position?e.offsetParent:null}function ge(e){const t=H(e);let n=he(e);for(;n&&te(n)&&"static"===B(n).position;)n=he(n);return n&&("html"===z(n)||"body"===z(n)&&"static"===B(n).position&&!ne(n))?t:n||function(e){let t=de(e);for(;J(t)&&!oe(t);){if(ne(t))return t;t=de(t)}return null}(e)||t}function ve(e,t,n){const r=J(t),o=se(t),i=ce(e,!0,"fixed"===n,t);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==z(t)||ee(o))&&(l=ue(t)),J(t)){const e=ce(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&(a.x=fe(o));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}const we={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=ye(e).filter((e=>Z(e)&&"body"!==z(e))),o=null;const i="fixed"===B(e).position;let l=i?de(e):e;for(;Z(l)&&!oe(l);){const e=B(l),t=ne(l);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter((e=>e!==l)),l=de(l)}return t.set(e,r),r}(t,this._c):[].concat(n),l=[...i,r],a=l[0],c=l.reduce(((e,n)=>{const r=me(t,n,o);return e.top=q(r.top,e.top),e.right=M(r.right,e.right),e.bottom=M(r.bottom,e.bottom),e.left=q(r.left,e.left),e}),me(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=J(n),i=se(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0},a={x:1,y:1};const c={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==z(n)||ee(i))&&(l=ue(n)),J(n))){const e=ce(n);a=ae(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-l.scrollLeft*a.x+c.x,y:t.y*a.y-l.scrollTop*a.y+c.y}},isElement:Z,getDimensions:function(e){return J(e)?Y(e):e.getBoundingClientRect()},getOffsetParent:ge,getDocumentElement:se,getScale:ae,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||ge,i=this.getDimensions;return{reference:ve(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===B(e).direction},be=(e,t,n)=>{const r=new Map,o={platform:we,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(t));if(null==l&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),a.filter((e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t})).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "));let s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=O(s,r,c),d=r,p={},y=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:h,y:g,data:v,reset:w}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});u=null!=h?h:u,f=null!=g?g:f,p={...p,[i]:{...p[i],...v}},y>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),w&&y<=50&&(y++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(s=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:f}=O(s,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},xe=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:o=10,strategy:i="absolute",middlewares:l=[W(Number(o)),I(),U({padding:5})]})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{}};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{}};const a=l;return n?(a.push({name:"arrow",options:c={element:n,padding:5},async fn(e){const{element:t,padding:n=0}=c||{},{x:r,y:o,placement:i,rects:l,platform:a}=e;if(null==t)return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const s=k(n),u={x:r,y:o},f=R(i),d=T(f),p=await a.getDimensions(t),y="y"===f?"top":"left",m="y"===f?"bottom":"right",h=l.reference[d]+l.reference[f]-u[f]-l.floating[d],g=u[f]-l.reference[f],v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(t));let w=v?"y"===f?v.clientHeight||0:v.clientWidth||0:0;0===w&&(w=l.floating[d]);const b=h/2-g/2,x=s[y],_=w-p[d]-s[m],A=w/2-p[d]/2+b,O=D(x,A,_),E=null!=S(i)&&A!=O&&l.reference[d]/2-(A<x?s[y]:s[m])-p[d]/2<0;return{[f]:u[f]-(E?A<x?x-A:_-A:0),data:{[f]:O,centerOffset:A-O}}}}),be(e,t,{placement:r,strategy:i,middleware:a}).then((({x:e,y:t,placement:n,middlewareData:r})=>{var o,i;const l={left:`${e}px`,top:`${t}px`},{x:a,y:c}=null!==(o=r.arrow)&&void 0!==o?o:{x:0,y:0};return{tooltipStyles:l,tooltipArrowStyles:{left:null!=a?`${a}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",[null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom"]:"-4px"}}}))):be(e,t,{placement:"bottom",strategy:i,middleware:a}).then((({x:e,y:t})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{}})));var c};var _e={tooltip:"styles-module_tooltip__mnnfp",fixed:"styles-module_fixed__7ciUi",arrow:"styles-module_arrow__K0L3T","no-arrow":"styles-module_no-arrow__KcFZN",clickable:"styles-module_clickable__Bv9o7",show:"styles-module_show__2NboJ",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Se=({id:e,className:t,classNameArrow:r,variant:o="dark",anchorId:i,anchorSelect:c,place:s="top",offset:f=10,events:d=["hover"],positionStrategy:p="absolute",middlewares:g,wrapper:v,children:w=null,delayShow:x=0,delayHide:S=0,float:T=!1,noArrow:A=!1,clickable:R=!1,closeOnEsc:O=!1,style:k,position:E,afterShow:j,afterHide:L,content:P,html:D,isOpen:N,setIsOpen:F,activeAnchor:$,setActiveAnchor:C})=>{const I=l(null),W=l(null),U=l(null),H=l(null),[B,M]=n({}),[q,V]=n({}),[Y,z]=n(!1),[X,K]=n(!1),J=l(!1),Z=l(null),{anchorRefs:G,setActiveAnchor:Q}=b(e),ee=l(!1),[te,ne]=n([]),re=l(!1);_((()=>(re.current=!0,()=>{re.current=!1})),[]),a((()=>{if(!Y){const e=setTimeout((()=>{K(!1)}),150);return()=>{clearTimeout(e)}}return()=>null}),[Y]);const oe=e=>{re.current&&(e&&K(!0),setTimeout((()=>{re.current&&(null==F||F(e),void 0===N&&z(e))}),10))};a((()=>{if(void 0===N)return()=>null;N&&K(!0);const e=setTimeout((()=>{z(N)}),10);return()=>{clearTimeout(e)}}),[N]),a((()=>{Y!==J.current&&(J.current=Y,Y?null==j||j():null==L||L())}),[Y]);const ie=(e=S)=>{H.current&&clearTimeout(H.current),H.current=setTimeout((()=>{ee.current||oe(!1)}),e)},le=e=>{var t;if(!e)return;x?(U.current&&clearTimeout(U.current),U.current=setTimeout((()=>{oe(!0)}),x)):oe(!0);const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;C(n),Q({current:n}),H.current&&clearTimeout(H.current)},ae=()=>{R?ie(S||100):S?ie():oe(!1),U.current&&clearTimeout(U.current)},ce=({x:e,y:t})=>{xe({place:s,offset:f,elementReference:{getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})},tooltipReference:I.current,tooltipArrowReference:W.current,strategy:p,middlewares:g}).then((e=>{Object.keys(e.tooltipStyles).length&&M(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&V(e.tooltipArrowStyles)}))},se=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};ce(n),Z.current=n},ue=e=>{le(e),S&&ie()},fe=e=>{const t=document.querySelector(`[id='${i}']`);(null==t?void 0:t.contains(e.target))||te.some((t=>t.contains(e.target)))||oe(!1)},de=e=>{"Escape"===e.key&&oe(!1)},pe=m(le,50),ye=m(ae,50);a((()=>{var e,t;const n=new Set(G);te.forEach((e=>{n.add({current:e})}));const r=document.querySelector(`[id='${i}']`);r&&n.add({current:r}),O&&window.addEventListener("keydown",de);const o=[];d.find((e=>"click"===e))&&(window.addEventListener("click",fe),o.push({event:"click",listener:ue})),d.find((e=>"hover"===e))&&(o.push({event:"mouseenter",listener:pe},{event:"mouseleave",listener:ye},{event:"focus",listener:pe},{event:"blur",listener:ye}),T&&o.push({event:"mousemove",listener:se}));const l=()=>{ee.current=!0},a=()=>{ee.current=!1,ae()};return R&&(null===(e=I.current)||void 0===e||e.addEventListener("mouseenter",l),null===(t=I.current)||void 0===t||t.addEventListener("mouseleave",a)),o.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;d.find((e=>"click"===e))&&window.removeEventListener("click",fe),O&&window.removeEventListener("keydown",de),R&&(null===(e=I.current)||void 0===e||e.removeEventListener("mouseenter",l),null===(t=I.current)||void 0===t||t.removeEventListener("mouseleave",a)),o.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[X,G,te,O,d]),a((()=>{let t=null!=c?c:"";!t&&e&&(t=`[data-tooltip-id='${e}']`);const n=new MutationObserver((n=>{const r=[];n.forEach((n=>{if("attributes"===n.type&&"data-tooltip-id"===n.attributeName){n.target.getAttribute("data-tooltip-id")===e&&r.push(n.target)}if("childList"===n.type&&($&&[...n.removedNodes].some((e=>!!e.contains($)&&(K(!1),oe(!1),C(null),!0))),t))try{const e=[...n.addedNodes].filter((e=>1===e.nodeType));r.push(...e.filter((e=>e.matches(t)))),r.push(...e.flatMap((e=>[...e.querySelectorAll(t)])))}catch(e){}})),r.length&&ne((e=>[...e,...r]))}));return n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{n.disconnect()}}),[e,c,$]),a((()=>{E?ce(E):T?Z.current&&ce(Z.current):xe({place:s,offset:f,elementReference:$,tooltipReference:I.current,tooltipArrowReference:W.current,strategy:p,middlewares:g}).then((e=>{re.current&&(Object.keys(e.tooltipStyles).length&&M(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&V(e.tooltipArrowStyles))}))}),[Y,$,P,D,s,f,p,E]),a((()=>{var e;const t=document.querySelector(`[id='${i}']`),n=[...te,t];$&&n.includes($)||C(null!==(e=te[0])&&void 0!==e?e:t)}),[i,te,$]),a((()=>()=>{U.current&&clearTimeout(U.current),H.current&&clearTimeout(H.current)}),[]),a((()=>{let t=c;if(!t&&e&&(t=`[data-tooltip-id='${e}']`),t)try{const e=Array.from(document.querySelectorAll(t));ne(e)}catch(e){ne([])}}),[e,c]);const me=Boolean(D||P||w)&&Y&&Object.keys(B).length>0;return X?u.exports.jsxs(v,{id:e,role:"tooltip",className:y("react-tooltip",_e.tooltip,_e[o],t,{[_e.show]:me,[_e.fixed]:"fixed"===p,[_e.clickable]:R}),style:{...k,...B},ref:I,children:[D&&u.exports.jsx(h,{content:D})||P||w,u.exports.jsx(v,{className:y("react-tooltip-arrow",_e.arrow,r,{[_e["no-arrow"]]:A}),style:q,ref:W})]}):null},Te=({id:e,anchorId:t,anchorSelect:r,content:o,html:i,className:l,classNameArrow:c,variant:s="dark",place:f="top",offset:d=10,wrapper:p="div",children:y=null,events:m=["hover"],positionStrategy:h="absolute",middlewares:g,delayShow:v=0,delayHide:w=0,float:x=!1,noArrow:_=!1,clickable:S=!1,closeOnEsc:T=!1,style:A,position:R,isOpen:O,setIsOpen:k,afterShow:E,afterHide:j})=>{const[L,P]=n(o),[D,N]=n(i),[F,$]=n(f),[C,I]=n(s),[W,U]=n(d),[H,B]=n(v),[M,q]=n(w),[V,Y]=n(x),[z,X]=n(p),[K,J]=n(m),[Z,G]=n(h),[Q,ee]=n(null),{anchorRefs:te,activeAnchor:ne}=b(e),re=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;if(n.startsWith("data-tooltip-")){t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null}return t}),{}),oe=e=>{const t={place:e=>{var t;$(null!==(t=e)&&void 0!==t?t:f)},content:e=>{P(null!=e?e:o)},html:e=>{N(null!=e?e:i)},variant:e=>{var t;I(null!==(t=e)&&void 0!==t?t:s)},offset:e=>{U(null===e?d:Number(e))},wrapper:e=>{var t;X(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");J(null!=t?t:m)},"position-strategy":e=>{var t;G(null!==(t=e)&&void 0!==t?t:h)},"delay-show":e=>{B(null===e?v:Number(e))},"delay-hide":e=>{q(null===e?w:Number(e))},float:e=>{Y(null===e?x:"true"===e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)}))};a((()=>{P(o)}),[o]),a((()=>{N(i)}),[i]),a((()=>{$(f)}),[f]),a((()=>{var n;const o=new Set(te);let i=r;if(!i&&e&&(i=`[data-tooltip-id='${e}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${r}" is not a valid CSS selector`)}const l=document.querySelector(`[id='${t}']`);if(l&&o.add({current:l}),!o.size)return()=>null;const a=null!==(n=null!=Q?Q:l)&&void 0!==n?n:ne.current,c=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=re(a);oe(n)}))})),s={attributes:!0,childList:!1,subtree:!1};if(a){const e=re(a);oe(e),c.observe(a,s)}return()=>{c.disconnect()}}),[te,ne,Q,t,r]);const ie={id:e,anchorId:t,anchorSelect:r,className:l,classNameArrow:c,content:L,html:D,place:F,variant:C,offset:W,wrapper:z,events:K,positionStrategy:Z,middlewares:g,delayShow:H,delayHide:M,float:V,noArrow:_,clickable:S,closeOnEsc:T,style:A,position:R,isOpen:O,setIsOpen:k,afterShow:E,afterHide:j,activeAnchor:Q,setActiveAnchor:e=>ee(e)};return y?u.exports.jsx(Se,{...ie,children:y}):u.exports.jsx(Se,{...ie})};export{Te as Tooltip,w as TooltipProvider,x as TooltipWrapper};
15
+ */d=p,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)n.push(o);else if(Array.isArray(o)){if(o.length){var l=t.apply(null,o);l&&n.push(l)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var a in o)e.call(o,a)&&o[a]&&n.push(a)}}}return n.join(" ")}d.exports?(t.default=t,d.exports=t):window.classNames=t}();var y=p.exports;const m=(e,t,n)=>{let r=null;return function(...o){r&&clearTimeout(r),r=setTimeout((()=>{r=null,n||e.apply(this,o)}),t)}},h=({content:e})=>u.exports.jsx("span",{dangerouslySetInnerHTML:{__html:e}}),g={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},v=t({getTooltipData:()=>g}),w=({children:e})=>{const[t,i]=n({DEFAULT_TOOLTIP_ID:new Set}),[l,a]=n({DEFAULT_TOOLTIP_ID:{current:null}}),c=(e,...t)=>{i((n=>{var r;const o=null!==(r=n[e])&&void 0!==r?r:new Set;return t.forEach((e=>o.add(e))),{...n,[e]:new Set(o)}}))},s=(e,...t)=>{i((n=>{const r=n[e];return r?(t.forEach((e=>r.delete(e))),{...n}):n}))},f=r(((e="DEFAULT_TOOLTIP_ID")=>{var n,r;return{anchorRefs:null!==(n=t[e])&&void 0!==n?n:new Set,activeAnchor:null!==(r=l[e])&&void 0!==r?r:{current:null},attach:(...t)=>c(e,...t),detach:(...t)=>s(e,...t),setActiveAnchor:t=>((e,t)=>{a((n=>{var r;return(null===(r=n[e])||void 0===r?void 0:r.current)===t.current?n:{...n,[e]:t}}))})(e,t)}}),[t,l,c,s]),d=o((()=>({getTooltipData:f})),[f]);return u.exports.jsx(v.Provider,{value:d,children:e})};function b(e="DEFAULT_TOOLTIP_ID"){return i(v).getTooltipData(e)}const x=({tooltipId:e,children:t,className:n,place:r,content:o,html:i,variant:c,offset:s,wrapper:f,events:d,positionStrategy:p,delayShow:m,delayHide:h})=>{const{attach:g,detach:v}=b(e),w=l(null);return a((()=>(g(w),()=>{v(w)})),[]),u.exports.jsx("span",{ref:w,className:y("react-tooltip-wrapper",n),"data-tooltip-place":r,"data-tooltip-content":o,"data-tooltip-html":i,"data-tooltip-variant":c,"data-tooltip-offset":s,"data-tooltip-wrapper":f,"data-tooltip-events":d,"data-tooltip-position-strategy":p,"data-tooltip-delay-show":m,"data-tooltip-delay-hide":h,children:t})},_="undefined"!=typeof window?c:a;function T(e){return e.split("-")[1]}function S(e){return"y"===e?"height":"width"}function A(e){return e.split("-")[0]}function R(e){return["top","bottom"].includes(A(e))?"x":"y"}function O(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,l=r.y+r.height/2-o.height/2,a=R(t),c=S(a),s=r[c]/2-o[c]/2,u="x"===a;let f;switch(A(t)){case"top":f={x:i,y:r.y-o.height};break;case"bottom":f={x:i,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:l};break;case"left":f={x:r.x-o.width,y:l};break;default:f={x:r.x,y:r.y}}switch(T(t)){case"start":f[a]-=s*(n&&u?-1:1);break;case"end":f[a]+=s*(n&&u?-1:1)}return f}function k(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function E(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function j(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,y=k(p),m=a[d?"floating"===f?"reference":"floating":f],h=E(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:c})),g="floating"===f?{...l.floating,x:r,y:o}:l.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},b=E(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:v,strategy:c}):g);return{top:(h.top-b.top+y.top)/w.y,bottom:(b.bottom-h.bottom+y.bottom)/w.y,left:(h.left-b.left+y.left)/w.x,right:(b.right-h.right+y.right)/w.x}}const L=Math.min,P=Math.max;function D(e,t,n){return P(e,L(t,n))}const N={left:"right",right:"left",bottom:"top",top:"bottom"};function F(e){return e.replace(/left|right|bottom|top/g,(e=>N[e]))}const $={start:"end",end:"start"};function C(e){return e.replace(/start|end/g,(e=>$[e]))}const I=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:s=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...m}=e,h=A(r),g=A(l)===l,v=await(null==a.isRTL?void 0:a.isRTL(c.floating)),w=f||(g||!y?[F(l)]:function(e){const t=F(e);return[C(e),t,C(t)]}(l));f||"none"===p||w.push(...function(e,t,n,r){const o=T(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:l;default:return[]}}(A(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(C)))),i}(l,y,p,v));const b=[l,...w],x=await j(t,m),_=[];let O=(null==(n=o.flip)?void 0:n.overflows)||[];if(s&&_.push(x[h]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=T(e),o=R(e),i=S(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=F(l)),{main:l,cross:F(l)}}(r,i,v);_.push(x[e],x[t])}if(O=[...O,{placement:r,overflows:_}],!_.every((e=>e<=0))){var k,E;const e=((null==(k=o.flip)?void 0:k.index)||0)+1,t=b[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(E=O.find((e=>e.overflows[0]<=0)))?void 0:E.placement;if(!n)switch(d){case"bestFit":{var L;const e=null==(L=O.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:L[0];e&&(n=e);break}case"initialPlacement":n=l}if(r!==n)return{reset:{placement:n}}}return{}}}};const W=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=A(n),a=T(n),c="x"===R(n),s=["left","top"].includes(l)?-1:1,u=i&&c?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof y&&(p="end"===a?-1*y:y),c?{x:p*u,y:d*s}:{x:d*s,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};const U=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,s={x:n,y:r},u=await j(t,c),f=R(A(o)),d="x"===f?"y":"x";let p=s[f],y=s[d];if(i){const e="y"===f?"bottom":"right";p=D(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";y=D(y+u["y"===d?"top":"left"],y,y-u[e])}const m=a.fn({...t,[f]:p,[d]:y});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function H(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function B(e){return H(e).getComputedStyle(e)}const M=Math.min,q=Math.max,V=Math.round;function Y(e){const t=B(e);let n=parseFloat(t.width),r=parseFloat(t.height);const o=e.offsetWidth,i=e.offsetHeight,l=V(n)!==o||V(r)!==i;return l&&(n=o,r=i),{width:n,height:r,fallback:l}}function z(e){return G(e)?(e.nodeName||"").toLowerCase():""}let X;function K(){if(X)return X;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(X=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),X):navigator.userAgent}function J(e){return e instanceof H(e).HTMLElement}function Z(e){return e instanceof H(e).Element}function G(e){return e instanceof H(e).Node}function Q(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof H(e).ShadowRoot||e instanceof ShadowRoot}function ee(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=B(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function te(e){return["table","td","th"].includes(z(e))}function ne(e){const t=/firefox/i.test(K()),n=B(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function re(){return!/^((?!chrome|android).)*safari/i.test(K())}function oe(e){return["html","body","#document"].includes(z(e))}function ie(e){return Z(e)?e:e.contextElement}const le={x:1,y:1};function ae(e){const t=ie(e);if(!J(t))return le;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=Y(t);let l=(i?V(n.width):n.width)/r,a=(i?V(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}function ce(e,t,n,r){var o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect(),a=ie(e);let c=le;t&&(r?Z(r)&&(c=ae(r)):c=ae(e));const s=a?H(a):window,u=!re()&&n;let f=(l.left+(u&&(null==(o=s.visualViewport)?void 0:o.offsetLeft)||0))/c.x,d=(l.top+(u&&(null==(i=s.visualViewport)?void 0:i.offsetTop)||0))/c.y,p=l.width/c.x,y=l.height/c.y;if(a){const e=H(a),t=r&&Z(r)?H(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=ae(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,f*=e.x,d*=e.y,p*=e.x,y*=e.y,f+=t.x,d+=t.y,n=H(n).frameElement}}return{width:p,height:y,top:d,right:f+p,bottom:d+y,left:f,x:f,y:d}}function se(e){return((G(e)?e.ownerDocument:e.document)||window.document).documentElement}function ue(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fe(e){return ce(se(e)).left+ue(e).scrollLeft}function de(e){if("html"===z(e))return e;const t=e.assignedSlot||e.parentNode||Q(e)&&e.host||se(e);return Q(t)?t.host:t}function pe(e){const t=de(e);return oe(t)?t.ownerDocument.body:J(t)&&ee(t)?t:pe(t)}function ye(e,t){var n;void 0===t&&(t=[]);const r=pe(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=H(r);return o?t.concat(i,i.visualViewport||[],ee(r)?r:[]):t.concat(r,ye(r))}function me(e,t,n){return"viewport"===t?E(function(e,t){const n=H(e),r=se(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,a=0,c=0;if(o){i=o.width,l=o.height;const e=re();(e||!e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:l,x:a,y:c}}(e,n)):Z(t)?E(function(e,t){const n=ce(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=J(e)?ae(e):{x:1,y:1};return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n)):E(function(e){const t=se(e),n=ue(e),r=e.ownerDocument.body,o=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+fe(e);const a=-n.scrollTop;return"rtl"===B(r).direction&&(l+=q(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(se(e)))}function he(e){return J(e)&&"fixed"!==B(e).position?e.offsetParent:null}function ge(e){const t=H(e);let n=he(e);for(;n&&te(n)&&"static"===B(n).position;)n=he(n);return n&&("html"===z(n)||"body"===z(n)&&"static"===B(n).position&&!ne(n))?t:n||function(e){let t=de(e);for(;J(t)&&!oe(t);){if(ne(t))return t;t=de(t)}return null}(e)||t}function ve(e,t,n){const r=J(t),o=se(t),i=ce(e,!0,"fixed"===n,t);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==z(t)||ee(o))&&(l=ue(t)),J(t)){const e=ce(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&(a.x=fe(o));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}const we={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=ye(e).filter((e=>Z(e)&&"body"!==z(e))),o=null;const i="fixed"===B(e).position;let l=i?de(e):e;for(;Z(l)&&!oe(l);){const e=B(l),t=ne(l);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter((e=>e!==l)),l=de(l)}return t.set(e,r),r}(t,this._c):[].concat(n),l=[...i,r],a=l[0],c=l.reduce(((e,n)=>{const r=me(t,n,o);return e.top=q(r.top,e.top),e.right=M(r.right,e.right),e.bottom=M(r.bottom,e.bottom),e.left=q(r.left,e.left),e}),me(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=J(n),i=se(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0},a={x:1,y:1};const c={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==z(n)||ee(i))&&(l=ue(n)),J(n))){const e=ce(n);a=ae(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-l.scrollLeft*a.x+c.x,y:t.y*a.y-l.scrollTop*a.y+c.y}},isElement:Z,getDimensions:function(e){return J(e)?Y(e):e.getBoundingClientRect()},getOffsetParent:ge,getDocumentElement:se,getScale:ae,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||ge,i=this.getDimensions;return{reference:ve(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===B(e).direction},be=(e,t,n)=>{const r=new Map,o={platform:we,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(t));if(null==l&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),a.filter((e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t})).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "));let s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=O(s,r,c),d=r,p={},y=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:h,y:g,data:v,reset:w}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});u=null!=h?h:u,f=null!=g?g:f,p={...p,[i]:{...p[i],...v}},y>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),w&&y<=50&&(y++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(s=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:f}=O(s,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},xe=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:o=10,strategy:i="absolute",middlewares:l=[W(Number(o)),I(),U({padding:5})]})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{}};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{}};const a=l;return n?(a.push({name:"arrow",options:c={element:n,padding:5},async fn(e){const{element:t,padding:n=0}=c||{},{x:r,y:o,placement:i,rects:l,platform:a}=e;if(null==t)return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const s=k(n),u={x:r,y:o},f=R(i),d=S(f),p=await a.getDimensions(t),y="y"===f?"top":"left",m="y"===f?"bottom":"right",h=l.reference[d]+l.reference[f]-u[f]-l.floating[d],g=u[f]-l.reference[f],v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(t));let w=v?"y"===f?v.clientHeight||0:v.clientWidth||0:0;0===w&&(w=l.floating[d]);const b=h/2-g/2,x=s[y],_=w-p[d]-s[m],A=w/2-p[d]/2+b,O=D(x,A,_),E=null!=T(i)&&A!=O&&l.reference[d]/2-(A<x?s[y]:s[m])-p[d]/2<0;return{[f]:u[f]-(E?A<x?x-A:_-A:0),data:{[f]:O,centerOffset:A-O}}}}),be(e,t,{placement:r,strategy:i,middleware:a}).then((({x:e,y:t,placement:n,middlewareData:r})=>{var o,i;const l={left:`${e}px`,top:`${t}px`},{x:a,y:c}=null!==(o=r.arrow)&&void 0!==o?o:{x:0,y:0};return{tooltipStyles:l,tooltipArrowStyles:{left:null!=a?`${a}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",[null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom"]:"-4px"}}}))):be(e,t,{placement:"bottom",strategy:i,middleware:a}).then((({x:e,y:t})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{}})));var c};var _e={tooltip:"styles-module_tooltip__mnnfp",fixed:"styles-module_fixed__7ciUi",arrow:"styles-module_arrow__K0L3T","no-arrow":"styles-module_no-arrow__KcFZN",clickable:"styles-module_clickable__Bv9o7",show:"styles-module_show__2NboJ",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Te=({id:e,className:t,classNameArrow:r,variant:o="dark",anchorId:i,anchorSelect:c,place:s="top",offset:f=10,events:d=["hover"],positionStrategy:p="absolute",middlewares:g,wrapper:v,children:w=null,delayShow:x=0,delayHide:T=0,float:S=!1,noArrow:A=!1,clickable:R=!1,closeOnEsc:O=!1,style:k,position:E,afterShow:j,afterHide:L,content:P,html:D,isOpen:N,setIsOpen:F,activeAnchor:$,setActiveAnchor:C})=>{const I=l(null),W=l(null),U=l(null),H=l(null),[B,M]=n({}),[q,V]=n({}),[Y,z]=n(!1),[X,K]=n(!1),J=l(!1),Z=l(null),{anchorRefs:G,setActiveAnchor:Q}=b(e),ee=l(!1),[te,ne]=n([]),re=l(!1);_((()=>(re.current=!0,()=>{re.current=!1})),[]),a((()=>{if(!Y){const e=setTimeout((()=>{K(!1)}),150);return()=>{clearTimeout(e)}}return()=>null}),[Y]);const oe=e=>{re.current&&(e&&K(!0),setTimeout((()=>{re.current&&(null==F||F(e),void 0===N&&z(e))}),10))};a((()=>{if(void 0===N)return()=>null;N&&K(!0);const e=setTimeout((()=>{z(N)}),10);return()=>{clearTimeout(e)}}),[N]),a((()=>{Y!==J.current&&(J.current=Y,Y?null==j||j():null==L||L())}),[Y]),a((()=>{X||(U.current&&clearTimeout(U.current),H.current&&clearTimeout(H.current))}),[X]);const ie=(e=T)=>{H.current&&clearTimeout(H.current),H.current=setTimeout((()=>{ee.current||oe(!1)}),e)},le=e=>{var t;if(!e)return;x?(U.current&&clearTimeout(U.current),U.current=setTimeout((()=>{oe(!0)}),x)):oe(!0);const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;C(n),Q({current:n}),H.current&&clearTimeout(H.current)},ae=()=>{R?ie(T||100):T?ie():oe(!1),U.current&&clearTimeout(U.current)},ce=({x:e,y:t})=>{xe({place:s,offset:f,elementReference:{getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})},tooltipReference:I.current,tooltipArrowReference:W.current,strategy:p,middlewares:g}).then((e=>{Object.keys(e.tooltipStyles).length&&M(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&V(e.tooltipArrowStyles)}))},se=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};ce(n),Z.current=n},ue=e=>{le(e),T&&ie()},fe=e=>{const t=document.querySelector(`[id='${i}']`);(null==t?void 0:t.contains(e.target))||te.some((t=>t.contains(e.target)))||oe(!1)},de=e=>{"Escape"===e.key&&oe(!1)},pe=m(le,50),ye=m(ae,50);a((()=>{var e,t;const n=new Set(G);te.forEach((e=>{n.add({current:e})}));const r=document.querySelector(`[id='${i}']`);r&&n.add({current:r}),O&&window.addEventListener("keydown",de);const o=[];d.find((e=>"click"===e))&&(window.addEventListener("click",fe),o.push({event:"click",listener:ue})),d.find((e=>"hover"===e))&&(o.push({event:"mouseenter",listener:pe},{event:"mouseleave",listener:ye},{event:"focus",listener:pe},{event:"blur",listener:ye}),S&&o.push({event:"mousemove",listener:se}));const l=()=>{ee.current=!0},a=()=>{ee.current=!1,ae()};return R&&(null===(e=I.current)||void 0===e||e.addEventListener("mouseenter",l),null===(t=I.current)||void 0===t||t.addEventListener("mouseleave",a)),o.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;d.find((e=>"click"===e))&&window.removeEventListener("click",fe),O&&window.removeEventListener("keydown",de),R&&(null===(e=I.current)||void 0===e||e.removeEventListener("mouseenter",l),null===(t=I.current)||void 0===t||t.removeEventListener("mouseleave",a)),o.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[X,G,te,O,d]),a((()=>{let t=null!=c?c:"";!t&&e&&(t=`[data-tooltip-id='${e}']`);const n=new MutationObserver((n=>{const r=[];n.forEach((n=>{if("attributes"===n.type&&"data-tooltip-id"===n.attributeName){n.target.getAttribute("data-tooltip-id")===e&&r.push(n.target)}if("childList"===n.type&&($&&[...n.removedNodes].some((e=>!!e.contains($)&&(K(!1),oe(!1),C(null),!0))),t))try{const e=[...n.addedNodes].filter((e=>1===e.nodeType));r.push(...e.filter((e=>e.matches(t)))),r.push(...e.flatMap((e=>[...e.querySelectorAll(t)])))}catch(e){}})),r.length&&ne((e=>[...e,...r]))}));return n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{n.disconnect()}}),[e,c,$]),a((()=>{E?ce(E):S?Z.current&&ce(Z.current):xe({place:s,offset:f,elementReference:$,tooltipReference:I.current,tooltipArrowReference:W.current,strategy:p,middlewares:g}).then((e=>{re.current&&(Object.keys(e.tooltipStyles).length&&M(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&V(e.tooltipArrowStyles))}))}),[Y,$,P,D,s,f,p,E]),a((()=>{var e;const t=document.querySelector(`[id='${i}']`),n=[...te,t];$&&n.includes($)||C(null!==(e=te[0])&&void 0!==e?e:t)}),[i,te,$]),a((()=>()=>{U.current&&clearTimeout(U.current),H.current&&clearTimeout(H.current)}),[]),a((()=>{let t=c;if(!t&&e&&(t=`[data-tooltip-id='${e}']`),t)try{const e=Array.from(document.querySelectorAll(t));ne(e)}catch(e){ne([])}}),[e,c]);const me=Boolean(D||P||w)&&Y&&Object.keys(B).length>0;return X?u.exports.jsxs(v,{id:e,role:"tooltip",className:y("react-tooltip",_e.tooltip,_e[o],t,{[_e.show]:me,[_e.fixed]:"fixed"===p,[_e.clickable]:R}),style:{...k,...B},ref:I,children:[D&&u.exports.jsx(h,{content:D})||P||w,u.exports.jsx(v,{className:y("react-tooltip-arrow",_e.arrow,r,{[_e["no-arrow"]]:A}),style:q,ref:W})]}):null},Se=({id:e,anchorId:t,anchorSelect:r,content:o,html:i,className:l,classNameArrow:c,variant:s="dark",place:f="top",offset:d=10,wrapper:p="div",children:y=null,events:m=["hover"],positionStrategy:h="absolute",middlewares:g,delayShow:v=0,delayHide:w=0,float:x=!1,noArrow:_=!1,clickable:T=!1,closeOnEsc:S=!1,style:A,position:R,isOpen:O,setIsOpen:k,afterShow:E,afterHide:j})=>{const[L,P]=n(o),[D,N]=n(i),[F,$]=n(f),[C,I]=n(s),[W,U]=n(d),[H,B]=n(v),[M,q]=n(w),[V,Y]=n(x),[z,X]=n(p),[K,J]=n(m),[Z,G]=n(h),[Q,ee]=n(null),{anchorRefs:te,activeAnchor:ne}=b(e),re=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;if(n.startsWith("data-tooltip-")){t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null}return t}),{}),oe=e=>{const t={place:e=>{var t;$(null!==(t=e)&&void 0!==t?t:f)},content:e=>{P(null!=e?e:o)},html:e=>{N(null!=e?e:i)},variant:e=>{var t;I(null!==(t=e)&&void 0!==t?t:s)},offset:e=>{U(null===e?d:Number(e))},wrapper:e=>{var t;X(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");J(null!=t?t:m)},"position-strategy":e=>{var t;G(null!==(t=e)&&void 0!==t?t:h)},"delay-show":e=>{B(null===e?v:Number(e))},"delay-hide":e=>{q(null===e?w:Number(e))},float:e=>{Y(null===e?x:"true"===e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)}))};a((()=>{P(o)}),[o]),a((()=>{N(i)}),[i]),a((()=>{$(f)}),[f]),a((()=>{var n;const o=new Set(te);let i=r;if(!i&&e&&(i=`[data-tooltip-id='${e}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${r}" is not a valid CSS selector`)}const l=document.querySelector(`[id='${t}']`);if(l&&o.add({current:l}),!o.size)return()=>null;const a=null!==(n=null!=Q?Q:l)&&void 0!==n?n:ne.current,c=new MutationObserver((e=>{e.forEach((e=>{var t;if(!a||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=re(a);oe(n)}))})),s={attributes:!0,childList:!1,subtree:!1};if(a){const e=re(a);oe(e),c.observe(a,s)}return()=>{c.disconnect()}}),[te,ne,Q,t,r]);const ie={id:e,anchorId:t,anchorSelect:r,className:l,classNameArrow:c,content:L,html:D,place:F,variant:C,offset:W,wrapper:z,events:K,positionStrategy:Z,middlewares:g,delayShow:H,delayHide:M,float:V,noArrow:_,clickable:T,closeOnEsc:S,style:A,position:R,isOpen:O,setIsOpen:k,afterShow:E,afterHide:j,activeAnchor:Q,setActiveAnchor:e=>ee(e)};return y?u.exports.jsx(Te,{...ie,children:y}):u.exports.jsx(Te,{...ie})};export{Se as Tooltip,w as TooltipProvider,x as TooltipWrapper};
@@ -2506,6 +2506,17 @@
2506
2506
  afterHide === null || afterHide === void 0 ? void 0 : afterHide();
2507
2507
  }
2508
2508
  }, [show]);
2509
+ require$$0.useEffect(() => {
2510
+ if (rendered) {
2511
+ return;
2512
+ }
2513
+ if (tooltipShowDelayTimerRef.current) {
2514
+ clearTimeout(tooltipShowDelayTimerRef.current);
2515
+ }
2516
+ if (tooltipHideDelayTimerRef.current) {
2517
+ clearTimeout(tooltipHideDelayTimerRef.current);
2518
+ }
2519
+ }, [rendered]);
2509
2520
  const handleShowTooltipDelayed = () => {
2510
2521
  if (tooltipShowDelayTimerRef.current) {
2511
2522
  clearTimeout(tooltipShowDelayTimerRef.current);
@@ -7,9 +7,9 @@
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
- !function(e){!function(){var t=r.default,n=60103,o=60106;e.Fragment=60107;var i=60108,a=60114,l=60109,s=60110,c=60112,u=60113,f=60120,d=60115,p=60116,y=60121,m=60122,h=60117,v=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var w=Symbol.for;n=w("react.element"),o=w("react.portal"),e.Fragment=w("react.fragment"),i=w("react.strict_mode"),a=w("react.profiler"),l=w("react.provider"),s=w("react.context"),c=w("react.forward_ref"),u=w("react.suspense"),f=w("react.suspense_list"),d=w("react.memo"),p=w("react.lazy"),y=w("react.block"),m=w("react.server.block"),h=w("react.fundamental"),w("react.scope"),w("react.opaque.id"),v=w("react.debug_trace_mode"),w("react.offscreen"),g=w("react.legacy_hidden")}var b="function"==typeof Symbol&&Symbol.iterator;var x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_("error",e,n)}function _(e,t,n){var r=x.ReactDebugCurrentFrame,o="";if(k){var i=E(k.type),a=k._owner;o+=function(e,t,n){var r="";if(t){var o=t.fileName,i=o.replace(R,"");if(/^index\./.test(i)){var a=o.match(R);if(a){var l=a[1];if(l)i=l.replace(R,"")+"/"+i}}r=" (at "+i+":"+t.lineNumber+")"}else n&&(r=" (created by "+n+")");return"\n in "+(e||"Unknown")+r}(i,k._source,a&&E(a.type))}""!==(o+=r.getStackAddendum())&&(t+="%s",n=n.concat([o]));var l=n.map((function(e){return""+e}));l.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,l)}var R=/^(.*)[\\\/]/;function E(t){if(null==t)return null;if("number"==typeof t.tag&&S("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e.Fragment:return"Fragment";case o:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case s:return"Context.Consumer";case l:return"Context.Provider";case c:return m=t,h=t.render,v="ForwardRef",g=h.displayName||h.name||"",m.displayName||(""!==g?v+"("+g+")":v);case d:return E(t.type);case y:return E(t.render);case p:var n=1===(r=t)._status?r._result:null;if(n)return E(n)}var r,m,h,v,g;return null}var T={};x.ReactDebugCurrentFrame;var k=null;function A(e){k=e}var O,j,L,P=x.ReactCurrentOwner,N=Object.prototype.hasOwnProperty,$={key:!0,ref:!0,__self:!0,__source:!0};L={};function C(e,t,r,o,i){var a,l={},s=null,c=null;for(a in void 0!==r&&(s=""+r),function(e){if(N.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(s=""+t.key),function(e){if(N.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&P.current&&t&&P.current.stateNode!==t){var n=E(P.current.type);L[n]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',E(P.current.type),e.ref),L[n]=!0)}}(t,i)),t)N.call(t,a)&&!$.hasOwnProperty(a)&&(l[a]=t[a]);if(e&&e.defaultProps){var u=e.defaultProps;for(a in u)void 0===l[a]&&(l[a]=u[a])}if(s||c){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){O||(O=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(l,f),c&&function(e,t){var n=function(){j||(j=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(l,f)}return function(e,t,r,o,i,a,l){var s={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}(e,s,c,i,o,P.current,l)}var D,F=x.ReactCurrentOwner;function I(e){k=e}function W(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function H(){if(F.current){var e=E(F.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}x.ReactDebugCurrentFrame,D=!1;var B={};function U(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=H();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!B[n]){B[n]=!0;var r="";e&&e._owner&&e._owner!==F.current&&(r=" It was passed a child from "+E(e._owner.type)+"."),I(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),I(null)}}}function M(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];W(r)&&U(r,t)}else if(W(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=b&&e[b]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)W(i.value)&&U(i.value,t)}}function q(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==d)return;t=n.propTypes}if(t){var r=E(n);!function(e,t,n,r,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var s=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(A(o),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof l),A(null)),l instanceof Error&&!(l.message in T)&&(T[l.message]=!0,A(o),S("Failed %s type: %s",n,l.message),A(null))}}(t,e.props,"prop",r,e)}else if(void 0!==n.PropTypes&&!D){D=!0,S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function V(t,r,o,w,b,x){var _=function(t){return"string"==typeof t||"function"==typeof t||t===e.Fragment||t===a||t===v||t===i||t===u||t===f||t===g||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===l||t.$$typeof===s||t.$$typeof===c||t.$$typeof===h||t.$$typeof===y||t[0]===m)}(t);if(!_){var R="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T,k=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(b);R+=k||H(),null===t?T="null":Array.isArray(t)?T="array":void 0!==t&&t.$$typeof===n?(T="<"+(E(t.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):T=typeof t,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,R)}var A=C(t,r,o,b,x);if(null==A)return A;if(_){var O=r.children;if(void 0!==O)if(w)if(Array.isArray(O)){for(var j=0;j<O.length;j++)M(O[j],t);Object.freeze&&Object.freeze(O)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else M(O,t)}return t===e.Fragment?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){I(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),I(null);break}}null!==e.ref&&(I(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}(A):q(A),A}var Y=function(e,t,n){return V(e,t,n,!1)},z=function(e,t,n){return V(e,t,n,!0)};e.jsx=Y,e.jsxs=z}()}(i),function(e){e.exports=i}(o);var a={exports:{}};
10
+ !function(e){!function(){var t=r.default,n=60103,o=60106;e.Fragment=60107;var i=60108,a=60114,l=60109,s=60110,c=60112,u=60113,f=60120,d=60115,p=60116,y=60121,m=60122,h=60117,v=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var w=Symbol.for;n=w("react.element"),o=w("react.portal"),e.Fragment=w("react.fragment"),i=w("react.strict_mode"),a=w("react.profiler"),l=w("react.provider"),s=w("react.context"),c=w("react.forward_ref"),u=w("react.suspense"),f=w("react.suspense_list"),d=w("react.memo"),p=w("react.lazy"),y=w("react.block"),m=w("react.server.block"),h=w("react.fundamental"),w("react.scope"),w("react.opaque.id"),v=w("react.debug_trace_mode"),w("react.offscreen"),g=w("react.legacy_hidden")}var b="function"==typeof Symbol&&Symbol.iterator;var x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_("error",e,n)}function _(e,t,n){var r=x.ReactDebugCurrentFrame,o="";if(k){var i=T(k.type),a=k._owner;o+=function(e,t,n){var r="";if(t){var o=t.fileName,i=o.replace(R,"");if(/^index\./.test(i)){var a=o.match(R);if(a){var l=a[1];if(l)i=l.replace(R,"")+"/"+i}}r=" (at "+i+":"+t.lineNumber+")"}else n&&(r=" (created by "+n+")");return"\n in "+(e||"Unknown")+r}(i,k._source,a&&T(a.type))}""!==(o+=r.getStackAddendum())&&(t+="%s",n=n.concat([o]));var l=n.map((function(e){return""+e}));l.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,l)}var R=/^(.*)[\\\/]/;function T(t){if(null==t)return null;if("number"==typeof t.tag&&S("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e.Fragment:return"Fragment";case o:return"Portal";case a:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case s:return"Context.Consumer";case l:return"Context.Provider";case c:return m=t,h=t.render,v="ForwardRef",g=h.displayName||h.name||"",m.displayName||(""!==g?v+"("+g+")":v);case d:return T(t.type);case y:return T(t.render);case p:var n=1===(r=t)._status?r._result:null;if(n)return T(n)}var r,m,h,v,g;return null}var E={};x.ReactDebugCurrentFrame;var k=null;function A(e){k=e}var O,j,L,P=x.ReactCurrentOwner,N=Object.prototype.hasOwnProperty,$={key:!0,ref:!0,__self:!0,__source:!0};L={};function C(e,t,r,o,i){var a,l={},s=null,c=null;for(a in void 0!==r&&(s=""+r),function(e){if(N.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(s=""+t.key),function(e){if(N.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e,t){if("string"==typeof e.ref&&P.current&&t&&P.current.stateNode!==t){var n=T(P.current.type);L[n]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',T(P.current.type),e.ref),L[n]=!0)}}(t,i)),t)N.call(t,a)&&!$.hasOwnProperty(a)&&(l[a]=t[a]);if(e&&e.defaultProps){var u=e.defaultProps;for(a in u)void 0===l[a]&&(l[a]=u[a])}if(s||c){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var n=function(){O||(O=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(l,f),c&&function(e,t){var n=function(){j||(j=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(l,f)}return function(e,t,r,o,i,a,l){var s={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}(e,s,c,i,o,P.current,l)}var D,F=x.ReactCurrentOwner;function I(e){k=e}function W(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function H(){if(F.current){var e=T(F.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}x.ReactDebugCurrentFrame,D=!1;var B={};function U(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=H();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!B[n]){B[n]=!0;var r="";e&&e._owner&&e._owner!==F.current&&(r=" It was passed a child from "+T(e._owner.type)+"."),I(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),I(null)}}}function M(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];W(r)&&U(r,t)}else if(W(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=b&&e[b]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)W(i.value)&&U(i.value,t)}}function q(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==d)return;t=n.propTypes}if(t){var r=T(n);!function(e,t,n,r,o){var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var a in e)if(i(e,a)){var l=void 0;try{if("function"!=typeof e[a]){var s=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(A(o),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,a,typeof l),A(null)),l instanceof Error&&!(l.message in E)&&(E[l.message]=!0,A(o),S("Failed %s type: %s",n,l.message),A(null))}}(t,e.props,"prop",r,e)}else if(void 0!==n.PropTypes&&!D){D=!0,S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function V(t,r,o,w,b,x){var _=function(t){return"string"==typeof t||"function"==typeof t||t===e.Fragment||t===a||t===v||t===i||t===u||t===f||t===g||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===l||t.$$typeof===s||t.$$typeof===c||t.$$typeof===h||t.$$typeof===y||t[0]===m)}(t);if(!_){var R="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var E,k=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(b);R+=k||H(),null===t?E="null":Array.isArray(t)?E="array":void 0!==t&&t.$$typeof===n?(E="<"+(T(t.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):E=typeof t,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,R)}var A=C(t,r,o,b,x);if(null==A)return A;if(_){var O=r.children;if(void 0!==O)if(w)if(Array.isArray(O)){for(var j=0;j<O.length;j++)M(O[j],t);Object.freeze&&Object.freeze(O)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else M(O,t)}return t===e.Fragment?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){I(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),I(null);break}}null!==e.ref&&(I(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}(A):q(A),A}var Y=function(e,t,n){return V(e,t,n,!1)},z=function(e,t,n){return V(e,t,n,!0)};e.jsx=Y,e.jsxs=z}()}(i),function(e){e.exports=i}(o);var a={exports:{}};
11
11
  /*!
12
12
  Copyright (c) 2018 Jed Watson.
13
13
  Licensed under the MIT License (MIT), see
14
14
  http://jedwatson.github.io/classnames
15
- */!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&e.push(l)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(a);var l=a.exports;const s=(e,t,n)=>{let r=null;return function(...o){r&&clearTimeout(r),r=setTimeout((()=>{r=null,n||e.apply(this,o)}),t)}},c=({content:e})=>o.exports.jsx("span",{dangerouslySetInnerHTML:{__html:e}}),u="DEFAULT_TOOLTIP_ID",f={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},d={getTooltipData:()=>f},p=t.createContext(d);function y(e=u){return t.useContext(p).getTooltipData(e)}const m="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function h(e){return e.split("-")[1]}function v(e){return"y"===e?"height":"width"}function g(e){return e.split("-")[0]}function w(e){return["top","bottom"].includes(g(e))?"x":"y"}function b(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,l=w(t),s=v(l),c=r[s]/2-o[s]/2,u="x"===l;let f;switch(g(t)){case"top":f={x:i,y:r.y-o.height};break;case"bottom":f={x:i,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:a};break;case"left":f={x:r.x-o.width,y:a};break;default:f={x:r.x,y:r.y}}switch(h(t)){case"start":f[l]-=c*(n&&u?-1:1);break;case"end":f[l]+=c*(n&&u?-1:1)}return f}function x(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function S(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function _(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,y=x(p),m=l[d?"floating"===f?"reference":"floating":f],h=S(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===f?{...a.floating,x:r,y:o}:a.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},b=S(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:g,strategy:s}):v);return{top:(h.top-b.top+y.top)/w.y,bottom:(b.bottom-h.bottom+y.bottom)/w.y,left:(h.left-b.left+y.left)/w.x,right:(b.right-h.right+y.right)/w.x}}const R=Math.min,E=Math.max;function T(e,t,n){return E(e,R(t,n))}const k={left:"right",right:"left",bottom:"top",top:"bottom"};function A(e){return e.replace(/left|right|bottom|top/g,(e=>k[e]))}const O={start:"end",end:"start"};function j(e){return e.replace(/start|end/g,(e=>O[e]))}const L=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:s}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...m}=e,b=g(r),x=g(a)===a,S=await(null==l.isRTL?void 0:l.isRTL(s.floating)),R=f||(x||!y?[A(a)]:function(e){const t=A(e);return[j(e),t,j(t)]}(a));f||"none"===p||R.push(...function(e,t,n,r){const o=h(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(g(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(j)))),i}(a,y,p,S));const E=[a,...R],T=await _(t,m),k=[];let O=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&k.push(T[b]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=h(e),o=w(e),i=v(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=A(a)),{main:a,cross:A(a)}}(r,i,S);k.push(T[e],T[t])}if(O=[...O,{placement:r,overflows:k}],!k.every((e=>e<=0))){var L,P;const e=((null==(L=o.flip)?void 0:L.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(P=O.find((e=>e.overflows[0]<=0)))?void 0:P.placement;if(!n)switch(d){case"bestFit":{var N;const e=null==(N=O.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};const P=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=g(n),l=h(n),s="x"===w(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof y&&(p="end"===l?-1*y:y),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};const N=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,c={x:n,y:r},u=await _(t,s),f=w(g(o)),d="x"===f?"y":"x";let p=c[f],y=c[d];if(i){const e="y"===f?"bottom":"right";p=T(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";y=T(y+u["y"===d?"top":"left"],y,y-u[e])}const m=l.fn({...t,[f]:p,[d]:y});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function $(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function C(e){return $(e).getComputedStyle(e)}const D=Math.min,F=Math.max,I=Math.round;function W(e){const t=C(e);let n=parseFloat(t.width),r=parseFloat(t.height);const o=e.offsetWidth,i=e.offsetHeight,a=I(n)!==o||I(r)!==i;return a&&(n=o,r=i),{width:n,height:r,fallback:a}}function H(e){return V(e)?(e.nodeName||"").toLowerCase():""}let B;function U(){if(B)return B;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(B=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),B):navigator.userAgent}function M(e){return e instanceof $(e).HTMLElement}function q(e){return e instanceof $(e).Element}function V(e){return e instanceof $(e).Node}function Y(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof $(e).ShadowRoot||e instanceof ShadowRoot}function z(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=C(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function X(e){return["table","td","th"].includes(H(e))}function K(e){const t=/firefox/i.test(U()),n=C(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function J(){return!/^((?!chrome|android).)*safari/i.test(U())}function Z(e){return["html","body","#document"].includes(H(e))}function G(e){return q(e)?e:e.contextElement}const Q={x:1,y:1};function ee(e){const t=G(e);if(!M(t))return Q;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=W(t);let a=(i?I(n.width):n.width)/r,l=(i?I(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function te(e,t,n,r){var o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),l=G(e);let s=Q;t&&(r?q(r)&&(s=ee(r)):s=ee(e));const c=l?$(l):window,u=!J()&&n;let f=(a.left+(u&&(null==(o=c.visualViewport)?void 0:o.offsetLeft)||0))/s.x,d=(a.top+(u&&(null==(i=c.visualViewport)?void 0:i.offsetTop)||0))/s.y,p=a.width/s.x,y=a.height/s.y;if(l){const e=$(l),t=r&&q(r)?$(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=ee(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,f*=e.x,d*=e.y,p*=e.x,y*=e.y,f+=t.x,d+=t.y,n=$(n).frameElement}}return{width:p,height:y,top:d,right:f+p,bottom:d+y,left:f,x:f,y:d}}function ne(e){return((V(e)?e.ownerDocument:e.document)||window.document).documentElement}function re(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function oe(e){return te(ne(e)).left+re(e).scrollLeft}function ie(e){if("html"===H(e))return e;const t=e.assignedSlot||e.parentNode||Y(e)&&e.host||ne(e);return Y(t)?t.host:t}function ae(e){const t=ie(e);return Z(t)?t.ownerDocument.body:M(t)&&z(t)?t:ae(t)}function le(e,t){var n;void 0===t&&(t=[]);const r=ae(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=$(r);return o?t.concat(i,i.visualViewport||[],z(r)?r:[]):t.concat(r,le(r))}function se(e,t,n){return"viewport"===t?S(function(e,t){const n=$(e),r=ne(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=J();(e||!e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n)):q(t)?S(function(e,t){const n=te(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=M(e)?ee(e):{x:1,y:1};return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n)):S(function(e){const t=ne(e),n=re(e),r=e.ownerDocument.body,o=F(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=F(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+oe(e);const l=-n.scrollTop;return"rtl"===C(r).direction&&(a+=F(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(ne(e)))}function ce(e){return M(e)&&"fixed"!==C(e).position?e.offsetParent:null}function ue(e){const t=$(e);let n=ce(e);for(;n&&X(n)&&"static"===C(n).position;)n=ce(n);return n&&("html"===H(n)||"body"===H(n)&&"static"===C(n).position&&!K(n))?t:n||function(e){let t=ie(e);for(;M(t)&&!Z(t);){if(K(t))return t;t=ie(t)}return null}(e)||t}function fe(e,t,n){const r=M(t),o=ne(t),i=te(e,!0,"fixed"===n,t);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==H(t)||z(o))&&(a=re(t)),M(t)){const e=te(t,!0);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=oe(o));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}const de={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=le(e).filter((e=>q(e)&&"body"!==H(e))),o=null;const i="fixed"===C(e).position;let a=i?ie(e):e;for(;q(a)&&!Z(a);){const e=C(a),t=K(a);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter((e=>e!==a)),a=ie(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],s=a.reduce(((e,n)=>{const r=se(t,n,o);return e.top=F(r.top,e.top),e.right=D(r.right,e.right),e.bottom=D(r.bottom,e.bottom),e.left=F(r.left,e.left),e}),se(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=M(n),i=ne(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==H(n)||z(i))&&(a=re(n)),M(n))){const e=te(n);l=ee(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+s.x,y:t.y*l.y-a.scrollTop*l.y+s.y}},isElement:q,getDimensions:function(e){return M(e)?W(e):e.getBoundingClientRect()},getOffsetParent:ue,getDocumentElement:ne,getScale:ee,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||ue,i=this.getDimensions;return{reference:fe(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===C(e).direction},pe=(e,t,n)=>{const r=new Map,o={platform:de,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));if(null==a&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),l.filter((e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t})).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=b(c,r,s),d=r,p={},y=0;for(let n=0;n<l.length;n++){const{name:i,fn:m}=l[n],{x:h,y:v,data:g,reset:w}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=h?h:u,f=null!=v?v:f,p={...p,[i]:{...p[i],...g}},y>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),w&&y<=50&&(y++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:f}=b(c,d,s))),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},ye=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:o=10,strategy:i="absolute",middlewares:a=[P(Number(o)),L(),N({padding:5})]})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{}};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{}};const l=a;return n?(l.push({name:"arrow",options:s={element:n,padding:5},async fn(e){const{element:t,padding:n=0}=s||{},{x:r,y:o,placement:i,rects:a,platform:l}=e;if(null==t)return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const c=x(n),u={x:r,y:o},f=w(i),d=v(f),p=await l.getDimensions(t),y="y"===f?"top":"left",m="y"===f?"bottom":"right",g=a.reference[d]+a.reference[f]-u[f]-a.floating[d],b=u[f]-a.reference[f],S=await(null==l.getOffsetParent?void 0:l.getOffsetParent(t));let _=S?"y"===f?S.clientHeight||0:S.clientWidth||0:0;0===_&&(_=a.floating[d]);const R=g/2-b/2,E=c[y],k=_-p[d]-c[m],A=_/2-p[d]/2+R,O=T(E,A,k),j=null!=h(i)&&A!=O&&a.reference[d]/2-(A<E?c[y]:c[m])-p[d]/2<0;return{[f]:u[f]-(j?A<E?E-A:k-A:0),data:{[f]:O,centerOffset:A-O}}}}),pe(e,t,{placement:r,strategy:i,middleware:l}).then((({x:e,y:t,placement:n,middlewareData:r})=>{var o,i;const a={left:`${e}px`,top:`${t}px`},{x:l,y:s}=null!==(o=r.arrow)&&void 0!==o?o:{x:0,y:0};return{tooltipStyles:a,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=s?`${s}px`:"",right:"",bottom:"",[null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom"]:"-4px"}}}))):pe(e,t,{placement:"bottom",strategy:i,middleware:l}).then((({x:e,y:t})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{}})));var s};var me={tooltip:"styles-module_tooltip__mnnfp",fixed:"styles-module_fixed__7ciUi",arrow:"styles-module_arrow__K0L3T","no-arrow":"styles-module_no-arrow__KcFZN",clickable:"styles-module_clickable__Bv9o7",show:"styles-module_show__2NboJ",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const he=({id:e,className:n,classNameArrow:r,variant:i="dark",anchorId:a,anchorSelect:u,place:f="top",offset:d=10,events:p=["hover"],positionStrategy:h="absolute",middlewares:v,wrapper:g,children:w=null,delayShow:b=0,delayHide:x=0,float:S=!1,noArrow:_=!1,clickable:R=!1,closeOnEsc:E=!1,style:T,position:k,afterShow:A,afterHide:O,content:j,html:L,isOpen:P,setIsOpen:N,activeAnchor:$,setActiveAnchor:C})=>{const D=t.useRef(null),F=t.useRef(null),I=t.useRef(null),W=t.useRef(null),[H,B]=t.useState({}),[U,M]=t.useState({}),[q,V]=t.useState(!1),[Y,z]=t.useState(!1),X=t.useRef(!1),K=t.useRef(null),{anchorRefs:J,setActiveAnchor:Z}=y(e),G=t.useRef(!1),[Q,ee]=t.useState([]),te=t.useRef(!1);m((()=>(te.current=!0,()=>{te.current=!1})),[]),t.useEffect((()=>{if(!q){const e=setTimeout((()=>{z(!1)}),150);return()=>{clearTimeout(e)}}return()=>null}),[q]);const ne=e=>{te.current&&(e&&z(!0),setTimeout((()=>{te.current&&(null==N||N(e),void 0===P&&V(e))}),10))};t.useEffect((()=>{if(void 0===P)return()=>null;P&&z(!0);const e=setTimeout((()=>{V(P)}),10);return()=>{clearTimeout(e)}}),[P]),t.useEffect((()=>{q!==X.current&&(X.current=q,q?null==A||A():null==O||O())}),[q]);const re=(e=x)=>{W.current&&clearTimeout(W.current),W.current=setTimeout((()=>{G.current||ne(!1)}),e)},oe=e=>{var t;if(!e)return;b?(I.current&&clearTimeout(I.current),I.current=setTimeout((()=>{ne(!0)}),b)):ne(!0);const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;C(n),Z({current:n}),W.current&&clearTimeout(W.current)},ie=()=>{R?re(x||100):x?re():ne(!1),I.current&&clearTimeout(I.current)},ae=({x:e,y:t})=>{ye({place:f,offset:d,elementReference:{getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})},tooltipReference:D.current,tooltipArrowReference:F.current,strategy:h,middlewares:v}).then((e=>{Object.keys(e.tooltipStyles).length&&B(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&M(e.tooltipArrowStyles)}))},le=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};ae(n),K.current=n},se=e=>{oe(e),x&&re()},ce=e=>{const t=document.querySelector(`[id='${a}']`);(null==t?void 0:t.contains(e.target))||Q.some((t=>t.contains(e.target)))||ne(!1)},ue=e=>{"Escape"===e.key&&ne(!1)},fe=s(oe,50),de=s(ie,50);t.useEffect((()=>{var e,t;const n=new Set(J);Q.forEach((e=>{n.add({current:e})}));const r=document.querySelector(`[id='${a}']`);r&&n.add({current:r}),E&&window.addEventListener("keydown",ue);const o=[];p.find((e=>"click"===e))&&(window.addEventListener("click",ce),o.push({event:"click",listener:se})),p.find((e=>"hover"===e))&&(o.push({event:"mouseenter",listener:fe},{event:"mouseleave",listener:de},{event:"focus",listener:fe},{event:"blur",listener:de}),S&&o.push({event:"mousemove",listener:le}));const i=()=>{G.current=!0},l=()=>{G.current=!1,ie()};return R&&(null===(e=D.current)||void 0===e||e.addEventListener("mouseenter",i),null===(t=D.current)||void 0===t||t.addEventListener("mouseleave",l)),o.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;p.find((e=>"click"===e))&&window.removeEventListener("click",ce),E&&window.removeEventListener("keydown",ue),R&&(null===(e=D.current)||void 0===e||e.removeEventListener("mouseenter",i),null===(t=D.current)||void 0===t||t.removeEventListener("mouseleave",l)),o.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[Y,J,Q,E,p]),t.useEffect((()=>{let t=null!=u?u:"";!t&&e&&(t=`[data-tooltip-id='${e}']`);const n=new MutationObserver((n=>{const r=[];n.forEach((n=>{if("attributes"===n.type&&"data-tooltip-id"===n.attributeName){n.target.getAttribute("data-tooltip-id")===e&&r.push(n.target)}if("childList"===n.type&&($&&[...n.removedNodes].some((e=>!!e.contains($)&&(z(!1),ne(!1),C(null),!0))),t))try{const e=[...n.addedNodes].filter((e=>1===e.nodeType));r.push(...e.filter((e=>e.matches(t)))),r.push(...e.flatMap((e=>[...e.querySelectorAll(t)])))}catch(e){}})),r.length&&ee((e=>[...e,...r]))}));return n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{n.disconnect()}}),[e,u,$]),t.useEffect((()=>{k?ae(k):S?K.current&&ae(K.current):ye({place:f,offset:d,elementReference:$,tooltipReference:D.current,tooltipArrowReference:F.current,strategy:h,middlewares:v}).then((e=>{te.current&&(Object.keys(e.tooltipStyles).length&&B(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&M(e.tooltipArrowStyles))}))}),[q,$,j,L,f,d,h,k]),t.useEffect((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...Q,t];$&&n.includes($)||C(null!==(e=Q[0])&&void 0!==e?e:t)}),[a,Q,$]),t.useEffect((()=>()=>{I.current&&clearTimeout(I.current),W.current&&clearTimeout(W.current)}),[]),t.useEffect((()=>{let t=u;if(!t&&e&&(t=`[data-tooltip-id='${e}']`),t)try{const e=Array.from(document.querySelectorAll(t));ee(e)}catch(e){ee([])}}),[e,u]);const pe=Boolean(L||j||w)&&q&&Object.keys(H).length>0;return Y?o.exports.jsxs(g,{id:e,role:"tooltip",className:l("react-tooltip",me.tooltip,me[i],n,{[me.show]:pe,[me.fixed]:"fixed"===h,[me.clickable]:R}),style:{...T,...H},ref:D,children:[L&&o.exports.jsx(c,{content:L})||j||w,o.exports.jsx(g,{className:l("react-tooltip-arrow",me.arrow,r,{[me["no-arrow"]]:_}),style:U,ref:F})]}):null};e.Tooltip=({id:e,anchorId:n,anchorSelect:r,content:i,html:a,className:l,classNameArrow:s,variant:c="dark",place:u="top",offset:f=10,wrapper:d="div",children:p=null,events:m=["hover"],positionStrategy:h="absolute",middlewares:v,delayShow:g=0,delayHide:w=0,float:b=!1,noArrow:x=!1,clickable:S=!1,closeOnEsc:_=!1,style:R,position:E,isOpen:T,setIsOpen:k,afterShow:A,afterHide:O})=>{const[j,L]=t.useState(i),[P,N]=t.useState(a),[$,C]=t.useState(u),[D,F]=t.useState(c),[I,W]=t.useState(f),[H,B]=t.useState(g),[U,M]=t.useState(w),[q,V]=t.useState(b),[Y,z]=t.useState(d),[X,K]=t.useState(m),[J,Z]=t.useState(h),[G,Q]=t.useState(null),{anchorRefs:ee,activeAnchor:te}=y(e),ne=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;if(n.startsWith("data-tooltip-")){t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null}return t}),{}),re=e=>{const t={place:e=>{var t;C(null!==(t=e)&&void 0!==t?t:u)},content:e=>{L(null!=e?e:i)},html:e=>{N(null!=e?e:a)},variant:e=>{var t;F(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{W(null===e?f:Number(e))},wrapper:e=>{var t;z(null!==(t=e)&&void 0!==t?t:d)},events:e=>{const t=null==e?void 0:e.split(" ");K(null!=t?t:m)},"position-strategy":e=>{var t;Z(null!==(t=e)&&void 0!==t?t:h)},"delay-show":e=>{B(null===e?g:Number(e))},"delay-hide":e=>{M(null===e?w:Number(e))},float:e=>{V(null===e?b:"true"===e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)}))};t.useEffect((()=>{L(i)}),[i]),t.useEffect((()=>{N(a)}),[a]),t.useEffect((()=>{C(u)}),[u]),t.useEffect((()=>{var t;const o=new Set(ee);let i=r;if(!i&&e&&(i=`[data-tooltip-id='${e}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${r}" is not a valid CSS selector`)}const a=document.querySelector(`[id='${n}']`);if(a&&o.add({current:a}),!o.size)return()=>null;const l=null!==(t=null!=G?G:a)&&void 0!==t?t:te.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!l||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=ne(l);re(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(l){const e=ne(l);re(e),s.observe(l,c)}return()=>{s.disconnect()}}),[ee,te,G,n,r]);const oe={id:e,anchorId:n,anchorSelect:r,className:l,classNameArrow:s,content:j,html:P,place:$,variant:D,offset:I,wrapper:Y,events:X,positionStrategy:J,middlewares:v,delayShow:H,delayHide:U,float:q,noArrow:x,clickable:S,closeOnEsc:_,style:R,position:E,isOpen:T,setIsOpen:k,afterShow:A,afterHide:O,activeAnchor:G,setActiveAnchor:e=>Q(e)};return p?o.exports.jsx(he,{...oe,children:p}):o.exports.jsx(he,{...oe})},e.TooltipProvider=({children:e})=>{const[n,r]=t.useState({[u]:new Set}),[i,a]=t.useState({[u]:{current:null}}),l=(e,...t)=>{r((n=>{var r;const o=null!==(r=n[e])&&void 0!==r?r:new Set;return t.forEach((e=>o.add(e))),{...n,[e]:new Set(o)}}))},s=(e,...t)=>{r((n=>{const r=n[e];return r?(t.forEach((e=>r.delete(e))),{...n}):n}))},c=t.useCallback(((e=u)=>{var t,r;return{anchorRefs:null!==(t=n[e])&&void 0!==t?t:new Set,activeAnchor:null!==(r=i[e])&&void 0!==r?r:{current:null},attach:(...t)=>l(e,...t),detach:(...t)=>s(e,...t),setActiveAnchor:t=>((e,t)=>{a((n=>{var r;return(null===(r=n[e])||void 0===r?void 0:r.current)===t.current?n:{...n,[e]:t}}))})(e,t)}}),[n,i,l,s]),f=t.useMemo((()=>({getTooltipData:c})),[c]);return o.exports.jsx(p.Provider,{value:f,children:e})},e.TooltipWrapper=({tooltipId:e,children:n,className:r,place:i,content:a,html:s,variant:c,offset:u,wrapper:f,events:d,positionStrategy:p,delayShow:m,delayHide:h})=>{const{attach:v,detach:g}=y(e),w=t.useRef(null);return t.useEffect((()=>(v(w),()=>{g(w)})),[]),o.exports.jsx("span",{ref:w,className:l("react-tooltip-wrapper",r),"data-tooltip-place":i,"data-tooltip-content":a,"data-tooltip-html":s,"data-tooltip-variant":c,"data-tooltip-offset":u,"data-tooltip-wrapper":f,"data-tooltip-events":d,"data-tooltip-position-strategy":p,"data-tooltip-delay-show":m,"data-tooltip-delay-hide":h,children:n})},Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ */!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var l in o)t.call(o,l)&&o[l]&&e.push(l)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(a);var l=a.exports;const s=(e,t,n)=>{let r=null;return function(...o){r&&clearTimeout(r),r=setTimeout((()=>{r=null,n||e.apply(this,o)}),t)}},c=({content:e})=>o.exports.jsx("span",{dangerouslySetInnerHTML:{__html:e}}),u="DEFAULT_TOOLTIP_ID",f={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},d={getTooltipData:()=>f},p=t.createContext(d);function y(e=u){return t.useContext(p).getTooltipData(e)}const m="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function h(e){return e.split("-")[1]}function v(e){return"y"===e?"height":"width"}function g(e){return e.split("-")[0]}function w(e){return["top","bottom"].includes(g(e))?"x":"y"}function b(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,l=w(t),s=v(l),c=r[s]/2-o[s]/2,u="x"===l;let f;switch(g(t)){case"top":f={x:i,y:r.y-o.height};break;case"bottom":f={x:i,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:a};break;case"left":f={x:r.x-o.width,y:a};break;default:f={x:r.x,y:r.y}}switch(h(t)){case"start":f[l]-=c*(n&&u?-1:1);break;case"end":f[l]+=c*(n&&u?-1:1)}return f}function x(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function S(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function _(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,y=x(p),m=l[d?"floating"===f?"reference":"floating":f],h=S(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===f?{...a.floating,x:r,y:o}:a.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},b=S(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:g,strategy:s}):v);return{top:(h.top-b.top+y.top)/w.y,bottom:(b.bottom-h.bottom+y.bottom)/w.y,left:(h.left-b.left+y.left)/w.x,right:(b.right-h.right+y.right)/w.x}}const R=Math.min,T=Math.max;function E(e,t,n){return T(e,R(t,n))}const k={left:"right",right:"left",bottom:"top",top:"bottom"};function A(e){return e.replace(/left|right|bottom|top/g,(e=>k[e]))}const O={start:"end",end:"start"};function j(e){return e.replace(/start|end/g,(e=>O[e]))}const L=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:s}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:y=!0,...m}=e,b=g(r),x=g(a)===a,S=await(null==l.isRTL?void 0:l.isRTL(s.floating)),R=f||(x||!y?[A(a)]:function(e){const t=A(e);return[j(e),t,j(t)]}(a));f||"none"===p||R.push(...function(e,t,n,r){const o=h(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(g(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(j)))),i}(a,y,p,S));const T=[a,...R],E=await _(t,m),k=[];let O=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&k.push(E[b]),u){const{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);const r=h(e),o=w(e),i=v(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=A(a)),{main:a,cross:A(a)}}(r,i,S);k.push(E[e],E[t])}if(O=[...O,{placement:r,overflows:k}],!k.every((e=>e<=0))){var L,P;const e=((null==(L=o.flip)?void 0:L.index)||0)+1,t=T[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(P=O.find((e=>e.overflows[0]<=0)))?void 0:P.placement;if(!n)switch(d){case"bestFit":{var N;const e=null==(N=O.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};const P=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=g(n),l=h(n),s="x"===w(n),c=["left","top"].includes(a)?-1:1,u=i&&s?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&"number"==typeof y&&(p="end"===l?-1*y:y),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};const N=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=e,c={x:n,y:r},u=await _(t,s),f=w(g(o)),d="x"===f?"y":"x";let p=c[f],y=c[d];if(i){const e="y"===f?"bottom":"right";p=E(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";y=E(y+u["y"===d?"top":"left"],y,y-u[e])}const m=l.fn({...t,[f]:p,[d]:y});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function $(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function C(e){return $(e).getComputedStyle(e)}const D=Math.min,F=Math.max,I=Math.round;function W(e){const t=C(e);let n=parseFloat(t.width),r=parseFloat(t.height);const o=e.offsetWidth,i=e.offsetHeight,a=I(n)!==o||I(r)!==i;return a&&(n=o,r=i),{width:n,height:r,fallback:a}}function H(e){return V(e)?(e.nodeName||"").toLowerCase():""}let B;function U(){if(B)return B;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(B=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),B):navigator.userAgent}function M(e){return e instanceof $(e).HTMLElement}function q(e){return e instanceof $(e).Element}function V(e){return e instanceof $(e).Node}function Y(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof $(e).ShadowRoot||e instanceof ShadowRoot}function z(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=C(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function X(e){return["table","td","th"].includes(H(e))}function K(e){const t=/firefox/i.test(U()),n=C(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function J(){return!/^((?!chrome|android).)*safari/i.test(U())}function Z(e){return["html","body","#document"].includes(H(e))}function G(e){return q(e)?e:e.contextElement}const Q={x:1,y:1};function ee(e){const t=G(e);if(!M(t))return Q;const n=t.getBoundingClientRect(),{width:r,height:o,fallback:i}=W(t);let a=(i?I(n.width):n.width)/r,l=(i?I(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}function te(e,t,n,r){var o,i;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),l=G(e);let s=Q;t&&(r?q(r)&&(s=ee(r)):s=ee(e));const c=l?$(l):window,u=!J()&&n;let f=(a.left+(u&&(null==(o=c.visualViewport)?void 0:o.offsetLeft)||0))/s.x,d=(a.top+(u&&(null==(i=c.visualViewport)?void 0:i.offsetTop)||0))/s.y,p=a.width/s.x,y=a.height/s.y;if(l){const e=$(l),t=r&&q(r)?$(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=ee(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,f*=e.x,d*=e.y,p*=e.x,y*=e.y,f+=t.x,d+=t.y,n=$(n).frameElement}}return{width:p,height:y,top:d,right:f+p,bottom:d+y,left:f,x:f,y:d}}function ne(e){return((V(e)?e.ownerDocument:e.document)||window.document).documentElement}function re(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function oe(e){return te(ne(e)).left+re(e).scrollLeft}function ie(e){if("html"===H(e))return e;const t=e.assignedSlot||e.parentNode||Y(e)&&e.host||ne(e);return Y(t)?t.host:t}function ae(e){const t=ie(e);return Z(t)?t.ownerDocument.body:M(t)&&z(t)?t:ae(t)}function le(e,t){var n;void 0===t&&(t=[]);const r=ae(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=$(r);return o?t.concat(i,i.visualViewport||[],z(r)?r:[]):t.concat(r,le(r))}function se(e,t,n){return"viewport"===t?S(function(e,t){const n=$(e),r=ne(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;const e=J();(e||!e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l,y:s}}(e,n)):q(t)?S(function(e,t){const n=te(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=M(e)?ee(e):{x:1,y:1};return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n)):S(function(e){const t=ne(e),n=re(e),r=e.ownerDocument.body,o=F(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=F(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+oe(e);const l=-n.scrollTop;return"rtl"===C(r).direction&&(a+=F(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(ne(e)))}function ce(e){return M(e)&&"fixed"!==C(e).position?e.offsetParent:null}function ue(e){const t=$(e);let n=ce(e);for(;n&&X(n)&&"static"===C(n).position;)n=ce(n);return n&&("html"===H(n)||"body"===H(n)&&"static"===C(n).position&&!K(n))?t:n||function(e){let t=ie(e);for(;M(t)&&!Z(t);){if(K(t))return t;t=ie(t)}return null}(e)||t}function fe(e,t,n){const r=M(t),o=ne(t),i=te(e,!0,"fixed"===n,t);let a={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==H(t)||z(o))&&(a=re(t)),M(t)){const e=te(t,!0);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=oe(o));return{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}const de={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=le(e).filter((e=>q(e)&&"body"!==H(e))),o=null;const i="fixed"===C(e).position;let a=i?ie(e):e;for(;q(a)&&!Z(a);){const e=C(a),t=K(a);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter((e=>e!==a)),a=ie(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],l=a[0],s=a.reduce(((e,n)=>{const r=se(t,n,o);return e.top=F(r.top,e.top),e.right=D(r.right,e.right),e.bottom=D(r.bottom,e.bottom),e.left=F(r.left,e.left),e}),se(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=M(n),i=ne(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},l={x:1,y:1};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==H(n)||z(i))&&(a=re(n)),M(n))){const e=te(n);l=ee(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+s.x,y:t.y*l.y-a.scrollTop*l.y+s.y}},isElement:q,getDimensions:function(e){return M(e)?W(e):e.getBoundingClientRect()},getOffsetParent:ue,getDocumentElement:ne,getScale:ee,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||ue,i=this.getDimensions;return{reference:fe(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===C(e).direction},pe=(e,t,n)=>{const r=new Map,o={platform:de,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));if(null==a&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),l.filter((e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t})).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=b(c,r,s),d=r,p={},y=0;for(let n=0;n<l.length;n++){const{name:i,fn:m}=l[n],{x:h,y:v,data:g,reset:w}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=h?h:u,f=null!=v?v:f,p={...p,[i]:{...p[i],...g}},y>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),w&&y<=50&&(y++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:f}=b(c,d,s))),n=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})},ye=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:o=10,strategy:i="absolute",middlewares:a=[P(Number(o)),L(),N({padding:5})]})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{}};if(null===t)return{tooltipStyles:{},tooltipArrowStyles:{}};const l=a;return n?(l.push({name:"arrow",options:s={element:n,padding:5},async fn(e){const{element:t,padding:n=0}=s||{},{x:r,y:o,placement:i,rects:a,platform:l}=e;if(null==t)return console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const c=x(n),u={x:r,y:o},f=w(i),d=v(f),p=await l.getDimensions(t),y="y"===f?"top":"left",m="y"===f?"bottom":"right",g=a.reference[d]+a.reference[f]-u[f]-a.floating[d],b=u[f]-a.reference[f],S=await(null==l.getOffsetParent?void 0:l.getOffsetParent(t));let _=S?"y"===f?S.clientHeight||0:S.clientWidth||0:0;0===_&&(_=a.floating[d]);const R=g/2-b/2,T=c[y],k=_-p[d]-c[m],A=_/2-p[d]/2+R,O=E(T,A,k),j=null!=h(i)&&A!=O&&a.reference[d]/2-(A<T?c[y]:c[m])-p[d]/2<0;return{[f]:u[f]-(j?A<T?T-A:k-A:0),data:{[f]:O,centerOffset:A-O}}}}),pe(e,t,{placement:r,strategy:i,middleware:l}).then((({x:e,y:t,placement:n,middlewareData:r})=>{var o,i;const a={left:`${e}px`,top:`${t}px`},{x:l,y:s}=null!==(o=r.arrow)&&void 0!==o?o:{x:0,y:0};return{tooltipStyles:a,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=s?`${s}px`:"",right:"",bottom:"",[null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==i?i:"bottom"]:"-4px"}}}))):pe(e,t,{placement:"bottom",strategy:i,middleware:l}).then((({x:e,y:t})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{}})));var s};var me={tooltip:"styles-module_tooltip__mnnfp",fixed:"styles-module_fixed__7ciUi",arrow:"styles-module_arrow__K0L3T","no-arrow":"styles-module_no-arrow__KcFZN",clickable:"styles-module_clickable__Bv9o7",show:"styles-module_show__2NboJ",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const he=({id:e,className:n,classNameArrow:r,variant:i="dark",anchorId:a,anchorSelect:u,place:f="top",offset:d=10,events:p=["hover"],positionStrategy:h="absolute",middlewares:v,wrapper:g,children:w=null,delayShow:b=0,delayHide:x=0,float:S=!1,noArrow:_=!1,clickable:R=!1,closeOnEsc:T=!1,style:E,position:k,afterShow:A,afterHide:O,content:j,html:L,isOpen:P,setIsOpen:N,activeAnchor:$,setActiveAnchor:C})=>{const D=t.useRef(null),F=t.useRef(null),I=t.useRef(null),W=t.useRef(null),[H,B]=t.useState({}),[U,M]=t.useState({}),[q,V]=t.useState(!1),[Y,z]=t.useState(!1),X=t.useRef(!1),K=t.useRef(null),{anchorRefs:J,setActiveAnchor:Z}=y(e),G=t.useRef(!1),[Q,ee]=t.useState([]),te=t.useRef(!1);m((()=>(te.current=!0,()=>{te.current=!1})),[]),t.useEffect((()=>{if(!q){const e=setTimeout((()=>{z(!1)}),150);return()=>{clearTimeout(e)}}return()=>null}),[q]);const ne=e=>{te.current&&(e&&z(!0),setTimeout((()=>{te.current&&(null==N||N(e),void 0===P&&V(e))}),10))};t.useEffect((()=>{if(void 0===P)return()=>null;P&&z(!0);const e=setTimeout((()=>{V(P)}),10);return()=>{clearTimeout(e)}}),[P]),t.useEffect((()=>{q!==X.current&&(X.current=q,q?null==A||A():null==O||O())}),[q]),t.useEffect((()=>{Y||(I.current&&clearTimeout(I.current),W.current&&clearTimeout(W.current))}),[Y]);const re=(e=x)=>{W.current&&clearTimeout(W.current),W.current=setTimeout((()=>{G.current||ne(!1)}),e)},oe=e=>{var t;if(!e)return;b?(I.current&&clearTimeout(I.current),I.current=setTimeout((()=>{ne(!0)}),b)):ne(!0);const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;C(n),Z({current:n}),W.current&&clearTimeout(W.current)},ie=()=>{R?re(x||100):x?re():ne(!1),I.current&&clearTimeout(I.current)},ae=({x:e,y:t})=>{ye({place:f,offset:d,elementReference:{getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})},tooltipReference:D.current,tooltipArrowReference:F.current,strategy:h,middlewares:v}).then((e=>{Object.keys(e.tooltipStyles).length&&B(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&M(e.tooltipArrowStyles)}))},le=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};ae(n),K.current=n},se=e=>{oe(e),x&&re()},ce=e=>{const t=document.querySelector(`[id='${a}']`);(null==t?void 0:t.contains(e.target))||Q.some((t=>t.contains(e.target)))||ne(!1)},ue=e=>{"Escape"===e.key&&ne(!1)},fe=s(oe,50),de=s(ie,50);t.useEffect((()=>{var e,t;const n=new Set(J);Q.forEach((e=>{n.add({current:e})}));const r=document.querySelector(`[id='${a}']`);r&&n.add({current:r}),T&&window.addEventListener("keydown",ue);const o=[];p.find((e=>"click"===e))&&(window.addEventListener("click",ce),o.push({event:"click",listener:se})),p.find((e=>"hover"===e))&&(o.push({event:"mouseenter",listener:fe},{event:"mouseleave",listener:de},{event:"focus",listener:fe},{event:"blur",listener:de}),S&&o.push({event:"mousemove",listener:le}));const i=()=>{G.current=!0},l=()=>{G.current=!1,ie()};return R&&(null===(e=D.current)||void 0===e||e.addEventListener("mouseenter",i),null===(t=D.current)||void 0===t||t.addEventListener("mouseleave",l)),o.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(e,t)}))})),()=>{var e,t;p.find((e=>"click"===e))&&window.removeEventListener("click",ce),T&&window.removeEventListener("keydown",ue),R&&(null===(e=D.current)||void 0===e||e.removeEventListener("mouseenter",i),null===(t=D.current)||void 0===t||t.removeEventListener("mouseleave",l)),o.forEach((({event:e,listener:t})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(e,t)}))}))}}),[Y,J,Q,T,p]),t.useEffect((()=>{let t=null!=u?u:"";!t&&e&&(t=`[data-tooltip-id='${e}']`);const n=new MutationObserver((n=>{const r=[];n.forEach((n=>{if("attributes"===n.type&&"data-tooltip-id"===n.attributeName){n.target.getAttribute("data-tooltip-id")===e&&r.push(n.target)}if("childList"===n.type&&($&&[...n.removedNodes].some((e=>!!e.contains($)&&(z(!1),ne(!1),C(null),!0))),t))try{const e=[...n.addedNodes].filter((e=>1===e.nodeType));r.push(...e.filter((e=>e.matches(t)))),r.push(...e.flatMap((e=>[...e.querySelectorAll(t)])))}catch(e){}})),r.length&&ee((e=>[...e,...r]))}));return n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"]}),()=>{n.disconnect()}}),[e,u,$]),t.useEffect((()=>{k?ae(k):S?K.current&&ae(K.current):ye({place:f,offset:d,elementReference:$,tooltipReference:D.current,tooltipArrowReference:F.current,strategy:h,middlewares:v}).then((e=>{te.current&&(Object.keys(e.tooltipStyles).length&&B(e.tooltipStyles),Object.keys(e.tooltipArrowStyles).length&&M(e.tooltipArrowStyles))}))}),[q,$,j,L,f,d,h,k]),t.useEffect((()=>{var e;const t=document.querySelector(`[id='${a}']`),n=[...Q,t];$&&n.includes($)||C(null!==(e=Q[0])&&void 0!==e?e:t)}),[a,Q,$]),t.useEffect((()=>()=>{I.current&&clearTimeout(I.current),W.current&&clearTimeout(W.current)}),[]),t.useEffect((()=>{let t=u;if(!t&&e&&(t=`[data-tooltip-id='${e}']`),t)try{const e=Array.from(document.querySelectorAll(t));ee(e)}catch(e){ee([])}}),[e,u]);const pe=Boolean(L||j||w)&&q&&Object.keys(H).length>0;return Y?o.exports.jsxs(g,{id:e,role:"tooltip",className:l("react-tooltip",me.tooltip,me[i],n,{[me.show]:pe,[me.fixed]:"fixed"===h,[me.clickable]:R}),style:{...E,...H},ref:D,children:[L&&o.exports.jsx(c,{content:L})||j||w,o.exports.jsx(g,{className:l("react-tooltip-arrow",me.arrow,r,{[me["no-arrow"]]:_}),style:U,ref:F})]}):null};e.Tooltip=({id:e,anchorId:n,anchorSelect:r,content:i,html:a,className:l,classNameArrow:s,variant:c="dark",place:u="top",offset:f=10,wrapper:d="div",children:p=null,events:m=["hover"],positionStrategy:h="absolute",middlewares:v,delayShow:g=0,delayHide:w=0,float:b=!1,noArrow:x=!1,clickable:S=!1,closeOnEsc:_=!1,style:R,position:T,isOpen:E,setIsOpen:k,afterShow:A,afterHide:O})=>{const[j,L]=t.useState(i),[P,N]=t.useState(a),[$,C]=t.useState(u),[D,F]=t.useState(c),[I,W]=t.useState(f),[H,B]=t.useState(g),[U,M]=t.useState(w),[q,V]=t.useState(b),[Y,z]=t.useState(d),[X,K]=t.useState(m),[J,Z]=t.useState(h),[G,Q]=t.useState(null),{anchorRefs:ee,activeAnchor:te}=y(e),ne=e=>null==e?void 0:e.getAttributeNames().reduce(((t,n)=>{var r;if(n.startsWith("data-tooltip-")){t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null}return t}),{}),re=e=>{const t={place:e=>{var t;C(null!==(t=e)&&void 0!==t?t:u)},content:e=>{L(null!=e?e:i)},html:e=>{N(null!=e?e:a)},variant:e=>{var t;F(null!==(t=e)&&void 0!==t?t:c)},offset:e=>{W(null===e?f:Number(e))},wrapper:e=>{var t;z(null!==(t=e)&&void 0!==t?t:d)},events:e=>{const t=null==e?void 0:e.split(" ");K(null!=t?t:m)},"position-strategy":e=>{var t;Z(null!==(t=e)&&void 0!==t?t:h)},"delay-show":e=>{B(null===e?g:Number(e))},"delay-hide":e=>{M(null===e?w:Number(e))},float:e=>{V(null===e?b:"true"===e)}};Object.values(t).forEach((e=>e(null))),Object.entries(e).forEach((([e,n])=>{var r;null===(r=t[e])||void 0===r||r.call(t,n)}))};t.useEffect((()=>{L(i)}),[i]),t.useEffect((()=>{N(a)}),[a]),t.useEffect((()=>{C(u)}),[u]),t.useEffect((()=>{var t;const o=new Set(ee);let i=r;if(!i&&e&&(i=`[data-tooltip-id='${e}']`),i)try{document.querySelectorAll(i).forEach((e=>{o.add({current:e})}))}catch(e){console.warn(`[react-tooltip] "${r}" is not a valid CSS selector`)}const a=document.querySelector(`[id='${n}']`);if(a&&o.add({current:a}),!o.size)return()=>null;const l=null!==(t=null!=G?G:a)&&void 0!==t?t:te.current,s=new MutationObserver((e=>{e.forEach((e=>{var t;if(!l||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=ne(l);re(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(l){const e=ne(l);re(e),s.observe(l,c)}return()=>{s.disconnect()}}),[ee,te,G,n,r]);const oe={id:e,anchorId:n,anchorSelect:r,className:l,classNameArrow:s,content:j,html:P,place:$,variant:D,offset:I,wrapper:Y,events:X,positionStrategy:J,middlewares:v,delayShow:H,delayHide:U,float:q,noArrow:x,clickable:S,closeOnEsc:_,style:R,position:T,isOpen:E,setIsOpen:k,afterShow:A,afterHide:O,activeAnchor:G,setActiveAnchor:e=>Q(e)};return p?o.exports.jsx(he,{...oe,children:p}):o.exports.jsx(he,{...oe})},e.TooltipProvider=({children:e})=>{const[n,r]=t.useState({[u]:new Set}),[i,a]=t.useState({[u]:{current:null}}),l=(e,...t)=>{r((n=>{var r;const o=null!==(r=n[e])&&void 0!==r?r:new Set;return t.forEach((e=>o.add(e))),{...n,[e]:new Set(o)}}))},s=(e,...t)=>{r((n=>{const r=n[e];return r?(t.forEach((e=>r.delete(e))),{...n}):n}))},c=t.useCallback(((e=u)=>{var t,r;return{anchorRefs:null!==(t=n[e])&&void 0!==t?t:new Set,activeAnchor:null!==(r=i[e])&&void 0!==r?r:{current:null},attach:(...t)=>l(e,...t),detach:(...t)=>s(e,...t),setActiveAnchor:t=>((e,t)=>{a((n=>{var r;return(null===(r=n[e])||void 0===r?void 0:r.current)===t.current?n:{...n,[e]:t}}))})(e,t)}}),[n,i,l,s]),f=t.useMemo((()=>({getTooltipData:c})),[c]);return o.exports.jsx(p.Provider,{value:f,children:e})},e.TooltipWrapper=({tooltipId:e,children:n,className:r,place:i,content:a,html:s,variant:c,offset:u,wrapper:f,events:d,positionStrategy:p,delayShow:m,delayHide:h})=>{const{attach:v,detach:g}=y(e),w=t.useRef(null);return t.useEffect((()=>(v(w),()=>{g(w)})),[]),o.exports.jsx("span",{ref:w,className:l("react-tooltip-wrapper",r),"data-tooltip-place":i,"data-tooltip-content":a,"data-tooltip-html":s,"data-tooltip-variant":c,"data-tooltip-offset":u,"data-tooltip-wrapper":f,"data-tooltip-events":d,"data-tooltip-position-strategy":p,"data-tooltip-delay-show":m,"data-tooltip-delay-hide":h,children:n})},Object.defineProperty(e,"__esModule",{value:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-tooltip",
3
- "version": "5.8.3",
3
+ "version": "5.8.4-beta.0",
4
4
  "description": "react tooltip component",
5
5
  "scripts": {
6
6
  "dev": "node ./cli.js --env=development && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.dev.js --watch",