"use strict";!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2213eddc-588e-42e7-b736-de5e157c38ae",e._sentryDebugIdIdentifier="sentry-dbid-2213eddc-588e-42e7-b736-de5e157c38ae")}catch(e){}}(),function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2213eddc-588e-42e7-b736-de5e157c38ae",e._sentryDebugIdIdentifier="sentry-dbid-2213eddc-588e-42e7-b736-de5e157c38ae")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5486],{95486:function(e,t,n){n.d(t,{ee:function(){return eG},Eh:function(){return eK},VY:function(){return eJ},fC:function(){return eq},D7:function(){return eS}});var r=n(99266);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 g(e){return"x"===e?"y":"x"}function m(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=g(y(t)),f=m(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:g}=a[n],{x:m,y:y,data:w,reset:x}=await g({x:u,y:c,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});u=null!=m?m: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),g=v(h),m=a[p?"floating"===c?"reference":"floating":c],y=b(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.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+g.top)/R.y,bottom:(A.bottom-y.bottom+g.bottom)/R.y,left:(y.left-A.left+g.left)/R.x,right:(A.right-y.right+g.right)/R.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 T(e){return i.some(t=>e[t]>=0)}async function C(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:g,crossAxis:m,alignmentAxis:w}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&"number"==typeof w&&(m="end"===a?-1*w:w),f?{x:m*u,y:g*s}:{x:g*s,y:m*u}}function O(){return"undefined"!=typeof window}function P(e){return k(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function S(e){var t;return null==(t=(k(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function k(e){return!!O()&&(e instanceof Node||e instanceof D(e).Node)}function H(e){return!!O()&&(e instanceof Element||e instanceof D(e).Element)}function W(e){return!!O()&&(e instanceof HTMLElement||e instanceof D(e).HTMLElement)}function F(e){return!!O()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof D(e).ShadowRoot)}function j(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 I(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function $(e){let t=_(),n=H(e)?V(e):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 _(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function M(e){return["html","body","#document"].includes(P(e))}function V(e){return D(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"===P(e))return e;let t=e.assignedSlot||e.parentNode||F(e)&&e.host||S(e);return F(t)?t.host:t}function z(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=B(t);return M(n)?t.ownerDocument?t.ownerDocument.body:t.body:W(n)&&j(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=D(i);if(o){let e=Y(l);return t.concat(l,l.visualViewport||[],j(i)?i:[],e&&n?z(e):[])}return t.concat(i,z(i,[],n))}function Y(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function X(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 q(e){return H(e)?e:e.contextElement}function G(e){let t=q(e);if(!W(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=X(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 J=s(0);function K(e){let t=D(e);return _()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:J}function Q(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=q(e),a=s(1);t&&(r?H(r)&&(a=G(r)):a=G(e));let f=(void 0===(i=n)&&(i=!1),r&&(!i||r===D(l))&&i)?K(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=D(l),t=r&&H(r)?D(r):r,n=e,i=Y(n);for(;i&&r&&t!==n;){let e=G(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;u*=e.x,c*=e.y,d*=e.x,p*=e.y,u+=o,c+=l,i=Y(n=D(i))}}return b({width:d,height:p,x:u,y:c})}function U(e,t){let n=N(e).scrollLeft;return t?t.left+n:Q(S(e)).left+n}function Z(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=D(e),r=S(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,f=0;if(i){o=i.width,l=i.height;let e=_();(!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=S(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+U(e),f=-n.scrollTop;return"rtl"===V(r).direction&&(a+=l(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:f}}(S(e));else if(H(t))r=function(e,t){let n=Q(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=W(e)?G(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=K(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return b(r)}function ee(e){return"static"===V(e).position}function et(e,t){if(!W(e)||"fixed"===V(e).position)return null;if(t)return t(e);let n=e.offsetParent;return S(e)===n&&(n=n.ownerDocument.body),n}function en(e,t){let n=D(e);if(I(e))return n;if(!W(e)){let t=B(e);for(;t&&!M(t);){if(H(t)&&!ee(t))return t;t=B(t)}return n}let r=et(e,t);for(;r&&["table","td","th"].includes(P(r))&&ee(r);)r=et(r,t);return r&&M(r)&&ee(r)&&!$(r)?n:r||function(e){let t=B(e);for(;W(t)&&!M(t);){if($(t))return t;if(I(t))break;t=B(t)}return null}(e)||n}let er=async function(e){let t=this.getOffsetParent||en,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=W(t),i=S(t),o="fixed"===n,l=Q(e,!0,o,t),a={scrollLeft:0,scrollTop:0},f=s(0);if(r||!r&&!o){if(("body"!==P(t)||j(i))&&(a=N(t)),r){let e=Q(t,!0,o,t);f.x=e.x+t.clientLeft,f.y=e.y+t.clientTop}else i&&(f.x=U(i))}let u=0,c=0;if(i&&!r&&!o){let e=i.getBoundingClientRect();c=e.top+a.scrollTop,u=e.left+a.scrollLeft-U(i,e)}return{x:l.left+a.scrollLeft-f.x-u,y:l.top+a.scrollTop-f.y-c,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}}},ei={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=S(r),a=!!t&&I(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"!==P(r)||j(l))&&(f=N(r)),W(r))){let e=Q(r);u=G(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:S,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?I(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=z(e,[],!1).filter(e=>H(e)&&"body"!==P(e)),i=null,o="fixed"===V(e).position,l=o?B(e):e;for(;H(l)&&!M(l);){let t=V(l),n=$(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||j(l)&&!n&&function e(t,n){let r=B(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=B(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],f=a[0],s=a.reduce((e,n)=>{let r=Z(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},Z(t,f,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:en,getElementRects:er,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=X(e);return{width:t,height:n}},getScale:G,isElement:H,isRTL:function(e){return"rtl"===V(e).direction}},eo=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=g(y(i)),R=m(b),A=await f.getDimensions(c),E="y"===b,L=E?"clientHeight":"clientWidth",T=a.reference[R]+a.reference[b]-x[b]-a.floating[R],C=x[b]-a.reference[b],O=await (null==f.getOffsetParent?void 0:f.getOffsetParent(c)),P=O?O[L]:0;P&&await (null==f.isElement?void 0:f.isElement(O))||(P=s.floating[L]||a.floating[R]);let D=P/2-A[R]/2-1,S=o(w[E?"top":"left"],D),k=o(w[E?"bottom":"right"],D),H=P-A[R]-k,W=P/2-A[R]/2+(T/2-C/2),F=l(S,o(W,H)),j=!u.arrow&&null!=h(i)&&W!==F&&a.reference[R]/2-(W<S?S:k)-A[R]/2<0,I=j?W<S?W-S:W-H:0;return{[b]:x[b]+I,data:{[b]:F,centerOffset:W-F-I,...j&&{alignmentOffset:I}},reset:j}}}),el=(e,t,n)=>{let r=new Map,i={platform:ei,...n},o={...i.platform,_c:r};return A(e,t,{...i,platform:o})};var ea=n(86198),ef="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function es(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(!es(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)&&!es(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eu(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ec(e,t){let n=eu(e);return Math.round(t*n)/n}function ed(e){let t=r.useRef(e);return ef(()=>{t.current=e}),t}let ep=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?eo({element:n.current,padding:r}).fn(t):{}:n?eo({element:n,padding:r}).fn(t):{}}}),eh=(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 C(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]}},eg=(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:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=d(n,e),c={x:t,y:r},h=await E(e,u),m=y(p(i)),w=g(m),x=c[w],v=c[m];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"===m?"top":"left",t="y"===m?"bottom":"right",n=v+h[e],r=v-h[t];v=l(n,o(v,r))}let b=s.fn({...e,[w]:x,[m]:v});return{...b,data:{x:b.x-t,y:b.y-r,enabled:{[w]:a,[m]:f}}}}}),options:[e,t]}},em=(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:s=!0}=d(n,e),u={x:t,y:r},c=y(i),h=g(c),m=u[h],w=u[c],x=d(a,e),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;m<t?m=t:m>n&&(m=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]:m,[c]:w}}}),options:[e,t]}},ey=(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:s,initialPlacement:u,platform:c,elements:v}=e,{mainAxis:b=!0,crossAxis:R=!0,fallbackPlacements:A,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:C=!0,...O}=d(n,e);if(null!=(t=f.arrow)&&t.alignmentOffset)return{};let P=p(a),D=y(u),S=p(u)===u,k=await (null==c.isRTL?void 0:c.isRTL(v.floating)),H=A||(S||!C?[x(u)]:function(e){let t=x(e);return[w(e),t,w(t)]}(u)),W="none"!==T;!A&&W&&H.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,C,T,k));let F=[u,...H],j=await E(e,O),I=[],$=(null==(r=f.flip)?void 0:r.overflows)||[];if(b&&I.push(j[P]),R){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),i=g(y(e)),o=m(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,k);I.push(j[e[0]],j[e[1]])}if($=[...$,{placement:a,overflows:I}],!I.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:$},reset:{placement:t}};let n=null==(o=$.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=$.filter(e=>{if(W){let t=y(e.placement);return t===D||"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{}}}),options:[e,t]}},ew=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let i,a;let{placement:f,rects:s,platform:u,elements:c}=e,{apply:g=()=>{},...m}=d(n,e),w=await E(e,m),x=p(f),v=h(f),b="y"===y(f),{width:R,height:A}=s.floating;"top"===x||"bottom"===x?(i=x,a=v===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(a=x,i="end"===v?"top":"bottom");let L=A-w.top-w.bottom,T=R-w.left-w.right,C=o(A-w[i],L),O=o(R-w[a],T),P=!e.middlewareData.shift,D=C,S=O;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(S=T),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(D=L),P&&!v){let e=l(w.left,0),t=l(w.right,0),n=l(w.top,0),r=l(w.bottom,0);b?S=R-2*(0!==e||0!==t?e+t:l(w.left,w.right)):D=A-2*(0!==n||0!==r?n+r:l(w.top,w.bottom))}await g({...e,availableWidth:S,availableHeight:D});let k=await u.getDimensions(c.floating);return R!==k.width||A!==k.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},ex=(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:T(n)}}}case"escaped":{let n=L(await E(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:T(n)}}}default:return{}}}}),options:[e,t]}},ev=(e,t)=>({...ep(e),options:[e,t]});var eb=n(32461),eR=n(33946),eA=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eR.jsx)(eb.WV.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eR.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eA.displayName="Arrow";var eE=n(95598),eL=n(56151),eT=n(32663),eC=n(50639),eO=n(72718),eP="Popper",[eD,eS]=(0,eL.b)(eP),[ek,eH]=eD(eP),eW=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,eR.jsx)(ek,{scope:t,anchor:i,onAnchorChange:o,children:n})};eW.displayName=eP;var eF="PopperAnchor",ej=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,l=eH(eF,n),a=r.useRef(null),f=(0,eE.e)(t,a);return r.useEffect(()=>{l.onAnchorChange(i?.current||a.current)}),i?null:(0,eR.jsx)(eb.WV.div,{...o,ref:f})});ej.displayName=eF;var eI="PopperContent",[e$,e_]=eD(eI),eM=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:g="partial",hideWhenDetached:m=!1,updatePositionStrategy:y="optimized",onPlaced:w,...x}=e,v=eH(eI,n),[b,R]=r.useState(null),A=(0,eE.e)(t,e=>R(e)),[E,L]=r.useState(null),T=(0,eO.t)(E),C=T?.width??0,O=T?.height??0,P="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},D=Array.isArray(p)?p:[p],k=D.length>0,H={padding:P,boundary:D.filter(ez),altBoundary:k},{refs:W,floatingStyles:F,placement:j,isPositioned:I,middlewareData:$}=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);es(p,i)||h(i);let[g,m]=r.useState(null),[y,w]=r.useState(null),x=r.useCallback(e=>{e!==A.current&&(A.current=e,m(e))},[]),v=r.useCallback(e=>{e!==E.current&&(E.current=e,w(e))},[]),b=l||g,R=a||y,A=r.useRef(null),E=r.useRef(null),L=r.useRef(c),T=null!=s,C=ed(s),O=ed(o),P=ed(u),D=r.useCallback(()=>{if(!A.current||!E.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),el(A.current,E.current,e).then(e=>{let t={...e,isPositioned:!1!==P.current};S.current&&!es(L.current,t)&&(L.current=t,ea.flushSync(()=>{d(t)}))})},[p,t,n,O,P]);ef(()=>{!1===u&&L.current.isPositioned&&(L.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let S=r.useRef(!1);ef(()=>(S.current=!0,()=>{S.current=!1}),[]),ef(()=>{if(b&&(A.current=b),R&&(E.current=R),b&&R){if(C.current)return C.current(b,R,D);D()}},[b,R,D,C,T]);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=ec(H.floating,c.x),r=ec(H.floating,c.y);return f?{...e,transform:"translate("+t+"px, "+r+"px)",...eu(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:D,refs:k,elements:H,floatingStyles:W}),[c,D,k,H,W])}({strategy:"fixed",placement:i+("center"!==s?"-"+s:""),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:s=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=q(e),h=a||s?[...p?z(p):[],...z(t)]:[];h.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let g=p&&c?function(e,t){let n,r=null,i=S(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:g}=e.getBoundingClientRect();if(u||t(),!h||!g)return;let m=f(p),y=f(i.clientWidth-(d+h)),w={rootMargin:-m+"px "+-y+"px "+-f(i.clientHeight-(p+g))+"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,m=-1,y=null;u&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!d&&y.observe(p),y.observe(t));let w=d?Q(e):null;return d&&function t(){let r=Q(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==g||g(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===y})},elements:{reference:v.anchor},middleware:[eh({mainAxis:a+O,alignmentAxis:u}),d&&eg({mainAxis:!0,crossAxis:!1,limiter:"partial"===g?em():void 0,...H}),d&&ey({...H}),ew({...H,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",`${r}px`),a.setProperty("--radix-popper-available-height",`${i}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${l}px`)}}),E&&ev({element:E,padding:c}),eY({arrowWidth:C,arrowHeight:O}),m&&ex({strategy:"referenceHidden",...H})]}),[_,M]=eX(j),V=(0,eT.W)(w);(0,eC.b)(()=>{I&&V?.()},[I,V]);let N=$.arrow?.x,B=$.arrow?.y,Y=$.arrow?.centerOffset!==0,[X,G]=r.useState();return(0,eC.b)(()=>{b&&G(window.getComputedStyle(b).zIndex)},[b]),(0,eR.jsx)("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:I?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[$.transformOrigin?.x,$.transformOrigin?.y].join(" "),...$.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eR.jsx)(e$,{scope:n,placedSide:_,onArrowChange:L,arrowX:N,arrowY:B,shouldHideArrow:Y,children:(0,eR.jsx)(eb.WV.div,{"data-side":_,"data-align":M,...x,ref:A,style:{...x.style,animation:I?void 0:"none"}})})})});eM.displayName=eI;var eV="PopperArrow",eN={top:"bottom",right:"left",bottom:"top",left:"right"},eB=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=e_(eV,n),o=eN[i.placedSide];return(0,eR.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,eR.jsx)(eA,{...r,ref:t,style:{...r.style,display:"block"}})})});function ez(e){return null!==e}eB.displayName=eV;var eY=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]=eX(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 eX(e){let[t,n="center"]=e.split("-");return[t,n]}var eq=eW,eG=ej,eJ=eM,eK=eB}}]);