1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5501],{61896:function(e,t,n){let r;n.d(t,{JA:function(){return S},KK:function(){return eT},NI:function(){return eS},XI:function(){return Y},YF:function(){return eL},bQ:function(){return eC},c0:function(){return e_},eS:function(){return eR},ll:function(){return ed},ox:function(){return eq},qq:function(){return d},qs:function(){return eU},vs:function(){return O},wD:function(){return ey},xp:function(){return ej},y0:function(){return eb}});var u,o=n(2265),l=n(89750),i=n(72695),c=n(94046),f=n(57572),a=n(54887),s=n(97859);function d(e){return o.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})},e)}let v={...u||(u=n.t(o,2))},m=v.useInsertionEffect||(e=>e());function p(e){let t=o.useRef(()=>{});return m(()=>{t.current=e}),o.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 g="ArrowUp",h="ArrowDown",y="ArrowLeft",E="ArrowRight";function b(e,t,n){return Math.floor(e/t)!==n}function w(e,t){return t<0||t>=e.current.length}function R(e,t){return x(e,{disabledIndices:t})}function k(e,t){return x(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function x(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:u,amount:o=1}=void 0===t?{}:t,l=e.current,i=n;do i+=r?-o:o;while(i>=0&&i<=l.length-1&&M(l,i,u));return i}function M(e,t,n){if(n)return n.includes(t);let r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let C=0;function L(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:u=!1}=t;r&&cancelAnimationFrame(C);let o=()=>null==e?void 0:e.focus({preventScroll:n});u?o():C=requestAnimationFrame(o)}var T="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function A(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}let I=o.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function O(e){let{children:t,elementsRef:n,labelsRef:r}=e,[u,l]=o.useState(()=>new Map),i=o.useCallback(e=>{l(t=>new Map(t).set(e,null))},[]),c=o.useCallback(e=>{l(t=>{let n=new Map(t);return n.delete(e),n})},[]);return T(()=>{let e=new Map(u);Array.from(e.keys()).sort(A).forEach((t,n)=>{e.set(t,n)}),!function(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(u,e)&&l(e)},[u]),o.createElement(I.Provider,{value:o.useMemo(()=>({register:i,unregister:c,map:u,elementsRef:n,labelsRef:r}),[i,c,u,n,r])},t)}function S(e){void 0===e&&(e={});let{label:t}=e,{register:n,unregister:r,map:u,elementsRef:l,labelsRef:i}=o.useContext(I),[c,f]=o.useState(null),a=o.useRef(null),s=o.useCallback(e=>{if(a.current=e,null!==c&&(l.current[c]=e,i)){var n;let r=void 0!==t;i.current[c]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}},[c,l,i,t]);return T(()=>{let e=a.current;if(e)return n(e),()=>{r(e)}},[n,r]),T(()=>{let e=a.current?u.get(a.current):null;null!=e&&f(e)},[u]),o.useMemo(()=>({ref:s,index:null==c?-1:c}),[c,s])}function K(){return(K=Object.assign?Object.assign.bind():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)}let P=!1,N=0,D=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+N++,W=v.useId||function(){let[e,t]=o.useState(()=>P?D():void 0);return T(()=>{null==e&&t(D())},[]),o.useEffect(()=>{P=!0},[]),e},_=o.createContext(null),F=o.createContext(null),U=()=>{var e;return(null==(e=o.useContext(_))?void 0:e.id)||null},q=()=>o.useContext(F);function B(e){return"data-floating-ui-"+e}function j(e){let t=(0,o.useRef)(e);return T(()=>{t.current=e}),t}let V=B("safe-polygon");function X(e,t,n){return n&&!(0,l.r)(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Y(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:u,events:i,elements:f}=e,{enabled:a=!0,delay:s=0,handleClose:d=null,mouseOnly:v=!1,restMs:m=0,move:g=!0}=t,h=q(),y=U(),E=j(d),b=j(s),w=j(n),R=o.useRef(),k=o.useRef(-1),x=o.useRef(),M=o.useRef(-1),C=o.useRef(!0),L=o.useRef(!1),A=o.useRef(()=>{}),I=o.useCallback(()=>{var e;let t=null==(e=u.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[u]);o.useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;
1t||(clearTimeout(k.current),clearTimeout(M.current),C.current=!0)}},[a,i]),o.useEffect(()=>{if(!a||!E.current||!n)return;function e(e){I()&&r(!1,e,"hover")}let t=(0,l.Me)(f.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[f.floating,n,r,a,E,I]);let O=o.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let u=X(b.current,"close",R.current);u&&!x.current?(clearTimeout(k.current),k.current=window.setTimeout(()=>r(!1,e,n),u)):t&&(clearTimeout(k.current),r(!1,e,n))},[b,r]),S=p(()=>{A.current(),x.current=void 0}),K=p(()=>{if(L.current){let e=(0,l.Me)(f.floating).body;e.style.pointerEvents="",e.removeAttribute(V),L.current=!1}});o.useEffect(()=>{if(a&&(0,c.kK)(f.domReference)){var e;let t=f.domReference;return n&&t.addEventListener("mouseleave",s),null==(e=f.floating)||e.addEventListener("mouseleave",s),g&&t.addEventListener("mousemove",o,{once:!0}),t.addEventListener("mouseenter",o),t.addEventListener("mouseleave",i),()=>{var e;n&&t.removeEventListener("mouseleave",s),null==(e=f.floating)||e.removeEventListener("mouseleave",s),g&&t.removeEventListener("mousemove",o),t.removeEventListener("mouseenter",o),t.removeEventListener("mouseleave",i)}}function t(){return!!u.current.openEvent&&["click","mousedown"].includes(u.current.openEvent.type)}function o(e){if(clearTimeout(k.current),C.current=!1,v&&!(0,l.r)(R.current)||m>0&&!X(b.current,"open"))return;let t=X(b.current,"open",R.current);t?k.current=window.setTimeout(()=>{w.current||r(!0,e,"hover")},t):r(!0,e,"hover")}function i(e){if(t())return;A.current();let r=(0,l.Me)(f.floating);if(clearTimeout(M.current),E.current&&u.current.floatingContext){n||clearTimeout(k.current),x.current=E.current({...u.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){K(),S(),O(e,!0,"safe-polygon")}});let t=x.current;r.addEventListener("mousemove",t),A.current=()=>{r.removeEventListener("mousemove",t)};return}"touch"===R.current&&(0,l.r3)(f.floating,e.relatedTarget)||O(e)}function s(e){!t()&&u.current.floatingContext&&(null==E.current||E.current({...u.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){K(),S(),O(e)}})(e))}},[f,a,e,v,m,g,O,S,K,r,n,w,h,b,E,u]),T(()=>{var e,t;if(a&&n&&null!=(e=E.current)&&e.__options.blockPointerEvents&&I()){let e=(0,l.Me)(f.floating).body;e.setAttribute(V,""),e.style.pointerEvents="none",L.current=!0;let n=f.floating;if((0,c.kK)(f.domReference)&&n){let e=f.domReference,r=null==h||null==(t=h.nodesRef.current.find(e=>e.id===y))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),e.style.pointerEvents="auto",n.style.pointerEvents="auto",()=>{e.style.pointerEvents="",n.style.pointerEvents=""}}}},[a,n,y,f,h,E,I]),T(()=>{n||(R.current=void 0,S(),K())},[n,S,K]),o.useEffect(()=>()=>{S(),clearTimeout(k.current),clearTimeout(M.current),K()},[a,f.domReference,S,K]);let P=o.useMemo(()=>{function e(e){R.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function u(){C.current||w.current||r(!0,t,"hover")}(!v||(0,l.r)(R.current))&&!n&&0!==m&&(clearTimeout(M.current),"touch"===R.current?u():M.current=window.setTimeout(u,m))}}},[v,r,n,w,m]),N=o.useMemo(()=>({onMouseEnter(){clearTimeout(k.current)},onMouseLeave(e){O(e.nativeEvent,!1)}}),[O]);return o.useMemo(()=>a?{reference:P,floating:N}:{},[a,P,N])}function G(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}let H=new WeakMap,z=new WeakSet,J={},Z=0,Q=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,$=e=>e&&(e.host||$(e.parentNode)),ee=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=$(t);return e.contains(n)?n:null}).filter(e=>null!=e);function et(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);let r=(0,l.Me)(e[0]).body;return function(e,t,n,r){let u="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,l=ee(t,e),i=new Set,f=new Set(l),a=[];J[u]||(J[u]=new WeakMap);let s=J[u];return l.forEach(function e(t){!(!t||i.has(t))&&(i.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||f.has(t)||[].forEach.call(t.children,t=>{if("script"!==(0,c.wk)(t)){if(i.has(t))e(t);else{let e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,r=(H.get(t)||0)+1,l=(s.get(t)||0)+1;H.set(t,r),s.set(t,l),a.push(t),1===r&&n&&z.add(t),1===l&&t.setAttribute(u,""),!n&&o&&t.setAttribute(o,"true")}}})}(t),i.clear(),Z++,()=>
1{a.forEach(e=>{let t=(H.get(e)||0)-1,n=(s.get(e)||0)-1;H.set(e,t),s.set(e,n),t||(!z.has(e)&&o&&e.removeAttribute(o),z.delete(e)),n||e.removeAttribute(u)}),--Z||(H=new WeakMap,H=new WeakMap,z=new WeakSet,J={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}let en=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function er(e,t){let n=(0,f.ht)(e,en());"prev"===t&&n.reverse();let r=n.indexOf((0,l.AW)((0,l.Me)(e)));return n.slice(r+1)[0]}function eu(){return er(document.body,"next")}function eo(){return er(document.body,"prev")}function el(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,l.r3)(n,r)}let ei={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 ec(e){"Tab"===e.key&&(e.target,clearTimeout(r))}let ef=o.forwardRef(function(e,t){let[n,r]=o.useState();T(()=>((0,l.G6)()&&r("button"),document.addEventListener("keydown",ec),()=>{document.removeEventListener("keydown",ec)}),[]);let u={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[B("focus-guard")]:"",style:ei};return o.createElement("span",K({},e,u))}),ea=o.createContext(null),es=B("portal");function ed(e){let{children:t,id:n,root:r=null,preserveTabOrder:u=!0}=e,l=function(e){void 0===e&&(e={});let{id:t,root:n}=e,r=W(),u=ev(),[l,i]=o.useState(null),f=o.useRef(null);return T(()=>()=>{null==l||l.remove(),queueMicrotask(()=>{f.current=null})},[l]),T(()=>{if(!r||f.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=r,n.setAttribute(es,""),e.appendChild(n),f.current=n,i(n)},[t,r]),T(()=>{if(!r||f.current)return;let e=n||(null==u?void 0:u.portalNode);e&&!(0,c.kK)(e)&&(e=e.current),e=e||document.body;let o=null;t&&((o=document.createElement("div")).id=t,e.appendChild(o));let l=document.createElement("div");l.id=r,l.setAttribute(es,""),(e=o||e).appendChild(l),f.current=l,i(l)},[t,n,r,u]),l}({id:n,root:r}),[i,s]=o.useState(null),d=o.useRef(null),v=o.useRef(null),m=o.useRef(null),p=o.useRef(null),g=!!i&&!i.modal&&i.open&&u&&!!(r||l);return o.useEffect(()=>{if(l&&u&&(null==i||!i.modal))return l.addEventListener("focusin",e,!0),l.addEventListener("focusout",e,!0),()=>{l.removeEventListener("focusin",e,!0),l.removeEventListener("focusout",e,!0)};function e(e){l&&el(e)&&("focusin"===e.type?function(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}:function(e){(0,f.ht)(e,en()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(l)}},[l,u,null==i?void 0:i.modal]),o.createElement(ea.Provider,{value:o.useMemo(()=>({preserveTabOrder:u,beforeOutsideRef:d,afterOutsideRef:v,beforeInsideRef:m,afterInsideRef:p,portalNode:l,setFocusManagerState:s}),[u,l])},g&&l&&o.createElement(ef,{"data-type":"outside",ref:d,onFocus:e=>{if(el(e,l)){var t;null==(t=m.current)||t.focus()}else{let e=eo()||(null==i?void 0:i.refs.domReference.current);null==e||e.focus()}}}),g&&l&&o.createElement("span",{"aria-owns":l.id,style:ei}),l&&a.createPortal(t,l),g&&l&&o.createElement(ef,{"data-type":"outside",ref:v,onFocus:e=>{if(el(e,l)){var t;null==(t=p.current)||t.focus()}else{let t=eu()||(null==i?void 0:i.refs.domReference.current);null==t||t.focus(),(null==i?void 0:i.closeOnFocusOut)&&(null==i||i.onOpenChange(!1,e.nativeEvent))}}}))}let ev=()=>o.useContext(ea),em=[];function ep(e){em=em.filter(e=>e.isConnected);let t=e;if(t&&"body"!==(0,c.wk)(t)){if(!(0,f.Wq)(t,en())){let e=(0,f.ht)(t,en())[0];e&&(t=e)}em.push(t),em.length>20&&(em=em.slice(-20))}}function eg(){return em.slice().reverse().find(e=>e.isConnected)}let eh=o.forwardRef(function(e,t){return o.createElement("button",K({},e,{type:"button",ref:t,tabIndex:-1,style:ei}))});function ey(e){let{context:t,children:n,disabled:r=!1,order:u=["content"],guards:i=!0,initialFocus:a=0,returnFocus:s=!0,restoreFocus:d=!1,modal:v=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:g=!0}=e,{open:h,refs:y,nodeId:E,onOpenChange:b,events:w,dataRef:R,floatingId:k,elements:{domReference:x,floating:M}}=t,C="number"==typeof a&&a<0,A=(0,l.Ie)(x)&&C,I=!Q()||i,O=j(u),S=j(a),K=j(s),P=q(),N=ev(),D=o.useRef(null),W=o.useRef(null),_=o.useRef(!1),F=o.useRef(!1),U=o.useRef(-1),V=null!=N,X=null==M?void 0:M.firstElementChild,Y=(null==X?void 0:X.id)===k?X:M,H=p(function(e){return void 0===e&&(e=Y),e?(0,f.ht)(e,en()):[]}),z=p(e=>{let t=H(e);return O.current.map(e=>
1x&&"reference"===e?x:Y&&"floating"===e?Y:t).filter(Boolean).flat()});function J(e){return!r&&m&&v?o.createElement(eh,{ref:"start"===e?D:W,onClick:e=>b(!1,e.nativeEvent)},"string"==typeof m?m:"Dismiss"):null}o.useEffect(()=>{if(r||!v)return;function e(e){if("Tab"===e.key){(0,l.r3)(Y,(0,l.AW)((0,l.Me)(Y)))&&0===H().length&&!A&&(0,l.p7)(e);let t=z(),n=(0,l.U9)(e);"reference"===O.current[0]&&n===x&&((0,l.p7)(e),e.shiftKey?L(t[t.length-1]):L(t[1])),"floating"===O.current[1]&&n===Y&&e.shiftKey&&((0,l.p7)(e),L(t[0]))}}let t=(0,l.Me)(Y);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,x,Y,v,O,A,H,z]),o.useEffect(()=>{if(!r&&M)return M.addEventListener("focusin",e),()=>{M.removeEventListener("focusin",e)};function e(e){let t=(0,l.U9)(e),n=H().indexOf(t);-1!==n&&(U.current=n)}},[r,M,H]),o.useEffect(()=>{if(!r&&g&&M&&(0,c.Re)(x))return x.addEventListener("focusout",t),x.addEventListener("pointerdown",e),M.addEventListener("focusout",t),()=>{x.removeEventListener("focusout",t),x.removeEventListener("pointerdown",e),M.removeEventListener("focusout",t)};function e(){F.current=!0,setTimeout(()=>{F.current=!1})}function t(e){let t=e.relatedTarget;queueMicrotask(()=>{let n=!((0,l.r3)(x,t)||(0,l.r3)(M,t)||(0,l.r3)(t,M)||(0,l.r3)(null==N?void 0:N.portalNode,t)||null!=t&&t.hasAttribute(B("focus-guard"))||P&&(G(P.nodesRef.current,E).find(e=>{var n,r;return(0,l.r3)(null==(n=e.context)?void 0:n.elements.floating,t)||(0,l.r3)(null==(r=e.context)?void 0:r.elements.domReference,t)})||(function(e,t){var n;let r=[],u=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;u;){let t=e.find(e=>e.id===u);u=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r})(P.nodesRef.current,E).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})));if(d&&n&&(0,l.AW)((0,l.Me)(Y))===(0,l.Me)(Y).body){(0,c.Re)(Y)&&(null==Y||Y.focus());let e=U.current,t=H(),n=t[e]||t[t.length-1]||Y;(0,c.Re)(n)&&n.focus()}(A||!v)&&t&&n&&!F.current&&t!==eg()&&(_.current=!0,b(!1,e))})}},[r,x,M,Y,v,E,P,N,b,g,d,H,A]),o.useEffect(()=>{var e;if(r)return;let t=Array.from((null==N||null==(e=N.portalNode)?void 0:e.querySelectorAll("["+B("portal")+"]"))||[]);if(M){let e=[M,...t,D.current,W.current,O.current.includes("reference")||A?x:null].filter(e=>null!=e),n=v||A?et(e,I,!I):et(e);return()=>{n()}}},[r,x,M,v,O,N,A,I]),T(()=>{if(r||!(0,c.Re)(Y))return;let e=(0,l.Me)(Y),t=(0,l.AW)(e);queueMicrotask(()=>{let e=z(Y),n=S.current,r=("number"==typeof n?e[n]:n.current)||Y,u=(0,l.r3)(Y,t);C||u||!h||L(r,{preventScroll:r===Y})})},[r,h,Y,C,z,S]),T(()=>{if(r||!Y)return;let e=!1,t=(0,l.Me)(Y),n=(0,l.AW)(t),u=R.current.openEvent,o=y.domReference.current;function i(t){let{open:n,reason:r,event:o,nested:i}=t;n&&(u=o),"escape-key"===r&&y.domReference.current&&ep(y.domReference.current),"hover"===r&&"mouseleave"===o.type&&(_.current=!0),"outside-press"===r&&(i?(_.current=!1,e=!0):_.current=!((0,l.Zj)(o)||(0,l.cr)(o)))}return ep(n),w.on("openchange",i),()=>{w.off("openchange",i);let r=(0,l.AW)(t),a=(0,l.r3)(M,r)||P&&G(P.nodesRef.current,E).some(e=>{var t;return(0,l.r3)(null==(t=e.context)?void 0:t.elements.floating,r)});(a||u&&["click","mousedown"].includes(u.type))&&y.domReference.current&&ep(y.domReference.current);let s=o||n,d=(0,f.ht)((0,l.Me)(s).body,en());queueMicrotask(()=>{let n=eg();!n&&(0,c.Re)(s)&&M&&(n=function(e,t,n){let r=e.indexOf(t);function u(t){let u=B("focus-guard"),o=r+(t?1:0),i=e[o];for(;i&&(!i.isConnected||i.hasAttribute(u)||(0,l.r3)(n,i));)t?o++:o--,i=e[o];return i}return u(!0)||u(!1)}(d,s,M)),K.current&&!_.current&&(0,c.Re)(n)&&(n===r||r===t.body||a)&&n.focus({preventScroll:e})})}},[r,M,Y,K,R,y,w,P,E]),T(()=>{if(!r&&N)return N.setFocusManagerState({modal:v,closeOnFocusOut:g,open:h,onOpenChange:b,refs:y}),()=>{N.setFocusManagerState(null)}},[r,N,v,h,b,y,g]),T(()=>{if(r||!Y||"function"!=typeof MutationObserver||C)return;let e=()=>{let e=Y.getAttribute("tabindex"),t=H(),n=(0,l.AW)((0,l.Me)(M)),r=t.indexOf(n);-1!==r&&(U.current=r),O.current.includes("floating")||n!==y.domReference.current&&0===t.length?"0"!==e&&Y.setAttribute("tabindex","0"):"-1"!==e&&Y.setAttribute("tabindex","-1")};e();let t=new MutationObserver(e);return t.observe(Y,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[r,M,Y,y,O,H,C]);let Z=!r&&I&&(!v||!A)&&(V||v);return o.createElement(o.Fragment,null,Z&&o.createElement(ef,{"data-type":"inside",ref:null==N?void 0:N.beforeInsideRef,onFocus:e=>{if(v){let e=z();L("reference"===u[0]?e[0]:e[e.length-1])}else if(null!=N&&N.preserveTabOrder&&N.portalNode){if(_.current=!1,el(e,N.portalNode)){let e=eu()||x;null==e||e.focus()}else{var t;
1null==(t=N.beforeOutsideRef.current)||t.focus()}}}}),!A&&J("start"),n,J("end"),Z&&o.createElement(ef,{"data-type":"inside",ref:null==N?void 0:N.afterInsideRef,onFocus:e=>{if(v)L(z()[0]);else if(null!=N&&N.preserveTabOrder&&N.portalNode){if(g&&(_.current=!0),el(e,N.portalNode)){let e=eo()||x;null==e||e.focus()}else{var t;null==(t=N.afterOutsideRef.current)||t.focus()}}}}))}let eE=new Set,eb=o.forwardRef(function(e,t){let{lockScroll:n=!1,...r}=e,u=W();return T(()=>{if(!n)return;eE.add(u);let e=/iP(hone|ad|od)|iOS/.test((0,l.Xf)()),t=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.scrollX,c=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",o&&(t[r]=o+"px"),e){var f,a;let e=(null==(f=window.visualViewport)?void 0:f.offsetLeft)||0;Object.assign(t,{position:"fixed",top:-(c-Math.floor((null==(a=window.visualViewport)?void 0:a.offsetTop)||0))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{eE.delete(u),0===eE.size&&(Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,c)))}},[u,n]),o.createElement("div",K({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))});function ew(e){return(0,c.Re)(e.target)&&"BUTTON"===e.target.tagName}function eR(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:u,elements:{domReference:i}}=e,{enabled:c=!0,event:f="click",toggle:a=!0,ignoreMouse:s=!1,keyboardHandlers:d=!0}=t,v=o.useRef(),m=o.useRef(!1),p=o.useMemo(()=>({onPointerDown(e){v.current=e.pointerType},onMouseDown(e){let t=v.current;0===e.button&&"click"!==f&&((0,l.r)(t,!0)&&s||(n&&a&&(!u.current.openEvent||"mousedown"===u.current.openEvent.type)?r(!1,e.nativeEvent,"click"):(e.preventDefault(),r(!0,e.nativeEvent,"click"))))},onClick(e){let t=v.current;if("mousedown"===f&&v.current){v.current=void 0;return}(0,l.r)(t,!0)&&s||(n&&a&&(!u.current.openEvent||"click"===u.current.openEvent.type)?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))},onKeyDown(e){v.current=void 0,e.defaultPrevented||!d||ew(e)||(" "!==e.key||(0,l.j7)(i)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&(n&&a?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!d||ew(e)||(0,l.j7)(i))&&" "===e.key&&m.current&&(m.current=!1,n&&a?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))}}),[u,i,f,s,d,r,n,a]);return o.useMemo(()=>c?{reference:p}:{},[c,p])}let ek={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ex={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},eM=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function eC(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,elements:u,dataRef:i}=e,{enabled:f=!0,escapeKey:a=!0,outsidePress:s=!0,outsidePressEvent:d="pointerdown",referencePress:v=!1,referencePressEvent:m="pointerdown",ancestorScroll:g=!1,bubbles:h,capture:y}=t,E=q(),b=p("function"==typeof s?s:()=>!1),w="function"==typeof s?b:s,R=o.useRef(!1),k=o.useRef(!1),{escapeKey:x,outsidePress:M}=eM(h),{escapeKey:C,outsidePress:L}=eM(y),T=p(e=>{var t;if(!n||!f||!a||"Escape"!==e.key)return;let u=null==(t=i.current.floatingContext)?void 0:t.nodeId,o=E?G(E.nodesRef.current,u):[];if(!x&&(e.stopPropagation(),o.length>0)){let e=!0;if(o.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,(0,l.MM)(e)?e.nativeEvent:e,"escape-key")}),A=p(e=>{var t;let n=()=>{var t;T(e),null==(t=(0,l.U9)(e))||t.removeEventListener("keydown",n)};null==(t=(0,l.U9)(e))||t.addEventListener("keydown",n)}),I=p(e=>{var t;let n=R.current;R.current=!1;let o=k.current;if(k.current=!1,"click"===d&&o||n||"function"==typeof w&&!w(e))return;let f=(0,l.U9)(e),a="["+B("inert")+"]",s=(0,l.Me)(u.floating).querySelectorAll(a),v=(0,c.kK)(f)?f:null;for(;v&&!(0,c.Py)(v);){let e=(0,c.Ow)(v);if((0,c.Py)(e)||!(0,c.kK)(e))break;v=e}if(s.length&&(0,c.kK)(f)&&!(0,l.ex)(f)&&!(0,l.r3)(f,u.floating)&&Array.from(s).every(e=>!(0,l.r3)(v,e)))return;if((0,c.Re)(f)&&K){let t=f.clientWidth>0&&f.scrollWidth>f.clientWidth,n=f.clientHeight>0&&f.scrollHeight>f.clientHeight,r=n&&e.offsetX>f.clientWidth;if(n&&"rtl"===(0,c.Dx)(f).direction&&(r=e.offsetX<=f.offsetWidth-f.clientWidth),r||t&&e.offsetY>f.clientHeight)return}let m=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=E&&G(E.nodesRef.current,m).some(t=>{var n;return(0,l.Pe)(e,null==(n=t.context)?void 0:n.elements.floating)});if((0,l.Pe)(e,u.floating)||(0,l.Pe)(e,u.domReference)||p)return;let g=E?G(E.nodesRef.current,m):[];if(g.length>0){let e=!0;if(g.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,"outside-press")}),O=p(e=>{var t;let n=()=>{var t;I(e),null==(t=(0,l.U9)(e))||t.removeEventListener(d,n)};null==(t=(0,l.U9)(e))||t.addEventListener(d,n)});o.useEffect(()=>{if(!n||!f)return;function e(e){r(!1,e,"ancestor-scroll")}i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=M;let t=(0,l.Me)(u.floating);a&&t.addEventListener("keydown",C?A:T,C),w&&t.addEventListener(d,L?O:I,L);let o=[];return g&&((0,c.kK)(u.domReference)&&(o=(0,c.Kx)(u.domReference)),(0,c.kK)(u.floating)&&(o=o.c
1oncat((0,c.Kx)(u.floating))),!(0,c.kK)(u.reference)&&u.reference&&u.reference.contextElement&&(o=o.concat((0,c.Kx)(u.reference.contextElement)))),(o=o.filter(e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})).forEach(t=>{t.addEventListener("scroll",e,{passive:!0})}),()=>{a&&t.removeEventListener("keydown",C?A:T,C),w&&t.removeEventListener(d,L?O:I,L),o.forEach(t=>{t.removeEventListener("scroll",e)})}},[i,u,a,w,d,n,r,g,f,x,M,T,C,A,I,L,O]),o.useEffect(()=>{R.current=!1},[w,d]);let S=o.useMemo(()=>({onKeyDown:T,[ek[m]]:e=>{v&&r(!1,e.nativeEvent,"reference-press")}}),[T,r,v,m]),K=o.useMemo(()=>({onKeyDown:T,onMouseDown(){k.current=!0},onMouseUp(){k.current=!0},[ex[d]]:()=>{R.current=!0}}),[T,d]);return o.useMemo(()=>f?{reference:S,floating:K}:{},[f,S,K])}function eL(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){let{open:t=!1,onOpenChange:n,elements:r}=e,u=W(),l=o.useRef({}),[i]=o.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){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}})()),c=null!=U(),[f,a]=o.useState(r.reference),s=p((e,t,r)=>{l.current.openEvent=e?t:void 0,i.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)}),d=o.useMemo(()=>({setPositionReference:a}),[]),v=o.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return o.useMemo(()=>({dataRef:l,open:t,onOpenChange:s,elements:v,events:i,floatingId:u,refs:d}),[t,s,v,i,u,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,u=r.elements,[l,i]=o.useState(null),[f,a]=o.useState(null),d=(null==u?void 0:u.reference)||l,v=o.useRef(null),m=q();T(()=>{d&&(v.current=d)},[d]);let g=(0,s.YF)({...e,elements:{...u,...f&&{reference:f}}}),h=o.useCallback(e=>{let t=(0,c.kK)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;a(t),g.refs.setReference(t)},[g.refs]),y=o.useCallback(e=>{((0,c.kK)(e)||null===e)&&(v.current=e,i(e)),((0,c.kK)(g.refs.reference.current)||null===g.refs.reference.current||null!==e&&!(0,c.kK)(e))&&g.refs.setReference(e)},[g.refs]),E=o.useMemo(()=>({...g.refs,setReference:y,setPositionReference:h,domReference:v}),[g.refs,y,h]),b=o.useMemo(()=>({...g.elements,domReference:d}),[g.elements,d]),w=o.useMemo(()=>({...g,...r,refs:E,elements:b,nodeId:t}),[g,E,b,t,r]);return T(()=>{r.dataRef.current.floatingContext=w;let e=null==m?void 0:m.nodesRef.current.find(e=>e.id===t);e&&(e.context=w)}),o.useMemo(()=>({...g,context:w,refs:E,elements:b}),[g,E,b,w])}function eT(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,events:u,dataRef:i,elements:f}=e,{enabled:a=!0,visibleOnly:s=!0}=t,d=o.useRef(!1),v=o.useRef(),m=o.useRef(!0);o.useEffect(()=>{if(!a)return;let e=(0,c.Jj)(f.domReference);function t(){!n&&(0,c.Re)(f.domReference)&&f.domReference===(0,l.AW)((0,l.Me)(f.domReference))&&(d.current=!0)}function r(){m.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}},[f.domReference,n,a]),o.useEffect(()=>{if(a)return u.on("openchange",e),()=>{u.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(d.current=!0)}},[u,a]),o.useEffect(()=>()=>{clearTimeout(v.current)},[]);let p=o.useMemo(()=>({onPointerDown(e){(0,l.cr)(e.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(e){if(d.current)return;let t=(0,l.U9)(e.nativeEvent);if(s&&(0,c.kK)(t))try{if((0,l.G6)()&&(0,l.V5)())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!m.current&&!(0,l.j7)(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){d.current=!1;let t=e.relatedTarget,n=e.nativeEvent,u=(0,c.kK)(t)&&t.hasAttribute(B("focus-guard"))&&"outside"===t.getAttribute("data-type");v.current=window.setTimeout(()=>{var e;let o=(0,l.AW)(f.domReference?f.domReference.ownerDocument:document);if(t||o!==f.domReference){if((0,l.r3)(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,o)||(0,l.r3)(f.domReference,o)||u)return;r(!1,n,"focus")}})}}),[i,f.domReference,r,s]);return o.useMemo(()=>a?{reference:p}:{},[a,p])}let eA="active",eI="selected";function eO(e,t,n){let r=new Map,u="item"===n,o=e;if(u&&e){let{[eA]:t,[eI]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1},...o,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
1(t&&Object.entries(t).forEach(t=>{let[n,o]=t;if(!(u&&[eA,eI].includes(n))){if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof o){var l;null==(l=r.get(n))||l.push(o),e[n]=function(){for(var e,t=arguments.length,u=Array(t),o=0;o<t;o++)u[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map(e=>e(...u)).find(e=>void 0!==e)}}}else e[n]=o}}),e),{})}}function eS(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),u=o.useCallback(t=>eO(t,e,"reference"),t),l=o.useCallback(t=>eO(t,e,"floating"),n),i=o.useCallback(t=>eO(t,e,"item"),r);return o.useMemo(()=>({getReferenceProps:u,getFloatingProps:l,getItemProps:i}),[u,l,i])}let eK=!1;function eP(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function eN(e,t){return eP(t,e===g||e===h,e===y||e===E)}function eD(e,t,n){return eP(t,e===h,n?e===y:e===E)||"Enter"===e||" "===e||""===e}function eW(e,t,n){return eP(t,n?e===E:e===y,e===g)}function e_(e,t){let{open:n,onOpenChange:r,elements:u}=e,{listRef:f,activeIndex:a,onNavigate:s=()=>{},enabled:d=!0,selectedIndex:v=null,allowEscape:m=!1,loop:C=!1,nested:A=!1,rtl:I=!1,virtual:O=!1,focusItemOnOpen:S="auto",focusItemOnHover:K=!0,openOnArrowKeyDown:P=!0,disabledIndices:N,orientation:D="vertical",cols:W=1,scrollItemIntoView:_=!0,virtualItemRef:F,itemSizes:B,dense:V=!1}=t,X=U(),Y=q(),H=p(s),z=o.useRef(S),J=o.useRef(null!=v?v:-1),Z=o.useRef(null),Q=o.useRef(!0),$=o.useRef(H),ee=o.useRef(!!u.floating),et=o.useRef(n),en=o.useRef(!1),er=o.useRef(!1),eu=j(N),eo=j(n),el=j(_),ei=j(u.floating),ec=j(v),[ef,ea]=o.useState(),[es,ed]=o.useState(),ev=p(function(e,t,n){function r(e){O?(ea(e.id),null==Y||Y.events.emit("virtualfocus",e),F&&(F.current=e)):L(e,{preventScroll:!0,sync:!!((0,l.V5)()&&(0,l.G6)())&&(eK||en.current)})}void 0===n&&(n=!1);let u=e.current[t.current];u&&r(u),requestAnimationFrame(()=>{let o=e.current[t.current]||u;if(!o)return;u||r(o);let l=el.current;l&&ep&&(n||!Q.current)&&(null==o.scrollIntoView||o.scrollIntoView("boolean"==typeof l?{block:"nearest",inline:"nearest"}:l))})});T(()=>{document.createElement("div").focus({get preventScroll(){return eK=!0,!1}})},[]),T(()=>{d&&(n&&u.floating?z.current&&null!=v&&(er.current=!0,J.current=v,H(v)):ee.current&&(J.current=-1,$.current(null)))},[d,n,u.floating,v,H]),T(()=>{if(d&&n&&u.floating){if(null==a){if(en.current=!1,null==ec.current&&(ee.current&&(J.current=-1,ev(f,J)),(!et.current||!ee.current)&&z.current&&(null!=Z.current||!0===z.current&&null==Z.current))){let e=0,t=()=>{null==f.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(J.current=null==Z.current||eD(Z.current,D,I)||A?R(f,eu.current):k(f,eu.current),Z.current=null,H(J.current))};t()}}else w(f,a)||(J.current=a,ev(f,J,er.current),er.current=!1)}},[d,n,u.floating,a,ec,A,f,D,I,H,ev,eu]),T(()=>{var e;if(!d||u.floating||!Y||O||!ee.current)return;let t=Y.nodesRef.current,n=null==(e=t.find(e=>e.id===X))||null==(e=e.context)?void 0:e.elements.floating,r=(0,l.AW)((0,l.Me)(u.floating)),o=t.some(e=>e.context&&(0,l.r3)(e.context.elements.floating,r));n&&!o&&Q.current&&n.focus({preventScroll:!0})},[d,u.floating,Y,X,O]),T(()=>{if(d&&Y&&O&&!X)return Y.events.on("virtualfocus",e),()=>{Y.events.off("virtualfocus",e)};function e(e){ed(e.id),F&&(F.current=e)}},[d,Y,O,X,F]),T(()=>{$.current=H,ee.current=!!u.floating}),T(()=>{n||(Z.current=null)},[n]),T(()=>{et.current=n},[n]);let em=null!=a,ep=o.useMemo(()=>{function e(e){if(!n)return;let t=f.current.indexOf(e);-1!==t&&H(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...K&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;Q.current&&"touch"!==t&&(J.current=-1,ev(f,J),H(null),O||L(ei.current,{preventScroll:!0}))}}}},[n,ei,ev,K,f,H,O]),eg=p(e=>{if(Q.current=!1,en.current=!0,!eo.current&&e.currentTarget===ei.current)return;if(A&&eW(e.key,D,I)){(0,l.p7)(e),r(!1,e.nativeEvent,"list-navigation"),(0,c.Re)(u.domReference)&&!O&&u.domReference.focus();return}let t=J.current,o=R(f,N),a=k(f,N);if("Home"===e.key&&((0,l.p7)(e),J.current=o,H(J.current)),"End"===e.key&&((0,l.p7)(e),J.current=a,H(J.current)),W>1){var s;let t=B||Array.from({length:f.current.length},()=>({width:1,height:1})),n=function(e,t,n){let r=[],u=0;return e.forEach((e,o)=>{let{width:l,height:i}=e,c=!1;for(n&&(u=0);!c;){let e=[];for(let n=0;n<l;n++)for(let r=0;r<i;r++)e.push(u+n+r*t);u%t+l<=t&&e.every(e=>
1null==r[e])?(e.forEach(e=>{r[e]=o}),c=!0):u++}}),[...r]}(t,W,V),r=n.findIndex(e=>null!=e&&!M(f.current,e,N)),u=n.reduce((e,t,n)=>null==t||M(f.current,t,N)?e:n,-1);if(J.current=n[function(e,t){let{event:n,orientation:r,loop:u,cols:o,disabledIndices:c,minIndex:f,maxIndex:a,prevIndex:s,stopEvent:d=!1}=t,v=s;if(n.key===g){if(d&&(0,l.p7)(n),-1===s)v=a;else if(v=x(e,{startingIndex:v,amount:o,decrement:!0,disabledIndices:c}),u&&(s-o<f||v<0)){let e=s%o,t=a%o,n=a-(t-e);v=t===e?a:t>e?n:n-o}w(e,v)&&(v=s)}if(n.key===h&&(d&&(0,l.p7)(n),-1===s?v=f:(v=x(e,{startingIndex:s,amount:o,disabledIndices:c}),u&&s+o>a&&(v=x(e,{startingIndex:s%o-o,amount:o,disabledIndices:c}))),w(e,v)&&(v=s)),"both"===r){let t=(0,i.GW)(s/o);n.key===E&&(d&&(0,l.p7)(n),s%o!=o-1?(v=x(e,{startingIndex:s,disabledIndices:c}),u&&b(v,o,t)&&(v=x(e,{startingIndex:s-s%o-1,disabledIndices:c}))):u&&(v=x(e,{startingIndex:s-s%o-1,disabledIndices:c})),b(v,o,t)&&(v=s)),n.key===y&&(d&&(0,l.p7)(n),s%o!=0?(v=x(e,{startingIndex:s,decrement:!0,disabledIndices:c}),u&&b(v,o,t)&&(v=x(e,{startingIndex:s+(o-s%o),decrement:!0,disabledIndices:c}))):u&&(v=x(e,{startingIndex:s+(o-s%o),decrement:!0,disabledIndices:c})),b(v,o,t)&&(v=s));let r=(0,i.GW)(a/o)===t;w(e,v)&&(v=u&&r?n.key===y?a:x(e,{startingIndex:s-s%o-1,disabledIndices:c}):s)}return v}({current:n.map(e=>null!=e?f.current[e]:null)},{event:e,orientation:D,loop:C,cols:W,disabledIndices:(s=[...N||f.current.map((e,t)=>M(f.current,t)?t:void 0),void 0],n.flatMap((e,t)=>s.includes(e)?[t]:[])),minIndex:r,maxIndex:u,prevIndex:function(e,t,n,r,u){if(-1===e)return -1;let o=n.indexOf(e),l=t[e];switch(u){case"tl":return o;case"tr":if(!l)return o;return o+l.width-1;case"bl":if(!l)return o;return o+(l.height-1)*r;case"br":return n.lastIndexOf(e)}}(J.current>a?o:J.current,t,n,W,e.key===h?"bl":e.key===E?"tr":"tl"),stopEvent:!0})],H(J.current),"both"===D)return}if(eN(e.key,D)){if((0,l.p7)(e),n&&!O&&(0,l.AW)(e.currentTarget.ownerDocument)===e.currentTarget){J.current=eD(e.key,D,I)?o:a,H(J.current);return}eD(e.key,D,I)?C?J.current=t>=a?m&&t!==f.current.length?-1:o:x(f,{startingIndex:t,disabledIndices:N}):J.current=Math.min(a,x(f,{startingIndex:t,disabledIndices:N})):C?J.current=t<=o?m&&-1!==t?f.current.length:a:x(f,{startingIndex:t,decrement:!0,disabledIndices:N}):J.current=Math.max(o,x(f,{startingIndex:t,decrement:!0,disabledIndices:N})),w(f,J.current)?H(null):H(J.current)}}),eh=o.useMemo(()=>O&&n&&em&&{"aria-activedescendant":es||ef},[O,n,em,es,ef]),ey=o.useMemo(()=>({"aria-orientation":"both"===D?void 0:D,...!(0,l.Ie)(u.domReference)&&eh,onKeyDown:eg,onPointerMove(){Q.current=!0}}),[eh,eg,u.domReference,D]),eE=o.useMemo(()=>{function e(e){"auto"===S&&(0,l.Zj)(e.nativeEvent)&&(z.current=!0)}return{...eh,onKeyDown(e){var t,u,o,i,c,a;Q.current=!1;let s=0===e.key.indexOf("Arrow"),d=(t=e.key,eP(D,I?t===y:t===E,t===h)),m=eW(e.key,D,I),p=eN(e.key,D),g=(A?d:p)||"Enter"===e.key||""===e.key.trim();if(O&&n){let t,n;let r=null==Y?void 0:Y.nodesRef.current.find(e=>null==e.parentId),v=Y&&r?(u=Y.nodesRef.current,o=r.id,n=-1,!function e(r,o){o>n&&(t=r,n=o),G(u,r).forEach(t=>{e(t.id,o+1)})}(o,0),u.find(e=>e.id===t)):null;if(s&&v&&F){let t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(d||m){let n=(null==(i=v.context)?void 0:i.elements.domReference)===e.currentTarget,r=m&&!n?null==(c=v.context)?void 0:c.elements.domReference:d?f.current.find(e=>(null==e?void 0:e.id)===ef):null;r&&((0,l.p7)(e),r.dispatchEvent(t),ed(void 0))}if(p&&v.context&&v.context.open&&v.parentId&&e.currentTarget!==v.context.elements.domReference){(0,l.p7)(e),null==(a=v.context.elements.domReference)||a.dispatchEvent(t);return}}return eg(e)}if(n||P||!s){if(g&&(Z.current=A&&p?null:e.key),A){d&&((0,l.p7)(e),n?(J.current=R(f,eu.current),H(J.current)):r(!0,e.nativeEvent,"list-navigation"));return}p&&(null!=v&&(J.current=v),(0,l.p7)(e),!n&&P?r(!0,e.nativeEvent,"list-navigation"):eg(e),n&&H(J.current))}},onFocus(){n&&!O&&H(null)},onPointerDown:function(e){z.current=S,"auto"===S&&(0,l.cr)(e.nativeEvent)&&(z.current=!0)},onMouseDown:e,onClick:e}},[ef,eh,eg,eu,S,f,A,H,r,n,P,D,I,v,Y,O,F]);return o.useMemo(()=>d?{reference:eE,floating:ey,item:ep}:{},[d,eE,ey,ep])}let eF=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function eU(e,t){var n;void 0===t&&(t={});let{open:r,floatingId:u}=e,{enabled:l=!0,role:i="dialog"}=t,c=null!=(n=eF.get(i))?n:i,f=W(),a=null!=U(),s=o.useMemo(()=>"tooltip"===c||"label"===i?{["aria-"+("label"===i?"labelledby":"describedby")]:r?u:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===c?"dialog":c,"aria-controls":r?u:void 0,..."listbox"===c&&{role:"combobox"},..."menu"===c&&{id:f},..."menu"===c&&a&&{role:"menuitem"},..."select"===i&&{"aria-autocomplete":"none"},..."combobox"===i&&{"aria-autocomplete":"list"}},[c,u,a,r,f,i]),d=o.useMemo(()=>
1{let e={id:u,...c&&{role:c}};return"tooltip"===c||"label"===i?e:{...e,..."menu"===c&&{"aria-labelledby":f}}},[c,u,f,i]),v=o.useCallback(e=>{let{active:t,selected:n}=e,r={role:"option",...t&&{id:u+"-option"}};switch(i){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}},[u,i]);return o.useMemo(()=>l?{reference:s,floating:d,item:v}:{},[l,s,d,v])}function eq(e,t){var n;let{open:r,dataRef:u}=e,{listRef:i,activeIndex:c,onMatch:f,onTypingChange:a,enabled:s=!0,findMatch:d=null,resetMs:v=750,ignoreKeys:m=[],selectedIndex:g=null}=t,h=o.useRef(),y=o.useRef(""),E=o.useRef(null!=(n=null!=g?g:c)?n:-1),b=o.useRef(null),w=p(f),R=p(a),k=j(d),x=j(m);T(()=>{r&&(clearTimeout(h.current),b.current=null,y.current="")},[r]),T(()=>{if(r&&""===y.current){var e;E.current=null!=(e=null!=g?g:c)?e:-1}},[r,g,c]);let M=p(e=>{e?u.current.typing||(u.current.typing=e,R(e)):u.current.typing&&(u.current.typing=e,R(e))}),C=p(e=>{function t(e,t,n){let r=k.current?k.current(t,n):t.find(e=>(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))===0);return r?e.indexOf(r):-1}let n=i.current;if(y.current.length>0&&" "!==y.current[0]&&(-1===t(n,n,y.current)?M(!1):" "===e.key&&(0,l.p7)(e)),null==n||x.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&((0,l.p7)(e),M(!0)),n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&y.current===e.key&&(y.current="",E.current=b.current),y.current+=e.key,clearTimeout(h.current),h.current=setTimeout(()=>{y.current="",E.current=b.current,M(!1)},v);let u=E.current,o=t(n,[...n.slice((u||0)+1),...n.slice(0,(u||0)+1)],y.current);-1!==o?(w(o),b.current=o):" "!==e.key&&(y.current="",M(!1))}),L=o.useMemo(()=>({onKeyDown:C}),[C]),A=o.useMemo(()=>({onKeyDown:C,onKeyUp(e){" "===e.key&&M(!1)}}),[C,M]);return o.useMemo(()=>s?{reference:L,floating:A}:{},[s,L,A])}function eB(e,t){let[n,r]=e,u=!1,o=t.length;for(let e=0,l=o-1;e<o;l=e++){let[o,i]=t[e]||[0,0],[c,f]=t[l]||[0,0];i>=r!=f>=r&&n<=(c-o)*(r-i)/(f-i)+o&&(u=!u)}return u}function ej(e){let t;void 0===e&&(e={});let{buffer:n=.5,blockPointerEvents:r=!1,requireIntent:u=!0}=e,o=!1,i=null,f=null,a=performance.now(),s=e=>{let{x:r,y:s,placement:d,elements:v,onClose:m,nodeId:p,tree:g}=e;return function(e){function h(){clearTimeout(t),m()}if(clearTimeout(t),!v.domReference||!v.floating||null==d||null==r||null==s)return;let{clientX:y,clientY:E}=e,b=[y,E],w=(0,l.U9)(e),R="mouseleave"===e.type,k=(0,l.r3)(v.floating,w),x=(0,l.r3)(v.domReference,w),M=v.domReference.getBoundingClientRect(),C=v.floating.getBoundingClientRect(),L=d.split("-")[0],T=r>C.right-C.width/2,A=s>C.bottom-C.height/2,I=b[0]>=M.x&&b[0]<=M.x+M.width&&b[1]>=M.y&&b[1]<=M.y+M.height,O=C.width>M.width,S=C.height>M.height,K=(O?M:C).left,P=(O?M:C).right,N=(S?M:C).top,D=(S?M:C).bottom;if(k&&(o=!0,!R))return;if(x&&(o=!1),x&&!R){o=!0;return}if(R&&(0,c.kK)(e.relatedTarget)&&(0,l.r3)(v.floating,e.relatedTarget)||g&&G(g.nodesRef.current,p).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===L&&s>=M.bottom-1||"bottom"===L&&s<=M.top+1||"left"===L&&r>=M.right-1||"right"===L&&r<=M.left+1)return h();let W=[];switch(L){case"top":W=[[K,M.top+1],[K,C.bottom-1],[P,C.bottom-1],[P,M.top+1]];break;case"bottom":W=[[K,C.top+1],[K,M.bottom-1],[P,M.bottom-1],[P,C.top+1]];break;case"left":W=[[C.right-1,D],[C.right-1,N],[M.left+1,N],[M.left+1,D]];break;case"right":W=[[M.right-1,D],[M.right-1,N],[C.left+1,N],[C.left+1,D]]}if(!eB([y,E],W)){if(o&&!I)return h();if(!R&&u){let t=function(e,t){let n=performance.now(),r=n-a;if(null===i||null===f||0===r)return i=e,f=t,a=n,null;let u=e-i,o=t-f;return i=e,f=t,a=n,Math.sqrt(u*u+o*o)/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}eB([y,E],function(e){let[t,r]=e;switch(L){case"top":{let e=[[C.left,T?C.bottom-n:O?C.bottom-n:C.top],[C.right,T?O?C.bottom-n:C.top:C.bottom-n]];return[[O?t+n/2:T?t+4*n:t-4*n,r+n+1],[O?t-n/2:T?t+4*n:t-4*n,r+n+1],...e]}case"bottom":{let e=[[C.left,T?C.top+n:O?C.top+n:C.bottom],[C.right,T?O?C.top+n:C.bottom:C.top+n]];return[[O?t+n/2:T?t+4*n:t-4*n,r-n],[O?t-n/2:T?t+4*n:t-4*n,r-n],...e]}case"left":return[[A?C.right-n:S?C.right-n:C.left,C.top],[A?S?C.right-n:C.left:C.right-n,C.bottom],[t+n+1,S?r+n/2:A?r+4*n:r-4*n],[t+n+1,S?r-n/2:A?r+4*n:r-4*n]];case"right":{let e=[[A?C.left+n:S?C.left+n:C.right,C.top],[A?S?C.left+n:C.right:C.left+n,C.bottom]];return[[t-n,S?r+n/2:A?r+4*n:r-4*n],[t-n,S?r-n/2:A?r+4*n:r-4*n],...e]}}}([r,s]))?!o&&u&&(t=window.setTimeout(h,40)):h()}}};return s.__options={blockPointerEvents:r},s}}}]);
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.