PageSourceSearch

https://wefranch.com/_next/static/chunks/67350-4d4334236640e947.js

js wefranch.com collected 2026-10-04 02:47:24 UTC 60,744 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5a22e985-2963-4ec4-b7f5-3a448fe8db5b",e._sentryDebugIdIdentifier="sentry-dbid-5a22e985-2963-4ec4-b7f5-3a448fe8db5b")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[67350],{25753:function(e,t,n){n.d(t,{$x:function(){return i},Mi:function(){return c},Rb:function(){return o},S3:function(){return l},kz:function(){return u},s$:function(){return s}});class l{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 l=this.clone();return t.addDescendants(l,e),l}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}}class i extends l{filter(e,t,n){let[l,i]=d(e,t,this.firstChildKey,n),r=this.clone();return r.firstChildKey=l,r.lastChildKey=i,r}}class r extends l{}r.type="header";class o extends l{}o.type="loader";class s extends i{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}}s.type="item";class u extends i{filter(e,t,n){let l=super.filter(e,t,n);if(l&&null!==l.lastChildKey){let t=e.getItem(l.lastChildKey);if(t&&"header"!==t.type)return l}return null}}u.type="section";class c{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),l=(null==n?void 0:n.firstChildKey)!=null?t.get(n.firstChildKey):null;for(;l;)yield l,l=null!=l.nextKey?t.get(l.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(null!=t.prevKey){var n;for(t=this.keyMap.get(t.prevKey);t&&"item"!==t.type&&null!=t.lastChildKey;)t=this.keyMap.get(t.lastChildKey);return null!==(n=null==t?void 0:t.key)&&void 0!==n?n: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(){var e;let t=null!=this.lastKey?this.keyMap.get(this.lastKey):null;for(;(null==t?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);return null!==(e=null==t?void 0:t.key)&&void 0!==e?e:null}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t: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,l]=d(this,t,this.firstKey,e);return null==t||t.commit(n,l),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}}function d(e,t,n,l){var i,r;
1if(null==n)return[null,null];let o=null,s=null,u=e.getItem(n);for(;null!=u;){let n=u.filter(e,t,l);null!=n&&(n.nextKey=null,s&&(n.prevKey=s.key,s.nextKey=n.key),null==o&&(o=n),t.addNode(n),s=n),u=u.nextKey?e.getItem(u.nextKey):null}if(s&&"separator"===s.type){let e=s.prevKey;t.removeNode(s.key),e?(s=t.getItem(e)).nextKey=null:s=null}return[null!==(i=null==o?void 0:o.key)&&void 0!==i?i:null,null!==(r=null==s?void 0:s.key)&&void 0!==r?r:null]}},35338:function(e,t,n){n.d(t,{FE:function(){return w},yF:function(){return v},IW:function(){return C},G5:function(){return S}});var l=n(25753);class i{*[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(){var e;return(null===(e=this.parentNode)||void 0===e?void 0:e.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: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}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}}class r extends i{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){var e;return this.parentNode instanceof r?this.parentNode.level+((null===(e=this.node)||void 0===e?void 0:e.type)==="item"?1:0):0}getMutableNode(){return null==this.node?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var e,t,n,l,i,o,s,u,c,d,a,h,f,p,y;let v=this.nextVisibleSibling,g=this.getMutableNode();if(null!=g&&(g.index=this.index,g.level=this.level,g.parentKey=this.parentNode instanceof r&&null!==(c=null===(e=this.parentNode.node)||void 0===e?void 0:e.key)&&void 0!==c?c:null,g.prevKey=null!==(d=null===(n=this.previousVisibleSibling)||void 0===n?void 0:null===(t=n.node)||void 0===t?void 0:t.key)&&void 0!==d?d:null,g.nextKey=null!==(a=null==v?void 0:null===(l=v.node)||void 0===l?void 0:l.key)&&void 0!==a?a:null,g.hasChildNodes=!!this.firstChild,g.firstChildKey=null!==(h=null===(o=this.first
1VisibleChild)||void 0===o?void 0:null===(i=o.node)||void 0===i?void 0:i.key)&&void 0!==h?h:null,g.lastChildKey=null!==(f=null===(u=this.lastVisibleChild)||void 0===u?void 0:null===(s=u.node)||void 0===s?void 0:s.key)&&void 0!==f?f:null,(null!=g.colSpan||null!=g.colIndex)&&v)){let e=(null!==(p=g.colIndex)&&void 0!==p?p:g.index)+(null!==(y=g.colSpan)&&void 0!==y?y:1);null!=v.node&&e!==v.node.colIndex&&(v.getMutableNode().colIndex=e)}}setProps(e,t,n,l,i){let r;let{value:o,textValue:s,id:u,...c}=e;if(null==this.node?(r=new n(null!=u?u:`react-aria-${++this.ownerDocument.nodeId}`),this.node=r):r=this.getMutableNode(),c.ref=t,r.props=c,r.rendered=l,r.render=i,r.value=o,r.textValue=s||("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 l="none"===value;if(e.isHidden!==l){var t,n;((null===(t=e.parentNode)||void 0===t?void 0:t.firstVisibleChild)===e||(null===(n=e.parentNode)||void 0===n?void 0:n.lastVisibleChild)===e)&&e.ownerDocument.markDirty(e.parentNode);let i=e.previousVisibleSibling,r=e.nextVisibleSibling;i&&e.ownerDocument.markDirty(i),r&&e.ownerDocument.markDirty(r),e.isHidden=l,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}}class o extends i{get isConnected(){return!0}createElement(e){return new r(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.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof r&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof r?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);if(this.nextCollection){var e,t,n,l,i,o;this.nextCollection.commit(null!==(i=null===(t=this.firstVisibleChild)||void 0===t?void 0:null===(e=t.node)||void 0===e?void 0:e.key)&&void 0!==i?i:null,null!==(o=null===(l=this.lastVisibleChild)||void 0===l?void 0:null===(n=l.node)||void 0===n?void 0:n.key)&&void 0!==o?o: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.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)}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}}var s=n(79703),u=n(40482),c=n(73935),d=n(80435),a=n(67294),h=n(37385),f=n(61688);let p=(0,a.createContext)(!1),y=(0,a.createContext)(null);function v(e){if((0,a.useContext)(y))return e.content;let{collection:t,document:n}=function(e){let[t]=(0,a.useState)(()=>new o((null==e?void 0:e())||new l.Mi));return{collection:m((0,a.useCallback)(e=>t.subscribe(e),[t]),(0,a.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,a.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t])),document:t}}(e.createCollection);return a.createElement(a.Fragment,null,a.createElement(u._G,null,a.createElement(y.Provider,{value:n},e.content)),a.createElement(g,{render:e.children,collection:t}))}function g({collection:e,render:t}){return t(e)}let m="function"==typeof a.useSyncExternalStore?a.useSyncExternalStore:function(e,t,n){let l=(0,h.Av)(),i=(0,a.useRef)(l);i.current=l;let r=(0,a.useCallback)(()=>i.current?n():t(),[t,n]);return(0,f.useSyncExternalStore)(e,r)},b=(0,a.createContext)(null);function K(e,t,n,i,r,o){if("string"==typeof e){var s,u;s=e,(u=class extends l.S3{}).type=s,e=u}let c=(0,a.useCallback)(l=>{null==l||l.setProps(t,n,e,i,o)},[t,n,i,o,e]),d=(0,a.useContext)(b);if(d){let l=d.ownerDocument.nodesByProps.get(t);return l||((l=d.ownerDocument.createElement(e.type)).setProps(t,n,e,i,o),d.appendChild(l),d.ownerDocument.updateCollection(),d.ownerDocument.nodesByProps.set(t,l)),r?a.createElement(b.Provider,{value:l},r):null}return a.createElement(e.type,{ref:c},r)}function S(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),l=(0,a.forwardRef)((l,i)=>{let r=(0,a.useContext)(d.RG);if(!(0,a.useContext)(p)){if(t.length>=3)throw Error(t.name+" cannot be rendered outside a collection.");return t(l,i)}return K(e,l,i,"children"in l?l.children:null,null,e=>a.createElement(d.RG.Provider,{value:r},a.createElement(n,{node:e})))});return l.displayName=t.name,l}function C(e,t,n=N){let l=({node:e})=>t(e.props,e.props.ref,e),i=(0,a.forwardRef)((t,i)=>{var r;let o=n(t);return null!==(r=K(e,t,i,null,o,e=>a.createElement(l,{node:e})))&&void 0!==r?r:a.createElement(a.Fragment,null)});return i.displayName=t.name,i}function N(e){return(0,s.H)({...e,addIdAndValue:!0})}let k=(0,a.createContext)(null);function w(e){let t=(0,a.useContext)(k),n=((null==t?void 0:t.dependencies)||[]).concat(e.depen
1dencies),l=e.idScope||(null==t?void 0:t.idScope),i=N({...e,idScope:l,dependencies:n});return(0,a.useContext)(y)&&(i=a.createElement(x,null,i)),t=(0,a.useMemo)(()=>({dependencies:n,idScope:l}),[l,...n]),a.createElement(k.Provider,{value:t},i)}function x({children:e}){let t=(0,a.useContext)(y),n=(0,a.useMemo)(()=>a.createElement(y.Provider,{value:null},a.createElement(p.Provider,{value:!0},e)),[e]);return(0,h.Av)()?a.createElement(b.Provider,{value:t},n):(0,c.createPortal)(n,t)}},79703:function(e,t,n){n.d(t,{H:function(){return i}});var l=n(67294);function i(e){let{children:t,items:n,idScope:i,addIdAndValue:r,dependencies:o=[]}=e,s=(0,l.useMemo)(()=>new WeakMap,o);return(0,l.useMemo)(()=>{if(n&&"function"==typeof t){let u=[];for(let c of n){let n=s.get(c);if(!n){var e,o;let u=null!==(o=null!==(e=(n=t(c)).props.id)&&void 0!==e?e:c.key)&&void 0!==o?o:c.id;if(null==u)throw Error("Could not determine key for item");i&&(u=i+":"+u),n=(0,l.cloneElement)(n,r?{key:u,id:u,value:c}:{key:u}),s.set(c,n)}u.push(n)}return u}if("function"!=typeof t)return t},[t,n,s,i,r])}},93912:function(e,t,n){n.d(t,{MT:function(){return v},E7:function(){return I},QL:function(){return T},cW:function(){return S}});var l=n(69786),i=n(8745),r=n(78837),o=n(68806),s=n(52034),u=n(18518);class c{get currentNode(){return this._currentNode}set currentNode(e){if(!(0,i.bE)(this.root,e))throw Error("Cannot set currentNode to a node that is not contained by the root node.");let t=[],n=e,l=e;for(this._currentNode=e;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=n,i=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=l,this._currentSetFor.add(i),n=l=e.host}else n=n.parentNode;let r=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(r),r.currentNode=l,this._currentSetFor.add(r),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return(0,i.bE)(e,t)?(t&&(this.currentNode=t),t):(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){var t;let n;if("function"==typeof this.filter?n=this.filter(e):(null===(t=this.filter)||void 0===t?void 0:t.acceptNode)&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let l=this.nextNode();return l&&(this.currentNode=l),l}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){var n;let e;if("function"==typeof this.filter?e=this.filter(t):(null===(n=this.filter)||void 0===n?void 0:n.acceptNode)&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let l=this.lastChild();return l&&(this.currentNode=l),l}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}constructor(e,t,n,l){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){var t;let n=e.shadowRoot;if(n){let e=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if("function"==typeof this.filter)return this.filter(e);if(null===(t=this.filter)||void 0===t?void 0:t.acceptNode)return this.filter.acceptNode(e);if(null===this.filter)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=null!=l?l:null,this.whatToShow=null!=n?n:NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));let i=t.shadowRoot;if(i){let e=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}}var d=n(9975),a=n(30945),h=n(67294);let f=h.createContext(null),p="react-aria-focus-scope-restore",y=null;
1function v(e){let t,n,{children:s,contain:u,restoreFocus:c,autoFocus:a}=e,v=(0,h.useRef)(null),S=(0,h.useRef)(null),I=(0,h.useRef)([]),{parentNode:F}=(0,h.useContext)(f)||{},R=(0,h.useMemo)(()=>new M({scopeRef:I}),[I]);(0,l.b)(()=>{let e=F||D.root;if(D.getTreeNode(e.scopeRef)&&y&&!C(y,e.scopeRef)){let t=D.getTreeNode(y);t&&(e=t)}e.addChild(R),D.addNode(R)},[R,F]),(0,l.b)(()=>{let e=D.getTreeNode(I);e&&(e.contain=!!u)},[u]),(0,l.b)(()=>{var e;let t=null===(e=v.current)||void 0===e?void 0:e.nextSibling,n=[],l=e=>e.stopPropagation();for(;t&&t!==S.current;)n.push(t),t.addEventListener(p,l),t=t.nextSibling;return I.current=n,()=>{for(let e of n)e.removeEventListener(p,l)}},[s]),(0,l.b)(()=>{if(c||u)return;let e=I.current,t=(0,r.r3)(e?e[0]:void 0),n=e=>{let t=(0,i.NI)(e);b(t,I.current)?y=I:K(t)||(y=null)};return t.addEventListener("focusin",n,!1),null==e||e.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",n,!1))}},[I,c,u]),t=(0,h.useRef)(void 0),n=(0,h.useRef)(void 0),(0,l.b)(()=>{let e=I.current;if(!u){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let l=(0,r.r3)(e?e[0]:void 0),s=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!m(I)||e.isComposing)return;let t=(0,i.vY)(l),n=I.current;if(!n||!b(t,n))return;let r=T(g(n),{tabbable:!0},n);if(!t)return;r.currentNode=t;let o=e.shiftKey?r.previousNode():r.nextNode();o||(r.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,o=e.shiftKey?r.previousNode():r.nextNode()),e.preventDefault(),o&&N(o,!0)},c=e=>{(!y||C(y,I))&&b((0,i.NI)(e),I.current)?(y=I,t.current=(0,i.NI)(e)):m(I)&&!K((0,i.NI)(e),I)?t.current?t.current.focus():y&&y.current&&w(y.current):m(I)&&(t.current=(0,i.NI)(e))},a=e=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let n=(0,d.Jz)(),r=("virtual"===n||null===n)&&(0,o.Dt)()&&(0,o.i7)(),s=(0,i.vY)(l);if(!r&&s&&m(I)&&!K(s,I)){y=I;let n=(0,i.NI)(e);if(n&&n.isConnected){var u;t.current=n,null===(u=t.current)||void 0===u||u.focus()}else y.current&&w(y.current)}})};return l.addEventListener("keydown",s,!1),l.addEventListener("focusin",c,!1),null==e||e.forEach(e=>e.addEventListener("focusin",c,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",a,!1)),()=>{l.removeEventListener("keydown",s,!1),l.removeEventListener("focusin",c,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",c,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",a,!1))}},[I,u]),(0,l.b)(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n]),function(e,t,n){let o=(0,h.useRef)("undefined"!=typeof document?(0,i.vY)((0,r.r3)(e.current?e.current[0]:void 0)):null);(0,l.b)(()=>{let l=e.current,o=(0,r.r3)(l?l[0]:void 0);if(!t||n)return;let s=()=>{(!y||C(y,e))&&b((0,i.vY)(o),e.current)&&(y=e)};return o.addEventListener("focusin",s,!1),null==l||l.forEach(e=>e.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),null==l||l.forEach(e=>e.removeEventListener("focusin",s,!1))}},[e,n]),(0,l.b)(()=>{let l=(0,r.r3)(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!m(e)||t.isComposing)return;let n=l.activeElement;if(!K(n,e)||!x(e))return;let i=D.getTreeNode(e);if(!i)return;let r=i.nodeToRestore,o=T(l.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if(r&&r.isConnected&&r!==l.body||(r=void 0,i.nodeToRestore=void 0),(!s||!K(s,e))&&r){o.currentNode=r;do s=t.shiftKey?o.previousNode():o.nextNode();while(K(s,e));(t.preventDefault(),t.stopPropagation(),s)?N(s,!0):K(r)?N(r,!0):n.blur()}};return n||l.addEventListener("keydown",i,!0),()=>{n||l.removeEventListener("keydown",i,!0)}},[e,t,n]),(0,l.b)(()=>{var n;let l=(0,r.r3)(e.current?e.current[0]:void 0);if(!t)return;let s=D.getTreeNode(e);if(s)return s.nodeToRestore=null!==(n=o.current)&&void 0!==n?n:void 0,()=>{let n=D.getTreeNode(e);if(!n)return;let r=n.nodeToRestore,o=(0,i.vY)(l);if(t&&r&&(o&&K(o,e)||o===l.body&&x(e))){let t=D.clone();requestAnimationFrame(()=>{if(l.activeElement===l.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){E(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&D.getTreeNode(n.scopeRef)){E(k(n.scopeRef.current,!0));return}n=n.parent}}})}}},[e,t])}(I,c,u),function(e,t){let n=h.useRef(t);(0,h.useEffect)(()=>
1{if(n.current){y=e;let t=(0,r.r3)(e.current?e.current[0]:void 0);!b((0,i.vY)(t),y.current)&&e.current&&w(e.current)}n.current=!1},[e])}(I,a),(0,h.useEffect)(()=>{let e=(0,i.vY)((0,r.r3)(I.current?I.current[0]:void 0)),t=null;if(b(e,I.current)){for(let n of D.traverse())n.scopeRef&&b(e,n.scopeRef.current)&&(t=n);t===D.getTreeNode(I)&&(y=t.scopeRef)}},[I]),(0,l.b)(()=>()=>{var e,t,n;let l=null!==(n=null===(t=D.getTreeNode(I))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;(I===y||C(I,y))&&(!l||D.getTreeNode(l))&&(y=l),D.removeTreeNode(I)},[I]);let P=(0,h.useMemo)(()=>({focusNext(e={}){var t;let n=I.current,{from:l,tabbable:o,wrap:s,accept:u}=e,c=l||(0,i.vY)((0,r.r3)(null!==(t=n[0])&&void 0!==t?t:void 0)),d=n[0].previousElementSibling,a=T(g(n),{tabbable:o,accept:u},n);a.currentNode=b(c,n)?c:d;let h=a.nextNode();return!h&&s&&(a.currentNode=d,h=a.nextNode()),h&&N(h,!0),h},focusPrevious(e={}){var t;let n=I.current,{from:l,tabbable:o,wrap:s,accept:u}=e,c=l||(0,i.vY)((0,r.r3)(null!==(t=n[0])&&void 0!==t?t:void 0)),d=n[n.length-1].nextElementSibling,a=T(g(n),{tabbable:o,accept:u},n);a.currentNode=b(c,n)?c:d;let h=a.previousNode();return!h&&s&&(a.currentNode=d,h=a.previousNode()),h&&N(h,!0),h},focusFirst(e={}){let t=I.current,{tabbable:n,accept:l}=e,i=T(g(t),{tabbable:n,accept:l},t);i.currentNode=t[0].previousElementSibling;let r=i.nextNode();return r&&N(r,!0),r},focusLast(e={}){let t=I.current,{tabbable:n,accept:l}=e,i=T(g(t),{tabbable:n,accept:l},t);i.currentNode=t[t.length-1].nextElementSibling;let r=i.previousNode();return r&&N(r,!0),r}}),[]),_=(0,h.useMemo)(()=>({focusManager:P,parentNode:R}),[R,P]);return h.createElement(f.Provider,{value:_},h.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:v}),s,h.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:S}))}function g(e){return e[0].parentElement}function m(e){let t=D.getTreeNode(y);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function b(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function K(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of D.traverse(D.getTreeNode(t)))if(n&&b(e,n.current))return!0;return!1}function S(e){return K(e,y)}function C(e,t){var n;let l=null===(n=D.getTreeNode(t))||void 0===n?void 0:n.parent;for(;l;){if(l.scopeRef===e)return!0;l=l.parent}return!1}function N(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,a.e)(e)}catch{}}function k(e,t=!0){let n=e[0].previousElementSibling,l=g(e),i=T(l,{tabbable:t},e);i.currentNode=n;let r=i.nextNode();return t&&!r&&((i=T(l=g(e),{tabbable:!1},e)).currentNode=n,r=i.nextNode()),r}function w(e,t=!0){N(k(e,t))}function x(e){let t=D.getTreeNode(y);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function E(e){e.dispatchEvent(new CustomEvent(p,{bubbles:!0,cancelable:!0}))&&N(e)}function T(e,t,n){var l,i,o;let d=(null==t?void 0:t.tabbable)?s.W:s.E,a=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,h=(0,r.r3)(a),f=(l=e||h,i=NodeFilter.SHOW_ELEMENT,o={acceptNode(e){var l;return(null==t?void 0:null===(l=t.from)||void 0===l?void 0:l.contains(e))||(null==t?void 0:t.tabbable)&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=[];if(e.form){var n,l;let i=null===(l=e.form)||void 0===l?void 0:null===(n=l.elements)||void 0===n?void 0:n.namedItem(e.name);t=[...null!=i?i:[]]}else t=[...(0,r.r3)(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(e=>!e.form);return!!t&&!t.some(e=>e.checked)}(e)||"INPUT"===f.currentNode.tagName&&"radio"===f.currentNode.type&&f.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:d(e)&&(!n||b(e,n))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}},(0,u.Wr)()?new c(h,l,i,o):h.createTreeWalker(l,i,o));return(null==t?void 0:t.from)&&(f.currentNode=t.from),f}function I(e,t={}){return{focusNext(n={}){let l=e.current;if(!l)return null;let{from:o,tabbable:s=t.tabbable,wrap:u=t.wrap,accept:c=t.accept}=n,d=o||(0,i.vY)((0,r.r3)(l)),a=T(l,{tabbable:s,accept:c});l.contains(d)&&(a.currentNode=d);let h=a.nextNode();return!h&&u&&(a.currentNode=l,h=a.nextNode()),h&&N(h,!0),h},focusPrevious(n=t){let l=e.current;if(!l)return null;let{from:o,tabbable:s=t.tabbable,wrap:u=t.wrap,accept:c=t.accept}=n,d=o||(0,i.vY)((0,r.r3)(l)),a=T(l,{tabbable:s,accept:c});if(l.contains(d))a.currentNode=d;else{let e=F(a);return e&&N(e,!0),null!=e?e:null}let h=a.previousNode();if(!h&&u){a.currentNode=l;let e=F(a);if(!e)return null;h=e}return h&&N(h,!0),null!=h?h:null},focusFirst(n=t){let l=e.current;if(!l)return null;let{tabbable:i=t.tabbable,accept:r=t.accept}=n,o=T(l,{tabbable:i,accept:r}).nextNode();return o&&N(o,!0),o},focusLast(n=t){let l=e.current;if(!l)return null;let{tabbable:i=t.tabbable,accept:r=t.accept}=n,o=F(T(l,{tabbable:i,accept:r}));return o&&N(o,!0),null!=o?o:null}}}function F(e){let t,n;do(t=e.lastChild())&&(n=t);while(t);return n}class R{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let l=this.fastMap.get(null!=t?t:null);if(!l)return;let i=new M({scopeRef:e});l.addChild(i),i.parent=l,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&&b(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let l=t.children;n&&(n.removeChild(t),l.size>
10&&l.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(){var e,t;let n=new R;for(let l of this.traverse())n.addTreeNode(l.scopeRef,null!==(t=null===(e=l.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,l.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new M({scopeRef:null}),this.fastMap.set(null,this.root)}}class M{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let D=new R},90149:function(e,t,n){n.d(t,{Jv:function(){return o},q6:function(){return r}});var l=n(78837),i=n(8745);function r(e){var t;let n,r;let s=(t=(0,l.r3)(e),(r=null==(n=(0,i.vY)(t))?void 0:n.getAttribute("aria-activedescendant"))&&t.getElementById(r)||n);s!==e&&(s&&(s.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))),e&&o(e,s))}function o(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}},51889:function(e,t,n){n.d(t,{T:function(){return d}});var l=n(30267),i=n(36116),r=n(78837),o=n(77604),s=n(1325),u=n(28349),c=n(67294);function d(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:d,onLongPress:a,threshold:h=500,accessibilityDescription:f}=e,p=(0,c.useRef)(void 0),{addGlobalListener:y,removeGlobalListener:v}=(0,i.x)(),{pressProps:g}=(0,l.r)({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),p.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),(0,r.r3)(e.target).activeElement!==e.target&&(0,o.A)(e.target),a&&a({...e,type:"longpress"}),p.current=void 0},h),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};y(e.target,"contextmenu",t,{once:!0}),y(window,"pointerup",()=>{setTimeout(()=>{v(e.target,"contextmenu",t)}
1,30)},{once:!0})}},onPressEnd(e){p.current&&clearTimeout(p.current),d&&("mouse"===e.pointerType||"touch"===e.pointerType)&&d({...e,type:"longpressend"})}}),m=(0,s.P)(a&&!t?f:void 0);return{longPressProps:(0,u.d)(g,m)}}},73426:function(e,t,n){n.d(t,{g:function(){return C}});var l=n(40608),i=n(13553),r=n(32433),o=n(53677),s=n(77604),u=n(68278),c=n(44369),d=n(61718),a=n(8745),h=n(69786),f=n(67294);function p(e,t){let n=(0,f.useRef)(!0),l=(0,f.useRef)(null);(0,h.b)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,h.b)(()=>{n.current?n.current=!1:(!l.current||t.some((e,t)=>!Object.is(e,l[t])))&&e(),l.current=t},t)}var y=n(28349),v=n(93912),g=n(90149),m=n(73935),b=n(9975),K=n(30945),S=n(54792);function C(e){let t,{selectionManager:n,keyboardDelegate:h,ref:C,autoFocus:N=!1,shouldFocusWrap:k=!1,disallowEmptySelection:w=!1,disallowSelectAll:x=!1,escapeKeyBehavior:E="clearSelection",selectOnFocus:T="replace"===n.selectionBehavior,disallowTypeAhead:I=!1,shouldUseVirtualFocus:F,allowsTabNavigation:R=!1,isVirtualized:M,scrollRef:D=C,linkBehavior:P="action"}=e,{direction:_}=(0,S.j)(),L=(0,r.tv)(),A=(0,f.useRef)({top:0,left:0});(0,u.z)(D,"scroll",M?void 0:()=>{var e,t,n,l;A.current={top:null!==(n=null===(e=D.current)||void 0===e?void 0:e.scrollTop)&&void 0!==n?n:0,left:null!==(l=null===(t=D.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==l?l:0}});let z=(0,f.useRef)(!1);(0,u.z)(C,"react-aria-focus",F?e=>{let{detail:t}=e;e.stopPropagation(),n.setFocused(!0),(null==t?void 0:t.focusStrategy)==="first"&&(z.current=!0)}:void 0);let B=(0,d.i)(()=>{var e,t;let l=null!==(t=null===(e=h.getFirstKey)||void 0===e?void 0:e.call(h))&&void 0!==t?t:null;if(null==l){let e=(0,a.vY)();(0,g.q6)(C.current),(0,g.Jv)(e,null),n.collection.size>0&&(z.current=!1)}else n.setFocusedKey(l),z.current=!1});p(()=>{z.current&&B()},[n.collection,B]);let V=(0,d.i)(()=>{n.collection.size>0&&(z.current=!1)});p(()=>{V()},[n.focusedKey,V]),(0,u.z)(C,"react-aria-clear-focus",F?e=>{var t;e.stopPropagation(),n.setFocused(!1),(null===(t=e.detail)||void 0===t?void 0:t.clearFocusKey)&&n.setFocusedKey(null)}:void 0);let H=(0,f.useRef)(N),O=(0,f.useRef)(!1);(0,f.useEffect)(()=>{if(H.current){var e,t,l,i;let r=null;"first"===N&&(r=null!==(l=null===(e=h.getFirstKey)||void 0===e?void 0:e.call(h))&&void 0!==l?l:null),"last"===N&&(r=null!==(i=null===(t=h.getLastKey)||void 0===t?void 0:t.call(h))&&void 0!==i?i:null);let o=n.selectedKeys;if(o.size){for(let e of o)if(n.canSelectItem(e)){r=e;break}}n.setFocused(!0),n.setFocusedKey(r),null==r&&!F&&C.current&&(0,K.e)(C.current),n.collection.size>0&&(H.current=!1,O.current=!0)}});let W=(0,f.useRef)(n.focusedKey),Y=(0,f.useRef)(null);(0,f.useEffect)(()=>{if(n.isFocused&&null!=n.focusedKey&&(n.focusedKey!==W.current||O.current)&&D.current&&C.current){let e=(0,b.Jz)(),t=(0,l.D0)(C,n.focusedKey);if(!(t instanceof HTMLElement))return;("keyboard"===e||O.current)&&(Y.current&&cancelAnimationFrame(Y.current),Y.current=requestAnimationFrame(()=>{D.current&&((0,c.z)(D.current,t),"virtual"!==e&&(0,c.G)(t,{containingElement:C.current}))}))}!F&&n.isFocused&&null==n.focusedKey&&null!=W.current&&C.current&&(0,K.e)(C.current),W.current=n.focusedKey,O.current=!1}),(0,f.useEffect)(()=>()=>{Y.current&&cancelAnimationFrame(Y.current)},[]),(0,u.z)(C,"react-aria-focus-scope-restore",e=>{e.preventDefault(),n.setFocused(!0)});let $={onKeyDown:e=>{var t,i,r,u,c,d,a,f,p,y,g,b,K;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!(null===(t=C.current)||void 0===t?void 0:t.contains(e.target)))return;let S=(t,i)=>{if(null!=t){if(n.isLink(t)&&"selection"===P&&T&&!(0,l.FJ)(e)){(0,m.flushSync)(()=>{n.setFocusedKey(t,i)});let r=(0,l.D0)(C,t),o=n.getItemProps(t);r&&L.open(r,e,o.href,o.routerOptions);return}n.setFocusedKey(t,i),n.isLink(t)&&"override"===P||(e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):T&&!(0,l.FJ)(e)&&n.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(h.getKeyBelow){let t=null!=n.focusedKey?null===(i=h.getKeyBelow)||void 0===i?void 0:i.call(h,n.focusedKey):null===(r=h.getFirstKey)||void 0===r?void 0:r.call(h);null==t&&k&&(t=null===(u=h.getFirstKey)||void 0===u?void 0:u.call(h,n.focusedKey)),null!=t&&(e.preventDefault(),S(t))}break;case"ArrowUp":if(h.getKeyAbove){let t=null!=n.focusedKey?null===(c=h.getKeyAbove)||void 0===c?void 0:c.call(h,n.focusedKey):null===(d=h.getLastKey)||void 0===d?void 0:d.call(h);null==t&&k&&(t=null===(a=h.getLastKey)||void 0===a?void 0:a.call(h,n.focusedKey)),null!=t&&(e.preventDefault(),S(t))}break;case"ArrowLeft":if(h.getKeyLeftOf){let t=null!=n.focusedKey?null===(f=h.getKeyLeftOf)||void 0===f?void 0:f.call(h,n.focusedKey):null;null==t&&k&&(t="rtl"===_?null===(p=h.getFirstKey)||void 0===p?void 0:p.call(h,n.focusedKey):null===(y=h.getLastKey)||void 0===y?void 0:y.call(h,n.focusedKey)),null!=t&&(e.preventDefault(),S(t,"rtl"===_?"first":"last"))}break;case"ArrowRight":if(h.getKeyRightOf){let t=null!=n.focusedKey?null===(g=h.getKeyRightOf)||void 0===g?void 0:g.call(h,n.focusedKey):null;null==t&&k&&(t="rtl"===_?null===(b=h.getLastKey)||void 0===b?void 0:b.call(h,n.focusedKey):null===(K=
1h.getFirstKey)||void 0===K?void 0:K.call(h,n.focusedKey)),null!=t&&(e.preventDefault(),S(t,"rtl"===_?"last":"first"))}break;case"Home":if(h.getFirstKey){if(null===n.focusedKey&&e.shiftKey)return;e.preventDefault();let t=h.getFirstKey(n.focusedKey,(0,o.y)(e));n.setFocusedKey(t),null!=t&&((0,o.y)(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):T&&n.replaceSelection(t))}break;case"End":if(h.getLastKey){if(null===n.focusedKey&&e.shiftKey)return;e.preventDefault();let t=h.getLastKey(n.focusedKey,(0,o.y)(e));n.setFocusedKey(t),null!=t&&((0,o.y)(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):T&&n.replaceSelection(t))}break;case"PageDown":if(h.getKeyPageBelow&&null!=n.focusedKey){let t=h.getKeyPageBelow(n.focusedKey);null!=t&&(e.preventDefault(),S(t))}break;case"PageUp":if(h.getKeyPageAbove&&null!=n.focusedKey){let t=h.getKeyPageAbove(n.focusedKey);null!=t&&(e.preventDefault(),S(t))}break;case"a":(0,o.y)(e)&&"multiple"===n.selectionMode&&!0!==x&&(e.preventDefault(),n.selectAll());break;case"Escape":"clearSelection"!==E||w||0===n.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),n.clearSelection());break;case"Tab":if(!R){if(e.shiftKey)C.current.focus();else{let e,t,n=(0,v.QL)(C.current,{tabbable:!0});do(t=n.lastChild())&&(e=t);while(t);e&&!e.contains(document.activeElement)&&(0,s.A)(e)}}}},onFocus:e=>{if(n.isFocused){e.currentTarget.contains(e.target)||n.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(n.setFocused(!0),null==n.focusedKey){var t,i,r,o;let l=e=>{null!=e&&(n.setFocusedKey(e),T&&!n.isSelected(e)&&n.replaceSelection(e))},s=e.relatedTarget;s&&e.currentTarget.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?l(null!==(r=n.lastSelectedKey)&&void 0!==r?r:null===(t=h.getLastKey)||void 0===t?void 0:t.call(h)):l(null!==(o=n.firstSelectedKey)&&void 0!==o?o:null===(i=h.getFirstKey)||void 0===i?void 0:i.call(h))}else!M&&D.current&&(D.current.scrollTop=A.current.top,D.current.scrollLeft=A.current.left);if(null!=n.focusedKey&&D.current){let e=(0,l.D0)(C,n.focusedKey);e instanceof HTMLElement&&(e.contains(document.activeElement)||F||(0,s.A)(e),"keyboard"===(0,b.Jz)()&&(0,c.G)(e,{containingElement:C.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||n.setFocused(!1)},onMouseDown(e){D.current===e.target&&e.preventDefault()}},{typeSelectProps:U}=(0,i.i)({keyboardDelegate:h,selectionManager:n});I||($=(0,y.d)(U,$)),F||(t=null==n.focusedKey?0:-1);let q=(0,l.Mm)(n.collection);return{collectionProps:(0,y.d)($,{tabIndex:t,"data-collection":q})}}},36400:function(e,t,n){n.d(t,{C:function(){return p}});var l=n(40608),i=n(32433),r=n(9188),o=n(53677),s=n(28349),u=n(11086),c=n(30945),d=n(30267),a=n(51889),h=n(90149),f=n(67294);function p(e){let{id:t,selectionManager:n,key:p,ref:g,shouldSelectOnPressUp:m,shouldUseVirtualFocus:b,focus:K,isDisabled:S,onAction:C,allowsDifferentPressOrigin:N,linkBehavior:k="action"}=e,w=(0,i.tv)();t=(0,r.Me)(t);let x=e=>{if("keyboard"===e.pointerType&&(0,l.FJ)(e))n.toggleSelection(p);else{if("none"===n.selectionMode)return;if(n.isLink(p)){if("selection"===k&&g.current){let t=n.getItemProps(p);w.open(g.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}if("override"===k||"none"===k)return}"single"===n.selectionMode?n.isSelected(p)&&!n.disallowEmptySelection?n.toggleSelection(p):n.replaceSelection(p):e&&e.shiftKey?n.extendSelection(p):"toggle"===n.selectionBehavior||e&&((0,o.y)(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?n.toggleSelection(p):n.replaceSelection(p)}};(0,f.useEffect)(()=>{p===n.focusedKey&&n.isFocused&&(b?(0,h.q6)(g.current):K?K():document.activeElement!==g.current&&g.current&&(0,c.e)(g.current))},[g,p,n.focusedKey,n.childFocusStrategy,n.isFocused,b]),S=S||n.isDisabled(p);let E={};b||S?S&&(E.onMouseDown=e=>{e.preventDefault()}):E={tabIndex:p===n.focusedKey?0:-1,onFocus(e){e.target===g.current&&n.setFocusedKey(p)}};let T=n.isLink(p)&&"override"===k,I=C&&"action"===e.UNSTABLE_itemBehavior,F=n.isLink(p)&&"selection"!==k&&"none"!==k,R=!S&&n.canSelectItem(p)&&!T&&!I,M=(C||F)&&!S,D=M&&("replace"===n.selectionBehavior?!R:!R||n.isEmpty),P=M&&R&&"replace"===n.selectionBehavior,_=D||P,L=(0,f.useRef)(null),A=_&&R,z=(0,f.useRef)(!1),B=(0,f.useRef)(!1),V=n.getItemProps(p),H=e=>{if(C){var t;
1C(),null===(t=g.current)||void 0===t||t.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}F&&g.current&&w.open(g.current,e,V.href,V.routerOptions)},O={ref:g};if(m?(O.onPressStart=e=>{L.current=e.pointerType,z.current=A,"keyboard"===e.pointerType&&(!_||v())&&x(e)},N?(O.onPressUp=D?void 0:e=>{"mouse"===e.pointerType&&R&&x(e)},O.onPress=D?H:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&R&&x(e)}):O.onPress=e=>{D||P&&"mouse"!==e.pointerType?("keyboard"!==e.pointerType||y())&&H(e):"keyboard"!==e.pointerType&&R&&x(e)}):(O.onPressStart=e=>{L.current=e.pointerType,z.current=A,B.current=D,R&&("mouse"===e.pointerType&&!D||"keyboard"===e.pointerType&&(!M||v()))&&x(e)},O.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&_&&y()||"mouse"===e.pointerType&&B.current)&&(_?H(e):R&&x(e))}),E["data-collection"]=(0,l.Zx)(n.collection),E["data-key"]=p,O.preventFocusOnPress=b,b&&(O=(0,s.d)(O,{onPressStart(e){"touch"!==e.pointerType&&(n.setFocused(!0),n.setFocusedKey(p))},onPress(e){"touch"===e.pointerType&&(n.setFocused(!0),n.setFocusedKey(p))}})),V)for(let e of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])V[e]&&(O[e]=(0,u.t)(O[e],V[e]));let{pressProps:W,isPressed:Y}=(0,d.r)(O),$=P?e=>{"mouse"===L.current&&(e.stopPropagation(),e.preventDefault(),H(e))}:void 0,{longPressProps:U}=(0,a.T)({isDisabled:!A,onLongPress(e){"touch"===e.pointerType&&(x(e),n.setSelectionBehavior("toggle"))}}),q="none"!==k&&n.isLink(p)?e=>{i.nG.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,s.d)(E,R||D||b&&!S?W:{},A?U:{},{onDoubleClick:$,onDragStartCapture:e=>{"touch"===L.current&&z.current&&e.preventDefault()},onClick:q,id:t},b?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:Y,isSelected:n.isSelected(p),isFocused:n.isFocused&&n.focusedKey===p,isDisabled:S,allowsSelection:R,hasAction:_}}function y(){let e=window.event;return(null==e?void 0:e.key)==="Enter"}function v(){let e=window.event;return(null==e?void 0:e.key)===" "||(null==e?void 0:e.code)==="Space"}},13553:function(e,t,n){n.d(t,{i:function(){return i}});var l=n(67294);function i(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:i}=e,r=(0,l.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{var l;let o=1!==(l=e.key).length&&/^[A-Z]/i.test(l)?"":l;if(o&&!e.ctrlKey&&!e.metaKey&&e.currentTarget.contains(e.target)&&(0!==r.search.length||" "!==o)){if(" "!==o||!(r.search.trim().length>0)||(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),r.search+=o,null!=t.getKeyForSearch){let e=t.getKeyForSearch(r.search,n.focusedKey);null==e&&(e=t.getKeyForSearch(r.search)),null!=e&&(n.setFocusedKey(e),i&&i(e))}clearTimeout(r.timeout),r.timeout=setTimeout(()=>{r.search=""},1e3)}}:void 0}}}},40608:function(e,t,n){n.d(t,{D0:function(){return o},FJ:function(){return r},Mm:function(){return u},Zx:function(){return c}});var l=n(68806),i=n(9188);function r(e){return(0,l.ad)()?e.altKey:e.ctrlKey}function o(e,t){var n,l;let i=`[data-key="${CSS.escape(String(t))}"]`,r=null===(n=e.current)||void 0===n?void 0:n.dataset.collection;return r&&(i=`[data-collection="${CSS.escape(r)}"]${i}`),null===(l=e.current)||void 0===l?void 0:l.querySelector(i)}let s=new WeakMap;function u(e){let t=(0,i.Me)();return s.set(e,t),t}function c(e){return s.get(e)}},96791:function(e,t,n){n.d(t,{a:function(){return l}});function l(e,t){if(!e)return!1;let n=window.getComputedStyle(e),l=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return l&&t&&(l=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),l}},53677:function(e,t,n){n.d(t,{o:function(){return o},y:function(){return i}});var l=n(68806);function i(e){return(0,l.V5)()?e.metaKey:e.ctrlKey}let r=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function o(e){return e instanceof HTMLInputElement&&!r.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}},44369:function(e,t,n){n.d(t,{z:function(){return r},G:function(){return s}});var l=n(96791),i=n(68806);function r(e,t){let n=o(e,t,"left"),l=o(e,t,"top"),i=t.offsetWidth,r=t.offsetHeight,s=e.scrollLeft,u=e.scrollTop,{borderTopWidth:c,borderLeftWidth:d,scrollPaddingTop:a,scrollPaddingRight:h,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),{scrollMarginTop:y,scrollMarginRight:v,scrollMarginBottom:g,scrollMarginLeft:m}=getComputedStyle(t),b=s+parseInt(d,10),K=u+parseInt(c,10),S=b+e.clientWidth,C=K+e.clientHeight,N=parseInt(a,10)||0,k=parseInt(f,10)||0,w=parseInt(h,10)||0,x=parseInt(p,10)||0,E=parseInt(y,10)||0,T=parseInt(g,10)||0,I=parseInt(v,10)||0,F=n-(parseInt(m,10)||0),R=n+i+I,M=l-E,D=l+r+T,P=s+parseInt(d,10)+x,_=u+parseInt(c,10)+N;(F>P||R<S-w)&&(F<=s+x?s=F-parseInt(d,10)-x:R>S-w&&(s+=R-S+w)),(M>_||D<C-k)&&(M<=K+N?u=M-parseInt(c,10)-N:D>C-k&&(u+=D-C+k)),e.scrollTo({left:s,top:u})}
1function o(e,t,n){let l="left"===n?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[l],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[l];break}t=t.offsetParent}return i}function s(e,t){if(e&&document.contains(e)){let c=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(c).overflow||(0,i.i7)())for(let t of function(e,t){let n=[];for(;e&&e!==document.documentElement;)(0,l.a)(e,void 0)&&n.push(e),e=e.parentElement;return n}(e))r(t,e);else{var n,o,s,u;let{left:l,top:i}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:r,top:c}=e.getBoundingClientRect();(Math.abs(l-r)>1||Math.abs(i-c)>1)&&(null==t||null===(s=t.containingElement)||void 0===s||null===(o=s.scrollIntoView)||void 0===o||o.call(s,{block:"center",inline:"center"}),null===(u=e.scrollIntoView)||void 0===u||u.call(e,{block:"nearest"}))}}}},1325:function(e,t,n){n.d(t,{P:function(){return s}});var l=n(69786),i=n(67294);let r=0,o=new Map;function s(e){let[t,n]=(0,i.useState)();return(0,l.b)(()=>{if(!e)return;let t=o.get(e);if(t)n(t.element.id);else{let l=`react-aria-description-${r++}`;n(l);let i=document.createElement("div");i.id=l,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},o.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),o.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}},66685:function(e,t,n){function l(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function i(e){return r(e,0)}function r(e,t){if(t<0)return;let n=0;for(let l of e){if(n===t)return l;n++}}function o(e){let t;for(let n of e)t=n;return t}function s(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let l=[...u(e,t),t],i=[...u(e,n),n],r=l.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return -1!==r?(t=l[r],n=i[r],t.index-n.index):l.findIndex(e=>e===n)>=0?1:(i.findIndex(e=>e===t),-1)}function u(e,t){let n=[],l=t;for(;(null==l?void 0:l.parentKey)!=null;)(l=e.getItem(l.parentKey))&&n.unshift(l);return n}n.d(t,{Em:function(){return r},_P:function(){return l},eg:function(){return s},l8:function(){return i},s:function(){return o}})},19825:function(e,t,n){n.d(t,{K:function(){return s}});var l=n(67294);class i{build(e,t){return this.context=t,r(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(l.isValidElement(t)&&t.type===l.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if("function"==typeof t){if(!n)throw Error("props.children was a function but props.items is missing");let e=0;for(let l of n)yield*this.getFullNode({value:l,index:e},{renderer:t}),e++}else{let e=[];l.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e)for(let e of this.getFullNode({element:t,index:n},{}))n++,yield e}}getKey(e,t,n,l){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${l}${t.key}`;let i=t.value;if(null!=i){var r;let e=null!==(r=i.key)&&void 0!==r?r:i.id;if(null==e)throw Error("No key found for item");return e}return l?`${l}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,i){var s,u,c,d,a,h,f,p;if(l.isValidElement(e.element)&&e.element.type===l.Fragment){let r=[];l.Children.forEach(e.element.props.children,e=>{r.push(e)});let o=null!==(s=e.index)&&void 0!==s?s:0;for(let e of r)yield*this.getFullNode({element:e,index:o++},t,n,i);return}let y=e.element;if(!y&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=i?i.key:null,yield n;return}y=t.renderer(e.value)}if(l.isValidElement(y)){let l=y.type;if("function"!=typeof l&&"function"!=typeof l.getCollectionNode){let e=y.type;throw Error(`Unknown element <${e}> in collection.`)}let r=l.getCollectionNode(y.props,this.context),s=null!==(u=e.index)&&void 0!==u?u:0,f=r.next();for(;!f.done&&f.value;){let l=f.value;e.index=s;let u=null!==(c=l.key)&&void 0!==c?c:null;null==u&&(u=l.element?null:this.getKey(y,e,t,n));let p=[...this.getFullNode({...l,key:u,index:s,wrapper:function(e,t){return e&&t?n=>e(t(n)):e||t||void 0}(e.wrapper,l.wrapper)},this.getChildState(t,l),n?`${n}${y.key}`:y.key,i)];for(let t of p){if(t.value=null!==(a=null!==(d=l.value)&&void 0!==d?d:e.value)&&void 0!==a?a:null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${o(t.type)}> in <${o(null!==(h=null==i?void 0:i.type)&&void 0!==h?h:"unknown parent type")}>. Only <${o(e.type)}> is supported.`);s++,yield t}f=r.next(p)}return}if(null==e.key||null==e.type)return;let v=this,g={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:null!==(f=e.value)&&void 0!==f?f:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:null!==(p=e.textValue)&&void 0!==p?p:"","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 n=0;for(let l of e.childNodes())for(let e of(null!=l.key&&(l.key=`${g.key}${l.key}`),v.getFullNode({...l,index:n},v.getChildState(t,l),g.key,g)))n++,yield e})};yield g}constructor(){this.cache=new WeakMap}}function r(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let l of(n||(n=e()),n))t.push(l),yield l}}}function o(e){return e[0].toUpperCase()+e.slice(1)}function s(e,t,n){let r=(0,l.useMemo)(()=>new i,[]),{children:o,items:s,collection:u}=e;return(0,l.useMemo)(()=>u||t(r.build({children:o,items:s},n)),[r,o,s,u,n,t])}},71823:function(e,t,n){n.d(t,{Y:function(){return l}});class l extends Set{constructor(e,t,n){super(e),e instanceof l?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=n?n:e.currentKey):(this.anchorKey=null!=t?t:null,this.currentKey=null!=n?n:null)}}},44212:function(e,t,n){n.d(t,{Z:function(){return r}});var l=n(71823),i=n(66685);class r{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(){var e;let t=null;for(let e of this.state.selectedKeys){let n=this.collection.getItem(e);(!t||n&&0>(0,i.eg)(this.collection,n,t))&&(t=n)}return null!==(e=null==t?void 0:t.key)&&void 0!==e?e:null}get lastSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let n=this.collection.getItem(e);(!t||n&&(0,i.eg)(this.collection,n,t)>0)&&(t=n)}return null!==(e=null==t?void 0:t.key)&&void 0!==e?e: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){this.replaceSelection(e);return}let n=this.getKey(e);if(null!=n){if("all"===this.state.selectedKeys)t=new l.Y([n],n,n);else{var i,r;let e=this.state.selectedKeys,o=null!==(i=e.anchorKey)&&void 0!==i?i:n;for(let i of(t=new l.Y(e,o,n),this.getKeyRange(o,null!==(r=e.currentKey)&&void 0!==r?r:n)))t.delete(i);for(let e of this.getKeyRange(n,o))this.canSelectItem(e)&&t.add(e)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let n=this.collection.getItem(e),l=this.collection.getItem(t);return n&&l?0>=(0,i.eg)(this.collection,n,l)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if(null===(n=this.layoutDelegate)||void 0===n?void 0:n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let l=[],i=e;for(;null!=i;){let e=this.collection.getItem(i);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&l.push(i),i===t)return l;i=this.collection.getKeyAfter(i)}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)){this.replaceSelection(e);return}let t=this.getKey(e);if(null==t)return;let n=new l.Y("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),this.disallowEmptySelection&&0===n.size||this.state.setSelectedKeys(n)}replaceSelection(e){if("none"===this.selectionMode)return;let t=this.getKey(e);if(null==t)return;let n=this.canSelectItem(t)?new l.Y([t],t,t):new l.Y;this.state.setSelectedKeys(n)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new l.Y;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=[],t=n=>{for(;null!=n;){if(this.canSelectItem(n)){var l,r;let o=this.collection.getItem(n);(null==o?void 0:o.type)==="item"&&e.push(n),(null==o?void 0:o.hasChildNodes)&&(this.allowsCellSelection||"item"!==o.type)&&t(null!==(r=null===(l=(0,i.l8)((0,i._P)(o,this.collection)))||void 0===l?void 0:l.key)&&void 0!==r?r:null)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}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 l.Y)}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){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!!n&&(null==n||null===(t=n.props)||void 0===t||!t.isDisabled)&&("cell"!==n.type||!!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n?void 0:null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n?void 0:null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}withCollection(e){return new r(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,n){var l;this.collection=e,this.state=t,this.allowsCellSelection=null!==(l=null==n?void 0:n.allowsCellSelection)&&void 0!==l&&l,this._isSelectAll=null,this.layoutDelegate=(null==n?void 0:n.layoutDelegate)||null}}},54155:function(e,t,n){n.d(t,{q:function(){return o}});var l=n(71823),i=n(99373),r=n(67294);function o(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:o,selectionBehavior:u="toggle",disabledBehavior:c="all"}=e,d=(0,r.useRef)(!1),[,a]=(0,r.useState)(!1),h=(0,r.useRef)(null),f=(0,r.useRef)(null),[,p]=(0,r.useState)(null),y=(0,r.useMemo)(()=>s(e.selectedKeys),[e.selectedKeys]),v=(0,r.useMemo)(()=>s(e.defaultSelectedKeys,new l.Y),[e.defaultSelectedKeys]),[g,m]=(0,i.z)(y,v,e.onSelectionChange),b=(0,r.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[K,S]=(0,r.useState)(u);"replace"===u&&"toggle"===K&&"object"==typeof g&&0===g.size&&S("replace");let C=(0,r.useRef)(u);return(0,r.useEffect)(()=>{u!==C.current&&(S(u),C.current=u)},[u]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:K,setSelectionBehavior:S,get isFocused(){return d.current},setFocused(e){d.current=e,a(e)},get focusedKey(){return h.current},get childFocusStrategy(){return f.current},setFocusedKey(e,t="first"){h.current=e,f.current=t,p(e)},selectedKeys:g,setSelectedKeys(e){(o||!function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,g))&&m(e)},disabledKeys:b,disabledBehavior:c}}function s(e,t){return e?"all"===e?"all":new l.Y(e):t}},28405:function(e,t,n){n.d(t,{Qk:function(){return u},Uu:function(){return o},od:function(){return r},pd:function(){return c}});var l=n(79703),i=n(67294);let r=(0,i.createContext)(null),o={CollectionRoot:({collection:e,renderDropIndicator:t})=>s(e,null,t),CollectionBranch:({collection:e,parent:t,renderDropIndicator:n})=>s(e,t,n)};function s(e,t,n){return(0,l.H)({items:t?e.getChildren(t.key):e,depen
1dencies:[n],children(t){let l=t.render(t);return n&&"item"===t.type?i.createElement(i.Fragment,null,n({type:"item",key:t.key,dropPosition:"before"}),l,function(e,t,n){let l=t.key,r=e.getKeyAfter(l),o=null!=r?e.getItem(r):null;for(;null!=o&&"item"!==o.type;)o=null!=(r=e.getKeyAfter(o.key))?e.getItem(r):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 u=[];if(null==s){let l=t;for(;l&&(!o||l.parentKey!==o.parentKey&&o.level<l.level);){let t=n({type:"item",key:l.key,dropPosition:"after"});(0,i.isValidElement)(t)&&u.push((0,i.cloneElement)(t,{key:`${l.key}-after`})),l=null!=l.parentKey?e.getItem(l.parentKey):null}}return u}(e,t,n)):l}})}let u=(0,i.createContext)(o);function c(e){return(0,i.useMemo)(()=>null!=e?new Set([e]):null,[e])}},22436:function(e,t,n){n.d(t,{p:function(){return l}});let l=(0,n(67294).createContext)({isSelected:!1})},67031:function(e,t,n){n.d(t,{y:function(){return r}}),n(73935);var l=n(67294);let i=(0,l.createContext)(null);function r(e){let t=(0,l.useRef)({});return l.createElement(i.Provider,{value:t},e.children)}}}]);

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.