PageSourceSearch

https://hotelamaike.com/_next/static/chunks/e8686b1f-88c1f242a672c147.js

js hotelamaike.com collected 2026-10-05 07:12:07 UTC 54,244 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[544],{91792:function(e,t,n){let r;n.r(t),n.d(t,{Composite:function(){return q},CompositeItem:function(){return B},FloatingArrow:function(){return Z},FloatingDelayGroup:function(){return ev},FloatingFocusManager:function(){return ej},FloatingList:function(){return F},FloatingNode:function(){return er},FloatingOverlay:function(){return eq},FloatingPortal:function(){return eK},FloatingTree:function(){return eu},arrow:function(){return s.x7},autoPlacement:function(){return s.X5},autoUpdate:function(){return d.Me},computePosition:function(){return d.oo},detectOverflow:function(){return d.US},flip:function(){return s.RR},getOverflowAncestors:function(){return c.Kx},hide:function(){return s.Cp},inline:function(){return s.Qo},inner:function(){return ta},limitShift:function(){return s.dr},offset:function(){return s.cv},platform:function(){return d.Jv},safePolygon:function(){return td},shift:function(){return s.uY},size:function(){return s.dp},useClick:function(){return ez},useClientPoint:function(){return eY},useDelayGroup:function(){return em},useDelayGroupContext:function(){return ed},useDismiss:function(){return eJ},useFloating:function(){return e$},useFloatingNodeId:function(){return en},useFloatingParentNodeId:function(){return ee},useFloatingPortalNode:function(){return eD},useFloatingRootContext:function(){return eQ},useFloatingTree:function(){return et},useFocus:function(){return e0},useHover:function(){return ea},useId:function(){return V},useInnerOffset:function(){return tf},useInteractions:function(){return e7},useListItem:function(){return N},useListNavigation:function(){return te},useMergeRefs:function(){return v},useRole:function(){return tn},useTransitionStatus:function(){return to},useTransitionStyles:function(){return tl},useTypeahead:function(){return ti}});var u,o=n(2265),l=n(40600),i=n(47848),c=n(75224),a=n(38086),f=n(54887),s=n(94674),d=n(8143);function v(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 m={...u||(u=n.t(o,2))},p=m.useInsertionEffect||(e=>e());function g(e){let t=o.useRef(()=>{});return p(()=>{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 h="ArrowUp",y="ArrowDown",E="ArrowLeft",b="ArrowRight";function x(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 M(e,{disabledIndices:t})}function k(e,t){return M(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function M(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&&P(l,i,u));return i}function C(e,t){let{event:n,orientation:r,loop:u,cols:o,disabledIndices:c,minIndex:a,maxIndex:f,prevIndex:s,stopEvent:d=!1}=t,v=s;if(n.key===h){if(d&&(0,l.p7)(n),-1===s)v=f;else if(v=M(e,{startingIndex:v,amount:o,decrement:!0,disabledIndices:c}),u&&(s-o<a||v<0)){let e=s%o,t=f%o,n=f-(t-e);v=t===e?f:t>e?n:n-o}w(e,v)&&(v=s)}if(n.key===y&&(d&&(0,l.p7)(n),-1===s?v=a:(v=M(e,{startingIndex:s,amount:o,disabledIndices:c}),u&&s+o>f&&(v=M(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===b&&(d&&(0,l.p7)(n),s%o!=o-1?(v=M(e,{startingIndex:s,disabledIndices:c}),u&&x(v,o,t)&&(v=M(e,{startingIndex:s-s%o-1,disabledIndices:c}))):u&&(v=M(e,{startingIndex:s-s%o-1,disabledIndices:c})),x(v,o,t)&&(v=s)),n.key===E&&(d&&(0,l.p7)(n),s%o!=0?(v=M(e,{startingIndex:s,decrement:!0,disabledIndices:c}),u&&x(v,o,t)&&(v=M(e,{startingIndex:s+(o-s%o),decrement:!0,disabledIndices:c}))):u&&(v=M(e,{startingIndex:s+(o-s%o),decrement:!0,disabledIndices:c})),x(v,o,t)&&(v=s));let r=(0,i.GW)(f/o)===t;w(e,v)&&(v=u&&r?n.key===E?f:M(e,{startingIndex:s-s%o-1,disabledIndices:c}):s)}return v}function I(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]}function T(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)}}function L(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function P(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 A=0;function S(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:u=!1}=t;r&&cancelAnimationFrame(A);let o=()=>null==e?void 0:e.focus({preventScroll:n});u?o():A=requestAnimationFrame(o)}var O="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function D(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 K=o.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function F(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 O(()=>{let e=new Map(u);Array.from(e.keys()).sort(D).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(K.Provider,{value:o.useMemo(()=>({register:i,unregister:c,map:u,elementsRef:n,labelsRef:r}),[i,c,u,n,r])},t)}function N(e){void 0===e&&(e={});let{label:t}=e,{register:n,unregister:r,map:u,elementsRef:l,labelsRef:i}=o.useContext(K),[c,a]=o.useState(null),f=o.useRef(null),s=o.useCallback(e=>{if(f.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 O(()=>{let e=f.current;if(e)return n(e),()=>{r(e)}},[n,r]),O(()=>{let e=f.current?u.get(f.current):null;null!=e&&a(e)},[u]),o.useMemo(()=>({ref:s,index:null==c?-1:c}),[c,s])}function W(e,t){return"function"==typeof e?e(t):e?o.cloneElement(e,t):o.createElement("div",t)}let _=o.createContext({activeIndex:0,onNavigate:()=>{}}),U=[E,b],j=[h,y],H=[...U,...j],q=o.forwardRef(function(e,t){let{render:n,orientation:r="both",loop:u=!0,cols:l=1,disabledIndices:i,activeIndex:c,onNavigate:a,itemSizes:f,dense:s=!1,...d}=e,[v,m]=o.useState(0),p=null!=c?c:v,x=g(null!=a?a:m),A=o.useRef([]),O=n&&"function"!=typeof n?n.props:{},D=o.useMemo(()=>({activeIndex:p,onNavigate:x}),[p,x]),K=l>1,N={...d,...O,ref:t,"aria-orientation":"both"===r?void 0:r,onKeyDown(e){null==d.onKeyDown||d.onKeyDown(e),null==O.onKeyDown||O.onKeyDown(e),function(e){if(!H.includes(e.key))return;let t=p,n=R(A,i),o=k(A,i);if(K){let c=f||Array.from({length:A.current.length},()=>({width:1,height:1})),a=I(c,l,s),d=a.findIndex(e=>null!=e&&!P(A.current,e,i)),v=a.reduce((e,t,n)=>null==t||P(A.current,t,i)?e:n,-1);t=a[C({current:a.map(e=>e?A.current[e]:null)},{event:e,orientation:r,loop:u,cols:l,disabledIndices:L([...i||A.current.map((e,t)=>P(A.current,t)?t:void 0),void 0],a),minIndex:d,maxIndex:v,prevIndex:T(p>o?n:p,c,a,l,e.key===y?"bl":e.key===b?"tr":"tl")})]}let c={horizontal:[b],vertical:[y],both:[b,y]}[r],a={horizontal:[E],vertical:[h],both:[E,h]}[r],d=K?H:({horizontal:U,vertical:j,both:H})[r];t===p&&[...c,...a].includes(e.key)&&(t=u&&t===o&&c.includes(e.key)?n:u&&t===n&&a.includes(e.key)?o:M(A,{startingIndex:t,decrement:a.includes(e.key),disabledIndices:i})),t===p||w(A,t)||(e.stopPropagation(),d.includes(e.key)&&e.preventDefault(),x(t),queueMicrotask(()=>{S(A.current[t])}))}(e)}};return o.createElement(_.Provider,{value:D},o.createElement(F,{elementsRef:A},W(n,N)))}),B=o.forwardRef(function(e,t){let{render:n,...r}=e,u=n&&"function"!=typeof n?n.props:{},{activeIndex:l,onNavigate:i}=o.useContext(_),{ref:c,index:a}=N(),f=v([c,t,u.ref]),s=l===a;return W(n,{...r,...u,ref:f,tabIndex:s?0:-1,"data-active":s?"":void 0,onFocus(e){null==r.onFocus||r.onFocus(e),null==u.onFocus||u.onF
1ocus(e),i(a)}})});function z(){return(z=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 X=!1,Y=0,G=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Y++,V=m.useId||function(){let[e,t]=o.useState(()=>X?G():void 0);return O(()=>{null==e&&t(G())},[]),o.useEffect(()=>{X=!0},[]),e},Z=o.forwardRef(function(e,t){let{context:{placement:n,elements:{floating:r},middlewareData:{arrow:u}},width:l=14,height:i=7,tipRadius:a=0,strokeWidth:f=0,staticOffset:s,stroke:d,d:v,style:{transform:m,...p}={},...g}=e,h=V(),[y,E]=o.useState(!1);if(O(()=>{r&&"rtl"===(0,c.Dx)(r).direction&&E(!0)},[r]),!r)return null;let b=2*f,x=b/2,w=l/2*(-(a/8)+1),R=i/2*a/4,[k,M]=n.split("-"),C=!!v,I="top"===k||"bottom"===k,T=s&&"end"===M?"bottom":"top",L=s&&"end"===M?"right":"left";s&&y&&(L="end"===M?"left":"right");let P=(null==u?void 0:u.x)!=null?s||u.x:"",A=(null==u?void 0:u.y)!=null?s||u.y:"",S=v||"M0,0 H"+l+" L"+(l-w)+","+(i-R)+(" Q"+l/2+","+i+" ")+w+","+(i-R)+" Z",D={top:C?"rotate(180deg)":"",left:C?"rotate(90deg)":"rotate(-90deg)",bottom:C?"":"rotate(180deg)",right:C?"rotate(-90deg)":"rotate(90deg)"}[k];return o.createElement("svg",z({},g,{"aria-hidden":!0,ref:t,width:C?l:l+b,height:l,viewBox:"0 0 "+l+" "+(i>l?i:l),style:{position:"absolute",pointerEvents:"none",[L]:P,[T]:A,[k]:I||C?"100%":"calc(100% - "+b/2+"px)",transform:""+D+(null!=m?m:""),...p}}),b>0&&o.createElement("path",{clipPath:"url(#"+h+")",fill:"none",stroke:d,strokeWidth:b+(v?0:1),d:S}),o.createElement("path",{stroke:b&&!v?g.fill:"none",d:S}),o.createElement("clipPath",{id:h},o.createElement("rect",{x:-x,y:x*(C?-1:1),width:l+b,height:l})))});function J(){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))||[])}}}let Q=o.createContext(null),$=o.createContext(null),ee=()=>{var e;return(null==(e=o.useContext(Q))?void 0:e.id)||null},et=()=>o.useContext($);function en(e){let t=V(),n=et(),r=ee(),u=e||r;return O(()=>{let e={id:t,parentId:u};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,u]),t}function er(e){let{children:t,id:n}=e,r=ee();return o.createElement(Q.Provider,{value:o.useMemo(()=>({id:n,parentId:r}),[n,r])},t)}function eu(e){let{children:t}=e,n=o.useRef([]),r=o.useCallback(e=>{n.current=[...n.current,e]},[]),u=o.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),l=o.useState(()=>J())[0];return o.createElement($.Provider,{value:o.useMemo(()=>({nodesRef:n,addNode:r,removeNode:u,events:l}),[r,u,l])},t)}function eo(e){return"data-floating-ui-"+e}function el(e){let t=(0,o.useRef)(e);return O(()=>{t.current=e}),t}let ei=eo("safe-polygon");function ec(e,t,n){return n&&!(0,l.r)(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function ea(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:u,events:i,elements:a}=e,{enabled:f=!0,delay:s=0,handleClose:d=null,mouseOnly:v=!1,restMs:m=0,move:p=!0}=t,h=et(),y=ee(),E=el(d),b=el(s),x=el(n),w=o.useRef(),R=o.useRef(-1),k=o.useRef(),M=o.useRef(-1),C=o.useRef(!0),I=o.useRef(!1),T=o.useRef(()=>{}),L=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(f)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(R.current),clearTimeout(M.current),C.current=!0)}},[f,i]),o.useEffect(()=>{if(!f||!E.current||!n)return;function e(e){L()&&r(!1,e,"hover")}let t=(0,l.Me)(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[a.floating,n,r,f,E,L]);let P=o.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let u=ec(b.current,"close",w.current);u&&!k.current?(clearTimeout(R.current),R.current=window.setTimeout(()=>r(!1,e,n),u)):t&&(clearTimeout(R.current),r(!1,e,n))},[b,r]),A=g(()=>{T.current(),k.current=void 0}),S=g(()=>{if(I.current){let e=(0,l.Me)(a.floating).body;e.style.pointerEvents="",e.removeAttribute(ei),I.current=!1}});o.useEffect(()=>{if(f&&(0,c.kK)(a.domReference)){var e;let t=a.domReference;return n&&t.addEventListener("mouseleave",s),null==(e=a.floating)||e.addEventListener("mouseleave",s),p&&t.addEventListener("mousemove",o,{once:!0}),t.addEventListener("mouseenter",o),t.addEventListener("mouseleave",i),()=>{var e;n&&t.removeEventListener("mouseleave",s),null==(e=a.floating)||e.removeEventListener("mouseleave",s),p&&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(R.current),C.current=!1,v&&!(0,l.r)(w.current)||m>0&&!ec(b.current,"open"))return;let t=ec(b.current,"open",w.current);t?R.current=window.setTimeout(()=>{x.current||r(!0,e,"hover")},t):r(!0,e,"hover")}function i(e){if(t())return;T.current();let r=(0,l.Me)(a.floating);
1if(clearTimeout(M.current),E.current&&u.current.floatingContext){n||clearTimeout(R.current),k.current=E.current({...u.current.floatingContext,tree:h,x:e.clientX,y:e.clientY,onClose(){S(),A(),P(e,!0,"safe-polygon")}});let t=k.current;r.addEventListener("mousemove",t),T.current=()=>{r.removeEventListener("mousemove",t)};return}"touch"===w.current&&(0,l.r3)(a.floating,e.relatedTarget)||P(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(){S(),A(),P(e)}})(e))}},[a,f,e,v,m,p,P,A,S,r,n,x,h,b,E,u]),O(()=>{var e,t;if(f&&n&&null!=(e=E.current)&&e.__options.blockPointerEvents&&L()){let e=(0,l.Me)(a.floating).body;e.setAttribute(ei,""),e.style.pointerEvents="none",I.current=!0;let n=a.floating;if((0,c.kK)(a.domReference)&&n){let e=a.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=""}}}},[f,n,y,a,h,E,L]),O(()=>{n||(w.current=void 0,A(),S())},[n,A,S]),o.useEffect(()=>()=>{A(),clearTimeout(R.current),clearTimeout(M.current),S()},[f,a.domReference,A,S]);let D=o.useMemo(()=>{function e(e){w.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function u(){C.current||x.current||r(!0,t,"hover")}(!v||(0,l.r)(w.current))&&!n&&0!==m&&(clearTimeout(M.current),"touch"===w.current?u():M.current=window.setTimeout(u,m))}}},[v,r,n,x,m]),K=o.useMemo(()=>({onMouseEnter(){clearTimeout(R.current)},onMouseLeave(e){P(e.nativeEvent,!1)}}),[P]);return o.useMemo(()=>f?{reference:D,floating:K}:{},[f,D,K])}let ef=()=>{},es=o.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:ef,setState:ef,isInstantPhase:!1}),ed=()=>o.useContext(es);function ev(e){let{children:t,delay:n,timeoutMs:r=0}=e,[u,l]=o.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),i=o.useRef(null),c=o.useCallback(e=>{l({currentId:e})},[]);return O(()=>{u.currentId?null===i.current?i.current=u.currentId:u.isInstantPhase||l({isInstantPhase:!0}):(u.isInstantPhase&&l({isInstantPhase:!1}),i.current=null)},[u.currentId,u.isInstantPhase]),o.createElement(es.Provider,{value:o.useMemo(()=>({...u,setState:l,setCurrentId:c}),[u,c])},t)}function em(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,floatingId:u}=e,{id:o}=t,l=null!=o?o:u,i=ed(),{currentId:c,setCurrentId:a,initialDelay:f,setState:s,timeoutMs:d}=i;return O(()=>{c&&(s({delay:{open:1,close:ec(f,"close")}}),c!==l&&r(!1))},[l,r,s,c,f]),O(()=>{function e(){r(!1),s({delay:f,currentId:null})}if(c&&!n&&c===l){if(d){let t=window.setTimeout(e,d);return()=>{clearTimeout(t)}}e()}},[n,s,c,l,r,f,d]),O(()=>{a!==ef&&n&&a(l)},[n,a,l]),i}function ep(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 eg=new WeakMap,eh=new WeakSet,ey={},eE=0,eb=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,ex=e=>e&&(e.host||ex(e.parentNode)),ew=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=ex(t);return e.contains(n)?n:null}).filter(e=>null!=e);function eR(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=ew(t,e),i=new Set,a=new Set(l),f=[];ey[u]||(ey[u]=new WeakMap);let s=ey[u];return l.forEach(function e(t){!(!t||i.has(t))&&(i.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||a.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=(eg.get(t)||0)+1,l=(s.get(t)||0)+1;eg.set(t,r),s.set(t,l),f.push(t),1===r&&n&&eh.add(t),1===l&&t.setAttribute(u,""),!n&&o&&t.setAttribute(o,"true")}}})}(t),i.clear(),eE++,()=>
1{f.forEach(e=>{let t=(eg.get(e)||0)-1,n=(s.get(e)||0)-1;eg.set(e,t),s.set(e,n),t||(!eh.has(e)&&o&&e.removeAttribute(o),eh.delete(e)),n||e.removeAttribute(u)}),--eE||(eg=new WeakMap,eg=new WeakMap,eh=new WeakSet,ey={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}let ek=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function eM(e,t){let n=(0,a.ht)(e,ek());"prev"===t&&n.reverse();let r=n.indexOf((0,l.AW)((0,l.Me)(e)));return n.slice(r+1)[0]}function eC(){return eM(document.body,"next")}function eI(){return eM(document.body,"prev")}function eT(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,l.r3)(n,r)}let eL={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&&(e.target,clearTimeout(r))}let eA=o.forwardRef(function(e,t){let[n,r]=o.useState();O(()=>((0,l.G6)()&&r("button"),document.addEventListener("keydown",eP),
1()=>{document.removeEventListener("keydown",eP)}),[]);let u={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[eo("focus-guard")]:"",style:eL};return o.createElement("span",z({},e,u))}),eS=o.createContext(null),eO=eo("portal");function eD(e){void 0===e&&(e={});let{id:t,root:n}=e,r=V(),u=eF(),[l,i]=o.useState(null),a=o.useRef(null);return O(()=>()=>{null==l||l.remove(),queueMicrotask(()=>{a.current=null})},[l]),O(()=>{if(!r||a.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=r,n.setAttribute(eO,""),e.appendChild(n),a.current=n,i(n)},[t,r]),O(()=>{if(!r||a.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(eO,""),(e=o||e).appendChild(l),a.current=l,i(l)},[t,n,r,u]),l}function eK(e){let{children:t,id:n,root:r=null,preserveTabOrder:u=!0}=e,l=eD({id:n,root:r}),[i,c]=o.useState(null),s=o.useRef(null),d=o.useRef(null),v=o.useRef(null),m=o.useRef(null),p=!!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&&eT(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,a.ht)(e,ek()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(l)}},[l,u,null==i?void 0:i.modal]),o.createElement(eS.Provider,{value:o.useMemo(()=>({preserveTabOrder:u,beforeOutsideRef:s,afterOutsideRef:d,beforeInsideRef:v,afterInsideRef:m,portalNode:l,setFocusManagerState:c}),[u,l])},p&&l&&o.createElement(eA,{"data-type":"outside",ref:s,onFocus:e=>{if(eT(e,l)){var t;null==(t=v.current)||t.focus()}else{let e=eI()||(null==i?void 0:i.refs.domReference.current);null==e||e.focus()}}}),p&&l&&o.createElement("span",{"aria-owns":l.id,style:eL}),l&&f.createPortal(t,l),p&&l&&o.createElement(eA,{"data-type":"outside",ref:d,onFocus:e=>{if(eT(e,l)){var t;null==(t=m.current)||t.focus()}else{let t=eC()||(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 eF=()=>o.useContext(eS),eN=[];function eW(e){eN=eN.filter(e=>e.isConnected);let t=e;if(t&&"body"!==(0,c.wk)(t)){if(!(0,a.Wq)(t,ek())){let e=(0,a.ht)(t,ek())[0];e&&(t=e)}eN.push(t),eN.length>20&&(eN=eN.slice(-20))}}function e_(){return eN.slice().reverse().find(e=>e.isConnected)}let eU=o.forwardRef(function(e,t){return o.createElement("button",z({},e,{type:"button",ref:t,tabIndex:-1,style:eL}))});function ej(e){let{context:t,children:n,disabled:r=!1,order:u=["content"],guards:i=!0,initialFocus:f=0,returnFocus:s=!0,restoreFocus:d=!1,modal:v=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:p=!0}=e,{open:h,refs:y,nodeId:E,onOpenChange:b,events:x,dataRef:w,floatingId:R,elements:{domReference:k,floating:M}}=t,C="number"==typeof f&&f<0,I=(0,l.Ie)(k)&&C,T=!eb()||i,L=el(u),P=el(f),A=el(s),D=et(),K=eF(),F=o.useRef(null),N=o.useRef(null),W=o.useRef(!1),_=o.useRef(!1),U=o.useRef(-1),j=null!=K,H=null==M?void 0:M.firstElementChild,q=(null==H?void 0:H.id)===R?H:M,B=g(function(e){return void 0===e&&(e=q),e?(0,a.ht)(e,ek()):[]}),z=g(e=>{let t=B(e);return L.current.map(e=>k&&"reference"===e?k:q&&"floating"===e?q:t).filter(Boolean).flat()});function X(e){return!r&&m&&v?o.createElement(eU,{ref:"start"===e?F:N,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)(q,(0,l.AW)((0,l.Me)(q)))&&0===B().length&&!I&&(0,l.p7)(e);let t=z(),n=(0,l.U9)(e);"reference"===L.current[0]&&n===k&&((0,l.p7)(e),e.shiftKey?S(t[t.length-1]):S(t[1])),"floating"===L.current[1]&&n===q&&e.shiftKey&&((0,l.p7)(e),S(t[0]))}}let t=(0,l.Me)(q);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[r,k,q,v,L,I,B,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=B().indexOf(t);-1!==n&&(U.current=n)}},[r,M,B]),o.useEffect(()=>{if(!r&&p&&M&&(0,c.Re)(k))return k.addEventListener("focusout",t),k.addEventListener("pointerdown",e),M.addEventListener("focusout",t),()=>{k.removeEventListener("focusout",t),k.removeEventListener("pointerdown",e),M.removeEventListener("focusout",t)};function e(){_.current=!0,setTimeout(()=>{_.current=!1})}function t(e){let t=e.relatedTarget;queueMicrotask(()=>{let n=!((0,l.r3)(k,t)||(0,l.r3)(M,t)||(0,l.r3)(t,M)||(0,l.r3)(null==K?void 0:K.portalNode,t)||null!=t&&t.hasAttribute(eo("focus-guard"))||D&&(ep(D.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})(D.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)(q))===(0,l.Me)(q).body){(0,c.Re)(q)&&(null==q||q.focus());let e=U.current,t=B(),n=t[e]||t[t.length-1]||q;(0,c.Re)(n)&&n.focus()}
1(I||!v)&&t&&n&&!_.current&&t!==e_()&&(W.current=!0,b(!1,e))})}},[r,k,M,q,v,E,D,K,b,p,d,B,I]),o.useEffect(()=>{var e;if(r)return;let t=Array.from((null==K||null==(e=K.portalNode)?void 0:e.querySelectorAll("["+eo("portal")+"]"))||[]);if(M){let e=[M,...t,F.current,N.current,L.current.includes("reference")||I?k:null].filter(e=>null!=e),n=v||I?eR(e,T,!T):eR(e);return()=>{n()}}},[r,k,M,v,L,K,I,T]),O(()=>{if(r||!(0,c.Re)(q))return;let e=(0,l.Me)(q),t=(0,l.AW)(e);queueMicrotask(()=>{let e=z(q),n=P.current,r=("number"==typeof n?e[n]:n.current)||q,u=(0,l.r3)(q,t);C||u||!h||S(r,{preventScroll:r===q})})},[r,h,q,C,z,P]),O(()=>{if(r||!q)return;let e=!1,t=(0,l.Me)(q),n=(0,l.AW)(t),u=w.current.openEvent;function o(t){let{open:n,reason:r,event:o,nested:i}=t;n&&(u=o),"escape-key"===r&&y.domReference.current&&eW(y.domReference.current),"hover"===r&&"mouseleave"===o.type&&(W.current=!0),"outside-press"===r&&(i?(W.current=!1,e=!0):W.current=!((0,l.Zj)(o)||(0,l.cr)(o)))}return eW(n),x.on("openchange",o),()=>{x.off("openchange",o);let n=(0,l.AW)(t),r=(0,l.r3)(M,n)||D&&ep(D.nodesRef.current,E).some(e=>{var t;return(0,l.r3)(null==(t=e.context)?void 0:t.elements.floating,n)});(r||u&&["click","mousedown"].includes(u.type))&&y.domReference.current&&eW(y.domReference.current);let i=e_();A.current&&!W.current&&(0,c.Re)(i)&&(i===n||n===t.body||r)&&S(i,{cancelPrevious:!1,preventScroll:e})}},[r,M,q,A,w,y,x,D,E]),O(()=>{if(!r&&K)return K.setFocusManagerState({modal:v,closeOnFocusOut:p,open:h,onOpenChange:b,refs:y}),()=>{K.setFocusManagerState(null)}},[r,K,v,h,b,y,p]),O(()=>{if(r||!q||"function"!=typeof MutationObserver||C)return;let e=()=>{let e=q.getAttribute("tabindex"),t=B(),n=(0,l.AW)((0,l.Me)(M)),r=t.indexOf(n);-1!==r&&(U.current=r),L.current.includes("floating")||n!==y.domReference.current&&0===t.length?"0"!==e&&q.setAttribute("tabindex","0"):"-1"!==e&&q.setAttribute("tabindex","-1")};e();let t=new MutationObserver(e);return t.observe(q,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[r,M,q,y,L,B,C]);let Y=!r&&T&&(!v||!I)&&(j||v);return o.createElement(o.Fragment,null,Y&&o.createElement(eA,{"data-type":"inside",ref:null==K?void 0:K.beforeInsideRef,onFocus:e=>{if(v){let e=z();S("reference"===u[0]?e[0]:e[e.length-1])}else if(null!=K&&K.preserveTabOrder&&K.portalNode){if(W.current=!1,eT(e,K.portalNode)){let e=eC()||k;null==e||e.focus()}else{var t;null==(t=K.beforeOutsideRef.current)||t.focus()}}}}),!I&&X("start"),n,X("end"),Y&&o.createElement(eA,{"data-type":"inside",ref:null==K?void 0:K.afterInsideRef,onFocus:e=>{if(v)S(z()[0]);else if(null!=K&&K.preserveTabOrder&&K.portalNode){if(p&&(W.current=!0),eT(e,K.portalNode)){let e=eI()||k;null==e||e.focus()}else{var t;null==(t=K.afterOutsideRef.current)||t.focus()}}}}))}let eH=new Set,eq=o.forwardRef(function(e,t){let{lockScroll:n=!1,...r}=e,u=V();return O(()=>{if(!n)return;eH.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 a,f;let e=(null==(a=window.visualViewport)?void 0:a.offsetLeft)||0;Object.assign(t,{position:"fixed",top:-(c-Math.floor((null==(f=window.visualViewport)?void 0:f.offsetTop)||0))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{eH.delete(u),0===eH.size&&(Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,c)))}},[u,n]),o.createElement("div",z({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))});function eB(e){return(0,c.Re)(e.target)&&"BUTTON"===e.target.tagName}function ez(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:u,elements:{domReference:i}}=e,{enabled:c=!0,event:a="click",toggle:f=!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"!==a&&((0,l.r)(t,!0)&&s||(n&&f&&(!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"===a&&v.current){v.current=void 0;return}(0,l.r)(t,!0)&&s||(n&&f&&(!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||eB(e)||(" "!==e.key||(0,l.j7)(i)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&(n&&f?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!d||eB(e)||(0,l.j7)(i))&&" "===e.key&&m.current&&(m.current=!1,n&&f?r(!1,e.nativeEvent,"click"):r(!0,e.nativeEvent,"click"))}}),[u,i,a,s,d,r,n,f]);return o.useMemo(()=>c?{reference:p}:{},[c,p])}function eX(e){return null!=e&&null!=e.clientX}function eY(e,t){void 0===t&&(t={});let{open:n,dataRef:r,elements:{floating:u,domReference:i},refs:a}=e,{enabled:f=!0,axis:s="both",x:d=null,y:v=null}=t,m=o.useRef(!1),p=o.useRef(null),[h,y]=o.useState(),[E,b]=o.useState([]),x=g((e,t)=>{if(!m.current){var n;let u,o,l;(!r.current.openEvent||eX(r.current.openEvent))&&a.setPositionReference((n={x:e,y:t,axis:s,dataRef:r,pointerType:h},u=null,o=null,l=!1,{contextElement:i||void 0,getBoundingClientRect(){var e;let t=(null==i?void 0:i.getBoundingClientRect())||{width:0,height:0,x:0,y:0},r="x"===n.axis||"both"===n.axis,c="y"===n.axis||"both"===n.axis,a=["mouseenter","mousemove"].includes((null==(e=n.dataRef.current.openEvent)?void 0:e.type)||"")&&"touch"!==n.pointerType,f=t.width,s=t.height,d=t.x,v=t.y;return null==u&&n.x&&r&&(u=t.x-n.x),null==o&&n.y&&c&&(o=t.y-n.y),d-=u||0,v-=o||0,f=0,s=0,!l||a?(f="y"===n.axis?t.width:0,s="x"===n.axis?t.height:0,d=r&&null!=n.x?n.x:d,v=c&&null!=n.y?n.y:v):l&&!a&&(s="x"===n.axis?t.height:s,f="y"===n.axis?t.width:f),l=!0,{width:f,height:s,x:d,y:v,top:v,right:d+f,bottom:v+s,left:d}}}))}}),w=g(e=>{null!=d||null!=v||(n?p.current||b([]):x(e.clientX,e.clientY))}),R=(0,l.r)(h)?u:n,k=o.useCallback(()=>
1{if(!R||!f||null!=d||null!=v)return;let e=(0,c.Jj)(u);function t(n){let r=(0,l.U9)(n);(0,l.r3)(u,r)?(e.removeEventListener("mousemove",t),p.current=null):x(n.clientX,n.clientY)}if(!r.current.openEvent||eX(r.current.openEvent)){e.addEventListener("mousemove",t);let n=()=>{e.removeEventListener("mousemove",t),p.current=null};return p.current=n,n}a.setPositionReference(i)},[R,f,d,v,u,r,a,i,x]);o.useEffect(()=>k(),[k,E]),o.useEffect(()=>{f&&!u&&(m.current=!1)},[f,u]),o.useEffect(()=>{!f&&n&&(m.current=!0)},[f,n]),O(()=>{f&&(null!=d||null!=v)&&(m.current=!1,x(d,v))},[f,d,v,x]);let M=o.useMemo(()=>{function e(e){let{pointerType:t}=e;y(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:w,onMouseEnter:w}},[w]);return o.useMemo(()=>f?{reference:M}:{},[f,M])}let eG={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},eV={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},eZ=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 eJ(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,elements:u,dataRef:i}=e,{enabled:a=!0,escapeKey:f=!0,outsidePress:s=!0,outsidePressEvent:d="pointerdown",referencePress:v=!1,referencePressEvent:m="pointerdown",ancestorScroll:p=!1,bubbles:h,capture:y}=t,E=et(),b=g("function"==typeof s?s:()=>!1),x="function"==typeof s?b:s,w=o.useRef(!1),R=o.useRef(!1),{escapeKey:k,outsidePress:M}=eZ(h),{escapeKey:C,outsidePress:I}=eZ(y),T=g(e=>{var t;if(!n||!a||!f||"Escape"!==e.key)return;let u=null==(t=i.current.floatingContext)?void 0:t.nodeId,o=E?ep(E.nodesRef.current,u):[];if(!k&&(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")}),L=g(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)}),P=g(e=>{var t;let n=w.current;w.current=!1;let o=R.current;if(R.current=!1,"click"===d&&o||n||"function"==typeof x&&!x(e))return;let a=(0,l.U9)(e),f="["+eo("inert")+"]",s=(0,l.Me)(u.floating).querySelectorAll(f),v=(0,c.kK)(a)?a: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)(a)&&!(0,l.ex)(a)&&!(0,l.r3)(a,u.floating)&&Array.from(s).every(e=>!(0,l.r3)(v,e)))return;if((0,c.Re)(a)&&O){let t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,n=a.clientHeight>0&&a.scrollHeight>a.clientHeight,r=n&&e.offsetX>a.clientWidth;if(n&&"rtl"===(0,c.Dx)(a).direction&&(r=e.offsetX<=a.offsetWidth-a.clientWidth),r||t&&e.offsetY>a.clientHeight)return}let m=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=E&&ep(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?ep(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")}),A=g(e=>{var t;let n=()=>{var t;P(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||!a)return;function e(e){r(!1,e,"ancestor-scroll")}i.current.__escapeKeyBubbles=k,i.current.__outsidePressBubbles=M;let t=(0,l.Me)(u.floating);f&&t.addEventListener("keydown",C?L:T,C),x&&t.addEventListener(d,I?A:P,I);let o=[];return p&&((0,c.kK)(u.domReference)&&(o=(0,c.Kx)(u.domReference)),(0,c.kK)(u.floating)&&(o=o.concat((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})}),()=>{f&&t.removeEventListener("keydown",C?L:T,C),x&&t.removeEventListener(d,I?A:P,I),o.forEach(t=>{t.removeEventListener("scroll",e)})}},[i,u,f,x,d,n,r,p,a,k,M,T,C,L,P,I,A]),o.useEffect(()=>{w.current=!1},[x,d]);let S=o.useMemo(()=>({onKeyDown:T,[eG[m]]:e=>{v&&r(!1,e.nativeEvent,"reference-press")}}),[T,r,v,m]),O=o.useMemo(()=>({onKeyDown:T,onMouseDown(){R.current=!0},onMouseUp(){R.current=!0},[eV[d]]:()=>{w.current=!0}}),[T,d]);return o.useMemo(()=>a?{reference:S,floating:O}:{},[a,S,O])}function eQ(e){let{open:t=!1,onOpenChange:n,elements:r}=e,u=V(),l=o.useRef({}),[i]=o.useState(()=>J()),c=null!=ee(),[a,f]=o.useState(r.reference),s=g((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:f}),[]),v=o.useMemo(()=>({reference:a||r.reference||null,floating:r.floating||null,domReference:r.reference}),[a,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])}function e$(e){void 0===e&&(e={});let{nodeId:t}=e,n=eQ({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,u=r.elements,[l,i]=o.useState(null),[a,f]=o.useState(null),d=(null==u?void 0:u.reference)||l,v=o.useRef(null),m=et();O(()=>{d&&(v.current=d)},[d]);let p=(0,s.YF)({...e,elements:{...u,...a&&{reference:a}}}),g=o.useCallback(e=>{let t=(0,c.kK)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;f(t),p.refs.setReference(t)},[p.refs]),h=o.useCallback(e=>{((0,c.kK)(e)||null===e)&&(v.current=e,i(e)),((0,c.kK)(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!(0,c.kK)(e))&&p.refs.setReference(e)},[p.refs]),y=o.useMemo(()=>({...p.refs,setReference:h,setPositionReference:g,domReference:v}),[p.refs,h,g]),E=o.useMemo(()=>({...p.elements,domReference:d}),[p.elements,d]),b=o.useMemo(()=>({...p,...r,refs:y,elements:E,nodeId:t}),[p,y,E,t,r]);return O(()=>{r.dataRef.current.floatingContext=b;let e=null==m?void 0:m.nodesRef.current.find(e=>e.id===t);e&&(e.context=b)}),o.useMemo(()=>({...p,context:b,refs:y,elements:E}),[p,y,E,b])}function e0(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,events:u,dataRef:i,elements:a}=e,{enabled:f=!0,visibleOnly:s=!0}=t,d=o.useRef(!1),v=o.useRef(),m=o.useRef(!0);o.useEffect(()=>{if(!f)return;let e=(0,c.Jj)(a.domReference);function t(){!n&&(0,c.Re)(a.domReference)&&a.domReference===(0,l.AW)((0,l.Me)(a.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)}},[a.domReference,n,f]),o.useEffect(()=>{if(f)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,f]),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(eo("focus-guard"))&&"outside"===t.getAttribute("data-type");v.current=window.setTimeout(()=>{var e;let o=(0,l.AW)(a.domReference?a.domReference.ownerDocument:document);if(t||o!==a.domReference){if((0,l.r3)(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,o)||(0,l.r3)(a.domReference,o)||u)return;r(!1,n,"focus")}})}}),[i,a.domReference,r,s]);return o.useMemo(()=>f?{reference:p}:{},[f,p])}let e1="active",e2="selected";function e4(e,t,n){let r=new Map,u="item"===n,o=e;if(u&&e){let{[e1]:t,[e2]: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&&[e1,e2].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 e7(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=>e4(t,e,"reference"),t),l=o.useCallback(t=>e4(t,e,"floating"),n),i=o.useCallback(t=>e4(t,e,"item"),r);return o.useMemo(()=>({getReferenceProps:u,getFloatingProps:l,getItemProps:i}),[u,l,i])}let e3=!1;function e9(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function e5(e,t){return e9(t,e===h||e===y,e===E||e===b)}function e8(e,t,n){return e9(t,e===y,n?e===E:e===b)||"Enter"===e||" "===e||""===e}function e6(e,t,n){return e9(t,n?e===b:e===E,e===h)}function te(e,t){let{open:n,onOpenChange:r,elements:u}=e,{listRef:i,activeIndex:a,onNavigate:f=()=>{},enabled:s=!0,selectedIndex:d=null,allowEscape:v=!1,loop:m=!1,nested:p=!1,rtl:h=!1,virtual:x=!1,focusItemOnOpen:A="auto",focusItemOnHover:D=!0,openOnArrowKeyDown:K=!0,disabledIndices:F,orientation:N="vertical",cols:W=1,scrollItemIntoView:_=!0,virtualItemRef:U,itemSizes:j,dense:H=!1}=t,q=ee(),B=et(),z=g(f),X=o.useRef(A),Y=o.useRef(null!=d?d:-1),G=o.useRef(null),V=o.useRef(!0),Z=o.useRef(z),J=o.useRef(!!u.floating),Q=o.useRef(!1),$=o.useRef(!1),en=el(F),er=el(n),eu=el(_),eo=el(u.floating),ei=el(d),[ec,ea]=o.use
1State(),[ef,es]=o.useState(),ed=g(function(e,t,n){function r(e){x?(ea(e.id),null==B||B.events.emit("virtualfocus",e),U&&(U.current=e)):S(e,{preventScroll:!0,sync:!!((0,l.V5)()&&(0,l.G6)())&&(e3||Q.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=eu.current;l&&em&&(n||!V.current)&&(null==o.scrollIntoView||o.scrollIntoView("boolean"==typeof l?{block:"nearest",inline:"nearest"}:l))})});O(()=>{document.createElement("div").focus({get preventScroll(){return e3=!0,!1}})},[]),O(()=>{s&&(n&&u.floating?X.current&&null!=d&&($.current=!0,Y.current=d,z(d)):J.current&&(Y.current=-1,Z.current(null)))},[s,n,u.floating,d,z]),O(()=>{if(s&&n&&u.floating){if(null==a){if(Q.current=!1,null==ei.current&&(J.current&&(Y.current=-1,ed(i,Y)),!J.current&&X.current&&(null!=G.current||!0===X.current&&null==G.current))){let e=0,t=()=>{null==i.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(Y.current=null==G.current||e8(G.current,N,h)||p?R(i,en.current):k(i,en.current),G.current=null,z(Y.current))};t()}}else w(i,a)||(Y.current=a,ed(i,Y,$.current),$.current=!1)}},[s,n,u.floating,a,ei,p,i,N,h,z,ed,en]),O(()=>{var e;if(!s||u.floating||!B||x||!J.current)return;let t=B.nodesRef.current,n=null==(e=t.find(e=>e.id===q))||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&&V.current&&n.focus({preventScroll:!0})},[s,u.floating,B,q,x]),O(()=>{if(s&&B&&x&&!q)return B.events.on("virtualfocus",e),()=>{B.events.off("virtualfocus",e)};function e(e){es(e.id),U&&(U.current=e)}},[s,B,x,q,U]),O(()=>{Z.current=z,J.current=!!u.floating}),O(()=>{n||(G.current=null)},[n]);let ev=null!=a,em=o.useMemo(()=>{function e(e){if(!n)return;let t=i.current.indexOf(e);-1!==t&&z(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...D&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;V.current&&"touch"!==t&&(Y.current=-1,ed(i,Y),z(null),x||S(eo.current,{preventScroll:!0}))}}}},[n,eo,ed,D,i,z,x]),eg=g(e=>{if(V.current=!1,Q.current=!0,!er.current&&e.currentTarget===eo.current)return;if(p&&e6(e.key,N,h)){(0,l.p7)(e),r(!1,e.nativeEvent,"list-navigation"),(0,c.Re)(u.domReference)&&!x&&u.domReference.focus();return}let t=Y.current,o=R(i,F),a=k(i,F);if("Home"===e.key&&((0,l.p7)(e),Y.current=o,z(Y.current)),"End"===e.key&&((0,l.p7)(e),Y.current=a,z(Y.current)),W>1){let t=j||Array.from({length:i.current.length},()=>({width:1,height:1})),n=I(t,W,H),r=n.findIndex(e=>null!=e&&!P(i.current,e,F)),u=n.reduce((e,t,n)=>null==t||P(i.current,t,F)?e:n,-1);if(Y.current=n[C({current:n.map(e=>null!=e?i.current[e]:null)},{event:e,orientation:N,loop:m,cols:W,disabledIndices:L([...F||i.current.map((e,t)=>P(i.current,t)?t:void 0),void 0],n),minIndex:r,maxIndex:u,prevIndex:T(Y.current>a?o:Y.current,t,n,W,e.key===y?"bl":e.key===b?"tr":"tl"),stopEvent:!0})],z(Y.current),"both"===N)return}if(e5(e.key,N)){if((0,l.p7)(e),n&&!x&&(0,l.AW)(e.currentTarget.ownerDocument)===e.currentTarget){Y.current=e8(e.key,N,h)?o:a,z(Y.current);return}e8(e.key,N,h)?m?Y.current=t>=a?v&&t!==i.current.length?-1:o:M(i,{startingIndex:t,disabledIndices:F}):Y.current=Math.min(a,M(i,{startingIndex:t,disabledIndices:F})):m?Y.current=t<=o?v&&-1!==t?i.current.length:a:M(i,{startingIndex:t,decrement:!0,disabledIndices:F}):Y.current=Math.max(o,M(i,{startingIndex:t,decrement:!0,disabledIndices:F})),w(i,Y.current)?z(null):z(Y.current)}}),eh=o.useMemo(()=>x&&n&&ev&&{"aria-activedescendant":ef||ec},[x,n,ev,ef,ec]),ey=o.useMemo(()=>({"aria-orientation":"both"===N?void 0:N,...!(0,l.Ie)(u.domReference)&&eh,onKeyDown:eg,onPointerMove(){V.current=!0}}),[eh,eg,u.domReference,N]),eE=o.useMemo(()=>{let e=en.current,t=i.current.find(e=>(null==e?void 0:e.id)===ec);function u(e){"auto"===A&&(0,l.Zj)(e.nativeEvent)&&(X.current=!0)}return{...eh,onKeyDown(u){var o,c,a,f,s,v;V.current=!1;let m=0===u.key.indexOf("Arrow"),g=(o=u.key,e9(N,h?o===E:o===b,o===y)),w=e6(u.key,N,h),
1k=e5(u.key,N),M=(p?g:k)||"Enter"===u.key||""===u.key.trim();if(x&&n){let e,n;let r=null==B?void 0:B.nodesRef.current.find(e=>null==e.parentId),o=B&&r?(c=B.nodesRef.current,a=r.id,n=-1,!function t(r,u){u>n&&(e=r,n=u),ep(c,r).forEach(e=>{t(e.id,u+1)})}(a,0),c.find(t=>t.id===e)):null;if(m&&o&&U){let e=new KeyboardEvent("keydown",{key:u.key,bubbles:!0});if(g||w){let n=(null==(f=o.context)?void 0:f.elements.domReference)===u.currentTarget,r=w&&!n?null==(s=o.context)?void 0:s.elements.domReference:g?t:null;r&&((0,l.p7)(u),r.dispatchEvent(e),es(void 0))}if(k&&o.context&&o.context.open&&o.parentId&&u.currentTarget!==o.context.elements.domReference){(0,l.p7)(u),null==(v=o.context.elements.domReference)||v.dispatchEvent(e);return}}return eg(u)}if(n||K||!m){if(M&&(G.current=p&&k?null:u.key),p){g&&((0,l.p7)(u),n?(Y.current=R(i,e),z(Y.current)):r(!0,u.nativeEvent,"list-navigation"));return}k&&(null!=d&&(Y.current=d),(0,l.p7)(u),!n&&K?r(!0,u.nativeEvent,"list-navigation"):eg(u),n&&z(Y.current))}},onFocus(){n&&!x&&z(null)},onPointerDown:function(e){X.current=A,"auto"===A&&(0,l.cr)(e.nativeEvent)&&(X.current=!0)},onMouseDown:u,onClick:u}},[ec,eh,eg,en,A,i,p,z,r,n,K,N,h,d,B,x,U]);return o.useMemo(()=>s?{reference:eE,floating:ey,item:em}:{},[s,eE,ey,em])}let tt=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function tn(e,t){var n;void 0===t&&(t={});let{open:r,floatingId:u}=e,{enabled:l=!0,role:i="dialog"}=t,c=null!=(n=tt.get(i))?n:i,a=V(),f=null!=ee(),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:a},..."menu"===c&&f&&{role:"menuitem"},..."select"===i&&{"aria-autocomplete":"none"},..."combobox"===i&&{"aria-autocomplete":"list"}},[c,u,f,r,a,i]),d=o.useMemo(()=>{let e={id:u,...c&&{role:c}};return"tooltip"===c||"label"===i?e:{...e,..."menu"===c&&{"aria-labelledby":a}}},[c,u,a,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])}let tr=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function tu(e,t){return"function"==typeof e?e(t):e}function to(e,t){void 0===t&&(t={});let{open:n,elements:{floating:r}}=e,{duration:u=250}=t,l=("number"==typeof u?u:u.close)||0,[i,c]=o.useState("unmounted"),a=function(e,t){let[n,r]=o.useState(e);return e&&!n&&r(!0),o.useEffect(()=>{if(!e&&n){let e=setTimeout(()=>r(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,l);return a||"close"!==i||c("unmounted"),O(()=>{if(r){if(n){c("initial");let e=requestAnimationFrame(()=>{c("open")});return()=>{cancelAnimationFrame(e)}}c("close")}},[n,r]),{isMounted:a,status:i}}function tl(e,t){void 0===t&&(t={});let{initial:n={opacity:0},open:r,close:u,common:l,duration:i=250}=t,c=e.placement,a=c.split("-")[0],f=o.useMemo(()=>({side:a,placement:c}),[a,c]),s="number"==typeof i,d=(s?i:i.open)||0,v=(s?i:i.close)||0,[m,p]=o.useState(()=>({...tu(l,f),...tu(n,f)})),{isMounted:g,status:h}=to(e,{duration:i}),y=el(n),E=el(r),b=el(u),x=el(l);return O(()=>{let e=tu(y.current,f),t=tu(b.current,f),n=tu(x.current,f),r=tu(E.current,f)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===h&&p(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===h&&p({transitionProperty:Object.keys(r).map(tr).join(","),transitionDuration:d+"ms",...n,...r}),"close"===h){let r=t||e;p({transitionProperty:Object.keys(r).map(tr).join(","),transitionDuration:v+"ms",...n,...r})}},[v,b,y,E,x,d,h,f]),{isMounted:g,styles:m}}function ti(e,t){var n;let{open:r,dataRef:u}=e,{listRef:i,activeIndex:c,onMatch:a,onTypingChange:f,enabled:s=!0,findMatch:d=null,resetMs:v=750,ignoreKeys:m=[],selectedIndex:p=null}=t,h=o.useRef(),y=o.useRef(""),E=o.useRef(null!=(n=null!=p?p:c)?n:-1),b=o.useRef(null),x=g(a),w=g(f),R=el(d),k=el(m);O(()=>{r&&(clearTimeout(h.current),b.current=null,y.current="")},[r]),O(()=>{if(r&&""===y.current){var e;E.current=null!=(e=null!=p?p:c)?e:-1}},[r,p,c]);let M=g(e=>{e?u.current.typing||(u.current.typing=e,w(e)):u.current.typing&&(u.current.typing=e,w(e))}),C=g(e=>{function t(e,t,n){let r=R.current?R.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||k.current.includes(e.ke
1y)||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?(x(o),b.current=o):" "!==e.key&&(y.current="",M(!1))}),I=o.useMemo(()=>({onKeyDown:C}),[C]),T=o.useMemo(()=>({onKeyDown:C,onKeyUp(e){" "===e.key&&M(!1)}}),[C,M]);return o.useMemo(()=>s?{reference:I,floating:T}:{},[s,I,T])}function tc(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let ta=e=>({name:"inner",options:e,async fn(t){let{listRef:n,overflowRef:r,onFallbackChange:u,offset:o=0,index:l=0,minItemsVisible:c=4,referenceOverflowThreshold:a=0,scrollRef:v,...m}=(0,i.ku)(e,t),{rects:p,elements:{floating:g}}=t,h=n.current[l];if(!h)return{};let y={...t,...await (0,s.cv)(-h.offsetTop-g.clientTop-p.reference.height/2-h.offsetHeight/2-o).fn(t)},E=(null==v?void 0:v.current)||g,b=await (0,d.US)(tc(y,E.scrollHeight),m),x=await (0,d.US)(y,{...m,elementContext:"reference"}),w=Math.max(0,b.top),R=y.y+w,k=Math.max(0,E.scrollHeight-w-Math.max(0,b.bottom));return E.style.maxHeight=k+"px",E.scrollTop=w,u&&(E.offsetHeight<h.offsetHeight*Math.min(c,n.current.length-1)-1||x.top>=-a||x.bottom>=-a?f.flushSync(()=>u(!0)):f.flushSync(()=>u(!1))),r&&(r.current=await (0,d.US)(tc({...y,y:R},E.offsetHeight),m)),{y:R}}});function tf(e,t){let{open:n,elements:r}=e,{enabled:u=!0,overflowRef:i,scrollRef:c,onChange:a}=t,s=g(a),d=o.useRef(!1),v=o.useRef(null),m=o.useRef(null);o.useEffect(()=>{if(!u)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;let n=e.deltaY,r=i.current.top>=-.5,u=i.current.bottom>=-.5,o=t.scrollHeight-t.clientHeight,c=n<0?-1:1,a=n<0?"max":"min";!(t.scrollHeight<=t.clientHeight)&&(!r&&n>0||!u&&n<0?(e.preventDefault(),f.flushSync(()=>{s(e=>e+Math[a](n,o*c))})):/firefox/i.test((0,l.ij)())&&(t.scrollTop+=n))}let t=(null==c?void 0:c.current)||r.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{v.current=t.scrollTop,null!=i.current&&(m.current={...i.current})}),()=>{v.current=null,m.current=null,t.removeEventListener("wheel",e)}},[u,n,r.floating,i,c,s]);let p=o.useMemo(()=>({onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){let e=(null==c?void 0:c.current)||r.floating;if(i.current&&e&&d.current){if(null!==v.current){let t=e.scrollTop-v.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&f.flushSync(()=>s(e=>e+t))}requestAnimationFrame(()=>{v.current=e.scrollTop})}}}),[r.floating,s,i,c]);return o.useMemo(()=>u?{floating:p}:{},[u,p])}function ts(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,a]=t[l]||[0,0];i>=r!=a>=r&&n<=(c-o)*(r-i)/(a-i)+o&&(u=!u)}return u}function td(e){let t;void 0===e&&(e={});let{buffer:n=.5,blockPointerEvents:r=!1,requireIntent:u=!0}=e,o=!1,i=null,a=null,f=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],x=(0,l.U9)(e),w="mouseleave"===e.type,R=(0,l.r3)(v.floating,x),k=(0,l.r3)(v.domReference,x),M=v.domReference.getBoundingClientRect(),C=v.floating.getBoundingClientRect(),I=d.split("-")[0],T=r>C.right-C.width/2,L=s>C.bottom-C.height/2,P=b[0]>=M.x&&b[0]<=M.x+M.width&&b[1]>=M.y&&b[1]<=M.y+M.height,A=C.width>M.width,S=C.height>M.height,O=(A?M:C).left,D=(A?M:C).right,K=(S?M:C).top,F=(S?M:C).bottom;if(R&&(o=!0,!w))return;if(k&&(o=!1),k&&!w){o=!0;return}if(w&&(0,c.kK)(e.relatedTarget)&&(0,l.r3)(v.floating,e.relatedTarget)||g&&ep(g.nodesRef.current,p).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===I&&s>=M.bottom-1||"bottom"===I&&s<=M.top+1||"left"===I&&r>=M.right-1||"right"===I&&r<=M.left+1)return h();let N=[];switch(I){case"top":N=[[O,M.top+1],[O,C.bottom-1],[D,C.bottom-1],[D,M.top+1]];break;case"bottom":N=[[O,C.top+1],[O,M.bottom-1],[D,M.bottom-1],[D,C.top+1]];break;case"left":N=[[C.right-1,F],[C.right-1,K],[M.left+1,K],[M.left+1,F]];break;case"right":N=[[M.right-1,F],[M.right-1,K],[C.left+1,K],[C.left+1,F]]}if(!ts([y,E],N)){if(o&&!P)return h();if(!w&&u){let t=function(e,t){let n=performance.now(),r=n-f;if(null===i||null===a||0===r)return i=e,a=t,f=n,null;let u=e-i,o=t-a;return i=e,a=t,f=n,Math.sqrt(u*u+o*o)/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}ts([y,E],function(e){let[t,r]=e;switch(I){case"top":{let e=[[C.left,T?C.bottom-n:A?C.bottom-n:C.top],[C.right,T?A?C.bottom-n:C.top:C.bottom-n]];return[[A?t+n/2:T?t+4*n:t-4*n,r+n+1],[A?t-n/2:T?t+4*n:t-4*n,r+n+1],...e]}case"bottom":{let e=[[C.left,T?C.top+n:A?C.top+n:C.bottom],[C.right,T?A?C.top+n:C.bottom:C.top+n]];return[[A?t+n/2:T?t+4*n:t-4*n,r-n],[A?t-n/2:T?t+4*n:t-4*n,r-n],...e]}case"left":return[[L?C.right-n:S?C.right-n:C.left,C.top],[L?S?C.right-n:C.left:C.right-n,C.bottom],[t+n+1,S?r+n/2:L?r+4*n:r-4*n],[t+n+1,S?r-n/2:L?r+4*n:r-4*n]];case"right":{let e=[[L?C.left+n:S?C.left+n:C.right,C.top],[L?S?C.left+n:C.right:C.left+n,C.bottom]];return[[t-n,S?r+n/2:L?r+4*n:r-4*n],[t-n,S?r-n/2:L?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.