1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,58549,e=>{"use strict";var t=e.i(823316),n=e.i(406798),r=e.i(922190),i=e.i(232940),l=e.i(90531),o=e.i(903202),s=e.i(623972),a=e.i(583797),u=e.i(828646),c=e.i(75975),d=e.i(171291),f=e.i(63534),p=e.i(249506),h=e.i(977926),g=e.i(303530),y=e.i(769299),m=e.i(924470),v=e.i(258268),b=e.i(271645),S=e.i(381560);let E=(0,b.createContext)(null),C=(0,b.createContext)(null),w=(0,b.createContext)(null),K=(0,b.createContext)(null);e.s(["Autocomplete",0,function(e){let x=(0,t.useSlottedContext)(E,e.slot),{filter:P,disableAutoFocusFirst:k}=e=(0,c.mergeProps)(x,e),N=function(e){let{onInputChange:t,inputValue:n,defaultInputValue:r=""}=e,[i,l]=(0,b.useState)(null),[o,s]=(0,S.useControlledState)(n,r,e=>{t&&t(e)});return{inputValue:o,setInputValue:s,focusedNodeId:i,setFocusedNodeId:l}}(e),T=(0,b.useRef)(null),R=(0,b.useRef)(null),{inputProps:M,collectionProps:L,collectionRef:F,filter:D}=function(e,t){var S;let{inputRef:E,collectionRef:C,filter:w,disableAutoFocusFirst:K=!1,disableVirtualFocus:x=!1}=e,P=(0,h.useId)(),k=(0,b.useRef)(void 0),N=(0,b.useRef)(!1),T=(0,b.useRef)(null),R="virtual"===(0,l.getInteractionModality)()&&((0,a.isIOS)()||(0,a.isAndroid)()),[M,L]=(0,b.useState)(!R&&!x),[F,D]=(0,b.useState)(!1),[I,A]=(0,b.useState)(!1);(0,b.useEffect)(()=>()=>clearTimeout(k.current),[]);let O=(0,f.useEffectEvent)(e=>{!e.isTrusted&&M&&E.current&&(0,i.getActiveElement)((0,o.getOwnerDocument)(E.current))!==E.current&&"touch"!==(0,l.getPointerType)()&&E.current.focus();let n=(0,i.getEventTarget)(e);!e.isTrusted&&n&&T.current!==n.id&&(clearTimeout(k.current),n!==C.current?N.current?(T.current=n.id,k.current=setTimeout(()=>{t.setFocusedNodeId(n.id)},500)):(T.current=n.id,t.setFocusedNodeId(n.id)):T.current&&!document.getElementById(T.current)&&(T.current=null,t.setFocusedNodeId(null)),N.current=!1)}),[B,V]=(0,b.useState)(null),_=(0,b.useCallback)(e=>{V(e),null!=e?(null!=e.getAttribute("tabindex")&&L(!1),D(!0)):D(!1)},[]);(0,y.useLayoutEffect)(()=>(null!=B&&B.addEventListener("focusin",O),()=>{B?.removeEventListener("focusin",O)}),[B]);let H=(0,v.useObjectRef)((0,b.useMemo)(()=>(0,d.mergeRefs)(C,_),[C,_])),z=(0,b.useCallback)(()=>{C.current?(N.current=!0,C.current?.dispatchEvent(new CustomEvent(n.FOCUS_EVENT,{cancelable:!0,bubbles:!0,detail:{focusStrategy:"first"}}))):A(!0)},[C]),W=(0,b.useCallback)(e=>{A(!1),(0,r.moveVirtualFocus)((0,i.getActiveElement)()),T.current=null,t.setFocusedNodeId(null);let l=new CustomEvent(n.CLEAR_FOCUS_EVENT,{cancelable:!0,bubbles:!0,detail:{clearFocusKey:e}});clearTimeout(k.current),N.current=!1,C.current?.dispatchEvent(l)},[C,t]),U=(0,b.useRef)("");(0,p.useEvent)(E,"beforeinput",e=>{let{inputType:t}=e;U.current=t});let j=(0,b.useRef)(null),$=(0,f.useEffectEvent)(e=>{if((0,i.getEventTarget)(e)===j.current){e.stopImmediatePropagation();let t=T.current;if(null==t)C.current?.dispatchEvent(new KeyboardEvent(e.type,e));else{let n=document.getElementById(t);n?.dispatchEvent(new KeyboardEvent(e.type,e))}}});(0,b.useEffect)(()=>(document.addEventListener("keyup",$,!0),()=>{document.removeEventListener("keyup",$,!0)}),[]);let q=(0,m.useLocalizedStringFormatter)((S=s.default)&&S.__esModule?S.default:S,"@react-aria/autocomplete"),G=(0,g.useLabels)({id:P,"aria-label":q.format("collectionLabel")}),J=(0,b.useCallback)((e,n)=>!w||w(e,t.inputValue,n),[t.inputValue,w]),Y={value:t.inputValue,onChange:e=>{"insertText"!==U.current&&"insertCompositionText"!==U.current&&"insertFromComposition"!==U.current||K?U.current&&(U.current.includes("insert")||U.current.includes("delete")||U.current.includes("history"))&&(W(!0),(0,r.getVirtuallyFocusedElement)(document)===E.current&&(0,r.dispatchVirtualFocus)(E.current,null)):z(),t.setInputValue(e)}},Z={onKeyDown:e=>{if(j.current=(0,i.getEventTarget)(e),e.nativeEvent.isComposing)return;let t=T.current;switch(null!==t&&null==(0,o.getOwnerDocument)(E.current).getElementById(t)&&(T.current=null,t=null),e.key){case"a":if((0,u.isCtrlKeyPressed)(e))return;break;case"Escape":if(e.isDefaultPrevented())return;break;case" ":return;case"Tab":"continuePropagation"in e&&e.continuePropagation();return;case"Home":case"End":case"PageDown":case"PageUp":case"ArrowUp":case"ArrowDown":case"ArrowRight":case"ArrowLeft":{if(("Home"===e.key||"End"===e.key)&&null==t&&e.shiftKey)return;if("ArrowRight"===e.key||"ArrowLeft"===e.key){if(null==t){e.isPropagationStopped()||e.stopPropagation();return}break}e.preventDefault();let r=new CustomEvent(n.FOCUS_EVENT,{cancelable:!0,bubbles:!0});C.current?.dispatchEvent(r)}}e.isPropagationStopped()||e.stopPropagation();let r=!0;if(null!==C.current)if(null==t)r=C.current?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1;else{let n=document.getElementById(t);n&&(r=n?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent))||!1)}if(r)switch(e.key){case"ArrowLeft":case"ArrowRight":W();break;case"Enter":if(null!=t){let n=document.getElementById(t);n?.dispatchEvent(new PointerEvent("click",e.nativeEvent))}}else e.preventDefault()},"aria-activedescendant":t.focusedNodeId??void 0,onBlur:e=>{if(!e.isTrusted)return;let t=T.current?document.getElementById(T.current):null;t&&(0,r.dispatchVirtualBlur)(t,e.relatedTarget)},onFocus:e=>{if(e.isTrusted&&(T.current?document.getElementById(T.current):null)){let t=(0,i.getEventTarget)(e);queueMicrotask(()=>{(0,r.dispatchVirtualBlur)(t,C.current),(0,r.dispatchVirtualFocus)(C.current,t)})}},onPointerDown:e=>{0===e.button&&"touch"!==e.pointerType&&null!=T.current&&null!=E.current&&(0,i.getEventTarget)(e)===E.current&&W()}};return{inputProps:Y={...Y,...M&&F&&Z,enterKeyHint:"go","aria-controls":F?P:void 0,"aria-autocomplete":"list",autoCorrect:"off",spellCheck:"false",autoComplete:"off"},collectionProps:(0,c.mergeProps)(G,{shouldUseVirtualFocus:M,disallowTypeAhead:M,autoFocus:!!I&&"first"}),collectionRef:H,filter:null!=w?J:void 0}}({...(0,t.removeDataAttributes)(e),filter:P,disableAutoFocusFirst:k,inputRef:T,collectionRef:R},N);return b.default.createElement(t.Provider,{values:[[C,N],[K,{...M,ref:T}],[w,{...L,filter:D,ref:F}]]},e.children)},"FieldInputContext",0,K,"SelectableCollectionContext",0,w],58549)},550840,259775,707426,302129,361582,e=>{"use strict";class t{constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}get childNodes(){throw Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}}class n extends t{filter(e,t,n){let[r,i]=a(e,t,this.firstChildKey,n),l=this.clone();return l.firstChildKey=r,l.lastChildKey=i,l}}class r extends t{static{this.type="header"}}class i extends t{static{this.type="loader"}}
1class l extends n{static{this.type="item"}filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}}class o extends n{static{this.type="section"}filter(e,t,n){let r=super.filter(e,t,n);if(r&&null!==r.lastChildKey){let t=e.getItem(r.lastChildKey);if(t&&"header"!==t.type)return r}return null}}class s{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=null!=this.firstKey?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=null!=e.nextKey?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey!=null?t.get(n.firstChildKey):null;for(;r;)yield r,r=null!=r.nextKey?t.get(r.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(null!=t.prevKey){for(t=this.keyMap.get(t.prevKey);t&&"item"!==t.type&&null!=t.lastChildKey;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if("item"!==t.type&&null!=t.firstChildKey)return t.firstChildKey;for(;t;){if(null!=t.nextKey)return t.nextKey;if(null!=t.parentKey)t=this.keyMap.get(t.parentKey);else break}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=null!=this.lastKey?this.keyMap.get(this.lastKey):null;for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error("Not implemented")}clone(){let e=new this.constructor;return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e.itemCount=this.itemCount,e}addNode(e){if(this.frozen)throw Error("Cannot add a node to a frozen collection");"item"===e.type&&null==this.keyMap.get(e.key)&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){for(let n of(this.addNode(e),t.getChildren(e.key)))this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);null!=t&&"item"===t.type&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=a(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function a(e,t,n,r){if(null==n)return[null,null];let i=null,l=null,o=e.getItem(n);for(;null!=o;){let n=o.filter(e,t,r);null!=n&&(n.nextKey=null,l&&(n.prevKey=l.key,l.nextKey=n.key),null==i&&(i=n),t.addNode(n),l=n),o=null!=o.nextKey?e.getItem(o.nextKey):null}if(l&&"separator"===l.type){let e=l.prevKey;t.removeNode(l.key),null!=e?(l=t.getItem(e)).nextKey=null:l=null}return[i?.key??null,l?.key??null]}e.s(["BaseCollection",0,s,"CollectionNode",0,t,"FilterableNode",0,n,"HeaderNode",0,r,"ItemNode",0,l,"LoaderNode",0,i,"SectionNode",0,o],259775);class u{constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(null==this._minInvalidChildIndex||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),null==this.firstChild&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(null==t)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e
1:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}}class c extends u{constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof c?this.parentNode.level+ +(this.parentNode.node?.type==="item"):0}getMutableNode(){return null==this.node?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let e=this.nextVisibleSibling,t=this.getMutableNode();if(null!=t&&(t.index=this.index,t.level=this.level,t.parentKey=this.parentNode instanceof c?this.parentNode.node?.key??null:null,t.prevKey=this.previousVisibleSibling?.node?.key??null,t.nextKey=e?.node?.key??null,t.hasChildNodes=!!this.firstChild,t.firstChildKey=this.firstVisibleChild?.node?.key??null,t.lastChildKey=this.lastVisibleChild?.node?.key??null,(null!=t.colSpan||null!=t.colIndex)&&e)){let n=(t.colIndex??t.index)+(t.colSpan??1);null!=e.node&&n!==e.node.colIndex&&(e.getMutableNode().colIndex=n)}}setProps(e,t,n,r,i){let l,{value:o,textValue:s,id:a,...u}=e;if(null==this.node?(l=new n(a??`react-aria-${++this.ownerDocument.nodeId}`),this.node=l):l=this.getMutableNode(),u.ref=t,l.props=u,l.rendered=r,l.render=i,l.value=o,e["aria-label"]&&(l["aria-label"]=e["aria-label"]),l.textValue=s||("string"==typeof u.children?u.children:"")||e["aria-label"]||"",null!=a&&a!==l.key)throw Error("Cannot change the id of an item");null!=u.colSpan&&(l.colSpan=u.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?"none":""},set display(value){let t="none"===value;if(e.isHidden!==t){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let n=e.previousVisibleSibling,r=e.nextVisibleSibling;n&&e.ownerDocument.markDirty(n),r&&e.ownerDocument.markDirty(r),e.isHidden=t,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class d extends u{constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}get isConnected(){return!0}createElement(e){return new c(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||null==e.node)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription||(this.queuedRender=!1,this.updateCollection()),this.collection}updateCollection(){for(let e of this.dirtyNodes)e instanceof c&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof c?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);
1this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(0!==this.dirtyNodes.size&&!this.queuedRender){for(let e of(this.queuedRender=!0,this.inSubscription=!0,this.isSSR||(this.collection=this.collection.clone()),this.subscriptions))e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}var f=e.i(271645);function p(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:l=[]}=e,o=(0,f.useMemo)(()=>void 0,[t]),s=(0,f.useMemo)(()=>new WeakMap,[...l,o]);return(0,f.useMemo)(()=>{if(n&&"function"==typeof t){let e=[];for(let l of n){let n=!function(e){switch(typeof e){case"object":return null!=e;case"function":case"symbol":return!0;default:return!1}}(l)?null:l,o=n?s.get(n):null;if(!o){let a=(o=t(l)).props.id??l?.key??l?.id;null!=r&&null==o.props.id&&null!=a&&(a=r+":"+a);let u=a??e.length;o=(0,f.cloneElement)(o,i?{key:u,id:a,value:l}:{key:u}),n&&s.set(n,o)}e.push(o)}return e}if("function"!=typeof t)return t},[t,n,s,r,i])}e.s(["useCachedChildren",0,p],707426);var h=e.i(562918),g=e.i(741975),y=e.i(343221),m=e.i(174080),v=e.i(802239);let b=(0,f.createContext)(!1),S=(0,f.createContext)(null);function E({collection:e,render:t}){return t(e)}let C="function"==typeof f.default.useSyncExternalStore?f.default.useSyncExternalStore:function(e,t,n){let r=(0,y.useIsSSR)(),i=(0,f.useRef)(r);i.current=r;let l=(0,f.useCallback)(()=>i.current?n():t(),[t,n]);return(0,v.useSyncExternalStore)(e,l)},w=(0,f.createContext)(null);function K(e,n,r,i,l,o){"string"==typeof e&&(e=function(e){return class extends t{static{this.type=e}}}(e));let s=(0,f.useCallback)(t=>
1{t?.setProps(n,r,e,i,o)},[n,r,i,o,e]),a=(0,f.useContext)(w);if(a){let t=a.ownerDocument.nodesByProps.get(n);return t||((t=a.ownerDocument.createElement(e.type)).setProps(n,r,e,i,o),a.appendChild(t),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(n,t)),l?f.default.createElement(w.Provider,{value:t},l):null}return f.default.createElement(e.type,{ref:s},l)}function x(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=(0,f.forwardRef)((r,i)=>{let l=(0,f.useContext)(h.FocusableContext);if(!(0,f.useContext)(b)){if(t.length>=3)throw Error(t.name+" cannot be rendered outside a collection.");return t(r,i)}return K(e,r,i,"children"in r?r.children:null,null,e=>f.default.createElement(h.FocusableContext.Provider,{value:l},f.default.createElement(n,{node:e})))});return r.displayName=t.name,r}function P(e){return p({...e,addIdAndValue:!0})}let k=(0,f.createContext)(null);function N({children:e}){let t=(0,f.useContext)(S),n=(0,f.useMemo)(()=>f.default.createElement(S.Provider,{value:null},f.default.createElement(b.Provider,{value:!0},e)),[e]);return(0,y.useIsSSR)()?f.default.createElement(w.Provider,{value:t},n):(0,m.createPortal)(n,t)}e.s(["Collection",0,function(e){let t=(0,f.useContext)(k),n=(t?.dependencies||[]).concat(e.dependencies),r=e.idScope??t?.idScope,i=P({...e,idScope:r,dependencies:n});return(0,f.useContext)(S)&&(i=f.default.createElement(N,null,i)),t=(0,f.useMemo)(()=>({dependencies:n,idScope:r}),[r,...n]),f.default.createElement(k.Provider,{value:t},i)},"CollectionBuilder",0,function(e){if((0,f.useContext)(S))return e.content;let{collection:t,document:n}=function(e){let[t]=(0,f.useState)(()=>new d(e?.()||new s));return{collection:C((0,f.useCallback)(e=>t.subscribe(e),[t]),(0,f.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,f.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t])),document:t}}(e.createCollection);return f.default.createElement(f.default.Fragment,null,f.default.createElement(g.Hidden,null,f.default.createElement(S.Provider,{value:n},e.content)),f.default.createElement(E,{render:e.children,collection:t}))},"createBranchComponent",0,function(e,t,n=P){let r=({node:e})=>t(e.props,e.props.ref,e),i=(0,f.forwardRef)((t,i)=>{let l=n(t);return K(e,t,i,null,l,e=>f.default.createElement(r,{node:e}))??f.default.createElement(f.default.Fragment,null)});return i.displayName=t.name,i},"createLeafComponent",0,x],302129);let T=(0,f.createContext)(null),R={CollectionRoot:({collection:e,renderDropIndicator:t})=>M(e,null,t),CollectionBranch:({collection:e,parent:t,renderDropIndicator:n})=>M(e,t,n)};function M(e,t,n){return p({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){if("content"===t.type)return f.default.createElement(f.default.Fragment,null);let r=t.render(t);return n&&"item"===t.type?f.default.createElement(f.default.Fragment,null,n({type:"item",key:t.key,dropPosition:"before"}),r,L(e,t,n)):r}})}function L(e,t,n){let r=t.key,i=e.getKeyAfter(r),l=null!=i?e.getItem(i):null;for(;null!=l&&"item"!==l.type;)l=null!=(i=e.getKeyAfter(l.key))?e.getItem(i):null;let o=null!=t.nextKey?e.getItem(t.nextKey):null;for(;null!=o&&"item"!==o.type;)o=null!=o.nextKey?e.getItem(o.nextKey):null;let s=[];if(null==o){let r=t;for(;r?.type==="item"&&(!l||r.parentKey!==l.parentKey&&l.level<r.level);){let t=n({type:"item",key:r.key,dropPosition:"after"});(0,f.isValidElement)(t)&&s.push((0,f.cloneElement)(t,{key:`${r.key}-after`})),r=null!=r.parentKey?e.getItem(r.parentKey):null}}return s}let F=(0,f.createContext)(R);e.s(["CollectionRendererContext",0,F,"DefaultCollectionRenderer",0,R,"SectionContext",0,T,"renderAfterDropIndicators",0,L,"usePersistedKeys",0,function(e){return(0,f.useMemo)(()=>null!=e?new Set([e]):null,[e])}],550840);var D=e.i(823316);let I=(0,f.createContext)({}),A=x(r,function(e,t){return[e,t]=(0,D.useContextProps)(e,t,I),f.default.createElement(D.dom.header,{className:"react-aria-Header",...e,ref:t},e.children)});e.s(["Header",0,A,"HeaderContext",0,I],361582)},207487,866069,e=>{"use strict";e.s(["Dialog",()=>et,"DialogTrigger",()=>ee,"OverlayTriggerStateContext",()=>Q],207487),e.s(["Menu",()=>_,"MenuItem",()=>$,"MenuSection",()=>U,"MenuTrigger",()=>O,"RootMenuTriggerStateContext",()=>I],866069);var t=e.i(683579),n=e.i(823316),r=e.i(758282),i=e.i(409059),l=e.i(550840),o=e.i(58549),s=e.i(361582),a=e.i(541494),u=e.i(510390),c=e.i(388386),d=e.i(890319),f=e.i(246562),p=e.i(789212),h=(e.i(630344),e.i(432860)),g=e.i(553555),y=e.i(23979),m=e.i(259775),v=e.i(538985),b=(e.i(467743),e.i(302129)),S=e.i(871356),E=e.i(218602),C=e.i(75975),w=e.i(614059),K=e.i(271645),x=e.i(39823),P=e.i(764465),k=e.i(537593),N=e.i(381560),T=e.i(515009),R=e.i(433336),M=e.i(741975),L=e.i(258268);let F=(0,K.createContext)(null),D=(0,K.createContext)(null),I=(0,K.createContext)(null),A=(0,K.createContext)(null);function O(e){let t=(0,v.useMenuTriggerState)(e),r=(0,K.useRef)(null),{menuTriggerProps:l,menuProps:o}=(0,p.useMenuTrigger)({...e,type:"menu"},t,r),s=(0,K.useRef)(null);
1return(0,M.useIsHidden)()?null:K.default.createElement(n.Provider,{values:[[F,{...o,ref:s}],[Q,t],[I,t],[i.PopoverContext,{trigger:"MenuTrigger",triggerRef:r,scrollRef:s,placement:"bottom start","aria-labelledby":o["aria-labelledby"]}]]},K.default.createElement(w.PressResponder,{...l,ref:r,isPressed:t.isOpen},e.children))}let B=(0,K.createContext)(null);class V extends m.CollectionNode{static{this.type="submenutrigger"}filter(e,t,n){let r=e.getItem(this.firstChildKey);if(r&&n(r.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}}let _=(0,K.forwardRef)(function(e,t){return[e,t]=(0,n.useContextProps)(e,t,F),K.default.createElement(b.CollectionBuilder,{content:K.default.createElement(b.Collection,e)},n=>K.default.createElement(H,{props:e,collection:n,menuRef:t}))});function H({props:e,collection:t,menuRef:r}){[e,r]=(0,n.useContextProps)(e,r,o.SelectableCollectionContext);let{filter:i,...s}=e,a=(0,K.useMemo)(()=>i?t.filter(i):t,[t,i]),u=function(e){let{onExpandedChange:t}=e,[n,r]=(0,N.useControlledState)(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=(0,T.useMultipleSelectionState)(e),l=(0,K.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=(0,k.useCollection)(e,(0,K.useCallback)(e=>new(0,P.TreeCollection)(e,{expandedKeys:n}),[n]),null);return(0,K.useEffect)(()=>{null==i.focusedKey||o.getItem(i.focusedKey)||i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:l,toggleKey:e=>{var t,i;let l;r((t=n,i=e,(l=new Set(t)).has(i)?l.delete(i):l.add(i),l))},setExpandedKeys:r,selectionManager:new(0,x.SelectionManager)(o,i)}}({...e,collection:a,children:void 0}),f=(0,K.useContext)(I),{isVirtualized:p,CollectionRoot:g}=(0,K.useContext)(l.CollectionRendererContext),{menuProps:y}=(0,h.useMenu)({...e,isVirtualized:p,onClose:e.onClose||f?.close},u,r),m=(0,n.useRenderProps)({...e,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:0===u.collection.size}}),b=null;0===u.collection.size&&e.renderEmptyState&&(b=K.default.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let w=(0,S.filterDOMProps)(e,{global:!0});return K.default.createElement(E.FocusScope,null,K.default.createElement(n.dom.div,{...(0,C.mergeProps)(w,m,y),ref:r,slot:e.slot||void 0,"data-empty":0===u.collection.size||void 0,onScroll:e.onScroll},K.default.createElement(n.Provider,{values:[[D,u],[c.SeparatorContext,{elementType:"div"}],[l.SectionContext,{name:"MenuSection",render:W}],[B,{parentMenuRef:r,shouldUseVirtualFocus:s?.shouldUseVirtualFocus}],[j,{shouldCloseOnSelect:e.shouldCloseOnSelect}],[o.SelectableCollectionContext,null],[o.FieldInputContext,null],[A,u.selectionManager],[I,f??(0,v.useMenuTriggerState)({})]]},K.default.createElement(d.SharedElementTransition,null,K.default.createElement(g,{collection:u.collection,persistedKeys:(0,l.usePersistedKeys)(u.selectionManager.focusedKey),scrollRef:r}))),b))}class z extends x.SelectionManager{constructor(e,t){super(e.collection,t),this.parent=e}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}}function W(e,t,r,i="react-aria-MenuSection"){let o=(0,K.useContext)(D),{CollectionBranch:a}=(0,K.useContext)(l.CollectionRendererContext),[u,c]=(0,n.useSlot)(),{headingProps:d,groupProps:f}=(0,g.useMenuSection)({heading:c,"aria-label":r.props["aria-label"]??void 0}),p=(0,n.useRenderProps)({...e,id:void 0,children:void 0,defaultClassName:i,className:r.props?.className,style:r.props?.style,values:void 0}),h=(0,K.useContext)(A),y=(0,T.useMultipleSelectionState)(e),m=null!=e.selectionMode?new z(h,y):h,v=(0,n.useSlottedContext)(j)?.shouldCloseOnSelect,b=(0,S.filterDOMProps)(e,{global:!0});return delete b.id,K.default.createElement(n.dom.section,{...(0,C.mergeProps)(b,p,f),ref:t},K.default.createElement(n.Provider,{values:[[s.HeaderContext,{...d,ref:u}],[A,m],[j,{shouldCloseOnSelect:e.shouldCloseOnSelect??v}]]},K.default.createElement(a,{collection:o.collection,parent:r})))}let U=(0,b.createBranchComponent)(m.SectionNode,W),j=(0,K.createContext)(null),$=(0,b.createLeafComponent)(m.ItemNode,function(e,t,r){[e,t]=(0,n.useContextProps)(e,t,j
1);let i=(0,n.useSlottedContext)(j)?.id,o=(0,K.useContext)(D),s=(0,L.useObjectRef)(t),c=(0,K.useContext)(A),{isVirtualized:d}=(0,K.useContext)(l.CollectionRendererContext),{menuItemProps:p,labelProps:h,descriptionProps:g,keyboardShortcutProps:m,...v}=(0,y.useMenuItem)({...e,id:i,key:r.key,selectionManager:c,isVirtualized:d},o,s),{hoverProps:b,isHovered:E}=(0,R.useHover)({isDisabled:v.isDisabled}),w=(0,n.useRenderProps)({...e,id:void 0,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...v,isHovered:E,isFocusVisible:v.isFocusVisible,selectionMode:c.selectionMode,selectionBehavior:c.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:"true"===e["aria-expanded"]}}),x=e.href?n.dom.a:n.dom.div,P=(0,S.filterDOMProps)(e,{global:!0});return delete P.id,delete P.onClick,K.default.createElement(x,{...(0,C.mergeProps)(P,w,p,b),ref:s,"data-disabled":v.isDisabled||void 0,"data-hovered":E||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":v.isFocusVisible||void 0,"data-pressed":v.isPressed||void 0,"data-selected":v.isSelected||void 0,"data-selection-mode":"none"===c.selectionMode?void 0:c.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":"true"===e["aria-expanded"]||void 0},K.default.createElement(n.Provider,{values:[[f.TextContext,{slots:{[n.DEFAULT_SLOT]:h,label:h,description:g}}],[a.KeyboardContext,m],[u.SelectionIndicatorContext,{isSelected:v.isSelected}]]},w.children))});var q=e.i(478607),G=e.i(232940),J=e.i(368755),Y=e.i(977926),Z=e.i(254142);let X=(0,K.createContext)(null),Q=(0,K.createContext)(null);function ee(e){let t=(0,v.useMenuTriggerState)(e),r=(0,K.useRef)(null),{triggerProps:l,overlayProps:o}=(0,Z.useOverlayTrigger)({type:"dialog"},t,r);return l.id=(0,Y.useId)(),o["aria-labelledby"]=l.id,K.default.createElement(n.Provider,{values:[[Q,t],[I,t],[X,o],[i.PopoverContext,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"]}]]},K.default.createElement(w.PressResponder,{...l,ref:r,isPressed:t.isOpen},e.children))}let et=(0,K.forwardRef)(function(e,i){let l=e["aria-labelledby"];[e,i]=(0,n.useContextProps)(e,i,X);let{dialogProps:o,titleProps:s}=function(e,t){let{role:n="dialog"}=e,r=(0,Y.useSlotId)();r=e["aria-label"]?void 0:r;let i=(0,K.useRef)(!1);return(0,K.useEffect)(()=>{if(t.current&&!(0,G.isFocusWithin)(t.current)){(0,q.focusSafely)(t.current);let e=setTimeout(()=>{((0,G.getActiveElement)()===t.current||(0,G.getActiveElement)()===document.body)&&(i.current=!0,t.current&&(t.current.blur(),(0,q.focusSafely)(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),(0,J.useOverlayFocusContain)(),(0,K.useRef)(!1),(0,K.useEffect)(()=>{}),{dialogProps:{...(0,S.filterDOMProps)(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}({...e,"aria-labelledby":l},i),a=(0,K.useContext)(Q);o["aria-label"]||o["aria-labelledby"]||e["aria-labelledby"]&&(o["aria-labelledby"]=e["aria-labelledby"]);let u=(0,n.useRenderProps)({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:a?.close||(()=>{})}}),c=(0,S.filterDOMProps)(e,{global:!0});return K.default.createElement(n.dom.section,{...(0,C.mergeProps)(c,u,o),render:e.render,ref:i,slot:e.slot||void 0},K.default.createElement(n.Provider,{values:[[r.HeadingContext,{slots:{[n.DEFAULT_SLOT]:{},title:{...s,level:2}}}],[t.ButtonContext,{slots:{[n.DEFAULT_SLOT]:{},close:{onPress:()=>a?.close()}}}]]},u.children))})},758282,e=>{"use strict";var t=e.i(823316),n=e.i(271645);let r=(0,n.createContext)({}),i=(0,n.forwardRef)(function(e,i){[e,i]=(0,t.useContextProps)(e,i,r);let{children:l,level:o=3,className:s,...a}=e,u=t.dom[`h${o}`];return n.default.createElement(u,{...a,ref:i,className:s??"react-aria-Heading"},l)});e.s(["Heading",0,i,"HeadingContext",0,r])},541494,e=>{"use strict";e.i(823316);let t=(0,e.i(271645).createContext)({});e.s(["KeyboardContext",0,t])},424971,59663,353981,663059,812284,155635,604254,e=>{"use strict";var t=e.i(823316),n=e.i(871356),r=e.i(271645);let i=(0,r.createContext)({placement:"bottom"}),l=(0,r.forwardRef)(function(e,l){[e,l]=(0,t.useContextProps)(e,l,i);let o=e.placement,s={position:"absolute",transform:"top"===o||"bottom"===o?"translateX(-50%)":"translateY(-50%)"};null!=o&&(s[o]="100%");let a=(0,t.useRenderProps)({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:o}});
1a.style&&Object.keys(a.style).forEach(e=>void 0===a.style[e]&&delete a.style[e]);let u=(0,n.filterDOMProps)(e);return r.default.createElement(t.dom.div,{...u,...a,style:{...s,...a.style},ref:l,"data-placement":o})});e.s(["OverlayArrow",0,l,"OverlayArrowContext",0,i],424971);var o=e.i(583797),s=e.i(232940),a=e.i(731025);let u={top:"top",bottom:"top",left:"left",right:"left"},c={top:"bottom",bottom:"top",left:"right",right:"left"},d={top:"left",left:"top"},f={top:"height",left:"width"},p={width:"totalWidth",height:"totalHeight"},h={};function g(e,t){let n=0,r=0,i=0,l=0,s=0,a=0,u={},c=(t?.scale??1)>1;if("BODY"===e.tagName||"HTML"===e.tagName){let o=document.documentElement;i=o.clientWidth,l=o.clientHeight,n=t?.width??i,r=t?.height??l,u.top=o.scrollTop||e.scrollTop,u.left=o.scrollLeft||e.scrollLeft,t&&(s=t.offsetTop,a=t.offsetLeft)}else({width:n,height:r,top:s,left:a}=E(e,!1)),u.top=e.scrollTop,u.left=e.scrollLeft,i=n,l=r;return(0,o.isWebKit)()&&("BODY"===e.tagName||"HTML"===e.tagName)&&c&&(u.top=0,u.left=0,s=t?.pageTop??0,a=t?.pageLeft??0),{width:n,height:r,totalWidth:i,totalHeight:l,scroll:u,top:s,left:a}}function y(e,t,n,r,i,l,o){let s=i.scroll[e]??0,a=r[f[e]],c=o[e]+r.scroll[u[e]]+l,d=o[e]+r.scroll[u[e]]+a-l,p=t-s+r.scroll[u[e]]+o[e]-r[u[e]],h=t-s+n+r.scroll[u[e]]+o[e]-r[u[e]];return p<c?c-p:h>d?Math.max(d-h,c-p):0}function m(e){if(h[e])return h[e];let[t,n]=e.split(" "),r=u[t]||"right",i=d[r];u[n]||(n="center");let l=f[r],o=f[i];return h[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:l,crossSize:o},h[e]}function v(e,t,n,r,i,l,o,s,u,d,f){let{placement:h,crossPlacement:g,axis:y,crossAxis:m,size:v,crossSize:b}=r,S={};S[m]=e[m]??0,"center"===g?S[m]+=((e[b]??0)-(n[b]??0))/2:g!==m&&(S[m]+=(e[b]??0)-(n[b]??0)),S[m]+=l;let E=e[m]-n[b]+u+d,C=e[m]+e[b]-u-d;if(S[m]=(0,a.clamp)(S[m],E,C),h===y){let t=s?f[v]:f[p[v]];S[c[y]]=Math.floor(t-e[y]+i)}else S[y]=Math.floor(e[y]+e[v]+i);return S}function b(e,t,n,r,i,l,o,s){let{placement:a,axis:u,size:d}=l;return a===u?Math.max(0,n[u]-(o.scroll[u]??0)-(e[u]+(s?t[u]:0))-(r[u]??0)-r[c[u]]-i):Math.max(0,e[d]+e[u]+(s?t[u]:0)-n[u]-n[d]+(o.scroll[u]??0)-(r[u]??0)-r[c[u]]-i)}function S(e,t){let{top:n,left:r,width:i,height:l}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(i=e.offsetWidth,l=e.offsetHeight),{top:n,left:r,width:i,height:l}}function E(e,t,n){let{top:r,left:i,width:l,height:o}=n||S(e,t),{scrollTop:s,scrollLeft:a,clientTop:u,clientLeft:c}=document.documentElement;return{top:r+s-u,left:i+a-c,width:l,height:o}}function C(e,t,n,r){let i,l=window.getComputedStyle(e);if("fixed"===l.position)i=r||S(e,n);else{i=E(e,n,r);let l=E(t,n),o=window.getComputedStyle(t);l.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,i.top-=l.top,i.left-=l.left}return i.top-=parseInt(l.marginTop,10)||0,i.left-=parseInt(l.marginLeft,10)||0,i}function w(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}let K=new WeakMap;function x(e){let{triggerRef:t,isOpen:n,onClose:i}=e;(0,r.useEffect)(()=>{if(!n||null===i)return;let e=e=>{let n=(0,s.getEventTarget)(e);if(!t.current||n instanceof Node&&!(0,s.nodeContains)(n,t.current)||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return;let r=i||K.get(t.current);r&&r()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[n,i,t])}e.s(["onCloseMap",0,K,"useCloseOnScroll",0,x],59663);var P=e.i(769299),k=e.i(43418),N=e.i(63534);function T(e){let{ref:t,box:n,onResize:i}=e,l=(0,N.useEffectEvent)(i);(0,r.useEffect)(()=>{let e=t?.current;if(e)if(void 0===window.ResizeObserver)return window.addEventListener("resize",l,!1),()=>{window.removeEventListener("resize",l,!1)};else{let t=new window.ResizeObserver(e=>{e.length&&l()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}},[t,n])}e.s(["useResizeObserver",0,T],353981);let R="u">
1typeof document?window.visualViewport:null;e.s(["useOverlayPosition",0,function(e){var t;let{direction:n}=(0,k.useLocale)(),{arrowSize:i,targetRef:l,overlayRef:o,arrowRef:d,scrollRef:f=o,placement:h="bottom",containerPadding:K=12,shouldFlip:N=!0,boundaryElement:M="u">typeof document?document.body:null,offset:L=0,crossOffset:F=0,shouldUpdatePosition:D=!0,isOpen:I=!0,onClose:A,maxHeight:O,arrowBoundaryOffset:B=0,getTargetRect:V}=e,[_,H]=(0,r.useState)(null),z=[D,h,o.current,l.current,d?.current,f.current,K,N,M,L,F,I,n,O,B,i],W=(0,r.useRef)(R?.scale);(0,r.useEffect)(()=>{I&&(W.current=R?.scale)},[I]);let U=(0,r.useCallback)(()=>{var e;if(!1===D||!I||!o.current||!l.current||!M||R?.scale!==W.current)return;let t=null;if(f.current&&(0,s.isFocusWithin)(f.current)){let e=(0,s.getActiveElement)()?.getBoundingClientRect(),n=f.current.getBoundingClientRect();(t={type:"top",offset:(e?.top??0)-n.top}).offset>n.height/2&&(t.type="bottom",t.offset=(e?.bottom??0)-n.bottom)}let r=o.current;!O&&o.current&&(r.style.top="0px",r.style.bottom="",r.style.maxHeight=(window.visualViewport?.height??window.innerHeight)+"px");let x=function(e){let t,n,{placement:r,targetNode:i,overlayNode:l,scrollNode:o,padding:d,shouldFlip:f,boundaryElement:h,offset:K,crossOffset:x,maxHeight:P,arrowSize:k=0,arrowBoundaryOffset:N=0,targetRect:T}=e,R="u">typeof document?window.visualViewport:null,M=l instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!w(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!w(t);)t=t.parentElement;return t||document.documentElement}(l):document.documentElement,L=M===document.documentElement,F=window.getComputedStyle(M).position,D=L?E(i,!1,T):C(i,M,!1,T);if(!L){let{marginTop:e,marginLeft:t}=window.getComputedStyle(i);D.top+=parseInt(e,10)||0,D.left+=parseInt(t,10)||0}let I=E(l,!0),A={top:parseInt((t=window.getComputedStyle(l)).marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0};I.width+=(A.left??0)+(A.right??0),I.height+=(A.top??0)+(A.bottom??0),o.scrollTop,o.scrollLeft,o.scrollWidth,o.scrollHeight;let O=g(h,R),B=g(M,R);if("BODY"!==h.tagName&&"HTML"!==h.tagName||L)n=("BODY"===h.tagName||"HTML"===h.tagName)&&L?{top:0,left:0,width:0,height:0}:C(h,M,!1);else{let e=S(M,!1);n={top:-(e.top-O.top),left:-(e.left-O.left),width:0,height:0}}return function(e,t,n,r,i,l,o,s,d,f,h,g,S,E,C,w,K){var x,P,k;let N,T,R,M=m(e),{size:L,crossAxis:F,crossSize:D,placement:I,crossPlacement:A}=M,O=v(t,o,n,M,f,h,d,g,E,C,s),B=f,V=b(o,d,t,r,i+f,M,s,w);if(l&&n[L]>V){let e=m(`${c[I]} ${A}`),l=v(t,o,n,e,f,h,d,g,E,C,s);b(o,d,t,r,i+f,e,s,w)>V&&(M=e,O=l,B=f)}let _="bottom";"top"===M.axis?"top"===M.placement?_="top":"bottom"===M.placement&&(_="bottom"):"top"===M.crossAxis&&("top"===M.crossPlacement?_="bottom":"bottom"===M.crossPlacement&&(_="top"));let H=y(F,O[F],n[D],o,s,i,d);O[F]+=H;let z=(x=O,P=n.height,k=_,N=(null!=x.top?x.top:s[p.height]-(x.bottom??0)-P)-(s.scroll.top??0),T=w?d.top:0,R={top:Math.max(o.top+T,(K?.offsetTop??o.top)+T),bottom:Math.min(o.top+o.height+T,(K?.offsetTop??0)+(K?.height??0))},"top"!==k?Math.max(0,R.bottom-N-((r.top??0)+(r.bottom??0)+i)):Math.max(0,N+P-R.top-((r.top??0)+(r.bottom??0)+i)));S&&S<z&&(z=S),n.height=Math.min(n.height,z),H=y(F,(O=v(t,o,n,M,B,h,d,g,E,C,s))[F],n[D],o,s,i,d),O[F]+=H;let W={},U=t[F]-O[F]-r[u[F]],j=U+.5*t[D],$=E/2+C,q="left"===u[F]?(r.left??0)+(r.right??0):(r.top??0)+(r.bottom??0),G=n[D]-q-E/2-C,J=t[F]+E/2-(O[F]+r[u[F]]),Y=t[F]+t[D]-E/2-(O[F]+r[u[F]]),Z=(0,a.clamp)(j,J,Y);W[F]=(0,a.clamp)(Z,$,G),({placement:I,crossPlacement:A}=M),E?U=W[F]:"right"===A?U+=t[D]:"center"===A&&(U+=t[D]/2);let X="left"===I||"top"===I?n[L]:0,Q={x:"top"===I||"bottom"===I?U:X,y:"left"===I||"right"===I?U:X};return{position:O,maxHeight:z,arrowOffsetLeft:W.left,arrowOffsetTop:W.top,placement:I,triggerAnchorPoint:Q}}(r,D,I,A,d,f,O,B,n,K,x,!!F&&"static"!==F,P,k,N,(0,s.nodeContains)(h,M),R)}({placement:(e=h,"rtl"===n?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")),overlayNode:o.current,targetNode:l.current,scrollNode:f.current||o.current,padding:K,shouldFlip:N,boundaryElement:M,offset:L,crossOffset:F,maxHeight:O,arrowSize:i??(d?.current?S(d.current,!0).width:0),arrowBoundaryOffset:B,targetRect:V?.(l.current)});if(!x.position)return;r.style.top="",r.style.bottom="",r.style.left="",r.style.right="",Object.keys(x.position).forEac
1h(e=>r.style[e]=x.position[e]+"px"),r.style.maxHeight=null!=x.maxHeight?x.maxHeight+"px":"";let P=(0,s.getActiveElement)();if(t&&P&&f.current){let e=P.getBoundingClientRect(),n=f.current.getBoundingClientRect(),r=e[t.type]-n[t.type];f.current.scrollTop+=r-t.offset}H(x)},z);(0,P.useLayoutEffect)(U,z),t=U,(0,P.useLayoutEffect)(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t]),T({ref:o,onResize:U}),T({ref:l,onResize:U});let j=(0,r.useRef)(!1);(0,P.useLayoutEffect)(()=>{let e,t=()=>{j.current=!0,clearTimeout(e),e=setTimeout(()=>{j.current=!1},500),U()},n=()=>{j.current&&t()};return R?.addEventListener("resize",t),R?.addEventListener("scroll",n),()=>{R?.removeEventListener("resize",t),R?.removeEventListener("scroll",n)}},[U]);let $=(0,r.useCallback)(()=>{j.current||A?.()},[A,j]);return x({triggerRef:l,isOpen:I,onClose:A&&$}),{overlayProps:{style:{position:_?"absolute":"fixed",top:_?void 0:0,left:_?void 0:0,zIndex:1e5,..._?.position,maxHeight:_?.maxHeight??"100vh"}},placement:_?.placement??null,triggerAnchorPoint:_?.triggerAnchorPoint??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:_?.arrowOffsetLeft,top:_?.arrowOffsetTop}},updatePosition:U}}],663059);let M=(0,r.createContext)({});e.s(["useUNSAFE_PortalContext",0,function(){return(0,r.useContext)(M)??{}}],812284);var L=e.i(381560);e.s(["useOverlayTriggerState",0,function(e){let[t,n]=(0,L.useControlledState)(e.isOpen,e.defaultOpen||!1,e.onOpenChange),i=(0,r.useCallback)(()=>{n(!0)},[n]),l=(0,r.useCallback)(()=>{n(!1)},[n]),o=(0,r.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:i,close:l,toggle:o}}],155635);var F=e.i(174080);function D(e,t,n){(0,P.useLayoutEffect)(()=>{if(t&&e.current){if(!("getAnimations"in e.current))return void n();let t=e.current.getAnimations();if(0===t.length)return void n();let r=!1;return Promise.allSettled(t.map(e=>e.finished)).then(()=>{r||(0,F.flushSync)(()=>{n()})}),()=>{r=!0}}},[e,t,n])}e.s(["useEnterAnimation",0,function(e,t=!0){let[n,i]=(0,r.useState)(!0),l=n&&t;return(0,P.useLayoutEffect)(()=>{if(l&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,l]),D(e,l,(0,r.useCallback)(()=>i(!1),[])),l},"useExitAnimation",0,function(e,t){let[n,i]=(0,r.useState)(t?"open":"closed");switch(n){case"open":t||i("exiting");break;case"closed":case"exiting":t&&i("open")}let l="exiting"===n;return D(e,l,(0,r.useCallback)(()=>{i(e=>"exiting"===e?"closed":e)},[])),l}],604254)},409059,374471,614059,368755,e=>{"use strict";e.s(["Popover",()=>I,"PopoverContext",()=>F],409059);var t=e.i(823316),n=e.i(424971),r=e.i(207487),i=e.i(592236),l=e.i(162862),o=e.i(303530),s=e.i(924470),a=e.i(285741),u=e.i(271645);function c(e){var t;let{onDismiss:n,...r}=e,i=(0,s.useLocalizedStringFormatter)((t=l.default)&&t.__esModule?t.default:t,"@react-aria/overlays"),c=(0,o.useLabels)(r,i.format("dismiss"));return u.default.createElement(a.VisuallyHidden,null,u.default.createElement("button",{...c,tabIndex:-1,onClick:()=>{n&&n()},style:{width:1,height:1}}))}e.s(["DismissButton",0,c],374471);var d=e.i(75975),f=e.i(35568),p=e.i(258268),h=e.i(974236);let g=u.default.forwardRef(({children:e,...t},n)=>{let r=(0,u.useRef)(!1),i=(0,u.useContext)(f.PressResponderContext),l=(0,d.mergeProps)(i||{},{...t,register(){r.current=!0,i&&i.register()}});return l.ref=(0,p.useObjectRef)(n||i?.ref),(0,h.useSyncRef)(i,l.ref),(0,u.useEffect)(()=>{r.current||(r.current=!0)},[]),u.default.createElement(f.PressResponderContext.Provider,{value:l},e)});function y({children:e}){let t=(0,u.useMemo)(()=>({register:()=>{}}),[]);return u.default.createElement(f.PressResponderContext.Provider,{value:t},e)}e.s(["ClearPressResponder",0,y,"PressResponder",0,g],614059);var m=e.i(218602),v=e.i(343221),b=e.i(769299),S=e.i(812284),E=e.i(174080);let C=u.default.createContext(null);function w(e){let t=(0,v.useIsSSR)(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[i,l]=(0,u.useState)(!1),o=(0,u.useMemo)(()=>({contain:i,setContain:l}),[i,l]),{getContainer:s}=(0,S.useUNSAFE_PortalContext)();if(!e.portalContainer&&s&&(n=s()),!n)return null;let a=e.children;return e.disableFocusManagement||(a=u.default.createElement(m.FocusScope,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},a)),a=u.default.createElement(C.Provider,{value:o},u.default.createElement(y,null,a)),E.default.createPortal(a,n)}e.s(["Overlay",0,w,"useOverlayFocusContain",0,function(){let e=(0,u.useContext)(C),t=e?.setContain;(0,b.useLayoutEffect)(()=>{t?.(!0)},[t])}],368755);var K=e.i(871356),x=e.i(478607),P=e.i(90531),k=e.i(232940),N=e.i(155635),T=e.i(604254),R=e.i(741975),M=e.i(43418),L=e.i(353981);let F=(0,u.createContext)(null),D=(0,u.createContext)(null),I=(0,u.forwardRef)(function(e,n){[e,n]=(0,t.useContextProps)(e,n,F);let i=(0,u.useContext)(r.OverlayTriggerStateContext),l=(0,N.useOverlayTriggerState)(e),o=null==e.isOpen&&null==e.defaultOpen&&i?i:l,s=(0,T.useExitAnimation)(n,o.isOpen)||e.isExiting||!1,a=(0,R.useIsHidden
1)(),{direction:c}=(0,M.useLocale)();if(a){let t=e.children;return"function"==typeof t&&(t=t({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),u.default.createElement(u.default.Fragment,null,t)}return!o||o.isOpen||s?u.default.createElement(A,{...e,triggerRef:e.triggerRef,state:o,popoverRef:n,isExiting:s,dir:c}):null});function A({state:e,isExiting:r,UNSTABLE_portalContainer:l,clearContexts:o,...s}){let a=(0,u.useRef)(null),f=(0,u.useRef)(null),p=(0,u.useContext)(D),h=p&&"SubmenuTrigger"===s.trigger,{popoverProps:g,underlayProps:y,arrowProps:m,placement:v,triggerAnchorPoint:S}=(0,i.usePopover)({...s,offset:s.offset??8,arrowRef:a,groupRef:h?p:f},e),E=s.popoverRef,C=(0,T.useEnterAnimation)(E,!!v)||s.isEntering||!1,N=(0,t.useRenderProps)({...s,defaultClassName:"react-aria-Popover",values:{trigger:s.trigger||null,placement:v,isEntering:C,isExiting:r}}),R=!s.isNonModal||"SubmenuTrigger"===s.trigger,[M,F]=(0,u.useState)(!1);(0,b.useLayoutEffect)(()=>{E.current&&F(R&&!E.current.querySelector("[role=dialog]"))},[E,R]),(0,u.useEffect)(()=>{M&&("SubmenuTrigger"!==s.trigger||"pointer"!==(0,P.getInteractionModality)())&&E.current&&!(0,k.isFocusWithin)(E.current)&&(0,x.focusSafely)(E.current)},[M,E,s.trigger]);let I=(0,u.useMemo)(()=>{let e=N.children;if(o)for(let t of o)e=u.default.createElement(t.Provider,{value:null},e);return e},[N.children,o]),[O,B]=(0,u.useState)(null),V=(0,u.useCallback)(()=>{s.triggerRef.current&&B(s.triggerRef.current.getBoundingClientRect().width+"px")},[s.triggerRef]);(0,b.useLayoutEffect)(V,[V]),(0,L.useResizeObserver)({ref:N.style?.["--trigger-width"]?void 0:s.triggerRef,onResize:V});let _={...g.style,"--trigger-anchor-point":S?`${S.x}px ${S.y}px`:void 0,...N.style,"--trigger-width":N.style?.["--trigger-width"]||O},H=u.default.createElement(t.dom.div,{...(0,d.mergeProps)((0,K.filterDOMProps)(s,{global:!0}),g),...N,role:M?"dialog":void 0,tabIndex:M?-1:void 0,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"],ref:E,slot:s.slot||void 0,style:_,dir:s.dir,"data-trigger":s.trigger,"data-placement":v,"data-entering":C||void 0,"data-exiting":r||void 0},!s.isNonModal&&u.default.createElement(c,{onDismiss:e.close}),u.default.createElement(n.OverlayArrowContext.Provider,{value:{...m,placement:v,ref:a}},I),u.default.createElement(c,{onDismiss:e.close}));return h?u.default.createElement(w,{...s,shouldContainFocus:M,isExiting:r,portalContainer:l??p?.current??void 0},H):u.default.createElement(w,{...s,shouldContainFocus:M,isExiting:r,portalContainer:l},!s.isNonModal&&e.isOpen&&u.default.createElement("div",{"data-testid":"underlay",...y,style:{position:"fixed",inset:0}}),u.default.createElement("div",{ref:f,style:{display:"contents"}},u.default.createElement(D.Provider,{value:f},H)))}},510390,890319,388386,e=>{"use strict";var t=e.i(823316),n=e.i(174080),r=e.i(271645),i=e.i(769299),l=e.i(258268);let o=(0,r.createContext)(null),s=(0,r.forwardRef)(function(e,s){let{name:a,isVisible:u=!0,children:c,className:d,style:f,render:p,...h}=e,[g,y]=(0,r.useState)(u?"visible":"hidden"),m=(0,r.useContext)(o);if(!m)throw Error("<SharedElement> must be rendered inside a <SharedElementTransition>");u&&"hidden"===g&&y("visible"),s=(0,l.useObjectRef)(s),(0,i.useLayoutEffect)(()=>{let e=s.current,t=m.current,r=t[a],i=null;if(e&&u&&r){y("visible");let n=e.getAnimations(),l=r.style.map(([t,n])=>{let i=e.style[t];if("translate"===t){let t=r.rect,n=e.getBoundingClientRect(),i=t.left-n?.left,l=t.top-n?.top;e.style.translate=`${i}px ${l}px`}else e.style[t]=n;return[t,i]});for(let t of e.getAnimations())n.includes(t)||t.cancel();i=requestAnimationFrame(()=>{for(let[t,n]of(i=null,l))e.style[t]=n}),delete t[a]}else e&&u&&!r?(queueMicrotask(()=>(0,n.flushSync)(()=>y("entering"))),i=requestAnimationFrame(()=>{i=null,y("visible")})):e&&!u&&queueMicrotask(()=>{t[a]?(delete t[a],(0,n.flushSync)(()=>y("exiting")),Promise.all(e.getAnimations().map(e=>e.finished)).then(()=>y("hidden")).catch(()=>{})):y("hidden")});return()=>{if(null!=i&&cancelAnimationFrame(i),e&&e.isConnected&&!e.hasAttribute("data-exiting")){let n=window.getComputedStyle(e);
1if("none"!==n.transitionProperty){let r=n.transitionProperty.split(/\s*,\s*/);t[a]={rect:e.getBoundingClientRect(),style:r.map(e=>[e,n[e]])}}}}},[s,m,a,u]);let v=(0,t.useRenderProps)({children:c,className:d,style:f,render:p,values:{isEntering:"entering"===g,isExiting:"exiting"===g}});return"hidden"===g?null:r.default.createElement(t.dom.div,{...h,...v,ref:s,"data-entering":"entering"===g||void 0,"data-exiting":"exiting"===g||void 0})});e.s(["SharedElement",0,s,"SharedElementTransition",0,function(e){let t=(0,r.useRef)({});return r.default.createElement(o.Provider,{value:t},e.children)}],890319);let a=(0,r.createContext)({isSelected:!1});e.s(["SelectionIndicatorContext",0,a],510390);var u=e.i(871356),c=e.i(259775),d=e.i(302129),f=e.i(75975);let p=(0,r.createContext)({});class h extends c.CollectionNode{static{this.type="separator"}filter(e,t){let n=t.getItem(this.prevKey);if(n&&"separator"!==n.type){let n=this.clone();return t.addDescendants(n,e),n}return null}}let g=(0,d.createLeafComponent)(h,function(e,n){var i;let l,o;[e,n]=(0,t.useContextProps)(e,n,p);let{elementType:s,orientation:a,style:c,className:d,slot:h,...g}=e,y=s||"hr";"hr"===y&&"vertical"===a&&(y="div");let m=t.dom[y],{separatorProps:v}=(i={...g,elementType:s,orientation:a},o=(0,u.filterDOMProps)(i,{labelable:!0}),("vertical"===i.orientation&&(l="vertical"),"hr"!==i.elementType)?{separatorProps:{...o,role:"separator","aria-orientation":l}}:{separatorProps:o}),b=(0,u.filterDOMProps)(e,{global:!0});return r.default.createElement(m,{render:e.render,...(0,f.mergeProps)(b,v),style:c,className:d??"react-aria-Separator",ref:n,slot:h||void 0})});e.s(["Separator",0,g,"SeparatorContext",0,p],388386)},246562,e=>{"use strict";var t=e.i(823316),n=e.i(271645);let r=(0,n.createContext)({}),i=(0,n.forwardRef)(function(e,i){[e,i]=(0,t.useContextProps)(e,i,r);let{elementType:l="span",...o}=e,s=t.dom[l];return n.default.createElement(s,{className:"react-aria-Text",...o,ref:i})});e.s(["Text",0,i,"TextContext",0,r])},218602,e=>{"use strict";var t=e.i(822053),n=e.i(478607),r=e.i(232940),i=e.i(90531),l=e.i(903202),o=e.i(583797),s=e.i(402494),a=e.i(769299),u=e.i(271645);let c=u.default.createContext(null),d="react-aria-focus-scope-restore",f=null;function p(e){return e[0].parentElement}function h(e){let t=P.getTreeNode(f);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function g(e,t){return!!e&&!!t&&t.some(t=>(0,r.nodeContains)(t,e))}function y(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of P.traverse(P.getTreeNode(t)))if(n&&g(e,n.current))return!0;return!1}function m(e,t){let n=P.getTreeNode(t)?.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function v(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,n.focusSafely)(e)}catch{}}function b(e,t=!0){let n=e[0].previousElementSibling,r=p(e),i=w(r,{tabbable:t},e);i.currentNode=n;let l=i.nextNode();return t&&!l&&((i=w(r=p(e),{tabbable:!1},e)).currentNode=n,l=i.nextNode()),l}function S(e,t=!0){v(b(e,t))}function E(e){let t=P.getTreeNode(f);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function C(e){e.dispatchEvent(new CustomEvent(d,{bubbles:!0,cancelable:!0}))&&v(e)}function w(e,n,i){let o=n?.tabbable?s.isTabbable:s.isFocusable,a=e?.nodeType===Node.ELEMENT_NODE?e:null,u=(0,l.getOwnerDocument)(a),c=(0,t.createShadowTreeWalker)(u,e||u,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>(0,r.nodeContains)(n?.from,e)||n?.tabbable&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=function(e){if(!e.form)return Array.from((0,l.getOwnerDocument)(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter(e=>!e.form);let t=e.form.elements.namedItem(e.name),n=(0,l.getOwnerWindow)(e);return t instanceof n.RadioNodeList?Array.from(t).filter(e=>e instanceof n.HTMLInputElement):t instanceof n.HTMLInputElement?[t]:[]}(e);return t.length>0&&!t.some(e=>e.checked)}(e)||"INPUT"===c.currentNode.tagName&&"radio"===c.currentNode.type&&c.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:o(e)&&(!i||g(e,i))&&
1(!n?.accept||n.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});return n?.from&&(c.currentNode=n.from),c}function K(e){let t,n;do(t=e.lastChild())&&(n=t);while(t)return n}class x{constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}}let P=new class e{constructor(){this.fastMap=new Map,this.root=new x({scopeRef:null}),this.fastMap.set(null,this.root)}get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t??null);if(!r)return;let i=new x({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&g(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let t=new e;for(let e of this.traverse())t.addTreeNode(e.scopeRef,e.parent?.scopeRef??null,e.nodeToRestore);return t}};e.s(["FocusScope",0,function(e){var t,n,s,K,k,N,T,R,M,L;let F,D,I,A,{children:O,contain:B,restoreFocus:V,autoFocus:_}=e,H=(0,u.useRef)(null),z=(0,u.useRef)(null),W=(0,u.useRef)([]),{parentNode:U}=(0,u.useContext)(c)||{},j=(0,u.useMemo)(()=>new x({scopeRef:W}),[W]);(0,a.useLayoutEffect)(()=>{let e=U||P.root;if(P.getTreeNode(e.scopeRef)&&f&&!m(f,e.scopeRef)){let t=P.getTreeNode(f);t&&(e=t)}e.addChild(j),P.addNode(j)},[j,U]),(0,a.useLayoutEffect)(()=>{let e=P.getTreeNode(W);e&&(e.contain=!!B)},[B]),(0,a.useLayoutEffect)(()=>{let e=H.current?.nextSibling,t=[],n=e=>e.stopPropagation();for(;e&&e!==z.current;)t.push(e),e.addEventListener(d,n),e=e.nextSibling;return W.current=t,()=>{for(let e of t)e.removeEventListener(d,n)}},[O]),t=W,n=V,s=B,(0,a.useLayoutEffect)(()=>{if(n||s)return;let e=t.current,i=(0,l.getOwnerDocument)(e?e[0]:void 0),o=e=>{let n=(0,r.getEventTarget)(e);g(n,t.current)?f=t:y(n)||(f=null)};return i.addEventListener("focusin",o,!1),e?.forEach(e=>e.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),e?.forEach(e=>e.removeEventListener("focusin",o,!1))}},[t,n,s]),K=W,k=B,F=(0,u.useRef)(void 0),D=(0,u.useRef)(void 0),(0,a.useLayoutEffect)(()=>{let e=K.current;if(!k){D.current&&(cancelAnimationFrame(D.current),D.current=void 0);return}let t=(0,l.getOwnerDocument)(e?e[0]:void 0),n=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!h(K)||e.isComposing)return;let n=(0,r.getActiveElement)(t),i=K.current;if(!i||!g(n,i))return;let o=w(p(i),{tabbable:!0},i);if(!n)return;o.currentNode=n;let s=e.shiftKey?o.previousNode():o.nextNode();s||(o.currentNode=e.shiftKey?i[i.length-1].nextElementSibling:i[0].previousElementSibling,s=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),s&&(v(s,!0),s instanceof(0,l.getOwnerWindow)(s).HTMLInputElement&&s.select())},s=e=>{(!f||m(f,K))&&g((0,r.getEventTarget)(e),K.current)?(f=K,F.current=(0,r.getEventTarget)(e)):h(K)&&!y((0,r.getEventTarget)(e),K)?F.current?F.
1current.focus():f&&f.current&&S(f.current):h(K)&&(F.current=(0,r.getEventTarget)(e))},a=e=>{D.current&&cancelAnimationFrame(D.current),D.current=requestAnimationFrame(()=>{let n=(0,i.getInteractionModality)(),l=("virtual"===n||null===n)&&(0,o.isAndroid)()&&(0,o.isChrome)(),s=(0,r.getActiveElement)(t);if(!l&&s&&h(K)&&!y(s,K)){f=K;let t=(0,r.getEventTarget)(e);t&&t.isConnected?(F.current=t,F.current?.focus()):f.current&&S(f.current)}})};return t.addEventListener("keydown",n,!1),t.addEventListener("focusin",s,!1),e?.forEach(e=>e.addEventListener("focusin",s,!1)),e?.forEach(e=>e.addEventListener("focusout",a,!1)),()=>{t.removeEventListener("keydown",n,!1),t.removeEventListener("focusin",s,!1),e?.forEach(e=>e.removeEventListener("focusin",s,!1)),e?.forEach(e=>e.removeEventListener("focusout",a,!1))}},[K,k]),(0,a.useLayoutEffect)(()=>()=>{D.current&&cancelAnimationFrame(D.current)},[D]),N=W,T=V,R=B,I=(0,u.useRef)("u">typeof document?(0,r.getActiveElement)((0,l.getOwnerDocument)(N.current?N.current[0]:void 0)):null),(0,a.useLayoutEffect)(()=>{let e=N.current,t=(0,l.getOwnerDocument)(e?e[0]:void 0);if(!T||R)return;let n=()=>{(!f||m(f,N))&&g((0,r.getActiveElement)(t),N.current)&&(f=N)};return t.addEventListener("focusin",n,!1),e?.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),e?.forEach(e=>e.removeEventListener("focusin",n,!1))}},[N,R]),(0,a.useLayoutEffect)(()=>{let e=(0,l.getOwnerDocument)(N.current?N.current[0]:void 0);if(!T)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!h(N)||t.isComposing)return;let n=e.activeElement;if(!y(n,N)||!E(N))return;let r=P.getTreeNode(N);if(!r)return;let i=r.nodeToRestore,l=w(e.body,{tabbable:!0});l.currentNode=n;let o=t.shiftKey?l.previousNode():l.nextNode();if(i&&i.isConnected&&i!==e.body||(i=void 0,r.nodeToRestore=void 0),(!o||!y(o,N))&&i){l.currentNode=i;do o=t.shiftKey?l.previousNode():l.nextNode();while(y(o,N))(t.preventDefault(),t.stopPropagation(),o)?v(o,!0):y(i)?v(i,!0):n.blur()}};return R||e.addEventListener("keydown",t,!0),()=>{R||e.removeEventListener("keydown",t,!0)}},[N,T,R]),(0,a.useLayoutEffect)(()=>{let e=(0,l.getOwnerDocument)(N.current?N.current[0]:void 0);if(!T)return;let t=P.getTreeNode(N);if(t)return t.nodeToRestore=I.current??void 0,()=>{let t=P.getTreeNode(N);if(!t)return;let n=t.nodeToRestore,i=(0,r.getActiveElement)(e);if(T&&n&&(i&&y(i,N)||i===e.body&&E(N))){let t=P.clone();requestAnimationFrame(()=>{if(e.activeElement===e.body){let e=t.getTreeNode(N);for(;e;){if(e.nodeToRestore&&e.nodeToRestore.isConnected)return void C(e.nodeToRestore);e=e.parent}for(e=t.getTreeNode(N);e;){if(e.scopeRef&&e.scopeRef.current&&P.getTreeNode(e.scopeRef))return void C(b(e.scopeRef.current,!0));e=e.parent}}})}}},[N,T]),M=W,L=_,A=u.default.useRef(L),(0,u.useEffect)(()=>{if(A.current){f=M;let e=(0,l.getOwnerDocument)(M.current?M.current[0]:void 0);!g((0,r.getActiveElement)(e),f.current)&&M.current&&S(M.current)}A.current=!1},[M]),(0,u.useEffect)(()=>{let e=(0,r.getActiveElement)((0,l.getOwnerDocument)(W.current?W.current[0]:void 0)),t=null;if(g(e,W.current)){for(let n of P.traverse())n.scopeRef&&g(e,n.scopeRef.current)&&(t=n);t===P.getTreeNode(W)&&(f=t.scopeRef)}},[W]),(0,a.useLayoutEffect)(()=>()=>{let e=P.getTreeNode(W)?.parent?.scopeRef??null;(W===f||m(W,f))&&(!e||P.getTreeNode(e))&&(f=e),P.removeTreeNode(W)},[W]);let $=(0,u.useMemo)(()=>{var e;return e=W,{focusNext(t={}){let n=e.current,{from:i,tabbable:o,wrap:s,accept:a}=t,u=i||(0,r.getActiveElement)((0,l.getOwnerDocument)(n[0]??void 0)),c=n[0].previousElementSibling,d=w(p(n),{tabbable:o,accept:a},n);d.currentNode=g(u,n)?u:c;let f=d.nextNode();return!f&&s&&(d.currentNode=c,f=d.nextNode()),f&&v(f,!0),f},focusPrevious(t={}){let n=e.current,{from:i,tabbable:o,wrap:s,accept:a}=t,u=i||(0,r.getActiveElement)((0,l.getOwnerDocument)(n[0]??void 0)),c=n[n.length-1].nextElementSibling,d=w(p(n),{tabbable:o,accept:a},n);d.currentNode=g(u,n)?u:c;let f=d.previousNode();return!f&&s&&(d.currentNode=c,f=d.previousNode()),f&&v(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,l=w(p(n),{tabbable:r,accept:i},n);l.currentNode=n[0].previousElementSibling;let o=l.nextNode();return o&&v(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,l=w(p(n),{tabbable:r,accept:i},n);l.currentNode=n[n.length-1].nextElementSibling;let o=l.previousNode();return o&&v(o,!0),o}}},[]),q=(0,u.useMemo)(()=>({focusManager:$,parentNode:j}),[j,$]);return u.default.createElement(c.Provider,{value:q},u.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:H}),O,u.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:z}))},"createFocusManager",0,function(e,t={}){return{focusNext(n={}){let i=e.current;if(!i)return null;let{from:o,tabbable:s=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=o||(0,r.getActiveElement)((0,l.getOwnerDocument)(i)),d=w(i,{tabbable:s,accept:u});(0,r.nodeContains)(i,c)&&(d.currentNode=c);let f=d.nextNode();return!f&&a&&(d.currentNode=i,f=d.nextNode()),f&&v(f,!0),f},focusPrevious(n=t){let i=e.current;if(!i)return null;let{from:o,tabbable:s=t.tabbable,wrap:a=t.wrap,accept:u=t.accept}=n,c=o||(0,r.getActiveElement)((0,l.getOwnerDocument)(i)),d=w(i,{tabbable:s,accept:u});
1if((0,r.nodeContains)(i,c))d.currentNode=c;else{let e=K(d);return e&&v(e,!0),e??null}let f=d.previousNode();if(!f&&a){d.currentNode=i;let e=K(d);if(!e)return null;f=e}return f&&v(f,!0),f??null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:l=t.accept}=n,o=w(r,{tabbable:i,accept:l}).nextNode();return o&&v(o,!0),o},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:i=t.tabbable,accept:l=t.accept}=n,o=K(w(r,{tabbable:i,accept:l}));return o&&v(o,!0),o??null}}},"getFocusableTreeWalker",0,w,"isElementInChildOfActiveScope",0,function(e){return y(e,f)},"useFocusManager",0,function(){return(0,u.useContext)(c)?.focusManager}])},84533,730348,e=>{"use strict";var t=e.i(64139),n=e.i(903202),r=e.i(75975),i=e.i(769299),l=e.i(271645);let o=0,s=new Map;function a(e){let[t,n]=(0,l.useState)();return(0,i.useLayoutEffect)(()=>{if(!e)return;let t=s.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${o++}`;n(r);let i=document.createElement("div");i.id=r,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},s.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),s.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}e.s(["useDescription",0,a],730348);var u=e.i(56823),c=e.i(414232);e.s(["useLongPress",0,function(e){let{isDisabled:i,onLongPressStart:o,onLongPressEnd:s,onLongPress:d,threshold:f=500,accessibilityDescription:p}=e,h=(0,l.useRef)(void 0),{addGlobalListener:g,removeGlobalListener:y}=(0,u.useGlobalListeners)(),{pressProps:m}=(0,c.usePress)({isDisabled:i,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(o&&o({...e,type:"longpressstart"}),h.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),(0,n.getOwnerDocument)(e.target).activeElement!==e.target&&(0,t.focusWithoutScrolling)(e.target),d&&d({...e,type:"longpress"}),h.current=void 0},f),"touch"===e.pointerType)){let t=e=>{e.preventDefault()},r=(0,n.getOwnerWindow)(e.target);g(e.target,"contextmenu",t,{once:!0}),g(r,"pointerup",()=>{setTimeout(()=>{y(e.target,"contextmenu",t)}
1,30)},{once:!0})}},onPressEnd(e){h.current&&clearTimeout(h.current),s&&("mouse"===e.pointerType||"touch"===e.pointerType)&&s({...e,type:"longpressend"})}}),v=a(d&&!i?p:void 0);return{longPressProps:(0,r.mergeProps)(m,v)}}],84533)},966347,e=>{"use strict";var t={};t={"ar-AE":{longPressMessage:"اضغط Ù
Ø·ÙÙØ§Ù أ٠اضغط عÙÙ Alt + Ø§ÙØ³ÙÙ
ÙØ£Ø³ÙÙ ÙÙØªØ اÙÙØ§Ø¦Ù
Ø©"},"bg-BG":{longPressMessage:"ÐаÑиÑнеÑе пÑодÑлжиÑелно или наÑиÑнеÑе Alt+ ÑÑÑелка надолÑ, за да оÑвоÑиÑе менÑÑо"},"cs-CZ":{longPressMessage:"Dlouhým stiskem nebo stisknutÃm kláves Alt + Å¡ipka dolů otevÅete nabÃdku"},"da-DK":{longPressMessage:"Langt tryk eller tryk pÃ¥ Alt + pil ned for at Ã¥bne menuen"},"de-DE":{longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"},"el-GR":{longPressMessage:"ΠιÎÏÏε ÏαÏαÏεÏαμÎνα ή ÏαÏήÏÏε Alt + κάÏÏ Î²ÎÎ»Î¿Ï Î³Î¹Î± να ανοίξεÏε Ïο μενοÏ"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"},"et-EE":{longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"×××¥ ××××¦× ×ר××× ×× ×קש Alt + ArrowDown ××× ×פת×× ×ת ×תפר××"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyÃl gombot a menü megnyitásához"},"it-IT":{longPressMessage:"Premi a lungo o premi Alt + Freccia giù per aprire il menu"},"ja-JP":{longPressMessage:"é·æ¼ãã¾ã㯠Alt+ä¸ç¢å°ãã¼ã§ã¡ãã¥ã¼ãéã"},"ko-KR":{longPressMessage:"ê¸¸ê² ë르거ë Alt + ìë쪽 íì´í를 ëë¬ ë©ë´ ì´ê¸°"},"lt-LT":{longPressMessage:"NorÄdami atidaryti meniu, nuspaudÄ palaikykite arba paspauskite âAlt + ArrowDownâ."},"lv-LV":{longPressMessage:"Lai atvÄrtu izvÄlni, turiet nospiestu vai nospiediet taustiÅu kombinÄciju Alt + lejupvÄrstÄ bultiÅa"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for Ã¥ Ã¥pne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"NaciÅnij i przytrzymaj lub naciÅnij klawisze Alt + StrzaÅka w dóÅ, aby otworzyÄ menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"ApÄsaÈi lung sau apÄsaÈi pe Alt + sÄgeatÄ Ã®n jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"ÐажмиÑе и ÑдеÑживайÑе или нажмиÑе Alt + СÑÑелка вниз, ÑÑÐ¾Ð±Ñ Ð¾ÑкÑÑÑÑ Ð¼ÐµÐ½Ñ"},"sk-SK":{longPressMessage:"Ponuku otvorÃte dlhým stlaÄenÃm alebo stlaÄenÃm klávesu Alt + klávesu so Å¡Ãpkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puÅ¡Äica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"HÃ¥ll nedtryckt eller tryck pÃ¥ Alt + pil nedÃ¥t för att öppna menyn"},"tr-TR":{longPressMessage:"Menüyü açmak için uzun basın veya Alt + AÅaÄı Ok tuÅuna basın"},"uk-UA":{longPressMessage:"Ðовго або звиÑайно наÑиÑнÑÑÑ ÐºÐ¾Ð¼Ð±ÑнаÑÑÑ ÐºÐ»Ð°Ð²ÑÑ Alt Ñ ÑÑÑÑлка вниз, Ñоб вÑдкÑиÑи менÑ"},"zh-CN":{longPressMessage:"é¿æææ Alt + å䏿¹åé®ä»¥æå¼èå"},"zh-TW":{longPressMessage:"é·æææ Alt+åä¸éµä»¥éååè½è¡¨"}},e.s(["default",0,t],966347)},432860,553555,e=>{"use strict";var t=e.i(871356),n=e.i(600768),r=e.i(75975),i=e.i(3353);e.s(["useMenu",0,function(e,l,o){let{shouldFocusWrap:s=!0,onKeyDown:a,onKeyUp:u,...c}=e,d=(0,t.filterDOMProps)(e,{labelable:!0}),{listProps:f}=(0,i.useSelectableList)({...c,ref:o,selectionManager:l.selectionManager,collection:l.collection,disabledKeys:l.disabledKeys,shouldFocusWrap:s,linkBehavior:"override"});return n.menuData.set(l,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:(0,r.mergeProps)(d,{onKeyDown:a,onKeyUp:u},{role:"menu",...f,onKeyDown:t=>{("Escape"!==t.key||e.shouldUseVirtualFocus)&&f.onKeyDown?.(t)}})}}],432860);var l=e.i(977926);e.s(["useMenuSection",0,function(e){let{heading:t,"aria-label":n}=e,r=(0,l.useId)();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}],553555)},23979,538985,467743,e=>{"use strict";var t=e.i(871356),n=e.i(232940),r=e.i(363499),i=e.i(90531),l=e.i(600768),o=e.i(75975),s=e.i(562918),a=e.i(433336),u=e.i(829154),c=e.i(414232),d=e.i(926202),f=e.i(977926),p=e.i(916031),h=e.i(271645);e.s(["useMenuItem",0,function(e,g,y){let{id:m,key:v,closeOnSelect:b,shouldCloseOnSelect:S,isVirtualized:E,"aria-haspopup":C,onPressStart:w,onPressUp:K,onPress:x,onPressChange:P,onPressEnd:k,onClick:N,onHoverStart:T,onHoverChange:R,onHoverEnd:M,onKeyDown:L,onKeyUp:F,onFocus:D,onFocusChange:I,onBlur:A,selectionManager:O=g.selectionManager}=e,B=!!C,V=B&&"true"===e["aria-expanded"],_=e.isDisabled??O.isDisabled(v),H=e.isSelected??O.isSelected(v),z=l.menuData.get(g),W=g.collection.getItem(v),U=e.onClose||z.onClose,j=(0,r.useRouter)(),$="menuitem";B||("single"===O.selectionMode?$="menuitemradio":"multiple"===O.selectionMode&&($="menuitemcheckbox"));let q=(0,f.useSlotId)(),G=(0,f.useSlotId)(),J=(0,f.useSlotId)(),Y={id:m,"aria-disabled":_||void 0,role:$,"aria-label":e["aria-label"],"aria-labelledby":q,"aria-describedby":[e["aria-describedby"],G,J].filter(
1Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":C,"aria-expanded":e["aria-expanded"]};if("none"===O.selectionMode||B||(Y["aria-checked"]=H),E){let e=Number(W?.index);Y["aria-posinset"]=Number.isNaN(e)?void 0:e+1,Y["aria-setsize"]=(0,p.getItemCount)(g.collection)}let Z=(0,h.useRef)(!1),X=(0,h.useRef)(null),{itemProps:Q,isFocused:ee}=(0,d.useSelectableItem)({id:m,selectionManager:O,key:v,ref:y,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:z.shouldUseVirtualFocus}),{pressProps:et,isPressed:en}=(0,c.usePress)({onPressStart:w,onPress:x,onPressUp:e=>{"keyboard"!==e.pointerType&&(X.current={pointerType:e.pointerType}),"mouse"!==e.pointerType||Z.current||e.target.click(),K?.(e)},onPressChange:e=>{P?.(e),Z.current=e},onPressEnd:k,isDisabled:_}),{hoverProps:er}=(0,a.useHover)({isDisabled:_,onHoverStart(e){(0,i.isFocusVisible)()||V&&C||(O.setFocused(!0),O.setFocusedKey(v)),T?.(e)},onHoverChange:R,onHoverEnd:M}),{keyboardProps:ei}=(0,u.useKeyboard)({onKeyDown:e=>{if(e.repeat)return void e.continuePropagation();switch(e.key){case" ":X.current={pointerType:"keyboard",key:" "},(0,n.getEventTarget)(e).click(),(0,i.setInteractionModality)("keyboard");break;case"Enter":X.current={pointerType:"keyboard",key:"Enter"},"A"!==(0,n.getEventTarget)(e).tagName&&(0,n.getEventTarget)(e).click(),(0,i.setInteractionModality)("keyboard");break;default:B||e.continuePropagation(),L?.(e)}},onKeyUp:F}),{focusableProps:el}=(0,s.useFocusable)({onBlur:A,onFocus:D,onFocusChange:I},y),eo=(0,t.filterDOMProps)(W?.props);delete eo.id;let es=(0,r.useLinkProps)(W?.props);return{menuItemProps:{...Y,...(0,o.mergeProps)(eo,es,B?{onFocus:Q.onFocus,"data-collection":Q["data-collection"],"data-key":Q["data-key"]}:Q,et,er,ei,el,z.shouldUseVirtualFocus||B?{onMouseDown:e=>e.preventDefault()}:void 0,_?void 0:{onClick:t=>{N?.(t),!B&&(W?.props?.onAction?W.props.onAction():e.onAction&&e.onAction(v),z.onAction&&(0,z.onAction)(v,W?.value)),(0,r.handleLinkClick)(t,j,W.props.href,W?.props.routerOptions);let n=X.current?.pointerType==="keyboard"?X.current?.key==="Enter"||"none"===O.selectionMode||O.isLink(v):"multiple"!==O.selectionMode||O.isLink(v);n=S??b??n,U&&!B&&n&&U(),X.current=null}}),tabIndex:null!=Q.tabIndex&&V&&!z.shouldUseVirtualFocus?-1:Q.tabIndex},labelProps:{id:q},descriptionProps:{id:G},keyboardShortcutProps:{id:J},isFocused:ee,isFocusVisible:ee&&O.isFocused&&(0,i.isFocusVisible)()&&!V,isSelected:H,isPressed:en,isDisabled:_}}],23979);var g=e.i(155635);e.s(["useMenuTriggerState",0,function(e){let t=(0,g.useOverlayTriggerState)(e),[n,r]=(0,h.useState)(null),[i,l]=(0,h.useState)([]);return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){l([]),t.close()},expandedKeysStack:i,openSubmenu:(e,t)=>{l(n=>t>n.length?n:[...n.slice(0,t),e])},closeSubmenu:(e,t)=>{l(n=>n[t]===e?n.slice(0,t):n)}}}],538985),e.s(["useSubmenuTriggerState",0,function(e,t){let{triggerKey:n}=e,{expandedKeysStack:r,openSubmenu:i,closeSubmenu:l,close:o}=t,[s]=(0,h.useState)(r?.length),a=(0,h.useMemo)(()=>r[s]===n,[r,n,s]),[u,c]=(0,h.useState)(null),d=(0,h.useCallback)(e=>{c(e??null),i(n,s)},[i,s,n]),f=(0,h.useCallback)(()=>{c(null),l(n,s)},[l,s,n]),p=(0,h.useCallback)(e=>{c(e??null),a?f():d(e)},[f,d,a]);return(0,h.useMemo)(()=>({focusStrategy:u,isOpen:a,open:d,close:f,closeAll:o,submenuLevel:s,setOpen:()=>{},toggle:p}),[a,d,f,o,u,p,s])}],467743)},789212,254142,630344,600768,e=>{"use strict";var t=e.i(64139),n=e.i(966347),r=e.i(977926),i=e.i(924470),l=e.i(84533),o=e.i(59663),s=e.i(271645);function a(e,t,n){let i,{type:l}=e,{isOpen:a}=t;(0,s.useEffect)(()=>{n&&n.current&&o.onCloseMap.set(n.current,t.close)}),"menu"===l?i=!0:"listbox"===l&&(i="listbox");let u=(0,r.useId)();return{triggerProps:{"aria-haspopup":i,"aria-expanded":a,"aria-controls":a?u:void 0,onPress:t.toggle},overlayProps:{id:u}}}e.s(["useOverlayTrigger",0,a],254142),e.s(["useMenuTrigger",0,function(e,o,s){var u;let{type:c="menu",isDisabled:d,trigger:f="press"}=e,p=(0,r.useId)(),{triggerProps:h,overlayProps:g}=a({type:c},o,s),y=(0,i.useLocalizedStringFormatter)((u=n.default)&&u.__esMo
1dule?u.default:u,"@react-aria/menu"),{longPressProps:m}=(0,l.useLongPress)({isDisabled:d||"longPress"!==f,accessibilityDescription:y.format("longPressMessage"),onLongPressStart(){o.close()},onLongPress(){o.open("first")}});return delete h.onPress,{menuTriggerProps:{...h,..."press"===f?{preventFocusOnPress:!0,onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||d||((0,t.focusWithoutScrolling)(e.target),o.open("virtual"===e.pointerType?"first":null))},onPress(e){"touch"!==e.pointerType||d||((0,t.focusWithoutScrolling)(e.target),o.toggle())}}:m,id:p,onKeyDown:e=>{if(!d&&("longPress"!==f||e.altKey)&&s&&s.current)switch(e.key){case"Enter":case" ":if("longPress"===f||e.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),o.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),o.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...g,"aria-labelledby":p,autoFocus:o.focusStrategy||!0,onClose:o.close}}}],789212);var u=e.i(232940),c=e.i(249506),d=e.i(769299),f=e.i(43418),p=e.i(63534),h=e.i(90531),g=e.i(353981);let y=Math.PI/12;e.s(["useSubmenuTrigger",0,function(e,n,i){let{parentMenuRef:l,submenuRef:o,type:a="menu",isDisabled:m,delay:v=200,shouldUseVirtualFocus:b}=e,S=(0,r.useId)(),E=(0,r.useId)(),{direction:C}=(0,f.useLocale)(),w=(0,s.useRef)(void 0),K=(0,s.useCallback)(()=>{w.current&&(clearTimeout(w.current),w.current=void 0)},[w]),x=(0,s.useCallback)(e=>{K(),n.open(e)},[n,K]),P=(0,s.useCallback)(()=>{K(),n.close()},[n,K]);(0,d.useLayoutEffect)(()=>()=>{K()},[K]);let k={id:E,"aria-labelledby":S,submenuLevel:n.submenuLevel,..."menu"===a&&{onClose:n.closeAll,autoFocus:n.focusStrategy??void 0,onKeyDown:e=>{if((0,u.isFocusWithin)(e.currentTarget))switch(e.key){case"ArrowLeft":"ltr"===C&&(0,u.nodeContains)(e.currentTarget,(0,u.getEventTarget)(e))&&(e.preventDefault(),e.stopPropagation(),P(),!b&&i.current&&(0,t.focusWithoutScrolling)(i.current));break;case"ArrowRight":"rtl"===C&&(0,u.nodeContains)(e.currentTarget,(0,u.getEventTarget)(e))&&(e.preventDefault(),e.stopPropagation(),P(),!b&&i.current&&(0,t.focusWithoutScrolling)(i.current));break;case"Escape":(0,u.nodeContains)(o.current,(0,u.getEventTarget)(e))&&(e.stopPropagation(),P(),!b&&i.current&&(0,t.focusWithoutScrolling)(i.current))}}}};return(0,c.useEvent)(l,"focusin",e=>{n.isOpen&&(0,u.nodeContains)(l.current,(0,u.getEventTarget)(e))&&(0,u.getEventTarget)(e)!==i.current&&P()}),!function(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:i}=e,l=(0,s.useRef)(void 0),o=(0,s.useRef)(void 0),a=(0,s.useRef)(0),c=(0,s.useRef)(void 0),f=(0,s.useRef)(void 0),m=(0,s.useRef)(void 0),v=(0,s.useRef)(2),[b,S]=(0,s.useState)(!1);(0,g.useResizeObserver)({ref:r?n:void 0,onResize:()=>{n.current&&(o.current=n.current.getBoundingClientRect(),m.current=void 0)}});let E=()=>{S(!1),v.current=2,l.current=void 0},C=(0,h.useInteractionModality)(),w=(0,p.useEffectEvent)(e=>{b&&e.preventDefault()});(0,s.useEffect)(()=>{b&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,b]),(0,d.useLayoutEffect)(()=>{let e=n.current,s=t.current;if(i||!e||!r||"pointer"!==C||!s)return void E();o.current=e.getBoundingClientRect();let d=e=>{if("touch"===e.pointerType||"pen"===e.pointerType)return;let t=Date.now();if(t-a.current<50)return;clearTimeout(c.current),clearTimeout(f.current);let{clientX:n,clientY:r}=e;if(!l.current){l.current={x:n,y:r};return}if(!o.current)return;if(m.current||(m.current=n>o.current.right?"left":"right"),n<s.getBoundingClientRect().left||n>s.getBoundingClientRect().right||r<s.getBoundingClientRect().top||r>s.getBoundingClientRect().bottom)return void E();let i=l.current.x,d=l.current.y,p="right"===m.current?o.current.left-i:i-o.current.right,h=Math.atan2(d-o.current.top,p)+y,g=Math.atan2(d-o.current.bottom,p)-y,b=Math.atan2(d-r,"left"===m.current?-(n-i):n-i),C=b<h&&b>g;v.current=C?Math.min(v.current+1,2):Math.max(v.current-1,0),v.current>=2?S(!0):S(!1),a.current=t,l.current={x:n,y:r},C&&(c.current=setTimeout(()=>{E(),f.current=setTimeout(()=>{let e=document.elementFromPoint(n,r);e&&(0,u.nodeContains)(s,e)&&e.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},1e3))};return window.addEventListener("pointermove",d),window.addEventListener("pointerdown",w,!0),()=>{window.removeEventListener("pointermove",d),window.removeEventListener("pointerdown",w,!0),clearTimeout(c.current),clearTimeout(f.current),v.current=2}},[i,r,t,C,S,n])}({menuRef:l,submenuRef:o,isOpen:n.isOpen,isDisabled:m}),{submenuTriggerProps:{id:S,"aria-controls":n.isOpen?E:void 0,"aria-haspopup":m?void 0:a,"aria-expanded":n.isOpen?"true":"false",onPressStart:e=>{m||"virtual"!==e.pointerType&&"keyboard"!==e.pointerType||x("first")},onPress:e=>{m||"touch"!==e.pointerType&&"mouse"!==e.pointerType||x()},onHoverChange:e=>{!m&&(e&&!n.isOpen?w.current||(w.current=setTimeout(()=>{x()},v)):e||K())},onKeyDown:e=>{switch(e.key){case"ArrowRight":!m&&("ltr"===C?(e.preventDefault(),n.isOpen||x("first"),"menu"===a&&o?.current&&(0,u.getActiveElement)()===i?.current&&(0,t.focu
1sWithoutScrolling)(o.current)):n.isOpen?P():e.continuePropagation());break;case"ArrowLeft":!m&&("rtl"===C?(e.preventDefault(),n.isOpen||x("first"),"menu"===a&&o?.current&&(0,u.getActiveElement)()===i?.current&&(0,t.focusWithoutScrolling)(o.current)):n.isOpen?P():e.continuePropagation());break;default:e.continuePropagation()}},isOpen:n.isOpen},submenuProps:k,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:e=>e!==i.current}}}],630344);let m=new WeakMap;e.s(["menuData",0,m],600768)},213808,e=>{"use strict";var t=e.i(822053),n=e.i(903202),r=e.i(232940),i=e.i(177285);let l="u">typeof HTMLElement&&"inert"in HTMLElement.prototype;function o(e){return"true"===e.dataset.liveAnnouncer||void 0!==e.dataset.reactAriaTopLayer}let s=new WeakMap,a=[];e.s(["ariaHideOutside",0,function(e,u){let c=(0,n.getOwnerWindow)(e?.[0]),d=u instanceof c.Element?{root:u}:u,f=d?.root??document.body,p=d?.shouldUseInert&&l,h=new Set(e),g=new Set,y=(e,t)=>{p&&e instanceof c.HTMLElement?e.inert=t:t?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof c.HTMLElement&&(e.inert=!1))},m=new Set;if((0,i.shadowDOM)())for(let t of e){let e=t;for(;e&&e!==f;){let t=e.getRootNode();"shadowRoot"in t&&m.add(t.shadowRoot),e=t.parentNode}}let v=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))h.add(t);let i=e=>{if(g.has(e)||h.has(e)||e.parentElement&&g.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of h)if((0,r.nodeContains)(e,t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},l=(0,t.createShadowTreeWalker)((0,n.getOwnerDocument)(e),e,NodeFilter.SHOW_ELEMENT,{acceptNode:i}),o=i(e);if(o===NodeFilter.FILTER_ACCEPT&&b(e),o!==NodeFilter.FILTER_REJECT){let e=l.nextNode();for(;null!=e;)b(e),e=l.nextNode()}},b=e=>{let t=s.get(e)??0;(p&&e instanceof c.HTMLElement?e.inert:"true"===e.getAttribute("aria-hidden"))&&0===t||(0===t&&y(e,!0),g.add(e),s.set(e,t+1))};a.length&&a[a.length-1].disconnect(),v(f);let S=new MutationObserver(e=>{for(let t of e)if("childList"===t.type){if(t.target.isConnected&&![...h,...g].some(e=>(0,r.nodeContains)(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&o(e)?h.add(e):e instanceof Element&&v(e);if((0,i.shadowDOM)()){for(let e of m)if(!e.isConnected){S.disconnect();break}}}});S.observe(f,{childList:!0,subtree:!0});let E=new Set;if((0,i.shadowDOM)())for(let e of m){let t=new MutationObserver(e=>{for(let t of e)if("childList"===t.type){if(t.target.isConnected&&![...h,...g].some(e=>(0,r.nodeContains)(e,t.target)))for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&o(e)?h.add(e):e instanceof Element&&v(e);if((0,i.shadowDOM)()){for(let e of m)if(!e.isConnected){S.disconnect();break}}}});t.observe(e,{childList:!0,subtree:!0}),E.add(t)}let C={visibleNodes:h,hiddenNodes:g,observe(){S.observe(f,{childList:!0,subtree:!0})},disconnect(){S.disconnect()}};return a.push(C),()=>{if(S.disconnect(),(0,i.shadowDOM)())for(let e of E)e.disconnect();for(let e of g){let t=s.get(e);null!=t&&(1===t?(y(e,!1),s.delete(e)):s.set(e,t-1))}C===a[a.length-1]?(a.pop(),a.length&&a[a.length-1].observe()):a.splice(a.indexOf(C),1)}},"keepVisible",0,function(e){let t=a[a.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}])},44658,e=>{"use strict";var t=e.i(232940),n=e.i(218602),r=e.i(312936),i=e.i(903202),l=e.i(63534),o=e.i(271645);function s(e,n){if(e.button>0)return!1;let r=(0,t.getEventTarget)(e);if(r){let e=r.ownerDocument;if(!e||!(0,t.nodeContains)(e.documentElement,r)||r.closest("[data-react-aria-top-layer]"))return!1}return!!n.current&&!e.composedPath().includes(n.current)}let a=[];e.s(["useOverlay",0,function(e,u){let{onClose:c,shouldCloseOnBlur:d,isOpen:f,isDismissable:p=!1,isKeyboardDismissDisabled:h=!1,shouldCloseOnInteractOutside:g}=e,y=(0,o.useRef)(void 0);(0,o.useEffect)(()=>{if(f&&!a.includes(u))return a.push(u),()=>{let e=a.indexOf(u);e>=0&&a.splice(e,1)}},[f,u]);let m=()=>{a[a.length-1]===u&&c&&c()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:a}=e,u=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=(0,l.useEffectEvent)(e=>{n&&s(e,t)&&(a&&a(e),u.current.isPointerDown=!0)}),d=(0,l.useEffectEvent)(e=>{n&&n(e)});(0,o.useEffect)(()=>{let e=u.current;if(r)return;let n=t.current,l=(0,i.getOwnerDocument)(n);if("u">typeof PointerEvent){let n=n=>{e.isPointerDown&&s(n,t)&&d(n),e.isPointerDown=!1};return l.addEventListener("pointerdown",c,!0),l.addEventListener("click",n,!0),()=>{l.removeEventListener("pointerdown",c,!0),l.removeEventListener("click",n,!0)}}},[t,r])}({ref:u,onInteractOutside:p&&f?e=>{(!g||g((0,t.getEventTarget)(e)))&&(a[a.length-1]===u&&e.stopPropagation(),y.current===u&&m()),y.current=void 0}:void 0,onInteractOutsideStart:e=>{let n=a[a.length-1];y.current=n,(!g||g((0,t.getEventTarget)(e)))&&n===u&&e.stopPropagation()}});let{focusWithinProps:v}=(0,r.useFocusWithin)({isDisabled:!d,onBlurWithin:e=>{!(!e.relatedTarget||(0,n.isElementInChildOfActiveScope)(e.relatedTarget))&&(!g||g(e.relatedTarget))&&c?.()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||h||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),m())},...v},underlayProps:{}}}],44658)},592236,803739,162862,e=>{"use strict";let t;var n=e.i(213808),r=e.i(663059),i=e.i(75975),l=e.i(44658),o=e.i(485581),s=e.i(232940),a=e.i(415608),u=e.i(19930),c=e.i(583797),d=e.i(506930),f=e.i(769299),p=e.i(828646);let h="u">
1typeof document&&window.visualViewport,g=0;function y(e={}){let{isDisabled:n}=e;(0,f.useLayoutEffect)(()=>{if(!n){let e,n,r,i,l,f,h,y;return 1==++g&&(t=(0,c.isIOS)()?(n=m(document.documentElement,"overflow","hidden"),r=!1,i=document.createElement("style"),(l=(0,a.getNonce)())&&(i.nonce=l),i.textContent=` 2@layer { 3 * { 4 overscroll-behavior: contain; 5 } 6}`.trim(),document.head.prepend(i),f=HTMLElement.prototype.focus,HTMLElement.prototype.focus=function(e){let t=(0,s.getActiveElement)(),n=null!=t&&(0,p.willOpenKeyboard)(t);f.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||b(this,n)},h=(0,o.chain)(v(document,"touchstart",t=>{let n=(0,s.getEventTarget)(t);e=(0,d.isScrollable)(n)?n:(0,u.getScrollParent)(n,!0),r=!1;let i=n.ownerDocument.defaultView.getSelection();i&&!i.isCollapsed&&i.containsNode(n,!0)&&(r=!0),t.composedPath().some(e=>e instanceof HTMLInputElement&&"range"===e.type)&&(r=!0),"selectionStart"in n&&"selectionEnd"in n&&n.selectionStart<n.selectionEnd&&n.ownerDocument.activeElement===n&&(r=!0)},{passive:!1,capture:!0}),v(document,"touchmove",t=>{if(2!==t.touches.length&&!r){if(!e||e===document.documentElement||e===document.body)return void t.preventDefault();e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()}},{passive:!1,capture:!0}),v(document,"blur",e=>{let t=(0,s.getEventTarget)(e),n=e.relatedTarget;if(n&&(0,p.willOpenKeyboard)(n))n.focus({preventScroll:!0}),b(n,(0,p.willOpenKeyboard)(t));else if(!n){let e=t.parentElement?.closest("[tabindex]");e?.focus({preventScroll:!0})}},!0)),()=>{n(),h(),i.remove(),HTMLElement.prototype.focus=f}):(y=window.innerWidth-document.documentElement.clientWidth,(0,o.chain)(y>0&&("scrollbarGutter"in document.documentElement.style?m(document.documentElement,"scrollbarGutter","stable"):m(document.documentElement,"paddingRight",`${y}px`)),m(document.documentElement,"overflow","hidden")))),()=>{0==--g&&t()}}},[n])}function m(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function v(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function b(e,t){t||!h?S(e):h.addEventListener("resize",()=>S(e),{once:!0})}function S(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=(0,u.getScrollParent)(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;h&&(n=Math.min(n,h.offsetTop+h.height));let i=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+i)),behavior:"smooth"})}}n=e.parentElement}}e.s(["usePreventScroll",0,y],803739);var E=e.i(271645);e.s(["usePopover",0,function(e,t){let{triggerRef:o,popoverRef:s,groupRef:a,isNonModal:u,isKeyboardDismissDisabled:c,shouldCloseOnInteractOutside:d,...f}=e,p="SubmenuTrigger"===f.trigger,{overlayProps:h,underlayProps:g}
6=(0,l.useOverlay)({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!u||p,isKeyboardDismissDisabled:c,shouldCloseOnInteractOutside:d},a??s),{overlayProps:m,arrowProps:v,placement:b,triggerAnchorPoint:S}=(0,r.useOverlayPosition)({...f,targetRef:o,overlayRef:s,isOpen:t.isOpen,onClose:u&&!p?t.close:null});return y({isDisabled:u||!t.isOpen}),(0,E.useEffect)(()=>{if(t.isOpen&&s.current)if(u)return(0,n.keepVisible)(a?.current??s.current);else return(0,n.ariaHideOutside)([a?.current??s.current],{shouldUseInert:!0})},[u,t.isOpen,s,a]),{popoverProps:(0,i.mergeProps)(h,m),arrowProps:v,underlayProps:g,placement:b,triggerAnchorPoint:S}}],592236);var C={};C={"ar-AE":{dismiss:"تجاÙÙ"},"bg-BG":{dismiss:"ÐÑÑ
вÑÑлÑне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"SchlieÃen"},"el-GR":{dismiss:"ÎÏÏÏÏιÏη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"×תע××"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"ElutasÃtás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"éãã"},"ko-KR":{dismiss:"무ì"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"NerÄdÄ«t"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"ÐÑопÑÑÑиÑÑ"},"sk-SK":{dismiss:"ZruÅ¡iÅ¥"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"СкаÑÑваÑи"},"zh-CN":{dismiss:"åæ¶"},"zh-TW":{dismiss:"éé"}},e.s(["default",0,C],162862)},926202,688056,916031,e=>{"use strict";var t=e.i(485581),n=e.i(478607),r=e.i(232940),i=e.i(115312),l=e.i(828646),o=e.i(75975),s=e.i(922190),a=e.i(363499),u=e.i(414232),c=e.i(977926),d=e.i(84533),f=e.i(271645);function p(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function h(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function g(e,t){let n=[],r=t;for(;r?.parentKey!=null;)(r=e.getItem(r.parentKey))&&n.unshift(r);return n}e.s(["useSelectableItem",0,function(e){let{id:p,selectionManager:h,key:g,ref:y,shouldSelectOnPressUp:m,shouldUseVirtualFocus:v,focus:b,isDisabled:S,onAction:E,allowsDifferentPressOrigin:C,linkBehavior:w="action"}=e,K=(0,a.useRouter)();p=(0,c.useId)(p);let x=e=>{if("keyboard"===e.pointerType&&(0,i.isNonContiguousSelectionModifier)(e))h.toggleSelection(g);else{if("none"===h.selectionMode)return;if(h.isLink(g)){if("selection"===w&&y.current){let t=h.getItemProps(g);K.open(y.current,e,t.href,t.routerOptions),h.setSelectedKeys(h.selectedKeys);return}else if("override"===w||"none"===w)return}"single"===h.selectionMode?h.isSelected(g)&&!h.disallowEmptySelection?h.toggleSelection(g):h.replaceSelection(g):e&&e.shiftKey?h.extendSelection(g):"toggle"===h.selectionBehavior||e&&((0,l.isCtrlKeyPressed)(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?h.toggleSelection(g):h.replaceSelection(g)}};(0,f.useEffect)(()=>{g===h.focusedKey&&h.isFocused&&(v?(0,s.moveVirtualFocus)(y.current):b?b():(0,r.getActiveElement)()!==y.current&&y.current&&(0,n.focusSafely)(y.current))},[y,g,h.focusedKey,h.childFocusStrategy,h.isFocused,v]),S=S||h.isDisabled(g);let P={};v||S?S&&(P.onMouseDown=e=>{e.preventDefault()}):P={tabIndex:g===h.focusedKey?0:-1,onFocus(e){(0,r.getEventTarget)(e)===y.current&&h.setFocusedKey(g)}},(0,f.useEffect)(()=>{S&&h.focusedKey===g&&h.setFocusedKey(null)},[h,S,g]);let k=h.isLink(g)&&"override"===w,N=E&&"action"===e.UNSTABLE_itemBehavior,T=h.isLink(g)&&"selection"!==w&&"none"!==w,R=!S&&h.canSelectItem(g)&&!k&&!N,M=(E||T)&&!S,L=M&&("replace"===h.selectionBehavior?!R:!R||h.isEmpty),F=M&&R&&"replace"===h.selectionBehavior,D=L||F,I=(0,f.useRef)(null),A=D&&R,O=(0,f.useRef)(!1),B=(0,f.useRef)(!1),V=h.getItemProps(g),_=e=>{E&&(E(),y.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),T&&y.current&&K.open(y.current,e,V.href,V.routerOptions)},H={ref:y};if(m?(H.onPressStart=e=>{I.current=e.pointerType,O.current=A,"keyboard"!==e.pointerType||D&&" "!==e.key||x(e)},C?(H.onPressUp=L?void 0:e=>{"mouse"===e.pointerType&&R&&x(e)},H.onPress=L?_:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&R&&x(e)}):H.onPress=e=>{L||F&&"mouse"!==e.pointerType?("keyboard"!==e.pointerType||"Enter"===e.key)&&_(e):"keyboard"!==e.pointerType&&R&&x(e)}):(H.onPressStart=e=>{I.current=e.pointerType,O.current=A,B.current=L,!R||("mouse"!==e.pointerType||L)&&("keyboard"!==e.pointerType||M&&" "!==e.key)||x(e)},H.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"ke
6yboard"===e.pointerType&&D&&"Enter"===e.key||"mouse"===e.pointerType&&B.current)&&(D?_(e):R&&x(e))}),P["data-collection"]=(0,i.getCollectionId)(h.collection),P["data-key"]=g,H.preventFocusOnPress=v,v&&(H=(0,o.mergeProps)(H,{onPressStart(e){"touch"!==e.pointerType&&(h.setFocused(!0),h.setFocusedKey(g))},onPress(e){"touch"===e.pointerType&&(h.setFocused(!0),h.setFocusedKey(g))}})),V)for(let e of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])V[e]&&(H[e]=(0,t.chain)(H[e],V[e]));let{pressProps:z,isPressed:W}=(0,u.usePress)(H),U=F?e=>{"mouse"===I.current&&(e.stopPropagation(),e.preventDefault(),_(e))}:void 0,{longPressProps:j}=(0,d.useLongPress)({isDisabled:!A,onLongPress(e){"touch"===e.pointerType&&(x(e),h.setSelectionBehavior("toggle"))}}),$="none"!==w&&h.isLink(g)?e=>{a.openLink.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,o.mergeProps)(P,R||L||v&&!S?z:{},A?j:{},{onDoubleClick:U,onDragStartCapture:e=>{"touch"===I.current&&O.current&&e.preventDefault()},onClick:$,id:p},v?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:W,isSelected:h.isSelected(g),isFocused:h.isFocused&&h.focusedKey===g,isDisabled:S,allowsSelection:R,hasAction:D}}],926202),e.s(["compareNodeOrder",0,function(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...g(e,t),t],i=[...g(e,n),n],l=r.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return -1!==l?(t=r[l],n=i[l],t.index-n.index):r.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1)},"getChildNodes",0,p,"getFirstItem",0,function(e){return h(e,0)},"getLastItem",0,function(e){let t;for(let n of e)t=n;return t},"getNthItem",0,h],688056);let y=new WeakMap;e.s(["getItemCount",0,function(e){let t=y.get(e);if(null!=t)return t;let n=0,r=t=>{for(let i of t)"section"===i.type?r(p(i,e)):"item"===i.type&&n++};return r(e),y.set(e,n),n}],916031)},3353,388684,752728,195751,861096,603668,65988,e=>{"use strict";var t=e.i(406798),n=e.i(922190),r=e.i(478607),i=e.i(64139),l=e.i(232940),o=e.i(218602),s=e.i(90531),a=e.i(115312),u=e.i(828646),c=e.i(402494),d=e.i(75975),f=e.i(506930);function p(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&((0,f.isScrollable)(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}var h=e.i(583797);function g(e,t,n={}){let{block:r="nearest",inline:i="nearest"}=n;if(e===t)return;let l=e.scrollTop,o=e.scrollLeft,s=t.getBoundingClientRect(),a=e.getBoundingClientRect(),u=window.getComputedStyle(t),c=window.getComputedStyle(e),d=document.scrollingElement||document.documentElement,f=e===d,p=e===d?0:a.top,y=e===d?e.clientHeight:a.bottom,m=e===d?0:a.left,v=e===d?e.clientWidth:a.right,b=parseFloat(u.scrollMarginTop)||0,S=parseFloat(u.scrollMarginBottom)||0,E=parseFloat(u.scrollMarginLeft)||0,C=parseFloat(u.scrollMarginRight)||0,w=parseFloat(c.scrollPaddingTop)||0,K=parseFloat(c.scrollPaddingBottom)||0,x=parseFloat(c.scrollPaddingLeft)||0,P=parseFloat(c.scrollPaddingRight)||0,k=parseFloat(c.borderTopWidth)||0,N=parseFloat(c.borderBottomWidth)||0,T=parseFloat(c.borderLeftWidth)||0,R=parseFloat(c.borderRightWidth)||0,M=s.top-b,L=s.bottom+S,F=s.left-E,D=s.right+C,I=e===d?0:T+R,A=e===d?0:k+N,O=e===d?0:e.offsetWidth-e.clientWidth-I,B=e===d?0:e.offsetHeight-e.clientHeight-A,V=p+(f?0:k)+w,_=y-(f?0:N)-K-B,H=m+(f?0:T)+x,z=v-(f?0:R)-P;"rtl"!==c.direction||(0,h.isIOS)()?z-=O:H+=O;let W=M<V||L>_,U=F<H||D>z;if(W&&"start"===r)l+=M-V;else if(W&&"center"===r)l+=(M+L)/2-(V+_)/2;else if(W&&"end"===r)l+=L-_;else if(W&&"nearest"===r){let e=M-V,t=L-_;l+=Math.abs(e)<=Math.abs(t)?e:t}if(U&&"start"===i)o+=F-H;else if(U&&"center"===i)o+=(F+D)/2-(H+z)/2;else if(U&&"end"===i)o+=D-z;else if(U&&"nearest"===i){let e=F-H,t=D-z;o+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:o,top:l})}function y(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(t).overflow){let{left:t,top:r}=e.getBoundingClientRect(),i=p(e,!0);for(let t of i)g(t,e);let{left:l,top:o}=e.getBoundingClientRect();if(Math.abs(t-l)>1||Math.abs(r-o)>1){for(let e of i=n?p(n,!0):[])g(e,n,{block:"center",inline:"center"});for(let t of p(e,!0))g(t,e)}}else{let{left:t,top:r}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:i,top:l}=e.getBoundingClientRect();(Math.abs(t-i)>1||Math.abs(r-l)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}e.s(["scrollIntoView",0,g,"scrollIntoViewport",0,y],388684);var m=e.i(249506),v=e.i(43418),b=e.i(363499),S=e.i(271645);function E(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(0,S.useRef)({search:"",timeout:void 0});return(0,S.useEffect)(()=>{let e=i.current.timeout;return()=>{clearTimeout(e)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>
6{if(i.current.search.length>0&&" "===e.key){if(e.preventDefault(),"continuePropagation"in e&&(!("continuePropagation"in e)||e.isPropagationStopped())||e.stopPropagation(),i.current.search+=" ",null!=t.getKeyForSearch){let e=t.getKeyForSearch(i.current.search,n.focusedKey);null==e&&(e=t.getKeyForSearch(i.current.search)),null!=e&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},1e3)}}:void 0,onKeyDown:t.getKeyForSearch?e=>{var o;let s=1!==(o=e.key).length&&/^[A-Z]/i.test(o)?"":o;if(s&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&(0,l.nodeContains)(e.currentTarget,(0,l.getEventTarget)(e))&&(0!==i.current.search.length||" "!==s)){if(i.current.search+=s,null!=t.getKeyForSearch){let l=t.getKeyForSearch(i.current.search,n.focusedKey);if(null==l&&(l=t.getKeyForSearch(i.current.search)),null!=l)n.setFocusedKey(l),r&&r(l),e.preventDefault(),"continuePropagation"in e||e.stopPropagation();else{i.current.search="",clearTimeout(i.current.timeout),i.current.timeout=void 0;return}}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},1e3)}}:void 0}}}e.s(["useTypeSelect",0,E],752728);var C=e.i(769299);function w(e,t){let n=(0,S.useRef)(!0),r=(0,S.useRef)(null);(0,C.useLayoutEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,C.useLayoutEffect)(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}var K=e.i(174080);function x(e){let f,{selectionManager:p,keyboardDelegate:h,ref:C,autoFocus:x=!1,shouldFocusWrap:P=!1,disallowEmptySelection:k=!1,disallowSelectAll:N=!1,escapeKeyBehavior:T="clearSelection",selectOnFocus:R="replace"===p.selectionBehavior,disallowTypeAhead:M=!1,shouldUseVirtualFocus:L,allowsTabNavigation:F=!1,scrollRef:D=C,linkBehavior:I="action",UNSTABLE_focusOnEntry:A}=e,{direction:O}=(0,v.useLocale)(),B=(0,b.useRouter)(),V=(0,S.useRef)({top:0,left:0});(0,m.useEvent)(D,"scroll",()=>{V.current={top:D.current?.scrollTop??0,left:D.current?.scrollLeft??0}});let _=(0,S.useRef)(!1);(0,m.useEvent)(C,t.FOCUS_EVENT,L?e=>{let{detail:t}=e;e.stopPropagation(),p.setFocused(!0),t?.focusStrategy==="first"&&(_.current=!0)}:void 0);let H=h.getFirstKey?.()??null;w(()=>{if(_.current)if(null==H){let e=(0,l.getActiveElement)();(0,n.moveVirtualFocus)(C.current),(0,n.dispatchVirtualFocus)(e,null),p.collection.size>0&&(_.current=!1)}else p.setFocusedKey(H),_.current=!1},[H,p.collection.size]),w(()=>{p.collection.size>0&&(_.current=!1)},[p.focusedKey]),(0,m.useEvent)(C,t.CLEAR_FOCUS_EVENT,L?e=>{e.stopPropagation(),p.setFocused(!1),e.detail?.clearFocusKey&&p.setFocusedKey(null)}:void 0);let z=(0,S.useRef)(x),W=(0,S.useRef)(!1);(0,S.useEffect)(()=>{if(z.current){let e=null;"first"===x&&(e=h.getFirstKey?.()??null),"last"===x&&(e=h.getLastKey?.()??null);let t=p.selectedKeys;if(t.size){for(let n of t)if(p.canSelectItem(n)){e=n;break}}p.setFocused(!0),p.setFocusedKey(e),null==e&&!L&&C.current&&(0,r.focusSafely)(C.current),p.collection.size>0&&(z.current=!1,W.current=!0)}});let U=(0,S.useRef)(p.focusedKey),j=(0,S.useRef)(null);(0,S.useEffect)(()=>{if(p.isFocused&&null!=p.focusedKey&&(p.focusedKey!==U.current||W.current)&&D.current&&C.current){let e=(0,s.getInteractionModality)(),t=(0,a.getItemElement)(C,p.focusedKey);if(!(t instanceof HTMLElement))return;("keyboard"===e||W.current)&&(j.current&&cancelAnimationFrame(j.current),j.current=requestAnimationFrame(()=>{D.current&&(g(D.current,t),"virtual"!==e&&y(t,{containingElement:C.current}))}))}!L&&p.isFocused&&null==p.focusedKey&&null!=U.current&&C.current&&(0,r.focusSafely)(C.current),U.current=p.focusedKey,W.current=!1}),(0,S.useEffect)(()=>()=>{j.current&&cancelAnimationFrame(j.current)},[]),(0,m.useEvent)(C,"react-aria-focus-scope-restore",e=>{e.preventDefault(),p.setFocused(!0)});let $={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!C.current||!(0,l.nodeContains)(C.current,(0,l.getEventTarget)(e)))return;let t=(t,n)=>{if(null!=t){if(p.isLink(t)&&"selection"===I&&R&&!(0,a.isNonContiguousSelectionModifier)(e)){(0,K.flushSync)(()=>{p.setFocusedKey(t,n)});let r=(0,a.getItemElement)(C,t),i=p.getItemProps(t);r&&B.open(r,e,i.href,i.routerOptions);return}p.setFocusedKey(t,n),p.isLink(t)&&"override"===I||(e.shiftKey&&"multiple"===p.selectionMode?p.extendSelection(t):R&&!(0,a.isNonContiguousSelectionModifier)(e)&&p.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(h.getKeyBelow){let n=null!=p.focusedKey?h.getKeyBelow?.(p.focusedKey):h.getFirstKey?.();null==n&&P&&(n=h.getFirstKey?.(p.focusedKey)),null!=n&&(e.preventDefault(),t(n))}break;case"ArrowUp":if(h.getKeyAbove){let n=null!=p.focusedKey?h.getKeyAbove?.(p.focusedKey):h.getLastKey?.();null==n&&P&&(n=h.getLastKey?.(p.focusedKey)),null!=n&&(e.preventDefault(),t(n))}break;case"ArrowLeft":if(h.getKeyLeftOf){let n=null!=p.focusedKey?h.getKeyLeftOf?.(p.focusedKey):h.getFirstKey?.();null==n&&P&&(n="rtl"===O?h.getFirstKey?.(p.focusedKey):h.getLastKey?.(p.focusedKey)),null!=n&&(e.preventDefault(),t(n,"rtl"===O?"first":"last"))}break;case"ArrowRight":if(h.getKeyRightOf){let n=null!=p.focusedKey?h.getKeyRightOf?.(p.focusedKey):h.getFirstKey?.();null==n&&P&&(n="rtl"===O?h.getLastKey?.(p.focusedKey):h.getFirstKey?.(p.focusedKey)),null!=n&&(e.preventDefault(),t(n,"rtl"===O?"last":"first"))}break;case"Home":if(h.getFirstKey){if(null===p.focusedKey&&e.shiftKey)return;e.preventDefault();
6let t=h.getFirstKey(p.focusedKey,(0,u.isCtrlKeyPressed)(e));p.setFocusedKey(t),null!=t&&((0,u.isCtrlKeyPressed)(e)&&e.shiftKey&&"multiple"===p.selectionMode?p.extendSelection(t):R&&p.replaceSelection(t))}break;case"End":if(h.getLastKey){if(null===p.focusedKey&&e.shiftKey)return;e.preventDefault();let t=h.getLastKey(p.focusedKey,(0,u.isCtrlKeyPressed)(e));p.setFocusedKey(t),null!=t&&((0,u.isCtrlKeyPressed)(e)&&e.shiftKey&&"multiple"===p.selectionMode?p.extendSelection(t):R&&p.replaceSelection(t))}break;case"PageDown":if(h.getKeyPageBelow&&null!=p.focusedKey){let n=h.getKeyPageBelow(p.focusedKey);null!=n&&(e.preventDefault(),t(n))}break;case"PageUp":if(h.getKeyPageAbove&&null!=p.focusedKey){let n=h.getKeyPageAbove(p.focusedKey);null!=n&&(e.preventDefault(),t(n))}break;case"a":(0,u.isCtrlKeyPressed)(e)&&"multiple"===p.selectionMode&&!0!==N&&(e.preventDefault(),p.selectAll());break;case"Escape":"clearSelection"!==T||k||0===p.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),p.clearSelection());break;case"Tab":if(!F)if(e.shiftKey)C.current.focus();else{let e,t,n=(0,o.getFocusableTreeWalker)(C.current,{tabbable:!0});do(t=n.lastChild())&&(e=t);while(t)let r=(0,l.getActiveElement)();e&&(!(0,l.isFocusWithin)(e)||r&&!(0,c.isTabbable)(r))&&(0,i.focusWithoutScrolling)(e)}}},onFocus:e=>{if(p.isFocused){(0,l.nodeContains)(e.currentTarget,(0,l.getEventTarget)(e))||p.setFocused(!1);return}if(!(0,l.nodeContains)(e.currentTarget,(0,l.getEventTarget)(e)))return;let t=(0,s.getInteractionModality)();p.setFocused(!0);let n=e=>{null!=e&&(p.setFocusedKey(e),R&&!p.isSelected(e)&&p.replaceSelection(e))};if(A&&("keyboard"===t||"virtual"===t))n("first"===A?h.getFirstKey?.():h.getLastKey?.());else if(null==p.focusedKey){let t=e.relatedTarget;t&&e.currentTarget.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?n(p.lastSelectedKey??h.getLastKey?.()):n(p.firstSelectedKey??h.getFirstKey?.())}else D.current&&(D.current.scrollTop=V.current.top,D.current.scrollLeft=V.current.left);if(null!=p.focusedKey&&D.current){let e=(0,a.getItemElement)(C,p.focusedKey);e instanceof HTMLElement&&((0,l.isFocusWithin)(e)||L||(0,i.focusWithoutScrolling)(e),("keyboard"===t||A&&"virtual"===t)&&y(e,{containingElement:C.current}))}},onBlur:e=>{(0,l.nodeContains)(e.currentTarget,e.relatedTarget)||p.setFocused(!1)},onMouseDown(e){D.current===(0,l.getEventTarget)(e)&&e.preventDefault()}},{typeSelectProps:q}=E({keyboardDelegate:h,selectionManager:p});M||($=(0,d.mergeProps)(q,$)),L||(f=null==p.focusedKey?0:-1);let G=(0,a.useCollectionId)(p.collection);return{collectionProps:(0,d.mergeProps)($,{tabIndex:f,"data-collection":G})}}e.s(["useSelectableCollection",0,x],195751);class P{constructor(e){this.ref=e}getItemRect(e){let t=this.ref.current;if(!t)return null;let n=null!=e?(0,a.getItemElement)(this.ref,e):null;if(!n)return null;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-r.left-t.clientLeft+t.scrollLeft,y:i.top-r.top-t.clientTop+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e?.scrollWidth??0,height:e?.scrollHeight??0}}getVisibleRect(){let e=this.ref.current;return{x:e?.scrollLeft??0,y:e?.scrollTop??0,width:e?.clientWidth??0,height:e?.clientHeight??0}}}e.s(["DOMLayoutDelegate",0,P],861096);class k{constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new P(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new P(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}isDisabled(e){return"all"===this.disabledBehavior&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!=="selection"}findNextNonDisabled(e,t,n=!1){let r=e;for(;null!=r;){let e=this.collection.getItem(r);if(e?.type==="item"&&(n||!this.isDisabled(e)))return r;r=t(r)}return null}getNextKey(e,t){let n=e;return n=this.collection.getKeyAfter(n),this.findNextNonDisabled(n,e=>this.collection.getKeyAfter(e),t?.includeDisabled)}getPreviousKey(e,t){let n=e;return n=this.collection.getKeyBefore(n),this.findNextNonDisabled(n,e=>this.collection.getKeyBefore(e),t?.includeDisabled)}findKey(e,t,n){let r=e,i=this.layoutDelegate.getItemRect(r);if(!i||null==r)return null;let l=i;
6do{if(null==(r=t(r)))break;i=this.layoutDelegate.getItemRect(r)}while(i&&n(l,i)&&null!=r)return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}isReversed(e){let t=this.getNextKey(e),n=(0,a.getItemElement)(this.ref,e);if(null!=t){let e=(0,a.getItemElement)(this.ref,t);return!!n&&!!e&&n.getBoundingClientRect().top>e.getBoundingClientRect().top}let r=this.getPreviousKey(e);if(null!=r){let e=(0,a.getItemElement)(this.ref,r);return!!n&&!!e&&e.getBoundingClientRect().top>n.getBoundingClientRect().top}return!1}getKeyBelow(e,t){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e,t),this.isSameRow):"vertical"===this.orientation&&this.isReversed(e)?this.getPreviousKey(e,t):this.getNextKey(e,t)}getKeyAbove(e,t){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e,t),this.isSameRow):"vertical"===this.orientation&&this.isReversed(e)?this.getNextKey(e,t):this.getPreviousKey(e,t)}getNextColumn(e,t,n){return t?this.getPreviousKey(e,n):this.getNextKey(e,n)}getKeyRightOf(e,t){let n="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";if(this.layoutDelegate[n])return e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled);if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"rtl"===this.direction,t);else return this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction,t),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction,t):null}getKeyLeftOf(e,t){let n="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";if(this.layoutDelegate[n])return e=this.layoutDelegate[n](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[n](e),t?.includeDisabled);if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"ltr"===this.direction,t);else return this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction,t),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction,t):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!(0,f.isScrollable)(t))return this.getFirstKey();let i=e;if("horizontal"===this.orientation){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&null!=i;)n=null==(i=this.getKeyAbove(i))?null:this.layoutDelegate.getItemRect(i)}else{let e=this.layoutDelegate.getVisibleRect(),t=r?n.y-e.height:Math.max(0,n.y+n.height-e.height);for(;n&&n.y>t&&null!=i;)n=null==(i=this.getKeyAbove(i))?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getLastKey():this.getFirstKey())}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;let r=this.isReversed(e);if(t&&!(0,f.isScrollable)(t))return this.getLastKey();let i=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,n.x-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&null!=i;)n=null==(i=this.getKeyBelow(i))?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&null!=i;)n=null==(i=this.getKeyBelow(i))?null:this.layoutDelegate.getItemRect(i)}return i??(r?this.getFirstKey():this.getLastKey())}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=n.getItem(r);if(!t)break;let i=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(i,e))return r;r=this.getNextKey(r)}return null}}e.s(["ListKeyboardDelegate",0,k],603668);let N=new Map;function T(e){let{locale:t}=(0,v.useLocale)(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(N.has(n))return N.get(n);let r=new Intl.Collator(t,e);return N.set(n,r),r}e.s(["useCollator",0,T],65988),e.s(["useSelectableList",0,function(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:l,layoutDelegate:o,orientation:s}=e,a=T({usage:"search",sensitivity:"base"}),u=t.disabledBehavior,c=(0,S.useMemo)(()=>l||new k({collection:n,disabledKeys:r,disabledBehavior:u,ref:i,collator:a,layoutDelegate:o,orientation:s}),[l,o,n,r,i,a,u,s]),{collectionProps:d}=x({...e,ref:i,selectionManager:t,keyboardDelegate:c});return{listProps:d}}],3353)},115312,e=>{"use strict";var t=e.i(583797),n=e.i(977926);let r=new WeakMap;e.s(["getCollectionId",0,function(e){return r.get(e)},"getItemElement",0,function(e,t){let n=`[data-key="${CSS.escape(String(t))}"]`,r=e.current?.dataset.collection;return r&&(n=`[data-collection="${CSS.escape(r)}"]${n}`),e.current?.querySelector(n)},"isNonContiguousSelectionModifier",0,function(e){return(0,t.isAppleDevice)()?e.altKey:e.ctrlKey},"useCollectionId",0,function(e){let t=(0,n.useId)();return r.set(e,t),t}])},406798,922190,623972,e=>{"use strict";e.s(["CLEAR_FOCUS_EVENT",0,"react-aria-clear-focus","FOCUS_EVENT",0,"react-aria-focus"],406798);var t=e.i(232940),n=e.i(903202);function r(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function i(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function l(e){let n=(0,t.getActiveElement)(e),r=n?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||n}e.s(["dispatchVirtualBlur",0,r,"dispatchVirtualFocus",0,i,"getVirtuallyFocusedElement",0,l,"moveVirtualFocus",0,function(e){let t=l((0,n.getOwnerDocument)(e));t!==e&&(t&&r(t,e),e&&i(e,t))}],922190);var o={};o={"ar-AE":{collectionLabel:"Ù
ÙØªØ±ØØ§Øª"},"bg-BG":{collectionLabel:"ÐÑедложениÑ"},"cs-CZ":{collectionLabel:"Návrhy"},"da-DK":{collectionLabel:"Forslag"},"de-DE":{collectionLabel:"Empfehlungen"},"el-GR":{collectionLabel:"Î ÏοÏάÏειÏ"},"en-US":{collectionLabel:"Suggestions"},"es-ES":{collectionLabel:"Sugerencias"},"et-EE":{collectionLabel:"Soovitused"},"fi-FI":{collectionLabel:"Ehdotukset"},"fr-FR":{collectionLabel:"Suggestions"},"he-IL":{collectionLabel:"×צע×ת"},"hr-HR":{collectionLabel:"Prijedlozi"},"hu-HU":{collectionLabel:"Javaslatok"},"it-IT":{collectionLabel:"Suggerimenti"},"ja-JP":{collectionLabel:"åè£"},"ko-KR":{collectionLabel:"ì ì"},"lt-LT":{collectionLabel:"PasiÅ«lymai"},"lv-LV":{collectionLabel:"Ieteikumi"},"nb-NO":{collectionLabel:"Forslag"},"nl-NL":{collectionLabel:"Suggesties"},"pl-PL":{collectionLabel:"Sugestie"},"pt-BR":{collectionLabel:"Sugestões"},"pt-PT":{collectionLabel:"Sugestões"},"ro-RO":{collectionLabel:"Sugestii"},"ru-RU":{collectionLabel:"ÐÑедложениÑ"},"sk-SK":{collectionLabel:"Návrhy"},"sl-SI":{collectionLabel:"Predlogi"},"sr-SP":{collectionLabel:"Predlozi"},"sv-SE":{collectionLabel:"Förslag"},"tr-TR":{collectionLabel:"Ãneriler"},"uk-UA":{collectionLabel:"ÐÑопозиÑÑÑ"},"zh-CN":{collectionLabel:"建议"},"zh-TW":{collectionLabel:"建è°"}},e.s(["default",0,o],623972)},19930,e=>{"use strict";var t=e.i(506930);e.s(["getScrollParent",0,function(e,n){let r=e;for((0,t.isScrollable)(r,n)&&(r=r.parentElement);r&&!(0,t.isScrollable)(r,n);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}])},506930,e=>{"use strict";e.s(["isScrollable",0,function(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);
6return e===r&&"hidden"!==n.overflow&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}])},828646,692220,319219,924470,e=>{"use strict";let t;var n=e.i(583797);let r=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);e.s(["isCtrlKeyPressed",0,function(e){return(0,n.isMac)()?e.metaKey:e.ctrlKey},"willOpenKeyboard",0,function(e){return e instanceof HTMLInputElement&&!r.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}],828646);var i=e.i(43418);let l=Symbol.for("react-aria.i18n.locale"),o=Symbol.for("react-aria.i18n.strings");class s{constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){var r;if(t[e])return t[e];let i=(r=e,Intl.Locale?new Intl.Locale(r).language:r.split("-")[0]);if(t[i])return t[i];for(let e in t)if(e.startsWith(i+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("u"<typeof window)return null;let n=window[l];if(void 0===t){let e=window[o];if(!e)return null;for(let r in t={},e)t[r]=new s({[n]:e[r]},n)}let r=t?.[e];if(!r)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}}e.s(["LocalizedStringDictionary",0,s],692220);let a=new Map,u=new Map;class c{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let i=this.locale+":"+n,l=a.get(i);return l||(l=new Intl.PluralRules(this.locale,{type:n}),a.set(i,l)),"function"==typeof(r=t[l.select(e)]||t.other)?r():r}number(e){let t=u.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),u.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}}e.s(["LocalizedStringFormatter",0,c],319219);var d=e.i(271645);let f=new WeakMap;function p(e,t){let n;return t&&s.getGlobalDictionaryForPackage(t)||((n=f.get(e))||(n=new s(e),f.set(e,n)),n)}e.s(["useLocalizedStringDictionary",0,p,"useLocalizedStringFormatter",0,function(e,t){let{locale:n}=(0,i.useLocale)(),r=p(e,t);return(0,d.useMemo)(()=>new c(n,r),[n,r])}],924470)},822053,e=>{"use strict";var t=e.i(232940),n=e.i(177285);class r{constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){let t=e.shadowRoot;if(t){let e=this._doc.createTreeWalker(t,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if("function"==typeof this.filter)return this.filter(e);if(this.filter?.acceptNode)return this.filter.acceptNode(e);else if(null===this.filter)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=r??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));const i=t.shadowRoot;if(i){const e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}get currentNode(){return this._currentNode}set currentNode(e){if(!(0,t.nodeContains)(this.root,e))throw Error("Cannot set currentNode to a node that is not contained by the root node.");let n=[],r=e,i=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=r,t=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});n.push(t),t.currentNode=i,this._currentSetFor.add(t),r=i=e.host}else r=r.parentNode;let l=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});n.push(l),l.currentNode=i,this._currentSetFor.add(l),this._walkerStack=n}get doc(){return this._doc}firstChild(){let e=this.currentNode,n=this.nextNode();
6return(0,t.nodeContains)(e,n)?(n&&(this.currentNode=n),n):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){let t;if("function"==typeof this.filter?t=this.filter(e):this.filter?.acceptNode&&(t=this.filter.acceptNode(e)),t===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let n=this.nextNode();return n&&(this.currentNode=n),n}return e&&(this.currentNode=e),e}if(!(this._walkerStack.length>1))return null;{this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)&&(this._currentSetFor.delete(e),this._walkerStack.length>1)){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}let t=e.previousNode();if(t){if(t.shadowRoot){let e;if("function"==typeof this.filter?e=this.filter(t):this.filter?.acceptNode&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let n=this.lastChild();return n&&(this.currentNode=n),n}return t&&(this.currentNode=t),t}if(!(this._walkerStack.length>1))return null;{this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}}e.s(["createShadowTreeWalker",0,function(e,t,i,l){return(0,n.shadowDOM)()?new r(e,t,i,l):e.createTreeWalker(t,i,l)}])},249506,e=>{"use strict";var t=e.i(63534),n=e.i(271645);e.s(["useEvent",0,function(e,r,i,l){let o=(0,t.useEffectEvent)(i),s=null==i;(0,n.useEffect)(()=>{if(s||!e.current)return;let t=e.current;return t.addEventListener(r,o,l),()=>{t.removeEventListener(r,o,l)}},[e,r,l,s])}])},285741,e=>{"use strict";var t=e.i(75975),n=e.i(312936),r=e.i(271645);let i={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function l(e={}){let{style:t,isFocusable:o}=e,[s,a]=(0,r.useState)(!1),{focusWithinProps:u}=(0,n.useFocusWithin)({isDisabled:!o,onFocusWithinChange:e=>a(e)}),c=(0,r.useMemo)(()=>s?t:t?{...i,...t}:i,[s]);return{visuallyHiddenProps:{...u,style:c}}}e.s(["VisuallyHidden",0,function(e){let{children:n,elementType:i="div",isFocusable:o,style:s,...a}=e,{visuallyHiddenProps:u}=l(e);return r.default.createElement(i,(0,t.mergeProps)(a,u),n)},"useVisuallyHidden",0,l])},537593,e=>{"use strict";var t=e.i(271645);class n{build(e,t){return this.context=t,r(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:r}=e;if(t.default.isValidElement(n)&&n.type===t.default.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if("function"==typeof n){if(!r)throw Error("props.children was a function but props.items is missing");let e=0;for(let t of r)yield*this.getFullNode({value:t,index:e},{renderer:n}),e++}else{let e=[];t.default.Children.forEach(n,t=>{t&&e.push(t)});let r=0;for(let t of e)for(let e of this.getFullNode({element:t,index:r},{}))r++,yield e}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${r}${t.key}`;let i=t.value;if(null!=i){let e=i.key??i.id;if(null==e)throw Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,n,l,o){if(t.default.isValidElement(e.element)&&e.element.type===t.default.Fragment){let r=[];t.default.Children.forEach(e.element.props.children,e=>{r.push(e)});let i=e.index??0;for(let e of r)yield*this.getFullNode({element:e,index:i++},n,l,o);return}let s=e.element;if(!s&&e.value&&n&&n.renderer){let t=this.cache.get(e.value);if(t&&(!t.shouldInvalidate||!t.shouldInvalidate(this.context))){t.index=e.index,t.parentKey=o?o.key:null,yield t;return}s=n.renderer(e.value)}if(t.default.isValidElement(s)){let t=s.type;if("function"!=typeof t&&"function"!=typeof t.getCollectionNode){let e=s.type;throw Error(`Unknown element <${e}> in collection.`)}let r=t.getCollectionNode(s.props,this.context),a=e.index??0,u=r.next();for(;!u.done&&u.value;){let t=u.value;e.index=a;let c=t.key??null;null==c&&(c=t.element?null:this.getKey(s,e,n,l));let d=[...this.getFullNode({...t,key:c,index:a,wrapper:function(e,t){return e&&t?n=>e(t(n)):e||t||void 0}(e.wrapper,t.wrapper)},this.getChildState(n,t),l?`${l}${s.key}`:s.key,o)];for(let n of d){if(n.value=t.value??e.value??null,n.value&&this.cache.set(n.value,
6n),e.type&&n.type!==e.type)throw Error(`Unsupported type <${i(n.type)}> in <${i(o?.type??"unknown parent type")}>. Only <${i(e.type)}> is supported.`);a++,yield n}u=r.next(d)}return}if(null==e.key||null==e.type)return;let a=this,u={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:e.value??null,level:(o?.level??0)+ +(o?.type==="item"),index:e.index,rendered:e.rendered,textValue:e.textValue??"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:r(function*(){if(!e.hasChildNodes||!e.childNodes)return;let t=0;for(let r of e.childNodes())for(let e of(null!=r.key&&(r.key=`${u.key}${r.key}`),a.getFullNode({...r,index:t},a.getChildState(n,r),u.key,u)))t++,yield e})};yield u}constructor(){this.cache=new WeakMap}}function r(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let r of(n||(n=e()),n))t.push(r),yield r}}}function i(e){return e[0].toUpperCase()+e.slice(1)}e.s(["useCollection",0,function(e,r,i){let l=(0,t.useMemo)(()=>new n,[]),{children:o,items:s,collection:a}=e;return(0,t.useMemo)(()=>a||r(l.build({children:o,items:s},i)),[l,o,s,a,i,r])}],537593)},83478,e=>{"use strict";class t extends Set{constructor(e,n,r){super(e),e instanceof t?(this.anchorKey=n??e.anchorKey,this.currentKey=r??e.currentKey):(this.anchorKey=n??null,this.currentKey=r??null)}}e.s(["Selection",0,t])},39823,e=>{"use strict";var t=e.i(688056),n=e.i(83478);e.s(["SelectionManager",0,class e{constructor(e,t,n){this.collection=e,this.state=t,this.allowsCellSelection=n?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null,this.fullCollection=n?.fullCollection||null}get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if("none"===this.state.selectionMode)return!1;let t=this.getKey(e);return null!=t&&("all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!e||r&&0>(0,t.compareNodeOrder)(this.collection,r,e))&&(e=r)}return e?.key??null}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!e||r&&(0,t.compareNodeOrder)(this.collection,r,e)>0)&&(e=r)}return e?.key??null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let t;if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let r=this.getKey(e);if(null!=r){if("all"===this.state.selectedKeys)t=new(0,n.Selection)([r],r,r);else{let e=this.state.selectedKeys,i=e.anchorKey??r;for(let l of(t=new(0,n.Selection)(e,i,r),this.getKeyRange(i,e.currentKey??r)))t.delete(l);for(let e of this.getKeyRange(r,i))this.canSelectItem(e)&&t.add(e)}this.state.setSelectedKeys(t)}}getKeyRange(e,n){let r=this.collection.getItem(e),i=this.collection.getItem(n);return r&&i?0>=(0,t.compareNodeOrder)(this.collection,r,i)?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],r=e;for(;null!=r;){let e=this.collection.getItem(r);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;t&&"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);let t=this.getKey(e);if(null==t)return;let r=new(0,n.Selection)("all"===this.state.selectedKeys?this.get
6SelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),this.disallowEmptySelection&&0===r.size||this.state.setSelectedKeys(r)}replaceSelection(e){if("none"===this.selectionMode)return;let t=this.getKey(e);if(null==t)return;let r=this.canSelectItem(t)?new(0,n.Selection)([t],t,t):new(0,n.Selection);this.state.setSelectedKeys(r)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new(0,n.Selection);for(let n of e){let e=this.getKey(n);if(null!=e&&(t.add(e),"single"===this.selectionMode))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=this.fullCollection??this.collection,n=[],r=i=>{for(;null!=i;){if(this.canSelectItemIn(i,e)){let l=e.getItem(i);l?.type==="item"&&n.push(i),l?.hasChildNodes&&(this.allowsCellSelection||"item"!==l.type)&&r((0,t.getFirstItem)((0,t.getChildNodes)(l,e))?.key??null)}i=e.getKeyAfter(i)}};return r(e.getFirstKey()),n}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new(0,n.Selection))}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){return this.canSelectItemIn(e,this.collection)}canSelectItemIn(e,t){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=t.getItem(e);return!(!n||n?.props?.isDisabled)&&("cell"!==n.type||!!this.allowsCellSelection)}isDisabled(e){let t=this.collection.getItem(e);return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!t?.props?.isDisabled)&&t?.props?.disabledBehavior!=="selection"}isLink(e){return!!this.collection.getItem(e)?.props?.href}getItemProps(e){return this.collection.getItem(e)?.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}])},515009,e=>{"use strict";var t=e.i(83478),n=e.i(381560),r=e.i(271645);function i(e,n){return e?"all"===e?"all":new(0,t.Selection)(e):n}e.s(["useMultipleSelectionState",0,function(e){let{selectionMode:l="none",disallowEmptySelection:o=!1,allowDuplicateSelectionEvents:s,selectionBehavior:a="toggle",disabledBehavior:u="all"}=e,c=(0,r.useRef)(!1),[,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useRef)(null),[,h]=(0,r.useState)(null),g=(0,r.useMemo)(()=>i(e.selectedKeys),[e.selectedKeys]),y=(0,r.useMemo)(()=>i(e.defaultSelectedKeys,new(0,t.Selection)),[e.defaultSelectedKeys]),[m,v]=(0,n.useControlledState)(g,y,e.onSelectionChange),b=(0,r.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[S,E]=(0,r.useState)(a);"replace"===a&&"toggle"===S&&"object"==typeof m&&0===m.size&&E("replace");let C=(0,r.useRef)(a);return(0,r.useEffect)(()=>{a!==C.current&&(E(a),C.current=a)},[a]),{selectionMode:l,disallowEmptySelection:o,selectionBehavior:S,setSelectionBehavior:E,get isFocused(){return c.current},setFocused(e){c.current=e,d(e)},get focusedKey(){return f.current},get childFocusStrategy(){return p.current},setFocusedKey(e,t="first"){f.current=e,p.current=t,h(e)},selectedKeys:m,setSelectedKeys(e){(s||!function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,m))&&v(e)},disabledKeys:b,disabledBehavior:u}}])},764465,e=>{"use strict";class t{constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),(r=t).nextKey=void 0;this.lastKey=r?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey??null:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey??null:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)??null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}}e.s(["TreeCollection",0,t])},381560,e=>{"use strict";e.i(247167);var t=e.i(271645);let n="u">typeof document?t.default.useInsertionEffect??t.default.useLayoutEffect:()=>{};
6e.s(["useControlledState",0,function(e,r,i){let[l,o]=(0,t.useState)(e||r),s=(0,t.useRef)(l),a=(0,t.useRef)(void 0!==e),u=void 0!==e;(0,t.useEffect)(()=>{a.current,a.current=u},[u]);let c=u?e:l;n(()=>{s.current=c});let[,d]=(0,t.useReducer)(()=>({}),{});return[c,(0,t.useCallback)((e,...t)=>{let n="function"==typeof e?e(s.current):e;Object.is(s.current,n)||(s.current=n,o(n),d(),i?.(n,...t))},[i])]}])},755838,(e,t,n)=>{"use strict";var r=e.r(271645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=r.useState,o=r.useEffect,s=r.useLayoutEffect,a=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=l({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),a(n),n};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},802239,(e,t,n)=>{"use strict";e.i(247167),t.exports=e.r(755838)}]);
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.