1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[554],{69576:function(e,t,n){let r,o;n.r(t),n.d(t,{FloatingDelayGroup:function(){return G},FloatingFocusManager:function(){return ex},FloatingNode:function(){return F},FloatingOverlay:function(){return eR},FloatingPortal:function(){return ey},FloatingTree:function(){return P},arrow:function(){return m},autoPlacement:function(){return s.X5},autoUpdate:function(){return d.Me},computePosition:function(){return d.oo},detectOverflow:function(){return s.US},flip:function(){return s.RR},getOverflowAncestors:function(){return a.Kx},hide:function(){return s.Cp},inline:function(){return s.Qo},inner:function(){return e$},limitShift:function(){return s.dr},offset:function(){return s.cv},platform:function(){return d.Jv},safePolygon:function(){return e1},shift:function(){return s.uY},size:function(){return s.dp},useClick:function(){return eT},useDelayGroup:function(){return X},useDelayGroupContext:function(){return Q},useDismiss:function(){return eP},useFloating:function(){return e2},useFloatingNodeId:function(){return A},useFloatingParentNodeId:function(){return L},useFloatingPortalNode:function(){return eh},useFloatingTree:function(){return C},useFocus:function(){return eM},useHover:function(){return J},useId:function(){return E},useInnerOffset:function(){return e0},useInteractions:function(){return e5},useListNavigation:function(){return eJ},useMergeRefs:function(){return eq},useRole:function(){return eQ},useTransitionStatus:function(){return eX},useTransitionStyles:function(){return eU},useTypeahead:function(){return eY}});var u=n(20955),i=n.t(u,2),l=n(85859),c=n(12968),f=n(3190),a=n(96025),s=n(49473),d=n(29401);let m=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,s.x7)({element:t.current,padding:n}).fn(e)}else if(t)return(0,s.x7)({element:t,padding:n}).fn(e);return{}}}};var p="undefined"!=typeof document?u.useLayoutEffect:u.useEffect;function v(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(!v(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)&&!v(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function g(e){let t=u.useRef(e);return p(()=>{t.current=e}),t}var h="undefined"!=typeof document?u.useLayoutEffect:u.useEffect;let y=!1,b=0,w=()=>"floating-ui-"+b++,x=i["useId".toString()],E=x||function(){let[e,t]=u.useState(()=>y?w():void 0);return h(()=>{null==e&&t(w())},[]),u.useEffect(()=>{y||(y=!0)},[]),e};function R(){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))}}}let k=u.createContext(null),T=u.createContext(null),L=()=>{var e;return(null==(e=u.useContext(k))?void 0:e.id)||null},C=()=>u.useContext(T),A=e=>{let t=E(),n=C(),r=L(),o=e||r;return h(()=>{let e={id:t,parentId:o};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,o]),t},F=e=>{let{children:t,id:n}=e,r=L();return u.createElement(k.Provider,{value:u.useMemo(()=>({id:n,parentId:r}),[n,r])},t)},P=e=>{let{children:t}=e,n=u.useRef([]),r=u.useCallback(e=>{n.current=[...n.current,e]},[]),o=u.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),i=u.useState(()=>R())[0];return u.createElement(T.Provider,{value:u.useMemo(()=>({nodesRef:n,addNode:r,removeNode:o,events:i}),[n,r,o,i])},t)};function M(e){return(null==e?void 0:e.ownerDocument)||document}function S(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function O(){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}function D(e){return M(e).defaultView||window}function I(e){return!!e&&e instanceof D(e).Element}function V(e){return!!e&&e instanceof D(e).HTMLElement}function K(e){if(0===e.mozInputSource&&e.isTrusted)return!0;let t=/Android/i;return(t.test(S())||t.test(O()))&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType}function N(e){return 0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"!==e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail}function H(){return/apple/i.test(navigator.vendor)}function B(){return S().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function j(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function W(e){let t=(0,u.useRef)(e);return h(()=>{t.current=e}),t}let _="data-floating-ui-safe-polygon";function z(e,t,n){return n&&!j(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let J=function(e,t){let{enabled:n=!0,delay:r=0,handleClose:o=null,mouseOnly:i=!1,restMs:l=0,move:c=!0}=void 0===t?{}:t,{open:f,onOpenChange:a,dataRef:s,events:d,elements:{domReference:m,floating:p},refs:v}=e,g=C(),y=L(),b=W(o),w=W(r),x=u.useRef(),E=u.useRef(),R=u.useRef(),k=u.useRef(),T=u.useRef(!0),A=u.useRef(!1),F=u.useRef(()=>{}),P=u.useCallback(()=>{var e;let t=null==(e=s.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[s]);u.useEffect(()=>{if(n)return d.on("dismiss",e),()=>{d.off("dismiss",e)};function e(){clearTimeout(E.current),clearTimeout(k.current),T.current=!0}},[n,d]),u.useEffect(()=>{if(!n||!b.current||!f)return;function e(){P()&&a(!1)}let t=M(p).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[p,f,a,n,b,s,P]);let S=u.useCallback(function(e){void 0===e&&(e=!0);let t=z(w.current,"close",x.current);t&&!R.current?(clearTimeout(E.current),E.current=setTimeout(()=>a(!1),t)):e&&(clearTimeout(E.current),a(!1))},[w,a]),O=u.useCallback(()=>{F.current(),R.current=void 0},[]),D=u.useCallback(()=>
1{if(A.current){let e=M(v.floating.current).body;e.style.pointerEvents="",e.removeAttribute(_),A.current=!1}},[v]);return u.useEffect(()=>{if(n&&I(m))return f&&m.addEventListener("mouseleave",u),null==p||p.addEventListener("mouseleave",u),c&&m.addEventListener("mousemove",r,{once:!0}),m.addEventListener("mouseenter",r),m.addEventListener("mouseleave",o),()=>{f&&m.removeEventListener("mouseleave",u),null==p||p.removeEventListener("mouseleave",u),c&&m.removeEventListener("mousemove",r),m.removeEventListener("mouseenter",r),m.removeEventListener("mouseleave",o)};function t(){return!!s.current.openEvent&&["click","mousedown"].includes(s.current.openEvent.type)}function r(e){if(clearTimeout(E.current),T.current=!1,i&&!j(x.current)||l>0&&0===z(w.current,"open"))return;s.current.openEvent=e;let t=z(w.current,"open",x.current);t?E.current=setTimeout(()=>{a(!0)},t):a(!0)}function o(n){if(t())return;F.current();let r=M(p);if(clearTimeout(k.current),b.current){clearTimeout(E.current),R.current=b.current({...e,tree:g,x:n.clientX,y:n.clientY,onClose(){D(),O(),S()}});let t=R.current;r.addEventListener("mousemove",t),F.current=()=>{r.removeEventListener("mousemove",t)};return}S()}function u(n){t()||null==b.current||b.current({...e,tree:g,x:n.clientX,y:n.clientY,onClose(){O(),S()}})(n)}},[m,p,n,e,i,l,c,S,O,D,a,f,g,w,b,s]),h(()=>{var e,t,r;if(n&&f&&null!=(e=b.current)&&e.__options.blockPointerEvents&&P()){let e=M(p).body;if(e.setAttribute(_,""),e.style.pointerEvents="none",A.current=!0,I(m)&&p){let e=null==g?void 0:null==(t=g.nodesRef.current.find(e=>e.id===y))?void 0:null==(r=t.context)?void 0:r.elements.floating;return e&&(e.style.pointerEvents=""),m.style.pointerEvents="auto",p.style.pointerEvents="auto",()=>{m.style.pointerEvents="",p.style.pointerEvents=""}}}},[n,f,y,p,m,g,b,s,P]),h(()=>{f||(x.current=void 0,O(),D())},[f,O,D]),u.useEffect(()=>()=>{O(),clearTimeout(E.current),clearTimeout(k.current),D()},[n,O,D]),u.useMemo(()=>{if(!n)return{};function e(e){x.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(){f||0===l||(clearTimeout(k.current),k.current=setTimeout(()=>{T.current||a(!0)},l))}},floating:{onMouseEnter(){clearTimeout(E.current)},onMouseLeave(){d.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),S(!1)}}}},[d,n,l,f,a,S])},q=u.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),Q=()=>u.useContext(q),G=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),c=u.useCallback(e=>{i({currentId:e})},[]);return h(()=>{o.currentId?null===l.current?l.current=o.currentId:i({isInstantPhase:!0}):(i({isInstantPhase:!1}),l.current=null)},[o.currentId]),u.createElement(q.Provider,{value:u.useMemo(()=>({...o,setState:i,setCurrentId:c}),[o,i,c])},t)},X=(e,t)=>{let{open:n,onOpenChange:r}=e,{id:o}=t,{currentId:i,setCurrentId:l,initialDelay:c,setState:f,timeoutMs:a}=Q();u.useEffect(()=>{i&&(f({delay:{open:1,close:z(c,"close")}}),i!==o&&r(!1))},[o,r,f,i,c]),u.useEffect(()=>{function e(){r(!1),f({delay:c,currentId:null})}if(!n&&i===o){if(a){let t=window.setTimeout(e,a);return()=>{clearTimeout(t)}}e()}},[n,f,i,o,r,c,a]),u.useEffect(()=>{n&&l(o)},[n,l,o])};function U(){return(U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Y(e){let t=e.activeElement;for(;(null==(n=t)?void 0:null==(r=n.shadowRoot)?void 0:r.activeElement)!=null;){var n,r;t=t.shadowRoot.activeElement}return t}function Z(e,t){if(!e||!t)return!1;let n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&function(e){if("undefined"==typeof ShadowRoot)return!1;let t=D(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}let $=0;function ee(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame($);let u=()=>null==e?void 0:e.focus({preventScroll:n});o?u():$=requestAnimationFrame(u)}function et(e,t){let n=e.filter(e=>{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}function en(e){return"composedPath"in e?e.composedPath()[0]:e.target}function er(e){return V(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function eo(e){e.preventDefault(),e.stopPropagation()}let eu=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ei(e,t){let n=(0,c.ht)(e,eu());"prev"===t&&n.reverse();let r=n.indexOf(Y(M(e)));return n.slice(r+1)[0]}function el(){return ei(document.body,"next")}function ec(){return ei(document.body,"prev")}function ef(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Z(n,r)}let ea=i["useInsertionEffect".toString()],es=ea||(e=>e());function ed(e){let t=u.useRef(()=>{});return es(()=>{t.current=e}),u.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}let em={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function ep(e){"Tab"===e.key&&(r=e.target,clearTimeout(o))}let ev=u.forwardRef(function(e,t){let n=ed(e.onFocus),[i,l]=u.useState();return h(()=>(H()&&l("button"),document.addEventListener("keydown",ep),()=>{document.removeEventListener("keydown",ep)}),[]),u.createElement("span",U({},e,{ref:t,tabIndex:0,role:i,"aria-hidden":!i||void 0,"data-floating-ui-focus-guard":"",style:em,onFocus:e=>{H()&&B()&&!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)}}))}),eg=u.createContext(null),eh=function(e){let{id:t,enabled:n=!0}=void 0===e?{}:e,[r,o]=u.useState(null),i=E(),l=eb();return h(()=>
1{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},ey=e=>{let{children:t,id:n,root:r=null,preserveTabOrder:o=!0}=e,i=eh({id:n,enabled:!r}),[l,a]=u.useState(null),s=u.useRef(null),d=u.useRef(null),m=u.useRef(null),p=u.useRef(null),v=!!l&&!l.modal&&!!(r||i)&&o;return u.useEffect(()=>{if(i&&o&&(null==l||!l.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&ef(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,c.ht)(e,eu());t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(i)}}},[i,o,null==l?void 0:l.modal]),u.createElement(eg.Provider,{value:u.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:s,afterOutsideRef:d,beforeInsideRef:m,afterInsideRef:p,portalNode:i,setFocusManagerState:a}),[o,i])},v&&i&&u.createElement(ev,{"data-type":"outside",ref:s,onFocus:e=>{if(ef(e,i)){var t;null==(t=m.current)||t.focus()}else{let e=ec()||(null==l?void 0:l.refs.domReference.current);null==e||e.focus()}}}),v&&i&&u.createElement("span",{"aria-owns":i.id,style:em}),r?(0,f.createPortal)(t,r):i?(0,f.createPortal)(t,i):null,v&&i&&u.createElement(ev,{"data-type":"outside",ref:d,onFocus:e=>{if(ef(e,i)){var t;null==(t=p.current)||t.focus()}else{let e=el()||(null==l?void 0:l.refs.domReference.current);null==e||e.focus(),(null==l?void 0:l.closeOnFocusOut)&&(null==l||l.onOpenChange(!1))}}}))},eb=()=>u.useContext(eg),ew=u.forwardRef(function(e,t){return u.createElement("button",U({},e,{type:"button",ref:t,tabIndex:-1,style:em}))});function ex(e){let{context:t,children:n,order:r=["content"],guards:o=!0,initialFocus:i=0,returnFocus:f=!0,modal:a=!0,visuallyHiddenDismiss:s=!1,closeOnFocusOut:d=!0}=e,{refs:m,nodeId:p,onOpenChange:v,events:g,dataRef:y,elements:{domReference:b,floating:w}}=t,x=W(r),E=C(),R=eb(),[k,T]=u.useState(null),L="number"==typeof i&&i<0,A=u.useRef(null),F=u.useRef(null),P=u.useRef(!1),S=u.useRef(null),O=u.useRef(!1),D=null!=R,I=b&&"combobox"===b.getAttribute("role")&&er(b),K=u.useCallback(function(e){return void 0===e&&(e=w),e?(0,c.ht)(e,eu()):[]},[w]),N=u.useCallback(e=>{let t=K(e);return x.current.map(e=>b&&"reference"===e?b:w&&"floating"===e?w:t).filter(Boolean).flat()},[b,w,x,K]);u.useEffect(()=>{if(!a)return;function e(e){if("Tab"===e.key){0!==K().length||I||eo(e);let t=N(),n=en(e);"reference"===x.current[0]&&n===b&&(eo(e),e.shiftKey?ee(t[t.length-1]):ee(t[1])),"floating"===x.current[1]&&n===w&&e.shiftKey&&(eo(e),ee(t[0]))}}let t=M(w);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[b,w,a,x,m,I,K,N]),u.useEffect(()=>{if(d&&w&&V(b))return b.addEventListener("focusout",t),b.addEventListener("pointerdown",e),a||w.addEventListener("focusout",t),()=>{b.removeEventListener("focusout",t),b.removeEventListener("pointerdown",e),a||w.removeEventListener("focusout",t)};function e(){O.current=!0,setTimeout(()=>{O.current=!1})}function t(e){let t=e.relatedTarget,n=!(Z(b,t)||Z(w,t)||Z(t,w)||Z(null==R?void 0:R.portalNode,t)||null!=t&&t.hasAttribute("data-floating-ui-focus-guard")||E&&(et(E.nodesRef.current,p).find(e=>{var n,r;return Z(null==(n=e.context)?void 0:n.elements.floating,t)||Z(null==(r=e.context)?void 0:r.elements.domReference,t)})||(function(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){let t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r})(E.nodesRef.current,p).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));t&&n&&!O.current&&t!==S.current&&(P.current=!0,setTimeout(()=>v(!1)))}},[b,w,a,p,E,R,v,d]),u.useEffect(()=>{var e;let t=Array.from((null==R?void 0:null==(e=R.portalNode)?void 0:e.querySelectorAll("[data-floating-ui-portal]"))||[]);
1if(w&&a){let e=[w,...t,...[A.current,F.current].filter(Boolean)],n=(0,l.Ry)(x.current.includes("reference")||I?e.concat(b||[]):e);return()=>{n()}}},[b,w,a,x,R,I]),u.useEffect(()=>{if(a&&!o&&w){let e=[],t=eu(),n=(0,c.ht)(M(w).body,t),r=N(),o=n.filter(e=>!r.includes(e));return o.forEach((t,n)=>{e[n]=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")}),()=>{o.forEach((t,n)=>{let r=e[n];null==r?t.removeAttribute("tabindex"):t.setAttribute("tabindex",r)})}}},[w,a,o,N]),h(()=>{if(!w)return;let e=M(w),t=f,n=!1,r=Y(e),o=y.current;S.current=r;let u=N(w),l=("number"==typeof i?u[i]:i.current)||w;function c(e){if("escapeKey"===e.type&&m.domReference.current&&(S.current=m.domReference.current),["referencePress","escapeKey"].includes(e.type))return;let r=e.data.returnFocus;"object"==typeof r?(t=!0,n=r.preventScroll):t=r}return L||ee(l,{preventScroll:l===w}),g.on("dismiss",c),()=>{if(g.off("dismiss",c),Z(w,Y(e))&&m.domReference.current&&(S.current=m.domReference.current),t&&V(S.current)&&!P.current){if(!m.domReference.current||O.current)ee(S.current,{cancelPrevious:!1,preventScroll:n});else{var r;o.__syncReturnFocus=!0,null==(r=S.current)||r.focus({preventScroll:n}),setTimeout(()=>{delete o.__syncReturnFocus})}}}},[w,N,i,f,y,m,g,L]),h(()=>{if(R)return R.setFocusManagerState({...t,modal:a,closeOnFocusOut:d}),()=>{R.setFocusManagerState(null)}},[R,a,d,t]),h(()=>
1{if(!L&&w&&(e(),"function"==typeof MutationObserver)){let t=new MutationObserver(e);return t.observe(w,{childList:!0,subtree:!0}),()=>{t.disconnect()}}function e(){T(K().length)}},[w,K,L,m]);let H=o&&(D||a)&&!I;function B(e){return s&&a?u.createElement(ew,{ref:"start"===e?A:F,onClick:()=>v(!1)},"string"==typeof s?s:"Dismiss"):null}return u.createElement(u.Fragment,null,H&&u.createElement(ev,{"data-type":"inside",ref:null==R?void 0:R.beforeInsideRef,onFocus:e=>{if(a){let e=N();ee("reference"===r[0]?e[0]:e[e.length-1])}else if(null!=R&&R.preserveTabOrder&&R.portalNode){if(P.current=!1,ef(e,R.portalNode)){let e=el()||b;null==e||e.focus()}else{var t;null==(t=R.beforeOutsideRef.current)||t.focus()}}}}),I?null:B("start"),u.cloneElement(n,0===k||r.includes("floating")?{tabIndex:0}:{}),B("end"),H&&u.createElement(ev,{"data-type":"inside",ref:null==R?void 0:R.afterInsideRef,onFocus:e=>{if(a)ee(N()[0]);else if(null!=R&&R.preserveTabOrder&&R.portalNode){if(P.current=!0,ef(e,R.portalNode)){let e=ec()||b;null==e||e.focus()}else{var t;null==(t=R.afterOutsideRef.current)||t.focus()}}}}))}let eE="data-floating-ui-scroll-lock",eR=u.forwardRef(function(e,t){let{lockScroll:n=!1,...r}=e;return h(()=>{var e,t;if(!n)return;let r=document.body.hasAttribute(eE);if(r)return;document.body.setAttribute(eE,"");let o=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft,u=o?"paddingLeft":"paddingRight",i=window.innerWidth-document.documentElement.clientWidth;if(!/iP(hone|ad|od)|iOS/.test(S()))return Object.assign(document.body.style,{overflow:"hidden",[u]:i+"px"}),()=>{document.body.removeAttribute(eE),Object.assign(document.body.style,{overflow:"",[u]:""})};let l=(null==(e=window.visualViewport)?void 0:e.offsetLeft)||0,c=(null==(t=window.visualViewport)?void 0:t.offsetTop)||0,f=window.pageXOffset,a=window.pageYOffset;return Object.assign(document.body.style,{position:"fixed",overflow:"hidden",top:-(a-Math.floor(c))+"px",left:-(f-Math.floor(l))+"px",right:"0",[u]:i+"px"}),()=>{Object.assign(document.body.style,{position:"",overflow:"",top:"",left:"",right:"",[u]:""}),document.body.removeAttribute(eE),window.scrollTo(f,a)}},[n]),u.createElement("div",U({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))});function ek(e){return V(e.target)&&"BUTTON"===e.target.tagName}let eT=function(e,t){let{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:l=!0,event:c="click",toggle:f=!0,ignoreMouse:a=!1,keyboardHandlers:s=!0}=void 0===t?{}:t,d=u.useRef();return u.useMemo(()=>l?{reference:{onPointerDown(e){d.current=e.pointerType},onMouseDown(e){0!==e.button||j(d.current,!0)&&a||"click"===c||(n?f&&(!o.current.openEvent||"mousedown"===o.current.openEvent.type)&&r(!1):(e.preventDefault(),r(!0)),o.current.openEvent=e.nativeEvent)},onClick(e){if(!o.current.__syncReturnFocus){if("mousedown"===c&&d.current){d.current=void 0;return}j(d.current,!0)&&a||(n?f&&(!o.current.openEvent||"click"===o.current.openEvent.type)&&r(!1):r(!0),o.current.openEvent=e.nativeEvent)}},onKeyDown(e){d.current=void 0,!(!s||ek(e))&&(" "!==e.key||er(i)||e.preventDefault(),"Enter"===e.key&&(n?f&&r(!1):r(!0)))},onKeyUp(e){s&&!(ek(e)||er(i))&&" "===e.key&&(n?f&&r(!1):r(!0))}}}:{},[l,o,c,a,s,i,f,n,r])};function eL(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}let eC={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},eA={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},eF=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}},eP=function(e,t){let{open:n,onOpenChange:r,events:o,nodeId:i,elements:{reference:l,domReference:c,floating:f},dataRef:s}=e,{enabled:d=!0,escapeKey:m=!0,outsidePress:p=!0,outsidePressEvent:v="pointerdown",referencePress:g=!1,referencePressEvent:h="pointerdown",ancestorScroll:y=!1,bubbles:b=!0}=void 0===t?{}:t,w=C(),x=null!=L(),E=ed("function"==typeof p?p:()=>!1),R="function"==typeof p?E:p,k=u.useRef(!1),{escapeKeyBubbles:T,outsidePressBubbles:A}=eF(b);return u.useEffect(()=>{if(!n||!d)return;function e(e){if("Escape"===e.key){let e=w?et(w.nodesRef.current,i):[];if(e.length>0){let t=!0;
1if(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 t(e){let t=k.current;if(k.current=!1,t||"function"==typeof R&&!R(e))return;let n=en(e);if(V(n)&&f){let t=f.ownerDocument.defaultView||window,r=n.scrollWidth>n.clientWidth,o=n.scrollHeight>n.clientHeight,u=o&&e.offsetX>n.clientWidth;if(o){let r="rtl"===t.getComputedStyle(n).direction;r&&(u=e.offsetX<=n.offsetWidth-n.clientWidth)}if(u||r&&e.offsetY>n.clientHeight)return}let u=w&&et(w.nodesRef.current,i).some(t=>{var n;return eL(e,null==(n=t.context)?void 0:n.elements.floating)});if(eL(e,f)||eL(e,c)||u)return;let l=w?et(w.nodesRef.current,i):[];if(l.length>0){let e=!0;if(l.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:x?{preventScroll:!0}:K(e)||N(e)}}),r(!1)}function u(){r(!1)}s.current.__escapeKeyBubbles=T,s.current.__outsidePressBubbles=A;let p=M(f);m&&p.addEventListener("keydown",e),R&&p.addEventListener(v,t);let g=[];return y&&(I(c)&&(g=(0,a.Kx)(c)),I(f)&&(g=g.concat((0,a.Kx)(f))),!I(l)&&l&&l.contextElement&&(g=g.concat((0,a.Kx)(l.contextElement)))),(g=g.filter(e=>{var t;return e!==(null==(t=p.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",u,{passive:!0})}),()=>{m&&p.removeEventListener("keydown",e),R&&p.removeEventListener(v,t),g.forEach(e=>{e.removeEventListener("scroll",u)})}},[s,f,c,l,m,R,v,o,w,i,n,r,y,d,T,A,x]),u.useEffect(()=>{k.current=!1},[R,v]),u.useMemo(()=>d?{reference:{[eC[h]]:()=>{g&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1))}},floating:{[eA[v]]:()=>{k.current=!0}}}:{},[d,o,g,v,h,r])},eM=function(e,t){let{open:n,onOpenChange:r,dataRef:o,events:i,refs:l,elements:{floating:c,domReference:f}}=e,{enabled:a=!0,keyboardOnly:s=!0}=void 0===t?{}:t,d=u.useRef(""),m=u.useRef(!1),p=u.useRef();return u.useEffect(()=>{if(!a)return;let e=M(c),t=e.defaultView||window;function r(){!n&&V(f)&&f===Y(M(f))&&(m.current=!0)}return t.addEventListener("blur",r),()=>{t.removeEventListener("blur",r)}},[c,f,n,a]),u.useEffect(()=>{if(a)return i.on("dismiss",e),()=>{i.off("dismiss",e)};function e(e){("referencePress"===e.type||"escapeKey"===e.type)&&(m.current=!0)}},[i,a]),u.useEffect(()=>()=>{clearTimeout(p.current)},[]),u.useMemo(()=>a?{reference:{onPointerDown(e){let{pointerType:t}=e;d.current=t,m.current=!!(t&&s)},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&&eL(o.current.openEvent,f)||(o.current.openEvent=e.nativeEvent,r(!0))},onBlur(e){m.current=!1;let t=e.relatedTarget,n=I(t)&&t.hasAttribute("data-floating-ui-focus-guard")&&"outside"===t.getAttribute("data-type");p.current=setTimeout(()=>{Z(l.floating.current,t)||Z(f,t)||n||r(!1)})}}}:{},[a,s,f,l,o,r])},eS=!1,eO="ArrowUp",eD="ArrowDown",eI="ArrowLeft",eV="ArrowRight";function eK(e,t,n){return Math.floor(e/t)!==n}function eN(e,t){return t<0||t>=e.current.length}function eH(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:u=1}=void 0===t?{}:t,i=e.current,l=n;do{var c,f;l+=r?-u:u}while(l>=0&&l<=i.length-1&&(o?o.includes(l):null==i[l]||(null==(c=i[l])?void 0:c.hasAttribute("disabled"))||(null==(f=i[l])?void 0:f.getAttribute("aria-disabled"))==="true"));return l}function eB(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function ej(e,t){return eB(t,e===eO||e===eD,e===eI||e===eV)}function eW(e,t,n){return eB(t,e===eD,n?e===eI:e===eV)||"Enter"===e||" "==e||""===e}function e_(e,t){return eH(e,{disabledIndices:t})}function ez(e,t){return eH(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}let eJ=function(e,t){let{open:n,onOpenChange:r,refs:o,elements:{domReference:i}}=e,{listRef:l,activeIndex:c,onNavigate:a=()=>{},enabled:s=!0,selectedIndex:d=null,allowEscape:m=!1,loop:p=!1,nested:v=!1,rtl:g=!1,virtual:y=!1,focusItemOnOpen:b="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:x=!0,disabledIndices:E,orientation:R="vertical",cols:k=1,scrollItemIntoView:T=!0}=void 0===t?{listRef:{current:[]},activeIndex:null,onNavigate:()=>{}}:t,A=L(),F=C(),P=ed(a),S=u.useRef(b),O=u.useRef(null!=d?d:-1),D=u.useRef(null),I=u.useRef(!0),j=u.useRef(P),_=u.useRef(n),z=u.useRef(!1),J=u.useRef(!1),q=W(E),Q=W(n),G=W(T),[X,U]=u.useState(),$=u.useCallback(function(e,t,n){void 0===n&&(n=!1);let r=e.current[t.current];y?U(null==r?void 0:r.id):ee(r,{preventScroll:!0,sync:!!(B()&&H())&&(eS||z.current)}),requestAnimationFrame(()=>{let e=G.current,t=e&&r&&(n||!I.current);t&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})},[y,G]);h(()=>{document.createElement("div").focus({get preventScroll(){return eS=!0,!1}})},[]),h(()=>{s&&(n?S.current&&null!=d&&(J.current=!0,P(d)):_.current&&(O.current=-1,j.current(null)))},[s,n,d,P]),h(()=>{s&&n&&(null==c?(z.current=!1,null==d&&(_.current&&(O.current=-1,$(l,O)),!_.current&&S.current&&(null!=D.current||!0===S.current&&null==D.current)&&(O.current=null==D.current||eW(D.current,R,g)||v?e_(l,q.current):ez(l,q.current),P(O.current)))):eN(l,c)||(O.current=c,$(l,O,J.current),J.current=!1))},[s,n,c,d,v,l,R,g,P,$,q]),h(()=>
1{if(s&&_.current&&!n){var e,t;let n=null==F?void 0:null==(e=F.nodesRef.current.find(e=>e.id===A))?void 0:null==(t=e.context)?void 0:t.elements.floating;n&&!Z(n,Y(M(n)))&&n.focus({preventScroll:!0})}},[s,n,F,A]),h(()=>{D.current=null,j.current=P,_.current=n});let et=null!=c,en=u.useMemo(()=>{function e(e){if(!n)return;let t=l.current.indexOf(e);-1!==t&&P(t)}let t={onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...w&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(){if(I.current&&(O.current=-1,$(l,O),(0,f.flushSync)(()=>P(null)),!y)){var e;null==(e=o.floating.current)||e.focus({preventScroll:!0})}}}};return t},[n,o,$,w,l,P,y]);return u.useMemo(()=>{if(!s)return{};let e=q.current;function t(t){var u;if(I.current=!1,z.current=!0,!Q.current&&t.currentTarget===o.floating.current)return;if(v&&(u=t.key,eB(R,g?u===eV:u===eI,u===eO))){eo(t),r(!1),V(i)&&i.focus();return}let c=O.current,f=e_(l,e),a=ez(l,e);if("Home"===t.key&&(O.current=f,P(O.current)),"End"===t.key&&(O.current=a,P(O.current)),k>1){let n=O.current;if(t.key===eO){if(eo(t),-1===n)O.current=a;else if(O.current=eH(l,{startingIndex:n,amount:k,decrement:!0,disabledIndices:e}),p&&(n-k<f||O.current<0)){let e=n%k,t=a%k,r=a-(t-e);t===e?O.current=a:O.current=t>e?r:r-k}eN(l,O.current)&&(O.current=n),P(O.current)}if(t.key===eD&&(eo(t),-1===n?O.current=f:(O.current=eH(l,{startingIndex:n,amount:k,disabledIndices:e}),p&&n+k>a&&(O.current=eH(l,{startingIndex:n%k-k,amount:k,disabledIndices:e}))),eN(l,O.current)&&(O.current=n),P(O.current)),"both"===R){let r=Math.floor(n/k);t.key===eV&&(eo(t),n%k!=k-1?(O.current=eH(l,{startingIndex:n,disabledIndices:e}),p&&eK(O.current,k,r)&&(O.current=eH(l,{startingIndex:n-n%k-1,disabledIndices:e}))):p&&(O.current=eH(l,{startingIndex:n-n%k-1,disabledIndices:e})),eK(O.current,k,r)&&(O.current=n)),t.key===eI&&(eo(t),n%k!=0?(O.current=eH(l,{startingIndex:n,disabledIndices:e,decrement:!0}),p&&eK(O.current,k,r)&&(O.current=eH(l,{startingIndex:n+(k-n%k),decrement:!0,disabledIndices:e}))):p&&(O.current=eH(l,{startingIndex:n+(k-n%k),decrement:!0,disabledIndices:e})),eK(O.current,k,r)&&(O.current=n));let o=Math.floor(a/k)===r;eN(l,O.current)&&(p&&o?O.current=t.key===eI?a:eH(l,{startingIndex:n-n%k-1,disabledIndices:e}):O.current=n),P(O.current);return}}if(ej(t.key,R)){if(eo(t),n&&!y&&Y(t.currentTarget.ownerDocument)===t.currentTarget){O.current=eW(t.key,R,g)?f:a,P(O.current);return}eW(t.key,R,g)?p?O.current=c>=a?m&&c!==l.current.length?-1:f:eH(l,{startingIndex:c,disabledIndices:e}):O.current=Math.min(a,eH(l,{startingIndex:c,disabledIndices:e})):p?O.current=c<=f?m&&-1!==c?l.current.length:a:eH(l,{startingIndex:c,decrement:!0,disabledIndices:e}):O.current=Math.max(f,eH(l,{startingIndex:c,decrement:!0,disabledIndices:e})),eN(l,O.current)?P(null):P(O.current)}}function u(e){"auto"===b&&K(e.nativeEvent)&&(S.current=!0)}let c=y&&n&&et&&{"aria-activedescendant":X};return{reference:{...c,onKeyDown(o){I.current=!1;let u=0===o.key.indexOf("Arrow");if(y&&n)return t(o);if(!n&&!x&&u)return;let i=u||"Enter"===o.key||" "===o.key||""===o.key;if(i&&(D.current=o.key),v){var c;c=o.key,eB(R,g?c===eI:c===eV,c===eD)&&(eo(o),n?(O.current=e_(l,e),P(O.current)):r(!0));return}ej(o.key,R)&&(null!=d&&(O.current=d),eo(o),!n&&x?r(!0):t(o),n&&P(O.current))},onFocus(){n&&P(null)},onPointerDown:function(e){S.current=b,"auto"===b&&N(e.nativeEvent)&&(S.current=!0)},onMouseDown:u,onClick:u},floating:{"aria-orientation":"both"===R?void 0:R,...c,onKeyDown:t,onPointerMove(){I.current=!0}},item:en}},[i,o,X,q,Q,l,s,R,g,y,n,et,v,d,x,m,k,p,b,P,r,en])};function eq(e){return u.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})},e)}let eQ=function(e,t){let{open:n}=e,{enabled:r=!0,role:o="dialog"}=void 0===t?{}:t,i=E(),l=E();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])},eG=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function eX(e,t){let{open:n,elements:{floating:r}}=e,{duration:o=250}=void 0===t?{}:t,i=("number"==typeof o?o:o.close)||0,[l,c]=u.useState(!1),[f,a
1]=u.useState("unmounted"),s=function(e,t){let[n,r]=u.useState(e);return e&&!n&&r(!0),u.useEffect(()=>{if(!e){let e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,t]),n}(n,i);return h(()=>{l&&!s&&a("unmounted")},[l,s]),h(()=>{if(r){if(n){a("initial");let e=requestAnimationFrame(()=>{a("open")});return()=>{cancelAnimationFrame(e)}}c(!0),a("close")}},[n,r]),{isMounted:s,status:f}}function eU(e,t){let{initial:n={opacity:0},open:r,close:o,common:i,duration:l=250}=void 0===t?{}:t,c=e.placement,f=c.split("-")[0],[a,s]=u.useState({}),{isMounted:d,status:m}=eX(e,{duration:l}),p=W(n),v=W(r),g=W(o),y=W(i),b="number"==typeof l,w=(b?l:l.open)||0,x=(b?l:l.close)||0;return h(()=>{let e={side:f,placement:c},t=p.current,n=g.current,r=v.current,o=y.current,u="function"==typeof t?t(e):t,i="function"==typeof n?n(e):n,l="function"==typeof o?o(e):o,a=("function"==typeof r?r(e):r)||Object.keys(u).reduce((e,t)=>(e[t]="",e),{});if("initial"===m&&s(e=>({transitionProperty:e.transitionProperty,...l,...u})),"open"===m&&s({transitionProperty:Object.keys(a).map(eG).join(","),transitionDuration:w+"ms",...l,...a}),"close"===m){let e=i||u;s({transitionProperty:Object.keys(e).map(eG).join(","),transitionDuration:x+"ms",...l,...e})}},[f,c,x,g,p,v,y,w,m]),{isMounted:d,styles:a}}let eY=function(e,t){var n;let{open:r,dataRef:o}=e,{listRef:i,activeIndex:l,onMatch:c=()=>{},enabled:f=!0,findMatch:a=null,resetMs:s=1e3,ignoreKeys:d=[],selectedIndex:m=null}=void 0===t?{listRef:{current:[]},activeIndex:null}:t,p=u.useRef(),v=u.useRef(""),g=u.useRef(null!=(n=null!=m?m:l)?n:-1),y=u.useRef(null),b=ed(c),w=W(a),x=W(d);return h(()=>{r&&(clearTimeout(p.current),y.current=null,v.current="")},[r]),h(()=>
1{if(r&&""===v.current){var e;g.current=null!=(e=null!=m?m:l)?e:-1}},[r,m,l]),u.useMemo(()=>{if(!f)return{};function e(e){let t=en(e.nativeEvent);if(I(t)&&Y(M(t))!==e.currentTarget&&t.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]')!==e.currentTarget)return;v.current.length>0&&" "!==v.current[0]&&(o.current.typing=!0," "===e.key&&eo(e));let n=i.current;if(null==n||x.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;let r=n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())});r&&v.current===e.key&&(v.current="",g.current=y.current),v.current+=e.key,clearTimeout(p.current),p.current=setTimeout(()=>{v.current="",g.current=y.current,o.current.typing=!1},s);let u=g.current,l=[...n.slice((u||0)+1),...n.slice(0,(u||0)+1)],c=w.current?w.current(l,v.current):l.find(e=>(null==e?void 0:e.toLocaleLowerCase().indexOf(v.current.toLocaleLowerCase()))===0),f=c?n.indexOf(c):-1;-1!==f&&(b(f),y.current=f)}return{reference:{onKeyDown:e},floating:{onKeyDown:e}}},[f,o,i,s,x,w,b])};function eZ(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let e$=e=>({name:"inner",options:e,async fn(t){let{listRef:n,overflowRef:r,onFallbackChange:o,offset:u=0,index:i=0,minItemsVisible:l=4,referenceOverflowThreshold:c=0,scrollRef:a,...d}=e,{rects:m,elements:{floating:p}}=t,v=n.current[i];if(!v)return{};let g={...t,...await (0,s.cv)(-v.offsetTop-m.reference.height/2-v.offsetHeight/2-u).fn(t)},h=(null==a?void 0:a.current)||p,y=await (0,s.US)(eZ(g,h.scrollHeight),d),b=await (0,s.US)(g,{...d,elementContext:"reference"}),w=Math.max(0,y.top),x=g.y+w,E=Math.max(0,h.scrollHeight-w-Math.max(0,y.bottom));return h.style.maxHeight=E+"px",h.scrollTop=w,o&&(h.offsetHeight<v.offsetHeight*Math.min(l,n.current.length-1)-1||b.top>=-c||b.bottom>=-c?(0,f.flushSync)(()=>o(!0)):(0,f.flushSync)(()=>o(!1))),r&&(r.current=await (0,s.US)(eZ({...g,y:x},h.offsetHeight),d)),{y:x}}}),e0=(e,t)=>{let{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:l,onChange:c}=t,a=ed(c),s=u.useRef(!1),d=u.useRef(null),m=u.useRef(null);return u.useEffect(()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;let n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,u=t.scrollHeight-t.clientHeight,l=n<0?-1:1,c=n<0?"max":"min";!(t.scrollHeight<=t.clientHeight)&&(!r&&n>0||!o&&n<0?(e.preventDefault(),(0,f.flushSync)(()=>{a(e=>e+Math[c](n,u*l))})):/firefox/i.test(O())&&(t.scrollTop+=n))}let t=(null==l?void 0:l.current)||r.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{d.current=t.scrollTop,null!=i.current&&(m.current={...i.current})}),()=>{d.current=null,m.current=null,t.removeEventListener("wheel",e)}},[o,n,r.floating,i,l,a]),u.useMemo(()=>o?{floating:{onKeyDown(){s.current=!0},onWheel(){s.current=!1},onPointerMove(){s.current=!1},onScroll(){let e=(null==l?void 0:l.current)||r.floating;if(i.current&&e&&s.current){if(null!==d.current){let t=e.scrollTop-d.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&(0,f.flushSync)(()=>a(e=>e+t))}requestAnimationFrame(()=>{d.current=e.scrollTop})}}}}:{},[o,i,r.floating,l,a])};function e1(e){let t,{restMs:n=0,buffer:r=.5,blockPointerEvents:o=!1}=void 0===e?{}:e,u=!1,i=!1,l=e=>{let{x:o,y:l,placement:c,elements:f,onClose:a,nodeId:s,tree:d}=e;return function(e){function m(){clearTimeout(t),a()}if(clearTimeout(t),!f.domReference||!f.floating||null==c||null==o||null==l)return;let{clientX:p,clientY:v}=e,g=[p,v],h=en(e),y="mouseleave"===e.type,b=Z(f.floating,h),w=Z(f.domReference,h),x=f.domReference.getBoundingClientRect(),E=f.floating.getBoundingClientRect(),R=c.split("-")[0],k=o>E.right-E.width/2,T=l>E.bottom-E.height/2,L=g[0]>=x.x&&g[0]<=x.x+x.width&&g[1]>=x.y&&g[1]<=x.y+x.height;if(b&&(i=!0),w&&(i=!1),w&&!y){i=!0;return}if(y&&I(e.relatedTarget)&&Z(f.floating,e.relatedTarget)||d&&et(d.nodesRef.current,s).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===R&&l>=x.bottom-1||"bottom"===R&&l<=x.top+1||"left"===R&&o>=x.right-1||"right"===R&&o<=x.left+1)return m();let C=[];switch(R){case"top":C=[[E.left,x.top+1],[E.left,E.bottom-1],[E.right,E.bottom-1],[E.right,x.top+1]],u=p>=E.left&&p<=E.right&&v>=E.top&&v<=x.top+1;break;case"bottom":C=[[E.left,E.top+1],[E.left,x.bottom-1],[E.right,x.bottom-1],[E.right,E.top+1]],u=p>=E.left&&p<=E.right&&v>=x.bottom-1&&v<=E.bottom;break;case"left":C=[[E.right-1,E.bottom],[E.right-1,E.top],[x.left+1,E.top],[x.left+1,E.bottom]],u=p>=E.left&&p<=x.left+1&&v>=E.top&&v<=E.bottom;break;case"right":C=[[x.right-1,E.bottom],[x.right-1,E.top],[E.left+1,E.top],[E.left+1,E.bottom]],u=p>=x.right-1&&p<=E.right&&v>=E.top&&v<=E.bottom}let A=u?C:function(e){let[t,n]=e,o=E.width>x.width,u=E.height>x.height;switch(R){case"top":{let e=[[E.left,k?E.bottom-r:o?E.bottom-r:E.top],[E.right,k?o?E.bottom-r:E.top:E.bottom-r]];return[[o?t+r/2:k?t+4*r:t-4*r,n+r+1],[o?t-r/2:k?t+4*r:t-4*r,n+r+1],...e]}case"bottom":{let e=[[E.left,k?E.top+r:o?E.top+r:E.bottom],[E.right,k?o?E.top+r:E.bottom:E.top+r]];return[[o?t+r/2:k?t+4*r:t-4*r,n-r],[o?t-r/2:k?t+4*r:t-4*r,n-r],...e]}case"left":{let e=[[T?E.right-r:u?E.right-r:E.left,E.top],[T?u?E.right-r:E.left:E.r
1ight-r,E.bottom]];return[...e,[t+r+1,u?n+r/2:T?n+4*r:n-4*r],[t+r+1,u?n-r/2:T?n+4*r:n-4*r]]}case"right":{let e=[[T?E.left+r:u?E.left+r:E.right,E.top],[T?u?E.left+r:E.right:E.left+r,E.bottom]];return[[t-r,u?n+r/2:T?n+4*r:n-4*r],[t-r,u?n-r/2:T?n+4*r:n-4*r],...e]}}}([o,l]);if(!u){if(i&&!L)return m();!function(e,t){let[n,r]=e,o=!1,u=t.length;for(let e=0,i=u-1;e<u;i=e++){let[u,l]=t[e]||[0,0],[c,f]=t[i]||[0,0],a=l>=r!=f>=r&&n<=(c-u)*(r-l)/(f-l)+u;a&&(o=!o)}return o}([p,v],A)?m():n&&!i&&(t=setTimeout(m,n))}}};return l.__options={blockPointerEvents:o},l}function e2(e){void 0===e&&(e={});let{open:t=!1,onOpenChange:n,nodeId:r}=e,o=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,whileElementsMounted:i,open:l}=e,[c,a]=u.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[s,m]=u.useState(r);v(s,r)||m(r);let h=u.useRef(null),y=u.useRef(null),b=u.useRef(c),w=g(i),x=g(o),[E,R]=u.useState(null),[k,T]=u.useState(null),L=u.useCallback(e=>{h.current!==e&&(h.current=e,R(e))},[]),C=u.useCallback(e=>{y.current!==e&&(y.current=e,T(e))},[]),A=u.useCallback(()=>{if(!h.current||!y.current)return;let e={placement:t,strategy:n,middleware:s};x.current&&(e.platform=x.current),(0,d.oo)(h.current,y.current,e).then(e=>{let t={...e,isPositioned:!0};F.current&&!v(b.current,t)&&(b.current=t,f.flushSync(()=>{a(t)}))})},[s,t,n,x]);p(()=>{!1===l&&b.current.isPositioned&&(b.current.isPositioned=!1,a(e=>({...e,isPositioned:!1})))},[l]);let F=u.useRef(!1);p(()=>(F.current=!0,()=>{F.current=!1}),[]),p(()=>
1{if(E&&k){if(w.current)return w.current(E,k,A);A()}},[E,k,A,w]);let P=u.useMemo(()=>({reference:h,floating:y,setReference:L,setFloating:C}),[L,C]),M=u.useMemo(()=>({reference:E,floating:k}),[E,k]);return u.useMemo(()=>({...c,update:A,refs:P,elements:M,reference:L,floating:C}),[c,A,P,M,L,C])}(e),i=C(),l=u.useRef(null),c=u.useRef({}),a=u.useState(()=>R())[0],[s,m]=u.useState(null),y=u.useCallback(e=>{let t=I(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;o.refs.setReference(t)},[o.refs]),b=u.useCallback(e=>{(I(e)||null===e)&&(l.current=e,m(e)),(I(o.refs.reference.current)||null===o.refs.reference.current||null!==e&&!I(e))&&o.refs.setReference(e)},[o.refs]),w=u.useMemo(()=>({...o.refs,setReference:b,setPositionReference:y,domReference:l}),[o.refs,b,y]),x=u.useMemo(()=>({...o.elements,domReference:s}),[o.elements,s]),E=ed(n),k=u.useMemo(()=>({...o,refs:w,elements:x,dataRef:c,nodeId:r,events:a,open:t,onOpenChange:E}),[o,r,a,t,E,w,x]);return h(()=>{let e=null==i?void 0:i.nodesRef.current.find(e=>e.id===r);e&&(e.context=k)}),u.useMemo(()=>({...o,context:k,refs:w,reference:b,positionReference:y}),[o,w,k,b,y])}function e4(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 u;null==(u=r.get(n))||u.push(o),e[n]=function(){for(var e,t=arguments.length,o=Array(t),u=0;u<t;u++)o[u]=arguments[u];null==(e=r.get(n))||e.forEach(e=>e(...o))}}}else e[n]=o}),e),{})}}let e5=function(e){void 0===e&&(e=[]);let t=e,n=u.useCallback(t=>e4(t,e,"reference"),t),r=u.useCallback(t=>e4(t,e,"floating"),t),o=u.useCallback(t=>e4(t,e,"item"),e.map(e=>null==e?void 0:e.item));return u.useMemo(()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:o}),[n,r,o])}},49473:function(e,t,n){n.d(t,{Cp:function(){return d},Qo:function(){return p},RR:function(){return f},US:function(){return i},X5:function(){return c},cv:function(){return g},dp:function(){return b},dr:function(){return y},oo:function(){return u},uY:function(){return h},x7:function(){return l}});var r=n(9082);function o(e,t,n){let o,{reference:u,floating:i}=e,l=(0,r.Qq)(t),c=(0,r.Wh)(t),f=(0,r.I4)(c),a=(0,r.k3)(t),s="y"===l,d=u.x+u.width/2-i.width/2,m=u.y+u.height/2-i.height/2,p=u[f]/2-i[f]/2;switch(a){case"top":o={x:d,y:u.y-i.height};break;case"bottom":o={x:d,y:u.y+u.height};break;case"right":o={x:u.x+u.width,y:m};break;case"left":o={x:u.x-i.width,y:m};break;default:o={x:u.x,y:u.y}}switch((0,r.hp)(t)){case"start":o[c]-=p*(n&&s?-1:1);break;case"end":o[c]+=p*(n&&s?-1:1)}return o}let u=async(e,t,n)=>{let{placement:r="bottom",strategy:u="absolute",middleware:i=[],platform:l}
1=n,c=i.filter(Boolean),f=await (null==l.isRTL?void 0:l.isRTL(t)),a=await l.getElementRects({reference:e,floating:t,strategy:u}),{x:s,y:d}=o(a,r,f),m=r,p={},v=0;for(let n=0;n<c.length;n++){let{name:i,fn:g}=c[n],{x:h,y:y,data:b,reset:w}=await g({x:s,y:d,initialPlacement:r,placement:m,strategy:u,middlewareData:p,rects:a,platform:l,elements:{reference:e,floating:t}});if(s=null!=h?h:s,d=null!=y?y:d,p={...p,[i]:{...p[i],...b}},w&&v<=50){v++,"object"==typeof w&&(w.placement&&(m=w.placement),w.rects&&(a=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:u}):w.rects),{x:s,y:d}=o(a,m,f)),n=-1;continue}}return{x:s,y:d,placement:m,strategy:u,middlewareData:p}};async function i(e,t){var n;void 0===t&&(t={});let{x:o,y:u,platform:i,rects:l,elements:c,strategy:f}=e,{boundary:a="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=(0,r.ku)(t,e),v=(0,r.yd)(p),g=c[m?"floating"===d?"reference":"floating":d],h=(0,r.JB)(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:s,strategy:f})),y="floating"===d?{...l.floating,x:o,y:u}:l.reference,b=await (null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),w=await (null==i.isElement?void 0:i.isElement(b))&&await (null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=(0,r.JB)(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:b,strategy:f}):y);return{top:(h.top-x.top+v.top)/w.y,bottom:(x.bottom-h.bottom+v.bottom)/w.y,left:(h.left-x.left+v.left)/w.x,right:(x.right-h.right+v.right)/w.x}}let l=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:u,rects:i,platform:l,elements:c,middlewareData:f}=t,{element:a,padding:s=0}=(0,r.ku)(e,t)||{};if(null==a)return{};let d=(0,r.yd)(s),m={x:n,y:o},p=(0,r.Wh)(u),v=(0,r.I4)(p),g=await l.getDimensions(a),h="y"===p,y=h?"clientHeight":"clientWidth",b=i.reference[v]+i.reference[p]-m[p]-i.floating[v],w=m[p]-i.reference[p],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(a)),E=x?x[y]:0;E&&await (null==l.isElement?void 0:l.isElement(x))||(E=c.floating[y]||i.floating[v]);let R=E/2-g[v]/2-1,k=(0,r.VV)(d[h?"top":"left"],R),T=(0,r.VV)(d[h?"bottom":"right"],R),L=E-g[v]-T,C=E/2-g[v]/2+(b/2-w/2),A=(0,r.uZ)(k,C,L),F=!f.arrow&&null!=(0,r.hp)(u)&&C!=A&&i.reference[v]/2-(C<k?k:T)-g[v]/2<0,P=F?C<k?C-k:C-L:0;return{[p]:m[p]+P,data:{[p]:A,centerOffset:C-A-P,...F&&{alignmentOffset:P}},reset:F}}}),c=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,u;let{rects:l,middlewareData:c,placement:f,platform:a,elements:s}=t,{crossAxis:d=!1,alignment:m,allowedPlacements:p=r.Ct,autoAlignment:v=!0,...g}=(0,r.ku)(e,t),h=void 0!==m||p===r.Ct?function(e,t,n){let o=e?[...n.filter(t=>(0,r.hp)(t)===e),...n.filter(t=>(0,r.hp)(t)!==e)]:n.filter(e=>(0,r.k3)(e)===e);return o.filter(n=>!e||(0,r.hp)(n)===e||!!t&&(0,r.Go)(n)!==n)}(m||null,v,p):p,y=await i(t,g),b=(null==(n=c.autoPlacement)?void 0:n.index)||0,w=h[b];if(null==w)return{};let x=(0,r.i8)(w,l,await (null==a.isRTL?void 0:a.isRTL(s.floating)));if(f!==w)return{reset:{placement:h[0]}};let E=[y[(0,r.k3)(w)],y[x[0]],y[x[1]]],R=[...(null==(o=c.autoPlacement)?void 0:o.overflows)||[],{placement:w,overflows:E}],k=h[b+1];if(k)return{data:{index:b+1,overflows:R},reset:{placement:k}};let T=R.map(e=>{let t=(0,r.hp)(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),L=(null==(u=T.filter(e=>e[2].slice(0,(0,r.hp)(e[0])?2:3).every(e=>e<=0))[0])?void 0:u[0])||T[0][0];return L!==f?{data:{index:b+1,overflows:R},reset:{placement:L}}:{}}}},f=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o,u,l,c;let{placement:f,middlewareData:a,rects:s,initialPlacement:d,platform:m,elements:p}=t,{mainAxis:v=!0,crossAxis:g=!0,fallbackPlacements:h,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...x}=(0,r.ku)(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};let E=(0,r.k3)(f),R=(0,r.k3)(d)===d,k=await (null==m.isRTL?void 0:m.isRTL(p.floating)),T=h||(R||!w?[(0,r.pw)(d)]:(0,r.gy)(d)
1);h||"none"===b||T.push(...(0,r.KX)(d,w,b,k));let L=[d,...T],C=await i(t,x),A=[],F=(null==(o=a.flip)?void 0:o.overflows)||[];if(v&&A.push(C[E]),g){let e=(0,r.i8)(f,s,k);A.push(C[e[0]],C[e[1]])}if(F=[...F,{placement:f,overflows:A}],!A.every(e=>e<=0)){let e=((null==(u=a.flip)?void 0:u.index)||0)+1,t=L[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(l=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!n)switch(y){case"bestFit":{let e=null==(c=F.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:c[0];e&&(n=e);break}case"initialPlacement":n=d}if(f!==n)return{reset:{placement:n}}}return{}}}};function a(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function s(e){return r.mA.some(t=>e[t]>=0)}let d=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:o="referenceHidden",...u}=(0,r.ku)(e,t);switch(o){case"referenceHidden":{let e=await i(t,{...u,elementContext:"reference"}),r=a(e,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:s(r)}}}case"escaped":{let e=await i(t,{...u,altBoundary:!0}),r=a(e,n.floating);return{data:{escapedOffsets:r,escaped:s(r)}}}default:return{}}}}};function m(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)),u=(0,r.Fp)(...e.map(e=>e.bottom));return{x:t,y:n,width:o-t,height:u-n}}let p=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:o,rects:u,platform:i,strategy:l}=t,{padding:c=2,x:f,y:a}=(0,r.ku)(e,t),s=Array.from(await (null==i.getClientRects?void 0:i.getClientRects(o.reference))||[]),d=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],o=null;for(let e=0;e<t.length;e++){let r=t[e];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map(e=>(0,r.JB)(m(e)))}(s),p=(0,r.JB)(m(s)),v=(0,r.yd)(c),g=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=f&&null!=a)return d.find(e=>f>e.left-v.left&&f<e.right+v.right&&a>e.top-v.top&&a<e.bottom+v.bottom)||p;if(d.length>=2){if("y"===(0,r.Qq)(n)){let e=d[0],t=d[d.length-1],o="top"===(0,r.k3)(n),u=e.top,i=t.bottom,l=o?e.left:t.left,c=o?e.right:t.right;return{top:u,bottom:i,left:l,right:c,width:c-l,height:i-u,x:l,y:u}}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)),u=d.filter(n=>e?n.left===o:n.right===t),i=u[0].top,l=u[u.length-1].bottom,c=t-o;return{top:i,bottom:l,left:o,right:t,width:c,height:l-i,x:o,y:i}}return p}},floating:o.floating,strategy:l});return u.reference.x!==g.reference.x||u.reference.y!==g.reference.y||u.reference.width!==g.reference.width||u.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}};async function v(e,t){let{placement:n,platform:o,elements:u}=e,i=await (null==o.isRTL?void 0:o.isRTL(u.floating)),l=(0,r.k3)(n),c=(0,r.hp)(n),f="y"===(0,r.Qq)(n),a=["left","top"].includes(l)?-1:1,s=i&&f?-1:1,d=(0,r.ku)(t,e),{mainAxis:m,crossAxis:p,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return c&&"number"==typeof v&&(p="end"===c?-1*v:v),f?{x:p*s,y:m*a}:{x:m*a,y:p*s}}let g=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,o=await v(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},h=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:u}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=(0,r.ku)(e,t),s={x:n,y:o},d=await i(t,a),m=(0,r.Qq)((0,r.k3)(u)),p=(0,r.Rn)(m),v=s[p],g=s[m];if(l){let e=v+d["y"===p?"top":"left"],t=v-d["y"===p?"bottom":"right"];v=(0,r.uZ)(e,v,t)}if(c){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=g+d[e],o=g-d[t];g=(0,r.uZ)(n,g,o)}let h=f.fn({...t,[p]:v,[m]:g});return{...h,data:{x:h.x-n,y:h.y-o}}}}},y=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:o,placement:u,rects:i,middlewareData:l}=t,{offset:c=0,mainAxis:f=!0,crossAxis:a=!0}=(0,r.ku)(e,t),s={x:n,y:o},d=(0,r.Qq)(u),m=(0,r.Rn)(d),p=s[m],v=s[d],g=(0,r.ku)(c,t),h="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(f){let e="y"===m?"height":"width",t=i.reference[m]-i.floating[e]+h.mainAxis,n=i.reference[m]+i.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(a){var y,b;let e="y"===m?"width":"height",t=["top","left"].includes((0,r.k3)(u)),n=i.reference[d]-i.floating[e]+(t&&(null==(y=l.offset)?void 0:y[d])||0)+(t?0:h.crossAxis),o=i.reference[d]+i.reference[e]+(t?0:(null==(b=l.offset)?void 0:b[d])||0)-(t?h.crossAxis:0);v<n?v=n:v>o&&(v=o)}return{[m]:p,[d]:v}}}},b=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,o;let{placement:u,rects:l,platform:c,elements:f}=t,{apply:a=()=>{},...s}=(0,r.ku)(e,t),d=await i(t,s),m=(0,r.k3)(u),p=(0,r.hp)(u),v="y"===(0,r.Qq)(u),{width:g,height:h}=l.floating;"top"===m||"bottom"===m?(n=m,o=p===(await (null==c.isRTL?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(o=m,n="end"===p?"to
1p":"bottom");let y=h-d[n],b=g-d[o],w=!t.middlewareData.shift,x=y,E=b;if(v){let e=g-d.left-d.right;E=p||w?(0,r.VV)(b,e):e}else{let e=h-d.top-d.bottom;x=p||w?(0,r.VV)(y,e):e}if(w&&!p){let e=(0,r.Fp)(d.left,0),t=(0,r.Fp)(d.right,0),n=(0,r.Fp)(d.top,0),o=(0,r.Fp)(d.bottom,0);v?E=g-2*(0!==e||0!==t?e+t:(0,r.Fp)(d.left,d.right)):x=h-2*(0!==n||0!==o?n+o:(0,r.Fp)(d.top,d.bottom))}await a({...t,availableWidth:E,availableHeight:x});let R=await c.getDimensions(f.floating);return g!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}}},29401:function(e,t,n){n.d(t,{Jv:function(){return h},Me:function(){return y},oo:function(){return b}});var r=n(9082),o=n(49473),u=n(96025);function i(e){let t=(0,u.Dx)(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=(0,u.Re)(e),l=i?e.offsetWidth:n,c=i?e.offsetHeight:o,f=(0,r.NM)(n)!==l||(0,r.NM)(o)!==c;return f&&(n=l,o=c),{width:n,height:o,$:f}}function l(e){return(0,u.kK)(e)?e:e.contextElement}function c(e){let t=l(e);if(!(0,u.Re)(t))return(0,r.ze)(1);let n=t.getBoundingClientRect(),{width:o,height:c,$:f}=i(t),a=(f?(0,r.NM)(n.width):n.width)/o,s=(f?(0,r.NM)(n.height):n.height)/c;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let f=(0,r.ze)(0);function a(e){let t=(0,u.Jj)(e);return(0,u.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:f}function s(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let f=e.getBoundingClientRect(),s=l(e),d=(0,r.ze)(1);t&&(o?(0,u.kK)(o)&&(d=c(o)):d=c(e));let m=(void 0===(i=n)&&(i=!1),o&&(!i||o===(0,u.Jj)(s))&&i)?a(s):(0,r.ze)(0),p=(f.left+m.x)/d.x,v=(f.top+m.y)/d.y,g=f.width/d.x,h=f.height/d.y;if(s){let e=(0,u.Jj)(s),t=o&&(0,u.kK)(o)?(0,u.Jj)(o):o,n=e.frameElement;for(;n&&o&&t!==e;){let e=c(n),t=n.getBoundingClientRect(),r=(0,u.Dx)(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;p*=e.x,v*=e.y,g*=e.x,h*=e.y,p+=o,v+=i,n=(0,u.Jj)(n).frameElement}}return(0,r.JB)({width:g,height:h,x:p,y:v})}function d(e){return s((0,u.tF)(e)).left+(0,u.Lw)(e).scrollLeft}function m(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=(0,u.Jj)(e),r=(0,u.tF)(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,c=0,f=0;if(o){i=o.width,l=o.height;let e=(0,u.Pf)();(!e||e&&"fixed"===t)&&(c=o.offsetLeft,f=o.offsetTop)}return{width:i,height:l,x:c,y:f}}(e,n);else if("document"===t)o=function(e){let t=(0,u.tF)(e),n=(0,u.Lw)(e),o=e.ownerDocument.body,i=(0,r.Fp)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=(0,r.Fp)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),c=-n.scrollLeft+d(e),f=-n.scrollTop;return"rtl"===(0,u.Dx)(o).direction&&(c+=(0,r.Fp)(t.clientWidth,o.clientWidth)-i),{width:i,height:l,x:c,y:f}}((0,u.tF)(e));else if((0,u.kK)(t))o=function(e,t){let n=s(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,l=(0,u.Re)(e)?c(e):(0,r.ze)(1),f=e.clientWidth*l.x,a=e.clientHeight*l.y,d=i*l.x,m=o*l.y;return{width:f,height:a,x:d,y:m}}(t,n);else{let n=a(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return(0,r.JB)(o)}function p(e,t){return(0,u.Re)(e)&&"fixed"!==(0,u.Dx)(e).position?t?t(e):e.offsetParent:null}function v(e,t){let n=(0,u.Jj)(e);if(!(0,u.Re)(e))return n;let r=p(e,t);for(;r&&(0,u.Ze)(r)&&"static"===(0,u.Dx)(r).position;)r=p(r,t);return r&&("html"===(0,u.wk)(r)||"body"===(0,u.wk)(r)&&"static"===(0,u.Dx)(r).position&&!(0,u.hT)(r))?n:r||(0,u.gQ)(e)||n}let g=async function(e){let{reference:t,floating:n,strategy:o}=e,i=this.getOffsetParent||v,l=this.getDimensions;return{reference:function(e,t,n){let o=(0,u.Re)(t),i=(0,u.tF)(t),l="fixed"===n,c=s(e,!0,l,t),f={scrollLeft:0,scrollTop:0},a=(0,r.ze)(0);if(o||!o&&!l){if(("body"!==(0,u.wk)(t)||(0,u.ao)(i))&&(f=(0,u.Lw)(t)),o){let e=s(t,!0,l,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else i&&(a.x=d(i))}return{x:c.left+f.scrollLeft-a.x,y:c.top+f.scrollTop-a.y,width:c.width,height:c.height}}(t,await i(n),o),floating:{x:0,y:0,...await l(n)}}},h={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e,i=(0,u.Re)(n),l=(0,u.tF)(n);if(n===l)return t;let f={scrollLeft:0,scrollTop:0},a=(0,r.ze)(1),d=(0,r.ze)(0);if((i||!i&&"fixed"!==o)&&(("body"!==(0,u.wk)(n)||(0,u.ao)(l))&&(f=(0,u.Lw)(n)),(0,u.Re)(n))){let e=s(n);a=c(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-f.scrollLeft*a.x+d.x,y:t.y*a.y-f.scrollTop*a.y+d.y}},getDocumentElement:u.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}
1=e,l="clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=(0,u.Kx)(e,[],!1).filter(e=>(0,u.kK)(e)&&"body"!==(0,u.wk)(e)),o=null,i="fixed"===(0,u.Dx)(e).position,l=i?(0,u.Ow)(e):e;for(;(0,u.kK)(l)&&!(0,u.Py)(l);){let t=(0,u.Dx)(l),n=(0,u.hT)(l);n||"fixed"!==t.position||(o=null);let c=i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||(0,u.ao)(l)&&!n&&function e(t,n){let r=(0,u.Ow)(t);return!(r===n||!(0,u.kK)(r)||(0,u.Py)(r))&&("fixed"===(0,u.Dx)(r).position||e(r,n))}(e,l);c?r=r.filter(e=>e!==l):o=t,l=(0,u.Ow)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),c=[...l,o],f=c[0],a=c.reduce((e,n)=>{let o=m(t,n,i);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},m(t,f,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:v,getElementRects:g,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return i(e)},getScale:c,isElement:u.kK,isRTL:function(e){return"rtl"===(0,u.Dx)(e).direction}};function y(e,t,n,o){let i;void 0===o&&(o={});let{ancestorScroll:c=!0,ancestorResize:f=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:m=!1}=o,p=l(e),v=c||f?[...p?(0,u.Kx)(p):[],...(0,u.Kx)(t)]:[];v.forEach(e=>{c&&e.addEventListener("scroll",n,{passive:!0}),f&&e.addEventListener("resize",n)});let g=p&&d?function(e,t){let n,o=null,i=(0,u.tF)(e);function l(){clearTimeout(n),o&&o.disconnect(),o=null}return!function u(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),l();let{left:a,top:s,width:d,height:m}=e.getBoundingClientRect();if(c||t(),!d||!m)return;let p=(0,r.GW)(s),v=(0,r.GW)(i.clientWidth-(a+d)),g=(0,r.GW)(i.clientHeight-(s+m)),h=(0,r.GW)(a),y={rootMargin:-p+"px "+-v+"px "+-g+"px "+-h+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,f))||1},b=!0;function w(e){let t=e[0].intersectionRatio;if(t!==f){if(!b)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},100)}b=!1}try{o=new IntersectionObserver(w,{...y,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(w,y)}o.observe(e)}(!0),l}(p,n):null,h=-1,y=null;a&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{y&&y.observe(t)})),n()}),p&&!m&&y.observe(p),y.observe(t));let b=m?s(e):null;return m&&function t(){let r=s(e);b&&(r.x!==b.x||r.y!==b.y||r.width!==b.width||r.height!==b.height)&&n(),b=r,i=requestAnimationFrame(t)}(),n(),()=>{v.forEach(e=>{c&&e.removeEventListener("scroll",n),f&&e.removeEventListener("resize",n)}),g&&g(),y&&y.disconnect(),y=null,m&&cancelAnimationFrame(i)}}let b=(e,t,n)=>{let r=new Map,u={platform:h,...n},i={...u.platform,_c:r};return(0,o.oo)(e,t,{...u,platform:i})}},9082:function(e,t,n){n.d(t,{Ct:function(){return o},Fp:function(){return i},GW:function(){return c},Go:function(){return E},I4:function(){return h},JB:function(){return L},KX:function(){return R},NM:function(){return l},Qq:function(){return y},Rn:function(){return g},VV:function(){return u},Wh:function(){return b},gy:function(){return x},hp:function(){return v},i8:function(){return w},k3:function(){return p},ku:function(){return m},mA:function(){return r},pw:function(){return k},uZ:function(){return d},yd:function(){return T},ze:function(){return f}});let r=["top","right","bottom","left"],o=r.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),u=Math.min,i=Math.max,l=Math.round,c=Math.floor,f=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function d(e,t,n){return i(e,u(t,n))}function m(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function y(e){return["top","bottom"].includes(p(e))?"y":"x"}function b(e){return g(y(e))}function w(e,t,n){void 0===n&&(n=!1);let r=v(e),o=b(e),u=h(o),i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[u]>t.floating[u]&&(i=k(i)),[i,k(i)]}function x(e){let t=k(e);return[E(e),t,E(t)]}function E(e){return e.replace(/start|end/g,e=>s[e])}function R(e,t,n,r){let o=v(e),u=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[]}}(p(e),"start"===n,r);return o&&(u=u.map(e=>e+"-"+o),t&&(u=u.concat(u.map(E)))),u}function k(e){return e.replace(/left|right|bottom|top/g,e=>a[e])}function T(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}
1function L(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},96025:function(e,t,n){function r(e){return i(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e?void 0:null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function u(e){var t;return null==(t=(i(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function i(e){return e instanceof Node||e instanceof o(e).Node}function l(e){return e instanceof Element||e instanceof o(e).Element}function c(e){return e instanceof HTMLElement||e instanceof o(e).HTMLElement}function f(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function a(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=g(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function s(e){return["table","td","th"].includes(r(e))}function d(e){let t=p(),n=g(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 m(e){let t=y(e);for(;c(t)&&!v(t);){if(d(t))return t;t=y(t)}return null}function p(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function v(e){return["html","body","#document"].includes(r(e))}function g(e){return o(e).getComputedStyle(e)}function h(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function y(e){if("html"===r(e))return e;let t=e.assignedSlot||e.parentNode||f(e)&&e.host||u(e);return f(t)?t.host:t}n.d(t,{Dx:function(){return g},Jj:function(){return o},Kx:function(){return function e(t,n,r){var u;void 0===n&&(n=[]),void 0===r&&(r=!0);let i=function e(t){let n=y(t);return v(n)?t.ownerDocument?t.ownerDocument.body:t.body:c(n)&&a(n)?n:e(n)}(t),l=i===(null==(u=t.ownerDocument)?void 0:u.body),f=o(i);
1return l?n.concat(f,f.visualViewport||[],a(i)?i:[],f.frameElement&&r?e(f.frameElement):[]):n.concat(i,e(i,[],r))}},Lw:function(){return h},Ow:function(){return y},Pf:function(){return p},Py:function(){return v},Re:function(){return c},Ze:function(){return s},ao:function(){return a},gQ:function(){return m},hT:function(){return d},kK:function(){return l},tF:function(){return u},wk:function(){return r}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.