1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6974],{10407:function(e,n,t){t.d(n,{Z:function(){return r}});let r=(0,t(79205).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},40519:function(e,n,t){t.d(n,{Z:function(){return r}});let r=(0,t(79205).Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},69556:function(e,n,t){t.d(n,{ee:function(){return eS},Eh:function(){return eU},oC:function(){return eK},VY:function(){return eA},ZA:function(){return eL},ck:function(){return eN},wU:function(){return eB},__:function(){return eO},h_:function(){return eF},Ee:function(){return eV},Rk:function(){return eW},fC:function(){return eT},Z0:function(){return eG},Tr:function(){return eZ},tu:function(){return eX},fF:function(){return ez},Wf:function(){return F}});var r=t(2265),o=t(6741),u=t(71605),l=t(98575),a=t(73966),i=t(29114),c=t(15278),s=t(86097),d=t(99103),f=t(99255),p=t(26008),v=t(83832),h=t(71599),m=t(82912),g=t(1353),w=t(57437),y=Symbol("radix.slottable");function M(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===y}var j=t(26606),x=t(5478),C=t(87922),b=["Enter"," "],_=["ArrowUp","PageDown","End"],R=["ArrowDown","PageUp","Home",..._],k={ltr:[...b,"ArrowRight"],rtl:[...b,"ArrowLeft"]},E={ltr:["ArrowLeft"],rtl:["ArrowRight"]},D="Menu",[P,I,T]=(0,u.B)(D),[S,F]=(0,a.b)(D,[T,p.D7,g.Pc]),A=(0,p.D7)(),L=(0,g.Pc)(),[O,N]=S(D),[K,V]=S(D),W=e=>{let{__scopeMenu:n,open:t=!1,children:o,dir:u,onOpenChange:l,modal:a=!0}=e,c=A(n),[s,d]=r.useState(null),f=r.useRef(!1),v=(0,j.W)(l),h=(0,i.gm)(u);return r.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}},[]),(0,w.jsx)(p.fC,{...c,children:(0,w.jsx)(O,{scope:n,open:t,onOpenChange:v,content:s,onContentChange:d,children:(0,w.jsx)(K,{scope:n,onClose:r.useCallback(()=>v(!1),[v]),isUsingKeyboardRef:f,dir:h,modal:a,children:o})})})};W.displayName=D;var B=r.forwardRef((e,n)=>{let{__scopeMenu:t,...r}=e,o=A(t);return(0,w.jsx)(p.ee,{...o,...r,ref:n})});B.displayName="MenuAnchor";var G="MenuPortal",[U,Z]=S(G,{forceMount:void 0}),z=e=>{let{__scopeMenu:n,forceMount:t,children:r,container:o}=e,u=N(G,n);return(0,w.jsx)(U,{scope:n,forceMount:t,children:(0,w.jsx)(h.z,{present:t||u.open,children:(0,w.jsx)(v.h,{asChild:!0,container:o,children:r})})})};z.displayName=G;var X="MenuContent",[Y,H]=S(X),$=r.forwardRef((e,n)=>{let t=Z(X,e.__scopeMenu),{forceMount:r=t.forceMount,...o}=e,u=N(X,e.__scopeMenu),l=V(X,e.__scopeMenu);return(0,w.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,w.jsx)(h.z,{present:r||u.open,children:(0,w.jsx)(P.Slot,{scope:e.__scopeMenu,children:l.modal?(0,w.jsx)(q,{...o,ref:n}):(0,w.jsx)(J,{...o,ref:n})})})})}),q=r.forwardRef((e,n)=>{let t=N(X,e.__scopeMenu),u=r.useRef(null),a=(0,l.e)(n,u);return r.useEffect(()=>{let e=u.current;if(e)return(0,x.Ry)(e)},[]),(0,w.jsx)(ee,{...e,ref:a,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:(0,o.Mj)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),J=r.forwardRef((e,n)=>{let t=N(X,e.__scopeMenu);return(0,w.jsx)(ee,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),Q=function(e){let n=function(e){let n=r.forwardRef((e,n)=>{let{children:t,...o}=e;if(r.isValidElement(t)){let e,u;let a=(e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?t.props.ref:t.props.ref||t.ref,i=function(e,n){let t={...n};for(let r in n){let o=e[r],u=n[r];/^on[A-Z]/.test(r)?o&&u?t[r]=(...e)=>{let n=u(...e);return o(...e),n}:o&&(t[r]=o):"style"===r?t[r]={...o,...u}
1:"className"===r&&(t[r]=[o,u].filter(Boolean).join(" "))}return{...e,...t}}(o,t.props);return t.type!==r.Fragment&&(i.ref=n?(0,l.F)(n,a):a),r.cloneElement(t,i)}return r.Children.count(t)>1?r.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}(e),t=r.forwardRef((e,t)=>{let{children:o,...u}=e,l=r.Children.toArray(o),a=l.find(M);if(a){let e=a.props.children,o=l.map(n=>n!==a?n:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,w.jsx)(n,{...u,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,w.jsx)(n,{...u,ref:t,children:o})});return t.displayName=`${e}.Slot`,t}("MenuContent.ScrollLock"),ee=r.forwardRef((e,n)=>{let{__scopeMenu:t,loop:u=!1,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:f,disableOutsidePointerEvents:v,onEntryFocus:h,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:M,onInteractOutside:j,onDismiss:x,disableOutsideScroll:b,...k}=e,E=N(X,t),D=V(X,t),P=A(t),T=L(t),S=I(t),[F,O]=r.useState(null),K=r.useRef(null),W=(0,l.e)(n,K,E.onContentChange),B=r.useRef(0),G=r.useRef(""),U=r.useRef(0),Z=r.useRef(null),z=r.useRef("right"),H=r.useRef(0),$=b?C.Z:r.Fragment,q=e=>{let n=G.current+e,t=S().filter(e=>!e.disabled),r=document.activeElement,o=t.find(e=>e.ref.current===r)?.textValue,u=function(e,n,t){var r;let o=n.length>1&&Array.from(n).every(e=>e===n[0])?n[0]:n,u=(r=Math.max(t?e.indexOf(t):-1,0),e.map((n,t)=>e[(r+t)%e.length]));1===o.length&&(u=u.filter(e=>e!==t));let l=u.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==t?l:void 0}(t.map(e=>e.textValue),n,o),l=t.find(e=>e.textValue===u)?.ref.current;!function e(n){G.current=n,window.clearTimeout(B.current),""!==n&&(B.current=window.setTimeout(()=>e(""),1e3))}(n),l&&setTimeout(()=>l.focus())};r.useEffect(()=>()=>window.clearTimeout(B.current),[]),(0,s.EW)();let J=r.useCallback(e=>{var n;return z.current===Z.current?.side&&!!(n=Z.current?.area)&&function(e,n){let{x:t,y:r}=e,o=!1;for(let e=0,u=n.length-1;e<n.length;u=e++){let l=n[e],a=n[u],i=l.x,c=l.y,s=a.x,d=a.y;c>r!=d>r&&t<(s-i)*(r-c)/(d-c)+i&&(o=!o)}return o}({x:e.clientX,y:e.clientY},n)},[]);return(0,w.jsx)(Y,{scope:t,searchRef:G,onItemEnter:r.useCallback(e=>{J(e)&&e.preventDefault()},[J]),onItemLeave:r.useCallback(e=>{J(e)||(K.current?.focus(),O(null))},[J]),onTriggerLeave:r.useCallback(e=>{J(e)&&e.preventDefault()},[J]),pointerGraceTimerRef:U,onPointerGraceIntentChange:r.useCallback(e=>{Z.current=e},[]),children:(0,w.jsx)($,{...b?{as:Q,allowPinchZoom:!0}:void 0,children:(0,w.jsx)(d.M,{asChild:!0,trapped:a,onMountAutoFocus:(0,o.Mj)(i,e=>{e.preventDefault(),K.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:(0,w.jsx)(c.XB,{asChild:!0,disableOutsidePointerEvents:v,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:M,onInteractOutside:j,onDismiss:x,children:(0,w.jsx)(g.fC,{asChild:!0,...T,dir:D.dir,orientation:"vertical",loop:u,currentTabStopId:F,onCurrentTabStopIdChange:O,onEntryFocus:(0,o.Mj)(h,e=>{D.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,w.jsx)(p.VY,{role:"menu","aria-orientation":"vertical","data-state":eE(E.open),"data-radix-menu-content":"",dir:D.dir,...P,...k,ref:W,style:{outline:"none",...k.style},onKeyDown:(0,o.Mj)(k.onKeyDown,e=>{let n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&r&&q(e.key));let o=K.current;if(e.target!==o||!R.includes(e.key))return;e.preventDefault();let u=S().filter(e=>!e.disabled).map(e=>e.ref.current);_.includes(e.key)&&u.reverse(),function(e){let n=document.activeElement;for(let t of e)if(t===n||(t.focus(),document.activeElement!==n))return}(u)}),onBlur:(0,o.Mj)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(B.current),G.current="")}),onPointerMove:(0,o.Mj)(e.onPointerMove,eI(e=>{let n=e.target,t=H.current!==e.clientX;if(e.currentTarget.contains(n)&&t){let n=e.clientX>H.current?"right":"left";z.current=n,H.current=e.clientX}}))})})})})})})});$.displayName=X;
1var en=r.forwardRef((e,n)=>{let{__scopeMenu:t,...r}=e;return(0,w.jsx)(m.WV.div,{role:"group",...r,ref:n})});en.displayName="MenuGroup";var et=r.forwardRef((e,n)=>{let{__scopeMenu:t,...r}=e;return(0,w.jsx)(m.WV.div,{...r,ref:n})});et.displayName="MenuLabel";var er="MenuItem",eo="menu.itemSelect",eu=r.forwardRef((e,n)=>{let{disabled:t=!1,onSelect:u,...a}=e,i=r.useRef(null),c=V(er,e.__scopeMenu),s=H(er,e.__scopeMenu),d=(0,l.e)(n,i),f=r.useRef(!1);return(0,w.jsx)(el,{...a,ref:d,disabled:t,onClick:(0,o.Mj)(e.onClick,()=>{let e=i.current;if(!t&&e){let n=new CustomEvent(eo,{bubbles:!0,cancelable:!0});e.addEventListener(eo,e=>u?.(e),{once:!0}),(0,m.jH)(e,n),n.defaultPrevented?f.current=!1:c.onClose()}}),onPointerDown:n=>{e.onPointerDown?.(n),f.current=!0},onPointerUp:(0,o.Mj)(e.onPointerUp,e=>{f.current||e.currentTarget?.click()}),onKeyDown:(0,o.Mj)(e.onKeyDown,e=>{let n=""!==s.searchRef.current;!t&&(!n||" "!==e.key)&&b.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eu.displayName=er;var el=r.forwardRef((e,n)=>{let{__scopeMenu:t,disabled:u=!1,textValue:a,...i}=e,c=H(er,t),s=L(t),d=r.useRef(null),f=(0,l.e)(n,d),[p,v]=r.useState(!1),[h,y]=r.useState("");return r.useEffect(()=>{let e=d.current;e&&y((e.textContent??"").trim())},[i.children]),(0,w.jsx)(P.ItemSlot,{scope:t,disabled:u,textValue:a??h,children:(0,w.jsx)(g.ck,{asChild:!0,...s,focusable:!u,children:(0,w.jsx)(m.WV.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":u||void 0,"data-disabled":u?"":void 0,...i,ref:f,onPointerMove:(0,o.Mj)(e.onPointerMove,eI(e=>{u?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.Mj)(e.onPointerLeave,eI(e=>c.onItemLeave(e))),onFocus:(0,o.Mj)(e.onFocus,()=>v(!0)),onBlur:(0,o.Mj)(e.onBlur,()=>v(!1))})})})}),ea=r.forwardRef((e,n)=>{let{checked:t=!1,onCheckedChange:r,...u}=e;return(0,w.jsx)(eh,{scope:e.__scopeMenu,checked:t,children:(0,w.jsx)(eu,{role:"menuitemcheckbox","aria-checked":eD(t)?"mixed":t,...u,ref:n,"data-state":eP(t),onSelect:(0,o.Mj)(u.onSelect,()=>r?.(!!eD(t)||!t),{checkForDefaultPrevented:!1})})})});ea.displayName="MenuCheckboxItem";var ei="MenuRadioGroup",[ec,es]=S(ei,{value:void 0,onValueChange:()=>{}}),ed=r.forwardRef((e,n)=>{let{value:t,onValueChange:r,...o}=e,u=(0,j.W)(r);return(0,w.jsx)(ec,{scope:e.__scopeMenu,value:t,onValueChange:u,children:(0,w.jsx)(en,{...o,ref:n})})});ed.displayName=ei;var ef="MenuRadioItem",ep=r.forwardRef((e,n)=>{let{value:t,...r}=e,u=es(ef,e.__scopeMenu),l=t===u.value;return(0,w.jsx)(eh,{scope:e.__scopeMenu,checked:l,children:(0,w.jsx)(eu,{role:"menuitemradio","aria-checked":l,...r,ref:n,"data-state":eP(l),onSelect:(0,o.Mj)(r.onSelect,()=>u.onValueChange?.(t),{checkForDefaultPrevented:!1})})})});ep.displayName=ef;var ev="MenuItemIndicator",[eh,em]=S(ev,{checked:!1}),eg=r.forwardRef((e,n)=>{let{__scopeMenu:t,forceMount:r,...o}=e,u=em(ev,t);return(0,w.jsx)(h.z,{present:r||eD(u.checked)||!0===u.checked,children:(0,w.jsx)(m.WV.span,{...o,ref:n,"data-state":eP(u.checked)})})});eg.displayName=ev;var ew=r.forwardRef((e,n)=>{let{__scopeMenu:t,...r}=e;return(0,w.jsx)(m.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:n})});ew.displayName="MenuSeparator";var ey=r.forwardRef((e,n)=>{let{__scopeMenu:t,...r}=e,o=A(t);return(0,w.jsx)(p.Eh,{...o,...r,ref:n})});ey.displayName="MenuArrow";var eM="MenuSub",[ej,ex]=S(eM),eC=e=>{let{__scopeMenu:n,children:t,open:o=!1,onOpenChange:u}=e,l=N(eM,n),a=A(n),[i,c]=r.useState(null),[s,d]=r.useState(null),v=(0,j.W)(u);return r.useEffect(()=>(!1===l.open&&v(!1),()=>v(!1)),[l.open,v]),(0,w.jsx)(p.fC,{...a,children:(0,w.jsx)(O,{scope:n,open:o,onOpenChange:v,content:s,onContentChange:d,children:(0,w.jsx)(ej,{scope:n,contentId:(0,f.M)(),triggerId:(0,f.M)(),trigger:i,onTriggerChange:c,children:t})})})};eC.displayName=eM;var eb="MenuSubTrigger",e_=r.forwardRef((e,n)=>{let t=N(eb,e.__scopeMenu),u=V(eb,e.__scopeMenu),a=ex(eb,e.__scopeMenu),i=H(eb,e.__scopeMenu),c=r.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=i,f={__scopeMenu:e.__scopeMenu},p=r.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return r.useEffect(()=>p,[p]),r.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,w.jsx)(B,{asChild:!0,...f,children:(0,w.jsx)(el,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":a.contentId,"data-state":eE(t.open),...e,ref:(0,l.F)(n,a.onTriggerChange),onClick:n=>{e.onClick?.(n),e.disabled||n.defaultPrevented||(n.currentTarget.focu
1s(),t.open||t.onOpenChange(!0))},onPointerMove:(0,o.Mj)(e.onPointerMove,eI(n=>{i.onItemEnter(n),n.defaultPrevented||e.disabled||t.open||c.current||(i.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{t.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.Mj)(e.onPointerLeave,eI(e=>{p();let n=t.content?.getBoundingClientRect();if(n){let r=t.content?.dataset.side,o="right"===r,u=n[o?"left":"right"],l=n[o?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:u,y:n.top},{x:l,y:n.top},{x:l,y:n.bottom},{x:u,y:n.bottom}],side:r}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.Mj)(e.onKeyDown,n=>{let r=""!==i.searchRef.current;!e.disabled&&(!r||" "!==n.key)&&k[u.dir].includes(n.key)&&(t.onOpenChange(!0),t.content?.focus(),n.preventDefault())})})})});e_.displayName=eb;var eR="MenuSubContent",ek=r.forwardRef((e,n)=>{let t=Z(X,e.__scopeMenu),{forceMount:u=t.forceMount,...a}=e,i=N(X,e.__scopeMenu),c=V(X,e.__scopeMenu),s=ex(eR,e.__scopeMenu),d=r.useRef(null),f=(0,l.e)(n,d);return(0,w.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,w.jsx)(h.z,{present:u||i.open,children:(0,w.jsx)(P.Slot,{scope:e.__scopeMenu,children:(0,w.jsx)(ee,{id:s.contentId,"aria-labelledby":s.triggerId,...a,ref:f,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{c.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.Mj)(e.onFocusOutside,e=>{e.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,o.Mj)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,o.Mj)(e.onKeyDown,e=>{let n=e.currentTarget.contains(e.target),t=E[c.dir].includes(e.key);n&&t&&(i.onOpenChange(!1),s.trigger?.focus(),e.preventDefault())})})})})})});function eE(e){return e?"open":"closed"}function eD(e){return"indeterminate"===e}function eP(e){return eD(e)?"indeterminate":e?"checked":"unchecked"}function eI(e){return n=>"mouse"===n.pointerType?e(n):void 0}ek.displayName=eR;var eT=W,eS=B,eF=z,eA=$,eL=en,eO=et,eN=eu,eK=ea,eV=ed,eW=ep,eB=eg,eG=ew,eU=ey,eZ=eC,ez=e_,eX=ek},1353:function(e,n,t){t.d(n,{Pc:function(){return j},ck:function(){return I},fC:function(){return P}});var r=t(2265),o=t(6741),u=t(71605),l=t(98575),a=t(73966),i=t(99255),c=t(82912),s=t(26606),d=t(80886),f=t(29114),p=t(57437),v="rovingFocusGroup.onEntryFocus",h={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[g,w,y]=(0,u.B)(m),[M,j]=(0,a.b)(m,[y]),[x,C]=M(m),b=r.forwardRef((e,n)=>(0,p.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(_,{...e,ref:n})})}));b.displayName=m;var _=r.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:t,orientation:u,loop:a=!1,dir:i,currentTabStopId:g,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:M,onEntryFocus:j,preventScrollOnEntryFocus:C=!1,...b}=e,_=r.useRef(null),R=(0,l.e)(n,_),k=(0,f.gm)(i),[E,P]=(0,d.T)({prop:g,defaultProp:y??null,onChange:M,caller:m}),[I,T]=r.useState(!1),S=(0,s.W)(j),F=w(t),A=r.useRef(!1),[L,O]=r.useState(0);return r.useEffect(()=>{let e=_.current;if(e)return e.addEventListener(v,S),()=>e.removeEventListener(v,S)},[S]),(0,p.jsx)(x,{scope:t,orientation:u,dir:k,loop:a,currentTabStopId:E,onItemFocus:r.useCallback(e=>P(e),[P]),onItemShiftTab:r.useCallback(()=>T(!0),[]),onFocusableItemAdd:r.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>O(e=>e-1),[]),children:(0,p.jsx)(c.WV.div,{tabIndex:I||0===L?-1:0,"data-orientation":u,...b,ref:R,style:{outline:"none",...e.style},onMouseDown:(0,o.Mj)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,o.Mj)(e.onFocus,e=>{let n=!A.current;if(e.target===e.currentTarget&&n&&!I){let n=new CustomEvent(v,h);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){let e=F().filter(e=>e.focusable);D([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),C)}}A.current=!1}),onBlur:(0,o.Mj)(e.onBlur,()=>T(!1))})})}
1),R="RovingFocusGroupItem",k=r.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:t,focusable:u=!0,active:l=!1,tabStopId:a,children:s,...d}=e,f=(0,i.M)(),v=a||f,h=C(R,t),m=h.currentTabStopId===v,y=w(t),{onFocusableItemAdd:M,onFocusableItemRemove:j,currentTabStopId:x}=h;return r.useEffect(()=>{if(u)return M(),()=>j()},[u,M,j]),(0,p.jsx)(g.ItemSlot,{scope:t,id:v,focusable:u,active:l,children:(0,p.jsx)(c.WV.span,{tabIndex:m?0:-1,"data-orientation":h.orientation,...d,ref:n,onMouseDown:(0,o.Mj)(e.onMouseDown,e=>{u?h.onItemFocus(v):e.preventDefault()}),onFocus:(0,o.Mj)(e.onFocus,()=>h.onItemFocus(v)),onKeyDown:(0,o.Mj)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){h.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let n=function(e,n,t){var r;let o=(r=e.key,"rtl"!==t?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===n&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===n&&["ArrowUp","ArrowDown"].includes(o)))return E[o]}(e,h.orientation,h.dir);if(void 0!==n){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=y().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===n)o.reverse();else if("prev"===n||"next"===n){var t,r;"prev"===n&&o.reverse();let u=o.indexOf(e.currentTarget);o=h.loop?(t=o,r=u+1,t.map((e,n)=>t[(r+n)%t.length])):o.slice(u+1)}setTimeout(()=>D(o))}}),children:"function"==typeof s?s({isCurrentTabStop:m,hasTabStop:null!=x}):s})})});k.displayName=R;var E={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function D(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=document.activeElement;for(let r of e)if(r===t||(r.focus({preventScroll:n}),document.activeElement!==t))return}var P=b,I=k}}]);
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.