!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a04400-0cc6-7a43-9d64-31bd523f1f5e")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,829655,e=>{"use strict";var t=e.i(120102),n=e.i(319983),i=e.i(836033),r=e.i(361409),l=e.i(991066),o=e.i(797441),a=e.i(190642);e.s(["useFloatingRootContext",0,function(e){let{open:s=!1,onOpenChange:f,elements:c={}}=e,u=(0,n.useId)(),g=null!=(0,l.useFloatingParentNodeId)(),d=(0,i.useRefWithInit)(()=>new o.FloatingRootStore({open:s,transitionStatus:void 0,onOpenChange:f,referenceElement:c.reference??null,floatingElement:c.floating??null,triggerElements:new a.PopupTriggerMap,floatingId:u,syncOnly:!1,nested:g})).current;return(0,r.useIsoLayoutEffect)(()=>{let e={open:s,floatingId:u};void 0!==c.reference&&(e.referenceElement=c.reference,e.domReferenceElement=(0,t.isElement)(c.reference)?c.reference:null),void 0!==c.floating&&(e.floatingElement=c.floating),d.update(e)},[s,u,c.reference,c.floating,d]),d.context.onOpenChange=f,d.context.nested=g,d}])},837861,e=>{"use strict";var t=e.i(618568),n=e.i(916317);e.s(["getDisabledMountTransitionStyles",0,function(e){return"starting"===e?n.DISABLED_TRANSITIONS_STYLE:t.EMPTY_OBJECT}])},707999,290281,e=>{"use strict";var t=e.i(270401),n=e.i(304916),i=e.i(192291),r=e.i(281085),l=e.i(361409),o=e.i(86222),a=e.i(228876),s=e.i(389542),f=e.i(894659),c=e.i(120102),u=e.i(991066),g=e.i(829655),d=e.i(698031);let m={name:"hide",async fn(e){let{width:t,height:n,x:i,y:r}=e.rects.reference,l=await (0,f.hide)().fn(e);return{data:{referenceHidden:l.data?.referenceHidden||0===t&&0===n&&0===i&&0===r}}}},h={sideX:"left",sideY:"top"};function p(e,t,n){let i="inline-start"===e||"inline-end"===e;return({top:"top",right:i?n?"inline-start":"inline-end":"right",bottom:"bottom",left:i?n?"inline-end":"inline-start":"left"})[t]}function y(e,t,i){let{rects:r,placement:l}=e;return{side:p(t,(0,n.getSide)(l),i),align:(0,n.getAlignment)(l)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function x(e){return null!=e&&"current"in e}e.s(["DEFAULT_SIDES",0,h,"adaptiveOrigin",0,{name:"adaptiveOrigin",async fn(e){let{x:t,y:l,rects:{floating:o},elements:{floating:a},platform:s,strategy:f,placement:c}=e,u=(0,r.ownerWindow)(a),g=u.getComputedStyle(a);if("0s"===g.transitionDuration||""===g.transitionDuration)return{x:t,y:l,data:h};let d=await s.getOffsetParent?.(a),m={width:0,height:0};if("fixed"===f&&u?.visualViewport)m={width:u.visualViewport.width,height:u.visualViewport.height};else if(d===u){let e=(0,i.ownerDocument)(a);m={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await s.isElement?.(d)&&(m=await s.getDimensions(d));let p=(0,n.getSide)(c),y=t,x=l;return"left"===p&&(y=m.width-(t+o.width)),"top"===p&&(x=m.height-(l+o.height)),{x:y,y:x,data:{sideX:"left"===p?"right":h.sideX,sideY:"top"===p?"bottom":h.sideY}}}}],290281),e.s(["useAnchorPositioning",0,function(e){var w,v;let{anchor:b,positionMethod:R="absolute",side:E="bottom",sideOffset:A=0,align:S="center",alignOffset:C=0,collisionBoundary:T,collisionPadding:O=5,sticky:L=!1,arrowPadding:P=5,disableAnchorTracking:D=!1,keepMounted:M=!1,floatingRootContext:W,mounted:H,collisionAvoidance:F,shiftCrossAxis:N=!1,nodeId:k,adaptiveOrigin:B,lazyFlip:$=!1,externalTree:I}=e,[V,z]=t.useState(null);H||null===V||z(null);let j=F.side||"flip",_=F.align||"flip",U=F.fallbackAxisSide||"end",Y="function"==typeof b?b:void 0,K=(0,a.useStableCallback)(Y),X=Y?K:b,q=(0,o.useValueAsRef)(b),J=(0,o.useValueAsRef)(H),G="rtl"===(0,d.useDirection)(),Q=V||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":G?"left":"right","inline-start":G?"right":"left"})[E],Z="center"===S?Q:`${Q}-${S}`,ee=O,et=+("bottom"===E),en=+("top"===E),ei=+("right"===E),er=+("left"===E);"number"==typeof ee?ee={top:ee+et,right:ee+er,bottom:ee+en,left:ee+ei}:ee&&(ee={top:(ee.top||0)+et,right:(ee.right||0)+er,bottom:(ee.bottom||0)+en,left:(ee.left||0)+ei});let el={boundary:"clipping-ancestors"===T?"clippingAncestors":T,padding:ee},eo=t.useRef(null),ea=(0,o.useValueAsRef)(A),es=(0,o.useValueAsRef)(C),ef=[(0,f.offset)(e=>{let t=y(e,E,G),n="function"==typeof ea.current?ea.current(t):ea.current,i="function"==typeof es.current?es.current(t):es.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},["function"!=typeof A?A:0,"function"!=typeof C?C:0,G,E])],ec="none"===_&&"shift"!==j,eu=!ec&&(L||N||"shift"===j),eg="none"===j?null:(0,f.flip)({...el,padding:{top:ee.top+1,right:ee.right+1,bottom:ee.bottom+1,left:ee.left+1},mainAxis:!N&&"flip"===j,crossAxis:"flip"===_&&"alignment",fallbackAxisSideDirection:U}),ed=ec?null:(0,f.shift)(e=>{let t=(0,i.ownerDocument)(e.elements.floating).documentElement;return{...el,rootBoundary:N?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:"none"!==_,crossAxis:eu,limiter:L||N?void 0:(0,f.limitShift)(e=>{if(!eo.current)return{};let{width:t,height:i}=eo.current.getBoundingClientRect(),r=(0,n.getSideAxis)((0,n.getSide)(e.placement)),l="y"===r?ee.left+ee.right:ee.top+ee.bottom;return{offset:("y"===r?t:i)/2+l/2}})}},[el,L,N,ee,_]);"shift"===j||"shift"===_||"center"===S?ef.push(ed,eg):ef.push(eg,ed),ef.push((0,f.size)({...el,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:i}){if(!J.current)return;let l=e.style;l.setProperty("--available-width",`${t}px`),l.setProperty("--available-height",`${n}px`);let o=(0,r.ownerWindow)(e).devicePixelRatio||1,{x:a,y:s,width:f,height:c}=i.reference,u=(Math.round((a+f)*o)-Math.round(a*o))/o,g=(Math.round((s+c)*o)-Math.round(s*o))/o;l.setProperty("--anchor-width",`${u}px`),l.setProperty("--anchor-height",`${g}px`)}}),(w=()=>({element:eo.current||(0,i.ownerDocument)(eo.current).createElement("div"),padding:P,offsetParent:"floating"}),v=[P],{...{name:"arrow",options:w,async fn(e){let{x:t,y:i,placement:r,rects:l,platform:o,elements:a,middlewareData:s}=e,{element:f,padding:c=0,offsetParent:u="real"}=(0,n.evaluate)(w,e)||{};if(null==f)return{};let g=(0,n.getPaddingObject)(c),d={x:t,y:i},m=(0,n.getAlignmentAxis)(r),h=(0,n.getAxisLength)(m),p=await o.getDimensions(f),y="y"===m,x=y?"clientHeight":"clientWidth",v=l.reference[h]+l.reference[m]-d[m]-l.floating[h],b=d[m]-l.reference[m],R="real"===u?await o.getOffsetParent?.(f):a.floating,E=a.floating[x]||l.floating[h];E&&await o.isElement?.(R)||(E=a.floating[x]||l.floating[h]);let A=E/2-p[h]/2-1,S=Math.min(g[y?"top":"left"],A),C=Math.min(g[y?"bottom":"right"],A),T=E-p[h]-C,O=E/2-p[h]/2+(v/2-b/2),L=(0,n.clamp)(S,O,T),P=!s.arrow&&null!=(0,n.getAlignment)(r)&&O!==L&&l.reference[h]/2-(Ow,b={top:`${m}px calc(100% + ${w}px)`,bottom:`${m}px ${-w}px`,left:`calc(100% + ${w}px) ${h}px`,right:`${-w}px ${h}px`}[a],R=`${m}px ${l.reference.y+x-o}px`;return t.floating.style.setProperty("--transform-origin",eu&&"y"===s&&v?R:b),{}}},m,B),(0,l.useIsoLayoutEffect)(()=>{!H&&W&&W.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[H,W]);let em=t.useMemo(()=>({elementResize:!D&&"u">typeof ResizeObserver,layoutShift:!D&&"u">typeof IntersectionObserver}),[D]),{refs:eh,elements:ep,x:ey,y:ex,middlewareData:ew,update:ev,placement:eb,context:eR,isPositioned:eE,floatingStyles:eA}=function(e={}){let{nodeId:n,externalTree:i}=e,r=(0,g.useFloatingRootContext)(e),o=e.rootContext||r,a={reference:o.useState("referenceElement"),floating:o.useState("floatingElement"),domReference:o.useState("domReferenceElement")},[s,d]=t.useState(null),m=t.useRef(null),h=(0,u.useFloatingTree)(i);(0,l.useIsoLayoutEffect)(()=>{a.domReference&&(m.current=a.domReference)},[a.domReference]);let p=(0,f.useFloating)({...e,elements:{...a,...s&&{reference:s}}}),y=t.useCallback(e=>{let t=(0,c.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),p.refs.setReference(t)},[p.refs]),[x,w]=t.useState(void 0),[v,b]=t.useState(null);o.useSyncedValue("referenceElement",x??null);let R=(0,c.isElement)(x)?x:null;o.useSyncedValue("domReferenceElement",void 0===x?a.domReference:R),o.useSyncedValue("floatingElement",v);let E=t.useCallback(e=>{((0,c.isElement)(e)||null===e)&&(m.current=e,w(e)),((0,c.isElement)(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!(0,c.isElement)(e))&&p.refs.setReference(e)},[p.refs,w]),A=t.useCallback(e=>{b(e),p.refs.setFloating(e)},[p.refs]),S=t.useMemo(()=>({...p.refs,setReference:E,setFloating:A,setPositionReference:y,domReference:m}),[p.refs,E,A,y]),C=t.useMemo(()=>({...p.elements,domReference:a.domReference}),[p.elements,a.domReference]),T=o.useState("open"),O=o.useState("floatingId"),L=t.useMemo(()=>({...p,dataRef:o.context.dataRef,open:T,onOpenChange:o.setOpen,events:o.context.events,floatingId:O,refs:S,elements:C,nodeId:n,rootStore:o}),[p,S,C,n,o,T,O]);return(0,l.useIsoLayoutEffect)(()=>{o.context.dataRef.current.floatingContext=L;let e=h?.nodesRef.current.find(e=>e.id===n);e&&(e.context=L)}),t.useMemo(()=>({...p,context:L,refs:S,elements:C,rootStore:o}),[p,S,C,L,o])}({rootContext:W,open:M?H:void 0,placement:Z,middleware:ef,strategy:R,whileElementsMounted:M?void 0:(...e)=>(0,s.autoUpdate)(...e,em),nodeId:k,externalTree:I}),{sideX:eS,sideY:eC}=ew.adaptiveOrigin||h,eT=eE?R:"fixed",eO=t.useMemo(()=>{let e=B?{position:eT,[eS]:ey,[eC]:ex}:{position:eT,...eA};return eE||(e.opacity=0),e},[B,eT,eS,ey,eC,ex,eA,eE]),eL=t.useRef(null);(0,l.useIsoLayoutEffect)(()=>{if(!H)return;let e=q.current,t="function"==typeof e?e():e,n=(x(t)?t.current:t)||null;n!==eL.current&&(eh.setPositionReference(n),eL.current=n)},[H,eh,X,q]),t.useEffect(()=>{if(!H)return;let e=q.current;"function"!=typeof e&&x(e)&&e.current!==eL.current&&(eh.setPositionReference(e.current),eL.current=e.current)},[H,eh,X,q]),t.useEffect(()=>{if(M&&H&&ep.domReference&&ep.floating)return(0,s.autoUpdate)(ep.domReference,ep.floating,ev,em)},[M,H,ep,ev,em]);let eP=(0,n.getSide)(eb),eD=p(E,eP,G),eM=(0,n.getAlignment)(eb)||"center",eW=!!ew.hide?.referenceHidden;(0,l.useIsoLayoutEffect)(()=>{$&&H&&eE&&z(eP)},[$,H,eE,eP]);let eH=t.useMemo(()=>({position:"absolute",top:ew.arrow?.y,left:ew.arrow?.x}),[ew.arrow]),eF=ew.arrow?.centerOffset!==0;return t.useMemo(()=>({positionerStyles:eO,arrowStyles:eH,arrowRef:eo,arrowUncentered:eF,side:eD,align:eM,physicalSide:eP,anchorHidden:eW,refs:eh,context:eR,isPositioned:eE,update:ev}),[eO,eH,eo,eF,eD,eM,eP,eW,eh,eR,eE,ev])}],707999)},556982,e=>{"use strict";var t=e.i(290530),n=e.i(281334),i=e.i(837861);e.s(["usePositioner",0,function(e,r,{styles:l,transitionStatus:o,props:a,refs:s,hidden:f,inert:c=!1}){let u={...l};return c&&(u.pointerEvents="none"),(0,n.useRenderElement)("div",e,{state:r,ref:s,props:[{role:"presentation",hidden:f,style:u},(0,i.getDisabledMountTransitionStyles)(o),a],stateAttributesMapping:t.popupStateMapping})}])},389542,894659,e=>{"use strict";var t=e.i(304916);function n(e,n,i){let r,{reference:l,floating:o}=e,a=(0,t.getSideAxis)(n),s=(0,t.getAlignmentAxis)(n),f=(0,t.getAxisLength)(s),c=(0,t.getSide)(n),u="y"===a,g=l.x+l.width/2-o.width/2,d=l.y+l.height/2-o.height/2,m=l[f]/2-o[f]/2;switch(c){case"top":r={x:g,y:l.y-o.height};break;case"bottom":r={x:g,y:l.y+l.height};break;case"right":r={x:l.x+l.width,y:d};break;case"left":r={x:l.x-o.width,y:d};break;default:r={x:l.x,y:l.y}}switch((0,t.getAlignment)(n)){case"start":r[s]-=m*(i&&u?-1:1);break;case"end":r[s]+=m*(i&&u?-1:1)}return r}async function i(e,n){var i;void 0===n&&(n={});let{x:r,y:l,platform:o,rects:a,elements:s,strategy:f}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:g="floating",altBoundary:d=!1,padding:m=0}=(0,t.evaluate)(n,e),h=(0,t.getPaddingObject)(m),p=s[d?"floating"===g?"reference":"floating":g],y=(0,t.rectToClientRect)(await o.getClippingRect({element:null==(i=await (null==o.isElement?void 0:o.isElement(p)))||i?p:p.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:f})),x="floating"===g?{x:r,y:l,width:a.floating.width,height:a.floating.height}:a.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},b=(0,t.rectToClientRect)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:f}):x);return{top:(y.top-b.top+h.top)/v.y,bottom:(b.bottom-y.bottom+h.bottom)/v.y,left:(y.left-b.left+h.left)/v.x,right:(b.right-y.right+h.right)/v.x}}let r=async(e,t,r)=>{let{placement:l="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,f=s.detectOverflow?s:{...s,detectOverflow:i},c=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:d}=n(u,l,c),m=l,h=0,p={};for(let i=0;ie[t]>=0)}function a(e){let n=(0,t.min)(...e.map(e=>e.left)),i=(0,t.min)(...e.map(e=>e.top));return{x:n,y:i,width:(0,t.max)(...e.map(e=>e.right))-n,height:(0,t.max)(...e.map(e=>e.bottom))-i}}let s=new Set(["left","top"]);async function f(e,n){let{placement:i,platform:r,elements:l}=e,o=await (null==r.isRTL?void 0:r.isRTL(l.floating)),a=(0,t.getSide)(i),f=(0,t.getAlignment)(i),c="y"===(0,t.getSideAxis)(i),u=s.has(a)?-1:1,g=o&&c?-1:1,d=(0,t.evaluate)(n,e),{mainAxis:m,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return f&&"number"==typeof p&&(h="end"===f?-1*p:p),c?{x:h*g,y:m*u}:{x:m*u,y:h*g}}var c=e.i(120102);function u(e){let n=(0,c.getComputedStyle)(e),i=parseFloat(n.width)||0,r=parseFloat(n.height)||0,l=(0,c.isHTMLElement)(e),o=l?e.offsetWidth:i,a=l?e.offsetHeight:r,s=(0,t.round)(i)!==o||(0,t.round)(r)!==a;return s&&(i=o,r=a),{width:i,height:r,$:s}}function g(e){return(0,c.isElement)(e)?e:e.contextElement}function d(e){let n=g(e);if(!(0,c.isHTMLElement)(n))return(0,t.createCoords)(1);let i=n.getBoundingClientRect(),{width:r,height:l,$:o}=u(n),a=(o?(0,t.round)(i.width):i.width)/r,s=(o?(0,t.round)(i.height):i.height)/l;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let m=(0,t.createCoords)(0);function h(e){let t=(0,c.getWindow)(e);return(0,c.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:m}function p(e,n,i,r){var l;void 0===n&&(n=!1),void 0===i&&(i=!1);let o=e.getBoundingClientRect(),a=g(e),s=(0,t.createCoords)(1);n&&(r?(0,c.isElement)(r)&&(s=d(r)):s=d(e));let f=(void 0===(l=i)&&(l=!1),r&&(!l||r===(0,c.getWindow)(a))&&l)?h(a):(0,t.createCoords)(0),u=(o.left+f.x)/s.x,m=(o.top+f.y)/s.y,p=o.width/s.x,y=o.height/s.y;if(a){let e=(0,c.getWindow)(a),t=r&&(0,c.isElement)(r)?(0,c.getWindow)(r):r,n=e,i=(0,c.getFrameElement)(n);for(;i&&r&&t!==n;){let e=d(i),t=i.getBoundingClientRect(),r=(0,c.getComputedStyle)(i),l=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,m*=e.y,p*=e.x,y*=e.y,u+=l,m+=o,n=(0,c.getWindow)(i),i=(0,c.getFrameElement)(n)}}return(0,t.rectToClientRect)({width:p,height:y,x:u,y:m})}function y(e,t){let n=(0,c.getNodeScroll)(e).scrollLeft;return t?t.left+n:p((0,c.getDocumentElement)(e)).left+n}function x(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-y(e,n),y:n.top+t.scrollTop}}function w(e,n,i){var r;let l;if("viewport"===n)l=function(e,t){let n=(0,c.getWindow)(e),i=(0,c.getDocumentElement)(e),r=n.visualViewport,l=i.clientWidth,o=i.clientHeight,a=0,s=0;if(r){l=r.width,o=r.height;let e=(0,c.isWebKit)();(!e||e&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}let f=y(i);if(f<=0){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r);o<=25&&(l-=o)}else f<=25&&(l+=f);return{width:l,height:o,x:a,y:s}}(e,i);else if("document"===n){let n,i,o,a,s,f,u;r=(0,c.getDocumentElement)(e),n=(0,c.getDocumentElement)(r),i=(0,c.getNodeScroll)(r),o=r.ownerDocument.body,a=(0,t.max)(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),s=(0,t.max)(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight),f=-i.scrollLeft+y(r),u=-i.scrollTop,"rtl"===(0,c.getComputedStyle)(o).direction&&(f+=(0,t.max)(n.clientWidth,o.clientWidth)-a),l={width:a,height:s,x:f,y:u}}else if((0,c.isElement)(n)){let e,r,o,a,s,f;r=(e=p(n,!0,"fixed"===i)).top+n.clientTop,o=e.left+n.clientLeft,a=(0,c.isHTMLElement)(n)?d(n):(0,t.createCoords)(1),s=n.clientWidth*a.x,f=n.clientHeight*a.y,l={width:s,height:f,x:o*a.x,y:r*a.y}}else{let t=h(e);l={x:n.x-t.x,y:n.y-t.y,width:n.width,height:n.height}}return(0,t.rectToClientRect)(l)}function v(e){return"static"===(0,c.getComputedStyle)(e).position}function b(e,t){if(!(0,c.isHTMLElement)(e)||"fixed"===(0,c.getComputedStyle)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,c.getDocumentElement)(e)===n&&(n=n.ownerDocument.body),n}function R(e,t){let n=(0,c.getWindow)(e);if((0,c.isTopLayer)(e))return n;if(!(0,c.isHTMLElement)(e)){let t=(0,c.getParentNode)(e);for(;t&&!(0,c.isLastTraversableNode)(t);){if((0,c.isElement)(t)&&!v(t))return t;t=(0,c.getParentNode)(t)}return n}let i=b(e,t);for(;i&&(0,c.isTableElement)(i)&&v(i);)i=b(i,t);return i&&(0,c.isLastTraversableNode)(i)&&v(i)&&!(0,c.isContainingBlock)(i)?n:i||(0,c.getContainingBlock)(e)||n}let E=async function(e){let n=this.getOffsetParent||R,i=this.getDimensions,r=await i(e.floating);return{reference:function(e,n,i){let r=(0,c.isHTMLElement)(n),l=(0,c.getDocumentElement)(n),o="fixed"===i,a=p(e,!0,o,n),s={scrollLeft:0,scrollTop:0},f=(0,t.createCoords)(0);if(r||!r&&!o)if(("body"!==(0,c.getNodeName)(n)||(0,c.isOverflowElement)(l))&&(s=(0,c.getNodeScroll)(n)),r){let e=p(n,!0,o,n);f.x=e.x+n.clientLeft,f.y=e.y+n.clientTop}else l&&(f.x=y(l));o&&!r&&l&&(f.x=y(l));let u=!l||r||o?(0,t.createCoords)(0):x(l,s);return{x:a.left+s.scrollLeft-f.x-u.x,y:a.top+s.scrollTop-f.y-u.y,width:a.width,height:a.height}}(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},A={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:n,rect:i,offsetParent:r,strategy:l}=e,o="fixed"===l,a=(0,c.getDocumentElement)(r),s=!!n&&(0,c.isTopLayer)(n.floating);if(r===a||s&&o)return i;let f={scrollLeft:0,scrollTop:0},u=(0,t.createCoords)(1),g=(0,t.createCoords)(0),m=(0,c.isHTMLElement)(r);if((m||!m&&!o)&&(("body"!==(0,c.getNodeName)(r)||(0,c.isOverflowElement)(a))&&(f=(0,c.getNodeScroll)(r)),m)){let e=p(r);u=d(r),g.x=e.x+r.clientLeft,g.y=e.y+r.clientTop}let h=!a||m||o?(0,t.createCoords)(0):x(a,f);return{width:i.width*u.x,height:i.height*u.y,x:i.x*u.x-f.scrollLeft*u.x+g.x+h.x,y:i.y*u.y-f.scrollTop*u.y+g.y+h.y}},getDocumentElement:c.getDocumentElement,getClippingRect:function(e){let{element:n,boundary:i,rootBoundary:r,strategy:l}=e,o=[..."clippingAncestors"===i?(0,c.isTopLayer)(n)?[]:function(e,t){let n=t.get(e);if(n)return n;let i=(0,c.getOverflowAncestors)(e,[],!1).filter(e=>(0,c.isElement)(e)&&"body"!==(0,c.getNodeName)(e)),r=null,l="fixed"===(0,c.getComputedStyle)(e).position,o=l?(0,c.getParentNode)(e):e;for(;(0,c.isElement)(o)&&!(0,c.isLastTraversableNode)(o);){let t=(0,c.getComputedStyle)(o),n=(0,c.isContainingBlock)(o);n||"fixed"!==t.position||(r=null),(l?n||r:!(!n&&"static"===t.position&&r&&("absolute"===r.position||"fixed"===r.position)||(0,c.isOverflowElement)(o)&&!n&&function e(t,n){let i=(0,c.getParentNode)(t);return!(i===n||!(0,c.isElement)(i)||(0,c.isLastTraversableNode)(i))&&("fixed"===(0,c.getComputedStyle)(i).position||e(i,n))}(e,o)))?r=t:i=i.filter(e=>e!==o),o=(0,c.getParentNode)(o)}return t.set(e,i),i}(n,this._c):[].concat(i),r],a=w(n,o[0],l),s=a.top,f=a.right,u=a.bottom,g=a.left;for(let e=1;e{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,t.evaluate)(e,n),u={x:i,y:r},g=await o.detectOverflow(n,c),d=(0,t.getSideAxis)((0,t.getSide)(l)),m=(0,t.getOppositeAxis)(d),h=u[m],p=u[d];if(a){let e="y"===m?"top":"left",n="y"===m?"bottom":"right",i=h+g[e],r=h-g[n];h=(0,t.clamp)(i,h,r)}if(s){let e="y"===d?"top":"left",n="y"===d?"bottom":"right",i=p+g[e],r=p-g[n];p=(0,t.clamp)(i,p,r)}let y=f.fn({...n,[m]:h,[d]:p});return{...y,data:{x:y.x-i,y:y.y-r,enabled:{[m]:a,[d]:s}}}}}},O=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var i,r,l,o,a;let{placement:s,middlewareData:f,rects:c,initialPlacement:u,platform:g,elements:d}=n,{mainAxis:m=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:w=!0,...v}=(0,t.evaluate)(e,n);if(null!=(i=f.arrow)&&i.alignmentOffset)return{};let b=(0,t.getSide)(s),R=(0,t.getSideAxis)(u),E=(0,t.getSide)(u)===u,A=await (null==g.isRTL?void 0:g.isRTL(d.floating)),S=p||(E||!w?[(0,t.getOppositePlacement)(u)]:(0,t.getExpandedPlacements)(u)),C="none"!==x;!p&&C&&S.push(...(0,t.getOppositeAxisPlacements)(u,w,x,A));let T=[u,...S],O=await g.detectOverflow(n,v),L=[],P=(null==(r=f.flip)?void 0:r.overflows)||[];if(m&&L.push(O[b]),h){let e=(0,t.getAlignmentSides)(s,c,A);L.push(O[e[0]],O[e[1]])}if(P=[...P,{placement:s,overflows:L}],!L.every(e=>e<=0)){let e=((null==(l=f.flip)?void 0:l.index)||0)+1,n=T[e];if(n&&("alignment"!==h||R===(0,t.getSideAxis)(n)||P.every(e=>(0,t.getSideAxis)(e.placement)!==R||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:n}};let i=null==(o=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!i)switch(y){case"bestFit":{let e=null==(a=P.filter(e=>{if(C){let n=(0,t.getSideAxis)(e.placement);return n===R||"y"===n}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:a[0];e&&(i=e);break}case"initialPlacement":i=u}if(s!==i)return{reset:{placement:i}}}return{}}}},L=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(n){var i,r;let l,o,{placement:a,rects:s,platform:f,elements:c}=n,{apply:u=()=>{},...g}=(0,t.evaluate)(e,n),d=await f.detectOverflow(n,g),m=(0,t.getSide)(a),h=(0,t.getAlignment)(a),p="y"===(0,t.getSideAxis)(a),{width:y,height:x}=s.floating;"top"===m||"bottom"===m?(l=m,o=h===(await (null==f.isRTL?void 0:f.isRTL(c.floating))?"start":"end")?"left":"right"):(o=m,l="end"===h?"top":"bottom");let w=x-d.top-d.bottom,v=y-d.left-d.right,b=(0,t.min)(x-d[l],w),R=(0,t.min)(y-d[o],v),E=!n.middlewareData.shift,A=b,S=R;if(null!=(i=n.middlewareData.shift)&&i.enabled.x&&(S=v),null!=(r=n.middlewareData.shift)&&r.enabled.y&&(A=w),E&&!h){let e=(0,t.max)(d.left,0),n=(0,t.max)(d.right,0),i=(0,t.max)(d.top,0),r=(0,t.max)(d.bottom,0);p?S=y-2*(0!==e||0!==n?e+n:(0,t.max)(d.left,d.right)):A=x-2*(0!==i||0!==r?i+r:(0,t.max)(d.top,d.bottom))}await u({...n,availableWidth:S,availableHeight:A});let C=await f.getDimensions(c.floating);return y!==C.width||x!==C.height?{reset:{rects:!0}}:{}}}},P=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(n){let{rects:i,platform:r}=n,{strategy:a="referenceHidden",...s}=(0,t.evaluate)(e,n);switch(a){case"referenceHidden":{let e=l(await r.detectOverflow(n,{...s,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:o(e)}}}case"escaped":{let e=l(await r.detectOverflow(n,{...s,altBoundary:!0}),i.floating);return{data:{escapedOffsets:e,escaped:o(e)}}}default:return{}}}}},D=function(e){return void 0===e&&(e={}),{options:e,fn(n){let{x:i,y:r,placement:l,rects:o,middlewareData:a}=n,{offset:f=0,mainAxis:c=!0,crossAxis:u=!0}=(0,t.evaluate)(e,n),g={x:i,y:r},d=(0,t.getSideAxis)(l),m=(0,t.getOppositeAxis)(d),h=g[m],p=g[d],y=(0,t.evaluate)(f,n),x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){let e="y"===m?"height":"width",t=o.reference[m]-o.floating[e]+x.mainAxis,n=o.reference[m]+o.reference[e]-x.mainAxis;hn&&(h=n)}if(u){var w,v;let e="y"===m?"width":"height",n=s.has((0,t.getSide)(l)),i=o.reference[d]-o.floating[e]+(n&&(null==(w=a.offset)?void 0:w[d])||0)+(n?0:x.crossAxis),r=o.reference[d]+o.reference[e]+(n?0:(null==(v=a.offset)?void 0:v[d])||0)-(n?x.crossAxis:0);pr&&(p=r)}return{[m]:h,[d]:p}}}},M=(e,t,n)=>{let i=new Map,l={platform:A,...n},o={...l.platform,_c:i};return r(e,t,{...l,platform:o})};e.s(["arrow",0,e=>({name:"arrow",options:e,async fn(n){let{x:i,y:r,placement:l,rects:o,platform:a,elements:s,middlewareData:f}=n,{element:c,padding:u=0}=(0,t.evaluate)(e,n)||{};if(null==c)return{};let g=(0,t.getPaddingObject)(u),d={x:i,y:r},m=(0,t.getAlignmentAxis)(l),h=(0,t.getAxisLength)(m),p=await a.getDimensions(c),y="y"===m,x=y?"clientHeight":"clientWidth",w=o.reference[h]+o.reference[m]-d[m]-o.floating[h],v=d[m]-o.reference[m],b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),R=b?b[x]:0;R&&await (null==a.isElement?void 0:a.isElement(b))||(R=s.floating[x]||o.floating[h]);let E=R/2-p[h]/2-1,A=(0,t.min)(g[y?"top":"left"],E),S=(0,t.min)(g[y?"bottom":"right"],E),C=R-p[h]-S,T=R/2-p[h]/2+(w/2-v/2),O=(0,t.clamp)(A,T,C),L=!f.arrow&&null!=(0,t.getAlignment)(l)&&T!==O&&o.reference[h]/2-(T(0,t.getAlignment)(e)===o),...m.filter(e=>(0,t.getAlignment)(e)!==o)]:m.filter(e=>(0,t.getSide)(e)===e)).filter(e=>!o||(0,t.getAlignment)(e)===o||!!h&&(0,t.getOppositeAlignmentPlacement)(e)!==e):m,x=await c.detectOverflow(n,p),w=(null==(i=s.autoPlacement)?void 0:i.index)||0,v=y[w];if(null==v)return{};let b=(0,t.getAlignmentSides)(v,a,await (null==c.isRTL?void 0:c.isRTL(u.floating)));if(f!==v)return{reset:{placement:y[0]}};let R=[x[(0,t.getSide)(v)],x[b[0]],x[b[1]]],E=[...(null==(r=s.autoPlacement)?void 0:r.overflows)||[],{placement:v,overflows:R}],A=y[w+1];if(A)return{data:{index:w+1,overflows:E},reset:{placement:A}};let S=E.map(e=>{let n=(0,t.getAlignment)(e.placement);return[e.placement,n&&g?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=(null==(l=S.filter(e=>e[2].slice(0,(0,t.getAlignment)(e[0])?2:3).every(e=>e<=0))[0])?void 0:l[0])||S[0][0];return C!==f?{data:{index:w+1,overflows:E},reset:{placement:C}}:{}}}},"autoUpdate",0,function(e,n,i,r){let l;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,d=g(e),m=o||a?[...d?(0,c.getOverflowAncestors)(d):[],...n?(0,c.getOverflowAncestors)(n):[]]:[];m.forEach(e=>{o&&e.addEventListener("scroll",i,{passive:!0}),a&&e.addEventListener("resize",i)});let h=d&&f?function(e,n){let i,r=null,l=(0,c.getDocumentElement)(e);function o(){var e;clearTimeout(i),null==(e=r)||e.disconnect(),r=null}return!function a(s,f){void 0===s&&(s=!1),void 0===f&&(f=1),o();let c=e.getBoundingClientRect(),{left:u,top:g,width:d,height:m}=c;if(s||n(),!d||!m)return;let h={rootMargin:-(0,t.floor)(g)+"px "+-(0,t.floor)(l.clientWidth-(u+d))+"px "+-(0,t.floor)(l.clientHeight-(g+m))+"px "+-(0,t.floor)(u)+"px",threshold:(0,t.max)(0,(0,t.min)(1,f))||1},p=!0;function y(t){let n=t[0].intersectionRatio;if(n!==f){if(!p)return a();n?a(!1,n):i=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||S(c,e.getBoundingClientRect())||a(),p=!1}try{r=new IntersectionObserver(y,{...h,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(y,h)}r.observe(e)}(!0),o}(d,i):null,y=-1,x=null;s&&(x=new ResizeObserver(e=>{let[t]=e;t&&t.target===d&&x&&n&&(x.unobserve(n),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var e;null==(e=x)||e.observe(n)})),i()}),d&&!u&&x.observe(d),n&&x.observe(n));let w=u?p(e):null;return u&&function t(){let n=p(e);w&&!S(w,n)&&i(),w=n,l=requestAnimationFrame(t)}(),i(),()=>{var e;m.forEach(e=>{o&&e.removeEventListener("scroll",i),a&&e.removeEventListener("resize",i)}),null==h||h(),null==(e=x)||e.disconnect(),x=null,u&&cancelAnimationFrame(l)}},"computePosition",0,M,"detectOverflow",0,i,"flip",0,O,"hide",0,P,"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(n){let{placement:i,elements:r,rects:l,platform:o,strategy:s}=n,{padding:f=2,x:c,y:u}=(0,t.evaluate)(e,n),g=Array.from(await (null==o.getClientRects?void 0:o.getClientRects(r.reference))||[]),d=function(e){let n=e.slice().sort((e,t)=>e.y-t.y),i=[],r=null;for(let e=0;er.height/2?i.push([t]):i[i.length-1].push(t),r=t}return i.map(e=>(0,t.rectToClientRect)(a(e)))}(g),m=(0,t.rectToClientRect)(a(g)),h=(0,t.getPaddingObject)(f),p=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=c&&null!=u)return d.find(e=>c>e.left-h.left&&ce.top-h.top&&u=2){if("y"===(0,t.getSideAxis)(i)){let e=d[0],n=d[d.length-1],r="top"===(0,t.getSide)(i),l=e.top,o=n.bottom,a=r?e.left:n.left,s=r?e.right:n.right;return{top:l,bottom:o,left:a,right:s,width:s-a,height:o-l,x:a,y:l}}let e="left"===(0,t.getSide)(i),n=(0,t.max)(...d.map(e=>e.right)),r=(0,t.min)(...d.map(e=>e.left)),l=d.filter(t=>e?t.left===r:t.right===n),o=l[0].top,a=l[l.length-1].bottom;return{top:o,bottom:a,left:r,right:n,width:n-r,height:a-o,x:r,y:o}}return m}},floating:r.floating,strategy:s});return l.reference.x!==p.reference.x||l.reference.y!==p.reference.y||l.reference.width!==p.reference.width||l.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},"limitShift",0,D,"offset",0,C,"platform",0,A,"shift",0,T,"size",0,L],389542);var W=e.i(270401),H=e.i(214857),F="u">typeof document?W.useLayoutEffect:function(){};function N(e,t){let n,i,r;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(i=n;0!=i--;)if(!N(e[i],t[i]))return!1;return!0}if((n=(r=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=n;0!=i--;)if(!({}).hasOwnProperty.call(t,r[i]))return!1;for(i=n;0!=i--;){let n=r[i];if(("_owner"!==n||!e.$$typeof)&&!N(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function k(e){return"u"{t.current=e}),t}e.s(["flip",0,(e,t)=>{let n=O(e);return{name:n.name,fn:n.fn,options:[e,t]}},"hide",0,(e,t)=>{let n=P(e);return{name:n.name,fn:n.fn,options:[e,t]}},"limitShift",0,(e,t)=>({fn:D(e).fn,options:[e,t]}),"offset",0,(e,t)=>{let n=C(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=T(e);return{name:n.name,fn:n.fn,options:[e,t]}},"size",0,(e,t)=>{let n=L(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:l,floating:o}={},transform:a=!0,whileElementsMounted:s,open:f}=e,[c,u]=W.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,d]=W.useState(i);N(g,i)||d(i);let[m,h]=W.useState(null),[p,y]=W.useState(null),x=W.useCallback(e=>{e!==R.current&&(R.current=e,h(e))},[]),w=W.useCallback(e=>{e!==E.current&&(E.current=e,y(e))},[]),v=l||m,b=o||p,R=W.useRef(null),E=W.useRef(null),A=W.useRef(c),S=null!=s,C=$(s),T=$(r),O=$(f),L=W.useCallback(()=>{if(!R.current||!E.current)return;let e={placement:t,strategy:n,middleware:g};T.current&&(e.platform=T.current),M(R.current,E.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};P.current&&!N(A.current,t)&&(A.current=t,H.flushSync(()=>{u(t)}))})},[g,t,n,T,O]);F(()=>{!1===f&&A.current.isPositioned&&(A.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[f]);let P=W.useRef(!1);F(()=>(P.current=!0,()=>{P.current=!1}),[]),F(()=>{if(v&&(R.current=v),b&&(E.current=b),v&&b){if(C.current)return C.current(v,b,L);L()}},[v,b,L,C,S]);let D=W.useMemo(()=>({reference:R,floating:E,setReference:x,setFloating:w}),[x,w]),I=W.useMemo(()=>({reference:v,floating:b}),[v,b]),V=W.useMemo(()=>{let e={position:n,left:0,top:0};if(!I.floating)return e;let t=B(I.floating,c.x),i=B(I.floating,c.y);return a?{...e,transform:"translate("+t+"px, "+i+"px)",...k(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:i}},[n,a,I.floating,c.x,c.y]);return W.useMemo(()=>({...c,update:L,refs:D,elements:I,floatingStyles:V}),[c,L,D,I,V])}],894659)}]); //# sourceMappingURL=44j9eaji8g-rd.js.map //# chunkId=01a04400-0cc6-7a43-9d64-31bd523f1f5e