"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4005],{46765:function(e,t,n){n.d(t,{ee:function(){return eX},Eh:function(){return eZ},VY:function(){return eq},fC:function(){return e$},D7:function(){return eO}});var r=n(2265);let i=["top","right","bottom","left"],o=Math.min,l=Math.max,a=Math.round,f=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},s={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 v(e){return["top","bottom"].includes(p(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>s[e])}function w(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function x(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 A(e,t,n){let r,{reference:i,floating:o}=e,l=v(t),a=m(v(t)),f=g(a),u=p(t),c="y"===l,s=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,y=i[f]/2-o[f]/2;switch(u){case"top":r={x:s,y:i.y-o.height};break;case"bottom":r={x:s,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]-=y*(n&&c?-1:1);break;case"end":r[a]+=y*(n&&c?-1:1)}return r}let R=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)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:s}=A(u,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:v,data:y,reset:w}=await m({x:c,y:s,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=g?g:c,s=null!=v?v:s,p={...p,[o]:{...p[o],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:s}=A(u,d,f)),n=-1)}return{x:c,y:s,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:u="clippingAncestors",rootBoundary:c="viewport",elementContext:s="floating",altBoundary:p=!1,padding:h=0}=d(t,e),m=x(h),g=a[p?"floating"===s?"reference":"floating":s],v=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:u,rootBoundary:c,strategy:f})),y="floating"===s?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),A=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},R=b(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:f}):y);return{top:(v.top-R.top+m.top)/A.y,bottom:(R.bottom-v.bottom+m.bottom)/A.y,left:(v.left-R.left+m.left)/A.x,right:(R.right-v.right+m.right)/A.x}}function L(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function S(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"===v(n),u=["left","top"].includes(l)?-1:1,c=o&&f?-1:1,s=d(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:y}="number"==typeof s?{mainAxis:s,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...s};return a&&"number"==typeof y&&(g="end"===a?-1*y:y),f?{x:g*c,y:m*u}:{x:m*u,y:g*c}}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 N(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function j(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function F(e){let t=z(),n=V(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 z(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function M(e){return["html","body","#document"].includes(C(e))}function V(e){return O(e).getComputedStyle(e)}function B(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _(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 Y(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=_(t);return M(n)?t.ownerDocument?t.ownerDocument.body:t.body:W(n)&&N(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||[],N(i)?i:[],l.frameElement&&n?Y(l.frameElement):[]):t.concat(i,Y(i,[],n))}function I(e){let t=V(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 $(e){return H(e)?e:e.contextElement}function X(e){let t=$(e);if(!W(t))return u(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=u(0);function Z(e){let t=O(e);return z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:q}function G(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=$(e),a=u(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)?Z(l):u(0),c=(o.left+f.x)/a.x,s=(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=V(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,p*=e.y,c+=o,s+=l,i=(n=O(i)).frameElement}}return b({width:d,height:p,x:c,y:s})}function J(e){return G(P(e)).left+B(e).scrollLeft}function K(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=z();(!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=B(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+J(e),f=-n.scrollTop;return"rtl"===V(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=G(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=W(e)?X(e):u(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=Z(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return b(r)}function Q(e){return"static"===V(e).position}function U(e,t){return W(e)&&"fixed"!==V(e).position?t?t(e):e.offsetParent:null}function ee(e,t){let n=O(e);if(j(e))return n;if(!W(e)){let t=_(e);for(;t&&!M(t);){if(H(t)&&!Q(t))return t;t=_(t)}return n}let r=U(e,t);for(;r&&["table","td","th"].includes(C(r))&&Q(r);)r=U(r,t);return r&&M(r)&&Q(r)&&!F(r)?n:r||function(e){let t=_(e);for(;W(t)&&!M(t)&&!j(t);){if(F(t))return t;t=_(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=G(e,!0,o,t),a={scrollLeft:0,scrollTop:0},f=u(0);if(r||!r&&!o){if(("body"!==C(t)||N(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=J(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&&j(t.floating);if(r===l||a&&o)return n;let f={scrollLeft:0,scrollTop:0},c=u(1),s=u(0),d=W(r);if((d||!d&&!o)&&(("body"!==C(r)||N(l))&&(f=B(r)),W(r))){let e=G(r);c=X(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+s.x,y:n.y*c.y-f.scrollTop*c.y+s.y}},getDocumentElement:P,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?j(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=Y(e,[],!1).filter(e=>H(e)&&"body"!==C(e)),i=null,o="fixed"===V(e).position,l=o?_(e):e;for(;H(l)&&!M(l);){let t=V(l),n=F(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||N(l)&&!n&&function e(t,n){let r=_(t);return!(r===n||!H(r)||M(r))&&("fixed"===V(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=_(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],f=a[0],u=a.reduce((e,n)=>{let r=K(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},K(t,f,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.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"===V(e).direction}},er=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:f,elements:u,middlewareData:c}=t,{element:s,padding:p=0}=d(e,t)||{};if(null==s)return{};let y=x(p),w={x:n,y:r},b=m(v(i)),A=g(b),R=await f.getDimensions(s),E="y"===b,L=E?"clientHeight":"clientWidth",S=a.reference[A]+a.reference[b]-w[b]-a.floating[A],T=w[b]-a.reference[b],C=await (null==f.getOffsetParent?void 0:f.getOffsetParent(s)),O=C?C[L]:0;O&&await (null==f.isElement?void 0:f.isElement(C))||(O=u.floating[L]||a.floating[A]);let P=O/2-R[A]/2-1,k=o(y[E?"top":"left"],P),H=o(y[E?"bottom":"right"],P),W=O-R[A]-H,D=O/2-R[A]/2+(S/2-T/2),N=l(k,o(D,W)),j=!c.arrow&&null!=h(i)&&D!==N&&a.reference[A]/2-(D<k?k:H)-R[A]/2<0,F=j?D<k?D-k:D-W:0;return{[b]:w[b]+F,data:{[b]:N,centerOffset:D-N-F,...j&&{alignmentOffset:F}},reset:j}}}),ei=(e,t,n)=>{let r=new Map,i={platform:en,...n},o={...i.platform,_c:r};return R(e,t,{...i,platform:o})};var eo=n(54887),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 eu(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 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?er({element:n.current,padding:r}).fn(t):{}:n?er({element:n,padding:r}).fn(t):{}}}),ed=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:i,y:o,placement:l,middlewareData:a}=e,f=await T(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+f.x,y:o+f.y,data:{...f,placement:l}}}}),options:[e,t]}},ep=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:i}=e,{mainAxis:a=!0,crossAxis:f=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(n,e),s={x:t,y:r},h=await E(e,c),g=v(p(i)),y=m(g),w=s[y],x=s[g];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+h[e],r=w-h[t];w=l(n,o(w,r))}if(f){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=x+h[e],r=x-h[t];x=l(n,o(x,r))}let b=u.fn({...e,[y]:w,[g]:x});return{...b,data:{x:b.x-t,y:b.y-r}}}}),options:[e,t]}},eh=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:i,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:f=!0,crossAxis:u=!0}=d(n,e),c={x:t,y:r},s=v(i),h=m(s),g=c[h],y=c[s],w=d(a,e),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(f){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+x.mainAxis,n=o.reference[h]+o.reference[e]-x.mainAxis;g<t?g=t:g>n&&(g=n)}if(u){var b,A;let e="y"===h?"width":"height",t=["top","left"].includes(p(i)),n=o.reference[s]-o.floating[e]+(t&&(null==(b=l.offset)?void 0:b[s])||0)+(t?0:x.crossAxis),r=o.reference[s]+o.reference[e]+(t?0:(null==(A=l.offset)?void 0:A[s])||0)-(t?x.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[h]:g,[s]:y}}}),options:[e,t]}},em=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,i,o,l;let{placement:a,middlewareData:f,rects:u,initialPlacement:c,platform:s,elements:x}=e,{mainAxis:b=!0,crossAxis:A=!0,fallbackPlacements:R,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:T=!0,...C}=d(n,e);if(null!=(t=f.arrow)&&t.alignmentOffset)return{};let O=p(a),P=v(c),k=p(c)===c,H=await (null==s.isRTL?void 0:s.isRTL(x.floating)),W=R||(k||!T?[w(c)]:function(e){let t=w(e);return[y(e),t,y(t)]}(c)),D="none"!==S;!R&&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(y)))),o}(c,T,S,H));let N=[c,...W],j=await E(e,C),F=[],z=(null==(r=f.flip)?void 0:r.overflows)||[];if(b&&F.push(j[O]),A){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),i=m(v(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=w(l)),[l,w(l)]}(a,u,H);F.push(j[e[0]],j[e[1]])}if(z=[...z,{placement:a,overflows:F}],!F.every(e=>e<=0)){let e=((null==(i=f.flip)?void 0:i.index)||0)+1,t=N[e];if(t)return{data:{index:e,overflows:z},reset:{placement:t}};let n=null==(o=z.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(L){case"bestFit":{let e=null==(l=z.filter(e=>{if(D){let t=v(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=c}if(a!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eg=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r;let{placement:i,rects:a,platform:f,elements:u}=e,{apply:c=()=>{},...s}=d(n,e),m=await E(e,s),g=p(i),y=h(i),w="y"===v(i),{width:x,height:b}=a.floating;"top"===g||"bottom"===g?(t=g,r=y===(await (null==f.isRTL?void 0:f.isRTL(u.floating))?"start":"end")?"left":"right"):(r=g,t="end"===y?"top":"bottom");let A=b-m.top-m.bottom,R=x-m.left-m.right,L=o(b-m[t],A),S=o(x-m[r],R),T=!e.middlewareData.shift,C=L,O=S;if(w?O=y||T?o(S,R):R:C=y||T?o(L,A):A,T&&!y){let e=l(m.left,0),t=l(m.right,0),n=l(m.top,0),r=l(m.bottom,0);w?O=x-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 c({...e,availableWidth:O,availableHeight:C});let P=await f.getDimensions(u.floating);return x!==P.width||b!==P.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},ev=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...i}=d(n,e);switch(r){case"referenceHidden":{let n=L(await E(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:S(n)}}}case"escaped":{let n=L(await E(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:S(n)}}}default:return{}}}}),options:[e,t]}},ey=(e,t)=>({...es(e),options:[e,t]});var ew=n(48712),ex=n(57437),eb=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,ex.jsx)(ew.WV.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ex.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eb.displayName="Arrow";var eA=n(55206),eR=n(48970),eE=n(68312),eL=n(28727),eS=n(29612),eT="Popper",[eC,eO]=(0,eR.b)(eT),[eP,ek]=eC(eT),eH=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,ex.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,eA.e)(t,a);return r.useEffect(()=>{l.onAnchorChange((null==i?void 0:i.current)||a.current)}),i?null:(0,ex.jsx)(ew.WV.div,{...o,ref:f})});eD.displayName=eW;var eN="PopperContent",[ej,eF]=eC(eN),ez=r.forwardRef((e,t)=>{var n,i,a,u,c,s,d,p;let{__scopePopper:h,side:m="bottom",sideOffset:g=0,align:v="center",alignOffset:y=0,arrowPadding:w=0,avoidCollisions:x=!0,collisionBoundary:b=[],collisionPadding:A=0,sticky:R="partial",hideWhenDetached:E=!1,updatePositionStrategy:L="optimized",onPlaced:S,...T}=e,C=ek(eN,h),[O,k]=r.useState(null),H=(0,eA.e)(t,e=>k(e)),[W,D]=r.useState(null),N=(0,eS.t)(W),j=null!==(d=null==N?void 0:N.width)&&void 0!==d?d:0,F=null!==(p=null==N?void 0:N.height)&&void 0!==p?p:0,z="number"==typeof A?A:{top:0,right:0,bottom:0,left:0,...A},M=Array.isArray(b)?b:[b],V=M.length>0,B={padding:z,boundary:M.filter(e_),altBoundary:V},{refs:_,floatingStyles:I,placement:X,isPositioned:q,middlewareData:Z}=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:u,open:c}=e,[s,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),[v,y]=r.useState(null),w=r.useCallback(e=>{e!==R.current&&(R.current=e,g(e))},[]),x=r.useCallback(e=>{e!==E.current&&(E.current=e,y(e))},[]),b=l||m,A=a||v,R=r.useRef(null),E=r.useRef(null),L=r.useRef(s),S=null!=u,T=ec(u),C=ec(o),O=r.useCallback(()=>{if(!R.current||!E.current)return;let e={placement:t,strategy:n,middleware:p};C.current&&(e.platform=C.current),ei(R.current,E.current,e).then(e=>{let t={...e,isPositioned:!0};P.current&&!ea(L.current,t)&&(L.current=t,eo.flushSync(()=>{d(t)}))})},[p,t,n,C]);el(()=>{!1===c&&L.current.isPositioned&&(L.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let P=r.useRef(!1);el(()=>(P.current=!0,()=>{P.current=!1}),[]),el(()=>{if(b&&(R.current=b),A&&(E.current=A),b&&A){if(T.current)return T.current(b,A,O);O()}},[b,A,O,T,S]);let k=r.useMemo(()=>({reference:R,floating:E,setReference:w,setFloating:x}),[w,x]),H=r.useMemo(()=>({reference:b,floating:A}),[b,A]),W=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!H.floating)return e;let t=eu(H.floating,s.x),r=eu(H.floating,s.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,s.x,s.y]);return r.useMemo(()=>({...s,update:O,refs:k,elements:H,floatingStyles:W}),[s,O,k,H,W])}({strategy:"fixed",placement:m+("center"!==v?"-"+v:""),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:a=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=$(e),h=a||u?[...p?Y(p):[],...Y(t)]:[];h.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&s?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 u(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),a();let{left:d,top:p,width:h,height:m}=e.getBoundingClientRect();if(c||t(),!h||!m)return;let g=f(p),v=f(i.clientWidth-(d+h)),y={rootMargin:-g+"px "+-v+"px "+-f(i.clientHeight-(p+m))+"px "+-f(d)+"px",threshold:l(0,o(1,s))||1},w=!0;function x(e){let t=e[0].intersectionRatio;if(t!==s){if(!w)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(x,y)}r.observe(e)}(!0),a}(p,n):null,g=-1,v=null;c&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),p&&!d&&v.observe(p),v.observe(t));let y=d?G(e):null;return d&&function t(){let r=G(e);y&&(r.x!==y.x||r.y!==y.y||r.width!==y.width||r.height!==y.height)&&n(),y=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{a&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===L})},elements:{reference:C.anchor},middleware:[ed({mainAxis:g+F,alignmentAxis:y}),x&&ep({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?eh():void 0,...B}),x&&em({...B}),eg({...B,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"))}}),W&&ey({element:W,padding:w}),eY({arrowWidth:j,arrowHeight:F}),E&&ev({strategy:"referenceHidden",...B})]}),[J,K]=eI(X),Q=(0,eE.W)(S);(0,eL.b)(()=>{q&&(null==Q||Q())},[q,Q]);let U=null===(n=Z.arrow)||void 0===n?void 0:n.x,ee=null===(i=Z.arrow)||void 0===i?void 0:i.y,et=(null===(a=Z.arrow)||void 0===a?void 0:a.centerOffset)!==0,[en,er]=r.useState();return(0,eL.b)(()=>{O&&er(window.getComputedStyle(O).zIndex)},[O]),(0,ex.jsx)("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:q?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[null===(u=Z.transformOrigin)||void 0===u?void 0:u.x,null===(c=Z.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(s=Z.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ex.jsx)(ej,{scope:h,placedSide:J,onArrowChange:D,arrowX:U,arrowY:ee,shouldHideArrow:et,children:(0,ex.jsx)(ew.WV.div,{"data-side":J,"data-align":K,...T,ref:H,style:{...T.style,animation:q?void 0:"none"}})})})});ez.displayName=eN;var eM="PopperArrow",eV={top:"bottom",right:"left",bottom:"top",left:"right"},eB=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eF(eM,n),o=eV[i.placedSide];return(0,ex.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,ex.jsx)(eb,{...r,ref:t,style:{...r.style,display:"block"}})})});function e_(e){return null!==e}eB.displayName=eM;var eY=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,l;let{placement:a,rects:f,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,s=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,h]=eI(a),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(o=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+s/2,v=(null!==(l=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==l?l:0)+d/2,y="",w="";return"bottom"===p?(y=c?m:"".concat(g,"px"),w="".concat(-d,"px")):"top"===p?(y=c?m:"".concat(g,"px"),w="".concat(f.floating.height+d,"px")):"right"===p?(y="".concat(-d,"px"),w=c?m:"".concat(v,"px")):"left"===p&&(y="".concat(f.floating.width+d,"px"),w=c?m:"".concat(v,"px")),{data:{x:y,y:w}}}});function eI(e){let[t,n="center"]=e.split("-");return[t,n]}var e$=eH,eX=eD,eq=ez,eZ=eB},29612:function(e,t,n){n.d(t,{t:function(){return o}});var r=n(2265),i=n(28727);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}},78030:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(2265);/**
 * @license lucide-react v0.408.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&n.indexOf(e)===t).join(" ")};/**
 * @license lucide-react v0.408.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.408.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let a=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:f,className:u="",children:c,iconNode:s,...d}=e;return(0,r.createElement)("svg",{ref:t,...l,width:i,height:i,stroke:n,strokeWidth:f?24*Number(a)/Number(i):a,className:o("lucide",u),...d},[...s.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),f=(e,t)=>{let n=(0,r.forwardRef)((n,l)=>{let{className:f,...u}=n;return(0,r.createElement)(a,{ref:l,iconNode:t,className:o("lucide-".concat(i(e)),f),...u})});return n.displayName="".concat(e),n}}}]);