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