1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[973],{2564:(e,t,n)=>{n.d(t,{b:()=>a,s:()=>l});var r=n(2115),o=n(3655),i=n(5155),l=r.forwardRef((e,t)=>(0,i.jsx)(o.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));l.displayName="VisuallyHidden";var a=l},2712:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(2115),o=globalThis?.document?r.useLayoutEffect:()=>{}},3655:(e,t,n)=>{n.d(t,{hO:()=>u,sG:()=>a});var r=n(2115),o=n(7650),i=n(9708),l=n(5155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,a=r?i.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(a,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function u(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},5185:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},5845:(e,t,n)=>{n.d(t,{i:()=>i});var r=n(2115),o=n(9033);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,l]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,l=r.useRef(i),a=(0,o.c)(t);return r.useEffect(()=>{l.current!==i&&(a(i),l.current=i)},[i,l,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,u=a?e:i,s=(0,o.c)(n);return[u,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else l(t)},[a,e,l,s])]}},5973:(e,t,n)=>{n.d(t,{UC:()=>tT,Kq:()=>tb,bL:()=>tE,l9:()=>tC});var r,o=n(2115),i=n.t(o,2),l=n(5185),a=n(6101),u=n(6081),s=n(3655),c=n(9033),f=n(5155),d="dismissableLayer.update",p=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=o.forwardRef((e,t)=>{var n,i;let{disableOutsidePointerEvents:u=!1,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:x,...b}=e,E=o.useContext(p),[C,T]=o.useState(null),R=null!==(i=null==C?void 0:C.ownerDocument)&&void 0!==i?i:null===(n=globalThis)||void 0===n?void 0:n.document,[,L]=o.useState({}),O=(0,a.s)(t,e=>T(e)),N=Array.from(E.layers),[P]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),A=N.indexOf(P),S=C?N.indexOf(C):-1,D=E.layersWithOutsidePointerEventsDisabled.size>0,k=S>=A,M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,c.c)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){v("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!k||n||(null==g||g(e),null==w||w(e),e.defaultPrevented||null==x||x())},R),j=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,c.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&v("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==y||y(e),null==w||w(e),e.defaultPrevented||null==x||x())},R);return!function(e,t=globalThis?.document){let n=(0,c.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{S===E.layers.size-1&&(null==m||m(e),!e.defaultPrevented&&x&&(e.preventDefault(),x()))},R),o.useEffect(()=>{if(C)return u&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),h(),()=>{u&&1===E.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=r)}},[C,R,u,E]),o.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),h())},[C,E]),o.useEffect(()=>{let e=()=>L({});return document.addEventListener(d,e),()=>document.removeEventListener(d,e)},[]),(0,f.jsx)(s.sG.div,{...b,ref:O,style:{pointerEvents:D?k?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.m)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,l.m)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,l.m)(e.onPointerDownCapture,M.onPointerDownCapture)})});function h(){let e=new CustomEvent(d);document.dispatchEvent(e)}function v(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,s.hO)(i,l):i.dispatchEvent(l)}m.displayName="DismissableLayer",o.forwardRef((e,t)=>
1{let n=o.useContext(p),r=o.useRef(null),i=(0,a.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(s.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var g=n(2712),y=i["useId".toString()]||(()=>void 0),w=0;let x=["top","right","bottom","left"],b=Math.min,E=Math.max,C=Math.round,T=Math.floor,R=e=>({x:e,y:e}),L={left:"right",right:"left",bottom:"top",top:"bottom"},O={start:"end",end:"start"};function N(e,t){return"function"==typeof e?e(t):e}function P(e){return e.split("-")[0]}function A(e){return e.split("-")[1]}function S(e){return"x"===e?"y":"x"}function D(e){return"y"===e?"height":"width"}function k(e){return["top","bottom"].includes(P(e))?"y":"x"}function M(e){return e.replace(/start|end/g,e=>O[e])}function j(e){return e.replace(/left|right|bottom|top/g,e=>L[e])}function _(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function F(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function W(e,t,n){let r,{reference:o,floating:i}=e,l=k(t),a=S(k(t)),u=D(a),s=P(t),c="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(s){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(A(t)){case"start":r[a]-=p*(n&&c?-1:1);break;case"end":r[a]+=p*(n&&c?-1:1)}return r}let H=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=W(s,r,u),d=r,p={},m=0;for(let n=0;n<a.length;n++){let{name:i,fn:h}=a[n],{x:v,y:g,data:y,reset:w}=await h({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});c=null!=v?v:c,f=null!=g?g:f,p={...p,[i]:{...p[i],...y}},w&&m<=50&&(m++,"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:c,y:f}=W(s,d,u)),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}};async function I(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=N(t,e),m=_(p),h=a[d?"floating"===f?"reference":"floating":f],v=F(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:u})),g="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=F(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(v.top-x.top+m.top)/w.y,bottom:(x.bottom-v.bottom+m.bottom)/w.y,left:(v.left-x.left+m.left)/w.x,right:(x.right-v.right+m.right)/w.x}}function B(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function z(e){return x.some(t=>e[t]>=0)}async function $(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=P(n),a=A(n),u="y"===k(n),s=["left","top"].includes(l)?-1:1,c=i&&u?-1:1,f=N(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),u?{x:p*c,y:d*s}:{x:d*s,y:p*c}}function V(){return"undefined"!=typeof window}function U(e){return Y(e)?(e.nodeName||"").toLowerCase():"#document"}function G(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function X(e){var t;return null==(t=(Y(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Y(e){return!!V()&&(e instanceof Node||e instanceof G(e).Node)}function q(e){return!!V()&&(e instanceof Element||e instanceof G(e).Element)}function K(e){return!!V()&&(e instanceof HTMLElement||e instanceof G(e).HTMLElement)}function J(e){return!!V()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof G(e).ShadowRoot)}function Q(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=er(e);
1return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Z(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function ee(e){let t=et(),n=q(e)?er(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function et(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function en(e){return["html","body","#document"].includes(U(e))}function er(e){return G(e).getComputedStyle(e)}function eo(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ei(e){if("html"===U(e))return e;let t=e.assignedSlot||e.parentNode||J(e)&&e.host||X(e);return J(t)?t.host:t}function el(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=ei(t);return en(n)?t.ownerDocument?t.ownerDocument.body:t.body:K(n)&&Q(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=G(o);if(i){let e=ea(l);return t.concat(l,l.visualViewport||[],Q(o)?o:[],e&&n?el(e):[])}return t.concat(o,el(o,[],n))}function ea(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eu(e){let t=er(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=K(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=C(n)!==i||C(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function es(e){return q(e)?e:e.contextElement}function ec(e){let t=es(e);if(!K(t))return R(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eu(t),l=(i?C(n.width):n.width)/r,a=(i?C(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ef=R(0);function ed(e){let t=G(e);return et()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ef}function ep(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=es(e),a=R(1);t&&(r?q(r)&&(a=ec(r)):a=ec(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===G(l))&&o)?ed(l):R(0),s=(i.left+u.x)/a.x,c=(i.top+u.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l){let e=G(l),t=r&&q(r)?G(r):r,n=e,o=ea(n);for(;o&&r&&t!==n;){let e=ec(o),t=o.getBoundingClientRect(),r=er(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,f*=e.x,d*=e.y,s+=i,c+=l,o=ea(n=G(o))}}return F({width:f,height:d,x:s,y:c})}function em(e,t){let n=eo(e).scrollLeft;return t?t.left+n:ep(X(e)).left+n}function eh(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:em(e,r)),y:r.top+t.scrollTop}}function ev(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=G(e),r=X(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=et();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=X(e),n=eo(e),r=e.ownerDocument.body,o=E(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=E(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+em(e),a=-n.scrollTop;return"rtl"===er(r).direction&&(l+=E(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(X(e));else if(q(t))r=function(e,t){let n=ep(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=K(e)?ec(e):R(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=ed(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return F(r)}function eg(e){return"static"===er(e).position}function ey(e,t){if(!K(e)||"fixed"===er(e).position)return null;if(t)return t(e);let n=e.offsetParent;return X(e)===n&&(n=n.ownerDocument.body),n}function ew(e,t){let n=G(e);if(Z(e))return n;if(!K(e)){let t=ei(e);for(;t&&!en(t);){if(q(t)&&!eg(t))return t;t=ei(t)}return n}let r=ey(e,t);for(;r&&["table","td","th"].includes(U(r))&&eg(r);)r=ey(r,t);return r&&en(r)&&eg(r)&&!ee(r)?n:r||function(e){let t=ei(e);for(;K(t)&&!en(t);){if(ee(t))return t;if(Z(t))break;t=ei(t)}return null}(e)||n}let ex=async function(e){let t=this.getOffsetParent||ew,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=K(t),o=X(t),i="fixed"===n,l=ep(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=R(0);if(r||!r&&!i){if(("body"!==U(t)||Q(o))&&(a=eo(t)),r){let e=ep(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=em(o))}i&&!r&&o&&(u.x=em(o));let s=!o||r||i?R(0):eh(o,a);return{x:l.left+a.scrollLeft-u.x-s.x,y:l.top+a.scrollTop-u.y-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eb={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=X(r),a=!!t&&Z(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=R(1),c=R(0),f=K(r);if((f||!f&&!i)&&(("body"!==U(r)||Q(l))&&(u=eo(r)),K(r))){let e=ep(r);s=ec(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let d=!l||f||i?R(0):eh(l,u,!0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x+d.x,y:n.y*s.y-u.scrollTop*s.y+c.y+d.y}},getDocumentElement:X,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?Z(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=el(e,[],!1).filter(e=>q(e)&&"body"!==U(e)),o=null,i="fixed"===er(e).position,l=i?ei(e):e;for(;q(l)&&!en(l);){let t=er(l),n=ee(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||Q(l)&&!n&&function e(t,n){let r=ei(t);return!(r===n||!q(r)||en(r))&&("fixed"===er(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=ei(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],a=i.reduce((e,n)=>{let r=ev(t,n,o);return e.top=E(r.top,e.top),e.right=b(r.right,e.right),e.bottom=b(r.bottom,e.bottom),e.left=E(r.left,e.left),e},ev(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ew,getElementRects:ex,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eu(e);return{width:t,height:n}},getScale:ec,isElement:q,isRTL:function(e){return"rtl"===er(e).direction}};function eE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eC=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:s,padding:c=0}=N(e,t)||{};if(null==s)return{};let f=_(c),d={x:n,y:r},p=S(k(o)),m=D(p),h=await l.getDimensions(s),v="y"===p,g=v?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[p]-d[p]-i.floating[m],w=d[p]-i.reference[p],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s)),C=x?x[g]:0;C&&await (null==l.isElement?void 0:l.isElement(x))||(C=a.floating[g]||i.floating[m]);let T=C/2-h[m]/2-1,R=b(f[v?"top":"left"],T),L=b(f[v?"bottom":"right"],T),O=C-h[m]-L,P=C/2-h[m]/2+(y/2-w/2),M=E(R,b(P,O)),j=!u.arrow&&null!=A(o)&&P!==M&&i.reference[m]/2-(P<R?R:L)-h[m]/2<0,F=j?P<R?P-R:P-O:0;return{[p]:d[p]+F,data:{[p]:M,centerOffset:P-M-F,...j&&{alignmentOffset:F}},reset:j}}}
1),eT=(e,t,n)=>{let r=new Map,o={platform:eb,...n},i={...o.platform,_c:r};return H(e,t,{...o,platform:i})};var eR=n(7650),eL="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function eO(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eO(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eO(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eN(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eP(e,t){let n=eN(e);return Math.round(t*n)/n}function eA(e){let t=o.useRef(e);return eL(()=>{t.current=e}),t}let eS=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eC({element:n.current,padding:r}).fn(t):{}:n?eC({element:n,padding:r}).fn(t):{}}}),eD=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await $(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}}(e),options:[e,t]}),ek=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{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}}},...u}=N(e,t),s={x:n,y:r},c=await I(t,u),f=k(P(o)),d=S(f),p=s[d],m=s[f];if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+c[e],r=p-c[t];p=E(n,b(p,r))}if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=m+c[e],r=m-c[t];m=E(n,b(m,r))}let h=a.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:i,[f]:l}}}}}}(e),options:[e,t]}),eM=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:s=!0}=N(e,t),c={x:n,y:r},f=k(o),d=S(f),p=c[d],m=c[f],h=N(a,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+v.mainAxis,n=i.reference[d]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var g,y;let e="y"===d?"width":"height",t=["top","left"].includes(P(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(g=l.offset)?void 0:g[f])||0)+(t?0:v.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[f])||0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}}(e),options:[e,t]}),ej=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l,a;let{placement:u,middlewareData:s,rects:c,initialPlacement:f,platform:d,elements:p}=t,{mainAxis:m=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:w=!0,...x}=N(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let b=P(u),E=k(f),C=P(f)===f,T=await (null==d.isRTL?void 0:d.isRTL(p.floating)),R=v||(C||!w?[j(f)]:function(e){let t=j(e);return[M(e),t,M(t)]}(f)),L="none"!==y;!v&&L&&R.push(...function(e,t,n,r){let o=A(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(P(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(M)))),i}(f,w,y,T));let O=[f,...R],_=await I(t,x),F=[],W=(null==(r=s.flip)?void 0:r.overflows)||[];if(m&&F.push(_[b]),h){let e=function(e,t,n){void 0===n&&(n=!1);let r=A(e),o=S(k(e)),i=D(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=j(l)),[l,j(l)]}(u,c,T);F.push(_[e[0]],_[e[1]])}if(W=[...W,{placement:u,overflows:F}],!F.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=O[e];if(t){let n="alignment"===h&&E!==k(t),r=(null==(l=W[0])?void 0:l.overflows[0])>0;
1if(!n||r)return{data:{index:e,overflows:W},reset:{placement:t}}}let n=null==(i=W.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(g){case"bestFit":{let e=null==(a=W.filter(e=>{if(L){let t=k(e.placement);return t===E||"y"===t}return!0}).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:a[0];e&&(n=e);break}case"initialPlacement":n=f}if(u!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}),e_=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i;let{placement:l,rects:a,platform:u,elements:s}=t,{apply:c=()=>{},...f}=N(e,t),d=await I(t,f),p=P(l),m=A(l),h="y"===k(l),{width:v,height:g}=a.floating;"top"===p||"bottom"===p?(o=p,i=m===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(i=p,o="end"===m?"top":"bottom");let y=g-d.top-d.bottom,w=v-d.left-d.right,x=b(g-d[o],y),C=b(v-d[i],w),T=!t.middlewareData.shift,R=x,L=C;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(L=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(R=y),T&&!m){let e=E(d.left,0),t=E(d.right,0),n=E(d.top,0),r=E(d.bottom,0);h?L=v-2*(0!==e||0!==t?e+t:E(d.left,d.right)):R=g-2*(0!==n||0!==r?n+r:E(d.top,d.bottom))}await c({...t,availableWidth:L,availableHeight:R});let O=await u.getDimensions(s.floating);return v!==O.width||g!==O.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),eF=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=N(e,t);switch(r){case"referenceHidden":{let e=B(await I(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:z(e)}}}case"escaped":{let e=B(await I(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:z(e)}}}default:return{}}}}}(e),options:[e,t]}),eW=(e,t)=>({...eS(e),options:[e,t]});var eH=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,f.jsx)(s.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eH.displayName="Arrow";var eI="Popper",[eB,ez]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>o.createContext(e));return function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=o.createContext(r),l=n.length;function a(t){let{scope:n,children:r,...a}=t,u=n?.[e][l]||i,s=o.useMemo(()=>a,Object.values(a));return(0,f.jsx)(u.Provider,{value:s,children:r})}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e][l]||i,s=o.useContext(u);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eI),[e$,eV]=eB(eI),eU=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,f.jsx)(e$,{scope:t,anchor:r,onAnchorChange:i,children:n})};eU.displayName=eI;var eG="PopperAnchor",eX=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,l=eV(eG,n),u=o.useRef(null),c=(0,a.s)(t,u);return o.useEffect(()=>{l.onAnchorChange((null==r?void 0:r.current)||u.current)}),r?null:(0,f.jsx)(s.sG.div,{...i,ref:c})});eX.displayName=eG;var eY="PopperContent",[eq,eK]=eB(eY),eJ=o.forwardRef((e,t)=>{var n,r,i,l,u,d,p,m;let{__scopePopper:h,side:v="bottom",sideOffset:y=0,align:w="center",alignOffset:x=0,arrowPadding:C=0,avoidCollisions:R=!0,collisionBoundary:L=[],collisionPadding:O=0,sticky:N="partial",hideWhenDetached:P=!1,updatePositionStrategy:A="optimized",onPlaced:S,...D}=e,k=eV(eY,h),[M,j]=o.useState(null),_=(0,a.s)(t,e=>j(e)),[F,W]=o.useState(null),H=function(e){let[t,n]=o.useState(void 0);return(0,g.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(F),I=null!==(p=null==H?void 0:H.width)&&void 0!==p?p:0,B=null!==(m=null==H?void 0:H.height)&&void 0!==m?m:0,z="number"==typeof O?O:{top:0,right:0,bottom:0,left:0,...O},$=Array.isArray(L)?L:[L],V=$.length>0,U={padding:z,boundary:$.filter(e1),altBoundary:V},{refs:G,floatingStyles:Y,placement:q,isPositioned:K,middlewareData:J}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}
1=e,[f,d]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=o.useState(r);eO(p,r)||m(r);let[h,v]=o.useState(null),[g,y]=o.useState(null),w=o.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),x=o.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),b=l||h,E=a||g,C=o.useRef(null),T=o.useRef(null),R=o.useRef(f),L=null!=s,O=eA(s),N=eA(i),P=eA(c),A=o.useCallback(()=>{if(!C.current||!T.current)return;let e={placement:t,strategy:n,middleware:p};N.current&&(e.platform=N.current),eT(C.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==P.current};S.current&&!eO(R.current,t)&&(R.current=t,eR.flushSync(()=>{d(t)}))})},[p,t,n,N,P]);eL(()=>{!1===c&&R.current.isPositioned&&(R.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let S=o.useRef(!1);eL(()=>(S.current=!0,()=>{S.current=!1}),[]),eL(()=>{if(b&&(C.current=b),E&&(T.current=E),b&&E){if(O.current)return O.current(b,E,A);A()}},[b,E,A,O,L]);let D=o.useMemo(()=>({reference:C,floating:T,setReference:w,setFloating:x}),[w,x]),k=o.useMemo(()=>({reference:b,floating:E}),[b,E]),M=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!k.floating)return e;let t=eP(k.floating,f.x),r=eP(k.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eN(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,k.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:A,refs:D,elements:k,floatingStyles:M}),[f,A,D,k,M])}({strategy:"fixed",placement:v+("center"!==w?"-"+w:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=es(e),f=i||l?[...c?el(c):[],...el(t)]:[];f.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let d=c&&u?function(e,t){let n,r=null,o=X(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),i();let s=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=s;if(a||t(),!d||!p)return;let m=T(f),h=T(o.clientWidth-(c+d)),v={rootMargin:-m+"px "+-h+"px "+-T(o.clientHeight-(f+p))+"px "+-T(c)+"px",threshold:E(0,b(1,u))||1},g=!0;function y(t){let r=t[0].intersectionRatio;if(r!==u){if(!g)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||eE(s,e.getBoundingClientRect())||l(),g=!1}try{r=new IntersectionObserver(y,{...v,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,v)}r.observe(e)}(!0),i}(c,n):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!s&&m.observe(c),m.observe(t));let h=s?ep(e):null;return s&&function t(){let r=ep(e);h&&!eE(h,r)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===A})},elements:{reference:k.anchor},middleware:[eD({mainAxis:y+B,alignmentAxis:x}),R&&ek({mainAxis:!0,crossAxis:!1,limiter:"partial"===N?eM():void 0,...U}),R&&ej({...U}),e_({...U,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),F&&eW({element:F,padding:C}),e5({arrowWidth:I,arrowHeight:B}),P&&eF({strategy:"referenceHidden",...U})]}),[Q,Z]=e2(q),ee=(0,c.c)(S);(0,g.N)(()=>{K&&(null==ee||ee())},[K,ee]);let et=null===(n=J.arrow)||void 0===n?void 0:n.x,en=null===(r=J.arrow)||void 0===r?void 0:r.y,er=(null===(i=J.arrow)||void 0===i?void 0:i.centerOffset)!==0,[eo,ei]=o.useState();return(0,g.N)(()=>{M&&ei(window.getComputedStyle(M).zIndex)},[M]),(0,f.jsx)("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:K?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eo,"--radix-popper-transform-origin":[null===(l=J.transformOrigin)||void 0===l?void 0:l.x,null===(u=J.transformOrigin)||void 0===u?void 0:u.y].join(" "),...(null===(d=J.hide)||void 0===d?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(eq,{scope:h,placedSide:Q,onArrowChange:W,arrowX:et,arrowY:en,shouldHideArrow:er,children:(0,f.jsx)(s.sG.div,{"data-side":Q,"data-align":Z,...D,ref:_,style:{...D.style,animation:K?void 0:"none"}})})})});eJ.displayName=eY;var eQ="PopperArrow",eZ={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},e0=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eK(eQ,n),i=eZ[o.placedSide];return(0,f.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(eH,{...r,ref:t,style:{...r.style,display:"block"}})})});function e1(e){return null!==e}e0.displayName=eQ;var e5=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,m]=e2(a),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!==(i=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+f/2,g=(null!==(l=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+d/2,y="",w="";return"bottom"===p?(y=c?h:"".concat(v,"px"),w="".concat(-d,"px")):"top"===p?(y=c?h:"".concat(v,"px"),w="".concat(u.floating.height+d,"px")):"right"===p?(y="".concat(-d,"px"),w=c?h:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+d,"px"),w=c?h:"".concat(g,"px")),{data:{x:y,y:w}}}});function e2(e){let[t,n="center"]=e.split("-");return[t,n]}o.forwardRef((e,t)=>{var n,r;let{container:i,...l}=e,[a,u]=o.useState(!1);(0,g.N)(()=>u(!0),[]);let c=i||a&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return c?eR.createPortal((0,f.jsx)(s.sG.div,{...l,ref:t}),c):null}).displayName="Portal";var e3=n(8905),e9=n(9708),e6=n(5845),e7=n(2564),[e8,e4]=(0,u.A)("Tooltip",[ez]),te=ez(),tt="TooltipProvider",tn="tooltip.open",[tr,to]=e8(tt),ti=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:l}=e,[a,u]=o.useState(!0),s=o.useRef(!1),c=o.useRef(0);return o.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,f.jsx)(tr,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:o.useCallback(()=>{window.clearTimeout(c.current),u(!1)},[]),onClose:o.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>u(!0),r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:o.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:l})};ti.displayName=tt;var tl="Tooltip",[ta,tu]=e8(tl),ts=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:l,disableHoverableContent:a,delayDuration:u}=e,s=to(tl,e.__scopeTooltip),c=te(t),[d,p]=o.useState(null),m=function(e){let[t,n]=o.useState(y());return(0,g.N)(()=>{n(e=>e??String(w++))},[void 0]),e||(t?`radix-${t}`:"")}(),h=o.useRef(0),v=null!=a?a:s.disableHoverableContent,x=null!=u?u:s.delayDuration,b=o.useRef(!1),[E=!1,C]=(0,e6.i)({prop:r,defaultProp:i,onChange:e=>{e?(s.onOpen(),document.dispatchEvent(new CustomEvent(tn))):s.onClose(),null==l||l(e)}}),T=o.useMemo(()=>E?b.current?"delayed-open":"instant-open":"closed",[E]),R=o.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,C(!0)},[C]),L=o.useCallback(()=>{window.clearTimeout(h.current),h.current=0,C(!1)},[C]),O=o.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,C(!0),h.current=0},x)},[x,C]);return o.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),(0,f.jsx)(eU,{...c,children:(0,f.jsx)(ta,{scope:t,contentId:m,open:E,stateAttribute:T,trigger:d,onTriggerChange:p,onTriggerEnter:o.useCallback(()=>{s.isOpenDelayed?O():R()},[s.isOpenDelayed,O,R]),onTriggerLeave:o.useCallback(()=>{v?L():(window.clearTimeout(h.current),h.current=0)},[L,v]),onOpen:R,onClose:L,disableHoverableContent:v,children:n})})};ts.displayName=tl;var tc="TooltipTrigger",tf=o.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=tu(tc,n),u=to(tc,n),c=te(n),d=o.useRef(null),p=(0,a.s)(t,d,i.onTriggerChange),m=o.useRef(!1),h=o.useRef(!1),v=o.useCallback(()=>m.current=!1,[]);return o.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,f.jsx)(eX,{asChild:!0,...c,children:(0,f.jsx)(s.sG.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:p,onPointerMove:(0,l.m)(e.onPointerMove,e=>{"touch"===e.pointerType||h.current||u.isPointerInTransitRef.current||(i.onTriggerEnter(),h.current=!0)}),onPointerLeave:(0,l.m)(e.onPointerLeave,()=>{i.onTriggerLeave(),h.current=!1}),onPointerDown:(0,l.m)(e.onPointerDown,()=>{m.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,l.m)(e.onFocus,()=>{m.current||i.onOpen()}),onBlur:(0,l.m)(e.onBlur,i.onClose),onClick:(0,l.m)(e.onClick,i.onClose)})})});tf.displayName=tc;var[td,tp]=e8("TooltipPortal",{forceMount:void 0}),tm="TooltipContent",th=o.forwardRef((e,t)=>
1{let n=tp(tm,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=tu(tm,e.__scopeTooltip);return(0,f.jsx)(e3.C,{present:r||l.open,children:l.disableHoverableContent?(0,f.jsx)(tw,{side:o,...i,ref:t}):(0,f.jsx)(tv,{side:o,...i,ref:t})})}),tv=o.forwardRef((e,t)=>{let n=tu(tm,e.__scopeTooltip),r=to(tm,e.__scopeTooltip),i=o.useRef(null),l=(0,a.s)(t,i),[u,s]=o.useState(null),{trigger:c,onClose:d}=n,p=i.current,{onPointerInTransitChange:m}=r,h=o.useCallback(()=>{s(null),m(!1)},[m]),v=o.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());s(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),m(!0)},[m]);return o.useEffect(()=>()=>h(),[h]),o.useEffect(()=>{if(c&&p){let e=e=>v(e,p),t=e=>v(e,c);return c.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[c,p,v,h]),o.useEffect(()=>{if(u){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==p?void 0:p.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e].x,a=t[e].y,u=t[i].x,s=t[i].y;a>r!=s>r&&n<(u-l)*(r-a)/(s-a)+l&&(o=!o)}return o}(n,u);r?h():o&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,p,u,d,h]),(0,f.jsx)(tw,{...e,ref:l})}),[tg,ty]=e8(tl,{isInside:!1}),tw=o.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:a,...u}=e,s=tu(tm,n),c=te(n),{onClose:d}=s;return o.useEffect(()=>(document.addEventListener(tn,d),()=>document.removeEventListener(tn,d)),[d]),o.useEffect(()=>{if(s.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(s.trigger))&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[s.trigger,d]),(0,f.jsx)(m,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,f.jsxs)(eJ,{"data-state":s.stateAttribute,...c,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,f.jsx)(e9.xV,{children:r}),(0,f.jsx)(tg,{scope:n,isInside:!0,children:(0,f.jsx)(e7.b,{id:s.contentId,role:"tooltip",children:i||r})})]})})});th.displayName=tm;var tx="TooltipArrow";o.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=te(n);return ty(tx,n).isInside?null:(0,f.jsx)(e0,{...o,...r,ref:t})}).displayName=tx;var tb=ti,tE=ts,tC=tf,tT=th},6081:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2115),o=n(5155);function i(e,t=[]){let n=[],l=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return l.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;n=[...n,i];let u=t=>{let{scope:n,children:i,...u}=t,s=n?.[e]?.[a]||l,c=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(s.Provider,{value:c,children:i})};return u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e]?.[a]||l,s=r.useContext(u);if(s)return s;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(l,...t)]}},8905:(e,t,n)=>{n.d(t,{C:()=>l});var r=n(2115),o=n(6101),i=n(2712),l=e=>{let{present:t,children:n}=e,l=function(e){var t,n;let[o,l]=r.useState(),u=r.useRef({}),s=r.useRef(e),c=r.useRef("none"),[f,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>
1{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=a(u.current);c.current="mounted"===f?e:"none"},[f]),(0,i.N)(()=>{let t=u.current,n=s.current;if(n!==e){let r=c.current,o=a(t);e?d("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),s.current=e}},[e,d]),(0,i.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=a(u.current).includes(e.animationName);if(e.target===o&&r&&(d("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=a(u.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),l(e)},[])}}(t),u="function"==typeof n?n({present:l.isPresent}):r.Children.only(n),s=(0,o.s)(l.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||l.isPresent?r.cloneElement(u,{ref:s}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},9033:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(2115);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.