PageSourceSearch

https://www.grupo.host/assets/useTriggerFocusGuards-Rdct5zPo.js

js grupo.host collected 2026-10-03 00:27:36 UTC 46,112 bytes, 1 lines download raw bytes

1import{D as e,S as t}from"./reactQuery-Bwgpc3BK.js";import{t as n}from"./react-dom-C1C5Ujjy.js";import{C as r,D as i,E as a,F as o,N as s,O as c,P as l,S as u,T as d,_ as f,b as p,d as m,h,i as g,j as _,k as v,m as y,p as b,t as x,v as S,w as C,x as w,y as T}from"./useRenderElement-YvmFQZQL.js";import{i as E}from"./CompositeList-wl2yuOhJ.js";import{$ as D,G as O,H as k,I as A,J as j,L as M,T as N,X as P,Y as ee,Z as te,a as F,at as ne,d as re,dt as I,et as L,it as R,nt as ie,ot as ae,q as z,rt as B,t as oe,tt as V,ut as H}from"./useScrollLock-BFZLOA1Z.js";import{$ as se,A as U,B as ce,C as le,D as W,E as ue,F as de,G as fe,H as pe,Ht as me,I as G,J as he,K as ge,L as K,M as _e,Mt as ve,N as ye,O as be,P as xe,R as q,Rt as J,T as Y,Tt as Se,U as Ce,V as we,Vt as Te,W as X,Y as Ee,_t as De,g as Oe,j as ke,k as Ae,nt as je,q as Me,rt as Ne,st as Pe,tt as Fe,v as Ie,vt as Le,w as Re,x as ze,y as Be,yt as Z,z as Ve,zt as He}from"./composite-CMKYcwub.js";var Ue=e(n(),1),Q=e(t(),1);function We(e,t){let n=Q.useRef(e),r=y(t);b(()=>{n.current!==e&&r(n.current)},[e,r]),b(()=>{n.current=e},[e])}function Ge(e,t){return t!=null&&!se(t)?0:typeof e==`function`?e():e}function Ke(e,t,n){let r=Ge(e,n);return typeof r==`number`?r:r?.[t]}function qe(e){return typeof e==`function`?e():e}function Je(e,t){return t||e===`click`||e===`mousedown`}function Ye(e){return e?.includes(`mouse`)&&e!==`mousedown`}function Xe(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=He}=t,l=`rootStore`in e?e.rootStore:e,u=l.context.dataRef,d=Q.useRef(void 0),f=De(),p=I(),m=Q.useMemo(()=>{function e(e,t,n,r){let i=Z(c,t,n);e&&r===`touch`&&s>0?p.start(s,()=>{l.setOpen(!0,i)}):l.setOpen(e,i)}function t(e,t,n){let r=u.current.openEvent,a=l.select(`domReferenceElement`)!==t;return e&&a||!e||!i?!0:r&&o?!n(r.type):!1}return{onPointerDown(e){d.current=e.pointerType},onMouseDown(n){let i=d.current,o=n.nativeEvent,s=l.select(`open`);if(n.button!==0||r===`click`||se(i,!0)&&a)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),u=fe(o);if(ae(u)){e(c,o,u,i);return}let p=n.currentTarget;f.request(()=>{e(c,o,p,i)})},onClick(n){if(r===`mousedown-only`)return;let i=d.current;if(r===`mousedown`&&i){d.current=void 0;return}se(i,!0)&&a||e(t(l.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){d.current=void 0}}},[u,r,a,c,l,o,i,f,p,s]);return Q.useMemo(()=>n?{reference:m}:g,[n,m])}function Ze(e,t,n){let{reference:r,floating:i}=e,a=K(t),o=be(t),s=U(o),c=G(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(W(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function Qe(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Y(t,e),p=de(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ce(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ce(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var $e=50,et=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Qe},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}
vendor: 5,854 bytes, line 1
1),{x:u,y:d}=Ze(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<$e&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Ze(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},tt=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Y(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=G(r),_=K(o),v=G(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[xe(o)]:ke(o)),x=p!==`none`;!d&&x&&b.push(...ye(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ae(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==K(t))||T.every(e=>K(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=K(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function nt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rt(e){return pe.some(t=>e[t]>=0)}var it=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Y(e,t);switch(i){case`referenceHidden`:{let e=nt(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:rt(e)}}}case`escaped`:{let e=nt(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:rt(e)}}}default:return{}}}}},at=new Set([`left`,`top`]);async function ot(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=G(n),s=W(n),c=K(n)===`y`,l=at.has(o)?-1:1,u=a&&c?-1:1,d=Y(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var st=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await ot(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ct=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Y(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=K(G(i)),p=_e(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=le(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=le(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},lt=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Y(e,t),u={x:n,y:r},d=K(i),f=_e(d),p=u[f],m=u[d],h=Y(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=at.has(G(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ut=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Y(e,t),u=await o.detectOverflow(t,l),d=G(i),f=W(i),p=K(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Ve(h-u[g],v),x=Ve(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=q(u.left,0),t=q(u.right,0),n=q(u.top,0),r=q(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:q(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:q(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function dt(e){let t=f(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=c(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=we(n)!==a||we(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ft(e){return i(e)?e:e.contextElement}function pt(e){let t=ft(e);if(!c(t))return Re(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=dt(t),o=(a?we(n.width):n.width)/r,s=(a?we(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var mt=Re(0);function ht(e){let t=d(e);
vendor: 5,696 bytes, line 1
1return!o()||!t.visualViewport?mt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gt(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==d(e)?!1:t}function _t(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let a=e.getBoundingClientRect(),o=ft(e),s=Re(1);t&&(r?i(r)&&(s=pt(r)):s=pt(e));let c=gt(o,n,r)?ht(o):Re(0),l=(a.left+c.x)/s.x,u=(a.top+c.y)/s.y,m=a.width/s.x,h=a.height/s.y;if(o){let e=d(o),t=r&&i(r)?d(r):r,n=e,a=p(n);for(;a&&r&&t!==n;){let e=pt(a),t=a.getBoundingClientRect(),r=f(a),i=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,m*=e.x,h*=e.y,l+=i,u+=o,n=d(a),a=p(n)}}return ce({width:m,height:h,x:l,y:u})}function vt(e,t){let n=u(e).scrollLeft;return t?t.left+n:_t(T(e)).left+n}function yt(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-vt(e,n),y:n.top+t.scrollTop}}function bt(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=T(r),s=t?l(t.floating):!1;if(r===o||s&&a)return n;let d={scrollLeft:0,scrollTop:0},f=Re(1),p=Re(0),m=c(r);if((m||!m&&!a)&&((w(r)!==`body`||_(o))&&(d=u(r)),m)){let e=_t(r);f=pt(r),p.x=e.x+r.clientLeft,p.y=e.y+r.clientTop}let h=o&&!m&&!a?yt(o,d):Re(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+p.x+h.x,y:n.y*f.y-d.scrollTop*f.y+p.y+h.y}}function xt(e){return Array.from(e.getClientRects())}function St(e){let t=T(e),n=u(e),r=e.ownerDocument.body,i=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+vt(e),s=-n.scrollTop;return f(r).direction===`rtl`&&(o+=q(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Ct=25;function wt(e,t){let n=d(e),r=T(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,c=0,l=0;if(i){a=i.width,s=i.height;let e=o();(!e||e&&t===`fixed`)&&(c=i.offsetLeft,l=i.offsetTop)}let u=vt(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Ct&&(a-=o)}else u<=Ct&&(a+=u);return{width:a,height:s,x:c,y:l}}function Tt(e,t){let n=_t(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=c(e)?pt(e):Re(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Et(e,t,n){let r;if(t===`viewport`)r=wt(e,n);else if(t===`document`)r=St(T(e));else if(i(t))r=Tt(t,n);else{let n=ht(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ce(r)}function Dt(e,t){let n=C(e);return n===t||!i(n)||v(n)?!1:f(n).position===`fixed`||Dt(n,t)}function Ot(e,t){let n=t.get(e);if(n)return n;let o=r(e,[],!1).filter(e=>i(e)&&w(e)!==`body`),s=null,c=f(e).position===`fixed`,l=c?C(e):e;for(;i(l)&&!v(l);){let t=f(l),n=a(l);!n&&t.position===`fixed`&&(s=null),(c?!n&&!s:!n&&t.position===`static`&&s&&(s.position===`absolute`||s.position===`fixed`)||_(l)&&!n&&Dt(e,l))?o=o.filter(e=>e!==l):s=t,l=C(l)}return t.set(e,o),o}function kt(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?l(t)?[]:Ot(t,this._c):[].concat(n),r],o=Et(t,a[0],i),s=o.top,c=o.right,u=o.bottom,d=o.left;for(let e=1;e<a.length;e++){let n=Et(t,a[e],i);s=q(n.top,s),c=Ve(n.right,c),u=Ve(n.bottom,u),d=q(n.left,d)}return{width:c-d,height:u-s,x:d,y:s}}function At(e){let{width:t,height:n}=dt(e);return{width:t,height:n}}function jt(e,t,n){let r=c(t),i=T(t),a=n===`fixed`,o=_t(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=Re(0);function d(){l.x=vt(i)}if(r||!r&&!a)if((w(t)!==`body`||_(i))&&(s=u(t)),r){let e=_t(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&d();a&&!r&&i&&d();let f=i&&!r&&!a?yt(i,s):Re(0);return{x:o.left+s.scrollLeft-l.x-f.x,y:o.top+s.scrollTop-l.y-f.y,width:o.width,height:o.height}}function Mt(e){return f(e).position===`static`}function Nt(e,t){if(!c(e)||f(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return T(e)===n&&(n=n.ownerDocument.body),n}function Pt(e,t){let n=d(e);if(l(e))return n;if(!c(e)){let t=C(e);for(;t&&!v(t);){if(i(t)&&!Mt(t))return t;t=C(t)}return n}let r=Nt(e,t);for(;r&&s(r)&&Mt(r);)r=Nt(r,t);return r&&v(r)&&Mt(r)&&!a(r)?n:r||S(e)||n}var Ft=async function(e){let t=this.getOffsetParent||Pt,n=this.getDimensions,r=await n(e.floating);return{reference:jt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function It(e){return f(e).direction===`rtl`}var Lt={convertOffsetParentRelativeRectToViewportRelativeRect:bt,getDocumentElement:T,getClippingRect:kt,getOffsetParent:Pt,getElementRects:Ft,getClientRects:xt,getDimensions:At,getScale:pt,isElement:i,isRTL:It};function Rt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function zt(e,t){let n=null,r,i=T(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=ue(d),h=ue(i.clientWidth-(u+f)),g=ue(i.clientHeight-(d+p)),_=ue(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:q(0,Ve(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Rt(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Bt(e,t,n,i){i===void 0&&(i={});let{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver==`function`,layoutShift:c=typeof IntersectionObserver==`function`,animationFrame:l=!1}=i,u=ft(e),d=a||o?[...u?r(u):[],...t?r(t):[]]:[];
vendor: 2,032 bytes, line 1
1d.forEach(e=>{a&&e.addEventListener(`scroll`,n,{passive:!0}),o&&e.addEventListener(`resize`,n)});let f=u&&c?zt(u,n):null,p=-1,m=null;s&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;(e=m)==null||e.observe(t)})),n()}),u&&!l&&m.observe(u),t&&m.observe(t));let h,g=l?_t(e):null;l&&_();function _(){let t=_t(e);g&&!Rt(g,t)&&n(),g=t,h=requestAnimationFrame(_)}return n(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener(`scroll`,n),o&&e.removeEventListener(`resize`,n)}),f?.(),(e=m)==null||e.disconnect(),m=null,l&&cancelAnimationFrame(h)}}var Vt=st,Ht=ct,Ut=tt,Wt=ut,Gt=it,Kt=lt,qt=(e,t,n)=>{let r=new Map,i={platform:Lt,...n},a={...i.platform,_c:r};return et(e,t,{...i,platform:a})},Jt=typeof document<`u`?Q.useLayoutEffect:function(){};function Yt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Yt(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Yt(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Xt(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zt(e,t){let n=Xt(e);return Math.round(t*n)/n}function Qt(e){let t=Q.useRef(e);return Jt(()=>{t.current=e}),t}function $t(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=Q.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Q.useState(r);Yt(f,r)||p(r);let[m,h]=Q.useState(null),[g,_]=Q.useState(null),v=Q.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=Q.useCallback(e=>{e!==C.current&&(C.current=e,_(e))}
1,[]),b=a||m,x=o||g,S=Q.useRef(null),C=Q.useRef(null),w=Q.useRef(u),T=c!=null,E=Qt(c),D=Qt(i),O=Qt(l),k=Q.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),qt(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Yt(w.current,t)&&(w.current=t,Ue.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Jt(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=Q.useRef(!1);Jt(()=>(A.current=!0,()=>{A.current=!1}),[]),Jt(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=Q.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=Q.useMemo(()=>({reference:b,floating:x}),[b,x]),N=Q.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Zt(M.floating,u.x),r=Zt(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Xt(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return Q.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var en=(e,t)=>{let n=Vt(e);return{name:n.name,fn:n.fn,options:[e,t]}},tn=(e,t)=>{let n=Ht(e);return{name:n.name,fn:n.fn,options:[e,t]}},nn=(e,t)=>({fn:Kt(e).fn,options:[e,t]}),rn=(e,t)=>{let n=Ut(e);return{name:n.name,fn:n.fn,options:[e,t]}},an=(e,t)=>{let n=Wt(e);return{name:n.name,fn:n.fn,options:[e,t]}},on=(e,t)=>{let n=Gt(e);return{name:n.name,fn:n.fn,options:[e,t]}};function sn(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,a=Te(),o=A()!=null,s=h(()=>new N({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new re,floatingId:a,syncOnly:!1,nested:o})).current;return b(()=>{let e={open:t,floatingId:a};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=i(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),s.update(e)},[t,a,r.reference,r.floating,s]),s.context.onOpenChange=n,s.context.nested=o,s}function cn(e={}){let{nodeId:t,externalTree:n}=e,r=sn(e),a=e.rootContext||r,o=a.useState(`referenceElement`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),l=a.useState(`open`),u=a.useState(`floatingId`),[d,f]=Q.useState(null),[p,m]=Q.useState(void 0),[h,g]=Q.useState(void 0),_=Q.useRef(null),v=M(n),y=Q.useMemo(()=>({reference:o,floating:s,domReference:c}),[o,s,c]),x=$t({...e,elements:{...y,...d&&{reference:d}}}),S=i(p)?p:null,C=h===void 0?a.state.floatingElement:h;a.useSyncedValue(`referenceElement`,p??null),a.useSyncedValue(`domReferenceElement`,p===void 0?c:S),a.useSyncedValue(`floatingElement`,C);let w=Q.useCallback(e=>{let t=i(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;f(t),x.refs.setReference(t)},[x.refs]),T=Q.useCallback(e=>{(i(e)||e===null)&&(_.current=e,m(e)),(i(x.refs.reference.current)||x.refs.reference.current===null||e!==null&&!i(e))&&x.refs.setReference(e)},[x.refs,m]),E=Q.useCallback(e=>{g(e),x.refs.setFloating(e)},[x.refs]),D=Q.useMemo(()=>({...x.refs,setReference:T,setFloating:E,setPositionReference:w,domReference:_}),[x.refs,T,E,w]),O=Q.useMemo(()=>({...x.elements,domReference:c}),[x.elements,c]),k=Q.useMemo(()=>({...x,dataRef:a.context.dataRef,open:l,onOpenChange:a.setOpen,events:a.context.events,floatingId:u,refs:D,elements:O,nodeId:t,rootStore:a}),[x,D,O,t,a,l,u]);return b(()=>{c&&(_.current=c)},[c]),b(()=>{a.context.dataRef.current.floatingContext=k;let e=v?.nodesRef.current.find(e=>e.id===t);e&&(e.context=k)}),Q.useMemo(()=>({...x,context:k,refs:D,elements:O,rootStore:a}),[x,D,O,k,a])}var ln=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new H,this.restTimeout=new H,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},un=new WeakMap;function dn(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&un.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),un.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function fn(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=un.get(n);a&&a!==e&&dn(a),dn(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,un.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function pn(e){let t=e.context.dataRef.current,n=h(()=>t.hoverInteractionState??ln.create()).current;return t.hoverInteractionState||=n,Le(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function mn(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:a}
1=t,o=`rootStore`in e?e.rootStore:e,s=o.useState(`open`),c=o.useState(`floatingElement`),l=o.useState(`domReferenceElement`),{dataRef:u}=o.context,d=M(),f=A(),p=pn(o),m=I(),h=y(()=>Je(u.current.openEvent?.type,p.interactedInside)),g=y(()=>Ye(u.current.openEvent?.type)),_=y(()=>{dn(p)});b(()=>{s||(p.pointerType=void 0,p.restTimeoutPending=!1,p.interactedInside=!1,_())},[s,p,_]),Q.useEffect(()=>_,[_]),b(()=>{if(n&&s&&p.handleCloseOptions?.blockPointerEvents&&g()&&i(l)&&c){let e=l,t=c,n=me(c),r=d?.nodesRef.current.find(e=>e.id===f)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=p.pointerEventsScopeElement===t?null:p.pointerEventsScopeElement,a=r===t?null:r,o=p.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return fn(p,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{_()}}},[n,s,l,c,p,g,d,f,_]),Q.useEffect(()=>{if(!n)return;function e(){return!!(d&&f&&z(d.nodesRef.current,f).length>0)}function t(e){let t=Ke(r,`close`,p.pointerType),n=()=>{o.setOpen(!1,Z(J,e)),d?.events.emit(`floating.closed`,e)};t?p.openChangeTimeout.start(t,n):(p.openChangeTimeout.clear(),n())}function s(e){let t=fe(e);if(!B(t)){p.interactedInside=!1;return}p.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function l(){p.openChangeTimeout.clear(),m.clear(),d?.events.off(`floating.closed`,y),_()}function v(n){if(e()&&d){d.events.on(`floating.closed`,y);return}if(R(n.relatedTarget,o.context.triggerElements))return;let r=u.current.floatingContext?.nodeId??a,s=n.relatedTarget;if(!(d&&r&&i(s)&&z(d.nodesRef.current,r,!1).some(e=>X(e.context?.elements.floating,s)))){if(p.handler){p.handler(n);return}_(),g()&&!h()&&t(n)}}function y(t){!d||!f||e()||m.start(0,()=>{d.events.off(`floating.closed`,y),o.setOpen(!1,Z(J,t)),d.events.emit(`floating.closed`,t)})}let b=c;return L(b&&V(b,`mouseenter`,l),b&&V(b,`mouseleave`,v),b&&V(b,`pointerdown`,s,!0),()=>{d?.events.off(`floating.closed`,y)})},[n,c,o,u,r,a,g,h,_,p,d,f,m])}var hn={current:null};function gn(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:a=null,mouseOnly:o=!1,restMs:s=0,move:c=!0,triggerElementRef:l=hn,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:f,isClosing:p,shouldOpen:m}=t,h=`rootStore`in e?e.rootStore:e,{dataRef:g,events:_}=h.context,v=M(u),b=pn(h),x=Q.useRef(!1),S=D(a),C=D(r),w=D(s),T=D(n),E=D(m),O=D(p),k=y(()=>Je(g.current.openEvent?.type,b.interactedInside)),A=y(()=>E.current?.()!==!1),j=y((e,t,n)=>{let r=h.context.triggerElements;if(r.hasElement(t))return!e||!X(e,t);if(!i(n))return!1;let a=n;return r.hasMatchingElement(e=>X(e,a))&&(!e||!X(e,a))}),N=y(()=>{b.handler&&=(me(h.select(`domReferenceElement`)).removeEventListener(`mousemove`,b.handler),void 0)}),P=y(()=>{dn(b)});return d&&(b.handleCloseOptions=S.current?.__options),Q.useEffect(()=>N,[N]),Q.useEffect(()=>{if(!n)return;function e(e){e.open?x.current=!1:(x.current=e.reason===J,N(),b.openChangeTimeout.clear(),b.restTimeout.clear(),b.blockMouseMove=!0,b.restTimeoutPending=!1)}return _.on(`openchange`,e),()=>{_.off(`openchange`,e)}},[n,_,b,N]),Q.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=Ke(C.current,`close`,b.pointerType);n?b.openChangeTimeout.start(n,()=>{h.setOpen(!1,Z(J,e)),v?.events.emit(`floating.closed`,e)}):t&&(b.openChangeTimeout.clear(),h.setOpen(!1,Z(J,e)),v?.events.emit(`floating.closed`,e))}let t=l.current??(d?h.select(`domReferenceElement`):null);if(!i(t))return;function r(e){if(b.openChangeTimeout.clear(),b.blockMouseMove=!1,o&&!se(b.pointerType))return;let t=qe(w.current),n=Ke(C.current,`open`,b.pointerType),r=fe(e),a=e.currentTarget??null,s=h.select(`domReferenceElement`),c=a;if(i(r)&&!h.context.triggerElements.hasElement(r)){for(let e of h.context.triggerElements.elements())if(X(e,r)){c=e;break}}i(a)&&i(s)&&!h.context.triggerElements.hasElement(a)&&X(a,s)&&(c=s);let l=c!=null&&j(s,c,r),u=h.select(`open`),d=O.current?.()??h.select(`transitionStatus`)===`ending`,f=!u&&d&&x.current,p=!l&&i(c)&&i(s)&&X(s,c)&&f,m=t>0&&!n,g=l&&(u||f)||p,_=!u||l;if(g){A()&&h.setOpen(!0,Z(J,e,c));return}m||(n?b.openChangeTimeout.start(n,()=>{_&&A()&&h.setOpen(!0,Z(J,e,c))}):_&&A()&&h.setOpen(!0,Z(J,e,c)))}function a(t){if(k()){P();return}N();let n=me(h.select(`domReferenceElement`));b.restTimeout.clear(),b.restTimeoutPending=!1;let r=g.current.floatingContext??f?.();if(!R(t.relatedTarget,h.context.triggerElements)){if(S.current&&r){h.select(`open`)||b.openChangeTimeout.clear();let i=l.current;b.handler=S.current({...r,tree:v,x:t.clientX,y:t.clientY,onClose(){P(),N(),T.current&&!k()&&i===h.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,b.handler),b.handler(t);return}(b.pointerType!==`touch`||!X(h.select(`floatingElement`),t.relatedTarget))&&e(t)}}return c?L(V(t,`mousemove`,r,{once:!0}),V(t,`mouseenter`,r),V(t,`mouseleave`,a)):L(V(t,`mouseenter`,r),V(t,`mouseleave`,a))},[N,P,g,C,h,n,S,b,d,j,k,o,c,w,l,v,T,f,O,A]),Q.useMemo(()=>
1{if(!n)return;function e(e){b.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=h.select(`domReferenceElement`),i=h.select(`open`),a=j(r,n,e.target);if(o&&!se(b.pointerType))return;if(i&&a&&b.handleCloseOptions?.blockPointerEvents){let e=h.select(`floatingElement`);if(e){let t=b.handleCloseOptions?.getScope?.()??n.ownerDocument.body;fn(b,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=qe(w.current);if(i&&!a||s===0||!a&&b.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;b.restTimeout.clear();function c(){if(b.restTimeoutPending=!1,k())return;let e=h.select(`open`);!b.blockMouseMove&&(!e||a)&&A()&&h.setOpen(!0,Z(J,t,n))}b.pointerType===`touch`?Ue.flushSync(()=>{c()}):a&&i?c():(b.restTimeoutPending=!0,b.restTimeout.start(s,c))}}},[n,b,k,j,o,h,w,A])}var _n=`Escape`;function vn(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function yn(e,t){return vn(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function bn(e,t,n){return vn(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function xn(e,t,n){return vn(t,n?e===Me:e===he,e===ge)}function Sn(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===_n:vn(t,n?e===he:e===Me,e===Ee)}function Cn(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:l=!1,nested:u=!1,rtl:d=!1,virtual:f=!1,focusItemOnOpen:p=`auto`,focusItemOnHover:m=!0,openOnArrowKeyDown:h=!0,disabledIndices:g=void 0,orientation:_=`vertical`,parentOrientation:v,id:x,resetOnPointerLeave:S=!0,externalTree:C,grid:w}=t,T=w!=null,E=`rootStore`in e?e.rootStore:e,k=E.useState(`open`),j=E.useState(`floatingElement`),N=E.useState(`domReferenceElement`),P=E.context.dataRef,ee=ie(j),te=ne(N),F=D(ee),re=A(),I=M(C),L=Q.useRef(p),R=Q.useRef(o??-1),ae=Q.useRef(null),z=Q.useRef(!0),B=y(e=>{i(R.current===-1?null:R.current,e)}),oe=Q.useRef(!!j),V=Q.useRef(k),H=Q.useRef(!1),se=Q.useRef(!1),U=Q.useRef(null),ce=D(g),le=D(k),W=D(o),ue=D(S),de=De(),pe=De(),G=y(()=>{function e(e){f?I?.events.emit(`virtualfocus`,e):U.current=O(e,{sync:H.current,preventScroll:!0})}let t=n.current[R.current],r=se.current;t&&e(t),(H.current?e=>e():e=>de.request(e))(()=>{let i=n.current[R.current]||t;i&&(t||e(i),be&&(r||!z.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});b(()=>{P.current.orientation=_},[P,_]),b(()=>{a&&(k&&j?(R.current=o??-1,L.current&&o!=null&&(se.current=!0,B())):oe.current&&(R.current=-1,B()))},[a,k,j,o,B]),b(()=>{if(a){if(!k){H.current=!1;return}if(j)if(r==null){if(H.current=!1,W.current!=null)return;if(oe.current&&(R.current=-1,G()),(!V.current||!oe.current)&&L.current&&(ae.current!=null||L.current===!0&&ae.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>pe.request(e):queueMicrotask)(t),e+=1):(R.current=ae.current==null||bn(ae.current,_,d)||u?Be(n):Ie(n),ae.current=null,B())};t()}}else ze(n.current,r)||(R.current=r,G(),se.current=!1)}},[a,k,j,r,W,u,n,_,d,B,G,pe]),b(()=>{if(!a||j||!I||f||!oe.current)return;let e=I.nodesRef.current,t=e.find(e=>e.id===re)?.context?.elements.floating,n=Ce(me(N??t??null)),r=e.some(e=>e.context&&X(e.context.elements.floating,n));t&&!r&&z.current&&t.focus({preventScroll:!0})},[a,j,N,I,re,f]),b(()=>{V.current=k,oe.current=!!j}),b(()=>{k||(ae.current=null,L.current=p)},[k,p]);let he=r!=null,ge=y(e=>{if(!le.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(R.current!==t||r!==t)&&(R.current=t,B(e))}),K=y(()=>v??I?.nodesRef.current.find(e=>e.id===re)?.context?.dataRef?.current.orientation),_e=y(()=>Be(n,ce.current)),ye=y(e=>{if(z.current=!1,H.current=!0,e.which===229||!le.current&&e.currentTarget===F.current)return;if(u&&Sn(e.key,_,d,T)){yn(e.key,K())||Ne(e),E.setOpen(!1,Z(ve,e.nativeEvent)),c(N)&&(f?I?.events.emit(`virtualfocus`,N):N.focus());return}let t=R.current,r=Be(n,g),i=Ie(n,g);if(te||(e.key===`Home`&&(Ne(e),R.current=r,B(e)),e.key===`End`&&(Ne(e),R.current=i,B(e))),w!=null){let t=w(e,R.current,n,_,l,d,g,r,i);if(t!=null&&(R.current=t,B(e)),_===`both`)return}if(yn(e.key,_)){if(Ne(e),k&&!f&&Ce(e.currentTarget.ownerDocument)===e.currentTarget){R.current=bn(e.key,_,d)?r:i,B(e);return}bn(e.key,_,d)?l?t>=i?s&&t!==n.current.length?R.current=-1:(H.current=!1,R.current=r):R.current=Oe(n.current,{startingIndex:t,disabledIndices:g}):R.current=Math.min(i,Oe(n.current,{startingIndex:t,disabledIndices:g})):l?t<=r?s&&t!==-1?R.current=n.current.length:(H.current=!1,R.current=i):R.current=Oe(n.current,{startingIndex:t,decrement:!0,disabledIndices:g}):R.current=Math.max(r,Oe(n.current,{startingIndex:t,decrement:!0,disabledIndices:g}
1)),ze(n.current,R.current)&&(R.current=-1),B(e)}}),be=Q.useMemo(()=>({onFocus(e){H.current=!0,ge(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){H.current=!0,se.current=!1,m&&ge(e)},onPointerLeave(e){if(!le.current||!z.current||e.pointerType===`touch`)return;H.current=!0;let t=e.relatedTarget;if(!(!m||n.current.includes(t))&&ue.current&&(U.current?.(),U.current=null,R.current=-1,B(e),!f)){let e=F.current,t=Ce(me(e));e&&X(e,t)&&e.focus({preventScroll:!0})}}}),[ge,le,F,m,n,B,ue,f]),xe=Q.useMemo(()=>f&&k&&he&&{"aria-activedescendant":`${x}-${r}`},[f,k,he,x,r]),q=Q.useMemo(()=>({"aria-orientation":_===`both`?void 0:_,...te?{}:xe,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&k&&!f){let t=fe(e.nativeEvent);if(t&&!X(F.current,t))return;Ne(e),E.setOpen(!1,Z(Se,e.nativeEvent)),c(N)&&N.focus();return}ye(e)},onPointerMove(){z.current=!0}}),[xe,ye,F,_,te,E,k,f,N]),J=Q.useMemo(()=>{function e(e){E.setOpen(!0,Z(ve,e.nativeEvent,e.currentTarget))}function t(e){p===`auto`&&Fe(e.nativeEvent)&&(L.current=!f)}function n(e){L.current=p,p===`auto`&&je(e.nativeEvent)&&(L.current=!0)}return{onKeyDown(t){let n=E.select(`open`);z.current=!1;let r=t.key.startsWith(`Arrow`),i=xn(t.key,K(),d),a=yn(t.key,_),o=(u?i:a)||t.key===`Enter`||t.key.trim()===``;if(f&&n)return ye(t);if(!(!n&&!h&&r)){if(o){let e=yn(t.key,K());ae.current=u&&e?null:t.key}if(u){i&&(Ne(t),n?(R.current=_e(),B(t)):e(t));return}a&&(W.current!=null&&(R.current=W.current),Ne(t),!n&&h?e(t):ye(t),n&&B(t))}},onFocus(e){E.select(`open`)&&!f&&(R.current=-1,B(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[ye,p,_e,u,B,E,h,_,K,d,W,f]),Y=Q.useMemo(()=>({...xe,...J}),[xe,J]);return Q.useMemo(()=>a?{reference:Y,floating:q,item:be,trigger:J}:{},[a,Y,q,J,be])}var wn=.1,Tn=wn*wn,$=.5;function En(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Dn(e,t,n,r,i,a,o,s,c,l){let u=!1;return En(e,t,n,r,i,a)&&(u=!u),En(e,t,i,a,o,s)&&(u=!u),En(e,t,o,s,c,l)&&(u=!u),En(e,t,c,l,n,r)&&(u=!u),u}function On(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function kn(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function An(e={}){let{blockPointerEvents:t=!1}=e,n=new H,r=({x:e,y:t,placement:r,elements:a,onClose:o,nodeId:s,tree:c})=>{let l=r?.split(`-`)[0],u=!1,d=null,f=null,p=typeof performance<`u`?performance.now():0;function m(e,t){let n=performance.now(),r=n-p;if(d===null||f===null||r===0)return d=e,f=t,p=n,!1;let i=e-d,a=t-f,o=i*i+a*a,s=r*r*Tn;return d=e,f=t,p=n,o<s}function h(){n.clear(),o()}return function(r){n.clear();let o=a.domReference,d=a.floating;if(!o||!d||l==null||e==null||t==null)return;let{clientX:f,clientY:p}=r,g=fe(r),_=r.type===`mouseleave`,v=X(d,g),y=X(o,g);if(v&&(u=!0,!_))return;if(y&&(u=!1,!_)){u=!0;return}if(_&&i(r.relatedTarget)&&X(d,r.relatedTarget))return;function b(){return!!(c&&z(c.nodesRef.current,s).length>0)}function x(){b()||h()}if(b())return;let S=o.getBoundingClientRect(),C=d.getBoundingClientRect(),w=e>C.right-C.width/2,T=t>C.bottom-C.height/2,E=C.width>S.width,D=C.height>S.height,O=(E?S:C).left,k=(E?S:C).right,A=(D?S:C).top,j=(D?S:C).bottom;if(l===`top`&&t>=S.bottom-1||l===`bottom`&&t<=S.top+1||l===`left`&&e>=S.right-1||l===`right`&&e<=S.left+1){x();return}let M=!1;switch(l){case`top`:M=kn(f,p,O,S.top+1,k,C.bottom-1);break;case`bottom`:M=kn(f,p,O,C.top+1,k,S.bottom-1);break;case`left`:M=kn(f,p,C.right-1,j,S.left+1,A);break;case`right`:M=kn(f,p,S.right-1,j,C.left+1,A);break;default:}if(M)return;if(u&&!On(f,p,S)){x();return}if(!_&&m(f,p)){x();return}let N=!1;switch(l){case`top`:{let n=E?$/2:$*4,r=E||w?e+n:e-n,i=E?e-n:w?e+n:e-n,a=t+$+1,o=w||E?C.bottom-$:C.top,s=w?E?C.bottom-$:C.top:C.bottom-$;N=Dn(f,p,r,a,i,a,C.left,o,C.right,s);break}case`bottom`:{let n=E?$/2:$*4,r=E||w?e+n:e-n,i=E?e-n:w?e+n:e-n,a=t-$,o=w||E?C.top+$:C.bottom,s=w?E?C.top+$:C.bottom:C.top+$;N=Dn(f,p,r,a,i,a,C.left,o,C.right,s);break}case`left`:{let n=D?$/2:$*4,r=D||T?t+n:t-n,i=D?t-n:T?t+n:t-n,a=e+$+1,o=T||D?C.right-$:C.left,s=T?D?C.right-$:C.left:C.right-$;N=Dn(f,p,o,C.top,s,C.bottom,a,r,a,i);break}case`right`:{let n=D?$/2:$*4,r=D||T?t+n:t-n,i=D?t-n:T?t+n:t-n,a=e-$,o=T||D?C.left+$:C.right,s=T?D?C.left+$:C.right:C.left+$;N=Dn(f,p,a,r,a,i,o,C.top,s,C.bottom);break}default:}N?u||n.start(40,x):x()}};return r.__options={...e,blockPointerEvents:t},r}var jn=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=Y(e,t)||{};if(l==null)return{};let f=de(u),p={x:n,y:r},m=be(i),h=U(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=le(k,j,A),N=!c.arrow&&W(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,P=N?j<k?j-k:j-A:0;return{[m]:p[m]+P,data:{[m]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),Mn=(e,t)=>({...jn(e),options:[e,t]}),Nn=on().fn,Pn={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await Nn(e)).data?.referenceHidden||a}}}},Fn={sideX:`left`,sideY:`top`},In={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=d(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Fn};let u=await a.getOffsetParent?.(i),f={width:0,height:0};
1if(o===`fixed`&&c?.visualViewport)f={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=me(i);f={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(f=await a.getDimensions(u));let p=G(s),m=t,h=n;p===`left`&&(m=f.width-(t+r.width)),p===`top`&&(h=f.height-(n+r.height));let g=p===`left`?`right`:Fn.sideX,_=p===`top`?`bottom`:Fn.sideY;return{x:m,y:h,data:{sideX:g,sideY:_}}}};function Ln(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function Rn(e,t,n){let{rects:r,placement:i}=e;return{side:Ln(t,G(i),n),align:W(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function zn(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shiftCrossAxis:v=!1,nodeId:x,adaptiveOrigin:S,lazyFlip:C=!1,externalTree:w}=e,[T,O]=Q.useState(null);!g&&T!==null&&O(null);let k=_.side||`flip`,A=_.align||`flip`,j=_.fallbackAxisSide||`end`,M=typeof t==`function`?t:void 0,N=y(M),P=M?N:t,ee=D(t),te=D(g),F=E()===`rtl`,ne=T||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":F?`left`:`right`,"inline-start":F?`right`:`left`}[r],re=a===`center`?ne:`${ne}-${a}`,I=c,L=+(r===`bottom`),R=+(r===`top`),ie=+(r===`right`),ae=+(r===`left`);typeof I==`number`?I={top:I+L,right:I+ae,bottom:I+R,left:I+ie}:I&&={top:(I.top||0)+L,right:(I.right||0)+ae,bottom:(I.bottom||0)+R,left:(I.left||0)+ie};let z={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:I},B=Q.useRef(null),oe=D(i),V=D(o),H=typeof i==`function`?0:i,se=typeof o==`function`?0:o,U=[];p&&U.push(p),U.push(en(e=>{let t=Rn(e,r,F),n=typeof oe.current==`function`?oe.current(t):oe.current,i=typeof V.current==`function`?V.current(t):V.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[H,se,F,r]));let ce=A===`none`&&k!==`shift`,le=!ce&&(l||v||k===`shift`),ue=k===`none`?null:rn({...z,padding:{top:I.top+1,right:I.right+1,bottom:I.bottom+1,left:I.left+1},mainAxis:!v&&k===`flip`,crossAxis:A===`flip`&&`alignment`,fallbackAxisSideDirection:j}),de=ce?null:tn(e=>{let t=me(e.elements.floating).documentElement;return{...z,rootBoundary:v?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:A!==`none`,crossAxis:le,limiter:l||v?void 0:nn(e=>{if(!B.current)return{};let{width:t,height:n}=B.current.getBoundingClientRect(),r=K(G(e.placement)),i=r===`y`?t:n,a=r===`y`?I.left+I.right:I.top+I.bottom;return{offset:i/2+a/2}})}},[z,l,v,I,A]);k===`shift`||A===`shift`||a===`center`?U.push(de,ue):U.push(ue,de),U.push(an({...z,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!te.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=d(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,f=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${f}px`)}}),Mn(e=>({element:B.current||me(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=G(a),l=K(c),u=B.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(Rn(e,r,F)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,le&&l===`y`&&b?S:x),{}}},Pn,S),b(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let fe=Q.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:pe,elements:he,x:ge,y:_e,middlewareData:ve,update:ye,placement:be,context:xe,isPositioned:q,floatingStyles:J}=cn({rootContext:h,open:m?g:void 0,placement:re,middleware:U,strategy:n,whileElementsMounted:m?void 0:(...e)=>Bt(...e,fe),nodeId:x,externalTree:w}),{sideX:Y,sideY:Se}=ve.adaptiveOrigin||Fn,Ce=q?n:`fixed`,we=Q.useMemo(()=>{let e=S?{position:Ce,[Y]:ge,[Se]:_e}:{position:Ce,...J};return q||(e.opacity=0),e},[S,Ce,Y,ge,Se,_e,J,q]),Te=Q.useRef(null);b(()=>{if(!g)return;let e=ee.current,t=typeof e==`function`?e():e,n=(Bn(t)?t.current:t)||null;n!==Te.current&&(pe.setPositionReference(n),Te.current=n)},[g,pe,P,ee]),Q.useEffect(()=>{if(!g)return;let e=ee.current;typeof e!=`function`&&Bn(e)&&e.current!==Te.current&&(pe.setPositionReference(e.current),Te.current=e.current)},[g,pe,P,ee]),Q.useEffect(()=>{if(m&&g&&he.reference&&he.floating)return Bt(he.reference,he.floating,ye,fe)},[m,g,he,ye,fe]);let X=G(be),Ee=Ln(r,X,F),De=W(be)||`center`,Oe=!!ve.hide?.referenceHidden;b(()=>{C&&g&&q&&O(X)},[C,g,q,X]);let ke=Q.useMemo(()=>
1({position:`absolute`,top:ve.arrow?.y,left:ve.arrow?.x}),[ve.arrow]),Ae=ve.arrow?.centerOffset!==0;return Q.useMemo(()=>({positionerStyles:we,arrowStyles:ke,arrowRef:B,arrowUncentered:Ae,side:Ee,align:De,physicalSide:X,anchorHidden:Oe,refs:pe,context:xe,isPositioned:q,update:ye}),[we,ke,B,Ae,Ee,De,X,Oe,pe,xe,q,ye])}function Bn(e){return e!=null&&`current`in e}function Vn(e){return e===`starting`?k:g}function Hn(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),x(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Vn(r),i],stateAttributesMapping:F})}var Un=Q.createContext(void 0);function Wn(e){let t=Q.useContext(Un);if(t===void 0&&!e)throw Error(m(69));return t}var Gn=20;function Kn(e,t,n,r){let[i,a]=Q.useState(!1);b(()=>{if(!e||!t||n==null){a(!1);return}let r=me(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Gn)},[e,t,n]),oe(e&&(!t||i),r)}function qn(e){let t=Q.useRef(``),n=Q.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Q.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function Jn(e,t){let{onClick:n,onPointerDown:r}=qn(y((n,r)=>{(typeof e==`function`?e():e)||t(r||(Pe?`touch`:``))}));return Q.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function Yn(e){let[t,n]=Q.useState(null),r=Jn(e,n);return We(e,t=>{t&&!e&&n(null)}),Q.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function Xn(e,t){let n=Q.useRef(null);function r(t){Ue.flushSync(()=>{e.setOpen(!1,Z(Se,t.nativeEvent,t.currentTarget))}),P(n.current)?.focus()}function i(n){let r=e.select(`positionerElement`);if(r&&te(n,r))e.context.beforeContentFocusGuardRef.current?.focus();else{Ue.flushSync(()=>{e.setOpen(!1,Z(Se,n.nativeEvent,n.currentTarget))});let i=ee(e.context.triggerFocusTargetRef.current||t.current);for(;i!==null&&X(r,i);){let e=i;if(i=j(i),i===e)break}i?.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}export{Ke as _,Wn as a,zn as c,Cn as d,gn as f,Xe as g,sn as h,Kn as i,In as l,pn as m,Yn as n,Hn as o,mn as p,Jn as r,Vn as s,Xn as t,An as u,We as v};

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.