(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1797],{"U+Em":function(e,t,n){"use strict";n.d(t,{YF:function(){return useFloating},x7:function(){return arrow}});var r=n("DC51"),o=n("+YtJ"),i=n("q1tI"),u=n("i8i4");let arrow=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return(0,r.x7)({element:t.current,padding:n}).fn(e)}else if(t)return(0,r.x7)({element:t,padding:n}).fn(e);return{}}}};var l="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function deepEqual(e,t){let n,r,o;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(!deepEqual(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!deepEqual(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function useLatestRef(e){let t=i.useRef(e);return l(()=>{t.current=e}),t}function useFloating(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,whileElementsMounted:s,open:c}=e,[f,d]=i.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=i.useState(r);deepEqual(m,r)||g(r);let p=i.useRef(null),h=i.useRef(null),v=i.useRef(f),y=useLatestRef(s),b=useLatestRef(a),[E,w]=i.useState(null),[x,R]=i.useState(null),O=i.useCallback(e=>{p.current!==e&&(p.current=e,w(e))},[]),C=i.useCallback(e=>{h.current!==e&&(h.current=e,R(e))},[]),A=i.useCallback(()=>{if(!p.current||!h.current)return;let e={placement:t,strategy:n,middleware:m};b.current&&(e.platform=b.current),(0,o.oo)(p.current,h.current,e).then(e=>{let t={...e,isPositioned:!0};P.current&&!deepEqual(v.current,t)&&(v.current=t,u.flushSync(()=>{d(t)}))})},[m,t,n,b]);l(()=>{!1===c&&v.current.isPositioned&&(v.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let P=i.useRef(!1);l(()=>(P.current=!0,()=>{P.current=!1}),[]),l(()=>{if(E&&x){if(y.current)return y.current(E,x,A);A()}},[E,x,A,y]);let T=i.useMemo(()=>({reference:p,floating:h,setReference:O,setFloating:C}),[O,C]),L=i.useMemo(()=>({reference:E,floating:x}),[E,x]);return i.useMemo(()=>({...f,update:A,refs:T,elements:L,reference:O,floating:C}),[f,A,T,L,O,C])}},"+e+K":function(e,t,n){"use strict";let r,o;n.d(t,{KK:function(){return useFocus},NI:function(){return useInteractions},Qu:function(){return useDelayGroup},XI:function(){return useHover},YF:function(){return useFloating},bQ:function(){return useDismiss},e0:function(){return FloatingDelayGroup},ll:function(){return FloatingPortal},qs:function(){return useRole},tj:function(){return useDelayGroupContext}});var i,u=n("q1tI"),l=n("YvcI"),a=n("i8i4"),s=n("imYf"),c=n("U+Em"),f="undefined"!=typeof document?u.useLayoutEffect:u.useEffect;let d=!1,m=0,genId=()=>"floating-ui-"+m++,g=(i||(i=n.t(u,2)))["useId".toString()],p=g||function(){let[e,t]=u.useState(()=>d?genId():void 0);return f(()=>{null==e&&t(genId())},[]),u.useEffect(()=>{d||(d=!0)},[]),e},h=u.createContext(null),v=u.createContext(null),useFloatingParentNodeId=()=>{var e;return(null==(e=u.useContext(h))?void 0:e.id)||null},useFloatingTree=()=>u.useContext(v);function getDocument(e){return(null==e?void 0:e.ownerDocument)||document}function getPlatform(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function getWindow(e){return getDocument(e).defaultView||window}function isElement(e){return!!e&&e instanceof getWindow(e).Element}function isHTMLElement(e){return!!e&&e instanceof getWindow(e).HTMLElement}function isSafari(){return/apple/i.test(navigator.vendor)}function isMouseLikePointerType(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function useLatestRef(e){let t=(0,u.useRef)(e);return f(()=>{t.current=e}),t}let y="data-floating-ui-safe-polygon";function getDelay(e,t,n){return n&&!isMouseLikePointerType(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let useHover=function(e,t){let{enabled:n=!0,delay:r=0,handleClose:o=null,mouseOnly:i=!1,restMs:l=0,move:a=!0}=void 0===t?{}:t,{open:s,onOpenChange:c,dataRef:d,events:m,elements:{domReference:g,floating:p},refs:h}=e,v=useFloatingTree(),b=useFloatingParentNodeId(),E=useLatestRef(o),w=useLatestRef(r),x=u.useRef(),R=u.useRef(),O=u.useRef(),C=u.useRef(),A=u.useRef(!0),P=u.useRef(!1),T=u.useRef(()=>{}),L=u.useCallback(()=>{var e;let t=null==(e=d.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[d]);u.useEffect(()=>{if(n)return m.on("dismiss",onDismiss),()=>{m.off("dismiss",onDismiss)};function onDismiss(){clearTimeout(R.current),clearTimeout(C.current),A.current=!0}},[n,m]),u.useEffect(()=>{if(!n||!E.current||!s)return;function onLeave(){L()&&c(!1)}let e=getDocument(p).documentElement;return e.addEventListener("mouseleave",onLeave),()=>{e.removeEventListener("mouseleave",onLeave)}},[p,s,c,n,E,d,L]);let k=u.useCallback(function(e){void 0===e&&(e=!0);let t=getDelay(w.current,"close",x.current);t&&!O.current?(clearTimeout(R.current),R.current=setTimeout(()=>c(!1),t)):e&&(clearTimeout(R.current),c(!1))},[w,c]),S=u.useCallback(()=>{T.current(),O.current=void 0},[]),q=u.useCallback(()=>{if(P.current){let e=getDocument(h.floating.current).body;e.style.pointerEvents="",e.removeAttribute(y),P.current=!1}},[h]);return u.useEffect(()=>{if(n&&isElement(g))return s&&g.addEventListener("mouseleave",onScrollMouseLeave),null==p||p.addEventListener("mouseleave",onScrollMouseLeave),a&&g.addEventListener("mousemove",onMouseEnter,{once:!0}),g.addEventListener("mouseenter",onMouseEnter),g.addEventListener("mouseleave",onMouseLeave),()=>{s&&g.removeEventListener("mouseleave",onScrollMouseLeave),null==p||p.removeEventListener("mouseleave",onScrollMouseLeave),a&&g.removeEventListener("mousemove",onMouseEnter),g.removeEventListener("mouseenter",onMouseEnter),g.removeEventListener("mouseleave",onMouseLeave)};function isClickLikeOpenEvent(){return!!d.current.openEvent&&["click","mousedown"].includes(d.current.openEvent.type)}function onMouseEnter(e){if(clearTimeout(R.current),A.current=!1,i&&!isMouseLikePointerType(x.current)||l>0&&0===getDelay(w.current,"open"))return;d.current.openEvent=e;let t=getDelay(w.current,"open",x.current);t?R.current=setTimeout(()=>{c(!0)},t):c(!0)}function onMouseLeave(t){if(isClickLikeOpenEvent())return;T.current();let n=getDocument(p);if(clearTimeout(C.current),E.current){s||clearTimeout(R.current),O.current=E.current({...e,tree:v,x:t.clientX,y:t.clientY,onClose(){q(),S(),k()}});let r=O.current;n.addEventListener("mousemove",r),T.current=()=>{n.removeEventListener("mousemove",r)};return}k()}function onScrollMouseLeave(t){isClickLikeOpenEvent()||null==E.current||E.current({...e,tree:v,x:t.clientX,y:t.clientY,onClose(){q(),S(),k()}})(t)}},[g,p,n,e,i,l,a,k,S,q,c,s,v,w,E,d]),f(()=>{var e,t,r;if(n&&s&&null!=(e=E.current)&&e.__options.blockPointerEvents&&L()){let e=getDocument(p).body;if(e.setAttribute(y,""),e.style.pointerEvents="none",P.current=!0,isElement(g)&&p){let e=null==v?void 0:null==(t=v.nodesRef.current.find(e=>e.id===b))?void 0:null==(r=t.context)?void 0:r.elements.floating;return e&&(e.style.pointerEvents=""),g.style.pointerEvents="auto",p.style.pointerEvents="auto",()=>{g.style.pointerEvents="",p.style.pointerEvents=""}}}},[n,s,b,p,g,v,E,d,L]),f(()=>{s||(x.current=void 0,S(),q())},[s,S,q]),u.useEffect(()=>()=>{S(),clearTimeout(R.current),clearTimeout(C.current),q()},[n,S,q]),u.useMemo(()=>{if(!n)return{};function setPointerRef(e){x.current=e.pointerType}return{reference:{onPointerDown:setPointerRef,onPointerEnter:setPointerRef,onMouseMove(){s||0===l||(clearTimeout(C.current),C.current=setTimeout(()=>{A.current||c(!0)},l))}},floating:{onMouseEnter(){clearTimeout(R.current)},onMouseLeave(){m.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),k(!1)}}}},[m,n,l,s,c,k])},b=u.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),useDelayGroupContext=()=>u.useContext(b),FloatingDelayGroup=e=>{let{children:t,delay:n,timeoutMs:r=0}=e,[o,i]=u.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),l=u.useRef(null),a=u.useCallback(e=>{i({currentId:e})},[]);return f(()=>{o.currentId?null===l.current?l.current=o.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),l.current=null)},[o.currentId]),u.createElement(b.Provider,{value:u.useMemo(()=>({...o,setState:i,setCurrentId:a}),[o,i,a])},t)},useDelayGroup=(e,t)=>{let{open:n,onOpenChange:r}=e,{id:o}=t,{currentId:i,setCurrentId:l,initialDelay:a,setState:s,timeoutMs:c}=useDelayGroupContext();u.useEffect(()=>{i&&(s({delay:{open:1,close:getDelay(a,"close")}}),i!==o&&r(!1))},[o,r,s,i,a]),u.useEffect(()=>{function unset(){r(!1),s({delay:a,currentId:null})}if(!n&&i===o){if(c){let e=window.setTimeout(unset,c);return()=>{clearTimeout(e)}}unset()}},[n,s,i,o,r,a,c]),u.useEffect(()=>{n&&l(o)},[n,l,o])};function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})||[],r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})})||[],n=n.concat(r);return n}let getTabbableOptions=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function getTabbableIn(e,t){let n=(0,l.ht)(e,getTabbableOptions());"prev"===t&&n.reverse();let r=n.indexOf(activeElement$1(getDocument(e))),o=n.slice(r+1);return o[0]}function isOutsideEvent(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!contains(n,r)}let E=(i||(i=n.t(u,2)))["useInsertionEffect".toString()],w=E||(e=>e());function useEvent(e){let t=u.useRef(()=>{});return w(()=>{t.current=e}),u.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r(isSafari()&&l("button"),document.addEventListener("keydown",setActiveElementOnTab),()=>{document.removeEventListener("keydown",setActiveElementOnTab)}),[]),u.createElement("span",_extends({},e,{ref:t,tabIndex:0,role:i,"aria-hidden":!i||void 0,"data-floating-ui-focus-guard":"",style:x,onFocus:e=>{isSafari()&&getPlatform().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&!function(e){let t=r===e.relatedTarget;return r=e.relatedTarget,clearTimeout(o),t}(e)?(e.persist(),o=window.setTimeout(()=>{n(e)},50)):n(e)}}))}),O=u.createContext(null),useFloatingPortalNode=function(e){let{id:t,enabled:n=!0}=void 0===e?{}:e,[r,o]=u.useState(null),i=p(),l=usePortalContext();return f(()=>{if(!n)return;let e=t?document.getElementById(t):null;if(e)e.setAttribute("data-floating-ui-portal",""),o(e);else{let e=document.createElement("div");""!==t&&(e.id=t||i),e.setAttribute("data-floating-ui-portal",""),o(e);let n=(null==l?void 0:l.portalNode)||document.body;return n.appendChild(e),()=>{n.removeChild(e)}}},[t,l,i,n]),r},FloatingPortal=e=>{let{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,i=useFloatingPortalNode({id:n,enabled:!r}),[s,c]=u.useState(null),f=u.useRef(null),d=u.useRef(null),m=u.useRef(null),g=u.useRef(null),p=!!s&&!s.modal&&!!(r||i)&&o;return u.useEffect(()=>{if(i&&o&&(null==s||!s.modal))return i.addEventListener("focusin",onFocus,!0),i.addEventListener("focusout",onFocus,!0),()=>{i.removeEventListener("focusin",onFocus,!0),i.removeEventListener("focusout",onFocus,!0)};function onFocus(e){if(i&&isOutsideEvent(e)){let t="focusin"===e.type;(t?function(e){let t=e.querySelectorAll("[data-tabindex]");t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}:function(e){let t=(0,l.ht)(e,getTabbableOptions());t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(i)}}},[i,o,null==s?void 0:s.modal]),u.createElement(O.Provider,{value:u.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:f,afterOutsideRef:d,beforeInsideRef:m,afterInsideRef:g,portalNode:i,setFocusManagerState:c}),[o,i])},p&&i&&u.createElement(R,{"data-type":"outside",ref:f,onFocus:e=>{if(isOutsideEvent(e,i)){var t;null==(t=m.current)||t.focus()}else{let e=getTabbableIn(document.body,"prev")||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),p&&i&&u.createElement("span",{"aria-owns":i.id,style:x}),r?(0,a.createPortal)(t,r):i?(0,a.createPortal)(t,i):null,p&&i&&u.createElement(R,{"data-type":"outside",ref:d,onFocus:e=>{if(isOutsideEvent(e,i)){var t;null==(t=g.current)||t.focus()}else{let e=getTabbableIn(document.body,"next")||(null==s?void 0:s.refs.domReference.current);null==e||e.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1))}}}))},usePortalContext=()=>u.useContext(O);function isEventTargetWithin(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}let C={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},A={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},normalizeBubblesProp=function(e){var t,n;return void 0===e&&(e=!0),{escapeKeyBubbles:"boolean"==typeof e?e:null==(t=e.escapeKey)||t,outsidePressBubbles:"boolean"==typeof e?e:null==(n=e.outsidePress)||n}},useDismiss=function(e,t){let{open:n,onOpenChange:r,events:o,nodeId:i,elements:{reference:l,domReference:a,floating:c},dataRef:f}=e,{enabled:d=!0,escapeKey:m=!0,outsidePress:g=!0,outsidePressEvent:p="pointerdown",referencePress:h=!1,referencePressEvent:v="pointerdown",ancestorScroll:y=!1,bubbles:b=!0}=void 0===t?{}:t,E=useFloatingTree(),w=null!=useFloatingParentNodeId(),x=useEvent("function"==typeof g?g:()=>!1),R="function"==typeof g?x:g,O=u.useRef(!1),{escapeKeyBubbles:P,outsidePressBubbles:T}=normalizeBubblesProp(b);return u.useEffect(()=>{if(!n||!d)return;function onKeyDown(e){if("Escape"===e.key){let e=E?getChildren(E.nodesRef.current,i):[];if(e.length>0){let t=!0;if(e.forEach(e=>{var n;if(null!=(n=e.context)&&n.open&&!e.context.dataRef.current.__escapeKeyBubbles){t=!1;return}}),!t)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1)}}function onOutsidePress(e){var t;let n=O.current;if(O.current=!1,n||"function"==typeof R&&!R(e))return;let u="composedPath"in e?e.composedPath()[0]:e.target;if(isHTMLElement(u)&&c){let t=c.ownerDocument.defaultView||window,n=u.scrollWidth>u.clientWidth,r=u.scrollHeight>u.clientHeight,o=r&&e.offsetX>u.clientWidth;if(r){let n="rtl"===t.getComputedStyle(u).direction;n&&(o=e.offsetX<=u.offsetWidth-u.clientWidth)}if(o||n&&e.offsetY>u.clientHeight)return}let l=E&&getChildren(E.nodesRef.current,i).some(t=>{var n;return isEventTargetWithin(e,null==(n=t.context)?void 0:n.elements.floating)});if(isEventTargetWithin(e,c)||isEventTargetWithin(e,a)||l)return;let s=E?getChildren(E.nodesRef.current,i):[];if(s.length>0){let e=!0;if(s.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:w?{preventScroll:!0}:function(e){if(0===e.mozInputSource&&e.isTrusted)return!0;let t=/Android/i;return(t.test(getPlatform())||t.test(function(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}(e)||0===(t=e).width&&0===t.height||1===t.width&&1===t.height&&0===t.pressure&&0===t.detail&&"mouse"!==t.pointerType||t.width<1&&t.height<1&&0===t.pressure&&0===t.detail}}),r(!1)}function onScroll(){r(!1)}f.current.__escapeKeyBubbles=P,f.current.__outsidePressBubbles=T;let e=getDocument(c);m&&e.addEventListener("keydown",onKeyDown),R&&e.addEventListener(p,onOutsidePress);let t=[];return y&&(isElement(a)&&(t=(0,s.Kx)(a)),isElement(c)&&(t=t.concat((0,s.Kx)(c))),!isElement(l)&&l&&l.contextElement&&(t=t.concat((0,s.Kx)(l.contextElement)))),(t=t.filter(t=>{var n;return t!==(null==(n=e.defaultView)?void 0:n.visualViewport)})).forEach(e=>{e.addEventListener("scroll",onScroll,{passive:!0})}),()=>{m&&e.removeEventListener("keydown",onKeyDown),R&&e.removeEventListener(p,onOutsidePress),t.forEach(e=>{e.removeEventListener("scroll",onScroll)})}},[f,c,a,l,m,R,p,o,E,i,n,r,y,d,P,T,w]),u.useEffect(()=>{O.current=!1},[R,p]),u.useMemo(()=>d?{reference:{[C[v]]:()=>{h&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1))}},floating:{[A[p]]:()=>{O.current=!0}}}:{},[d,o,h,p,v,r])},useFocus=function(e,t){let{open:n,onOpenChange:r,dataRef:o,events:i,refs:l,elements:{floating:a,domReference:s}}=e,{enabled:c=!0,keyboardOnly:f=!0}=void 0===t?{}:t,d=u.useRef(""),m=u.useRef(!1),g=u.useRef();return u.useEffect(()=>{if(!c)return;let e=getDocument(a),t=e.defaultView||window;function onBlur(){!n&&isHTMLElement(s)&&s===activeElement$1(getDocument(s))&&(m.current=!0)}return t.addEventListener("blur",onBlur),()=>{t.removeEventListener("blur",onBlur)}},[a,s,n,c]),u.useEffect(()=>{if(c)return i.on("dismiss",onDismiss),()=>{i.off("dismiss",onDismiss)};function onDismiss(e){("referencePress"===e.type||"escapeKey"===e.type)&&(m.current=!0)}},[i,c]),u.useEffect(()=>()=>{clearTimeout(g.current)},[]),u.useMemo(()=>c?{reference:{onPointerDown(e){let{pointerType:t}=e;d.current=t,m.current=!!(t&&f)},onMouseLeave(){m.current=!1},onFocus(e){var t;m.current||"focus"===e.type&&(null==(t=o.current.openEvent)?void 0:t.type)==="mousedown"&&o.current.openEvent&&isEventTargetWithin(o.current.openEvent,s)||(o.current.openEvent=e.nativeEvent,r(!0))},onBlur(e){m.current=!1;let t=e.relatedTarget,n=isElement(t)&&t.hasAttribute("data-floating-ui-focus-guard")&&"outside"===t.getAttribute("data-type");g.current=setTimeout(()=>{contains(l.floating.current,t)||contains(s,t)||n||r(!1)})}}}:{},[c,f,s,l,o,r])},useRole=function(e,t){let{open:n}=e,{enabled:r=!0,role:o="dialog"}=void 0===t?{}:t,i=p(),l=p();return u.useMemo(()=>{let e={id:i,role:o};return r?"tooltip"===o?{reference:{"aria-describedby":n?i:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===o?"dialog":o,"aria-controls":n?i:void 0,..."listbox"===o&&{role:"combobox"},..."menu"===o&&{id:l}},floating:{...e,..."menu"===o&&{"aria-labelledby":l}}}:{}},[r,o,n,i,l])};function useFloating(e){void 0===e&&(e={});let{open:t=!1,onOpenChange:n,nodeId:r}=e,o=(0,c.YF)(e),i=useFloatingTree(),l=u.useRef(null),a=u.useRef({}),s=u.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,(e.get(t)||[]).filter(e=>e!==n))}}})())[0],[d,m]=u.useState(null),g=u.useCallback(e=>{let t=isElement(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;o.refs.setReference(t)},[o.refs]),p=u.useCallback(e=>{(isElement(e)||null===e)&&(l.current=e,m(e)),(isElement(o.refs.reference.current)||null===o.refs.reference.current||null!==e&&!isElement(e))&&o.refs.setReference(e)},[o.refs]),h=u.useMemo(()=>({...o.refs,setReference:p,setPositionReference:g,domReference:l}),[o.refs,p,g]),v=u.useMemo(()=>({...o.elements,domReference:d}),[o.elements,d]),y=useEvent(n),b=u.useMemo(()=>({...o,refs:h,elements:v,dataRef:a,nodeId:r,events:s,open:t,onOpenChange:y}),[o,r,s,t,y,h,v]);return f(()=>{let e=null==i?void 0:i.nodesRef.current.find(e=>e.id===r);e&&(e.context=b)}),u.useMemo(()=>({...o,context:b,refs:h,reference:p,positionReference:g}),[o,h,b,p,g])}function mergeProps(e,t,n){let r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map(e=>e?e[n]:null).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,o]=t;if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof o){var i;null==(i=r.get(n))||i.push(o),e[n]=function(){for(var e,t=arguments.length,o=Array(t),i=0;ie(...o))}}}else e[n]=o}),e),{})}}let useInteractions=function(e){void 0===e&&(e=[]);let t=e,n=u.useCallback(t=>mergeProps(t,e,"reference"),t),r=u.useCallback(t=>mergeProps(t,e,"floating"),t),o=u.useCallback(t=>mergeProps(t,e,"item"),e.map(e=>null==e?void 0:e.item));return u.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}},aUsF:function(e){"use strict";e.exports=function equal(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!equal(e[r],t[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){var n,r,o,i=o[r];if(!equal(e[i],t[i]))return!1}return!0}return e!=e&&t!=t}},KYiY:function(e,t,n){var r;!function(){var t={initialize:function(){this._tasks=new Map},mutate:function(e,t){return create(this,"mutate",e,t)},measure:function(e,t){return create(this,"measure",e,t)},clear:function(e){var t=this._tasks,n=t.get(e);this.fastdom.clear(n),t.delete(e)}};function create(e,t,n,r){var o,i=e._tasks,u=e.fastdom,l=new Promise(function(e,a){o=u[t](function(){i.delete(l);try{e(r?n.call(r):n())}catch(e){a(e)}},r)});return i.set(l,o),l}void 0!==(r=(function(){return t}).call(t,n,t,e))&&(e.exports=r)}()},Sn6X:function(e,t,n){var r;!function(t){"use strict";var debug=function(){},o=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function FastDom(){this.reads=[],this.writes=[],this.raf=o.bind(t),debug("initialized",this)}function scheduleFlush(e){e.scheduled||(e.scheduled=!0,e.raf(flush.bind(null,e)),debug("flush scheduled"))}function flush(e){debug("flush");var t,n=e.writes,r=e.reads;try{debug("flushing reads",r.length),e.runTasks(r),debug("flushing writes",n.length),e.runTasks(n)}catch(e){t=e}if(e.scheduled=!1,(r.length||n.length)&&scheduleFlush(e),t){if(debug("task errored",t.message),e.catch)e.catch(t);else throw t}}function remove(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}FastDom.prototype={constructor:FastDom,runTasks:function(e){var t;for(debug("run tasks");t=e.shift();)t()},measure:function(e,t){debug("measure");var n=t?e.bind(t):e;return this.reads.push(n),scheduleFlush(this),n},mutate:function(e,t){debug("mutate");var n=t?e.bind(t):e;return this.writes.push(n),scheduleFlush(this),n},clear:function(e){return debug("clear",e),remove(this.reads,e)||remove(this.writes,e)},extend:function(e){if(debug("extend",e),"object"!=typeof e)throw Error("expected object");var t=Object.create(this);return function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var i=t.fastdom=t.fastdom||new FastDom;void 0!==(r=(function(){return i}).call(i,n,i,e))&&(e.exports=r)}("undefined"!=typeof window?window:void 0!==this?this:globalThis)},c0go:function(e){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:u}=n,l=i.filter(Boolean),a=await (null==u.isRTL?void 0:u.isRTL(t)),s=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=computeCoordsFromPlacement(s,r,a),d=r,m={},g=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:u,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:f=0}=(0,r.ku)(e,t)||{};if(null==c)return{};let d=(0,r.yd)(f),m={x:n,y:o},g=(0,r.Wh)(i),p=(0,r.I4)(g),h=await l.getDimensions(c),v="y"===g,y=v?"clientHeight":"clientWidth",b=u.reference[p]+u.reference[g]-m[g]-u.floating[p],E=m[g]-u.reference[g],w=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),x=w?w[y]:0;x&&await (null==l.isElement?void 0:l.isElement(w))||(x=a.floating[y]||u.floating[p]);let R=x/2-h[p]/2-1,O=(0,r.VV)(d[v?"top":"left"],R),C=(0,r.VV)(d[v?"bottom":"right"],R),A=x-h[p]-C,P=x/2-h[p]/2+(b/2-E/2),T=(0,r.uZ)(O,P,A),L=!s.arrow&&null!=(0,r.hp)(i)&&P!=T&&u.reference[p]/2-(Pe<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(u=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:u.placement;if(!n)switch(v){case"bestFit":{let e=null==(l=T.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=f}if(a!==n)return{reset:{placement:n}}}return{}}}};function getBoundingRect(e){let t=(0,r.VV)(...e.map(e=>e.left)),n=(0,r.VV)(...e.map(e=>e.top)),o=(0,r.Fp)(...e.map(e=>e.right)),i=(0,r.Fp)(...e.map(e=>e.bottom));return{x:t,y:n,width:o-t,height:i-n}}let inline=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:o,rects:i,platform:u,strategy:l}=t,{padding:a=2,x:s,y:c}=(0,r.ku)(e,t),f=Array.from(await (null==u.getClientRects?void 0:u.getClientRects(o.reference))||[]),d=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],o=null;for(let e=0;eo.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map(e=>(0,r.JB)(getBoundingRect(e)))}(f),m=(0,r.JB)(getBoundingRect(f)),g=(0,r.yd)(a),p=await u.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=s&&null!=c)return d.find(e=>s>e.left-g.left&&se.top-g.top&&c=2){if("y"===(0,r.Qq)(n)){let e=d[0],t=d[d.length-1],o="top"===(0,r.k3)(n),i=e.top,u=t.bottom,l=o?e.left:t.left,a=o?e.right:t.right;return{top:i,bottom:u,left:l,right:a,width:a-l,height:u-i,x:l,y:i}}let e="left"===(0,r.k3)(n),t=(0,r.Fp)(...d.map(e=>e.right)),o=(0,r.VV)(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===o:n.right===t),u=i[0].top,l=i[i.length-1].bottom,a=t-o;return{top:u,bottom:l,left:o,right:t,width:a,height:l-u,x:o,y:u}}return m}},floating:o.floating,strategy:l});return i.reference.x!==p.reference.x||i.reference.y!==p.reference.y||i.reference.width!==p.reference.width||i.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}};async function convertValueToCoords(e,t){let{placement:n,platform:o,elements:i}=e,u=await (null==o.isRTL?void 0:o.isRTL(i.floating)),l=(0,r.k3)(n),a=(0,r.hp)(n),s="y"===(0,r.Qq)(n),c=["left","top"].includes(l)?-1:1,f=u&&s?-1:1,d=(0,r.ku)(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof p&&(g="end"===a?-1*p:p),s?{x:g*f,y:m*c}:{x:m*c,y:g*f}}let offset=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,o=await convertValueToCoords(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},shift=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i}=t,{mainAxis:u=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=(0,r.ku)(e,t),c={x:n,y:o},f=await detectOverflow(t,s),d=(0,r.Qq)((0,r.k3)(i)),m=(0,r.Rn)(d),g=c[m],p=c[d];if(u){let e=g+f["y"===m?"top":"left"],t=g-f["y"===m?"bottom":"right"];g=(0,r.uZ)(e,g,t)}if(l){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+f[e],o=p-f[t];p=(0,r.uZ)(n,p,o)}let h=a.fn({...t,[m]:g,[d]:p});return{...h,data:{x:h.x-n,y:h.y-o}}}}},limitShift=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:o,placement:i,rects:u,middlewareData:l}=t,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=(0,r.ku)(e,t),f={x:n,y:o},d=(0,r.Qq)(i),m=(0,r.Rn)(d),g=f[m],p=f[d],h=(0,r.ku)(a,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){let e="y"===m?"height":"width",t=u.reference[m]-u.floating[e]+v.mainAxis,n=u.reference[m]+u.reference[e]-v.mainAxis;gn&&(g=n)}if(c){var y,b;let e="y"===m?"width":"height",t=["top","left"].includes((0,r.k3)(i)),n=u.reference[d]-u.floating[e]+(t&&(null==(y=l.offset)?void 0:y[d])||0)+(t?0:v.crossAxis),o=u.reference[d]+u.reference[e]+(t?0:(null==(b=l.offset)?void 0:b[d])||0)-(t?v.crossAxis:0);po&&(p=o)}return{[m]:g,[d]:p}}}},size=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,o;let{placement:i,rects:u,platform:l,elements:a}=t,{apply:s=()=>{},...c}=(0,r.ku)(e,t),f=await detectOverflow(t,c),d=(0,r.k3)(i),m=(0,r.hp)(i),g="y"===(0,r.Qq)(i),{width:p,height:h}=u.floating;"top"===d||"bottom"===d?(n=d,o=m===(await (null==l.isRTL?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(o=d,n="end"===m?"top":"bottom");let v=h-f[n],y=p-f[o],b=!t.middlewareData.shift,E=v,w=y;if(g){let e=p-f.left-f.right;w=m||b?(0,r.VV)(y,e):e}else{let e=h-f.top-f.bottom;E=m||b?(0,r.VV)(v,e):e}if(b&&!m){let e=(0,r.Fp)(f.left,0),t=(0,r.Fp)(f.right,0),n=(0,r.Fp)(f.top,0),o=(0,r.Fp)(f.bottom,0);g?w=p-2*(0!==e||0!==t?e+t:(0,r.Fp)(f.left,f.right)):E=h-2*(0!==n||0!==o?n+o:(0,r.Fp)(f.top,f.bottom))}await s({...t,availableWidth:w,availableHeight:E});let x=await l.getDimensions(a.floating);return p!==x.width||h!==x.height?{reset:{rects:!0}}:{}}}}},"+YtJ":function(e,t,n){"use strict";n.d(t,{Me:function(){return autoUpdate},oo:function(){return computePosition}});var r=n("lCDh"),o=n("DC51"),i=n("imYf");function getCssDimensions(e){let t=(0,i.Dx)(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,u=(0,i.Re)(e),l=u?e.offsetWidth:n,a=u?e.offsetHeight:o,s=(0,r.NM)(n)!==l||(0,r.NM)(o)!==a;return s&&(n=l,o=a),{width:n,height:o,$:s}}function unwrapElement(e){return(0,i.kK)(e)?e:e.contextElement}function getScale(e){let t=unwrapElement(e);if(!(0,i.Re)(t))return(0,r.ze)(1);let n=t.getBoundingClientRect(),{width:o,height:u,$:l}=getCssDimensions(t),a=(l?(0,r.NM)(n.width):n.width)/o,s=(l?(0,r.NM)(n.height):n.height)/u;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let u=(0,r.ze)(0);function getVisualOffsets(e){let t=(0,i.Jj)(e);return(0,i.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:u}function getBoundingClientRect(e,t,n,o){var u;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),a=unwrapElement(e),s=(0,r.ze)(1);t&&(o?(0,i.kK)(o)&&(s=getScale(o)):s=getScale(e));let c=(void 0===(u=n)&&(u=!1),o&&(!u||o===(0,i.Jj)(a))&&u)?getVisualOffsets(a):(0,r.ze)(0),f=(l.left+c.x)/s.x,d=(l.top+c.y)/s.y,m=l.width/s.x,g=l.height/s.y;if(a){let e=(0,i.Jj)(a),t=o&&(0,i.kK)(o)?(0,i.Jj)(o):o,n=e.frameElement;for(;n&&o&&t!==e;){let e=getScale(n),t=n.getBoundingClientRect(),r=(0,i.Dx)(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,u=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;f*=e.x,d*=e.y,m*=e.x,g*=e.y,f+=o,d+=u,n=(0,i.Jj)(n).frameElement}}return(0,r.JB)({width:m,height:g,x:f,y:d})}function getWindowScrollBarX(e){return getBoundingClientRect((0,i.tF)(e)).left+(0,i.Lw)(e).scrollLeft}function getClientRectFromClippingAncestor(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=(0,i.Jj)(e),r=(0,i.tF)(e),o=n.visualViewport,u=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){u=o.width,l=o.height;let e=(0,i.Pf)();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:u,height:l,x:a,y:s}}(e,n);else if("document"===t)o=function(e){let t=(0,i.tF)(e),n=(0,i.Lw)(e),o=e.ownerDocument.body,u=(0,r.Fp)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=(0,r.Fp)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),a=-n.scrollLeft+getWindowScrollBarX(e),s=-n.scrollTop;return"rtl"===(0,i.Dx)(o).direction&&(a+=(0,r.Fp)(t.clientWidth,o.clientWidth)-u),{width:u,height:l,x:a,y:s}}((0,i.tF)(e));else if((0,i.kK)(t))o=function(e,t){let n=getBoundingClientRect(e,!0,"fixed"===t),o=n.top+e.clientTop,u=n.left+e.clientLeft,l=(0,i.Re)(e)?getScale(e):(0,r.ze)(1),a=e.clientWidth*l.x,s=e.clientHeight*l.y,c=u*l.x,f=o*l.y;return{width:a,height:s,x:c,y:f}}(t,n);else{let n=getVisualOffsets(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return(0,r.JB)(o)}function getTrueOffsetParent(e,t){return(0,i.Re)(e)&&"fixed"!==(0,i.Dx)(e).position?t?t(e):e.offsetParent:null}function getOffsetParent(e,t){let n=(0,i.Jj)(e);if(!(0,i.Re)(e))return n;let r=getTrueOffsetParent(e,t);for(;r&&(0,i.Ze)(r)&&"static"===(0,i.Dx)(r).position;)r=getTrueOffsetParent(r,t);return r&&("html"===(0,i.wk)(r)||"body"===(0,i.wk)(r)&&"static"===(0,i.Dx)(r).position&&!(0,i.hT)(r))?n:r||(0,i.gQ)(e)||n}let getElementRects=async function(e){let{reference:t,floating:n,strategy:o}=e,u=this.getOffsetParent||getOffsetParent,l=this.getDimensions;return{reference:function(e,t,n){let o=(0,i.Re)(t),u=(0,i.tF)(t),l="fixed"===n,a=getBoundingClientRect(e,!0,l,t),s={scrollLeft:0,scrollTop:0},c=(0,r.ze)(0);if(o||!o&&!l){if(("body"!==(0,i.wk)(t)||(0,i.ao)(u))&&(s=(0,i.Lw)(t)),o){let e=getBoundingClientRect(t,!0,l,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else u&&(c.x=getWindowScrollBarX(u))}return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}(t,await u(n),o),floating:{x:0,y:0,...await l(n)}}},l={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e,u=(0,i.Re)(n),l=(0,i.tF)(n);if(n===l)return t;let a={scrollLeft:0,scrollTop:0},s=(0,r.ze)(1),c=(0,r.ze)(0);if((u||!u&&"fixed"!==o)&&(("body"!==(0,i.wk)(n)||(0,i.ao)(l))&&(a=(0,i.Lw)(n)),(0,i.Re)(n))){let e=getBoundingClientRect(n);s=getScale(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+c.x,y:t.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:i.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:u}=e,l="clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=(0,i.Kx)(e,[],!1).filter(e=>(0,i.kK)(e)&&"body"!==(0,i.wk)(e)),o=null,u="fixed"===(0,i.Dx)(e).position,l=u?(0,i.Ow)(e):e;for(;(0,i.kK)(l)&&!(0,i.Py)(l);){let t=(0,i.Dx)(l),n=(0,i.hT)(l);n||"fixed"!==t.position||(o=null);let a=u?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||(0,i.ao)(l)&&!n&&function hasFixedPositionAncestor(e,t){let n=(0,i.Ow)(e);return!(n===t||!(0,i.kK)(n)||(0,i.Py)(n))&&("fixed"===(0,i.Dx)(n).position||hasFixedPositionAncestor(n,t))}(e,l);a?r=r.filter(e=>e!==l):o=t,l=(0,i.Ow)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...l,o],s=a[0],c=a.reduce((e,n)=>{let o=getClientRectFromClippingAncestor(t,n,u);return e.top=(0,r.Fp)(o.top,e.top),e.right=(0,r.VV)(o.right,e.right),e.bottom=(0,r.VV)(o.bottom,e.bottom),e.left=(0,r.Fp)(o.left,e.left),e},getClientRectFromClippingAncestor(t,s,u));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent,getElementRects,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return getCssDimensions(e)},getScale,isElement:i.kK,isRTL:function(e){return"rtl"===(0,i.Dx)(e).direction}};function autoUpdate(e,t,n,o){let u;void 0===o&&(o={});let{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,d=unwrapElement(e),m=l||a?[...d?(0,i.Kx)(d):[],...(0,i.Kx)(t)]:[];m.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let g=d&&c?function(e,t){let n,o=null,u=(0,i.tF)(e);function cleanup(){clearTimeout(n),o&&o.disconnect(),o=null}return!function refresh(i,l){void 0===i&&(i=!1),void 0===l&&(l=1),cleanup();let{left:a,top:s,width:c,height:f}=e.getBoundingClientRect();if(i||t(),!c||!f)return;let d=(0,r.GW)(s),m=(0,r.GW)(u.clientWidth-(a+c)),g=(0,r.GW)(u.clientHeight-(s+f)),p=(0,r.GW)(a),h={rootMargin:-d+"px "+-m+"px "+-g+"px "+-p+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,l))||1},v=!0;function handleObserve(e){let t=e[0].intersectionRatio;if(t!==l){if(!v)return refresh();t?refresh(!1,t):n=setTimeout(()=>{refresh(!1,1e-7)},100)}v=!1}try{o=new IntersectionObserver(handleObserve,{...h,root:u.ownerDocument})}catch(e){o=new IntersectionObserver(handleObserve,h)}o.observe(e)}(!0),cleanup}(d,n):null,p=-1,h=null;s&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),n()}),d&&!f&&h.observe(d),h.observe(t));let v=f?getBoundingClientRect(e):null;return f&&function frameLoop(){let t=getBoundingClientRect(e);v&&(t.x!==v.x||t.y!==v.y||t.width!==v.width||t.height!==v.height)&&n(),v=t,u=requestAnimationFrame(frameLoop)}(),n(),()=>{m.forEach(e=>{l&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),g&&g(),h&&h.disconnect(),h=null,f&&cancelAnimationFrame(u)}}let computePosition=(e,t,n)=>{let r=new Map,i={platform:l,...n},u={...i.platform,_c:r};return(0,o.oo)(e,t,{...i,platform:u})}},lCDh:function(e,t,n){"use strict";n.d(t,{Fp:function(){return o},GW:function(){return u},I4:function(){return getAxisLength},JB:function(){return rectToClientRect},KX:function(){return getOppositeAxisPlacements},NM:function(){return i},Qq:function(){return getSideAxis},Rn:function(){return getOppositeAxis},VV:function(){return r},Wh:function(){return getAlignmentAxis},gy:function(){return getExpandedPlacements},hp:function(){return getAlignment},i8:function(){return getAlignmentSides},k3:function(){return getSide},ku:function(){return evaluate},pw:function(){return getOppositePlacement},uZ:function(){return clamp},yd:function(){return getPaddingObject},ze:function(){return createCoords}});let r=Math.min,o=Math.max,i=Math.round,u=Math.floor,createCoords=e=>({x:e,y:e}),l={left:"right",right:"left",bottom:"top",top:"bottom"},a={start:"end",end:"start"};function clamp(e,t,n){return o(e,r(t,n))}function evaluate(e,t){return"function"==typeof e?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}function getSideAxis(e){return["top","bottom"].includes(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){void 0===n&&(n=!1);let r=getAlignment(e),o=getAlignmentAxis(e),i=getAxisLength(o),u="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(u=getOppositePlacement(u)),[u,getOppositePlacement(u)]}function getExpandedPlacements(e){let t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,e=>a[e])}function getOppositeAxisPlacements(e,t,n,r){let o=getAlignment(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(getSide(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(getOppositeAlignmentPlacement)))),i}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,e=>l[e])}function getPaddingObject(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},imYf:function(e,t,n){"use strict";function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e?void 0:null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return e instanceof Node||e instanceof getWindow(e).Node}function isElement(e){return e instanceof Element||e instanceof getWindow(e).Element}function isHTMLElement(e){return e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function isTableElement(e){return["table","td","th"].includes(getNodeName(e))}function isContainingBlock(e){let t=isWebKit(),n=getComputedStyle(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 getContainingBlock(e){let t=getParentNode(e);for(;isHTMLElement(t)&&!isLastTraversableNode(t);){if(isContainingBlock(t))return t;t=getParentNode(t)}return null}function isWebKit(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function getParentNode(e){if("html"===getNodeName(e))return e;let t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}n.d(t,{Dx:function(){return getComputedStyle},Jj:function(){return getWindow},Kx:function(){return function getOverflowAncestors(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function getNearestOverflowAncestor(e){let t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),u=getWindow(o);return i?t.concat(u,u.visualViewport||[],isOverflowElement(o)?o:[],u.frameElement&&n?getOverflowAncestors(u.frameElement):[]):t.concat(o,getOverflowAncestors(o,[],n))}},Lw:function(){return getNodeScroll},Ow:function(){return getParentNode},Pf:function(){return isWebKit},Py:function(){return isLastTraversableNode},Re:function(){return isHTMLElement},Ze:function(){return isTableElement},ao:function(){return isOverflowElement},gQ:function(){return getContainingBlock},hT:function(){return isContainingBlock},kK:function(){return isElement},tF:function(){return getDocumentElement},wk:function(){return getNodeName}})},kGUI:function(e,t,n){"use strict";n.d(t,{vZ:function(){return f}});let{getOwnPropertyNames:r,getOwnPropertySymbols:o}=Object,{hasOwnProperty:i}=Object.prototype;function combineComparators(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function createIsCircular(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);let{cache:o}=r,i=o.get(t),u=o.get(n);if(i&&u)return i===n&&u===t;o.set(t,n),o.set(n,t);let l=e(t,n,r);return o.delete(t),o.delete(n),l}}function getStrictProperties(e){return r(e).concat(o(e))}let u=Object.hasOwn||((e,t)=>i.call(e,t));function sameValueZeroEqual(e,t){return e===t||!e&&!t&&e!=e&&t!=t}let{getOwnPropertyDescriptor:l,keys:a}=Object;function areArrayBuffersEqual(e,t){return e.byteLength===t.byteLength&&areTypedArraysEqual(new Uint8Array(e),new Uint8Array(t))}function areArraysEqual(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function areDataViewsEqual(e,t){return e.byteLength===t.byteLength&&areTypedArraysEqual(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function areDatesEqual(e,t){return sameValueZeroEqual(e.getTime(),t.getTime())}function areErrorsEqual(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function areFunctionsEqual(e,t){return e===t}function areMapsEqual(e,t,n){let r,o;let i=e.size;if(i!==t.size)return!1;if(!i)return!0;let u=Array(i),l=e.entries(),a=0;for(;(r=l.next())&&!r.done;){let i=t.entries(),l=!1,s=0;for(;(o=i.next())&&!o.done;){if(u[s]){s++;continue}let i=r.value,c=o.value;if(n.equals(i[0],c[0],a,s,e,t,n)&&n.equals(i[1],c[1],i[0],c[0],e,t,n)){l=u[s]=!0;break}s++}if(!l)return!1;a++}return!0}function areObjectsEqual(e,t,n){let r=a(e),o=r.length;if(a(t).length!==o)return!1;for(;o-- >0;)if(!isPropertyEqual(e,t,n,r[o]))return!1;return!0}function areObjectsEqualStrict(e,t,n){let r,o,i;let u=getStrictProperties(e),a=u.length;if(getStrictProperties(t).length!==a)return!1;for(;a-- >0;)if(!isPropertyEqual(e,t,n,r=u[a])||(o=l(e,r),i=l(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable)))return!1;return!0}function arePrimitiveWrappersEqual(e,t){return sameValueZeroEqual(e.valueOf(),t.valueOf())}function areRegExpsEqual(e,t){return e.source===t.source&&e.flags===t.flags}function areSetsEqual(e,t,n){let r,o;let i=e.size;if(i!==t.size)return!1;if(!i)return!0;let u=Array(i),l=e.values();for(;(r=l.next())&&!r.done;){let i=t.values(),l=!1,a=0;for(;(o=i.next())&&!o.done;){if(!u[a]&&n.equals(r.value,o.value,r.value,o.value,e,t,n)){l=u[a]=!0;break}a++}if(!l)return!1}return!0}function areTypedArraysEqual(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function areUrlsEqual(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function isPropertyEqual(e,t,n,r){return("_owner"===r||"__o"===r||"__v"===r)&&(!!e.$$typeof||!!t.$$typeof)||u(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}let s={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},c=Object.prototype.toString,f=createCustomEqual();function createCustomEqual(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:o=!1}=e,i=function({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual,areArraysEqual:n?areObjectsEqualStrict:areArraysEqual,areDataViewsEqual,areDatesEqual:areDatesEqual,areErrorsEqual:areErrorsEqual,areFunctionsEqual:areFunctionsEqual,areMapsEqual:n?combineComparators(areMapsEqual,areObjectsEqualStrict):areMapsEqual,areNumbersEqual:sameValueZeroEqual,areObjectsEqual:n?areObjectsEqualStrict:areObjectsEqual,arePrimitiveWrappersEqual:arePrimitiveWrappersEqual,areRegExpsEqual:areRegExpsEqual,areSetsEqual:n?combineComparators(areSetsEqual,areObjectsEqualStrict):areSetsEqual,areTypedArraysEqual:n?combineComparators(areTypedArraysEqual,areObjectsEqualStrict):areTypedArraysEqual,areUrlsEqual:areUrlsEqual,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=createIsCircular(r.areArraysEqual),t=createIsCircular(r.areMapsEqual),n=createIsCircular(r.areObjectsEqual),o=createIsCircular(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:o})}return r}(e),u=function({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:o,areFunctionsEqual:i,areMapsEqual:u,areNumbersEqual:l,areObjectsEqual:a,arePrimitiveWrappersEqual:f,areRegExpsEqual:d,areSetsEqual:m,areTypedArraysEqual:g,areUrlsEqual:p,unknownTagComparators:h}){return function(v,y,b){if(v===y)return!0;if(null==v||null==y)return!1;let E=typeof v;if(E!==typeof y)return!1;if("object"!==E)return"number"===E?l(v,y,b):"function"===E&&i(v,y,b);let w=v.constructor;if(w!==y.constructor)return!1;if(w===Object)return a(v,y,b);if(Array.isArray(v))return t(v,y,b);if(w===Date)return r(v,y,b);if(w===RegExp)return d(v,y,b);if(w===Map)return u(v,y,b);if(w===Set)return m(v,y,b);let x=c.call(v);if("[object Date]"===x)return r(v,y,b);if("[object RegExp]"===x)return d(v,y,b);if("[object Map]"===x)return u(v,y,b);if("[object Set]"===x)return m(v,y,b);if("[object Object]"===x)return"function"!=typeof v.then&&"function"!=typeof y.then&&a(v,y,b);if("[object URL]"===x)return p(v,y,b);if("[object Error]"===x)return o(v,y,b);if("[object Arguments]"===x)return a(v,y,b);if(s[x])return g(v,y,b);if("[object ArrayBuffer]"===x)return e(v,y,b);if("[object DataView]"===x)return n(v,y,b);if("[object Boolean]"===x||"[object Number]"===x||"[object String]"===x)return f(v,y,b);if(h){let e=h[x];if(!e){let t=null!=v?v[Symbol.toStringTag]:void 0;t&&(e=h[t])}if(e)return e(v,y,b)}return!1}}(i),l=n?n(u):function(e,t,n,r,o,i,l){return u(e,t,l)};return function({circular:e,comparator:t,createState:n,equals:r,strict:o}){if(n)return function(i,u){let{cache:l=e?new WeakMap:void 0,meta:a}=n();return t(i,u,{cache:l,equals:r,meta:a,strict:o})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:o})};let i={cache:void 0,equals:r,meta:void 0,strict:o};return function(e,n){return t(e,n,i)}}({circular:t,comparator:u,createState:r,equals:l,strict:o})}createCustomEqual({strict:!0}),createCustomEqual({circular:!0}),createCustomEqual({circular:!0,strict:!0}),createCustomEqual({createInternalComparator:()=>sameValueZeroEqual}),createCustomEqual({strict:!0,createInternalComparator:()=>sameValueZeroEqual}),createCustomEqual({circular:!0,createInternalComparator:()=>sameValueZeroEqual}),createCustomEqual({circular:!0,createInternalComparator:()=>sameValueZeroEqual,strict:!0})}}]);