1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,550840,259775,302129,115312,752728,195751,84533,926202,77894,598821,847779,970921,162645,604254,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,l){let n=this.clone();return t.addDescendants(n,e),n}}class l extends t{filter(e,t,l){let[n,i]=u(e,t,this.firstChildKey,l),r=this.clone();return r.firstChildKey=n,r.lastChildKey=i,r}}class n extends t{static{this.type="header"}}class i extends t{static{this.type="loader"}}class r extends l{static{this.type="item"}filter(e,t,l){if(l(this.textValue,this)){let l=this.clone();return t.addDescendants(l,e),l}return null}}class s extends l{static{this.type="section"}filter(e,t,l){let n=super.filter(e,t,l);if(n&&null!==n.lastChildKey){let t=e.getItem(n.lastChildKey);if(t&&"header"!==t.type)return n}return null}}class o{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 l=t.get(e),n=l?.firstChildKey!=null?t.get(l.firstChildKey):null;for(;n;)yield n,n=null!=n.nextKey?t.get(n.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 l of(this.addNode(e),t.getChildren(e.key)))this.addDescendants(l,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,l=!1){if(this.frozen)throw Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!l}filter(e){let t=new this.constructor,[l,n]=u(this,t,this.firstKey,e);return t?.commit(l,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function u(e,t,l,n){if(null==l)return[null,null];let i=null,r=null,s=e.getItem(l);for(;null!=s;){let l=s.filter(e,t,n);null!=l&&(l.nextKey=null,r&&(l.prevKey=r.key,r.nextKey=l.key),null==i&&(i=l),t.addNode(l),r=l),s=null!=s.nextKey?e.getItem(s.nextKey):null}if(r&&"separator"===r.type){let e=r.prevKey;t.removeNode(r.key),null!=e?(r=t.getItem(e)).nextKey=null:r=null}return[i?.key??null,r?.key??null]}e.s(["BaseCollection",0,o,"CollectionNode",0,t,"HeaderNode",0,n,"ItemNode",0,r,"LoaderNode",0,i,"SectionNode",0,s],259775);class c{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 a extends c{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 a?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 a?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 l=(t.colIndex??t.index)+(t.colSpan??1);null!=e.node&&l!==e.node.colIndex&&(e.getMutableNode().colIndex=l)}}setProps(e,t,l,n,i){let r,{value:s,textValue:o,id:u,...c}=e;if(null==this.node?(r=new l(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=r):r=this.getMutableNode(),c.ref=t,r.props=c,r.rendered=n,r.render=i,r.value=s,e["aria-label"]&&(r["aria-label"]=e["aria-label"]),r.textValue=o||("string"==typeof c.children?c.children:"")||e["aria-label"]||"",null!=u&&u!==r.key)throw Error("Cannot change the id of an item");null!=c.colSpan&&(r.colSpan=c.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 l=e.previousVisibleSibling,n=e.nextVisibleSibling;l&&e.ownerDocument.markDirty(l),n&&e.ownerDocument.markDirty(n),e.isHidden=t,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}}class d extends c{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 a(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 a&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof a?(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.queuedRender&&e(),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}}var h=e.i(271645);function y(e){let{children:t,items:l,idScope:n,addIdAndValue:i,dependencies:r=[]}=e,s=(0,h.useMemo)(()=>void 0,[t]),o=(0,h.useMemo)(()=>new WeakMap,[...r,s]);return(0,h.useMemo)(()=>{if(l&&"function"==typeof t){let e=[];for(let r of l){let l=!function(e){switch(typeof e){case"object":return null!=e;case"function":case"symbol":return!0;default:return!1}}(r)?null:r,s=l?o.get(l):null;if(!s){let u=(s=t(r)).props.id??r?.key??r?.id;null!=n&&null==s.props.id&&null!=u&&(u=n+":"+u);let c=u??e.length;s=(0,h.cloneElement)(s,i?{key:c,id:u,value:r}:{key:c}),l&&o.set(l,s)}e.push(s)}return e}if("function"!=typeof t)return t},[t,l,o,n,i])}var f=e.i(562918),p=e.i(741975),g=e.i(343221),m=e.i(174080),K=e.i(802239);let S=(0,h.createContext)(!1),v=(0,h.createContext)(null);function C({collection:e,render:t}){return t(e)}let b="function"==typeof h.default.useSyncExternalStore?h.default.useSyncExternalStore:function(e,t,l){let n=(0,g.useIsSSR)(),i=(0,h.useRef)(n);i.current=n;let r=(0,h.useCallback)(()=>i.current?l():t(),[t,l]);return(0,K.useSyncExternalStore)(e,r)},x=(0,h.createContext)(null);function k(e,l,n,i,r,s){"string"==typeof e&&(e=function(e){return class extends t{static{this.type=e}}}(e));let o=(0,h.useCallback)(t=>
1{t?.setProps(l,n,e,i,s)},[l,n,i,s,e]),u=(0,h.useContext)(x);if(u){let t=u.ownerDocument.nodesByProps.get(l);return t||((t=u.ownerDocument.createElement(e.type)).setProps(l,n,e,i,s),u.appendChild(t),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(l,t)),r?h.default.createElement(x.Provider,{value:t},r):null}return h.default.createElement(e.type,{ref:o},r)}function w(e){return y({...e,addIdAndValue:!0})}let E=(0,h.createContext)(null);function I({children:e}){let t=(0,h.useContext)(v),l=(0,h.useMemo)(()=>h.default.createElement(v.Provider,{value:null},h.default.createElement(S.Provider,{value:!0},e)),[e]);return(0,g.useIsSSR)()?h.default.createElement(x.Provider,{value:t},l):(0,m.createPortal)(l,t)}e.s(["Collection",0,function(e){let t=(0,h.useContext)(E),l=(t?.dependencies||[]).concat(e.dependencies),n=e.idScope??t?.idScope,i=w({...e,idScope:n,dependencies:l});return(0,h.useContext)(v)&&(i=h.default.createElement(I,null,i)),t=(0,h.useMemo)(()=>({dependencies:l,idScope:n}),[n,...l]),h.default.createElement(E.Provider,{value:t},i)},"CollectionBuilder",0,function(e){if((0,h.useContext)(v))return e.content;let{collection:t,document:l}=function(e){let[t]=(0,h.useState)(()=>new d(e?.()||new o));return{collection:b((0,h.useCallback)(e=>t.subscribe(e),[t]),(0,h.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,h.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t])),document:t}}(e.createCollection);return h.default.createElement(h.default.Fragment,null,h.default.createElement(p.Hidden,null,h.default.createElement(v.Provider,{value:l},e.content)),h.default.createElement(C,{render:e.children,collection:t}))},"createBranchComponent",0,function(e,t,l=w){let n=({node:e})=>t(e.props,e.props.ref,e),i=(0,h.forwardRef)((t,i)=>{let r=l(t);return k(e,t,i,null,r,e=>h.default.createElement(n,{node:e}))??h.default.createElement(h.default.Fragment,null)});return i.displayName=t.name,i},"createLeafComponent",0,function(e,t){let l=({node:e})=>t(e.props,e.props.ref,e),n=(0,h.forwardRef)((n,i)=>{let r=(0,h.useContext)(f.FocusableContext);if(!(0,h.useContext)(S)){if(t.length>=3)throw Error(t.name+" cannot be rendered outside a collection.");return t(n,i)}return k(e,n,i,"children"in n?n.children:null,null,e=>h.default.createElement(f.FocusableContext.Provider,{value:r},h.default.createElement(l,{node:e})))});return n.displayName=t.name,n}],302129);let M=(0,h.createContext)(null),F={CollectionRoot:({collection:e,renderDropIndicator:t})=>D(e,null,t),CollectionBranch:({collection:e,parent:t,renderDropIndicator:l})=>D(e,t,l)};function D(e,t,l){return y({items:t?e.getChildren(t.key):e,dependencies:[l],children(t){if("content"===t.type)return h.default.createElement(h.default.Fragment,null);let n=t.render(t);return l&&"item"===t.type?h.default.createElement(h.default.Fragment,null,l({type:"item",key:t.key,dropPosition:"before"}),n,function(e,t,l){let n=t.key,i=e.getKeyAfter(n),r=null!=i?e.getItem(i):null;for(;null!=r&&"item"!==r.type;)r=null!=(i=e.getKeyAfter(r.key))?e.getItem(i):null;let s=null!=t.nextKey?e.getItem(t.nextKey):null;for(;null!=s&&"item"!==s.type;)s=null!=s.nextKey?e.getItem(s.nextKey):null;let o=[];if(null==s){let n=t;for(;n?.type==="item"&&(!r||n.parentKey!==r.parentKey&&r.level<n.level);){let t=l({type:"item",key:n.key,dropPosition:"after"});(0,h.isValidElement)(t)&&o.push((0,h.cloneElement)(t,{key:`${n.key}-after`})),n=null!=n.parentKey?e.getItem(n.parentKey):null}}return o}(e,t,l)):n}})}let P=(0,h.createContext)(F);e.s(["CollectionRendererContext",0,P,"DefaultCollectionRenderer",0,F,"SectionContext",0,M,"usePersistedKeys",0,function(e){return(0,h.useMemo)(()=>null!=e?new Set([e]):null,[e])}],550840);var N=e.i(406798),T=e.i(922190),A=e.i(478607),R=e.i(64139),L=e.i(232940),B=e.i(218602),V=e.i(90531),_=e.i(583797),O=e.i(977926);function z(e){return(0,_.isAppleDevice)()?e.altKey:e.ctrlKey}function W(e,t){let l=`[data-key="${CSS.escape(String(t))}"]`,n=e.current?.dataset.collection;return n&&(l=`[data-collection="${CSS.escape(n)}"]${l}`),e.current?.querySelector(l)}let U=new WeakMap;function H(e){let t=(0,O.useId)();return U.set(e,t),t}function $(e){return U.get(e)}e.s(["getCollectionId",0,$,"getItemElement",0,W,"isNonContiguousSelectionModifier",0,z,"useCollectionId",0,H],115312);var q=e.i(828646),j=e.i(402494),G=e.i(75975),X=e.i(388684),Y=e.i(249506),Z=e.i(829154),J=e.i(43418),Q=e.i(363499);function ee(e){let{keyboardDelegate:t,selectionManager:l,onTypeSelect:n}=e,i=(0,h.useRef)({search:"",timeout:void 0});return(0,h.useEffect)(()=>{let e=i.current.timeout;return()=>{clearTimeout(e)}},[i]),{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>
1{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,l.focusedKey);null==e&&(e=t.getKeyForSearch(i.current.search)),null!=e&&(l.setFocusedKey(e),n&&n(e))}clearTimeout(i.current.timeout),i.current.timeout=setTimeout(()=>{i.current.search=""},1e3)}}:void 0,onKeyDown:t.getKeyForSearch?e=>{var r;let s=1!==(r=e.key).length&&/^[A-Z]/i.test(r)?"":r;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 r=t.getKeyForSearch(i.current.search,l.focusedKey);if(null==r&&(r=t.getKeyForSearch(i.current.search)),null!=r)l.setFocusedKey(r),n&&n(r),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,ee],752728);var et=e.i(769299);function el(e,t){let l=(0,h.useRef)(!0),n=(0,h.useRef)(null);(0,et.useLayoutEffect)(()=>(l.current=!0,()=>{l.current=!1}),[]),(0,et.useLayoutEffect)(()=>{l.current?l.current=!1:(!n.current||t.some((e,t)=>!Object.is(e,n[t])))&&e(),n.current=t},t)}e.s(["useSelectableCollection",0,function(e){let t,{selectionManager:l,keyboardDelegate:n,ref:i,autoFocus:r=!1,shouldFocusWrap:s=!1,disallowEmptySelection:o=!1,disallowSelectAll:u=!1,escapeKeyBehavior:c="clearSelection",selectOnFocus:a="replace"===l.selectionBehavior,disallowTypeAhead:d=!1,shouldUseVirtualFocus:y,allowsTabNavigation:f=!1,scrollRef:p=i,linkBehavior:g="action",UNSTABLE_focusOnEntry:K}=e,{direction:S}=(0,J.useLocale)(),v=(0,Q.useRouter)(),C=(e,t,n)=>{if(null!=t){if(l.isLink(t)&&"selection"===g&&a&&!z(e)){(0,m.flushSync)(()=>{l.setFocusedKey(t,n)});let r=W(i,t),s=l.getItemProps(t);return!!r&&void v.open(r,e,s.href,s.routerOptions)}if(l.setFocusedKey(t,n),l.isLink(t)&&"override"===g)return!1;if(e.shiftKey&&"multiple"===l.selectionMode)return void l.extendSelection(t);if(a&&!z(e))return void l.replaceSelection(t)}return!1},b=(e,t)=>({[(0,_.isMac)()?e+"+Shift+Alt":e+"+Shift+Control"]:t,[e+"+Shift"]:t,[(0,_.isMac)()?e+"+Alt":e+"+Control"]:t,[e]:t}),{keyboardProps:x}=(0,Z.useKeyboard)({shortcuts:{...b("ArrowDown",e=>{if(n.getKeyBelow){let t=null!=l.focusedKey?n.getKeyBelow?.(l.focusedKey):n.getFirstKey?.();if(null==t&&s&&(t=n.getFirstKey?.(l.focusedKey)),null!=t)return void C(e,t)}return!1}),...b("ArrowUp",e=>{if(n.getKeyAbove){let t=null!=l.focusedKey?n.getKeyAbove?.(l.focusedKey):n.getLastKey?.();if(null==t&&s&&(t=n.getLastKey?.(l.focusedKey)),null!=t)return void C(e,t)}return!1}),...b("ArrowLeft",e=>{if(n.getKeyLeftOf){let t=null!=l.focusedKey?n.getKeyLeftOf?.(l.focusedKey):n.getFirstKey?.();if(null==t&&s&&(t="rtl"===S?n.getFirstKey?.(l.focusedKey):n.getLastKey?.(l.focusedKey)),null!=t)return void C(e,t,"rtl"===S?"first":"last")}return!1}),...b("ArrowRight",e=>{if(n.getKeyRightOf){let t=null!=l.focusedKey?n.getKeyRightOf?.(l.focusedKey):n.getFirstKey?.();if(null==t&&s&&(t="rtl"===S?n.getLastKey?.(l.focusedKey):n.getFirstKey?.(l.focusedKey)),null!=t)return void C(e,t,"rtl"===S?"last":"first")}return!1}),...b("PageDown",e=>{if(n.getKeyPageBelow&&null!=l.focusedKey){let t=n.getKeyPageBelow(l.focusedKey);if(null!=t)return C(e,t)}return!1}),...b("PageUp",e=>{if(n.getKeyPageAbove&&null!=l.focusedKey){let t=n.getKeyPageAbove(l.focusedKey);if(null!=t)return C(e,t)}return!1})},allowRepeats:!0}),{keyboardProps:k}=(0,Z.useKeyboard)({shortcuts:{...b("Home",e=>{if(n.getFirstKey){if(null===l.focusedKey&&e.shiftKey)return!1;let t=n.getFirstKey(l.focusedKey,(0,q.isCtrlKeyPressed)(e));if(l.setFocusedKey(t),null!=t){if((0,q.isCtrlKeyPressed)(e)&&e.shiftKey&&"multiple"===l.selectionMode)return void l.extendSelection(t);else if(a)return void l.replaceSelection(t)}}return!1}),...b("End",e=>{if(n.getLastKey){if(null===l.focusedKey&&e.shiftKey)return!1;let t=n.getLastKey(l.focusedKey,(0,q.isCtrlKeyPressed)(e));if(l.setFocusedKey(t),null!=t){if((0,q.isCtrlKeyPressed)(e)&&e.shiftKey&&"multiple"===l.selectionMode)return void l.extendSelection(t);else if(a)return void l.replaceSelection(t)}}return!1}),"Mod+A":()=>"multiple"===l.selectionMode&&!0!==u&&void l.selectAll(),Escape:()=>"clearSelection"===c&&!o&&0!==l.selectedKeys.size&&void l.clearSelection(),Tab:()=>{if(!f&&i.current){let e,t,l=(0,B.getFocusableTreeWalker)(i.current,{tabbable:!0});do(t=l.lastChild())&&(e=t);while(t)let n=(0,L.getActiveElement)();
1e&&(!(0,L.isFocusWithin)(e)||n&&!(0,j.isTabbable)(n))&&(0,R.focusWithoutScrolling)(e)}return{shouldContinuePropagation:!0,shouldPreventDefault:!1}},"Tab+Shift":()=>(!f&&i.current&&i.current.focus(),{shouldContinuePropagation:!0,shouldPreventDefault:!1})}}),w=(0,h.useRef)({top:0,left:0});(0,Y.useEvent)(p,"scroll",()=>{w.current={top:p.current?.scrollTop??0,left:p.current?.scrollLeft??0}});let E=(0,h.useRef)(!1);(0,Y.useEvent)(i,N.FOCUS_EVENT,y?e=>{let{detail:t}=e;e.stopPropagation(),l.setFocused(!0),t?.focusStrategy==="first"&&(E.current=!0)}:void 0);let I=n.getFirstKey?.()??null;el(()=>{if(E.current)if(null==I){let e=(0,L.getActiveElement)();(0,T.moveVirtualFocus)(i.current),(0,T.dispatchVirtualFocus)(e,null),l.collection.size>0&&(E.current=!1)}else l.setFocusedKey(I),E.current=!1},[I,l.collection.size]),el(()=>{l.collection.size>0&&(E.current=!1)},[l.focusedKey]),(0,Y.useEvent)(i,N.CLEAR_FOCUS_EVENT,y?e=>{e.stopPropagation(),l.setFocused(!1),e.detail?.clearFocusKey&&l.setFocusedKey(null)}:void 0);let M=(0,h.useRef)(r),F=(0,h.useRef)(!1);(0,h.useEffect)(()=>{if(M.current){let e=null;"first"===r&&(e=n.getFirstKey?.()??null),"last"===r&&(e=n.getLastKey?.()??null);let t=l.selectedKeys;if(t.size){for(let n of t)if(l.canSelectItem(n)){e=n;break}}l.setFocused(!0),l.setFocusedKey(e),null!=e&&a&&!t.size&&l.canSelectItem(e)&&l.replaceSelection(e),null==e&&!y&&i.current&&(0,A.focusSafely)(i.current),l.collection.size>0&&(M.current=!1,F.current=!0)}});let D=(0,h.useRef)(l.focusedKey),P=(0,h.useRef)(null);(0,h.useEffect)(()=>{if(l.isFocused&&null!=l.focusedKey&&(l.focusedKey!==D.current||F.current)&&p.current&&i.current){let e=(0,V.getInteractionModality)(),t=W(i,l.focusedKey);if(!(t instanceof HTMLElement))return;("keyboard"===e||F.current)&&(P.current&&cancelAnimationFrame(P.current),P.current=requestAnimationFrame(()=>{p.current&&((0,X.scrollIntoView)(p.current,t),"virtual"!==e&&(0,X.scrollIntoViewport)(t,{containingElement:i.current}))}))}!y&&l.isFocused&&null==l.focusedKey&&null!=D.current&&i.current&&(0,A.focusSafely)(i.current),D.current=l.focusedKey,F.current=!1}),(0,h.useEffect)(()=>()=>{P.current&&cancelAnimationFrame(P.current)},[]),(0,Y.useEvent)(i,"react-aria-focus-scope-restore",e=>{e.preventDefault(),l.setFocused(!0)});let O={...(0,G.mergeProps)(k,x),onFocus:e=>{if(l.isFocused){(0,L.nodeContains)(e.currentTarget,(0,L.getEventTarget)(e))||l.setFocused(!1);return}if(!(0,L.nodeContains)(e.currentTarget,(0,L.getEventTarget)(e)))return;let t=(0,V.getInteractionModality)();l.setFocused(!0);let r=e=>{null!=e&&(l.setFocusedKey(e),a&&!l.isSelected(e)&&l.replaceSelection(e))};if(K&&("keyboard"===t||"virtual"===t))r("first"===K?n.getFirstKey?.():n.getLastKey?.());else if(null==l.focusedKey){let t=e.relatedTarget;t&&e.currentTarget.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?r(l.lastSelectedKey??n.getLastKey?.()):r(l.firstSelectedKey??n.getFirstKey?.())}else p.current&&(p.current.scrollTop=w.current.top,p.current.scrollLeft=w.current.left);if(null!=l.focusedKey&&p.current){let e=W(i,l.focusedKey);e instanceof HTMLElement&&((0,L.isFocusWithin)(e)||y||(0,R.focusWithoutScrolling)(e),("keyboard"===t||K&&"virtual"===t)&&(0,X.scrollIntoViewport)(e,{containingElement:i.current}))}},onBlur:e=>{(0,L.nodeContains)(e.currentTarget,e.relatedTarget)||l.setFocused(!1)},onMouseDown(e){p.current===(0,L.getEventTarget)(e)&&e.preventDefault()}},{typeSelectProps:U}=ee({keyboardDelegate:n,selectionManager:l});d||(O=(0,G.mergeProps)(U,O)),y||(t=null==l.focusedKey?0:-1);let $=H(l.collection);return{collectionProps:(0,G.mergeProps)(O,{tabIndex:t,"data-collection":$})}}],195751);var en=e.i(485581),ei=e.i(414232),er=e.i(903202),es=e.i(730348),eo=e.i(56823);function eu(e){let{isDisabled:t,pointerType:l,onLongPressStart:n,onLongPressEnd:i,onLongPress:r,threshold:s=500,accessibilityDescription:o}=e,u=(0,h.useRef)(void 0),{addGlobalListener:c,removeAllGlobalListeners:a}=(0,eo.useGlobalListeners)(),d=e=>l?e.pointerType===l:"mouse"===e.pointerType||"touch"===e.pointerType,{pressProps:y}=(0,ei.usePress)({isDisabled:t,onPressStart(e){e.continuePropagation(),d(e)&&(n&&n({...e,type:"longpressstart"}),u.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),c(e.target,"click",e=>e.preventDefault(),{once:!0}),(0,er.getOwnerDocument)(e.target).activeElement!==e.target&&(0,R.focusWithoutScrolling)(e.target),r&&r({...e,type:"longpress"}),u.current=void 0},s),"touch"===e.pointerType&&c(e.target,"contextmenu",e=>e.preventDefault(),{once:!0}),c((0,er.getOwnerWindow)(e.target),"pointerup",()=>{setTimeout(()=>{a()},100)},{once:!0}))},onPressEnd(e){u.current&&clearTimeout(u.current),i&&d(e)&&i({...e,type:"longpressend"})}}),f=(0,es.useDescription)(r&&!t?o:void 0);return{longPressProps:(0,G.mergeProps)(y,f)}}e.s(["useLongPress",0,eu],84533);e.s(["useSelectableItem",0,function(e){let{id:t,selectionManager:l,key:n,ref:i,shouldSelectOnPressUp:r,shouldUseVirtualFocus:s,focus:o,isDisabled:u,onAction:c,allowsDifferentPressOrigin:a,linkBehavior:d="action"}=e,y=(0,Q.useRouter)();t=(0,O.useId)(t);let f=e=>{if("keyboard"===e.pointerType&&z(e))l.toggleSelection(n);else{if("none"===l.selectionMode)return;if(l.isLink(n)){if("selection"===d&&i.current){let t=l.getItemProps(n);y.open(i.current,e,t.href,t.routerOptions),l.setSelectedKeys(l.selectedKeys);return}else if("override"===d||"none"===d)return}"single"===l.selectionMode?l.isSelected(n)&&!l.disallowEmptySelection?l.toggleSelection(n):l.replaceSelection(n):e&&e.shiftKey?l.extendSelection(n):"toggle"===l.selectionBehavior||e&&((0,q.isCtrlKeyPressed)(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?l.toggleSelection(n):l.replaceSelection(n)}};(0,h.useEffect)(()=>{n===l.focusedKey&&l.isFocused&&(s?(0,T.moveVirtualFocus)(i.current):o?o():(0,L.getActiveElement)()!==i.current&&i.current&&(0,A.focusSafely)(i.current))},[i,n,l.focusedKey,l.childFocusStrategy,l.isFocused,s]),u=u||l.isDisabled(n);let p={};s||u?u&&(p.onMouseDown=e=>{e.preventDefault()}):p={tabIndex:n===l.focusedKey?0:-1,onFocus(e){(0,L.getEventTarget)(e)===i.current&&l.setFocusedKey(n)}},(0,h.useEffect)(()=>{u&&l.focusedKey===n&&l.setFocusedKey(null)},[l,u,n]);let g=l.isLink(n)&&"override"===d,m=c&&"action"===e.UNSTABLE_itemBehavior,K=l.isLink(n)&&"selection"!==d&&"none"!==d,S=!u&&l.canSelectItem(n)&&!g&&!m,v=(c||K)&&!u,C=v&&("replace"===l.selectionBehavior?!S:!S||l.isEmpty),b=v&&S&&"replace"===l.selectionBehavior,x=C||b,k=(0,h.useRef)(null),w=x&&S,E=(0,h.useRef)(!1),I=(0,h.useRef)(!1),M=l.getItemProps(n),F=e=>{c&&(c(),i.current?.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))),K&&i.current&&y.open(i.current,e,M.href,M.routerOptions)},D={ref:i};r?(D.onPressStart=e=>{k.current=e.pointerType,E.current=w,"keyboard"!==e.pointerType||x&&" "!==e.key||f(e)},a?(D.onPressUp=C?void 0:e=>{"mouse"===e.pointerType&&S&&f(e)},D.onPress=C?F:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&S&&f(e)}):D.onPress=e=>{C||b&&"mouse"!==e.pointerType?("keyboard"!==e.pointerType||"Enter"===e.key)&&F(e):"keyboard"!==e.pointerType&&S&&f(e)}):(D.onPressStart=e=>{k.current=e.pointerType,E.current=w,I.current=C,!S||("mouse"!==e.pointerType||C)&&("keyboard"!==e.pointerType||v&&" "!==e.key)||f(e)},D.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"ke
1yboard"===e.pointerType&&x&&"Enter"===e.key||"mouse"===e.pointerType&&I.current)&&(x?F(e):S&&f(e))});let P=$(l.collection);if(p["data-collection"]=P,p["data-key"]=n,D.preventFocusOnPress=s,s&&(D=(0,G.mergeProps)(D,{onPressStart(e){"touch"!==e.pointerType&&(l.setFocused(!0),l.setFocusedKey(n))},onPress(e){"touch"===e.pointerType&&(l.setFocused(!0),l.setFocusedKey(n))}})),M)for(let e of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])M[e]&&(D[e]=(0,en.chain)(D[e],M[e]));let{pressProps:N,isPressed:R}=(0,ei.usePress)(D),B=b?e=>{"mouse"===k.current&&(e.stopPropagation(),e.preventDefault(),F(e))}:void 0,{longPressProps:V}=eu({isDisabled:!w,onLongPress(e){"touch"===e.pointerType&&(f(e),l.setSelectionBehavior("toggle"))}}),_="none"!==d&&l.isLink(n)?e=>{Q.openLink.isOpening||e.preventDefault()}:void 0,W=(0,G.mergeProps)(p,S||C||s&&!u?N:{},w?V:{},{onDoubleClick:B,onDragStartCapture:e=>{"touch"===k.current&&E.current&&e.preventDefault()},onClick:_,id:t},s?{onMouseDown:e=>e.preventDefault()}:void 0),U=e=>{let t=e;for(;t&&t!==i.current;){let e=t.getAttribute("data-collection");if(null!=e)return e!==P;t=t.parentElement}return(0,j.isTabbable)(e)},H=W.onPointerDown;W.onPointerDown=e=>{let t=(0,L.getEventTarget)(e);t&&t!==i.current&&U(t)?e.stopPropagation():H?.(e)};let X=W.onMouseDown;return W.onMouseDown=e=>{let t=(0,L.getEventTarget)(e);t&&t!==i.current&&U(t)?e.stopPropagation():X?.(e)},{itemProps:W,isPressed:R,isSelected:l.isSelected(n),isFocused:l.isFocused&&l.focusedKey===n,isDisabled:u,allowsSelection:S,hasAction:x}}],926202),e.s(["inertValue",0,function(e){return parseInt(h.version.split(".")[0],10)>=19?e:e?"true":void 0}],77894);class ec{constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let l of e.childNodes)t(l)};for(let l of e)t(l);let l=null,n=0,i=0;for(let[e,t]of this.keyMap)l?(l.nextKey=e,t.prevKey=l.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=n++),("section"===t.type||"item"===t.type)&&i++,(l=t).nextKey=void 0;this._size=i,this.lastKey=l?.key??null}*[Symbol.iterator](){yield*this.iterable}get size(){return this._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])}getChildren(e){let t=this.keyMap.get(e);return t?.childNodes||[]}}class ea extends Set{constructor(e,t,l){super(e),e instanceof ea?(this.anchorKey=t??e.anchorKey,this.currentKey=l??e.currentKey):(this.anchorKey=t??null,this.currentKey=l??null)}}var ed=e.i(389934);function eh(e){let{selectionMode:t="none",disallowEmptySelection:l=!1,allowDuplicateSelectionEvents:n,selectionBehavior:i="toggle",disabledBehavior:r="all"}=e,s=(0,h.useRef)(!1),[,o]=(0,h.useState)(!1),u=(0,h.useRef)(null),c=(0,h.useRef)(null),[,a]=(0,h.useState)(null),d=(0,h.useMemo)(()=>ey(e.selectedKeys),[e.selectedKeys]),y=(0,h.useMemo)(()=>ey(e.defaultSelectedKeys,new ea),[e.defaultSelectedKeys]),[f,p]=(0,ed.useControlledState)(d,y,e.onSelectionChange),g=(0,h.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[m,K]=(0,h.useState)(i);"replace"===i&&"toggle"===m&&"object"==typeof f&&0===f.size&&K("replace");let S=(0,h.useRef)(i);return(0,h.useEffect)(()=>{i!==S.current&&(K(i),S.current=i)},[i]),{selectionMode:t,disallowEmptySelection:l,selectionBehavior:m,setSelectionBehavior:K,get isFocused(){return s.current},setFocused(e){s.current=e,o(e)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){u.current=e,c.current=t,a(e)},selectedKeys:f,setSelectedKeys(e){(n||!function(e,t){if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;return!0}(e,f))&&p(e)},disabledKeys:g,disabledBehavior:r}}function ey(e,t){return e?"all"===e?"all":new ea(e):t}function ef(e,t,l){if(t.parentKey===l.parentKey)return t.index-l.index;let n=[...ep(e,t),t],i=[...ep(e,l),l],r=n.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return -1!==r?(t=n[r],l=i[r],t.index-l.index):n.findIndex(e=>e===l)>=0?1:(i.findIndex(e=>e===t),-1)}function ep(e,t){let l=[],n=t;for(;n?.parentKey!=null;)(n=e.getItem(n.parentKey))&&l.unshift(n);return l}e.s(["useMultipleSelectionState",0,eh],598821);class eg{constructor(e,t,l){this.collection=e,this.state=t,this.allowsCellSelection=l?.allowsCellSelection??!1,this._isSelectAll=null,this.layoutDelegate=l?.layoutDelegate||null,this.fullCollection=l?.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;
1if(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 t of this.state.selectedKeys){let l=this.collection.getItem(t);(!e||l&&0>ef(this.collection,l,e))&&(e=l)}return e?.key??null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let l=this.collection.getItem(t);(!e||l&&ef(this.collection,l,e)>0)&&(e=l)}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 l=this.getKey(e);if(null!=l){if("all"===this.state.selectedKeys)t=new ea([l],l,l);else{let e=this.state.selectedKeys,n=e.anchorKey??l;for(let i of(t=new ea(e,n,l),this.getKeyRange(n,e.currentKey??l)))t.delete(i);for(let e of this.getKeyRange(l,n))this.canSelectItem(e)&&t.add(e)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let l=this.collection.getItem(e),n=this.collection.getItem(t);return l&&n?0>=ef(this.collection,l,n)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){if(this.layoutDelegate?.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let l=[],n=e;for(;null!=n;){let e=this.collection.getItem(n);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&l.push(n),n===t)return l;n=this.collection.getKeyAfter(n)}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 l=new ea("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);l.has(t)?l.delete(t):this.canSelectItem(t)&&(l.add(t),l.anchorKey=t,l.currentKey=t),this.disallowEmptySelection&&0===l.size||this.state.setSelectedKeys(l)}replaceSelection(e){if("none"===this.selectionMode)return;let t=this.getKey(e);if(null==t)return;let l=this.canSelectItem(t)?new ea([t],t,t):new ea;this.state.setSelectedKeys(l)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new ea;for(let l of e){let e=this.getKey(l);if(null!=e&&(t.add(e),"single"===this.selectionMode))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=this.fullCollection??this.collection,t=[],l=n=>{for(;null!=n;){if(this.canSelectItemIn(n,e)){let i=e.getItem(n);i?.type==="item"&&t.push(n),i?.hasChildNodes&&(this.allowsCellSelection||"item"!==i.type)&&l(function(e){!1;let t=0;for(let l of e){if(0===t)return l;t++}}("function"==typeof e.getChildren?e.getChildren(i.key):i.childNodes)?.key??null)}n=e.getKeyAfter(n)}};return l(e.getFirstKey()),t}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 ea)}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 l of e)if(!t.has(l))return!1;for(let l of t)if(!e.has(l))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 l=t.getItem(e);return!(!l||l?.props?.isDisabled)&&("cell"!==l.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(e){return new eg(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0,fullCollection:this.fullCollection??this.collection})}}e.s(["SelectionManager",0,eg],847779);class em{build(e,t){return this.context=t,eK(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:l}=e;if(h.default.isValidElement(t)&&t.type===h.default.Fragment)yield*this.iterateCollection({children:t.props.children,items:l});else if("function"==typeof t){if(!l)throw Error("props.children was a function but props.items is missing");let e=0;for(let n of l)yield*this.getFullNode({value:n,index:e},{renderer:t}),e++}else{let e=[];
1h.default.Children.forEach(t,t=>{t&&e.push(t)});let l=0;for(let t of e)for(let e of this.getFullNode({element:t,index:l},{}))l++,yield e}}getKey(e,t,l,n){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${n}${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 n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,l,n){if(h.default.isValidElement(e.element)&&e.element.type===h.default.Fragment){let i=[];h.default.Children.forEach(e.element.props.children,e=>{i.push(e)});let r=e.index??0;for(let e of i)yield*this.getFullNode({element:e,index:r++},t,l,n);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let l=this.cache.get(e.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=e.index,l.parentKey=n?n.key:null,yield l;return}i=t.renderer(e.value)}if(h.default.isValidElement(i)){let r=i.type;if("function"!=typeof r&&"function"!=typeof r.getCollectionNode){let e=i.type;throw Error(`Unknown element <${e}> in collection.`)}let s=r.getCollectionNode(i.props,this.context),o=e.index??0,u=s.next();for(;!u.done&&u.value;){let r=u.value;e.index=o;let c=r.key??null;null==c&&(c=r.element?null:this.getKey(i,e,t,l));let a=[...this.getFullNode({...r,key:c,index:o,wrapper:function(e,t){return e&&t?l=>e(t(l)):e||t||void 0}(e.wrapper,r.wrapper)},this.getChildState(t,r),l?`${l}${i.key}`:i.key,n)];for(let t of a){if(t.value=r.value??e.value??null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${eS(t.type)}> in <${eS(n?.type??"unknown parent type")}>. Only <${eS(e.type)}> is supported.`);o++,yield t}u=s.next(a)}return}if(null==e.key||null==e.type)return;let r=this,s={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:e.value??null,level:(n?.level??0)+ +(n?.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:eK(function*(){if(!e.hasChildNodes||!e.childNodes)return;let l=0;for(let n of e.childNodes())for(let e of(null!=n.key&&(n.key=`${s.key}${n.key}`),r.getFullNode({...n,index:l},r.getChildState(t,n),s.key,s)))l++,yield e})};yield s}constructor(){this.cache=new WeakMap}}function eK(e){let t=[],l=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let n of(l||(l=e()),l))t.push(n),yield n}}}function eS(e){return e[0].toUpperCase()+e.slice(1)}function ev(e,t,l){let n=(0,h.useMemo)(()=>new em,[]),{children:i,items:r,collection:s}=e;return(0,h.useMemo)(()=>s||t(n.build({children:i,items:r},l)),[n,i,r,s,l,t])}function eC(e,t){let l=(0,h.useRef)(null);(0,h.useEffect)(()=>{if(null!=t.focusedKey&&!e.getItem(t.focusedKey)&&l.current){let n=l.current.getKeyAfter(t.focusedKey),i=null;for(;null!=n;){let r=e.getItem(n);if(r&&"item"===r.type&&!t.isDisabled(n)){i=n;break}n=l.current.getKeyAfter(n)}if(null==i)for(n=l.current.getKeyBefore(t.focusedKey);null!=n;){let r=e.getItem(n);if(r&&"item"===r.type&&!t.isDisabled(n)){i=n;break}n=l.current.getKeyBefore(n)}t.setFocusedKey(i)}l.current=e},[e,t])}function eb(e,t,l){(0,et.useLayoutEffect)(()=>{if(t&&e.current){if(!("getAnimations"in e.current))return void l();let t=e.current.getAnimations();if(0===t.length)return void l();let n=!1;return Promise.allSettled(t.map(e=>e.finished)).then(()=>{n||(0,m.flushSync)(()=>{l()})}),()=>{n=!0}}},[e,t,l])}e.s(["useCollection",0,ev],970921),e.s(["UNSTABLE_useFilteredListState",0,function(e,t){let l=(0,h.useMemo)(()=>t?e.collection.filter(t):e.collection,[e.collection,t]),n=e.selectionManager.withCollection(l);return eC(l,n),{collection:l,selectionManager:n,disabledKeys:e.disabledKeys}},"useListState",0,function(e){let{filter:t,layoutDelegate:l}=e,n=eh(e),i=(0,h.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),r=(0,h.useCallback)(e=>new ec(t?t(e):e),[t]),s=(0,h.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=ev(e,r,s),u=(0,h.useMemo)(()=>new eg(o,n,{layoutDelegate:l}),[o,n,l]);return eC(o,u),{collection:o,disabledKeys:i,selectionManager:u}}],162645),e.s(["useEnterAnimation",0,function(e,t=!0){let[l,n]=(0,h.useState)(!0),i=l&&t;return(0,et.useLayoutEffect)(()=>
1{if(i&&e.current&&"getAnimations"in e.current)for(let t of e.current.getAnimations())t instanceof CSSTransition&&t.cancel()},[e,i]),eb(e,i,(0,h.useCallback)(()=>n(!1),[])),i},"useExitAnimation",0,function(e,t){let[l,n]=(0,h.useState)(t?"open":"closed");switch(l){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open")}let i="exiting"===l;return eb(e,i,(0,h.useCallback)(()=>{n(e=>"exiting"===e?"closed":e)},[])),i}],604254)},388684,506930,730348,e=>{"use strict";function t(e,t){if(!e)return!1;let l=window.getComputedStyle(e),n=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(l.overflow+l.overflowX+l.overflowY);return e===n&&"hidden"!==l.overflow&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function l(e,l){let n=[],i=document.scrollingElement||document.documentElement;for(;e&&(t(e,l)&&n.push(e),e!==i);)e=e.parentElement;return n}e.s(["isScrollable",0,t],506930);var n=e.i(583797);function i(e,t,l={}){let{block:r="nearest",inline:s="nearest"}=l;if(e===t)return;let o=e.scrollTop,u=e.scrollLeft,c=t.getBoundingClientRect(),a=e.getBoundingClientRect(),d=window.getComputedStyle(t),h=window.getComputedStyle(e),y=document.scrollingElement||document.documentElement,f=e===y,p=e===y?0:a.top,g=e===y?e.clientHeight:a.bottom,m=e===y?0:a.left,K=e===y?e.clientWidth:a.right,S=parseFloat(d.scrollMarginTop)||0,v=parseFloat(d.scrollMarginBottom)||0,C=parseFloat(d.scrollMarginLeft)||0,b=parseFloat(d.scrollMarginRight)||0,x=parseFloat(h.scrollPaddingTop)||0,k=parseFloat(h.scrollPaddingBottom)||0,w=parseFloat(h.scrollPaddingLeft)||0,E=parseFloat(h.scrollPaddingRight)||0,I=parseFloat(h.borderTopWidth)||0,M=parseFloat(h.borderBottomWidth)||0,F=parseFloat(h.borderLeftWidth)||0,D=parseFloat(h.borderRightWidth)||0,P=c.top-S,N=c.bottom+v,T=c.left-C,A=c.right+b,R=e===y?0:F+D,L=e===y?0:I+M,B=e===y?0:e.offsetWidth-e.clientWidth-R,V=e===y?0:e.offsetHeight-e.clientHeight-L,_=p+(f?0:I)+x,O=g-(f?0:M)-k-V,z=m+(f?0:F)+w,W=K-(f?0:D)-E;(0,n.isIOS)()&&(0,n.isWebKit)()||"ltr"===h.direction?W-=B:"rtl"===h.direction&&(z+=B);let U=P<_||N>O,H=T<z||A>W;if(U&&"start"===r)o+=P-_;else if(U&&"center"===r)o+=(P+N)/2-(_+O)/2;else if(U&&"end"===r)o+=N-O;else if(U&&"nearest"===r){let e=P-_,t=N-O;o+=Math.abs(e)<=Math.abs(t)?e:t}if(H&&"start"===s)u+=T-z;else if(H&&"center"===s)u+=(T+A)/2-(z+W)/2;else if(H&&"end"===s)u+=A-W;else if(H&&"nearest"===s){let e=T-z,t=A-W;u+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:u,top:o})}e.s(["scrollIntoView",0,i,"scrollIntoViewport",0,function(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(),s=l(e,!0);for(let t of s)i(t,e);let{left:o,top:u}=e.getBoundingClientRect();if(Math.abs(t-o)>1||Math.abs(r-u)>1){for(let e of s=n?l(n,!0):[])i(e,n,{block:"center",inline:"center"});for(let t of l(e,!0))i(t,e)}}else{let{left:t,top:l}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});let{left:i,top:r}=e.getBoundingClientRect();(Math.abs(t-i)>1||Math.abs(l-r)>1)&&(n?.scrollIntoView?.({block:"center",inline:"center"}),e.scrollIntoView?.({block:"nearest"}))}}}],388684);var r=e.i(769299),s=e.i(271645);let o=0,u=new Map;e.s(["useDescription",0,function(e){let[t,l]=(0,s.useState)();return(0,r.useLayoutEffect)(()=>{if(!e)return;let t=u.get(e);if(t)l(t.element.id);else{let n=`react-aria-description-${o++}`;l(n);let i=document.createElement("div");i.id=n,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},u.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),u.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}],730348)},755838,(e,t,l)=>{"use strict";var n=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},r=n.useState,s=n.useEffect,o=n.useLayoutEffect,u=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!i(e,l)}catch(e){return!0}}var a="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}
1:function(e,t){var l=t(),n=r({inst:{value:l,getSnapshot:t}}),i=n[0].inst,a=n[1];return o(function(){i.value=l,i.getSnapshot=t,c(i)&&a({inst:i})},[e,l,t]),s(function(){return c(i)&&a({inst:i}),e(function(){c(i)&&a({inst:i})})},[e]),u(l),l};l.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:a},802239,(e,t,l)=>{"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.