(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94349,e=>{"use strict";var t=e.i(71645);e.s(["useControlled",0,function({controlled:e,default:n,name:r,state:i="value"}){let{current:s}=t.useRef(void 0!==e),[l,o]=t.useState(n),u=t.useCallback(e=>{s||o(e)},[]);return[s?e:l,u]}])},83799,e=>{"use strict";var t=e.i(71645);let n={...t},r=0,i=n.useId;e.s(["useId",0,function(e,n){if(void 0!==i){let t=i();return e??(n?`${n}-${t}`:t)}return function(e,n="mui"){let[i,s]=t.useState(e),l=e||i;return t.useEffect(()=>{null==i&&(r+=1,s(`${n}-${r}`))},[i,n]),l}(e,n)}],83799)},30780,e=>{"use strict";var t=e.i(29315);e.s(["activeElement",0,function(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t},"contains",0,function(e,n){if(!e||!n)return!1;let r=n.getRootNode?.();if(e.contains(n))return!0;if(r&&(0,t.isShadowRoot)(r)){let t=n;for(;t;){if(e===t)return!0;t=t.parentNode||t.host}}return!1},"getTarget",0,function(e){return"composedPath"in e?e.composedPath()[0]:e.target}])},94365,e=>{"use strict";var t=e.i(71645);let n=[];e.s(["useOnMount",0,function(e){t.useEffect(e,n)}])},14060,e=>{"use strict";var t;let n=((t={}).startingStyle="data-starting-style",t.endingStyle="data-ending-style",t),r={[n.startingStyle]:""},i={[n.endingStyle]:""};e.s(["TransitionStatusDataAttributes",0,n,"transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?i:null}])},54584,47135,e=>{"use strict";var t=e.i(74080);e.i(47167);var n=e.i(30628),r=e.i(94365);let i=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class s{static create(){return new s}static request(e){return i.request(e)}static cancel(e){return i.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=i.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(i.cancel(this.currentId),this.currentId=null)};disposeEffect=()=>this.cancel}function l(){let e=(0,n.useRefWithInit)(s.create).current;return(0,r.useOnMount)(e.disposeEffect),e}e.s(["AnimationFrame",0,s,"useAnimationFrame",0,l],47135);var o=e.i(76477),u=e.i(14060);e.s(["useAnimationsFinished",0,function(e,n=!1,r=!0){let i=l();return(0,o.useStableCallback)((s,l=null)=>{i.cancel();let o=null==e?e:"current"in e?e.current:e;if(null==o)return;let a=()=>{t.flushSync(s)};if("function"!=typeof o.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void s();function c(){Promise.all(o.getAnimations().map(e=>e.finished)).then(()=>{l?.aborted||a()}).catch(()=>{if(r){l?.aborted||a();return}let e=o.getAnimations();!l?.aborted&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&c()})}if(n){let e=u.TransitionStatusDataAttributes.startingStyle;if(!o.hasAttribute(e))return void i.request(c);let t=new MutationObserver(()=>{o.hasAttribute(e)||(t.disconnect(),c())});return t.observe(o,{attributes:!0,attributeFilter:[e]}),void l?.addEventListener("abort",()=>t.disconnect(),{once:!0})}i.request(c)})}],54584)},23715,e=>{"use strict";var t=e.i(71645),n=e.i(76477),r=e.i(54584);e.s(["useOpenChangeComplete",0,function(e){let{enabled:i=!0,open:s,ref:l,onComplete:o}=e,u=(0,n.useStableCallback)(o),a=(0,r.useAnimationsFinished)(l,s,!1);t.useEffect(()=>{if(!i)return;let e=new AbortController;return a(u,e.signal),()=>{e.abort()}},[i,s,u,a])}])},61463,e=>{"use strict";var t=e.i(71645),n=e.i(977),r=e.i(47135);e.s(["useTransitionStatus",0,function(e,i=!1,s=!1){let[l,o]=t.useState(e&&i?"idle":void 0),[u,a]=t.useState(e);return e&&!u&&(a(!0),o("starting")),e||!u||"ending"===l||s||o("ending"),e||u||"ending"!==l||o(void 0),(0,n.useIsoLayoutEffect)(()=>{if(!e&&u&&"ending"!==l&&s){let e=r.AnimationFrame.request(()=>{o("ending")});return()=>{r.AnimationFrame.cancel(e)}}},[e,u,l,s]),(0,n.useIsoLayoutEffect)(()=>{if(!e||i)return;let t=r.AnimationFrame.request(()=>{o(void 0)});return()=>{r.AnimationFrame.cancel(t)}},[i,e]),(0,n.useIsoLayoutEffect)(()=>{if(!e||!i)return;e&&u&&"idle"!==l&&o("starting");let t=r.AnimationFrame.request(()=>{o("idle")});return()=>{r.AnimationFrame.cancel(t)}},[i,e,u,l]),{mounted:u,setMounted:a,transitionStatus:l}}])},43084,e=>{"use strict";let t=["top","right","bottom","left"],n=t.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),r=Math.min,i=Math.max,s=Math.round,l=Math.floor,o={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e){return e.split("-")[0]}function a(e){return e.split("-")[1]}function c(e){return"x"===e?"y":"x"}function d(e){return"y"===e?"height":"width"}function f(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e){return c(f(e))}function h(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let p=["left","right"],m=["right","left"],I=["top","bottom"],E=["bottom","top"];function b(e){let t=u(e);return o[t]+e.slice(t.length)}e.s(["clamp",0,function(e,t,n){return i(e,r(t,n))},"createCoords",0,e=>({x:e,y:e}),"evaluate",0,function(e,t){return"function"==typeof e?e(t):e},"floor",0,l,"getAlignment",0,a,"getAlignmentAxis",0,g,"getAlignmentSides",0,function(e,t,n){void 0===n&&(n=!1);let r=a(e),i=g(e),s=d(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=b(l)),[l,b(l)]},"getAxisLength",0,d,"getExpandedPlacements",0,function(e){let t=b(e);return[h(e),t,h(t)]},"getOppositeAlignmentPlacement",0,h,"getOppositeAxis",0,c,"getOppositeAxisPlacements",0,function(e,t,n,r){let i=a(e),s=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?m:p;return t?p:m;case"left":case"right":return t?I:E;default:return[]}}(u(e),"start"===n,r);return i&&(s=s.map(e=>e+"-"+i),t&&(s=s.concat(s.map(h)))),s},"getOppositePlacement",0,b,"getPaddingObject",0,function(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}},"getSide",0,u,"getSideAxis",0,f,"max",0,i,"min",0,r,"placements",0,n,"rectToClientRect",0,function(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}},"round",0,s,"sides",0,t])},71403,e=>{"use strict";e.s(["cancelOpen",0,"cancel-open","chipRemovePress",0,"chip-remove-press","clearPress",0,"clear-press","closePress",0,"close-press","closeWatcher",0,"close-watcher","decrementPress",0,"decrement-press","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","incrementPress",0,"increment-press","inputBlur",0,"input-blur","inputChange",0,"input-change","inputClear",0,"input-clear","inputPaste",0,"input-paste","inputPress",0,"input-press","itemPress",0,"item-press","keyboard",0,"keyboard","linkPress",0,"link-press","listNavigation",0,"list-navigation","none",0,"none","outsidePress",0,"outside-press","pointer",0,"pointer","scrub",0,"scrub","siblingOpen",0,"sibling-open","swipe",0,"swipe","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press","wheel",0,"wheel","windowResize",0,"window-resize"],65917);var t=e.i(65917);e.s(["REASONS",0,t],71403)},31888,e=>{"use strict";var t=e.i(17514);e.s(["createChangeEventDetails",0,function(e,n,r,i){let s=!1,l=!1,o=i??t.EMPTY_OBJECT;return{reason:e,event:n??new Event("base-ui"),cancel(){s=!0},allowPropagation(){l=!0},get isCanceled(){return s},get isPropagationAllowed(){return l},trigger:r,...o}}])},80724,e=>{"use strict";var t=e.i(71645);let n=t.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});e.s(["CompositeListContext",0,n,"useCompositeListContext",0,function(){return t.useContext(n)}])},39060,96734,e=>{"use strict";var t=e.i(71645),n=e.i(30628),r=e.i(76477),i=e.i(977),s=e.i(80724),l=e.i(43476);function o(){return new Map}function u(){return new Set}function a(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}e.s(["CompositeList",0,function(e){let{children:c,elementsRef:d,labelsRef:f,onMapChange:g}=e,h=(0,r.useStableCallback)(g),p=t.useRef(0),m=(0,n.useRefWithInit)(u).current,I=(0,n.useRefWithInit)(o).current,[E,b]=t.useState(0),R=t.useRef(E),A=(0,r.useStableCallback)((e,t)=>{I.set(e,t??null),R.current+=1,b(R.current)}),v=(0,r.useStableCallback)(e=>{I.delete(e),R.current+=1,b(R.current)}),O=t.useMemo(()=>{let e=new Map;return Array.from(I.keys()).filter(e=>e.isConnected).sort(a).forEach((t,n)=>{let r=I.get(t)??{};e.set(t,{...r,index:n})}),e},[I,E]);(0,i.useIsoLayoutEffect)(()=>{if("function"!=typeof MutationObserver||0===O.size)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),0===t.size&&(R.current+=1,b(R.current))});return O.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[O]),(0,i.useIsoLayoutEffect)(()=>{R.current===E&&(d.current.length!==O.size&&(d.current.length=O.size),f&&f.current.length!==O.size&&(f.current.length=O.size),p.current=O.size),h(O)},[h,O,d,f,E]),(0,i.useIsoLayoutEffect)(()=>()=>{d.current=[]},[d]),(0,i.useIsoLayoutEffect)(()=>()=>{f&&(f.current=[])},[f]);let C=(0,r.useStableCallback)(e=>(m.add(e),()=>{m.delete(e)}));(0,i.useIsoLayoutEffect)(()=>{m.forEach(e=>e(O))},[m,O]);let T=t.useMemo(()=>({register:A,unregister:v,subscribeMapChange:C,elementsRef:d,labelsRef:f,nextIndexRef:p}),[A,v,C,d,f,p]);return(0,l.jsx)(s.CompositeListContext.Provider,{value:T,children:c})}],39060),e.s(["isElementDisabled",0,function(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}],96734)},96374,e=>{"use strict";var t=e.i(29315);let n="ArrowUp",r="ArrowDown",i="ArrowLeft",s="ArrowRight",l="Home",o=new Set([i,s]),u=new Set([i,s,l,"End"]),a=new Set([n,r]),c=new Set([n,r,l,"End"]),d=new Set([...o,...a]),f=new Set([...d,l,"End"]),g="Shift",h=new Set([g,"Control","Alt","Meta"]);function p(e,t,n){let r="left"===n?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function m(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}e.s(["ALL_KEYS",0,f,"ARROW_DOWN",0,r,"ARROW_KEYS",0,d,"ARROW_LEFT",0,i,"ARROW_RIGHT",0,s,"ARROW_UP",0,n,"END",0,"End","HOME",0,l,"HORIZONTAL_KEYS",0,o,"HORIZONTAL_KEYS_WITH_EXTRA_KEYS",0,u,"MODIFIER_KEYS",0,h,"SHIFT",0,g,"VERTICAL_KEYS",0,a,"VERTICAL_KEYS_WITH_EXTRA_KEYS",0,c,"isNativeInput",0,function(e){return!!((0,t.isHTMLElement)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,t.isHTMLElement)(e)&&"TEXTAREA"===e.tagName)},"scrollIntoViewIfNeeded",0,function(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,s=e.scrollTop,l=e.clientWidthe.scrollLeft+e.clientWidth-s.scrollPaddingRight?i=r+t.offsetWidth+l.scrollMarginRight-e.clientWidth+s.scrollPaddingRight:r-l.scrollMarginLefte.scrollLeft+e.clientWidth-s.scrollPaddingRight&&(i=r+t.offsetWidth+l.scrollMarginRight-e.clientWidth+s.scrollPaddingRight))}if(o&&"horizontal"!==r){let n=p(e,t,"top"),r=m(e),i=m(t);n-i.scrollMarginTope.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(s=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:s,behavior:"auto"})}])},43801,82033,494,e=>{"use strict";e.i(47167);var t=e.i(43084),n=e.i(29315);function r(e){e.preventDefault(),e.stopPropagation()}e.s(["isClickLikeEvent",0,function(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t},"isMouseLikePointerType",0,function(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)},"isReactEvent",0,function(e){return"nativeEvent"in e},"stopEvent",0,r],82033);let i="ArrowLeft",s="ArrowRight",l="ArrowUp",o="ArrowDown";function u(e,t,n){return Math.floor(e/t)!==n}function a(e,t){return t<0||t>=e.length}function c(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let s=t;do s+=n?-i:i;while(s>=0&&s<=e.length-1&&d(e,s,r))return s}function d(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;let r=e[t];return!!r&&(!f(r)||!n&&(r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")))}function f(e,t=e?(0,n.getComputedStyle)(e):null){var r;return!!e&&!!e.isConnected&&!!t&&"hidden"!==(r=t).visibility&&"collapse"!==r.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}e.s(["ACTIVE_KEY",0,"active","ARROW_DOWN",0,o,"ARROW_LEFT",0,i,"ARROW_RIGHT",0,s,"ARROW_UP",0,l,"FOCUSABLE_ATTRIBUTE",0,"data-base-ui-focusable","SELECTED_KEY",0,"selected","TYPEABLE_SELECTOR",0,"input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])"],494),e.s(["createGridCellMap",0,function(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:s},l)=>{let o=!1;for(n&&(i=0);!o;){let n=[];for(let r=0;rnull==r[e])?(n.forEach(e=>{r[e]=l}),o=!0):i+=1}}),[...r]},"findNonDisabledListIndex",0,c,"getGridCellIndexOfCorner",0,function(e,t,n,r,i){if(-1===e)return -1;let s=n.indexOf(e),l=t[e];switch(i){case"tl":return s;case"tr":if(!l)return s;return s+l.width-1;case"bl":if(!l)return s;return s+(l.height-1)*r;case"br":return n.lastIndexOf(e);default:return -1}},"getGridCellIndices",0,function(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])},"getGridNavigatedIndex",0,function(e,{event:n,orientation:f,loopFocus:g,onLoop:h,rtl:p,cols:m,disabledIndices:I,minIndex:E,maxIndex:b,prevIndex:R,stopEvent:A=!1}){let v,O=R;if(n.key===l?v="up":n.key===o&&(v="down"),v){let i=[],s=[],l=!1,o=0;{let t=null,n=-1;e.forEach((e,r)=>{if(null==e)return;o+=1;let u=e.closest('[role="row"]');u&&(l=!0),(u!==t||-1===n)&&(t=u,i[n+=1]=[]),i[n].push(r),s[r]=n})}let u=!1,f=0;if(l)for(let e of i){let t=e.length;t>f&&(f=t),t!==m&&(u=!0)}let p=u&&o{if(!u||-1===R)return;let r=s[R];if(null==r)return;let l=i[r].indexOf(R),o="up"===t?-1:1;for(let t=r+o,u=0;u=i.length){if(!g||p)return;if(t=t<0?i.length-1:0,h){let e=Math.min(l,i[t].length-1);t=s[h(n,R,i[t][e]??i[t][0])]??t}}let r=i[t];for(let t=Math.min(l,r.length-1);t>=0;t-=1){let n=r[t];if(!d(e,n,I))return n}}})(v)??(n=>{if(!p||-1===R)return;let r=R%C,i="up"===n?-C:C,s=b-b%C,l=(0,t.floor)(b/C)+1;for(let t=R-r+i,n=0;nb){if(!g)return;t=t<0?s:0}let n=Math.min(t+C-1,b);for(let i=Math.min(t+r,n);i>=t;i-=1)if(!d(e,i,I))return i}})(v);if(void 0!==T)O=T;else if(-1===R)O="up"===v?b:E;else if(O=c(e,{startingIndex:R,amount:C,decrement:"up"===v,disabledIndices:I}),g){if("up"===v&&(R-Ce?r:r-C,h&&(O=h(n,R,O))}"down"===v&&R+C>b&&(O=c(e,{startingIndex:R%C-C,amount:C,disabledIndices:I}),h&&(O=h(n,R,O)))}a(e,O)&&(O=R)}if("both"===f){let l=(0,t.floor)(R/m);n.key===(p?i:s)&&(A&&r(n),R%m!=m-1?(O=c(e,{startingIndex:R,disabledIndices:I}),g&&u(O,m,l)&&(O=c(e,{startingIndex:R-R%m-1,disabledIndices:I}),h&&(O=h(n,R,O)))):g&&(O=c(e,{startingIndex:R-R%m-1,disabledIndices:I}),h&&(O=h(n,R,O))),u(O,m,l)&&(O=R)),n.key===(p?s:i)&&(A&&r(n),R%m!=0?(O=c(e,{startingIndex:R,decrement:!0,disabledIndices:I}),g&&u(O,m,l)&&(O=c(e,{startingIndex:R+(m-R%m),decrement:!0,disabledIndices:I}),h&&(O=h(n,R,O)))):g&&(O=c(e,{startingIndex:R+(m-R%m),decrement:!0,disabledIndices:I}),h&&(O=h(n,R,O))),u(O,m,l)&&(O=R));let o=(0,t.floor)(b/m)===l;a(e,O)&&(g&&o?(O=n.key===(p?s:i)?b:c(e,{startingIndex:R-R%m-1,disabledIndices:I}),h&&(O=h(n,R,O))):O=R)}return O},"getMaxListIndex",0,function(e,t){return c(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})},"getMinListIndex",0,function(e,t){return c(e.current,{disabledIndices:t})},"isElementVisible",0,f,"isIndexOutOfListBounds",0,a,"isListIndexDisabled",0,d],43801)},52640,e=>{"use strict";e.s(["ACTIVE_COMPOSITE_ITEM",0,"data-composite-item-active"])},91822,e=>{"use strict";var t=e.i(71645);let n=t.createContext(void 0);e.s(["useDirection",0,function(){let e=t.useContext(n);return e?.direction??"ltr"}])},80877,e=>{"use strict";var t=e.i(71645),n=e.i(17514),r=e.i(39060),i=e.i(96734),s=e.i(76477),l=e.i(26292),o=e.i(96374),u=e.i(43801),a=e.i(52640),c=e.i(30780);let d=[];var f=e.i(84977),g=e.i(69095),h=e.i(91822),p=e.i(43476);e.s(["CompositeRoot",0,function(e){let{render:m,className:I,style:E,refs:b=n.EMPTY_ARRAY,props:R=n.EMPTY_ARRAY,state:A=n.EMPTY_OBJECT,stateAttributesMapping:v,highlightedIndex:O,onHighlightedIndexChange:C,orientation:T,dense:S,itemSizes:M,loopFocus:x,onLoop:y,cols:L,enableHomeAndEndKeys:P,onMapChange:_,stopEventPropagation:w=!0,rootRef:k,disabledIndices:N,modifierKeys:W,highlightItemOnHover:D=!1,tag:F="div",...Y}=e,{props:H,highlightedIndex:K,onHighlightedIndexChange:B,elementsRef:G,onMapChange:U,relayKeyboardEvent:z}=function(e){let{itemSizes:n,cols:r=1,loopFocus:f=!0,onLoop:g,dense:h=!1,orientation:p="both",direction:m,highlightedIndex:I,onHighlightedIndexChange:E,rootRef:b,enableHomeAndEndKeys:R=!1,stopEventPropagation:A=!1,disabledIndices:v,modifierKeys:O=d}=e,[C,T]=t.useState(0),S=r>1,M=t.useRef(null),x=(0,l.useMergedRefs)(M,b),y=t.useRef([]),L=t.useRef(!1),P=I??C,_=(0,s.useStableCallback)((e,t=!1)=>{if((E??T)(e),t){let t=y.current[e];(0,o.scrollIntoViewIfNeeded)(M.current,t,m,p)}}),w=(0,s.useStableCallback)(e=>{if(0===e.size||L.current)return;L.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(a.ACTIVE_COMPOSITE_ITEM))??null,r=n?t.indexOf(n):-1;-1!==r&&_(r),(0,o.scrollIntoViewIfNeeded)(M.current,n,m,p)}),k=(0,s.useStableCallback)((e,t,n)=>g?g?.(e,t,n,y):n),N=t.useMemo(()=>({"aria-orientation":"both"===p?void 0:p,ref:x,onFocus(e){let t=M.current,n=(0,c.getTarget)(e.nativeEvent);t&&null!=n&&(0,o.isNativeInput)(n)&&n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let t=R?o.ALL_KEYS:o.ARROW_KEYS;if(!t.has(e.key)||function(e,t){for(let n of o.MODIFIER_KEYS.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}(e,O)||!M.current)return;let s="rtl"===m,l=s?o.ARROW_LEFT:o.ARROW_RIGHT,a={horizontal:l,vertical:o.ARROW_DOWN,both:l}[p],d=s?o.ARROW_RIGHT:o.ARROW_LEFT,I={horizontal:d,vertical:o.ARROW_UP,both:d}[p],E=(0,c.getTarget)(e.nativeEvent);if(null!=E&&(0,o.isNativeInput)(E)&&!(0,i.isElementDisabled)(E)){let t=E.selectionStart,n=E.selectionEnd,r=E.value??"";if(null==t||e.shiftKey||t!==n||e.key!==I&&t0)return}let b=P,C=(0,u.getMinListIndex)(y,v),T=(0,u.getMaxListIndex)(y,v);if(S){let t=n||Array.from({length:y.current.length},()=>({width:1,height:1})),i=(0,u.createGridCellMap)(t,r,h),l=i.findIndex(e=>null!=e&&!(0,u.isListIndexDisabled)(y.current,e,v)),a=i.reduce((e,t,n)=>null==t||(0,u.isListIndexDisabled)(y.current,t,v)?e:n,-1);b=i[(0,u.getGridNavigatedIndex)(i.map(e=>null!=e?y.current[e]:null),{event:e,orientation:p,loopFocus:f,onLoop:k,cols:r,disabledIndices:(0,u.getGridCellIndices)([...v||y.current.map((e,t)=>(0,u.isListIndexDisabled)(y.current,t)?t:void 0),void 0],i),minIndex:l,maxIndex:a,prevIndex:(0,u.getGridCellIndexOfCorner)(P>T?C:P,t,i,r,e.key===o.ARROW_DOWN?"bl":e.key===o.ARROW_RIGHT?"tr":"tl"),rtl:s})]}let x={horizontal:[l],vertical:[o.ARROW_DOWN],both:[l,o.ARROW_DOWN]}[p],L={horizontal:[d],vertical:[o.ARROW_UP],both:[d,o.ARROW_UP]}[p],w=S?t:({horizontal:R?o.HORIZONTAL_KEYS_WITH_EXTRA_KEYS:o.HORIZONTAL_KEYS,vertical:R?o.VERTICAL_KEYS_WITH_EXTRA_KEYS:o.VERTICAL_KEYS,both:t})[p];R&&(e.key===o.HOME?b=C:e.key===o.END&&(b=T)),b===P&&(x.includes(e.key)||L.includes(e.key))&&(f&&b===T&&x.includes(e.key)?(b=C,g&&(b=g(e,P,b,y))):f&&b===C&&L.includes(e.key)?(b=T,g&&(b=g(e,P,b,y))):b=(0,u.findNonDisabledListIndex)(y.current,{startingIndex:b,decrement:L.includes(e.key),disabledIndices:v})),b===P||(0,u.isIndexOutOfListBounds)(y.current,b)||(A&&e.stopPropagation(),w.has(e.key)&&e.preventDefault(),_(b,!0),queueMicrotask(()=>{y.current[b]?.focus()}))}}),[r,h,m,v,y,R,P,S,n,f,g,k,x,O,_,p,A]);return t.useMemo(()=>({props:N,highlightedIndex:P,onHighlightedIndexChange:_,elementsRef:y,disabledIndices:v,onMapChange:w,relayKeyboardEvent:N.onKeyDown}),[N,P,_,y,v,w])}({itemSizes:M,cols:L,loopFocus:x,onLoop:y,dense:S,orientation:T,highlightedIndex:O,onHighlightedIndexChange:C,rootRef:k,stopEventPropagation:w,enableHomeAndEndKeys:P,direction:(0,h.useDirection)(),disabledIndices:N,modifierKeys:W}),V=(0,g.useRenderElement)(F,e,{state:A,ref:b,props:[H,...R,Y],stateAttributesMapping:v}),q=t.useMemo(()=>({highlightedIndex:K,onHighlightedIndexChange:B,highlightItemOnHover:D,relayKeyboardEvent:z}),[K,B,D,z]);return(0,p.jsx)(f.CompositeRootContext.Provider,{value:q,children:(0,p.jsx)(r.CompositeList,{elementsRef:G,onMapChange:e=>{_?.(e),U(e)},children:V})})}],80877)},86790,e=>{"use strict";var t=e.i(83799);e.s(["useBaseUiId",0,function(e){return(0,t.useId)(e,"base-ui")}])},62372,e=>{"use strict";let t={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},n={...t,position:"fixed",top:0,left:0},r={...t,position:"absolute"};e.s(["visuallyHidden",0,n,"visuallyHiddenInput",0,r])},30084,e=>{"use strict";var t,n=e.i(17514),r=e.i(69095),i=e.i(71645),s=e.i(26292),l=e.i(84977),o=e.i(977),u=e.i(80724);let a=((t={})[t.None=0]="None",t[t.GuessFromOrder=1]="GuessFromOrder",t);e.s(["CompositeItem",0,function(e){let{render:t,className:c,style:d,state:f=n.EMPTY_OBJECT,props:g=n.EMPTY_ARRAY,refs:h=n.EMPTY_ARRAY,metadata:p,stateAttributesMapping:m,tag:I="div",...E}=e,{compositeProps:b,compositeRef:R}=function(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=(0,l.useCompositeRootContext)(),{ref:c,index:d}=function(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:s,index:l}=e,{register:c,unregister:d,subscribeMapChange:f,elementsRef:g,labelsRef:h,nextIndexRef:p}=(0,u.useCompositeListContext)(),m=i.useRef(-1),[I,E]=i.useState(l??(s===a.GuessFromOrder?()=>{if(-1===m.current){let e=p.current;p.current+=1,m.current=e}return m.current}:-1)),b=i.useRef(null),R=i.useCallback(e=>{if(b.current=e,-1!==I&&null!==e&&(g.current[I]=e,h)){let n=void 0!==t;h.current[I]=n?t:r?.current?.textContent??e.textContent}},[I,g,h,t,r]);return(0,o.useIsoLayoutEffect)(()=>{if(null!=l)return;let e=b.current;if(e)return c(e,n),()=>{d(e)}},[l,c,d,n]),(0,o.useIsoLayoutEffect)(()=>{if(null==l)return f(e=>{let t=b.current?e.get(b.current)?.index:null;null!=t&&E(t)})},[l,f,E]),i.useMemo(()=>({ref:R,index:I}),[I,R])}(e),f=n===d,g=i.useRef(null),h=(0,s.useMergedRefs)(c,g);return{compositeProps:i.useMemo(()=>({tabIndex:f?0:-1,onFocus(){r(d)},onMouseMove(){let e=g.current;if(!t||!e)return;let n=e.hasAttribute("disabled")||"true"===e.ariaDisabled;f||n||e.focus()}}),[f,r,d,t]),compositeRef:h,index:d}}({metadata:p});return(0,r.useRenderElement)(I,e,{state:f,ref:[...h,R],props:[b,...g,E],stateAttributesMapping:m})}],30084)}]);