!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9d578bb1-9538-43e9-a31c-49af9b37c357",e._sentryDebugIdIdentifier="sentry-dbid-9d578bb1-9538-43e9-a31c-49af9b37c357")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3304],{63083:function(e,t,n){var l=n(21295),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=l.useState,o=l.useEffect,s=l.useLayoutEffect,u=l.useDebugValue;function a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),l=i({inst:{value:n,getSnapshot:t}}),r=l[0].inst,c=l[1];return s(function(){r.value=n,r.getSnapshot=t,a(r)&&c({inst:r})},[e,n,t]),o(function(){return a(r)&&c({inst:r}),e(function(){a(r)&&c({inst:r})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==l.useSyncExternalStore?l.useSyncExternalStore:c},40910:function(e,t,n){e.exports=n(63083)},60955:function(e,t,n){n.d(t,{FE:function(){return D},yF:function(){return v},IW:function(){return S},G5:function(){return w}});class l{get childNodes(){throw Error("childNodes is not supported")}clone(){let e=new l(this.type,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}constructor(e,t){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.type=e,this.key=t}}class r{get size(){return this.keyMap.size}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}addNode(e){if(this.frozen)throw Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw Error("Cannot remove a node to a frozen collection");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}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}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}appendChild(e){this.ownerDocument.startTransaction(),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),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,t){if(null==t)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode;let n=t;for(;n;)n.index++,n=n.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let t=e.nextSibling;for(;t;)t.index--,t=t.nextSibling;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.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class o extends i{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof o?this.parentNode.level+("item"===this.node.type?1:0):0}updateNode(){var e,t,n,l,r,i,s,u;let a=this.ownerDocument.getMutableNode(this);a.index=this.index,a.level=this.level,a.parentKey=this.parentNode instanceof o?this.parentNode.node.key:null,a.prevKey=null!==(r=null===(e=this.previousSibling)||void 0===e?void 0:e.node.key)&&void 0!==r?r:null,a.nextKey=null!==(i=null===(t=this.nextSibling)||void 0===t?void 0:t.node.key)&&void 0!==i?i:null,a.hasChildNodes=!!this.firstChild,a.firstChildKey=null!==(s=null===(n=this.firstChild)||void 0===n?void 0:n.node.key)&&void 0!==s?s:null,a.lastChildKey=null!==(u=null===(l=this.lastChild)||void 0===l?void 0:l.node.key)&&void 0!==u?u:null}setProps(e,t,n,l){let r=this.ownerDocument.getMutableNode(this),{value:i,textValue:o,id:s,...u}=e;if(u.ref=t,r.props=u,r.rendered=n,r.render=l,r.value=i,r.textValue=o||("string"==typeof u.children?u.children:"")||e["aria-label"]||"",null!=s&&s!==r.key){if(this.hasSetProps)throw Error("Cannot change the id of an item");r.key=s}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new l(e,`react-aria-${++t.nodeId}`),this.ownerDocument.startTransaction()}}class s extends i{get isConnected(){return this.isMounted}createElement(e){return new o(e,this)}getMutableNode(e){let t=e.node;return this.mutatedNodes.has(e)||(t=e.node.clone(),this.mutatedNodes.add(e),e.node=t),this.markDirty(e),t}getMutableCollection(){return this.isSSR||this.collectionMutated||(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let n of(t.addNode(e.node),e))this.addNode(n);this.markDirty(e)}removeNode(e){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0||this.updateCollection(),this.collection}updateCollection(){for(let e of this.dirtyNodes)e instanceof o&&e.isConnected&&e.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,t,n,l;let r=this.getMutableCollection();for(let e of this.mutatedNodes)e.isConnected&&r.addNode(e.node);r.commit(null!==(n=null===(e=this.firstChild)||void 0===e?void 0:e.node.key)&&void 0!==n?n:null,null!==(l=null===(t=this.lastChild)||void 0===t?void 0:t.node.key)&&void 0!==l?l:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(0!==this.dirtyNodes.size&&!(this.transactionCount>0))for(let e of this.subscriptions)e()}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.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}var u=n(93788),a=n(95939),c=n(69062),d=n(21295),f=n(92077),h=n(12209),p=n(40910);let g=(0,d.createContext)(!1),y=(0,d.createContext)(null);function v(e){if((0,d.useContext)(y))return e.content;let{collection:t,document:n}=function(e){let[t]=(0,d.useState)(()=>new s((null==e?void 0:e())||new r)),n=b((0,d.useCallback)(e=>t.subscribe(e),[t]),(0,d.useCallback)(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),(0,d.useCallback)(()=>(t.isSSR=!0,t.getCollection()),[t]));return(0,h.b)(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:n,document:t}}(e.createCollection);return d.createElement(d.Fragment,null,d.createElement(a._G,null,d.createElement(y.Provider,{value:n},e.content)),d.createElement(m,{render:e.children,collection:t}))}function m({collection:e,render:t}){return t(e)}let b="function"==typeof d.useSyncExternalStore?d.useSyncExternalStore:function(e,t,n){let l=(0,f.Av)(),r=(0,d.useRef)(l);r.current=l;let i=(0,d.useCallback)(()=>r.current?n():t(),[t,n]);return(0,p.useSyncExternalStore)(e,i)},E=(0,d.createContext)(null);function K(e,t,n,l,r,i){let o=(0,d.useCallback)(e=>{null==e||e.setProps(t,n,l,i)},[t,n,l,i]),s=(0,d.useContext)(E);if(s){let o=s.ownerDocument.nodesByProps.get(t);return o||((o=s.ownerDocument.createElement(e)).setProps(t,n,l,i),s.appendChild(o),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,o)),r?d.createElement(E.Provider,{value:o},r):null}return d.createElement(e,{ref:o},r)}function w(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),l=(0,d.forwardRef)((l,r)=>{if(!(0,d.useContext)(g)){if(t.length>=3)throw Error(t.name+" cannot be rendered outside a collection.");return t(l,r)}return K(e,l,r,"children"in l?l.children:null,null,e=>d.createElement(n,{node:e}))});return l.displayName=t.name,l}function S(e,t,n=C){let l=({node:e})=>t(e.props,e.props.ref,e),r=(0,d.forwardRef)((t,r)=>{var i;let o=n(t);return null!==(i=K(e,t,r,null,o,e=>d.createElement(l,{node:e})))&&void 0!==i?i:d.createElement(d.Fragment,null)});return r.displayName=t.name,r}function C(e){return(0,u.H)({...e,addIdAndValue:!0})}let x=(0,d.createContext)(null);function D(e){let t=(0,d.useContext)(x),n=((null==t?void 0:t.dependencies)||[]).concat(e.dependencies),l=e.idScope||(null==t?void 0:t.idScope),r=C({...e,idScope:l,dependencies:n});return(0,d.useContext)(y)&&(r=d.createElement(P,null,r)),t=(0,d.useMemo)(()=>({dependencies:n,idScope:l}),[l,...n]),d.createElement(x.Provider,{value:t},r)}function P({children:e}){let t=(0,d.useContext)(y),n=(0,d.useMemo)(()=>d.createElement(y.Provider,{value:null},d.createElement(g.Provider,{value:!0},e)),[e]);return(0,f.Av)()?d.createElement(E.Provider,{value:t},n):(0,c.createPortal)(n,t)}},93788:function(e,t,n){n.d(t,{H:function(){return r}});var l=n(21295);function r(e){let{children:t,items:n,idScope:r,addIdAndValue:i,dependencies:o=[]}=e,s=(0,l.useMemo)(()=>new WeakMap,o);return(0,l.useMemo)(()=>{if(n&&"function"==typeof t){let u=[];for(let a of n){let n=s.get(a);if(!n){var e,o;let u=null!==(o=null!==(e=(n=t(a)).props.id)&&void 0!==e?e:a.key)&&void 0!==o?o:a.id;if(null==u)throw Error("Could not determine key for item");r&&(u=r+":"+u),n=(0,l.cloneElement)(n,i?{key:u,id:u,value:a}:{key:u}),s.set(a,n)}u.push(n)}return u}if("function"!=typeof t)return t},[t,n,s,r,i])}},89834:function(e,t,n){n.d(t,{MT:function(){return f},QL:function(){return P},cW:function(){return E}});var l=n(56750),r=n(19160),i=n(68866),o=n(12209),s=n(30634),u=n(21295);let a=u.createContext(null),c="react-aria-focus-scope-restore",d=null;function f(e){let t,n,{children:l,contain:f,restoreFocus:h,autoFocus:p}=e,g=(0,u.useRef)(null),E=(0,u.useRef)(null),k=(0,u.useRef)([]),{parentNode:R}=(0,u.useContext)(a)||{},T=(0,u.useMemo)(()=>new N({scopeRef:k}),[k]);(0,o.b)(()=>{let e=R||M.root;if(M.getTreeNode(e.scopeRef)&&d&&!K(d,e.scopeRef)){let t=M.getTreeNode(d);t&&(e=t)}e.addChild(T),M.addNode(T)},[T,R]),(0,o.b)(()=>{let e=M.getTreeNode(k);e&&(e.contain=!!f)},[f]),(0,o.b)(()=>{var e;let t=null===(e=g.current)||void 0===e?void 0:e.nextSibling,n=[],l=e=>e.stopPropagation();for(;t&&t!==E.current;)n.push(t),t.addEventListener(c,l),t=t.nextSibling;return k.current=n,()=>{for(let e of n)e.removeEventListener(c,l)}},[l]),(0,o.b)(()=>{if(h||f)return;let e=k.current,t=(0,r.r)(e?e[0]:void 0),n=e=>{let t=e.target;m(t,k.current)?d=k:b(t)||(d=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))}},[k,h,f]),t=(0,u.useRef)(void 0),n=(0,u.useRef)(void 0),(0,o.b)(()=>{let e=k.current;if(!f){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let l=(0,r.r)(e?e[0]:void 0),o=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!v(k)||e.isComposing)return;let t=l.activeElement,n=k.current;if(!n||!m(t,n))return;let r=P(y(n),{tabbable:!0},n);if(!t)return;r.currentNode=t;let i=e.shiftKey?r.previousNode():r.nextNode();i||(r.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,i=e.shiftKey?r.previousNode():r.nextNode()),e.preventDefault(),i&&w(i,!0)},u=e=>{(!d||K(d,k))&&m(e.target,k.current)?(d=k,t.current=e.target):v(k)&&!b(e.target,k)?t.current?t.current.focus():d&&d.current&&C(d.current):v(k)&&(t.current=e.target)},a=e=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let n=(0,i.Jz)();if(!(("virtual"===n||null===n)&&(0,s.Dt)()&&(0,s.i7)())&&l.activeElement&&v(k)&&!b(l.activeElement,k)){if(d=k,l.body.contains(e.target)){var r;t.current=e.target,null===(r=t.current)||void 0===r||r.focus()}else d.current&&C(d.current)}})};return l.addEventListener("keydown",o,!1),l.addEventListener("focusin",u,!1),null==e||e.forEach(e=>e.addEventListener("focusin",u,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",a,!1)),()=>{l.removeEventListener("keydown",o,!1),l.removeEventListener("focusin",u,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",u,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",a,!1))}},[k,f]),(0,o.b)(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n]),function(e,t,n){let l=(0,u.useRef)("undefined"!=typeof document?(0,r.r)(e.current?e.current[0]:void 0).activeElement:null);(0,o.b)(()=>{let l=e.current,i=(0,r.r)(l?l[0]:void 0);if(!t||n)return;let o=()=>{(!d||K(d,e))&&m(i.activeElement,e.current)&&(d=e)};return i.addEventListener("focusin",o,!1),null==l||l.forEach(e=>e.addEventListener("focusin",o,!1)),()=>{i.removeEventListener("focusin",o,!1),null==l||l.forEach(e=>e.removeEventListener("focusin",o,!1))}},[e,n]),(0,o.b)(()=>{let l=(0,r.r)(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!v(e)||t.isComposing)return;let n=l.activeElement;if(!b(n,e)||!x(e))return;let r=M.getTreeNode(e);if(!r)return;let i=r.nodeToRestore,o=P(l.body,{tabbable:!0});o.currentNode=n;let s=t.shiftKey?o.previousNode():o.nextNode();if(i&&l.body.contains(i)&&i!==l.body||(i=void 0,r.nodeToRestore=void 0),(!s||!b(s,e))&&i){o.currentNode=i;do s=t.shiftKey?o.previousNode():o.nextNode();while(b(s,e));(t.preventDefault(),t.stopPropagation(),s)?w(s,!0):b(i)?w(i,!0):n.blur()}};return n||l.addEventListener("keydown",i,!0),()=>{n||l.removeEventListener("keydown",i,!0)}},[e,t,n]),(0,o.b)(()=>{var n;let i=(0,r.r)(e.current?e.current[0]:void 0);if(!t)return;let o=M.getTreeNode(e);if(o)return o.nodeToRestore=null!==(n=l.current)&&void 0!==n?n:void 0,()=>{let n=M.getTreeNode(e);if(!n)return;let l=n.nodeToRestore;if(t&&l&&(i.activeElement&&b(i.activeElement,e)||i.activeElement===i.body&&x(e))){let t=M.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){D(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&M.getTreeNode(n.scopeRef)){D(S(n.scopeRef.current,!0));return}n=n.parent}}})}}},[e,t])}(k,h,f),function(e,t){let n=u.useRef(t);(0,u.useEffect)(()=>{n.current&&(d=e,!m((0,r.r)(e.current?e.current[0]:void 0).activeElement,d.current)&&e.current&&C(e.current)),n.current=!1},[e])}(k,p),(0,u.useEffect)(()=>{let e=(0,r.r)(k.current?k.current[0]:void 0).activeElement,t=null;if(m(e,k.current)){for(let n of M.traverse())n.scopeRef&&m(e,n.scopeRef.current)&&(t=n);t===M.getTreeNode(k)&&(d=t.scopeRef)}},[k]),(0,o.b)(()=>()=>{var e,t,n;let l=null!==(n=null===(t=M.getTreeNode(k))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;(k===d||K(k,d))&&(!l||M.getTreeNode(l))&&(d=l),M.removeTreeNode(k)},[k]);let F=(0,u.useMemo)(()=>({focusNext(e={}){let t=k.current,{from:n,tabbable:l,wrap:i,accept:o}=e,s=n||(0,r.r)(t[0]).activeElement,u=t[0].previousElementSibling,a=P(y(t),{tabbable:l,accept:o},t);a.currentNode=m(s,t)?s:u;let c=a.nextNode();return!c&&i&&(a.currentNode=u,c=a.nextNode()),c&&w(c,!0),c},focusPrevious(e={}){let t=k.current,{from:n,tabbable:l,wrap:i,accept:o}=e,s=n||(0,r.r)(t[0]).activeElement,u=t[t.length-1].nextElementSibling,a=P(y(t),{tabbable:l,accept:o},t);a.currentNode=m(s,t)?s:u;let c=a.previousNode();return!c&&i&&(a.currentNode=u,c=a.previousNode()),c&&w(c,!0),c},focusFirst(e={}){let t=k.current,{tabbable:n,accept:l}=e,r=P(y(t),{tabbable:n,accept:l},t);r.currentNode=t[0].previousElementSibling;let i=r.nextNode();return i&&w(i,!0),i},focusLast(e={}){let t=k.current,{tabbable:n,accept:l}=e,r=P(y(t),{tabbable:n,accept:l},t);r.currentNode=t[t.length-1].nextElementSibling;let i=r.previousNode();return i&&w(i,!0),i}}),[]),A=(0,u.useMemo)(()=>({focusManager:F,parentNode:T}),[T,F]);return u.createElement(a.Provider,{value:A},u.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:g}),l,u.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:E}))}let h=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],p=h.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";h.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let g=h.join(':not([hidden]):not([tabindex="-1"]),');function y(e){return e[0].parentElement}function v(e){let t=M.getTreeNode(d);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function m(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function b(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of M.traverse(M.getTreeNode(t)))if(n&&m(e,n.current))return!0;return!1}function E(e){return b(e,d)}function K(e,t){var n;let l=null===(n=M.getTreeNode(t))||void 0===n?void 0:n.parent;for(;l;){if(l.scopeRef===e)return!0;l=l.parent}return!1}function w(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,l.e)(e)}catch{}}function S(e,t=!0){let n=e[0].previousElementSibling,l=y(e),r=P(l,{tabbable:t},e);r.currentNode=n;let i=r.nextNode();return t&&!i&&((r=P(l=y(e),{tabbable:!1},e)).currentNode=n,i=r.nextNode()),i}function C(e,t=!0){w(S(e,t))}function x(e){let t=M.getTreeNode(d);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function D(e){e.dispatchEvent(new CustomEvent(c,{bubbles:!0,cancelable:!0}))&&w(e)}function P(e,t,n){let l=(null==t?void 0:t.tabbable)?g:p,i=(0,r.r)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==t?void 0:null===(i=t.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:e.matches(l)&&function e(t,n){return"#comment"!==t.nodeName&&function(e){let t=(0,r.k)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:l}=e.style,i="none"!==n&&"hidden"!==l&&"collapse"!==l;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:l}=t(e);i="none"!==n&&"hidden"!==l&&"collapse"!==l}return i}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!n||"SUMMARY"===n.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!n||m(e,n))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(i.currentNode=t.from),i}class k{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 r=new N({scopeRef:e});l.addChild(r),r.parent=l,this.fastMap.set(e,r),n&&(r.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&&m(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let l=t.children;n&&(n.removeChild(t),l.size>0&&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 k;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 N({scopeRef:null}),this.fastMap.set(null,this.root)}}class N{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 M=new k},3615:function(e,t,n){n.d(t,{X:function(){return i}});var l=n(59719);let r=new Map;function i(e){let{locale:t}=(0,l.j)(),n=t+(e?Object.entries(e).sort((e,t)=>e[0]e)),this.defaultLocale=t}}let u=new Map,a=new Map;class c{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let l=t["="+e];if(l)return"function"==typeof l?l():l;let r=this.locale+":"+n,i=u.get(r);return i||(i=new Intl.PluralRules(this.locale,{type:n}),u.set(r,i)),"function"==typeof(l=t[i.select(e)]||t.other)?l():l}number(e){let t=a.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),a.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}var d=n(21295);let f=new WeakMap;function h(e,t){let n,{locale:l}=(0,r.j)(),i=t&&s.getGlobalDictionaryForPackage(t)||((n=f.get(e))||(n=new s(e),f.set(e,n)),n);return(0,d.useMemo)(()=>new c(l,i),[l,i])}},65237:function(e,t,n){n.d(t,{N:function(){return u},m:function(){return a}});var l=n(23478),r=n(77465),i=n(8920),o=n(6496),s=n(21295);let u=s.forwardRef(({children:e,...t},n)=>{let u=(0,s.useRef)(!1),a=(0,s.useContext)(l.O);n=(0,r.B)(n||(null==a?void 0:a.ref));let c=(0,i.d)(a||{},{...t,ref:n,register(){u.current=!0,a&&a.register()}});return(0,o.l)(a,n),(0,s.useEffect)(()=>{u.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with component."),u.current=!0)},[]),s.createElement(l.O.Provider,{value:c},e)});function a({children:e}){let t=(0,s.useMemo)(()=>({register:()=>{}}),[]);return s.createElement(l.O.Provider,{value:t},e)}},62359:function(e,t,n){n.d(t,{T:function(){return c}});var l=n(19053),r=n(13431),i=n(12209),o=n(21295);let s=0,u=new Map;var a=n(8920);function c(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:c,onLongPress:d,threshold:f=500,accessibilityDescription:h}=e,p=(0,o.useRef)(void 0),{addGlobalListener:g,removeGlobalListener:y}=(0,r.x)(),{pressProps:v}=(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})),d&&d({...e,type:"longpress"}),p.current=void 0},f),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};g(e.target,"contextmenu",t,{once:!0}),g(window,"pointerup",()=>{setTimeout(()=>{y(e.target,"contextmenu",t)},30)},{once:!0})}},onPressEnd(e){p.current&&clearTimeout(p.current),c&&("mouse"===e.pointerType||"touch"===e.pointerType)&&c({...e,type:"longpressend"})}}),m=function(e){let[t,n]=(0,o.useState)();return(0,i.b)(()=>{if(!e)return;let t=u.get(e);if(t)n(t.element.id);else{let l=`react-aria-description-${s++}`;n(l);let r=document.createElement("div");r.id=l,r.style.display="none",r.textContent=e,document.body.appendChild(r),t={refCount:0,element:r},u.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),u.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}(d&&!t?h:void 0);return{longPressProps:(0,a.d)(v,m)}}},46524:function(e,t,n){n.d(t,{u:function(){return u}});var l={};l={"ar-AE":{longPressMessage:`\u{627}\u{636}\u{63A}\u{637} \u{645}\u{637}\u{648}\u{644}\u{627}\u{64B} \u{623}\u{648} \u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} Alt + \u{627}\u{644}\u{633}\u{647}\u{645} \u{644}\u{623}\u{633}\u{641}\u{644} \u{644}\u{641}\u{62A}\u{62D} \u{627}\u{644}\u{642}\u{627}\u{626}\u{645}\u{629}`},"bg-BG":{longPressMessage:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} \u{43F}\u{440}\u{43E}\u{434}\u{44A}\u{43B}\u{436}\u{438}\u{442}\u{435}\u{43B}\u{43D}\u{43E} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Alt+ \u{441}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{43D}\u{430}\u{434}\u{43E}\u{43B}\u{443}, \u{437}\u{430} \u{434}\u{430} \u{43E}\u{442}\u{432}\u{43E}\u{440}\u{438}\u{442}\u{435} \u{43C}\u{435}\u{43D}\u{44E}\u{442}\u{43E}`},"cs-CZ":{longPressMessage:`Dlouh\xfdm stiskem nebo stisknut\xedm kl\xe1ves Alt + \u{161}ipka dol\u{16F} otev\u{159}ete nab\xeddku`},"da-DK":{longPressMessage:`Langt tryk eller tryk p\xe5 Alt + pil ned for at \xe5bne menuen`},"de-DE":{longPressMessage:`Dr\xfccken Sie lange oder dr\xfccken Sie Alt + Nach-unten, um das Men\xfc zu \xf6ffnen`},"el-GR":{longPressMessage:`\u{3A0}\u{3B9}\u{3AD}\u{3C3}\u{3C4}\u{3B5} \u{3C0}\u{3B1}\u{3C1}\u{3B1}\u{3C4}\u{3B5}\u{3C4}\u{3B1}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3AE} \u{3C0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Alt + \u{3BA}\u{3AC}\u{3C4}\u{3C9} \u{3B2}\u{3AD}\u{3BB}\u{3BF}\u{3C2} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3B1}\u{3BD}\u{3BF}\u{3AF}\u{3BE}\u{3B5}\u{3C4}\u{3B5} \u{3C4}\u{3BF} \u{3BC}\u{3B5}\u{3BD}\u{3BF}\u{3CD}`},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xfa`},"et-EE":{longPressMessage:`Men\xfc\xfc avamiseks vajutage pikalt v\xf5i vajutage klahve Alt + allanool`},"fi-FI":{longPressMessage:`Avaa valikko painamalla pohjassa tai n\xe4pp\xe4inyhdistelm\xe4ll\xe4 Alt + Alanuoli`},"fr-FR":{longPressMessage:`Appuyez de mani\xe8re prolong\xe9e ou appuyez sur Alt\xa0+\xa0Fl\xe8che vers le bas pour ouvrir le menu.`},"he-IL":{longPressMessage:`\u{5DC}\u{5D7}\u{5E5} \u{5DC}\u{5D7}\u{5D9}\u{5E6}\u{5D4} \u{5D0}\u{5E8}\u{5D5}\u{5DB}\u{5D4} \u{5D0}\u{5D5} \u{5D4}\u{5E7}\u{5E9} Alt + ArrowDown \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5E4}\u{5EA}\u{5D5}\u{5D7} \u{5D0}\u{5EA} \u{5D4}\u{5EA}\u{5E4}\u{5E8}\u{5D9}\u{5D8}`},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xedl gombot a men\xfc megnyit\xe1s\xe1hoz`},"it-IT":{longPressMessage:`Premere a lungo o premere Alt + Freccia gi\xf9 per aprire il menu`},"ja-JP":{longPressMessage:`\u{9577}\u{62BC}\u{3057}\u{307E}\u{305F}\u{306F} Alt+\u{4E0B}\u{77E2}\u{5370}\u{30AD}\u{30FC}\u{3067}\u{30E1}\u{30CB}\u{30E5}\u{30FC}\u{3092}\u{958B}\u{304F}`},"ko-KR":{longPressMessage:`\u{AE38}\u{AC8C} \u{B204}\u{B974}\u{AC70}\u{B098} Alt + \u{C544}\u{B798}\u{CABD} \u{D654}\u{C0B4}\u{D45C}\u{B97C} \u{B20C}\u{B7EC} \u{BA54}\u{B274} \u{C5F4}\u{AE30}`},"lt-LT":{longPressMessage:`Nor\u{117}dami atidaryti meniu, nuspaud\u{119} palaikykite arba paspauskite \u{201E}Alt + ArrowDown\u{201C}.`},"lv-LV":{longPressMessage:`Lai atv\u{113}rtu izv\u{113}lni, turiet nospiestu vai nospiediet tausti\u{146}u kombin\u{101}ciju Alt + lejupv\u{113}rst\u{101} bulti\u{146}a`},"nb-NO":{longPressMessage:`Langt trykk eller trykk Alt + PilNed for \xe5 \xe5pne menyen`},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:`Naci\u{15B}nij i przytrzymaj lub naci\u{15B}nij klawisze Alt + Strza\u{142}ka w d\xf3\u{142}, aby otworzy\u{107} menu`},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:`Ap\u{103}sa\u{21B}i lung sau ap\u{103}sa\u{21B}i pe Alt + s\u{103}geat\u{103} \xeen jos pentru a deschide meniul`},"ru-RU":{longPressMessage:`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} \u{438} \u{443}\u{434}\u{435}\u{440}\u{436}\u{438}\u{432}\u{430}\u{439}\u{442}\u{435} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} Alt + \u{421}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{447}\u{442}\u{43E}\u{431}\u{44B} \u{43E}\u{442}\u{43A}\u{440}\u{44B}\u{442}\u{44C} \u{43C}\u{435}\u{43D}\u{44E}`},"sk-SK":{longPressMessage:`Ponuku otvor\xedte dlh\xfdm stla\u{10D}en\xedm alebo stla\u{10D}en\xedm kl\xe1vesu Alt + kl\xe1vesu so \u{161}\xedpkou nadol`},"sl-SI":{longPressMessage:`Za odprtje menija pritisnite in dr\u{17E}ite gumb ali pritisnite Alt+pu\u{161}\u{10D}ica navzdol`},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:`H\xe5ll nedtryckt eller tryck p\xe5 Alt + pil ned\xe5t f\xf6r att \xf6ppna menyn`},"tr-TR":{longPressMessage:`Men\xfcy\xfc a\xe7mak i\xe7in uzun bas\u{131}n veya Alt + A\u{15F}a\u{11F}\u{131} Ok tu\u{15F}una bas\u{131}n`},"uk-UA":{longPressMessage:`\u{414}\u{43E}\u{432}\u{433}\u{43E} \u{430}\u{431}\u{43E} \u{437}\u{432}\u{438}\u{447}\u{430}\u{439}\u{43D}\u{43E} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} \u{43A}\u{43E}\u{43C}\u{431}\u{456}\u{43D}\u{430}\u{446}\u{456}\u{44E} \u{43A}\u{43B}\u{430}\u{432}\u{456}\u{448} Alt \u{456} \u{441}\u{442}\u{440}\u{456}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{449}\u{43E}\u{431} \u{432}\u{456}\u{434}\u{43A}\u{440}\u{438}\u{442}\u{438} \u{43C}\u{435}\u{43D}\u{44E}`},"zh-CN":{longPressMessage:`\u{957F}\u{6309}\u{6216}\u{6309} Alt + \u{5411}\u{4E0B}\u{65B9}\u{5411}\u{952E}\u{4EE5}\u{6253}\u{5F00}\u{83DC}\u{5355}`},"zh-TW":{longPressMessage:`\u{9577}\u{6309}\u{6216}\u{6309} Alt+\u{5411}\u{4E0B}\u{9375}\u{4EE5}\u{958B}\u{555F}\u{529F}\u{80FD}\u{8868}`}};var r=n(17680),i=n(6684),o=n(62359),s=n(73304);function u(e,t,n){var u;let{type:a="menu",isDisabled:c,trigger:d="press"}=e,f=(0,r.Me)(),{triggerProps:h,overlayProps:p}=(0,s.I)({type:a},t,n),g=(0,i.q)((u=l)&&u.__esModule?u.default:u,"@react-aria/menu"),{longPressProps:y}=(0,o.T)({isDisabled:c||"longPress"!==d,accessibilityDescription:g.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}});return delete h.onPress,{menuTriggerProps:{...h,..."press"===d?{onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||c||t.open("virtual"===e.pointerType?"first":null)},onPress(e){"touch"!==e.pointerType||c||t.toggle()}}:y,id:f,onKeyDown:e=>{if(!c&&("longPress"!==d||e.altKey)&&n&&n.current)switch(e.key){case"Enter":case" ":if("longPress"===d)return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...p,"aria-labelledby":f,autoFocus:t.focusStrategy||!0,onClose:t.close}}}},85562:function(e,t,n){n.d(t,{U:function(){return u}});var l={};l={"ar-AE":{dismiss:`\u{62A}\u{62C}\u{627}\u{647}\u{644}`},"bg-BG":{dismiss:`\u{41E}\u{442}\u{445}\u{432}\u{44A}\u{440}\u{43B}\u{44F}\u{43D}\u{435}`},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:`Schlie\xdfen`},"el-GR":{dismiss:`\u{391}\u{3C0}\u{3CC}\u{3C1}\u{3C1}\u{3B9}\u{3C8}\u{3B7}`},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:`L\xf5peta`},"fi-FI":{dismiss:`Hylk\xe4\xe4`},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:`\u{5D4}\u{5EA}\u{5E2}\u{5DC}\u{5DD}`},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:`Elutas\xedt\xe1s`},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:`\u{9589}\u{3058}\u{308B}`},"ko-KR":{dismiss:`\u{BB34}\u{C2DC}`},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:`Ner\u{101}d\u{12B}t`},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:`\u{41F}\u{440}\u{43E}\u{43F}\u{443}\u{441}\u{442}\u{438}\u{442}\u{44C}`},"sk-SK":{dismiss:`Zru\u{161}i\u{165}`},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:`\u{421}\u{43A}\u{430}\u{441}\u{443}\u{432}\u{430}\u{442}\u{438}`},"zh-CN":{dismiss:`\u{53D6}\u{6D88}`},"zh-TW":{dismiss:`\u{95DC}\u{9589}`}};var r=n(21295),i=n(95315),o=n(6684),s=n(47385);function u(e){var t;let{onDismiss:n,...u}=e,a=(0,o.q)((t=l)&&t.__esModule?t.default:t,"@react-aria/overlays"),c=(0,i.b)(u,a.format("dismiss"));return r.createElement(s.T,null,r.createElement("button",{...c,tabIndex:-1,onClick:()=>{n&&n()},style:{width:1,height:1}}))}},59107:function(e,t,n){n.d(t,{aV:function(){return d},Bq:function(){return f}});var l=n(21295);let r=(0,l.createContext)({});var i=n(65237),o=n(89834),s=n(69062),u=n(92077),a=n(12209);let c=l.createContext(null);function d(e){var t;let n=(0,u.Av)(),{portalContainer:a=n?null:document.body,isExiting:d}=e,[f,h]=(0,l.useState)(!1),p=(0,l.useMemo)(()=>({contain:f,setContain:h}),[f,h]),{getContainer:g}=null!==(t=(0,l.useContext)(r))&&void 0!==t?t:{};if(!e.portalContainer&&g&&(a=g()),!a)return null;let y=e.children;return e.disableFocusManagement||(y=l.createElement(o.MT,{restoreFocus:!0,contain:f&&!d},y)),y=l.createElement(c.Provider,{value:p},l.createElement(i.m,null,y)),s.createPortal(y,a)}function f(){let e=(0,l.useContext)(c),t=null==e?void 0:e.setContain;(0,a.b)(()=>{null==t||t(!0)},[t])}},88387:function(e,t,n){n.d(t,{R:function(){return i}});let l=new WeakMap,r=[];function i(e,t=document.body){let n=new Set(e),i=new Set,o=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(t);let t=e=>{if(n.has(e)||e.parentElement&&i.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),r=t(e);if(r===NodeFilter.FILTER_ACCEPT&&s(e),r!==NodeFilter.FILTER_REJECT){let e=l.nextNode();for(;null!=e;)s(e),e=l.nextNode()}},s=e=>{var t;let n=null!==(t=l.get(e))&&void 0!==t?t:0;("true"!==e.getAttribute("aria-hidden")||0!==n)&&(0===n&&e.setAttribute("aria-hidden","true"),i.add(e),l.set(e,n+1))};r.length&&r[r.length-1].disconnect(),o(t);let u=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...i].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),i.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?n.add(e):e instanceof Element&&o(e)}});u.observe(t,{childList:!0,subtree:!0});let a={observe(){u.observe(t,{childList:!0,subtree:!0})},disconnect(){u.disconnect()}};return r.push(a),()=>{for(let e of(u.disconnect(),i)){let t=l.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),l.delete(e)):l.set(e,t-1))}a===r[r.length-1]?(r.pop(),r.length&&r[r.length-1].observe()):r.splice(r.indexOf(a),1)}}},3660:function(e,t,n){n.d(t,{O:function(){return i},v:function(){return r}});var l=n(21295);let r=new WeakMap;function i(e){let{triggerRef:t,isOpen:n,onClose:i}=e;(0,l.useEffect)(()=>{if(!n||null===i)return;let e=e=>{let n=e.target;if(!t.current||n instanceof Node&&!n.contains(t.current)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let l=i||r.get(t.current);l&&l()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[n,i,t])}},39512:function(e,t,n){n.d(t,{I:function(){return c}});var l=n(89834),r=n(21295),i=n(16247),o=n(19160);function s(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}var u=n(47641);let a=[];function c(e,t){let{onClose:n,shouldCloseOnBlur:c,isOpen:d,isDismissable:f=!1,isKeyboardDismissDisabled:h=!1,shouldCloseOnInteractOutside:p}=e;(0,r.useEffect)(()=>(d&&a.push(t),()=>{let e=a.indexOf(t);e>=0&&a.splice(e,1)}),[d,t]);let g=()=>{a[a.length-1]===t&&n&&n()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:l,onInteractOutsideStart:u}=e,a=(0,r.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=(0,i.i)(e=>{n&&s(e,t)&&(u&&u(e),a.current.isPointerDown=!0)}),d=(0,i.i)(e=>{n&&n(e)});(0,r.useEffect)(()=>{let e=a.current;if(l)return;let n=t.current,r=(0,o.r)(n);if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&s(n,t)&&d(n),e.isPointerDown=!1};return r.addEventListener("pointerdown",c,!0),r.addEventListener("pointerup",n,!0),()=>{r.removeEventListener("pointerdown",c,!0),r.removeEventListener("pointerup",n,!0)}}{let n=n=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&s(n,t)&&d(n),e.isPointerDown=!1},l=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&s(n,t)&&d(n),e.isPointerDown=!1};return r.addEventListener("mousedown",c,!0),r.addEventListener("mouseup",n,!0),r.addEventListener("touchstart",c,!0),r.addEventListener("touchend",l,!0),()=>{r.removeEventListener("mousedown",c,!0),r.removeEventListener("mouseup",n,!0),r.removeEventListener("touchstart",c,!0),r.removeEventListener("touchend",l,!0)}}},[t,l,c,d])}({ref:t,onInteractOutside:f&&d?e=>{(!p||p(e.target))&&(a[a.length-1]===t&&(e.stopPropagation(),e.preventDefault()),g())}:void 0,onInteractOutsideStart:e=>{(!p||p(e.target))&&a[a.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:y}=(0,u.L)({isDisabled:!c,onBlurWithin:e=>{!(!e.relatedTarget||(0,l.cW)(e.relatedTarget))&&(!p||p(e.relatedTarget))&&(null==n||n())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||h||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),g())},...y},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}},73304:function(e,t,n){n.d(t,{I:function(){return o}});var l=n(3660),r=n(21295),i=n(17680);function o(e,t,n){let o,{type:s}=e,{isOpen:u}=t;(0,r.useEffect)(()=>{n&&n.current&&(0,l.v).set(n.current,t.close)}),"menu"===s?o=!0:"listbox"===s&&(o="listbox");let a=(0,i.Me)();return{triggerProps:{"aria-haspopup":o,"aria-expanded":u,"aria-controls":u?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}},15342:function(e,t,n){let l;n.d(t,{t:function(){return f}});var r=n(12209),i=n(30634),o=n(64092),s=n(17295);function u(e,t){let n=e;for((0,s.a)(n,t)&&(n=n.parentElement);n&&!(0,s.a)(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}let a="undefined"!=typeof document&&window.visualViewport,c=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),d=0;function f(e={}){let{isDisabled:t}=e;(0,r.b)(()=>{if(!t){let e,t,n,r,s;return 1==++d&&(l=(0,i.gn)()?(n=null,r=()=>{if(n)return;let e=window.pageXOffset,t=window.pageYOffset;n=(0,o.t)(p(window,"scroll",()=>{window.scrollTo(0,0)}),h(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),h(document.documentElement,"overflow","hidden"),h(document.body,"marginTop",`-${t}px`),()=>{window.scrollTo(e,t)}),window.scrollTo(0,0)},s=(0,o.t)(p(document,"touchstart",n=>{((e=u(n.target,!0))!==document.documentElement||e!==document.body)&&e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=h(e,"overscrollBehavior","contain"))},{passive:!1,capture:!0}),p(document,"touchmove",t=>{if(!e||e===document.documentElement||e===document.body){t.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()},{passive:!1,capture:!0}),p(document,"touchend",()=>{t&&t()},{passive:!1,capture:!0}),p(document,"focus",e=>{let t=e.target;(t instanceof HTMLInputElement&&!c.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable)&&(r(),t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",a&&(a.height{g(t)}):a.addEventListener("resize",()=>g(t),{once:!0}))}))},!0)),()=>{null==t||t(),null==n||n(),s()}):(0,o.t)(h(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),h(document.documentElement,"overflow","hidden"))),()=>{0==--d&&l()}}},[t])}function h(e,t,n){let l=e.style[t];return e.style[t]=n,()=>{e.style[t]=l}}function p(e,t,n,l){return e.addEventListener(t,n,l),()=>{e.removeEventListener(t,n,l)}}function g(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=u(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect().top,l=n.getBoundingClientRect().top;l>t+n.clientHeight&&(e.scrollTop+=l-t)}n=e.parentElement}}},88177:function(e,t,n){n.d(t,{d:function(){return i}});class l{getItemRect(e){let t=this.ref.current;if(!t)return null;let n=null!=e?t.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!n)return null;let l=t.getBoundingClientRect(),r=n.getBoundingClientRect();return{x:r.left-l.left+t.scrollLeft,y:r.top-l.top+t.scrollTop,width:r.width,height:r.height}}getContentSize(){var e,t;let n=this.ref.current;return{width:null!==(e=null==n?void 0:n.scrollWidth)&&void 0!==e?e:0,height:null!==(t=null==n?void 0:n.scrollHeight)&&void 0!==t?t:0}}getVisibleRect(){var e,t,n,l;let r=this.ref.current;return{x:null!==(e=null==r?void 0:r.scrollLeft)&&void 0!==e?e:0,y:null!==(t=null==r?void 0:r.scrollTop)&&void 0!==t?t:0,width:null!==(n=null==r?void 0:r.offsetWidth)&&void 0!==n?n:0,height:null!==(l=null==r?void 0:r.offsetHeight)&&void 0!==l?l:0}}constructor(e){this.ref=e}}var r=n(17295);class i{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null===(t=e.props)||void 0===t?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let n=e;for(;null!=n;){let e=this.collection.getItem(n);if((null==e?void 0:e.type)==="item"&&!this.isDisabled(e))return n;n=t(n)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,n){let l=e,r=this.layoutDelegate.getItemRect(l);if(!r||null==l)return null;let i=r;do{if(null==(l=t(l)))break;r=this.layoutDelegate.getItemRect(l)}while(r&&n(i,r)&&null!=l);return l}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){let t="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!(0,r.a)(t))return this.getFirstKey();let l=e;if("horizontal"===this.orientation){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&null!=l;)n=null==(l=this.getKeyAbove(l))?null:this.layoutDelegate.getItemRect(l)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&null!=l;)n=null==(l=this.getKeyAbove(l))?null:this.layoutDelegate.getItemRect(l)}return null!=l?l:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!(0,r.a)(t))return this.getLastKey();let l=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x{if("keyboard"===e.pointerType&&(0,l.F)(e))n.toggleSelection(h);else{if("none"===n.selectionMode)return;if(n.isLink(h)){if("selection"===S&&y.current){let t=n.getItemProps(h);C.open(y.current,e,t.href,t.routerOptions),n.setSelectedKeys(n.selectedKeys);return}if("override"===S||"none"===S)return}"single"===n.selectionMode?n.isSelected(h)&&!n.disallowEmptySelection?n.toggleSelection(h):n.replaceSelection(h):e&&e.shiftKey?n.extendSelection(h):"toggle"===n.selectionBehavior||e&&((0,s.y)(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?n.toggleSelection(h):n.replaceSelection(h)}};(0,f.useEffect)(()=>{if(h===n.focusedKey&&n.isFocused){if(m){var e;let t=new CustomEvent(u.et,{cancelable:!0,bubbles:!0});null===(e=y.current)||void 0===e||e.dispatchEvent(t)}else b?b():document.activeElement!==y.current&&y.current&&(0,r.e)(y.current)}},[y,h,n.focusedKey,n.childFocusStrategy,n.isFocused,m]),E=E||n.isDisabled(h);let D={};m||E?E&&(D.onMouseDown=e=>{e.preventDefault()}):D={tabIndex:h===n.focusedKey?0:-1,onFocus(e){e.target===y.current&&n.setFocusedKey(h)}};let P=n.isLink(h)&&"override"===S,k=n.isLink(h)&&"selection"!==S&&"none"!==S,N=!E&&n.canSelectItem(h)&&!P,M=(K||k)&&!E,R=M&&("replace"===n.selectionBehavior?!N:!N||n.isEmpty),T=M&&N&&"replace"===n.selectionBehavior,F=R||T,A=(0,f.useRef)(null),L=F&&N,B=(0,f.useRef)(!1),I=(0,f.useRef)(!1),O=e=>{if(K&&K(),k&&y.current){let t=n.getItemProps(h);C.open(y.current,e,t.href,t.routerOptions)}},z={};v?(z.onPressStart=e=>{A.current=e.pointerType,B.current=L,"keyboard"===e.pointerType&&(!F||g())&&x(e)},w?(z.onPressUp=R?void 0:e=>{"mouse"===e.pointerType&&N&&x(e)},z.onPress=R?O:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&N&&x(e)}):z.onPress=e=>{R||T&&"mouse"!==e.pointerType?("keyboard"!==e.pointerType||p())&&O(e):"keyboard"!==e.pointerType&&N&&x(e)}):(z.onPressStart=e=>{A.current=e.pointerType,B.current=L,I.current=R,N&&("mouse"===e.pointerType&&!R||"keyboard"===e.pointerType&&(!M||g()))&&x(e)},z.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&F&&p()||"mouse"===e.pointerType&&I.current)&&(F?O(e):N&&x(e))}),D["data-key"]=h,z.preventFocusOnPress=m;let{pressProps:H,isPressed:_}=(0,c.r)(z),W=T?e=>{"mouse"===A.current&&(e.stopPropagation(),e.preventDefault(),O(e))}:void 0,{longPressProps:V}=(0,d.T)({isDisabled:!L,onLongPress(e){"touch"===e.pointerType&&(x(e),n.setSelectionBehavior("toggle"))}}),U=n.isLink(h)?e=>{i.nG.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,a.d)(D,N||R?H:{},L?V:{},{onDoubleClick:W,onDragStartCapture:e=>{"touch"===A.current&&B.current&&e.preventDefault()},onClick:U,id:t}),isPressed:_,isSelected:n.isSelected(h),isFocused:n.isFocused&&n.focusedKey===h,isDisabled:E,allowsSelection:N,hasAction:F}}function p(){let e=window.event;return(null==e?void 0:e.key)==="Enter"}function g(){let e=window.event;return(null==e?void 0:e.key)===" "||(null==e?void 0:e.code)==="Space"}},42834:function(e,t,n){n.d(t,{_:function(){return D}});var l=n(25564),r=n(89360),i=n(19198),o=n(85859),s=n(75753),u=n(16247),a=n(21295);function c(e,t,n,l){let r=(0,u.i)(n),i=null==n;(0,a.useEffect)(()=>{if(i||!e.current)return;let n=e.current;return n.addEventListener(t,r,l),()=>{n.removeEventListener(t,r,l)}},[e,t,l,i,r])}var d=n(17295);function f(e,t){let n=h(e,t,"left"),l=h(e,t,"top"),r=t.offsetWidth,i=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:u,borderLeftWidth:a,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),g=o+parseInt(a,10),y=s+parseInt(u,10),v=g+e.clientWidth,m=y+e.clientHeight,b=parseInt(c,10)||0,E=parseInt(f,10)||0,K=parseInt(d,10)||0,w=parseInt(p,10)||0;n<=o+w?o=n-parseInt(a,10)-w:n+r>v-K&&(o+=n+r-v+K),l<=y+b?s=l-parseInt(u,10)-b:l+i>m-E&&(s+=l+i-m+E),e.scrollLeft=o,e.scrollTop=s}function h(e,t,n){let l="left"===n?"offsetLeft":"offsetTop",r=0;for(;t.offsetParent&&(r+=t[l],t.offsetParent!==e);){if(t.offsetParent.contains(e)){r-=e[l];break}t=t.offsetParent}return r}function p(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(o).overflow)for(let t of function(e,t){let n=[];for(;e&&e!==document.documentElement;)(0,d.a)(e,void 0)&&n.push(e),e=e.parentElement;return n}(e))f(t,e);else{var n,l,r,i;let{left:o,top:s}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:u,top:a}=e.getBoundingClientRect();(Math.abs(o-u)>1||Math.abs(s-a)>1)&&(null==t||null===(r=t.containingElement)||void 0===r||null===(l=r.scrollIntoView)||void 0===l||l.call(r,{block:"center",inline:"center"}),null===(i=e.scrollIntoView)||void 0===i||i.call(e,{block:"nearest"}))}}}var g=n(13404),y=n(12209);function v(e,t){let n=(0,a.useRef)(!0),l=(0,a.useRef)(null);(0,y.b)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,y.b)(()=>{n.current?n.current=!1:(!l.current||t.some((e,t)=>!Object.is(e,l[t])))&&e(),l.current=t},t)}var m=n(8920),b=n(69062),E=n(89834),K=n(56750),w=n(68866),S=n(59719),C=n(88177),x=n(3615);function D(e){let{selectionManager:t,collection:n,disabledKeys:d,ref:h,keyboardDelegate:y,layoutDelegate:D}=e,P=(0,x.X)({usage:"search",sensitivity:"base"}),k=t.disabledBehavior,N=(0,a.useMemo)(()=>y||new C.d({collection:n,disabledKeys:d,disabledBehavior:k,ref:h,collator:P,layoutDelegate:D}),[y,D,n,d,h,P,k]),{collectionProps:M}=function(e){let t,{selectionManager:n,keyboardDelegate:d,ref:h,autoFocus:y=!1,shouldFocusWrap:C=!1,disallowEmptySelection:x=!1,disallowSelectAll:D=!1,selectOnFocus:P="replace"===n.selectionBehavior,disallowTypeAhead:k=!1,shouldUseVirtualFocus:N,allowsTabNavigation:M=!1,isVirtualized:R,scrollRef:T=h,linkBehavior:F="action"}=e,{direction:A}=(0,S.j)(),L=(0,i.tv)(),B=(0,a.useRef)({top:0,left:0});c(T,"scroll",R?void 0:()=>{var e,t,n,l;B.current={top:null!==(n=null===(e=T.current)||void 0===e?void 0:e.scrollTop)&&void 0!==n?n:0,left:null!==(l=null===(t=T.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==l?l:0}});let I=(0,a.useRef)(!1);c(h,g.N4,N?e=>{let{detail:t}=e;e.stopPropagation(),n.setFocused(!0),(null==t?void 0:t.focusStrategy)==="first"&&(I.current=!0)}:void 0);let O=(0,u.i)(()=>{var e,t,l;let r=null!==(t=null===(e=d.getFirstKey)||void 0===e?void 0:e.call(d))&&void 0!==t?t:null;null==r?(null===(l=h.current)||void 0===l||l.dispatchEvent(new CustomEvent(g.et,{cancelable:!0,bubbles:!0})),n.collection.size>0&&(I.current=!1)):(n.setFocusedKey(r),I.current=!1)});v(()=>{I.current&&O()},[n.collection,O]);let z=(0,u.i)(()=>{n.collection.size>0&&(I.current=!1)});v(()=>{z()},[n.focusedKey,z]),c(h,g.os,N?e=>{e.stopPropagation(),n.setFocused(!1),n.setFocusedKey(null)}:void 0);let H=(0,a.useRef)(y);(0,a.useEffect)(()=>{if(H.current){var e,t,l,r;let i=null;"first"===y&&(i=null!==(l=null===(e=d.getFirstKey)||void 0===e?void 0:e.call(d))&&void 0!==l?l:null),"last"===y&&(i=null!==(r=null===(t=d.getLastKey)||void 0===t?void 0:t.call(d))&&void 0!==r?r:null);let o=n.selectedKeys;if(o.size){for(let e of o)if(n.canSelectItem(e)){i=e;break}}n.setFocused(!0),n.setFocusedKey(i),null==i&&!N&&h.current&&(0,K.e)(h.current)}},[]);let _=(0,a.useRef)(n.focusedKey);(0,a.useEffect)(()=>{if(n.isFocused&&null!=n.focusedKey&&(n.focusedKey!==_.current||H.current)&&T.current&&h.current){let e=(0,w.Jz)(),t=h.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);if(!t)return;("keyboard"===e||H.current)&&(f(T.current,t),"virtual"!==e&&p(t,{containingElement:h.current}))}!N&&n.isFocused&&null==n.focusedKey&&null!=_.current&&h.current&&(0,K.e)(h.current),_.current=n.focusedKey,H.current=!1}),c(h,"react-aria-focus-scope-restore",e=>{e.preventDefault(),n.setFocused(!0)});let W={onKeyDown:e=>{var t,r,i,u,a,c,f,p,g,y,v,m,K;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!(null===(t=h.current)||void 0===t?void 0:t.contains(e.target)))return;let w=(t,r)=>{if(null!=t){if(n.isLink(t)&&"selection"===F&&P&&!(0,l.F)(e)){var i;(0,b.flushSync)(()=>{n.setFocusedKey(t,r)});let l=null===(i=T.current)||void 0===i?void 0:i.querySelector(`[data-key="${CSS.escape(t.toString())}"]`),o=n.getItemProps(t);l&&L.open(l,e,o.href,o.routerOptions);return}n.setFocusedKey(t,r),n.isLink(t)&&"override"===F||(e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):P&&!(0,l.F)(e)&&n.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(d.getKeyBelow){let t=null!=n.focusedKey?null===(r=d.getKeyBelow)||void 0===r?void 0:r.call(d,n.focusedKey):null===(i=d.getFirstKey)||void 0===i?void 0:i.call(d);null==t&&C&&(t=null===(u=d.getFirstKey)||void 0===u?void 0:u.call(d,n.focusedKey)),null!=t&&(e.preventDefault(),w(t))}break;case"ArrowUp":if(d.getKeyAbove){let t=null!=n.focusedKey?null===(a=d.getKeyAbove)||void 0===a?void 0:a.call(d,n.focusedKey):null===(c=d.getLastKey)||void 0===c?void 0:c.call(d);null==t&&C&&(t=null===(f=d.getLastKey)||void 0===f?void 0:f.call(d,n.focusedKey)),null!=t&&(e.preventDefault(),w(t))}break;case"ArrowLeft":if(d.getKeyLeftOf){let t=null!=n.focusedKey?null===(p=d.getKeyLeftOf)||void 0===p?void 0:p.call(d,n.focusedKey):null;null==t&&C&&(t="rtl"===A?null===(g=d.getFirstKey)||void 0===g?void 0:g.call(d,n.focusedKey):null===(y=d.getLastKey)||void 0===y?void 0:y.call(d,n.focusedKey)),null!=t&&(e.preventDefault(),w(t,"rtl"===A?"first":"last"))}break;case"ArrowRight":if(d.getKeyRightOf){let t=null!=n.focusedKey?null===(v=d.getKeyRightOf)||void 0===v?void 0:v.call(d,n.focusedKey):null;null==t&&C&&(t="rtl"===A?null===(m=d.getLastKey)||void 0===m?void 0:m.call(d,n.focusedKey):null===(K=d.getFirstKey)||void 0===K?void 0:K.call(d,n.focusedKey)),null!=t&&(e.preventDefault(),w(t,"rtl"===A?"last":"first"))}break;case"Home":if(d.getFirstKey){if(null===n.focusedKey&&e.shiftKey)return;e.preventDefault();let t=d.getFirstKey(n.focusedKey,(0,o.y)(e));n.setFocusedKey(t),null!=t&&((0,o.y)(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):P&&n.replaceSelection(t))}break;case"End":if(d.getLastKey){if(null===n.focusedKey&&e.shiftKey)return;e.preventDefault();let t=d.getLastKey(n.focusedKey,(0,o.y)(e));n.setFocusedKey(t),null!=t&&((0,o.y)(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):P&&n.replaceSelection(t))}break;case"PageDown":if(d.getKeyPageBelow&&null!=n.focusedKey){let t=d.getKeyPageBelow(n.focusedKey);null!=t&&(e.preventDefault(),w(t))}break;case"PageUp":if(d.getKeyPageAbove&&null!=n.focusedKey){let t=d.getKeyPageAbove(n.focusedKey);null!=t&&(e.preventDefault(),w(t))}break;case"a":(0,o.y)(e)&&"multiple"===n.selectionMode&&!0!==D&&(e.preventDefault(),n.selectAll());break;case"Escape":x||0===n.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),n.clearSelection());break;case"Tab":if(!M){if(e.shiftKey)h.current.focus();else{let e,t,n=(0,E.QL)(h.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,l,r,i;let o=e=>{null!=e&&(n.setFocusedKey(e),P&&n.replaceSelection(e))},s=e.relatedTarget;s&&e.currentTarget.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?o(null!==(r=n.lastSelectedKey)&&void 0!==r?r:null===(t=d.getLastKey)||void 0===t?void 0:t.call(d)):o(null!==(i=n.firstSelectedKey)&&void 0!==i?i:null===(l=d.getFirstKey)||void 0===l?void 0:l.call(d))}else!R&&T.current&&(T.current.scrollTop=B.current.top,T.current.scrollLeft=B.current.left);if(null!=n.focusedKey&&T.current){let e=T.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);e&&(e.contains(document.activeElement)||(0,s.A)(e),"keyboard"===(0,w.Jz)()&&p(e,{containingElement:h.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||n.setFocused(!1)},onMouseDown(e){T.current===e.target&&e.preventDefault()}},{typeSelectProps:V}=(0,r.i)({keyboardDelegate:d,selectionManager:n});return k||(W=(0,m.d)(V,W)),t=N?-1:null==n.focusedKey?0:-1,{collectionProps:{...W,tabIndex:t}}}({...e,ref:h,selectionManager:t,keyboardDelegate:N});return{listProps:M}}},89360:function(e,t,n){n.d(t,{i:function(){return r}});var l=n(21295);function r(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=(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)){if(" "!==o||!(i.search.trim().length>0)||(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),i.search+=o,null!=t.getKeyForSearch){let e=t.getKeyForSearch(i.search,n.focusedKey);null==e&&(e=t.getKeyForSearch(i.search)),null!=e&&(n.setFocusedKey(e),r&&r(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},1e3)}}:void 0}}}},25564:function(e,t,n){n.d(t,{F:function(){return r}});var l=n(30634);function r(e){return(0,l.ad)()?e.altKey:e.ctrlKey}},13404:function(e,t,n){n.d(t,{N4:function(){return r},et:function(){return i},os:function(){return l}});let l="react-aria-clear-focus",r="react-aria-focus",i="react-aria-update-activedescendant"},17295: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}},85859:function(e,t,n){n.d(t,{y:function(){return r}});var l=n(30634);function r(e){return(0,l.V5)()?e.metaKey:e.ctrlKey}},54154:function(e,t,n){n.d(t,{y:function(){return r}});var l=n(21295);function r(e){let{ref:t,box:n,onResize:r}=e;(0,l.useEffect)(()=>{let e=null==t?void 0:t.current;if(e){if(!(void 0!==window.ResizeObserver))return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)};{let t=new window.ResizeObserver(e=>{e.length&&r()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}}},[r,t,n])}},47385:function(e,t,n){n.d(t,{S:function(){return s},T:function(){return u}});var l=n(8920),r=n(21295),i=n(47641);let o={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function s(e={}){let{style:t,isFocusable:n}=e,[l,s]=(0,r.useState)(!1),{focusWithinProps:u}=(0,i.L)({isDisabled:!n,onFocusWithinChange:e=>s(e)}),a=(0,r.useMemo)(()=>l?t:t?{...o,...t}:o,[l]);return{visuallyHiddenProps:{...u,style:a}}}function u(e){let{children:t,elementType:n="div",isFocusable:i,style:o,...u}=e,{visuallyHiddenProps:a}=s(e);return r.createElement(n,(0,l.d)(u,a),t)}},4522:function(e,t,n){function l(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function r(e){return function(e,t){let n=0;for(let t of e){if(0===n)return t;n++}}(e,0)}function i(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let l=[...o(e,t),t],r=[...o(e,n),n],i=l.slice(0,r.length).findIndex((e,t)=>e!==r[t]);return -1!==i?(t=l[i],n=r[i],t.index-n.index):l.findIndex(e=>e===n)>=0?1:(r.findIndex(e=>e===t),-1)}function o(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,{_P:function(){return l},eg:function(){return i},l8:function(){return r}})},71746:function(e,t,n){n.d(t,{i:function(){return i}});var l=n(4522);let r=new WeakMap;function i(e){let t=r.get(e);if(null!=t)return t;let n=0,i=t=>{for(let r of t)"section"===r.type?i((0,l._P)(r,e)):n++};return i(e),r.set(e,n),n}},41626:function(e,t,n){n.d(t,{K:function(){return s}});var l=n(21295);class r{build(e,t){return this.context=t,i(()=>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 r=t.value;if(null!=r){var i;let e=null!==(i=r.key)&&void 0!==i?i:r.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,r){var s,u,a,c,d,f,h,p;if(l.isValidElement(e.element)&&e.element.type===l.Fragment){let i=[];l.Children.forEach(e.element.props.children,e=>{i.push(e)});let o=null!==(s=e.index)&&void 0!==s?s:0;for(let e of i)yield*this.getFullNode({element:e,index:o++},t,n,r);return}let g=e.element;if(!g&&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=r?r.key:null,yield n;return}g=t.renderer(e.value)}if(l.isValidElement(g)){let l=g.type;if("function"!=typeof l&&"function"!=typeof l.getCollectionNode){let e=g.type;throw Error(`Unknown element <${e}> in collection.`)}let i=l.getCollectionNode(g.props,this.context),s=null!==(u=e.index)&&void 0!==u?u:0,h=i.next();for(;!h.done&&h.value;){let l=h.value;e.index=s;let u=null!==(a=l.key)&&void 0!==a?a:null;null==u&&(u=l.element?null:this.getKey(g,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}${g.key}`:g.key,r)];for(let t of p){if(t.value=null!==(d=null!==(c=l.value)&&void 0!==c?c:e.value)&&void 0!==d?d: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!==(f=null==r?void 0:r.type)&&void 0!==f?f:"unknown parent type")}>. Only <${o(e.type)}> is supported.`);s++,yield t}h=i.next(p)}return}if(null==e.key||null==e.type)return;let y=this,v={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:null!==(h=e.value)&&void 0!==h?h:null,level:r?r.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:i(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=`${v.key}${l.key}`),y.getFullNode({...l,index:n},y.getChildState(t,l),v.key,v)))n++,yield e})};yield v}constructor(){this.cache=new WeakMap}}function i(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 i=(0,l.useMemo)(()=>new r,[]),{children:o,items:s,collection:u}=e;return(0,l.useMemo)(()=>u||t(i.build({children:o,items:s},n)),[i,o,s,u,n,t])}},5707:function(e,t,n){n.d(t,{W:function(){return i}});var l=n(94478),r=n(21295);function i(e){let t=(0,l.d)(e),[n,i]=(0,r.useState)(null),[o,s]=(0,r.useState)([]),u=()=>{s([]),t.close()};return{focusStrategy:n,...t,open(e=null){i(e),t.open()},toggle(e=null){i(e),t.toggle()},close(){u()},expandedKeysStack:o,openSubmenu:(e,t)=>{s(n=>t>n.length?n:[...n.slice(0,t),e])},closeSubmenu:(e,t)=>{s(n=>n[t]===e?n.slice(0,t):n)}}}},94478:function(e,t,n){n.d(t,{d:function(){return i}});var l=n(21295),r=n(25672);function i(e){let[t,n]=(0,r.z)(e.isOpen,e.defaultOpen||!1,e.onOpenChange),i=(0,l.useCallback)(()=>{n(!0)},[n]),o=(0,l.useCallback)(()=>{n(!1)},[n]),s=(0,l.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:i,close:o,toggle:s}}},11274: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)}}},96085:function(e,t,n){n.d(t,{Z:function(){return i}});var l=n(11274),r=n(4522);class i{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if("none"===this.state.selectionMode)return!1;let t=this.getKey(e);return null!=t&&("all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let n=this.collection.getItem(e);(!t||n&&0>(0,r.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,r.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 r,i;let e=this.state.selectedKeys,o=null!==(r=e.anchorKey)&&void 0!==r?r:n;for(let r of(t=new l.Y(e,o,n),this.getKeyRange(o,null!==(i=e.currentKey)&&void 0!==i?i:n)))t.delete(r);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,r.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=[],r=e;for(;null!=r;){let e=this.collection.getItem(r);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&l.push(r),r===t)return l;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;t&&"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e)){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,i;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!==(i=null===(l=(0,r.l8)((0,r._P)(o,this.collection)))||void 0===l?void 0:l.key)&&void 0!==i?i: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}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}}},78770:function(e,t,n){n.d(t,{q:function(){return o}});var l=n(11274),r=n(25672),i=n(21295);function o(e){let{selectionMode:t="none",disallowEmptySelection:n=!1,allowDuplicateSelectionEvents:o,selectionBehavior:u="toggle",disabledBehavior:a="all"}=e,c=(0,i.useRef)(!1),[,d]=(0,i.useState)(!1),f=(0,i.useRef)(null),h=(0,i.useRef)(null),[,p]=(0,i.useState)(null),g=(0,i.useMemo)(()=>s(e.selectedKeys),[e.selectedKeys]),y=(0,i.useMemo)(()=>s(e.defaultSelectedKeys,new l.Y),[e.defaultSelectedKeys]),[v,m]=(0,r.z)(g,y,e.onSelectionChange),b=(0,i.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[E,K]=(0,i.useState)(u);"replace"===u&&"toggle"===E&&"object"==typeof v&&0===v.size&&K("replace");let w=(0,i.useRef)(u);return(0,i.useEffect)(()=>{u!==w.current&&(K(u),w.current=u)},[u]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:E,setSelectionBehavior:K,get isFocused(){return c.current},setFocused(e){c.current=e,d(e)},get focusedKey(){return f.current},get childFocusStrategy(){return h.current},setFocusedKey(e,t="first"){f.current=e,h.current=t,p(e)},selectedKeys:v,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,v))&&m(e)},disabledKeys:b,disabledBehavior:a}}function s(e,t){return e?"all"===e?"all":new l.Y(e):t}},5789:function(e,t,n){n.d(t,{Qk:function(){return s},od:function(){return i},pd:function(){return u}});var l=n(93788),r=n(21295);let i=(0,r.createContext)(null);function o(e,t,n){return(0,l.H)({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){var l;let i=t.render(t);if(!n||"item"!==t.type)return i;let o=t.key,s=e.getKeyAfter(o);return r.createElement(r.Fragment,null,n({type:"item",key:o,dropPosition:"before"}),i,(null==s||(null===(l=e.getItem(s))||void 0===l?void 0:l.type)!=="item")&&n({type:"item",key:o,dropPosition:"after"}))}})}let s=(0,r.createContext)({CollectionRoot:({collection:e,renderDropIndicator:t})=>o(e,null,t),CollectionBranch:({collection:e,parent:t,renderDropIndicator:n})=>o(e,t,n)});function u(e){return(0,r.useMemo)(()=>null!=e?new Set([e]):null,[e])}},20501:function(e,t,n){n.d(t,{Vq:function(){return b},hg:function(){return m},$H:function(){return v}});var l=n(46694),r=n(21852),i=n(27216),o=n(95298),s=n(39814),u=n(73304),a=n(17680),c=n(31258),d=n(56750),f=n(21295),h=n(59107),p=n(5707),g=n(65237);let y=(0,f.createContext)(null),v=(0,f.createContext)(null);function m(e){let t=(0,p.W)(e),n=(0,f.useRef)(null),{triggerProps:l,overlayProps:i}=(0,u.I)({type:"dialog"},t,n);return l.id=(0,a.Me)(),i["aria-labelledby"]=l.id,f.createElement(r.zt,{values:[[v,t],[s.n5,t],[y,i],[o.m,{trigger:"DialogTrigger",triggerRef:n}]]},f.createElement(g.N,{...l,ref:n,isPressed:t.isOpen},e.children))}let b=(0,f.forwardRef)(function(e,t){let n=e["aria-labelledby"];[e,t]=(0,r.pE)(e,t,y);let{dialogProps:o,titleProps:s}=function(e,t){let{role:n="dialog"}=e,l=(0,a.mp)();l=e["aria-label"]?void 0:l;let r=(0,f.useRef)(!1);return(0,f.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){(0,d.e)(t.current);let e=setTimeout(()=>{document.activeElement===t.current&&(r.current=!0,t.current&&(t.current.blur(),(0,d.e)(t.current)),r.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),(0,h.Bq)(),{dialogProps:{...(0,c.z)(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||l,onBlur:e=>{r.current&&e.stopPropagation()}},titleProps:{id:l}}}({...e,"aria-labelledby":n},t),u=(0,f.useContext)(v);o["aria-label"]||o["aria-labelledby"]||(e["aria-labelledby"]?o["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a , it must have an aria-label or aria-labelledby attribute for accessibility.'));let p=(0,r.aX)({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(null==u?void 0:u.close)||(()=>{})}});return f.createElement("section",{...(0,c.z)(e),...o,...p,ref:t,slot:e.slot||void 0},f.createElement(r.zt,{values:[[i.ni,{slots:{[r.hO]:{},title:{...s,level:2}}}],[l.b,{slots:{[r.hO]:{},close:{onPress:()=>null==u?void 0:u.close()}}}]]},p.children))})},21282:function(e,t,n){n.d(t,{h:function(){return s},p:function(){return o}});var l=n(21852),r=n(60955),i=n(21295);let o=(0,i.createContext)({}),s=(0,r.G5)("header",function(e,t){return[e,t]=(0,l.pE)(e,t,o),i.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)})},39814:function(e,t,n){n.d(t,{v2:function(){return j},sN:function(){return G},bF:function(){return W},n5:function(){return H}});var l=n(5789),r=n(21852),i=n(21282),o=n(21295);let s=(0,o.createContext)({});var u=n(20501),a=n(95298),c=n(17636),d=n(90560),f=n(46524);let h=new WeakMap;var p=n(31258),g=n(8920),y=n(42834),v=n(89834),m=n(17680),b=n(19198),E=n(71746),K=n(19053),w=n(99532),S=n(68866),C=n(87273),x=n(57911),D=n(14103),P=n(727),k=n(5707);class N{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;let n=this.keyMap.get(e);return n&&null!==(t=n.prevKey)&&void 0!==t?t:null}getKeyAfter(e){var t;let n=this.keyMap.get(e);return n&&null!==(t=n.nextKey)&&void 0!==t?t:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){var n;this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let l=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)l(t)};for(let t of e)l(t);let r=null,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),(r=t).nextKey=void 0;this.lastKey=null!==(n=null==r?void 0:r.key)&&void 0!==n?n:null}}var M=n(78770),R=n(96085),T=n(41626),F=n(25672),A=n(60955),L=n(54154),B=n(77465),I=n(65237);let O=(0,o.createContext)(null),z=(0,o.createContext)(null),H=(0,o.createContext)(null),_=(0,o.createContext)(null);function W(e){let t=(0,k.W)(e),n=(0,o.useRef)(null),{menuTriggerProps:l,menuProps:i}=(0,f.u)({...e,type:"menu"},t,n),[s,c]=(0,o.useState)(null),d=(0,o.useCallback)(()=>{n.current&&c(n.current.offsetWidth+"px")},[n]);(0,L.y)({ref:n,onResize:d});let h=(0,o.useRef)(null);return o.createElement(r.zt,{values:[[O,{...i,ref:h}],[u.$H,t],[H,t],[a.m,{trigger:"MenuTrigger",triggerRef:n,scrollRef:h,placement:"bottom start",style:{"--trigger-width":s}}]]},o.createElement(I.N,{...l,ref:n,isPressed:t.isOpen},e.children))}let V=(0,o.createContext)(null);function U({props:e,collection:t,menuRef:n}){let i=function(e){let{onExpandedChange:t}=e,[n,l]=(0,F.z)(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),r=(0,M.q)(e),i=(0,o.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=(0,T.K)(e,(0,o.useCallback)(e=>new N(e,{expandedKeys:n}),[n]),null);return(0,o.useEffect)(()=>{null==r.focusedKey||s.getItem(r.focusedKey)||r.setFocusedKey(null)},[s,r.focusedKey]),{collection:s,expandedKeys:n,disabledKeys:i,toggleKey:e=>{let t;l(((t=new Set(n)).has(e)?t.delete(e):t.add(e),t))},setExpandedKeys:l,selectionManager:new R.Z(s,r)}}({...e,collection:t,children:void 0}),s=(0,o.useContext)(H),{isVirtualized:u,CollectionRoot:a}=(0,o.useContext)(l.Qk),{menuProps:d}=function(e,t,n){let{shouldFocusWrap:l=!0,onKeyDown:r,onKeyUp:i,...o}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=(0,p.z)(e,{labelable:!0}),{listProps:u}=(0,y._)({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:l,linkBehavior:"override"});return h.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:(0,g.d)(s,{onKeyDown:r,onKeyUp:i},{role:"menu",...u,onKeyDown:t=>{var n;("Escape"!==t.key||e.shouldUseVirtualFocus)&&(null===(n=u.onKeyDown)||void 0===n||n.call(u,t))}})}}({...e,isVirtualized:u,onClose:e.onClose||(null==s?void 0:s.close)},i,n),f=(0,r.aX)({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{}});return o.createElement(v.MT,null,o.createElement("div",{...(0,p.z)(e),...d,...f,ref:n,slot:e.slot||void 0,onScroll:e.onScroll},o.createElement(r.zt,{values:[[z,i],[c.r,{elementType:"div"}],[l.od,{name:"MenuSection",render:q}],[V,{parentMenuRef:n}],[Y,null],[_,i.selectionManager]]},o.createElement(a,{collection:t,persistedKeys:(0,l.pd)(i.selectionManager.focusedKey),scrollRef:n}))))}let j=(0,o.forwardRef)(function(e,t){return[e,t]=(0,r.pE)(e,t,O),o.createElement(A.yF,{content:o.createElement(A.FE,e)},n=>n.size>0&&o.createElement(U,{props:e,collection:n,menuRef:t}))});class $ extends R.Z{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}}function q(e,t,n,s="react-aria-MenuSection"){var u,a,c;let d=(0,o.useContext)(z),{CollectionBranch:f}=(0,o.useContext)(l.Qk),[h,g]=(0,r.xc)(),{headingProps:y,groupProps:v}=function(e){let{heading:t,"aria-label":n}=e,l=(0,m.Me)();return{itemProps:{role:"presentation"},headingProps:t?{id:l,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?l:void 0}}}({heading:g,"aria-label":null!==(c=n.props["aria-label"])&&void 0!==c?c:void 0}),b=(0,r.aX)({defaultClassName:s,className:null===(u=n.props)||void 0===u?void 0:u.className,style:null===(a=n.props)||void 0===a?void 0:a.style,values:{}}),E=(0,o.useContext)(_),K=(0,M.q)(e),w=null!=e.selectionMode?new $(E,K):E;return o.createElement("section",{...(0,p.z)(e),...v,...b,ref:t},o.createElement(r.zt,{values:[[i.p,{...y,ref:h}],[_,w]]},o.createElement(f,{collection:d.collection,parent:n})))}let Y=(0,o.createContext)(null),G=(0,A.G5)("item",function(e,t,n){var l;[e,t]=(0,r.pE)(e,t,Y);let i=null===(l=(0,r.jn)(Y))||void 0===l?void 0:l.id,u=(0,o.useContext)(z),a=(0,B.B)(t),c=(0,o.useContext)(_),{menuItemProps:f,labelProps:y,descriptionProps:v,keyboardShortcutProps:k,...N}=function(e,t,n){var l,r;let{id:i,key:o,closeOnSelect:s,isVirtualized:u,"aria-haspopup":a,onPressStart:c,onPressUp:d,onPress:f,onPressChange:y,onPressEnd:v,onHoverStart:P,onHoverChange:k,onHoverEnd:N,onKeyDown:M,onKeyUp:R,onFocus:T,onFocusChange:F,onBlur:A,selectionManager:L=t.selectionManager}=e,B=!!a,I=B&&"true"===e["aria-expanded"],O=null!==(l=e.isDisabled)&&void 0!==l?l:L.isDisabled(o),z=null!==(r=e.isSelected)&&void 0!==r?r:L.isSelected(o),H=h.get(t),_=t.collection.getItem(o),W=e.onClose||H.onClose,V=(0,b.tv)(),U=t=>{var n;!B&&((null==_?void 0:null===(n=_.props)||void 0===n?void 0:n.onAction)?_.props.onAction():e.onAction&&e.onAction(o),H.onAction&&(0,H.onAction)(o),t.target instanceof HTMLAnchorElement&&_&&V.open(t.target,t,_.props.href,_.props.routerOptions))},j="menuitem";B||("single"===L.selectionMode?j="menuitemradio":"multiple"!==L.selectionMode||(j="menuitemcheckbox"));let $=(0,m.mp)(),q=(0,m.mp)(),Y=(0,m.mp)(),G={id:i,"aria-disabled":O||void 0,role:j,"aria-label":e["aria-label"],"aria-labelledby":$,"aria-describedby":[q,Y].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":a,"aria-expanded":e["aria-expanded"]};"none"===L.selectionMode||B||(G["aria-checked"]=z),u&&(G["aria-posinset"]=null==_?void 0:_.index,G["aria-setsize"]=(0,E.i)(t.collection));let X=()=>{!B&&W&&(null!=s?s:"multiple"!==L.selectionMode||L.isLink(o))&&W()},{itemProps:Z,isFocused:J}=(0,D.C)({id:i,selectionManager:L,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:H.shouldUseVirtualFocus}),{pressProps:Q,isPressed:ee}=(0,K.r)({onPressStart:e=>{"keyboard"===e.pointerType&&U(e),null==c||c(e)},onPress:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&(U(e),X()),null==f||f(e)},onPressUp:e=>{"mouse"===e.pointerType&&(U(e),X()),null==d||d(e)},onPressChange:y,onPressEnd:v,isDisabled:O}),{hoverProps:et}=(0,w.X)({isDisabled:O,onHoverStart(e){(0,S.E)()||I&&"dialog"===a||(L.setFocused(!0),L.setFocusedKey(o)),null==P||P(e)},onHoverChange:k,onHoverEnd:N}),{keyboardProps:en}=(0,C.v)({onKeyDown:e=>{if(e.repeat){e.continuePropagation();return}switch(e.key){case" ":O||"none"!==L.selectionMode||B||!1===s||!W||W();break;case"Enter":O||!1===s||B||!W||W();break;default:B||e.continuePropagation(),null==M||M(e)}},onKeyUp:R}),{focusProps:el}=(0,x.K)({onBlur:A,onFocus:T,onFocusChange:F}),er=(0,p.z)(null==_?void 0:_.props);delete er.id;let ei=(0,b.eY)(null==_?void 0:_.props);return{menuItemProps:{...G,...(0,g.d)(er,ei,B?{onFocus:Z.onFocus,"data-key":Z["data-key"]}:Z,Q,et,en,el),tabIndex:null!=Z.tabIndex&&I?-1:Z.tabIndex},labelProps:{id:$},descriptionProps:{id:q},keyboardShortcutProps:{id:Y},isFocused:J,isSelected:z,isPressed:ee,isDisabled:O}}({...e,id:i,key:n.key,selectionManager:c},u,a),{isFocusVisible:M,focusProps:R}=(0,P.F)(),{hoverProps:T,isHovered:F}=(0,w.X)({isDisabled:N.isDisabled}),A=(0,r.aX)({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...N,isHovered:F,isFocusVisible:M,selectionMode:c.selectionMode,selectionBehavior:c.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:"true"===e["aria-expanded"]}}),L=e.href?"a":"div";return o.createElement(L,{...(0,g.d)(f,R,T),...A,ref:a,"data-disabled":N.isDisabled||void 0,"data-hovered":F||void 0,"data-focused":N.isFocused||void 0,"data-focus-visible":M||void 0,"data-pressed":N.isPressed||void 0,"data-selected":N.isSelected||void 0,"data-selection-mode":"none"===c.selectionMode?void 0:c.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":"true"===e["aria-expanded"]||void 0},o.createElement(r.zt,{values:[[d.j,{slots:{label:y,description:v}}],[s,k]]},A.children))})},95298:function(e,t,n){n.d(t,{J:function(){return z},m:function(){return O}});var l=n(21852),r=n(21295);let i=(0,r.createContext)({placement:"bottom"});var o=n(20501),s=n(88387),u=n(30634),a=n(25537);let c={top:"top",bottom:"top",left:"left",right:"left"},d={top:"bottom",bottom:"top",left:"right",right:"left"},f={top:"left",left:"top"},h={top:"height",left:"width"},p={width:"totalWidth",height:"totalHeight"},g={},y="undefined"!=typeof document?window.visualViewport:null;function v(e){var t,n,l,r,i;let o=0,s=0,a=0,c=0,d=0,f=0,h={},p=(null!==(t=null==y?void 0:y.scale)&&void 0!==t?t:1)>1;if("BODY"===e.tagName){let t=document.documentElement;a=t.clientWidth,c=t.clientHeight,o=null!==(n=null==y?void 0:y.width)&&void 0!==n?n:a,s=null!==(l=null==y?void 0:y.height)&&void 0!==l?l:c,h.top=t.scrollTop||e.scrollTop,h.left=t.scrollLeft||e.scrollLeft,y&&(d=y.offsetTop,f=y.offsetLeft)}else({width:o,height:s,top:d,left:f}=w(e)),h.top=e.scrollTop,h.left=e.scrollLeft,a=o,c=s;return(0,u.Pf)()&&("BODY"===e.tagName||"HTML"===e.tagName)&&p&&(h.top=0,h.left=0,d=null!==(r=null==y?void 0:y.pageTop)&&void 0!==r?r:0,f=null!==(i=null==y?void 0:y.pageLeft)&&void 0!==i?i:0),{width:o,height:s,totalWidth:a,totalHeight:c,scroll:h,top:d,left:f}}function m(e,t,n,l,r,i,o){var s;let u=null!==(s=r.scroll[e])&&void 0!==s?s:0,a=l[h[e]],d=l.scroll[c[e]]+i,f=a+l.scroll[c[e]]-i,p=t-u+o[e]-l[c[e]],g=t-u+n+o[e]-l[c[e]];return pf?Math.max(f-g,d-p):0}function b(e){if(g[e])return g[e];let[t,n]=e.split(" "),l=c[t]||"right",r=f[l];c[n]||(n="center");let i=h[l],o=h[r];return g[e]={placement:t,crossPlacement:n,axis:l,crossAxis:r,size:i,crossSize:o},g[e]}function E(e,t,n,l,r,i,o,s,u,c){var f,h,g,y,v;let{placement:m,crossPlacement:b,axis:E,crossAxis:K,size:w,crossSize:S}=l,C={};C[K]=null!==(f=e[K])&&void 0!==f?f:0,"center"===b?C[K]+=((null!==(h=e[S])&&void 0!==h?h:0)-(null!==(g=n[S])&&void 0!==g?g:0))/2:b!==K&&(C[K]+=(null!==(y=e[S])&&void 0!==y?y:0)-(null!==(v=n[S])&&void 0!==v?v:0)),C[K]+=i;let x=e[K]-n[S]+u+c,D=e[K]+e[S]-u-c;if(C[K]=(0,a.uZ)(C[K],x,D),m===E){let n=s?o[w]:t[p[w]];C[d[E]]=Math.floor(n-e[E]+r)}else C[E]=Math.floor(e[E]+e[w]+r);return C}function K(e,t,n,l,r,i){var o,s,u;let{placement:a,axis:c,size:f}=i;return a===c?Math.max(0,n[c]-e[c]-(null!==(o=e.scroll[c])&&void 0!==o?o:0)+t[c]-(null!==(s=l[c])&&void 0!==s?s:0)-l[d[c]]-r):Math.max(0,e[f]+e[c]+e.scroll[c]-t[c]-n[c]-n[f]-(null!==(u=l[c])&&void 0!==u?u:0)-l[d[c]]-r)}function w(e){let{top:t,left:n,width:l,height:r}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:o,clientTop:s,clientLeft:u}=document.documentElement;return{top:t+i-s,left:n+o-u,width:l,height:r}}function S(e,t){let n,l=window.getComputedStyle(e);if("fixed"===l.position){let{top:t,left:l,width:r,height:i}=e.getBoundingClientRect();n={top:t,left:l,width:r,height:i}}else{n=w(e);let l=w(t),r=window.getComputedStyle(t);l.top+=(parseInt(r.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(r.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=l.top,n.left-=l.left}return n.top-=parseInt(l.marginTop,10)||0,n.left-=parseInt(l.marginLeft,10)||0,n}function C(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}var x=n(3660),D=n(12209),P=n(54154),k=n(59719);let N="undefined"!=typeof document?window.visualViewport:null;var M=n(39512),R=n(15342),T=n(8920),F=n(59107),A=n(85562),L=n(31258),B=n(94478),I=n(95939);let O=(0,r.createContext)(null),z=(0,r.forwardRef)(function(e,t){[e,t]=(0,l.pE)(e,t,O);let n=(0,r.useContext)(o.$H),i=(0,B.d)(e),s=null==e.isOpen&&null==e.defaultOpen&&n?n:i,u=(0,l.xB)(t,s.isOpen)||e.isExiting||!1;if((0,I.XA)()){let t=e.children;return"function"==typeof t&&(t=t({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),r.createElement(r.Fragment,null,t)}return!s||s.isOpen||u?r.createElement(H,{...e,triggerRef:e.triggerRef,state:s,popoverRef:t,isExiting:u}):null});function H({state:e,isExiting:t,UNSTABLE_portalContainer:n,...o}){var u;let f=(0,r.useRef)(null),[h,g]=(0,r.useState)(0);(0,D.b)(()=>{f.current&&e.isOpen&&g(f.current.getBoundingClientRect().width)},[e.isOpen,f]);let{popoverProps:y,underlayProps:B,arrowProps:I,placement:O}=function(e,t){let{triggerRef:n,popoverRef:l,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:u,...f}=e,{overlayProps:h,underlayProps:g}=(0,M.I)({isOpen:t.isOpen&&!f["data-react-aria-top-layer"],onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:u},l),{overlayProps:y,arrowProps:F,placement:A}=function(e){var t,n;let{direction:l}=(0,k.j)(),{arrowSize:i=0,targetRef:o,overlayRef:s,scrollRef:u=s,placement:f="bottom",containerPadding:h=12,shouldFlip:g=!0,boundaryElement:y="undefined"!=typeof document?document.body:null,offset:M=0,crossOffset:R=0,shouldUpdatePosition:T=!0,isOpen:F=!0,onClose:A,maxHeight:L,arrowBoundaryOffset:B=0}=e,[I,O]=(0,r.useState)(null),z=[T,f,s.current,o.current,u.current,h,g,y,M,R,F,l,L,B,i],H=(0,r.useRef)(null==N?void 0:N.scale);(0,r.useEffect)(()=>{F&&(H.current=null==N?void 0:N.scale)},[F]);let _=(0,r.useCallback)(()=>{var e,t,n,r,x;if(!1===T||!F||!s.current||!o.current||!y||(null==N?void 0:N.scale)!==H.current)return;let D=null;if(u.current&&u.current.contains(document.activeElement)){let l=null===(e=document.activeElement)||void 0===e?void 0:e.getBoundingClientRect(),r=u.current.getBoundingClientRect();(D={type:"top",offset:(null!==(t=null==l?void 0:l.top)&&void 0!==t?t:0)-r.top}).offset>r.height/2&&(D.type="bottom",D.offset=(null!==(n=null==l?void 0:l.bottom)&&void 0!==n?n:0)-r.bottom)}let P=s.current;!L&&s.current&&(P.style.top="0px",P.style.bottom="",P.style.maxHeight=(null!==(x=null===(r=window.visualViewport)||void 0===r?void 0:r.height)&&void 0!==x?x:window.innerHeight)+"px");let k=function(e){var t,n,l,r;let i;let{placement:o,targetNode:s,overlayNode:u,scrollNode:f,padding:h,shouldFlip:g,boundaryElement:y,offset:x,crossOffset:D,maxHeight:P,arrowSize:k=0,arrowBoundaryOffset:N=0}=e,M=u instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!C(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!C(t);)t=t.parentElement;return t||document.documentElement}(u):document.documentElement,R=M===document.documentElement,T=window.getComputedStyle(M).position,F=R?w(s):S(s,M);if(!R){let{marginTop:e,marginLeft:t}=window.getComputedStyle(s);F.top+=parseInt(e,10)||0,F.left+=parseInt(t,10)||0}let A=w(u),L={top:parseInt((i=window.getComputedStyle(u)).marginTop,10)||0,bottom:parseInt(i.marginBottom,10)||0,left:parseInt(i.marginLeft,10)||0,right:parseInt(i.marginRight,10)||0};A.width+=(null!==(t=L.left)&&void 0!==t?t:0)+(null!==(n=L.right)&&void 0!==n?n:0),A.height+=(null!==(l=L.top)&&void 0!==l?l:0)+(null!==(r=L.bottom)&&void 0!==r?r:0);let B={top:f.scrollTop,left:f.scrollLeft,width:f.scrollWidth,height:f.scrollHeight},I=v(y),O=v(M),z="BODY"===y.tagName?w(M):S(M,y);return"HTML"===M.tagName&&"BODY"===y.tagName&&(O.scroll.top=0,O.scroll.left=0),function(e,t,n,l,r,i,o,s,u,f,h,g,y,v,w,S){var C,x,D,P;let k=b(e),{size:N,crossAxis:M,crossSize:R,placement:T,crossPlacement:F}=k,A=E(t,s,n,k,h,g,f,y,w,S),L=h,B=K(s,f,t,r,i+h,k);if(o&&l[N]>B){let e=b(`${d[T]} ${F}`),l=E(t,s,n,e,h,g,f,y,w,S);K(s,f,t,r,i+h,e)>B&&(k=e,A=l,L=h)}let I="bottom";"top"===k.axis?"top"===k.placement?I="top":"bottom"===k.placement&&(I="bottom"):"top"===k.crossAxis&&("top"===k.crossPlacement?I="bottom":"bottom"===k.crossPlacement&&(I="top"));let O=m(M,A[M],n[R],s,u,i,f);A[M]+=O;let z=function(e,t,n,l,r,i,o,s){var u,a,c,d,f,h,g;let y=l?n.height:t[p.height],v=null!=e.top?n.top+e.top:n.top+(y-(null!==(u=e.bottom)&&void 0!==u?u:0)-o),m="top"!==s?Math.max(0,t.height+t.top+(null!==(a=t.scroll.top)&&void 0!==a?a:0)-v-((null!==(c=r.top)&&void 0!==c?c:0)+(null!==(d=r.bottom)&&void 0!==d?d:0)+i)):Math.max(0,v+o-(t.top+(null!==(f=t.scroll.top)&&void 0!==f?f:0))-((null!==(h=r.top)&&void 0!==h?h:0)+(null!==(g=r.bottom)&&void 0!==g?g:0)+i));return Math.min(t.height-2*i,m)}(A,s,f,y,r,i,n.height,I);v&&vP.style[e]=k.position[e]+"px"),P.style.maxHeight=null!=k.maxHeight?k.maxHeight+"px":"",D&&document.activeElement&&u.current){let e=document.activeElement.getBoundingClientRect(),t=u.current.getBoundingClientRect(),n=e[D.type]-t[D.type];u.current.scrollTop+=n-D.offset}O(k)}},z);(0,D.b)(_,z),(0,D.b)(()=>(window.addEventListener("resize",_,!1),()=>{window.removeEventListener("resize",_,!1)}),[_]),(0,P.y)({ref:s,onResize:_}),(0,P.y)({ref:o,onResize:_});let W=(0,r.useRef)(!1);(0,D.b)(()=>{let e;let t=()=>{W.current=!0,clearTimeout(e),e=setTimeout(()=>{W.current=!1},500),_()},n=()=>{W.current&&t()};return null==N||N.addEventListener("resize",t),null==N||N.addEventListener("scroll",n),()=>{null==N||N.removeEventListener("resize",t),null==N||N.removeEventListener("scroll",n)}},[_]);let V=(0,r.useCallback)(()=>{W.current||null==A||A()},[A,W]);return(0,x.O)({triggerRef:o,isOpen:F,onClose:A&&V}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...null==I?void 0:I.position,maxHeight:null!==(t=null==I?void 0:I.maxHeight)&&void 0!==t?t:"100vh"}},placement:null!==(n=null==I?void 0:I.placement)&&void 0!==n?n:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==I?void 0:I.arrowOffsetLeft,top:null==I?void 0:I.arrowOffsetTop}},updatePosition:_}}({...f,targetRef:n,overlayRef:l,isOpen:t.isOpen,onClose:i?t.close:null});return(0,R.t)({isDisabled:i||!t.isOpen}),(0,D.b)(()=>{if(t.isOpen&&!i&&l.current)return(0,s.R)([l.current])},[i,t.isOpen,l]),{popoverProps:(0,T.d)(h,y),arrowProps:F,underlayProps:g,placement:A}}({...o,offset:null!==(u=o.offset)&&void 0!==u?u:8,arrowSize:h},e),z=o.popoverRef,H=(0,l.iW)(z,!!O)||o.isEntering||!1,_=(0,l.aX)({...o,defaultClassName:"react-aria-Popover",values:{trigger:o.trigger||null,placement:O,isEntering:H,isExiting:t}}),W={...y.style,..._.style};return r.createElement(F.aV,{...o,isExiting:t,portalContainer:n},!o.isNonModal&&e.isOpen&&r.createElement("div",{"data-testid":"underlay",...B,style:{position:"fixed",inset:0}}),r.createElement("div",{...(0,T.d)((0,L.z)(o),y),..._,ref:z,slot:o.slot||void 0,style:W,"data-trigger":o.trigger,"data-placement":O,"data-entering":H||void 0,"data-exiting":t||void 0},!o.isNonModal&&r.createElement(A.U,{onDismiss:e.close}),r.createElement(i.Provider,{value:{...I,placement:O,ref:f}},_.children),r.createElement(A.U,{onDismiss:e.close})))}},27216:function(e,t,n){n.d(t,{cP:function(){return r},ni:function(){return i}});var l=n(21295);let r=(0,l.createContext)(null);(0,l.createContext)(null),(0,l.createContext)(null),(0,l.createContext)(null),(0,l.createContext)(null);let i=(0,l.createContext)({})},17636:function(e,t,n){n.d(t,{r:function(){return l}});let l=(0,n(21295).createContext)({})}}]);