1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[27233],{27233:(e,r,n)=>{n.d(r,{RG:()=>x,bL:()=>N,q7:()=>P});var t=n(32812),o=n(20857),u=n(7907),c=n(57505),i=n(17727),a=n(20792),l=n(20836),f=n(44236),s=n(83108),d=n(52804),p=n(65507),v=n(23959),m=n(96975),b=n(98139),_=n(40221),h=n(69140),w="rovingFocusGroup.onEntryFocus",y={bubbles:!1,cancelable:!0},R="RovingFocusGroup",S=(0,c._)((0,f.N)(R),3),g=S[0],I=S[1],F=S[2],C=(0,c._)((0,d.A)(R,[F]),2),T=C[0],x=C[1],A=(0,c._)(T(R),2),E=A[0],K=A[1],M=a.forwardRef(function(e,r){return(0,h.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(G,(0,o._)((0,t._)({},e),{ref:r}))})})});M.displayName=R;var G=a.forwardRef(function(e,r){var n=e.__scopeRovingFocusGroup,f=e.orientation,d=e.loop,p=e.dir,S=e.currentTabStopId,g=e.defaultCurrentTabStopId,F=e.onCurrentTabStopIdChange,C=e.onEntryFocus,T=e.preventScrollOnEntryFocus,x=void 0!==T&&T,A=(0,u._)(e,["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus"]),K=a.useRef(null),M=(0,s.s)(r,K),G=(0,_.jH)(p),j=(0,c._)((0,b.i)({prop:S,defaultProp:null!=g?g:null,onChange:F,caller:R}),2),k=j[0],D=j[1],N=(0,c._)(a.useState(!1),2),P=N[0],O=N[1],B=(0,m.c)(C),U=I(n),q=a.useRef(!1),H=(0,c._)(a.useState(0),2),z=H[0],J=H[1];return a.useEffect(function(){var e=K.current;if(e)return e.addEventListener(w,B),function(){return e.removeEventListener(w,B)}},[B]),(0,h.jsx)(E,{scope:n,orientation:f,dir:G,loop:void 0!==d&&d,currentTabStopId:k,onItemFocus:a.useCallback(function(e){return D(e)},[D]),onItemShiftTab:a.useCallback(function(){return O(!0)},[]),onFocusableItemAdd:a.useCallback(function(){return J(function(e){return e+1})},[]),onFocusableItemRemove:a.useCallback(function(){return J(function(e){return e-1})},[]),children:(0,h.jsx)(v.sG.div,(0,o._)((0,t._)({tabIndex:P||0===z?-1:0,"data-orientation":f},A),{ref:M,style:(0,t._)({outline:"none"},e.style),onMouseDown:(0,l.mK)(e.onMouseDown,function(){q.current=!0}),onFocus:(0,l.mK)(e.onFocus,function(e){var r=!q.current;if(e.target===e.currentTarget&&r&&!P){var n=new CustomEvent(w,y);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){var t=U().filter(function(e){return e.focusable});L([t.find(function(e){return e.active}),t.find(function(e){return e.id===k})].concat((0,i._)(t)).filter(Boolean).map(function(e){return e.ref.current}),x)}}q.current=!1}),onBlur:(0,l.mK)(e.onBlur,function(){return O(!1)})}))})}),j="RovingFocusGroupItem",k=a.forwardRef(function(e,r){var n=e.__scopeRovingFocusGroup,c=e.focusable,i=void 0===c||c,f=e.active,s=e.tabStopId,d=e.children,m=(0,u._)(e,["__scopeRovingFocusGroup","focusable","active","tabStopId","children"]),b=(0,p.B)(),_=s||b,w=K(j,n),y=w.currentTabStopId===_,R=I(n),S=w.onFocusableItemAdd,F=w.onFocusableItemRemove,C=w.currentTabStopId;return a.useEffect(function(){if(i)return S(),function(){return F()}},[i,S,F]),(0,h.jsx)(g.ItemSlot,{scope:n,id:_,focusable:i,active:void 0!==f&&f,children:(0,h.jsx)(v.sG.span,(0,o._)((0,t._)({tabIndex:y?0:-1,"data-orientation":w.orientation},m),{ref:r,onMouseDown:(0,l.mK)(e.onMouseDown,function(e){i?w.onItemFocus(_):e.preventDefault()}),onFocus:(0,l.mK)(e.onFocus,function(){return w.onItemFocus(_)}),onKeyDown:(0,l.mK)(e.onKeyDown,function(e){if("Tab"===e.key&&e.shiftKey)return void w.onItemShiftTab();if(e.target===e.currentTarget){var r=function(e,r,n){var t,o=(t=e.key,"rtl"!==n?t:"ArrowLeft"===t?"ArrowRight":"ArrowRight"===t?"ArrowLeft":t);if(!("vertical"===r&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===r&&["ArrowUp","ArrowDown"].includes(o)))return D[o]}(e,w.orientation,w.dir);if(void 0!==r){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();var n=R().filter(function(e){return e.focusable}).map(function(e){return e.ref.current});if("last"===r)n.reverse();else if("prev"===r||"next"===r){"prev"===r&&n.reverse();var t,o,u=n.indexOf(e.currentTarget);n=w.loop?(t=n,o=u+1,t.map(function(e,r){return t[(o+r)%t.length]})):n.slice(u+1)}setTimeout(function(){return L(n)})}}}),children:"function"==typeof d?d({isCurrentTabStop:y,hasTabStop:null!=C}):d}))})});k.displayName=j;var D={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function L(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement,t=!0,o=!1,u=void 0;try{for(var c,i=e[Symbol.iterator]();!(t=(c=i.next()).done);t=!0){var a=c.value;if(a===n||(a.focus({preventScroll:r}),document.activeElement!==n))return}}catch(e){o=!0,u=e}finally{try{t||null==i.return||i.return()}finally{if(o)throw u}}}var N=M,P=k},44236:(e,r,n)=>{n.d(r,{N:()=>v}),n(97905),n(57574),n(98111);n(40102);var t=n(82258);n(82166),n(16893);
1var o=n(32812),u=n(20857),c=n(7907),i=n(57505);n(17727);var a=n(16634),l=n(20792),f=n(52804),s=n(83108),d=n(28520),p=n(69140);function v(e){var r=e+"CollectionProvider",n=(0,i._)((0,f.A)(r),2),a=n[0],v=n[1],m=(0,i._)(a(r,{collectionRef:{current:null},itemMap:new Map}),2),b=m[0],_=m[1],h=function(e){var r=e.scope,n=e.children,t=l.useRef(null),o=l.useRef(new Map).current;return(0,p.jsx)(b,{scope:r,itemMap:o,collectionRef:t,children:n})};h.displayName=r;var w=e+"CollectionSlot",y=(0,d.TL)(w),R=l.forwardRef(function(e,r){var n=e.scope,t=e.children,o=_(w,n),u=(0,s.s)(r,o.collectionRef);return(0,p.jsx)(y,{ref:u,children:t})});R.displayName=w;var S=e+"CollectionItemSlot",g="data-radix-collection-item",I=(0,d.TL)(S),F=l.forwardRef(function(e,r){var n=e.scope,i=e.children,a=(0,c._)(e,["scope","children"]),f=l.useRef(null),d=(0,s.s)(r,f),v=_(S,n);return l.useEffect(function(){return v.itemMap.set(f,(0,o._)({ref:f},a)),function(){v.itemMap.delete(f)}}),(0,p.jsx)(I,(0,u._)((0,o._)({},(0,t._)({},g,"")),{ref:d,children:i}))});return F.displayName=S,[{Provider:h,Slot:R,ItemSlot:F},function(r){var n=_(e+"CollectionConsumer",r);return l.useCallback(function(){var e=n.collectionRef.current;if(!e)return[];var r=Array.from(e.querySelectorAll("[".concat(g,"]")));return Array.from(n.itemMap.values()).sort(function(e,n){return r.indexOf(e.ref.current)-r.indexOf(n.ref.current)})},[n.collectionRef,n.itemMap])},v]}(0,a._)(Map)}}]);
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.