(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,417965,e=>{"use strict";var t=e.i(16043),n=e.i(976987),r=e.i(643668),i=e.i(533124),o=e.i(997932),l=e.i(815922),f=e.i(221271),u=e.i(807257),s=e.i(132887),a=e.i(227091),c=e.i(779766),p=e.i(393298),m=e.i(516358),g=e.i(592460),d=e.i(227012),h=e.i(125573),v=e.i(254530);e.s(["f",0,function(e,y={}){let{enabled:w=!0,closeDelay:x=0,nodeId:b}=y,E=e.useState("open"),R=e.useState("floatingElement"),T=e.useState("domReferenceElement"),{dataRef:C}=e.context,P=(0,c.$)(),O=(0,c.G)(),S=(0,g.s)(e),I=(0,f.e)(),M=(0,l.f)(()=>(0,h.a)(C.current.openEvent?.type,S.interactedInside)),A=(0,l.f)(()=>(0,h.j)(C.current.openEvent?.type)),L=(0,l.f)(()=>{(0,g.O)(S)});(0,i.f)(()=>{E||(S.pointerType=void 0,S.restTimeoutPending=!1,S.interactedInside=!1,L())},[E,S,L]),t.useEffect(()=>L,[L]),(0,i.f)(()=>{if(w&&E&&S.handleCloseOptions?.blockPointerEvents&&A()&&(0,u.m)(T)&&R){let e=(0,o.f)(R),t=P?.nodesRef.current.find(e=>e.id===O)?.context?.elements.floating;t&&(t.style.pointerEvents="");let n=S.pointerEventsScopeElement!==R?S.pointerEventsScopeElement:null,r=t!==R?t:null,i=S.handleCloseOptions?.getScope?.()??n??r??(0,p.h)(T,"[data-rootownerid]")??e.body;return(0,g.p)(S,{scopeElement:i,referenceElement:T,floatingElement:R}),()=>{L()}}},[w,E,T,R,S,A,P,O,L]),t.useEffect(()=>{if(w)return(0,r.f)(R&&(0,n.f)(R,"mouseenter",function(){S.openChangeTimeout.clear(),I.clear(),P?.events.off("floating.closed",i),L()}),R&&(0,n.f)(R,"mouseleave",function(n){if(t()&&P)return void P.events.on("floating.closed",i);if((0,v.f)(n.relatedTarget,e.context.triggerElements))return;let r=C.current.floatingContext?.nodeId??b,o=n.relatedTarget;if(!(P&&r&&(0,u.m)(o)&&(0,m.Q)(P.nodesRef.current,r,!1).some(e=>(0,p.I)(e.context?.elements.floating,o)))){let t,r;if(S.handler)return void S.handler(n);L(),A()&&!M()&&(t=(0,h.c)(x,"close",S.pointerType),r=()=>{e.setOpen(!1,(0,s.j)(a.f.triggerHover,n)),P?.events.emit("floating.closed",n)},t?S.openChangeTimeout.start(t,r):(S.openChangeTimeout.clear(),r()))}}),R&&(0,n.f)(R,"pointerdown",function(e){let t=(0,p.Z)(e);if(!(0,d.W)(t)){S.interactedInside=!1;return}S.interactedInside=null!=(0,p.h)(t,"[aria-haspopup]")},!0),()=>{P?.events.off("floating.closed",i)});function t(){return!!(P&&O&&(0,m.Q)(P.nodesRef.current,O).length>0)}function i(n){!P||!O||t()||I.start(0,()=>{P.events.off("floating.closed",i),e.setOpen(!1,(0,s.j)(a.f.triggerHover,n)),P.events.emit("floating.closed",n)})}},[w,R,e,C,x,b,A,M,L,S,P,O,I])}])},592460,e=>{"use strict";var t=e.i(701018),n=e.i(480758),r=e.i(221271);e.i(227012);class i{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new r.U;restTimeout=new r.U;handleCloseOptions=void 0;static create(){return new i}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}let o=new WeakMap;function l(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&o.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),o.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}e.s(["p",0,function(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,f=o.get(n);f&&f!==e&&l(f),l(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,o.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",i.style.pointerEvents="auto"},"O",0,l,"s",0,function(e){let r=e.context.dataRef.current,o=(0,n.useRefWithInit)(()=>r.hoverInteractionState??i.create()).current;return r.hoverInteractionState||(r.hoverInteractionState=o),(0,t.f)(r.hoverInteractionState.disposeEffect),r.hoverInteractionState}])},35292,e=>{"use strict";var t=e.i(16043),n=e.i(18728),r=e.i(976987),i=e.i(643668),o=e.i(997932),l=e.i(815922),f=e.i(195845),u=e.i(807257),s=e.i(132887),a=e.i(227091),c=e.i(779766),p=e.i(393298),m=e.i(189351),g=e.i(592460),d=e.i(125573),h=e.i(254530);let v={current:null};e.s(["f",0,function(e,y={}){let{enabled:w=!0,delay:x=0,handleClose:b=null,mouseOnly:E=!1,restMs:R=0,move:T=!0,triggerElementRef:C=v,externalTree:P,isActiveTrigger:O=!0,getHandleCloseContext:S,isClosing:I,shouldOpen:M,guardStaleOpen:A=!1}=y,{dataRef:L,events:$}=e.context,k=(0,c.$)(P),H=(0,g.s)(e),D=t.useRef(!1),j=(0,f.f)(b),B=(0,f.f)(x),W=(0,f.f)(R),F=(0,f.f)(w),_=(0,f.f)(M),K=(0,f.f)(I),Z=(0,l.f)(()=>(0,d.a)(L.current.openEvent?.type,H.interactedInside)),X=(0,l.f)(()=>_.current?.()!==!1),J=(0,l.f)((t,n,r)=>{let i=e.context.triggerElements;return i.hasElement(n)?!t||!(0,p.I)(t,n):!!(0,u.m)(r)&&i.hasMatchingElement(e=>(0,p.I)(e,r))&&(!t||!(0,p.I)(t,r))}),V=(0,l.f)(()=>{H.handler&&((0,o.f)(e.select("domReferenceElement")).removeEventListener("mousemove",H.handler),H.handler=void 0)}),z=(0,l.f)(()=>{(0,g.O)(H)});return O&&(H.handleCloseOptions=b?.__options),t.useEffect(()=>V,[V]),t.useEffect(()=>{if(w)return $.on("openchange",e),()=>{$.off("openchange",e)};function e(e){e.open?D.current=!1:(D.current=e.reason===a.f.triggerHover,V(),H.openChangeTimeout.clear(),H.restTimeout.clear(),H.blockMouseMove=!0,H.restTimeoutPending=!1)}},[w,$,H,V]),t.useEffect(()=>{if(!w)return;function t(n,r=!0){let i=(0,d.c)(B.current,"close",H.pointerType);i?H.openChangeTimeout.start(i,()=>{e.setOpen(!1,(0,s.j)(a.f.triggerHover,n)),k?.events.emit("floating.closed",n)}):r&&(H.openChangeTimeout.clear(),e.setOpen(!1,(0,s.j)(a.f.triggerHover,n)),k?.events.emit("floating.closed",n))}let n=C.current??(O?e.select("domReferenceElement"):null);if(!(0,u.m)(n))return;function l(t){if(H.openChangeTimeout.clear(),H.blockMouseMove=!1,E&&!(0,m.J)(H.pointerType))return;let n=(0,d.Z)(W.current),r=(0,d.c)(B.current,"open",H.pointerType),i=(0,p.Z)(t),o=t.currentTarget??null,l=e.select("domReferenceElement"),f=o;if((0,u.m)(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if((0,p.I)(t,i)){f=t;break}}(0,u.m)(o)&&(0,u.m)(l)&&!e.context.triggerElements.hasElement(o)&&(0,p.I)(o,l)&&(f=l);let c=null!=f&&J(l,f,i),g=e.select("open"),h=K.current?.()??"ending"===e.select("transitionStatus"),v=!g&&h&&D.current,y=!c&&(0,u.m)(f)&&(0,u.m)(l)&&(0,p.I)(l,f)&&v,w=n>0&&!r,x=!g||c;if(c&&(g||v)||y){X()&&e.setOpen(!0,(0,s.j)(a.f.triggerHover,t,f));return}!w&&(r?H.openChangeTimeout.start(r,()=>{x&&X()&&e.setOpen(!0,(0,s.j)(a.f.triggerHover,t,f))}):x&&X()&&e.setOpen(!0,(0,s.j)(a.f.triggerHover,t,f)))}function f(n){if(Z())return void z();V();let r=e.select("domReferenceElement"),i=(0,o.f)(r);H.restTimeout.clear(),H.restTimeoutPending=!1;let l=L.current.floatingContext??S?.();if(!(0,h.f)(n.relatedTarget,e.context.triggerElements)){if(j.current&&l){e.select("open")||H.openChangeTimeout.clear();let r=C.current;H.handler=j.current({...l,tree:k,x:n.clientX,y:n.clientY,onClose(){z(),V(),F.current&&!Z()&&r===e.select("domReferenceElement")&&t(n,!0)}}),i.addEventListener("mousemove",H.handler),H.handler(n);return}"touch"===H.pointerType&&(0,p.I)(e.select("floatingElement"),n.relatedTarget)||t(n)}}let c=A?(0,r.f)(n,"mouseout",function(e){(0,p.I)(n,e.relatedTarget)||(H.openChangeTimeout.clear(),H.restTimeout.clear(),H.restTimeoutPending=!1)}):void 0;return T?(0,i.f)((0,r.f)(n,"mousemove",l,{once:!0}),(0,r.f)(n,"mouseenter",l),(0,r.f)(n,"mouseleave",f),c):(0,i.f)((0,r.f)(n,"mouseenter",l),(0,r.f)(n,"mouseleave",f),c)},[V,z,L,B,e,w,j,H,O,J,Z,E,T,W,C,k,F,S,K,X,A]),t.useMemo(()=>{if(w)return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:r}=t,i=t.currentTarget,o=e.select("domReferenceElement"),l=e.select("open"),f=J(o,i,t.target);if(E&&!(0,m.J)(H.pointerType))return;if(l&&f&&H.handleCloseOptions?.blockPointerEvents){let t=e.select("floatingElement");if(t){let e=H.handleCloseOptions?.getScope?.()??i.ownerDocument.body;(0,g.p)(H,{scopeElement:e,referenceElement:i,floatingElement:t})}}let u=(0,d.Z)(W.current);function c(){if(H.restTimeoutPending=!1,Z())return;let t=e.select("open");!H.blockMouseMove&&(!t||f)&&X()&&e.setOpen(!0,(0,s.j)(a.f.triggerHover,r,i))}(!l||f)&&0!==u&&(!f&&H.restTimeoutPending&&t.movementX**2+t.movementY**2<2||(H.restTimeout.clear(),"touch"===H.pointerType?n.flushSync(()=>{c()}):f&&l?c():(H.restTimeoutPending=!0,H.restTimeout.start(u,c))))}};function t(e){H.pointerType=e.pointerType}},[w,H,Z,J,E,e,W,X])}])},125573,e=>{"use strict";var t=e.i(189351);e.s(["c",0,function(e,n,r){let i=null==r||(0,t.J)(r)?"function"==typeof e?e():e:0;return"number"==typeof i?i:i?.[n]},"Z",0,function(e){return"function"==typeof e?e():e},"a",0,function(e,t){return t||"click"===e||"mousedown"===e},"j",0,function(e){return e?.includes("mouse")&&"mousedown"!==e}])},745576,e=>{"use strict";var t=e.i(807257),n=e.i(221271),r=e.i(393298),i=e.i(516358);let o=.1*.1;function l(e,t,n,r,i,o){return r>=t!=o>=t&&e<=(i-n)*(t-r)/(o-r)+n}function f(e,t,n,r,i,o,f,u,s,a){let c=!1;return l(e,t,n,r,i,o)&&(c=!c),l(e,t,i,o,f,u)&&(c=!c),l(e,t,f,u,s,a)&&(c=!c),l(e,t,s,a,n,r)&&(c=!c),c}function u(e,t,n,r,i,o){let l=Math.min(n,i),f=Math.max(n,i),u=Math.min(r,o),s=Math.max(r,o);return e>=l&&e<=f&&t>=u&&t<=s}e.s(["f",0,function(e={}){let{blockPointerEvents:l=!1}=e,s=new n.U,a=({x:e,y:n,placement:l,elements:a,onClose:c,nodeId:p,tree:m})=>{let g=l?.split("-")[0],d=!1,h=null,v=null,y="u">typeof performance?performance.now():0;return function(l){s.clear();let w=a.domReference,x=a.floating;if(!w||!x||null==g||null==e||null==n)return;let{clientX:b,clientY:E}=l,R=(0,r.Z)(l),T="mouseleave"===l.type,C=(0,r.I)(x,R),P=(0,r.I)(w,R);if(C&&(d=!0,!T))return;if(P&&(d=!1,!T)){d=!0;return}if(T&&(0,t.m)(l.relatedTarget)&&(0,r.I)(x,l.relatedTarget))return;function O(){return!!(m&&(0,i.Q)(m.nodesRef.current,p).length>0)}function S(){O()||(s.clear(),c())}if(O())return;let I=w.getBoundingClientRect(),M=x.getBoundingClientRect(),A=e>M.right-M.width/2,L=n>M.bottom-M.height/2,$=M.width>I.width,k=M.height>I.height,H=($?I:M).left,D=($?I:M).right,j=(k?I:M).top,B=(k?I:M).bottom;if("top"===g&&n>=I.bottom-1||"bottom"===g&&n<=I.top+1||"left"===g&&e>=I.right-1||"right"===g&&e<=I.left+1)return void S();let W=!1;switch(g){case"top":W=u(b,E,H,I.top+1,D,M.bottom-1);break;case"bottom":W=u(b,E,H,M.top+1,D,I.bottom-1);break;case"left":W=u(b,E,M.right-1,B,I.left+1,j);break;case"right":W=u(b,E,I.right-1,B,M.left+1,j)}if(W)return;if(d&&(!(b>=I.x)||!(b<=I.x+I.width)||!(E>=I.y)||!(E<=I.y+I.height))||!T&&function(e,t){let n=performance.now(),r=n-y;if(null===h||null===v||0===r)return h=e,v=t,y=n,!1;let i=e-h,l=t-v;return h=e,v=t,y=n,i*i+l*l{"use strict";var t=e.i(227012);e.s(["f",()=>t.x])},269098,e=>{"use strict";var t=e.i(16043);let n=t.createContext(void 0);e.s(["f",0,function(){let e=t.useContext(n);return e?.direction??"ltr"}])},182578,e=>{"use strict";var t=e.i(115370),n=e.i(510043);e.s(["f",0,function(e){return"starting"===e?n.e:t.w}])},702643,136435,729640,439513,e=>{"use strict";var t=e.i(16043),n=e.i(582247),r=e.i(997932),i=e.i(223732),o=e.i(533124),l=e.i(195845),f=e.i(815922);function u(e,t,r){let i,{reference:o,floating:l}=e,f=(0,n.$)(t),u=(0,n.i)(t),s=(0,n.T)(u),a=(0,n.m)(t),c=o.x+o.width/2-l.width/2,p=o.y+o.height/2-l.height/2,m=o[s]/2-l[s]/2;switch(a){case"top":i={x:c,y:o.y-l.height};break;case"bottom":i={x:c,y:o.y+o.height};break;case"right":i={x:o.x+o.width,y:p};break;case"left":i={x:o.x-l.width,y:p};break;default:i={x:o.x,y:o.y}}let g=(0,n.R)(t);return g&&(i[u]+=m*("end"===g?1:-1)*(r&&"y"===f?-1:1)),i}async function s(e,t){var r;void 0===t&&(t={});let{x:i,y:o,platform:l,rects:f,elements:u,strategy:s}=e,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=(0,n.h)(t,e),d=(0,n.j)(g),h=u[m?"floating"===p?"reference":"floating":p],v=(0,n._)(await l.getClippingRect({element:null==(r=await (null==l.isElement?void 0:l.isElement(h)))||r?h:h.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(u.floating)),boundary:a,rootBoundary:c,strategy:s})),y="floating"===p?{x:i,y:o,width:f.floating.width,height:f.floating.height}:f.reference,w=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u.floating)),x=await (null==l.isElement?void 0:l.isElement(w))&&await (null==l.getScale?void 0:l.getScale(w))||{x:1,y:1},b=(0,n._)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:y,offsetParent:w,strategy:s}):y);return{top:(v.top-b.top+d.top)/x.y,bottom:(b.bottom-v.bottom+d.bottom)/x.y,left:(v.left-b.left+d.left)/x.x,right:(b.right-v.right+d.right)/x.x}}let a=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,f=l.detectOverflow?l:{...l,detectOverflow:s},a=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:m}=u(c,r,a),g=r,d=0,h={};for(let n=0;ne[t]>=0)}function m(e){let t=(0,n.u)(...e.map(e=>e.left)),r=(0,n.u)(...e.map(e=>e.top));return{x:t,y:r,width:(0,n.y)(...e.map(e=>e.right))-t,height:(0,n.y)(...e.map(e=>e.bottom))-r}}let g=new Set(["left","top"]);async function d(e,t){let{placement:r,platform:i,elements:o}=e,l=await (null==i.isRTL?void 0:i.isRTL(o.floating)),f=(0,n.m)(r),u=(0,n.R)(r),s="y"===(0,n.$)(r),a=g.has(f)?-1:1,c=l&&s?-1:1,p=(0,n.h)(t,e),{mainAxis:m,crossAxis:d,alignmentAxis:h}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&"number"==typeof h&&(d="end"===u?-1*h:h),s?{x:d*c,y:m*a}:{x:m*a,y:d*c}}var h=e.i(807257);function v(e){let t=(0,h.X)(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,o=(0,h.E)(e),l=o?e.offsetWidth:r,f=o?e.offsetHeight:i,u=(0,n.H)(r)!==l||(0,n.H)(i)!==f;return u&&(r=l,i=f),{width:r,height:i,$:u}}function y(e){return(0,h.m)(e)?e:e.contextElement}function w(e){let t=y(e);if(!(0,h.E)(t))return(0,n.I)(1);let r=t.getBoundingClientRect(),{width:i,height:o,$:l}=v(t),f=(l?(0,n.H)(r.width):r.width)/i,u=(l?(0,n.H)(r.height):r.height)/o;return f&&Number.isFinite(f)||(f=1),u&&Number.isFinite(u)||(u=1),{x:f,y:u}}let x=(0,n.I)(0);function b(e){let t=(0,h.K)(e);return(0,h.i)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:x}function E(e,t,r,i){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let l=e.getBoundingClientRect(),f=y(e),u=(0,n.I)(1);t&&(i?(0,h.m)(i)&&(u=w(i)):u=w(e));let s=(void 0===(o=r)&&(o=!1),i&&o&&i===(0,h.K)(f))?b(f):(0,n.I)(0),a=(l.left+s.x)/u.x,c=(l.top+s.y)/u.y,p=l.width/u.x,m=l.height/u.y;if(f&&i){let e=(0,h.K)(f),t=(0,h.m)(i)?(0,h.K)(i):i,n=e,r=(0,h.w)(n);for(;r&&t!==n;){let e=w(r),t=r.getBoundingClientRect(),i=(0,h.X)(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;a*=e.x,c*=e.y,p*=e.x,m*=e.y,a+=o,c+=l,n=(0,h.K)(r),r=(0,h.w)(n)}}return(0,n._)({width:p,height:m,x:a,y:c})}function R(e,t){let n=(0,h.Q)(e).scrollLeft;return t?t.left+n:E((0,h.I)(e)).left+n}function T(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-R(e,n),y:n.top+t.scrollTop}}function C(e,t,r){var i;let o;if("viewport"===t||"layoutViewport"===t)o=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=(0,h.K)(e),o=(0,h.I)(e),l=i.visualViewport,f=o.clientWidth,u=o.clientHeight,s=0,a=0;if(l){let e=!(0,h.i)()||"fixed"===t;r?e||(s=-l.offsetLeft,a=-l.offsetTop):(f=l.width,u=l.height,e&&(s=l.offsetLeft,a=l.offsetTop))}if(0>=R(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;l<=25&&(f-=l)}return{width:f,height:u,x:s,y:a}}(e,r,t);else if("document"===t){let t,r,l,f,u,s;i=(0,h.I)(e),t=(0,h.Q)(i),r=i.ownerDocument.body,l=(0,n.y)(i.scrollWidth,i.clientWidth,r.scrollWidth,r.clientWidth),f=(0,n.y)(i.scrollHeight,i.clientHeight,r.scrollHeight,r.clientHeight),u=-t.scrollLeft+R(i),s=-t.scrollTop,"rtl"===(0,h.X)(r).direction&&(u+=(0,n.y)(i.clientWidth,r.clientWidth)-l),o={width:l,height:f,x:u,y:s}}else if((0,h.m)(t)){let e,n,i,l,f,u;n=(e=E(t,!0,"fixed"===r)).top+t.clientTop,i=e.left+t.clientLeft,l=w(t),f=t.clientWidth*l.x,u=t.clientHeight*l.y,o={width:f,height:u,x:i*l.x,y:n*l.y}}else{let n=b(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,n._)(o)}function P(e){return"static"===(0,h.X)(e).position}function O(e,t){if(!(0,h.E)(e)||"fixed"===(0,h.X)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,h.I)(e)===n&&(n=n.ownerDocument.body),n}function S(e,t){let n=(0,h.K)(e);if((0,h.D)(e))return n;if(!(0,h.E)(e)){let t=(0,h.J)(e);for(;t&&!(0,h.Z)(t);){if((0,h.m)(t)&&!P(t))return t;t=(0,h.J)(t)}return n}let r=O(e,t);for(;r&&(0,h.S)(r)&&P(r);)r=O(r,t);return r&&(0,h.Z)(r)&&P(r)&&!(0,h.e)(r)?n:r||(0,h.f)(e)||n}let I=async function(e){let t=this.getOffsetParent||S,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,t,r){let i=(0,h.E)(t),o=(0,h.I)(t),l="fixed"===r,f=E(e,!0,l,t),u={scrollLeft:0,scrollTop:0},s=(0,n.I)(0);if((i||!l)&&(("body"!==(0,h.A)(t)||(0,h.B)(o))&&(u=(0,h.Q)(t)),i)){let e=E(t,!0,l,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}!i&&o&&(s.x=R(o));let a=!o||i||l?(0,n.I)(0):T(o,u);return{x:f.left+u.scrollLeft-s.x-a.x,y:f.top+u.scrollTop-s.y-a.y,width:f.width,height:f.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},M={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:i,strategy:o}=e,l="fixed"===o,f=(0,h.I)(i),u=!!t&&(0,h.D)(t.floating);if(i===f||u&&l)return r;let s={scrollLeft:0,scrollTop:0},a=(0,n.I)(1),c=(0,n.I)(0),p=(0,h.E)(i);if((p||!l)&&(("body"!==(0,h.A)(i)||(0,h.B)(f))&&(s=(0,h.Q)(i)),p)){let e=E(i);a=w(i),c.x=e.x+i.clientLeft,c.y=e.y+i.clientTop}let m=!f||p||l?(0,n.I)(0):T(f,s);return{width:r.width*a.x,height:r.height*a.y,x:r.x*a.x-s.scrollLeft*a.x+c.x+m.x,y:r.y*a.y-s.scrollTop*a.y+c.y+m.y}},getDocumentElement:h.I,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:o}=e,l=[..."clippingAncestors"===r?(0,h.D)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,h.G)(e,[],!1).filter(e=>(0,h.m)(e)&&"body"!==(0,h.A)(e)),i=null,o="fixed"===(0,h.X)(e).position,l=o?(0,h.J)(e):e;for(;(0,h.m)(l)&&!(0,h.Z)(l);){let e=(0,h.X)(l),t=(0,h.e)(l),n=i?i.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==l),l=(0,h.J)(l)}return t.set(e,r),r}(t,this._c):[].concat(r),i],f=C(t,l[0],o),u=f.top,s=f.right,a=f.bottom,c=f.left;for(let e=1;e{l&&e.addEventListener("scroll",r),f&&e.addEventListener("resize",r)});let m=c&&s?function(e,t,r){let i,o=null,l=(0,h.I)(e);function f(){var e;clearTimeout(i),null==(e=o)||e.disconnect(),o=null}function u(r,s){void 0===r&&(r=!1),void 0===s&&(s=1),f();let a=e.getBoundingClientRect(),{left:c,top:p,width:m,height:g}=a;if(r||t(),!m||!g)return;let d={rootMargin:-(0,n.w)(p)+"px "+-(0,n.w)(l.clientWidth-(c+m))+"px "+-(0,n.w)(l.clientHeight-(p+g))+"px "+-(0,n.w)(c)+"px",threshold:(0,n.y)(0,(0,n.u)(1,s))||1},h=!0;function v(t){let n=t[0].intersectionRatio;if(!A(a,e.getBoundingClientRect()))return u();if(n!==s){if(!h)return u();n?u(!1,n):i=setTimeout(()=>{u(!1,1e-7)},1e3)}h=!1}try{o=new IntersectionObserver(v,{...d,root:l.ownerDocument})}catch(e){o=new IntersectionObserver(v,d)}o.observe(e)}let s=(0,h.K)(e),a=()=>u(r);return s.addEventListener("resize",a),u(!0),()=>{s.removeEventListener("resize",a),f()}}(c,r,f):null,g=-1,d=null;u&&(d=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&d&&t&&(d.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=d)||e.observe(t)})),r()}),c&&!a&&d.observe(c),t&&d.observe(t));let v=a?E(e):null;return a&&function t(){let n=E(e);v&&!A(v,n)&&r(),v=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;p.forEach(e=>{l&&e.removeEventListener("scroll",r),f&&e.removeEventListener("resize",r)}),null==m||m(),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(o)}}let $=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:f}=t,u=await d(t,e);return l===(null==(n=f.offset)?void 0:n.placement)&&null!=(r=f.arrow)&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:l}}}}},k=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:o,platform:l}=t,{mainAxis:f=!0,crossAxis:u=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=(0,n.h)(e,t),c={x:r,y:i},p=await l.detectOverflow(t,a),m=(0,n.$)(o),g=(0,n.J)(m),d=c[g],h=c[m],v=(e,t)=>(0,n.O)(t+p["y"===e?"top":"left"],t,t-p["y"===e?"bottom":"right"]);f&&(d=v(g,d)),u&&(h=v(m,h));let y=s.fn({...t,[g]:d,[m]:h});return{...y,data:{x:y.x-r,y:y.y-i,enabled:{[g]:f,[m]:u}}}}}},H=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,i,o,l,f;let{placement:u,middlewareData:s,rects:a,initialPlacement:c,platform:p,elements:m}=t,{mainAxis:g=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:w=!0,...x}=(0,n.h)(e,t);if(null!=(r=s.arrow)&&r.alignmentOffset)return{};let b=(0,n.m)(u),E=(0,n.$)(c),R=(0,n.m)(c)===c,T=await (null==p.isRTL?void 0:p.isRTL(m.floating)),C=h||(R||!w?[(0,n.t)(c)]:(0,n.P)(c)),P="none"!==y;!h&&P&&C.push(...(0,n.K)(c,w,y,T));let O=[c,...C],S=await p.detectOverflow(t,x),I=[],M=(null==(i=s.flip)?void 0:i.overflows)||[];if(g&&I.push(S[b]),d){let e=(0,n.N)(u,a,T);I.push(S[e[0]],S[e[1]])}if(M=[...M,{placement:u,overflows:I}],!I.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=O[e];if(t&&("alignment"!==d||E===(0,n.$)(t)||M.every(e=>(0,n.$)(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let r=null==(l=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!r)switch(v){case"bestFit":{let e=null==(f=M.filter(e=>{if(P){let t=(0,n.$)(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:f[0];e&&(r=e);break}case"initialPlacement":r=c}if(u!==r)return{reset:{placement:r}}}return{}}}},D=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let r,i,{placement:o,rects:l,platform:f,elements:u}=t,{apply:s=()=>{},...a}=(0,n.h)(e,t),c=await f.detectOverflow(t,a),p=(0,n.m)(o),m=(0,n.R)(o),g="y"===(0,n.$)(o),{width:d,height:h}=l.floating;"top"===p||"bottom"===p?(r=p,i=m===(await (null==f.isRTL?void 0:f.isRTL(u.floating))?"start":"end")?"left":"right"):(i=p,r="end"===m?"top":"bottom");let v=h-c.top-c.bottom,y=d-c.left-c.right,w=(0,n.u)(h-c[r],v),x=(0,n.u)(d-c[i],y),b=t.middlewareData.shift,E=!b,R=w,T=x;null!=b&&b.enabled.x&&(T=y),null!=b&&b.enabled.y&&(R=v),E&&!m&&(g?T=d-2*(0,n.y)(c.left,c.right):R=h-2*(0,n.y)(c.top,c.bottom)),await s({...t,availableWidth:T,availableHeight:R});let C=await f.getDimensions(u.floating);return d!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}},j=function(e){return void 0===e&&(e={}),{options:e,fn(t){var r,i,o,l;let{x:f,y:u,placement:s,rects:a,middlewareData:c}=t,{offset:p=0,mainAxis:m=!0,crossAxis:d=!0}=(0,n.h)(e,t),h={x:f,y:u},v=(0,n.$)(s),y=(0,n.J)(v),w=h[y],x=h[v],b=(0,n.h)(p,t),E="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(r=b.mainAxis)?r:0,crossAxis:null!=(i=b.crossAxis)?i:0};if(m){let e="y"===y?"height":"width",t=a.reference[y]-a.floating[e]+E.mainAxis,n=a.reference[y]+a.reference[e]-E.mainAxis;wn&&(w=n)}if(d){let e="y"===y?"width":"height",t=g.has((0,n.m)(s)),r=a.reference[v]-a.floating[e]+(t&&(null==(o=c.offset)?void 0:o[v])||0)+(t?0:E.crossAxis),i=a.reference[v]+a.reference[e]+(t?0:(null==(l=c.offset)?void 0:l[v])||0)-(t?E.crossAxis:0);xi&&(x=i)}return{[y]:w,[v]:x}}}},B=(e,t,n)=>{let r=new Map,i=null!=n?n:{},o={...M,...i.platform,_c:r};return a(e,t,{...i,platform:o})};e.s(["P",0,e=>({name:"arrow",options:e,async fn(t){let{x:r,y:i,placement:o,rects:l,platform:f,elements:u,middlewareData:s}=t,{element:a,padding:c=0}=(0,n.h)(e,t)||{};if(null==a)return{};let p=(0,n.j)(c),m={x:r,y:i},g=(0,n.i)(o),d=(0,n.T)(g),h=await f.getDimensions(a),v="y"===g,y=v?"clientHeight":"clientWidth",w=l.reference[d]+l.reference[g]-m[g]-l.floating[d],x=m[g]-l.reference[g],b=await (null==f.getOffsetParent?void 0:f.getOffsetParent(a)),E=b?b[y]:0;E&&await (null==f.isElement?void 0:f.isElement(b))||(E=u.floating[y]||l.floating[d]);let R=E/2-h[d]/2-1,T=(0,n.u)(p[v?"top":"left"],R),C=(0,n.u)(p[v?"bottom":"right"],R),P=E-h[d]-C,O=E/2-h[d]/2+(w/2-x/2),S=(0,n.O)(T,O,P),I=!s.arrow&&null!=(0,n.R)(o)&&O!==S&&l.reference[d]/2-(O(0,n.R)(e)===l),...g.filter(e=>(0,n.R)(e)!==l)]:g.filter(e=>(0,n.m)(e)===e)).filter(e=>!l||(0,n.R)(e)===l||!!d&&(0,n.o)(e)!==e):g,y=(null==(r=u.autoPlacement)?void 0:r.index)||0,w=v[y];if(null==w)return{};if(s!==w)return{reset:{placement:v[0]}};let x=await a.detectOverflow(t,h),b=(0,n.N)(w,f,await (null==a.isRTL?void 0:a.isRTL(c.floating))),E=[x[(0,n.m)(w)],x[b[0]],x[b[1]]],R=[...(null==(i=u.autoPlacement)?void 0:i.overflows)||[],{placement:w,overflows:E}],T=v[y+1];if(T)return{data:{index:y+1,overflows:R},reset:{placement:T}};let C=R.map(e=>{let t=(0,n.R)(e.placement);return[e.placement,t&&p?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),P=(null==(o=C.filter(e=>e[2].slice(0,(0,n.R)(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||C[0][0];return P!==s?{data:{index:y+1,overflows:R},reset:{placement:P}}:{}}}},"n",0,L,"A",0,B,"x",0,H,"c",0,function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r,platform:i}=t,{strategy:o="referenceHidden",...l}=(0,n.h)(e,t);switch(o){case"referenceHidden":{let e=c(await i.detectOverflow(t,{...l,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:p(e)}}}case"escaped":{let e=c(await i.detectOverflow(t,{...l,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:p(e)}}}default:return{}}}}},"g",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:r,elements:i,rects:o,platform:l,strategy:f}=t,{padding:u=2,x:s,y:a}=(0,n.h)(e,t),c=Array.from(await (null==l.getClientRects?void 0:l.getClientRects(i.reference))||[]);if(!c.length)return{};let p=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),r=[],i=null;for(let e=0;ei.height/2?r.push([n]):r[r.length-1].push(n),i=n}return r.map(e=>(0,n._)(m(e)))}(c),g=(0,n._)(m(c)),d=(0,n.j)(u),h=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&(p[0].left>p[1].right||p[1].left>p[0].right)&&null!=s&&null!=a)return p.find(e=>s>e.left-d.left&&se.top-d.top&&a=2){if("y"===(0,n.$)(r)){let e=p[0],t=p[p.length-1],i="top"===(0,n.m)(r),o=e.top,l=t.bottom,f=i?e.left:t.left,u=i?e.right:t.right;return(0,n._)({x:f,y:o,width:u-f,height:l-o})}let e="left"===(0,n.m)(r),t=(0,n.y)(...p.map(e=>e.right)),i=(0,n.u)(...p.map(e=>e.left)),o=p.filter(n=>e?n.left===i:n.right===t),l=o[0].top,f=o[o.length-1].bottom;return(0,n._)({x:i,y:l,width:t-i,height:f-l})}return g}},floating:i.floating,strategy:f});return o.reference.x!==h.reference.x||o.reference.y!==h.reference.y||o.reference.width!==h.reference.width||o.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},"o",0,j,"T",0,$,"q",0,M,"e",0,k,"r",0,D],136435);var W=e.i(18728),F="u">typeof document?t.useLayoutEffect:function(){};function _(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(!_(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)&&!_(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function K(e){return"u"{n.current=e}),n}var J=e.i(779766);function V(e){let{nodeId:n,externalTree:r,rootContext:i}=e,l=i.useState("referenceElement"),f=i.useState("floatingElement"),u=i.useState("domReferenceElement"),s=i.useState("open"),a=i.useState("floatingId"),[c,p]=t.useState(null),m=t.useRef(null),g=(0,J.$)(r),d=t.useMemo(()=>({reference:l,floating:f,domReference:u}),[l,f,u]),v=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:f}={},transform:u=!0,whileElementsMounted:s,open:a}=e,[c,p]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,g]=t.useState(i);_(m,i)||g(i);let[d,h]=t.useState(null),[v,y]=t.useState(null),w=t.useCallback(e=>{e!==R.current&&(R.current=e,h(e))},[]),x=t.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),b=l||d,E=f||v,R=t.useRef(null),T=t.useRef(null),C=t.useRef(c),P=null!=s,O=X(s),S=X(o),I=X(a),M=t.useCallback(()=>{if(!R.current||!T.current)return;let e={placement:n,strategy:r,middleware:m};S.current&&(e.platform=S.current),B(R.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==I.current};A.current&&!_(C.current,t)&&(C.current=t,W.flushSync(()=>{p(t)}))})},[m,n,r,S,I]);F(()=>{!1===a&&C.current.isPositioned&&(C.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[a]);let A=t.useRef(!1);F(()=>(A.current=!0,()=>{A.current=!1}),[]),F(()=>{if(b&&(R.current=b),E&&(T.current=E),b&&E){if(O.current)return O.current(b,E,M);M()}},[b,E,M,O,P]);let L=t.useMemo(()=>({reference:R,floating:T,setReference:w,setFloating:x}),[w,x]),$=t.useMemo(()=>({reference:b,floating:E}),[b,E]),k=t.useMemo(()=>{let e={position:r,left:0,top:0};if(!$.floating)return e;let t=Z($.floating,c.x),n=Z($.floating,c.y);return u?{...e,transform:"translate("+t+"px, "+n+"px)",...K($.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,u,$.floating,c.x,c.y]);return t.useMemo(()=>({...c,update:M,refs:L,elements:$,floatingStyles:k}),[c,M,L,$,k])}({...e,elements:{...d,...c&&{reference:c}}}),y=t.useCallback(e=>{let t=(0,h.m)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;p(t),v.refs.setReference(t)},[v.refs]),w=t.useMemo(()=>({...v.refs,setPositionReference:y,domReference:m}),[v.refs,y]),x=t.useMemo(()=>({...v.elements,domReference:u}),[v.elements,u]),b=t.useMemo(()=>({...v,dataRef:i.context.dataRef,open:s,onOpenChange:i.setOpen,events:i.context.events,floatingId:a,refs:w,elements:x,nodeId:n,rootStore:i}),[v,w,x,n,i,s,a]);return(0,o.f)(()=>{u&&(m.current=u)},[u]),(0,o.f)(()=>{i.context.dataRef.current.floatingContext=b;let e=g?.nodesRef.current.find(e=>e.id===n);e&&(e.context=b)}),t.useMemo(()=>({...v,context:b,refs:w,elements:x,rootStore:i}),[v,w,x,b,i])}e.s(["f",0,V],729640);var z=e.i(269098);let U={name:"hide",async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,o=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||0===t&&0===n&&0===r&&0===i}}}},Q={sideX:"left",sideY:"top"};e.s(["f",0,Q],439513);let G="--available-width",N="--available-height";function q(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function Y(e,t,r){let{rects:i,placement:o}=e;return{side:q(t,(0,n.m)(o),r),align:(0,n.R)(o)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function ee(e,u){var s,a,c,p,m,g,d;let h,v,y,w,{anchor:x,positionMethod:b="absolute",side:E="bottom",sideOffset:R=0,align:T="center",alignOffset:C=0,collisionBoundary:P,collisionPadding:O=5,sticky:S=!1,arrowPadding:I=5,disableAnchorTracking:M=!1,inline:A,keepMounted:B=!1,floatingRootContext:W,mounted:F,collisionAvoidance:_,shift:K,nodeId:Z,adaptiveOrigin:X,lazyFlip:J=!1,externalTree:V}=e,ee=_.side||"flip",en=_.align||"flip",er=_.fallbackAxisSide||"end",ei=K?.crossAxis??!1,eo=K?.rootBoundary,el="function"==typeof x?x:void 0,ef=(0,f.f)(el),eu=el?ef:x,es=(0,l.f)(x),ea=(0,l.f)(F),ec="rtl"===(0,z.f)(),[ep,em]=t.useState(null);F||null===ep||em(null);let eg="placement"===J,ed=ep?(0,n.m)(ep):null,eh=ep&&eg?(0,n.R)(ep)||"center":null,ev=ed||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ec?"left":"right","inline-start":ec?"right":"left"})[E],ey=eh||T,ew="center"===ey?ev:`${ev}-${ey}`,ex=O;"number"==typeof ex?ex={top:ex,right:ex,bottom:ex,left:ex}:ex&&(ex={top:ex.top||0,right:ex.right||0,bottom:ex.bottom||0,left:ex.left||0});let eb=+("bottom"===E),eE=+("top"===E),eR=+("right"===E),eT=+("left"===E),eC={boundary:"clipping-ancestors"===P?"clippingAncestors":P,padding:ex},eP=t.useRef(null),eO=(0,l.f)(R),eS=(0,l.f)(C),eI=[];A&&eI.push(A),eI.push((s=e=>{let t=Y(e,E,ec),n="function"==typeof eO.current?eO.current(t):eO.current,r="function"==typeof eS.current?eS.current(t):eS.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},a=["function"!=typeof R?R:0,"function"!=typeof C?C:0,ec,E],{name:(h=$(s)).name,fn:h.fn,options:[s,a]}));let eM="none"===en&&"shift"!==ee,eA=!eM&&(S||ei||"shift"===ee),eL="none"===ee?null:{name:(v=H(c={...eC,padding:{top:ex.top+1+eb,right:ex.right+1+eT,bottom:ex.bottom+1+eE,left:ex.left+1+eR},mainAxis:!ei&&"flip"===ee,crossAxis:"flip"===en&&"alignment",fallbackAxisSideDirection:er})).name,fn:v.fn,options:[c,void 0]},e$=eM?null:(m={...eC,rootBoundary:eo,mainAxis:"none"!==en,crossAxis:eA,limiter:S||ei?void 0:{fn:j(p=e=>{if(!eP.current)return{};let{width:t,height:r}=eP.current.getBoundingClientRect(),i=(0,n.$)((0,n.m)(e.placement)),o="y"===i?ex.left+ex.right:ex.top+ex.bottom;return{offset:("y"===i?t:r)/2+o/2}}).fn,options:[p,void 0]}},g=[eC,S,ei,eo,ex,en],{name:(y=k(m)).name,fn:y.fn,options:[m,g]});"shift"===ee||"shift"===en||"center"===ey?eI.push(e$,eL):eI.push(eL,e$),eI.push({name:(w=D(d={...eC,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!ea.current)return;let o=e.style;o.setProperty(G,`${t}px`),o.setProperty(N,`${n}px`);let l=(0,i.f)(e).devicePixelRatio||1,{x:f,y:u,width:s,height:a}=r.reference,c=(Math.round((f+s)*l)-Math.round(f*l))/l,p=(Math.round((u+a)*l)-Math.round(u*l))/l;o.setProperty("--anchor-width",`${c}px`),o.setProperty("--anchor-height",`${p}px`)}})).name,fn:w.fn,options:[d,void 0]},((e,t)=>{let{name:r,fn:i}={name:"arrow",options:e,async fn(t){let{x:r,y:i,placement:o,rects:l,platform:f,elements:u,middlewareData:s}=t,{element:a,padding:c=0}=(0,n.h)(e,t)||{};if(null==a)return{};let p=(0,n.j)(c),m={x:r,y:i},g=(0,n.i)(o),d=(0,n.T)(g),h=await f.getDimensions(a),v="y"===g,y=l.reference[d]+l.reference[g]-m[g]-l.floating[d],w=m[g]-l.reference[g],x=u.floating[v?"clientHeight":"clientWidth"]||l.floating[d],b=x/2-h[d]/2-1,E=Math.min(p[v?"top":"left"],b),R=Math.min(p[v?"bottom":"right"],b),T=x-h[d]-R,C=x/2-h[d]/2+(y/2-w/2),P=(0,n.O)(E,C,T),O=!s.arrow&&null!=(0,n.R)(o)&&C!==P&&l.reference[d]/2-(C({element:eP.current||(0,r.f)(e.elements.floating).createElement("div"),padding:eP.current?I:0}),[I]),{name:"transformOrigin",fn(e){let t,{elements:{floating:r},middlewareData:i,placement:o,platform:l,rects:f,y:u}=e,s=(0,n.m)(o),a=(0,n.R)(o),c="y"===(0,n.$)(s),p=eP.current,m="function"==typeof R?R(Y(e,E,ec)):R;if(!p&&a&&1>=Math.abs(c?i.shift?.x||0:i.shift?.y||0))t="start"===a===(c&&l.isRTL?.(r)===!0)?"100%":"0%";else{let e=c?i.arrow?.x||0:i.arrow?.y||0,n=c?p?.clientWidth||0:p?.clientHeight||0;t=`${e+n/2}px`}let g="top"===s||"left"===s?`calc(100% + ${m}px)`:`${-m}px`;return eA&&c&&Math.abs(i.shift?.y||0)>m&&(g=`${f.reference.y+f.reference.height/2-u}px`),r.style.setProperty("--transform-origin",c?`${t} ${g}`:`${g} ${t}`),{}}},U,X),(0,o.f)(()=>{!F&&W&&W.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[F,W]);let ek=t.useMemo(()=>({ancestorScroll:!M,elementResize:!M&&"u">typeof ResizeObserver,layoutShift:!M&&"u">typeof IntersectionObserver}),[M]),{refs:eH,elements:eD,x:ej,y:eB,middlewareData:eW,update:eF,placement:e_,context:eK,isPositioned:eZ,floatingStyles:eX}=u({rootContext:W,open:B?F:void 0,placement:ew,middleware:eI,strategy:b,whileElementsMounted:B?void 0:(...e)=>L(...e,ek),nodeId:Z,externalTree:V}),{sideX:eJ,sideY:eV}=eW.adaptiveOrigin||Q,ez=eZ?b:"fixed",eU=t.useMemo(()=>{let e;return(e=eZ?X?{position:ez,[eJ]:ej,[eV]:eB}:{...eX,position:ez}:{position:ez,top:0,left:0})[G]="100vw",e[N]="100vh",eZ||(e.opacity=0),e},[X,ez,eJ,ej,eV,eB,eX,eZ]),eQ=t.useRef(null);(0,o.f)(()=>{if(!F)return;let e=es.current,t="function"==typeof e?e():e,n=(et(t)?t.current:t)||null;n!==eQ.current&&(eH.setPositionReference(n),eQ.current=n)},[F,eH,eu,es]),t.useEffect(()=>{if(!F)return;let e=es.current;"function"!=typeof e&&et(e)&&e.current!==eQ.current&&(eH.setPositionReference(e.current),eQ.current=e.current)},[F,eH,eu,es]),t.useEffect(()=>{if(B&&F&&eD.reference&&eD.floating)return L(eD.reference,eD.floating,eF,ek)},[B,F,eD,eF,ek]);let eG=(0,n.m)(e_),eN=q(E,eG,ec),eq=(0,n.R)(e_)||"center",eY=!!eW.hide?.referenceHidden;(0,o.f)(()=>{J&&F&&eZ&&(eG!==ev||eg&&eq!==ey)&&em(e_)},[J,eg,F,eZ,e_,eG,eq,ev,ey]);let e0=t.useMemo(()=>({position:"absolute",top:eW.arrow?.y,left:eW.arrow?.x}),[eW.arrow]),e1=eW.arrow?.centerOffset!==0;return t.useMemo(()=>({positionerStyles:eU,arrowStyles:e0,arrowRef:eP,arrowUncentered:e1,side:eN,align:eq,physicalSide:eG,anchorHidden:eY,refs:eH,context:eK,isPositioned:eZ,update:eF}),[eU,e0,eP,e1,eN,eq,eG,eY,eH,eK,eZ,eF])}function et(e){return null!=e&&"current"in e}e.s(["k",0,function(e){return ee(e,V)},"i",0,ee],702643)},871812,710955,e=>{"use strict";var t=e.i(115370),n=e.i(695568);let r=e=>e.triggerIdProp??e.activeTriggerId,i=e=>e.openProp??e.open,o=e=>(e.popupElement?.id??e.floatingId)||void 0;function l(e,t){return void 0!==t&&i(e)&&r(e)===t}e.s(["i",0,function(e,r,i=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new n.f({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:r,syncOnly:!0,nested:i,onOpenChange:void 0}),floatingId:r,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:t.w,inactiveTriggerProps:t.w,popupProps:t.w}},"j",0,{open:i,mounted:e=>e.mounted,transitionStatus:e=>i(e)&&!e.mounted?"starting":e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:r,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:o,isTriggerActive:(e,t)=>void 0!==t&&r(e)===t,isOpenedByTrigger:(e,t)=>l(e,t),isMountedByTrigger:(e,t)=>void 0!==t&&r(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>l(e,t)||void 0!==t&&i(e)&&null==r(e)&&!e.openedWithoutTrigger&&1===e.triggerCount?o(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement}],871812);var f=e.i(16043),u=e.i(177147);e.s(["f",0,function(e){let n=f.useCallback(n=>void 0===e?t.x:e.subscribeStore(n),[e]),r=f.useCallback(()=>void 0===e?void 0:e.store,[e]);return(0,u.useSyncExternalStore)(n,r,()=>e?.serverStore)}],710955)},226983,e=>{"use strict";var t=e.i(664591),n=e.i(93836),r=e.i(182578);e.s(["f",0,function(e,i,{styles:o,transitionStatus:l,props:f,refs:u,hidden:s,inert:a=!1}){let c={...o};return a&&(c.pointerEvents="none"),(0,n.a)("div",e,{state:i,ref:u,props:[{role:"presentation",hidden:s,style:c},(0,r.f)(l),f],stateAttributesMapping:t.E})}])},582247,e=>{"use strict";let t=["top","right","bottom","left"],n=t.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),r=Math.min,i=Math.max,o=Math.round,l=Math.floor,f={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e){return e.split("-")[0]}function s(e){return e.split("-")[1]}function a(e){return"x"===e?"y":"x"}function c(e){return"y"===e?"height":"width"}function p(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function m(e){return a(p(e))}function g(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let d=["left","right"],h=["right","left"],v=["top","bottom"],y=["bottom","top"];function w(e){let t=u(e);return f[t]+e.slice(t.length)}e.s(["O",0,function(e,t,n){return i(e,r(t,n))},"I",0,e=>({x:e,y:e}),"h",0,function(e,t){return"function"==typeof e?e(t):e},"w",0,l,"R",0,s,"i",0,m,"N",0,function(e,t,n){void 0===n&&(n=!1);let r=s(e),i=m(e),o=c(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)]},"T",0,c,"P",0,function(e){let t=w(e);return[g(e),t,g(t)]},"o",0,g,"J",0,a,"K",0,function(e,t,n,r){let i=s(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?h:d;return t?d:h;case"left":case"right":return t?v:y;default:return[]}}(u(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(g)))),o},"t",0,w,"j",0,function(e){var t,n,r,i;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(i=e.left)?i:0}:{top:e,right:e,bottom:e,left:e}},"m",0,u,"$",0,p,"y",0,i,"u",0,r,"Z",0,n,"_",0,function(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}},"H",0,o,"M",0,t])}]); //# sourceMappingURL=3da2mdj-alvf7.js.map