1import{r as c,R as w,a as po,b as _r}from"./vendor-react-nIFFWcjg.js";c.createContext(null);c.createContext(null);c.createContext(null);c.createContext(null);c.createContext(null);const bo=c.createContext({});c.createContext(null);c.createContext(null);const I=typeof document<"u"?w.useLayoutEffect:()=>{};function vo(e){let[t,r]=c.useState(e),o=c.useRef(t),n=c.useRef(null),i=c.useRef(()=>{if(!n.current)return;let a=n.current.next();if(a.done){n.current=null;return}o.current===a.value?i.current():r(a.value)});I(()=>{o.current=t,n.current&&i.current()});let l=c.useCallback(a=>{n.current=a(o.current),i.current()},[i]);return[t,l]}const Kr={prefix:String(Math.round(Math.random()*1e10)),current:0},Wr=w.createContext(Kr),$o=w.createContext(!1);let ft=new WeakMap;function mo(e=!1){let t=c.useContext(Wr),r=c.useRef(null);if(r.current===null&&!e){var o,n;let i=(n=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||n===void 0||(o=n.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(i){let l=ft.get(i);l==null?ft.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==l.state&&(t.current=l.id,ft.delete(i))}r.current=++t.current}return r.current}function ho(e){let t=c.useContext(Wr),r=mo(!!e),o=`react-aria${t.prefix}`;return e||`${o}-${r}`}function go(e){let t=w.useId(),[r]=c.useState(lt()),o=r?"react-aria":`react-aria${Kr.prefix}`;return e||`${o}-${t}`}const Eo=typeof w.useId=="function"?go:ho;function yo(){return!1}function xo(){return!0}function wo(e){return()=>{}}function lt(){return typeof w.useSyncExternalStore=="function"?w.useSyncExternalStore(wo,yo,xo):c.useContext($o)}let To=!!(typeof window<"u"&&window.document&&window.document.createElement),Se=new Map,Oe;typeof FinalizationRegistry<"u"&&(Oe=new FinalizationRegistry(e=>{Se.delete(e)}));function Ee(e){let[t,r]=c.useState(e),o=c.useRef(null),n=Eo(t),i=c.useRef(null);if(Oe&&Oe.register(i,n),To){const l=Se.get(n);l&&!l.includes(o)?l.push(o):Se.set(n,[o])}return I(()=>{let l=n;return()=>{Oe&&Oe.unregister(i),Se.delete(l)}},[n]),c.useEffect(()=>{let l=o.current;return l&&r(l),()=>{l&&(o.current=null)}}),n}function Po(e,t){if(e===t)return e;let r=Se.get(e);if(r)return r.forEach(n=>n.current=t),t;let o=Se.get(t);return o?(o.forEach(n=>n.current=e),e):t}function Co(e=[]){let t=Ee(),[r,o]=vo(t),n=c.useCallback(()=>{o(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,o]);return I(n,[t,n,...e]),r}function at(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const k=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},J=e=>e&&"window"in e&&e.window===e?e:k(e).defaultView||window;function So(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Lo(e){return So(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let No=!1;function le(){return No}function F(e,t){if(!le())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:Lo(r)?r=r.host:r=r.parentNode}return!1}const _=(e=document)=>{var t;if(!le())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function S(e){if(le()&&e.target instanceof Element&&e.target.shadowRoot){var t,r;if("composedPath"in e)return(t=e.composedPath()[0])!==null&&t!==void 0?t:null;if("composedPath"in e.nativeEvent)return(r=e.nativeEvent.composedPath()[0])!==null&&r!==void 0?r:null}return e.target}function At(e){if(!e)return!1;let t=e.getRootNode(),r=J(e);if(!(t instanceof r.Document||t instanceof r.ShadowRoot))return!1;let o=t.activeElement;return o!=null&&e.contains(o)}class Ro{get currentNode(){return this._currentNode}set currentNode(t){if(!F(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let o=t,n=t;for(this._currentNode=t;o&&o!==this.root;)if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const l=o,a=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});
1r.push(a),a.currentNode=n,this._currentSetFor.add(a),o=n=l.host}else o=o.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=n,this._currentSetFor.add(i),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return F(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let n;if(typeof this.filter=="function"?n=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(n=this.filter.acceptNode(t)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.nextNode();return o&&(this.currentNode=o),o}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let n=this.previousNode();return n&&(this.currentNode=n),n}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var o;let i;if(typeof this.filter=="function"?i=this.filter(r):!((o=this.filter)===null||o===void 0)&&o.acceptNode&&(i=this.filter.acceptNode(r)),i===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let l=this.lastChild();return l&&(this.currentNode=l),l}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.previousNode();return n&&(this.currentNode=n),n}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,o,n){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=l=>{if(l.nodeType===Node.ELEMENT_NODE){const u=l.shadowRoot;if(u){const s=this._doc.createTreeWalker(u,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(s),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(l);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(l);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=n??null,this.whatToShow=o??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,o,this._acceptNode));const i=r.shadowRoot;if(i){const l=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(l)}}}function Br(e,t,r,o){return le()?new Ro(e,t,r,o):e.createTreeWalker(t,r,o)}function Ht(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const o=e.map(n=>{const i=ir(n,t);return r||(r=typeof i=="function"),i});if(r)return()=>{o.forEach((n,i)=>{typeof n=="function"?n():ir(e[i],null)})}}}function ir(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ur(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Ur(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function ko(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Ur(e))&&(o&&(o+=" "),o+=t);return o}function j(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let o=e[r];for(let n in o){let i=t[n],l=o[n];typeof i=="function"&&typeof l=="function"&&n[0]==="o"&&n[1]==="n"&&n.charCodeAt(2)>=65&&n.charCodeAt(2)<=90?t[n]=at(i,l):(n==="className"||n==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?t[n]=ko(i,l):n==="id"&&i&&l?t.id=Po(i,l):n==="ref"&&i&&l?t.ref=Ht(i,l):t[n]=l!==void 0?l:i}}return t}const Mo=new Set(["id"]),Fo=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Io=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Oo=new Set(["dir","lang","hidden","inert","translate"]),lr=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Do=/^(data-.*)$/;function pe(e,t={}){let{labelable:r,isLink:o,global:n,events:i=n,propNames:l}=t,a={};for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(Mo.has(u)||r&&Fo.has(u)||o&&Io.has(u)||n&&Oo.has(u)||i&&(lr.has(u)||u.endsWith("Capture")&&lr.has(u.slice(0,-7)))||l!=null&&l.has(u)||Do.test(u))&&(a[u]=e[u]);return a}function Ne(e){if(Ao())e.focus({preventScroll:!0});else{let t=Ho(e);e.focus(),_o(t)}}let Ge=null;function Ao(){if(Ge==null){Ge=!1;try{document.createElement("div").focus({get preventScroll(){return Ge=!0,!0}})}catch{}}return Ge}function Ho(e){let t=e.parentNode,r=[],o=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==o;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return o instanceof HTMLElement&&r.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),r}function _o(e){for(let{element:t,scrollTop:r,scrollLeft:o}of e)t.scrollTop=r,t.scrollLeft=o}function st(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(o=>e.test(o.brand))||e.test(window.navigator.userAgent)}function _t(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function be(e){let t=null;return()=>(t==null&&(t=e()),t)}const Ke=be(function(){return _t(/^Mac/i)}),Ko=be(function(){return _t(/^iPhone/i)}),zr=be(function(){return _t(/^iPad/i)||Ke()&&navigator.maxTouchPoints>1}),Kt=be(function(){return Ko()||zr()}
1),jr=be(function(){return st(/AppleWebKit/i)&&!Vr()}),Vr=be(function(){return st(/Chrome/i)}),Wt=be(function(){return st(/Android/i)}),Wo=be(function(){return st(/Firefox/i)});function ye(e,t,r=!0){var o,n;let{metaKey:i,ctrlKey:l,altKey:a,shiftKey:u}=t;Wo()&&(!((n=window.event)===null||n===void 0||(o=n.type)===null||o===void 0)&&o.startsWith("key"))&&e.target==="_blank"&&(Ke()?i=!0:l=!0);let s=jr()&&Ke()&&!zr()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:a,shiftKey:u}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:a,shiftKey:u,detail:1,bubbles:!0,cancelable:!0});ye.isOpening=r,Ne(e),e.dispatchEvent(s),ye.isOpening=!1}ye.isOpening=!1;let ce=new Map,yt=new Set;function ar(){if(typeof window>"u")return;function e(o){return"propertyName"in o}let t=o=>{let n=S(o);if(!e(o)||!n)return;let i=ce.get(n);i||(i=new Set,ce.set(n,i),n.addEventListener("transitioncancel",r,{once:!0})),i.add(o.propertyName)},r=o=>{let n=S(o);if(!e(o)||!n)return;let i=ce.get(n);if(i&&(i.delete(o.propertyName),i.size===0&&(n.removeEventListener("transitioncancel",r),ce.delete(n)),ce.size===0)){for(let l of yt)l();yt.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?ar():document.addEventListener("DOMContentLoaded",ar));function Bo(){for(const[e]of ce)"isConnected"in e&&!e.isConnected&&ce.delete(e)}function Gr(e){requestAnimationFrame(()=>{Bo(),ce.size===0?e():yt.add(e)})}function Bt(){let e=c.useRef(new Map),t=c.useCallback((n,i,l,a)=>{let u=a!=null&&a.once?(...s)=>{e.current.delete(l),l(...s)}:l;e.current.set(l,{type:i,eventTarget:n,fn:u,options:a}),n.addEventListener(i,u,a)},[]),r=c.useCallback((n,i,l,a)=>{var u;let s=((u=e.current.get(l))===null||u===void 0?void 0:u.fn)||l;n.removeEventListener(i,s,a),e.current.delete(l)},[]),o=c.useCallback(()=>{e.current.forEach((n,i)=>{r(n.eventTarget,n.type,i,n.options)})},[r]);return c.useEffect(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:o}}function Uo(e,t){let{id:r,"aria-label":o,"aria-labelledby":n}=e;return r=Ee(r),n&&o?n=[...new Set([r,...n.trim().split(/\s+/)])].join(" "):n&&(n=n.trim().split(/\s+/).join(" ")),!o&&!n&&t&&(o=t),{id:r,"aria-label":o,"aria-labelledby":n}}function Ut(e){const t=c.useRef(null),r=c.useRef(void 0),o=c.useCallback(n=>{if(typeof e=="function"){const i=e,l=i(n);return()=>{typeof l=="function"?l():i(null)}}else if(e)return e.current=n,()=>{e.current=null}},[e]);return c.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,r.current&&(r.current(),r.current=void 0),n!=null&&(r.current=o(n))}}),[o])}var pt;const zo=(pt=w.useInsertionEffect)!==null&&pt!==void 0?pt:I;function he(e){const t=c.useRef(null);return zo(()=>{t.current=e},[e]),c.useCallback((...r)=>{const o=t.current;return o==null?void 0:o(...r)},[])}function jo(){return typeof window.ResizeObserver<"u"}function xt(e){const{ref:t,box:r,onResize:o}=e;let n=he(o);c.useEffect(()=>{let i=t==null?void 0:t.current;if(i)if(jo()){const l=new window.ResizeObserver(a=>{a.length&&n()});return l.observe(i,{box:r}),()=>{i&&l.unobserve(i)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[t,r])}function zt(e,t){I(()=>
1{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function wt(e,t){if(!e)return!1;let r=window.getComputedStyle(e),o=document.scrollingElement||document.documentElement,n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return e===o&&r.overflow!=="hidden"&&(n=!0),n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Yr(e,t){let r=e;for(wt(r,t)&&(r=r.parentElement);r&&!wt(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}const Vo=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function bt(e){return e instanceof HTMLInputElement&&!Vo.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function qr(e){return e.pointerType===""&&e.isTrusted?!0:Wt()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Go(e){return!Wt()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Xr(e,t=!0){let[r,o]=c.useState(!0),n=r&&t;return I(()=>{if(n&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,n]),Zr(e,n,c.useCallback(()=>o(!1),[])),n}function Jr(e,t){let[r,o]=c.useState(t?"open":"closed");switch(r){case"open":t||o("exiting");break;case"closed":case"exiting":t&&o("open");break}let n=r==="exiting";return Zr(e,n,c.useCallback(()=>{o(i=>i==="exiting"?"closed":i)},[])),n}function Zr(e,t,r){I(()=>
1{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let o=e.current.getAnimations();if(o.length===0){r();return}let n=!1;return Promise.all(o.map(i=>i.finished)).then(()=>{n||po.flushSync(()=>{r()})}).catch(()=>{}),()=>{n=!0}}},[e,t,r])}const Yo=typeof Element<"u"&&"checkVisibility"in Element.prototype;function qo(e){const t=J(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:o}=e.style,n=r!=="none"&&o!=="hidden"&&o!=="collapse";if(n){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:l,visibility:a}=i(e);n=l!=="none"&&a!=="hidden"&&a!=="collapse"}return n}function Xo(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function jt(e,t){return Yo?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&qo(e)&&Xo(e,t)&&(!e.parentElement||jt(e.parentElement,e))}const Vt=["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"])',"permission"],Jo=Vt.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Vt.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Zo=Vt.join(':not([hidden]):not([tabindex="-1"]),');function Qr(e){return e.matches(Jo)&&jt(e)&&!en(e)}function Qo(e){return e.matches(Zo)&&jt(e)&&!en(e)}function en(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var vt;const ei=typeof document<"u"?(vt=w.useInsertionEffect)!==null&&vt!==void 0?vt:w.useLayoutEffect:()=>{};function ti(e,t,r){let[o,n]=c.useState(e||t),i=c.useRef(o),l=c.useRef(e!==void 0),a=e!==void 0;c.useEffect(()=>{l.current,l.current=a},[a]);let u=a?e:o;ei(()=>{i.current=u});let[,s]=c.useReducer(()=>({}),{}),f=c.useCallback((d,...p)=>{let $=typeof d=="function"?d(i.current):d;Object.is(i.current,$)||(i.current=$,n($),s(),r==null||r($,...p))},[r]);return[u,f]}function Tt(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}const Pt=Symbol("default");function Gt({values:e,children:t}){for(let[r,o]of e)t=w.createElement(r.Provider,{value:o},t);return t}function ze(e){let{className:t,style:r,children:o,defaultClassName:n,defaultChildren:i,defaultStyle:l,values:a,render:u}=e;return c.useMemo(()=>{let s,f,d;return typeof t=="function"?s=t({...a,defaultClassName:n}):s=t,typeof r=="function"?f=r({...a,defaultStyle:l||{}}):f=r,typeof o=="function"?d=o({...a,defaultChildren:i}):o==null?d=i:d=o,{className:s??n,style:f||l?{...l,...f}:void 0,children:d??i,"data-rac":"",render:u?p=>u(p,a):void 0}},[t,r,o,n,i,l,a,u])}function ri(e,t){let r=c.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let o=t||Pt;if(!r.slots[o]){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(l=>`"${l}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${n}.`)}return r.slots[o]}return r}function je(e,t,r){let o=ri(r,e.slot)||{},{ref:n,...i}=o,l=Ut(c.useMemo(()=>Ht(t,n),[t,n])),a=j(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?a.style=u=>{let s=typeof i.style=="function"?i.style(u):i.style,f={...u.defaultStyle,...s},d=typeof e.style=="function"?e.style({...u,defaultStyle:f}):e.style;return{...f,...d}}:a.style={...i.style,...e.style}),[a,l]}function ni(e,t,r){let{render:o,...n}=t,i=c.useRef(null),l=c.useMemo(()=>Ht(r,i),[r,i]);I(()=>{},[e,o]);let a={...n,ref:l};return o?o(a,void 0):w.createElement(e,a)}const sr={},Ve=new Proxy({},{get(e,t){if(typeof t!="string")return;let r=sr[t];return r||(r=c.forwardRef(ni.bind(null,t)),sr[t]=r),r}}),tn=7e3;let re=null;function ur(e,t="assertive",r=tn){re?re.announce(e,t,r):(re=new oi,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?re.announce(e,t,r):setTimeout(()=>{re!=null&&re.isAttached()&&(re==null||re.announce(e,t,r))},100))}class oi{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",o=tn){var n,i;if(!this.node)return;
1let l=document.createElement("div");typeof t=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",t["aria-labelledby"])):l.textContent=t,r==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(l):(i=this.politeLog)===null||i===void 0||i.appendChild(l),t!==""&&setTimeout(()=>{l.remove()},o)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{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"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Q={top:"top",bottom:"top",left:"left",right:"left"},tt={top:"bottom",bottom:"top",left:"right",right:"left"},ii={top:"left",left:"top"}
1,Ct={top:"height",left:"width"},rn={width:"totalWidth",height:"totalHeight"},Ye={};let li=()=>typeof document<"u"?window.visualViewport:null;function cr(e,t){let r=0,o=0,n=0,i=0,l=0,a=0,u={};var s;let f=((s=t==null?void 0:t.scale)!==null&&s!==void 0?s:1)>1;if(e.tagName==="BODY"||e.tagName==="HTML"){let m=document.documentElement;n=m.clientWidth,i=m.clientHeight;var d;r=(d=t==null?void 0:t.width)!==null&&d!==void 0?d:n;var p;o=(p=t==null?void 0:t.height)!==null&&p!==void 0?p:i,u.top=m.scrollTop||e.scrollTop,u.left=m.scrollLeft||e.scrollLeft,t&&(l=t.offsetTop,a=t.offsetLeft)}else({width:r,height:o,top:l,left:a}=We(e,!1)),u.top=e.scrollTop,u.left=e.scrollLeft,n=r,i=o;if(jr()&&(e.tagName==="BODY"||e.tagName==="HTML")&&f){u.top=0,u.left=0;var $;l=($=t==null?void 0:t.pageTop)!==null&&$!==void 0?$:0;var v;a=(v=t==null?void 0:t.pageLeft)!==null&&v!==void 0?v:0}return{width:r,height:o,totalWidth:n,totalHeight:i,scroll:u,top:l,left:a}}function ai(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function dr(e,t,r,o,n,i,l){var a;let u=(a=n.scroll[e])!==null&&a!==void 0?a:0,s=o[Ct[e]],f=l[e]+o.scroll[Q[e]]+i,d=l[e]+o.scroll[Q[e]]+s-i,p=t-u+o.scroll[Q[e]]+l[e]-o[Q[e]],$=t-u+r+o.scroll[Q[e]]+l[e]-o[Q[e]];return p<f?f-p:$>d?Math.max(d-$,f-p):0}function si(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function fr(e){if(Ye[e])return Ye[e];let[t,r]=e.split(" "),o=Q[t]||"right",n=ii[o];Q[r]||(r="center");let i=Ct[o],l=Ct[n];return Ye[e]={placement:t,crossPlacement:r,axis:o,crossAxis:n,size:i,crossSize:l},Ye[e]}function $t(e,t,r,o,n,i,l,a,u,s,f){let{placement:d,crossPlacement:p,axis:$,crossAxis:v,size:m,crossSize:y}=o,E={};var g;E[v]=(g=e[v])!==null&&g!==void 0?g:0;var x,C,P,N;p==="center"?E[v]+=(((x=e[y])!==null&&x!==void 0?x:0)-((C=r[y])!==null&&C!==void 0?C:0))/2:p!==v&&(E[v]+=((P=e[y])!==null&&P!==void 0?P:0)-((N=r[y])!==null&&N!==void 0?N:0)),E[v]+=i;const O=e[v]-r[y]+u+s,A=e[v]+e[y]-u-s;if(E[v]=Tt(E[v],O,A),d===$){let K=a?f[m]:f[rn[m]];E[tt[$]]=Math.floor(K-e[$]+n)}else E[$]=Math.floor(e[$]+e[m]+n);return E}function ui(e,t,r,o,n,i,l,a,u,s,f){var d,p;let $=(e.top!=null?e.top:u[rn.height]-((d=e.bottom)!==null&&d!==void 0?d:0)-l)-((p=u.scroll.top)!==null&&p!==void 0?p:0),v=s?r.top:0;var m,y,E;let g={top:Math.max(t.top+v,((m=f==null?void 0:f.offsetTop)!==null&&m!==void 0?m:t.top)+v),bottom:Math.min(t.top+t.height+v,((y=f==null?void 0:f.offsetTop)!==null&&y!==void 0?y:0)+((E=f==null?void 0:f.height)!==null&&E!==void 0?E:0))};var x,C,P,N;return a!=="top"?Math.max(0,g.bottom-$-(((x=n.top)!==null&&x!==void 0?x:0)+((C=n.bottom)!==null&&C!==void 0?C:0)+i)):Math.max(0,$+l-g.top-(((P=n.top)!==null&&P!==void 0?P:0)+((N=n.bottom)!==null&&N!==void 0?N:0)+i))}function pr(e,t,r,o,n,i,l,a){let{placement:u,axis:s,size:f}=i;var d,p;if(u===s)return Math.max(0,r[s]-((d=l.scroll[s])!==null&&d!==void 0?d:0)-(e[s]+(a?t[s]:0))-((p=o[s])!==null&&p!==void 0?p:0)-o[tt[s]]-n);var $,v;return Math.max(0,e[f]+e[s]+(a?t[s]:0)-r[s]-r[f]+(($=l.scroll[s])!==null&&$!==void 0?$:0)-((v=o[s])!==null&&v!==void 0?v:0)-o[tt[s]]-n)}function ci(e,t,r,o,n,i,l,a,u,s,f,d,p,$,v,m,y,E){let g=fr(e),{size:x,crossAxis:C,crossSize:P,placement:N,crossPlacement:O}=g,A=$t(t,a,r,g,f,d,s,p,v,m,u),K=f,V=pr(a,s,t,n,i+f,g,u,y);if(l&&r[x]>V){let ue=fr(`${tt[N]} ${O}`),Te=$t(t,a,r,ue,f,d,s,p,v,m,u);pr(a,s,t,n,i+f,ue,u,y)>V&&(g=ue,A=Te,K=f)}let Y="bottom";g.axis==="top"?g.placement==="top"?Y="top":g.placement==="bottom"&&(Y="bottom"):g.crossAxis==="top"&&(g.crossPlacement==="top"?Y="bottom":g.crossPlacement==="bottom"&&(Y="top"));let H=dr(C,A[C],r[P],a,u,i,s);A[C]+=H;let z=ui(A,a,s,p,n,i,r.height,Y,u,y,E);$&&$<z&&(z=$),r.height=Math.min(r.height,z),A=$t(t,a,r,g,K,d,s,p,v,m,u),H=dr(C,A[C],r[P],a,u,i,s),A[C]+=H;let U={},G=t[C]-A[C]-n[Q[C]],q=G+.5*t[P];const se=v/2+m;var te,Z,b,T;const h=Q[C]==="left"?((te=n.left)!==null&&te!==void 0?te:0)+((Z=n.right)!==null&&Z!==void 0?Z:0):((b=n.top)!==null&&b!==void 0?b:0)+((T=n.bottom)!==null&&T!==void 0?T:0),L=r[P]-h-v/2-m,M=t[C]+v/2-(A[C]+n[Q[C]]),R=t[C]+t[P]-v/2-(A[C]+n[Q[C]]),ie=Tt(q,M,R);U[C]=Tt(ie,se,L),{placement:N,crossPlacement:O}=g,v?G=U[C]:O==="right"?G+=t[P]:O==="center"&&(G+=t[P]/2);let we=N==="left"||N==="top"?r[x]:0,Me={x:N==="top"||N==="bottom"?G:we,y:N==="left"||N==="right"?G:we};return{position:A,maxHeight:z,arrowOffsetLeft:U.left,arrowOffsetTop:U.top,placement:N,triggerAnchorPoint:Me}}function di(e){let{placement:t,targetNode:r,overlayNode:o,scrollNode:n,padding:i,shouldFlip:l,boundaryElement:a,offset:u,crossOffset:s,maxHeight:f,arrowSize:d=0,arrowBoundaryOffset:p=0}=e,$=li(),v=o instanceof HTMLElement?fi(o):document.documentElement,m=v===document.documentElement;const y=window.getComputedStyle(v).position;let E=!!y&&y!=="static",g=m?We(r,!1):br(r,v,!1);if(!m){let{marginTop:U,marginLeft:G}=window.getComputedStyle(r);g.top+=parseInt(U,10)||0,g.left+=parseInt(G,10)||0}let x=We(o,!0),C=si(o);var P,N;x.width+=((P=C.left)!==null&&P!==void 0?P:0)+((N=C.right)!==null&&N!==void 0?N:0);var O,A;x.height+=((O=C.top)!==null&&O!==void 0?O:0)+((A=C.bottom)!==null&&A!==void 0?A:0);let K=ai(n),V=cr(a,$),Y=cr(v,$),H;if((a.tagName==="BODY"||a.tagName==="HTML")&&!m){let U=ut(v,!1);
1H={top:-(U.top-V.top),left:-(U.left-V.left),width:0,height:0}}else(a.tagName==="BODY"||a.tagName==="HTML")&&m?H={top:0,left:0,width:0,height:0}:H=br(a,v,!1);let z=F(a,v);return ci(t,g,x,K,C,i,l,V,Y,H,u,s,E,f,d,p,z,$)}function ut(e,t){let{top:r,left:o,width:n,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(n=e.offsetWidth,i=e.offsetHeight),{top:r,left:o,width:n,height:i}}function We(e,t){let{top:r,left:o,width:n,height:i}=ut(e,t),{scrollTop:l,scrollLeft:a,clientTop:u,clientLeft:s}=document.documentElement;return{top:r+l-u,left:o+a-s,width:n,height:i}}function br(e,t,r){let o=window.getComputedStyle(e),n;if(o.position==="fixed")n=ut(e,r);else{n=We(e,r);let i=We(t,r),l=window.getComputedStyle(t);i.top+=(parseInt(l.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(l.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=i.top,n.left-=i.left}return n.top-=parseInt(o.marginTop,10)||0,n.left-=parseInt(o.marginLeft,10)||0,n}function fi(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!vr(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!vr(t);)t=t.parentElement;return t||document.documentElement}function vr(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const nn=new WeakMap;function pi(e){let{triggerRef:t,isOpen:r,onClose:o}=e;c.useEffect(()=>{if(!r||o===null)return;let n=i=>{let l=S(i);if(!t.current||l instanceof Node&&!F(l,t.current)||l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement)return;let a=o||nn.get(t.current);a&&a()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[r,o,t])}const bi=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),vi=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function $i(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),o=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(o)return o.direction==="rtl";if(r.script)return bi.has(r.script)}let t=e.split("-")[0];return vi.has(t)}const on=Symbol.for("react-aria.i18n.locale");function ln(){let e=typeof window<"u"&&window[on]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:$i(e)?"rtl":"ltr"}}let St=ln(),De=new Set;function $r(){St=ln();for(let e of De)e(St)}function mi(){let e=lt(),[t,r]=c.useState(St);return c.useEffect(()=>(De.size===0&&window.addEventListener("languagechange",$r),De.add(r),()=>{De.delete(r),De.size===0&&window.removeEventListener("languagechange",$r)}),[]),e?{locale:typeof window<"u"&&window[on]||"en-US",direction:"ltr"}:t}const hi=w.createContext(null);function Yt(){let e=mi();return c.useContext(hi)||e}const gi=Symbol.for("react-aria.i18n.locale"),Ei=Symbol.for("react-aria.i18n.strings");let Pe;class ct{getStringForLocale(t,r){let n=this.getStringsForLocale(r)[t];if(!n)throw new Error(`Could not find intl message ${t} in ${r} locale`);return n}getStringsForLocale(t){let r=this.strings[t];return r||(r=yi(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[gi];if(Pe===void 0){let n=window[Ei];if(!n)return null;Pe={};for(let i in n)Pe[i]=new ct({[r]:n[i]},r)}let o=Pe==null?void 0:Pe[t];if(!o)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return o}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,o])=>o)),this.defaultLocale=r}}function yi(e,t,r="en-US"){if(t[e])return t[e];let o=xi(e);if(t[o])return t[o];for(let n in t)if(n.startsWith(o+"-"))return t[n];return t[r]}function xi(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}
1const mr=new Map,hr=new Map;class wi{format(t,r){let o=this.strings.getStringForLocale(t,this.locale);return typeof o=="function"?o(r,this):o}plural(t,r,o="cardinal"){let n=r["="+t];if(n)return typeof n=="function"?n():n;let i=this.locale+":"+o,l=mr.get(i);l||(l=new Intl.PluralRules(this.locale,{type:o}),mr.set(i,l));let a=l.select(t);return n=r[a]||r.other,typeof n=="function"?n():n}number(t){let r=hr.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),hr.set(this.locale,r)),r.format(t)}select(t,r){let o=t[r]||t.other;return typeof o=="function"?o():o}constructor(t,r){this.locale=t,this.strings=r}}const gr=new WeakMap;function Ti(e){let t=gr.get(e);return t||(t=new ct(e),gr.set(e,t)),t}function Pi(e,t){return t&&ct.getGlobalDictionaryForPackage(t)||Ti(e)}function Ci(e,t){let{locale:r}=Yt(),o=Pi(e,t);return c.useMemo(()=>new wi(r,o),[r,o])}function Si(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Li(e,t,r){Si(e,t),t.set(e,r)}let W=typeof document<"u"?window.visualViewport:null;function an(e){let{direction:t}=Yt(),{arrowSize:r,targetRef:o,overlayRef:n,arrowRef:i,scrollRef:l=n,placement:a="bottom",containerPadding:u=12,shouldFlip:s=!0,boundaryElement:f=typeof document<"u"?document.body:null,offset:d=0,crossOffset:p=0,shouldUpdatePosition:$=!0,isOpen:v=!0,onClose:m,maxHeight:y,arrowBoundaryOffset:E=0}=e,[g,x]=c.useState(null),C=[$,a,n.current,o.current,i==null?void 0:i.current,l.current,u,s,f,d,p,v,t,y,E,r],P=c.useRef(W==null?void 0:W.scale);c.useEffect(()=>{v&&(P.current=W==null?void 0:W.scale)},[v]);let N=c.useCallback(()=>{if($===!1||!v||!n.current||!o.current||!f||(W==null?void 0:W.scale)!==P.current)return;let H=null;if(l.current&&At(l.current)){var z;let T=(z=_())===null||z===void 0?void 0:z.getBoundingClientRect(),h=l.current.getBoundingClientRect();var U;if(H={type:"top",offset:((U=T==null?void 0:T.top)!==null&&U!==void 0?U:0)-h.top},H.offset>h.height/2){H.type="bottom";var G;H.offset=((G=T==null?void 0:T.bottom)!==null&&G!==void 0?G:0)-h.bottom}}let q=n.current;if(!y&&n.current){var se;q.style.top="0px",q.style.bottom="";var te;q.style.maxHeight=((te=(se=window.visualViewport)===null||se===void 0?void 0:se.height)!==null&&te!==void 0?te:window.innerHeight)+"px"}let Z=di({placement:Ri(a,t),overlayNode:n.current,targetNode:o.current,scrollNode:l.current||n.current,padding:u,shouldFlip:s,boundaryElement:f,offset:d,crossOffset:p,maxHeight:y,arrowSize:r??(i!=null&&i.current?ut(i.current,!0).width:0),arrowBoundaryOffset:E});if(!Z.position)return;q.style.top="",q.style.bottom="",q.style.left="",q.style.right="",Object.keys(Z.position).forEach(T=>q.style[T]=Z.position[T]+"px"),q.style.maxHeight=Z.maxHeight!=null?Z.maxHeight+"px":"";let b=_();if(H&&b&&l.current){let T=b.getBoundingClientRect(),h=l.current.getBoundingClientRect(),L=T[H.type]-h[H.type];l.current.scrollTop+=L-H.offset}x(Z)},C);I(N,C),Ni(N),xt({ref:n,onResize:N}),xt({ref:o,onResize:N});let O=c.useRef(!1);I(()=>{let H,z=()=>{O.current=!0,clearTimeout(H),H=setTimeout(()=>{O.current=!1},500),N()},U=()=>{O.current&&z()};return W==null||W.addEventListener("resize",z),W==null||W.addEventListener("scroll",U),()=>{W==null||W.removeEventListener("resize",z),W==null||W.removeEventListener("scroll",U)}},[N]);let A=c.useCallback(()=>{O.current||m==null||m()},[m,O]);pi({triggerRef:o,isOpen:v,onClose:m&&A});var K,V,Y;return{overlayProps:{style:{position:g?"absolute":"fixed",top:g?void 0:0,left:g?void 0:0,zIndex:1e5,...g==null?void 0:g.position,maxHeight:(K=g==null?void 0:g.maxHeight)!==null&&K!==void 0?K:"100vh"}},placement:(V=g==null?void 0:g.placement)!==null&&V!==void 0?V:null,triggerAnchorPoint:(Y=g==null?void 0:g.triggerAnchorPoint)!==null&&Y!==void 0?Y:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:g==null?void 0:g.arrowOffsetLeft,top:g==null?void 0:g.arrowOffsetTop}},updatePosition:N}}function Ni(e){I(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Ri(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function qt(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function sn(e,t){Object.defineProperty(e,"target",{value:t}
1),Object.defineProperty(e,"currentTarget",{value:t})}function un(e){let t=c.useRef({isFocused:!1,observer:null});return I(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),c.useCallback(r=>{let o=S(r);if(o instanceof HTMLButtonElement||o instanceof HTMLInputElement||o instanceof HTMLTextAreaElement||o instanceof HTMLSelectElement){t.current.isFocused=!0;let n=o,i=l=>{if(t.current.isFocused=!1,n.disabled){let a=qt(l);e==null||e(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let a=n===_()?null:_();n.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let rt=!1;function ki(e){for(;e&&!Qr(e);)e=e.parentElement;let t=J(e),r=t.document.activeElement;if(!r||r===e)return;rt=!0;let o=!1,n=f=>{(S(f)===r||o)&&f.stopImmediatePropagation()},i=f=>{(S(f)===r||o)&&(f.stopImmediatePropagation(),!e&&!o&&(o=!0,Ne(r),u()))},l=f=>{(S(f)===e||o)&&f.stopImmediatePropagation()},a=f=>{(S(f)===e||o)&&(f.stopImmediatePropagation(),o||(o=!0,Ne(r),u()))};t.addEventListener("blur",n,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",l,!0);let u=()=>{cancelAnimationFrame(s),t.removeEventListener("blur",n,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",l,!0),rt=!1,o=!1},s=requestAnimationFrame(u);return u}let Ce="default",Lt="",Qe=new WeakMap;function Mi(e){if(Kt()){if(Ce==="default"){const t=k(e);Lt=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Ce="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Qe.set(e,e.style[t]),e.style[t]="none"}}function Er(e){if(Kt()){if(Ce!=="disabled")return;Ce="restoring",setTimeout(()=>{Gr(()=>{if(Ce==="restoring"){const t=k(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Lt||""),Lt="",Ce="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Qe.has(e)){let t=Qe.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Qe.delete(e)}}const Be=w.createContext({register:()=>{}});Be.displayName="PressResponderContext";function Fi(e,t){return t.get?t.get.call(e):t.value}function cn(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Ii(e,t){var r=cn(e,t,"get");return Fi(e,r)}function Oi(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function yr(e,t,r){var o=cn(e,t,"set");return Oi(e,o,r),r}function Di(e){let t=c.useContext(Be);if(t){let{register:r,ref:o,...n}=t;e=j(n,e),r()}return zt(t,e.ref),e}var qe=new WeakMap;class Xe{continuePropagation(){yr(this,qe,!1)}get shouldStopPropagation(){return Ii(this,qe)}constructor(t,r,o,n){Li(this,qe,{writable:!0,value:void 0}),yr(this,qe,!0);var i;let l=(i=n==null?void 0:n.target)!==null&&i!==void 0?i:o.currentTarget;const a=l==null?void 0:l.getBoundingClientRect();let u,s=0,f,d=null;o.clientX!=null&&o.clientY!=null&&(f=o.clientX,d=o.clientY),a&&(f!=null&&d!=null?(u=f-a.left,s=d-a.top):(u=a.width/2,s=a.height/2)),this.type=t,this.pointerType=r,this.target=o.currentTarget,this.shiftKey=o.shiftKey,this.metaKey=o.metaKey,this.ctrlKey=o.ctrlKey,this.altKey=o.altKey,this.x=u,this.y=s,this.key=o.key}}const xr=Symbol("linkClicked"),wr="react-aria-pressable-style",Tr="data-react-aria-pressable";function Ai(e){let{onPress:t,onPressChange:r,onPressStart:o,onPressEnd:n,onPressUp:i,onClick:l,isDisabled:a,isPressed:u,preventFocusOnPress:s,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:d,ref:p,...$}=Di(e),[v,m]=c.useState(!1),y=c.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:E,removeAllGlobalListeners:g,removeGlobalListener:x}=Bt(),C=c.useCallback((b,T)=>{let h=y.current;if(a||h.didFirePressStart)return!1;let L=!0;if(h.isTriggeringEvent=!0,o){let M=new Xe("pressstart",T,b);o(M),L=M.shouldStopPropagation}return r&&r(!0),h.isTriggeringEvent=!1,h.didFirePressStart=!0,m(!0),L},[a,o,r]),P=c.useCallback((b,T,h=!0)=>{let L=y.current;if(!L.didFirePressStart)return!1;L.didFirePressStart=!1,L.isTriggeringEvent=!0;let M=!0;if(n){let R=new Xe("pressend",T,b);n(R),M=R.shouldStopPropagation}if(r&&r(!1),m(!1),t&&h&&!a){let R=new Xe("press",T,b);t(R),M&&(M=R.shouldStopPropagation)}return L.isTriggeringEvent=!1,M},[a,n,r,t]),N=he(P),O=c.useCallback((b,T)=>{let h=y.current;if(a)return!1;if(i){h.isTriggeringEvent=!0;let L=new Xe("pressup",T,b);return i(L),h.isTriggeringEvent=!1,L.shouldStopPropagation}return!0},[a,i]),A=he(O),K=c.useCallback(b=>{let T=y.current;if(T.isPressed&&T.target){T.didFirePressStart&&T.pointerType!=null&&P(ve(T.target,b),T.pointerType,!1),T.isPressed=!1,te(null),T.isOverTarget=!1,T.activePointerId=null,T.pointerType=null,g(),d||Er(T.target);for(let h of T.disposables)h();T.disposables=[]}},[d,g,P]),V=he(K),Y=c.useCallback(b=>{f&&K(b)},[f,K]),H=c.useCallback(b=>{a||l==null||l(b)},[a,l]),z=c.useCallback((b,T)=>{if(!a&&l){let h=new MouseEvent("click",b);
vendor: 4,768 bytes, lines 1-7
1sn(h,T),l(qt(h))}},[a,l]),U=he(z),[G,q]=c.useState(!1);I(()=>{let b=y.current;if(G){let T=R=>{var ie;if(b.isPressed&&b.target&&mt(R,b.target)){var we;Pr(S(R),R.key)&&R.preventDefault();let ue=S(R),Te=F(b.target,ue);N(ve(b.target,R),"keyboard",Te),Te&&U(R,b.target),g(),R.key!=="Enter"&&Xt(b.target)&&F(b.target,ue)&&!R[xr]&&(R[xr]=!0,ye(b.target,R,!1)),b.isPressed=!1,q(!1),(we=b.metaKeyEvents)===null||we===void 0||we.delete(R.key)}else if(R.key==="Meta"&&(!((ie=b.metaKeyEvents)===null||ie===void 0)&&ie.size)){var Me;let ue=b.metaKeyEvents;b.metaKeyEvents=void 0;for(let Te of ue.values())(Me=b.target)===null||Me===void 0||Me.dispatchEvent(new KeyboardEvent("keyup",Te))}},h=b.target,M=at(R=>{h&&mt(R,h)&&!R.repeat&&F(h,S(R))&&b.target&&A(ve(b.target,R),"keyboard")},T);return E(k(b.target),"keyup",M,!0),()=>{x(k(b.target),"keyup",M,!0)}}},[G,E,g,x]);let[se,te]=c.useState(null);I(()=>{let b=y.current;if(se==="pointer"){let T=L=>{if(L.pointerId===b.activePointerId&&b.isPressed&&L.button===0&&b.target){if(F(b.target,S(L))&&b.pointerType!=null){let M=!1,R=setTimeout(()=>{b.isPressed&&b.target instanceof HTMLElement&&(M?V(L):(Ne(b.target),b.target.click()))},80);L.currentTarget&&E(L.currentTarget,"click",()=>M=!0,!0),b.disposables.push(()=>clearTimeout(R))}else V(L);b.isOverTarget=!1}},h=L=>{V(L)};return E(k(b.target),"pointerup",T,!1),E(k(b.target),"pointercancel",h,!1),()=>{x(k(b.target),"pointerup",T,!1),x(k(b.target),"pointercancel",h,!1)}}},[se,E,x]);let Z=c.useMemo(()=>{let b=y.current,T={onKeyDown(h){if(mt(h.nativeEvent,h.currentTarget)&&F(h.currentTarget,S(h))){var L;Pr(S(h),h.key)&&h.preventDefault();let M=!0;!b.isPressed&&!h.repeat&&(b.target=h.currentTarget,b.isPressed=!0,q(!0),b.pointerType="keyboard",M=C(h,"keyboard")),M&&h.stopPropagation(),h.metaKey&&Ke()&&((L=b.metaKeyEvents)===null||L===void 0||L.set(h.key,h.nativeEvent))}else h.key==="Meta"&&(b.metaKeyEvents=new Map)},onClick(h){if(!(h&&!F(h.currentTarget,S(h)))&&h&&h.button===0&&!b.isTriggeringEvent&&!ye.isOpening){let L=!0;if(a&&h.preventDefault(),!b.ignoreEmulatedMouseEvents&&!b.isPressed&&(b.pointerType==="virtual"||qr(h.nativeEvent))){let M=C(h,"virtual"),R=O(h,"virtual"),ie=P(h,"virtual");H(h),L=M&&R&&ie}else if(b.isPressed&&b.pointerType!=="keyboard"){let M=b.pointerType||h.nativeEvent.pointerType||"virtual",R=O(ve(h.currentTarget,h),M),ie=P(ve(h.currentTarget,h),M,!0);L=R&&ie,b.isOverTarget=!1,H(h),K(h)}b.ignoreEmulatedMouseEvents=!1,L&&h.stopPropagation()}}};return typeof PointerEvent<"u"&&(T.onPointerDown=h=>{if(h.button!==0||!F(h.currentTarget,S(h)))return;if(Go(h.nativeEvent)){b.pointerType="virtual";return}b.pointerType=h.pointerType;let L=!0;if(!b.isPressed){b.isPressed=!0,te("pointer"),b.isOverTarget=!0,b.activePointerId=h.pointerId,b.target=h.currentTarget,d||Mi(b.target),L=C(h,b.pointerType);let M=S(h);"releasePointerCapture"in M&&("hasPointerCapture"in M?M.hasPointerCapture(h.pointerId)&&M.releasePointerCapture(h.pointerId):M.releasePointerCapture(h.pointerId))}L&&h.stopPropagation()},T.onMouseDown=h=>{if(F(h.currentTarget,S(h))&&h.button===0){if(s){let L=ki(h.target);L&&b.disposables.push(L)}h.stopPropagation()}},T.onPointerUp=h=>{!F(h.currentTarget,S(h))||b.pointerType==="virtual"||h.button===0&&!b.isPressed&&O(h,b.pointerType||h.pointerType)},T.onPointerEnter=h=>{h.pointerId===b.activePointerId&&b.target&&!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,C(ve(b.target,h),b.pointerType))},T.onPointerLeave=h=>{h.pointerId===b.activePointerId&&b.target&&b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,P(ve(b.target,h),b.pointerType,!1),Y(h))},T.onDragStart=h=>{F(h.currentTarget,S(h))&&K(h)}),T},[a,s,g,d,K,Y,P,C,O,H,z]);return c.useEffect(()=>{if(!p)return;const b=k(p.current);if(!b||!b.head||b.getElementById(wr))return;const T=b.createElement("style");T.id=wr,T.textContent=` 2@layer { 3 [${Tr}] { 4 touch-action: pan-x pan-y pinch-zoom; 5 } 6} 7 `.trim(),b.head.prepend(T)},[p]),c.useEffect(()=>{let b=y.current;return()=>{var T;d||Er((T=b.target)!==null&&T!==void 0?T:void 0);for(let h of b.disposables)h();b.disposables=[]}},[d]),{isPressed:u||v,pressProps:j($,Z,{[Tr]:!0})}}function Xt(e){return e.tagName==="A"&&e.hasAttribute("href")}function mt(e,t){const{key:r,code:o}=e,n=t,i=n.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||o==="Space")&&!(n instanceof J(n).HTMLInputElement&&!dn(n,r)||n instanceof J(n).HTMLTextAreaElement||n.isContentEditable)&&!((i==="link"||!i&&Xt(n))&&r!=="Enter")}function ve(e,t){let r=t.clientX,o=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:o,key:t.key}}function Hi(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset"
7:!Xt(e)}function Pr(e,t){return e instanceof HTMLInputElement?!dn(e,t):Hi(e)}const _i=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function dn(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":_i.has(e.type)}let ke=null;const Nt=new Set;let He=new Map,xe=!1,Rt=!1;const Ki={Tab:!0,Escape:!0};function Jt(e,t){for(let r of Nt)r(e,t)}function Wi(e){return!(e.metaKey||!Ke()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function nt(e){xe=!0,!ye.isOpening&&Wi(e)&&(ke="keyboard",Jt("keyboard",e))}function Le(e){ke="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(xe=!0,Jt("pointer",e))}function fn(e){!ye.isOpening&&qr(e)&&(xe=!0,ke="virtual")}function pn(e){S(e)===window||S(e)===document||rt||!e.isTrusted||(!xe&&!Rt&&(ke="virtual",Jt("virtual",e)),xe=!1,Rt=!1)}function bn(){rt||(xe=!1,Rt=!0)}function kt(e){if(typeof window>"u"||typeof document>"u"||He.get(J(e)))return;const t=J(e),r=k(e);let o=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){xe=!0,o.apply(this,arguments)},r.addEventListener("keydown",nt,!0),r.addEventListener("keyup",nt,!0),r.addEventListener("click",fn,!0),t.addEventListener("focus",pn,!0),t.addEventListener("blur",bn,!1),typeof PointerEvent<"u"&&(r.addEventListener("pointerdown",Le,!0),r.addEventListener("pointermove",Le,!0),r.addEventListener("pointerup",Le,!0)),t.addEventListener("beforeunload",()=>{vn(e)},{once:!0}),He.set(t,{focus:o})}const vn=(e,t)=>{const r=J(e),o=k(e);t&&o.removeEventListener("DOMContentLoaded",t),He.has(r)&&(r.HTMLElement.prototype.focus=He.get(r).focus,o.removeEventListener("keydown",nt,!0),o.removeEventListener("keyup",nt,!0),o.removeEventListener("click",fn,!0),r.removeEventListener("focus",pn,!0),r.removeEventListener("blur",bn,!1),typeof PointerEvent<"u"&&(o.removeEventListener("pointerdown",Le,!0),o.removeEventListener("pointermove",Le,!0),o.removeEventListener("pointerup",Le,!0)),He.delete(r))};function Bi(e){const t=k(e);let r;return t.readyState!=="loading"?kt(e):(r=()=>{kt(e)},t.addEventListener("DOMContentLoaded",r)),()=>vn(e,r)}typeof document<"u"&&Bi();function ot(){return ke!=="pointer"}function dt(){return ke}const Ui=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function zi(e,t,r){let o=k(r?S(r):void 0),n=r?S(r):void 0;const i=typeof window<"u"?J(n).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?J(n).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?J(n).HTMLElement:HTMLElement,u=typeof window<"u"?J(n).KeyboardEvent:KeyboardEvent;let s=_(o);return e=e||s instanceof i&&!Ui.has(s.type)||s instanceof l||s instanceof a&&s.isContentEditable,!(e&&t==="keyboard"&&r instanceof u&&!Ki[r.key])}function ji(e,t,r){kt(),c.useEffect(()=>{if((r==null?void 0:r.enabled)===!1)return;let o=(n,i)=>{zi(!!(r!=null&&r.isTextInput),n,i)&&e(ot())};return Nt.add(o),()=>{Nt.delete(o)}},t)}function Ue(e){if(!e.isConnected)return;const t=k(e);if(dt()==="virtual"){let r=_(t);Gr(()=>{const o=_(t);(o===r||o===t.body)&&e.isConnected&&Ne(e)})}else Ne(e)}function $n(e){let{isDisabled:t,onFocus:r,onBlur:o,onFocusChange:n}=e;const i=c.useCallback(u=>{if(S(u)===u.currentTarget)return o&&o(u),n&&n(!1),!0},[o,n]),l=un(i),a=c.useCallback(u=>{let s=S(u);const f=k(s),d=f?_(f):_();s===u.currentTarget&&s===d&&(r&&r(u),n&&n(!0),l(u))},[n,r,l]);return{focusProps:{onFocus:!t&&(r||n||o)?a:void 0,onBlur:!t&&(o||n)?i:void 0}}}function Cr(e){if(!e)return;let t=!0;return r=>{let o={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(o),t&&r.stopPropagation()}}function Vi(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Cr(e.onKeyDown),onKeyUp:Cr(e.onKeyUp)}}}let mn=w.createContext(null);function Gi(e){let t=c.useContext(mn)||{};zt(t,e);let{ref:r,...o}=t;return o}const Yi=w.forwardRef(function(t,r){let{children:o,...n}=t,i=Ut(r),l={...n,ref:i};return w.createElement(mn.Provider,{value:l},o)});function hn(e,t){let{focusProps:r}=$n(e),{keyboardProps:o}=Vi(e),n=j(r,o),i=Gi(t),l=e.isDisabled?{}:i,a=c.useRef(e.autoFocus);c.useEffect(()=>{a.current&&t.current&&Ue(t.current),a.current=!1},[t]);let u=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(u=void 0),{focusableProps:j({...n,tabIndex:u},l)}}const qi=w.forwardRef(({children:e,...t},r)=>{let o=c.useRef(!1),n=c.useContext(Be),i=j(n||{},{...t,register(){o.current=!0,n&&n.register()}});return i.ref=Ut(r||(n==null?void 0:n.ref)),zt(n,i.ref),c.useEffect(()=>{o.current||(o.current=!0)},[]),w.createElement(Be.Provider,{value:i},e)});function Xi({children:e}){let t=c.useMemo(()=>({register:()=>{}}),[]);return w.createElement(Be.Provider,{value:t},e)}function Zt(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:n}=e,i=c.useRef({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=Bt(),u=c.useCallback(d=>
7{F(d.currentTarget,S(d))&&i.current.isFocusWithin&&!F(d.currentTarget,d.relatedTarget)&&(i.current.isFocusWithin=!1,a(),r&&r(d),n&&n(!1))},[r,n,i,a]),s=un(u),f=c.useCallback(d=>{if(!F(d.currentTarget,S(d)))return;let p=S(d);const $=k(p),v=_($);if(!i.current.isFocusWithin&&v===p){o&&o(d),n&&n(!0),i.current.isFocusWithin=!0,s(d);let m=d.currentTarget;l($,"focus",y=>{let E=S(y);if(i.current.isFocusWithin&&!F(m,E)){let g=new $.defaultView.FocusEvent("blur",{relatedTarget:E});sn(g,m);let x=qt(g);u(x)}},{capture:!0})}},[o,n,s,l,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:f,onBlur:u}}}let Mt=!1,Je=0;function Ji(){Mt=!0,setTimeout(()=>{Mt=!1},50)}function Sr(e){e.pointerType==="touch"&&Ji()}function Zi(){if(!(typeof document>"u"))return Je===0&&typeof PointerEvent<"u"&&document.addEventListener("pointerup",Sr),Je++,()=>{Je--,!(Je>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",Sr)}}function Qt(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,isDisabled:n}=e,[i,l]=c.useState(!1),a=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(Zi,[]);let{addGlobalListener:u,removeAllGlobalListeners:s}=Bt(),{hoverProps:f,triggerHoverEnd:d}=c.useMemo(()=>{let p=(m,y)=>{if(a.pointerType=y,n||y==="touch"||a.isHovered||!F(m.currentTarget,S(m)))return;a.isHovered=!0;let E=m.currentTarget;a.target=E,u(k(S(m)),"pointerover",g=>{a.isHovered&&a.target&&!F(a.target,S(g))&&$(g,g.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:E,pointerType:y}),r&&r(!0),l(!0)},$=(m,y)=>{let E=a.target;a.pointerType="",a.target=null,!(y==="touch"||!a.isHovered||!E)&&(a.isHovered=!1,s(),o&&o({type:"hoverend",target:E,pointerType:y}),r&&r(!1),l(!1))},v={};return typeof PointerEvent<"u"&&(v.onPointerEnter=m=>{Mt&&m.pointerType==="mouse"||p(m,m.pointerType)},v.onPointerLeave=m=>{!n&&F(m.currentTarget,S(m))&&$(m,m.pointerType)}),{hoverProps:v,triggerHoverEnd:$}},[t,r,o,n,a,u,s]);return c.useEffect(()=>{n&&d({currentTarget:a.target},a.pointerType)},[n]),{hoverProps:f,isHovered:i}}function Qi(e){let{ref:t,onInteractOutside:r,isDisabled:o,onInteractOutsideStart:n}=e,i=c.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=he(u=>{r&&Lr(u,t)&&(n&&n(u),i.current.isPointerDown=!0)}),a=he(u=>{r&&r(u)});c.useEffect(()=>{let u=i.current;if(o)return;const s=t.current,f=k(s);if(typeof PointerEvent<"u"){let d=p=>{u.isPointerDown&&Lr(p,t)&&a(p),u.isPointerDown=!1};return f.addEventListener("pointerdown",l,!0),f.addEventListener("click",d,!0),()=>{f.removeEventListener("pointerdown",l,!0),f.removeEventListener("click",d,!0)}}},[t,o])}function Lr(e,t){if(e.button>0)return!1;let r=S(e);if(r){const o=r.ownerDocument;if(!o||!F(o.documentElement,r)||r.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const Nr=w.createContext(null),Ft="react-aria-focus-scope-restore";let D=null;function el(e){let{children:t,contain:r,restoreFocus:o,autoFocus:n}=e,i=c.useRef(null),l=c.useRef(null),a=c.useRef([]),{parentNode:u}=c.useContext(Nr)||{},s=c.useMemo(()=>new Ot({scopeRef:a}),[a]);I(()=>{let p=u||B.root;if(B.getTreeNode(p.scopeRef)&&D&&!it(D,p.scopeRef)){let $=B.getTreeNode(D);$&&(p=$)}p.addChild(s),B.addNode(s)},[s,u]),I(()=>{let p=B.getTreeNode(a);p&&(p.contain=!!r)},[r]),I(()=>{var p;let $=(p=i.current)===null||p===void 0?void 0:p.nextSibling,v=[],m=y=>y.stopPropagation();for(;$&&$!==l.current;)v.push($),$.addEventListener(Ft,m),$=$.nextSibling;return a.current=v,()=>{for(let y of v)y.removeEventListener(Ft,m)}},[t]),al(a,o,r),ol(a,r),sl(a,o,r),ll(a,n),c.useEffect(()=>{const p=_(k(a.current?a.current[0]:void 0));let $=null;if(ee(p,a.current)){for(let v of B.traverse())v.scopeRef&&ee(p,v.scopeRef.current)&&($=v);$===B.getTreeNode(a)&&(D=$.scopeRef)}},[a]),I(()=>()=>{var p,$,v;let m=(v=($=B.getTreeNode(a))===null||$===void 0||(p=$.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&v!==void 0?v:null;(a===D||it(a,D))&&(!m||B.getTreeNode(m))&&(D=m),B.removeTreeNode(a)},[a]);let f=c.useMemo(()=>tl(a),[]),d=c.useMemo(()=>({focusManager:f,parentNode:s}),[s,f]);return w.createElement(Nr.Provider,{value:d},w.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,w.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function tl(e){return{focusNext(t={}){let r=e.current,{from:o,tabbable:n,wrap:i,accept:l}=t;var a;let u=o||_(k((a=r[0])!==null&&a!==void 0?a:void 0)),s=r[0].previousElementSibling,f=ge(r),d=fe(f,{tabbable:n,accept:l},r);d.currentNode=ee(u,r)?u:s;let p=d.nextNode();return!p&&i&&(d.currentNode=s,p=d.nextNode()),p&&ae(p,!0),p},focusPrevious(t={}){let r=e.current,{from:o,tabbable:n,wrap:i,accept:l}=t;var a;let u=o||_(k((a=r[0])!==null&&a!==void 0?a:void 0)),s=r[r.length-1].nextElementSibling,f=ge(r),d=fe(f,{tabbable:n,accept:l},r);d.currentNode=ee(u,r)?u:s;let p=d.previousNode();return!p&&i&&(d.currentNode=s,p=d.previousNode()),p&&ae(p,!0),p},focusFirst(t={}){let r=e.current,{tabbable:o,accept:n}=t,i=ge(r),l=fe(i,{tabbable:o,accept:n},r);l.currentNode=r[0].previousElementSibling;let a=l.nextNode();return a&&ae(a,!0),a},focusLast(t={}){let r=e.current,{tabbable:o,accept:n}=t,i=ge(r),l=fe(i,{tabbable:o,accept:n},r);l.currentNode=r[r.length-1].nextElementSibling;let a=l.previousNode();return a&&ae(a,!0),a}}}function ge(e){return e[0].parentElement}function Ae(e){let t=B.getTreeNode(D);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function rl(e){if(!e.form)return Array.from(k(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}
7"]`)).filter(o=>!o.form);const t=e.form.elements.namedItem(e.name);let r=J(e);return t instanceof r.RadioNodeList?Array.from(t).filter(o=>o instanceof r.HTMLInputElement):t instanceof r.HTMLInputElement?[t]:[]}function nl(e){if(e.checked)return!0;const t=rl(e);return t.length>0&&!t.some(r=>r.checked)}function ol(e,t){let r=c.useRef(void 0),o=c.useRef(void 0);I(()=>{let n=e.current;if(!t){o.current&&(cancelAnimationFrame(o.current),o.current=void 0);return}const i=k(n?n[0]:void 0);let l=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!Ae(e)||s.isComposing)return;let f=_(i),d=e.current;if(!d||!ee(f,d))return;let p=ge(d),$=fe(p,{tabbable:!0},d);if(!f)return;$.currentNode=f;let v=s.shiftKey?$.previousNode():$.nextNode();v||($.currentNode=s.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,v=s.shiftKey?$.previousNode():$.nextNode()),s.preventDefault(),v&&ae(v,!0)},a=s=>{(!D||it(D,e))&&ee(S(s),e.current)?(D=e,r.current=S(s)):Ae(e)&&!de(S(s),e)?r.current?r.current.focus():D&&D.current&&It(D.current):Ae(e)&&(r.current=S(s))},u=s=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{let f=dt(),d=(f==="virtual"||f===null)&&Wt()&&Vr(),p=_(i);if(!d&&p&&Ae(e)&&!de(p,e)){D=e;let v=S(s);if(v&&v.isConnected){var $;r.current=v,($=r.current)===null||$===void 0||$.focus()}else D.current&&It(D.current)}})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",a,!1),n==null||n.forEach(s=>s.addEventListener("focusin",a,!1)),n==null||n.forEach(s=>s.addEventListener("focusout",u,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",a,!1),n==null||n.forEach(s=>s.removeEventListener("focusin",a,!1)),n==null||n.forEach(s=>s.removeEventListener("focusout",u,!1))}},[e,t]),I(()=>()=>{o.current&&cancelAnimationFrame(o.current)},[o])}function gn(e){return de(e)}function ee(e,t){return!e||!t?!1:t.some(r=>F(r,e))}function de(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of B.traverse(B.getTreeNode(t)))if(r&&ee(e,r.current))return!0;return!1}function il(e){return de(e,D)}function it(e,t){var r;let o=(r=B.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;o;){if(o.scopeRef===e)return!0;o=o.parent}return!1}function ae(e,t=!1){if(e!=null&&!t)try{Ue(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function En(e,t=!0){let r=e[0].previousElementSibling,o=ge(e),n=fe(o,{tabbable:t},e);n.currentNode=r;let i=n.nextNode();return t&&!i&&(o=ge(e),n=fe(o,{tabbable:!1},e),n.currentNode=r,i=n.nextNode()),i}function It(e,t=!0){ae(En(e,t))}function ll(e,t){const r=w.useRef(t);c.useEffect(()=>{if(r.current){D=e;const o=k(e.current?e.current[0]:void 0);!ee(_(o),D.current)&&e.current&&It(e.current)}r.current=!1},[e])}function al(e,t,r){I(()=>
7{if(t||r)return;let o=e.current;const n=k(o?o[0]:void 0);let i=l=>{let a=S(l);ee(a,e.current)?D=e:gn(a)||(D=null)};return n.addEventListener("focusin",i,!1),o==null||o.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{n.removeEventListener("focusin",i,!1),o==null||o.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,t,r])}function Rr(e){let t=B.getTreeNode(D);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function sl(e,t,r){const o=c.useRef(typeof document<"u"?_(k(e.current?e.current[0]:void 0)):null);I(()=>{let n=e.current;const i=k(n?n[0]:void 0);if(!t||r)return;let l=()=>{(!D||it(D,e))&&ee(_(i),e.current)&&(D=e)};return i.addEventListener("focusin",l,!1),n==null||n.forEach(a=>a.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),n==null||n.forEach(a=>a.removeEventListener("focusin",l,!1))}},[e,r]),I(()=>{const n=k(e.current?e.current[0]:void 0);if(!t)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Ae(e)||l.isComposing)return;let a=n.activeElement;if(!de(a,e)||!Rr(e))return;let u=B.getTreeNode(e);if(!u)return;let s=u.nodeToRestore,f=fe(n.body,{tabbable:!0});f.currentNode=a;let d=l.shiftKey?f.previousNode():f.nextNode();if((!s||!s.isConnected||s===n.body)&&(s=void 0,u.nodeToRestore=void 0),(!d||!de(d,e))&&s){f.currentNode=s;do d=l.shiftKey?f.previousNode():f.nextNode();while(de(d,e));l.preventDefault(),l.stopPropagation(),d?ae(d,!0):gn(s)?ae(s,!0):a.blur()}};return r||n.addEventListener("keydown",i,!0),()=>{r||n.removeEventListener("keydown",i,!0)}},[e,t,r]),I(()=>{const n=k(e.current?e.current[0]:void 0);if(!t)return;let i=B.getTreeNode(e);if(i){var l;return i.nodeToRestore=(l=o.current)!==null&&l!==void 0?l:void 0,()=>{let a=B.getTreeNode(e);if(!a)return;let u=a.nodeToRestore,s=_(n);if(t&&u&&(s&&de(s,e)||s===n.body&&Rr(e))){let f=B.clone();requestAnimationFrame(()=>{if(n.activeElement===n.body){let d=f.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){kr(d.nodeToRestore);return}d=d.parent}for(d=f.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&B.getTreeNode(d.scopeRef)){let p=En(d.scopeRef.current,!0);kr(p);return}d=d.parent}}})}}}},[e,t])}function kr(e){e.dispatchEvent(new CustomEvent(Ft,{bubbles:!0,cancelable:!0}))&&ae(e)}function fe(e,t,r){let o=t!=null&&t.tabbable?Qo:Qr,n=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=k(n),l=Br(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(a){return F(t==null?void 0:t.from,a)||t!=null&&t.tabbable&&a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(!nl(a)||l.currentNode.tagName==="INPUT"&&l.currentNode.type==="radio"&&l.currentNode.name===a.name)?NodeFilter.FILTER_REJECT:o(a)&&(!r||ee(a,r))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(l.currentNode=t.from),l}class er{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,o){let n=this.fastMap.get(r??null);if(!n)return;let i=new Ot({scopeRef:t});n.addChild(i),i.parent=n,this.fastMap.set(t,i),o&&(i.nodeToRestore=o)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let o=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&ee(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let n=r.children;o&&(o.removeChild(r),n.size>0&&n.forEach(i=>o&&o.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new er;var o;for(let n of this.traverse())r.addTreeNode(n.scopeRef,(o=(t=n.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&o!==void 0?o:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Ot({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ot{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let B=new er;function ul(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,n=c.useRef({isFocused:!1,isFocusVisible:t||ot()}),[i,l]=c.useState(!1),[a,u]=c.useState(()=>n.current.isFocused&&n.current.isFocusVisible),s=c.useCallback(()=>u(n.current.isFocused&&n.current.isFocusVisible),[]),f=c.useCallback($=>{n.current.isFocused=$,n.current.isFocusVisible=ot(),l($),s()},[s]);ji($=>{n.current.isFocusVisible=$,s()},[r,i],{enabled:i,isTextInput:r});let{focusProps:d}=$n({isDisabled:o,onFocusChange:f}),{focusWithinProps:p}=Zt({isDisabled:!o,onFocusWithinChange:f});return{isFocused:i,isFocusVisible:a,focusProps:o?p:d}}const ne=[];function cl(e,t){let{onClose:r,shouldCloseOnBlur:o,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:a}=e,u=c.useRef(void 0);c.useEffect(()=>{if(n&&!ne.includes(t))return ne.push(t),()=>{let m=ne.indexOf(t);m>=0&&ne.splice(m,1)}},[n,t]);let s=()=>{ne[ne.length-1]===t&&r&&r()},f=m=>{const y=ne[ne.length-1];u.current=y,(!a||a(S(m)))&&y===t&&(m.stopPropagation(),m.preventDefault())},d=m=>{(!a||a(S(m)))&&(ne[ne.length-1]===t&&(m.stopPropagation(),m.preventDefault()),u.current===t&&s()),u.current=void 0},p=m=>{m.key==="Escape"&&!l&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),s())};Qi({ref:t,onInteractOutside:i&&n?d:void 0,onInteractOutsideStart:f});let{focusWithinProps:$}=Zt({isDisabled:!o,onBlurWithin:m=>{!m.relatedTarget||il(m.relatedTarget)||(!a||a(m.relatedTarget))&&(r==null||r())}}),v=m=>{S(m)===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:p,...$},underlayProps:{onPointerDown:v}}}function dl(e,t,r){let{type:o}=e,{isOpen:n}=t;c.useEffect(()=>{r&&r.current&&nn.set(r.current,t.close)});let i;o==="menu"?i=!0:o==="listbox"&&(i="listbox");let l=Ee();return{triggerProps:{"aria-haspopup":i,"aria-expanded":n,"aria-controls":n?l:void 0,onPress:t.toggle},overlayProps:{id:l}}}
7const _e=typeof document<"u"&&window.visualViewport;let Ze=0,ht;function fl(e={}){let{isDisabled:t}=e;I(()=>{if(!t)return Ze++,Ze===1&&(Kt()?ht=bl():ht=pl()),()=>{Ze--,Ze===0&&ht()}},[t])}function pl(){let e=window.innerWidth-document.documentElement.clientWidth;return at(e>0&&("scrollbarGutter"in document.documentElement.style?et(document.documentElement,"scrollbarGutter","stable"):et(document.documentElement,"paddingRight",`${e}px`)),et(document.documentElement,"overflow","hidden"))}function bl(){let e=et(document.documentElement,"overflow","hidden"),t,r=!1,o=s=>{let f=S(s);t=wt(f)?f:Yr(f,!0),r=!1;let d=f.ownerDocument.defaultView.getSelection();d&&!d.isCollapsed&&d.containsNode(f,!0)&&(r=!0),s.composedPath().some(p=>p instanceof HTMLInputElement&&p.type==="range")&&(r=!0),"selectionStart"in f&&"selectionEnd"in f&&f.selectionStart<f.selectionEnd&&f.ownerDocument.activeElement===f&&(r=!0)},n=document.createElement("style");n.textContent=` 8@layer { 9 * { 10 overscroll-behavior: contain; 11 } 12}`.trim(),document.head.prepend(n);let i=s=>{if(!(s.touches.length===2||r)){if(!t||t===document.documentElement||t===document.body){s.preventDefault();return}t.scrollHeight===t.clientHeight&&t.scrollWidth===t.clientWidth&&s.preventDefault()}},l=s=>{let f=S(s),d=s.relatedTarget;if(d&&bt(d))d.focus({preventScroll:!0}),Mr(d,bt(f));else if(!d){var p;let $=(p=f.parentElement)===null||p===void 0?void 0:p.closest("[tabindex]");$==null||$.focus({preventScroll:!0})}},a=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(s){let f=_(),d=f!=null&&bt(f);a.call(this,{...s,preventScroll:!0}),(!s||!s.preventScroll)&&Mr(this,d)};let u=at(gt(document,"touchstart",o,{passive:!1,capture:!0}),gt(document,"touchmove",i,{passive:!1,capture:!0}),gt(document,"blur",l,!0));return()=>{e(),u(),n.remove(),HTMLElement.prototype.focus=a}}function et(e,t,r){let o=e.style[t];return e.style[t]=r,()=>{e.style[t]=o}}function gt(e,t,r,o){return e.addEventListener(t,r,o),()=>{e.removeEventListener(t,r,o)}}function Mr(e,t){t||!_e?Fr(e):_e.addEventListener("resize",()=>Fr(e),{once:!0})}function Fr(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let o=Yr(r);if(o!==document.documentElement&&o!==document.body&&o!==r){let n=o.getBoundingClientRect(),i=r.getBoundingClientRect();if(i.top<n.top||i.bottom>n.top+r.clientHeight){let l=n.bottom;_e&&(l=Math.min(l,_e.offsetTop+_e.height));let a=i.top-n.top-((l-n.top)/2-i.height/2);o.scrollTo({top:Math.max(0,Math.min(o.scrollHeight-o.clientHeight,o.scrollTop+a)),behavior:"smooth"})}}r=o.parentElement}}const vl=c.createContext({});function yn(){var e;return(e=c.useContext(vl))!==null&&e!==void 0?e:{}}const Dt=w.createContext(null);function $l(e){let{children:t}=e,r=c.useContext(Dt),[o,n]=c.useState(0),i=c.useMemo(()=>({parent:r,modalCount:o,addModal(){n(l=>l+1),r&&r.addModal()},removeModal(){n(l=>l-1),r&&r.removeModal()}}),[r,o]);return w.createElement(Dt.Provider,{value:i},t)}function ml(){let e=c.useContext(Dt);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function hl(e){let{modalProviderProps:t}=ml();return w.createElement("div",{"data-overlay-container":!0,...e,...t})}function gl(e){return w.createElement($l,null,w.createElement(hl,e))}function El(e){let t=lt(),{portalContainer:r=t?null:document.body,...o}=e,{getContainer:n}=yn();if(!e.portalContainer&&n&&(r=n()),w.useEffect(()=>{if(r!=null&&r.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let i=w.createElement(gl,o);return _r.createPortal(i,r)}var xn={};xn={dismiss:"تجاÙÙ"};var wn={};wn={dismiss:"ÐÑÑ Ð²ÑÑлÑне"};var Tn={};Tn={dismiss:"Odstranit"};var Pn={};Pn={dismiss:"Luk"};var Cn={};Cn={dismiss:"SchlieÃen"};var Sn={};Sn={dismiss:"ÎÏÏÏÏιÏη"};var Ln={};Ln={dismiss:"Dismiss"};var Nn={};Nn={dismiss:"Descartar"};var Rn={};Rn={dismiss:"Lõpeta"};var kn={};kn={dismiss:"Hylkää"};var Mn={};Mn={dismiss:"Rejeter"};var Fn={};Fn={dismiss:"×תע××"};var In={};In={dismiss:"Odbaci"};var On={};On={dismiss:"ElutasÃtás"};var Dn={};Dn={dismiss:"Ignora"};var An={};An={dismiss:"éãã"};var Hn={};Hn={dismiss:"무ì"};var _n={};_n={dismiss:"Atmesti"};var Kn={};Kn={dismiss:"NerÄdÄ«t"};var Wn={};Wn={dismiss:"Lukk"};var Bn={};Bn={dismiss:"Negeren"};var Un={};Un={dismiss:"Zignoruj"};var zn={};zn={dismiss:"Descartar"};var jn={};jn={dismiss:"Dispensar"};var Vn={};Vn={dismiss:"Revocare"};var Gn={};Gn={dismiss:"ÐÑопÑÑÑиÑÑ"};var Yn={};Yn={dismiss:"ZruÅ¡iÅ¥"};var qn={};qn={dismiss:"Opusti"};var Xn={};Xn={dismiss:"Odbaci"};var Jn={};Jn={dismiss:"Avvisa"};var Zn={};Zn={dismiss:"Kapat"};var Qn={};Qn={dismiss:"СкаÑÑваÑи"};var eo={};eo={dismiss:"åæ¶"};var to={};to={dismiss:"éé"};var ro={};ro={"ar-AE":xn,"bg-BG":wn,"cs-CZ":Tn,"da-DK":Pn,"de-DE":Cn,"el-GR":Sn,"en-US":Ln,"es-ES":Nn,"et-EE":Rn,"fi-FI":kn,"fr-FR":Mn,"he-IL":Fn,"hr-HR":In,"hu-HU":On,"it-IT":Dn,"ja-JP":An,"ko-KR":Hn,"lt-LT":_n,"lv-LV":Kn,"nb-NO":Wn,"nl-NL":Bn,"pl-PL":Un,"pt-BR":zn,"pt-PT":jn,"ro-RO":Vn,"ru-RU":Gn,"sk-SK":Yn,"sl-SI":qn,"sr-SP":Xn,"sv-SE":Jn,"tr-TR":Zn,"uk-UA":Qn,"zh-CN":eo,"zh-TW":to}
vendor: 4,444 bytes, line 12
12;const Ir={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 yl(e={}){let{style:t,isFocusable:r}=e,[o,n]=c.useState(!1),{focusWithinProps:i}=Zt({isDisabled:!r,onFocusWithinChange:a=>n(a)}),l=c.useMemo(()=>o?t:t?{...Ir,...t}:Ir,[o]);return{visuallyHiddenProps:{...i,style:l}}}function xl(e){let{children:t,elementType:r="div",isFocusable:o,style:n,...i}=e,{visuallyHiddenProps:l}=yl(e);return w.createElement(r,j(i,l),t)}function wl(e){return e&&e.__esModule?e.default:e}function Or(e){let{onDismiss:t,...r}=e,o=Ci(wl(ro),"@react-aria/overlays"),n=Uo(r,o.format("dismiss")),i=()=>{t&&t()};return w.createElement(xl,null,w.createElement("button",{...n,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const Tl=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let Fe=new WeakMap,X=[];function Pl(e,t){let r=J(e==null?void 0:e[0]),o=t instanceof r.Element?{root:t}:t;var n;let i=(n=o==null?void 0:o.root)!==null&&n!==void 0?n:document.body,l=(o==null?void 0:o.shouldUseInert)&&Tl,a=new Set(e),u=new Set,s=E=>l&&E instanceof r.HTMLElement?E.inert:E.getAttribute("aria-hidden")==="true",f=(E,g)=>{l&&E instanceof r.HTMLElement?E.inert=g:g?E.setAttribute("aria-hidden","true"):(E.removeAttribute("aria-hidden"),E instanceof r.HTMLElement&&(E.inert=!1))},d=new Set;if(le())for(let E of e){let g=E;for(;g&&g!==i;){let x=g.getRootNode();"shadowRoot"in x&&d.add(x.shadowRoot),g=x.parentNode}}let p=E=>{for(let P of E.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))a.add(P);let g=P=>{if(u.has(P)||a.has(P)||P.parentElement&&u.has(P.parentElement)&&P.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let N of a)if(F(P,N))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},x=Br(k(E),E,NodeFilter.SHOW_ELEMENT,{acceptNode:g}),C=g(E);if(C===NodeFilter.FILTER_ACCEPT&&$(E),C!==NodeFilter.FILTER_REJECT){let P=x.nextNode();for(;P!=null;)$(P),P=x.nextNode()}},$=E=>{var g;let x=(g=Fe.get(E))!==null&&g!==void 0?g:0;s(E)&&x===0||(x===0&&f(E,!0),u.add(E),Fe.set(E,x+1))};X.length&&X[X.length-1].disconnect(),p(i);let v=new MutationObserver(E=>{for(let g of E)if(g.type==="childList"){if(g.target.isConnected&&![...a,...u].some(x=>F(x,g.target)))for(let x of g.addedNodes)(x instanceof HTMLElement||x instanceof SVGElement)&&(x.dataset.liveAnnouncer==="true"||x.dataset.reactAriaTopLayer==="true")?a.add(x):x instanceof Element&&p(x);if(le()){for(let x of d)if(!x.isConnected){v.disconnect();break}}}});v.observe(i,{childList:!0,subtree:!0});let m=new Set;if(le())for(let E of d){let g=new MutationObserver(x=>{for(let C of x)if(C.type==="childList"){if(C.target.isConnected&&![...a,...u].some(P=>F(P,C.target)))for(let P of C.addedNodes)(P instanceof HTMLElement||P instanceof SVGElement)&&(P.dataset.liveAnnouncer==="true"||P.dataset.reactAriaTopLayer==="true")?a.add(P):P instanceof Element&&p(P);if(le()){for(let P of d)if(!P.isConnected){v.disconnect();break}}}});g.observe(E,{childList:!0,subtree:!0}),m.add(g)}let y={visibleNodes:a,hiddenNodes:u,observe(){v.observe(i,{childList:!0,subtree:!0})},disconnect(){v.disconnect()}};return X.push(y),()=>{if(v.disconnect(),le())for(let E of m)E.disconnect();for(let E of u){let g=Fe.get(E);g!=null&&(g===1?(f(E,!1),Fe.delete(E)):Fe.set(E,g-1))}y===X[X.length-1]?(X.pop(),X.length&&X[X.length-1].observe()):X.splice(X.indexOf(y),1)}}function Cl(e){let t=X[X.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function Sl(e,t){let{triggerRef:r,popoverRef:o,groupRef:n,isNonModal:i,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a,...u}=e,s=u.trigger==="SubmenuTrigger",{overlayProps:f,underlayProps:d}=cl({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||s,isKeyboardDismissDisabled:l,shouldCloseOnInteractOutside:a},n??o),{overlayProps:p,arrowProps:$,placement:v,triggerAnchorPoint:m}=an({...u,targetRef:r,overlayRef:o,isOpen:t.isOpen,onClose:i&&!s?t.close:null});return fl({isDisabled:i||!t.isOpen}),c.useEffect(()=>{if(t.isOpen&&o.current){var y,E;return i?Cl((y=n==null?void 0:n.current)!==null&&y!==void 0?y:o.current):Pl([(E=n==null?void 0:n.current)!==null&&E!==void 0?E:o.current],{shouldUseInert:!0})}},[i,t.isOpen,o,n]),{popoverProps:j(f,p),arrowProps:$,underlayProps:d,placement:v,triggerAnchorPoint:m}}const no=w.createContext(null);
12function Dr(e){let t=lt(),{portalContainer:r=t?null:document.body,isExiting:o}=e,[n,i]=c.useState(!1),l=c.useMemo(()=>({contain:n,setContain:i}),[n,i]),{getContainer:a}=yn();if(!e.portalContainer&&a&&(r=a()),!r)return null;let u=e.children;return e.disableFocusManagement||(u=w.createElement(el,{restoreFocus:!0,contain:(e.shouldContainFocus||n)&&!o},u)),u=w.createElement(no.Provider,{value:l},w.createElement(Xi,null,u)),_r.createPortal(u,r)}function Ll(){let e=c.useContext(no),t=e==null?void 0:e.setContain;I(()=>{t==null||t(!0)},[t])}typeof HTMLTemplateElement<"u"&&(Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.content.firstChild}}),Object.defineProperty(HTMLTemplateElement.prototype,"appendChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.appendChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"removeChild",{configurable:!0,enumerable:!0,value:function(e){return this.content.removeChild(e)}}),Object.defineProperty(HTMLTemplateElement.prototype,"insertBefore",{configurable:!0,enumerable:!0,value:function(e,t){return this.content.insertBefore(e,t)}}));const oo=c.createContext(!1);function Nl(e){let t=(r,o)=>c.useContext(oo)?null:e(r,o);return t.displayName=e.displayName||e.name,c.forwardRef(t)}function Rl(){return c.useContext(oo)}var io={exports:{}},lo={};/** 13 * @license React 14 * use-sync-external-store-shim.production.js 15 * 16 * Copyright (c) Meta Platforms, Inc. and affiliates. 17 * 18 * This source code is licensed under the MIT license found in the 19 * LICENSE file in the root directory of this source tree. 20 */var Re=c;function kl(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ml=typeof Object.is=="function"?Object.is:kl,Fl=Re.useState,Il=Re.useEffect,Ol=Re.useLayoutEffect,Dl=Re.useDebugValue;function Al(e,t){var r=t(),o=Fl({inst:{value:r,getSnapshot:t}}),n=o[0].inst,i=o[1];return Ol(function(){n.value=r,n.getSnapshot=t,Et(n)&&i({inst:n})},[e,r,t]),Il(function(){return Et(n)&&i({inst:n}),e(function(){Et(n)&&i({inst:n})})},[e]),Dl(r),r}function Et(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ml(e,r)}catch{return!0}}function Hl(e,t){return t()}var _l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Hl:Al;lo.useSyncExternalStore=Re.useSyncExternalStore!==void 0?Re.useSyncExternalStore:_l;io.exports=lo;var ta=io.exports;function Kl(e,t){let{elementType:r="button",isDisabled:o,onPress:n,onPressStart:i,onPressEnd:l,onPressUp:a,onPressChange:u,preventFocusOnPress:s,allowFocusWhenDisabled:f,onClick:d,href:p,target:$,rel:v,type:m="button"}=e,y;r==="button"?y={type:m,disabled:o,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:y={role:"button",href:r==="a"&&!o?p:void 0,target:r==="a"?$:void 0,type:r==="input"?m:void 0,disabled:r==="input"?o:void 0,"aria-disabled":!o||r==="input"?void 0:o,rel:r==="a"?v:void 0};let{pressProps:E,isPressed:g}=Ai({onPressStart:i,onPressEnd:l,onPressChange:u,onPress:n,onPressUp:a,onClick:d,isDisabled:o,preventFocusOnPress:s,ref:t}),{focusableProps:x}=hn(e,t);f&&(x.tabIndex=o?-1:x.tabIndex);let C=j(x,E,pe(e,{labelable:!0}));return{isPressed:g,buttonProps:j(y,C,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}function Wl(e,t){let{role:r="dialog"}=e,o=Co();o=e["aria-label"]?void 0:o;let n=c.useRef(!1);return c.useEffect(()=>{if(t.current&&!At(t.current)){Ue(t.current);let i=setTimeout(()=>{(_()===t.current||_()===document.body)&&(n.current=!0,t.current&&(t.current.blur(),Ue(t.current)),n.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),Ll(),{dialogProps:{...pe(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:i=>{n.current&&i.stopPropagation()}},titleProps:{id:o}}}function Bl(e,t){let r=pe(e,{labelable:!0}),{hoverProps:o}=Qt({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:j(r,o,{role:"tooltip"})}}function Ul(e,t,r){let{isDisabled:o,trigger:n,shouldCloseOnPress:i=!0}=e,l=Ee(),a=c.useRef(!1),u=c.useRef(!1),s=()=>{(a.current||u.current)&&t.open(u.current)},f=g=>{!a.current&&!u.current&&t.close(g)}
20;c.useEffect(()=>{let g=x=>{r&&r.current&&x.key==="Escape"&&(x.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",g,!0),()=>{document.removeEventListener("keydown",g,!0)}},[r,t]);let d=()=>{n!=="focus"&&(dt()==="pointer"?a.current=!0:a.current=!1,s())},p=()=>{n!=="focus"&&(u.current=!1,a.current=!1,f())},$=()=>{i&&(u.current=!1,a.current=!1,f(!0))},v=()=>{ot()&&(u.current=!0,s())},m=()=>{u.current=!1,a.current=!1,f(!0)},{hoverProps:y}=Qt({isDisabled:o,onHoverStart:d,onHoverEnd:p}),{focusableProps:E}=hn({isDisabled:o,onFocus:v,onBlur:m},r);return{triggerProps:{"aria-describedby":t.isOpen?l:void 0,...j(E,y,{onPointerDown:$,onKeyDown:$}),tabIndex:void 0},tooltipProps:{id:l}}}const zl=c.createContext(null),ao=c.createContext({}),ra=Nl(function(t,r){[t,r]=je(t,r,ao);let o=t,{isPending:n}=o,{buttonProps:i,isPressed:l}=Kl(t,r);i=Vl(i,n);let{focusProps:a,isFocused:u,isFocusVisible:s}=ul(t),{hoverProps:f,isHovered:d}=Qt({...t,isDisabled:t.isDisabled||n}),p={isHovered:d,isPressed:(o.isPressed||l)&&!n,isFocused:u,isFocusVisible:s,isDisabled:t.isDisabled||!1,isPending:n??!1},$=ze({...t,values:p,defaultClassName:"react-aria-Button"}),v=Ee(i.id),m=Ee(),y=i["aria-labelledby"];n&&(y?y=`${y} ${m}`:i["aria-label"]&&(y=`${v} ${m}`));let E=c.useRef(n);c.useEffect(()=>{let x={"aria-labelledby":y||v};(!E.current&&u&&n||E.current&&u&&!n)&&ur(x,"assertive"),E.current=n},[n,u,y,v]);let g=pe(t,{global:!0});return delete g.onClick,w.createElement(Ve.button,{...j(g,$,i,a,f),type:i.type==="submit"&&n?"button":i.type,id:v,ref:r,"aria-labelledby":y,slot:t.slot||void 0,"aria-disabled":n?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":p.isPressed||void 0,"data-hovered":d||void 0,"data-focused":u||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0},w.createElement(zl.Provider,{value:{id:m}},$.children))}),jl=/Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;function Vl(e,t){if(t){for(const r in e)r.startsWith("on")&&!jl.test(r)&&(e[r]=void 0);e.href=void 0,e.target=void 0}return e}function tr(e){let[t,r]=ti(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=c.useCallback(()=>{r(!0)},[r]),n=c.useCallback(()=>{r(!1)},[r]),i=c.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:o,close:n,toggle:i}}function Gl(e){let t=tr(e),[r,o]=c.useState(null),[n,i]=c.useState([]),l=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(s=null){o(s),t.open()},toggle(s=null){o(s),t.toggle()},close(){l()},expandedKeysStack:n,openSubmenu:(s,f)=>{i(d=>f>d.length?d:[...d.slice(0,f),s])},closeSubmenu:(s,f)=>{i(d=>d[f]===s?d.slice(0,f):d)}}}const Yl=1500,Ar=500;let $e={},ql=0,Ie=!1,oe=null,me=null;function so(e={}){let{delay:t=Yl,closeDelay:r=Ar}=e,{isOpen:o,open:n,close:i}=tr(e),l=c.useMemo(()=>`${++ql}`,[]),a=c.useRef(null),u=c.useRef(i),s=()=>{$e[l]=p},f=()=>{for(let v in $e)v!==l&&($e[v](!0),delete $e[v])},d=()=>{a.current&&clearTimeout(a.current),a.current=null,f(),s(),Ie=!0,n(),oe&&(clearTimeout(oe),oe=null),me&&(clearTimeout(me),me=null)},p=v=>{v||r<=0?(a.current&&clearTimeout(a.current),a.current=null,u.current()):a.current||(a.current=setTimeout(()=>{a.current=null,u.current()},r)),oe&&(clearTimeout(oe),oe=null),Ie&&(me&&clearTimeout(me),me=setTimeout(()=>{delete $e[l],me=null,Ie=!1},Math.max(Ar,r)))},$=()=>{f(),s(),!o&&!Ie?(oe&&clearTimeout(oe),oe=setTimeout(()=>{oe=null,Ie=!0,d()},t)):o||d()};return c.useEffect(()=>{u.current=i},[i]),c.useEffect(()=>()=>{a.current&&clearTimeout(a.current),$e[l]&&delete $e[l]},[l]),{isOpen:o,open:v=>{!v&&t>0&&!a.current?$():d()},close:p}}const rr=c.createContext({placement:"bottom"}),na=c.forwardRef(function(t,r){[t,r]=je(t,r,rr);let o=t.placement,n={position:"absolute",transform:o==="top"||o==="bottom"?"translateX(-50%)":"translateY(-50%)"};o!=null&&(n[o]="100%");let i=ze({...t,defaultClassName:"react-aria-OverlayArrow",values:{placement:o}});i.style&&Object.keys(i.style).forEach(a=>i.style[a]===void 0&&delete i.style[a]);let l=pe(t);return w.createElement(Ve.div,{...l,...i,style:{...n,...i.style},ref:r,"data-placement":o})}),uo=c.createContext(null),Hr=c.createContext(null),oa=c.forwardRef(function(t,r){[t,r]=je(t,r,uo);let o=c.useContext(nr),n=tr(t),i=t.isOpen!=null||t.defaultOpen!=null||!o?n:o,l=Jr(r,i.isOpen)||t.isExiting||!1,a=Rl(),{direction:u}=Yt();if(a){let s=t.children;return typeof s=="function"&&(s=s({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),w.createElement(w.Fragment,null,s)}return i&&!i.isOpen&&!l?null:w.createElement(Xl,{...t,triggerRef:t.triggerRef,state:i,popoverRef:r,isExiting:l,dir:u})});function Xl({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:o,...n}){let i=c.useRef(null),l=c.useRef(null),a=c.useContext(Hr),u=a&&n.trigger==="SubmenuTrigger";var s;let{popoverProps:f,underlayProps:d,arrowProps:p,placement:$,triggerAnchorPoint:v}=Sl({...n,offset:(s=n.offset)!==null&&s!==void 0?s:8,arrowRef:i,groupRef:u?a:l},e),m=n.popoverRef,y=Xr(m,!!$)||n.isEntering||!1,E=ze({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:$,isEntering:y,isExiting:t}}),g=!n.isNonModal||n.trigger==="SubmenuTrigger",[x,C]=c.useState(!1);I(()=>{m.current&&C(g&&!m.current.querySelector("[role=dialog]"))},[m,g]),c.useEffect(()=>{x&&(n.trigger!=="SubmenuTrigger"||dt()!=="pointer")&&m.current&&!At(m.current)&&Ue(m.current)},[x,m,n.trigger]);let P=c.useMemo(()=>{let K=E.children;if(o)for(let V of o)K=w.createElement(V.Provider,{value:null},K);return K}
20,[E.children,o]),N={...f.style,"--trigger-anchor-point":v?`${v.x}px ${v.y}px`:void 0,...E.style},O=w.createElement(Ve.div,{...j(pe(n,{global:!0}),f),...E,role:x?"dialog":void 0,tabIndex:x?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:m,slot:n.slot||void 0,style:N,dir:n.dir,"data-trigger":n.trigger,"data-placement":$,"data-entering":y||void 0,"data-exiting":t||void 0},!n.isNonModal&&w.createElement(Or,{onDismiss:e.close}),w.createElement(rr.Provider,{value:{...p,placement:$,ref:i}},P),w.createElement(Or,{onDismiss:e.close}));if(!u)return w.createElement(Dr,{...n,shouldContainFocus:x,isExiting:t,portalContainer:r},!n.isNonModal&&e.isOpen&&w.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),w.createElement("div",{ref:l,style:{display:"contents"}},w.createElement(Hr.Provider,{value:l},O)));var A;return w.createElement(Dr,{...n,shouldContainFocus:x,isExiting:t,portalContainer:(A=r??(a==null?void 0:a.current))!==null&&A!==void 0?A:void 0},O)}const Jl=c.createContext(null),co=c.createContext(null),nr=c.createContext(null);function ia(e){let t=Gl(e),r=c.useRef(null),{triggerProps:o,overlayProps:n}=dl({type:"dialog"},t,r),[i,l]=c.useState(null),a=c.useCallback(()=>{r.current&&l(r.current.offsetWidth+"px")},[r]);return xt({ref:r,onResize:a}),o.id=Ee(),n["aria-labelledby"]=o.id,w.createElement(Gt,{values:[[nr,t],[Jl,t],[co,n],[uo,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":n["aria-labelledby"],style:{"--trigger-width":i}}]]},w.createElement(qi,{...o,ref:r,isPressed:t.isOpen},e.children))}const la=c.forwardRef(function(t,r){let o=t["aria-labelledby"];[t,r]=je(t,r,co);let{dialogProps:n,titleProps:i}=Wl({...t,"aria-labelledby":o},r),l=c.useContext(nr);!n["aria-label"]&&!n["aria-labelledby"]&&t["aria-labelledby"]&&(n["aria-labelledby"]=t["aria-labelledby"]);let a=ze({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),u=pe(t,{global:!0});return w.createElement(Ve.section,{...j(u,a,n),render:t.render,ref:r,slot:t.slot||void 0},w.createElement(Gt,{values:[[bo,{slots:{[Pt]:{},title:{...i,level:2}}}],[ao,{slots:{[Pt]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},a.children))}),or=c.createContext(null),fo=c.createContext(null);function aa(e){let t=so(e),r=c.useRef(null),{triggerProps:o,tooltipProps:n}=Ul(e,t,r);return w.createElement(Gt,{values:[[or,t],[fo,{...n,triggerRef:r}]]},w.createElement(Yi,{...o,ref:r},e.children))}const sa=c.forwardRef(function({UNSTABLE_portalContainer:t,...r},o){[r,o]=je(r,o,fo);let n=c.useContext(or),i=so(r),l=r.isOpen!=null||r.defaultOpen!=null||!n?i:n,a=Jr(o,l.isOpen)||r.isExiting||!1;return!l.isOpen&&!a?null:w.createElement(El,{portalContainer:t},w.createElement(Zl,{...r,tooltipRef:o,isExiting:a}))});function Zl(e){let t=c.useContext(or),r=c.useRef(null),{overlayProps:o,arrowProps:n,placement:i,triggerAnchorPoint:l}=an({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,arrowRef:r,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,onClose:()=>t.close(!0)}),a=Xr(e.tooltipRef,!!i)||e.isEntering||!1,u=ze({...e,defaultClassName:"react-aria-Tooltip",values:{placement:i,isEntering:a,isExiting:e.isExiting,state:t}});e=j(e,o);let{tooltipProps:s}=Bl(e,t),f=pe(e,{global:!0});return w.createElement(Ve.div,{...j(f,u,s),ref:e.tooltipRef,style:{...o.style,"--trigger-anchor-point":l?`${l.x}px ${l.y}px`:void 0,...u.style},"data-placement":i??void 0,"data-entering":a||void 0,"data-exiting":e.isExiting||void 0},w.createElement(rr.Provider,{value:{...n,placement:i,ref:r}},u.children))}export{oa as $,na as a,la as b,ko as c,sa as d,ia as e,aa as f,ra as g,ta as s}; 21//# sourceMappingURL=vendor-react-aria-Cxu2IdXX.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.