"use strict";(self.webpackChunkhhgDiscoverV1=self.webpackChunkhhgDiscoverV1||[]).push([[8568],{"U+Em":function(e,t,n){n.d(t,{UE:function(){return arrow},we:function(){return useFloating}});var r=n("DC51"),o=n("+YtJ"),i=n("+OUp"),l=n("xzYA");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.UE)({element:t.current,padding:n}).fn(e)}else if(t)return(0,r.UE)({element:t,padding:n}).fn(e);return{}}}};var u="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 u(()=>{t.current=e}),t}function useFloating(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,whileElementsMounted:a,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),v=i.useRef(null),h=i.useRef(f),b=useLatestRef(a),y=useLatestRef(s),[w,E]=i.useState(null),[x,T]=i.useState(null),R=i.useCallback(e=>{p.current!==e&&(p.current=e,E(e))},[]),C=i.useCallback(e=>{v.current!==e&&(v.current=e,T(e))},[]),L=i.useCallback(()=>{if(!p.current||!v.current)return;let e={placement:t,strategy:n,middleware:m};y.current&&(e.platform=y.current),(0,o.rD)(p.current,v.current,e).then(e=>{let t={...e,isPositioned:!0};P.current&&!deepEqual(h.current,t)&&(h.current=t,l.flushSync(()=>{d(t)}))})},[m,t,n,y]);u(()=>{!1===c&&h.current.isPositioned&&(h.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let P=i.useRef(!1);u(()=>(P.current=!0,()=>{P.current=!1}),[]),u(()=>{if(w&&x){if(b.current)return b.current(w,x,L);L()}},[w,x,L,b]);let S=i.useMemo(()=>({reference:p,floating:v,setReference:R,setFloating:C}),[R,C]),A=i.useMemo(()=>({reference:w,floating:x}),[w,x]);return i.useMemo(()=>({...f,update:L,refs:S,elements:A,reference:R,floating:C}),[f,L,S,A,R,C])}},"+e+K":function(e,t,n){let r,o;n.d(t,{$x:function(){return useDelayGroupContext},It:function(){return useRole},Mk:function(){return useHover},T3:function(){return FloatingDelayGroup},XF:function(){return FloatingPortal},bv:function(){return useInteractions},ck:function(){return useDelayGroup},iQ:function(){return useFocus},s9:function(){return useDismiss},we:function(){return useFloating}});var i=n("+OUp");if(8068==n.j)var l=n("YvcI");var u=n("xzYA"),s=n("imYf"),a=n("U+Em"),c="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;let f=!1,d=0,genId=()=>"floating-ui-"+d++,m=i["useId".toString()],g=m||function(){let[e,t]=i.useState(()=>f?genId():void 0);return c(()=>{null==e&&t(genId())},[]),i.useEffect(()=>{f||(f=!0)},[]),e},p=i.createContext(null),v=i.createContext(null),useFloatingParentNodeId=()=>{var e;return(null==(e=i.useContext(p))?void 0:e.id)||null},useFloatingTree=()=>i.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,i.useRef)(e);return c(()=>{t.current=e}),t}let h="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:l=!1,restMs:u=0,move:s=!0}=void 0===t?{}:t,{open:a,onOpenChange:f,dataRef:d,events:m,elements:{domReference:g,floating:p},refs:v}=e,b=useFloatingTree(),y=useFloatingParentNodeId(),w=useLatestRef(o),E=useLatestRef(r),x=i.useRef(),T=i.useRef(),R=i.useRef(),C=i.useRef(),L=i.useRef(!0),P=i.useRef(!1),S=i.useRef(()=>{}),A=i.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]);i.useEffect(()=>{if(n)return m.on("dismiss",onDismiss),()=>{m.off("dismiss",onDismiss)};function onDismiss(){clearTimeout(T.current),clearTimeout(C.current),L.current=!0}},[n,m]),i.useEffect(()=>{if(!n||!w.current||!a)return;function onLeave(){A()&&f(!1)}let e=getDocument(p).documentElement;return e.addEventListener("mouseleave",onLeave),()=>{e.removeEventListener("mouseleave",onLeave)}},[p,a,f,n,w,d,A]);let O=i.useCallback(function(e){void 0===e&&(e=!0);let t=getDelay(E.current,"close",x.current);t&&!R.current?(clearTimeout(T.current),T.current=setTimeout(()=>f(!1),t)):e&&(clearTimeout(T.current),f(!1))},[E,f]),D=i.useCallback(()=>{S.current(),R.current=void 0},[]),I=i.useCallback(()=>{if(P.current){let e=getDocument(v.floating.current).body;e.style.pointerEvents="",e.removeAttribute(h),P.current=!1}},[v]);return i.useEffect(()=>{if(n&&isElement(g))return a&&g.addEventListener("mouseleave",onScrollMouseLeave),null==p||p.addEventListener("mouseleave",onScrollMouseLeave),s&&g.addEventListener("mousemove",onMouseEnter,{once:!0}),g.addEventListener("mouseenter",onMouseEnter),g.addEventListener("mouseleave",onMouseLeave),()=>{a&&g.removeEventListener("mouseleave",onScrollMouseLeave),null==p||p.removeEventListener("mouseleave",onScrollMouseLeave),s&&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(T.current),L.current=!1,l&&!isMouseLikePointerType(x.current)||u>0&&0===getDelay(E.current,"open"))return;d.current.openEvent=e;let t=getDelay(E.current,"open",x.current);t?T.current=setTimeout(()=>{f(!0)},t):f(!0)}function onMouseLeave(t){if(isClickLikeOpenEvent())return;S.current();let n=getDocument(p);if(clearTimeout(C.current),w.current){a||clearTimeout(T.current),R.current=w.current({...e,tree:b,x:t.clientX,y:t.clientY,onClose(){I(),D(),O()}});let r=R.current;n.addEventListener("mousemove",r),S.current=()=>{n.removeEventListener("mousemove",r)};return}O()}function onScrollMouseLeave(t){isClickLikeOpenEvent()||null==w.current||w.current({...e,tree:b,x:t.clientX,y:t.clientY,onClose(){I(),D(),O()}})(t)}},[g,p,n,e,l,u,s,O,D,I,f,a,b,E,w,d]),c(()=>{var e,t,r;if(n&&a&&null!=(e=w.current)&&e.__options.blockPointerEvents&&A()){let e=getDocument(p).body;if(e.setAttribute(h,""),e.style.pointerEvents="none",P.current=!0,isElement(g)&&p){let e=null==b?void 0:null==(t=b.nodesRef.current.find(e=>e.id===y))?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,a,y,p,g,b,w,d,A]),c(()=>{a||(x.current=void 0,D(),I())},[a,D,I]),i.useEffect(()=>()=>{D(),clearTimeout(T.current),clearTimeout(C.current),I()},[n,D,I]),i.useMemo(()=>{if(!n)return{};function setPointerRef(e){x.current=e.pointerType}return{reference:{onPointerDown:setPointerRef,onPointerEnter:setPointerRef,onMouseMove(){a||0===u||(clearTimeout(C.current),C.current=setTimeout(()=>{L.current||f(!0)},u))}},floating:{onMouseEnter(){clearTimeout(T.current)},onMouseLeave(){m.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),O(!1)}}}},[m,n,u,a,f,O])},b=i.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),useDelayGroupContext=()=>i.useContext(b),FloatingDelayGroup=e=>{let{children:t,delay:n,timeoutMs:r=0}=e,[o,l]=i.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),u=i.useRef(null),s=i.useCallback(e=>{l({currentId:e})},[]);return c(()=>{o.currentId?null===u.current?u.current=o.currentId:l({isInstantPhase:!0}):(l({isInstantPhase:!1}),u.current=null)},[o.currentId]),i.createElement(b.Provider,{value:i.useMemo(()=>({...o,setState:l,setCurrentId:s}),[o,l,s])},t)},useDelayGroup=(e,t)=>{let{open:n,onOpenChange:r}=e,{id:o}=t,{currentId:l,setCurrentId:u,initialDelay:s,setState:a,timeoutMs:c}=useDelayGroupContext();i.useEffect(()=>{l&&(a({delay:{open:1,close:getDelay(s,"close")}}),l!==o&&r(!1))},[o,r,a,l,s]),i.useEffect(()=>{function unset(){r(!1),a({delay:s,currentId:null})}if(!n&&l===o){if(c){let e=window.setTimeout(unset,c);return()=>{clearTimeout(e)}}unset()}},[n,a,l,o,r,s,c]),i.useEffect(()=>{n&&u(o)},[n,u,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.Kr)(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 y=i["useInsertionEffect".toString()],w=y||(e=>e());function useEvent(e){let t=i.useRef(()=>{});return w(()=>{t.current=e}),i.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r(isSafari()&&u("button"),document.addEventListener("keydown",setActiveElementOnTab),()=>{document.removeEventListener("keydown",setActiveElementOnTab)}),[]),i.createElement("span",_extends({},e,{ref:t,tabIndex:0,role:l,"aria-hidden":!l||void 0,"data-floating-ui-focus-guard":"",style:E,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)}}))}):null,T=8068==n.j?i.createContext(null):null,useFloatingPortalNode=function(e){let{id:t,enabled:n=!0}=void 0===e?{}:e,[r,o]=i.useState(null),l=g(),u=usePortalContext();return c(()=>{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||l),e.setAttribute("data-floating-ui-portal",""),o(e);let n=(null==u?void 0:u.portalNode)||document.body;return n.appendChild(e),()=>{n.removeChild(e)}}},[t,u,l,n]),r},FloatingPortal=e=>{let{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,s=useFloatingPortalNode({id:n,enabled:!r}),[a,c]=i.useState(null),f=i.useRef(null),d=i.useRef(null),m=i.useRef(null),g=i.useRef(null),p=!!a&&!a.modal&&!!(r||s)&&o;return i.useEffect(()=>{if(s&&o&&(null==a||!a.modal))return s.addEventListener("focusin",onFocus,!0),s.addEventListener("focusout",onFocus,!0),()=>{s.removeEventListener("focusin",onFocus,!0),s.removeEventListener("focusout",onFocus,!0)};function onFocus(e){if(s&&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.Kr)(e,getTabbableOptions());t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(s)}}},[s,o,null==a?void 0:a.modal]),i.createElement(T.Provider,{value:i.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:f,afterOutsideRef:d,beforeInsideRef:m,afterInsideRef:g,portalNode:s,setFocusManagerState:c}),[o,s])},p&&s&&i.createElement(x,{"data-type":"outside",ref:f,onFocus:e=>{if(isOutsideEvent(e,s)){var t;null==(t=m.current)||t.focus()}else{let e=getTabbableIn(document.body,"prev")||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),p&&s&&i.createElement("span",{"aria-owns":s.id,style:E}),r?(0,u.createPortal)(t,r):s?(0,u.createPortal)(t,s):null,p&&s&&i.createElement(x,{"data-type":"outside",ref:d,onFocus:e=>{if(isOutsideEvent(e,s)){var t;null==(t=g.current)||t.focus()}else{let e=getTabbableIn(document.body,"next")||(null==a?void 0:a.refs.domReference.current);null==e||e.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1))}}}))},usePortalContext=()=>i.useContext(T);function isEventTargetWithin(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}let R={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},C={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:l,elements:{reference:u,domReference:a,floating:c},dataRef:f}=e,{enabled:d=!0,escapeKey:m=!0,outsidePress:g=!0,outsidePressEvent:p="pointerdown",referencePress:v=!1,referencePressEvent:h="pointerdown",ancestorScroll:b=!1,bubbles:y=!0}=void 0===t?{}:t,w=useFloatingTree(),E=null!=useFloatingParentNodeId(),x=useEvent("function"==typeof g?g:()=>!1),T="function"==typeof g?x:g,L=i.useRef(!1),{escapeKeyBubbles:P,outsidePressBubbles:S}=normalizeBubblesProp(y);return i.useEffect(()=>{if(!n||!d)return;function onKeyDown(e){if("Escape"===e.key){let e=w?getChildren(w.nodesRef.current,l):[];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=L.current;if(L.current=!1,n||"function"==typeof T&&!T(e))return;let i="composedPath"in e?e.composedPath()[0]:e.target;if(isHTMLElement(i)&&c){let t=c.ownerDocument.defaultView||window,n=i.scrollWidth>i.clientWidth,r=i.scrollHeight>i.clientHeight,o=r&&e.offsetX>i.clientWidth;if(r){let n="rtl"===t.getComputedStyle(i).direction;n&&(o=e.offsetX<=i.offsetWidth-i.clientWidth)}if(o||n&&e.offsetY>i.clientHeight)return}let u=w&&getChildren(w.nodesRef.current,l).some(t=>{var n;return isEventTargetWithin(e,null==(n=t.context)?void 0:n.elements.floating)});if(isEventTargetWithin(e,c)||isEventTargetWithin(e,a)||u)return;let s=w?getChildren(w.nodesRef.current,l):[];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:E?{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=S;let e=getDocument(c);m&&e.addEventListener("keydown",onKeyDown),T&&e.addEventListener(p,onOutsidePress);let t=[];return b&&(isElement(a)&&(t=(0,s.v9)(a)),isElement(c)&&(t=t.concat((0,s.v9)(c))),!isElement(u)&&u&&u.contextElement&&(t=t.concat((0,s.v9)(u.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),T&&e.removeEventListener(p,onOutsidePress),t.forEach(e=>{e.removeEventListener("scroll",onScroll)})}},[f,c,a,u,m,T,p,o,w,l,n,r,b,d,P,S,E]),i.useEffect(()=>{L.current=!1},[T,p]),i.useMemo(()=>d?{reference:{[R[h]]:()=>{v&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1))}},floating:{[C[p]]:()=>{L.current=!0}}}:{},[d,o,v,p,h,r])},useFocus=function(e,t){let{open:n,onOpenChange:r,dataRef:o,events:l,refs:u,elements:{floating:s,domReference:a}}=e,{enabled:c=!0,keyboardOnly:f=!0}=void 0===t?{}:t,d=i.useRef(""),m=i.useRef(!1),g=i.useRef();return i.useEffect(()=>{if(!c)return;let e=getDocument(s),t=e.defaultView||window;function onBlur(){!n&&isHTMLElement(a)&&a===activeElement$1(getDocument(a))&&(m.current=!0)}return t.addEventListener("blur",onBlur),()=>{t.removeEventListener("blur",onBlur)}},[s,a,n,c]),i.useEffect(()=>{if(c)return l.on("dismiss",onDismiss),()=>{l.off("dismiss",onDismiss)};function onDismiss(e){("referencePress"===e.type||"escapeKey"===e.type)&&(m.current=!0)}},[l,c]),i.useEffect(()=>()=>{clearTimeout(g.current)},[]),i.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,a)||(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(u.floating.current,t)||contains(a,t)||n||r(!1)})}}}:{},[c,f,a,u,o,r])},useRole=function(e,t){let{open:n}=e,{enabled:r=!0,role:o="dialog"}=void 0===t?{}:t,l=g(),u=g();return i.useMemo(()=>{let e={id:l,role:o};return r?"tooltip"===o?{reference:{"aria-describedby":n?l:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===o?"dialog":o,"aria-controls":n?l:void 0,..."listbox"===o&&{role:"combobox"},..."menu"===o&&{id:u}},floating:{...e,..."menu"===o&&{"aria-labelledby":u}}}:{}},[r,o,n,l,u])};function useFloating(e){void 0===e&&(e={});let{open:t=!1,onOpenChange:n,nodeId:r}=e,o=(0,a.we)(e),l=useFloatingTree(),u=i.useRef(null),s=i.useRef({}),f=i.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]=i.useState(null),g=i.useCallback(e=>{let t=isElement(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;o.refs.setReference(t)},[o.refs]),p=i.useCallback(e=>{(isElement(e)||null===e)&&(u.current=e,m(e)),(isElement(o.refs.reference.current)||null===o.refs.reference.current||null!==e&&!isElement(e))&&o.refs.setReference(e)},[o.refs]),v=i.useMemo(()=>({...o.refs,setReference:p,setPositionReference:g,domReference:u}),[o.refs,p,g]),h=i.useMemo(()=>({...o.elements,domReference:d}),[o.elements,d]),b=useEvent(n),y=i.useMemo(()=>({...o,refs:v,elements:h,dataRef:s,nodeId:r,events:f,open:t,onOpenChange:b}),[o,r,f,t,b,v,h]);return c(()=>{let e=null==l?void 0:l.nodesRef.current.find(e=>e.id===r);e&&(e.context=y)}),i.useMemo(()=>({...o,context:y,refs:v,reference:p,positionReference:g}),[o,v,y,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=i.useCallback(t=>mergeProps(t,e,"reference"),t),r=i.useCallback(t=>mergeProps(t,e,"floating"),t),o=i.useCallback(t=>mergeProps(t,e,"item"),e.map(e=>null==e?void 0:e.item));return i.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}},YvcI:function(e,t,n){n.d(t,{Kr:function(){return tabbable}});/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var r=8068==n.j?["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"]:null,o=8068==n.j?r.join(","):null,i="undefined"==typeof Element,l=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!i&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},isInert=function isInert(e,t){void 0===t&&(t=!0);var n,r=null==e?void 0:null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&isInert(e.parentNode)},isContentEditable=function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},getCandidates=function(e,t,n){if(isInert(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&l.call(e,o)&&r.unshift(e),r=r.filter(n)},getCandidatesIteratively=function getCandidatesIteratively(e,t,n){for(var r=[],i=Array.from(e);i.length;){var u=i.shift();if(!isInert(u,!1)){if("SLOT"===u.tagName){var s=u.assignedElements(),a=getCandidatesIteratively(s.length?s:u.children,!0,n);n.flatten?r.push.apply(r,a):r.push({scopeParent:u,candidates:a})}else{l.call(u,o)&&n.filter(u)&&(t||!e.includes(u))&&r.push(u);var c=u.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(u),f=!isInert(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(u));if(c&&f){var d=getCandidatesIteratively(!0===c?u.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:u,candidates:d})}else i.unshift.apply(i,u.children)}}}return r},hasTabIndex=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},getTabIndex=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||isContentEditable(e))&&!hasTabIndex(e)?0:e.tabIndex},getSortOrderTabIndex=function(e,t){var n=getTabIndex(e);return n<0&&t&&!hasTabIndex(e)?0:n},sortOrderedTabbables=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},isInput=function(e){return"INPUT"===e.tagName},getCheckedRadio=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(l.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return isZeroArea(e)}else{if("function"==typeof r){for(var i=e;e;){var s=e.parentElement,a=u(e);if(s&&!s.shadowRoot&&!0===r(s))return isZeroArea(e);e=e.assignedSlot?e.assignedSlot:s||a===e.ownerDocument?s:a.host}e=i}if(isNodeAttached(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},isDisabledFromFieldset=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;ngetTabIndex(t))&&(r=e,!((o=t).disabled||isInert(o)||isInput(o)&&"hidden"===o.type||isHidden(o,r)||"DETAILS"===o.tagName&&Array.prototype.slice.apply(o.children).some(function(e){return"SUMMARY"===e.tagName})||isDisabledFromFieldset(o)))},isValidShadowRootTabbable=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},sortByOrder=function sortByOrder(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,l=getSortOrderTabIndex(i,o),u=o?sortByOrder(e.candidates):i;0===l?o?t.push.apply(t,u):t.push(i):n.push({documentOrder:r,tabIndex:l,item:e,isScope:o,content:u})}),n.sort(sortOrderedTabbables).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},tabbable=function(e,t){return sortByOrder((t=t||{}).getShadowRoot?getCandidatesIteratively([e],t.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:isValidShadowRootTabbable}):getCandidates(e,t.includeContainer,isNodeMatchingSelectorTabbable.bind(null,t)))}},DC51:function(e,t,n){n.d(t,{BN:function(){return shift},ER:function(){return limitShift},Ej:function(){return size},UE:function(){return arrow},UU:function(){return flip},cY:function(){return offset},mG:function(){return inline},rD:function(){return computePosition}});var r=n("lCDh");function computeCoordsFromPlacement(e,t,n){let o,{reference:i,floating:l}=e,u=(0,r.TV)(t),s=(0,r.Dz)(t),a=(0,r.sq)(s),c=(0,r.C0)(t),f="y"===u,d=i.x+i.width/2-l.width/2,m=i.y+i.height/2-l.height/2,g=i[a]/2-l[a]/2;switch(c){case"top":o={x:d,y:i.y-l.height};break;case"bottom":o={x:d,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:m};break;case"left":o={x:i.x-l.width,y:m};break;default:o={x:i.x,y:i.y}}switch((0,r.Sg)(t)){case"start":o[s]-=g*(n&&f?-1:1);break;case"end":o[s]+=g*(n&&f?-1:1)}return o}let computePosition=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,u=i.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),a=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=computeCoordsFromPlacement(a,r,s),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:l,platform:u,elements:s,middlewareData:a}=t,{element:c,padding:f=0}=(0,r._3)(e,t)||{};if(null==c)return{};let d=(0,r.nI)(f),m={x:n,y:o},g=(0,r.Dz)(i),p=(0,r.sq)(g),v=await u.getDimensions(c),h="y"===g,b=h?"clientHeight":"clientWidth",y=l.reference[p]+l.reference[g]-m[g]-l.floating[p],w=m[g]-l.reference[g],E=await (null==u.getOffsetParent?void 0:u.getOffsetParent(c)),x=E?E[b]:0;x&&await (null==u.isElement?void 0:u.isElement(E))||(x=s.floating[b]||l.floating[p]);let T=x/2-v[p]/2-1,R=(0,r.jk)(d[h?"top":"left"],T),C=(0,r.jk)(d[h?"bottom":"right"],T),L=x-v[p]-C,P=x/2-v[p]/2+(y/2-w/2),S=(0,r.qE)(R,P,L),A=!a.arrow&&null!=(0,r.Sg)(i)&&P!=S&&l.reference[p]/2-(Pe<=0)){let e=((null==(i=a.flip)?void 0:i.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(l=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!n)switch(h){case"bestFit":{let e=null==(u=S.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:u[0];e&&(n=e);break}case"initialPlacement":n=f}if(s!==n)return{reset:{placement:n}}}return{}}}};function getBoundingRect(e){let t=(0,r.jk)(...e.map(e=>e.left)),n=(0,r.jk)(...e.map(e=>e.top)),o=(0,r.T9)(...e.map(e=>e.right)),i=(0,r.T9)(...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:l,strategy:u}=t,{padding:s=2,x:a,y:c}=(0,r._3)(e,t),f=Array.from(await (null==l.getClientRects?void 0:l.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.B1)(getBoundingRect(e)))}(f),m=(0,r.B1)(getBoundingRect(f)),g=(0,r.nI)(s),p=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=a&&null!=c)return d.find(e=>a>e.left-g.left&&ae.top-g.top&&c=2){if("y"===(0,r.TV)(n)){let e=d[0],t=d[d.length-1],o="top"===(0,r.C0)(n),i=e.top,l=t.bottom,u=o?e.left:t.left,s=o?e.right:t.right;return{top:i,bottom:l,left:u,right:s,width:s-u,height:l-i,x:u,y:i}}let e="left"===(0,r.C0)(n),t=(0,r.T9)(...d.map(e=>e.right)),o=(0,r.jk)(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===o:n.right===t),l=i[0].top,u=i[i.length-1].bottom,s=t-o;return{top:l,bottom:u,left:o,right:t,width:s,height:u-l,x:o,y:l}}return m}},floating:o.floating,strategy:u});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,l=await (null==o.isRTL?void 0:o.isRTL(i.floating)),u=(0,r.C0)(n),s=(0,r.Sg)(n),a="y"===(0,r.TV)(n),c=["left","top"].includes(u)?-1:1,f=l&&a?-1:1,d=(0,r._3)(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 s&&"number"==typeof p&&(g="end"===s?-1*p:p),a?{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:l=!0,crossAxis:u=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=(0,r._3)(e,t),c={x:n,y:o},f=await detectOverflow(t,a),d=(0,r.TV)((0,r.C0)(i)),m=(0,r.PG)(d),g=c[m],p=c[d];if(l){let e=g+f["y"===m?"top":"left"],t=g-f["y"===m?"bottom":"right"];g=(0,r.qE)(e,g,t)}if(u){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+f[e],o=p-f[t];p=(0,r.qE)(n,p,o)}let v=s.fn({...t,[m]:g,[d]:p});return{...v,data:{x:v.x-n,y:v.y-o}}}}},limitShift=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:o,placement:i,rects:l,middlewareData:u}=t,{offset:s=0,mainAxis:a=!0,crossAxis:c=!0}=(0,r._3)(e,t),f={x:n,y:o},d=(0,r.TV)(i),m=(0,r.PG)(d),g=f[m],p=f[d],v=(0,r._3)(s,t),h="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){let e="y"===m?"height":"width",t=l.reference[m]-l.floating[e]+h.mainAxis,n=l.reference[m]+l.reference[e]-h.mainAxis;gn&&(g=n)}if(c){var b,y;let e="y"===m?"width":"height",t=["top","left"].includes((0,r.C0)(i)),n=l.reference[d]-l.floating[e]+(t&&(null==(b=u.offset)?void 0:b[d])||0)+(t?0:h.crossAxis),o=l.reference[d]+l.reference[e]+(t?0:(null==(y=u.offset)?void 0:y[d])||0)-(t?h.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:l,platform:u,elements:s}=t,{apply:a=()=>{},...c}=(0,r._3)(e,t),f=await detectOverflow(t,c),d=(0,r.C0)(i),m=(0,r.Sg)(i),g="y"===(0,r.TV)(i),{width:p,height:v}=l.floating;"top"===d||"bottom"===d?(n=d,o=m===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(o=d,n="end"===m?"top":"bottom");let h=v-f[n],b=p-f[o],y=!t.middlewareData.shift,w=h,E=b;if(g){let e=p-f.left-f.right;E=m||y?(0,r.jk)(b,e):e}else{let e=v-f.top-f.bottom;w=m||y?(0,r.jk)(h,e):e}if(y&&!m){let e=(0,r.T9)(f.left,0),t=(0,r.T9)(f.right,0),n=(0,r.T9)(f.top,0),o=(0,r.T9)(f.bottom,0);g?E=p-2*(0!==e||0!==t?e+t:(0,r.T9)(f.left,f.right)):w=v-2*(0!==n||0!==o?n+o:(0,r.T9)(f.top,f.bottom))}await a({...t,availableWidth:E,availableHeight:w});let x=await u.getDimensions(s.floating);return p!==x.width||v!==x.height?{reset:{rects:!0}}:{}}}}},"+YtJ":function(e,t,n){n.d(t,{ll:function(){return autoUpdate},rD:function(){return computePosition}});var r=n("lCDh"),o=n("DC51"),i=n("imYf");function getCssDimensions(e){let t=(0,i.L9)(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,l=(0,i.sb)(e),u=l?e.offsetWidth:n,s=l?e.offsetHeight:o,a=(0,r.LI)(n)!==u||(0,r.LI)(o)!==s;return a&&(n=u,o=s),{width:n,height:o,$:a}}function unwrapElement(e){return(0,i.vq)(e)?e:e.contextElement}function getScale(e){let t=unwrapElement(e);if(!(0,i.sb)(t))return(0,r.Jx)(1);let n=t.getBoundingClientRect(),{width:o,height:l,$:u}=getCssDimensions(t),s=(u?(0,r.LI)(n.width):n.width)/o,a=(u?(0,r.LI)(n.height):n.height)/l;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let l=(0,r.Jx)(0);function getVisualOffsets(e){let t=(0,i.zk)(e);return(0,i.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:l}function getBoundingClientRect(e,t,n,o){var l;void 0===t&&(t=!1),void 0===n&&(n=!1);let u=e.getBoundingClientRect(),s=unwrapElement(e),a=(0,r.Jx)(1);t&&(o?(0,i.vq)(o)&&(a=getScale(o)):a=getScale(e));let c=(void 0===(l=n)&&(l=!1),o&&(!l||o===(0,i.zk)(s))&&l)?getVisualOffsets(s):(0,r.Jx)(0),f=(u.left+c.x)/a.x,d=(u.top+c.y)/a.y,m=u.width/a.x,g=u.height/a.y;if(s){let e=(0,i.zk)(s),t=o&&(0,i.vq)(o)?(0,i.zk)(o):o,n=e.frameElement;for(;n&&o&&t!==e;){let e=getScale(n),t=n.getBoundingClientRect(),r=(0,i.L9)(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;f*=e.x,d*=e.y,m*=e.x,g*=e.y,f+=o,d+=l,n=(0,i.zk)(n).frameElement}}return(0,r.B1)({width:m,height:g,x:f,y:d})}function getWindowScrollBarX(e){return getBoundingClientRect((0,i.ep)(e)).left+(0,i.CP)(e).scrollLeft}function getClientRectFromClippingAncestor(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=(0,i.zk)(e),r=(0,i.ep)(e),o=n.visualViewport,l=r.clientWidth,u=r.clientHeight,s=0,a=0;if(o){l=o.width,u=o.height;let e=(0,i.Tc)();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,a=o.offsetTop)}return{width:l,height:u,x:s,y:a}}(e,n);else if("document"===t)o=function(e){let t=(0,i.ep)(e),n=(0,i.CP)(e),o=e.ownerDocument.body,l=(0,r.T9)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),u=(0,r.T9)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-n.scrollLeft+getWindowScrollBarX(e),a=-n.scrollTop;return"rtl"===(0,i.L9)(o).direction&&(s+=(0,r.T9)(t.clientWidth,o.clientWidth)-l),{width:l,height:u,x:s,y:a}}((0,i.ep)(e));else if((0,i.vq)(t))o=function(e,t){let n=getBoundingClientRect(e,!0,"fixed"===t),o=n.top+e.clientTop,l=n.left+e.clientLeft,u=(0,i.sb)(e)?getScale(e):(0,r.Jx)(1),s=e.clientWidth*u.x,a=e.clientHeight*u.y,c=l*u.x,f=o*u.y;return{width:s,height:a,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.B1)(o)}function getTrueOffsetParent(e,t){return(0,i.sb)(e)&&"fixed"!==(0,i.L9)(e).position?t?t(e):e.offsetParent:null}function getOffsetParent(e,t){let n=(0,i.zk)(e);if(!(0,i.sb)(e))return n;let r=getTrueOffsetParent(e,t);for(;r&&(0,i.Lv)(r)&&"static"===(0,i.L9)(r).position;)r=getTrueOffsetParent(r,t);return r&&("html"===(0,i.mq)(r)||"body"===(0,i.mq)(r)&&"static"===(0,i.L9)(r).position&&!(0,i.sQ)(r))?n:r||(0,i.gJ)(e)||n}let getElementRects=async function(e){let{reference:t,floating:n,strategy:o}=e,l=this.getOffsetParent||getOffsetParent,u=this.getDimensions;return{reference:function(e,t,n){let o=(0,i.sb)(t),l=(0,i.ep)(t),u="fixed"===n,s=getBoundingClientRect(e,!0,u,t),a={scrollLeft:0,scrollTop:0},c=(0,r.Jx)(0);if(o||!o&&!u){if(("body"!==(0,i.mq)(t)||(0,i.ZU)(l))&&(a=(0,i.CP)(t)),o){let e=getBoundingClientRect(t,!0,u,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else l&&(c.x=getWindowScrollBarX(l))}return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}(t,await l(n),o),floating:{x:0,y:0,...await u(n)}}},u={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e,l=(0,i.sb)(n),u=(0,i.ep)(n);if(n===u)return t;let s={scrollLeft:0,scrollTop:0},a=(0,r.Jx)(1),c=(0,r.Jx)(0);if((l||!l&&"fixed"!==o)&&(("body"!==(0,i.mq)(n)||(0,i.ZU)(u))&&(s=(0,i.CP)(n)),(0,i.sb)(n))){let e=getBoundingClientRect(n);a=getScale(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+c.x,y:t.y*a.y-s.scrollTop*a.y+c.y}},getDocumentElement:i.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e,u="clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=(0,i.v9)(e,[],!1).filter(e=>(0,i.vq)(e)&&"body"!==(0,i.mq)(e)),o=null,l="fixed"===(0,i.L9)(e).position,u=l?(0,i.$4)(e):e;for(;(0,i.vq)(u)&&!(0,i.eu)(u);){let t=(0,i.L9)(u),n=(0,i.sQ)(u);n||"fixed"!==t.position||(o=null);let s=l?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||(0,i.ZU)(u)&&!n&&function hasFixedPositionAncestor(e,t){let n=(0,i.$4)(e);return!(n===t||!(0,i.vq)(n)||(0,i.eu)(n))&&("fixed"===(0,i.L9)(n).position||hasFixedPositionAncestor(n,t))}(e,u);s?r=r.filter(e=>e!==u):o=t,u=(0,i.$4)(u)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...u,o],a=s[0],c=s.reduce((e,n)=>{let o=getClientRectFromClippingAncestor(t,n,l);return e.top=(0,r.T9)(o.top,e.top),e.right=(0,r.jk)(o.right,e.right),e.bottom=(0,r.jk)(o.bottom,e.bottom),e.left=(0,r.T9)(o.left,e.left),e},getClientRectFromClippingAncestor(t,a,l));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.vq,isRTL:function(e){return"rtl"===(0,i.L9)(e).direction}};function autoUpdate(e,t,n,o){let l;void 0===o&&(o={});let{ancestorScroll:u=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,d=unwrapElement(e),m=u||s?[...d?(0,i.v9)(d):[],...(0,i.v9)(t)]:[];m.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let g=d&&c?function(e,t){let n,o=null,l=(0,i.ep)(e);function cleanup(){clearTimeout(n),o&&o.disconnect(),o=null}return!function refresh(i,u){void 0===i&&(i=!1),void 0===u&&(u=1),cleanup();let{left:s,top:a,width:c,height:f}=e.getBoundingClientRect();if(i||t(),!c||!f)return;let d=(0,r.RI)(a),m=(0,r.RI)(l.clientWidth-(s+c)),g=(0,r.RI)(l.clientHeight-(a+f)),p=(0,r.RI)(s),v={rootMargin:-d+"px "+-m+"px "+-g+"px "+-p+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,u))||1},h=!0;function handleObserve(e){let t=e[0].intersectionRatio;if(t!==u){if(!h)return refresh();t?refresh(!1,t):n=setTimeout(()=>{refresh(!1,1e-7)},100)}h=!1}try{o=new IntersectionObserver(handleObserve,{...v,root:l.ownerDocument})}catch(e){o=new IntersectionObserver(handleObserve,v)}o.observe(e)}(!0),cleanup}(d,n):null,p=-1,v=null;a&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{v&&v.observe(t)})),n()}),d&&!f&&v.observe(d),v.observe(t));let h=f?getBoundingClientRect(e):null;return f&&function frameLoop(){let t=getBoundingClientRect(e);h&&(t.x!==h.x||t.y!==h.y||t.width!==h.width||t.height!==h.height)&&n(),h=t,l=requestAnimationFrame(frameLoop)}(),n(),()=>{m.forEach(e=>{u&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),g&&g(),v&&v.disconnect(),v=null,f&&cancelAnimationFrame(l)}}let computePosition=(e,t,n)=>{let r=new Map,i={platform:u,...n},l={...i.platform,_c:r};return(0,o.rD)(e,t,{...i,platform:l})}},lCDh:function(e,t,n){n.d(t,{B1:function(){return rectToClientRect},C0:function(){return getSide},Dz:function(){return getAlignmentAxis},Jx:function(){return createCoords},LI:function(){return i},PG:function(){return getOppositeAxis},RI:function(){return l},Sg:function(){return getAlignment},T9:function(){return o},TV:function(){return getSideAxis},WJ:function(){return getExpandedPlacements},_3:function(){return evaluate},bV:function(){return getOppositePlacement},jk:function(){return r},lP:function(){return getOppositeAxisPlacements},nI:function(){return getPaddingObject},qE:function(){return clamp},sq:function(){return getAxisLength},w7:function(){return getAlignmentSides}});let r=Math.min,o=Math.max,i=Math.round,l=Math.floor,createCoords=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},s={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),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=getOppositePlacement(l)),[l,getOppositePlacement(l)]}function getExpandedPlacements(e){let t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,e=>s[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=>u[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){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,{$4:function(){return getParentNode},CP:function(){return getNodeScroll},L9:function(){return getComputedStyle},Lv:function(){return isTableElement},Tc:function(){return isWebKit},ZU:function(){return isOverflowElement},ep:function(){return getDocumentElement},eu:function(){return isLastTraversableNode},gJ:function(){return getContainingBlock},mq:function(){return getNodeName},sQ:function(){return isContainingBlock},sb:function(){return isHTMLElement},v9: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),l=getWindow(o);return i?t.concat(l,l.visualViewport||[],isOverflowElement(o)?o:[],l.frameElement&&n?getOverflowAncestors(l.frameElement):[]):t.concat(o,getOverflowAncestors(o,[],n))}},vq:function(){return isElement},zk:function(){return getWindow}})}}]);