"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41582],{91276:(e,t,n)=>{n.d(t,{M:()=>f});var r,i=n(67294),o=n(9981),l=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),a=0;function f(e){let[t,n]=i.useState(l());return(0,o.b)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},53990:(e,t,n)=>{n.d(t,{ee:()=>eX,Eh:()=>eG,VY:()=>eq,fC:()=>eY,D7:()=>eO});var r=n(67294);let i=["top","right","bottom","left"],o=Math.min,l=Math.max,a=Math.round,f=Math.floor,s=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function y(e){return["top","bottom"].includes(p(e))?"y":"x"}function w(e){return e.replace(/start|end/g,e=>c[e])}function x(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function v(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function b(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function R(e,t,n){let r,{reference:i,floating:o}=e,l=y(t),a=m(y(t)),f=g(a),s=p(t),u="y"===l,c=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,w=i[f]/2-o[f]/2;switch(s){case"top":r={x:c,y:i.y-o.height};break;case"bottom":r={x:c,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:d};break;case"left":r={x:i.x-o.width,y:d};break;default:r={x:i.x,y:i.y}}switch(h(t)){case"start":r[a]-=w*(n&&u?-1:1);break;case"end":r[a]+=w*(n&&u?-1:1)}return r}let A=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),f=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=R(s,r,f),d=r,p={},h=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:g,y:y,data:w,reset:x}=await m({x:u,y:c,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});u=null!=g?g:u,c=null!=y?y:c,p={...p,[o]:{...p[o],...w}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:c}=R(s,d,f)),n=-1)}return{x:u,y:c,placement:d,strategy:i,middlewareData:p}};async function E(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:a,strategy:f}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:p=!1,padding:h=0}=d(t,e),m=v(h),g=a[p?"floating"===c?"reference":"floating":c],y=b(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:f})),w="floating"===c?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),R=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},A=b(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:x,strategy:f}):w);return{top:(y.top-A.top+m.top)/R.y,bottom:(A.bottom-y.bottom+m.bottom)/R.y,left:(y.left-A.left+m.left)/R.x,right:(A.right-y.right+m.right)/R.x}}function S(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function L(e){return i.some(t=>e[t]>=0)}async function T(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=p(n),a=h(n),f="y"===y(n),s=["left","top"].includes(l)?-1:1,u=o&&f?-1:1,c=d(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:w}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return a&&"number"==typeof w&&(g="end"===a?-1*w:w),f?{x:g*u,y:m*s}:{x:m*s,y:g*u}}function C(e){return k(e)?(e.nodeName||"").toLowerCase():"#document"}function O(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function P(e){var t;return null==(t=(k(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function k(e){return e instanceof Node||e instanceof O(e).Node}function H(e){return e instanceof Element||e instanceof O(e).Element}function W(e){return e instanceof HTMLElement||e instanceof O(e).HTMLElement}function D(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof O(e).ShadowRoot)}function F(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function $(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function M(e){let t=j(),n=z(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function j(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function V(e){return["html","body","#document"].includes(C(e))}function z(e){return O(e).getComputedStyle(e)}function N(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function B(e){if("html"===C(e))return e;let t=e.assignedSlot||e.parentNode||D(e)&&e.host||P(e);return D(t)?t.host:t}function _(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=B(t);return V(n)?t.ownerDocument?t.ownerDocument.body:t.body:W(n)&&F(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=O(i);return o?t.concat(l,l.visualViewport||[],F(i)?i:[],l.frameElement&&n?_(l.frameElement):[]):t.concat(i,_(i,[],n))}function I(e){let t=z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=W(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,f=a(n)!==o||a(r)!==l;return f&&(n=o,r=l),{width:n,height:r,$:f}}function Y(e){return H(e)?e:e.contextElement}function X(e){let t=Y(e);if(!W(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=I(t),l=(o?a(n.width):n.width)/r,f=(o?a(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),f&&Number.isFinite(f)||(f=1),{x:l,y:f}}let q=s(0);function G(e){let t=O(e);return j()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:q}function J(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=Y(e),a=s(1);t&&(r?H(r)&&(a=X(r)):a=X(e));let f=(void 0===(i=n)&&(i=!1),r&&(!i||r===O(l))&&i)?G(l):s(0),u=(o.left+f.x)/a.x,c=(o.top+f.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(l){let e=O(l),t=r&&H(r)?O(r):r,n=e,i=n.frameElement;for(;i&&r&&t!==n;){let e=X(i),t=i.getBoundingClientRect(),r=z(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,p*=e.y,u+=o,c+=l,i=(n=O(i)).frameElement}}return b({width:d,height:p,x:u,y:c})}function K(e){return J(P(e)).left+N(e).scrollLeft}function Q(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=O(e),r=P(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,f=0;if(i){o=i.width,l=i.height;let e=j();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,f=i.offsetTop)}return{width:o,height:l,x:a,y:f}}(e,n);else if("document"===t)r=function(e){let t=P(e),n=N(e),r=e.ownerDocument.body,i=l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+K(e),f=-n.scrollTop;return"rtl"===z(r).direction&&(a+=l(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:f}}(P(e));else if(H(t))r=function(e,t){let n=J(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=W(e)?X(e):s(1),l=e.clientWidth*o.x;return{width:l,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=G(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return b(r)}function U(e){return"static"===z(e).position}function Z(e,t){return W(e)&&"fixed"!==z(e).position?t?t(e):e.offsetParent:null}function ee(e,t){let n=O(e);if($(e))return n;if(!W(e)){let t=B(e);for(;t&&!V(t);){if(H(t)&&!U(t))return t;t=B(t)}return n}let r=Z(e,t);for(;r&&["table","td","th"].includes(C(r))&&U(r);)r=Z(r,t);return r&&V(r)&&U(r)&&!M(r)?n:r||function(e){let t=B(e);for(;W(t)&&!V(t)&&!$(t);){if(M(t))return t;t=B(t)}return null}(e)||n}let et=async function(e){let t=this.getOffsetParent||ee,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=W(t),i=P(t),o="fixed"===n,l=J(e,!0,o,t),a={scrollLeft:0,scrollTop:0},f=s(0);if(r||!r&&!o){if(("body"!==C(t)||F(i))&&(a=N(t)),r){let e=J(t,!0,o,t);f.x=e.x+t.clientLeft,f.y=e.y+t.clientTop}else i&&(f.x=K(i))}return{x:l.left+a.scrollLeft-f.x,y:l.top+a.scrollTop-f.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}}},en={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=P(r),a=!!t&&$(t.floating);if(r===l||a&&o)return n;let f={scrollLeft:0,scrollTop:0},u=s(1),c=s(0),d=W(r);if((d||!d&&!o)&&(("body"!==C(r)||F(l))&&(f=N(r)),W(r))){let e=J(r);u=X(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+c.x,y:n.y*u.y-f.scrollTop*u.y+c.y}},getDocumentElement:P,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?$(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=_(e,[],!1).filter(e=>H(e)&&"body"!==C(e)),i=null,o="fixed"===z(e).position,l=o?B(e):e;for(;H(l)&&!V(l);){let t=z(l),n=M(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||F(l)&&!n&&function e(t,n){let r=B(t);return!(r===n||!H(r)||V(r))&&("fixed"===z(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=B(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],f=a[0],s=a.reduce((e,n)=>{let r=Q(t,n,i);return e.top=l(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=l(r.left,e.left),e},Q(t,f,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ee,getElementRects:et,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=I(e);return{width:t,height:n}},getScale:X,isElement:H,isRTL:function(e){return"rtl"===z(e).direction}},er=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:f,elements:s,middlewareData:u}=t,{element:c,padding:p=0}=d(e,t)||{};if(null==c)return{};let w=v(p),x={x:n,y:r},b=m(y(i)),R=g(b),A=await f.getDimensions(c),E="y"===b,S=E?"clientHeight":"clientWidth",L=a.reference[R]+a.reference[b]-x[b]-a.floating[R],T=x[b]-a.reference[b],C=await (null==f.getOffsetParent?void 0:f.getOffsetParent(c)),O=C?C[S]:0;O&&await (null==f.isElement?void 0:f.isElement(C))||(O=s.floating[S]||a.floating[R]);let P=O/2-A[R]/2-1,k=o(w[E?"top":"left"],P),H=o(w[E?"bottom":"right"],P),W=O-A[R]-H,D=O/2-A[R]/2+(L/2-T/2),F=l(k,o(D,W)),$=!u.arrow&&null!=h(i)&&D!==F&&a.reference[R]/2-(D<k?k:H)-A[R]/2<0,M=$?D<k?D-k:D-W:0;return{[b]:x[b]+M,data:{[b]:F,centerOffset:D-F-M,...$&&{alignmentOffset:M}},reset:$}}}),ei=(e,t,n)=>{let r=new Map,i={platform:en,...n},o={...i.platform,_c:r};return A(e,t,{...i,platform:o})};var eo=n(73935),el="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function ea(e,t){let n,r,i;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(!ea(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!ea(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ef(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function es(e,t){let n=ef(e);return Math.round(t*n)/n}function eu(e){let t=r.useRef(e);return el(()=>{t.current=e}),t}let ec=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?er({element:n.current,padding:r}).fn(t):{}:n?er({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:i,y:o,placement:l,middlewareData:a}=t,f=await T(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+f.x,y:o+f.y,data:{...f,placement:l}}}}}(e),options:[e,t]}),ep=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:f=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=d(e,t),c={x:n,y:r},h=await E(t,u),g=y(p(i)),w=m(g),x=c[w],v=c[g];if(a){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",n=x+h[e],r=x-h[t];x=l(n,o(x,r))}if(f){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=v+h[e],r=v-h[t];v=l(n,o(v,r))}let b=s.fn({...t,[w]:x,[g]:v});return{...b,data:{x:b.x-n,y:b.y-r}}}}}(e),options:[e,t]}),eh=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:a=0,mainAxis:f=!0,crossAxis:s=!0}=d(e,t),u={x:n,y:r},c=y(i),h=m(c),g=u[h],w=u[c],x=d(a,t),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(f){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+v.mainAxis,n=o.reference[h]+o.reference[e]-v.mainAxis;g<t?g=t:g>n&&(g=n)}if(s){var b,R;let e="y"===h?"width":"height",t=["top","left"].includes(p(i)),n=o.reference[c]-o.floating[e]+(t&&(null==(b=l.offset)?void 0:b[c])||0)+(t?0:v.crossAxis),r=o.reference[c]+o.reference[e]+(t?0:(null==(R=l.offset)?void 0:R[c])||0)-(t?v.crossAxis:0);w<n?w=n:w>r&&(w=r)}return{[h]:g,[c]:w}}}}(e),options:[e,t]}),em=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let{placement:a,middlewareData:f,rects:s,initialPlacement:u,platform:c,elements:v}=t,{mainAxis:b=!0,crossAxis:R=!0,fallbackPlacements:A,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:T=!0,...C}=d(e,t);if(null!=(n=f.arrow)&&n.alignmentOffset)return{};let O=p(a),P=y(u),k=p(u)===u,H=await (null==c.isRTL?void 0:c.isRTL(v.floating)),W=A||(k||!T?[x(u)]:function(e){let t=x(e);return[w(e),t,w(t)]}(u)),D="none"!==L;!A&&D&&W.push(...function(e,t,n,r){let i=h(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(w)))),o}(u,T,L,H));let F=[u,...W],$=await E(t,C),M=[],j=(null==(r=f.flip)?void 0:r.overflows)||[];if(b&&M.push($[O]),R){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),i=m(y(e)),o=g(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=x(l)),[l,x(l)]}(a,s,H);M.push($[e[0]],$[e[1]])}if(j=[...j,{placement:a,overflows:M}],!M.every(e=>e<=0)){let e=((null==(i=f.flip)?void 0:i.index)||0)+1,t=F[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let n=null==(o=j.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(S){case"bestFit":{let e=null==(l=j.filter(e=>{if(D){let t=y(e.placement);return t===P||"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:l[0];e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}),eg=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r;let{placement:i,rects:a,platform:f,elements:s}=t,{apply:u=()=>{},...c}=d(e,t),m=await E(t,c),g=p(i),w=h(i),x="y"===y(i),{width:v,height:b}=a.floating;"top"===g||"bottom"===g?(n=g,r=w===(await (null==f.isRTL?void 0:f.isRTL(s.floating))?"start":"end")?"left":"right"):(r=g,n="end"===w?"top":"bottom");let R=b-m.top-m.bottom,A=v-m.left-m.right,S=o(b-m[n],R),L=o(v-m[r],A),T=!t.middlewareData.shift,C=S,O=L;if(x?O=w||T?o(L,A):A:C=w||T?o(S,R):R,T&&!w){let e=l(m.left,0),t=l(m.right,0),n=l(m.top,0),r=l(m.bottom,0);x?O=v-2*(0!==e||0!==t?e+t:l(m.left,m.right)):C=b-2*(0!==n||0!==r?n+r:l(m.top,m.bottom))}await u({...t,availableWidth:O,availableHeight:C});let P=await f.getDimensions(s.floating);return v!==P.width||b!==P.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),ey=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=d(e,t);switch(r){case"referenceHidden":{let e=S(await E(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:L(e)}}}case"escaped":{let e=S(await E(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:L(e)}}}default:return{}}}}}(e),options:[e,t]}),ew=(e,t)=>({...ec(e),options:[e,t]});var ex=n(75320),ev=n(85893),eb=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,ev.jsx)(ex.WV.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ev.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eb.displayName="Arrow";var eR=n(28771),eA=n(25360),eE=n(79698),eS=n(9981),eL=n(7546),eT="Popper",[eC,eO]=(0,eA.b)(eT),[eP,ek]=eC(eT),eH=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,ev.jsx)(eP,{scope:t,anchor:i,onAnchorChange:o,children:n})};eH.displayName=eT;var eW="PopperAnchor",eD=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,l=ek(eW,n),a=r.useRef(null),f=(0,eR.e)(t,a);return r.useEffect(()=>{l.onAnchorChange(i?.current||a.current)}),i?null:(0,ev.jsx)(ex.WV.div,{...o,ref:f})});eD.displayName=eW;var eF="PopperContent",[e$,eM]=eC(eF),ej=r.forwardRef((e,t)=>{let{__scopePopper:n,side:i="bottom",sideOffset:a=0,align:s="center",alignOffset:u=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:p=[],collisionPadding:h=0,sticky:m="partial",hideWhenDetached:g=!1,updatePositionStrategy:y="optimized",onPlaced:w,...x}=e,v=ek(eF,n),[b,R]=r.useState(null),A=(0,eR.e)(t,e=>R(e)),[E,S]=r.useState(null),L=(0,eL.t)(E),T=L?.width??0,C=L?.height??0,O="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},k=Array.isArray(p)?p:[p],H=k.length>0,W={padding:O,boundary:k.filter(eB),altBoundary:H},{refs:D,floatingStyles:F,placement:$,isPositioned:M,middlewareData:j}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:a}={},transform:f=!0,whileElementsMounted:s,open:u}=e,[c,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(i);ea(p,i)||h(i);let[m,g]=r.useState(null),[y,w]=r.useState(null),x=r.useCallback(e=>{e!==A.current&&(A.current=e,g(e))},[]),v=r.useCallback(e=>{e!==E.current&&(E.current=e,w(e))},[]),b=l||m,R=a||y,A=r.useRef(null),E=r.useRef(null),S=r.useRef(c),L=null!=s,T=eu(s),C=eu(o),O=r.useCallback(()=>{if(!A.current||!E.current)return;let e={placement:t,strategy:n,middleware:p};C.current&&(e.platform=C.current),ei(A.current,E.current,e).then(e=>{let t={...e,isPositioned:!0};P.current&&!ea(S.current,t)&&(S.current=t,eo.flushSync(()=>{d(t)}))})},[p,t,n,C]);el(()=>{!1===u&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let P=r.useRef(!1);el(()=>(P.current=!0,()=>{P.current=!1}),[]),el(()=>{if(b&&(A.current=b),R&&(E.current=R),b&&R){if(T.current)return T.current(b,R,O);O()}},[b,R,O,T,L]);let k=r.useMemo(()=>({reference:A,floating:E,setReference:x,setFloating:v}),[x,v]),H=r.useMemo(()=>({reference:b,floating:R}),[b,R]),W=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!H.floating)return e;let t=es(H.floating,c.x),r=es(H.floating,c.y);return f?{...e,transform:"translate("+t+"px, "+r+"px)",...ef(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,f,H.floating,c.x,c.y]);return r.useMemo(()=>({...c,update:O,refs:k,elements:H,floatingStyles:W}),[c,O,k,H,W])}({strategy:"fixed",placement:i+("center"!==s?"-"+s:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=Y(e),h=a||s?[...p?_(p):[],..._(t)]:[];h.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let m=p&&c?function(e,t){let n,r=null,i=P(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(u,c){void 0===u&&(u=!1),void 0===c&&(c=1),a();let{left:d,top:p,width:h,height:m}=e.getBoundingClientRect();if(u||t(),!h||!m)return;let g=f(p),y=f(i.clientWidth-(d+h)),w={rootMargin:-g+"px "+-y+"px "+-f(i.clientHeight-(p+m))+"px "+-f(d)+"px",threshold:l(0,o(1,c))||1},x=!0;function v(e){let t=e[0].intersectionRatio;if(t!==c){if(!x)return s();t?s(!1,t):n=setTimeout(()=>{s(!1,1e-7)},1e3)}x=!1}try{r=new IntersectionObserver(v,{...w,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(v,w)}r.observe(e)}(!0),a}(p,n):null,g=-1,y=null;u&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!d&&y.observe(p),y.observe(t));let w=d?J(e):null;return d&&function t(){let r=J(e);w&&(r.x!==w.x||r.y!==w.y||r.width!==w.width||r.height!==w.height)&&n(),w=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{a&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===y}),elements:{reference:v.anchor},middleware:[ed({mainAxis:a+C,alignmentAxis:u}),d&&ep({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?eh():void 0,...W}),d&&em({...W}),eg({...W,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}}),E&&ew({element:E,padding:c}),e_({arrowWidth:T,arrowHeight:C}),g&&ey({strategy:"referenceHidden",...W})]}),[V,z]=eI($),N=(0,eE.W)(w);(0,eS.b)(()=>{M&&N?.()},[M,N]);let B=j.arrow?.x,I=j.arrow?.y,X=j.arrow?.centerOffset!==0,[q,G]=r.useState();return(0,eS.b)(()=>{b&&G(window.getComputedStyle(b).zIndex)},[b]),(0,ev.jsx)("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:M?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:q,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ev.jsx)(e$,{scope:n,placedSide:V,onArrowChange:S,arrowX:B,arrowY:I,shouldHideArrow:X,children:(0,ev.jsx)(ex.WV.div,{"data-side":V,"data-align":z,...x,ref:A,style:{...x.style,animation:M?void 0:"none"}})})})});ej.displayName=eF;var eV="PopperArrow",ez={top:"bottom",right:"left",bottom:"top",left:"right"},eN=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eM(eV,n),o=ez[i.placedSide];return(0,ev.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ev.jsx)(eb,{...r,ref:t,style:{...r.style,display:"block"}})})});function eB(e){return null!==e}eN.displayName=eV;var e_=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[f,s]=eI(n),u={start:"0%",center:"50%",end:"100%"}[s],c=(i.arrow?.x??0)+l/2,d=(i.arrow?.y??0)+a/2,p="",h="";return"bottom"===f?(p=o?u:`${c}px`,h=`${-a}px`):"top"===f?(p=o?u:`${c}px`,h=`${r.floating.height+a}px`):"right"===f?(p=`${-a}px`,h=o?u:`${d}px`):"left"===f&&(p=`${r.floating.width+a}px`,h=o?u:`${d}px`),{data:{x:p,y:h}}}});function eI(e){let[t,n="center"]=e.split("-");return[t,n]}var eY=eH,eX=eD,eq=ej,eG=eN},77342:(e,t,n)=>{n.d(t,{T:()=>o});var r=n(67294),i=n(79698);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,l]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[o]=n,l=r.useRef(o),a=(0,i.W)(t);return r.useEffect(()=>{l.current!==o&&(a(o),l.current=o)},[o,l,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,f=a?e:o,s=(0,i.W)(n);return[f,r.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else l(t)},[a,e,l,s])]}},78724:(e,t,n)=>{n.d(t,{e:()=>o});var r=n(67294),i=n(79698);function o(e,t=globalThis?.document){let n=(0,i.W)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}},7546:(e,t,n)=>{n.d(t,{t:()=>o});var r=n(67294),i=n(9981);function o(e){let[t,n]=r.useState(void 0);return(0,i.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}}}]);